@mxtommy/kip 3.8.1 → 3.9.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +35 -1
  3. package/package.json +3 -2
  4. package/public/3rdpartylicenses.txt +25 -26
  5. package/public/{chunk-LLCT2S4D.js → chunk-2YVW3TBK.js} +1 -1
  6. package/public/chunk-35L7BBBD.js +15 -0
  7. package/public/{chunk-VOFU3XW7.js → chunk-3LEMFOCV.js} +2 -2
  8. package/public/{chunk-PW7IELME.js → chunk-3LJAKLLW.js} +1 -1
  9. package/public/{chunk-P5US6366.js → chunk-4JJLPUET.js} +2 -2
  10. package/public/{chunk-B6ZF4UM2.js → chunk-CBUY7NMR.js} +1 -1
  11. package/public/{chunk-U654IVE3.js → chunk-CQXWGD3T.js} +2 -2
  12. package/public/{chunk-KBQRPAHA.js → chunk-EUFDL4TJ.js} +3 -3
  13. package/public/chunk-FBFTGVZ6.js +1 -0
  14. package/public/{chunk-IEMXT5F5.js → chunk-HCXH72CD.js} +1 -1
  15. package/public/chunk-JY3WVS7C.js +2 -0
  16. package/public/{chunk-PL3ADNSY.js → chunk-KTDDP73O.js} +1 -1
  17. package/public/{chunk-U5AUKXYV.js → chunk-NMEZOCU2.js} +1 -1
  18. package/public/chunk-NS2FPVWM.js +4 -0
  19. package/public/chunk-OSYHJB4F.js +11 -0
  20. package/public/{chunk-PTH4T5IE.js → chunk-PKNLASTF.js} +1 -1
  21. package/public/chunk-Q2Y75POI.js +1 -0
  22. package/public/{chunk-A7ZQKRDG.js → chunk-RRTCHHRC.js} +2 -2
  23. package/public/chunk-TA4GACKT.js +4 -0
  24. package/public/chunk-TXPLRBW5.js +2 -0
  25. package/public/chunk-VHFBF47T.js +1 -0
  26. package/public/{chunk-3EZ5OGSS.js → chunk-VYUMZVH2.js} +1 -1
  27. package/public/chunk-XRGAX4LS.js +2 -0
  28. package/public/{chunk-NPHVG3UG.js → chunk-YNJRIFUM.js} +1 -1
  29. package/public/{chunk-7XMBWPCO.js → chunk-ZBCOJLI4.js} +1 -1
  30. package/public/index.html +2 -3
  31. package/public/main-XM5EHMUE.js +50 -0
  32. package/public/polyfills-KH22MU6U.js +2 -0
  33. package/public/styles-RECKN66R.css +1 -0
  34. package/public/assets/NoSleep.min.js +0 -2
  35. package/public/chunk-2YAQXSBW.js +0 -15
  36. package/public/chunk-4KUAA4O3.js +0 -4
  37. package/public/chunk-6SD2XJ6G.js +0 -2
  38. package/public/chunk-CLFGOA75.js +0 -2
  39. package/public/chunk-DHN3DEAY.js +0 -2
  40. package/public/chunk-HGCQBGNX.js +0 -1
  41. package/public/chunk-KJ4UKRBD.js +0 -4
  42. package/public/chunk-LZNKKAB2.js +0 -1
  43. package/public/chunk-QDPHZ2CW.js +0 -1
  44. package/public/chunk-WJXUSW2U.js +0 -11
  45. package/public/main-4Z3472UQ.js +0 -237
  46. package/public/polyfills-AQLIQAV3.js +0 -2
  47. package/public/styles-ERTLON5W.css +0 -1
@@ -1,11 +0,0 @@
1
- import{a as ai,b as ao,c as oo,d as no,e as lo}from"./chunk-PTH4T5IE.js";import{a as we}from"./chunk-3EZ5OGSS.js";import{a as to,b as eo,c as io,d as ii}from"./chunk-B6ZF4UM2.js";import{a as wt,b as Xt}from"./chunk-DHN3DEAY.js";import{a as Ha,b as Ka,c as Ya,d as Me,e as $a,f as K,g as Qa,h as Za,k as Xa,l as Ja,m as Ee,n as dt,o as Zt}from"./chunk-7XMBWPCO.js";import{g as la,j as ra,o as ca,p as J,q as vt}from"./chunk-6SD2XJ6G.js";import{a as Ia,b as Pa,c as Oa,d as zt,e as qt,g as Fa,h as jt,i as Ht,j as Kt,k as ve,l as Ct}from"./chunk-VOFU3XW7.js";import{a as fe}from"./chunk-HGCQBGNX.js";import{a as ja,b as ei}from"./chunk-LLCT2S4D.js";import{$ as Mt,A as Va,B as Ra,C as ct,D as Ba,E as Xe,F as Yt,G as xt,H,I as Wa,J as Ua,K as $t,L as Je,M as ye,N as L,P as Ce,Q as it,R as N,T as V,U as ti,V as za,W as xe,Y as qa,_ as R,a as ne,ca as at,da as Qt,e as ia,f as oa,h as na,i as Ue,j as _i,k as ze,p as sa,q as Ze,r as tt,t as j,w as F,x as et,y as La,z as Na}from"./chunk-4KUAA4O3.js";import{$b as _,$c as Bt,A as se,Aa as S,Ab as Ft,Ac as k,Ad as Ji,Ae as va,Bc as W,Be as $e,Cb as Tt,Cc as he,Ce as rt,Da as Ot,Db as Bi,De as Qe,Ec as Hi,Ed as ta,Ee as Ut,F as Gi,Fa as me,Fb as lt,Fc as Ki,Gb as Ne,Gc as Yi,Ge as ya,Hb as Wi,He as st,I as gi,Ja as T,Je as Ca,K as It,Kc as At,Kd as ea,L as Pt,Mc as Nt,Na as ae,Nc as Te,Ne as xa,O as Ii,Oa as pe,Od as Wt,Oe as Ma,P as Fe,Pd as aa,Qa as kt,Qc as Vt,R as ce,Rb as U,Rc as Rt,Sb as u,Tb as g,Td as vi,U as Pi,Ub as A,Ud as da,Vb as Ve,Vd as qe,Ve as wa,W as Oi,Wb as C,We as Sa,Xb as x,Xc as $i,Xd as ma,Yb as p,Yc as Be,Ye as ka,Zb as n,Ze as Ci,_b as o,_c as Qi,_d as pa,_e as Ta,a as nt,ac as fi,ad as b,ae as je,b as gt,bc as bi,bf as Aa,ce as ua,cf as Ea,dc as Ui,de as He,df as Da,ec as zi,ed as oe,ee as ga,f as $,fa as de,fc as qi,fe as ha,g as le,ga as Le,gc as I,gf as Ga,hc as ji,ia as Fi,ic as v,id as O,j as pi,kc as h,ke as Ae,lb as s,lc as _t,le as be,m as re,mc as Y,me as fa,na as ke,nb as Ni,nc as mt,o as Se,oa as ht,oc as Lt,oe as yi,pa as ft,pb as hi,pc as z,pe as Ke,qc as q,ra as Q,re as Ye,sb as Vi,se as X,t as ui,ta as m,uc as pt,ue as Et,vc as Re,vd as Zi,ve as yt,wb as y,wc as B,wd as Xi,we as _e,xa as Li,xb as bt,xc as ue,y as Oe,yb as Z,yc as ge,ye as ba,za as w,zb as Ri,zc as l,zd as We,ze as _a}from"./chunk-2YAQXSBW.js";var Wr=(()=>{class e{_settings=m(Ue);_router=m(ra);dashboards=T([],{equal:_i});activeDashboard=T(0);_widgetAction=new Se(null);widgetAction$=this._widgetAction.asObservable();_isDashboardStatic=new Se(!0);isDashboardStatic$=this._isDashboardStatic.asObservable();isDashboardStatic=aa(this.isDashboardStatic$);blankDashboard=[{id:null,name:"Dashboard 1",configuration:[{w:12,h:12,id:"d1d58e6f-f8b4-4a72-9597-7f92aa6776fc",selector:"widget-tutorial",input:{widgetProperties:{type:"widget-tutorial",uuid:"d1d58e6f-f8b4-4a72-9597-7f92aa6776fc"}},x:0,y:0}]}];constructor(){let t=this._settings.getDashboardConfig();if(!t||t.length===0){console.warn("[Dashboard Service] No dashboards found in settings, creating blank dashboard");let a=this.blankDashboard.map(i=>gt(nt({},i),{id:ne.create()}));this.dashboards.set([...a])}else this.dashboards.set(this._settings.getDashboardConfig());Be(()=>{this._settings.saveDashboards(this.dashboards())})}toggleStaticDashboard(){this._isDashboardStatic.next(!this._isDashboardStatic.value)}add(t,a){this.dashboards.update(i=>[...i,{id:ne.create(),name:t,configuration:a}])}update(t,a){this.dashboards.update(i=>i.map((r,d)=>d===t?gt(nt({},r),{name:a}):r))}delete(t){this.dashboards.update(a=>a.filter((i,r)=>r!==t)),this.dashboards().length===0?(this.add("Dashboard "+(this.dashboards().length+1),[]),this.activeDashboard.set(0)):this.activeDashboard()>this.dashboards().length-1&&this.activeDashboard.set(this.dashboards().length-1)}duplicate(t,a){if(t<0||t>=this.dashboards().length){console.error(`[Dashboard Service] Invalid itemIndex: ${t}`);return}let i=this.dashboards()[t],r=ze(i);r.id=ne.create(),r.name=a,Array.isArray(r.configuration)?r.configuration.forEach(d=>{d&&d.input?.widgetProperties?(d.id=ne.create(),d.input.widgetProperties.uuid=d.id):console.error("Dashboard Service] Widget configuration is missing required properties:",d)}):(console.error("Dashboard Service] Dashboard configuration is not an array:",r.configuration),r.configuration=[]),this.dashboards.update(d=>[...d,r])}updateConfiguration(t,a){this.dashboards.update(i=>i.map((r,d)=>d===t?_i(r.configuration,a)?r:gt(nt({},r),{configuration:a}):r))}previousDashboard(){this.activeDashboard()+1>this.dashboards().length-1?this.activeDashboard.set(0):this.activeDashboard.set(this.activeDashboard()+1)}nextDashboard(){this.activeDashboard()-1<0?this.activeDashboard.set(this.dashboards().length-1):this.activeDashboard.set(this.activeDashboard()-1)}setActiveDashboard(t){t>=0&&t<this.dashboards().length?this.activeDashboard.set(t):console.error(`[Dashboard Service] Invalid dashboard ID: ${t}`)}navigateToActive(){this._router.navigate(["/dashboard",this.activeDashboard()])}navigateTo(t){t>=0&&t<this.dashboards().length?this._router.navigate(["/dashboard",t]):console.error(`[Dashboard Service] Invalid dashboard ID: ${t}`)}navigateToNextDashboard(){let t=null;this.activeDashboard()-1<0?t=this.dashboards().length-1:t=this.activeDashboard()-1,this._router.navigate(["/dashboard",t])}navigateToPreviousDashboard(){let t=null;this.activeDashboard()+1>=this.dashboards().length?t=0:t=this.activeDashboard()+1,this._router.navigate(["/dashboard",t])}deleteWidget(t){this._widgetAction.next({id:t,operation:"delete"})}duplicateWidget(t){this._widgetAction.next({id:t,operation:"duplicate"})}setStaticDashboard(t){this._isDashboardStatic.next(t)}static \u0275fac=function(a){return new(a||e)};static \u0275prov=ht({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qo(e,c){e&1&&qi(0)}var ro=(()=>{class e{data=m(qt);static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["dialog-frame"]],decls:8,vars:3,consts:[[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],[1,"dialog-content-padding"],[4,"ngComponentOutlet"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"h6",1),l(2),o(),n(3,"button",2)(4,"mat-icon"),l(5,"close"),o()()(),n(6,"mat-dialog-content",3),Tt(7,qo,1,0,"ng-container",4),o()),a&2&&(s(2),k(i.data.title),s(),p("mat-dialog-close",!1),s(4),p("ngComponentOutlet",i.data.componentType))},dependencies:[J,Ct,jt,Ht,Kt,st,rt,Xi],styles:[".dialogue-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}.dialog-content-padding[_ngcontent-%COMP%]{--mat-dialog-content-padding: 0px 24px 20px 24px}"]})}return e})();function jo(e,c){if(e&1&&(n(0,"button",4),l(1),o()),e&2){let t=h();p("mat-dialog-close",!0),s(),k(t.data.confirmBtnText)}}var so=(()=>{class e{data=m(qt);static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["dialog-confirmation"]],decls:12,vars:6,consts:[[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],["align","end"],["mat-flat-button","",3,"mat-dialog-close"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"h5",1),l(2),o(),n(3,"button",2)(4,"mat-icon"),l(5,"close"),o()()(),n(6,"mat-dialog-content"),l(7),o(),n(8,"mat-dialog-actions",3)(9,"button",4),l(10),o(),u(11,jo,2,2,"button",4),o()),a&2&&(s(2),k(i.data.title),s(),p("mat-dialog-close",!1),s(4),W(" ",i.data.message,`
2
- `),s(2),p("mat-dialog-close",!1),s(),k(i.data.cancelBtnText),s(),g(i.data.confirmBtnText?11:-1))},dependencies:[J,Ct,jt,Ht,ve,Kt,st,Ut,rt],styles:[".dialogue-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}"]})}return e})();function Ho(e,c){if(e&1&&(n(0,"button",9),l(1),o()),e&2){let t=h(),a=pt(1);p("disabled",!a.valid),s(),k(t.data.confirmBtnText)}}var mo=(()=>{class e{dialogRef=m(zt);data=m(qt);saveName(){this.dialogRef.close(this.data)}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["dialog-name"]],decls:19,vars:6,consts:[["name","ngForm"],["name","name",3,"ngSubmit"],[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],[1,"field-margin"],["matInput","","type","text","id","name","placeholder","Name","name","name","required","","cdkFocusInitial","",3,"ngModelChange","ngModel"],["align","end"],["mat-flat-button","",3,"mat-dialog-close"],["mat-flat-button","","type","submit",3,"disabled"]],template:function(a,i){if(a&1){let r=I();n(0,"form",1,0),v("ngSubmit",function(){return w(r),S(i.saveName())}),n(2,"div",2)(3,"h5",3),l(4),o(),n(5,"button",4)(6,"mat-icon"),l(7,"close"),o()()(),n(8,"mat-dialog-content")(9,"mat-form-field",5)(10,"mat-label"),l(11,"Name"),o(),n(12,"input",6),Yi("ngModelChange",function(f){return w(r),Ki(i.data.name,f)||(i.data.name=f),S(f)}),o(),n(13,"mat-error"),l(14," A name is required "),o()()(),n(15,"mat-dialog-actions",7)(16,"button",8),l(17),o(),u(18,Ho,2,2,"button",9),o()()}a&2&&(s(4),k(i.data.title),s(),p("mat-dialog-close",!1),s(7),Hi("ngModel",i.data.name),s(4),p("mat-dialog-close",!1),s(),k(i.data.cancelBtnText),s(),g(i.data.confirmBtnText?18:-1))},dependencies:[Ct,jt,Ht,ve,Kt,vt,J,Mt,R,V,ti,Qt,at,st,Ut,rt,it,Xe,tt,F,et,L,Ba,Va],styles:[".dialogue-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}.field-margin[_ngcontent-%COMP%]{margin-left:15px;margin-bottom:15px}"]})}return e})();function Ko(e,c){if(e&1&&(n(0,"mat-option",12),l(1),o()),e&2){let t=c.$implicit;p("value",At(t.value)),s(),k(t.label)}}function Yo(e,c){if(e&1){let t=I();n(0,"button",21),v("click",function(){w(t);let i=h();return S(i.moveCtrlUp())}),n(1,"mat-icon"),l(2,"arrow_drop_up"),o()()}}function $o(e,c){if(e&1){let t=I();n(0,"button",22),v("click",function(){w(t);let i=h();return S(i.moveCtrlDown())}),n(1,"mat-icon"),l(2,"arrow_drop_down"),o()()}}var po=(()=>{class e{app=m(fe);ctrlFormGroup=b.required();controlIndex=b(void 0);arrayLength=b(void 0);deleteCtrl=Bt();moveUp=Bt();moveDown=Bt();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors}deleteControl(){let t={ctrlIndex:this.controlIndex(),pathID:this.ctrlFormGroup().get("pathID").value};this.deleteCtrl.emit(t)}moveCtrlUp(){this.moveUp.emit(this.controlIndex())}moveCtrlDown(){this.moveDown.emit(this.controlIndex())}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["boolean-control-config"]],inputs:{ctrlFormGroup:[1,"ctrlFormGroup"],controlIndex:[1,"controlIndex"],arrayLength:[1,"arrayLength"]},outputs:{deleteCtrl:"deleteCtrl",moveUp:"moveUp",moveDown:"moveDown"},decls:36,vars:3,consts:[[1,"ctrl-grid","rounded-card","rounded-card-color",3,"formGroup"],[1,"controls","flex-container"],[1,"flex-label"],[1,"full-width"],["matInput","","type","string","placeholder","Enter a display label...","formControlName","ctrlLabel"],[1,"flex-settings"],[1,"settings"],["placeholder","Select Type...","formControlName","type","name","type","required",""],["value","1"],["value","2"],["value","3"],["placeholder","Select Color...","formControlName","color","name","color","required",""],[3,"value"],[1,"flex-full-width"],["formControlName","isNumeric"],[1,"actions"],[1,"flex-actions"],[1,"btn-grid"],["mat-icon-button","","type","button","aria-label","Move control up in the list",1,"up"],["mat-icon-button","","type","button","aria-label","Move control down in the list",1,"down"],["mat-icon-button","","type","button","aria-label","Delete control",1,"delete",3,"click"],["mat-icon-button","","type","button","aria-label","Move control up in the list",1,"up",3,"click"],["mat-icon-button","","type","button","aria-label","Move control down in the list",1,"down",3,"click"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),l(5,"Label"),o(),_(6,"input",4),o()(),n(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),l(10,"Type"),o(),n(11,"mat-select",7)(12,"mat-option",8),l(13,"Toggle"),o(),n(14,"mat-option",9),l(15,"Push"),o(),n(16,"mat-option",10),l(17,"Indicator"),o()()()(),n(18,"div",5)(19,"mat-form-field",6)(20,"mat-label"),l(21,"Color"),o(),n(22,"mat-select",11),C(23,Ko,2,3,"mat-option",12,A),o()()(),n(25,"div",13)(26,"mat-checkbox",14),l(27," Use numeric path "),o()()(),n(28,"div",15)(29,"div",16)(30,"div",17),u(31,Yo,3,0,"button",18),u(32,$o,3,0,"button",19),n(33,"button",20),v("click",function(){return i.deleteControl()}),n(34,"mat-icon"),l(35,"delete"),o()()()()()()),a&2&&(p("formGroup",i.ctrlFormGroup()),s(23),x(i.colors),s(8),g(i.controlIndex()!==0?31:-1),s(),g(i.controlIndex()!==i.arrayLength()-1?32:-1))},dependencies:[it,tt,F,et,L,N,H,$t,R,V,at,dt,K,rt,Xt,wt,vt,J],styles:['.ctrl-grid[_ngcontent-%COMP%]{display:grid;width:auto;height:auto;margin:0 0 10px;grid-template-columns:[col-start] calc(100% - 90px) [col1-end] 80px [col2-end];grid-template-areas:"controls actions";row-gap:0px;column-gap:10px;justify-items:center;align-items:center;justify-content:center;align-content:center;padding-top:20px}.controls[_ngcontent-%COMP%]{grid-area:controls;width:100%}.actions[_ngcontent-%COMP%]{grid-area:actions}.btn-grid[_ngcontent-%COMP%]{display:grid;width:80px;height:80px;margin:0;grid-template-columns:[col-start] 50% [col1-end] 50% [col2-end];grid-template-rows:[row-start] 50% [row1-end] 50% [row2-end];grid-template-areas:"up delete" "down delete";row-gap:0px;column-gap:0px;justify-items:center;align-items:center;justify-content:center;align-content:center}.up[_ngcontent-%COMP%]{grid-area:up}.down[_ngcontent-%COMP%]{grid-area:down}.delete[_ngcontent-%COMP%]{grid-area:delete}.flex-label[_ngcontent-%COMP%]{flex-grow:2;flex-shrink:2}.flex-settings[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1}.settings[_ngcontent-%COMP%]{min-width:100px}.flex-actions[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0}.flex-full-width[_ngcontent-%COMP%]{width:100%}']})}return e})();function Qo(e,c){if(e&1){let t=I();n(0,"boolean-control-config",4),v("moveUp",function(i){w(t);let r=h();return S(r.moveUp(i))})("moveDown",function(i){w(t);let r=h();return S(r.moveDown(i))})("deleteCtrl",function(i){w(t);let r=h();return S(r.deletePath(i))}),o()}if(e&2){let t=c.$implicit,a=c.$index,i=h();p("ctrlFormGroup",i.getFormGroup(t))("controlIndex",a)("arrayLength",i.arrayLength)}}var uo=(()=>{class e{fb=m(Ce);multiCtrlArray=b.required();addPath=Bt();updatePath=Bt();delPath=Bt();multiFormGroup=null;arrayLength=0;multiCtrlArraySubscription=null;ngOnInit(){this.arrayLength=this.multiCtrlArray().length,this.multiFormGroup=new La({multiCtrlArray:this.multiCtrlArray()}),this.multiCtrlArraySubscription=this.multiCtrlArray().valueChanges.pipe(Fe(350)).subscribe(t=>{this.updatePath.emit(t)})}addCtrlGroup(){let t=ne.create();this.multiCtrlArray().push(this.fb.group({ctrlLabel:[null,j.required],type:["1",j.required],pathID:[t],color:["contrast"],isNumeric:[!1],value:[null]})),this.arrayLength=this.multiCtrlArray().length;let a={path:{description:null,path:null,pathID:t,source:"default",pathType:"boolean",supportsPut:!0,isPathConfigurable:!0,showPathSkUnitsFilter:!1,pathSkUnitsFilter:null,convertUnitTo:null,sampleTime:500},ctrlType:1};this.addPath.emit(a)}moveUp(t){let a=this.multiCtrlArray().at(t);this.multiCtrlArray().removeAt(t,{emitEvent:!1}),this.multiCtrlArray().insert(t-1,a,{emitEvent:!1})}moveDown(t){let a=this.multiCtrlArray().at(t);this.multiCtrlArray().removeAt(t,{emitEvent:!1}),this.multiCtrlArray().insert(t+1,a,{emitEvent:!1})}deletePath(t){this.delPath.emit(t),this.arrayLength=this.multiCtrlArray().length}getFormGroup(t){return t}ngOnDestroy(){this.multiCtrlArraySubscription?.unsubscribe()}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["boolean-multicontrol-options"]],inputs:{multiCtrlArray:[1,"multiCtrlArray"]},outputs:{addPath:"addPath",updatePath:"updatePath",delPath:"delPath"},decls:7,vars:1,consts:[[3,"formGroup"],["formArrayName","multiCtrlArray"],[1,"full-width",3,"ctrlFormGroup","controlIndex","arrayLength"],["type","button","mat-mini-fab","","color","primary","aria-label","Add control down in the list",1,"add-btn",3,"click"],[1,"full-width",3,"moveUp","moveDown","deleteCtrl","ctrlFormGroup","controlIndex","arrayLength"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1),C(2,Qo,1,3,"boolean-control-config",2,Ve),n(4,"button",3),v("click",function(){return i.addCtrlGroup()}),n(5,"mat-icon"),l(6,"add"),o()()()()),a&2&&(p("formGroup",i.multiFormGroup),s(2),x(i.multiCtrlArray().controls))},dependencies:[it,et,N,H,Ua,po,st,ya,vt,J],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;padding-top:15px;padding-bottom:15px}.add-btn[_ngcontent-%COMP%]{margin-left:calc(50% - 20px)}"]})}return e})();var Zo=["*"];var Xo=new Q("MAT_CARD_CONFIG"),Ws=(()=>{class e{appearance;constructor(){let t=m(Xo,{optional:!0});this.appearance=t?.appearance||"raised"}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,i){a&2&&B("mat-mdc-card-outlined",i.appearance==="outlined")("mdc-card--outlined",i.appearance==="outlined")("mat-mdc-card-filled",i.appearance==="filled")("mdc-card--filled",i.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:Zo,decls:1,vars:0,template:function(a,i){a&1&&(_t(),Y(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}
3
- `],encapsulation:2,changeDetection:0})}return e})();var go=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=bt({type:e});static \u0275inj=ft({imports:[X,X]})}return e})();function Jo(e,c){if(e&1&&(n(0,"mat-option",8),l(1),o()),e&2){let t=c.$implicit;p("value",At(t.value)),s(),k(t.label)}}var ho=(()=>{class e{app=m(fe);displayName=b.required();showLabel=b.required();convertUnitTo=b.required();datasetUUID=b.required();datasetAverageArray=b.required();showAverageData=b.required();trackAgainstAverage=b.required();showDatasetMinimumValueLine=b.required();showDatasetMaximumValueLine=b.required();showDatasetAverageValueLine=b.required();showDatasetAngleAverageValueLine=b.required();verticalChart=b.required();inverseYAxis=b.required();showTimeScale=b.required();showYScale=b.required();startScaleAtZero=b.required();yScaleSuggestedMin=b.required();yScaleSuggestedMax=b.required();enableMinMaxScaleLimit=b.required();yScaleMin=b.required();yScaleMax=b.required();numDecimal=b.required();color=b.required();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors,this.showAverageData()&&!this.showAverageData()?.value&&this.trackAgainstAverage().disable(),this.enableMinMaxScaleLimit()&&this.setValueScaleOptionsControls(this.enableMinMaxScaleLimit().value)}setValueScaleOptionsControls(t){t?(this.yScaleMin()?.enable(),this.yScaleMax()?.enable(),this.yScaleSuggestedMin()?.disable(),this.yScaleSuggestedMax()?.disable()):(this.yScaleMin()?.disable(),this.yScaleMax()?.disable(),this.yScaleSuggestedMin()?.enable(),this.yScaleSuggestedMax()?.enable())}setScaleControls(t){this.setValueScaleOptionsControls(t.value)}enableTrackAgainstMovingAverage(t){t.checked?this.trackAgainstAverage().enable():(this.trackAgainstAverage().setValue(t.checked),this.trackAgainstAverage().disable())}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["config-display-chart-options"]],inputs:{displayName:[1,"displayName"],showLabel:[1,"showLabel"],convertUnitTo:[1,"convertUnitTo"],datasetUUID:[1,"datasetUUID"],datasetAverageArray:[1,"datasetAverageArray"],showAverageData:[1,"showAverageData"],trackAgainstAverage:[1,"trackAgainstAverage"],showDatasetMinimumValueLine:[1,"showDatasetMinimumValueLine"],showDatasetMaximumValueLine:[1,"showDatasetMaximumValueLine"],showDatasetAverageValueLine:[1,"showDatasetAverageValueLine"],showDatasetAngleAverageValueLine:[1,"showDatasetAngleAverageValueLine"],verticalChart:[1,"verticalChart"],inverseYAxis:[1,"inverseYAxis"],showTimeScale:[1,"showTimeScale"],showYScale:[1,"showYScale"],startScaleAtZero:[1,"startScaleAtZero"],yScaleSuggestedMin:[1,"yScaleSuggestedMin"],yScaleSuggestedMax:[1,"yScaleSuggestedMax"],enableMinMaxScaleLimit:[1,"enableMinMaxScaleLimit"],yScaleMin:[1,"yScaleMin"],yScaleMax:[1,"yScaleMax"],numDecimal:[1,"numDecimal"],color:[1,"color"]},decls:84,vars:20,consts:[["minLine",""],[1,"tab-content"],[1,"chart-flex-container"],[1,"chart-panel-group"],[1,"full-width"],["matInput","","placeholder","Enter a label to display","name","displayName",3,"formControl"],["name","showLabel",1,"full-width",3,"formControl"],["placeholder","Select Color...","name","color","required","",3,"formControl"],[3,"value"],[1,"flex-item-rounded-card","rounded-card-color"],[2,"margin-left","10px"],["matInput","","type","number","min","0","max","5","placeholder","Enter or select number...","name","numDecimal","required","",3,"formControl"],["name","showAverageData",1,"full-width",2,"margin-top","10px",3,"change","formControl"],["name","trackAgainstAverage",1,"full-width",2,"margin-left","25px",3,"formControl"],["name","verticalChart",3,"formControl"],[1,"no-margin"],[1,"mat-caption"],["aria-label","Select an option","name","enableMinMaxScaleLimit",1,"chart-option-radio-group",3,"formControl"],[1,"chart-option-radio-button",3,"change","value"],[1,"chart-option-radio-button-config"],[1,"chart-option-radio-button-config-form-field"],["matInput","","type","number","name","yScaleSuggestedMin",3,"formControl"],["matInput","","type","number","name","yScaleSuggestedMax",3,"formControl"],[1,"chart-option-radio-button-config-item"],["matInput","","type","number","name","yScaleMin","required","",3,"formControl"],["matInput","","type","number","name","yScaleMax","required","",3,"formControl"],["name","showYScale",1,"full-width",3,"formControl"],["name","inverseYAxis",3,"formControl"],["name","showTimeScale",1,"full-width",3,"formControl"],["name","showDatasetMaximumValueLine",1,"full-width",3,"formControl"],["name","showDatasetAverageValueLine",1,"full-width",3,"formControl"],["name","showDatasetMinimumValueLine",1,"full-width",3,"formControl"]],template:function(a,i){if(a&1){let r=I();n(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),l(5,"Widget Label"),o(),_(6,"input",5),o()(),n(7,"div",3)(8,"mat-checkbox",6),l(9," Show Label "),o()()(),n(10,"div",2)(11,"mat-form-field",4)(12,"mat-label"),l(13,"Color"),o(),n(14,"mat-select",7),C(15,Jo,2,3,"mat-option",8,A),o()()(),n(17,"div",2)(18,"div",9)(19,"div")(20,"p"),l(21,"Series"),o(),n(22,"mat-form-field",10)(23,"mat-label"),l(24,"Value Decimal Places"),o(),_(25,"input",11),o(),n(26,"mat-checkbox",12),v("change",function(f){return w(r),S(i.enableTrackAgainstMovingAverage(f))}),l(27," Display Moving Average "),o(),n(28,"mat-checkbox",13),l(29," Track Against Moving Average "),o()(),n(30,"mat-checkbox",14),l(31," Vertical Data Graph "),o()(),n(32,"div",9)(33,"div")(34,"p",15),l(35,"Data Scale"),o(),n(36,"span",16),l(37,"(Default node is automatic scale)"),o(),n(38,"mat-radio-group",17)(39,"mat-radio-button",18),v("change",function(f){return w(r),S(i.setScaleControls(f))}),l(40,"Auto Scale"),o(),n(41,"div",19)(42,"mat-form-field",20)(43,"mat-label"),l(44,"Suggested Min"),o(),_(45,"input",21),o(),n(46,"mat-form-field",20)(47,"mat-label"),l(48,"Suggested Max"),o(),_(49,"input",22),o()(),n(50,"mat-radio-button",18),v("change",function(f){return w(r),S(i.setScaleControls(f))}),l(51," Fixed Scale "),o(),n(52,"div",19)(53,"div",23)(54,"mat-form-field",20)(55,"mat-label"),l(56,"Min"),o(),_(57,"input",24),o()(),n(58,"div",23)(59,"mat-form-field",20)(60,"mat-label"),l(61,"Max"),o(),_(62,"input",25),o()()()(),n(63,"mat-checkbox",26),l(64," Show Scale Ticks "),o(),n(65,"mat-checkbox",27),l(66," Inverse Scale "),o()()(),n(67,"div",9)(68,"div")(69,"p",15),l(70,"Time Scale"),o(),n(71,"mat-checkbox",28),l(72," Show Scale Ticks "),o()()(),n(73,"div",9)(74,"div")(75,"p",15),l(76,"Dataset"),o(),n(77,"mat-checkbox",29),l(78," Show Maximum Line "),o(),n(79,"mat-checkbox",30),l(80," Show Average Line "),o(),n(81,"mat-checkbox",31,0),l(83," Show Minimum Line "),o()()()()()}a&2&&(s(6),p("formControl",i.displayName()),s(2),p("formControl",i.showLabel()),s(6),p("formControl",i.color()),s(),x(i.colors),s(10),p("formControl",i.numDecimal()),s(),p("formControl",i.showAverageData()),s(2),p("formControl",i.trackAgainstAverage()),s(2),p("formControl",i.verticalChart()),s(8),p("formControl",i.enableMinMaxScaleLimit()),s(),p("value",!1),s(6),p("formControl",i.yScaleSuggestedMin()),s(4),p("formControl",i.yScaleSuggestedMax()),s(),p("value",!0),s(7),p("formControl",i.yScaleMin()),s(5),p("formControl",i.yScaleMax()),s(),p("formControl",i.showYScale()),s(2),p("formControl",i.inverseYAxis()),s(6),p("formControl",i.showTimeScale()),s(6),p("formControl",i.showDatasetMaximumValueLine()),s(2),p("formControl",i.showDatasetAverageValueLine()),s(2),p("formControl",i.showDatasetMinimumValueLine()))},dependencies:[go,Mt,R,V,Xt,wt,Zt,dt,K,Ee,Qt,at,io,to,eo,N,tt,Yt,F,L,ye,Je,xt],styles:[".chart-flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;margin:15px 0;gap:15px;align-items:stretch}.chart-panel-group[_ngcontent-%COMP%]{min-width:250px;flex-grow:1}.no-margin[_ngcontent-%COMP%]{margin:0}.chart-option-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:0;align-items:flex-start}.chart-option-radio-button[_ngcontent-%COMP%]{margin:0}.chart-option-radio-button-config[_ngcontent-%COMP%]{margin-left:35px;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:flex-start}.chart-option-radio-button-config-item[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:1;min-width:50px}.chart-option-radio-button-config-form-field[_ngcontent-%COMP%]{display:block;max-width:118px}"]})}return e})();var tn=(e,c)=>c.uuid;function en(e,c){if(e&1&&(n(0,"mat-option",4),l(1),o()),e&2){let t=c.$implicit;p("value",t.uuid),s(),W(" ",t.label," ")}}function an(e,c){if(e&1&&(n(0,"mat-option",4),l(1),o()),e&2){let t=c.$implicit;p("value",t.measure),s(),W(" ",t.description," ")}}function on(e,c){if(e&1&&(n(0,"mat-optgroup",6),C(1,an,2,2,"mat-option",4,A),o()),e&2){let t=c.$implicit;p("label",t.group),s(),x(t.units)}}var fo=(()=>{class e{datasetService=m(ii);units=m(we);datasetUUID=b.required();convertUnitTo=b.required();availableDataSets=[];unitList={};ngOnInit(){this.availableDataSets=this.datasetService.list().filter(a=>a.editable!==!1).sort();let t=this.datasetUUID();t.value&&this.setPathUnits(t.value)}setPathUnits(t){let a=this.datasetService.getDatasetConfig(t);return t&&a?(this.unitList=this.units.getConversionsForPath(a.path),this.convertUnitTo()?.enable(),!0):(this.unitList=this.units.getConversionsForPath(""),this.convertUnitTo()?.disable(),!1)}datasetChanged(t){this.setPathUnits(t.value)}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["config-dataset-chart-options"]],inputs:{datasetUUID:[1,"datasetUUID"],convertUnitTo:[1,"convertUnitTo"]},decls:14,vars:2,consts:[[1,"display-content","tab-content"],[1,"widget-options-grid"],[1,"options-grid-span2"],["placeholder","Select dataset...","name","datasetUUID","required","",3,"selectionChange","formControl"],[3,"value"],["placeholder","Select unit...","name","convertUnitTo","required","",3,"formControl"],[3,"label"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),l(4,"Dataset"),o(),n(5,"mat-select",3),v("selectionChange",function(d){return i.datasetChanged(d)}),C(6,en,2,2,"mat-option",4,tn),o()(),n(8,"mat-form-field",2)(9,"mat-label"),l(10,"Display Format"),o(),n(11,"mat-select",5),C(12,on,3,1,"mat-optgroup",6,A),o()()()()),a&2&&(s(5),p("formControl",i.datasetUUID()),s(),x(i.availableDataSets),s(5),p("formControl",i.convertUnitTo()),s(),x(i.unitList.conversions))},dependencies:[Mt,R,V,Zt,dt,K,Me,N,F,L,xt],styles:[".display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}"]})}return e})();var bo=(()=>{class e{transform(t){return Object.keys(t)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=Ri({name:"objectKeys",type:e,pure:!0})}return e})();var ln=["panel"],rn=["*"];function sn(e,c){if(e&1&&(fi(0,"div",1,0),Y(2),bi()),e&2){let t=c.id,a=h();ge(a._classList),B("mat-mdc-autocomplete-visible",a.showPanel)("mat-mdc-autocomplete-hidden",!a.showPanel)("mat-autocomplete-panel-animations-enabled",!a._animationsDisabled)("mat-primary",a._color==="primary")("mat-accent",a._color==="accent")("mat-warn",a._color==="warn"),ji("id",a.id),U("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby(t))}}var Si=class{source;option;constructor(c,t){this.source=c,this.option=t}},yo=new Q("mat-autocomplete-default-options",{providedIn:"root",factory:cn});function cn(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var si=(()=>{class e{_changeDetectorRef=m(oe);_elementRef=m(kt);_defaults=m(yo);_animationsDisabled=yt();_activeOptionChanges=le.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new lt;opened=new lt;closed=new lt;optionActivated=new lt;set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}id=m(Ae).getId("mat-autocomplete-");inertGroups;constructor(){let t=m(qe);this.inertGroups=t?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new fa(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let a=new Si(this,t);this.optionSelected.emit(a)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let a=t?t+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:t}_skipPredicate(){return!1}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(a,i,r){if(a&1&&(mt(r,K,5),mt(r,Ya,5)),a&2){let d;z(d=q())&&(i.options=d),z(d=q())&&(i.optionGroups=d)}},viewQuery:function(a,i){if(a&1&&(Lt(Ni,7),Lt(ln,5)),a&2){let r;z(r=q())&&(i.template=r.first),z(r=q())&&(i.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",O],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",O],requireSelection:[2,"requireSelection","requireSelection",O],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",O],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",O]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Nt([{provide:Ka,useExisting:e}])],ngContentSelectors:rn,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(a,i){a&1&&(_t(),Bi(0,sn,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}
4
- `],encapsulation:2,changeDetection:0})}return e})();var dn={provide:Ze,useExisting:ke(()=>Ge),multi:!0};var Co=new Q("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let e=m(Ot);return()=>Ci(e)}});function mn(e){let c=m(Ot);return()=>Ci(c)}var pn={provide:Co,deps:[],useFactory:mn},Ge=(()=>{class e{_environmentInjector=m(Li);_element=m(kt);_injector=m(Ot);_viewContainerRef=m(Vi);_zone=m(Ne);_changeDetectorRef=m(oe);_dir=m(Ye,{optional:!0});_formField=m(qa,{optional:!0,host:!0});_viewportRuler=m(wa);_scrollStrategy=m(Co);_renderer=m(hi);_animationsDisabled=yt();_defaults=m(yo,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new re;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=le.EMPTY;_breakpointObserver=m(He);_handsetLandscapeSubscription=le.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new re;_overlayPanelClass=ua(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&Ke(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return It(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Pt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Pt(()=>this._overlayAttached)):ui()).pipe(se(t=>t instanceof $a?t:null))}optionSelections=Gi(()=>{let t=this.autocomplete?this.autocomplete.options:null;return t?t.changes.pipe(de(t),Le(()=>It(...t.map(a=>a.onSelectionChange)))):this._initialized.pipe(Le(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new pi(t=>{let a=r=>{let d=da(r),f=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,M=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&d!==this._element.nativeElement&&!this._hasFocus()&&(!f||!f.contains(d))&&(!M||!M.contains(d))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(d)&&t.next(r)},i=[this._renderer.listen("document","click",a),this._renderer.listen("document","auxclick",a),this._renderer.listen("document","touchend",a)];return()=>{i.forEach(r=>r())}})}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){let a=t,i=a.keyCode,r=be(a);if(i===27&&!r&&a.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){let d=this.autocomplete._keyManager.activeItem,f=i===38||i===40;i===9||f&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(a):f&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(f||this.autocomplete._keyManager.activeItem!==d)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(t){let a=t.target,i=a.value;if(a.type==="number"&&(i=i==""?null:parseFloat(i)),this._previousValue!==i){if(this._previousValue=i,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(i),!i)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let r=this.autocomplete.options?.find(d=>d.selected);if(r){let d=this._getDisplayValue(r.value);i!==d&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return vi()===this._element.nativeElement}_floatLabel(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new pi(i=>{Wi(()=>{i.next()},{injector:this._environmentInjector})}),a=this.autocomplete.options?.changes.pipe(Fi(()=>this._positionStrategy.reapplyLastPosition()),Pi(0))??ui();return It(t,a).pipe(Le(()=>this._zone.run(()=>{let i=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),i!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),ce(1)).subscribe(i=>this._setValueAndClose(i))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let a=this.autocomplete;return a&&a.displayWith?a.displayWith(t):t}_assignOptionValue(t){let a=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(a??"")}_updateNativeInputValue(t){this._formField?this._formField._control.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let a=this.autocomplete,i=t?t.source:this._pendingAutoselectedOption;i?(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),a._emitSelectEvent(i),this._element.nativeElement.focus()):a.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,a){this.autocomplete?.options?.forEach(i=>{i!==t&&i.selected&&i.deselect(a)})}_openPanelInternal(t=this._element.nativeElement.value){if(this._attachOverlay(t),this._floatLabel(),this._trackedModal){let a=this.autocomplete.id;yi(this._trackedModal,"aria-owns",a)}}_attachOverlay(t){this.autocomplete;let a=this._overlayRef;a?(this._positionStrategy.setOrigin(this._getConnectedElement()),a.updateSize({width:this._getPanelWidth()})):(this._portal=new Ca(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),a=Da(this._injector,this._getOverlayConfig()),this._overlayRef=a,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&a&&a.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Et.HandsetLandscape).subscribe(r=>{r.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),a&&!a.hasAttached()&&(a.attach(this._portal),this._valueOnAttach=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=t=>{(t.keyCode===27&&!be(t)||t.keyCode===38&&be(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Ta({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let t=Aa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let a=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}],d;this.position==="above"?d=r:this.position==="below"?d=a:d=[...a,...r],t.withPositions(d)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let t=this.autocomplete;if(t.autoActiveFirstOption){let a=-1;for(let i=0;i<t.options.length;i++)if(!t.options.get(i).disabled){a=i;break}t._keyManager.setActiveItem(a)}else t._keyManager.setActiveItem(-1)}_canOpen(){let t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this.autocompleteDisabled}_scrollToOption(t){let a=this.autocomplete,i=Qa(t,a.options,a.optionGroups);if(t===0&&i===1)a._setScrollTop(0);else if(a.panel){let r=a.options.toArray()[t];if(r){let d=r._getHostElement(),f=Za(d.offsetTop,d.offsetHeight,a._getScrollTop(),a.panel.nativeElement.offsetHeight);a._setScrollTop(f)}}}_trackedModal=null;_applyModalPanelOwnership(){let t=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;let a=this.autocomplete.id;this._trackedModal&&Ke(this._trackedModal,"aria-owns",a),yi(t,"aria-owns",a),this._trackedModal=t}_clearFromModal(){if(this._trackedModal){let t=this.autocomplete.id;Ke(this._trackedModal,"aria-owns",t),this._trackedModal=null}}static \u0275fac=function(a){return new(a||e)};static \u0275dir=Z({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,i){a&1&&v("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(d){return i._handleInput(d)})("keydown",function(d){return i._handleKeydown(d)})("click",function(){return i._handleClick()}),a&2&&U("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-controls",i.autocompleteDisabled||!i.panelOpen||i.autocomplete==null?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",O]},exportAs:["matAutocompleteTrigger"],features:[Nt([dn]),ae]})}return e})(),xo=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=bt({type:e});static \u0275inj=ft({providers:[pn],imports:[Ga,Ee,X,Sa,Ee,X]})}return e})();var gn=(e,c)=>c.path;function hn(e,c){e&1&&_(0,"i",22)}function fn(e,c){e&1&&_(0,"i",23)}function bn(e,c){if(e&1&&(n(0,"mat-option",16),l(1),o()),e&2){let t=c.$implicit;p("value",t),s(),he("",t.properties.quantity,": ",t.properties.display)}}function _n(e,c){if(e&1){let t=I();n(0,"div",5)(1,"mat-form-field",21)(2,"mat-label"),u(3,hn,1,0,"i",22)(4,fn,1,0,"i",23),l(5," Filter"),o(),n(6,"mat-select",24,2),v("selectionChange",function(){w(t),h();let i=pt(11),r=h();return S(r.pathFormGroup().controls.path.setValue(i.value))}),n(8,"mat-option"),l(9,"All"),o(),C(10,bn,2,3,"mat-option",16,A),o()()()}if(e&2){let t=pt(7),a=h(2);s(3),g(t.value?4:3),s(3),p("formControl",a.pathSkUnitsFilterControl),s(4),x(a.pathSkUnitsFiltersList)}}function vn(e,c){e&1&&(n(0,"span",8),l(1,"(optional)"),o())}function yn(e,c){e&1&&(n(0,"mat-hint"),l(1,"Leave blank to disable this path."),o())}function Cn(e,c){if(e&1){let t=I();n(0,"button",25),v("click",function(){w(t);let i=h(2);return S(i.pathFormGroup().controls.path.setValue(""))}),n(1,"mat-icon"),l(2,"close"),o()()}}function xn(e,c){e&1&&(n(0,"mat-error"),l(1," Path is required. Please enter a valid Signal K path. "),o())}function Mn(e,c){e&1&&(n(0,"mat-error"),l(1," Path not recognized. Please enter a path from the server's published list. "),o())}function wn(e,c){if(e&1&&(n(0,"span"),l(1),o(),_(2,"br"),n(3,"small",26),l(4),o()),e&2){let t=h().$implicit;s(),k(t.path),s(3),k(t.meta.description)}}function Sn(e,c){if(e&1&&l(0),e&2){let t=h().$implicit;W(" ",t.path," ")}}function kn(e,c){if(e&1&&(n(0,"mat-option",11),u(1,wn,5,2)(2,Sn,1,1),o()),e&2){let t=c.$implicit;p("value",t.path),s(),g(t.meta!==void 0?1:2)}}function Tn(e,c){if(e&1&&(n(0,"mat-option",16),l(1),o()),e&2){let t=c.$implicit;p("value",t),s(),W(" ",t," ")}}function An(e,c){if(e&1&&(n(0,"mat-option",16),l(1),o()),e&2){let t=c.$implicit;p("value",t.measure),s(),W(" ",t.description," ")}}function En(e,c){if(e&1&&(n(0,"mat-optgroup",28),C(1,An,2,2,"mat-option",16,A),o()),e&2){let t=c.$implicit;p("label",t.group),s(),x(t.units)}}function Dn(e,c){if(e&1&&(n(0,"mat-form-field",20)(1,"mat-label"),l(2,"Display Format"),o(),n(3,"mat-select",27),C(4,En,3,1,"mat-optgroup",28,A),o()()),e&2){let t=h(2);s(4),x(t.unitList.conversions)}}function Gn(e,c){if(e&1&&(n(0,"div",3)(1,"div",4)(2,"span"),l(3),o()(),u(4,_n,12,2,"div",5),n(5,"div",6)(6,"mat-form-field",7)(7,"mat-label"),l(8," Signal K Path "),u(9,vn,2,0,"span",8),o(),_(10,"input",9,0),u(12,yn,2,0,"mat-hint"),u(13,Cn,3,0,"button",10),u(14,xn,2,0,"mat-error")(15,Mn,2,0,"mat-error"),n(16,"mat-autocomplete",null,1),C(18,kn,3,2,"mat-option",11,gn),Vt(20,"async"),o()()(),n(21,"div",12)(22,"div",13)(23,"mat-form-field",14)(24,"mat-label"),l(25,"Data Source"),o(),n(26,"mat-select",15),C(27,Tn,2,2,"mat-option",16,A),o()()(),n(29,"div",17)(30,"mat-form-field",14)(31,"mat-label"),l(32,"Sample Time"),o(),_(33,"input",18),o()(),n(34,"div",19),u(35,Dn,6,0,"mat-form-field",20),o()()()),e&2){let t,a=pt(17),i=h();p("formGroup",i.pathFormGroup()),s(2),Re("color",i.pathFormGroup().enabled?"":"rgba(255,255,255,0.5)"),s(),k(i.pathFormGroup().value.description),s(),g(i.pathFormGroup().value.pathType==="number"&&i.showPathSkUnitsFilter?4:-1),s(5),g(i.pathFormGroup().value.pathRequired===!1?9:-1),s(),p("matAutocomplete",a),s(2),g(i.pathFormGroup().value.pathRequired===!1?12:-1),s(),g(i.pathFormGroup().value.path?13:-1),s(),g((t=i.pathFormGroup().controls.path.errors)!=null&&t.required?14:(t=i.pathFormGroup().controls.path.errors)!=null&&t.requireMatch?15:-1),s(4),x(Rt(20,11,i.filteredPaths)),s(9),x(i.availableSources),s(8),g(i.pathFormGroup().value.pathType==="number"&&i.pathFormGroup().value.showConvertUnitTo===void 0||i.pathFormGroup().value.pathType==="number"&&i.pathFormGroup().value.showConvertUnitTo===!0?35:-1)}}function In(e){return c=>{let t=c.parent?.value?.pathRequired!==!1,a=c.value;return t?a===null||a===""?{requireMatch:!0}:e().some(d=>d.path===a)?null:{requireMatch:!0}:a===null||a===""||e().some(d=>d.path===a)?null:{requireMatch:!0}}}var Mo=(()=>{class e{_data=m(sa);_units=m(we);_connection=m(ia);_destroyRef=m(me);pathFormGroup=b.required();multiCTRLArray=b.required();filterSelfPaths=b.required();availablePaths;filteredPaths=new Se(null);availableSources;unitList={base:"",conversions:[]};showPathSkUnitsFilter=!1;pathSkUnitsFilterControl=new Ra(null);pathSkUnitsFiltersList;unitlessUnit={unit:"unitless",properties:{display:"(null)",quantity:"Unitless",quantityDisplay:"(null)",description:""}};ngOnInit(){let t=this.pathFormGroup();t.controls.path.disabled||(this.pathSkUnitsFiltersList=this._units.skBaseUnits.sort((a,i)=>a.properties.quantity>i.properties.quantity?1:-1),this.pathSkUnitsFiltersList.unshift(this.unitlessUnit),t.value.pathSkUnitsFilter&&this.pathSkUnitsFilterControl.setValue(this.pathSkUnitsFiltersList.find(a=>a.unit===this.pathFormGroup().value.pathSkUnitsFilter),{onlySelf:!0}),t.value.showPathSkUnitsFilter&&(this.showPathSkUnitsFilter=t.value.showPathSkUnitsFilter),t.controls.path.setValidators([In(()=>this.getPaths())]),t.controls.path.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t.controls.pathRequired&&t.controls.pathRequired.valueChanges.pipe(Wt(this._destroyRef)).subscribe(()=>{this.pathFormGroup().controls.path.updateValueAndValidity()}),t.controls.path.valid?this.enableFormFields(!1):this.disablePathFields(),t.controls.sampleTime||(t.addControl("sampleTime",new ct("500",j.required)),t.controls.sampleTime.updateValueAndValidity({onlySelf:!0,emitEvent:!1})),t.controls.path.valueChanges.pipe(Ii(a=>a===""?gi(0):gi(350)),de(""),se(a=>this.filterPaths(a||""))).pipe(Wt(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.controls.path.pristine||(a.controls.path.valid?(this.enableFormFields(!0),this.updatePathMetaBoundDisplayName(a.controls.path.value),this.updatePathMetaBoundDisplayScale(a.controls.path.value)):this.disablePathFields())}),t.controls.pathType.valueChanges.pipe(Wt(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.value.showPathSkUnitsFilter?this.pathSkUnitsFilterControl.setValue(this.unitlessUnit):this.pathSkUnitsFilterControl.setValue(null),a.controls.path.updateValueAndValidity()}))}ngOnChanges(t){t.filterSelfPaths&&!t.filterSelfPaths.firstChange&&this.pathFormGroup().controls.path.updateValueAndValidity()}getPaths(){let t=this.pathFormGroup().controls.pathType.value,a=this.filterSelfPaths(),i=!1,r=this.pathFormGroup();if(r.value.supportsPut){let d=!1;this.multiCTRLArray().length>0&&(d=this.multiCTRLArray().some(f=>f.pathID===this.pathFormGroup().value.pathID&&f.type==="3")),d?i=!1:i=oa(this._connection.skServerVersion,"2.12.0",">=")?r.value.supportsPut:!1}return this._data.getPathsAndMetaByType(t,i,a).sort()}filterPaths(t){let a=t.toLowerCase(),i=this.getPaths();if(this.pathSkUnitsFilterControl.value){let r=this.pathSkUnitsFilterControl.value.unit;i=i.filter(d=>{let f=!!d.meta&&!!d.meta.units,M=r==="unitless";return f&&d.meta.units===r||!f&&M})}i=i.filter(r=>r.path.toLowerCase().includes(a)),this.filteredPaths.next(i)}enableFormFields(t){let a=this._data.getPathObject(this.pathFormGroup().controls.path.value);if(a!=null){this.pathFormGroup().controls.sampleTime.enable({onlySelf:!1});let i=this.pathFormGroup();i.controls.pathType.value=="number"&&(this.unitList=this._units.getConversionsForPath(i.controls.path.value),t&&i.controls.convertUnitTo.setValue(this.unitList.base,{onlySelf:!0}),i.controls.convertUnitTo.enable({onlySelf:!1})),Object.keys(a.sources).length==1?(this.availableSources=["default"],t?i.controls.source.value!="default"&&i.controls.source.setValue("default",{onlySelf:!0}):i.controls.source.value!="default"&&i.controls.source.setValue("",{onlySelf:!0})):Object.keys(a.sources).length>1&&(this.availableSources=Object.keys(a.sources),i.controls.source.value=="default"&&i.controls.source.reset()),i.controls.source.enable({onlySelf:!1})}else this.disablePathFields()}disablePathFields(){this.pathFormGroup().controls.source.reset("",{onlySelf:!0}),this.pathFormGroup().controls.source.disable({onlySelf:!1}),this.pathFormGroup().controls.sampleTime.disable({onlySelf:!1});let t=this.pathFormGroup();t.controls.pathType.value=="number"&&(t.controls.convertUnitTo.reset("",{onlySelf:!0}),t.controls.convertUnitTo.disable({onlySelf:!1}))}updatePathMetaBoundDisplayName(t){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayName"))return;let i=this._data.getPathMeta(t);i?.displayName&&a.parent.parent.controls.displayName.setValue(i.displayName)}updatePathMetaBoundDisplayScale(t){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayScale"))return;let i=this._data.getPathMeta(t);if(i?.displayScale){let r=a.parent.parent.get("displayScale"),d=a.controls.convertUnitTo.value;i.displayScale.lower!==null&&i.displayScale.lower!==void 0&&r.controls.lower.setValue(this._units.convertToUnit(d,i.displayScale.lower)),i.displayScale.upper!==null&&i.displayScale.upper!==void 0&&r.controls.upper.setValue(this._units.convertToUnit(d,i.displayScale.upper)),i.displayScale.type!==null&&i.displayScale.type!==void 0&&r.controls.type.setValue(i.displayScale.type),i.displayScale.power!==null&&i.displayScale.power!==void 0&&r.controls.power.setValue(i.displayScale.power)}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["path-control-config"]],inputs:{pathFormGroup:[1,"pathFormGroup"],multiCTRLArray:[1,"multiCTRLArray"],filterSelfPaths:[1,"filterSelfPaths"]},features:[ae],decls:1,vars:1,consts:[["pathInput",""],["pathAutoComplete","matAutocomplete"],["pathUnitsFilter",""],[1,"flex-container","rounded-card","rounded-card-color",3,"formGroup"],[1,"flex-field-100"],[1,"flex-field-fixed"],[1,"flex-field-to-100"],["floatLabel","auto","appearance","fill",1,"pathField"],[1,"optional-label"],["type","text","matInput","","placeholder","Type to use autocomplete or select from list","formControlName","path",3,"matAutocomplete"],["mat-icon-button","","matIconSuffix","","aria-label","Clear"],[2,"min-height","48px","line-height","1.15","height","auto","padding","8px 16px","white-space","normal",3,"value"],[1,"pathProperties"],[1,"sourceField"],["appearance","outline","floatLabel","always",1,"fields"],["placeholder","Select source","formControlName","source","required",""],[3,"value"],[1,"sampleTimeField"],["matInput","","type","number","placeholder","Sample time in milliseconds","formControlName","sampleTime","required",""],[1,"unitField"],[1,"fields"],["floatLabel","auto","appearance","fill",1,"filter-path"],[1,"fa-solid","fa-filter"],[1,"fa-solid","fa-filter-circle-xmark"],["panelWidth","",3,"selectionChange","formControl"],["mat-icon-button","","matIconSuffix","","aria-label","Clear",3,"click"],[1,"pathMetaDescription"],["placeholder","Select unit","formControlName","convertUnitTo","required",""],[3,"label"]],template:function(a,i){a&1&&u(0,Gn,36,13,"div",3),a&2&&g(i.pathFormGroup().value.isPathConfigurable?0:-1)},dependencies:[it,tt,Yt,F,et,L,N,xt,H,$t,R,V,at,xo,si,K,Me,Ge,rt,xe,ti,dt,vt,J,za,We],styles:[".pathGroup[_ngcontent-%COMP%]{width:100%}.pathGroupFields[_ngcontent-%COMP%]{display:block;width:calc(100% - 5px)}.pathField[_ngcontent-%COMP%]{width:100%}.pathProperties[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;align-content:flex-start;gap:10px}.fields[_ngcontent-%COMP%]{width:100%}.sourceField[_ngcontent-%COMP%]{flex:3 1}.sampleTimeField[_ngcontent-%COMP%]{flex:1 3}.unitField[_ngcontent-%COMP%]{flex:3 1}"]})}return e})();function Pn(e,c){if(e&1&&_(0,"path-control-config",6),e&2){let t=c.$implicit,a=h(2);p("pathFormGroup",t)("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function On(e,c){if(e&1&&C(0,Pn,1,3,"path-control-config",6,A),e&2){let t=h();x(t.pathsFormGroup.controls)}}function Fn(e,c){if(e&1&&_(0,"path-control-config",6),e&2){let t=c.$implicit,a=h(2);p("pathFormGroup",a.pathsFormGroup.get(t))("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Ln(e,c){if(e&1&&(C(0,Fn,1,3,"path-control-config",6,A),Vt(2,"objectKeys")),e&2){let t=h();x(Rt(2,0,t.pathsFormGroup.controls))}}var wo=(()=>{class e{rootFormGroup=m(H);fb=m(Ce);formGroupName=b.required();isArray=b.required();enableTimeout=b.required();dataTimeout=b.required();filterSelfPaths=b.required();addPathEvent=b(void 0);delPathEvent=b(void 0);updatePathEvent=b(void 0);pathsFormGroup;multiCTRLArray=[];ngOnInit(){this.isArray()?(this.pathsFormGroup=this.rootFormGroup.control.get(this.formGroupName()),this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value):this.pathsFormGroup=this.rootFormGroup.control.get(this.formGroupName())}addPath(t){this.pathsFormGroup.push(this.fb.group({description:[t.path.description],path:[t.path.path,j.required],pathID:[t.path.pathID],source:[t.path.source,j.required],pathType:[t.path.pathType],isPathConfigurable:[t.path.isPathConfigurable],showPathSkUnitsFilter:[t.path.showPathSkUnitsFilter],pathSkUnitsFilter:[t.path.pathSkUnitsFilter],convertUnitTo:[t.path.convertUnitTo],sampleTime:[t.path.sampleTime],supportsPut:[t.path.supportsPut]})),this.pathsFormGroup.updateValueAndValidity(),this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}delPath(){this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}updatePath(t){this.multiCTRLArray=t}ngOnChanges(t){t.addPathEvent&&!t.addPathEvent.firstChange&&this.addPath(t.addPathEvent.currentValue),t.delPathEvent&&!t.delPathEvent.firstChange&&this.delPath(),t.updatePathEvent&&!t.updatePathEvent.firstChange&&this.updatePath(t.updatePathEvent.currentValue)}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["paths-options"]],inputs:{formGroupName:[1,"formGroupName"],isArray:[1,"isArray"],enableTimeout:[1,"enableTimeout"],dataTimeout:[1,"dataTimeout"],filterSelfPaths:[1,"filterSelfPaths"],addPathEvent:[1,"addPathEvent"],delPathEvent:[1,"delPathEvent"],updatePathEvent:[1,"updatePathEvent"]},features:[ae],decls:14,vars:5,consts:[[1,"widget-options-grid"],["name","enableTimeout",3,"formControl"],["type","number","matNativeControl","","placeholder","Time in seconds...","name","dataTimeout","min","2","required","",3,"formControl"],["matTextSuffix",""],[3,"formGroup"],["name","filterSelfPaths",3,"formControl"],[2,"display","block",3,"pathFormGroup","filterSelfPaths","multiCTRLArray"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"mat-checkbox",1),l(2," Enable Widget Data TTL "),o(),n(3,"mat-form-field")(4,"mat-label"),l(5,"TTL Timeout For Paths"),o(),_(6,"input",2),n(7,"span",3),l(8,"Seconds"),o()()(),Ui(9,4),u(10,On,2,0)(11,Ln,3,2),zi(),n(12,"mat-checkbox",5),l(13,` Restrict to own vessel
5
- `),o()),a&2&&(s(),p("formControl",i.enableTimeout()),s(5),p("formControl",i.dataTimeout()),s(3),p("formGroup",i.pathsFormGroup),s(),g(i.isArray()?10:11),s(2),p("formControl",i.filterSelfPaths()))},dependencies:[wt,it,tt,Yt,F,et,L,ye,N,xt,H,R,V,at,xe,Mo,bo],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:5px}"]})}return e})();function Nn(e,c){if(e&1){let t=I();n(0,"button",7),v("click",function(){w(t);let i=h();return S(i.dateTimezone().setValue(""))}),_(1,"span",8),o()}}function Vn(e,c){if(e&1&&(n(0,"mat-option",6),l(1),o()),e&2){let t=c.$implicit;p("value",t.label),s(),he(" ",t.offset," - ",t.label," ")}}function Rn(e){return c=>e.some(a=>a.label===c.value)?null:{requireMatch:!0}}var Bn=()=>{let e=Intl.supportedValuesOf("timeZone"),c=new Date;return e.map(t=>({offset:new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"shortOffset"}).formatToParts(c).find(d=>d.type==="timeZoneName")?.value||"",label:t}))},So=(()=>{class e{_destroyRef=m(me);dateFormat=b(void 0);dateTimezone=b(void 0);tz=[];filteredTZ;filteredTZSubscription=null;constructor(){}ngOnInit(){typeof Intl.supportedValuesOf<"u"?this.tz=Bn().sort((t,a)=>this.compareOffsets(t.offset,a.offset)):(console.log("[Widget Options] Feature not supported. Using static Time Zone list"),this.tz=[{offset:"GMT",label:"Africa/Abidjan"},{offset:"GMT",label:"Africa/Accra"},{offset:"GMT+3",label:"Africa/Addis_Ababa"},{offset:"GMT+1",label:"Africa/Algiers"},{offset:"GMT+3",label:"Africa/Asmera"},{offset:"GMT",label:"Africa/Bamako"},{offset:"GMT+1",label:"Africa/Bangui"},{offset:"GMT",label:"Africa/Banjul"},{offset:"GMT",label:"Africa/Bissau"},{offset:"GMT+2",label:"Africa/Blantyre"},{offset:"GMT+1",label:"Africa/Brazzaville"},{offset:"GMT+2",label:"Africa/Bujumbura"},{offset:"GMT+2",label:"Africa/Cairo"},{offset:"GMT",label:"Africa/Casablanca"},{offset:"GMT+2",label:"Africa/Ceuta"},{offset:"GMT",label:"Africa/Conakry"},{offset:"GMT",label:"Africa/Dakar"},{offset:"GMT+3",label:"Africa/Dar_es_Salaam"},{offset:"GMT+3",label:"Africa/Djibouti"},{offset:"GMT+1",label:"Africa/Douala"},{offset:"GMT",label:"Africa/El_Aaiun"},{offset:"GMT",label:"Africa/Freetown"},{offset:"GMT+2",label:"Africa/Gaborone"},{offset:"GMT+2",label:"Africa/Harare"},{offset:"GMT+2",label:"Africa/Johannesburg"},{offset:"GMT+2",label:"Africa/Juba"},{offset:"GMT+3",label:"Africa/Kampala"},{offset:"GMT+2",label:"Africa/Khartoum"},{offset:"GMT+2",label:"Africa/Kigali"},{offset:"GMT+1",label:"Africa/Kinshasa"},{offset:"GMT+1",label:"Africa/Lagos"},{offset:"GMT+1",label:"Africa/Libreville"},{offset:"GMT",label:"Africa/Lome"},{offset:"GMT+1",label:"Africa/Luanda"},{offset:"GMT+2",label:"Africa/Lubumbashi"},{offset:"GMT+2",label:"Africa/Lusaka"},{offset:"GMT+1",label:"Africa/Malabo"},{offset:"GMT+2",label:"Africa/Maputo"},{offset:"GMT+2",label:"Africa/Maseru"},{offset:"GMT+2",label:"Africa/Mbabane"},{offset:"GMT+3",label:"Africa/Mogadishu"},{offset:"GMT",label:"Africa/Monrovia"},{offset:"GMT+3",label:"Africa/Nairobi"},{offset:"GMT+1",label:"Africa/Ndjamena"},{offset:"GMT+1",label:"Africa/Niamey"},{offset:"GMT",label:"Africa/Nouakchott"},{offset:"GMT",label:"Africa/Ouagadougou"},{offset:"GMT+1",label:"Africa/Porto-Novo"},{offset:"GMT",label:"Africa/Sao_Tome"},{offset:"GMT+2",label:"Africa/Tripoli"},{offset:"GMT+1",label:"Africa/Tunis"},{offset:"GMT+2",label:"Africa/Windhoek"},{offset:"GMT-9",label:"America/Adak"},{offset:"GMT-8",label:"America/Anchorage"},{offset:"GMT-4",label:"America/Anguilla"},{offset:"GMT-4",label:"America/Antigua"},{offset:"GMT-3",label:"America/Araguaina"},{offset:"GMT-3",label:"America/Argentina/La_Rioja"},{offset:"GMT-3",label:"America/Argentina/Rio_Gallegos"},{offset:"GMT-3",label:"America/Argentina/Salta"},{offset:"GMT-3",label:"America/Argentina/San_Juan"},{offset:"GMT-3",label:"America/Argentina/San_Luis"},{offset:"GMT-3",label:"America/Argentina/Tucuman"},{offset:"GMT-3",label:"America/Argentina/Ushuaia"},{offset:"GMT-4",label:"America/Aruba"},{offset:"GMT-3",label:"America/Asuncion"},{offset:"GMT-3",label:"America/Bahia"},{offset:"GMT-6",label:"America/Bahia_Banderas"},{offset:"GMT-4",label:"America/Barbados"},{offset:"GMT-3",label:"America/Belem"},{offset:"GMT-6",label:"America/Belize"},{offset:"GMT-4",label:"America/Blanc-Sablon"},{offset:"GMT-4",label:"America/Boa_Vista"},{offset:"GMT-5",label:"America/Bogota"},{offset:"GMT-6",label:"America/Boise"},{offset:"GMT-3",label:"America/Buenos_Aires"},{offset:"GMT-6",label:"America/Cambridge_Bay"},{offset:"GMT-4",label:"America/Campo_Grande"},{offset:"GMT-5",label:"America/Cancun"},{offset:"GMT-4",label:"America/Caracas"},{offset:"GMT-3",label:"America/Catamarca"},{offset:"GMT-3",label:"America/Cayenne"},{offset:"GMT-5",label:"America/Cayman"},{offset:"GMT-5",label:"America/Chicago"},{offset:"GMT-6",label:"America/Chihuahua"},{offset:"GMT-6",label:"America/Ciudad_Juarez"},{offset:"GMT-5",label:"America/Coral_Harbour"},{offset:"GMT-3",label:"America/Cordoba"},{offset:"GMT-6",label:"America/Costa_Rica"},{offset:"GMT-7",label:"America/Creston"},{offset:"GMT-4",label:"America/Cuiaba"},{offset:"GMT-4",label:"America/Curacao"},{offset:"GMT",label:"America/Danmarkshavn"},{offset:"GMT-7",label:"America/Dawson"},{offset:"GMT-7",label:"America/Dawson_Creek"},{offset:"GMT-6",label:"America/Denver"},{offset:"GMT-4",label:"America/Detroit"},{offset:"GMT-4",label:"America/Dominica"},{offset:"GMT-6",label:"America/Edmonton"},{offset:"GMT-5",label:"America/Eirunepe"},{offset:"GMT-6",label:"America/El_Salvador"},{offset:"GMT-7",label:"America/Fort_Nelson"},{offset:"GMT-3",label:"America/Fortaleza"},{offset:"GMT-3",label:"America/Glace_Bay"},{offset:"GMT-1",label:"America/Godthab"},{offset:"GMT-3",label:"America/Goose_Bay"},{offset:"GMT-4",label:"America/Grand_Turk"},{offset:"GMT-4",label:"America/Grenada"},{offset:"GMT-4",label:"America/Guadeloupe"},{offset:"GMT-6",label:"America/Guatemala"},{offset:"GMT-5",label:"America/Guayaquil"},{offset:"GMT-4",label:"America/Guyana"},{offset:"GMT-3",label:"America/Halifax"},{offset:"GMT-4",label:"America/Havana"},{offset:"GMT-7",label:"America/Hermosillo"},{offset:"GMT-5",label:"America/Indiana/Knox"},{offset:"GMT-4",label:"America/Indiana/Marengo"},{offset:"GMT-4",label:"America/Indiana/Petersburg"},{offset:"GMT-5",label:"America/Indiana/Tell_City"},{offset:"GMT-4",label:"America/Indiana/Vevay"},{offset:"GMT-4",label:"America/Indiana/Vincennes"},{offset:"GMT-4",label:"America/Indiana/Winamac"},{offset:"GMT-4",label:"America/Indianapolis"},{offset:"GMT-6",label:"America/Inuvik"},{offset:"GMT-4",label:"America/Iqaluit"},{offset:"GMT-5",label:"America/Jamaica"},{offset:"GMT-3",label:"America/Jujuy"},{offset:"GMT-8",label:"America/Juneau"},{offset:"GMT-4",label:"America/Kentucky/Monticello"},{offset:"GMT-4",label:"America/Kralendijk"},{offset:"GMT-4",label:"America/La_Paz"},{offset:"GMT-5",label:"America/Lima"},{offset:"GMT-7",label:"America/Los_Angeles"},{offset:"GMT-4",label:"America/Louisville"},{offset:"GMT-4",label:"America/Lower_Princes"},{offset:"GMT-3",label:"America/Maceio"},{offset:"GMT-6",label:"America/Managua"},{offset:"GMT-4",label:"America/Manaus"},{offset:"GMT-4",label:"America/Marigot"},{offset:"GMT-4",label:"America/Martinique"},{offset:"GMT-5",label:"America/Matamoros"},{offset:"GMT-7",label:"America/Mazatlan"},{offset:"GMT-3",label:"America/Mendoza"},{offset:"GMT-5",label:"America/Menominee"},{offset:"GMT-6",label:"America/Merida"},{offset:"GMT-8",label:"America/Metlakatla"},{offset:"GMT-6",label:"America/Mexico_City"},{offset:"GMT-2",label:"America/Miquelon"},{offset:"GMT-3",label:"America/Moncton"},{offset:"GMT-6",label:"America/Monterrey"},{offset:"GMT-3",label:"America/Montevideo"},{offset:"GMT-4",label:"America/Montserrat"},{offset:"GMT-4",label:"America/Nassau"},{offset:"GMT-4",label:"America/New_York"},{offset:"GMT-8",label:"America/Nome"},{offset:"GMT-2",label:"America/Noronha"},{offset:"GMT-5",label:"America/North_Dakota/Beulah"},{offset:"GMT-5",label:"America/North_Dakota/Center"},{offset:"GMT-5",label:"America/North_Dakota/New_Salem"},{offset:"GMT-5",label:"America/Ojinaga"},{offset:"GMT-5",label:"America/Panama"},{offset:"GMT-3",label:"America/Paramaribo"},{offset:"GMT-7",label:"America/Phoenix"},{offset:"GMT-4",label:"America/Port-au-Prince"},{offset:"GMT-4",label:"America/Port_of_Spain"},{offset:"GMT-4",label:"America/Porto_Velho"},{offset:"GMT-4",label:"America/Puerto_Rico"},{offset:"GMT-3",label:"America/Punta_Arenas"},{offset:"GMT-5",label:"America/Rankin_Inlet"},{offset:"GMT-3",label:"America/Recife"},{offset:"GMT-6",label:"America/Regina"},{offset:"GMT-5",label:"America/Resolute"},{offset:"GMT-5",label:"America/Rio_Branco"},{offset:"GMT-3",label:"America/Santarem"},{offset:"GMT-3",label:"America/Santiago"},{offset:"GMT-4",label:"America/Santo_Domingo"},{offset:"GMT-3",label:"America/Sao_Paulo"},{offset:"GMT-1",label:"America/Scoresbysund"},{offset:"GMT-8",label:"America/Sitka"},{offset:"GMT-4",label:"America/St_Barthelemy"},{offset:"GMT-2:30",label:"America/St_Johns"},{offset:"GMT-4",label:"America/St_Kitts"},{offset:"GMT-4",label:"America/St_Lucia"},{offset:"GMT-4",label:"America/St_Thomas"},{offset:"GMT-4",label:"America/St_Vincent"},{offset:"GMT-6",label:"America/Swift_Current"},{offset:"GMT-6",label:"America/Tegucigalpa"},{offset:"GMT-3",label:"America/Thule"},{offset:"GMT-7",label:"America/Tijuana"},{offset:"GMT-4",label:"America/Toronto"},{offset:"GMT-4",label:"America/Tortola"},{offset:"GMT-7",label:"America/Vancouver"},{offset:"GMT-7",label:"America/Whitehorse"},{offset:"GMT-5",label:"America/Winnipeg"},{offset:"GMT-8",label:"America/Yakutat"},{offset:"GMT+8",label:"Antarctica/Casey"},{offset:"GMT+7",label:"Antarctica/Davis"},{offset:"GMT+10",label:"Antarctica/DumontDUrville"},{offset:"GMT+11",label:"Antarctica/Macquarie"},{offset:"GMT+5",label:"Antarctica/Mawson"},{offset:"GMT+13",label:"Antarctica/McMurdo"},{offset:"GMT-3",label:"Antarctica/Palmer"},{offset:"GMT-3",label:"Antarctica/Rothera"},{offset:"GMT+3",label:"Antarctica/Syowa"},{offset:"GMT+2",label:"Antarctica/Troll"},{offset:"GMT+5",label:"Antarctica/Vostok"},{offset:"GMT+2",label:"Arctic/Longyearbyen"},{offset:"GMT+3",label:"Asia/Aden"},{offset:"GMT+5",label:"Asia/Almaty"},{offset:"GMT+3",label:"Asia/Amman"},{offset:"GMT+12",label:"Asia/Anadyr"},{offset:"GMT+5",label:"Asia/Aqtau"},{offset:"GMT+5",label:"Asia/Aqtobe"},{offset:"GMT+5",label:"Asia/Ashgabat"},{offset:"GMT+5",label:"Asia/Atyrau"},{offset:"GMT+3",label:"Asia/Baghdad"},{offset:"GMT+3",label:"Asia/Bahrain"},{offset:"GMT+4",label:"Asia/Baku"},{offset:"GMT+7",label:"Asia/Bangkok"},{offset:"GMT+7",label:"Asia/Barnaul"},{offset:"GMT+3",label:"Asia/Beirut"},{offset:"GMT+6",label:"Asia/Bishkek"},{offset:"GMT+8",label:"Asia/Brunei"},{offset:"GMT+5:30",label:"Asia/Calcutta"},{offset:"GMT+9",label:"Asia/Chita"},{offset:"GMT+5:30",label:"Asia/Colombo"},{offset:"GMT+3",label:"Asia/Damascus"},{offset:"GMT+6",label:"Asia/Dhaka"},{offset:"GMT+9",label:"Asia/Dili"},{offset:"GMT+4",label:"Asia/Dubai"},{offset:"GMT+5",label:"Asia/Dushanbe"},{offset:"GMT+3",label:"Asia/Famagusta"},{offset:"GMT+2",label:"Asia/Gaza"},{offset:"GMT+2",label:"Asia/Hebron"},{offset:"GMT+8",label:"Asia/Hong_Kong"},{offset:"GMT+7",label:"Asia/Hovd"},{offset:"GMT+8",label:"Asia/Irkutsk"},{offset:"GMT+7",label:"Asia/Jakarta"},{offset:"GMT+9",label:"Asia/Jayapura"},{offset:"GMT+3",label:"Asia/Jerusalem"},{offset:"GMT+4:30",label:"Asia/Kabul"},{offset:"GMT+12",label:"Asia/Kamchatka"},{offset:"GMT+5",label:"Asia/Karachi"},{offset:"GMT+5:45",label:"Asia/Katmandu"},{offset:"GMT+9",label:"Asia/Khandyga"},{offset:"GMT+7",label:"Asia/Krasnoyarsk"},{offset:"GMT+8",label:"Asia/Kuala_Lumpur"},{offset:"GMT+8",label:"Asia/Kuching"},{offset:"GMT+3",label:"Asia/Kuwait"},{offset:"GMT+8",label:"Asia/Macau"},{offset:"GMT+11",label:"Asia/Magadan"},{offset:"GMT+8",label:"Asia/Makassar"},{offset:"GMT+8",label:"Asia/Manila"},{offset:"GMT+4",label:"Asia/Muscat"},{offset:"GMT+3",label:"Asia/Nicosia"},{offset:"GMT+7",label:"Asia/Novokuznetsk"},{offset:"GMT+7",label:"Asia/Novosibirsk"},{offset:"GMT+6",label:"Asia/Omsk"},{offset:"GMT+5",label:"Asia/Oral"},{offset:"GMT+7",label:"Asia/Phnom_Penh"},{offset:"GMT+7",label:"Asia/Pontianak"},{offset:"GMT+9",label:"Asia/Pyongyang"},{offset:"GMT+3",label:"Asia/Qatar"},{offset:"GMT+5",label:"Asia/Qostanay"},{offset:"GMT+5",label:"Asia/Qyzylorda"},{offset:"GMT+6:30",label:"Asia/Rangoon"},{offset:"GMT+3",label:"Asia/Riyadh"},{offset:"GMT+7",label:"Asia/Saigon"},{offset:"GMT+11",label:"Asia/Sakhalin"},{offset:"GMT+5",label:"Asia/Samarkand"},{offset:"GMT+9",label:"Asia/Seoul"},{offset:"GMT+8",label:"Asia/Shanghai"},{offset:"GMT+8",label:"Asia/Singapore"},{offset:"GMT+11",label:"Asia/Srednekolymsk"},{offset:"GMT+8",label:"Asia/Taipei"},{offset:"GMT+5",label:"Asia/Tashkent"},{offset:"GMT+4",label:"Asia/Tbilisi"},{offset:"GMT+3:30",label:"Asia/Tehran"},{offset:"GMT+6",label:"Asia/Thimphu"},{offset:"GMT+9",label:"Asia/Tokyo"},{offset:"GMT+7",label:"Asia/Tomsk"},{offset:"GMT+8",label:"Asia/Ulaanbaatar"},{offset:"GMT+6",label:"Asia/Urumqi"},{offset:"GMT+10",label:"Asia/Ust-Nera"},{offset:"GMT+7",label:"Asia/Vientiane"},{offset:"GMT+10",label:"Asia/Vladivostok"},{offset:"GMT+9",label:"Asia/Yakutsk"},{offset:"GMT+5",label:"Asia/Yekaterinburg"},{offset:"GMT+4",label:"Asia/Yerevan"},{offset:"GMT",label:"Atlantic/Azores"},{offset:"GMT-3",label:"Atlantic/Bermuda"},{offset:"GMT+1",label:"Atlantic/Canary"},{offset:"GMT-1",label:"Atlantic/Cape_Verde"},{offset:"GMT+1",label:"Atlantic/Faeroe"},{offset:"GMT+1",label:"Atlantic/Madeira"},{offset:"GMT",label:"Atlantic/Reykjavik"},{offset:"GMT-2",label:"Atlantic/South_Georgia"},{offset:"GMT",label:"Atlantic/St_Helena"},{offset:"GMT-3",label:"Atlantic/Stanley"},{offset:"GMT+10:30",label:"Australia/Adelaide"},{offset:"GMT+10",label:"Australia/Brisbane"},{offset:"GMT+10:30",label:"Australia/Broken_Hill"},{offset:"GMT+9:30",label:"Australia/Darwin"},{offset:"GMT+8:45",label:"Australia/Eucla"},{offset:"GMT+11",label:"Australia/Hobart"},{offset:"GMT+10",label:"Australia/Lindeman"},{offset:"GMT+11",label:"Australia/Lord_Howe"},{offset:"GMT+11",label:"Australia/Melbourne"},{offset:"GMT+8",label:"Australia/Perth"},{offset:"GMT+11",label:"Australia/Sydney"},{offset:"GMT+2",label:"Europe/Amsterdam"},{offset:"GMT+2",label:"Europe/Andorra"},{offset:"GMT+4",label:"Europe/Astrakhan"},{offset:"GMT+3",label:"Europe/Athens"},{offset:"GMT+2",label:"Europe/Belgrade"},{offset:"GMT+2",label:"Europe/Berlin"},{offset:"GMT+2",label:"Europe/Bratislava"},{offset:"GMT+2",label:"Europe/Brussels"},{offset:"GMT+3",label:"Europe/Bucharest"},{offset:"GMT+2",label:"Europe/Budapest"},{offset:"GMT+2",label:"Europe/Busingen"},{offset:"GMT+3",label:"Europe/Chisinau"},{offset:"GMT+2",label:"Europe/Copenhagen"},{offset:"GMT+1",label:"Europe/Dublin"},{offset:"GMT+2",label:"Europe/Gibraltar"},{offset:"GMT+1",label:"Europe/Guernsey"},{offset:"GMT+3",label:"Europe/Helsinki"},{offset:"GMT+1",label:"Europe/Isle_of_Man"},{offset:"GMT+3",label:"Europe/Istanbul"},{offset:"GMT+1",label:"Europe/Jersey"},{offset:"GMT+2",label:"Europe/Kaliningrad"},{offset:"GMT+3",label:"Europe/Kiev"},{offset:"GMT+3",label:"Europe/Kirov"},{offset:"GMT+1",label:"Europe/Lisbon"},{offset:"GMT+2",label:"Europe/Ljubljana"},{offset:"GMT+1",label:"Europe/London"},{offset:"GMT+2",label:"Europe/Luxembourg"},{offset:"GMT+2",label:"Europe/Madrid"},{offset:"GMT+2",label:"Europe/Malta"},{offset:"GMT+3",label:"Europe/Mariehamn"},{offset:"GMT+3",label:"Europe/Minsk"},{offset:"GMT+2",label:"Europe/Monaco"},{offset:"GMT+3",label:"Europe/Moscow"},{offset:"GMT+2",label:"Europe/Oslo"},{offset:"GMT+2",label:"Europe/Paris"},{offset:"GMT+2",label:"Europe/Podgorica"},{offset:"GMT+2",label:"Europe/Prague"},{offset:"GMT+3",label:"Europe/Riga"},{offset:"GMT+2",label:"Europe/Rome"},{offset:"GMT+4",label:"Europe/Samara"},{offset:"GMT+2",label:"Europe/San_Marino"},{offset:"GMT+2",label:"Europe/Sarajevo"},{offset:"GMT+4",label:"Europe/Saratov"},{offset:"GMT+3",label:"Europe/Simferopol"},{offset:"GMT+2",label:"Europe/Skopje"},{offset:"GMT+3",label:"Europe/Sofia"},{offset:"GMT+2",label:"Europe/Stockholm"},{offset:"GMT+3",label:"Europe/Tallinn"},{offset:"GMT+2",label:"Europe/Tirane"},{offset:"GMT+4",label:"Europe/Ulyanovsk"},{offset:"GMT+2",label:"Europe/Vaduz"},{offset:"GMT+2",label:"Europe/Vatican"},{offset:"GMT+2",label:"Europe/Vienna"},{offset:"GMT+3",label:"Europe/Vilnius"},{offset:"GMT+3",label:"Europe/Volgograd"},{offset:"GMT+2",label:"Europe/Warsaw"},{offset:"GMT+2",label:"Europe/Zagreb"},{offset:"GMT+2",label:"Europe/Zurich"},{offset:"GMT+3",label:"Indian/Antananarivo"},{offset:"GMT+6",label:"Indian/Chagos"},{offset:"GMT+7",label:"Indian/Christmas"},{offset:"GMT+6:30",label:"Indian/Cocos"},{offset:"GMT+3",label:"Indian/Comoro"},{offset:"GMT+5",label:"Indian/Kerguelen"},{offset:"GMT+4",label:"Indian/Mahe"},{offset:"GMT+5",label:"Indian/Maldives"},{offset:"GMT+4",label:"Indian/Mauritius"},{offset:"GMT+3",label:"Indian/Mayotte"},{offset:"GMT+4",label:"Indian/Reunion"},{offset:"GMT+13",label:"Pacific/Apia"},{offset:"GMT+13",label:"Pacific/Auckland"},{offset:"GMT+11",label:"Pacific/Bougainville"},{offset:"GMT+13:45",label:"Pacific/Chatham"},{offset:"GMT-5",label:"Pacific/Easter"},{offset:"GMT+11",label:"Pacific/Efate"},{offset:"GMT+13",label:"Pacific/Enderbury"},{offset:"GMT+13",label:"Pacific/Fakaofo"},{offset:"GMT+12",label:"Pacific/Fiji"},{offset:"GMT+12",label:"Pacific/Funafuti"},{offset:"GMT-6",label:"Pacific/Galapagos"},{offset:"GMT-9",label:"Pacific/Gambier"},{offset:"GMT+11",label:"Pacific/Guadalcanal"},{offset:"GMT+10",label:"Pacific/Guam"},{offset:"GMT-10",label:"Pacific/Honolulu"},{offset:"GMT+14",label:"Pacific/Kiritimati"},{offset:"GMT+11",label:"Pacific/Kosrae"},{offset:"GMT+12",label:"Pacific/Kwajalein"},{offset:"GMT+12",label:"Pacific/Majuro"},{offset:"GMT-9:30",label:"Pacific/Marquesas"},{offset:"GMT-11",label:"Pacific/Midway"},{offset:"GMT+12",label:"Pacific/Nauru"},{offset:"GMT-11",label:"Pacific/Niue"},{offset:"GMT+12",label:"Pacific/Norfolk"},{offset:"GMT+11",label:"Pacific/Noumea"},{offset:"GMT-11",label:"Pacific/Pago_Pago"},{offset:"GMT+9",label:"Pacific/Palau"},{offset:"GMT-8",label:"Pacific/Pitcairn"},{offset:"GMT+11",label:"Pacific/Ponape"},{offset:"GMT+10",label:"Pacific/Port_Moresby"},{offset:"GMT-10",label:"Pacific/Rarotonga"},{offset:"GMT+10",label:"Pacific/Saipan"},{offset:"GMT-10",label:"Pacific/Tahiti"},{offset:"GMT+12",label:"Pacific/Tarawa"},{offset:"GMT+13",label:"Pacific/Tongatapu"},{offset:"GMT+10",label:"Pacific/Truk"},{offset:"GMT+12",label:"Pacific/Wake"},{offset:"GMT+12",label:"Pacific/Wallis"}].sort((t,a)=>this.compareOffsets(t.offset,a.offset))),this.tz.unshift({offset:"",label:"System Timezone -"}),this.dateTimezone().setValidators([j.required,Rn(this.tz)]),this.filteredTZ=this.dateTimezone().valueChanges.pipe(Fe(500),de(""),se(t=>this.filterTZ(t||""))),this.filteredTZSubscription=this.filteredTZ.pipe(Wt(this._destroyRef)).subscribe()}filterTZ(t){let a=t.toLowerCase();return this.tz.filter(i=>i.label.toLowerCase().includes(a))}compareOffsets(t,a){let i=r=>{let d=r.match(/([+-]?)(\d+)(?::(\d+))?/);if(!d)return 0;let f=d[1]==="-"?-1:1,M=parseInt(d[2],10),G=d[3]?parseInt(d[3],10):0;return f*(M*60+G)};return i(t)-i(a)}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["display-datetime-options"]],inputs:{dateFormat:[1,"dateFormat"],dateTimezone:[1,"dateTimezone"]},decls:15,vars:6,consts:[["timeZoneAutoComplete","matAutocomplete"],[1,"widget-options-grid"],[1,"options-grid-span2"],["matInput","","placeholder","dd/MM/yyyy HH:mm:ss","name","dateFormat","required","",3,"formControl"],["type","text","matInput","","placeholder","Type to use autocomplete","name","dateTimezone","required","",3,"formControl","matAutocomplete"],["mat-icon-button","","matSuffix","","aria-label","Clear"],[3,"value"],["mat-icon-button","","matSuffix","","aria-label","Clear",3,"click"],[1,"fa-solid","fa-close"]],template:function(a,i){if(a&1&&(n(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),l(3,"Date & Time Format"),o(),_(4,"input",3),o(),n(5,"mat-form-field",2)(6,"mat-label"),l(7,"Adjust Value to Time Zone"),o(),_(8,"input",4),u(9,Nn,2,0,"button",5),n(10,"mat-autocomplete",null,0),C(12,Vn,2,3,"mat-option",6,Ve),Vt(14,"async"),o()()()),a&2){let r=pt(11);s(4),p("formControl",i.dateFormat()),s(4),p("formControl",i.dateTimezone())("matAutocomplete",r),s(),g(i.dateTimezone().value?9:-1),s(3),x(Rt(14,4,i.filteredTZ))}},dependencies:[R,V,at,it,tt,F,L,N,xt,Ge,rt,xe,si,K,We],encapsulation:2})}return e})();function Wn(e,c){if(e&1&&(n(0,"mat-option",6),l(1),Vt(2,"titlecase"),o()),e&2){let t=c.$implicit;p("value",At(t)),s(),k(Rt(2,3,t))}}var ki={V1_PLUGIN:"autopilot",V2_BASE:"/signalk/v2/api",V2_AUTOPILOTS:"/signalk/v2/api/vessels/self/autopilots",V2_DEFAULT_AUTOPILOT_ID:"/signalk/v2/api/vessels/self/autopilots/_providers/_default"},ko={options:{modes:[],states:[]},state:null,mode:"off-line",target:null,engaged:!1},To=(()=>{class e{formGroupName=b.required();_plugins=m(ai);_destroyRef=m(me);http=m(ea);rootFormGroup=m(H);autopilotFormGroup;apiVersion=T(null);availableAutopilots=T({});autopilotPlugin=T(null);discoveryInProgress=T(!1);apiDetectionError=T(null);apInstances=$i(()=>{let t=this.availableAutopilots();return t?Object.keys(t):[]});modes=T(null);pluginId=T(null);currentRequests=new Set;constructor(){Be(()=>{this.autopilotFormGroup.get("apiVersion")?.setValue(this.apiVersion(),{emitEvent:!1})})}ngOnInit(){this.autopilotFormGroup=this.rootFormGroup.control.get(this.formGroupName()),this.modes.set(this.autopilotFormGroup.value.modes||null),this.detectAutopilotApi()}detectAutopilotApi(){return $(this,null,function*(){this.discoveryInProgress.set(!0),console.log("[Autopilot Options] Starting API detection...");try{if(yield this.checkV2Api())if(this.apiVersion.set("v2"),this.autopilotFormGroup.get("apiVersion")?.setValue("v2",{emitEvent:!1}),yield this.discoverV2Autopilots(),this.availableAutopilots()&&Object.keys(this.availableAutopilots()).length>0){this.pluginId.set(this.autopilotPlugin()),this.autopilotFormGroup.get("pluginId")?.setValue(this.autopilotPlugin(),{emitEvent:!1}),this.discoveryInProgress.set(!1);return}else console.warn("[Autopilot Options] No V2 autopilot plugin found")}catch(t){console.error("[Autopilot Options] Error checking V2 API, checking V1...",t)}try{if(yield this._plugins.isEnabled(ki.V1_PLUGIN)){this.apiVersion.set("v1"),this.autopilotFormGroup.get("apiVersion")?.setValue("v1",{emitEvent:!1}),this.availableAutopilots.set({"Default Autopilot":{provider:"Signal K Autopilot",isDefault:!0}}),this.pluginId.set("Signal K Autopilot"),this.autopilotFormGroup.get("pluginId")?.setValue("Signal K Autopilot",{emitEvent:!1}),console.log("[Autopilot Options] V1 API Signal K Autopilot plugin detected"),this.discoveryInProgress.set(!1);return}console.log("[Autopilot Options] V1 API plugin (signalk-autopilot) not found")}catch(t){console.error("[Autopilot Options] V1 plugin detection failed:",t)}console.warn("[Autopilot Options] No Autopilot detected"),this.discoveryInProgress.set(!1)})}checkV2Api(){return $(this,null,function*(){try{return(yield Oe(this.makeHttpRequest(this.http.get(ki.V2_AUTOPILOTS,{observe:"response",responseType:"json"}))))?.status===200}catch(t){if(t&&typeof t=="object"&&"status"in t){let a=t;a.status===404?console.log("[Autopilot Options] V2 API endpoint not found (404)"):a.status>=500?console.warn("[Autopilot Options] V2 API server error:",a.status,a.statusText):console.log("[Autopilot Options] V2 API error:",a.status,a.statusText)}else console.log("[Autopilot Options] V2 API network error:",t);return!1}})}discoverV2Autopilots(){return $(this,null,function*(){try{let t=yield Oe(this.makeHttpRequest(this.http.get(ki.V2_AUTOPILOTS)));t&&Object.keys(t).length>0?(this.availableAutopilots.set(t),console.log("[Autopilot Options] Discovered V2 autopilot instances:",JSON.stringify(t))):(this.availableAutopilots.set({}),console.warn("[Autopilot Options] No V2 autopilot plugin found in response."))}catch(t){console.error("[Autopilot Options] Failed to discover V2 autopilots:",t),this.availableAutopilots.set({}),this.apiDetectionError.set(`Failed to discover autopilots: ${t instanceof Error?t.message:"Unknown error"}`)}})}discoverV2AutopilotOptions(t){return $(this,null,function*(){let a;try{try{this.discoveryInProgress.set(!0),a=yield Oe(this.makeHttpRequest(this.http.get(`API_PATHS.V2_AUTOPILOTS/${t}`))),console.log("[Autopilot Options] V2 Autopilot Options response:",JSON.stringify(a))}catch{a=ko,console.log(`[Autopilot Options] Default AP discovery endpoint error for instance '${t}'`)}return this.discoveryInProgress.set(!1),a}catch(i){return console.error("[Autopilot Options] Failed to discover V2 endpoints:",i),console.log(`[Autopilot Options] Using fallback V2 endpoints for instance '${t}'`),ko}})}onAutopilotInstanceIdChange(t){let a=t.value;if(t.value===""){this.modes.set(""),this.autopilotFormGroup.get("modes")?.setValue("",{emitEvent:!1});return}console.log("[Autopilot Options] Selected Autopilot Instance ID:",a),this.apiVersion()==="v2"?this.discoverV2AutopilotOptions(a).then(i=>{let r=i.options.modes||[];this.modes.set(r.join(", ")),this.autopilotFormGroup.get("modes")?.setValue(r,{emitEvent:!1}),console.log("[Autopilot Options] Autopilot plugin supported modes :",r.join(", "))}).catch(i=>{console.error("[Autopilot Options] Error requesting autopilot modes:",i),this.autopilotFormGroup.get("modes")?.setValue([],{emitEvent:!1})}):this.apiVersion()==="v1"&&(this.modes.set("standby, auto, wind, route"),this.autopilotFormGroup.get("modes")?.setValue("standby, auto, wind, route",{emitEvent:!1}),console.log("[Autopilot Options] Autopilot mode set to Raymarine v1 API modes: standby, auto, wind, route"))}makeHttpRequest(t){let a=t.pipe(Wt(this._destroyRef));return this.currentRequests.add(a),a.pipe(Oi(()=>this.currentRequests.delete(a)))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["select-autopilot"]],inputs:{formGroupName:[1,"formGroupName"]},decls:30,vars:4,consts:[[1,"display-content","tab-content"],[1,"autopilot-options",3,"formGroup"],[1,"flex-item-rounded-card","rounded-card-color",2,"margin-block","10px"],[2,"margin-block-start","0px"],["placeholder","Select autopilot...","formControlName","instanceId","name","instanceId","required","",3,"selectionChange"],["value",""],[3,"value"],[1,"flex-item-rounded-card","rounded-card-color",2,"margin-block","10px","margin-left","10px","margin-right","10px"],["name","headingDirectionTrue","formControlName","headingDirectionTrue"],["name","invertRudder","formControlName","invertRudder"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),l(4,"Signal K Service Discovery"),o(),n(5,"ul")(6,"li")(7,"b"),l(8,"API Version:"),o(),l(9),o(),n(10,"li")(11,"b"),l(12,"Plugin:"),o(),l(13),o()()(),n(14,"mat-form-field")(15,"mat-label"),l(16,"Target Autopilot"),o(),n(17,"mat-select",4),v("selectionChange",function(d){return i.onAutopilotInstanceIdChange(d)}),n(18,"mat-option",5),l(19,"No autopilot"),o(),C(20,Wn,3,5,"mat-option",6,A),o()(),n(22,"div",7)(23,"b"),l(24,"Supported modes:"),o(),l(25),o(),n(26,"mat-checkbox",8),l(27," Display True Heading "),o(),n(28,"mat-checkbox",9),l(29," Invert Rudder Angle Indicator "),o()()()),a&2&&(s(),p("formGroup",i.autopilotFormGroup),s(8),W(" ",i.apiVersion()),s(4),W(" ",i.pluginId()),s(7),x(i.apInstances()),s(5),W(" ",i.modes()," "))},dependencies:[N,F,et,L,H,$t,Mt,R,V,Xt,wt,Zt,dt,K,Qt,Ji],styles:[".autopilot-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}"]})}return e})();var Ao=()=>["measuring","capacity"],Un=()=>["marineCompass","baseplateCompass"],zn=()=>["measuring"];function qn(e,c){if(e&1&&_(0,"config-display-chart-options",5),e&2){let t=h();p("displayName",t.displayNameToControl)("datasetUUID",t.datasetUUIDToControl)("convertUnitTo",t.convertUnitToControl)("showAverageData",t.showAverageDataToControl)("trackAgainstAverage",t.trackAgainstAverageToControl)("datasetAverageArray",t.datasetAverageArrayToControl)("showDatasetMinimumValueLine",t.showDatasetMinimumValueLineToControl)("showDatasetMaximumValueLine",t.showDatasetMaximumValueLineToControl)("showDatasetAverageValueLine",t.showDatasetAverageValueLineToControl)("showDatasetAngleAverageValueLine",t.showDatasetAngleAverageValueLineToControl)("startScaleAtZero",t.startScaleAtZeroToControl)("showLabel",t.showLabelToControl)("showTimeScale",t.showTimeScaleToControl)("showYScale",t.showYScaleToControl)("yScaleSuggestedMin",t.yScaleSuggestedMinToControl)("yScaleSuggestedMax",t.yScaleSuggestedMaxToControl)("enableMinMaxScaleLimit",t.enableMinMaxScaleLimitToControl)("yScaleMin",t.yScaleMinToControl)("yScaleMax",t.yScaleMaxToControl)("numDecimal",t.numDecimalToControl)("verticalChart",t.verticalChartToControl)("inverseYAxis",t.inverseYAxisToControl)("color",t.colorToControl)}}function jn(e,c){e&1&&_(0,"select-autopilot",6)}function Hn(e,c){e&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"URL"),o(),_(3,"input",40),o())}function Kn(e,c){e&1&&(n(0,"mat-checkbox",17),l(1," Allow pointer events on embedded content. WARNING: this may prevent swipe gestures over the Embed widget or keyboard events, while the focus is in the embed, from triggering normal KIP interactions. "),o())}function Yn(e,c){e&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"Widget Label"),o(),_(3,"input",41),o())}function $n(e,c){e&1&&(n(0,"mat-form-field",42)(1,"mat-label"),l(2,"Scale Start"),o(),_(3,"input",43),o(),n(4,"mat-form-field",42)(5,"mat-label"),l(6,"Scale End"),o(),_(7,"input",44),o())}function Qn(e,c){e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Integer Places"),o(),_(3,"input",45),o())}function Zn(e,c){if(e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Decimal Places"),o(),_(3,"input",46),o()),e&2){let t=h(2);ge(t.widgetConfig.showMiniChart!==void 0?"options-grid-span2":"")}}function Xn(e,c){e&1&&(n(0,"mat-checkbox",19),l(1," Show Min recorded value "),o())}function Jn(e,c){e&1&&(n(0,"mat-checkbox",20),l(1," Show Max recorded value "),o())}function tl(e,c){if(e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Next Dashboard after start"),o(),_(3,"input",47),o()),e&2){let t=h(2);B("options-grid-span2",!t.widgetConfig.numInt)}}function el(e,c){if(e&1&&(n(0,"mat-option",50),l(1),o()),e&2){let t=c.$implicit;p("value",t.measure),s(),W(" ",t.description," ")}}function il(e,c){if(e&1&&(n(0,"mat-optgroup",49),C(1,el,2,2,"mat-option",50,A),o()),e&2){let t=h().$implicit;p("label",t.group),s(),x(t.units)}}function al(e,c){if(e&1&&u(0,il,3,1,"mat-optgroup",49),e&2){let t=c.$implicit,a=h(3);g(!a.widgetConfig.convertUnitToGroup||a.widgetConfig.convertUnitToGroup===""||a.widgetConfig.convertUnitToGroup===t.group?0:-1)}}function ol(e,c){if(e&1&&(n(0,"mat-form-field",22)(1,"mat-label"),l(2,"Display Units"),o(),n(3,"mat-select",48),C(4,al,1,1,null,null,A),o()()),e&2){let t=h(2);s(4),x(t.unitList.conversions)}}function nl(e,c){e&1&&(n(0,"mat-checkbox",23),l(1," Enable beeps on count down "),o())}function ll(e,c){if(e&1&&_(0,"display-datetime-options",24),e&2){let t=h(2);p("dateFormat",t.dateFormatToControl)("dateTimezone",t.dateTimezoneToControl)}}function rl(e,c){e&1&&(n(0,"mat-checkbox",25),l(1," Close-hauled Lines "),o())}function sl(e,c){e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Vessel Close-hauled Angle"),o(),_(3,"input",51),o())}function cl(e,c){e&1&&(n(0,"mat-checkbox",26),l(1," Wind Sectors "),o())}function dl(e,c){e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Sector Duration"),o(),_(3,"input",52),o())}function ml(e,c){e&1&&(n(0,"mat-checkbox",27),l(1," Apparent Wind Speed Value "),o())}function pl(e,c){e&1&&(n(0,"mat-checkbox",28),l(1," True Wind Speed Value "),o())}function ul(e,c){e&1&&(n(0,"mat-checkbox",29),l(1," Course Over Ground "),o())}function gl(e,c){e&1&&(n(0,"mat-checkbox",30),l(1," True Wind Angle Indicator "),o())}function hl(e,c){e&1&&(n(0,"mat-checkbox",31),l(1," Next Waypoint "),o())}function fl(e,c){e&1&&(n(0,"mat-checkbox",32),l(1," Drift "),o())}function bl(e,c){e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Minimum Value"),o(),_(3,"input",53),o())}function _l(e,c){e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Maximum Value"),o(),_(3,"input",54),o())}function vl(e,c){e&1&&(n(0,"mat-checkbox",33),l(1," Ignore Zones configuration "),o())}function yl(e,c){e&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Highlights Width"),o(),_(3,"input",55),o())}function Cl(e,c){e&1&&(n(0,"mat-form-field",35)(1,"mat-label"),l(2,"Rotation Element"),o(),n(3,"mat-select",56)(4,"mat-option",57),l(5,"Dial (Marine Compass)"),o(),n(6,"mat-option",58),l(7,"Needle (Base plate compass)"),o()()(),n(8,"div",34)(9,"mat-checkbox",59),l(10," Show value box "),o()(),n(11,"div",34)(12,"mat-checkbox",60),l(13," Show cardinal degrees "),o()())}function xl(e,c){e&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Progress Bar Start Position"),o(),n(3,"mat-select",63)(4,"mat-option",64),l(5,"Left"),o(),n(6,"mat-option",65),l(7,"Middle"),o(),n(8,"mat-option",66),l(9,"Right"),o()()())}function Ml(e,c){e&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Progress Bar Start Angle"),o(),_(3,"input",67),o())}function wl(e,c){if(e&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Gauge Type"),o(),n(3,"mat-select",56)(4,"mat-option",61),l(5,"Measuring"),o(),n(6,"mat-option",62),l(7,"Capacity"),o()()(),u(8,xl,10,0,"mat-form-field",34),u(9,Ml,4,0,"mat-form-field",34)),e&2){let t=h(3);s(8),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngRadial"&&Te(2,zn).includes(t.formMaster.value.gauge.subType)?8:-1),s(),g(t.formMaster.value.gauge.subType==="capacity"?9:-1)}}function Sl(e,c){if(e&1&&u(0,Cl,14,0)(1,wl,10,3),e&2){let t=h(2);g(Te(1,Un).indexOf(t.formMaster.value.gauge.subType)>-1?0:Te(2,Ao).indexOf(t.formMaster.value.gauge.subType)>-1?1:-1)}}function kl(e,c){e&1&&(n(0,"div",34)(1,"mat-checkbox",68),l(2," Use needle indicator "),o()(),n(3,"div",34)(4,"mat-checkbox",69),l(5," Enable Ticks "),o()(),n(6,"mat-form-field",35)(7,"mat-label"),l(8,"Orientation"),o(),n(9,"mat-select",70)(10,"mat-option",71),l(11,"Vertical"),o(),n(12,"mat-option",72),l(13,"Horizontal"),o()()())}function Tl(e,c){e&1&&(n(0,"mat-form-field",35)(1,"mat-label"),l(2,"Unit Label"),o(),n(3,"mat-select",73)(4,"mat-option",74),l(5,"Full Label"),o(),n(6,"mat-option",75),l(7,"First Letter Only"),o()()())}function Al(e,c){if(e&1&&(n(0,"mat-option",50),l(1),o()),e&2){let t=c.$implicit;p("value",At(t.value)),s(),k(t.label)}}function El(e,c){if(e&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"Color"),o(),n(3,"mat-select",76),C(4,Al,2,3,"mat-option",50,A),o()()),e&2){let t=h(2);s(4),x(t.colors)}}function Dl(e,c){e&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"Scale Span"),o(),n(3,"mat-select",77)(4,"mat-option",78),l(5,"1 Minute"),o(),n(6,"mat-option",79),l(7,"5 Minutes"),o(),n(8,"mat-option",80),l(9,"30 Minutes"),o()()())}function Gl(e,c){e&1&&(n(0,"mat-checkbox",36),l(1," Show Background Graph "),n(2,"i"),l(3,"(Too many graphs may affect performance)"),o()())}function Il(e,c){e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Suggested Scale Start"),o(),_(3,"input",81),o())}function Pl(e,c){e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Suggested Scale End"),o(),_(3,"input",82),o())}function Ol(e,c){e&1&&(n(0,"mat-checkbox",37),l(1," Inverse Scale Axis "),o())}function Fl(e,c){e&1&&(n(0,"mat-checkbox",38),l(1," Vertical Data Graph "),o())}function Ll(e,c){e&1&&(n(0,"mat-checkbox",39),l(1," Disable background color "),o())}function Nl(e,c){if(e&1&&(n(0,"mat-option",50),l(1),o()),e&2){let t=c.$implicit;p("value",At(t.value)),s(),k(t.label)}}function Vl(e,c){if(e&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Background Color"),o(),n(3,"mat-select",83),C(4,Nl,2,3,"mat-option",50,A),o()()),e&2){let t=h(2);s(4),x(t.colors)}}function Rl(e,c){e&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Background Style"),o(),n(3,"mat-select",96)(4,"mat-option",97),l(5,"Dark Gray"),o(),n(6,"mat-option",98),l(7,"Satin Gray"),o(),n(8,"mat-option",99),l(9,"Light Gray"),o(),n(10,"mat-option",100),l(11,"White"),o(),n(12,"mat-option",101),l(13,"Black"),o(),n(14,"mat-option",102),l(15,"Beige"),o(),n(16,"mat-option",103),l(17,"Brown"),o(),n(18,"mat-option",104),l(19,"Red"),o(),n(20,"mat-option",105),l(21,"Green"),o(),n(22,"mat-option",106),l(23,"Blue"),o(),n(24,"mat-option",92),l(25,"Anthracite"),o(),n(26,"mat-option",107),l(27,"Mud"),o(),n(28,"mat-option",108),l(29,"Punched Sheet"),o(),n(30,"mat-option",109),l(31,"Carbon"),o(),n(32,"mat-option",110),l(33,"Stainless"),o(),n(34,"mat-option",111),l(35,"Brushed Metal"),o(),n(36,"mat-option",112),l(37,"Brushed Stainless"),o(),n(38,"mat-option",113),l(39,"Turned"),o()()())}function Bl(e,c){e&1&&(n(0,"div",34)(1,"mat-checkbox",114),l(2," Reverse Pitch Axis "),o()(),n(3,"div",34)(4,"mat-checkbox",115),l(5," Reverse Roll Axis "),o()(),n(6,"div",34)(7,"mat-checkbox",116),l(8," Show Frame "),o()())}function Wl(e,c){if(e&1&&(u(0,Rl,40,0,"mat-form-field",34),u(1,Bl,9,0),n(2,"mat-form-field",34)(3,"mat-label"),l(4,"Frame Style"),o(),n(5,"mat-select",84)(6,"mat-option",85),l(7,"Black Metal"),o(),n(8,"mat-option",86),l(9,"Metal"),o(),n(10,"mat-option",87),l(11,"Shiny Metal"),o(),n(12,"mat-option",88),l(13,"Brass"),o(),n(14,"mat-option",89),l(15,"Steel"),o(),n(16,"mat-option",90),l(17,"Chrome"),o(),n(18,"mat-option",91),l(19,"Gold"),o(),n(20,"mat-option",92),l(21,"Anthracite"),o(),n(22,"mat-option",93),l(23,"Tilted Gray"),o(),n(24,"mat-option",94),l(25,"Tilted Black"),o(),n(26,"mat-option",95),l(27,"Glossy Metal"),o()()()),e&2){let t=h(2);g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)!=="horizon"?0:-1),s(),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="horizon"?1:-1)}}function Ul(e,c){if(e&1&&(n(0,"div",7)(1,"div",15),u(2,Hn,4,0,"mat-form-field",16),u(3,Kn,2,0,"mat-checkbox",17),u(4,Yn,4,0,"mat-form-field",16),u(5,$n,8,0),u(6,Qn,4,0,"mat-form-field"),u(7,Zn,4,2,"mat-form-field",18),u(8,Xn,2,0,"mat-checkbox",19),u(9,Jn,2,0,"mat-checkbox",20),u(10,tl,4,2,"mat-form-field",21),u(11,ol,6,0,"mat-form-field",22),u(12,nl,2,0,"mat-checkbox",23),u(13,ll,1,2,"display-datetime-options",24),u(14,rl,2,0,"mat-checkbox",25),u(15,sl,4,0,"mat-form-field"),u(16,cl,2,0,"mat-checkbox",26),u(17,dl,4,0,"mat-form-field"),u(18,ml,2,0,"mat-checkbox",27),u(19,pl,2,0,"mat-checkbox",28),u(20,ul,2,0,"mat-checkbox",29),u(21,gl,2,0,"mat-checkbox",30),u(22,hl,2,0,"mat-checkbox",31),u(23,fl,2,0,"mat-checkbox",32),u(24,bl,4,0,"mat-form-field"),u(25,_l,4,0,"mat-form-field"),u(26,vl,2,0,"mat-checkbox",33),u(27,yl,4,0,"mat-form-field",34),u(28,Sl,2,3),u(29,kl,14,0),u(30,Tl,8,0,"mat-form-field",35),u(31,El,6,0,"mat-form-field",16),u(32,Dl,10,0,"mat-form-field",16),u(33,Gl,4,0,"mat-checkbox",36),u(34,Il,4,0,"mat-form-field"),u(35,Pl,4,0,"mat-form-field"),u(36,Ol,2,0,"mat-checkbox",37),u(37,Fl,2,0,"mat-checkbox",38),u(38,Ll,2,0,"mat-checkbox",39),u(39,Vl,6,0,"mat-form-field"),u(40,Wl,28,2),o()()),e&2){let t=h();s(2),g((t.widgetConfig==null?null:t.widgetConfig.widgetUrl)!==void 0?2:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.allowInput)!==void 0?3:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.displayName)!==void 0?4:-1),s(),g(t.formMaster.get("displayScale")?5:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.numInt)!==void 0?6:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.numDecimal)!==void 0?7:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.showMin)!==void 0?8:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.showMax)!==void 0?9:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.nextDashboard)!==void 0?10:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.convertUnitTo)!==void 0?11:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.playBeeps)!==void 0?12:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.dateFormat)!==void 0?13:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.laylineEnable)!==void 0?14:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.laylineEnable)!==void 0?15:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.windSectorEnable)!==void 0?16:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.windSectorEnable)!==void 0?17:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.awsEnable)!==void 0?18:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.twsEnable)!==void 0?19:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.courseOverGroundEnable)!==void 0?20:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.twaEnable)!==void 0?21:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.waypointEnable)!==void 0?22:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.driftEnable)!==void 0?23:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.minValue)!==void 0&&!t.formMaster.get("displayScale")?24:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.maxValue)!==void 0&&!t.formMaster.get("displayScale")?25:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.ignoreZones)!==void 0?26:-1),s(),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngRadial"&&Te(39,Ao).includes(t.formMaster.value.gauge.subType)||(t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngLinear"?27:-1),s(),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngRadial"?28:-1),s(),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngLinear"?29:-1),s(),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="simpleLinear"?30:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.color)!==void 0?31:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.timeScale)!==void 0?32:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.showMiniChart)!==void 0?33:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.yScaleMin)!==void 0?34:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.yScaleMax)!==void 0?35:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.inverseYAxis)!==void 0?36:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.verticalChart)!==void 0?37:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.noBgColor)!==void 0?38:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.bgColor)!==void 0?39:-1),s(),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="steel"||(t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="horizon"?40:-1)}}function zl(e,c){if(e&1&&(_(0,"span",120),l(1,"\xA0Controls ")),e&2){let t=h(2);ue(t.formMaster.controls.multiChildCtrls.valid?"display: none":"display: block")}}function ql(e,c){if(e&1){let t=I();n(0,"mat-tab",8)(1,"div",117)(2,"div"),Tt(3,zl,2,2,"ng-template",118),o(),n(4,"boolean-multicontrol-options",119),v("addPath",function(i){w(t);let r=h();return S(r.addPathGroup(i))})("updatePath",function(i){w(t);let r=h();return S(r.updatePath(i))})("delPath",function(i){w(t);let r=h();return S(r.deletePath(i))}),o()()()}if(e&2){let t=h();s(4),p("multiCtrlArray",t.multiChildCtrlsToControl)}}function jl(e,c){if(e&1&&(n(0,"span",122),l(1," error "),o(),l(2," \xA0Paths ")),e&2){let t=h(2);ue(t.formMaster.controls.paths.valid||t.formMaster.controls.paths.disabled?"display: none":"display: block")}}function Hl(e,c){if(e&1&&(n(0,"mat-tab",9)(1,"div",117)(2,"div"),Tt(3,jl,3,2,"ng-template",118),o(),_(4,"paths-options",121),o()()),e&2){let t=h();s(4),p("isArray",t.isPathArray)("enableTimeout",t.enableTimeoutToControl)("dataTimeout",t.dataTimeoutToControl)("filterSelfPaths",t.filterSelfPathsToControl)("addPathEvent",t.addPathEvent)("delPathEvent",t.delPathEvent)("updatePathEvent",t.updatePathEvent)}}function Kl(e,c){e&1&&(n(0,"p")(1,"mat-checkbox",125),l(2," Digital display "),o()())}function Yl(e,c){e&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"Dial Size"),o(),n(3,"mat-select",126)(4,"mat-option",127),l(5,"1/4"),o(),n(6,"mat-option",128),l(7,"1/2"),o(),n(8,"mat-option",129),l(9,"3/4"),o(),n(10,"mat-option",74),l(11,"Full"),o()()())}function $l(e,c){if(e&1&&(n(0,"mat-tab",10)(1,"div",7)(2,"mat-form-field",16)(3,"mat-label"),l(4,"Gauge Type"),o(),n(5,"mat-select",70)(6,"mat-option",123),l(7,"Linear"),o(),n(8,"mat-option",124),l(9,"Radial"),o()()(),u(10,Kl,3,0,"p"),u(11,Yl,12,0,"mat-form-field",16),o()()),e&2){let t=h();s(10),g(t.formMaster.value.gauge.subType==="linear"?10:-1),s(),g(t.formMaster.value.gauge.subType==="radial"?11:-1)}}function Ql(e,c){e&1&&(n(0,"p")(1,"mat-checkbox",132),l(2," Value to send on button push (checked = on, unchecked = off) "),o()())}function Zl(e,c){if(e&1&&(n(0,"mat-tab",11)(1,"div",117)(2,"p")(3,"mat-checkbox",130),l(4," Enable Put Requests "),o()(),n(5,"p")(6,"mat-checkbox",131),l(7," Momentary mode (instead of switching between on/off) "),o()(),u(8,Ql,3,0,"p"),o()()),e&2){let t=h();s(8),g(t.formMaster.controls.putMomentary.value?8:-1)}}function Xl(e,c){e&1&&_(0,"span",120)}function Jl(e,c){if(e&1&&(u(0,Xl,1,0,"span",120),l(1," Dataset ")),e&2){let t=h(2);g(t.formMaster.controls.datasetUUID.valid?-1:0)}}function tr(e,c){if(e&1&&(n(0,"mat-tab",12),Tt(1,Jl,2,1,"ng-template",118),_(2,"config-dataset-chart-options",133),o()),e&2){let t=h();s(2),p("datasetUUID",t.datasetUUIDToControl)("convertUnitTo",t.convertUnitToControl)}}var Eo=(()=>{class e{static KEY_MULTI_CHILD_CTRLS="multiChildCtrls";static KEY_DISPLAY_SCALE="displayScale";static KEY_GAUGE="gauge";static KEY_AUTOPILOT="autopilot";static KEY_PATHS="paths";static KEY_CONVERT_UNIT_TO="convertUnitTo";dialogRef=m(zt);fb=m(Ce);DatasetService=m(ii);units=m(we);app=m(fe);widgetConfig=m(qt);titleDialog="Widget Options";formMaster;availableDataSets;unitList={};isPathArray=!1;addPathEvent;delPathEvent;updatePathEvent;colors=[];ngOnInit(){if(!this.widgetConfig){console.error("Widget configuration data is missing. Closing dialog."),this.dialogRef.close();return}this.availableDataSets=this.DatasetService.list().sort((t,a)=>{let i=t.label||"",r=a.label||"";return i.localeCompare(r,void 0,{sensitivity:"base"})}),this.unitList=this.units.getConversionsForPath(""),this.formMaster=this.generateFormGroups(this.widgetConfig),this.colors=this.app.configurableThemeColors}isPlainObject(t){return Object.prototype.toString.call(t)==="[object Object]"}generateFormGroups(t,a){let i=this.fb.group({});return Object.keys(t).forEach(r=>{let d=t[r];if(d!==null&&(Array.isArray(d)||this.isPlainObject(d))){if(r===e.KEY_MULTI_CHILD_CTRLS){i.addControl(r,this.fb.array([]));let f=i.get(r);d.forEach(M=>{f.push(this.generateCtrlArray(M))})}else if(r===e.KEY_DISPLAY_SCALE)i.addControl(r,this.generateFormGroups(d,r));else if(r===e.KEY_GAUGE)i.addControl(r,this.generateFormGroups(d,r));else if(r===e.KEY_AUTOPILOT)i.addControl(r,this.generateFormGroups(d,r));else if(r===e.KEY_PATHS){let f=d;if(this.widgetConfig.multiChildCtrls!==void 0){this.isPathArray=!0,i.addControl(r,this.fb.array([]));let M=i.get(r);Object.keys(f).forEach(G=>{let P=f[G];if(P){let E=this.generatePathArray(G,P);P.isPathConfigurable===!1&&E.disable(),M.push(E)}})}else{let M=this.fb.group({});Object.keys(f).forEach(G=>{let P=f[G];if(P){let E=this.generateFormGroups(P,G);P.isPathConfigurable===!1&&E.disable(),M.addControl(G,E)}}),i.addControl(r,M)}}a===e.KEY_PATHS&&i.addControl(r,this.generateFormGroups(d,r))}else if(a===e.KEY_CONVERT_UNIT_TO){let f=t[r];(f&&f.pathType=="number"||"datasetUUID"in this.widgetConfig)&&i.addControl(r,new ct(d))}else switch(r){case"path":i.addControl(r,new ct(d));break;case"datasetUUID":i.addControl(r,new ct(d,j.required));break;case"dataTimeout":i.addControl(r,new ct(d,j.required));break;default:i.addControl(r,new ct(d));break}}),i}generatePathArray(t,a){let i=new Na({});return Object.keys(a).forEach(r=>{i.addControl(r,this.generatePathFields(r,a[r]))}),i}generatePathFields(t,a){let i=null;switch(t){case"path":i=new ct(a);break;case"source":i=new ct(a,j.required);break;case"sampleTime":i=new ct(a,j.required);break;default:i=new ct(a);break}return i}generateCtrlArray(t){let a=this.fb.group(t);return a.get("ctrlLabel").addValidators(j.required),a}addPathGroup(t){this.addPathEvent=t}updatePath(t){t.forEach(a=>{this.formMaster.get("paths").controls.forEach(r=>{r.get("pathID").value==a.pathID&&(r.controls.description.setValue(a.ctrlLabel),r.controls.pathType.setValue(a.isNumeric?"number":"boolean"),this.updatePathEvent=t)})})}deletePath(t){let a=this.formMaster.get("paths"),i=0;a.controls.forEach(d=>{d.get("pathID").value==t.pathID?a.removeAt(i):i++}),this.formMaster.get("multiChildCtrls").removeAt(t.ctrlIndex),this.delPathEvent=t.pathID,this.formMaster.updateValueAndValidity()}get convertUnitToControl(){return this.formMaster.get("convertUnitTo")}get datasetUUIDToControl(){return this.formMaster.get("datasetUUID")}get filterSelfPathsToControl(){return this.formMaster.get("filterSelfPaths")}get dataTimeoutToControl(){return this.formMaster.get("dataTimeout")}get enableTimeoutToControl(){return this.formMaster.get("enableTimeout")}get dateTimezoneToControl(){return this.formMaster.get("dateTimezone")}get yScaleSuggestedMaxToControl(){return this.formMaster.get("yScaleSuggestedMax")}get enableMinMaxScaleLimitToControl(){return this.formMaster.get("enableMinMaxScaleLimit")}get showDatasetMinimumValueLineToControl(){return this.formMaster.get("showDatasetMinimumValueLine")}get showDatasetMaximumValueLineToControl(){return this.formMaster.get("showDatasetMaximumValueLine")}get showDatasetAverageValueLineToControl(){return this.formMaster.get("showDatasetAverageValueLine")}get showDatasetAngleAverageValueLineToControl(){return this.formMaster.get("showDatasetAngleAverageValueLine")}get startScaleAtZeroToControl(){return this.formMaster.get("startScaleAtZero")}get showLabelToControl(){return this.formMaster.get("showLabel")}get showTimeScaleToControl(){return this.formMaster.get("showTimeScale")}get showYScaleToControl(){return this.formMaster.get("showYScale")}get yScaleSuggestedMinToControl(){return this.formMaster.get("yScaleSuggestedMin")}get yScaleMinToControl(){return this.formMaster.get("yScaleMin")}get yScaleMaxToControl(){return this.formMaster.get("yScaleMax")}get datasetAverageArrayToControl(){return this.formMaster.get("datasetAverageArray")}get trackAgainstAverageToControl(){return this.formMaster.get("trackAgainstAverage")}get showAverageDataToControl(){return this.formMaster.get("showAverageData")}get displayNameToControl(){return this.formMaster.get("displayName")}get numDecimalToControl(){return this.formMaster.get("numDecimal")}get verticalChartToControl(){return this.formMaster.get("verticalChart")}get inverseYAxisToControl(){return this.formMaster.get("inverseYAxis")}get colorToControl(){return this.formMaster.get("color")}get dateFormatToControl(){return this.formMaster.get("dateFormat")}get multiChildCtrlsToControl(){return this.formMaster.get("multiChildCtrls")}submitConfig(){this.dialogRef.close(this.formMaster.getRawValue())}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["modal-widget-config"]],decls:20,vars:9,consts:[[3,"ngSubmit","formGroup"],["mat-dialog-title",""],[1,"widget-config-dialog-content"],[1,"tab-group-content"],["label","Display"],[1,"tab-content",3,"displayName","datasetUUID","convertUnitTo","showAverageData","trackAgainstAverage","datasetAverageArray","showDatasetMinimumValueLine","showDatasetMaximumValueLine","showDatasetAverageValueLine","showDatasetAngleAverageValueLine","startScaleAtZero","showLabel","showTimeScale","showYScale","yScaleSuggestedMin","yScaleSuggestedMax","enableMinMaxScaleLimit","yScaleMin","yScaleMax","numDecimal","verticalChart","inverseYAxis","color"],["formGroupName","autopilot",1,"tab-content"],[1,"display-content","tab-content"],["label","Controls"],["label","Paths"],["label","Settings","formGroupName","gauge"],["label","Put Request"],["label","Dataset"],["type","button","mat-dialog-close","","mat-flat-button",""],["mat-flat-button","","type","submit",3,"disabled"],[1,"widget-options-grid"],[1,"options-grid-span2"],["name","allowInput","formControlName","allowInput",1,"options-grid-span2"],[3,"class"],["name","showMin","formControlName","showMin"],["name","showMax","formControlName","showMax"],[3,"options-grid-span2"],[1,"fields"],["name","playBeeps","formControlName","playBeeps"],[1,"options-grid-span2",3,"dateFormat","dateTimezone"],["name","laylineEnable","formControlName","laylineEnable",1,"fields"],["name","windSectorEnable","formControlName","windSectorEnable"],["name","awsEnable","formControlName","awsEnable"],["name","twsEnable","formControlName","twsEnable"],["name","courseOverGroundEnable","formControlName","courseOverGroundEnable"],["name","twaEnable","formControlName","twaEnable"],["name","waypointEnable","formControlName","waypointEnable"],["name","driftEnable","formControlName","driftEnable"],["name","ignoreZones","formControlName","ignoreZones"],["formGroupName","gauge"],["formGroupName","gauge",1,"options-grid-span2"],["name","showMiniChart","formControlName","showMiniChart",1,"options-grid-span2"],["name","inverseYAxis","formControlName","inverseYAxis"],["name","verticalChart","formControlName","verticalChart"],["name","noBgColor","formControlName","noBgColor"],["type","url","matInput","","placeholder","Enter URL to page/resource","name","widgetUrl","formControlName","widgetUrl"],["matInput","","placeholder","Enter a label to display","name","displayName","formControlName","displayName"],["formGroupName","displayScale","appearance","outline"],["matNativeControl","","type","number","name","lower","formControlName","lower","placeholder","Enter number..."],["matInput","","type","number","name","upper","formControlName","upper","placeholder","Enter number..."],["type","number","min","1","max","5","matInput","","placeholder","Enter or select number...","name","numInt","formControlName","numInt","required",""],["type","number","min","0","max","5","matInput","","placeholder","Enter or select number...","name","numDecimal","formControlName","numDecimal","required",""],["type","number","min","0","max","99","matInput","","placeholder","Enter or select number...","name","nextDashboard","formControlName","nextDashboard"],["placeholder","Select unit","formControlName","convertUnitTo","required",""],[3,"label"],[3,"value"],["type","number","min","10","max","90","matInput","","placeholder","Select angle...","name","laylineAngle","formControlName","laylineAngle"],["type","number","min","1","max","90","matInput","","placeholder","Select or enter duration...","name","windSectorWindowSeconds","formControlName","windSectorWindowSeconds"],["matInput","","type","number","name","minValue","formControlName","minValue","placeholder","Enter or select number..."],["matInput","","type","number","name","maxValue","formControlName","maxValue","placeholder","Enter or select number..."],["type","number","min","0","max","25","matInput","","placeholder","Enter or select number...","name","highlightsWidth","formControlName","highlightsWidth","required",""],["placeholder","Select Gauge Type...","formControlName","subType","name","subType"],["value","marineCompass"],["value","baseplateCompass"],["name","showValueBox","formControlName","showValueBox"],["name","compassUseNumbers","formControlName","compassUseNumbers"],["value","measuring"],["value","capacity"],["placeholder","Select start position...","formControlName","barStartPosition","name","barStartPosition"],["value","left"],["value","middle"],["value","right"],["type","number","min","1","max","360","matInput","","placeholder","Enter or select number...","name","scaleStart","formControlName","scaleStart","required",""],["name","useNeedle","formControlName","useNeedle"],["name","enableTicks","formControlName","enableTicks"],["placeholder","Select type...","formControlName","subType","name","subType"],["value","vertical"],["value","horizontal"],["placeholder","Select label format","formControlName","unitLabelFormat","name","unitLabelFormat"],["value","full"],["value","abr"],["placeholder","Select Color...","formControlName","color","name","color","required",""],["placeholder","Select span duration...","formControlName","timeScale","name","timeScale","required",""],["value","Last Minute"],["value","Last 5 Minutes"],["value","Last 30 Minutes"],["type","number","matInput","","placeholder","Enter or select number...","name","yScaleMin","formControlName","yScaleMin","required",""],["type","number","matInput","","placeholder","Enter or select number...","name","yScaleMax","formControlName","yScaleMax","required",""],["placeholder","Select Color...","formControlName","bgColor","name","bgColor","required",""],["placeholder","Select style...","formControlName","faceColor","name","faceColor"],["value","blackMetal"],["value","metal"],["value","shinyMetal"],["value","brass"],["value","steel"],["value","chrome"],["value","gold"],["value","anthracite"],["value","tiltedGray"],["value","tiltedBlack"],["value","glossyMetal"],["placeholder","Select style...","formControlName","backgroundColor","name","backgroundColor"],["value","darkGray"],["value","satinGray"],["value","lightGray"],["value","white"],["value","black"],["value","beige"],["value","brown"],["value","red"],["value","green"],["value","blue"],["value","mud"],["value","punchedSheet"],["value","carbon"],["value","stainless"],["value","brushedMetal"],["value","brushedStainless"],["value","turned"],["name","invertPitch","formControlName","invertPitch"],["name","invertRoll","formControlName","invertRoll"],["name","noFrameVisible","formControlName","noFrameVisible"],[1,"tab-content"],["mat-tab-label",""],[3,"addPath","updatePath","delPath","multiCtrlArray"],[1,"warning","fa","fa-exclamation-circle"],["formGroupName","paths",3,"isArray","enableTimeout","dataTimeout","filterSelfPaths","addPathEvent","delPathEvent","updatePathEvent"],[1,"warning","material-icons"],["value","linear"],["value","radial"],["formControlName","digitalMeter","name","digitalMeter"],["placeholder","Select size...","formControlName","radialSize","name","radialSize"],["value","quarter"],["value","half"],["value","three-quarter"],["formControlName","putEnable","name","putEnable"],["formControlName","putMomentary","name","putMomentary"],["formControlName","putMomentaryValue","name","putMomentaryValue"],[3,"datasetUUID","convertUnitTo"]],template:function(a,i){a&1&&(n(0,"form",0),v("ngSubmit",function(){return i.submitConfig()}),n(1,"h6",1),l(2),o(),n(3,"mat-dialog-content",2)(4,"mat-tab-group",3)(5,"mat-tab",4),u(6,qn,1,23,"config-display-chart-options",5)(7,jn,1,0,"select-autopilot",6)(8,Ul,41,40,"div",7),o(),u(9,ql,5,1,"mat-tab",8),u(10,Hl,5,7,"mat-tab",9),u(11,$l,12,2,"mat-tab",10),u(12,Zl,9,1,"mat-tab",11),u(13,tr,3,2,"mat-tab",12),o()(),_(14,"mat-divider"),n(15,"mat-dialog-actions")(16,"button",13),l(17,"Cancel"),o(),n(18,"button",14),l(19," Save "),o()()()),a&2&&(p("formGroup",i.formMaster),s(2),k(i.titleDialog),s(4),g((i.widgetConfig==null?null:i.widgetConfig.datasetUUID)!==void 0?6:i.widgetConfig!=null&&i.widgetConfig.autopilot?7:8),s(3),g((i.widgetConfig==null?null:i.widgetConfig.multiChildCtrls)!==void 0?9:-1),s(),g((i.widgetConfig==null?null:i.widgetConfig.paths)!==void 0?10:-1),s(),g((i.widgetConfig==null||i.widgetConfig.gauge==null?null:i.widgetConfig.gauge.type)==="steel"?11:-1),s(),g((i.widgetConfig==null?null:i.widgetConfig.putEnable)!==void 0&&(i.widgetConfig==null?null:i.widgetConfig.multiChildCtrls)===void 0?12:-1),s(),g((i.widgetConfig==null?null:i.widgetConfig.datasetUUID)!==void 0?13:-1),s(5),p("disabled",!i.formMaster.valid))},dependencies:[it,Xe,tt,Yt,F,et,L,ye,Je,N,H,$t,Wa,Ct,jt,Ht,ve,Kt,Mt,R,V,Qt,at,lo,ao,oo,no,Xt,wt,Zt,dt,K,Me,ei,ja,st,Ut,So,ho,fo,uo,wo,To],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.widget-config-dialog-content[_ngcontent-%COMP%]{height:100%}.display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}.warning[_ngcontent-%COMP%]{color:var(--mat-sys-error-container)}.tab-group-content[_ngcontent-%COMP%]{overflow:hidden;width:100%}"]})}return e})();var er=["button"],ir=["*"];function ar(e,c){if(e&1&&(n(0,"div",2),_(1,"mat-pseudo-checkbox",6),o()),e&2){let t=h();s(),p("disabled",t.disabled)}}var Do=new Q("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:or});function or(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Go=new Q("MatButtonToggleGroup"),nr={provide:Ze,useExisting:ke(()=>Ti),multi:!0},ci=class{source;value;constructor(c,t){this.source=c,this.value=t}},Ti=(()=>{class e{_changeDetector=m(oe);_dir=m(Ye,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}_name=m(Ae).getId("mat-button-toggle-group-");vertical;get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(a=>a.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}valueChange=new lt;get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new lt;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let t=m(Do,{optional:!0});this.appearance=t&&t.appearance?t.appearance:"standard",this.hideSingleSelectionIndicator=t?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=t?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Xa(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let i=t.target.id,r=this._buttonToggles.toArray().findIndex(f=>f.buttonId===i),d=null;switch(t.keyCode){case 32:case 13:d=this._buttonToggles.get(r)||null;break;case 38:d=this._getNextButton(r,-1);break;case 37:d=this._getNextButton(r,this.dir==="ltr"?-1:1);break;case 40:d=this._getNextButton(r,1);break;case 39:d=this._getNextButton(r,this.dir==="ltr"?1:-1);break;default:return}d&&(t.preventDefault(),d._onButtonClick(),d.focus())}_emitChangeEvent(t){let a=new ci(t,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(t,a,i=!1,r=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(t):this._selectionModel.deselect(t):r=!0,r?Promise.resolve().then(()=>this._updateModelValue(t,i)):this._updateModelValue(t,i)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>t.value!=null&&a===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;t<this._buttonToggles.length;t++){let a=this._buttonToggles.get(t);if(!a.disabled){a.tabIndex=0;break}}}_getNextButton(t,a){let i=this._buttonToggles;for(let r=1;r<=i.length;r++){let d=(t+a*r+i.length)%i.length,f=i.get(d);if(f&&!f.disabled)return f}return null}_setSelectionByValue(t){if(this._rawValue=t,!this._buttonToggles)return;let a=this._buttonToggles.toArray();if(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(i=>this._selectValue(i,a))):(this._clearSelection(),this._selectValue(t,a)),!this.multiple&&a.every(i=>i.tabIndex===-1)){for(let i of a)if(!i.disabled){i.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t,a){for(let i of a)if(i.value===t){i.checked=!0,this._selectionModel.select(i),this.multiple||(i.tabIndex=0);break}}_updateModelValue(t,a){a&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}static \u0275fac=function(a){return new(a||e)};static \u0275dir=Z({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,i,r){if(a&1&&mt(r,di,5),a&2){let d;z(d=q())&&(i._buttonToggles=d)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,i){a&1&&v("keydown",function(d){return i._keydown(d)}),a&2&&(U("role",i.multiple?"group":"radiogroup")("aria-disabled",i.disabled),B("mat-button-toggle-vertical",i.vertical)("mat-button-toggle-group-appearance-standard",i.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",O],value:"value",multiple:[2,"multiple","multiple",O],disabled:[2,"disabled","disabled",O],disabledInteractive:[2,"disabledInteractive","disabledInteractive",O],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",O],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",O]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Nt([nr,{provide:Go,useExisting:e}])]})}return e})(),di=(()=>{class e{_changeDetectorRef=m(oe);_elementRef=m(kt);_focusMonitor=m(pa);_idGenerator=m(Ae);_animationDisabled=yt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(t){this._tabIndex.set(t)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new lt;constructor(){m(je).load($e);let t=m(Go,{optional:!0}),a=m(new Qi("tabindex"),{optional:!0})||"",i=m(Do,{optional:!0});this._tabIndex=T(parseInt(a)||0),this.buttonToggleGroup=t,this.appearance=i&&i.appearance?i.appearance:"standard",this.disabledInteractive=i?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(i=>i.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new ci(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(a,i){if(a&1&&Lt(er,5),a&2){let r;z(r=q())&&(i._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,i){a&1&&v("focus",function(){return i.focus()}),a&2&&(U("aria-label",null)("aria-labelledby",null)("id",i.id)("name",null),B("mat-button-toggle-standalone",!i.buttonToggleGroup)("mat-button-toggle-checked",i.checked)("mat-button-toggle-disabled",i.disabled)("mat-button-toggle-disabled-interactive",i.disabledInteractive)("mat-button-toggle-appearance-standard",i.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",O],appearance:"appearance",checked:[2,"checked","checked",O],disabled:[2,"disabled","disabled",O],disabledInteractive:[2,"disabledInteractive","disabledInteractive",O]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:ir,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(a,i){if(a&1){let r=I();_t(),n(0,"button",1,0),v("click",function(){return w(r),S(i._onButtonClick())}),u(2,ar,2,1,"div",2),n(3,"span",3),Y(4),o()(),_(5,"span",4)(6,"span",5)}if(a&2){let r=pt(1);p("id",i.buttonId)("disabled",i.disabled&&!i.disabledInteractive||null),U("role",i.isSingleSelector()?"radio":"button")("tabindex",i.disabled&&!i.disabledInteractive?-1:i.tabIndex)("aria-pressed",i.isSingleSelector()?null:i.checked)("aria-checked",i.isSingleSelector()?i.checked:null)("name",i._getButtonName())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),s(2),g(i.buttonToggleGroup&&(!i.buttonToggleGroup.multiple&&!i.buttonToggleGroup.hideSingleSelectionIndicator||i.buttonToggleGroup.multiple&&!i.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),s(4),p("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)}},dependencies:[va,Ha],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}
6
- `],encapsulation:2,changeDetection:0})}return e})(),Io=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=bt({type:e});static \u0275inj=ft({imports:[X,Qe,di,X]})}return e})();var rr=["Core","Gauge","Component","Racing"];var Po=(()=>{class e{_plugins=m(ai);_widgetCategories=[...rr];_widgetDefinition=[{name:"Numeric",description:"Displays numeric data in a clear and concise format, with options to show minimum and/or maximum recorded values. Includes an optional background minichart for quick visual trend insights.",icon:"numericWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-numeric",componentClassName:"WidgetNumericComponent"},{name:"Text",description:"Displays text data with a customizable color formatting option.",icon:"textWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-text",componentClassName:"WidgetTextComponent"},{name:"Date & Time",description:"Displays date and time data with fully custom formatting options and timezone correction.",icon:"datetimeWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-datetime",componentClassName:"WidgetDatetimeComponent"},{name:"Position",description:"Displays latitude and longitude for location tracking and navigation.",icon:"positionWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-position",componentClassName:"WidgetPositionComponent"},{name:"Static Label",description:"A static text widget that allows you to add customizable labels to your dashboard, helping to organize and clarify your layout effectively.",icon:"labelWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-label",componentClassName:"WidgetLabelComponent"},{name:"Switch Panel",description:"A switch panel group with multiple controls including toggle switches, indicator lights, and press buttons for digital switching and other operations.",icon:"switchpanelWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-boolean-switch",componentClassName:"WidgetBooleanSwitchComponent"},{name:"Slider",description:"A range slider that allows users to adjust values, such as controlling lighting intensity from 0% to 100%.",icon:"sliderWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-slider",componentClassName:"WidgetSliderComponent"},{name:"Compact Linear",description:"A simple horizontal linear gauge with a large value label offering a clean, compact modern look.",icon:"simpleLinearGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-simple-linear",componentClassName:"WidgetSimpleLinearComponent"},{name:"Linear",description:"A horizontal or vertical linear gauge that supports zone highlighting.",icon:"linearGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-linear",componentClassName:"WidgetGaugeNgLinearComponent"},{name:"Radial",description:"A radial gauge with configurable capacity and measurement dials plus zone highlighting.",icon:"radialGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-radial",componentClassName:"WidgetGaugeNgRadialComponent"},{name:"Compass",description:"A faceplate or card-style rotating compass gauge with multiple cardinal point indicator options.",icon:"compassGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-compass",componentClassName:"WidgetGaugeNgCompassComponent"},{name:"Pitch & Roll",description:"Horizon-style attitude indicator showing live pitch and roll (\xB0) with smooth animation\u2014ideal for monitoring trim, heel, and sea-state response.",icon:"pitchRollGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-horizon",componentClassName:"WidgetHorizonComponent"},{name:"Classic Steel",description:"A traditional steel looking linear & radial gauges replica that supports range sizes and zones highlights.",icon:"steelGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-steel",componentClassName:"WidgetSteelGaugeComponent"},{name:"Windsteer",description:"A wind steering display that combines wind, wind sectors, heading, course over ground and next waypoint information.",icon:"windsteeringWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-wind-steer",componentClassName:"WidgetWindComponent"},{name:"Freeboard-SK",description:"Adds the Freeboard-SK chart plotter as a widget with automatic sign-in to your dashboard.",icon:"freeboardWidget",minWidth:3,minHeight:4,defaultWidth:3,defaultHeight:7,category:"Component",requiredPlugins:["freeboard-sk","tracks","resources-provider","course-provider"],selector:"widget-freeboardsk",componentClassName:"WidgetFreeboardskComponent"},{name:"Autopilot Head",description:"Provides typical autopilot controls for Signal K v1 & v2 Autopilot API devices. Requires a compatible hardware-specific Autopilot plugin for full functionality.",icon:"autopilotWidget",minWidth:2,minHeight:7,defaultWidth:2,defaultHeight:7,category:"Component",requiredPlugins:[],optionalPlugins:["autopilot","pypilot-autopilot-provider"],selector:"widget-autopilot",componentClassName:"WidgetAutopilotComponent"},{name:"Realtime Data Chart",description:"Visualizes data on a real-time chart with multiple preconfigured series including actuals, SMA and period overall averages and Min/Max. Requires the KIP Dataset to be configured.",icon:"datachartWidget",minWidth:1,minHeight:2,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-data-chart",componentClassName:"WidgetDataChartComponent"},{name:"Embed Webpage Viewer",description:"Embeds external web-based applications\u2014such as Grafana graphs or other Signal K apps\u2014into your dashboard for seamless integration. Interaction is disabled by default but can be enabled.",icon:"embedWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-iframe",componentClassName:"WidgetIframeComponent"},{name:"Racesteer",description:"A dynamic race steering display that fuses polar performance data with live conditions to guide optimal steering, tacking, and gybing angles for maximum speed. Instantly compare performance against competition polars for smarter tactical decisions.",icon:"racesteeringWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Racing",requiredPlugins:["signalk-polar-performance-plugin"],selector:"widget-racesteer",componentClassName:"WidgetRacesteerComponent"},{name:"Racer - Start Line Insight",description:"Gain a tactical advantage for racing starts: set and adjust the port and starboard ends of the start line, see your distance to the line, the favored end, and how much the line is favored or unfavored. Includes visual integration with Freeboard SK for interactive line adjustment and display.",icon:"racerlineWidget",minWidth:2,minHeight:2,defaultWidth:2,defaultHeight:2,requiredPlugins:["signalk-racer"],category:"Racing",selector:"widget-racer-line",componentClassName:"WidgetRacerLineComponent"},{name:"Racer - Start Timer",description:"An advanced racing countdown timer that indicates OCS (On Course Side) status. Set the start line, choose or adjust the duration, or specify the exact start time. Automatically switches to the target dashboard at the start unless over early.",icon:"racertimerWidget",minWidth:2,minHeight:2,defaultWidth:2,defaultHeight:2,requiredPlugins:["signalk-racer"],category:"Racing",selector:"widget-racer-timer",componentClassName:"WidgetRacerTimerComponent"},{name:"Wind Trends",description:"Real-time True Wind trends with dual top axes for direction (\xB0) and speed (knots). Displays live values and SMA over the current period\u2019s average.",icon:"windtrendsWidget",minWidth:5,minHeight:4,defaultWidth:5,defaultHeight:4,category:"Racing",requiredPlugins:[],selector:"widget-windtrends-chart",componentClassName:"WidgetWindTrendsChartComponent"},{name:"Countdown Timer",description:"A simple race start countdown timer that can be started, paused, synced, reset, and configured for duration.",icon:"racetimerWidget",minWidth:3,minHeight:3,defaultWidth:3,defaultHeight:4,category:"Racing",requiredPlugins:[],selector:"widget-racetimer",componentClassName:"WidgetRaceTimerComponent"}];get kipWidgets(){return this._widgetDefinition}get categories(){return this._widgetCategories}getKipWidgetsWithStatus(){return $(this,null,function*(){let t={},a=Array.from(new Set(this._widgetDefinition.flatMap(i=>[...i.requiredPlugins||[],...i.optionalPlugins||[]])));return yield Promise.all(a.map(i=>$(this,null,function*(){t[i]=yield this._plugins.isEnabled(i)}))),this._widgetDefinition.map(i=>{let r=i.requiredPlugins||[],d=i.optionalPlugins||[],f=r.map(E=>({name:E,enabled:t[E],required:!0})),M=d.map(E=>({name:E,enabled:t[E],required:!1})),G=[...f,...M],P=f.every(E=>E.enabled);return P&&d.length>0&&(P=M.some(E=>E.enabled)),gt(nt({},i),{isDependencyValid:P,pluginsStatus:G})})})}static \u0275fac=function(a){return new(a||e)};static \u0275prov=ht({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function sr(e,c){e&1&&(n(0,"span"),l(1,", "),o())}function cr(e,c){if(e&1&&(n(0,"span",8),l(1),n(2,"span",9),l(3),o()(),u(4,sr,2,0,"span")),e&2){let t=c.$implicit,a=c.$index,i=c.$count,r=h(2);p("ngClass",r.pluginDependencyValid()?t.required?"":t.enabled?"dependency-optional-present-met":"dependency-optional-missing-met":t.enabled?t.required?"dependency-required-ok":"dependency-optional-ok":t.required?"dependency-required-error":"dependency-optional-error"),U("title",t.required?"Required":"Optional"),s(),he(" ",t.enabled?"\u2714":"\u2716"," ",t.name," "),s(2),k(t.required?"":"(optional)"),s(),g(a!==i-1?4:-1)}}function dr(e,c){if(e&1&&(n(0,"div",7)(1,"span"),l(2,"Plugins:"),o(),C(3,cr,5,6,null,null,A),o()),e&2){let t=h();ue(t.pluginsStatus().length>0?"margin-bottom: 8px;margin-top: 4px;":""),s(),ge(t.pluginDependencyValid()?"":"dependency-error"),s(2),x(t.pluginsStatus())}}var Oo=(()=>{class e{static _iconSetRegistered=!1;svgIcon=b.required();iconSize=b.required();name=b.required();description=b.required();pluginsStatus=b.required();pluginDependencyValid=b.required();constructor(){let t=m(ca),a=m(la);e._iconSetRegistered||(t.addSvgIconSet(a.bypassSecurityTrustResourceUrl("assets/svg/icons.svg")),e._iconSetRegistered=!0)}onKeydown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.target.click())}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["widget-list-card"]],hostBindings:function(a,i){a&1&&v("keydown",function(d){return i.onKeydown(d)})},inputs:{svgIcon:[1,"svgIcon"],iconSize:[1,"iconSize"],name:[1,"name"],description:[1,"description"],pluginsStatus:[1,"pluginsStatus"],pluginDependencyValid:[1,"pluginDependencyValid"]},decls:9,vars:11,consts:[["role","button","tabindex","0",1,"item-container"],[1,"item-icon"],["aria-hidden","false",3,"svgIcon"],[1,"item-label"],[1,"title","no-text-select"],[1,"dependency","no-text-select",3,"style"],[1,"description","no-text-select"],[1,"dependency","no-text-select"],[3,"ngClass"],[1,"plugin-type-label"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1),_(2,"mat-icon",2),o(),n(3,"div",3)(4,"p",4),l(5),o(),u(6,dr,5,4,"div",5),n(7,"span",6),l(8),o()()()),a&2&&(U("aria-disabled",i.pluginDependencyValid()?null:"true"),s(2),Re("width",i.iconSize(),"px")("height",i.iconSize(),"px"),p("svgIcon",i.svgIcon()),s(2),ue(i.pluginsStatus().length>0?"margin-bottom:0px; margin-top: 4px":""),s(),k(i.name()),s(),g(i.pluginsStatus().length>0?6:-1),s(2),k(i.description()))},dependencies:[ta,Zi,vt,J],styles:["[_nghost-%COMP%]{display:block;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;padding:0}.item-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;width:100%;height:100%;margin:0;padding:15px;border:solid 1px var(--mat-sys-outline);cursor:pointer}.item-container[_ngcontent-%COMP%]:hover{background-color:var(--mat-sys-inverse-on-surface)}.item-container[_ngcontent-%COMP%]:focus-visible{background-color:var(--mat-sys-surface-bright);outline:-webkit-focus-ring-color auto 0px}.item-icon[_ngcontent-%COMP%]{width:48px}.item-label[_ngcontent-%COMP%]{width:calc(100% - 48px);text-align:left;padding-left:15px}.title[_ngcontent-%COMP%]{font-size:var(--mat-sys-label-medium-line-height)}.description[_ngcontent-%COMP%]{color:var(--mat-sys-outline)}.dependency[_ngcontent-%COMP%]{color:var(--mat-sys-outline);text-align:start;font-style:italic;font-size:var(--mat-sys-label-large-size)}.dependency-error[_ngcontent-%COMP%]{color:var(--kip-port-color);font-weight:700}.dependency-required-ok[_ngcontent-%COMP%]{color:var(--kip-starboard-color);font-weight:700}.dependency-required-error[_ngcontent-%COMP%]{color:var(--kip-port-color);font-weight:700;text-decoration:underline}.dependency-optional-ok[_ngcontent-%COMP%]{color:var(--kip-starboard-color)}.dependency-optional-error[_ngcontent-%COMP%]{color:var(--kip-port-color)}.dependency-optional-missing-met[_ngcontent-%COMP%]{color:var(--mat-sys-outline);text-decoration:line-through}.dependency-optional-present-met[_ngcontent-%COMP%]{color:var(--mat-sys-outline)}.plugin-type-label[_ngcontent-%COMP%]{font-size:.8em;margin-left:2px;opacity:.7}.dependency-ok[_ngcontent-%COMP%]{color:var(--kip-starboard-color)}.no-text-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}"]})}return e})();var mr=(e,c)=>c.selector;function pr(e,c){if(e&1&&(n(0,"mat-button-toggle",1),l(1),o()),e&2){let t=c.$implicit;p("value",t),s(),W(" ",t," ")}}function ur(e,c){if(e&1){let t=I();n(0,"widget-list-card",3),v("click",function(){let i=w(t).$implicit,r=h();return S(r.onSelectWidget(i))}),o()}if(e&2){let t=c.$implicit;B("dependency-missing",!t.isDependencyValid),p("svgIcon",t.icon)("iconSize",48)("name",t.name)("description",t.description)("pluginDependencyValid",t.isDependencyValid)("pluginsStatus",t.pluginsStatus)}}var Fo=(()=>{class e{_dialogRef=m(zt);_widgets=m(Po);_widgetsList=[];filteredWidgetsList=T([]);_widgetCategory=T("Core");isDependencyValid=T(!0);ngOnInit(){this.loadWidgets()}loadWidgets(){return $(this,null,function*(){this._widgetsList=yield this._widgets.getKipWidgetsWithStatus(),this.filteredWidgetsList.set(this._widgetsList.filter(t=>t.category===this._widgetCategory()))})}onCategoryChange(t){this.filteredWidgetsList.set(this._widgetsList.filter(a=>a.category===t.value)),this._widgetCategory.set(t.value)}onSelectWidget(t){if(!t.isDependencyValid)return;let{name:a,description:i,icon:r,minWidth:d,minHeight:f,defaultWidth:M,defaultHeight:G,category:P,requiredPlugins:E,optionalPlugins:Jt,selector:te,componentClassName:Pe}=t,ee=gt(nt({name:a,description:i,icon:r,minWidth:d,minHeight:f,defaultWidth:M,defaultHeight:G,category:P,requiredPlugins:E},Jt?{optionalPlugins:Jt}:{}),{selector:te,componentClassName:Pe});this._dialogRef.close(ee)}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["widgets-list"]],decls:7,vars:1,consts:[["name","widgetCategories","aria-label","Widget categories",1,"list-filter",3,"change","value"],[3,"value"],[3,"dependency-missing","svgIcon","iconSize","name","description","pluginDependencyValid","pluginsStatus"],[3,"click","svgIcon","iconSize","name","description","pluginDependencyValid","pluginsStatus"]],template:function(a,i){a&1&&(n(0,"div")(1,"mat-button-toggle-group",0),v("change",function(d){return i.onCategoryChange(d)}),C(2,pr,2,2,"mat-button-toggle",1,A),o(),n(4,"div"),C(5,ur,1,8,"widget-list-card",2,mr),o()()),a&2&&(s(),p("value",i._widgetCategory()),s(),x(i._widgets.categories),s(3),x(i.filteredWidgetsList()))},dependencies:[Io,Ti,di,Oo],styles:[".list-filter[_ngcontent-%COMP%]{margin-bottom:20px}.dependency-missing[_ngcontent-%COMP%]{pointer-events:none;opacity:.8;background-color:var(--mat-sys-neutral10)}"]})}return e})();var Lo=(()=>{class e{dialogRef=m(zt);fileVersionToUpgrade=9;configVersionToUpgrade=10;currentConfigVersion=11;_storage=m(na);_settings=m(Ue);static widgetTypeToSelectorMap={WidgetNumeric:"widget-numeric",WidgetTextGeneric:"widget-text",WidgetDateGeneric:"widget-datetime",WidgetBooleanSwitch:"widget-boolean-switch",WidgetBlank:"widget-blank",WidgetStateComponent:"widget-button",WidgetSimpleLinearComponent:"widget-simple-linear",WidgetGaugeNgLinearComponent:"widget-gauge-ng-linear",WidgetGaugeNgRadialComponent:"widget-gauge-ng-radial",WidgetGaugeNgCompassComponent:"widget-gauge-ng-compass",WidgetGaugeComponent:"widget-gauge-steel",WidgetWindComponent:"widget-wind-steer",WidgetFreeboardskComponent:"widget-freeboardsk",WidgetAutopilotComponent:"widget-autopilot",WidgetDataChart:"widget-data-chart",WidgetRaceTimerComponent:"widget-racetimer",WidgetIframeComponent:"widget-iframe",WidgetTutorial:"widget-tutorial"};upgrade(){if(this._storage.initConfig)this._storage.listConfigs(this.fileVersionToUpgrade).then(t=>$(this,null,function*(){for(let a of t){let i=yield this.transformConfig(a);if(i)if(i.scope==="global")try{this._storage.patchGlobal(i.name,i.scope,i.newConfiguration,"add"),this._storage.patchGlobal(i.name,i.scope,i.oldConfiguration,"replace",9),console.log(`[Upgrade] Configuration ${i.scope}/${i.name} has been upgraded to version ${this.currentConfigVersion} and saved. Old configuration has been patched to version 0.`)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}`)}else this._storage.setConfig(i.scope,i.name,i.newConfiguration).then(()=>{this._storage.setConfig(i.scope,i.name,i.oldConfiguration,9),console.log(`[Upgrade] Configuration ${i.scope}/${i.name} has been upgraded to version ${this.currentConfigVersion} and saved. Old configuration has been patched to version 0.`)}).catch(r=>{console.error(`[Upgrade] Error saving configuration for ${a.name}:`,r)})}})).catch(t=>{console.error("Error fetching configuration data:",t)});else{let t={app:null,widget:null,layout:null,theme:null};t.app=this._settings.loadConfigFromLocalStorage("appConfig"),t.widget=this._settings.loadConfigFromLocalStorage("widgetConfig"),t.layout=this._settings.loadConfigFromLocalStorage("layoutConfig"),t.theme=this._settings.loadConfigFromLocalStorage("themeConfig");let a=this.transformApp(t.app),i=this.transformTheme(t.theme),r=t.layout?.rootSplits||[],d=t.layout?.splitSets||[],f=t.widget?.widgets||[],M=r.map((G,P)=>{let E=this.extractWidgetsFromSplitSets(d,f,G);return{id:G,name:`Dashboard ${P+1}`,configuration:E}});localStorage.setItem("appConfig",JSON.stringify(a)),localStorage.setItem("dashboardsConfig",JSON.stringify(M)),localStorage.setItem("themeConfig",JSON.stringify(i))}setTimeout(()=>{this._settings.reloadApp()},1500)}transformConfig(t){return $(this,null,function*(){let a=yield this._storage.getConfig(t.scope,t.name,this.fileVersionToUpgrade);if(a.app.configVersion!==this.configVersionToUpgrade)return console.error(`[Upgrade Component] Configuration ${t.scope}/${t.name} is not an upgradable version ${this.configVersionToUpgrade} config. Skipping upgrade. Please delete old configuration files.`),null;let i=this.transformApp(a.app),r=this.transformTheme(a.theme),d=a.layout?.rootSplits||[],f=a.layout?.splitSets||[],M=a.widget?.widgets||[],G=d.map((E,Jt)=>{let te=this.extractWidgetsFromSplitSets(f,M,E);return{id:E,name:`Dashboard ${Jt+1}`,configuration:te}}),P=ze(a);return P.app.configVersion=0,{scope:t.scope,name:t.name,newConfiguration:{app:i,theme:r,dashboards:G},oldConfiguration:P}})}transformWidget(t,a){if(t.color==="white"&&(t.color="contrast"),t.textColor){switch(t.textColor){case"text":t.color="contrast";break;case"primary":t.color="blue";break;case"accent":t.color="yellow";break;case"warn":t.color="purple";break;case"nobar":a==="WidgetGaugeNgLinearComponent"&&(t.color="blue",t.gauge=t.gauge||{},t.gauge.useNeedle=!1);break;default:t.color=t.textColor}delete t.textColor}return t}transformApp(t){return t?(t.configVersion=11,t.nightModeBrightness=.27,t):null}transformTheme(t){return t?{themeName:""}:null}extractWidgetsFromSplitSets(t,a,i){let r=new Map(a.map(ee=>[ee.uuid,ee])),d=[],f=[],M=0,G=0,P=12,E=12,Jt=2,te=2,Pe=ee=>{let Ei=t.find(ie=>ie.uuid===ee);if(!Ei){f.push(`Missing splitSet with UUID: ${ee}`);return}Ei.splitAreas.forEach(ie=>{if(ie.type==="widget"){let St=r.get(ie.uuid);if(St){if(St.type==="WidgetBlank"){console.warn(`Skipping widget of type WidgetBlank with UUID: ${St.uuid}`);return}if(G+te>E){f.push(`No space left in the grid for widget with UUID: ${St.uuid}`);return}let Di=e.widgetTypeToSelectorMap[St.type]||"widget-unknown",zo=this.transformWidget(St.config,St.type);d.push({id:St.uuid,selector:Di,input:{widgetProperties:{type:Di,uuid:St.uuid,config:zo}},x:M,y:G,w:Jt,h:te}),M+=Jt,M>=P&&(M=0,G+=te)}else f.push(`Missing widget with UUID: ${ie.uuid}`)}else ie.type==="splitSet"&&Pe(ie.uuid)})};return Pe(i),f.length>0&&console.warn("Transformation Issues:",f),d}startFresh(){if(this._storage.initConfig)this._storage.listConfigs(this.fileVersionToUpgrade).then(t=>$(this,null,function*(){for(let a of t){let i=yield this._storage.getConfig(a.scope,a.name,this.fileVersionToUpgrade);if(i.app.configVersion=0,a.scope==="global")try{setTimeout(()=>{this._storage.patchGlobal(a.name,a.scope,i,"replace",9),console.log(`[Retired] Configuration ${a.scope}/${a.name} has been patched to version 0.`)},750)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}:`)}else try{yield this._storage.setConfig(a.scope,a.name,i,9),console.log(`[Retired] Configuration ${a.scope}/${a.name} has been patched to version 0.`)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}.`)}}})).catch(t=>{console.error("Error fetching configuration data:",t)});else{let t={app:null,dashboards:null,theme:null};t.app=this._settings.loadConfigFromLocalStorage("appConfig"),t.theme=this._settings.loadConfigFromLocalStorage("themeConfig"),t.app.configVersion=11,t.app.nightModeBrightness=.27,t.theme.themeName="",localStorage.setItem("appConfig",JSON.stringify(t.app)),localStorage.setItem("themeConfig",JSON.stringify(t.theme)),localStorage.removeItem("widgetConfig"),localStorage.removeItem("layoutConfig")}this.dialogRef.close()}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["upgrade-config"]],decls:193,vars:0,consts:[[1,"warning"],[1,"nav-table"],[2,"font-size","x-large"],["href","https://discord.gg/AMDYT2DQga","target","_blank"],[1,"button-group"],["mat-flat-button","",3,"click"],["mat-flat-button","",2,"margin-left","20px",3,"click"]],template:function(a,i){a&1&&(n(0,"h2"),l(1,"All New Touch, Mouse, and Keyboard Navigation"),o(),n(2,"p",0)(3,"strong"),l(4,"Heads up:"),o(),l(5," The new version introduces a completely redesigned fullscreen interface with no navigation bar. Please review the input modes table below to get an understanding of the new ways to operate KIP before upgrading. After the upgrade, give yourself time to get comfortable with the changes."),o(),n(6,"table",1)(7,"thead")(8,"tr")(9,"th"),l(10,"Actions"),o(),n(11,"th"),l(12,"Touch"),o(),n(13,"th"),l(14,"Mouse"),o(),n(15,"th"),l(16,"Keyboard Shortcuts"),o()()(),n(17,"tbody")(18,"tr")(19,"td"),l(20,"Open Actions menu"),o(),n(21,"td"),l(22,"Swipe left"),o(),n(23,"td"),l(24,"Click, drag left, and release"),o(),n(25,"td")(26,"kbd"),l(27,"Shift"),o(),l(28," + "),n(29,"kbd"),l(30,"Ctrl"),o(),l(31," + "),n(32,"kbd",2),l(33,"\u2190"),o(),l(34," (Left Arrow)"),o()(),n(35,"tr")(36,"td"),l(37,"Open Notification menu"),o(),n(38,"td"),l(39,"Swipe right"),o(),n(40,"td"),l(41,"Click, drag right, and release"),o(),n(42,"td")(43,"kbd"),l(44,"Shift"),o(),l(45," + "),n(46,"kbd"),l(47,"Ctrl"),o(),l(48," + "),n(49,"kbd",2),l(50,"\u2192"),o(),l(51," (Right Arrow)"),o()(),n(52,"tr")(53,"td"),l(54,"Cycle through dashboards"),o(),n(55,"td"),l(56,"Swipe up/down"),o(),n(57,"td"),l(58,"Click, drag up/down, and release"),o(),n(59,"td")(60,"kbd"),l(61,"Shift"),o(),l(62," + "),n(63,"kbd"),l(64,"Ctrl"),o(),l(65," + "),n(66,"kbd",2),l(67,"\u2191"),o(),l(68,"/"),n(69,"kbd",2),l(70,"\u2193"),o(),l(71," (Up/Down Arrow)"),o()(),n(72,"tr")(73,"td"),l(74,"Toggle Fullscreen"),o(),n(75,"td"),l(76,"N/A"),o(),n(77,"td"),l(78,"N/A"),o(),n(79,"td")(80,"kbd"),l(81,"Shift"),o(),l(82," + "),n(83,"kbd"),l(84,"Ctrl"),o(),l(85," + "),n(86,"kbd"),l(87,"F"),o()()(),n(88,"tr")(89,"td"),l(90,"Toggle Night mode"),o(),n(91,"td"),l(92,"N/A"),o(),n(93,"td"),l(94,"N/A"),o(),n(95,"td")(96,"kbd"),l(97,"Shift"),o(),l(98," + "),n(99,"kbd"),l(100,"Ctrl"),o(),l(101," + "),n(102,"kbd"),l(103,"N"),o()()(),n(104,"tr")(105,"td"),l(106,"Toggle dashboard edit mode"),o(),n(107,"td"),l(108,"N/A"),o(),n(109,"td"),l(110,"N/A"),o(),n(111,"td")(112,"kbd"),l(113,"Shift"),o(),l(114," + "),n(115,"kbd"),l(116,"Ctrl"),o(),l(117," + "),n(118,"kbd"),l(119,"E"),o()()()()(),n(120,"i"),l(121,"Note that the words Touch and Tap are synonymous with mouse click."),o(),_(122,"br")(123,"br"),n(124,"h2"),l(125,"Migration Limitations"),o(),n(126,"p")(127,"span",0),l(128,"Important:"),o(),l(129," The new widget layout engine is "),n(130,"strong"),l(131,"completely different"),o(),l(132," from the previous version. When you upgrade, your configuration will be migrated, but "),n(133,"strong"),l(134,"the way dashboards and widgets are arranged will change significantly"),o(),l(135,`.
7
- `),o(),n(136,"ul")(137,"li"),l(138,"All KIP configuration settings will be migrated."),o(),n(139,"li"),l(140,"Each v2 Page layout will become a v3 Dashboard."),o(),n(141,"li"),l(142,"All widgets and their settings will appear in their new dashboards."),o(),n(143,"li")(144,"span",0)(145,"strong"),l(146,"Note:"),o(),l(147," Widget positions, order, and sizes "),n(148,"strong"),l(149,"WILL BE LOST"),o(),l(150,". After upgrading, dashboards will contain small widgets that you must reposition and resize manually."),o()()(),n(151,"p"),l(152,"To upgrade your configuration, follow these steps:"),o(),n(153,"ol")(154,"li"),l(155," As a safety measure, if you are using Signal K authentication, manually back up your configuration. Make a copy of the "),n(156,"code"),l(157,"9.0.0.json"),o(),l(158," files found on the Signal K server in the following folders: "),n(159,"ul")(160,"li")(161,"code"),l(162,"~/.signalk/applicationData/users/(username)/kip/"),o()(),n(163,"li")(164,"code"),l(165,"~/.signalk/applicationData/global/kip/"),o()()()(),n(166,"li"),l(167,"Click the "),n(168,"strong"),l(169,"Upgrade"),o(),l(170," button below."),o(),n(171,"li"),l(172,"Once the upgrade is complete, KIP will restart and display the migrated dashboards."),o(),n(173,"li"),l(174,"Reposition and resize your widgets as needed."),o(),n(175,"li"),l(176,"Once satisfied, delete the "),n(177,"code"),l(178,"9.0.0.json"),o(),l(179," configuration files located in the previously mentioned folders. They are not needed any more."),o()(),n(180,"p"),l(181," For tips and guidance, consult KIP\u2019s in-app "),n(182,"strong"),l(183,"Help"),o(),l(184," section. Most common questions are answered there. If you need support, join the "),n(185,"a",3),l(186,"Signal K #kip Discord channel"),o(),l(187,`.
8
- `),o(),n(188,"div",4)(189,"button",5),v("click",function(){return i.upgrade()}),l(190,"Upgrade"),o(),n(191,"button",6),v("click",function(){return i.startFresh()}),l(192,"Start Fresh"),o()())},dependencies:[Ct,st,Ut],styles:[".button-group[_ngcontent-%COMP%]{display:flex;justify-content:center}.nav-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;margin-bottom:2em}.nav-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .nav-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #bbb;padding:.5em 1em;text-align:center}.nav-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;color:#222;font-weight:700}.nav-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background:#242424}.warning[_ngcontent-%COMP%]{color:#b71c1c}.button-group[_ngcontent-%COMP%]{margin-top:2em;display:flex;gap:20px}"]})}return e})();var fp=(()=>{class e{dialog=m(Fa);openFrameDialog(t,a){switch(t.component){case"select-widget":t.componentType=Fo;break;case"upgrade-config":t.componentType=Lo;break}return this.dialog.open(ro,{data:t,height:a?"calc(100% - 30px)":"",width:a?"calc(100% - 30px)":"",maxWidth:a?"100%":"",maxHeight:a?"100%":""}).afterClosed()}openConfirmationDialog(t){return this.dialog.open(so,{data:t,minWidth:"35vw",minHeight:"25vh"}).afterClosed()}openNameDialog(t){return this.dialog.open(mo,{data:t,minWidth:"20vw",minHeight:"20vh",disableClose:!0})}openWidgetOptions(t){return this.dialog.open(Eo,{data:t.config,minWidth:"50vw",maxWidth:"90vw"})}static \u0275fac=function(a){return new(a||e)};static \u0275prov=ht({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var No=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Gt=(()=>{if(typeof document>"u")return!1;let e=No[0],c={};for(let t of No)if(t?.[1]in document){for(let[i,r]of t.entries())c[e[i]]=r;return c}return!1})(),Vo={change:Gt.fullscreenchange,error:Gt.fullscreenerror},ot={request(e=document.documentElement,c){return new Promise((t,a)=>{let i=()=>{ot.off("change",i),t()};ot.on("change",i);let r=e[Gt.requestFullscreen](c);r instanceof Promise&&r.then(i).catch(a)})},exit(){return new Promise((e,c)=>{if(!ot.isFullscreen){e();return}let t=()=>{ot.off("change",t),e()};ot.on("change",t);let a=document[Gt.exitFullscreen]();a instanceof Promise&&a.then(t).catch(c)})},toggle(e,c){return ot.isFullscreen?ot.exit():ot.request(e,c)},onchange(e){ot.on("change",e)},onerror(e){ot.on("error",e)},on(e,c){let t=Vo[e];t&&document.addEventListener(t,c,!1)},off(e,c){let t=Vo[e];t&&document.removeEventListener(t,c,!1)},raw:Gt};Object.defineProperties(ot,{isFullscreen:{get:()=>!!document[Gt.fullscreenElement]},element:{enumerable:!0,get:()=>document[Gt.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Gt.fullscreenEnabled]}});Gt||(ot={isEnabled:!1});var ut=ot;var xp=(()=>{class e{isDragging=T(!1);fullscreenStatus=T(!1);fullscreenSupported=T(!0);noSleepStatus=T(!1);noSleepSupported=T(!0);noSleep=null;initialTouchX=null;initialTouchY=null;hotkeyListeners=new Map;boundPreventGestures=null;fullscreenChangeHandler=()=>{if(this.fullscreenStatus.set(ut.isFullscreen),!ut.isFullscreen&&this.noSleep&&this.noSleepStatus()){try{this.noSleep.disable()}catch{}this.noSleepStatus.set(!1)}};constructor(){ut.isEnabled?ut.on("change",this.fullscreenChangeHandler):(this.fullscreenSupported.set(!1),console.log("[UI Event Service] Fullscreen mode is not supported by device/browser.")),this.checkNoSleepSupport(),this.checkPwaMode()&&this.noSleepSupported()&&!this.noSleepStatus()&&this.toggleNoSleep()}checkNoSleepSupport(){try{if(this.noSleep||(this.noSleep=new NoSleep),!this.noSleep||typeof this.noSleep.enable!="function"||typeof this.noSleep.disable!="function")throw new Error("[UI Event Service] NoSleep methods not available")}catch(t){this.noSleepSupported.set(!1),console.warn(`[UI Event Service] NoSleep is not supported by this device/browser. Error: ${t}`),this.noSleep=null}}checkPwaMode(){let t=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone!==void 0;return console.log("[UI Event Service] PWA mode:",t),t}toggleNoSleep(){if(this.noSleepSupported()){if(this.noSleepStatus())try{this.noSleep?.disable()}catch{}else{this.noSleep||this.checkNoSleepSupport();try{this.noSleep?.enable()}catch(t){console.warn("[UI Event Service] Failed to enable NoSleep:",t)}}this.noSleepStatus.set(!this.noSleepStatus()),console.log("[UI Event Service] NoSleep active:",this.noSleepStatus())}}toggleFullScreen(){if(ut.isEnabled){if(this.fullscreenStatus()){if(ut.isFullscreen&&ut.exit(),this.noSleepStatus()){try{this.noSleep?.disable()}catch{}this.noSleepStatus.set(!1)}}else if(ut.request(),!this.noSleepStatus()){this.noSleep||this.checkNoSleepSupport();try{this.noSleep?.enable(),this.noSleepStatus.set(!0)}catch{}}this.fullscreenStatus.set(!this.fullscreenStatus())}else this.fullscreenSupported.set(!1),console.log("[UI Event Service] Fullscreen mode is not supported by this browser.")}addGestureListeners(t,a){this.boundPreventGestures||(this.boundPreventGestures=this.preventBrowserHistorySwipeGestures.bind(this)),document.addEventListener("openLeftSidenav",t),document.addEventListener("openRightSidenav",a),document.addEventListener("touchstart",this.boundPreventGestures,{passive:!1}),document.addEventListener("touchmove",this.boundPreventGestures,{passive:!1}),document.addEventListener("touchend",this.boundPreventGestures),document.addEventListener("touchcancel",this.boundPreventGestures)}removeGestureListeners(t,a){document.removeEventListener("openLeftSidenav",t),document.removeEventListener("openRightSidenav",a),this.boundPreventGestures&&(document.removeEventListener("touchstart",this.boundPreventGestures),document.removeEventListener("touchmove",this.boundPreventGestures),document.removeEventListener("touchend",this.boundPreventGestures),document.removeEventListener("touchcancel",this.boundPreventGestures))}preventBrowserHistorySwipeGestures(t){if(t.touches.length===1){let a=t.touches[0],i=30;if(t.type==="touchstart")this.initialTouchX=a.clientX,this.initialTouchY=a.clientY;else if(t.type==="touchmove"&&this.initialTouchX!==null&&this.initialTouchY!==null){let r=Math.abs(a.clientX-this.initialTouchX),d=Math.abs(a.clientY-this.initialTouchY);r>10&&r>d&&(this.initialTouchX<i||this.initialTouchX>window.innerWidth-i)&&t.preventDefault(),d>10&&this.initialTouchY<50&&t.preventDefault()}else(t.type==="touchend"||t.type==="touchcancel")&&(this.initialTouchX=null,this.initialTouchY=null)}}addHotkeyListener(t,a){let i=r=>{if(r instanceof KeyboardEvent){let d=r.key.toLowerCase();if(a&&(a.keys&&!a.keys.includes(d)||a.ctrlKey!==void 0&&r.ctrlKey!==a.ctrlKey||a.shiftKey!==void 0&&r.shiftKey!==a.shiftKey))return;t(d,r)}else console.warn("[uiEvent Service] Non-keyboard event detected in addHotkeyListener:",r)};this.hotkeyListeners.set(t,i),document.addEventListener("keydown",i)}removeHotkeyListener(t){let a=this.hotkeyListeners.get(t);a&&(document.removeEventListener("keydown",a),this.hotkeyListeners.delete(t))}ngOnDestroy(){if(ut.isEnabled)try{ut.off("change",this.fullscreenChangeHandler)}catch{}if(this.noSleep&&this.noSleepStatus())try{this.noSleep.disable()}catch{}this.noSleep=null,this.boundPreventGestures&&(document.removeEventListener("touchstart",this.boundPreventGestures),document.removeEventListener("touchmove",this.boundPreventGestures),document.removeEventListener("touchend",this.boundPreventGestures),document.removeEventListener("touchcancel",this.boundPreventGestures),this.boundPreventGestures=null);for(let[,t]of this.hotkeyListeners.entries())document.removeEventListener("keydown",t);this.hotkeyListeners.clear()}static \u0275fac=function(a){return new(a||e)};static \u0275prov=ht({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function gr(e,c){}var Ro="_mat-bottom-sheet-enter",Bo="_mat-bottom-sheet-exit",hr=(()=>{class e extends Ia{_breakpointSubscription;_animationsDisabled=yt();_animationState="void";_animationStateChanged=new lt;_destroyed;constructor(){super();let t=m(He);this._breakpointSubscription=t.observe([Et.Medium,Et.Large,Et.XLarge]).subscribe(()=>{let a=this._elementRef.nativeElement.classList;a.toggle("mat-bottom-sheet-container-medium",t.isMatched(Et.Medium)),a.toggle("mat-bottom-sheet-container-large",t.isMatched(Et.Large)),a.toggle("mat-bottom-sheet-container-xlarge",t.isMatched(Et.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._animationsDisabled&&this._simulateAnimation(Ro))}exit(){this._destroyed||(this._elementRef.nativeElement.setAttribute("mat-exit",""),this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._animationsDisabled&&this._simulateAnimation(Bo))}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_simulateAnimation(t){this._ngZone.run(()=>{this._handleAnimationEvent(!0,t),setTimeout(()=>this._handleAnimationEvent(!1,t))})}_trapFocus(){super._trapFocus({preventScroll:!0})}_handleAnimationEvent(t,a){let i=a===Ro;(i||a===Bo)&&this._animationStateChanged.emit({toState:i?"visible":"hidden",phase:t?"start":"done"})}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=y({type:e,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(a,i){a&1&&v("animationstart",function(d){return i._handleAnimationEvent(!0,d.animationName)})("animationend",function(d){return i._handleAnimationEvent(!1,d.animationName)})("animationcancel",function(d){return i._handleAnimationEvent(!1,d.animationName)}),a&2&&(U("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-label",i._config.ariaLabel),B("mat-bottom-sheet-container-animations-enabled",!i._animationsDisabled)("mat-bottom-sheet-container-enter",i._animationState==="visible")("mat-bottom-sheet-container-exit",i._animationState==="hidden"))},features:[Ft],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a,i){a&1&&Tt(0,gr,0,0,"ng-template",0)},dependencies:[xa],styles:[`@keyframes _mat-bottom-sheet-enter{from{transform:translateY(100%)}to{transform:none}}@keyframes _mat-bottom-sheet-exit{from{transform:none}to{transform:translateY(100%)}}.mat-bottom-sheet-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;position:relative;background:var(--mat-bottom-sheet-container-background-color, var(--mat-sys-surface-container-low));color:var(--mat-bottom-sheet-container-text-color, var(--mat-sys-on-surface));font-family:var(--mat-bottom-sheet-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-bottom-sheet-container-text-size, var(--mat-sys-body-large-size));line-height:var(--mat-bottom-sheet-container-text-line-height, var(--mat-sys-body-large-line-height));font-weight:var(--mat-bottom-sheet-container-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-bottom-sheet-container-text-tracking, var(--mat-sys-body-large-tracking))}@media(forced-colors: active){.mat-bottom-sheet-container{outline:1px solid}}.mat-bottom-sheet-container-animations-enabled{transform:translateY(100%)}.mat-bottom-sheet-container-animations-enabled.mat-bottom-sheet-container-enter{animation:_mat-bottom-sheet-enter 195ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-bottom-sheet-container-animations-enabled.mat-bottom-sheet-container-exit{animation:_mat-bottom-sheet-exit 375ms cubic-bezier(0.4, 0, 1, 1) backwards}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape, 28px);border-top-right-radius:var(--mat-bottom-sheet-container-shape, 28px)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}
9
- `],encapsulation:2})}return e})(),fr=new Q("MatBottomSheetData"),Ai=class{viewContainerRef;panelClass;direction;data=null;hasBackdrop=!0;backdropClass;disableClose=!1;ariaLabel=null;ariaModal=!1;closeOnNavigation=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;height="";minHeight;maxHeight},mi=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new re;_result;_closeFallbackTimeout;constructor(c,t,a){this._ref=c,this.containerInstance=a,this.disableClose=t.disableClose,a._animationStateChanged.pipe(Pt(i=>i.phase==="done"&&i.toState==="visible"),ce(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),a._animationStateChanged.pipe(Pt(i=>i.phase==="done"&&i.toState==="hidden"),ce(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),c.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),It(this.backdropClick(),this.keydownEvents().pipe(Pt(i=>i.keyCode===27))).subscribe(i=>{!this.disableClose&&(i.type!=="keydown"||!be(i))&&(i.preventDefault(),this.dismiss())})}dismiss(c){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Pt(t=>t.phase==="start"),ce(1)).subscribe(()=>{this._closeFallbackTimeout=setTimeout(()=>this._ref.close(this._result),500),this._ref.overlayRef.detachBackdrop()}),this._result=c,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},br=new Q("mat-bottom-sheet-default-options"),_r=(()=>{class e{_injector=m(Ot);_parentBottomSheet=m(e,{optional:!0,skipSelf:!0});_animationsDisabled=yt();_defaultOptions=m(br,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=m(Pa);get _openedBottomSheetRef(){let t=this._parentBottomSheet;return t?t._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(t){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=t:this._bottomSheetRefAtThisLevel=t}constructor(){}open(t,a){let i=nt(nt({},this._defaultOptions||new Ai),a),r;return this._dialog.open(t,gt(nt({},i),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:hr,scrollStrategy:i.scrollStrategy||ka(this._injector),positionStrategy:Ea(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:r}),providers:(d,f,M)=>(r=new mi(d,i,M),[{provide:mi,useValue:r},{provide:fr,useValue:i.data}])})),r.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===r&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>r.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):r.containerInstance.enter(),this._openedBottomSheetRef=r,r}dismiss(t){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(t)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(a){return new(a||e)};static \u0275prov=ht({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Rp=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=bt({type:e});static \u0275inj=ft({providers:[_r],imports:[Oa,X,Ma,X]})}return e})();var Wo=["*"],vr=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}
10
- `,yr=["unscopedContent"],Cr=["text"],xr=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Mr=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var wr=new Q("ListOption"),Sr=(()=>{class e{_elementRef=m(kt);constructor(){}static \u0275fac=function(a){return new(a||e)};static \u0275dir=Z({type:e,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return e})(),kr=(()=>{class e{_elementRef=m(kt);constructor(){}static \u0275fac=function(a){return new(a||e)};static \u0275dir=Z({type:e,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return e})(),Tr=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275dir=Z({type:e,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return e})(),Uo=(()=>{class e{_listOption=m(wr,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(a){return new(a||e)};static \u0275dir=Z({type:e,hostVars:4,hostBindings:function(a,i){a&2&&B("mdc-list-item__start",i._isAlignedAtStart())("mdc-list-item__end",!i._isAlignedAtStart())}})}return e})(),Ar=(()=>{class e extends Uo{static \u0275fac=(()=>{let t;return function(i){return(t||(t=pe(e)))(i||e)}})();static \u0275dir=Z({type:e,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Ft]})}return e})(),Er=(()=>{class e extends Uo{static \u0275fac=(()=>{let t;return function(i){return(t||(t=pe(e)))(i||e)}})();static \u0275dir=Z({type:e,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Ft]})}return e})(),Dr=new Q("MAT_LIST_CONFIG"),Ie=(()=>{class e{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=_e(t)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(t){this._disabled.set(_e(t))}_disabled=T(!1);_defaultOptions=m(Dr,{optional:!0});static \u0275fac=function(a){return new(a||e)};static \u0275dir=Z({type:e,hostVars:1,hostBindings:function(a,i){a&2&&U("aria-disabled",i.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return e})(),Gr=(()=>{class e{_elementRef=m(kt);_ngZone=m(Ne);_listBase=m(Ie,{optional:!0});_platform=m(qe);_hostElement;_isButtonElement;_noopAnimations=yt();_avatars;_icons;set lines(t){this._explicitLines=ma(t,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=_e(t)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(t){this._disabled.set(_e(t))}_disabled=T(!1);_subscriptions=new le;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){m(je).load($e);let t=m(_a,{optional:!0});this.rippleConfig=t||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new ba(this,this._ngZone,this._hostElement,this._platform,m(Ot)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(It(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();let a=this._explicitLines??this._inferLinesFromContent(),i=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",a<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",a<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",a===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",a===3),this._hasUnscopedTextContent){let r=this._titles.length===0&&a===1;i.classList.toggle("mdc-list-item__primary-text",r),i.classList.toggle("mdc-list-item__secondary-text",!r)}else i.classList.remove("mdc-list-item__primary-text"),i.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!!(t.textContent&&t.textContent.trim()))}static \u0275fac=function(a){return new(a||e)};static \u0275dir=Z({type:e,contentQueries:function(a,i,r){if(a&1&&(mt(r,Ar,4),mt(r,Er,4)),a&2){let d;z(d=q())&&(i._avatars=d),z(d=q())&&(i._icons=d)}},hostVars:4,hostBindings:function(a,i){a&2&&(U("aria-disabled",i.disabled)("disabled",i._isButtonElement&&i.disabled||null),B("mdc-list-item--disabled",i.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return e})();var uu=(()=>{class e extends Ie{_isNonInteractive=!1;static \u0275fac=(()=>{let t;return function(i){return(t||(t=pe(e)))(i||e)}})();static \u0275cmp=y({type:e,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[Nt([{provide:Ie,useExisting:e}]),Ft],ngContentSelectors:Wo,decls:1,vars:0,template:function(a,i){a&1&&(_t(),Y(0))},styles:[`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}
11
- `],encapsulation:2,changeDetection:0})}return e})();var gu=(()=>{class e extends Ie{static \u0275fac=(()=>{let t;return function(i){return(t||(t=pe(e)))(i||e)}})();static \u0275cmp=y({type:e,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Nt([{provide:Ie,useExisting:e}]),Ft],ngContentSelectors:Wo,decls:1,vars:0,template:function(a,i){a&1&&(_t(),Y(0))},styles:[vr],encapsulation:2,changeDetection:0})}return e})(),hu=(()=>{class e extends Gr{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(t){this._activated=_e(t)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=pe(e)))(i||e)}})();static \u0275cmp=y({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,i,r){if(a&1&&(mt(r,kr,5),mt(r,Sr,5),mt(r,Tr,5)),a&2){let d;z(d=q())&&(i._lines=d),z(d=q())&&(i._titles=d),z(d=q())&&(i._meta=d)}},viewQuery:function(a,i){if(a&1&&(Lt(yr,5),Lt(Cr,5)),a&2){let r;z(r=q())&&(i._unscopedContent=r.first),z(r=q())&&(i._itemText=r.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,i){a&2&&(U("aria-current",i._getAriaCurrent()),B("mdc-list-item--activated",i.activated)("mdc-list-item--with-leading-avatar",i._avatars.length!==0)("mdc-list-item--with-leading-icon",i._icons.length!==0)("mdc-list-item--with-trailing-meta",i._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",i._hasBothLeadingAndTrailing())("_mat-animation-noopable",i._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[Ft],ngContentSelectors:Mr,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(a,i){if(a&1){let r=I();_t(xr),Y(0),n(1,"span",1),Y(2,1),Y(3,2),n(4,"span",2,0),v("cdkObserveContent",function(){return w(r),S(i._updateItemLines(!0))}),Y(6,3),o()(),Y(7,4),Y(8,5),_(9,"div",3)}},dependencies:[ga],encapsulation:2,changeDetection:0})}return e})();var fu=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=bt({type:e});static \u0275inj=ft({imports:[ha,X,Qe,Ja,ei]})}return e})();export{Wr as a,Ws as b,go as c,fp as d,xp as e,mi as f,_r as g,Rp as h,Sr as i,Er as j,uu as k,gu as l,hu as m,fu as n};