@duplicati/ngclient 0.0.83 → 0.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-2AYDM3FG.js +1 -0
- package/chunk-2M52SFS6.js +7 -0
- package/{chunk-XDOTOR6Y.js → chunk-34SHHWMR.js} +1 -1
- package/{chunk-5G5KVDTS.js → chunk-3YTSQTLM.js} +1 -1
- package/{chunk-QD57YWCQ.js → chunk-4A4CWPH7.js} +1 -1
- package/{chunk-EJVKADW2.js → chunk-4IO6Y7PY.js} +1 -1
- package/{chunk-DNB4ABNJ.js → chunk-4YHGG4LR.js} +1 -1
- package/{chunk-PLMZCRFV.js → chunk-6KER52JR.js} +1 -1
- package/chunk-6RMLOIRD.js +1 -0
- package/{chunk-U27FSIPV.js → chunk-77PHTQYN.js} +1 -1
- package/{chunk-WXWYY4O2.js → chunk-7DD5DAWU.js} +1 -1
- package/chunk-7IRVNC4S.js +1 -0
- package/{chunk-PFD5SPQI.js → chunk-7LJ7CTKL.js} +1 -1
- package/{chunk-6A6LDFVN.js → chunk-7LP2EQ7M.js} +1 -1
- package/{chunk-7AU6BKAH.js → chunk-7LRQSKYZ.js} +1 -1
- package/{chunk-U5XRPZBE.js → chunk-AFQ6FL3D.js} +1 -1
- package/{chunk-UKAYBL4H.js → chunk-AXHB6A4N.js} +1 -1
- package/chunk-BGBEOEU2.js +1 -0
- package/chunk-BKSXG3Z5.js +1 -0
- package/{chunk-NE337TA6.js → chunk-BRMUJELY.js} +1 -1
- package/{chunk-DHMWOZZD.js → chunk-C52XP2RC.js} +1 -1
- package/{chunk-CSMWKX44.js → chunk-C5EHOW7U.js} +1 -1
- package/chunk-D6NUBCKD.js +1 -0
- package/{chunk-VIQMN6MJ.js → chunk-DALX7AMG.js} +1 -1
- package/chunk-DL6QZSL6.js +1 -0
- package/{chunk-YTBB644O.js → chunk-DNDOALN6.js} +1 -1
- package/chunk-DURFGYD7.js +1 -0
- package/chunk-FUH4327W.js +1 -0
- package/{chunk-IAKOIFIN.js → chunk-GJSG762N.js} +1 -1
- package/chunk-H2DNOMMP.js +1 -0
- package/{chunk-2CCKM7DM.js → chunk-KH7GOUWD.js} +1 -1
- package/{chunk-7GWCXQET.js → chunk-KIB4MYBL.js} +1 -1
- package/{chunk-YF6FW4JS.js → chunk-KXU2UTG4.js} +1 -1
- package/{chunk-7KVBF3B3.js → chunk-L5D4JLN3.js} +1 -1
- package/chunk-LJ3ULEOG.js +1 -0
- package/chunk-MADB4EX7.js +1 -0
- package/{chunk-MKHNYYLL.js → chunk-MCLDJCPW.js} +1 -1
- package/chunk-MEFACGK4.js +6 -0
- package/{chunk-APZSWRAC.js → chunk-NBBSISDC.js} +1 -1
- package/{chunk-WJOMCF4H.js → chunk-NNUHZ2L7.js} +1 -1
- package/chunk-ODDKCMXA.js +1 -0
- package/chunk-P724RQTD.js +1 -0
- package/chunk-PN3DBUJI.js +1 -0
- package/{chunk-UVM5AF3P.js → chunk-PNJEVGID.js} +1 -1
- package/{chunk-6FEY72H5.js → chunk-PPRHD3ZV.js} +1 -1
- package/chunk-R2HH6TYJ.js +1 -0
- package/chunk-RAUCDBVO.js +1 -0
- package/{chunk-2AXD35RA.js → chunk-RCPMSNTW.js} +1 -1
- package/chunk-RE4L7JTP.js +1 -0
- package/{chunk-JZVJHJKF.js → chunk-RLYI2YCZ.js} +2 -2
- package/{chunk-2ICYPGI3.js → chunk-RSXKKDD4.js} +1 -1
- package/{chunk-FUZ2WCNJ.js → chunk-RTVM3BJK.js} +1 -1
- package/{chunk-H2JFCXJJ.js → chunk-TZYGTULV.js} +1 -1
- package/{chunk-EWNWUTPO.js → chunk-UI6ZWFOT.js} +1 -1
- package/{chunk-DFGJKS5P.js → chunk-UZM3TLJO.js} +1 -1
- package/{chunk-O4IO27RV.js → chunk-VAAQUFLX.js} +1 -1
- package/chunk-W4MEGIZH.js +1 -0
- package/{chunk-OVUQHKG5.js → chunk-WWJFELTU.js} +1 -1
- package/{chunk-MWZZ2BGA.js → chunk-XKAASYKO.js} +1 -1
- package/{chunk-TIBSEND5.js → chunk-XRL6GPXW.js} +1 -1
- package/{chunk-BDT56US4.js → chunk-YA3PYBIG.js} +1 -1
- package/{chunk-6PGJBRJV.js → chunk-YOP6HOXH.js} +1 -1
- package/{chunk-KEKOXSB2.js → chunk-ZWADJ4OM.js} +1 -1
- package/index.html +2 -2
- package/main-SOHQOOGR.js +1 -0
- package/package.json +1 -1
- package/{styles-LPOGBXRK.css → styles-5VTLDYYE.css} +1 -1
- package/chunk-3IMBZVOU.js +0 -1
- package/chunk-53YXMY4O.js +0 -1
- package/chunk-BNJ6YIRT.js +0 -6
- package/chunk-CNKMCZR3.js +0 -1
- package/chunk-EPS56WMH.js +0 -1
- package/chunk-GGDGKIVD.js +0 -1
- package/chunk-I52AX5MH.js +0 -1
- package/chunk-I7CCITLM.js +0 -7
- package/chunk-IBBJHMWR.js +0 -1
- package/chunk-INATF4ZS.js +0 -1
- package/chunk-KSYEGP4X.js +0 -1
- package/chunk-MR65TJSP.js +0 -1
- package/chunk-NC3TCAYJ.js +0 -1
- package/chunk-NGJEATCE.js +0 -1
- package/chunk-PHK42XHX.js +0 -1
- package/chunk-TODNKYG6.js +0 -1
- package/chunk-UFBCQOH4.js +0 -1
- package/chunk-URCWYHPG.js +0 -1
- package/chunk-UUHR4SZC.js +0 -1
- package/chunk-UVF6BCW2.js +0 -1
- package/chunk-VWJ5QJXJ.js +0 -1
- package/main-4O3FFDTG.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Xt}from"./chunk-H2JFCXJJ.js";import{a as Wt,b as zt,o as Z}from"./chunk-BNJ6YIRT.js";import{a as Ht}from"./chunk-INATF4ZS.js";import{a as Kt}from"./chunk-NE337TA6.js";import"./chunk-DNHLTHLR.js";import"./chunk-UVM5AF3P.js";import"./chunk-6PGJBRJV.js";import{a as U}from"./chunk-FUZ2WCNJ.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-MWZZ2BGA.js";import{b as Ct}from"./chunk-6FEY72H5.js";import{a as ut,c as Tt}from"./chunk-TODNKYG6.js";import"./chunk-CSMWKX44.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-PLMZCRFV.js";import{c as dt}from"./chunk-MKHNYYLL.js";import{ia as Ft}from"./chunk-VWJ5QJXJ.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-I7CCITLM.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-TZYGTULV.js";import{a as Wt,b as zt,o as Z}from"./chunk-MEFACGK4.js";import{a as Ht}from"./chunk-DURFGYD7.js";import{a as Kt}from"./chunk-BRMUJELY.js";import"./chunk-DNHLTHLR.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import{a as U}from"./chunk-RTVM3BJK.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-XKAASYKO.js";import{b as Ct}from"./chunk-PPRHD3ZV.js";import{a as ut,c as Tt}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.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-6KER52JR.js";import{c as dt}from"./chunk-MCLDJCPW.js";import{ia as Ft}from"./chunk-7IRVNC4S.js";import{Ab as E,Bb as r,Cb as a,Db as u,E as tt,Eb as v,Fb as A,Gb as M,Hb as x,Lc as K,Nb as N,Nc as mt,Ob as R,Pb as b,Qb as q,Ra as o,Rb as j,Sb as H,Tb as g,Ub as s,Xb as y,Y as w,Ya as nt,_b as T,da as C,dc as ot,ea as f,eb as it,ec as at,fc as G,gc as p,hc as V,ia as et,ic as O,jb as F,jc as Q,lc as rt,mc as lt,nc as st,rc as pt,sb as c,sc as _t,tc as B,ua as h,ub as X,vc as L,xb as d,yb as D,zb as S,zc as ct}from"./chunk-2M52SFS6.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 +1 @@
|
|
|
1
|
-
import{b as A}from"./chunk-
|
|
1
|
+
import{b as A}from"./chunk-PNJEVGID.js";import{b as S}from"./chunk-PPRHD3ZV.js";import{c as M}from"./chunk-C5EHOW7U.js";import{o as P}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import{Bb as i,Cb as r,Db as _,E as p,Pb as C,Ra as c,Y as o,eb as g,gc as u,hc as E,jb as d,p as l,ua as m,xb as f}from"./chunk-2M52SFS6.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{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-
|
|
1
|
+
import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-7IRVNC4S.js";import{Ba as a}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as B}from"./chunk-
|
|
1
|
+
import{b as B}from"./chunk-PPRHD3ZV.js";import{a as D,v as U}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import{pa as R}from"./chunk-7IRVNC4S.js";import{Ab as I,Bb as o,Cb as a,Db as u,E as S,Hb as v,Oa as T,Pb as p,Ra as l,Tb as A,Ub as c,Y as O,da as M,ea as L,eb as f,gc as _,hc as g,jb as E,lc as $,mc as k,nc as y,sb as m,tb as P,ua as d,ub as h,wc as G,xb as b,yb as N,yc as w,zb as x}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
|
|
2
2
|
`),t="";for(let i=0;i<e.length;i++)t+=`<li>${e[i]}</li>`;return t}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["app-logs"]],decls:15,vars:2,consts:()=>{let n;n=$localize`Timestamp`;let e;e=$localize`Backup ID`;let t;t=$localize`Message`;let i;return i=$localize`No data available`,[n,e,t,i,[3,"dataChange","data","loading"],["table-header",""],["table-no-rows",""],[3,"click"],[1,"id"],["spk-button","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol",3,"innerHTML"]]},template:function(e,t){e&1&&(o(0,"h3"),_(1,"Logs"),a(),o(2,"spk-table",4),y("dataChange",function(r){return k(t.logs,r)||(t.logs=r),r}),o(3,"tr",5)(4,"th"),p(5,0),a(),o(6,"th"),p(7,1),a(),o(8,"th"),p(9,2),a(),u(10,"th"),a(),x(11,z,13,9,null,null,N),o(13,"div",6),p(14,3),a()()),e&2&&(l(2),$("data",t.logs),m("loading",t.logsLoading()),l(9),I(t.logs()))},dependencies:[U,R,D],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as $}from"./chunk-
|
|
1
|
+
import{b as $}from"./chunk-PNJEVGID.js";import{a as R}from"./chunk-DL6QZSL6.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import"./chunk-AXHB6A4N.js";import"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as k}from"./chunk-PPRHD3ZV.js";import{a as A,d as N}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as B,g as O}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Ab as g,Bb as F,Cb as a,Db as r,Lc as M,Nb as _,Ob as c,Pb as u,Ra as i,Sb as T,Tb as I,Y as m,eb as C,gc as E,ic as L,jb as p,ua as l,xb as s,yb as f,zb as S}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ia as be}from"./chunk-VWJ5QJXJ.js";import{$a as M,Ab as Z,Bb as ee,Cb as r,Db as l,Eb as H,Gc as Oe,Hb as G,Ib as T,Mc as x,Oc as b,Qc as fe,Ra as m,S as ae,Ta as pe,Ub as y,Va as ke,Vb as d,Wb as w,Xb as p,Y as I,Ya as F,Za as K,_a as de,da as h,dc as z,ea as f,eb as S,ec as P,fc as L,gb as ye,gc as De,hc as C,ic as xe,jc as U,kb as D,mc as te,nc as ie,oa as le,oc as ne,pa as W,pb as we,pc as he,qa as u,qc as Y,ra as q,rc as A,ta as ce,tb as N,tc as oe,ua as _,ub as j,uc as se,vb as V,wb as ue,xb as Q,yb as O,zb as J}from"./chunk-I7CCITLM.js";import{a as B,b as X,c as Se}from"./chunk-C6Q5SG76.js";var E=["*"],Fe=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Pe=["[icon]","[title]","*","[content]"];function Ae(n,c){n&1&&(r(0,"spk-icon",3),C(1,"info"),l())}function je(n,c){n&1&&(r(0,"spk-icon",3),C(1,"info"),l())}function He(n,c){n&1&&(r(0,"spk-icon",3),C(1,"warning"),l())}function Le(n,c){n&1&&(r(0,"spk-icon",3),C(1,"warning-octagon"),l())}function Be(n,c){n&1&&(r(0,"spk-icon",3),C(1,"check-circle"),l())}function We(n,c){n&1&&(r(0,"spk-icon",3),C(1,"question"),l())}function qe(n,c){if(n&1){let e=T();r(0,"spk-icon",7),y("click",function(){h(e);let i=d();return f(i.removeAlert())}),C(1,"plus"),l()}}var Ne=["dialogRef"];function Qe(n,c){if(n&1){let e=T();r(0,"div",4),y("click",function(){h(e);let i=d();return f(i.isOpen.set(!1))}),l()}}var Ue=["spk-button",""];var Ee=["triggerRef"],$e=["popoverRef"],ze=[[["","trigger",""]],"*"],Ye=["[trigger]","*"];var Xe=()=>({closeOnButton:!1,closeOnEsc:!0});var Ge=["inputWrap"];var Ke=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Je=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"];var Ze=["option"],et=["*",[["","menu",""]]],tt=["*","[menu]"];var it=["input"],nt=["textarea"],ot=["optionsWrap"],st=[[["label"]],[["input"]],[["textarea"]]],rt=["label","input","textarea"],Me=()=>({closeOnButton:!1,closeOnEsc:!1}),ge=n=>({$implicit:n});function at(n,c){n&1&&G(0)}function lt(n,c){if(n&1&&D(0,at,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=A(6);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function ct(n,c){if(n&1&&C(0),n&2){let e=d(3).$implicit,t=d(2);U(" ",t.getLabel(e)," ")}}function pt(n,c){if(n&1){let e=T();r(0,"spk-chip",11),D(1,lt,1,4,"ng-container")(2,ct,1,1),r(3,"spk-icon",12),y("click",function(i){h(e);let o=d(2).$index,s=d(2);return f(s.removeSelectedOptionByIndex(i,o))}),C(4,"x-bold"),l()()}if(n&2){let e=d(4),t=A(6);Q(e.selectClasses()),m(),O(t?1:2)}}function dt(n,c){n&1&&G(0)}function ut(n,c){if(n&1&&D(0,dt,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=A(6);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function ht(n,c){if(n&1&&C(0),n&2){let e=d(3).$implicit,t=d(2);U(" ",t.getLabel(e)," ")}}function ft(n,c){if(n&1&&D(0,ut,1,4,"ng-container")(1,ht,1,1),n&2){d(4);let e=A(6);O(e?0:1)}}function mt(n,c){if(n&1&&D(0,pt,5,3,"spk-chip",10)(1,ft,2,1),n&2){d(3);let e=A(8);O(e?0:1)}}function gt(n,c){if(n&1&&D(0,mt,2,1),n&2){let e=c.$implicit;O(e?0:-1)}}function vt(n,c){if(n&1&&Z(0,gt,1,1,null,null,J),n&2){d();let e=A(4);ee(e)}}function _t(n,c){n&1&&G(0)}function Ct(n,c){if(n&1&&D(0,_t,1,0,"ng-container",14),n&2){d(2);let e=A(0);N("ngTemplateOutlet",e)}}function St(n,c){if(n&1&&C(0),n&2){let e,t=d(2);U(" ",(e=t.placeholderText())!==null&&e!==void 0?e:""," ")}}function kt(n,c){if(n&1&&D(0,Ct,1,1,"ng-container")(1,St,1,1),n&2){d();let e=A(0);O(e?0:1)}}function yt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"caret-down"),l())}function wt(n,c){n&1&&H(0,"spk-spinner",7)}function Dt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"list-magnifying-glass"),l())}function xt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"magnifying-glass"),l())}function Ot(n,c){if(n&1){let e=T();r(0,"spk-icon",15),y("click",function(i){h(e);let o=d();return f(o.clear(i))}),C(1,"x-bold"),l()}}function bt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"check"),l())}function Tt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"caret-up"),l())}function Et(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=d().$index,t=d();Q(t.selectClasses()),V("active",t.isSelected(e))}}function Mt(n,c){n&1&&G(0)}function It(n,c){if(n&1&&D(0,Mt,1,0,"ng-container",13),n&2){let e=d().$implicit;d();let t=A(7);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function Vt(n,c){if(n&1&&C(0),n&2){let e=d().$implicit,t=d();U(" ",t.getLabel(e)," ")}}function Rt(n,c){if(n&1){let e=T();r(0,"li",16),y("click",function(){let i=h(e).$index,o=d();return f(o.toggleOptionByIndex(i))}),D(1,Et,1,4,"spk-checkbox",17)(2,It,1,4,"ng-container")(3,Vt,1,1),l()}if(n&2){let e=c.$index,t=d(),i=A(7);V("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),m(),O(t.selectMultiple()?1:-1),m(),O(i?2:3)}}var Ft=["optionsRef"],Pt=["formFieldWrapper"],At=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],jt=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function Ht(n,c){if(n&1){let e=T();r(0,"spk-chip",12),y("click",function(i){let o=h(e).$implicit,s=d(3);return f(s.toggleOption(o,i))}),C(1),r(2,"spk-icon"),C(3,"x-bold"),l()()}if(n&2){let e,t=c.$implicit,i=d(3);Q(i.chipClass()),m(),U(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function Lt(n,c){if(n&1&&Z(0,Ht,4,3,"spk-chip",11,J),n&2){let e=d(2);ee(e.inputValue().split(","))}}function Bt(n,c){if(n&1&&(r(0,"div",6),D(1,Lt,2,0),l()),n&2){let e=d();m(),O(e.inputValue().length>0?1:-1)}}function Wt(n,c){if(n&1&&(r(0,"div",6),C(1),l()),n&2){let e=d();m(),xe(e._displayValue())}}function qt(n,c){if(n&1){let e=T();r(0,"div",13),y("click",function(i){h(e);let o=d();return f(o.deselect(i))}),p(1,3),r(2,"spk-icon",14),C(3,"x-bold"),l()()}}function Nt(n,c){n&1&&(r(0,"div",8),p(1,4),r(2,"spk-icon",14),C(3,"magnifying-glass"),l()())}function Qt(n,c){if(n&1&&(r(0,"div",15),p(1,5),r(2,"spk-icon",14),C(3,"caret-down"),l()()),n&2){let e=d();V("open",e.isOpen())}}var Ut=["dragImageElement"],$t=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],zt=["[sidenav]","[sidenav-closed-topbar]","*"];function Yt(n,c){n&1&&H(0,"div",1,0)}function Xt(n,c){if(n&1){let e=T();r(0,"div",7),y("drop",function(i){h(e);let o=d();return f(o.drop(i))})("dragover",function(i){h(e);let o=d();return f(o.dragOver(i))})("dragenter",function(){h(e);let i=d();return f(i.dragEnter())})("dragleave",function(){h(e);let i=d();return f(i.dragLeave())}),l()}}function Gt(n,c){if(n&1){let e=T();r(0,"div",8),y("dragstart",function(i){h(e);let o=d();return f(o.dragStart(i))})("dragend",function(i){h(e);let o=d();return f(o.dragEnd(i))})("drag",function(i){h(e);let o=d();return f(o.drag(i))})("touchstart",function(i){h(e);let o=d();return f(o.touchStart(i))})("touchmove",function(i){h(e);let o=d();return f(o.touchMove(i))})("touchend",function(i){h(e);let o=d();return f(o.touchEnd(i))})("touchcancel",function(i){h(e);let o=d();return f(o.touchCancel(i))}),l()}}var Kt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Jt=["[table-header]","*","[table-no-rows]"];function Zt(n,c){n&1&&H(0,"spk-progress-bar",0)}function ei(n,c){n&1&&(r(0,"div",1),p(1,2),l())}var ti=["tooltipRef"];var me=["bold","thin","light","fill"],re=(()=>{class n{#e=I(q);get currentClass(){let e=this.#e.nativeElement.innerText;for(let t=0;t<me.length;t++)if(e.endsWith(me[t]))return me[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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Mi=(()=>{class n{constructor(){this._el=I(q),this.alertService=u(null),this.id=u(null),this.alertClasses=x(()=>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:Pe,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&&(w(Fe),r(0,"div",1)(1,"div",2,0),p(3),l(),r(4,"div",2),he(5),D(6,Ae,2,0,"spk-icon",3)(7,je,2,0,"spk-icon",3)(8,He,2,0,"spk-icon",3)(9,Le,2,0,"spk-icon",3)(10,Be,2,0,"spk-icon",3)(11,We,2,0,"spk-icon",3),l(),r(12,"div",4),p(13,1),p(14,2),l(),D(15,qe,2,0,"spk-icon",5),r(16,"div",6),p(17,3),l()()),t&2){let o=De(2);m(),j("display",o.children.length?"block":"none");let s=i.alertClasses();m(5),O(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),m(9),O(i.id()?15:-1)}},dependencies:[re],encapsulation:2,changeDetection:0})}}return n})();function ve(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ii=(()=>{class n{constructor(){this.alertHistory=_([]),this.alertHistoryIsOpen=_(!1),this.alertHistoryIsHidden=_(!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=ve();this.alertHistory.update(i=>[X(B({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>X(B({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>X(B({},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=>X(B({},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=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ii={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ni=(()=>{class n{constructor(){this.dialogRef=F("dialogRef"),this.isOpen=M(!1),this.options=u(),this.closed=W(),this.defaultOptionMerge=x(()=>B(B({},ii),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&&P(i.dialogRef,Ne,5),t&2&&L()},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&&(w(),r(0,"dialog",1,0)(2,"div",2),p(3),l(),D(4,Qe,1,0,"div",3),l()),t&2){let o,s,a,k;j("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",(k=i.defaultOptionMerge().height)!==null&&k!==void 0?k:""),m(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Vi=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=I(we),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(e,t){let i=this.#i.injector,o=this.#s(),Ce=t||{},{data:s,closed:a}=Ce,k=Se(Ce,["data","closed"]);this.compRef&&this.#t(),this.insertedCompRef=fe(e,{environmentInjector:i}),this.compRef=fe(ni,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let g=this.insertedCompRef.instance?.data,v=this.insertedCompRef.instance?.closed;if(s){if(ce(g))this.insertedCompRef.setInput("data",s);else if(!ce(g))throw new Error("data is not an input signal on the passed component")}v instanceof le&&(this.closedFieldSub=v.subscribe((...Re)=>{a?.(...Re),this.#t()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",k),this.compRef.instance.closed.subscribe(()=>$());let R=this;function $(){v&&v instanceof le?v.emit(!1):a?.(void 0),R.#t()}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")}#t(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#t()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ri=(()=>{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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),oi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:Ue,ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Fi=(()=>{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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),si=(()=>{class n{#e=I(q);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&&y("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&&(w(),r(0,"div",0)(1,"spk-icon",1),C(2,"check"),l(),r(3,"spk-icon",2),C(4,"minus"),l()(),p(5))},dependencies:[re],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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var ri=["scroll","auto"],ai={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},_e=(()=>{class n{constructor(){this.#e=I(Oe),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=u(!1),this.right=u(!1),this.markForCheck=u(null),this._above=_(this.above()),this._right=_(this.right()),this.disableOpenByClick=u(!1),this.isOpen=M(!1),this.options=u(),this.closed=W(),this.defaultOptionMerge=x(()=>B(B({},ai),this.options())),this.triggerRef=F.required("triggerRef"),this.popoverRef=F.required("popoverRef"),this.id=_("--"+ve()),this.menuStyle=_(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.#t(),i),window.addEventListener("resize",()=>this.#t(),i),this.#t()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=b(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;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(ri.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#t(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,a=o+this.#i,k=s+t.width>window.innerWidth,g=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(g),this._right.set(k);else{if(s=i,a=o+this.#i,g){let R=e.top-t.height-this.#i;R<0||(a=R)}k&&(s=e.right-t.width,s<0&&(s=0));let v={left:s+"px",top:a+"px"};this.menuStyle.set(v)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(P(i.triggerRef,Ee,5),P(i.popoverRef,$e,5)),t&2&&L(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:Ye,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();w(ze),r(0,"div",2,0),y("click",function(a){return h(o),f(i.toggleIsOpen(a))}),r(2,"div",3),p(3),l(),r(4,"button",4),C(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),y("click",function(a){return h(o),f(i.isOpen()&&i.eventClose(a))}),l(),p(9,1),l()}t&2&&(j("anchor-name",i.id()),m(6),ue(i.menuStyle()),j("position-anchor",i.id()))},dependencies:[oi],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-divider"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ve=(()=>{class n{#e=I(q);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&&y("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&&(w(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 Ai=(()=>{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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ji=(()=>{class n{constructor(){this.above=u(!1),this.right=u(!1),this.keepClickedOptionActive=u(!1),this.isOpen=M(!1),this.closed=W(),this.activeOptionIndex=_(-1),this.options=de("option"),this.optionsEl=x(()=>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&&z(o,i.options,Ze,4),t&2&&L()},hostBindings:function(t,i){t&1&&y("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:tt,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();w(et),r(0,"spk-popover",1,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close("fromPopover"))}),r(2,"div",2),y("click",function(){return h(o),f(i.isOpen.set(!0))}),p(3),l(),r(4,"div",3),y("click",function(){return h(o),f(i.close("active"))}),p(5,1),l()()}t&2&&(te("isOpen",i.isOpen),N("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",oe(5,Xe)))},dependencies:[_e],encapsulation:2,changeDetection:0})}}return n})(),li=(()=>{class n{constructor(){this.value=u(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&&j("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Hi=(()=>{class n{#e=I(q);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&&y("click",function(){return i.onClick()})},ngContentSelectors:E,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(w(),H(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})();var ci=(()=>{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})(),Li=(()=>{class n{constructor(){this.#e=I(q),this.value=u(),this.label=u(),this.placeholder=u(),this.readonly=M(!1),this.lazySearch=u(!1),this.inlineSearch=u(!1),this.asText=u(!1),this.isClearable=u(!0),this.selectMultiple=u(!1),this.optionTemplate=u(null),this.selectedOptionTemplate=u(null),this.placeholderTemplate=u(null),this.isOpen=M(!1),this.isLoading=M(!1),this.options=M([]),this.selectedOptions=M([]),this.cleared=W(),this.inlineTemplate=K(pe),this.optionsWrapRef=F.required("optionsWrap"),this.inputRefInput=K("input"),this.textareaRefInput=K("textarea"),this.inputValue=_(""),this.prevInputValue=_(null),this.focusedOptionIndex=_(-1),this._isClearable=x(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=x(()=>this.#e.nativeElement.classList.toString()),this.placeholderText=x(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=x(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(i=>this.#o(i,t)):e}),this.filteredOptions=x(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:!i||o===""?e:e.filter(s=>(t?(this.#o(s,t)??"").toString().toLowerCase():(s??"").toString().toLowerCase()).includes(o))}),this.#i=b(()=>{let e=this.inputRefEl();e&&(e.disabled=this.readonly())}),this.inputRefEl=x(()=>{let e=this.inputRefInput(),t=this.textareaRefInput(),i=e?e.nativeElement:t?t.nativeElement:null;return i?(i.autocomplete="off",this.#r(i),i.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&i.addEventListener("input",o=>{let s=o.target.value,a=this.inputValue();s!==a&&(this.focusedOptionIndex.set(0),this.inputValue.set(s),this.updateInputElValue())}),i.addEventListener("inputValueChanged",o=>{let s=o.detail.value,a=this.inputValue();if(s!==a){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromSelectedOptions(),this.#t()}}),i):(console.warn("<spk-select> input element not found are you missing #input or #textarea on the projected element?"),null)}),this.openAbortController=null,this.isOpenEffect=b(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl();if(!t)return;t.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=b(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=b(()=>{let e=this.inputRefEl();e&&e.value!==this._inputValue&&(this.setSelectedOptionsFromValue(e.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=x(()=>{let e=this.selectedOptions();return this.label()?e.map(i=>this.getLabel(i)).join(", "):e.join(", ")}),this.inputState=x(()=>this.selectedOptions().length>0&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=x(()=>this.inlineSearch()||this.lazySearch()),this.#s=b(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i)})}#e;#i;#s;setSelectedOptionsFromValue(e){let t=this.options(),i=this.value(),o=this.selectMultiple(),s=e.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let a=o?s:[s[0]],k=t.filter(g=>{let v=i?this.#o(g,i)?.toString():g?.toString();return v&&a.includes(v)});this.selectedOptions.set(o?k:[k[0]])}setInputValueFromSelectedOptions(){let e=this.selectedOptions(),t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(e){let t=this.label();return t?this.#o(e,t):e}toggleOptionByIndex(e,t){let i=this.filteredOptions()[e];if(!i)throw new Error("Option not found: this should never happen if it does report it as an issue on github");t&&t.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),a=this.value(),k=this.selectedOptionValues(),g=a?this.#o(i,a):i;this.prevInputValue.set(null),this.selectedOptions.update(v=>{let R=k.indexOf(g);if(R>-1){let $=[...v.slice(0,R),...v.slice(R+1)];return s||$.length>0?$:v}else return this.focusedOptionIndex.set(e),o?[...v,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,t),...i.slice(t+1)]),this.setInputValueFromSelectedOptions()}isSelected(e){let t=this.value(),i=this.filteredOptions()[e],o=t?this.#o(i,t):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#t())}#t(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let i=this.filteredOptions().findIndex(o=>t?this.#o(o,t)===e:o===e);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue();this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromSelectedOptions()),this.hasSearch()&&this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();e&&(e.value=t,e.dispatchEvent(new Event("input")))}#o(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}#r(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}})}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&&(z(o,i.inlineTemplate,pe,5),z(o,i.inputRefInput,it,5),z(o,i.textareaRefInput,nt,5)),t&2&&L(3)},viewQuery:function(t,i){t&1&&P(i.optionsWrapRef,ot,5),t&2&&L()},hostVars:2,hostBindings:function(t,i){t&2&&V("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:rt,decls:31,vars:19,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(t,i){if(t&1){let o=T();w(st),he(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),r(10,"spk-popover",2,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close())}),r(12,"spk-form-field",3),y("click",function(){return h(o),f(i.open())}),p(13,0,["ngProjectAs","label",5,["label"]]),r(14,"div",4)(15,"div",5),D(16,vt,2,0)(17,kt,2,1),p(18,1),p(19,2),l()(),D(20,yt,2,0,"spk-icon",6)(21,wt,1,0,"spk-spinner",7)(22,Dt,2,0,"spk-icon",6)(23,xt,2,0,"spk-icon",6)(24,Ot,2,0,"spk-icon",6)(25,bt,2,0,"spk-icon",6)(26,Tt,2,0,"spk-icon",6),l(),r(27,"div",8,1),Z(29,Rt,4,6,"li",9,J),l()()}if(t&2){Y(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),a=i.inlineTemplate();m(4);let k=Y(i.selectedOptions()),g=i.inputState();m(2),Y(s||o||a),m(),Y(o||a),m();let v=Y(!i.asText()&&i.selectMultiple()),R=i.hasSearch()&&i.isOpen()&&v;m(2),te("isOpen",i.isOpen),N("disableOpenByClick",!0)("options",oe(18,Me)),m(2),Q(i.readonly()?"readonly":""),V("autosize",i.selectMultiple()),m(2),V("show-search-text",R),m(),V("is-selected",g==="selected"),m(),O(k.length>0?16:R?-1:17),m(4),O(g==="closed"?20:g==="loading"?21:g==="open-searching"?22:g==="searching"?23:g==="selected"&&i._isClearable()?24:g==="selected"&&!i._isClearable()?25:26),m(9),ee(i.filteredOptions())}},dependencies:[be,_e,Ve,re,si,ci,Ie],encapsulation:2,changeDetection:0})}}return n})(),Te=(()=>{class n{constructor(){this.#e=I(q),this.value=u(null),this.#i=b(()=>{this.#e.nativeElement.value=this.value()})}#e;#i;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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),pi=["primary","accent","warn","error","success"],Bi=(()=>{class n{constructor(){this.#e=I(ke),this.#i=I(q),this.optionsRef=F("optionsRef"),this.options=de(Te),this.formFieldWrapperRef=F.required("formFieldWrapper"),this.inputWrapRef=F.required("inputWrap"),this.inputValue=M(""),this.readonly=u(!1),this.isFreeText=u(!1),this.selectMultiple=u(!1),this.hideClearButton=u(!1),this.displayValue=u(""),this.displayFn=u(e=>`${e}`),this.above=u(!1),this.right=u(!1),this.change=W(),this.#s=_(!1),this.#t=_(null),this.#o=_(null),this.#r=_(!1),this.#n=_(-1),this.isOpen=_(!1),this._isOpen=_(!1),this.isSearchInput=x(()=>this.#t()?.type==="search"),this.chipClass=x(()=>Array.from(this.#i.nativeElement.classList).filter(e=>pi.includes(e)).join(" ")),this._displayValue=x(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=x(()=>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.#i.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.#t.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.#t();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.#t()&&(this.#t().value=e??"",this.#t().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;#i;#s;#t;#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.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#t()?.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.#t()?.focus():(this.isOpen.set(!1),this.#t()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#t()?.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.#t()?.blur(),this.#m()}open(e){e.preventDefault(),this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#t().focus(),this.#t().value="",this.#t().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#t().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.#t();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&&z(o,i.options,Te,4),t&2&&L()},viewQuery:function(t,i){t&1&&(P(i.optionsRef,Ft,5),P(i.formFieldWrapperRef,Pt,5),P(i.inputWrapRef,Ge,5)),t&2&&L(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:jt,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();w(At),r(0,"spk-popover",3,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close())}),r(2,"spk-form-field",4),y("click",function(a){return h(o),f(i.open(a))}),p(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),D(6,Bt,2,1,"div",6)(7,Wt,2,1,"div",6),p(8,1),l(),D(9,qt,4,0,"div",7)(10,Nt,4,0,"div",8)(11,Qt,4,2,"div",9),l(),r(12,"div",10,2),p(14,2),l()()}t&2&&(te("isOpen",i.isOpen),N("disableOpenByClick",!0)("options",oe(7,Me)),m(2),Q(i.readonly()?"readonly":""),m(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),m(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[Ve,re,Ie,_e],encapsulation:2,changeDetection:0})}}return n})(),Wi=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=u(!1),this.isOpen=M(!1),this.type=u(""),this.dragImageElement=F.required("dragImageElement"),this.dragIsEnding=_(!1),this.dragIsOnScreen=_(!0),this.isDragging=_(!1),this.dragPositionX=_(0),this.dragActualPositionX=x(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=x(()=>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.#i(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#i(e)}#i(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#i(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&&P(i.dragImageElement,Ut,5),t&2&&L()},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: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&&(w($t),D(0,Yt,2,0,"div",1)(1,Xt,1,0,"div",2),r(2,"div",3),p(3),l(),r(4,"div",4),D(5,Gt,1,0,"div",5),r(6,"div",6),p(7,1),l(),r(8,"main"),p(9,2),l()()),t&2&&(O(i.type()==="overlay"?0:-1),m(),O(i.type()==="overlay"&&i.isDragging()?1:-1),m(3),j("transform",i.draggingStyle()),m(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},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-stepper"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ni=(()=>{class n{constructor(){this.tableColumns=u([]),this.loading=u(!1),this.columnSizes=x(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=u([]),this.dataChange=W(),this.#e=null,this.#i=_(!1),this.sortByColumn=M(null),this.e=b(()=>{let e=this.sortByColumn();if(e===null)return this.#i()||(this.#e=this.data(),this.#i.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 k=s[t],g=a[t],v=0;return typeof k=="number"&&typeof g=="number"&&(v=k-g),k instanceof Date&&g instanceof Date&&(v=k.getTime()-g.getTime()),typeof k=="string"&&typeof g=="string"&&(v=k.localeCompare(g,void 0,{sensitivity:"base"})),i?-v:v});this.dataChange.emit(o)})}#e;#i;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&&j("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Jt,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(w(Kt),r(0,"thead"),p(1),D(2,Zt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),p(4,1),l(),D(5,ei,2,0,"div",1)),t&2&&(m(2),O(i.loading()?2:-1),m(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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ui=(()=>{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&&(w(),r(0,"div",0),H(1,"div",1),l(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),$i=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=u(!1),this.above=u(!1),this.right=u(!1),this._above=_(this.above()),this._right=_(this.right()),this.message=u.required(),this.isOpen=M(!1),this.closed=W(),this.triggerRef=F.required("triggerRef"),this.tooltipRef=F.required("tooltipRef"),this.id=_("--"+ve()),this.menuStyle=_(null),this.isCalculatingPosition=x(()=>{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.#i(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#i(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,k=s+t.width>window.innerWidth,g=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(g),this._right.set(k);else{if(this.above()){let v=e.top-t.height-this.#e;v>=0&&(a=v)}else g&&(a=e.top-t.height-this.#e);if(this.right()){let v=e.right-t.width;v>=0&&(s=v)}else k&&(a=g?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&&(P(i.triggerRef,Ee,5),P(i.tooltipRef,ti,5)),t&2&&L(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();w(),r(0,"div",2,0),y("mouseover",function(){return h(o),f(i.isOpen.set(!0))})("mouseout",function(){return h(o),f(i.isOpen.set(!1))}),p(2),l(),r(3,"div",3,1),C(5),l()}t&2&&(j("anchor-name",i.id()),m(3),ue(i.menuStyle()),j("position-anchor",i.id()),m(2),U(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var zi=(()=>{class n{constructor(){this.filesOver=_(!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&&y("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{re as a,Mi as b,Ii as c,ni as d,Vi as e,Ri as f,oi as g,Fi as h,si as i,Ie as j,Pi as k,Ve as l,Ai as m,ji as n,li as o,Hi as p,Li as q,Te as r,Bi as s,Wi as t,qi as u,Ni as v,Qi as w,Ui as x,$i as y,zi as z};
|
|
1
|
+
import{ia as be}from"./chunk-7IRVNC4S.js";import{$a as M,Ab as ee,Bb as r,Cb as l,Db as H,Fc as Oe,Gb as G,Hb as T,Lc as x,Nc as b,Pc as fe,Ra as m,S as ae,Ta as pe,Tb as y,Ub as d,Va as ke,Vb as w,Wb as p,Y as I,Ya as F,Za as K,_a as de,cc as z,da as h,dc as P,ea as f,eb as S,ec as L,fc as De,gb as ye,gc as C,hc as xe,ic as U,jb as D,lc as te,mc as ie,nc as ne,oa as le,ob as we,oc as he,pa as W,pc as Y,qa as u,qc as A,ra as q,sb as N,sc as oe,ta as ce,tb as j,tc as se,ua as _,ub as V,vb as ue,wb as Q,xb as O,yb as J,zb as Z}from"./chunk-2M52SFS6.js";import{a as B,b as X,c as Se}from"./chunk-C6Q5SG76.js";var E=["*"],Fe=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Pe=["[icon]","[title]","*","[content]"];function Ae(n,c){n&1&&(r(0,"spk-icon",3),C(1,"info"),l())}function je(n,c){n&1&&(r(0,"spk-icon",3),C(1,"info"),l())}function He(n,c){n&1&&(r(0,"spk-icon",3),C(1,"warning"),l())}function Le(n,c){n&1&&(r(0,"spk-icon",3),C(1,"warning-octagon"),l())}function Be(n,c){n&1&&(r(0,"spk-icon",3),C(1,"check-circle"),l())}function We(n,c){n&1&&(r(0,"spk-icon",3),C(1,"question"),l())}function qe(n,c){if(n&1){let e=T();r(0,"spk-icon",7),y("click",function(){h(e);let i=d();return f(i.removeAlert())}),C(1,"plus"),l()}}var Ne=["dialogRef"];function Qe(n,c){if(n&1){let e=T();r(0,"div",4),y("click",function(){h(e);let i=d();return f(i.isOpen.set(!1))}),l()}}var Ue=["spk-button",""];var Ee=["triggerRef"],$e=["popoverRef"],ze=[[["","trigger",""]],"*"],Ye=["[trigger]","*"];var Xe=()=>({closeOnButton:!1,closeOnEsc:!0});var Ge=["inputWrap"];var Ke=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Je=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"];var Ze=["option"],et=["*",[["","menu",""]]],tt=["*","[menu]"];var it=["input"],nt=["textarea"],ot=["optionsWrap"],st=[[["label"]],[["input"]],[["textarea"]]],rt=["label","input","textarea"],Me=()=>({closeOnButton:!1,closeOnEsc:!1}),ge=n=>({$implicit:n});function at(n,c){n&1&&G(0)}function lt(n,c){if(n&1&&D(0,at,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=A(6);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function ct(n,c){if(n&1&&C(0),n&2){let e=d(3).$implicit,t=d(2);U(" ",t.getLabel(e)," ")}}function pt(n,c){if(n&1){let e=T();r(0,"spk-chip",11),D(1,lt,1,4,"ng-container")(2,ct,1,1),r(3,"spk-icon",12),y("click",function(i){h(e);let o=d(2).$index,s=d(2);return f(s.removeSelectedOptionByIndex(i,o))}),C(4,"x-bold"),l()()}if(n&2){let e=d(4),t=A(6);Q(e.selectClasses()),m(),O(t?1:2)}}function dt(n,c){n&1&&G(0)}function ut(n,c){if(n&1&&D(0,dt,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=A(6);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function ht(n,c){if(n&1&&C(0),n&2){let e=d(3).$implicit,t=d(2);U(" ",t.getLabel(e)," ")}}function ft(n,c){if(n&1&&D(0,ut,1,4,"ng-container")(1,ht,1,1),n&2){d(4);let e=A(6);O(e?0:1)}}function mt(n,c){if(n&1&&D(0,pt,5,3,"spk-chip",10)(1,ft,2,1),n&2){d(3);let e=A(8);O(e?0:1)}}function gt(n,c){if(n&1&&D(0,mt,2,1),n&2){let e=c.$implicit;O(e?0:-1)}}function vt(n,c){if(n&1&&Z(0,gt,1,1,null,null,J),n&2){d();let e=A(4);ee(e)}}function _t(n,c){n&1&&G(0)}function Ct(n,c){if(n&1&&D(0,_t,1,0,"ng-container",14),n&2){d(2);let e=A(0);N("ngTemplateOutlet",e)}}function St(n,c){if(n&1&&C(0),n&2){let e,t=d(2);U(" ",(e=t.placeholderText())!==null&&e!==void 0?e:""," ")}}function kt(n,c){if(n&1&&D(0,Ct,1,1,"ng-container")(1,St,1,1),n&2){d();let e=A(0);O(e?0:1)}}function yt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"caret-down"),l())}function wt(n,c){n&1&&H(0,"spk-spinner",7)}function Dt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"list-magnifying-glass"),l())}function xt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"magnifying-glass"),l())}function Ot(n,c){if(n&1){let e=T();r(0,"spk-icon",15),y("click",function(i){h(e);let o=d();return f(o.clear(i))}),C(1,"x-bold"),l()}}function bt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"check"),l())}function Tt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"caret-up"),l())}function Et(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=d().$index,t=d();Q(t.selectClasses()),V("active",t.isSelected(e))}}function Mt(n,c){n&1&&G(0)}function It(n,c){if(n&1&&D(0,Mt,1,0,"ng-container",13),n&2){let e=d().$implicit;d();let t=A(7);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function Vt(n,c){if(n&1&&C(0),n&2){let e=d().$implicit,t=d();U(" ",t.getLabel(e)," ")}}function Rt(n,c){if(n&1){let e=T();r(0,"li",16),y("click",function(){let i=h(e).$index,o=d();return f(o.toggleOptionByIndex(i))}),D(1,Et,1,4,"spk-checkbox",17)(2,It,1,4,"ng-container")(3,Vt,1,1),l()}if(n&2){let e=c.$index,t=d(),i=A(7);V("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),m(),O(t.selectMultiple()?1:-1),m(),O(i?2:3)}}var Ft=["optionsRef"],Pt=["formFieldWrapper"],At=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],jt=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function Ht(n,c){if(n&1){let e=T();r(0,"spk-chip",12),y("click",function(i){let o=h(e).$implicit,s=d(3);return f(s.toggleOption(o,i))}),C(1),r(2,"spk-icon"),C(3,"x-bold"),l()()}if(n&2){let e,t=c.$implicit,i=d(3);Q(i.chipClass()),m(),U(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function Lt(n,c){if(n&1&&Z(0,Ht,4,3,"spk-chip",11,J),n&2){let e=d(2);ee(e.inputValue().split(","))}}function Bt(n,c){if(n&1&&(r(0,"div",6),D(1,Lt,2,0),l()),n&2){let e=d();m(),O(e.inputValue().length>0?1:-1)}}function Wt(n,c){if(n&1&&(r(0,"div",6),C(1),l()),n&2){let e=d();m(),xe(e._displayValue())}}function qt(n,c){if(n&1){let e=T();r(0,"div",13),y("click",function(i){h(e);let o=d();return f(o.deselect(i))}),p(1,3),r(2,"spk-icon",14),C(3,"x-bold"),l()()}}function Nt(n,c){n&1&&(r(0,"div",8),p(1,4),r(2,"spk-icon",14),C(3,"magnifying-glass"),l()())}function Qt(n,c){if(n&1&&(r(0,"div",15),p(1,5),r(2,"spk-icon",14),C(3,"caret-down"),l()()),n&2){let e=d();V("open",e.isOpen())}}var Ut=["dragImageElement"],$t=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],zt=["[sidenav]","[sidenav-closed-topbar]","*"];function Yt(n,c){n&1&&H(0,"div",1,0)}function Xt(n,c){if(n&1){let e=T();r(0,"div",7),y("drop",function(i){h(e);let o=d();return f(o.drop(i))})("dragover",function(i){h(e);let o=d();return f(o.dragOver(i))})("dragenter",function(){h(e);let i=d();return f(i.dragEnter())})("dragleave",function(){h(e);let i=d();return f(i.dragLeave())}),l()}}function Gt(n,c){if(n&1){let e=T();r(0,"div",8),y("dragstart",function(i){h(e);let o=d();return f(o.dragStart(i))})("dragend",function(i){h(e);let o=d();return f(o.dragEnd(i))})("drag",function(i){h(e);let o=d();return f(o.drag(i))})("touchstart",function(i){h(e);let o=d();return f(o.touchStart(i))})("touchmove",function(i){h(e);let o=d();return f(o.touchMove(i))})("touchend",function(i){h(e);let o=d();return f(o.touchEnd(i))})("touchcancel",function(i){h(e);let o=d();return f(o.touchCancel(i))}),l()}}var Kt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Jt=["[table-header]","*","[table-no-rows]"];function Zt(n,c){n&1&&H(0,"spk-progress-bar",0)}function ei(n,c){n&1&&(r(0,"div",1),p(1,2),l())}var ti=["tooltipRef"];var me=["bold","thin","light","fill"],re=(()=>{class n{#e=I(q);get currentClass(){let e=this.#e.nativeElement.innerText;for(let t=0;t<me.length;t++)if(e.endsWith(me[t]))return me[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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Mi=(()=>{class n{constructor(){this._el=I(q),this.alertService=u(null),this.id=u(null),this.alertClasses=x(()=>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:Pe,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&&(w(Fe),r(0,"div",1)(1,"div",2,0),p(3),l(),r(4,"div",2),he(5),D(6,Ae,2,0,"spk-icon",3)(7,je,2,0,"spk-icon",3)(8,He,2,0,"spk-icon",3)(9,Le,2,0,"spk-icon",3)(10,Be,2,0,"spk-icon",3)(11,We,2,0,"spk-icon",3),l(),r(12,"div",4),p(13,1),p(14,2),l(),D(15,qe,2,0,"spk-icon",5),r(16,"div",6),p(17,3),l()()),t&2){let o=De(2);m(),j("display",o.children.length?"block":"none");let s=i.alertClasses();m(5),O(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),m(9),O(i.id()?15:-1)}},dependencies:[re],encapsulation:2,changeDetection:0})}}return n})();function ve(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ii=(()=>{class n{constructor(){this.alertHistory=_([]),this.alertHistoryIsOpen=_(!1),this.alertHistoryIsHidden=_(!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=ve();this.alertHistory.update(i=>[X(B({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>X(B({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>X(B({},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=>X(B({},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=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ii={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ni=(()=>{class n{constructor(){this.dialogRef=F("dialogRef"),this.isOpen=M(!1),this.options=u(),this.closed=W(),this.defaultOptionMerge=x(()=>B(B({},ii),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&&P(i.dialogRef,Ne,5),t&2&&L()},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&&(w(),r(0,"dialog",1,0)(2,"div",2),p(3),l(),D(4,Qe,1,0,"div",3),l()),t&2){let o,s,a,k;j("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",(k=i.defaultOptionMerge().height)!==null&&k!==void 0?k:""),m(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Vi=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=I(we),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(e,t){let i=this.#i.injector,o=this.#s(),Ce=t||{},{data:s,closed:a}=Ce,k=Se(Ce,["data","closed"]);this.compRef&&this.#t(),this.insertedCompRef=fe(e,{environmentInjector:i}),this.compRef=fe(ni,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let g=this.insertedCompRef.instance?.data,v=this.insertedCompRef.instance?.closed;if(s){if(ce(g))this.insertedCompRef.setInput("data",s);else if(!ce(g))throw new Error("data is not an input signal on the passed component")}v instanceof le&&(this.closedFieldSub=v.subscribe((...Re)=>{a?.(...Re),this.#t()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",k),this.compRef.instance.closed.subscribe(()=>$());let R=this;function $(){v&&v instanceof le?v.emit(!1):a?.(void 0),R.#t()}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")}#t(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#t()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ri=(()=>{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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),oi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:Ue,ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Fi=(()=>{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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),si=(()=>{class n{#e=I(q);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&&y("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&&(w(),r(0,"div",0)(1,"spk-icon",1),C(2,"check"),l(),r(3,"spk-icon",2),C(4,"minus"),l()(),p(5))},dependencies:[re],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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var ri=["scroll","auto"],ai={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},_e=(()=>{class n{constructor(){this.#e=I(Oe),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=u(!1),this.right=u(!1),this.markForCheck=u(null),this._above=_(this.above()),this._right=_(this.right()),this.disableOpenByClick=u(!1),this.isOpen=M(!1),this.options=u(),this.closed=W(),this.defaultOptionMerge=x(()=>B(B({},ai),this.options())),this.triggerRef=F.required("triggerRef"),this.popoverRef=F.required("popoverRef"),this.id=_("--"+ve()),this.menuStyle=_(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.#t(),i),window.addEventListener("resize",()=>this.#t(),i),this.#t()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=b(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;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(ri.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#t(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,a=o+this.#i,k=s+t.width>window.innerWidth,g=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(g),this._right.set(k);else{if(s=i,a=o+this.#i,g){let R=e.top-t.height-this.#i;R<0||(a=R)}k&&(s=e.right-t.width,s<0&&(s=0));let v={left:s+"px",top:a+"px"};this.menuStyle.set(v)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(P(i.triggerRef,Ee,5),P(i.popoverRef,$e,5)),t&2&&L(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:Ye,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();w(ze),r(0,"div",2,0),y("click",function(a){return h(o),f(i.toggleIsOpen(a))}),r(2,"div",3),p(3),l(),r(4,"button",4),C(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),y("click",function(a){return h(o),f(i.isOpen()&&i.eventClose(a))}),l(),p(9,1),l()}t&2&&(j("anchor-name",i.id()),m(6),ue(i.menuStyle()),j("position-anchor",i.id()))},dependencies:[oi],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-divider"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ve=(()=>{class n{#e=I(q);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&&y("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&&(w(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 Ai=(()=>{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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ji=(()=>{class n{constructor(){this.above=u(!1),this.right=u(!1),this.keepClickedOptionActive=u(!1),this.isOpen=M(!1),this.closed=W(),this.activeOptionIndex=_(-1),this.options=de("option"),this.optionsEl=x(()=>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&&z(o,i.options,Ze,4),t&2&&L()},hostBindings:function(t,i){t&1&&y("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:tt,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();w(et),r(0,"spk-popover",1,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close("fromPopover"))}),r(2,"div",2),y("click",function(){return h(o),f(i.isOpen.set(!0))}),p(3),l(),r(4,"div",3),y("click",function(){return h(o),f(i.close("active"))}),p(5,1),l()()}t&2&&(te("isOpen",i.isOpen),N("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",oe(5,Xe)))},dependencies:[_e],encapsulation:2,changeDetection:0})}}return n})(),li=(()=>{class n{constructor(){this.value=u(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&&j("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Hi=(()=>{class n{#e=I(q);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&&y("click",function(){return i.onClick()})},ngContentSelectors:E,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(w(),H(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})();var ci=(()=>{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})(),Li=(()=>{class n{constructor(){this.#e=I(q),this.value=u(),this.label=u(),this.placeholder=u(),this.readonly=M(!1),this.lazySearch=u(!1),this.inlineSearch=u(!1),this.asText=u(!1),this.isClearable=u(!0),this.selectMultiple=u(!1),this.optionTemplate=u(null),this.selectedOptionTemplate=u(null),this.placeholderTemplate=u(null),this.isOpen=M(!1),this.isLoading=M(!1),this.options=M([]),this.selectedOptions=M([]),this.cleared=W(),this.inlineTemplate=K(pe),this.optionsWrapRef=F.required("optionsWrap"),this.inputRefInput=K("input"),this.textareaRefInput=K("textarea"),this.inputValue=_(""),this.prevInputValue=_(null),this.focusedOptionIndex=_(-1),this._isClearable=x(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=x(()=>this.#e.nativeElement.classList.toString()),this.placeholderText=x(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=x(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(i=>this.#o(i,t)):e}),this.filteredOptions=x(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:!i||o===""?e:e.filter(s=>(t?(this.#o(s,t)??"").toString().toLowerCase():(s??"").toString().toLowerCase()).includes(o))}),this.#i=b(()=>{let e=this.inputRefEl();e&&(e.disabled=this.readonly())}),this.inputRefEl=x(()=>{let e=this.inputRefInput(),t=this.textareaRefInput(),i=e?e.nativeElement:t?t.nativeElement:null;return i?(i.autocomplete="off",this.#r(i),i.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&i.addEventListener("input",o=>{let s=o.target.value,a=this.inputValue();s!==a&&(this.focusedOptionIndex.set(0),this.inputValue.set(s),this.updateInputElValue())}),i.addEventListener("inputValueChanged",o=>{let s=o.detail.value,a=this.inputValue();if(s!==a){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromSelectedOptions(),this.#t()}}),i):(console.warn("<spk-select> input element not found are you missing #input or #textarea on the projected element?"),null)}),this.openAbortController=null,this.isOpenEffect=b(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl();if(!t)return;t.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=b(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=b(()=>{let e=this.inputRefEl();e&&e.value!==this._inputValue&&(this.setSelectedOptionsFromValue(e.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=x(()=>{let e=this.selectedOptions();return this.label()?e.map(i=>this.getLabel(i)).join(", "):e.join(", ")}),this.inputState=x(()=>this.selectedOptions().length>0&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=x(()=>this.inlineSearch()||this.lazySearch()),this.#s=b(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i)})}#e;#i;#s;setSelectedOptionsFromValue(e){let t=this.options(),i=this.value(),o=this.selectMultiple(),s=e.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let a=o?s:[s[0]],k=t.filter(g=>{let v=i?this.#o(g,i)?.toString():g?.toString();return v&&a.includes(v)});this.selectedOptions.set(o?k:[k[0]])}setInputValueFromSelectedOptions(){let e=this.selectedOptions(),t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(e){let t=this.label();return t?this.#o(e,t):e}toggleOptionByIndex(e,t){let i=this.filteredOptions()[e];if(!i)throw new Error("Option not found: this should never happen if it does report it as an issue on github");t&&t.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),a=this.value(),k=this.selectedOptionValues(),g=a?this.#o(i,a):i;this.prevInputValue.set(null),this.selectedOptions.update(v=>{let R=k.indexOf(g);if(R>-1){let $=[...v.slice(0,R),...v.slice(R+1)];return s||$.length>0?$:v}else return this.focusedOptionIndex.set(e),o?[...v,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,t),...i.slice(t+1)]),this.setInputValueFromSelectedOptions()}isSelected(e){let t=this.value(),i=this.filteredOptions()[e],o=t?this.#o(i,t):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#t())}#t(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let i=this.filteredOptions().findIndex(o=>t?this.#o(o,t)===e:o===e);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue();this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromSelectedOptions()),this.hasSearch()&&this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();e&&(e.value=t,e.dispatchEvent(new Event("input")))}#o(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}#r(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}})}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&&(z(o,i.inlineTemplate,pe,5),z(o,i.inputRefInput,it,5),z(o,i.textareaRefInput,nt,5)),t&2&&L(3)},viewQuery:function(t,i){t&1&&P(i.optionsWrapRef,ot,5),t&2&&L()},hostVars:2,hostBindings:function(t,i){t&2&&V("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:rt,decls:31,vars:19,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(t,i){if(t&1){let o=T();w(st),he(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),r(10,"spk-popover",2,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close())}),r(12,"spk-form-field",3),y("click",function(){return h(o),f(i.open())}),p(13,0,["ngProjectAs","label",5,["label"]]),r(14,"div",4)(15,"div",5),D(16,vt,2,0)(17,kt,2,1),p(18,1),p(19,2),l()(),D(20,yt,2,0,"spk-icon",6)(21,wt,1,0,"spk-spinner",7)(22,Dt,2,0,"spk-icon",6)(23,xt,2,0,"spk-icon",6)(24,Ot,2,0,"spk-icon",6)(25,bt,2,0,"spk-icon",6)(26,Tt,2,0,"spk-icon",6),l(),r(27,"div",8,1),Z(29,Rt,4,6,"li",9,J),l()()}if(t&2){Y(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),a=i.inlineTemplate();m(4);let k=Y(i.selectedOptions()),g=i.inputState();m(2),Y(s||o||a),m(),Y(o||a),m();let v=Y(!i.asText()&&i.selectMultiple()),R=i.hasSearch()&&i.isOpen()&&v;m(2),te("isOpen",i.isOpen),N("disableOpenByClick",!0)("options",oe(18,Me)),m(2),Q(i.readonly()?"readonly":""),V("autosize",i.selectMultiple()),m(2),V("show-search-text",R),m(),V("is-selected",g==="selected"),m(),O(k.length>0?16:R?-1:17),m(4),O(g==="closed"?20:g==="loading"?21:g==="open-searching"?22:g==="searching"?23:g==="selected"&&i._isClearable()?24:g==="selected"&&!i._isClearable()?25:26),m(9),ee(i.filteredOptions())}},dependencies:[be,_e,Ve,re,si,ci,Ie],encapsulation:2,changeDetection:0})}}return n})(),Te=(()=>{class n{constructor(){this.#e=I(q),this.value=u(null),this.#i=b(()=>{this.#e.nativeElement.value=this.value()})}#e;#i;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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),pi=["primary","accent","warn","error","success"],Bi=(()=>{class n{constructor(){this.#e=I(ke),this.#i=I(q),this.optionsRef=F("optionsRef"),this.options=de(Te),this.formFieldWrapperRef=F.required("formFieldWrapper"),this.inputWrapRef=F.required("inputWrap"),this.inputValue=M(""),this.readonly=u(!1),this.isFreeText=u(!1),this.selectMultiple=u(!1),this.hideClearButton=u(!1),this.displayValue=u(""),this.displayFn=u(e=>`${e}`),this.above=u(!1),this.right=u(!1),this.change=W(),this.#s=_(!1),this.#t=_(null),this.#o=_(null),this.#r=_(!1),this.#n=_(-1),this.isOpen=_(!1),this._isOpen=_(!1),this.isSearchInput=x(()=>this.#t()?.type==="search"),this.chipClass=x(()=>Array.from(this.#i.nativeElement.classList).filter(e=>pi.includes(e)).join(" ")),this._displayValue=x(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=x(()=>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.#i.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.#t.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.#t();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.#t()&&(this.#t().value=e??"",this.#t().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;#i;#s;#t;#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.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#t()?.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.#t()?.focus():(this.isOpen.set(!1),this.#t()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#t()?.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.#t()?.blur(),this.#m()}open(e){e.preventDefault(),this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#t().focus(),this.#t().value="",this.#t().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#t().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.#t();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&&z(o,i.options,Te,4),t&2&&L()},viewQuery:function(t,i){t&1&&(P(i.optionsRef,Ft,5),P(i.formFieldWrapperRef,Pt,5),P(i.inputWrapRef,Ge,5)),t&2&&L(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:jt,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();w(At),r(0,"spk-popover",3,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close())}),r(2,"spk-form-field",4),y("click",function(a){return h(o),f(i.open(a))}),p(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),D(6,Bt,2,1,"div",6)(7,Wt,2,1,"div",6),p(8,1),l(),D(9,qt,4,0,"div",7)(10,Nt,4,0,"div",8)(11,Qt,4,2,"div",9),l(),r(12,"div",10,2),p(14,2),l()()}t&2&&(te("isOpen",i.isOpen),N("disableOpenByClick",!0)("options",oe(7,Me)),m(2),Q(i.readonly()?"readonly":""),m(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),m(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[Ve,re,Ie,_e],encapsulation:2,changeDetection:0})}}return n})(),Wi=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=u(!1),this.isOpen=M(!1),this.type=u(""),this.dragImageElement=F.required("dragImageElement"),this.dragIsEnding=_(!1),this.dragIsOnScreen=_(!0),this.isDragging=_(!1),this.dragPositionX=_(0),this.dragActualPositionX=x(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=x(()=>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.#i(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#i(e)}#i(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#i(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&&P(i.dragImageElement,Ut,5),t&2&&L()},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: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&&(w($t),D(0,Yt,2,0,"div",1)(1,Xt,1,0,"div",2),r(2,"div",3),p(3),l(),r(4,"div",4),D(5,Gt,1,0,"div",5),r(6,"div",6),p(7,1),l(),r(8,"main"),p(9,2),l()()),t&2&&(O(i.type()==="overlay"?0:-1),m(),O(i.type()==="overlay"&&i.isDragging()?1:-1),m(3),j("transform",i.draggingStyle()),m(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},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-stepper"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ni=(()=>{class n{constructor(){this.tableColumns=u([]),this.loading=u(!1),this.columnSizes=x(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=u([]),this.dataChange=W(),this.#e=null,this.#i=_(!1),this.sortByColumn=M(null),this.e=b(()=>{let e=this.sortByColumn();if(e===null)return this.#i()||(this.#e=this.data(),this.#i.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 k=s[t],g=a[t],v=0;return typeof k=="number"&&typeof g=="number"&&(v=k-g),k instanceof Date&&g instanceof Date&&(v=k.getTime()-g.getTime()),typeof k=="string"&&typeof g=="string"&&(v=k.localeCompare(g,void 0,{sensitivity:"base"})),i?-v:v});this.dataChange.emit(o)})}#e;#i;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&&j("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Jt,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(w(Kt),r(0,"thead"),p(1),D(2,Zt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),p(4,1),l(),D(5,ei,2,0,"div",1)),t&2&&(m(2),O(i.loading()?2:-1),m(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&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ui=(()=>{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&&(w(),r(0,"div",0),H(1,"div",1),l(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),$i=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=u(!1),this.above=u(!1),this.right=u(!1),this._above=_(this.above()),this._right=_(this.right()),this.message=u.required(),this.isOpen=M(!1),this.closed=W(),this.triggerRef=F.required("triggerRef"),this.tooltipRef=F.required("tooltipRef"),this.id=_("--"+ve()),this.menuStyle=_(null),this.isCalculatingPosition=x(()=>{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.#i(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#i(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,k=s+t.width>window.innerWidth,g=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(g),this._right.set(k);else{if(this.above()){let v=e.top-t.height-this.#e;v>=0&&(a=v)}else g&&(a=e.top-t.height-this.#e);if(this.right()){let v=e.right-t.width;v>=0&&(s=v)}else k&&(a=g?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&&(P(i.triggerRef,Ee,5),P(i.tooltipRef,ti,5)),t&2&&L(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();w(),r(0,"div",2,0),y("mouseover",function(){return h(o),f(i.isOpen.set(!0))})("mouseout",function(){return h(o),f(i.isOpen.set(!1))}),p(2),l(),r(3,"div",3,1),C(5),l()}t&2&&(j("anchor-name",i.id()),m(3),ue(i.menuStyle()),j("position-anchor",i.id()),m(2),U(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var zi=(()=>{class n{constructor(){this.filesOver=_(!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&&y("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{re as a,Mi as b,Ii as c,ni as d,Vi as e,Ri as f,oi as g,Fi as h,si as i,Ie as j,Pi as k,Ve as l,Ai as m,ji as n,li as o,Hi as p,Li as q,Te as r,Bi as s,Wi as t,qi as u,Ni as v,Qi as w,Ui as x,$i as y,zi as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-DALX7AMG.js";import"./chunk-DNDOALN6.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as DurationFormatPipe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as g}from"./chunk-
|
|
1
|
+
import{o as g}from"./chunk-MEFACGK4.js";import"./chunk-DURFGYD7.js";import"./chunk-BRMUJELY.js";import"./chunk-DNHLTHLR.js";import{b as k}from"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import"./chunk-RTVM3BJK.js";import{a as I}from"./chunk-DL6QZSL6.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import{a as $}from"./chunk-AXHB6A4N.js";import"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as O}from"./chunk-PPRHD3ZV.js";import{a as P,b as h,d as E,e as B}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{o as M,p as b,u as N}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Bb as s,C as m,Cb as p,Db as n,Nb as d,Nc as A,Ob as c,Ra as r,Y as l,eb as f,jb as C,rc as R,sb as u,uc as _,xb as D}from"./chunk-2M52SFS6.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{
|
|
1
|
+
import{a as m}from"./chunk-W4MEGIZH.js";import{b as N}from"./chunk-PPRHD3ZV.js";import{C as o,E as h,Lc as u,O as d,S as l,Y as r,l as c,ua as s,v as f,y as p}from"./chunk-2M52SFS6.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),console.log("notifications",i),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
|