@mxtommy/kip 3.9.0 → 3.10.0-beta.1

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 (29) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/README.md +48 -12
  3. package/kip-plugin/src/index.ts +48 -0
  4. package/kip-plugin/tsconfig.plugin.json +13 -0
  5. package/package.json +11 -4
  6. package/plugin/index.js +46 -0
  7. package/public/{chunk-BYWGV2DR.js → chunk-7OMETTVK.js} +1 -1
  8. package/public/{chunk-NEYBKWJP.js → chunk-A4ZPBM2P.js} +1 -1
  9. package/public/{chunk-2RLXZJPK.js → chunk-BZF6OYAF.js} +1 -1
  10. package/public/{chunk-6WOHGZ7K.js → chunk-C4AGB2HA.js} +1 -1
  11. package/public/{chunk-FYD5M4IT.js → chunk-FW2LAMAA.js} +1 -1
  12. package/public/{chunk-25PZU2O2.js → chunk-GJ33QBJ6.js} +1 -1
  13. package/public/{chunk-TP7LH2BI.js → chunk-GJADHEMH.js} +10 -10
  14. package/public/{chunk-3IUMPTFN.js → chunk-HKUJILH7.js} +1 -1
  15. package/public/chunk-J3WNXGAQ.js +64 -0
  16. package/public/{chunk-HECHZXLY.js → chunk-JFDPDIG2.js} +1 -1
  17. package/public/{chunk-5KVBD33V.js → chunk-LRX3XYXK.js} +1 -1
  18. package/public/{chunk-ZJO5PJKQ.js → chunk-MXKB5Z6M.js} +1 -1
  19. package/public/{chunk-RIG2POCP.js → chunk-NL52VRFS.js} +1 -1
  20. package/public/{chunk-CW3ZK4N3.js → chunk-OCI46H4J.js} +2 -2
  21. package/public/chunk-PPS4X2U3.js +1 -0
  22. package/public/{chunk-TGXMWTBW.js → chunk-PTADMSJZ.js} +1 -1
  23. package/public/{chunk-ZMNGRHMV.js → chunk-T5GXSVMN.js} +1 -1
  24. package/public/{chunk-DNBBDEKP.js → chunk-TDHAZ7DS.js} +1 -1
  25. package/public/index.html +1 -1
  26. package/public/main-ZOSCXBJH.js +53 -0
  27. package/public/chunk-N6T2NRWF.js +0 -1
  28. package/public/chunk-NHAQWUX3.js +0 -60
  29. package/public/main-AQ7CLM7C.js +0 -53
@@ -1,11 +1,11 @@
1
- import{a as Pe,b as it,c as oo,d as no,e as ro,f as mi,g as pi,h as lo,i as so,j as co,k as mo}from"./chunk-DNBBDEKP.js";import{a as Xa,b as Ka,c as Ja,d as Dt,e as $a,f as ie,g as eo,h as to,k as io,l as ao,m as Bt,n as ge,o as tt,q as It}from"./chunk-2RLXZJPK.js";import{d as ga}from"./chunk-TGXMWTBW.js";import{a as yt}from"./chunk-N6T2NRWF.js";import{a as Za,b as di}from"./chunk-25PZU2O2.js";import{$ as kt,A as Je,B as pe,C as ri,D as X,F as K,I as L,J,K as Ua,L as Qa,M as li,N as qa,O as ue,P as si,Q as wt,R as $e,S as Ie,T as $,U as za,V as ja,W as et,X as ci,Y as St,Z as B,a as ct,aa as ee,ba as Q,da as V,e as ma,ea as Tt,f as ua,fa as Ya,ga as Et,h as Aa,i as Kt,ia as Ha,j as ki,k as Jt,ka as R,la as Ae,oa as te,p as xa,pa as Ge,q as Va,r as Ra,s as Na,t as Se,u as ke,w as Wa,x as Te,y as Ee,z as De}from"./chunk-3IUMPTFN.js";import{$b as O,$d as Me,A as ut,Aa as Qe,Ab as w,Ac as vt,Ae as Ia,Bb as p,Ca as qe,Cb as n,Cc as ra,Cd as ba,Ce as Ga,Db as o,Dc as z,De as Di,Eb as b,Ec as h,Ed as ei,Ee as Pa,F as Qi,Fa as D,Fb as wi,Gb as Si,Gd as _a,Hd as ti,He as Oa,I as xi,Ib as ea,Ic as st,Id as va,Ie as Fa,Ja as lt,Jb as ta,Jd as Ca,Je as La,K as We,Ka as ht,Kb as ia,Kc as U,L as Ue,Lb as P,Ma as he,Mb as aa,Nb as C,Ne as Ba,O as qi,Od as Lt,P as Qt,Pb as f,Pd as Ct,Qb as xe,Qd as ya,R as At,Rb as ae,Sb as fe,Sd as Ei,Tb as je,Td as ii,U as zi,Ub as Y,Vb as H,Vc as la,Vd as ai,W as ji,Wa as s,Wc as sa,Wd as ne,Xa as Zi,Xd as F,Yd as Z,Za as Mi,Zb as se,Zc as Zt,_b as Ye,_c as ca,_d as Re,a as de,ab as Xi,ac as bt,ae as xt,b as _e,bc as Be,cc as r,cd as Xt,ce as Ma,dc as S,de as wa,ea as gt,eb as v,ec as q,ee as oi,f as N,fa as qt,fb as ye,fc as _t,fd as da,fe as ni,g as mt,gb as j,ge as re,ha as Yi,hb as Ki,hc as jt,he as Mt,ib as ze,ic as Yt,ie as we,j as Ci,jc as Ht,kb as Le,kd as Ke,ke as Sa,la as Ot,lb as Ji,ld as pa,le,m as pt,ma as ve,mb as me,na as Ce,nb as ft,nc as Ve,ne as ka,o as Pt,ob as $i,pa as oe,pc as He,qc as Ft,ra as m,re as Ta,se as Ea,t as yi,tc as Ze,ua as Hi,ub as W,uc as Xe,vb as A,vd as Ti,wa as y,wb as g,wd as ha,xa as x,xb as G,xd as $t,y as Ut,yb as zt,yc as oa,zb as M,zc as na,zd as fa,ze as Da}from"./chunk-FYD5M4IT.js";var $l=(()=>{class i{_settings=m(Kt);_router=m(ga);dashboards=D([],{equal:ki});activeDashboard=D(0);_widgetAction=new Pt(null);widgetAction$=this._widgetAction.asObservable();_isDashboardStatic=new Pt(!0);isDashboardStatic$=this._isDashboardStatic.asObservable();isDashboardStatic=pa(this.isDashboardStatic$);blankDashboard=[{id:null,name:"Dashboard 1",icon:"dashboard-dashboard",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 e=this._settings.getDashboardConfig();if(!e||e.length===0){console.warn("[Dashboard Service] No dashboards found in settings, creating blank dashboard");let a=this.blankDashboard.map(t=>_e(de({},t),{id:ct.create()}));this.dashboards.set([...a])}else this.dashboards.set(this._settings.getDashboardConfig());vt(()=>{this._settings.saveDashboards(this.dashboards())})}toggleStaticDashboard(){this._isDashboardStatic.next(!this._isDashboardStatic.value)}add(e,a,t){this.dashboards.update(l=>[...l,{id:ct.create(),name:e,icon:t,configuration:a}])}update(e,a,t){this.dashboards.update(l=>l.map((d,u)=>u===e?_e(de({},d),{name:a,icon:t}):d))}delete(e){this.dashboards.update(a=>a.filter((t,l)=>l!==e)),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(e,a,t){if(e<0||e>=this.dashboards().length){console.error(`[Dashboard Service] Invalid itemIndex: ${e}`);return}let l=this.dashboards()[e],d=Jt(l);d.id=ct.create(),d.name=a,d.icon=t||"dashboard-dashboard",Array.isArray(d.configuration)?d.configuration.forEach(u=>{u&&u.input?.widgetProperties?(u.id=ct.create(),u.input.widgetProperties.uuid=u.id):console.error("Dashboard Service] Widget configuration is missing required properties:",u)}):(console.error("Dashboard Service] Dashboard configuration is not an array:",d.configuration),d.configuration=[]),this.dashboards.update(u=>[...u,d])}updateConfiguration(e,a){this.dashboards.update(t=>t.map((l,d)=>d===e?ki(l.configuration,a)?l:_e(de({},l),{configuration:a}):l))}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(e){e>=0&&e<this.dashboards().length?this.activeDashboard.set(e):console.error(`[Dashboard Service] Invalid dashboard ID: ${e}`)}navigateToActive(){this._router.navigate(["/dashboard",this.activeDashboard()])}navigateTo(e){e>=0&&e<this.dashboards().length?this._router.navigate(["/dashboard",e]):console.error(`[Dashboard Service] Invalid dashboard ID: ${e}`)}navigateToNextDashboard(){let e=null;this.activeDashboard()-1<0?e=this.dashboards().length-1:e=this.activeDashboard()-1,this._router.navigate(["/dashboard",e])}navigateToPreviousDashboard(){let e=null;this.activeDashboard()+1>=this.dashboards().length?e=0:e=this.activeDashboard()+1,this._router.navigate(["/dashboard",e])}deleteWidget(e){this._widgetAction.next({id:e,operation:"delete"})}duplicateWidget(e){this._widgetAction.next({id:e,operation:"duplicate"})}setStaticDashboard(e){this._isDashboardStatic.next(e)}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Zo=["*"];var Xo=new oe("MAT_CARD_CONFIG"),ds=(()=>{class i{appearance;constructor(){let e=m(Xo,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,t){a&2&&O("mat-mdc-card-outlined",t.appearance==="outlined")("mdc-card--outlined",t.appearance==="outlined")("mat-mdc-card-filled",t.appearance==="filled")("mdc-card--filled",t.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:Zo,decls:1,vars:0,template:function(a,t){a&1&&(xe(),ae(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}
2
- `],encapsulation:2,changeDetection:0})}return i})();var ui=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({imports:[ne,ne]})}return i})();function Ko(i,c){if(i&1&&(n(0,"p"),r(1),o()),i&2){let e=f();Be(`large-icon-tile-label${e.compact()?" compact":""}`),s(),S(e.label())}}function Jo(i,c){i&1&&b(0,"div",3)}var bs=(()=>{class i{svgIcon=h.required();iconSize=h.required();label=h.required();iconOnly=h(!1);compact=h(!1);active=h(!1);static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["tile-large-icon"]],inputs:{svgIcon:[1,"svgIcon"],iconSize:[1,"iconSize"],label:[1,"label"],iconOnly:[1,"iconOnly"],compact:[1,"compact"],active:[1,"active"]},decls:4,vars:11,consts:[["matRipple",""],["aria-hidden","false",3,"svgIcon"],[3,"class"],[1,"active-accent-bar"]],template:function(a,t){a&1&&(n(0,"div",0),b(1,"mat-icon",1),A(2,Ko,2,3,"p",2),A(3,Jo,1,0,"div",3),o()),a&2&&(Be(`${t.compact()?"icon-container-compact":"icon-container"}`),O("active-container-accent",t.active()),s(),Ye("width",t.iconSize(),"px")("height",t.iconSize(),"px"),p("svgIcon",t.svgIcon()),s(),g(t.iconOnly()?-1:2),s(),g(t.active()?3:-1))},dependencies:[Z,F,ui,Mt,oi],styles:["[_nghost-%COMP%]{display:block;width:100%}.icon-container[_ngcontent-%COMP%]{display:block;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:10px 5px 15px;border-radius:7px;background-color:var(--mat-sys-surface-container);border-color:.2s ease;border:2px solid transparent}.icon-container[_ngcontent-%COMP%]:hover{border:2px solid var(--mat-sys-outline-variant);cursor:pointer}.icon-container[_ngcontent-%COMP%]:focus-visible{background-color:var(--mat-sys-surface-container-high);outline:-webkit-focus-ring-color auto 0px}.icon-container-compact[_ngcontent-%COMP%]{display:block;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;padding:5px;border-radius:7px;border:1px solid var(--mat-sys-outline-variant)}.icon-container-compact[_ngcontent-%COMP%]:hover{background-color:var(--mat-sys-inverse-on-surface);border:1px solid var(--mat-sys-primary);cursor:pointer}.icon-container-compact[_ngcontent-%COMP%]:focus-visible{background-color:var(--mat-sys-surface-bright);outline:-webkit-focus-ring-color auto 0px}.large-icon-tile-label[_ngcontent-%COMP%]{color:var(--mat-sys-outline);font-size:1.1em;margin:0}.compact[_ngcontent-%COMP%]{font-size:12px;margin:0}.active-container-accent[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-tertiary);pointer-events:none;background-color:var(--mat-sys-on-tertiary)}.active-container-accent[_ngcontent-%COMP%] .large-icon-tile-label[_ngcontent-%COMP%]{font-weight:700}.active-accent-bar[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:0;width:7px;background:var(--mat-sys-tertiary);box-shadow:0 0 10px 0 var(--mat-sys-tertiary)}"]})}return i})();var ys=(()=>{class i{isChromeOnMac;static DEBUG=!1;static _instanceCounter=0;_instanceId;swipeMinDistance=h(30);swipeMaxDuration=h(600);longPressMs=h(500);doubleTapInterval=h(300);tapSlop=h(20);pressMoveSlop=h(10);_swipeMinDistance=30;_swipeMaxDuration=600;_longPressMs=500;_doubleTapInterval=300;_tapSlop=20;_pressMoveSlop=10;swipeleft=z();swiperight=z();swipeup=z();swipedown=z();press=z();doubletap=z();zone=m(ft);destroyRef=m(qe);host=m(he);pointerId=null;startX=0;startY=0;startTime=0;tracking=!1;longPressTimer=null;pressFired=!1;cancelLongpressHandlers=[];lastTapTime=0;lastTapX=0;lastTapY=0;currentPointerType=null;lastTapUpTime=0;lastTapUpX=0;lastTapUpY=0;potentialDoubleTap=!1;constructor(){this.isChromeOnMac=(()=>{let e=navigator.userAgent,a=navigator.platform;return/Chrome\//.test(e)&&/Mac/.test(a)&&!/Edg\//.test(e)&&!/OPR\//.test(e)})(),this._instanceId=++i._instanceCounter,this.debug("GestureDirective instance created",{instanceId:this._instanceId}),this.zone.runOutsideAngular(()=>{let e=this.host.nativeElement;e.style.touchAction||(e.style.touchAction="none","webkitTouchCallout"in e.style&&(e.style.webkitTouchCallout="none")),e.addEventListener("pointerdown",this.onPointerDown,{passive:!1}),e.addEventListener("pointermove",this.onPointerMove,{passive:!0}),e.addEventListener("pointerup",this.onPointerUp,{passive:!0}),e.addEventListener("pointercancel",this.onPointerCancel,{passive:!0}),e.addEventListener("lostpointercapture",this.onPointerCancel,{passive:!0}),e.addEventListener("dblclick",this.onNativeDblClick,{passive:!0}),this.destroyRef.onDestroy(()=>{e.removeEventListener("pointerdown",this.onPointerDown),e.removeEventListener("pointermove",this.onPointerMove),e.removeEventListener("pointerup",this.onPointerUp),e.removeEventListener("pointercancel",this.onPointerCancel),e.removeEventListener("lostpointercapture",this.onPointerCancel),e.removeEventListener("dblclick",this.onNativeDblClick),this.longPressTimer&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.removeLongpressCancelListeners();try{this.pointerId!==null&&typeof e.releasePointerCapture=="function"&&e.releasePointerCapture(this.pointerId)}catch{}this.pointerId=null,this.tracking=!1})})}onNativeDblClick=e=>{let a=new CustomEvent("doubletap",{detail:{x:e.clientX,y:e.clientY,dt:0}});this.zone.run(()=>this.doubletap.emit(a)),this.lastTapTime=0};onPointerDown=e=>{if(this.debug("pointerdown",{x:e.clientX,y:e.clientY,pointerId:e.pointerId,pointerType:e.pointerType,sourceElement:e.target instanceof Element?e.target.outerHTML:String(e.target)}),this.pointerId!==null)return;switch(this.pointerId=e.pointerId,this.tracking=!0,this.pressFired=!1,this.currentPointerType=e.pointerType||null,e.pointerType){case"touch":this._swipeMinDistance=this.swipeMinDistance(),this._swipeMaxDuration=this.swipeMaxDuration(),this._longPressMs=this.longPressMs(),this._doubleTapInterval=this.doubleTapInterval(),this._tapSlop=this.tapSlop(),this._pressMoveSlop=this.pressMoveSlop();break;case"pen":this._swipeMinDistance=20,this._swipeMaxDuration=500,this._longPressMs=400,this._doubleTapInterval=250,this._tapSlop=10,this._pressMoveSlop=8;break;case"mouse":default:this._swipeMinDistance=15,this._swipeMaxDuration=400,this._longPressMs=350,this._doubleTapInterval=250,this._tapSlop=8,this._pressMoveSlop=6;break}let t=performance.now()-this.lastTapUpTime,l=Math.hypot(e.clientX-this.lastTapUpX,e.clientY-this.lastTapUpY);this.potentialDoubleTap=t<=this._doubleTapInterval&&l<=this._tapSlop,this.startX=e.clientX,this.startY=e.clientY,this.startTime=performance.now();try{e.target.setPointerCapture(e.pointerId)}catch{}this.longPressTimer&&(this.debug("longpress timer cleared on pointerdown"),window.clearTimeout(this.longPressTimer)),this.potentialDoubleTap||(this.addLongpressCancelListeners(),this.debug("longpress timer scheduled"),this.longPressTimer=window.setTimeout(()=>{if(this.debug("longpress timer fired",{tracking:this.tracking}),!this.tracking){this.debug("longpress cancelled: not tracking");return}let d=e.clientX-this.startX,u=e.clientY-this.startY;if(Math.abs(d)<=this._pressMoveSlop&&Math.abs(u)<=this._pressMoveSlop){this.debug("longpress recognized",{x:this.startX,y:this.startY}),this.pressFired=!0;let _=new CustomEvent("press",{detail:{x:this.startX,y:this.startY,center:{x:this.startX,y:this.startY}}});this.zone.run(()=>this.press.emit(_))}this.removeLongpressCancelListeners()},this._longPressMs))};onPointerMove=e=>{!this.tracking||e.pointerId!==this.pointerId||this.pressFired||this.longPressTimer&&(this.debug("longpress cancelled by pointermove"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null,this.removeLongpressCancelListeners())};onPointerUp=e=>{if(this.debug("pointerup",{x:e.clientX,y:e.clientY,pointerId:e.pointerId}),!this.tracking||e.pointerId!==this.pointerId)return;let a=performance.now(),t=a-this.startTime,l=e.clientX-this.startX,d=e.clientY-this.startY,u=Math.abs(l),_=Math.abs(d);if(this.longPressTimer&&(this.debug("longpress cancelled by pointerup"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.pressFired){this.debug("pointerup after longpress: not resetting gesture state");return}if(t<=this._swipeMaxDuration&&(u>=this._swipeMinDistance&&u>=_?(this.debug("swipe detected",{direction:l>0?"right":"left",dx:l,dy:d,duration:t}),this.zone.run(()=>{l>0?this.swiperight.emit(new CustomEvent("swiperight",{detail:{dx:l,dy:d,duration:t}})):this.swipeleft.emit(new CustomEvent("swipeleft",{detail:{dx:l,dy:d,duration:t}}))})):_>=this._swipeMinDistance&&_>u&&(this.debug("swipe detected",{direction:d>0?"down":"up",dx:l,dy:d,duration:t}),this.zone.run(()=>{d>0?this.swipedown.emit(new CustomEvent("swipedown",{detail:{dx:l,dy:d,duration:t}})):this.swipeup.emit(new CustomEvent("swipeup",{detail:{dx:l,dy:d,duration:t}}))}))),this.currentPointerType!=="mouse"&&u<=this._tapSlop&&_<=this._tapSlop&&t<this._longPressMs){let T=a,k=T-this.lastTapTime,E=Math.hypot(e.clientX-this.lastTapX,e.clientY-this.lastTapY);k<=this._doubleTapInterval&&E<=this._tapSlop?(this.zone.run(()=>this.doubletap.emit(new CustomEvent("doubletap",{detail:{x:e.clientX,y:e.clientY,dt:k}}))),this.lastTapTime=0,this.potentialDoubleTap=!1):(this.lastTapTime=T,this.lastTapX=e.clientX,this.lastTapY=e.clientY)}!this.pressFired&&u<=this._tapSlop&&_<=this._tapSlop&&t<this._longPressMs?(this.lastTapUpTime=a,this.lastTapUpX=e.clientX,this.lastTapUpY=e.clientY):this.potentialDoubleTap=!1,this.reset()};onPointerCancel=e=>{let a=this.host.nativeElement;this.debug("pointercancel",{pointerId:e.pointerId,pointerType:e.pointerType,event:e,documentActiveElement:document.activeElement,elementIsConnected:a.isConnected,elementVisibility:a.offsetParent!==null,hasPointerCapture:typeof a.hasPointerCapture=="function"?a.hasPointerCapture(e.pointerId):void 0,documentHidden:document.hidden});let t=e;if(this.isChromeOnMac&&e.pointerType==="mouse"&&e.pointerId===this.pointerId&&typeof t.buttons=="number"&&t.buttons!==0){this.debug("pointercancel ignored on Chrome/macOS: mouse button still pressed");return}e.pointerId===this.pointerId&&(this.longPressTimer&&(this.debug("longpress cancelled by pointercancel"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null,this.removeLongpressCancelListeners()),this.reset())};addLongpressCancelListeners(){this.debug("addLongpressCancelListeners");let e=d=>{this.debug("longpress cancelled by event",d?.type),this.longPressTimer&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.removeLongpressCancelListeners()},a=this.host.nativeElement,t=document,l={capture:!0};this.cancelLongpressHandlers=[{type:"pointermove",handler:e,opts:l,targets:["el","doc"]},{type:"pointerleave",handler:e,opts:l,targets:["el","doc"]},{type:"pointerout",handler:e,opts:l,targets:["el","doc"]},{type:"lostpointercapture",handler:e,opts:l,targets:["el","doc"]},{type:"blur",handler:e,opts:l,targets:["window"]}];for(let d of this.cancelLongpressHandlers){let{type:u,handler:_,opts:T,targets:k}=d;k&&k.includes("el")&&a.addEventListener(u,_,T),k&&k.includes("doc")&&t.addEventListener(u,_,T),k&&k.includes("window")&&window.addEventListener(u,_,T)}}removeLongpressCancelListeners(){this.debug("removeLongpressCancelListeners");let e=this.host.nativeElement,a=document;for(let t of this.cancelLongpressHandlers){let{type:l,handler:d,opts:u,targets:_}=t;_&&_.includes("el")&&e.removeEventListener(l,d,u),_&&_.includes("doc")&&a.removeEventListener(l,d,u),_&&_.includes("window")&&window.removeEventListener(l,d,u)}this.cancelLongpressHandlers=[]}reset(){this.debug("reset gesture state");try{let e=this.host.nativeElement;this.pointerId!==null&&typeof e.releasePointerCapture=="function"&&e.releasePointerCapture(this.pointerId)}catch{}this.pointerId=null,this.tracking=!1,this.pressFired=!1,this.currentPointerType=null,this.removeLongpressCancelListeners()}debug(...e){this.constructor.DEBUG&&console.debug(`[GestureDirective][#${this._instanceId}]`,...e)}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["","kipGestures",""]],inputs:{swipeMinDistance:[1,"swipeMinDistance"],swipeMaxDuration:[1,"swipeMaxDuration"],longPressMs:[1,"longPressMs"],doubleTapInterval:[1,"doubleTapInterval"],tapSlop:[1,"tapSlop"],pressMoveSlop:[1,"pressMoveSlop"]},outputs:{swipeleft:"swipeleft",swiperight:"swiperight",swipeup:"swipeup",swipedown:"swipedown",press:"press",doubletap:"doubletap"}})}return i})();function $o(i,c){i&1&&ia(0)}var po=(()=>{class i{data=m(ke);static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"h6",1),r(2),o(),n(3,"button",2)(4,"mat-icon"),r(5,"close"),o()()(),n(6,"mat-dialog-content",3),Le(7,$o,1,0,"ng-container",4),o()),a&2&&(s(2),S(t.data.title),s(),p("mat-dialog-close",!1),s(4),p("ngComponentOutlet",t.data.componentType))},dependencies:[F,pe,Te,Ee,De,le,re,sa],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 i})();function en(i,c){if(i&1&&(n(0,"button",4),r(1),o()),i&2){let e=f();p("mat-dialog-close",!0),s(),S(e.data.confirmBtnText)}}var uo=(()=>{class i{data=m(ke);static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"h5",1),r(2),o(),n(3,"button",2)(4,"mat-icon"),r(5,"close"),o()()(),n(6,"mat-dialog-content"),r(7),o(),n(8,"mat-dialog-actions",3)(9,"button",4),r(10),o(),A(11,en,2,2,"button",4),o()),a&2&&(s(2),S(t.data.title),s(),p("mat-dialog-close",!1),s(4),q(" ",t.data.message,`
3
- `),s(2),p("mat-dialog-close",!1),s(),S(t.data.cancelBtnText),s(),g(t.data.confirmBtnText?11:-1))},dependencies:[F,pe,Te,Ee,Je,De,le,we,re],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 i})();function tn(i,c){if(i&1&&(n(0,"button",9),r(1),o()),i&2){let e=f(),a=se(1);p("disabled",!a.valid),s(),S(e.data.confirmBtnText)}}var Ao=(()=>{class i{dialogRef=m(Se);data=m(ke);saveName(){this.dialogRef.close(this.data)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){if(a&1){let l=P();n(0,"form",1,0),C("ngSubmit",function(){return y(l),x(t.saveName())}),n(2,"div",2)(3,"h5",3),r(4),o(),n(5,"button",4)(6,"mat-icon"),r(7,"close"),o()()(),n(8,"mat-dialog-content")(9,"mat-form-field",5)(10,"mat-label"),r(11,"Name"),o(),n(12,"input",6),Ht("ngModelChange",function(u){return y(l),Yt(t.data.name,u)||(t.data.name=u),x(u)}),o(),n(13,"mat-error"),r(14," A name is required "),o()()(),n(15,"mat-dialog-actions",7)(16,"button",8),r(17),o(),A(18,tn,2,2,"button",9),o()()}a&2&&(s(4),S(t.data.title),s(),p("mat-dialog-close",!1),s(7),jt("ngModel",t.data.name),s(4),p("mat-dialog-close",!1),s(),S(t.data.cancelBtnText),s(),g(t.data.confirmBtnText?18:-1))},dependencies:[pe,Te,Ee,Je,De,Z,F,Ae,R,V,Tt,Ge,te,le,we,re,ee,wt,X,L,J,B,si,li],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 i})();function an(i,c){if(i&1&&(n(0,"mat-option",12),r(1),o()),i&2){let e=c.$implicit;p("value",Ve(e.value)),s(),S(e.label)}}function on(i,c){if(i&1){let e=P();n(0,"button",21),C("click",function(){y(e);let t=f();return x(t.moveCtrlUp())}),n(1,"mat-icon"),r(2,"arrow_drop_up"),o()()}}function nn(i,c){if(i&1){let e=P();n(0,"button",22),C("click",function(){y(e);let t=f();return x(t.moveCtrlDown())}),n(1,"mat-icon"),r(2,"arrow_drop_down"),o()()}}var go=(()=>{class i{app=m(yt);ctrlFormGroup=h.required();controlIndex=h(void 0);arrayLength=h(void 0);deleteCtrl=z();moveUp=z();moveDown=z();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors}deleteControl(){let e={ctrlIndex:this.controlIndex(),pathID:this.ctrlFormGroup().get("pathID").value};this.deleteCtrl.emit(e)}moveCtrlUp(){this.moveUp.emit(this.controlIndex())}moveCtrlDown(){this.moveDown.emit(this.controlIndex())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),r(5,"Label"),o(),b(6,"input",4),o()(),n(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),r(10,"Type"),o(),n(11,"mat-select",7)(12,"mat-option",8),r(13,"Toggle"),o(),n(14,"mat-option",9),r(15,"Push"),o(),n(16,"mat-option",10),r(17,"Indicator"),o()()()(),n(18,"div",5)(19,"mat-form-field",6)(20,"mat-label"),r(21,"Color"),o(),n(22,"mat-select",11),M(23,an,2,3,"mat-option",12,G),o()()(),n(25,"div",13)(26,"mat-checkbox",14),r(27," Use numeric path "),o()()(),n(28,"div",15)(29,"div",16)(30,"div",17),A(31,on,3,0,"button",18),A(32,nn,3,0,"button",19),n(33,"button",20),C("click",function(){return t.deleteControl()}),n(34,"mat-icon"),r(35,"delete"),o()()()()()()),a&2&&(p("formGroup",t.ctrlFormGroup()),s(23),w(t.colors),s(8),g(t.controlIndex()!==0?31:-1),s(),g(t.controlIndex()!==t.arrayLength()-1?32:-1))},dependencies:[ee,X,L,J,B,Q,$,et,R,V,te,ge,ie,re,it,Pe,Z,F],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 i})();function rn(i,c){if(i&1){let e=P();n(0,"boolean-control-config",4),C("moveUp",function(t){y(e);let l=f();return x(l.moveUp(t))})("moveDown",function(t){y(e);let l=f();return x(l.moveDown(t))})("deleteCtrl",function(t){y(e);let l=f();return x(l.deletePath(t))}),o()}if(i&2){let e=c.$implicit,a=c.$index,t=f();p("ctrlFormGroup",t.getFormGroup(e))("controlIndex",a)("arrayLength",t.arrayLength)}}var ho=(()=>{class i{fb=m(kt);multiCtrlArray=h.required();addPath=z();updatePath=z();delPath=z();multiFormGroup=null;arrayLength=0;multiCtrlArraySubscription=null;ngOnInit(){this.arrayLength=this.multiCtrlArray().length,this.multiFormGroup=new Ua({multiCtrlArray:this.multiCtrlArray()}),this.multiCtrlArraySubscription=this.multiCtrlArray().valueChanges.pipe(Qt(350)).subscribe(e=>{this.updatePath.emit(e)})}addCtrlGroup(){let e=ct.create();this.multiCtrlArray().push(this.fb.group({ctrlLabel:[null,K.required],type:["1",K.required],pathID:[e],color:["contrast"],isNumeric:[!1],value:[null]})),this.arrayLength=this.multiCtrlArray().length;let a={path:{description:null,path:null,pathID:e,source:"default",pathType:"boolean",supportsPut:!0,isPathConfigurable:!0,showPathSkUnitsFilter:!1,pathSkUnitsFilter:null,convertUnitTo:null,sampleTime:500},ctrlType:1};this.addPath.emit(a)}moveUp(e){let a=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e-1,a,{emitEvent:!1})}moveDown(e){let a=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e+1,a,{emitEvent:!1})}deletePath(e){this.delPath.emit(e),this.arrayLength=this.multiCtrlArray().length}getFormGroup(e){return e}ngOnDestroy(){this.multiCtrlArraySubscription?.unsubscribe()}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"div",1),M(2,rn,1,3,"boolean-control-config",2,zt),n(4,"button",3),C("click",function(){return t.addCtrlGroup()}),n(5,"mat-icon"),r(6,"add"),o()()()()),a&2&&(p("formGroup",t.multiFormGroup),s(2),w(t.multiCtrlArray().controls))},dependencies:[ee,J,Q,$,ja,go,le,Sa,Z,F],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 i})();function ln(i,c){if(i&1&&(n(0,"mat-option",8),r(1),o()),i&2){let e=c.$implicit;p("value",Ve(e.value)),s(),S(e.label)}}var fo=(()=>{class i{app=m(yt);displayName=h.required();showLabel=h.required();convertUnitTo=h.required();datasetUUID=h.required();datasetAverageArray=h.required();showAverageData=h.required();trackAgainstAverage=h.required();showDatasetMinimumValueLine=h.required();showDatasetMaximumValueLine=h.required();showDatasetAverageValueLine=h.required();showDatasetAngleAverageValueLine=h.required();verticalChart=h.required();inverseYAxis=h.required();showTimeScale=h.required();showYScale=h.required();startScaleAtZero=h.required();yScaleSuggestedMin=h.required();yScaleSuggestedMax=h.required();enableMinMaxScaleLimit=h.required();yScaleMin=h.required();yScaleMax=h.required();numDecimal=h.required();color=h.required();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors,this.showAverageData()&&!this.showAverageData()?.value&&this.trackAgainstAverage().disable(),this.enableMinMaxScaleLimit()&&this.setValueScaleOptionsControls(this.enableMinMaxScaleLimit().value)}setValueScaleOptionsControls(e){e?(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(e){this.setValueScaleOptionsControls(e.value)}enableTrackAgainstMovingAverage(e){e.checked?this.trackAgainstAverage().enable():(this.trackAgainstAverage().setValue(e.checked),this.trackAgainstAverage().disable())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){if(a&1){let l=P();n(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),r(5,"Widget Label"),o(),b(6,"input",5),o()(),n(7,"div",3)(8,"mat-checkbox",6),r(9," Show Label "),o()()(),n(10,"div",2)(11,"mat-form-field",4)(12,"mat-label"),r(13,"Color"),o(),n(14,"mat-select",7),M(15,ln,2,3,"mat-option",8,G),o()()(),n(17,"div",2)(18,"div",9)(19,"div")(20,"p"),r(21,"Series"),o(),n(22,"mat-form-field",10)(23,"mat-label"),r(24,"Value Decimal Places"),o(),b(25,"input",11),o(),n(26,"mat-checkbox",12),C("change",function(u){return y(l),x(t.enableTrackAgainstMovingAverage(u))}),r(27," Display Moving Average "),o(),n(28,"mat-checkbox",13),r(29," Track Against Moving Average "),o()(),n(30,"mat-checkbox",14),r(31," Vertical Data Graph "),o()(),n(32,"div",9)(33,"div")(34,"p",15),r(35,"Data Scale"),o(),n(36,"span",16),r(37,"(Default node is automatic scale)"),o(),n(38,"mat-radio-group",17)(39,"mat-radio-button",18),C("change",function(u){return y(l),x(t.setScaleControls(u))}),r(40,"Auto Scale"),o(),n(41,"div",19)(42,"mat-form-field",20)(43,"mat-label"),r(44,"Suggested Min"),o(),b(45,"input",21),o(),n(46,"mat-form-field",20)(47,"mat-label"),r(48,"Suggested Max"),o(),b(49,"input",22),o()(),n(50,"mat-radio-button",18),C("change",function(u){return y(l),x(t.setScaleControls(u))}),r(51," Fixed Scale "),o(),n(52,"div",19)(53,"div",23)(54,"mat-form-field",20)(55,"mat-label"),r(56,"Min"),o(),b(57,"input",24),o()(),n(58,"div",23)(59,"mat-form-field",20)(60,"mat-label"),r(61,"Max"),o(),b(62,"input",25),o()()()(),n(63,"mat-checkbox",26),r(64," Show Scale Ticks "),o(),n(65,"mat-checkbox",27),r(66," Inverse Scale "),o()()(),n(67,"div",9)(68,"div")(69,"p",15),r(70,"Time Scale"),o(),n(71,"mat-checkbox",28),r(72," Show Scale Ticks "),o()()(),n(73,"div",9)(74,"div")(75,"p",15),r(76,"Dataset"),o(),n(77,"mat-checkbox",29),r(78," Show Maximum Line "),o(),n(79,"mat-checkbox",30),r(80," Show Average Line "),o(),n(81,"mat-checkbox",31,0),r(83," Show Minimum Line "),o()()()()()}a&2&&(s(6),p("formControl",t.displayName()),s(2),p("formControl",t.showLabel()),s(6),p("formControl",t.color()),s(),w(t.colors),s(10),p("formControl",t.numDecimal()),s(),p("formControl",t.showAverageData()),s(2),p("formControl",t.trackAgainstAverage()),s(2),p("formControl",t.verticalChart()),s(8),p("formControl",t.enableMinMaxScaleLimit()),s(),p("value",!1),s(6),p("formControl",t.yScaleSuggestedMin()),s(4),p("formControl",t.yScaleSuggestedMax()),s(),p("value",!0),s(7),p("formControl",t.yScaleMin()),s(5),p("formControl",t.yScaleMax()),s(),p("formControl",t.showYScale()),s(2),p("formControl",t.inverseYAxis()),s(6),p("formControl",t.showTimeScale()),s(6),p("formControl",t.showDatasetMaximumValueLine()),s(2),p("formControl",t.showDatasetAverageValueLine()),s(2),p("formControl",t.showDatasetMinimumValueLine()))},dependencies:[ui,Ae,R,V,it,Pe,tt,ge,ie,Bt,Ge,te,ro,oo,no,Q,X,$e,L,B,St,ci,Ie],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 i})();var sn=(i,c)=>c.uuid;function cn(i,c){if(i&1&&(n(0,"mat-option",4),r(1),o()),i&2){let e=c.$implicit;p("value",e.uuid),s(),q(" ",e.label," ")}}function dn(i,c){if(i&1&&(n(0,"mat-option",4),r(1),o()),i&2){let e=c.$implicit;p("value",e.measure),s(),q(" ",e.description," ")}}function mn(i,c){if(i&1&&(n(0,"mat-optgroup",6),M(1,dn,2,2,"mat-option",4,G),o()),i&2){let e=c.$implicit;p("label",e.group),s(),w(e.units)}}var bo=(()=>{class i{datasetService=m(mi);units=m(It);datasetUUID=h.required();convertUnitTo=h.required();availableDataSets=[];unitList={};ngOnInit(){this.availableDataSets=this.datasetService.list().filter(a=>a.editable!==!1).sort();let e=this.datasetUUID();e.value&&this.setPathUnits(e.value)}setPathUnits(e){let a=this.datasetService.getDatasetConfig(e);return e&&a?(this.unitList=this.units.getConversionsForPath(a.path),this.convertUnitTo()?.enable(),!0):(this.unitList=this.units.getConversionsForPath(""),this.convertUnitTo()?.disable(),!1)}datasetChanged(e){this.setPathUnits(e.value)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),r(4,"Dataset"),o(),n(5,"mat-select",3),C("selectionChange",function(d){return t.datasetChanged(d)}),M(6,cn,2,2,"mat-option",4,sn),o()(),n(8,"mat-form-field",2)(9,"mat-label"),r(10,"Display Format"),o(),n(11,"mat-select",5),M(12,mn,3,1,"mat-optgroup",6,G),o()()()()),a&2&&(s(5),p("formControl",t.datasetUUID()),s(),w(t.availableDataSets),s(5),p("formControl",t.convertUnitTo()),s(),w(t.unitList.conversions))},dependencies:[Ae,R,V,tt,ge,ie,Dt,Q,L,B,Ie],styles:[".display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}"]})}return i})();var _o=(()=>{class i{transform(e){return Object.keys(e)}static \u0275fac=function(a){return new(a||i)};static \u0275pipe=Ki({name:"objectKeys",type:i,pure:!0})}return i})();var un=["panel"],An=["*"];function gn(i,c){if(i&1&&(wi(0,"div",1,0),ae(2),Si()),i&2){let e=c.id,a=f();Be(a._classList),O("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"),aa("id",a.id),W("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby(e))}}var Oi=class{source;option;constructor(c,e){this.source=c,this.option=e}},yo=new oe("mat-autocomplete-default-options",{providedIn:"root",factory:hn});function hn(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var fi=(()=>{class i{_changeDetectorRef=m(st);_elementRef=m(he);_defaults=m(yo);_animationsDisabled=Me();_activeOptionChanges=mt.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new me;opened=new me;closed=new me;optionActivated=new me;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=m(Lt).getId("mat-autocomplete-");inertGroups;constructor(){let e=m($t);this.inertGroups=e?.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 ya(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let a=new Oi(this,e);this.optionSelected.emit(a)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let a=e?e+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(a,t,l){if(a&1&&(fe(l,ie,5),fe(l,Ja,5)),a&2){let d;Y(d=H())&&(t.options=d),Y(d=H())&&(t.optionGroups=d)}},viewQuery:function(a,t){if(a&1&&(je(Zi,7),je(un,5)),a&2){let l;Y(l=H())&&(t.template=l.first),Y(l=H())&&(t.panel=l.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",U],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",U],requireSelection:[2,"requireSelection","requireSelection",U],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",U],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",U]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[He([{provide:Ka,useExisting:i}])],ngContentSelectors:An,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,t){a&1&&(xe(),Ji(0,gn,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 i})();var fn={provide:ri,useExisting:Ot(()=>Rt),multi:!0};var xo=new oe("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=m(Qe);return()=>Di(i)}});function bn(i){let c=m(Qe);return()=>Di(c)}var _n={provide:xo,deps:[],useFactory:bn},Rt=(()=>{class i{_environmentInjector=m(Hi);_element=m(he);_injector=m(Qe);_viewContainerRef=m(Xi);_zone=m(ft);_changeDetectorRef=m(st);_dir=m(ai,{optional:!0});_formField=m(Ha,{optional:!0,host:!0});_viewportRuler=m(Da);_scrollStrategy=m(xo);_renderer=m(Mi);_animationsDisabled=Me();_defaults=m(yo,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new pt;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=mt.EMPTY;_breakpointObserver=m(ti);_handsetLandscapeSubscription=mt.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new pt;_overlayPanelClass=_a(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(e){e.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&&ii(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return We(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ue(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ue(()=>this._overlayAttached)):yi()).pipe(ut(e=>e instanceof $a?e:null))}optionSelections=Qi(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(gt(e),qt(()=>We(...e.map(a=>a.onSelectionChange)))):this._initialized.pipe(qt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Ci(e=>{let a=l=>{let d=ha(l),u=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,_=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&d!==this._element.nativeElement&&!this._hasFocus()&&(!u||!u.contains(d))&&(!_||!_.contains(d))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(d)&&e.next(l)},t=[this._renderer.listen("document","click",a),this._renderer.listen("document","auxclick",a),this._renderer.listen("document","touchend",a)];return()=>{t.forEach(l=>l())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let a=e,t=a.keyCode,l=Ct(a);if(t===27&&!l&&a.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&t===13&&this.panelOpen&&!l)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){let d=this.autocomplete._keyManager.activeItem,u=t===38||t===40;t===9||u&&!l&&this.panelOpen?this.autocomplete._keyManager.onKeydown(a):u&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(u||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(e){let a=e.target,t=a.value;if(a.type==="number"&&(t=t==""?null:parseFloat(t)),this._previousValue!==t){if(this._previousValue=t,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(t),!t)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let l=this.autocomplete.options?.find(d=>d.selected);if(l){let d=this._getDisplayValue(l.value);t!==d&&l.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let l=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(l)}}}_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 Ti()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Ci(t=>{$i(()=>{t.next()},{injector:this._environmentInjector})}),a=this.autocomplete.options?.changes.pipe(Yi(()=>this._positionStrategy.reapplyLastPosition()),zi(0))??yi();return We(e,a).pipe(qt(()=>this._zone.run(()=>{let t=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),t!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),At(1)).subscribe(t=>this._setValueAndClose(t))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let a=this.autocomplete;return a&&a.displayWith?a.displayWith(e):e}_assignOptionValue(e){let a=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(a??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let a=this.autocomplete,t=e?e.source:this._pendingAutoselectedOption;t?(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),a._emitSelectEvent(t),this._element.nativeElement.focus()):a.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,a){this.autocomplete?.options?.forEach(t=>{t!==e&&t.selected&&t.deselect(a)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let a=this.autocomplete.id;Ei(this._trackedModal,"aria-owns",a)}}_attachOverlay(e){this.autocomplete;let a=this._overlayRef;a?(this._positionStrategy.setOrigin(this._getConnectedElement()),a.updateSize({width:this._getPanelWidth()})):(this._portal=new ka(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),a=La(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(Re.HandsetLandscape).subscribe(l=>{l.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=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let t=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&t!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ct(e)||e.keyCode===38&&Ct(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Pa({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 e=Oa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let a=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],t=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:t},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:t}],d;this.position==="above"?d=l:this.position==="below"?d=a:d=[...a,...l],e.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 e=this.autocomplete;if(e.autoActiveFirstOption){let a=-1;for(let t=0;t<e.options.length;t++)if(!e.options.get(t).disabled){a=t;break}e._keyManager.setActiveItem(a)}else e._keyManager.setActiveItem(-1)}_canOpen(){let e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_scrollToOption(e){let a=this.autocomplete,t=eo(e,a.options,a.optionGroups);if(e===0&&t===1)a._setScrollTop(0);else if(a.panel){let l=a.options.toArray()[e];if(l){let d=l._getHostElement(),u=to(d.offsetTop,d.offsetHeight,a._getScrollTop(),a.panel.nativeElement.offsetHeight);a._setScrollTop(u)}}}_trackedModal=null;_applyModalPanelOwnership(){let e=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let a=this.autocomplete.id;this._trackedModal&&ii(this._trackedModal,"aria-owns",a),Ei(e,"aria-owns",a),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;ii(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,t){a&1&&C("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(d){return t._handleInput(d)})("keydown",function(d){return t._handleKeydown(d)})("click",function(){return t._handleClick()}),a&2&&W("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-controls",t.autocompleteDisabled||!t.panelOpen||t.autocomplete==null?null:t.autocomplete.id)("aria-haspopup",t.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",U]},exportAs:["matAutocompleteTrigger"],features:[He([fn]),lt]})}return i})(),Mo=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({providers:[_n],imports:[Ba,Bt,ne,Ia,Bt,ne]})}return i})();var Cn=(i,c)=>c.path;function yn(i,c){i&1&&b(0,"i",22)}function xn(i,c){i&1&&b(0,"i",23)}function Mn(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=c.$implicit;p("value",e),s(),_t("",e.properties.quantity,": ",e.properties.display)}}function wn(i,c){if(i&1){let e=P();n(0,"div",5)(1,"mat-form-field",21)(2,"mat-label"),A(3,yn,1,0,"i",22)(4,xn,1,0,"i",23),r(5," Filter"),o(),n(6,"mat-select",24,2),C("selectionChange",function(){y(e),f();let t=se(11),l=f();return x(l.pathFormGroup().controls.path.setValue(t.value))}),n(8,"mat-option"),r(9,"All"),o(),M(10,Mn,2,3,"mat-option",16,G),o()()()}if(i&2){let e=se(7),a=f(2);s(3),g(e.value?4:3),s(3),p("formControl",a.pathSkUnitsFilterControl),s(4),w(a.pathSkUnitsFiltersList)}}function Sn(i,c){i&1&&(n(0,"span",8),r(1,"(optional)"),o())}function kn(i,c){i&1&&(n(0,"mat-hint"),r(1,"Leave blank to disable this path."),o())}function Tn(i,c){if(i&1){let e=P();n(0,"button",25),C("click",function(){y(e);let t=f(2);return x(t.pathFormGroup().controls.path.setValue(""))}),n(1,"mat-icon"),r(2,"close"),o()()}}function En(i,c){i&1&&(n(0,"mat-error"),r(1," Path is required. Please enter a valid Signal K path. "),o())}function Dn(i,c){i&1&&(n(0,"mat-error"),r(1," Path not recognized. Please enter a path from the server's published list. "),o())}function In(i,c){if(i&1&&(n(0,"span"),r(1),o(),b(2,"br"),n(3,"small",26),r(4),o()),i&2){let e=f().$implicit;s(),S(e.path),s(3),S(e.meta.description)}}function Gn(i,c){if(i&1&&r(0),i&2){let e=f().$implicit;q(" ",e.path," ")}}function Pn(i,c){if(i&1&&(n(0,"mat-option",11),A(1,In,5,2)(2,Gn,1,1),o()),i&2){let e=c.$implicit;p("value",e.path),s(),g(e.meta!==void 0?1:2)}}function On(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=c.$implicit;p("value",e),s(),q(" ",e," ")}}function Fn(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=c.$implicit;p("value",e.measure),s(),q(" ",e.description," ")}}function Ln(i,c){if(i&1&&(n(0,"mat-optgroup",28),M(1,Fn,2,2,"mat-option",16,G),o()),i&2){let e=c.$implicit;p("label",e.group),s(),w(e.units)}}function Bn(i,c){if(i&1&&(n(0,"mat-form-field",20)(1,"mat-label"),r(2,"Display Format"),o(),n(3,"mat-select",27),M(4,Ln,3,1,"mat-optgroup",28,G),o()()),i&2){let e=f(2);s(4),w(e.unitList.conversions)}}function Vn(i,c){if(i&1&&(n(0,"div",3)(1,"div",4)(2,"span"),r(3),o()(),A(4,wn,12,2,"div",5),n(5,"div",6)(6,"mat-form-field",7)(7,"mat-label"),r(8," Signal K Path "),A(9,Sn,2,0,"span",8),o(),b(10,"input",9,0),A(12,kn,2,0,"mat-hint"),A(13,Tn,3,0,"button",10),A(14,En,2,0,"mat-error")(15,Dn,2,0,"mat-error"),n(16,"mat-autocomplete",null,1),M(18,Pn,3,2,"mat-option",11,Cn),Ze(20,"async"),o()()(),n(21,"div",12)(22,"div",13)(23,"mat-form-field",14)(24,"mat-label"),r(25,"Data Source"),o(),n(26,"mat-select",15),M(27,On,2,2,"mat-option",16,G),o()()(),n(29,"div",17)(30,"mat-form-field",14)(31,"mat-label"),r(32,"Sample Time"),o(),b(33,"input",18),o()(),n(34,"div",19),A(35,Bn,6,0,"mat-form-field",20),o()()()),i&2){let e,a=se(17),t=f();p("formGroup",t.pathFormGroup()),s(2),Ye("color",t.pathFormGroup().enabled?"":"rgba(255,255,255,0.5)"),s(),S(t.pathFormGroup().value.description),s(),g(t.pathFormGroup().value.pathType==="number"&&t.showPathSkUnitsFilter?4:-1),s(5),g(t.pathFormGroup().value.pathRequired===!1?9:-1),s(),p("matAutocomplete",a),s(2),g(t.pathFormGroup().value.pathRequired===!1?12:-1),s(),g(t.pathFormGroup().value.path?13:-1),s(),g((e=t.pathFormGroup().controls.path.errors)!=null&&e.required?14:(e=t.pathFormGroup().controls.path.errors)!=null&&e.requireMatch?15:-1),s(4),w(Xe(20,11,t.filteredPaths)),s(9),w(t.availableSources),s(8),g(t.pathFormGroup().value.pathType==="number"&&t.pathFormGroup().value.showConvertUnitTo===void 0||t.pathFormGroup().value.pathType==="number"&&t.pathFormGroup().value.showConvertUnitTo===!0?35:-1)}}function Rn(i){return c=>{let e=c.parent?.value?.pathRequired!==!1,a=c.value;return e?a===null||a===""?{requireMatch:!0}:i().some(d=>d.path===a)?null:{requireMatch:!0}:a===null||a===""||i().some(d=>d.path===a)?null:{requireMatch:!0}}}var wo=(()=>{class i{_data=m(xa);_units=m(It);_connection=m(ma);_destroyRef=m(qe);pathFormGroup=h.required();multiCTRLArray=h.required();filterSelfPaths=h.required();availablePaths;filteredPaths=new Pt(null);availableSources;unitList={base:"",conversions:[]};showPathSkUnitsFilter=!1;pathSkUnitsFilterControl=new qa(null);pathSkUnitsFiltersList;unitlessUnit={unit:"unitless",properties:{display:"(null)",quantity:"Unitless",quantityDisplay:"(null)",description:""}};ngOnInit(){let e=this.pathFormGroup();e.controls.path.disabled||(this.pathSkUnitsFiltersList=this._units.skBaseUnits.sort((a,t)=>a.properties.quantity>t.properties.quantity?1:-1),this.pathSkUnitsFiltersList.unshift(this.unitlessUnit),e.value.pathSkUnitsFilter&&this.pathSkUnitsFilterControl.setValue(this.pathSkUnitsFiltersList.find(a=>a.unit===this.pathFormGroup().value.pathSkUnitsFilter),{onlySelf:!0}),e.value.showPathSkUnitsFilter&&(this.showPathSkUnitsFilter=e.value.showPathSkUnitsFilter),e.controls.path.setValidators([Rn(()=>this.getPaths())]),e.controls.path.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e.controls.pathRequired&&e.controls.pathRequired.valueChanges.pipe(Ke(this._destroyRef)).subscribe(()=>{this.pathFormGroup().controls.path.updateValueAndValidity()}),e.controls.path.valid?this.enableFormFields(!1):this.disablePathFields(),e.controls.sampleTime||(e.addControl("sampleTime",new ue("500",K.required)),e.controls.sampleTime.updateValueAndValidity({onlySelf:!0,emitEvent:!1})),e.controls.path.valueChanges.pipe(qi(a=>a===""?xi(0):xi(350)),gt(""),ut(a=>this.filterPaths(a||""))).pipe(Ke(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())}),e.controls.pathType.valueChanges.pipe(Ke(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.value.showPathSkUnitsFilter?this.pathSkUnitsFilterControl.setValue(this.unitlessUnit):this.pathSkUnitsFilterControl.setValue(null),a.controls.path.updateValueAndValidity()}))}ngOnChanges(e){e.filterSelfPaths&&!e.filterSelfPaths.firstChange&&this.pathFormGroup().controls.path.updateValueAndValidity()}getPaths(){let e=this.pathFormGroup().controls.pathType.value,a=this.filterSelfPaths(),t=!1,l=this.pathFormGroup();if(l.value.supportsPut){let d=!1;this.multiCTRLArray().length>0&&(d=this.multiCTRLArray().some(u=>u.pathID===this.pathFormGroup().value.pathID&&u.type==="3")),d?t=!1:t=ua(this._connection.skServerVersion,"2.12.0",">=")?l.value.supportsPut:!1}return this._data.getPathsAndMetaByType(e,t,a).sort()}filterPaths(e){let a=e.toLowerCase(),t=this.getPaths();if(this.pathSkUnitsFilterControl.value){let l=this.pathSkUnitsFilterControl.value.unit;t=t.filter(d=>{let u=!!d.meta&&!!d.meta.units,_=l==="unitless";return u&&d.meta.units===l||!u&&_})}t=t.filter(l=>l.path.toLowerCase().includes(a)),this.filteredPaths.next(t)}enableFormFields(e){let a=this._data.getPathObject(this.pathFormGroup().controls.path.value);if(a!=null){this.pathFormGroup().controls.sampleTime.enable({onlySelf:!1});let t=this.pathFormGroup();t.controls.pathType.value=="number"&&(this.unitList=this._units.getConversionsForPath(t.controls.path.value),e&&t.controls.convertUnitTo.setValue(this.unitList.base,{onlySelf:!0}),t.controls.convertUnitTo.enable({onlySelf:!1})),Object.keys(a.sources).length==1?(this.availableSources=["default"],e?t.controls.source.value!="default"&&t.controls.source.setValue("default",{onlySelf:!0}):t.controls.source.value!="default"&&t.controls.source.setValue("",{onlySelf:!0})):Object.keys(a.sources).length>1&&(this.availableSources=Object.keys(a.sources),t.controls.source.value=="default"&&t.controls.source.reset()),t.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 e=this.pathFormGroup();e.controls.pathType.value=="number"&&(e.controls.convertUnitTo.reset("",{onlySelf:!0}),e.controls.convertUnitTo.disable({onlySelf:!1}))}updatePathMetaBoundDisplayName(e){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayName"))return;let t=this._data.getPathMeta(e);t?.displayName&&a.parent.parent.controls.displayName.setValue(t.displayName)}updatePathMetaBoundDisplayScale(e){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayScale"))return;let t=this._data.getPathMeta(e);if(t?.displayScale){let l=a.parent.parent.get("displayScale"),d=a.controls.convertUnitTo.value;t.displayScale.lower!==null&&t.displayScale.lower!==void 0&&l.controls.lower.setValue(this._units.convertToUnit(d,t.displayScale.lower)),t.displayScale.upper!==null&&t.displayScale.upper!==void 0&&l.controls.upper.setValue(this._units.convertToUnit(d,t.displayScale.upper)),t.displayScale.type!==null&&t.displayScale.type!==void 0&&l.controls.type.setValue(t.displayScale.type),t.displayScale.power!==null&&t.displayScale.power!==void 0&&l.controls.power.setValue(t.displayScale.power)}}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["path-control-config"]],inputs:{pathFormGroup:[1,"pathFormGroup"],multiCTRLArray:[1,"multiCTRLArray"],filterSelfPaths:[1,"filterSelfPaths"]},features:[lt],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,t){a&1&&A(0,Vn,36,13,"div",3),a&2&&g(t.pathFormGroup().value.isPathConfigurable?0:-1)},dependencies:[ee,X,$e,L,J,B,Q,Ie,$,et,R,V,te,Mo,fi,ie,Dt,Rt,re,Et,Tt,ge,Z,F,Ya,Zt],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 i})();function Nn(i,c){if(i&1&&b(0,"path-control-config",6),i&2){let e=c.$implicit,a=f(2);p("pathFormGroup",e)("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Wn(i,c){if(i&1&&M(0,Nn,1,3,"path-control-config",6,G),i&2){let e=f();w(e.pathsFormGroup.controls)}}function Un(i,c){if(i&1&&b(0,"path-control-config",6),i&2){let e=c.$implicit,a=f(2);p("pathFormGroup",a.pathsFormGroup.get(e))("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Qn(i,c){if(i&1&&(M(0,Un,1,3,"path-control-config",6,G),Ze(2,"objectKeys")),i&2){let e=f();w(Xe(2,0,e.pathsFormGroup.controls))}}var So=(()=>{class i{rootFormGroup=m($);fb=m(kt);formGroupName=h.required();isArray=h.required();enableTimeout=h.required();dataTimeout=h.required();filterSelfPaths=h.required();addPathEvent=h(void 0);delPathEvent=h(void 0);updatePathEvent=h(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(e){this.pathsFormGroup.push(this.fb.group({description:[e.path.description],path:[e.path.path,K.required],pathID:[e.path.pathID],source:[e.path.source,K.required],pathType:[e.path.pathType],isPathConfigurable:[e.path.isPathConfigurable],showPathSkUnitsFilter:[e.path.showPathSkUnitsFilter],pathSkUnitsFilter:[e.path.pathSkUnitsFilter],convertUnitTo:[e.path.convertUnitTo],sampleTime:[e.path.sampleTime],supportsPut:[e.path.supportsPut]})),this.pathsFormGroup.updateValueAndValidity(),this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}delPath(){this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}updatePath(e){this.multiCTRLArray=e}ngOnChanges(e){e.addPathEvent&&!e.addPathEvent.firstChange&&this.addPath(e.addPathEvent.currentValue),e.delPathEvent&&!e.delPathEvent.firstChange&&this.delPath(),e.updatePathEvent&&!e.updatePathEvent.firstChange&&this.updatePath(e.updatePathEvent.currentValue)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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:[lt],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,t){a&1&&(n(0,"div",0)(1,"mat-checkbox",1),r(2," Enable Widget Data TTL "),o(),n(3,"mat-form-field")(4,"mat-label"),r(5,"TTL Timeout For Paths"),o(),b(6,"input",2),n(7,"span",3),r(8,"Seconds"),o()()(),ea(9,4),A(10,Wn,2,0)(11,Qn,3,2),ta(),n(12,"mat-checkbox",5),r(13,` Restrict to own vessel
5
- `),o()),a&2&&(s(),p("formControl",t.enableTimeout()),s(5),p("formControl",t.dataTimeout()),s(3),p("formGroup",t.pathsFormGroup),s(),g(t.isArray()?10:11),s(2),p("formControl",t.filterSelfPaths()))},dependencies:[Pe,ee,X,$e,L,J,B,St,Q,Ie,$,R,V,te,Et,wo,_o],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:5px}"]})}return i})();function qn(i,c){if(i&1){let e=P();n(0,"button",7),C("click",function(){y(e);let t=f();return x(t.dateTimezone().setValue(""))}),b(1,"span",8),o()}}function zn(i,c){if(i&1&&(n(0,"mat-option",6),r(1),o()),i&2){let e=c.$implicit;p("value",e.label),s(),_t(" ",e.offset," - ",e.label," ")}}function jn(i){return c=>i.some(a=>a.label===c.value)?null:{requireMatch:!0}}var Yn=()=>{let i=Intl.supportedValuesOf("timeZone"),c=new Date;return i.map(e=>({offset:new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(c).find(d=>d.type==="timeZoneName")?.value||"",label:e}))},ko=(()=>{class i{_destroyRef=m(qe);dateFormat=h(void 0);dateTimezone=h(void 0);tz=[];filteredTZ;filteredTZSubscription=null;constructor(){}ngOnInit(){typeof Intl.supportedValuesOf<"u"?this.tz=Yn().sort((e,a)=>this.compareOffsets(e.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((e,a)=>this.compareOffsets(e.offset,a.offset))),this.tz.unshift({offset:"",label:"System Timezone -"}),this.dateTimezone().setValidators([K.required,jn(this.tz)]),this.filteredTZ=this.dateTimezone().valueChanges.pipe(Qt(500),gt(""),ut(e=>this.filterTZ(e||""))),this.filteredTZSubscription=this.filteredTZ.pipe(Ke(this._destroyRef)).subscribe()}filterTZ(e){let a=e.toLowerCase();return this.tz.filter(t=>t.label.toLowerCase().includes(a))}compareOffsets(e,a){let t=l=>{let d=l.match(/([+-]?)(\d+)(?::(\d+))?/);if(!d)return 0;let u=d[1]==="-"?-1:1,_=parseInt(d[2],10),T=d[3]?parseInt(d[3],10):0;return u*(_*60+T)};return t(e)-t(a)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){if(a&1&&(n(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),r(3,"Date & Time Format"),o(),b(4,"input",3),o(),n(5,"mat-form-field",2)(6,"mat-label"),r(7,"Adjust Value to Time Zone"),o(),b(8,"input",4),A(9,qn,2,0,"button",5),n(10,"mat-autocomplete",null,0),M(12,zn,2,3,"mat-option",6,zt),Ze(14,"async"),o()()()),a&2){let l=se(11);s(4),p("formControl",t.dateFormat()),s(4),p("formControl",t.dateTimezone())("matAutocomplete",l),s(),g(t.dateTimezone().value?9:-1),s(3),w(Xe(14,4,t.filteredTZ))}},dependencies:[R,V,te,ee,X,L,B,Q,Ie,Rt,re,Et,fi,ie,Zt],encapsulation:2})}return i})();function Hn(i,c){if(i&1&&(n(0,"mat-option",6),r(1),Ze(2,"titlecase"),o()),i&2){let e=c.$implicit;p("value",Ve(e)),s(),S(Xe(2,3,e))}}var Fi={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"},To={options:{modes:[],states:[]},state:null,mode:"off-line",target:null,engaged:!1},Eo=(()=>{class i{formGroupName=h.required();_plugins=m(pi);_destroyRef=m(qe);http=m(da);rootFormGroup=m($);autopilotFormGroup;apiVersion=D(null);availableAutopilots=D({});autopilotPlugin=D(null);discoveryInProgress=D(!1);apiDetectionError=D(null);apInstances=na(()=>{let e=this.availableAutopilots();return e?Object.keys(e):[]});modes=D(null);pluginId=D(null);currentRequests=new Set;constructor(){vt(()=>{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 N(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(e){console.error("[Autopilot Options] Error checking V2 API, checking V1...",e)}try{if(yield this._plugins.isEnabled(Fi.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(e){console.error("[Autopilot Options] V1 plugin detection failed:",e)}console.warn("[Autopilot Options] No Autopilot detected"),this.discoveryInProgress.set(!1)})}checkV2Api(){return N(this,null,function*(){try{return(yield Ut(this.makeHttpRequest(this.http.get(Fi.V2_AUTOPILOTS,{observe:"response",responseType:"json"}))))?.status===200}catch(e){if(e&&typeof e=="object"&&"status"in e){let a=e;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:",e);return!1}})}discoverV2Autopilots(){return N(this,null,function*(){try{let e=yield Ut(this.makeHttpRequest(this.http.get(Fi.V2_AUTOPILOTS)));e&&Object.keys(e).length>0?(this.availableAutopilots.set(e),console.log("[Autopilot Options] Discovered V2 autopilot instances:",JSON.stringify(e))):(this.availableAutopilots.set({}),console.warn("[Autopilot Options] No V2 autopilot plugin found in response."))}catch(e){console.error("[Autopilot Options] Failed to discover V2 autopilots:",e),this.availableAutopilots.set({}),this.apiDetectionError.set(`Failed to discover autopilots: ${e instanceof Error?e.message:"Unknown error"}`)}})}discoverV2AutopilotOptions(e){return N(this,null,function*(){let a;try{try{this.discoveryInProgress.set(!0),a=yield Ut(this.makeHttpRequest(this.http.get(`API_PATHS.V2_AUTOPILOTS/${e}`))),console.log("[Autopilot Options] V2 Autopilot Options response:",JSON.stringify(a))}catch{a=To,console.log(`[Autopilot Options] Default AP discovery endpoint error for instance '${e}'`)}return this.discoveryInProgress.set(!1),a}catch(t){return console.error("[Autopilot Options] Failed to discover V2 endpoints:",t),console.log(`[Autopilot Options] Using fallback V2 endpoints for instance '${e}'`),To}})}onAutopilotInstanceIdChange(e){let a=e.value;if(e.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(t=>{let l=t.options.modes||[];this.modes.set(l.join(", ")),this.autopilotFormGroup.get("modes")?.setValue(l,{emitEvent:!1}),console.log("[Autopilot Options] Autopilot plugin supported modes :",l.join(", "))}).catch(t=>{console.error("[Autopilot Options] Error requesting autopilot modes:",t),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(e){let a=e.pipe(Ke(this._destroyRef));return this.currentRequests.add(a),a.pipe(ji(()=>this.currentRequests.delete(a)))}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),r(4,"Signal K Service Discovery"),o(),n(5,"ul")(6,"li")(7,"b"),r(8,"API Version:"),o(),r(9),o(),n(10,"li")(11,"b"),r(12,"Plugin:"),o(),r(13),o()()(),n(14,"mat-form-field")(15,"mat-label"),r(16,"Target Autopilot"),o(),n(17,"mat-select",4),C("selectionChange",function(d){return t.onAutopilotInstanceIdChange(d)}),n(18,"mat-option",5),r(19,"No autopilot"),o(),M(20,Hn,3,5,"mat-option",6,G),o()(),n(22,"div",7)(23,"b"),r(24,"Supported modes:"),o(),r(25),o(),n(26,"mat-checkbox",8),r(27," Display True Heading "),o(),n(28,"mat-checkbox",9),r(29," Invert Rudder Angle Indicator "),o()()()),a&2&&(s(),p("formGroup",t.autopilotFormGroup),s(8),q(" ",t.apiVersion()),s(4),q(" ",t.pluginId()),s(7),w(t.apInstances()),s(5),q(" ",t.modes()," "))},dependencies:[Q,L,J,B,$,et,Ae,R,V,it,Pe,tt,ge,ie,Ge,ca],styles:[".autopilot-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}"]})}return i})();var Do=()=>["measuring","capacity"],Zn=()=>["marineCompass","baseplateCompass"],Xn=()=>["measuring"];function Kn(i,c){if(i&1&&b(0,"config-display-chart-options",5),i&2){let e=f();p("displayName",e.displayNameToControl)("datasetUUID",e.datasetUUIDToControl)("convertUnitTo",e.convertUnitToControl)("showAverageData",e.showAverageDataToControl)("trackAgainstAverage",e.trackAgainstAverageToControl)("datasetAverageArray",e.datasetAverageArrayToControl)("showDatasetMinimumValueLine",e.showDatasetMinimumValueLineToControl)("showDatasetMaximumValueLine",e.showDatasetMaximumValueLineToControl)("showDatasetAverageValueLine",e.showDatasetAverageValueLineToControl)("showDatasetAngleAverageValueLine",e.showDatasetAngleAverageValueLineToControl)("startScaleAtZero",e.startScaleAtZeroToControl)("showLabel",e.showLabelToControl)("showTimeScale",e.showTimeScaleToControl)("showYScale",e.showYScaleToControl)("yScaleSuggestedMin",e.yScaleSuggestedMinToControl)("yScaleSuggestedMax",e.yScaleSuggestedMaxToControl)("enableMinMaxScaleLimit",e.enableMinMaxScaleLimitToControl)("yScaleMin",e.yScaleMinToControl)("yScaleMax",e.yScaleMaxToControl)("numDecimal",e.numDecimalToControl)("verticalChart",e.verticalChartToControl)("inverseYAxis",e.inverseYAxisToControl)("color",e.colorToControl)}}function Jn(i,c){i&1&&b(0,"select-autopilot",6)}function $n(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"URL"),o(),b(3,"input",40),o())}function er(i,c){i&1&&(n(0,"mat-checkbox",17),r(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 tr(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Widget Label"),o(),b(3,"input",41),o())}function ir(i,c){i&1&&(n(0,"mat-form-field",42)(1,"mat-label"),r(2,"Scale Start"),o(),b(3,"input",43),o(),n(4,"mat-form-field",42)(5,"mat-label"),r(6,"Scale End"),o(),b(7,"input",44),o())}function ar(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Integer Places"),o(),b(3,"input",45),o())}function or(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Decimal Places"),o(),b(3,"input",46),o()),i&2){let e=f(2);Be(e.widgetConfig.showMiniChart!==void 0?"options-grid-span2":"")}}function nr(i,c){i&1&&(n(0,"mat-checkbox",19),r(1," Show Min recorded value "),o())}function rr(i,c){i&1&&(n(0,"mat-checkbox",20),r(1," Show Max recorded value "),o())}function lr(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Next Dashboard after start"),o(),b(3,"input",47),o()),i&2){let e=f(2);O("options-grid-span2",!e.widgetConfig.numInt)}}function sr(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=c.$implicit;p("value",e.measure),s(),q(" ",e.description," ")}}function cr(i,c){if(i&1&&(n(0,"mat-optgroup",49),M(1,sr,2,2,"mat-option",50,G),o()),i&2){let e=f().$implicit;p("label",e.group),s(),w(e.units)}}function dr(i,c){if(i&1&&A(0,cr,3,1,"mat-optgroup",49),i&2){let e=c.$implicit,a=f(3);g(!a.widgetConfig.convertUnitToGroup||a.widgetConfig.convertUnitToGroup===""||a.widgetConfig.convertUnitToGroup===e.group?0:-1)}}function mr(i,c){if(i&1&&(n(0,"mat-form-field",22)(1,"mat-label"),r(2,"Display Units"),o(),n(3,"mat-select",48),M(4,dr,1,1,null,null,G),o()()),i&2){let e=f(2);s(4),w(e.unitList.conversions)}}function pr(i,c){i&1&&(n(0,"mat-checkbox",23),r(1," Enable beeps on count down "),o())}function ur(i,c){if(i&1&&b(0,"display-datetime-options",24),i&2){let e=f(2);p("dateFormat",e.dateFormatToControl)("dateTimezone",e.dateTimezoneToControl)}}function Ar(i,c){i&1&&(n(0,"mat-checkbox",25),r(1," Close-hauled Lines "),o())}function gr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Vessel Close-hauled Angle"),o(),b(3,"input",51),o())}function hr(i,c){i&1&&(n(0,"mat-checkbox",26),r(1," Wind Sectors "),o())}function fr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Sector Duration"),o(),b(3,"input",52),o())}function br(i,c){i&1&&(n(0,"mat-checkbox",27),r(1," Apparent Wind Speed Value "),o())}function _r(i,c){i&1&&(n(0,"mat-checkbox",28),r(1," True Wind Speed Value "),o())}function vr(i,c){i&1&&(n(0,"mat-checkbox",29),r(1," Course Over Ground "),o())}function Cr(i,c){i&1&&(n(0,"mat-checkbox",30),r(1," True Wind Angle Indicator "),o())}function yr(i,c){i&1&&(n(0,"mat-checkbox",31),r(1," Next Waypoint "),o())}function xr(i,c){i&1&&(n(0,"mat-checkbox",32),r(1," Drift "),o())}function Mr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Minimum Value"),o(),b(3,"input",53),o())}function wr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Maximum Value"),o(),b(3,"input",54),o())}function Sr(i,c){i&1&&(n(0,"mat-checkbox",33),r(1," Ignore Zones configuration "),o())}function kr(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Highlights Width"),o(),b(3,"input",55),o())}function Tr(i,c){i&1&&(n(0,"mat-form-field",35)(1,"mat-label"),r(2,"Rotation Element"),o(),n(3,"mat-select",56)(4,"mat-option",57),r(5,"Dial (Marine Compass)"),o(),n(6,"mat-option",58),r(7,"Needle (Base plate compass)"),o()()(),n(8,"div",34)(9,"mat-checkbox",59),r(10," Show value box "),o()(),n(11,"div",34)(12,"mat-checkbox",60),r(13," Show cardinal degrees "),o()())}function Er(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Progress Bar Start Position"),o(),n(3,"mat-select",63)(4,"mat-option",64),r(5,"Left"),o(),n(6,"mat-option",65),r(7,"Middle"),o(),n(8,"mat-option",66),r(9,"Right"),o()()())}function Dr(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Progress Bar Start Angle"),o(),b(3,"input",67),o())}function Ir(i,c){if(i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Gauge Type"),o(),n(3,"mat-select",56)(4,"mat-option",61),r(5,"Measuring"),o(),n(6,"mat-option",62),r(7,"Capacity"),o()()(),A(8,Er,10,0,"mat-form-field",34),A(9,Dr,4,0,"mat-form-field",34)),i&2){let e=f(3);s(8),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"&&Ft(2,Xn).includes(e.formMaster.value.gauge.subType)?8:-1),s(),g(e.formMaster.value.gauge.subType==="capacity"?9:-1)}}function Gr(i,c){if(i&1&&A(0,Tr,14,0)(1,Ir,10,3),i&2){let e=f(2);g(Ft(1,Zn).indexOf(e.formMaster.value.gauge.subType)>-1?0:Ft(2,Do).indexOf(e.formMaster.value.gauge.subType)>-1?1:-1)}}function Pr(i,c){i&1&&(n(0,"div",34)(1,"mat-checkbox",68),r(2," Use needle indicator "),o()(),n(3,"div",34)(4,"mat-checkbox",69),r(5," Enable Ticks "),o()(),n(6,"mat-form-field",35)(7,"mat-label"),r(8,"Orientation"),o(),n(9,"mat-select",70)(10,"mat-option",71),r(11,"Vertical"),o(),n(12,"mat-option",72),r(13,"Horizontal"),o()()())}function Or(i,c){i&1&&(n(0,"mat-form-field",35)(1,"mat-label"),r(2,"Unit Label"),o(),n(3,"mat-select",73)(4,"mat-option",74),r(5,"Full Label"),o(),n(6,"mat-option",75),r(7,"First Letter Only"),o()()())}function Fr(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=c.$implicit;p("value",Ve(e.value)),s(),S(e.label)}}function Lr(i,c){if(i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Color"),o(),n(3,"mat-select",76),M(4,Fr,2,3,"mat-option",50,G),o()()),i&2){let e=f(2);s(4),w(e.colors)}}function Br(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Scale Span"),o(),n(3,"mat-select",77)(4,"mat-option",78),r(5,"1 Minute"),o(),n(6,"mat-option",79),r(7,"5 Minutes"),o(),n(8,"mat-option",80),r(9,"30 Minutes"),o()()())}function Vr(i,c){i&1&&(n(0,"mat-checkbox",36),r(1," Show Background Graph "),n(2,"i"),r(3,"(Too many graphs may affect performance)"),o()())}function Rr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale Start"),o(),b(3,"input",81),o())}function Nr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale End"),o(),b(3,"input",82),o())}function Wr(i,c){i&1&&(n(0,"mat-checkbox",37),r(1," Inverse Scale Axis "),o())}function Ur(i,c){i&1&&(n(0,"mat-checkbox",38),r(1," Vertical Data Graph "),o())}function Qr(i,c){i&1&&(n(0,"mat-checkbox",39),r(1," Disable background color "),o())}function qr(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=c.$implicit;p("value",Ve(e.value)),s(),S(e.label)}}function zr(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Background Color"),o(),n(3,"mat-select",83),M(4,qr,2,3,"mat-option",50,G),o()()),i&2){let e=f(2);s(4),w(e.colors)}}function jr(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Background Style"),o(),n(3,"mat-select",96)(4,"mat-option",97),r(5,"Dark Gray"),o(),n(6,"mat-option",98),r(7,"Satin Gray"),o(),n(8,"mat-option",99),r(9,"Light Gray"),o(),n(10,"mat-option",100),r(11,"White"),o(),n(12,"mat-option",101),r(13,"Black"),o(),n(14,"mat-option",102),r(15,"Beige"),o(),n(16,"mat-option",103),r(17,"Brown"),o(),n(18,"mat-option",104),r(19,"Red"),o(),n(20,"mat-option",105),r(21,"Green"),o(),n(22,"mat-option",106),r(23,"Blue"),o(),n(24,"mat-option",92),r(25,"Anthracite"),o(),n(26,"mat-option",107),r(27,"Mud"),o(),n(28,"mat-option",108),r(29,"Punched Sheet"),o(),n(30,"mat-option",109),r(31,"Carbon"),o(),n(32,"mat-option",110),r(33,"Stainless"),o(),n(34,"mat-option",111),r(35,"Brushed Metal"),o(),n(36,"mat-option",112),r(37,"Brushed Stainless"),o(),n(38,"mat-option",113),r(39,"Turned"),o()()())}function Yr(i,c){i&1&&(n(0,"div",34)(1,"mat-checkbox",114),r(2," Reverse Pitch Axis "),o()(),n(3,"div",34)(4,"mat-checkbox",115),r(5," Reverse Roll Axis "),o()(),n(6,"div",34)(7,"mat-checkbox",116),r(8," Show Frame "),o()())}function Hr(i,c){if(i&1&&(A(0,jr,40,0,"mat-form-field",34),A(1,Yr,9,0),n(2,"mat-form-field",34)(3,"mat-label"),r(4,"Frame Style"),o(),n(5,"mat-select",84)(6,"mat-option",85),r(7,"Black Metal"),o(),n(8,"mat-option",86),r(9,"Metal"),o(),n(10,"mat-option",87),r(11,"Shiny Metal"),o(),n(12,"mat-option",88),r(13,"Brass"),o(),n(14,"mat-option",89),r(15,"Steel"),o(),n(16,"mat-option",90),r(17,"Chrome"),o(),n(18,"mat-option",91),r(19,"Gold"),o(),n(20,"mat-option",92),r(21,"Anthracite"),o(),n(22,"mat-option",93),r(23,"Tilted Gray"),o(),n(24,"mat-option",94),r(25,"Tilted Black"),o(),n(26,"mat-option",95),r(27,"Glossy Metal"),o()()()),i&2){let e=f(2);g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)!=="horizon"?0:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="horizon"?1:-1)}}function Zr(i,c){if(i&1&&(n(0,"div",7)(1,"div",15),A(2,$n,4,0,"mat-form-field",16),A(3,er,2,0,"mat-checkbox",17),A(4,tr,4,0,"mat-form-field",16),A(5,ir,8,0),A(6,ar,4,0,"mat-form-field"),A(7,or,4,2,"mat-form-field",18),A(8,nr,2,0,"mat-checkbox",19),A(9,rr,2,0,"mat-checkbox",20),A(10,lr,4,2,"mat-form-field",21),A(11,mr,6,0,"mat-form-field",22),A(12,pr,2,0,"mat-checkbox",23),A(13,ur,1,2,"display-datetime-options",24),A(14,Ar,2,0,"mat-checkbox",25),A(15,gr,4,0,"mat-form-field"),A(16,hr,2,0,"mat-checkbox",26),A(17,fr,4,0,"mat-form-field"),A(18,br,2,0,"mat-checkbox",27),A(19,_r,2,0,"mat-checkbox",28),A(20,vr,2,0,"mat-checkbox",29),A(21,Cr,2,0,"mat-checkbox",30),A(22,yr,2,0,"mat-checkbox",31),A(23,xr,2,0,"mat-checkbox",32),A(24,Mr,4,0,"mat-form-field"),A(25,wr,4,0,"mat-form-field"),A(26,Sr,2,0,"mat-checkbox",33),A(27,kr,4,0,"mat-form-field",34),A(28,Gr,2,3),A(29,Pr,14,0),A(30,Or,8,0,"mat-form-field",35),A(31,Lr,6,0,"mat-form-field",16),A(32,Br,10,0,"mat-form-field",16),A(33,Vr,4,0,"mat-checkbox",36),A(34,Rr,4,0,"mat-form-field"),A(35,Nr,4,0,"mat-form-field"),A(36,Wr,2,0,"mat-checkbox",37),A(37,Ur,2,0,"mat-checkbox",38),A(38,Qr,2,0,"mat-checkbox",39),A(39,zr,6,0,"mat-form-field"),A(40,Hr,28,2),o()()),i&2){let e=f();s(2),g((e.widgetConfig==null?null:e.widgetConfig.widgetUrl)!==void 0?2:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.allowInput)!==void 0?3:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.displayName)!==void 0?4:-1),s(),g(e.formMaster.get("displayScale")?5:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.numInt)!==void 0?6:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.numDecimal)!==void 0?7:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.showMin)!==void 0?8:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.showMax)!==void 0?9:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.nextDashboard)!==void 0?10:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.convertUnitTo)!==void 0?11:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.playBeeps)!==void 0?12:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.dateFormat)!==void 0?13:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.laylineEnable)!==void 0?14:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.laylineEnable)!==void 0?15:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.windSectorEnable)!==void 0?16:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.windSectorEnable)!==void 0?17:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.awsEnable)!==void 0?18:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.twsEnable)!==void 0?19:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.courseOverGroundEnable)!==void 0?20:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.twaEnable)!==void 0?21:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.waypointEnable)!==void 0?22:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.driftEnable)!==void 0?23:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.minValue)!==void 0&&!e.formMaster.get("displayScale")?24:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.maxValue)!==void 0&&!e.formMaster.get("displayScale")?25:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.ignoreZones)!==void 0?26:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"&&Ft(39,Do).includes(e.formMaster.value.gauge.subType)||(e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngLinear"?27:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"?28:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngLinear"?29:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="simpleLinear"?30:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.color)!==void 0?31:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.timeScale)!==void 0?32:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.showMiniChart)!==void 0?33:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.yScaleMin)!==void 0?34:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.yScaleMax)!==void 0?35:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.inverseYAxis)!==void 0?36:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.verticalChart)!==void 0?37:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.noBgColor)!==void 0?38:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.bgColor)!==void 0?39:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="steel"||(e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="horizon"?40:-1)}}function Xr(i,c){if(i&1&&(b(0,"span",120),r(1,"\xA0Controls ")),i&2){let e=f(2);bt(e.formMaster.controls.multiChildCtrls.valid?"display: none":"display: block")}}function Kr(i,c){if(i&1){let e=P();n(0,"mat-tab",8)(1,"div",117)(2,"div"),Le(3,Xr,2,2,"ng-template",118),o(),n(4,"boolean-multicontrol-options",119),C("addPath",function(t){y(e);let l=f();return x(l.addPathGroup(t))})("updatePath",function(t){y(e);let l=f();return x(l.updatePath(t))})("delPath",function(t){y(e);let l=f();return x(l.deletePath(t))}),o()()()}if(i&2){let e=f();s(4),p("multiCtrlArray",e.multiChildCtrlsToControl)}}function Jr(i,c){if(i&1&&(n(0,"span",122),r(1," error "),o(),r(2," \xA0Paths ")),i&2){let e=f(2);bt(e.formMaster.controls.paths.valid||e.formMaster.controls.paths.disabled?"display: none":"display: block")}}function $r(i,c){if(i&1&&(n(0,"mat-tab",9)(1,"div",117)(2,"div"),Le(3,Jr,3,2,"ng-template",118),o(),b(4,"paths-options",121),o()()),i&2){let e=f();s(4),p("isArray",e.isPathArray)("enableTimeout",e.enableTimeoutToControl)("dataTimeout",e.dataTimeoutToControl)("filterSelfPaths",e.filterSelfPathsToControl)("addPathEvent",e.addPathEvent)("delPathEvent",e.delPathEvent)("updatePathEvent",e.updatePathEvent)}}function el(i,c){i&1&&(n(0,"p")(1,"mat-checkbox",125),r(2," Digital display "),o()())}function tl(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Dial Size"),o(),n(3,"mat-select",126)(4,"mat-option",127),r(5,"1/4"),o(),n(6,"mat-option",128),r(7,"1/2"),o(),n(8,"mat-option",129),r(9,"3/4"),o(),n(10,"mat-option",74),r(11,"Full"),o()()())}function il(i,c){if(i&1&&(n(0,"mat-tab",10)(1,"div",7)(2,"mat-form-field",16)(3,"mat-label"),r(4,"Gauge Type"),o(),n(5,"mat-select",70)(6,"mat-option",123),r(7,"Linear"),o(),n(8,"mat-option",124),r(9,"Radial"),o()()(),A(10,el,3,0,"p"),A(11,tl,12,0,"mat-form-field",16),o()()),i&2){let e=f();s(10),g(e.formMaster.value.gauge.subType==="linear"?10:-1),s(),g(e.formMaster.value.gauge.subType==="radial"?11:-1)}}function al(i,c){i&1&&(n(0,"p")(1,"mat-checkbox",132),r(2," Value to send on button push (checked = on, unchecked = off) "),o()())}function ol(i,c){if(i&1&&(n(0,"mat-tab",11)(1,"div",117)(2,"p")(3,"mat-checkbox",130),r(4," Enable Put Requests "),o()(),n(5,"p")(6,"mat-checkbox",131),r(7," Momentary mode (instead of switching between on/off) "),o()(),A(8,al,3,0,"p"),o()()),i&2){let e=f();s(8),g(e.formMaster.controls.putMomentary.value?8:-1)}}function nl(i,c){i&1&&b(0,"span",120)}function rl(i,c){if(i&1&&(A(0,nl,1,0,"span",120),r(1," Dataset ")),i&2){let e=f(2);g(e.formMaster.controls.datasetUUID.valid?-1:0)}}function ll(i,c){if(i&1&&(n(0,"mat-tab",12),Le(1,rl,2,1,"ng-template",118),b(2,"config-dataset-chart-options",133),o()),i&2){let e=f();s(2),p("datasetUUID",e.datasetUUIDToControl)("convertUnitTo",e.convertUnitToControl)}}var Io=(()=>{class i{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(Se);fb=m(kt);DatasetService=m(mi);units=m(It);app=m(yt);widgetConfig=m(ke);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((e,a)=>{let t=e.label||"",l=a.label||"";return t.localeCompare(l,void 0,{sensitivity:"base"})}),this.unitList=this.units.getConversionsForPath(""),this.formMaster=this.generateFormGroups(this.widgetConfig),this.colors=this.app.configurableThemeColors}isPlainObject(e){return Object.prototype.toString.call(e)==="[object Object]"}generateFormGroups(e,a){let t=this.fb.group({});return Object.keys(e).forEach(l=>{let d=e[l];if(d!==null&&(Array.isArray(d)||this.isPlainObject(d))){if(l===i.KEY_MULTI_CHILD_CTRLS){t.addControl(l,this.fb.array([]));let u=t.get(l);d.forEach(_=>{u.push(this.generateCtrlArray(_))})}else if(l===i.KEY_DISPLAY_SCALE)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_GAUGE)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_AUTOPILOT)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_PATHS){let u=d;if(this.widgetConfig.multiChildCtrls!==void 0){this.isPathArray=!0,t.addControl(l,this.fb.array([]));let _=t.get(l);Object.keys(u).forEach(T=>{let k=u[T];if(k){let E=this.generatePathArray(T,k);k.isPathConfigurable===!1&&E.disable(),_.push(E)}})}else{let _=this.fb.group({});Object.keys(u).forEach(T=>{let k=u[T];if(k){let E=this.generateFormGroups(k,T);k.isPathConfigurable===!1&&E.disable(),_.addControl(T,E)}}),t.addControl(l,_)}}a===i.KEY_PATHS&&t.addControl(l,this.generateFormGroups(d,l))}else if(a===i.KEY_CONVERT_UNIT_TO){let u=e[l];(u&&u.pathType=="number"||"datasetUUID"in this.widgetConfig)&&t.addControl(l,new ue(d))}else switch(l){case"path":t.addControl(l,new ue(d));break;case"datasetUUID":t.addControl(l,new ue(d,K.required));break;case"dataTimeout":t.addControl(l,new ue(d,K.required));break;default:t.addControl(l,new ue(d));break}}),t}generatePathArray(e,a){let t=new Qa({});return Object.keys(a).forEach(l=>{t.addControl(l,this.generatePathFields(l,a[l]))}),t}generatePathFields(e,a){let t=null;switch(e){case"path":t=new ue(a);break;case"source":t=new ue(a,K.required);break;case"sampleTime":t=new ue(a,K.required);break;default:t=new ue(a);break}return t}generateCtrlArray(e){let a=this.fb.group(e);return a.get("ctrlLabel").addValidators(K.required),a}addPathGroup(e){this.addPathEvent=e}updatePath(e){e.forEach(a=>{this.formMaster.get("paths").controls.forEach(l=>{l.get("pathID").value==a.pathID&&(l.controls.description.setValue(a.ctrlLabel),l.controls.pathType.setValue(a.isNumeric?"number":"boolean"),this.updatePathEvent=e)})})}deletePath(e){let a=this.formMaster.get("paths"),t=0;a.controls.forEach(d=>{d.get("pathID").value==e.pathID?a.removeAt(t):t++}),this.formMaster.get("multiChildCtrls").removeAt(e.ctrlIndex),this.delPathEvent=e.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||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"form",0),C("ngSubmit",function(){return t.submitConfig()}),n(1,"h6",1),r(2),o(),n(3,"mat-dialog-content",2)(4,"mat-tab-group",3)(5,"mat-tab",4),A(6,Kn,1,23,"config-display-chart-options",5)(7,Jn,1,0,"select-autopilot",6)(8,Zr,41,40,"div",7),o(),A(9,Kr,5,1,"mat-tab",8),A(10,$r,5,7,"mat-tab",9),A(11,il,12,2,"mat-tab",10),A(12,ol,9,1,"mat-tab",11),A(13,ll,3,2,"mat-tab",12),o()(),b(14,"mat-divider"),n(15,"mat-dialog-actions")(16,"button",13),r(17,"Cancel"),o(),n(18,"button",14),r(19," Save "),o()()()),a&2&&(p("formGroup",t.formMaster),s(2),S(t.titleDialog),s(4),g((t.widgetConfig==null?null:t.widgetConfig.datasetUUID)!==void 0?6:t.widgetConfig!=null&&t.widgetConfig.autopilot?7:8),s(3),g((t.widgetConfig==null?null:t.widgetConfig.multiChildCtrls)!==void 0?9:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.paths)!==void 0?10:-1),s(),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="steel"?11:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.putEnable)!==void 0&&(t.widgetConfig==null?null:t.widgetConfig.multiChildCtrls)===void 0?12:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.datasetUUID)!==void 0?13:-1),s(5),p("disabled",!t.formMaster.valid))},dependencies:[ee,wt,X,$e,L,J,B,St,ci,Q,$,et,za,pe,Te,Ee,Je,De,Ae,R,V,Ge,te,mo,lo,so,co,it,Pe,tt,ge,ie,Dt,di,Za,le,we,ko,fo,bo,ho,So,Eo],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 i})();var sl=["button"],cl=["*"];function dl(i,c){if(i&1&&(n(0,"div",2),b(1,"mat-pseudo-checkbox",6),o()),i&2){let e=f();s(),p("disabled",e.disabled)}}var Go=new oe("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:ml});function ml(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Po=new oe("MatButtonToggleGroup"),pl={provide:ri,useExisting:Ot(()=>Li),multi:!0},bi=class{source;value;constructor(c,e){this.source=c,this.value=e}},Li=(()=>{class i{_changeDetector=m(st);_dir=m(ai,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}_name=m(Lt).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(a=>a.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}valueChange=new me;get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new me;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let e=m(Go,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new io(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex()}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_keydown(e){if(this.multiple||this.disabled)return;let t=e.target.id,l=this._buttonToggles.toArray().findIndex(u=>u.buttonId===t),d=null;switch(e.keyCode){case 32:case 13:d=this._buttonToggles.get(l)||null;break;case 38:d=this._getNextButton(l,-1);break;case 37:d=this._getNextButton(l,this.dir==="ltr"?-1:1);break;case 40:d=this._getNextButton(l,1);break;case 39:d=this._getNextButton(l,this.dir==="ltr"?1:-1);break;default:return}d&&(e.preventDefault(),d._onButtonClick(),d.focus())}_emitChangeEvent(e){let a=new bi(e,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(e,a,t=!1,l=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(e):this._selectionModel.deselect(e):l=!0,l?Promise.resolve().then(()=>this._updateModelValue(e,t)):this._updateModelValue(e,t)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>e.value!=null&&a===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;e<this._buttonToggles.length;e++){let a=this._buttonToggles.get(e);if(!a.disabled){a.tabIndex=0;break}}}_getNextButton(e,a){let t=this._buttonToggles;for(let l=1;l<=t.length;l++){let d=(e+a*l+t.length)%t.length,u=t.get(d);if(u&&!u.disabled)return u}return null}_setSelectionByValue(e){if(this._rawValue=e,!this._buttonToggles)return;let a=this._buttonToggles.toArray();if(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(t=>this._selectValue(t,a))):(this._clearSelection(),this._selectValue(e,a)),!this.multiple&&a.every(t=>t.tabIndex===-1)){for(let t of a)if(!t.disabled){t.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e,a){for(let t of a)if(t.value===e){t.checked=!0,this._selectionModel.select(t),this.multiple||(t.tabIndex=0);break}}_updateModelValue(e,a){a&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,t,l){if(a&1&&fe(l,_i,5),a&2){let d;Y(d=H())&&(t._buttonToggles=d)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,t){a&1&&C("keydown",function(d){return t._keydown(d)}),a&2&&(W("role",t.multiple?"group":"radiogroup")("aria-disabled",t.disabled),O("mat-button-toggle-vertical",t.vertical)("mat-button-toggle-group-appearance-standard",t.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",U],value:"value",multiple:[2,"multiple","multiple",U],disabled:[2,"disabled","disabled",U],disabledInteractive:[2,"disabledInteractive","disabledInteractive",U],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",U],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",U]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[He([pl,{provide:Po,useExisting:i}])]})}return i})(),_i=(()=>{class i{_changeDetectorRef=m(st);_elementRef=m(he);_focusMonitor=m(ba);_idGenerator=m(Lt);_animationDisabled=Me();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new me;constructor(){m(ei).load(ni);let e=m(Po,{optional:!0}),a=m(new ra("tabindex"),{optional:!0})||"",t=m(Go,{optional:!0});this._tabIndex=D(parseInt(a)||0),this.buttonToggleGroup=e,this.appearance=t&&t.appearance?t.appearance:"standard",this.disabledInteractive=t?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._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 e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(t=>t.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new bi(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||i)};static \u0275cmp=v({type:i,selectors:[["mat-button-toggle"]],viewQuery:function(a,t){if(a&1&&je(sl,5),a&2){let l;Y(l=H())&&(t._buttonElement=l.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,t){a&1&&C("focus",function(){return t.focus()}),a&2&&(W("aria-label",null)("aria-labelledby",null)("id",t.id)("name",null),O("mat-button-toggle-standalone",!t.buttonToggleGroup)("mat-button-toggle-checked",t.checked)("mat-button-toggle-disabled",t.disabled)("mat-button-toggle-disabled-interactive",t.disabledInteractive)("mat-button-toggle-appearance-standard",t.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",U],appearance:"appearance",checked:[2,"checked","checked",U],disabled:[2,"disabled","disabled",U],disabledInteractive:[2,"disabledInteractive","disabledInteractive",U]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:cl,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,t){if(a&1){let l=P();xe(),n(0,"button",1,0),C("click",function(){return y(l),x(t._onButtonClick())}),A(2,dl,2,1,"div",2),n(3,"span",3),ae(4),o()(),b(5,"span",4)(6,"span",5)}if(a&2){let l=se(1);p("id",t.buttonId)("disabled",t.disabled&&!t.disabledInteractive||null),W("role",t.isSingleSelector()?"radio":"button")("tabindex",t.disabled&&!t.disabledInteractive?-1:t.tabIndex)("aria-pressed",t.isSingleSelector()?null:t.checked)("aria-checked",t.isSingleSelector()?t.checked:null)("name",t._getButtonName())("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-disabled",t.disabled&&t.disabledInteractive?"true":null),s(2),g(t.buttonToggleGroup&&(!t.buttonToggleGroup.multiple&&!t.buttonToggleGroup.hideSingleSelectionIndicator||t.buttonToggleGroup.multiple&&!t.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),s(4),p("matRippleTrigger",l)("matRippleDisabled",t.disableRipple||t.disabled)}},dependencies:[oi,Xa],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 i})(),Oo=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({imports:[ne,Mt,_i,ne]})}return i})();var Al=["Core","Gauge","Component","Racing"];var Fo=(()=>{class i{_plugins=m(pi);_widgetCategories=[...Al];_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 N(this,null,function*(){let e={},a=Array.from(new Set(this._widgetDefinition.flatMap(t=>[...t.requiredPlugins||[],...t.optionalPlugins||[]])));return yield Promise.all(a.map(t=>N(this,null,function*(){e[t]=yield this._plugins.isEnabled(t)}))),this._widgetDefinition.map(t=>{let l=t.requiredPlugins||[],d=t.optionalPlugins||[],u=l.map(E=>({name:E,enabled:e[E],required:!0})),_=d.map(E=>({name:E,enabled:e[E],required:!1})),T=[...u,..._],k=u.every(E=>E.enabled);return k&&d.length>0&&(k=_.some(E=>E.enabled)),_e(de({},t),{isDependencyValid:k,pluginsStatus:T})})})}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function gl(i,c){i&1&&(n(0,"span"),r(1,", "),o())}function hl(i,c){if(i&1&&(n(0,"span",8),r(1),n(2,"span",9),r(3),o()(),A(4,gl,2,0,"span")),i&2){let e=c.$implicit,a=c.$index,t=c.$count,l=f(2);p("ngClass",l.pluginDependencyValid()?e.required?"":e.enabled?"dependency-optional-present-met":"dependency-optional-missing-met":e.enabled?e.required?"dependency-required-ok":"dependency-optional-ok":e.required?"dependency-required-error":"dependency-optional-error"),W("title",e.required?"Required":"Optional"),s(),_t(" ",e.enabled?"\u2714":"\u2716"," ",e.name," "),s(2),S(e.required?"":"(optional)"),s(),g(a!==t-1?4:-1)}}function fl(i,c){if(i&1&&(n(0,"div",7)(1,"span"),r(2,"Plugins:"),o(),M(3,hl,5,6,null,null,G),o()),i&2){let e=f();bt(e.pluginsStatus().length>0?"margin-bottom: 8px;margin-top: 4px;":""),s(),Be(e.pluginDependencyValid()?"":"dependency-error"),s(2),w(e.pluginsStatus())}}var Lo=(()=>{class i{svgIcon=h.required();iconSize=h.required();name=h.required();description=h.required();pluginsStatus=h.required();pluginDependencyValid=h.required();onKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.target.click())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["widget-list-card"]],hostBindings:function(a,t){a&1&&C("keydown",function(d){return t.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,t){a&1&&(n(0,"div",0)(1,"div",1),b(2,"mat-icon",2),o(),n(3,"div",3)(4,"p",4),r(5),o(),A(6,fl,5,4,"div",5),n(7,"span",6),r(8),o()()()),a&2&&(W("aria-disabled",t.pluginDependencyValid()?null:"true"),s(2),Ye("width",t.iconSize(),"px")("height",t.iconSize(),"px"),p("svgIcon",t.svgIcon()),s(2),bt(t.pluginsStatus().length>0?"margin-bottom:0px; margin-top: 4px":""),s(),S(t.name()),s(),g(t.pluginsStatus().length>0?6:-1),s(2),S(t.description()))},dependencies:[Xt,la,Z,F],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 i})();var bl=(i,c)=>c.selector;function _l(i,c){if(i&1&&(n(0,"mat-button-toggle",1),r(1),o()),i&2){let e=c.$implicit;p("value",e),s(),q(" ",e," ")}}function vl(i,c){if(i&1){let e=P();n(0,"widget-list-card",3),C("click",function(){let t=y(e).$implicit,l=f();return x(l.onSelectWidget(t))}),o()}if(i&2){let e=c.$implicit;O("dependency-missing",!e.isDependencyValid),p("svgIcon",e.icon)("iconSize",48)("name",e.name)("description",e.description)("pluginDependencyValid",e.isDependencyValid)("pluginsStatus",e.pluginsStatus)}}var Bo=(()=>{class i{_dialogRef=m(Se);_widgets=m(Fo);_widgetsList=[];filteredWidgetsList=D([]);_widgetCategory=D("Core");isDependencyValid=D(!0);ngOnInit(){this.loadWidgets()}loadWidgets(){return N(this,null,function*(){this._widgetsList=yield this._widgets.getKipWidgetsWithStatus(),this.filteredWidgetsList.set(this._widgetsList.filter(e=>e.category===this._widgetCategory()))})}onCategoryChange(e){this.filteredWidgetsList.set(this._widgetsList.filter(a=>a.category===e.value)),this._widgetCategory.set(e.value)}onSelectWidget(e){if(!e.isDependencyValid)return;let{name:a,description:t,icon:l,minWidth:d,minHeight:u,defaultWidth:_,defaultHeight:T,category:k,requiredPlugins:E,optionalPlugins:at,selector:ot,componentClassName:Wt}=e,nt=_e(de({name:a,description:t,icon:l,minWidth:d,minHeight:u,defaultWidth:_,defaultHeight:T,category:k,requiredPlugins:E},at?{optionalPlugins:at}:{}),{selector:ot,componentClassName:Wt});this._dialogRef.close(nt)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div")(1,"mat-button-toggle-group",0),C("change",function(d){return t.onCategoryChange(d)}),M(2,_l,2,2,"mat-button-toggle",1,G),o(),n(4,"div"),M(5,vl,1,8,"widget-list-card",2,bl),o()()),a&2&&(s(),p("value",t._widgetCategory()),s(),w(t._widgets.categories),s(3),w(t.filteredWidgetsList()))},dependencies:[Oo,Li,_i,Lo],styles:[".list-filter[_ngcontent-%COMP%]{margin-bottom:20px}.dependency-missing[_ngcontent-%COMP%]{pointer-events:none;opacity:.8;background-color:var(--mat-sys-neutral10)}"]})}return i})();var Vo=(()=>{class i{dialogRef=m(Se);fileVersionToUpgrade=9;configVersionToUpgrade=10;currentConfigVersion=11;_storage=m(Aa);_settings=m(Kt);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(e=>N(this,null,function*(){for(let a of e){let t=yield this.transformConfig(a);if(t)if(t.scope==="global")try{this._storage.patchGlobal(t.name,t.scope,t.newConfiguration,"add"),this._storage.patchGlobal(t.name,t.scope,t.oldConfiguration,"replace",9),console.log(`[Upgrade] Configuration ${t.scope}/${t.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(t.scope,t.name,t.newConfiguration).then(()=>{this._storage.setConfig(t.scope,t.name,t.oldConfiguration,9),console.log(`[Upgrade] Configuration ${t.scope}/${t.name} has been upgraded to version ${this.currentConfigVersion} and saved. Old configuration has been patched to version 0.`)}).catch(l=>{console.error(`[Upgrade] Error saving configuration for ${a.name}:`,l)})}})).catch(e=>{console.error("Error fetching configuration data:",e)});else{let e={app:null,widget:null,layout:null,theme:null};e.app=this._settings.loadConfigFromLocalStorage("appConfig"),e.widget=this._settings.loadConfigFromLocalStorage("widgetConfig"),e.layout=this._settings.loadConfigFromLocalStorage("layoutConfig"),e.theme=this._settings.loadConfigFromLocalStorage("themeConfig");let a=this.transformApp(e.app),t=this.transformTheme(e.theme),l=e.layout?.rootSplits||[],d=e.layout?.splitSets||[],u=e.widget?.widgets||[],_=l.map((T,k)=>{let E=this.extractWidgetsFromSplitSets(d,u,T);return{id:T,name:`Dashboard ${k+1}`,configuration:E}});localStorage.setItem("appConfig",JSON.stringify(a)),localStorage.setItem("dashboardsConfig",JSON.stringify(_)),localStorage.setItem("themeConfig",JSON.stringify(t))}setTimeout(()=>{this._settings.reloadApp()},1500)}transformConfig(e){return N(this,null,function*(){let a=yield this._storage.getConfig(e.scope,e.name,this.fileVersionToUpgrade);if(a.app.configVersion!==this.configVersionToUpgrade)return console.error(`[Upgrade Component] Configuration ${e.scope}/${e.name} is not an upgradable version ${this.configVersionToUpgrade} config. Skipping upgrade. Please delete old configuration files.`),null;let t=this.transformApp(a.app),l=this.transformTheme(a.theme),d=a.layout?.rootSplits||[],u=a.layout?.splitSets||[],_=a.widget?.widgets||[],T=d.map((E,at)=>{let ot=this.extractWidgetsFromSplitSets(u,_,E);return{id:E,name:`Dashboard ${at+1}`,configuration:ot}}),k=Jt(a);return k.app.configVersion=0,{scope:e.scope,name:e.name,newConfiguration:{app:t,theme:l,dashboards:T},oldConfiguration:k}})}transformWidget(e,a){if(e.color==="white"&&(e.color="contrast"),e.textColor){switch(e.textColor){case"text":e.color="contrast";break;case"primary":e.color="blue";break;case"accent":e.color="yellow";break;case"warn":e.color="purple";break;case"nobar":a==="WidgetGaugeNgLinearComponent"&&(e.color="blue",e.gauge=e.gauge||{},e.gauge.useNeedle=!1);break;default:e.color=e.textColor}delete e.textColor}return e}transformApp(e){return e?(e.configVersion=11,e.nightModeBrightness=.27,e):null}transformTheme(e){return e?{themeName:""}:null}extractWidgetsFromSplitSets(e,a,t){let l=new Map(a.map(nt=>[nt.uuid,nt])),d=[],u=[],_=0,T=0,k=12,E=12,at=2,ot=2,Wt=nt=>{let Wi=e.find(rt=>rt.uuid===nt);if(!Wi){u.push(`Missing splitSet with UUID: ${nt}`);return}Wi.splitAreas.forEach(rt=>{if(rt.type==="widget"){let Fe=l.get(rt.uuid);if(Fe){if(Fe.type==="WidgetBlank"){console.warn(`Skipping widget of type WidgetBlank with UUID: ${Fe.uuid}`);return}if(T+ot>E){u.push(`No space left in the grid for widget with UUID: ${Fe.uuid}`);return}let Ui=i.widgetTypeToSelectorMap[Fe.type]||"widget-unknown",Ho=this.transformWidget(Fe.config,Fe.type);d.push({id:Fe.uuid,selector:Ui,input:{widgetProperties:{type:Ui,uuid:Fe.uuid,config:Ho}},x:_,y:T,w:at,h:ot}),_+=at,_>=k&&(_=0,T+=ot)}else u.push(`Missing widget with UUID: ${rt.uuid}`)}else rt.type==="splitSet"&&Wt(rt.uuid)})};return Wt(t),u.length>0&&console.warn("Transformation Issues:",u),d}startFresh(){if(this._storage.initConfig)this._storage.listConfigs(this.fileVersionToUpgrade).then(e=>N(this,null,function*(){for(let a of e){let t=yield this._storage.getConfig(a.scope,a.name,this.fileVersionToUpgrade);if(t.app.configVersion=0,a.scope==="global")try{setTimeout(()=>{this._storage.patchGlobal(a.name,a.scope,t,"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,t,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(e=>{console.error("Error fetching configuration data:",e)});else{let e={app:null,dashboards:null,theme:null};e.app=this._settings.loadConfigFromLocalStorage("appConfig"),e.theme=this._settings.loadConfigFromLocalStorage("themeConfig"),e.app.configVersion=11,e.app.nightModeBrightness=.27,e.theme.themeName="",localStorage.setItem("appConfig",JSON.stringify(e.app)),localStorage.setItem("themeConfig",JSON.stringify(e.theme)),localStorage.removeItem("widgetConfig"),localStorage.removeItem("layoutConfig")}this.dialogRef.close()}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"h2"),r(1,"All New Touch, Mouse, and Keyboard Navigation"),o(),n(2,"p",0)(3,"strong"),r(4,"Heads up:"),o(),r(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"),r(10,"Actions"),o(),n(11,"th"),r(12,"Touch"),o(),n(13,"th"),r(14,"Mouse"),o(),n(15,"th"),r(16,"Keyboard Shortcuts"),o()()(),n(17,"tbody")(18,"tr")(19,"td"),r(20,"Open Actions menu"),o(),n(21,"td"),r(22,"Swipe left"),o(),n(23,"td"),r(24,"Click, drag left, and release"),o(),n(25,"td")(26,"kbd"),r(27,"Shift"),o(),r(28," + "),n(29,"kbd"),r(30,"Ctrl"),o(),r(31," + "),n(32,"kbd",2),r(33,"\u2190"),o(),r(34," (Left Arrow)"),o()(),n(35,"tr")(36,"td"),r(37,"Open Notification menu"),o(),n(38,"td"),r(39,"Swipe right"),o(),n(40,"td"),r(41,"Click, drag right, and release"),o(),n(42,"td")(43,"kbd"),r(44,"Shift"),o(),r(45," + "),n(46,"kbd"),r(47,"Ctrl"),o(),r(48," + "),n(49,"kbd",2),r(50,"\u2192"),o(),r(51," (Right Arrow)"),o()(),n(52,"tr")(53,"td"),r(54,"Cycle through dashboards"),o(),n(55,"td"),r(56,"Swipe up/down"),o(),n(57,"td"),r(58,"Click, drag up/down, and release"),o(),n(59,"td")(60,"kbd"),r(61,"Shift"),o(),r(62," + "),n(63,"kbd"),r(64,"Ctrl"),o(),r(65," + "),n(66,"kbd",2),r(67,"\u2191"),o(),r(68,"/"),n(69,"kbd",2),r(70,"\u2193"),o(),r(71," (Up/Down Arrow)"),o()(),n(72,"tr")(73,"td"),r(74,"Toggle Fullscreen"),o(),n(75,"td"),r(76,"N/A"),o(),n(77,"td"),r(78,"N/A"),o(),n(79,"td")(80,"kbd"),r(81,"Shift"),o(),r(82," + "),n(83,"kbd"),r(84,"Ctrl"),o(),r(85," + "),n(86,"kbd"),r(87,"F"),o()()(),n(88,"tr")(89,"td"),r(90,"Toggle Night mode"),o(),n(91,"td"),r(92,"N/A"),o(),n(93,"td"),r(94,"N/A"),o(),n(95,"td")(96,"kbd"),r(97,"Shift"),o(),r(98," + "),n(99,"kbd"),r(100,"Ctrl"),o(),r(101," + "),n(102,"kbd"),r(103,"N"),o()()(),n(104,"tr")(105,"td"),r(106,"Toggle dashboard edit mode"),o(),n(107,"td"),r(108,"N/A"),o(),n(109,"td"),r(110,"N/A"),o(),n(111,"td")(112,"kbd"),r(113,"Shift"),o(),r(114," + "),n(115,"kbd"),r(116,"Ctrl"),o(),r(117," + "),n(118,"kbd"),r(119,"E"),o()()()()(),n(120,"i"),r(121,"Note that the words Touch and Tap are synonymous with mouse click."),o(),b(122,"br")(123,"br"),n(124,"h2"),r(125,"Migration Limitations"),o(),n(126,"p")(127,"span",0),r(128,"Important:"),o(),r(129," The new widget layout engine is "),n(130,"strong"),r(131,"completely different"),o(),r(132," from the previous version. When you upgrade, your configuration will be migrated, but "),n(133,"strong"),r(134,"the way dashboards and widgets are arranged will change significantly"),o(),r(135,`.
1
+ import{a as Pe,b as it,c as oo,d as no,e as ro,f as di,g as mi,h as lo,i as so,j as co,k as mo}from"./chunk-TDHAZ7DS.js";import{a as Xa,b as Ka,c as Ja,d as Dt,e as $a,f as ie,g as eo,h as to,k as io,l as ao,m as Bt,n as ge,o as tt,q as It}from"./chunk-BZF6OYAF.js";import{d as ga}from"./chunk-PTADMSJZ.js";import{a as yt}from"./chunk-PPS4X2U3.js";import{a as Za,b as ci}from"./chunk-GJ33QBJ6.js";import{$ as kt,A as Je,B as pe,C as ni,D as X,F as K,I as L,J,K as Ua,L as Qa,M as ri,N as qa,O as ue,P as li,Q as wt,R as $e,S as Ie,T as $,U as za,V as ja,W as et,X as si,Y as St,Z as B,a as ct,aa as ee,ba as Q,da as V,e as ma,ea as Tt,f as ua,fa as Ya,ga as Et,h as Aa,i as Xt,ia as Ha,j as ki,k as Kt,ka as R,la as Ae,oa as te,p as xa,pa as Ge,q as Va,r as Ra,s as Na,t as Se,u as ke,w as Wa,x as Te,y as Ee,z as De}from"./chunk-HKUJILH7.js";import{$b as O,$c as ca,$d as Re,A as ut,Aa as Qe,Ab as w,Ac as vt,Ad as fa,Ae as Da,Bb as p,Be as Ia,Ca as qe,Cb as n,Db as o,Dc as ra,Dd as ba,De as Ga,Eb as b,Ec as z,Ee as Di,F as Qi,Fa as D,Fb as wi,Fc as h,Fd as $t,Fe as Pa,Gb as Si,Hd as _a,I as xi,Ib as ea,Id as ei,Ie as Oa,Ja as lt,Jb as ta,Jc as st,Jd as va,Je as Fa,K as We,Ka as ht,Kb as ia,Kd as Ca,Ke as La,L as Ue,Lb as P,Lc as U,Ma as he,Mb as aa,Nb as C,O as qi,Oe as Ba,P as Ut,Pb as f,Pd as Lt,Qb as xe,Qd as Ct,R as At,Rb as ae,Rd as ya,Sb as fe,Tb as je,Td as Ei,U as zi,Ub as Y,Ud as ti,Vb as H,W as ji,Wa as s,Wc as la,Wd as ii,Xa as Zi,Xc as sa,Xd as ne,Yd as F,Za as Mi,Zb as se,Zd as Z,_b as Ye,_c as Ht,a as de,ab as Xi,ac as bt,ae as Me,b as _e,bc as Be,be as xt,cc as r,dc as S,dd as Zt,de as Ma,ea as gt,eb as v,ec as q,ee as wa,f as N,fa as Qt,fb as ye,fc as _t,fe as ai,g as mt,gb as j,gd as da,ge as oi,ha as Yi,hb as Ki,hc as zt,he as re,ib as ze,ic as jt,ie as Mt,j as vi,jc as Yt,je as we,kb as Le,la as Ot,lb as Ji,ld as Ke,le as Sa,m as pt,ma as ve,mb as me,md as pa,me as le,na as Ce,nb as ft,nc as Ve,o as Pt,ob as $i,oe as ka,pa as oe,pc as He,qc as Ft,ra as m,se as Ta,t as Ci,tc as Ze,te as Ea,ua as Hi,ub as W,uc as Xe,vb as A,wa as y,wb as g,wd as Ti,xa as x,xb as G,xd as ha,y as yi,yb as qt,yc as oa,yd as Jt,zb as M,zc as na}from"./chunk-FW2LAMAA.js";var $l=(()=>{class i{_settings=m(Xt);_router=m(ga);dashboards=D([],{equal:ki});activeDashboard=D(0);_widgetAction=new Pt(null);widgetAction$=this._widgetAction.asObservable();_isDashboardStatic=new Pt(!0);isDashboardStatic$=this._isDashboardStatic.asObservable();isDashboardStatic=pa(this.isDashboardStatic$);blankDashboard=[{id:null,name:"Dashboard 1",icon:"dashboard-dashboard",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 e=this._settings.getDashboardConfig();if(!e||e.length===0){console.warn("[Dashboard Service] No dashboards found in settings, creating blank dashboard");let a=this.blankDashboard.map(t=>_e(de({},t),{id:ct.create()}));this.dashboards.set([...a])}else this.dashboards.set(this._settings.getDashboardConfig());vt(()=>{this._settings.saveDashboards(this.dashboards())})}toggleStaticDashboard(){this._isDashboardStatic.next(!this._isDashboardStatic.value)}add(e,a,t){this.dashboards.update(l=>[...l,{id:ct.create(),name:e,icon:t,configuration:a}])}update(e,a,t){this.dashboards.update(l=>l.map((d,u)=>u===e?_e(de({},d),{name:a,icon:t}):d))}delete(e){this.dashboards.update(a=>a.filter((t,l)=>l!==e)),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(e,a,t){if(e<0||e>=this.dashboards().length){console.error(`[Dashboard Service] Invalid itemIndex: ${e}`);return}let l=this.dashboards()[e],d=Kt(l);d.id=ct.create(),d.name=a,d.icon=t||"dashboard-dashboard",Array.isArray(d.configuration)?d.configuration.forEach(u=>{u&&u.input?.widgetProperties?(u.id=ct.create(),u.input.widgetProperties.uuid=u.id):console.error("Dashboard Service] Widget configuration is missing required properties:",u)}):(console.error("Dashboard Service] Dashboard configuration is not an array:",d.configuration),d.configuration=[]),this.dashboards.update(u=>[...u,d])}updateConfiguration(e,a){this.dashboards.update(t=>t.map((l,d)=>d===e?ki(l.configuration,a)?l:_e(de({},l),{configuration:a}):l))}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(e){e>=0&&e<this.dashboards().length?this.activeDashboard.set(e):console.error(`[Dashboard Service] Invalid dashboard ID: ${e}`)}navigateToActive(){this._router.navigate(["/dashboard",this.activeDashboard()])}navigateTo(e){e>=0&&e<this.dashboards().length?this._router.navigate(["/dashboard",e]):console.error(`[Dashboard Service] Invalid dashboard ID: ${e}`)}navigateToNextDashboard(){let e=null;this.activeDashboard()-1<0?e=this.dashboards().length-1:e=this.activeDashboard()-1,this._router.navigate(["/dashboard",e])}navigateToPreviousDashboard(){let e=null;this.activeDashboard()+1>=this.dashboards().length?e=0:e=this.activeDashboard()+1,this._router.navigate(["/dashboard",e])}deleteWidget(e){this._widgetAction.next({id:e,operation:"delete"})}duplicateWidget(e){this._widgetAction.next({id:e,operation:"duplicate"})}setStaticDashboard(e){this._isDashboardStatic.next(e)}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Zo=["*"];var Xo=new oe("MAT_CARD_CONFIG"),ds=(()=>{class i{appearance;constructor(){let e=m(Xo,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,t){a&2&&O("mat-mdc-card-outlined",t.appearance==="outlined")("mdc-card--outlined",t.appearance==="outlined")("mat-mdc-card-filled",t.appearance==="filled")("mdc-card--filled",t.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:Zo,decls:1,vars:0,template:function(a,t){a&1&&(xe(),ae(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}
2
+ `],encapsulation:2,changeDetection:0})}return i})();var pi=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({imports:[ne,ne]})}return i})();function Ko(i,c){if(i&1&&(n(0,"p"),r(1),o()),i&2){let e=f();Be(`large-icon-tile-label${e.compact()?" compact":""}`),s(),S(e.label())}}function Jo(i,c){i&1&&b(0,"div",3)}var bs=(()=>{class i{svgIcon=h.required();iconSize=h.required();label=h.required();iconOnly=h(!1);compact=h(!1);active=h(!1);static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["tile-large-icon"]],inputs:{svgIcon:[1,"svgIcon"],iconSize:[1,"iconSize"],label:[1,"label"],iconOnly:[1,"iconOnly"],compact:[1,"compact"],active:[1,"active"]},decls:4,vars:11,consts:[["matRipple",""],["aria-hidden","false",3,"svgIcon"],[3,"class"],[1,"active-accent-bar"]],template:function(a,t){a&1&&(n(0,"div",0),b(1,"mat-icon",1),A(2,Ko,2,3,"p",2),A(3,Jo,1,0,"div",3),o()),a&2&&(Be(`${t.compact()?"icon-container-compact":"icon-container"}`),O("active-container-accent",t.active()),s(),Ye("width",t.iconSize(),"px")("height",t.iconSize(),"px"),p("svgIcon",t.svgIcon()),s(),g(t.iconOnly()?-1:2),s(),g(t.active()?3:-1))},dependencies:[Z,F,pi,Mt,ai],styles:["[_nghost-%COMP%]{display:block;width:100%}.icon-container[_ngcontent-%COMP%]{display:block;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:10px 5px 15px;border-radius:7px;background-color:var(--mat-sys-surface-container);border-color:.2s ease;border:2px solid transparent}.icon-container[_ngcontent-%COMP%]:hover{border:2px solid var(--mat-sys-outline-variant);cursor:pointer}.icon-container[_ngcontent-%COMP%]:focus-visible{background-color:var(--mat-sys-surface-container-high);outline:-webkit-focus-ring-color auto 0px}.icon-container-compact[_ngcontent-%COMP%]{display:block;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;padding:5px;border-radius:7px;border:1px solid var(--mat-sys-outline-variant)}.icon-container-compact[_ngcontent-%COMP%]:hover{background-color:var(--mat-sys-inverse-on-surface);border:1px solid var(--mat-sys-primary);cursor:pointer}.icon-container-compact[_ngcontent-%COMP%]:focus-visible{background-color:var(--mat-sys-surface-bright);outline:-webkit-focus-ring-color auto 0px}.large-icon-tile-label[_ngcontent-%COMP%]{color:var(--mat-sys-outline);font-size:1.1em;margin:0}.compact[_ngcontent-%COMP%]{font-size:12px;margin:0}.active-container-accent[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-tertiary);pointer-events:none;background-color:var(--mat-sys-on-tertiary)}.active-container-accent[_ngcontent-%COMP%] .large-icon-tile-label[_ngcontent-%COMP%]{font-weight:700}.active-accent-bar[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:0;width:7px;background:var(--mat-sys-tertiary);box-shadow:0 0 10px 0 var(--mat-sys-tertiary)}"]})}return i})();var ys=(()=>{class i{isChromeOnMac;static DEBUG=!1;static _instanceCounter=0;_instanceId;swipeMinDistance=h(30);swipeMaxDuration=h(600);longPressMs=h(500);doubleTapInterval=h(300);tapSlop=h(20);pressMoveSlop=h(10);_swipeMinDistance=30;_swipeMaxDuration=600;_longPressMs=500;_doubleTapInterval=300;_tapSlop=20;_pressMoveSlop=10;swipeleft=z();swiperight=z();swipeup=z();swipedown=z();press=z();doubletap=z();zone=m(ft);destroyRef=m(qe);host=m(he);pointerId=null;startX=0;startY=0;startTime=0;tracking=!1;longPressTimer=null;pressFired=!1;cancelLongpressHandlers=[];lastTapTime=0;lastTapX=0;lastTapY=0;currentPointerType=null;lastTapUpTime=0;lastTapUpX=0;lastTapUpY=0;potentialDoubleTap=!1;constructor(){this.isChromeOnMac=(()=>{let e=navigator.userAgent,a=navigator.platform;return/Chrome\//.test(e)&&/Mac/.test(a)&&!/Edg\//.test(e)&&!/OPR\//.test(e)})(),this._instanceId=++i._instanceCounter,this.debug("GestureDirective instance created",{instanceId:this._instanceId}),this.zone.runOutsideAngular(()=>{let e=this.host.nativeElement;e.style.touchAction||(e.style.touchAction="none","webkitTouchCallout"in e.style&&(e.style.webkitTouchCallout="none")),e.addEventListener("pointerdown",this.onPointerDown,{passive:!1}),e.addEventListener("pointermove",this.onPointerMove,{passive:!0}),e.addEventListener("pointerup",this.onPointerUp,{passive:!0}),e.addEventListener("pointercancel",this.onPointerCancel,{passive:!0}),e.addEventListener("lostpointercapture",this.onPointerCancel,{passive:!0}),e.addEventListener("dblclick",this.onNativeDblClick,{passive:!0}),this.destroyRef.onDestroy(()=>{e.removeEventListener("pointerdown",this.onPointerDown),e.removeEventListener("pointermove",this.onPointerMove),e.removeEventListener("pointerup",this.onPointerUp),e.removeEventListener("pointercancel",this.onPointerCancel),e.removeEventListener("lostpointercapture",this.onPointerCancel),e.removeEventListener("dblclick",this.onNativeDblClick),this.longPressTimer&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.removeLongpressCancelListeners();try{this.pointerId!==null&&typeof e.releasePointerCapture=="function"&&e.releasePointerCapture(this.pointerId)}catch{}this.pointerId=null,this.tracking=!1})})}onNativeDblClick=e=>{let a=new CustomEvent("doubletap",{detail:{x:e.clientX,y:e.clientY,dt:0}});this.zone.run(()=>this.doubletap.emit(a)),this.lastTapTime=0};onPointerDown=e=>{if(this.debug("pointerdown",{x:e.clientX,y:e.clientY,pointerId:e.pointerId,pointerType:e.pointerType,sourceElement:e.target instanceof Element?e.target.outerHTML:String(e.target)}),this.pointerId!==null)return;switch(this.pointerId=e.pointerId,this.tracking=!0,this.pressFired=!1,this.currentPointerType=e.pointerType||null,e.pointerType){case"touch":this._swipeMinDistance=this.swipeMinDistance(),this._swipeMaxDuration=this.swipeMaxDuration(),this._longPressMs=this.longPressMs(),this._doubleTapInterval=this.doubleTapInterval(),this._tapSlop=this.tapSlop(),this._pressMoveSlop=this.pressMoveSlop();break;case"pen":this._swipeMinDistance=20,this._swipeMaxDuration=500,this._longPressMs=400,this._doubleTapInterval=250,this._tapSlop=10,this._pressMoveSlop=8;break;case"mouse":default:this._swipeMinDistance=15,this._swipeMaxDuration=400,this._longPressMs=350,this._doubleTapInterval=250,this._tapSlop=8,this._pressMoveSlop=6;break}let t=performance.now()-this.lastTapUpTime,l=Math.hypot(e.clientX-this.lastTapUpX,e.clientY-this.lastTapUpY);this.potentialDoubleTap=t<=this._doubleTapInterval&&l<=this._tapSlop,this.startX=e.clientX,this.startY=e.clientY,this.startTime=performance.now();try{e.target.setPointerCapture(e.pointerId)}catch{}this.longPressTimer&&(this.debug("longpress timer cleared on pointerdown"),window.clearTimeout(this.longPressTimer)),this.potentialDoubleTap||(this.addLongpressCancelListeners(),this.debug("longpress timer scheduled"),this.longPressTimer=window.setTimeout(()=>{if(this.debug("longpress timer fired",{tracking:this.tracking}),!this.tracking){this.debug("longpress cancelled: not tracking");return}let d=e.clientX-this.startX,u=e.clientY-this.startY;if(Math.abs(d)<=this._pressMoveSlop&&Math.abs(u)<=this._pressMoveSlop){this.debug("longpress recognized",{x:this.startX,y:this.startY}),this.pressFired=!0;let _=new CustomEvent("press",{detail:{x:this.startX,y:this.startY,center:{x:this.startX,y:this.startY}}});this.zone.run(()=>this.press.emit(_))}this.removeLongpressCancelListeners()},this._longPressMs))};onPointerMove=e=>{!this.tracking||e.pointerId!==this.pointerId||this.pressFired||this.longPressTimer&&(this.debug("longpress cancelled by pointermove"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null,this.removeLongpressCancelListeners())};onPointerUp=e=>{if(this.debug("pointerup",{x:e.clientX,y:e.clientY,pointerId:e.pointerId}),!this.tracking||e.pointerId!==this.pointerId)return;let a=performance.now(),t=a-this.startTime,l=e.clientX-this.startX,d=e.clientY-this.startY,u=Math.abs(l),_=Math.abs(d);if(this.longPressTimer&&(this.debug("longpress cancelled by pointerup"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.pressFired){this.debug("pointerup after longpress: not resetting gesture state");return}if(t<=this._swipeMaxDuration&&(u>=this._swipeMinDistance&&u>=_?(this.debug("swipe detected",{direction:l>0?"right":"left",dx:l,dy:d,duration:t}),this.zone.run(()=>{l>0?this.swiperight.emit(new CustomEvent("swiperight",{detail:{dx:l,dy:d,duration:t}})):this.swipeleft.emit(new CustomEvent("swipeleft",{detail:{dx:l,dy:d,duration:t}}))})):_>=this._swipeMinDistance&&_>u&&(this.debug("swipe detected",{direction:d>0?"down":"up",dx:l,dy:d,duration:t}),this.zone.run(()=>{d>0?this.swipedown.emit(new CustomEvent("swipedown",{detail:{dx:l,dy:d,duration:t}})):this.swipeup.emit(new CustomEvent("swipeup",{detail:{dx:l,dy:d,duration:t}}))}))),this.currentPointerType!=="mouse"&&u<=this._tapSlop&&_<=this._tapSlop&&t<this._longPressMs){let T=a,k=T-this.lastTapTime,E=Math.hypot(e.clientX-this.lastTapX,e.clientY-this.lastTapY);k<=this._doubleTapInterval&&E<=this._tapSlop?(this.zone.run(()=>this.doubletap.emit(new CustomEvent("doubletap",{detail:{x:e.clientX,y:e.clientY,dt:k}}))),this.lastTapTime=0,this.potentialDoubleTap=!1):(this.lastTapTime=T,this.lastTapX=e.clientX,this.lastTapY=e.clientY)}!this.pressFired&&u<=this._tapSlop&&_<=this._tapSlop&&t<this._longPressMs?(this.lastTapUpTime=a,this.lastTapUpX=e.clientX,this.lastTapUpY=e.clientY):this.potentialDoubleTap=!1,this.reset()};onPointerCancel=e=>{let a=this.host.nativeElement;this.debug("pointercancel",{pointerId:e.pointerId,pointerType:e.pointerType,event:e,documentActiveElement:document.activeElement,elementIsConnected:a.isConnected,elementVisibility:a.offsetParent!==null,hasPointerCapture:typeof a.hasPointerCapture=="function"?a.hasPointerCapture(e.pointerId):void 0,documentHidden:document.hidden});let t=e;if(this.isChromeOnMac&&e.pointerType==="mouse"&&e.pointerId===this.pointerId&&typeof t.buttons=="number"&&t.buttons!==0){this.debug("pointercancel ignored on Chrome/macOS: mouse button still pressed");return}e.pointerId===this.pointerId&&(this.longPressTimer&&(this.debug("longpress cancelled by pointercancel"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null,this.removeLongpressCancelListeners()),this.reset())};addLongpressCancelListeners(){this.debug("addLongpressCancelListeners");let e=d=>{this.debug("longpress cancelled by event",d?.type),this.longPressTimer&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.removeLongpressCancelListeners()},a=this.host.nativeElement,t=document,l={capture:!0};this.cancelLongpressHandlers=[{type:"pointermove",handler:e,opts:l,targets:["el","doc"]},{type:"pointerleave",handler:e,opts:l,targets:["el","doc"]},{type:"pointerout",handler:e,opts:l,targets:["el","doc"]},{type:"lostpointercapture",handler:e,opts:l,targets:["el","doc"]},{type:"blur",handler:e,opts:l,targets:["window"]}];for(let d of this.cancelLongpressHandlers){let{type:u,handler:_,opts:T,targets:k}=d;k&&k.includes("el")&&a.addEventListener(u,_,T),k&&k.includes("doc")&&t.addEventListener(u,_,T),k&&k.includes("window")&&window.addEventListener(u,_,T)}}removeLongpressCancelListeners(){this.debug("removeLongpressCancelListeners");let e=this.host.nativeElement,a=document;for(let t of this.cancelLongpressHandlers){let{type:l,handler:d,opts:u,targets:_}=t;_&&_.includes("el")&&e.removeEventListener(l,d,u),_&&_.includes("doc")&&a.removeEventListener(l,d,u),_&&_.includes("window")&&window.removeEventListener(l,d,u)}this.cancelLongpressHandlers=[]}reset(){this.debug("reset gesture state");try{let e=this.host.nativeElement;this.pointerId!==null&&typeof e.releasePointerCapture=="function"&&e.releasePointerCapture(this.pointerId)}catch{}this.pointerId=null,this.tracking=!1,this.pressFired=!1,this.currentPointerType=null,this.removeLongpressCancelListeners()}debug(...e){this.constructor.DEBUG&&console.debug(`[GestureDirective][#${this._instanceId}]`,...e)}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["","kipGestures",""]],inputs:{swipeMinDistance:[1,"swipeMinDistance"],swipeMaxDuration:[1,"swipeMaxDuration"],longPressMs:[1,"longPressMs"],doubleTapInterval:[1,"doubleTapInterval"],tapSlop:[1,"tapSlop"],pressMoveSlop:[1,"pressMoveSlop"]},outputs:{swipeleft:"swipeleft",swiperight:"swiperight",swipeup:"swipeup",swipedown:"swipedown",press:"press",doubletap:"doubletap"}})}return i})();function $o(i,c){i&1&&ia(0)}var po=(()=>{class i{data=m(ke);static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"h6",1),r(2),o(),n(3,"button",2)(4,"mat-icon"),r(5,"close"),o()()(),n(6,"mat-dialog-content",3),Le(7,$o,1,0,"ng-container",4),o()),a&2&&(s(2),S(t.data.title),s(),p("mat-dialog-close",!1),s(4),p("ngComponentOutlet",t.data.componentType))},dependencies:[F,pe,Te,Ee,De,le,re,sa],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 i})();function en(i,c){if(i&1&&(n(0,"button",4),r(1),o()),i&2){let e=f();p("mat-dialog-close",!0),s(),S(e.data.confirmBtnText)}}var uo=(()=>{class i{data=m(ke);static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"h5",1),r(2),o(),n(3,"button",2)(4,"mat-icon"),r(5,"close"),o()()(),n(6,"mat-dialog-content"),r(7),o(),n(8,"mat-dialog-actions",3)(9,"button",4),r(10),o(),A(11,en,2,2,"button",4),o()),a&2&&(s(2),S(t.data.title),s(),p("mat-dialog-close",!1),s(4),q(" ",t.data.message,`
3
+ `),s(2),p("mat-dialog-close",!1),s(),S(t.data.cancelBtnText),s(),g(t.data.confirmBtnText?11:-1))},dependencies:[F,pe,Te,Ee,Je,De,le,we,re],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 i})();function tn(i,c){if(i&1&&(n(0,"button",9),r(1),o()),i&2){let e=f(),a=se(1);p("disabled",!a.valid),s(),S(e.data.confirmBtnText)}}var Ao=(()=>{class i{dialogRef=m(Se);data=m(ke);saveName(){this.dialogRef.close(this.data)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){if(a&1){let l=P();n(0,"form",1,0),C("ngSubmit",function(){return y(l),x(t.saveName())}),n(2,"div",2)(3,"h5",3),r(4),o(),n(5,"button",4)(6,"mat-icon"),r(7,"close"),o()()(),n(8,"mat-dialog-content")(9,"mat-form-field",5)(10,"mat-label"),r(11,"Name"),o(),n(12,"input",6),Yt("ngModelChange",function(u){return y(l),jt(t.data.name,u)||(t.data.name=u),x(u)}),o(),n(13,"mat-error"),r(14," A name is required "),o()()(),n(15,"mat-dialog-actions",7)(16,"button",8),r(17),o(),A(18,tn,2,2,"button",9),o()()}a&2&&(s(4),S(t.data.title),s(),p("mat-dialog-close",!1),s(7),zt("ngModel",t.data.name),s(4),p("mat-dialog-close",!1),s(),S(t.data.cancelBtnText),s(),g(t.data.confirmBtnText?18:-1))},dependencies:[pe,Te,Ee,Je,De,Z,F,Ae,R,V,Tt,Ge,te,le,we,re,ee,wt,X,L,J,B,li,ri],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 i})();function an(i,c){if(i&1&&(n(0,"mat-option",12),r(1),o()),i&2){let e=c.$implicit;p("value",Ve(e.value)),s(),S(e.label)}}function on(i,c){if(i&1){let e=P();n(0,"button",21),C("click",function(){y(e);let t=f();return x(t.moveCtrlUp())}),n(1,"mat-icon"),r(2,"arrow_drop_up"),o()()}}function nn(i,c){if(i&1){let e=P();n(0,"button",22),C("click",function(){y(e);let t=f();return x(t.moveCtrlDown())}),n(1,"mat-icon"),r(2,"arrow_drop_down"),o()()}}var go=(()=>{class i{app=m(yt);ctrlFormGroup=h.required();controlIndex=h(void 0);arrayLength=h(void 0);deleteCtrl=z();moveUp=z();moveDown=z();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors}deleteControl(){let e={ctrlIndex:this.controlIndex(),pathID:this.ctrlFormGroup().get("pathID").value};this.deleteCtrl.emit(e)}moveCtrlUp(){this.moveUp.emit(this.controlIndex())}moveCtrlDown(){this.moveDown.emit(this.controlIndex())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),r(5,"Label"),o(),b(6,"input",4),o()(),n(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),r(10,"Type"),o(),n(11,"mat-select",7)(12,"mat-option",8),r(13,"Toggle"),o(),n(14,"mat-option",9),r(15,"Push"),o(),n(16,"mat-option",10),r(17,"Indicator"),o()()()(),n(18,"div",5)(19,"mat-form-field",6)(20,"mat-label"),r(21,"Color"),o(),n(22,"mat-select",11),M(23,an,2,3,"mat-option",12,G),o()()(),n(25,"div",13)(26,"mat-checkbox",14),r(27," Use numeric path "),o()()(),n(28,"div",15)(29,"div",16)(30,"div",17),A(31,on,3,0,"button",18),A(32,nn,3,0,"button",19),n(33,"button",20),C("click",function(){return t.deleteControl()}),n(34,"mat-icon"),r(35,"delete"),o()()()()()()),a&2&&(p("formGroup",t.ctrlFormGroup()),s(23),w(t.colors),s(8),g(t.controlIndex()!==0?31:-1),s(),g(t.controlIndex()!==t.arrayLength()-1?32:-1))},dependencies:[ee,X,L,J,B,Q,$,et,R,V,te,ge,ie,re,it,Pe,Z,F],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 i})();function rn(i,c){if(i&1){let e=P();n(0,"boolean-control-config",4),C("moveUp",function(t){y(e);let l=f();return x(l.moveUp(t))})("moveDown",function(t){y(e);let l=f();return x(l.moveDown(t))})("deleteCtrl",function(t){y(e);let l=f();return x(l.deletePath(t))}),o()}if(i&2){let e=c.$implicit,a=c.$index,t=f();p("ctrlFormGroup",t.getFormGroup(e))("controlIndex",a)("arrayLength",t.arrayLength)}}var ho=(()=>{class i{fb=m(kt);multiCtrlArray=h.required();addPath=z();updatePath=z();delPath=z();multiFormGroup=null;arrayLength=0;multiCtrlArraySubscription=null;ngOnInit(){this.arrayLength=this.multiCtrlArray().length,this.multiFormGroup=new Ua({multiCtrlArray:this.multiCtrlArray()}),this.multiCtrlArraySubscription=this.multiCtrlArray().valueChanges.pipe(Ut(350)).subscribe(e=>{this.updatePath.emit(e)})}addCtrlGroup(){let e=ct.create();this.multiCtrlArray().push(this.fb.group({ctrlLabel:[null,K.required],type:["1",K.required],pathID:[e],color:["contrast"],isNumeric:[!1],value:[null]})),this.arrayLength=this.multiCtrlArray().length;let a={path:{description:null,path:null,pathID:e,source:"default",pathType:"boolean",supportsPut:!0,isPathConfigurable:!0,showPathSkUnitsFilter:!1,pathSkUnitsFilter:null,convertUnitTo:null,sampleTime:500},ctrlType:1};this.addPath.emit(a)}moveUp(e){let a=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e-1,a,{emitEvent:!1})}moveDown(e){let a=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e+1,a,{emitEvent:!1})}deletePath(e){this.delPath.emit(e),this.arrayLength=this.multiCtrlArray().length}getFormGroup(e){return e}ngOnDestroy(){this.multiCtrlArraySubscription?.unsubscribe()}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"div",1),M(2,rn,1,3,"boolean-control-config",2,qt),n(4,"button",3),C("click",function(){return t.addCtrlGroup()}),n(5,"mat-icon"),r(6,"add"),o()()()()),a&2&&(p("formGroup",t.multiFormGroup),s(2),w(t.multiCtrlArray().controls))},dependencies:[ee,J,Q,$,ja,go,le,Sa,Z,F],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 i})();function ln(i,c){if(i&1&&(n(0,"mat-option",8),r(1),o()),i&2){let e=c.$implicit;p("value",Ve(e.value)),s(),S(e.label)}}var fo=(()=>{class i{app=m(yt);displayName=h.required();showLabel=h.required();convertUnitTo=h.required();datasetUUID=h.required();datasetAverageArray=h.required();showAverageData=h.required();trackAgainstAverage=h.required();showDatasetMinimumValueLine=h.required();showDatasetMaximumValueLine=h.required();showDatasetAverageValueLine=h.required();showDatasetAngleAverageValueLine=h.required();verticalChart=h.required();inverseYAxis=h.required();showTimeScale=h.required();showYScale=h.required();startScaleAtZero=h.required();yScaleSuggestedMin=h.required();yScaleSuggestedMax=h.required();enableMinMaxScaleLimit=h.required();yScaleMin=h.required();yScaleMax=h.required();numDecimal=h.required();color=h.required();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors,this.showAverageData()&&!this.showAverageData()?.value&&this.trackAgainstAverage().disable(),this.enableMinMaxScaleLimit()&&this.setValueScaleOptionsControls(this.enableMinMaxScaleLimit().value)}setValueScaleOptionsControls(e){e?(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(e){this.setValueScaleOptionsControls(e.value)}enableTrackAgainstMovingAverage(e){e.checked?this.trackAgainstAverage().enable():(this.trackAgainstAverage().setValue(e.checked),this.trackAgainstAverage().disable())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){if(a&1){let l=P();n(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),r(5,"Widget Label"),o(),b(6,"input",5),o()(),n(7,"div",3)(8,"mat-checkbox",6),r(9," Show Label "),o()()(),n(10,"div",2)(11,"mat-form-field",4)(12,"mat-label"),r(13,"Color"),o(),n(14,"mat-select",7),M(15,ln,2,3,"mat-option",8,G),o()()(),n(17,"div",2)(18,"div",9)(19,"div")(20,"p"),r(21,"Series"),o(),n(22,"mat-form-field",10)(23,"mat-label"),r(24,"Value Decimal Places"),o(),b(25,"input",11),o(),n(26,"mat-checkbox",12),C("change",function(u){return y(l),x(t.enableTrackAgainstMovingAverage(u))}),r(27," Display Moving Average "),o(),n(28,"mat-checkbox",13),r(29," Track Against Moving Average "),o()(),n(30,"mat-checkbox",14),r(31," Vertical Data Graph "),o()(),n(32,"div",9)(33,"div")(34,"p",15),r(35,"Data Scale"),o(),n(36,"span",16),r(37,"(Default node is automatic scale)"),o(),n(38,"mat-radio-group",17)(39,"mat-radio-button",18),C("change",function(u){return y(l),x(t.setScaleControls(u))}),r(40,"Auto Scale"),o(),n(41,"div",19)(42,"mat-form-field",20)(43,"mat-label"),r(44,"Suggested Min"),o(),b(45,"input",21),o(),n(46,"mat-form-field",20)(47,"mat-label"),r(48,"Suggested Max"),o(),b(49,"input",22),o()(),n(50,"mat-radio-button",18),C("change",function(u){return y(l),x(t.setScaleControls(u))}),r(51," Fixed Scale "),o(),n(52,"div",19)(53,"div",23)(54,"mat-form-field",20)(55,"mat-label"),r(56,"Min"),o(),b(57,"input",24),o()(),n(58,"div",23)(59,"mat-form-field",20)(60,"mat-label"),r(61,"Max"),o(),b(62,"input",25),o()()()(),n(63,"mat-checkbox",26),r(64," Show Scale Ticks "),o(),n(65,"mat-checkbox",27),r(66," Inverse Scale "),o()()(),n(67,"div",9)(68,"div")(69,"p",15),r(70,"Time Scale"),o(),n(71,"mat-checkbox",28),r(72," Show Scale Ticks "),o()()(),n(73,"div",9)(74,"div")(75,"p",15),r(76,"Dataset"),o(),n(77,"mat-checkbox",29),r(78," Show Maximum Line "),o(),n(79,"mat-checkbox",30),r(80," Show Average Line "),o(),n(81,"mat-checkbox",31,0),r(83," Show Minimum Line "),o()()()()()}a&2&&(s(6),p("formControl",t.displayName()),s(2),p("formControl",t.showLabel()),s(6),p("formControl",t.color()),s(),w(t.colors),s(10),p("formControl",t.numDecimal()),s(),p("formControl",t.showAverageData()),s(2),p("formControl",t.trackAgainstAverage()),s(2),p("formControl",t.verticalChart()),s(8),p("formControl",t.enableMinMaxScaleLimit()),s(),p("value",!1),s(6),p("formControl",t.yScaleSuggestedMin()),s(4),p("formControl",t.yScaleSuggestedMax()),s(),p("value",!0),s(7),p("formControl",t.yScaleMin()),s(5),p("formControl",t.yScaleMax()),s(),p("formControl",t.showYScale()),s(2),p("formControl",t.inverseYAxis()),s(6),p("formControl",t.showTimeScale()),s(6),p("formControl",t.showDatasetMaximumValueLine()),s(2),p("formControl",t.showDatasetAverageValueLine()),s(2),p("formControl",t.showDatasetMinimumValueLine()))},dependencies:[pi,Ae,R,V,it,Pe,tt,ge,ie,Bt,Ge,te,ro,oo,no,Q,X,$e,L,B,St,si,Ie],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 i})();var sn=(i,c)=>c.uuid;function cn(i,c){if(i&1&&(n(0,"mat-option",4),r(1),o()),i&2){let e=c.$implicit;p("value",e.uuid),s(),q(" ",e.label," ")}}function dn(i,c){if(i&1&&(n(0,"mat-option",4),r(1),o()),i&2){let e=c.$implicit;p("value",e.measure),s(),q(" ",e.description," ")}}function mn(i,c){if(i&1&&(n(0,"mat-optgroup",6),M(1,dn,2,2,"mat-option",4,G),o()),i&2){let e=c.$implicit;p("label",e.group),s(),w(e.units)}}var bo=(()=>{class i{datasetService=m(di);units=m(It);datasetUUID=h.required();convertUnitTo=h.required();availableDataSets=[];unitList={};ngOnInit(){this.availableDataSets=this.datasetService.list().filter(a=>a.editable!==!1).sort();let e=this.datasetUUID();e.value&&this.setPathUnits(e.value)}setPathUnits(e){let a=this.datasetService.getDatasetConfig(e);return e&&a?(this.unitList=this.units.getConversionsForPath(a.path),this.convertUnitTo()?.enable(),!0):(this.unitList=this.units.getConversionsForPath(""),this.convertUnitTo()?.disable(),!1)}datasetChanged(e){this.setPathUnits(e.value)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),r(4,"Dataset"),o(),n(5,"mat-select",3),C("selectionChange",function(d){return t.datasetChanged(d)}),M(6,cn,2,2,"mat-option",4,sn),o()(),n(8,"mat-form-field",2)(9,"mat-label"),r(10,"Display Format"),o(),n(11,"mat-select",5),M(12,mn,3,1,"mat-optgroup",6,G),o()()()()),a&2&&(s(5),p("formControl",t.datasetUUID()),s(),w(t.availableDataSets),s(5),p("formControl",t.convertUnitTo()),s(),w(t.unitList.conversions))},dependencies:[Ae,R,V,tt,ge,ie,Dt,Q,L,B,Ie],styles:[".display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}"]})}return i})();var _o=(()=>{class i{transform(e){return Object.keys(e)}static \u0275fac=function(a){return new(a||i)};static \u0275pipe=Ki({name:"objectKeys",type:i,pure:!0})}return i})();var un=["panel"],An=["*"];function gn(i,c){if(i&1&&(wi(0,"div",1,0),ae(2),Si()),i&2){let e=c.id,a=f();Be(a._classList),O("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"),aa("id",a.id),W("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby(e))}}var Oi=class{source;option;constructor(c,e){this.source=c,this.option=e}},yo=new oe("mat-autocomplete-default-options",{providedIn:"root",factory:hn});function hn(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var hi=(()=>{class i{_changeDetectorRef=m(st);_elementRef=m(he);_defaults=m(yo);_animationsDisabled=Me();_activeOptionChanges=mt.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new me;opened=new me;closed=new me;optionActivated=new me;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=m(Lt).getId("mat-autocomplete-");inertGroups;constructor(){let e=m(Jt);this.inertGroups=e?.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 ya(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let a=new Oi(this,e);this.optionSelected.emit(a)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let a=e?e+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(a,t,l){if(a&1&&(fe(l,ie,5),fe(l,Ja,5)),a&2){let d;Y(d=H())&&(t.options=d),Y(d=H())&&(t.optionGroups=d)}},viewQuery:function(a,t){if(a&1&&(je(Zi,7),je(un,5)),a&2){let l;Y(l=H())&&(t.template=l.first),Y(l=H())&&(t.panel=l.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",U],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",U],requireSelection:[2,"requireSelection","requireSelection",U],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",U],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",U]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[He([{provide:Ka,useExisting:i}])],ngContentSelectors:An,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,t){a&1&&(xe(),Ji(0,gn,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 i})();var fn={provide:ni,useExisting:Ot(()=>Rt),multi:!0};var xo=new oe("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=m(Qe);return()=>Di(i)}});function bn(i){let c=m(Qe);return()=>Di(c)}var _n={provide:xo,deps:[],useFactory:bn},Rt=(()=>{class i{_environmentInjector=m(Hi);_element=m(he);_injector=m(Qe);_viewContainerRef=m(Xi);_zone=m(ft);_changeDetectorRef=m(st);_dir=m(ii,{optional:!0});_formField=m(Ha,{optional:!0,host:!0});_viewportRuler=m(Da);_scrollStrategy=m(xo);_renderer=m(Mi);_animationsDisabled=Me();_defaults=m(yo,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new pt;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=mt.EMPTY;_breakpointObserver=m(ei);_handsetLandscapeSubscription=mt.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new pt;_overlayPanelClass=_a(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(e){e.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&&ti(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return We(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ue(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ue(()=>this._overlayAttached)):Ci()).pipe(ut(e=>e instanceof $a?e:null))}optionSelections=Qi(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(gt(e),Qt(()=>We(...e.map(a=>a.onSelectionChange)))):this._initialized.pipe(Qt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new vi(e=>{let a=l=>{let d=ha(l),u=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,_=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&d!==this._element.nativeElement&&!this._hasFocus()&&(!u||!u.contains(d))&&(!_||!_.contains(d))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(d)&&e.next(l)},t=[this._renderer.listen("document","click",a),this._renderer.listen("document","auxclick",a),this._renderer.listen("document","touchend",a)];return()=>{t.forEach(l=>l())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let a=e,t=a.keyCode,l=Ct(a);if(t===27&&!l&&a.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&t===13&&this.panelOpen&&!l)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){let d=this.autocomplete._keyManager.activeItem,u=t===38||t===40;t===9||u&&!l&&this.panelOpen?this.autocomplete._keyManager.onKeydown(a):u&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(u||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(e){let a=e.target,t=a.value;if(a.type==="number"&&(t=t==""?null:parseFloat(t)),this._previousValue!==t){if(this._previousValue=t,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(t),!t)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let l=this.autocomplete.options?.find(d=>d.selected);if(l){let d=this._getDisplayValue(l.value);t!==d&&l.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let l=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(l)}}}_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 Ti()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new vi(t=>{$i(()=>{t.next()},{injector:this._environmentInjector})}),a=this.autocomplete.options?.changes.pipe(Yi(()=>this._positionStrategy.reapplyLastPosition()),zi(0))??Ci();return We(e,a).pipe(Qt(()=>this._zone.run(()=>{let t=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),t!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),At(1)).subscribe(t=>this._setValueAndClose(t))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let a=this.autocomplete;return a&&a.displayWith?a.displayWith(e):e}_assignOptionValue(e){let a=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(a??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let a=this.autocomplete,t=e?e.source:this._pendingAutoselectedOption;t?(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),a._emitSelectEvent(t),this._element.nativeElement.focus()):a.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,a){this.autocomplete?.options?.forEach(t=>{t!==e&&t.selected&&t.deselect(a)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let a=this.autocomplete.id;Ei(this._trackedModal,"aria-owns",a)}}_attachOverlay(e){this.autocomplete;let a=this._overlayRef;a?(this._positionStrategy.setOrigin(this._getConnectedElement()),a.updateSize({width:this._getPanelWidth()})):(this._portal=new ka(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),a=La(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(Re.HandsetLandscape).subscribe(l=>{l.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=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let t=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&t!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ct(e)||e.keyCode===38&&Ct(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Pa({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 e=Oa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let a=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],t=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:t},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:t}],d;this.position==="above"?d=l:this.position==="below"?d=a:d=[...a,...l],e.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 e=this.autocomplete;if(e.autoActiveFirstOption){let a=-1;for(let t=0;t<e.options.length;t++)if(!e.options.get(t).disabled){a=t;break}e._keyManager.setActiveItem(a)}else e._keyManager.setActiveItem(-1)}_canOpen(){let e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_scrollToOption(e){let a=this.autocomplete,t=eo(e,a.options,a.optionGroups);if(e===0&&t===1)a._setScrollTop(0);else if(a.panel){let l=a.options.toArray()[e];if(l){let d=l._getHostElement(),u=to(d.offsetTop,d.offsetHeight,a._getScrollTop(),a.panel.nativeElement.offsetHeight);a._setScrollTop(u)}}}_trackedModal=null;_applyModalPanelOwnership(){let e=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let a=this.autocomplete.id;this._trackedModal&&ti(this._trackedModal,"aria-owns",a),Ei(e,"aria-owns",a),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;ti(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,t){a&1&&C("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(d){return t._handleInput(d)})("keydown",function(d){return t._handleKeydown(d)})("click",function(){return t._handleClick()}),a&2&&W("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-controls",t.autocompleteDisabled||!t.panelOpen||t.autocomplete==null?null:t.autocomplete.id)("aria-haspopup",t.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",U]},exportAs:["matAutocompleteTrigger"],features:[He([fn]),lt]})}return i})(),Mo=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({providers:[_n],imports:[Ba,Bt,ne,Ia,Bt,ne]})}return i})();var Cn=(i,c)=>c.path;function yn(i,c){i&1&&b(0,"i",22)}function xn(i,c){i&1&&b(0,"i",23)}function Mn(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=c.$implicit;p("value",e),s(),_t("",e.properties.quantity,": ",e.properties.display)}}function wn(i,c){if(i&1){let e=P();n(0,"div",5)(1,"mat-form-field",21)(2,"mat-label"),A(3,yn,1,0,"i",22)(4,xn,1,0,"i",23),r(5," Filter"),o(),n(6,"mat-select",24,2),C("selectionChange",function(){y(e),f();let t=se(11),l=f();return x(l.pathFormGroup().controls.path.setValue(t.value))}),n(8,"mat-option"),r(9,"All"),o(),M(10,Mn,2,3,"mat-option",16,G),o()()()}if(i&2){let e=se(7),a=f(2);s(3),g(e.value?4:3),s(3),p("formControl",a.pathSkUnitsFilterControl),s(4),w(a.pathSkUnitsFiltersList)}}function Sn(i,c){i&1&&(n(0,"span",8),r(1,"(optional)"),o())}function kn(i,c){i&1&&(n(0,"mat-hint"),r(1,"Leave blank to disable this path."),o())}function Tn(i,c){if(i&1){let e=P();n(0,"button",25),C("click",function(){y(e);let t=f(2);return x(t.pathFormGroup().controls.path.setValue(""))}),n(1,"mat-icon"),r(2,"close"),o()()}}function En(i,c){i&1&&(n(0,"mat-error"),r(1," Path is required. Please enter a valid Signal K path. "),o())}function Dn(i,c){i&1&&(n(0,"mat-error"),r(1," Path not recognized. Please enter a path from the server's published list. "),o())}function In(i,c){if(i&1&&(n(0,"span"),r(1),o(),b(2,"br"),n(3,"small",26),r(4),o()),i&2){let e=f().$implicit;s(),S(e.path),s(3),S(e.meta.description)}}function Gn(i,c){if(i&1&&r(0),i&2){let e=f().$implicit;q(" ",e.path," ")}}function Pn(i,c){if(i&1&&(n(0,"mat-option",11),A(1,In,5,2)(2,Gn,1,1),o()),i&2){let e=c.$implicit;p("value",e.path),s(),g(e.meta!==void 0?1:2)}}function On(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=c.$implicit;p("value",e),s(),q(" ",e," ")}}function Fn(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=c.$implicit;p("value",e.measure),s(),q(" ",e.description," ")}}function Ln(i,c){if(i&1&&(n(0,"mat-optgroup",28),M(1,Fn,2,2,"mat-option",16,G),o()),i&2){let e=c.$implicit;p("label",e.group),s(),w(e.units)}}function Bn(i,c){if(i&1&&(n(0,"mat-form-field",20)(1,"mat-label"),r(2,"Display Format"),o(),n(3,"mat-select",27),M(4,Ln,3,1,"mat-optgroup",28,G),o()()),i&2){let e=f(2);s(4),w(e.unitList.conversions)}}function Vn(i,c){if(i&1&&(n(0,"div",3)(1,"div",4)(2,"span"),r(3),o()(),A(4,wn,12,2,"div",5),n(5,"div",6)(6,"mat-form-field",7)(7,"mat-label"),r(8," Signal K Path "),A(9,Sn,2,0,"span",8),o(),b(10,"input",9,0),A(12,kn,2,0,"mat-hint"),A(13,Tn,3,0,"button",10),A(14,En,2,0,"mat-error")(15,Dn,2,0,"mat-error"),n(16,"mat-autocomplete",null,1),M(18,Pn,3,2,"mat-option",11,Cn),Ze(20,"async"),o()()(),n(21,"div",12)(22,"div",13)(23,"mat-form-field",14)(24,"mat-label"),r(25,"Data Source"),o(),n(26,"mat-select",15),M(27,On,2,2,"mat-option",16,G),o()()(),n(29,"div",17)(30,"mat-form-field",14)(31,"mat-label"),r(32,"Sample Time"),o(),b(33,"input",18),o()(),n(34,"div",19),A(35,Bn,6,0,"mat-form-field",20),o()()()),i&2){let e,a=se(17),t=f();p("formGroup",t.pathFormGroup()),s(2),Ye("color",t.pathFormGroup().enabled?"":"rgba(255,255,255,0.5)"),s(),S(t.pathFormGroup().value.description),s(),g(t.pathFormGroup().value.pathType==="number"&&t.showPathSkUnitsFilter?4:-1),s(5),g(t.pathFormGroup().value.pathRequired===!1?9:-1),s(),p("matAutocomplete",a),s(2),g(t.pathFormGroup().value.pathRequired===!1?12:-1),s(),g(t.pathFormGroup().value.path?13:-1),s(),g((e=t.pathFormGroup().controls.path.errors)!=null&&e.required?14:(e=t.pathFormGroup().controls.path.errors)!=null&&e.requireMatch?15:-1),s(4),w(Xe(20,11,t.filteredPaths)),s(9),w(t.availableSources),s(8),g(t.pathFormGroup().value.pathType==="number"&&t.pathFormGroup().value.showConvertUnitTo===void 0||t.pathFormGroup().value.pathType==="number"&&t.pathFormGroup().value.showConvertUnitTo===!0?35:-1)}}function Rn(i){return c=>{let e=c.parent?.value?.pathRequired!==!1,a=c.value;return e?a===null||a===""?{requireMatch:!0}:i().some(d=>d.path===a)?null:{requireMatch:!0}:a===null||a===""||i().some(d=>d.path===a)?null:{requireMatch:!0}}}var wo=(()=>{class i{_data=m(xa);_units=m(It);_connection=m(ma);_destroyRef=m(qe);pathFormGroup=h.required();multiCTRLArray=h.required();filterSelfPaths=h.required();availablePaths;filteredPaths=new Pt(null);availableSources;unitList={base:"",conversions:[]};showPathSkUnitsFilter=!1;pathSkUnitsFilterControl=new qa(null);pathSkUnitsFiltersList;unitlessUnit={unit:"unitless",properties:{display:"(null)",quantity:"Unitless",quantityDisplay:"(null)",description:""}};ngOnInit(){let e=this.pathFormGroup();e.controls.path.disabled||(this.pathSkUnitsFiltersList=this._units.skBaseUnits.sort((a,t)=>a.properties.quantity>t.properties.quantity?1:-1),this.pathSkUnitsFiltersList.unshift(this.unitlessUnit),e.value.pathSkUnitsFilter&&this.pathSkUnitsFilterControl.setValue(this.pathSkUnitsFiltersList.find(a=>a.unit===this.pathFormGroup().value.pathSkUnitsFilter),{onlySelf:!0}),e.value.showPathSkUnitsFilter&&(this.showPathSkUnitsFilter=e.value.showPathSkUnitsFilter),e.controls.path.setValidators([Rn(()=>this.getPaths())]),e.controls.path.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e.controls.pathRequired&&e.controls.pathRequired.valueChanges.pipe(Ke(this._destroyRef)).subscribe(()=>{this.pathFormGroup().controls.path.updateValueAndValidity()}),e.controls.path.valid?this.enableFormFields(!1):this.disablePathFields(),e.controls.sampleTime||(e.addControl("sampleTime",new ue("500",K.required)),e.controls.sampleTime.updateValueAndValidity({onlySelf:!0,emitEvent:!1})),e.controls.path.valueChanges.pipe(qi(a=>a===""?xi(0):xi(350)),gt(""),ut(a=>this.filterPaths(a||""))).pipe(Ke(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())}),e.controls.pathType.valueChanges.pipe(Ke(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.value.showPathSkUnitsFilter?this.pathSkUnitsFilterControl.setValue(this.unitlessUnit):this.pathSkUnitsFilterControl.setValue(null),a.controls.path.updateValueAndValidity()}))}ngOnChanges(e){e.filterSelfPaths&&!e.filterSelfPaths.firstChange&&this.pathFormGroup().controls.path.updateValueAndValidity()}getPaths(){let e=this.pathFormGroup().controls.pathType.value,a=this.filterSelfPaths(),t=!1,l=this.pathFormGroup();if(l.value.supportsPut){let d=!1;this.multiCTRLArray().length>0&&(d=this.multiCTRLArray().some(u=>u.pathID===this.pathFormGroup().value.pathID&&u.type==="3")),d?t=!1:t=ua(this._connection.skServerVersion,"2.12.0",">=")?l.value.supportsPut:!1}return this._data.getPathsAndMetaByType(e,t,a).sort()}filterPaths(e){let a=e.toLowerCase(),t=this.getPaths();if(this.pathSkUnitsFilterControl.value){let l=this.pathSkUnitsFilterControl.value.unit;t=t.filter(d=>{let u=!!d.meta&&!!d.meta.units,_=l==="unitless";return u&&d.meta.units===l||!u&&_})}t=t.filter(l=>l.path.toLowerCase().includes(a)),this.filteredPaths.next(t)}enableFormFields(e){let a=this._data.getPathObject(this.pathFormGroup().controls.path.value);if(a!=null){this.pathFormGroup().controls.sampleTime.enable({onlySelf:!1});let t=this.pathFormGroup();t.controls.pathType.value=="number"&&(this.unitList=this._units.getConversionsForPath(t.controls.path.value),e&&t.controls.convertUnitTo.setValue(this.unitList.base,{onlySelf:!0}),t.controls.convertUnitTo.enable({onlySelf:!1})),Object.keys(a.sources).length==1?(this.availableSources=["default"],e?t.controls.source.value!="default"&&t.controls.source.setValue("default",{onlySelf:!0}):t.controls.source.value!="default"&&t.controls.source.setValue("",{onlySelf:!0})):Object.keys(a.sources).length>1&&(this.availableSources=Object.keys(a.sources),t.controls.source.value=="default"&&t.controls.source.reset()),t.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 e=this.pathFormGroup();e.controls.pathType.value=="number"&&(e.controls.convertUnitTo.reset("",{onlySelf:!0}),e.controls.convertUnitTo.disable({onlySelf:!1}))}updatePathMetaBoundDisplayName(e){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayName"))return;let t=this._data.getPathMeta(e);t?.displayName&&a.parent.parent.controls.displayName.setValue(t.displayName)}updatePathMetaBoundDisplayScale(e){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayScale"))return;let t=this._data.getPathMeta(e);if(t?.displayScale){let l=a.parent.parent.get("displayScale"),d=a.controls.convertUnitTo.value;t.displayScale.lower!==null&&t.displayScale.lower!==void 0&&l.controls.lower.setValue(this._units.convertToUnit(d,t.displayScale.lower)),t.displayScale.upper!==null&&t.displayScale.upper!==void 0&&l.controls.upper.setValue(this._units.convertToUnit(d,t.displayScale.upper)),t.displayScale.type!==null&&t.displayScale.type!==void 0&&l.controls.type.setValue(t.displayScale.type),t.displayScale.power!==null&&t.displayScale.power!==void 0&&l.controls.power.setValue(t.displayScale.power)}}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["path-control-config"]],inputs:{pathFormGroup:[1,"pathFormGroup"],multiCTRLArray:[1,"multiCTRLArray"],filterSelfPaths:[1,"filterSelfPaths"]},features:[lt],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,t){a&1&&A(0,Vn,36,13,"div",3),a&2&&g(t.pathFormGroup().value.isPathConfigurable?0:-1)},dependencies:[ee,X,$e,L,J,B,Q,Ie,$,et,R,V,te,Mo,hi,ie,Dt,Rt,re,Et,Tt,ge,Z,F,Ya,Ht],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 i})();function Nn(i,c){if(i&1&&b(0,"path-control-config",6),i&2){let e=c.$implicit,a=f(2);p("pathFormGroup",e)("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Wn(i,c){if(i&1&&M(0,Nn,1,3,"path-control-config",6,G),i&2){let e=f();w(e.pathsFormGroup.controls)}}function Un(i,c){if(i&1&&b(0,"path-control-config",6),i&2){let e=c.$implicit,a=f(2);p("pathFormGroup",a.pathsFormGroup.get(e))("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Qn(i,c){if(i&1&&(M(0,Un,1,3,"path-control-config",6,G),Ze(2,"objectKeys")),i&2){let e=f();w(Xe(2,0,e.pathsFormGroup.controls))}}var So=(()=>{class i{rootFormGroup=m($);fb=m(kt);formGroupName=h.required();isArray=h.required();enableTimeout=h.required();dataTimeout=h.required();filterSelfPaths=h.required();addPathEvent=h(void 0);delPathEvent=h(void 0);updatePathEvent=h(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(e){this.pathsFormGroup.push(this.fb.group({description:[e.path.description],path:[e.path.path,K.required],pathID:[e.path.pathID],source:[e.path.source,K.required],pathType:[e.path.pathType],isPathConfigurable:[e.path.isPathConfigurable],showPathSkUnitsFilter:[e.path.showPathSkUnitsFilter],pathSkUnitsFilter:[e.path.pathSkUnitsFilter],convertUnitTo:[e.path.convertUnitTo],sampleTime:[e.path.sampleTime],supportsPut:[e.path.supportsPut]})),this.pathsFormGroup.updateValueAndValidity(),this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}delPath(){this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}updatePath(e){this.multiCTRLArray=e}ngOnChanges(e){e.addPathEvent&&!e.addPathEvent.firstChange&&this.addPath(e.addPathEvent.currentValue),e.delPathEvent&&!e.delPathEvent.firstChange&&this.delPath(),e.updatePathEvent&&!e.updatePathEvent.firstChange&&this.updatePath(e.updatePathEvent.currentValue)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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:[lt],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,t){a&1&&(n(0,"div",0)(1,"mat-checkbox",1),r(2," Enable Widget Data TTL "),o(),n(3,"mat-form-field")(4,"mat-label"),r(5,"TTL Timeout For Paths"),o(),b(6,"input",2),n(7,"span",3),r(8,"Seconds"),o()()(),ea(9,4),A(10,Wn,2,0)(11,Qn,3,2),ta(),n(12,"mat-checkbox",5),r(13,` Restrict to own vessel
5
+ `),o()),a&2&&(s(),p("formControl",t.enableTimeout()),s(5),p("formControl",t.dataTimeout()),s(3),p("formGroup",t.pathsFormGroup),s(),g(t.isArray()?10:11),s(2),p("formControl",t.filterSelfPaths()))},dependencies:[Pe,ee,X,$e,L,J,B,St,Q,Ie,$,R,V,te,Et,wo,_o],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:5px}"]})}return i})();function qn(i,c){if(i&1){let e=P();n(0,"button",7),C("click",function(){y(e);let t=f();return x(t.dateTimezone().setValue(""))}),b(1,"span",8),o()}}function zn(i,c){if(i&1&&(n(0,"mat-option",6),r(1),o()),i&2){let e=c.$implicit;p("value",e.label),s(),_t(" ",e.offset," - ",e.label," ")}}function jn(i){return c=>i.some(a=>a.label===c.value)?null:{requireMatch:!0}}var Yn=()=>{let i=Intl.supportedValuesOf("timeZone"),c=new Date;return i.map(e=>({offset:new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(c).find(d=>d.type==="timeZoneName")?.value||"",label:e}))},ko=(()=>{class i{_destroyRef=m(qe);dateFormat=h(void 0);dateTimezone=h(void 0);tz=[];filteredTZ;filteredTZSubscription=null;constructor(){}ngOnInit(){typeof Intl.supportedValuesOf<"u"?this.tz=Yn().sort((e,a)=>this.compareOffsets(e.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((e,a)=>this.compareOffsets(e.offset,a.offset))),this.tz.unshift({offset:"",label:"System Timezone -"}),this.dateTimezone().setValidators([K.required,jn(this.tz)]),this.filteredTZ=this.dateTimezone().valueChanges.pipe(Ut(500),gt(""),ut(e=>this.filterTZ(e||""))),this.filteredTZSubscription=this.filteredTZ.pipe(Ke(this._destroyRef)).subscribe()}filterTZ(e){let a=e.toLowerCase();return this.tz.filter(t=>t.label.toLowerCase().includes(a))}compareOffsets(e,a){let t=l=>{let d=l.match(/([+-]?)(\d+)(?::(\d+))?/);if(!d)return 0;let u=d[1]==="-"?-1:1,_=parseInt(d[2],10),T=d[3]?parseInt(d[3],10):0;return u*(_*60+T)};return t(e)-t(a)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){if(a&1&&(n(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),r(3,"Date & Time Format"),o(),b(4,"input",3),o(),n(5,"mat-form-field",2)(6,"mat-label"),r(7,"Adjust Value to Time Zone"),o(),b(8,"input",4),A(9,qn,2,0,"button",5),n(10,"mat-autocomplete",null,0),M(12,zn,2,3,"mat-option",6,qt),Ze(14,"async"),o()()()),a&2){let l=se(11);s(4),p("formControl",t.dateFormat()),s(4),p("formControl",t.dateTimezone())("matAutocomplete",l),s(),g(t.dateTimezone().value?9:-1),s(3),w(Xe(14,4,t.filteredTZ))}},dependencies:[R,V,te,ee,X,L,B,Q,Ie,Rt,re,Et,hi,ie,Ht],encapsulation:2})}return i})();function Hn(i,c){if(i&1&&(n(0,"mat-option",6),r(1),Ze(2,"titlecase"),o()),i&2){let e=c.$implicit;p("value",Ve(e)),s(),S(Xe(2,3,e))}}var Fi={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"},To={options:{modes:[],states:[]},state:null,mode:"off-line",target:null,engaged:!1},Eo=(()=>{class i{formGroupName=h.required();_plugins=m(mi);_destroyRef=m(qe);http=m(da);rootFormGroup=m($);autopilotFormGroup;apiVersion=D(null);availableAutopilots=D({});autopilotPlugin=D(null);discoveryInProgress=D(!1);apiDetectionError=D(null);apInstances=na(()=>{let e=this.availableAutopilots();return e?Object.keys(e):[]});modes=D(null);pluginId=D(null);currentRequests=new Set;constructor(){vt(()=>{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 N(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}),this.availableAutopilots()&&Object.keys(this.availableAutopilots()).length>0){this.pluginId.set(Object.values(this.availableAutopilots())[0]?.provider??null),this.autopilotFormGroup.get("pluginId")?.setValue(this.pluginId(),{emitEvent:!1}),this.discoveryInProgress.set(!1);return}else console.warn("[Autopilot Options] No V2 autopilot provider found")}catch(e){console.error("[Autopilot Options] Error checking V2 API, checking V1...",e)}try{if(yield this._plugins.isEnabled(Fi.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(e){console.error("[Autopilot Options] V1 plugin detection failed:",e)}console.warn("[Autopilot Options] No Autopilot detected"),this.discoveryInProgress.set(!1)})}checkV2Api(){return N(this,null,function*(){try{let e=yield yi(this.makeHttpRequest(this.http.get(Fi.V2_AUTOPILOTS,{observe:"response",responseType:"json"})));return e&&e.body&&Object.keys(e.body).length>0?(this.availableAutopilots.set(e.body),console.log("[Autopilot Options] Discovered V2 API autopilot providers:",JSON.stringify(e.body))):(this.availableAutopilots.set({}),console.warn("[Autopilot Options] No V2 autopilot provider plugin found.")),e?.status===200}catch(e){if(e&&typeof e=="object"&&"status"in e){let a=e;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 call to discover Autopilot Providers failed:",a.status,a.statusText)}else console.log("[Autopilot Options] V2 API network error:",e);return!1}})}discoverV2AutopilotOptions(e){return N(this,null,function*(){let a;try{try{this.discoveryInProgress.set(!0),a=yield yi(this.makeHttpRequest(this.http.get(`${Fi.V2_AUTOPILOTS}/${e}`))),console.log("[Autopilot Options] V2 Autopilot Options response:",JSON.stringify(a))}catch{a=To,console.log(`[Autopilot Options] Default AP discovery endpoint error for instance '${e}'`)}return this.discoveryInProgress.set(!1),a}catch(t){return console.error("[Autopilot Options] Failed to discover V2 endpoints:",t),console.log(`[Autopilot Options] Using fallback V2 endpoints for instance '${e}'`),To}})}onAutopilotInstanceIdChange(e){let a=e.value;if(e.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(t=>{let l=t.options.modes||[];this.modes.set(l.join(", ")),this.autopilotFormGroup.get("modes")?.setValue(l,{emitEvent:!1}),console.log("[Autopilot Options] Autopilot plugin supported modes :",l.join(", "))}).catch(t=>{console.error("[Autopilot Options] Error requesting autopilot modes:",t),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(e){let a=e.pipe(Ke(this._destroyRef));return this.currentRequests.add(a),a.pipe(ji(()=>this.currentRequests.delete(a)))}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),r(4,"Signal K Service Discovery"),o(),n(5,"ul")(6,"li")(7,"b"),r(8,"API Version:"),o(),r(9),o(),n(10,"li")(11,"b"),r(12,"Plugin:"),o(),r(13),o()()(),n(14,"mat-form-field")(15,"mat-label"),r(16,"Target Autopilot"),o(),n(17,"mat-select",4),C("selectionChange",function(d){return t.onAutopilotInstanceIdChange(d)}),n(18,"mat-option",5),r(19,"No autopilot"),o(),M(20,Hn,3,5,"mat-option",6,G),o()(),n(22,"div",7)(23,"b"),r(24,"Supported modes:"),o(),r(25),o(),n(26,"mat-checkbox",8),r(27," Display True Heading "),o(),n(28,"mat-checkbox",9),r(29," Invert Rudder Angle Indicator "),o()()()),a&2&&(s(),p("formGroup",t.autopilotFormGroup),s(8),q(" ",t.apiVersion()),s(4),q(" ",t.pluginId()),s(7),w(t.apInstances()),s(5),q(" ",t.modes()," "))},dependencies:[Q,L,J,B,$,et,Ae,R,V,it,Pe,tt,ge,ie,Ge,ca],styles:[".autopilot-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}"]})}return i})();var Do=()=>["measuring","capacity"],Zn=()=>["marineCompass","baseplateCompass"],Xn=()=>["measuring"];function Kn(i,c){if(i&1&&b(0,"config-display-chart-options",5),i&2){let e=f();p("displayName",e.displayNameToControl)("datasetUUID",e.datasetUUIDToControl)("convertUnitTo",e.convertUnitToControl)("showAverageData",e.showAverageDataToControl)("trackAgainstAverage",e.trackAgainstAverageToControl)("datasetAverageArray",e.datasetAverageArrayToControl)("showDatasetMinimumValueLine",e.showDatasetMinimumValueLineToControl)("showDatasetMaximumValueLine",e.showDatasetMaximumValueLineToControl)("showDatasetAverageValueLine",e.showDatasetAverageValueLineToControl)("showDatasetAngleAverageValueLine",e.showDatasetAngleAverageValueLineToControl)("startScaleAtZero",e.startScaleAtZeroToControl)("showLabel",e.showLabelToControl)("showTimeScale",e.showTimeScaleToControl)("showYScale",e.showYScaleToControl)("yScaleSuggestedMin",e.yScaleSuggestedMinToControl)("yScaleSuggestedMax",e.yScaleSuggestedMaxToControl)("enableMinMaxScaleLimit",e.enableMinMaxScaleLimitToControl)("yScaleMin",e.yScaleMinToControl)("yScaleMax",e.yScaleMaxToControl)("numDecimal",e.numDecimalToControl)("verticalChart",e.verticalChartToControl)("inverseYAxis",e.inverseYAxisToControl)("color",e.colorToControl)}}function Jn(i,c){i&1&&b(0,"select-autopilot",6)}function $n(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"URL"),o(),b(3,"input",40),o())}function er(i,c){i&1&&(n(0,"mat-checkbox",17),r(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 tr(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Widget Label"),o(),b(3,"input",41),o())}function ir(i,c){i&1&&(n(0,"mat-form-field",42)(1,"mat-label"),r(2,"Scale Start"),o(),b(3,"input",43),o(),n(4,"mat-form-field",42)(5,"mat-label"),r(6,"Scale End"),o(),b(7,"input",44),o())}function ar(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Integer Places"),o(),b(3,"input",45),o())}function or(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Decimal Places"),o(),b(3,"input",46),o()),i&2){let e=f(2);Be(e.widgetConfig.showMiniChart!==void 0?"options-grid-span2":"")}}function nr(i,c){i&1&&(n(0,"mat-checkbox",19),r(1," Show Min recorded value "),o())}function rr(i,c){i&1&&(n(0,"mat-checkbox",20),r(1," Show Max recorded value "),o())}function lr(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Next Dashboard after start"),o(),b(3,"input",47),o()),i&2){let e=f(2);O("options-grid-span2",!e.widgetConfig.numInt)}}function sr(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=c.$implicit;p("value",e.measure),s(),q(" ",e.description," ")}}function cr(i,c){if(i&1&&(n(0,"mat-optgroup",49),M(1,sr,2,2,"mat-option",50,G),o()),i&2){let e=f().$implicit;p("label",e.group),s(),w(e.units)}}function dr(i,c){if(i&1&&A(0,cr,3,1,"mat-optgroup",49),i&2){let e=c.$implicit,a=f(3);g(!a.widgetConfig.convertUnitToGroup||a.widgetConfig.convertUnitToGroup===""||a.widgetConfig.convertUnitToGroup===e.group?0:-1)}}function mr(i,c){if(i&1&&(n(0,"mat-form-field",22)(1,"mat-label"),r(2,"Display Units"),o(),n(3,"mat-select",48),M(4,dr,1,1,null,null,G),o()()),i&2){let e=f(2);s(4),w(e.unitList.conversions)}}function pr(i,c){i&1&&(n(0,"mat-checkbox",23),r(1," Enable beeps on count down "),o())}function ur(i,c){if(i&1&&b(0,"display-datetime-options",24),i&2){let e=f(2);p("dateFormat",e.dateFormatToControl)("dateTimezone",e.dateTimezoneToControl)}}function Ar(i,c){i&1&&(n(0,"mat-checkbox",25),r(1," Close-hauled Lines "),o())}function gr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Vessel Close-hauled Angle"),o(),b(3,"input",51),o())}function hr(i,c){i&1&&(n(0,"mat-checkbox",26),r(1," Wind Sectors "),o())}function fr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Sector Duration"),o(),b(3,"input",52),o())}function br(i,c){i&1&&(n(0,"mat-checkbox",27),r(1," Apparent Wind Speed Value "),o())}function _r(i,c){i&1&&(n(0,"mat-checkbox",28),r(1," True Wind Speed Value "),o())}function vr(i,c){i&1&&(n(0,"mat-checkbox",29),r(1," Course Over Ground "),o())}function Cr(i,c){i&1&&(n(0,"mat-checkbox",30),r(1," True Wind Angle Indicator "),o())}function yr(i,c){i&1&&(n(0,"mat-checkbox",31),r(1," Next Waypoint "),o())}function xr(i,c){i&1&&(n(0,"mat-checkbox",32),r(1," Drift "),o())}function Mr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Minimum Value"),o(),b(3,"input",53),o())}function wr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Maximum Value"),o(),b(3,"input",54),o())}function Sr(i,c){i&1&&(n(0,"mat-checkbox",33),r(1," Ignore Zones configuration "),o())}function kr(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Highlights Width"),o(),b(3,"input",55),o())}function Tr(i,c){i&1&&(n(0,"mat-form-field",35)(1,"mat-label"),r(2,"Rotation Element"),o(),n(3,"mat-select",56)(4,"mat-option",57),r(5,"Dial (Marine Compass)"),o(),n(6,"mat-option",58),r(7,"Needle (Base plate compass)"),o()()(),n(8,"div",34)(9,"mat-checkbox",59),r(10," Show value box "),o()(),n(11,"div",34)(12,"mat-checkbox",60),r(13," Show cardinal degrees "),o()())}function Er(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Progress Bar Start Position"),o(),n(3,"mat-select",63)(4,"mat-option",64),r(5,"Left"),o(),n(6,"mat-option",65),r(7,"Middle"),o(),n(8,"mat-option",66),r(9,"Right"),o()()())}function Dr(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Progress Bar Start Angle"),o(),b(3,"input",67),o())}function Ir(i,c){if(i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Gauge Type"),o(),n(3,"mat-select",56)(4,"mat-option",61),r(5,"Measuring"),o(),n(6,"mat-option",62),r(7,"Capacity"),o()()(),A(8,Er,10,0,"mat-form-field",34),A(9,Dr,4,0,"mat-form-field",34)),i&2){let e=f(3);s(8),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"&&Ft(2,Xn).includes(e.formMaster.value.gauge.subType)?8:-1),s(),g(e.formMaster.value.gauge.subType==="capacity"?9:-1)}}function Gr(i,c){if(i&1&&A(0,Tr,14,0)(1,Ir,10,3),i&2){let e=f(2);g(Ft(1,Zn).indexOf(e.formMaster.value.gauge.subType)>-1?0:Ft(2,Do).indexOf(e.formMaster.value.gauge.subType)>-1?1:-1)}}function Pr(i,c){i&1&&(n(0,"div",34)(1,"mat-checkbox",68),r(2," Use needle indicator "),o()(),n(3,"div",34)(4,"mat-checkbox",69),r(5," Enable Ticks "),o()(),n(6,"mat-form-field",35)(7,"mat-label"),r(8,"Orientation"),o(),n(9,"mat-select",70)(10,"mat-option",71),r(11,"Vertical"),o(),n(12,"mat-option",72),r(13,"Horizontal"),o()()())}function Or(i,c){i&1&&(n(0,"mat-form-field",35)(1,"mat-label"),r(2,"Unit Label"),o(),n(3,"mat-select",73)(4,"mat-option",74),r(5,"Full Label"),o(),n(6,"mat-option",75),r(7,"First Letter Only"),o()()())}function Fr(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=c.$implicit;p("value",Ve(e.value)),s(),S(e.label)}}function Lr(i,c){if(i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Color"),o(),n(3,"mat-select",76),M(4,Fr,2,3,"mat-option",50,G),o()()),i&2){let e=f(2);s(4),w(e.colors)}}function Br(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Scale Span"),o(),n(3,"mat-select",77)(4,"mat-option",78),r(5,"1 Minute"),o(),n(6,"mat-option",79),r(7,"5 Minutes"),o(),n(8,"mat-option",80),r(9,"30 Minutes"),o()()())}function Vr(i,c){i&1&&(n(0,"mat-checkbox",36),r(1," Show Background Graph "),n(2,"i"),r(3,"(Too many graphs may affect performance)"),o()())}function Rr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale Start"),o(),b(3,"input",81),o())}function Nr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale End"),o(),b(3,"input",82),o())}function Wr(i,c){i&1&&(n(0,"mat-checkbox",37),r(1," Inverse Scale Axis "),o())}function Ur(i,c){i&1&&(n(0,"mat-checkbox",38),r(1," Vertical Data Graph "),o())}function Qr(i,c){i&1&&(n(0,"mat-checkbox",39),r(1," Disable background color "),o())}function qr(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=c.$implicit;p("value",Ve(e.value)),s(),S(e.label)}}function zr(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Background Color"),o(),n(3,"mat-select",83),M(4,qr,2,3,"mat-option",50,G),o()()),i&2){let e=f(2);s(4),w(e.colors)}}function jr(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Background Style"),o(),n(3,"mat-select",96)(4,"mat-option",97),r(5,"Dark Gray"),o(),n(6,"mat-option",98),r(7,"Satin Gray"),o(),n(8,"mat-option",99),r(9,"Light Gray"),o(),n(10,"mat-option",100),r(11,"White"),o(),n(12,"mat-option",101),r(13,"Black"),o(),n(14,"mat-option",102),r(15,"Beige"),o(),n(16,"mat-option",103),r(17,"Brown"),o(),n(18,"mat-option",104),r(19,"Red"),o(),n(20,"mat-option",105),r(21,"Green"),o(),n(22,"mat-option",106),r(23,"Blue"),o(),n(24,"mat-option",92),r(25,"Anthracite"),o(),n(26,"mat-option",107),r(27,"Mud"),o(),n(28,"mat-option",108),r(29,"Punched Sheet"),o(),n(30,"mat-option",109),r(31,"Carbon"),o(),n(32,"mat-option",110),r(33,"Stainless"),o(),n(34,"mat-option",111),r(35,"Brushed Metal"),o(),n(36,"mat-option",112),r(37,"Brushed Stainless"),o(),n(38,"mat-option",113),r(39,"Turned"),o()()())}function Yr(i,c){i&1&&(n(0,"div",34)(1,"mat-checkbox",114),r(2," Reverse Pitch Axis "),o()(),n(3,"div",34)(4,"mat-checkbox",115),r(5," Reverse Roll Axis "),o()(),n(6,"div",34)(7,"mat-checkbox",116),r(8," Show Frame "),o()())}function Hr(i,c){if(i&1&&(A(0,jr,40,0,"mat-form-field",34),A(1,Yr,9,0),n(2,"mat-form-field",34)(3,"mat-label"),r(4,"Frame Style"),o(),n(5,"mat-select",84)(6,"mat-option",85),r(7,"Black Metal"),o(),n(8,"mat-option",86),r(9,"Metal"),o(),n(10,"mat-option",87),r(11,"Shiny Metal"),o(),n(12,"mat-option",88),r(13,"Brass"),o(),n(14,"mat-option",89),r(15,"Steel"),o(),n(16,"mat-option",90),r(17,"Chrome"),o(),n(18,"mat-option",91),r(19,"Gold"),o(),n(20,"mat-option",92),r(21,"Anthracite"),o(),n(22,"mat-option",93),r(23,"Tilted Gray"),o(),n(24,"mat-option",94),r(25,"Tilted Black"),o(),n(26,"mat-option",95),r(27,"Glossy Metal"),o()()()),i&2){let e=f(2);g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)!=="horizon"?0:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="horizon"?1:-1)}}function Zr(i,c){if(i&1&&(n(0,"div",7)(1,"div",15),A(2,$n,4,0,"mat-form-field",16),A(3,er,2,0,"mat-checkbox",17),A(4,tr,4,0,"mat-form-field",16),A(5,ir,8,0),A(6,ar,4,0,"mat-form-field"),A(7,or,4,2,"mat-form-field",18),A(8,nr,2,0,"mat-checkbox",19),A(9,rr,2,0,"mat-checkbox",20),A(10,lr,4,2,"mat-form-field",21),A(11,mr,6,0,"mat-form-field",22),A(12,pr,2,0,"mat-checkbox",23),A(13,ur,1,2,"display-datetime-options",24),A(14,Ar,2,0,"mat-checkbox",25),A(15,gr,4,0,"mat-form-field"),A(16,hr,2,0,"mat-checkbox",26),A(17,fr,4,0,"mat-form-field"),A(18,br,2,0,"mat-checkbox",27),A(19,_r,2,0,"mat-checkbox",28),A(20,vr,2,0,"mat-checkbox",29),A(21,Cr,2,0,"mat-checkbox",30),A(22,yr,2,0,"mat-checkbox",31),A(23,xr,2,0,"mat-checkbox",32),A(24,Mr,4,0,"mat-form-field"),A(25,wr,4,0,"mat-form-field"),A(26,Sr,2,0,"mat-checkbox",33),A(27,kr,4,0,"mat-form-field",34),A(28,Gr,2,3),A(29,Pr,14,0),A(30,Or,8,0,"mat-form-field",35),A(31,Lr,6,0,"mat-form-field",16),A(32,Br,10,0,"mat-form-field",16),A(33,Vr,4,0,"mat-checkbox",36),A(34,Rr,4,0,"mat-form-field"),A(35,Nr,4,0,"mat-form-field"),A(36,Wr,2,0,"mat-checkbox",37),A(37,Ur,2,0,"mat-checkbox",38),A(38,Qr,2,0,"mat-checkbox",39),A(39,zr,6,0,"mat-form-field"),A(40,Hr,28,2),o()()),i&2){let e=f();s(2),g((e.widgetConfig==null?null:e.widgetConfig.widgetUrl)!==void 0?2:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.allowInput)!==void 0?3:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.displayName)!==void 0?4:-1),s(),g(e.formMaster.get("displayScale")?5:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.numInt)!==void 0?6:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.numDecimal)!==void 0?7:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.showMin)!==void 0?8:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.showMax)!==void 0?9:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.nextDashboard)!==void 0?10:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.convertUnitTo)!==void 0?11:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.playBeeps)!==void 0?12:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.dateFormat)!==void 0?13:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.laylineEnable)!==void 0?14:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.laylineEnable)!==void 0?15:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.windSectorEnable)!==void 0?16:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.windSectorEnable)!==void 0?17:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.awsEnable)!==void 0?18:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.twsEnable)!==void 0?19:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.courseOverGroundEnable)!==void 0?20:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.twaEnable)!==void 0?21:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.waypointEnable)!==void 0?22:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.driftEnable)!==void 0?23:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.minValue)!==void 0&&!e.formMaster.get("displayScale")?24:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.maxValue)!==void 0&&!e.formMaster.get("displayScale")?25:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.ignoreZones)!==void 0?26:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"&&Ft(39,Do).includes(e.formMaster.value.gauge.subType)||(e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngLinear"?27:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"?28:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngLinear"?29:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="simpleLinear"?30:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.color)!==void 0?31:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.timeScale)!==void 0?32:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.showMiniChart)!==void 0?33:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.yScaleMin)!==void 0?34:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.yScaleMax)!==void 0?35:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.inverseYAxis)!==void 0?36:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.verticalChart)!==void 0?37:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.noBgColor)!==void 0?38:-1),s(),g((e.widgetConfig==null?null:e.widgetConfig.bgColor)!==void 0?39:-1),s(),g((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="steel"||(e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="horizon"?40:-1)}}function Xr(i,c){if(i&1&&(b(0,"span",120),r(1,"\xA0Controls ")),i&2){let e=f(2);bt(e.formMaster.controls.multiChildCtrls.valid?"display: none":"display: block")}}function Kr(i,c){if(i&1){let e=P();n(0,"mat-tab",8)(1,"div",117)(2,"div"),Le(3,Xr,2,2,"ng-template",118),o(),n(4,"boolean-multicontrol-options",119),C("addPath",function(t){y(e);let l=f();return x(l.addPathGroup(t))})("updatePath",function(t){y(e);let l=f();return x(l.updatePath(t))})("delPath",function(t){y(e);let l=f();return x(l.deletePath(t))}),o()()()}if(i&2){let e=f();s(4),p("multiCtrlArray",e.multiChildCtrlsToControl)}}function Jr(i,c){if(i&1&&(n(0,"span",122),r(1," error "),o(),r(2," \xA0Paths ")),i&2){let e=f(2);bt(e.formMaster.controls.paths.valid||e.formMaster.controls.paths.disabled?"display: none":"display: block")}}function $r(i,c){if(i&1&&(n(0,"mat-tab",9)(1,"div",117)(2,"div"),Le(3,Jr,3,2,"ng-template",118),o(),b(4,"paths-options",121),o()()),i&2){let e=f();s(4),p("isArray",e.isPathArray)("enableTimeout",e.enableTimeoutToControl)("dataTimeout",e.dataTimeoutToControl)("filterSelfPaths",e.filterSelfPathsToControl)("addPathEvent",e.addPathEvent)("delPathEvent",e.delPathEvent)("updatePathEvent",e.updatePathEvent)}}function el(i,c){i&1&&(n(0,"p")(1,"mat-checkbox",125),r(2," Digital display "),o()())}function tl(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Dial Size"),o(),n(3,"mat-select",126)(4,"mat-option",127),r(5,"1/4"),o(),n(6,"mat-option",128),r(7,"1/2"),o(),n(8,"mat-option",129),r(9,"3/4"),o(),n(10,"mat-option",74),r(11,"Full"),o()()())}function il(i,c){if(i&1&&(n(0,"mat-tab",10)(1,"div",7)(2,"mat-form-field",16)(3,"mat-label"),r(4,"Gauge Type"),o(),n(5,"mat-select",70)(6,"mat-option",123),r(7,"Linear"),o(),n(8,"mat-option",124),r(9,"Radial"),o()()(),A(10,el,3,0,"p"),A(11,tl,12,0,"mat-form-field",16),o()()),i&2){let e=f();s(10),g(e.formMaster.value.gauge.subType==="linear"?10:-1),s(),g(e.formMaster.value.gauge.subType==="radial"?11:-1)}}function al(i,c){i&1&&(n(0,"p")(1,"mat-checkbox",132),r(2," Value to send on button push (checked = on, unchecked = off) "),o()())}function ol(i,c){if(i&1&&(n(0,"mat-tab",11)(1,"div",117)(2,"p")(3,"mat-checkbox",130),r(4," Enable Put Requests "),o()(),n(5,"p")(6,"mat-checkbox",131),r(7," Momentary mode (instead of switching between on/off) "),o()(),A(8,al,3,0,"p"),o()()),i&2){let e=f();s(8),g(e.formMaster.controls.putMomentary.value?8:-1)}}function nl(i,c){i&1&&b(0,"span",120)}function rl(i,c){if(i&1&&(A(0,nl,1,0,"span",120),r(1," Dataset ")),i&2){let e=f(2);g(e.formMaster.controls.datasetUUID.valid?-1:0)}}function ll(i,c){if(i&1&&(n(0,"mat-tab",12),Le(1,rl,2,1,"ng-template",118),b(2,"config-dataset-chart-options",133),o()),i&2){let e=f();s(2),p("datasetUUID",e.datasetUUIDToControl)("convertUnitTo",e.convertUnitToControl)}}var Io=(()=>{class i{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(Se);fb=m(kt);DatasetService=m(di);units=m(It);app=m(yt);widgetConfig=m(ke);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((e,a)=>{let t=e.label||"",l=a.label||"";return t.localeCompare(l,void 0,{sensitivity:"base"})}),this.unitList=this.units.getConversionsForPath(""),this.formMaster=this.generateFormGroups(this.widgetConfig),this.colors=this.app.configurableThemeColors}isPlainObject(e){return Object.prototype.toString.call(e)==="[object Object]"}generateFormGroups(e,a){let t=this.fb.group({});return Object.keys(e).forEach(l=>{let d=e[l];if(d!==null&&(Array.isArray(d)||this.isPlainObject(d))){if(l===i.KEY_MULTI_CHILD_CTRLS){t.addControl(l,this.fb.array([]));let u=t.get(l);d.forEach(_=>{u.push(this.generateCtrlArray(_))})}else if(l===i.KEY_DISPLAY_SCALE)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_GAUGE)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_AUTOPILOT)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_PATHS){let u=d;if(this.widgetConfig.multiChildCtrls!==void 0){this.isPathArray=!0,t.addControl(l,this.fb.array([]));let _=t.get(l);Object.keys(u).forEach(T=>{let k=u[T];if(k){let E=this.generatePathArray(T,k);k.isPathConfigurable===!1&&E.disable(),_.push(E)}})}else{let _=this.fb.group({});Object.keys(u).forEach(T=>{let k=u[T];if(k){let E=this.generateFormGroups(k,T);k.isPathConfigurable===!1&&E.disable(),_.addControl(T,E)}}),t.addControl(l,_)}}a===i.KEY_PATHS&&t.addControl(l,this.generateFormGroups(d,l))}else if(a===i.KEY_CONVERT_UNIT_TO){let u=e[l];(u&&u.pathType=="number"||"datasetUUID"in this.widgetConfig)&&t.addControl(l,new ue(d))}else switch(l){case"path":t.addControl(l,new ue(d));break;case"datasetUUID":t.addControl(l,new ue(d,K.required));break;case"dataTimeout":t.addControl(l,new ue(d,K.required));break;default:t.addControl(l,new ue(d));break}}),t}generatePathArray(e,a){let t=new Qa({});return Object.keys(a).forEach(l=>{t.addControl(l,this.generatePathFields(l,a[l]))}),t}generatePathFields(e,a){let t=null;switch(e){case"path":t=new ue(a);break;case"source":t=new ue(a,K.required);break;case"sampleTime":t=new ue(a,K.required);break;default:t=new ue(a);break}return t}generateCtrlArray(e){let a=this.fb.group(e);return a.get("ctrlLabel").addValidators(K.required),a}addPathGroup(e){this.addPathEvent=e}updatePath(e){e.forEach(a=>{this.formMaster.get("paths").controls.forEach(l=>{l.get("pathID").value==a.pathID&&(l.controls.description.setValue(a.ctrlLabel),l.controls.pathType.setValue(a.isNumeric?"number":"boolean"),this.updatePathEvent=e)})})}deletePath(e){let a=this.formMaster.get("paths"),t=0;a.controls.forEach(d=>{d.get("pathID").value==e.pathID?a.removeAt(t):t++}),this.formMaster.get("multiChildCtrls").removeAt(e.ctrlIndex),this.delPathEvent=e.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||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"form",0),C("ngSubmit",function(){return t.submitConfig()}),n(1,"h6",1),r(2),o(),n(3,"mat-dialog-content",2)(4,"mat-tab-group",3)(5,"mat-tab",4),A(6,Kn,1,23,"config-display-chart-options",5)(7,Jn,1,0,"select-autopilot",6)(8,Zr,41,40,"div",7),o(),A(9,Kr,5,1,"mat-tab",8),A(10,$r,5,7,"mat-tab",9),A(11,il,12,2,"mat-tab",10),A(12,ol,9,1,"mat-tab",11),A(13,ll,3,2,"mat-tab",12),o()(),b(14,"mat-divider"),n(15,"mat-dialog-actions")(16,"button",13),r(17,"Cancel"),o(),n(18,"button",14),r(19," Save "),o()()()),a&2&&(p("formGroup",t.formMaster),s(2),S(t.titleDialog),s(4),g((t.widgetConfig==null?null:t.widgetConfig.datasetUUID)!==void 0?6:t.widgetConfig!=null&&t.widgetConfig.autopilot?7:8),s(3),g((t.widgetConfig==null?null:t.widgetConfig.multiChildCtrls)!==void 0?9:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.paths)!==void 0?10:-1),s(),g((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="steel"?11:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.putEnable)!==void 0&&(t.widgetConfig==null?null:t.widgetConfig.multiChildCtrls)===void 0?12:-1),s(),g((t.widgetConfig==null?null:t.widgetConfig.datasetUUID)!==void 0?13:-1),s(5),p("disabled",!t.formMaster.valid))},dependencies:[ee,wt,X,$e,L,J,B,St,si,Q,$,et,za,pe,Te,Ee,Je,De,Ae,R,V,Ge,te,mo,lo,so,co,it,Pe,tt,ge,ie,Dt,ci,Za,le,we,ko,fo,bo,ho,So,Eo],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 i})();var sl=["button"],cl=["*"];function dl(i,c){if(i&1&&(n(0,"div",2),b(1,"mat-pseudo-checkbox",6),o()),i&2){let e=f();s(),p("disabled",e.disabled)}}var Go=new oe("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:ml});function ml(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Po=new oe("MatButtonToggleGroup"),pl={provide:ni,useExisting:Ot(()=>Li),multi:!0},fi=class{source;value;constructor(c,e){this.source=c,this.value=e}},Li=(()=>{class i{_changeDetector=m(st);_dir=m(ii,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}_name=m(Lt).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(a=>a.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}valueChange=new me;get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new me;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let e=m(Go,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new io(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex()}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_keydown(e){if(this.multiple||this.disabled)return;let t=e.target.id,l=this._buttonToggles.toArray().findIndex(u=>u.buttonId===t),d=null;switch(e.keyCode){case 32:case 13:d=this._buttonToggles.get(l)||null;break;case 38:d=this._getNextButton(l,-1);break;case 37:d=this._getNextButton(l,this.dir==="ltr"?-1:1);break;case 40:d=this._getNextButton(l,1);break;case 39:d=this._getNextButton(l,this.dir==="ltr"?1:-1);break;default:return}d&&(e.preventDefault(),d._onButtonClick(),d.focus())}_emitChangeEvent(e){let a=new fi(e,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(e,a,t=!1,l=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(e):this._selectionModel.deselect(e):l=!0,l?Promise.resolve().then(()=>this._updateModelValue(e,t)):this._updateModelValue(e,t)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>e.value!=null&&a===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;e<this._buttonToggles.length;e++){let a=this._buttonToggles.get(e);if(!a.disabled){a.tabIndex=0;break}}}_getNextButton(e,a){let t=this._buttonToggles;for(let l=1;l<=t.length;l++){let d=(e+a*l+t.length)%t.length,u=t.get(d);if(u&&!u.disabled)return u}return null}_setSelectionByValue(e){if(this._rawValue=e,!this._buttonToggles)return;let a=this._buttonToggles.toArray();if(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(t=>this._selectValue(t,a))):(this._clearSelection(),this._selectValue(e,a)),!this.multiple&&a.every(t=>t.tabIndex===-1)){for(let t of a)if(!t.disabled){t.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e,a){for(let t of a)if(t.value===e){t.checked=!0,this._selectionModel.select(t),this.multiple||(t.tabIndex=0);break}}_updateModelValue(e,a){a&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,t,l){if(a&1&&fe(l,bi,5),a&2){let d;Y(d=H())&&(t._buttonToggles=d)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,t){a&1&&C("keydown",function(d){return t._keydown(d)}),a&2&&(W("role",t.multiple?"group":"radiogroup")("aria-disabled",t.disabled),O("mat-button-toggle-vertical",t.vertical)("mat-button-toggle-group-appearance-standard",t.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",U],value:"value",multiple:[2,"multiple","multiple",U],disabled:[2,"disabled","disabled",U],disabledInteractive:[2,"disabledInteractive","disabledInteractive",U],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",U],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",U]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[He([pl,{provide:Po,useExisting:i}])]})}return i})(),bi=(()=>{class i{_changeDetectorRef=m(st);_elementRef=m(he);_focusMonitor=m(ba);_idGenerator=m(Lt);_animationDisabled=Me();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new me;constructor(){m($t).load(oi);let e=m(Po,{optional:!0}),a=m(new ra("tabindex"),{optional:!0})||"",t=m(Go,{optional:!0});this._tabIndex=D(parseInt(a)||0),this.buttonToggleGroup=e,this.appearance=t&&t.appearance?t.appearance:"standard",this.disabledInteractive=t?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._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 e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(t=>t.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new fi(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||i)};static \u0275cmp=v({type:i,selectors:[["mat-button-toggle"]],viewQuery:function(a,t){if(a&1&&je(sl,5),a&2){let l;Y(l=H())&&(t._buttonElement=l.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,t){a&1&&C("focus",function(){return t.focus()}),a&2&&(W("aria-label",null)("aria-labelledby",null)("id",t.id)("name",null),O("mat-button-toggle-standalone",!t.buttonToggleGroup)("mat-button-toggle-checked",t.checked)("mat-button-toggle-disabled",t.disabled)("mat-button-toggle-disabled-interactive",t.disabledInteractive)("mat-button-toggle-appearance-standard",t.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",U],appearance:"appearance",checked:[2,"checked","checked",U],disabled:[2,"disabled","disabled",U],disabledInteractive:[2,"disabledInteractive","disabledInteractive",U]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:cl,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,t){if(a&1){let l=P();xe(),n(0,"button",1,0),C("click",function(){return y(l),x(t._onButtonClick())}),A(2,dl,2,1,"div",2),n(3,"span",3),ae(4),o()(),b(5,"span",4)(6,"span",5)}if(a&2){let l=se(1);p("id",t.buttonId)("disabled",t.disabled&&!t.disabledInteractive||null),W("role",t.isSingleSelector()?"radio":"button")("tabindex",t.disabled&&!t.disabledInteractive?-1:t.tabIndex)("aria-pressed",t.isSingleSelector()?null:t.checked)("aria-checked",t.isSingleSelector()?t.checked:null)("name",t._getButtonName())("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-disabled",t.disabled&&t.disabledInteractive?"true":null),s(2),g(t.buttonToggleGroup&&(!t.buttonToggleGroup.multiple&&!t.buttonToggleGroup.hideSingleSelectionIndicator||t.buttonToggleGroup.multiple&&!t.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),s(4),p("matRippleTrigger",l)("matRippleDisabled",t.disableRipple||t.disabled)}},dependencies:[ai,Xa],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 i})(),Oo=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({imports:[ne,Mt,bi,ne]})}return i})();var Al=["Core","Gauge","Component","Racing"];var Fo=(()=>{class i{_plugins=m(mi);_widgetCategories=[...Al];_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 N(this,null,function*(){let e={},a=Array.from(new Set(this._widgetDefinition.flatMap(t=>[...t.requiredPlugins||[],...t.optionalPlugins||[]])));return yield Promise.all(a.map(t=>N(this,null,function*(){e[t]=yield this._plugins.isEnabled(t)}))),this._widgetDefinition.map(t=>{let l=t.requiredPlugins||[],d=t.optionalPlugins||[],u=l.map(E=>({name:E,enabled:e[E],required:!0})),_=d.map(E=>({name:E,enabled:e[E],required:!1})),T=[...u,..._],k=u.every(E=>E.enabled);return k&&d.length>0&&(k=_.some(E=>E.enabled)),_e(de({},t),{isDependencyValid:k,pluginsStatus:T})})})}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function gl(i,c){i&1&&(n(0,"span"),r(1,", "),o())}function hl(i,c){if(i&1&&(n(0,"span",8),r(1),n(2,"span",9),r(3),o()(),A(4,gl,2,0,"span")),i&2){let e=c.$implicit,a=c.$index,t=c.$count,l=f(2);p("ngClass",l.pluginDependencyValid()?e.required?"":e.enabled?"dependency-optional-present-met":"dependency-optional-missing-met":e.enabled?e.required?"dependency-required-ok":"dependency-optional-ok":e.required?"dependency-required-error":"dependency-optional-error"),W("title",e.required?"Required":"Optional"),s(),_t(" ",e.enabled?"\u2714":"\u2716"," ",e.name," "),s(2),S(e.required?"":"(optional)"),s(),g(a!==t-1?4:-1)}}function fl(i,c){if(i&1&&(n(0,"div",7)(1,"span"),r(2,"Plugins:"),o(),M(3,hl,5,6,null,null,G),o()),i&2){let e=f();bt(e.pluginsStatus().length>0?"margin-bottom: 8px;margin-top: 4px;":""),s(),Be(e.pluginDependencyValid()?"":"dependency-error"),s(2),w(e.pluginsStatus())}}var Lo=(()=>{class i{svgIcon=h.required();iconSize=h.required();name=h.required();description=h.required();pluginsStatus=h.required();pluginDependencyValid=h.required();onKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.target.click())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["widget-list-card"]],hostBindings:function(a,t){a&1&&C("keydown",function(d){return t.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,t){a&1&&(n(0,"div",0)(1,"div",1),b(2,"mat-icon",2),o(),n(3,"div",3)(4,"p",4),r(5),o(),A(6,fl,5,4,"div",5),n(7,"span",6),r(8),o()()()),a&2&&(W("aria-disabled",t.pluginDependencyValid()?null:"true"),s(2),Ye("width",t.iconSize(),"px")("height",t.iconSize(),"px"),p("svgIcon",t.svgIcon()),s(2),bt(t.pluginsStatus().length>0?"margin-bottom:0px; margin-top: 4px":""),s(),S(t.name()),s(),g(t.pluginsStatus().length>0?6:-1),s(2),S(t.description()))},dependencies:[Zt,la,Z,F],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 i})();var bl=(i,c)=>c.selector;function _l(i,c){if(i&1&&(n(0,"mat-button-toggle",1),r(1),o()),i&2){let e=c.$implicit;p("value",e),s(),q(" ",e," ")}}function vl(i,c){if(i&1){let e=P();n(0,"widget-list-card",3),C("click",function(){let t=y(e).$implicit,l=f();return x(l.onSelectWidget(t))}),o()}if(i&2){let e=c.$implicit;O("dependency-missing",!e.isDependencyValid),p("svgIcon",e.icon)("iconSize",48)("name",e.name)("description",e.description)("pluginDependencyValid",e.isDependencyValid)("pluginsStatus",e.pluginsStatus)}}var Bo=(()=>{class i{_dialogRef=m(Se);_widgets=m(Fo);_widgetsList=[];filteredWidgetsList=D([]);_widgetCategory=D("Core");isDependencyValid=D(!0);ngOnInit(){this.loadWidgets()}loadWidgets(){return N(this,null,function*(){this._widgetsList=yield this._widgets.getKipWidgetsWithStatus(),this.filteredWidgetsList.set(this._widgetsList.filter(e=>e.category===this._widgetCategory()))})}onCategoryChange(e){this.filteredWidgetsList.set(this._widgetsList.filter(a=>a.category===e.value)),this._widgetCategory.set(e.value)}onSelectWidget(e){if(!e.isDependencyValid)return;let{name:a,description:t,icon:l,minWidth:d,minHeight:u,defaultWidth:_,defaultHeight:T,category:k,requiredPlugins:E,optionalPlugins:at,selector:ot,componentClassName:Wt}=e,nt=_e(de({name:a,description:t,icon:l,minWidth:d,minHeight:u,defaultWidth:_,defaultHeight:T,category:k,requiredPlugins:E},at?{optionalPlugins:at}:{}),{selector:ot,componentClassName:Wt});this._dialogRef.close(nt)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"div")(1,"mat-button-toggle-group",0),C("change",function(d){return t.onCategoryChange(d)}),M(2,_l,2,2,"mat-button-toggle",1,G),o(),n(4,"div"),M(5,vl,1,8,"widget-list-card",2,bl),o()()),a&2&&(s(),p("value",t._widgetCategory()),s(),w(t._widgets.categories),s(3),w(t.filteredWidgetsList()))},dependencies:[Oo,Li,bi,Lo],styles:[".list-filter[_ngcontent-%COMP%]{margin-bottom:20px}.dependency-missing[_ngcontent-%COMP%]{pointer-events:none;opacity:.8;background-color:var(--mat-sys-neutral10)}"]})}return i})();var Vo=(()=>{class i{dialogRef=m(Se);fileVersionToUpgrade=9;configVersionToUpgrade=10;currentConfigVersion=11;_storage=m(Aa);_settings=m(Xt);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(e=>N(this,null,function*(){for(let a of e){let t=yield this.transformConfig(a);if(t)if(t.scope==="global")try{this._storage.patchGlobal(t.name,t.scope,t.newConfiguration,"add"),this._storage.patchGlobal(t.name,t.scope,t.oldConfiguration,"replace",9),console.log(`[Upgrade] Configuration ${t.scope}/${t.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(t.scope,t.name,t.newConfiguration).then(()=>{this._storage.setConfig(t.scope,t.name,t.oldConfiguration,9),console.log(`[Upgrade] Configuration ${t.scope}/${t.name} has been upgraded to version ${this.currentConfigVersion} and saved. Old configuration has been patched to version 0.`)}).catch(l=>{console.error(`[Upgrade] Error saving configuration for ${a.name}:`,l)})}})).catch(e=>{console.error("Error fetching configuration data:",e)});else{let e={app:null,widget:null,layout:null,theme:null};e.app=this._settings.loadConfigFromLocalStorage("appConfig"),e.widget=this._settings.loadConfigFromLocalStorage("widgetConfig"),e.layout=this._settings.loadConfigFromLocalStorage("layoutConfig"),e.theme=this._settings.loadConfigFromLocalStorage("themeConfig");let a=this.transformApp(e.app),t=this.transformTheme(e.theme),l=e.layout?.rootSplits||[],d=e.layout?.splitSets||[],u=e.widget?.widgets||[],_=l.map((T,k)=>{let E=this.extractWidgetsFromSplitSets(d,u,T);return{id:T,name:`Dashboard ${k+1}`,configuration:E}});localStorage.setItem("appConfig",JSON.stringify(a)),localStorage.setItem("dashboardsConfig",JSON.stringify(_)),localStorage.setItem("themeConfig",JSON.stringify(t))}setTimeout(()=>{this._settings.reloadApp()},1500)}transformConfig(e){return N(this,null,function*(){let a=yield this._storage.getConfig(e.scope,e.name,this.fileVersionToUpgrade);if(a.app.configVersion!==this.configVersionToUpgrade)return console.error(`[Upgrade Component] Configuration ${e.scope}/${e.name} is not an upgradable version ${this.configVersionToUpgrade} config. Skipping upgrade. Please delete old configuration files.`),null;let t=this.transformApp(a.app),l=this.transformTheme(a.theme),d=a.layout?.rootSplits||[],u=a.layout?.splitSets||[],_=a.widget?.widgets||[],T=d.map((E,at)=>{let ot=this.extractWidgetsFromSplitSets(u,_,E);return{id:E,name:`Dashboard ${at+1}`,configuration:ot}}),k=Kt(a);return k.app.configVersion=0,{scope:e.scope,name:e.name,newConfiguration:{app:t,theme:l,dashboards:T},oldConfiguration:k}})}transformWidget(e,a){if(e.color==="white"&&(e.color="contrast"),e.textColor){switch(e.textColor){case"text":e.color="contrast";break;case"primary":e.color="blue";break;case"accent":e.color="yellow";break;case"warn":e.color="purple";break;case"nobar":a==="WidgetGaugeNgLinearComponent"&&(e.color="blue",e.gauge=e.gauge||{},e.gauge.useNeedle=!1);break;default:e.color=e.textColor}delete e.textColor}return e}transformApp(e){return e?(e.configVersion=11,e.nightModeBrightness=.27,e):null}transformTheme(e){return e?{themeName:""}:null}extractWidgetsFromSplitSets(e,a,t){let l=new Map(a.map(nt=>[nt.uuid,nt])),d=[],u=[],_=0,T=0,k=12,E=12,at=2,ot=2,Wt=nt=>{let Wi=e.find(rt=>rt.uuid===nt);if(!Wi){u.push(`Missing splitSet with UUID: ${nt}`);return}Wi.splitAreas.forEach(rt=>{if(rt.type==="widget"){let Fe=l.get(rt.uuid);if(Fe){if(Fe.type==="WidgetBlank"){console.warn(`Skipping widget of type WidgetBlank with UUID: ${Fe.uuid}`);return}if(T+ot>E){u.push(`No space left in the grid for widget with UUID: ${Fe.uuid}`);return}let Ui=i.widgetTypeToSelectorMap[Fe.type]||"widget-unknown",Ho=this.transformWidget(Fe.config,Fe.type);d.push({id:Fe.uuid,selector:Ui,input:{widgetProperties:{type:Ui,uuid:Fe.uuid,config:Ho}},x:_,y:T,w:at,h:ot}),_+=at,_>=k&&(_=0,T+=ot)}else u.push(`Missing widget with UUID: ${rt.uuid}`)}else rt.type==="splitSet"&&Wt(rt.uuid)})};return Wt(t),u.length>0&&console.warn("Transformation Issues:",u),d}startFresh(){if(this._storage.initConfig)this._storage.listConfigs(this.fileVersionToUpgrade).then(e=>N(this,null,function*(){for(let a of e){let t=yield this._storage.getConfig(a.scope,a.name,this.fileVersionToUpgrade);if(t.app.configVersion=0,a.scope==="global")try{setTimeout(()=>{this._storage.patchGlobal(a.name,a.scope,t,"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,t,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(e=>{console.error("Error fetching configuration data:",e)});else{let e={app:null,dashboards:null,theme:null};e.app=this._settings.loadConfigFromLocalStorage("appConfig"),e.theme=this._settings.loadConfigFromLocalStorage("themeConfig"),e.app.configVersion=11,e.app.nightModeBrightness=.27,e.theme.themeName="",localStorage.setItem("appConfig",JSON.stringify(e.app)),localStorage.setItem("themeConfig",JSON.stringify(e.theme)),localStorage.removeItem("widgetConfig"),localStorage.removeItem("layoutConfig")}this.dialogRef.close()}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,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,t){a&1&&(n(0,"h2"),r(1,"All New Touch, Mouse, and Keyboard Navigation"),o(),n(2,"p",0)(3,"strong"),r(4,"Heads up:"),o(),r(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"),r(10,"Actions"),o(),n(11,"th"),r(12,"Touch"),o(),n(13,"th"),r(14,"Mouse"),o(),n(15,"th"),r(16,"Keyboard Shortcuts"),o()()(),n(17,"tbody")(18,"tr")(19,"td"),r(20,"Open Actions menu"),o(),n(21,"td"),r(22,"Swipe left"),o(),n(23,"td"),r(24,"Click, drag left, and release"),o(),n(25,"td")(26,"kbd"),r(27,"Shift"),o(),r(28," + "),n(29,"kbd"),r(30,"Ctrl"),o(),r(31," + "),n(32,"kbd",2),r(33,"\u2190"),o(),r(34," (Left Arrow)"),o()(),n(35,"tr")(36,"td"),r(37,"Open Notification menu"),o(),n(38,"td"),r(39,"Swipe right"),o(),n(40,"td"),r(41,"Click, drag right, and release"),o(),n(42,"td")(43,"kbd"),r(44,"Shift"),o(),r(45," + "),n(46,"kbd"),r(47,"Ctrl"),o(),r(48," + "),n(49,"kbd",2),r(50,"\u2192"),o(),r(51," (Right Arrow)"),o()(),n(52,"tr")(53,"td"),r(54,"Cycle through dashboards"),o(),n(55,"td"),r(56,"Swipe up/down"),o(),n(57,"td"),r(58,"Click, drag up/down, and release"),o(),n(59,"td")(60,"kbd"),r(61,"Shift"),o(),r(62," + "),n(63,"kbd"),r(64,"Ctrl"),o(),r(65," + "),n(66,"kbd",2),r(67,"\u2191"),o(),r(68,"/"),n(69,"kbd",2),r(70,"\u2193"),o(),r(71," (Up/Down Arrow)"),o()(),n(72,"tr")(73,"td"),r(74,"Toggle Fullscreen"),o(),n(75,"td"),r(76,"N/A"),o(),n(77,"td"),r(78,"N/A"),o(),n(79,"td")(80,"kbd"),r(81,"Shift"),o(),r(82," + "),n(83,"kbd"),r(84,"Ctrl"),o(),r(85," + "),n(86,"kbd"),r(87,"F"),o()()(),n(88,"tr")(89,"td"),r(90,"Toggle Night mode"),o(),n(91,"td"),r(92,"N/A"),o(),n(93,"td"),r(94,"N/A"),o(),n(95,"td")(96,"kbd"),r(97,"Shift"),o(),r(98," + "),n(99,"kbd"),r(100,"Ctrl"),o(),r(101," + "),n(102,"kbd"),r(103,"N"),o()()(),n(104,"tr")(105,"td"),r(106,"Toggle dashboard edit mode"),o(),n(107,"td"),r(108,"N/A"),o(),n(109,"td"),r(110,"N/A"),o(),n(111,"td")(112,"kbd"),r(113,"Shift"),o(),r(114," + "),n(115,"kbd"),r(116,"Ctrl"),o(),r(117," + "),n(118,"kbd"),r(119,"E"),o()()()()(),n(120,"i"),r(121,"Note that the words Touch and Tap are synonymous with mouse click."),o(),b(122,"br")(123,"br"),n(124,"h2"),r(125,"Migration Limitations"),o(),n(126,"p")(127,"span",0),r(128,"Important:"),o(),r(129," The new widget layout engine is "),n(130,"strong"),r(131,"completely different"),o(),r(132," from the previous version. When you upgrade, your configuration will be migrated, but "),n(133,"strong"),r(134,"the way dashboards and widgets are arranged will change significantly"),o(),r(135,`.
7
7
  `),o(),n(136,"ul")(137,"li"),r(138,"All KIP configuration settings will be migrated."),o(),n(139,"li"),r(140,"Each v2 Page layout will become a v3 Dashboard."),o(),n(141,"li"),r(142,"All widgets and their settings will appear in their new dashboards."),o(),n(143,"li")(144,"span",0)(145,"strong"),r(146,"Note:"),o(),r(147," Widget positions, order, and sizes "),n(148,"strong"),r(149,"WILL BE LOST"),o(),r(150,". After upgrading, dashboards will contain small widgets that you must reposition and resize manually."),o()()(),n(151,"p"),r(152,"To upgrade your configuration, follow these steps:"),o(),n(153,"ol")(154,"li"),r(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"),r(157,"9.0.0.json"),o(),r(158," files found on the Signal K server in the following folders: "),n(159,"ul")(160,"li")(161,"code"),r(162,"~/.signalk/applicationData/users/(username)/kip/"),o()(),n(163,"li")(164,"code"),r(165,"~/.signalk/applicationData/global/kip/"),o()()()(),n(166,"li"),r(167,"Click the "),n(168,"strong"),r(169,"Upgrade"),o(),r(170," button below."),o(),n(171,"li"),r(172,"Once the upgrade is complete, KIP will restart and display the migrated dashboards."),o(),n(173,"li"),r(174,"Reposition and resize your widgets as needed."),o(),n(175,"li"),r(176,"Once satisfied, delete the "),n(177,"code"),r(178,"9.0.0.json"),o(),r(179," configuration files located in the previously mentioned folders. They are not needed any more."),o()(),n(180,"p"),r(181," For tips and guidance, consult KIP\u2019s in-app "),n(182,"strong"),r(183,"Help"),o(),r(184," section. Most common questions are answered there. If you need support, join the "),n(185,"a",3),r(186,"Signal K #kip Discord channel"),o(),r(187,`.
8
- `),o(),n(188,"div",4)(189,"button",5),C("click",function(){return t.upgrade()}),r(190,"Upgrade"),o(),n(191,"button",6),C("click",function(){return t.startFresh()}),r(192,"Start Fresh"),o()())},dependencies:[pe,le,we],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 i})();var Cl=(i,c)=>c.id;function yl(i,c){if(i&1){let e=P();n(0,"div",2),C("click",function(){let t=y(e).$implicit,l=f();return x(l.selectIcon(t.id))})("keydown.enter",function(){let t=y(e).$implicit,l=f();return x(l.selectIcon(t.id))})("keydown.space",function(t){let l=y(e).$implicit;return f().selectIcon(l.id),x(t.preventDefault())}),n(1,"div",3),b(2,"mat-icon",4),o()()}if(i&2){let e=c.$implicit,a=f();O("selected",a.selected()===e.id),W("aria-label","Select "+e.id+" icon"),s(2),Ye("width",64,"px")("height",64,"px"),p("svgIcon",e.id)}}var Ro=(()=>{class i{iconFile=h("assets/svg/icons.svg");currentIcon=h("");selectedIcon=z();icons=D([]);selected=D("");constructor(){this.loadIcons(),vt(()=>{let e=this.currentIcon();oa(()=>{e&&this.selected()!==e&&this.selected.set(e)})})}loadIcons(){return N(this,null,function*(){try{let a=yield(yield fetch(this.iconFile())).text(),d=new DOMParser().parseFromString(a,"image/svg+xml").querySelector("defs");if(!d)return;let u=d.querySelectorAll("svg"),_=[];u.forEach(k=>{let E=k.getAttribute("id");E&&E.startsWith("dashboard-")&&_.push({id:E})}),this.icons.set(_);let T=this.currentIcon();T&&this.selected.set(T)}catch(e){console.error("Error loading icons:",e)}})}selectIcon(e){this.selected.set(e),this.selectedIcon.emit(e)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["select-icon"]],inputs:{iconFile:[1,"iconFile"],currentIcon:[1,"currentIcon"]},outputs:{selectedIcon:"selectedIcon"},decls:3,vars:0,consts:[[1,"icon-grid"],["tabindex","0",1,"icon-item",3,"selected"],["tabindex","0",1,"icon-item",3,"click","keydown.enter","keydown.space"],[1,"icon-container"],["aria-hidden","false",3,"svgIcon"]],template:function(a,t){a&1&&(n(0,"div",0),M(1,yl,3,8,"div",1,Cl),o()),a&2&&(s(),w(t.icons()))},dependencies:[Xt,Z,F],styles:[".icon-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:16px;padding:16px;max-height:400px;overflow-y:auto}.icon-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:8px;border:2px solid transparent;border-radius:8px;cursor:pointer;transition:border-color .2s ease;background-color:var(--mat-sys-surface-container-low)}.icon-item[_ngcontent-%COMP%]:hover{border-color:var(--mat-sys-outline-variant)}.icon-item.selected[_ngcontent-%COMP%]{background-color:var(--mat-sys-on-tertiary)}.icon-item[_ngcontent-%COMP%]:focus{outline:2px solid var(--mat-sys-tertiary);outline-offset:2px}.icon-container[_ngcontent-%COMP%]{width:64px;height:64px;display:flex;align-items:center;justify-content:center;overflow:hidden}.icon-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:100%;height:100%;fill:currentColor}"]})}return i})();function xl(i,c){if(i&1&&(n(0,"button",12),r(1),o()),i&2){let e=f(),a=se(1);p("disabled",!a.valid),s(),S(e.data.confirmBtnText)}}var No=(()=>{class i{dialogRef=m(Se);data=m(ke);constructor(){this.data.icon||(this.data.icon="dashboard-dashboard")}save(){this.dialogRef.close(this.data)}onIconSelected(e){this.data.icon=e}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["dialog-dashboard-page-editor"]],decls:23,vars:8,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"],[1,"field-margin","icon-section"],[2,"font-size","1.2em"],[3,"selectedIcon","iconFile","currentIcon"],["align","end"],["mat-flat-button","",3,"mat-dialog-close"],["mat-flat-button","","type","submit",3,"disabled"]],template:function(a,t){if(a&1){let l=P();n(0,"form",1,0),C("ngSubmit",function(){return y(l),x(t.save())}),n(2,"div",2)(3,"h5",3),r(4),o(),n(5,"button",4)(6,"mat-icon"),r(7,"close"),o()()(),n(8,"mat-dialog-content")(9,"mat-form-field",5)(10,"mat-label"),r(11,"Name"),o(),n(12,"input",6),Ht("ngModelChange",function(u){return y(l),Yt(t.data.name,u)||(t.data.name=u),x(u)}),o(),n(13,"mat-error"),r(14," A name is required "),o()(),n(15,"div",7)(16,"span",8),r(17,"Icon"),o(),n(18,"select-icon",9),C("selectedIcon",function(u){return y(l),x(t.onIconSelected(u))}),o()()(),n(19,"mat-dialog-actions",10)(20,"button",11),r(21),o(),A(22,xl,2,2,"button",12),o()()}a&2&&(s(4),S(t.data.title),s(),p("mat-dialog-close",!1),s(7),jt("ngModel",t.data.name),s(6),p("iconFile","assets/svg/icons.svg")("currentIcon",t.data.icon),s(2),p("mat-dialog-close",!1),s(),S(t.data.cancelBtnText),s(),g(t.data.confirmBtnText?22:-1))},dependencies:[pe,Te,Ee,Je,De,Z,F,Ae,R,V,Tt,Ge,te,le,we,re,ee,wt,X,L,J,B,si,li,Ro],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}.icon-section[_ngcontent-%COMP%] .mat-label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:var(--mat-sys-on-surface);font-size:14px;font-weight:400}"]})}return i})();var iu=(()=>{class i{dialog=m(Wa);openFrameDialog(e,a){switch(e.component){case"select-widget":e.componentType=Bo;break;case"upgrade-config":e.componentType=Vo;break}return this.dialog.open(po,{data:e,height:a?"calc(100% - 30px)":"",width:a?"calc(100% - 30px)":"",maxWidth:a?"100%":"",maxHeight:a?"100%":""}).afterClosed()}openConfirmationDialog(e){return this.dialog.open(uo,{data:e,minWidth:"35vw",minHeight:"25vh"}).afterClosed()}openNameDialog(e){return this.dialog.open(Ao,{data:e,minWidth:"20vw",minHeight:"20vh",disableClose:!1})}openDashboardPageEditorDialog(e){return this.dialog.open(No,{data:e,minWidth:"60vw",maxWidth:"90vw",maxHeight:"95vh",disableClose:!1})}openWidgetOptions(e){return this.dialog.open(Io,{data:e.config,minWidth:"50vw",maxWidth:"90vw"})}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Wo=[["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"]],Ne=(()=>{if(typeof document>"u")return!1;let i=Wo[0],c={};for(let e of Wo)if(e?.[1]in document){for(let[t,l]of e.entries())c[i[t]]=l;return c}return!1})(),Uo={change:Ne.fullscreenchange,error:Ne.fullscreenerror},ce={request(i=document.documentElement,c){return new Promise((e,a)=>{let t=()=>{ce.off("change",t),e()};ce.on("change",t);let l=i[Ne.requestFullscreen](c);l instanceof Promise&&l.then(t).catch(a)})},exit(){return new Promise((i,c)=>{if(!ce.isFullscreen){i();return}let e=()=>{ce.off("change",e),i()};ce.on("change",e);let a=document[Ne.exitFullscreen]();a instanceof Promise&&a.then(e).catch(c)})},toggle(i,c){return ce.isFullscreen?ce.exit():ce.request(i,c)},onchange(i){ce.on("change",i)},onerror(i){ce.on("error",i)},on(i,c){let e=Uo[i];e&&document.addEventListener(e,c,!1)},off(i,c){let e=Uo[i];e&&document.removeEventListener(e,c,!1)},raw:Ne};Object.defineProperties(ce,{isFullscreen:{get:()=>!!document[Ne.fullscreenElement]},element:{enumerable:!0,get:()=>document[Ne.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Ne.fullscreenEnabled]}});Ne||(ce={isEnabled:!1});var be=ce;var Ml="data:video/webm;base64,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",wl="data:video/mp4;base64,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",Bi=class{constructor(){this.enabled=!1}enable(){throw new Error("NoSleep using SSR/no-op mode; do not call enable.")}disable(){throw new Error("NoSleep using SSR/no-op mode; do not call disable.")}},Vi=class{constructor(){this.enabled=!1;let c=()=>this.wakeLock&&document.visibilityState==="visible"&&this.enable();document.addEventListener("visibilitychange",c),document.addEventListener("fullscreenchange",c)}enable(){return N(this,null,function*(){try{this.wakeLock=yield navigator.wakeLock.request("screen"),this.enabled=!0,console.debug("Wake Lock active."),this.wakeLock.addEventListener("release",()=>{console.debug("Wake Lock released.")})}catch(c){this.enabled=!1,c instanceof Error&&console.error(`${c.name}, ${c.message}`)}})}disable(){var c;(c=this.wakeLock)==null||c.release(),this.wakeLock=void 0,this.enabled=!1}},Ri=class{constructor(){var c;this.enabled=!1,this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",Ml),this._addSourceToVideo(this.noSleepVideo,"mp4",wl),Object.assign(this.noSleepVideo.style,{position:"absolute",left:"-100%",top:"-100%"}),(c=document.querySelector("body"))==null||c.append(this.noSleepVideo),this.noSleepVideo.addEventListener("loadedmetadata",()=>{this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",()=>{this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())})})}_addSourceToVideo(c,e,a){let t=document.createElement("source");t.src=a,t.type=`video/${e}`,c.appendChild(t)}enable(){return N(this,null,function*(){let c=this.noSleepVideo.play();try{let e=yield c;return this.enabled=!0,e}catch(e){this.enabled=!1,e instanceof Error&&console.error(`${e.name}, ${e.message}`)}})}disable(){this.noSleepVideo.pause(),this.enabled=!1}},Qo=typeof navigator>"u"?Bi:"wakeLock"in navigator&&!navigator.standalone?Vi:Ri;var mu=(()=>{class i{isDragging=D(!1);fullscreenStatus=D(!1);fullscreenSupported=D(!0);noSleepStatus=D(!1);noSleepSupported=D(!0);noSleep=null;initialTouchX=null;initialTouchY=null;hotkeyListeners=new Map;boundPreventGestures=null;fullscreenChangeHandler=()=>{if(this.fullscreenStatus.set(be.isFullscreen),!be.isFullscreen&&this.noSleep&&this.noSleepStatus()){try{this.noSleep.disable()}catch{}this.noSleepStatus.set(!1)}};constructor(){window.__KIP_TEST__?(this.fullscreenSupported.set(!1),this.noSleepSupported.set(!1)):(be.isEnabled?be.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 Qo),!this.noSleep||typeof this.noSleep.enable!="function"||typeof this.noSleep.disable!="function")throw new Error("[UI Event Service] NoSleep methods not available")}catch(e){this.noSleepSupported.set(!1),console.warn(`[UI Event Service] NoSleep is not supported by this device/browser. Error: ${e}`),this.noSleep=null}}checkPwaMode(){let e=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone!==void 0;return console.log("[UI Event Service] PWA mode:",e),e}toggleNoSleep(){if(this.noSleepSupported()){if(this.noSleepStatus())try{this.noSleep?.disable()}catch{}else{this.noSleep||this.checkNoSleepSupport();try{this.noSleep?.enable()}catch(e){console.warn("[UI Event Service] Failed to enable NoSleep:",e)}}this.noSleepStatus.set(!this.noSleepStatus()),console.log("[UI Event Service] NoSleep active:",this.noSleepStatus())}}toggleFullScreen(){if(be.isEnabled){if(this.fullscreenStatus()){if(be.isFullscreen&&be.exit(),this.noSleepStatus()){try{this.noSleep?.disable()}catch{}this.noSleepStatus.set(!1)}}else if(be.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(e,a){this.boundPreventGestures||(this.boundPreventGestures=this.preventBrowserHistorySwipeGestures.bind(this)),document.addEventListener("openLeftSidenav",e),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(e,a){document.removeEventListener("openLeftSidenav",e),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(e){if(e instanceof TouchEvent&&e.touches.length===1){let a=e.touches[0],t=30;if(e.type==="touchstart")this.initialTouchX=a.clientX,this.initialTouchY=a.clientY;else if(e.type==="touchmove"&&this.initialTouchX!==null&&this.initialTouchY!==null){let l=Math.abs(a.clientX-this.initialTouchX),d=Math.abs(a.clientY-this.initialTouchY);l>10&&l>d&&(this.initialTouchX<t||this.initialTouchX>window.innerWidth-t)&&e.preventDefault(),d>10&&this.initialTouchY<50&&e.preventDefault()}else(e.type==="touchend"||e.type==="touchcancel")&&(this.initialTouchX=null,this.initialTouchY=null)}}addHotkeyListener(e,a){let t=l=>{if(l instanceof KeyboardEvent){let d=l.key.toLowerCase();if(a&&(a.keys&&!a.keys.includes(d)||a.ctrlKey!==void 0&&l.ctrlKey!==a.ctrlKey||a.shiftKey!==void 0&&l.shiftKey!==a.shiftKey))return;e(d,l)}else console.warn("[uiEvent Service] Non-keyboard event detected in addHotkeyListener:",l)};this.hotkeyListeners.set(e,t),document.addEventListener("keydown",t)}removeHotkeyListener(e){let a=this.hotkeyListeners.get(e);a&&(document.removeEventListener("keydown",a),this.hotkeyListeners.delete(e))}ngOnDestroy(){if(be.isEnabled)try{be.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[,e]of this.hotkeyListeners.entries())document.removeEventListener("keydown",e);this.hotkeyListeners.clear()}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Sl(i,c){}var qo="_mat-bottom-sheet-enter",zo="_mat-bottom-sheet-exit",kl=(()=>{class i extends Va{_breakpointSubscription;_animationsDisabled=Me();_animationState="void";_animationStateChanged=new me;_destroyed;constructor(){super();let e=m(ti);this._breakpointSubscription=e.observe([Re.Medium,Re.Large,Re.XLarge]).subscribe(()=>{let a=this._elementRef.nativeElement.classList;a.toggle("mat-bottom-sheet-container-medium",e.isMatched(Re.Medium)),a.toggle("mat-bottom-sheet-container-large",e.isMatched(Re.Large)),a.toggle("mat-bottom-sheet-container-xlarge",e.isMatched(Re.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._animationsDisabled&&this._simulateAnimation(qo))}exit(){this._destroyed||(this._elementRef.nativeElement.setAttribute("mat-exit",""),this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._animationsDisabled&&this._simulateAnimation(zo))}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_simulateAnimation(e){this._ngZone.run(()=>{this._handleAnimationEvent(!0,e),setTimeout(()=>this._handleAnimationEvent(!1,e))})}_trapFocus(){super._trapFocus({preventScroll:!0})}_handleAnimationEvent(e,a){let t=a===qo;(t||a===zo)&&this._animationStateChanged.emit({toState:t?"visible":"hidden",phase:e?"start":"done"})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(a,t){a&1&&C("animationstart",function(d){return t._handleAnimationEvent(!0,d.animationName)})("animationend",function(d){return t._handleAnimationEvent(!1,d.animationName)})("animationcancel",function(d){return t._handleAnimationEvent(!1,d.animationName)}),a&2&&(W("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-label",t._config.ariaLabel),O("mat-bottom-sheet-container-animations-enabled",!t._animationsDisabled)("mat-bottom-sheet-container-enter",t._animationState==="visible")("mat-bottom-sheet-container-exit",t._animationState==="hidden"))},features:[ze],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a,t){a&1&&Le(0,Sl,0,0,"ng-template",0)},dependencies:[Ta],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 i})(),Tl=new oe("MatBottomSheetData"),Ni=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},vi=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new pt;_result;_closeFallbackTimeout;constructor(c,e,a){this._ref=c,this.containerInstance=a,this.disableClose=e.disableClose,a._animationStateChanged.pipe(Ue(t=>t.phase==="done"&&t.toState==="visible"),At(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),a._animationStateChanged.pipe(Ue(t=>t.phase==="done"&&t.toState==="hidden"),At(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),c.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),We(this.backdropClick(),this.keydownEvents().pipe(Ue(t=>t.keyCode===27))).subscribe(t=>{!this.disableClose&&(t.type!=="keydown"||!Ct(t))&&(t.preventDefault(),this.dismiss())})}dismiss(c){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Ue(e=>e.phase==="start"),At(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}},El=new oe("mat-bottom-sheet-default-options"),Dl=(()=>{class i{_injector=m(Qe);_parentBottomSheet=m(i,{optional:!0,skipSelf:!0});_animationsDisabled=Me();_defaultOptions=m(El,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=m(Ra);get _openedBottomSheetRef(){let e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}constructor(){}open(e,a){let t=de(de({},this._defaultOptions||new Ni),a),l;return this._dialog.open(e,_e(de({},t),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:kl,scrollStrategy:t.scrollStrategy||Ga(this._injector),positionStrategy:Fa(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:l}),providers:(d,u,_)=>(l=new vi(d,t,_),[{provide:vi,useValue:l},{provide:Tl,useValue:t.data}])})),l.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===l&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>l.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):l.containerInstance.enter(),this._openedBottomSheetRef=l,l}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Tu=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({providers:[Dl],imports:[Na,ne,Ea,ne]})}return i})();var jo=["*"],Il=`.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
- `,Gl=["unscopedContent"],Pl=["text"],Ol=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Fl=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Ll=new oe("ListOption"),Bl=(()=>{class i{_elementRef=m(he);constructor(){}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),Vl=(()=>{class i{_elementRef=m(he);constructor(){}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),Rl=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),Yo=(()=>{class i{_listOption=m(Ll,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,hostVars:4,hostBindings:function(a,t){a&2&&O("mdc-list-item__start",t._isAlignedAtStart())("mdc-list-item__end",!t._isAlignedAtStart())}})}return i})(),Nl=(()=>{class i extends Yo{static \u0275fac=(()=>{let e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275dir=j({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[ze]})}return i})(),Wl=(()=>{class i extends Yo{static \u0275fac=(()=>{let e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275dir=j({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[ze]})}return i})(),Ul=new oe("MAT_LIST_CONFIG"),Nt=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=xt(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(xt(e))}_disabled=D(!1);_defaultOptions=m(Ul,{optional:!0});static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,hostVars:1,hostBindings:function(a,t){a&2&&W("aria-disabled",t.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),Ql=(()=>{class i{_elementRef=m(he);_ngZone=m(ft);_listBase=m(Nt,{optional:!0});_platform=m($t);_hostElement;_isButtonElement;_noopAnimations=Me();_avatars;_icons;set lines(e){this._explicitLines=fa(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=xt(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(xt(e))}_disabled=D(!1);_subscriptions=new mt;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){m(ei).load(ni);let e=m(wa,{optional:!0});this.rippleConfig=e||{},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 Ma(this,this._ngZone,this._hostElement,this._platform,m(Qe)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(We(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let a=this._explicitLines??this._inferLinesFromContent(),t=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 l=this._titles.length===0&&a===1;t.classList.toggle("mdc-list-item__primary-text",l),t.classList.toggle("mdc-list-item__secondary-text",!l)}else t.classList.remove("mdc-list-item__primary-text"),t.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,contentQueries:function(a,t,l){if(a&1&&(fe(l,Nl,4),fe(l,Wl,4)),a&2){let d;Y(d=H())&&(t._avatars=d),Y(d=H())&&(t._icons=d)}},hostVars:4,hostBindings:function(a,t){a&2&&(W("aria-disabled",t.disabled)("disabled",t._isButtonElement&&t.disabled||null),O("mdc-list-item--disabled",t.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})();var iA=(()=>{class i extends Nt{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[He([{provide:Nt,useExisting:i}]),ze],ngContentSelectors:jo,decls:1,vars:0,template:function(a,t){a&1&&(xe(),ae(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 i})();var aA=(()=>{class i extends Nt{static \u0275fac=(()=>{let e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[He([{provide:Nt,useExisting:i}]),ze],ngContentSelectors:jo,decls:1,vars:0,template:function(a,t){a&1&&(xe(),ae(0))},styles:[Il],encapsulation:2,changeDetection:0})}return i})(),oA=(()=>{class i extends Ql{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=xt(e)}_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 e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,t,l){if(a&1&&(fe(l,Vl,5),fe(l,Bl,5),fe(l,Rl,5)),a&2){let d;Y(d=H())&&(t._lines=d),Y(d=H())&&(t._titles=d),Y(d=H())&&(t._meta=d)}},viewQuery:function(a,t){if(a&1&&(je(Gl,5),je(Pl,5)),a&2){let l;Y(l=H())&&(t._unscopedContent=l.first),Y(l=H())&&(t._itemText=l.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,t){a&2&&(W("aria-current",t._getAriaCurrent()),O("mdc-list-item--activated",t.activated)("mdc-list-item--with-leading-avatar",t._avatars.length!==0)("mdc-list-item--with-leading-icon",t._icons.length!==0)("mdc-list-item--with-trailing-meta",t._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",t._hasBothLeadingAndTrailing())("_mat-animation-noopable",t._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[ze],ngContentSelectors:Fl,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,t){if(a&1){let l=P();xe(Ol),ae(0),n(1,"span",1),ae(2,1),ae(3,2),n(4,"span",2,0),C("cdkObserveContent",function(){return y(l),x(t._updateItemLines(!0))}),ae(6,3),o()(),ae(7,4),ae(8,5),b(9,"div",3)}},dependencies:[va],encapsulation:2,changeDetection:0})}return i})();var nA=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({imports:[Ca,ne,Mt,ao,di]})}return i})();export{ys as a,$l as b,ds as c,ui as d,iu as e,mu as f,Tl as g,vi as h,Dl as i,Tu as j,Bl as k,Wl as l,iA as m,aA as n,oA as o,nA as p,bs as q};
8
+ `),o(),n(188,"div",4)(189,"button",5),C("click",function(){return t.upgrade()}),r(190,"Upgrade"),o(),n(191,"button",6),C("click",function(){return t.startFresh()}),r(192,"Start Fresh"),o()())},dependencies:[pe,le,we],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 i})();var Cl=(i,c)=>c.id;function yl(i,c){if(i&1){let e=P();n(0,"div",2),C("click",function(){let t=y(e).$implicit,l=f();return x(l.selectIcon(t.id))})("keydown.enter",function(){let t=y(e).$implicit,l=f();return x(l.selectIcon(t.id))})("keydown.space",function(t){let l=y(e).$implicit;return f().selectIcon(l.id),x(t.preventDefault())}),n(1,"div",3),b(2,"mat-icon",4),o()()}if(i&2){let e=c.$implicit,a=f();O("selected",a.selected()===e.id),W("aria-label","Select "+e.id+" icon"),s(2),Ye("width",64,"px")("height",64,"px"),p("svgIcon",e.id)}}var Ro=(()=>{class i{iconFile=h("assets/svg/icons.svg");currentIcon=h("");selectedIcon=z();icons=D([]);selected=D("");constructor(){this.loadIcons(),vt(()=>{let e=this.currentIcon();oa(()=>{e&&this.selected()!==e&&this.selected.set(e)})})}loadIcons(){return N(this,null,function*(){try{let a=yield(yield fetch(this.iconFile())).text(),d=new DOMParser().parseFromString(a,"image/svg+xml").querySelector("defs");if(!d)return;let u=d.querySelectorAll("svg"),_=[];u.forEach(k=>{let E=k.getAttribute("id");E&&E.startsWith("dashboard-")&&_.push({id:E})}),this.icons.set(_);let T=this.currentIcon();T&&this.selected.set(T)}catch(e){console.error("Error loading icons:",e)}})}selectIcon(e){this.selected.set(e),this.selectedIcon.emit(e)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["select-icon"]],inputs:{iconFile:[1,"iconFile"],currentIcon:[1,"currentIcon"]},outputs:{selectedIcon:"selectedIcon"},decls:3,vars:0,consts:[[1,"icon-grid"],["tabindex","0",1,"icon-item",3,"selected"],["tabindex","0",1,"icon-item",3,"click","keydown.enter","keydown.space"],[1,"icon-container"],["aria-hidden","false",3,"svgIcon"]],template:function(a,t){a&1&&(n(0,"div",0),M(1,yl,3,8,"div",1,Cl),o()),a&2&&(s(),w(t.icons()))},dependencies:[Zt,Z,F],styles:[".icon-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:16px;padding:16px;max-height:400px;overflow-y:auto}.icon-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:8px;border:2px solid transparent;border-radius:8px;cursor:pointer;transition:border-color .2s ease;background-color:var(--mat-sys-surface-container-low)}.icon-item[_ngcontent-%COMP%]:hover{border-color:var(--mat-sys-outline-variant)}.icon-item.selected[_ngcontent-%COMP%]{background-color:var(--mat-sys-on-tertiary)}.icon-item[_ngcontent-%COMP%]:focus{outline:2px solid var(--mat-sys-tertiary);outline-offset:2px}.icon-container[_ngcontent-%COMP%]{width:64px;height:64px;display:flex;align-items:center;justify-content:center;overflow:hidden}.icon-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:100%;height:100%;fill:currentColor}"]})}return i})();function xl(i,c){if(i&1&&(n(0,"button",12),r(1),o()),i&2){let e=f(),a=se(1);p("disabled",!a.valid),s(),S(e.data.confirmBtnText)}}var No=(()=>{class i{dialogRef=m(Se);data=m(ke);constructor(){this.data.icon||(this.data.icon="dashboard-dashboard")}save(){this.dialogRef.close(this.data)}onIconSelected(e){this.data.icon=e}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["dialog-dashboard-page-editor"]],decls:23,vars:8,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"],[1,"field-margin","icon-section"],[2,"font-size","1.2em"],[3,"selectedIcon","iconFile","currentIcon"],["align","end"],["mat-flat-button","",3,"mat-dialog-close"],["mat-flat-button","","type","submit",3,"disabled"]],template:function(a,t){if(a&1){let l=P();n(0,"form",1,0),C("ngSubmit",function(){return y(l),x(t.save())}),n(2,"div",2)(3,"h5",3),r(4),o(),n(5,"button",4)(6,"mat-icon"),r(7,"close"),o()()(),n(8,"mat-dialog-content")(9,"mat-form-field",5)(10,"mat-label"),r(11,"Name"),o(),n(12,"input",6),Yt("ngModelChange",function(u){return y(l),jt(t.data.name,u)||(t.data.name=u),x(u)}),o(),n(13,"mat-error"),r(14," A name is required "),o()(),n(15,"div",7)(16,"span",8),r(17,"Icon"),o(),n(18,"select-icon",9),C("selectedIcon",function(u){return y(l),x(t.onIconSelected(u))}),o()()(),n(19,"mat-dialog-actions",10)(20,"button",11),r(21),o(),A(22,xl,2,2,"button",12),o()()}a&2&&(s(4),S(t.data.title),s(),p("mat-dialog-close",!1),s(7),zt("ngModel",t.data.name),s(6),p("iconFile","assets/svg/icons.svg")("currentIcon",t.data.icon),s(2),p("mat-dialog-close",!1),s(),S(t.data.cancelBtnText),s(),g(t.data.confirmBtnText?22:-1))},dependencies:[pe,Te,Ee,Je,De,Z,F,Ae,R,V,Tt,Ge,te,le,we,re,ee,wt,X,L,J,B,li,ri,Ro],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}.icon-section[_ngcontent-%COMP%] .mat-label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:var(--mat-sys-on-surface);font-size:14px;font-weight:400}"]})}return i})();var tu=(()=>{class i{dialog=m(Wa);openFrameDialog(e,a){switch(e.component){case"select-widget":e.componentType=Bo;break;case"upgrade-config":e.componentType=Vo;break}return this.dialog.open(po,{data:e,height:a?"calc(100% - 30px)":"",width:a?"calc(100% - 30px)":"",maxWidth:a?"100%":"",maxHeight:a?"100%":""}).afterClosed()}openConfirmationDialog(e){return this.dialog.open(uo,{data:e,minWidth:"35vw",minHeight:"25vh"}).afterClosed()}openNameDialog(e){return this.dialog.open(Ao,{data:e,minWidth:"20vw",minHeight:"20vh",disableClose:!1})}openDashboardPageEditorDialog(e){return this.dialog.open(No,{data:e,minWidth:"60vw",maxWidth:"90vw",maxHeight:"95vh",disableClose:!1})}openWidgetOptions(e){return this.dialog.open(Io,{data:e.config,minWidth:"50vw",maxWidth:"90vw"})}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Wo=[["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"]],Ne=(()=>{if(typeof document>"u")return!1;let i=Wo[0],c={};for(let e of Wo)if(e?.[1]in document){for(let[t,l]of e.entries())c[i[t]]=l;return c}return!1})(),Uo={change:Ne.fullscreenchange,error:Ne.fullscreenerror},ce={request(i=document.documentElement,c){return new Promise((e,a)=>{let t=()=>{ce.off("change",t),e()};ce.on("change",t);let l=i[Ne.requestFullscreen](c);l instanceof Promise&&l.then(t).catch(a)})},exit(){return new Promise((i,c)=>{if(!ce.isFullscreen){i();return}let e=()=>{ce.off("change",e),i()};ce.on("change",e);let a=document[Ne.exitFullscreen]();a instanceof Promise&&a.then(e).catch(c)})},toggle(i,c){return ce.isFullscreen?ce.exit():ce.request(i,c)},onchange(i){ce.on("change",i)},onerror(i){ce.on("error",i)},on(i,c){let e=Uo[i];e&&document.addEventListener(e,c,!1)},off(i,c){let e=Uo[i];e&&document.removeEventListener(e,c,!1)},raw:Ne};Object.defineProperties(ce,{isFullscreen:{get:()=>!!document[Ne.fullscreenElement]},element:{enumerable:!0,get:()=>document[Ne.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Ne.fullscreenEnabled]}});Ne||(ce={isEnabled:!1});var be=ce;var Ml="data:video/webm;base64,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",wl="data:video/mp4;base64,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",Bi=class{constructor(){this.enabled=!1}enable(){throw new Error("NoSleep using SSR/no-op mode; do not call enable.")}disable(){throw new Error("NoSleep using SSR/no-op mode; do not call disable.")}},Vi=class{constructor(){this.enabled=!1;let c=()=>this.wakeLock&&document.visibilityState==="visible"&&this.enable();document.addEventListener("visibilitychange",c),document.addEventListener("fullscreenchange",c)}enable(){return N(this,null,function*(){try{this.wakeLock=yield navigator.wakeLock.request("screen"),this.enabled=!0,console.debug("Wake Lock active."),this.wakeLock.addEventListener("release",()=>{console.debug("Wake Lock released.")})}catch(c){this.enabled=!1,c instanceof Error&&console.error(`${c.name}, ${c.message}`)}})}disable(){var c;(c=this.wakeLock)==null||c.release(),this.wakeLock=void 0,this.enabled=!1}},Ri=class{constructor(){var c;this.enabled=!1,this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",Ml),this._addSourceToVideo(this.noSleepVideo,"mp4",wl),Object.assign(this.noSleepVideo.style,{position:"absolute",left:"-100%",top:"-100%"}),(c=document.querySelector("body"))==null||c.append(this.noSleepVideo),this.noSleepVideo.addEventListener("loadedmetadata",()=>{this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",()=>{this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())})})}_addSourceToVideo(c,e,a){let t=document.createElement("source");t.src=a,t.type=`video/${e}`,c.appendChild(t)}enable(){return N(this,null,function*(){let c=this.noSleepVideo.play();try{let e=yield c;return this.enabled=!0,e}catch(e){this.enabled=!1,e instanceof Error&&console.error(`${e.name}, ${e.message}`)}})}disable(){this.noSleepVideo.pause(),this.enabled=!1}},Qo=typeof navigator>"u"?Bi:"wakeLock"in navigator&&!navigator.standalone?Vi:Ri;var du=(()=>{class i{isDragging=D(!1);fullscreenStatus=D(!1);fullscreenSupported=D(!0);noSleepStatus=D(!1);noSleepSupported=D(!0);noSleep=null;initialTouchX=null;initialTouchY=null;hotkeyListeners=new Map;boundPreventGestures=null;fullscreenChangeHandler=()=>{if(this.fullscreenStatus.set(be.isFullscreen),!be.isFullscreen&&this.noSleep&&this.noSleepStatus()){try{this.noSleep.disable()}catch{}this.noSleepStatus.set(!1)}};constructor(){window.__KIP_TEST__?(this.fullscreenSupported.set(!1),this.noSleepSupported.set(!1)):(be.isEnabled?be.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 Qo),!this.noSleep||typeof this.noSleep.enable!="function"||typeof this.noSleep.disable!="function")throw new Error("[UI Event Service] NoSleep methods not available")}catch(e){this.noSleepSupported.set(!1),console.warn(`[UI Event Service] NoSleep is not supported by this device/browser. Error: ${e}`),this.noSleep=null}}checkPwaMode(){let e=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone!==void 0;return console.log("[UI Event Service] PWA mode:",e),e}toggleNoSleep(){if(this.noSleepSupported()){if(this.noSleepStatus())try{this.noSleep?.disable()}catch{}else{this.noSleep||this.checkNoSleepSupport();try{this.noSleep?.enable()}catch(e){console.warn("[UI Event Service] Failed to enable NoSleep:",e)}}this.noSleepStatus.set(!this.noSleepStatus()),console.log("[UI Event Service] NoSleep active:",this.noSleepStatus())}}toggleFullScreen(){if(be.isEnabled){if(this.fullscreenStatus()){if(be.isFullscreen&&be.exit(),this.noSleepStatus()){try{this.noSleep?.disable()}catch{}this.noSleepStatus.set(!1)}}else if(be.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(e,a){this.boundPreventGestures||(this.boundPreventGestures=this.preventBrowserHistorySwipeGestures.bind(this)),document.addEventListener("openLeftSidenav",e),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(e,a){document.removeEventListener("openLeftSidenav",e),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(e){if(e instanceof TouchEvent&&e.touches.length===1){let a=e.touches[0],t=30;if(e.type==="touchstart")this.initialTouchX=a.clientX,this.initialTouchY=a.clientY;else if(e.type==="touchmove"&&this.initialTouchX!==null&&this.initialTouchY!==null){let l=Math.abs(a.clientX-this.initialTouchX),d=Math.abs(a.clientY-this.initialTouchY);l>10&&l>d&&(this.initialTouchX<t||this.initialTouchX>window.innerWidth-t)&&e.preventDefault(),d>10&&this.initialTouchY<50&&e.preventDefault()}else(e.type==="touchend"||e.type==="touchcancel")&&(this.initialTouchX=null,this.initialTouchY=null)}}addHotkeyListener(e,a){let t=l=>{if(l instanceof KeyboardEvent){let d=l.key.toLowerCase();if(a&&(a.keys&&!a.keys.includes(d)||a.ctrlKey!==void 0&&l.ctrlKey!==a.ctrlKey||a.shiftKey!==void 0&&l.shiftKey!==a.shiftKey))return;e(d,l)}else console.warn("[uiEvent Service] Non-keyboard event detected in addHotkeyListener:",l)};this.hotkeyListeners.set(e,t),document.addEventListener("keydown",t)}removeHotkeyListener(e){let a=this.hotkeyListeners.get(e);a&&(document.removeEventListener("keydown",a),this.hotkeyListeners.delete(e))}ngOnDestroy(){if(be.isEnabled)try{be.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[,e]of this.hotkeyListeners.entries())document.removeEventListener("keydown",e);this.hotkeyListeners.clear()}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Sl(i,c){}var qo="_mat-bottom-sheet-enter",zo="_mat-bottom-sheet-exit",kl=(()=>{class i extends Va{_breakpointSubscription;_animationsDisabled=Me();_animationState="void";_animationStateChanged=new me;_destroyed;constructor(){super();let e=m(ei);this._breakpointSubscription=e.observe([Re.Medium,Re.Large,Re.XLarge]).subscribe(()=>{let a=this._elementRef.nativeElement.classList;a.toggle("mat-bottom-sheet-container-medium",e.isMatched(Re.Medium)),a.toggle("mat-bottom-sheet-container-large",e.isMatched(Re.Large)),a.toggle("mat-bottom-sheet-container-xlarge",e.isMatched(Re.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._animationsDisabled&&this._simulateAnimation(qo))}exit(){this._destroyed||(this._elementRef.nativeElement.setAttribute("mat-exit",""),this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._animationsDisabled&&this._simulateAnimation(zo))}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_simulateAnimation(e){this._ngZone.run(()=>{this._handleAnimationEvent(!0,e),setTimeout(()=>this._handleAnimationEvent(!1,e))})}_trapFocus(){super._trapFocus({preventScroll:!0})}_handleAnimationEvent(e,a){let t=a===qo;(t||a===zo)&&this._animationStateChanged.emit({toState:t?"visible":"hidden",phase:e?"start":"done"})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(a,t){a&1&&C("animationstart",function(d){return t._handleAnimationEvent(!0,d.animationName)})("animationend",function(d){return t._handleAnimationEvent(!1,d.animationName)})("animationcancel",function(d){return t._handleAnimationEvent(!1,d.animationName)}),a&2&&(W("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-label",t._config.ariaLabel),O("mat-bottom-sheet-container-animations-enabled",!t._animationsDisabled)("mat-bottom-sheet-container-enter",t._animationState==="visible")("mat-bottom-sheet-container-exit",t._animationState==="hidden"))},features:[ze],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a,t){a&1&&Le(0,Sl,0,0,"ng-template",0)},dependencies:[Ta],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 i})(),Tl=new oe("MatBottomSheetData"),Ni=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},_i=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new pt;_result;_closeFallbackTimeout;constructor(c,e,a){this._ref=c,this.containerInstance=a,this.disableClose=e.disableClose,a._animationStateChanged.pipe(Ue(t=>t.phase==="done"&&t.toState==="visible"),At(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),a._animationStateChanged.pipe(Ue(t=>t.phase==="done"&&t.toState==="hidden"),At(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),c.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),We(this.backdropClick(),this.keydownEvents().pipe(Ue(t=>t.keyCode===27))).subscribe(t=>{!this.disableClose&&(t.type!=="keydown"||!Ct(t))&&(t.preventDefault(),this.dismiss())})}dismiss(c){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Ue(e=>e.phase==="start"),At(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}},El=new oe("mat-bottom-sheet-default-options"),Dl=(()=>{class i{_injector=m(Qe);_parentBottomSheet=m(i,{optional:!0,skipSelf:!0});_animationsDisabled=Me();_defaultOptions=m(El,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=m(Ra);get _openedBottomSheetRef(){let e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}constructor(){}open(e,a){let t=de(de({},this._defaultOptions||new Ni),a),l;return this._dialog.open(e,_e(de({},t),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:kl,scrollStrategy:t.scrollStrategy||Ga(this._injector),positionStrategy:Fa(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:l}),providers:(d,u,_)=>(l=new _i(d,t,_),[{provide:_i,useValue:l},{provide:Tl,useValue:t.data}])})),l.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===l&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>l.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):l.containerInstance.enter(),this._openedBottomSheetRef=l,l}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(a){return new(a||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ku=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({providers:[Dl],imports:[Na,ne,Ea,ne]})}return i})();var jo=["*"],Il=`.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
+ `,Gl=["unscopedContent"],Pl=["text"],Ol=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Fl=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Ll=new oe("ListOption"),Bl=(()=>{class i{_elementRef=m(he);constructor(){}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),Vl=(()=>{class i{_elementRef=m(he);constructor(){}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),Rl=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),Yo=(()=>{class i{_listOption=m(Ll,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,hostVars:4,hostBindings:function(a,t){a&2&&O("mdc-list-item__start",t._isAlignedAtStart())("mdc-list-item__end",!t._isAlignedAtStart())}})}return i})(),Nl=(()=>{class i extends Yo{static \u0275fac=(()=>{let e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275dir=j({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[ze]})}return i})(),Wl=(()=>{class i extends Yo{static \u0275fac=(()=>{let e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275dir=j({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[ze]})}return i})(),Ul=new oe("MAT_LIST_CONFIG"),Nt=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=xt(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(xt(e))}_disabled=D(!1);_defaultOptions=m(Ul,{optional:!0});static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,hostVars:1,hostBindings:function(a,t){a&2&&W("aria-disabled",t.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),Ql=(()=>{class i{_elementRef=m(he);_ngZone=m(ft);_listBase=m(Nt,{optional:!0});_platform=m(Jt);_hostElement;_isButtonElement;_noopAnimations=Me();_avatars;_icons;set lines(e){this._explicitLines=fa(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=xt(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(xt(e))}_disabled=D(!1);_subscriptions=new mt;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){m($t).load(oi);let e=m(wa,{optional:!0});this.rippleConfig=e||{},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 Ma(this,this._ngZone,this._hostElement,this._platform,m(Qe)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(We(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let a=this._explicitLines??this._inferLinesFromContent(),t=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 l=this._titles.length===0&&a===1;t.classList.toggle("mdc-list-item__primary-text",l),t.classList.toggle("mdc-list-item__secondary-text",!l)}else t.classList.remove("mdc-list-item__primary-text"),t.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(a){return new(a||i)};static \u0275dir=j({type:i,contentQueries:function(a,t,l){if(a&1&&(fe(l,Nl,4),fe(l,Wl,4)),a&2){let d;Y(d=H())&&(t._avatars=d),Y(d=H())&&(t._icons=d)}},hostVars:4,hostBindings:function(a,t){a&2&&(W("aria-disabled",t.disabled)("disabled",t._isButtonElement&&t.disabled||null),O("mdc-list-item--disabled",t.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})();var tA=(()=>{class i extends Nt{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[He([{provide:Nt,useExisting:i}]),ze],ngContentSelectors:jo,decls:1,vars:0,template:function(a,t){a&1&&(xe(),ae(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 i})();var iA=(()=>{class i extends Nt{static \u0275fac=(()=>{let e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[He([{provide:Nt,useExisting:i}]),ze],ngContentSelectors:jo,decls:1,vars:0,template:function(a,t){a&1&&(xe(),ae(0))},styles:[Il],encapsulation:2,changeDetection:0})}return i})(),aA=(()=>{class i extends Ql{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=xt(e)}_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 e;return function(t){return(e||(e=ht(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,t,l){if(a&1&&(fe(l,Vl,5),fe(l,Bl,5),fe(l,Rl,5)),a&2){let d;Y(d=H())&&(t._lines=d),Y(d=H())&&(t._titles=d),Y(d=H())&&(t._meta=d)}},viewQuery:function(a,t){if(a&1&&(je(Gl,5),je(Pl,5)),a&2){let l;Y(l=H())&&(t._unscopedContent=l.first),Y(l=H())&&(t._itemText=l.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,t){a&2&&(W("aria-current",t._getAriaCurrent()),O("mdc-list-item--activated",t.activated)("mdc-list-item--with-leading-avatar",t._avatars.length!==0)("mdc-list-item--with-leading-icon",t._icons.length!==0)("mdc-list-item--with-trailing-meta",t._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",t._hasBothLeadingAndTrailing())("_mat-animation-noopable",t._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[ze],ngContentSelectors:Fl,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,t){if(a&1){let l=P();xe(Ol),ae(0),n(1,"span",1),ae(2,1),ae(3,2),n(4,"span",2,0),C("cdkObserveContent",function(){return y(l),x(t._updateItemLines(!0))}),ae(6,3),o()(),ae(7,4),ae(8,5),b(9,"div",3)}},dependencies:[va],encapsulation:2,changeDetection:0})}return i})();var oA=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ye({type:i});static \u0275inj=Ce({imports:[Ca,ne,Mt,ao,ci]})}return i})();export{ys as a,$l as b,ds as c,pi as d,tu as e,du as f,Tl as g,_i as h,Dl as i,ku as j,Bl as k,Wl as l,tA as m,iA as n,aA as o,oA as p,bs as q};