@mxtommy/kip 3.8.2 → 3.9.0-beta.3

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.
@@ -0,0 +1,11 @@
1
+ import{a as ai,b as ro,c as lo,d as so,e as co}from"./chunk-PKNLASTF.js";import{a as St}from"./chunk-VYUMZVH2.js";import{a as ao,b as oo,c as no,d as ii}from"./chunk-CBUY7NMR.js";import{a as Se,b as $e}from"./chunk-JY3WVS7C.js";import{a as Za,b as Xa,c as Ka,d as wt,e as Ja,f as Z,g as $a,h as eo,k as to,l as io,m as It,n as me,o as Je}from"./chunk-ZBCOJLI4.js";import{d as ca,g as da,l as pa,m as ee,n as Ce}from"./chunk-TXPLRBW5.js";import{a as Fa,b as La,c as Ba,d as qe,e as ze,g as Va,h as je,i as Ye,j as He,k as Ct,l as xe}from"./chunk-3LEMFOCV.js";import{a as bt}from"./chunk-K22CSA3Y.js";import{a as Ha,b as ti}from"./chunk-2YVW3TBK.js";import{$ as we,A as Wa,B as Ua,C as de,D as Qa,E as Jt,F as Ze,G as Me,H,I as qa,J as za,K as Xe,L as $t,M as yt,N as L,P as xt,Q as ae,R as B,T as V,U as ei,V as ja,W as Mt,Y as Ya,_ as R,a as rt,ca as oe,da as Ke,e as na,f as la,h as sa,i as Ut,j as bi,k as Qt,p as ma,q as Kt,r as te,t as Y,w as F,x as ie,y as Ra,z as Na}from"./chunk-TA4GACKT.js";import{$b as b,$c as K,$d as ga,$e as Da,A as ct,Aa as w,Ab as Be,Ac as k,Ad as ia,Ae as Ca,Bc as U,Be as ya,Cb as Te,Cc as ht,Ce as Zt,Da as Fe,Db as Qi,De as se,Ec as Zi,Ed as aa,Ee as Xt,F as Oi,Fa as Le,Fb as le,Fc as Xi,Fe as Qe,Gb as ut,Gc as Ki,Hb as qi,He as xa,I as Ai,Ie as ce,Ja as D,K as Pe,Kc as Ee,Kd as oa,Ke as Ma,L as Oe,Mc as Re,Na as ot,Nc as Et,O as Fi,Oa as pt,Oe as wa,P as Bt,Pd as Ue,Pe as Sa,Qa as pe,Qc as Ne,Qd as ra,R as dt,Rb as q,Rc as We,Sb as u,Tb as A,U as Li,Ub as I,Ud as _i,Vb as Rt,Vd as ua,W as Bi,Wb as y,Wd as qt,We as ka,Xb as x,Xc as Ji,Xe as Ta,Yb as p,Yc as ft,Yd as Aa,Zb as n,Ze as Ea,_b as o,_c as $i,_e as Ci,a as re,ac as hi,ad as h,b as he,bc as fi,be as zt,cf as Ia,dc as zi,de as ha,df as Ga,ec as ji,ed as nt,ee as jt,ef as Pa,f as N,fa as mt,fc as Yi,fe as fa,g as lt,ga as Vt,gc as P,ge as ba,hc as Hi,hf as Oa,ia as Vi,ic as _,id as O,j as pi,kc as f,lb as c,lc as ve,le as Dt,m as st,mc as X,me as _t,na as Tt,nb as Ni,nc as ue,ne as _a,o as kt,oa as fe,oc as Ve,pa as be,pb as gi,pc as z,pe as vi,qc as j,qe as Yt,ra as J,sb as Wi,se as Ht,t as ui,ta as m,te as $,uc as Ae,vc as Nt,vd as ea,ve as De,wb as v,wc as W,wd as ta,we as ye,xa as Ri,xb as _e,xc as At,xe as vt,y as Lt,yb as Q,yc as gt,za as M,zb as Ui,zc as r,zd as Wt,ze as va}from"./chunk-35L7BBBD.js";var mo=[["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"]],Ie=(()=>{if(typeof document>"u")return!1;let a=mo[0],s={};for(let e of mo)if(e?.[1]in document){for(let[t,l]of e.entries())s[a[t]]=l;return s}return!1})(),po={change:Ie.fullscreenchange,error:Ie.fullscreenerror},ne={request(a=document.documentElement,s){return new Promise((e,i)=>{let t=()=>{ne.off("change",t),e()};ne.on("change",t);let l=a[Ie.requestFullscreen](s);l instanceof Promise&&l.then(t).catch(i)})},exit(){return new Promise((a,s)=>{if(!ne.isFullscreen){a();return}let e=()=>{ne.off("change",e),a()};ne.on("change",e);let i=document[Ie.exitFullscreen]();i instanceof Promise&&i.then(e).catch(s)})},toggle(a,s){return ne.isFullscreen?ne.exit():ne.request(a,s)},onchange(a){ne.on("change",a)},onerror(a){ne.on("error",a)},on(a,s){let e=po[a];e&&document.addEventListener(e,s,!1)},off(a,s){let e=po[a];e&&document.removeEventListener(e,s,!1)},raw:Ie};Object.defineProperties(ne,{isFullscreen:{get:()=>!!document[Ie.fullscreenElement]},element:{enumerable:!0,get:()=>document[Ie.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Ie.fullscreenEnabled]}});Ie||(ne={isEnabled:!1});var ge=ne;var Zo="data:video/webm;base64,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",Xo="data:video/mp4;base64,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",yi=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.")}},xi=class{constructor(){this.enabled=!1;let s=()=>this.wakeLock&&document.visibilityState==="visible"&&this.enable();document.addEventListener("visibilitychange",s),document.addEventListener("fullscreenchange",s)}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(s){this.enabled=!1,s instanceof Error&&console.error(`${s.name}, ${s.message}`)}})}disable(){var s;(s=this.wakeLock)==null||s.release(),this.wakeLock=void 0,this.enabled=!1}},Mi=class{constructor(){var s;this.enabled=!1,this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",Zo),this._addSourceToVideo(this.noSleepVideo,"mp4",Xo),Object.assign(this.noSleepVideo.style,{position:"absolute",left:"-100%",top:"-100%"}),(s=document.querySelector("body"))==null||s.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(s,e,i){let t=document.createElement("source");t.src=i,t.type=`video/${e}`,s.appendChild(t)}enable(){return N(this,null,function*(){let s=this.noSleepVideo.play();try{let e=yield s;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}},uo=typeof navigator>"u"?yi:"wakeLock"in navigator&&!navigator.standalone?xi:Mi;var Ao=(()=>{class a{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(ge.isFullscreen),!ge.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)):(ge.isEnabled?ge.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 uo),!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(ge.isEnabled){if(this.fullscreenStatus()){if(ge.isFullscreen&&ge.exit(),this.noSleepStatus()){try{this.noSleep?.disable()}catch{}this.noSleepStatus.set(!1)}}else if(ge.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,i){this.boundPreventGestures||(this.boundPreventGestures=this.preventBrowserHistorySwipeGestures.bind(this)),document.addEventListener("openLeftSidenav",e),document.addEventListener("openRightSidenav",i),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,i){document.removeEventListener("openLeftSidenav",e),document.removeEventListener("openRightSidenav",i),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.touches.length===1){let i=e.touches[0],t=30;if(e.type==="touchstart")this.initialTouchX=i.clientX,this.initialTouchY=i.clientY;else if(e.type==="touchmove"&&this.initialTouchX!==null&&this.initialTouchY!==null){let l=Math.abs(i.clientX-this.initialTouchX),d=Math.abs(i.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,i){let t=l=>{if(l instanceof KeyboardEvent){let d=l.key.toLowerCase();if(i&&(i.keys&&!i.keys.includes(d)||i.ctrlKey!==void 0&&l.ctrlKey!==i.ctrlKey||i.shiftKey!==void 0&&l.shiftKey!==i.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 i=this.hotkeyListeners.get(e);i&&(document.removeEventListener("keydown",i),this.hotkeyListeners.delete(e))}ngOnDestroy(){if(ge.isEnabled)try{ge.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(i){return new(i||a)};static \u0275prov=fe({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Xl=(()=>{class a{swipeMinDistance=h(30);swipeMaxDuration=h(600);longPressMs=h(500);doubleTapInterval=h(300);tapSlop=h(20);pressMoveSlop=h(10);swipeleft=K();swiperight=K();swipeup=K();swipedown=K();press=K();doubletap=K();zone=m(ut);destroyRef=m(Le);host=m(pe);uiEvent=m(Ao);pointerId=null;startX=0;startY=0;startTime=0;tracking=!1;longPressTimer=null;pressFired=!1;suppressionActive=!1;docPointerMoveSuppress;docPointerDownSuppress;docTouchMoveSuppress;docTouchStartSuppress;docMouseMoveSuppress;docMouseDownSuppress;lastTapTime=0;lastTapX=0;lastTapY=0;currentPointerType=null;lastTapUpTime=0;lastTapUpX=0;lastTapUpY=0;potentialDoubleTap=!1;dragEndedAt=0;constructor(){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.removeSuppression()})}),ft(()=>{this.uiEvent.isDragging()||(this.dragEndedAt=performance.now())})}onNativeDblClick=e=>{let i=new CustomEvent("doubletap",{detail:{x:e.clientX,y:e.clientY,native:!0}});this.zone.run(()=>this.doubletap.emit(i)),this.lastTapTime=0};onPointerDown=e=>{if(this.pointerId!==null)return;this.pointerId=e.pointerId,this.tracking=!0,this.pressFired=!1,this.currentPointerType=e.pointerType||null;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&&window.clearTimeout(this.longPressTimer),!this.uiEvent.isDragging()&&!this.potentialDoubleTap&&(this.longPressTimer=window.setTimeout(()=>{if(!this.tracking||this.uiEvent.isDragging())return;let d=e.clientX-this.startX,g=e.clientY-this.startY,S=performance.now()-this.dragEndedAt<350&&this.currentPointerType==="touch"?15:0;if(Math.abs(d)<=this.pressMoveSlop()+S&&Math.abs(g)<=this.pressMoveSlop()+S){this.pressFired=!0;let T=new CustomEvent("press",{detail:{x:this.startX,y:this.startY,center:{x:this.startX,y:this.startY}}});this.zone.run(()=>this.press.emit(T)),this.addSuppression(e)}},this.longPressMs()))};onPointerMove=e=>{if(!(!this.tracking||e.pointerId!==this.pointerId)&&!this.pressFired){let i=e.clientX-this.startX,t=e.clientY-this.startY,d=performance.now()-this.dragEndedAt<350&&this.currentPointerType==="touch"?15:0,g=this.pressMoveSlop()+d;(this.uiEvent.isDragging()||Math.abs(i)>g||Math.abs(t)>g)&&this.longPressTimer&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=null)}};onPointerUp=e=>{if(!this.tracking||e.pointerId!==this.pointerId)return;let i=performance.now(),t=i-this.startTime,l=e.clientX-this.startX,d=e.clientY-this.startY,g=Math.abs(l),C=Math.abs(d);if(this.longPressTimer&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=null),!this.pressFired&&(t<=this.swipeMaxDuration()&&(g>=this.swipeMinDistance()&&g>=C?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}}))):C>=this.swipeMinDistance()&&C>g&&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"&&g<=this.tapSlop()&&C<=this.tapSlop()&&t<this.longPressMs())){let S=i,T=S-this.lastTapTime,E=Math.hypot(e.clientX-this.lastTapX,e.clientY-this.lastTapY);T<=this.doubleTapInterval()&&E<=this.tapSlop()?(this.zone.run(()=>this.doubletap.emit(new CustomEvent("doubletap",{detail:{x:e.clientX,y:e.clientY,dt:T}}))),this.lastTapTime=0,this.potentialDoubleTap=!1):(this.lastTapTime=S,this.lastTapX=e.clientX,this.lastTapY=e.clientY)}!this.pressFired&&g<=this.tapSlop()&&C<=this.tapSlop()&&t<this.longPressMs()?(this.lastTapUpTime=i,this.lastTapUpX=e.clientX,this.lastTapUpY=e.clientY):this.potentialDoubleTap=!1,this.reset()};onPointerCancel=e=>{e.pointerId===this.pointerId&&(this.longPressTimer&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.reset())};reset(){this.pointerId=null,this.tracking=!1,this.pressFired=!1,this.currentPointerType=null}addSuppression(e){if(this.suppressionActive)return;this.suppressionActive=!0,this.docPointerMoveSuppress=t=>{this.suppressionActive&&(t.stopImmediatePropagation(),t.cancelable&&t.preventDefault())},this.docPointerDownSuppress=t=>{this.suppressionActive&&(t.stopImmediatePropagation(),t.cancelable&&t.preventDefault())},this.docTouchMoveSuppress=t=>{this.suppressionActive&&(t.stopImmediatePropagation(),t.cancelable&&t.preventDefault())},this.docTouchStartSuppress=t=>{this.suppressionActive&&(t.stopImmediatePropagation(),t.cancelable&&t.preventDefault())},this.docMouseMoveSuppress=t=>{this.suppressionActive&&(t.stopImmediatePropagation(),t.cancelable&&t.preventDefault())},this.docMouseDownSuppress=t=>{this.suppressionActive&&(t.stopImmediatePropagation(),t.cancelable&&t.preventDefault())},document.addEventListener("pointermove",this.docPointerMoveSuppress,{capture:!0,passive:!1}),document.addEventListener("pointerdown",this.docPointerDownSuppress,{capture:!0,passive:!1}),document.addEventListener("touchmove",this.docTouchMoveSuppress,{capture:!0,passive:!1}),document.addEventListener("touchstart",this.docTouchStartSuppress,{capture:!0,passive:!1}),document.addEventListener("mousemove",this.docMouseMoveSuppress,{capture:!0,passive:!1}),document.addEventListener("mousedown",this.docMouseDownSuppress,{capture:!0,passive:!1});try{let t=e,l=typeof t.screenX=="number"?t.screenX:e.clientX,d=typeof t.screenY=="number"?t.screenY:e.clientY;if(e.pointerType==="mouse"){let g=new PointerEvent("pointerup",{bubbles:!0,cancelable:!0,pointerId:e.pointerId,pointerType:e.pointerType,clientX:e.clientX,clientY:e.clientY,screenX:l,screenY:d});e.target.dispatchEvent(g);let C=new MouseEvent("mouseup",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY,screenX:l,screenY:d,button:0});e.target.dispatchEvent(C)}else if(e.pointerType==="touch"){let g=new PointerEvent("pointercancel",{bubbles:!0,cancelable:!0,pointerId:e.pointerId,pointerType:e.pointerType,clientX:e.clientX,clientY:e.clientY,screenX:l,screenY:d});e.target.dispatchEvent(g);try{let C=new TouchEvent("touchcancel",{bubbles:!0,cancelable:!0});e.target.dispatchEvent(C)}catch{}}}catch{}let i=t=>{t instanceof PointerEvent&&this.pointerId!==null&&t.pointerId!==this.pointerId||(this.removeSuppression(),document.removeEventListener("pointerup",i,!0),document.removeEventListener("pointercancel",i,!0),document.removeEventListener("touchend",i,!0),document.removeEventListener("touchcancel",i,!0))};document.addEventListener("pointerup",i,!0),document.addEventListener("pointercancel",i,!0),document.addEventListener("touchend",i,!0),document.addEventListener("touchcancel",i,!0)}removeSuppression(){this.suppressionActive&&(this.suppressionActive=!1,this.docPointerMoveSuppress&&document.removeEventListener("pointermove",this.docPointerMoveSuppress,!0),this.docPointerDownSuppress&&document.removeEventListener("pointerdown",this.docPointerDownSuppress,!0),this.docTouchMoveSuppress&&document.removeEventListener("touchmove",this.docTouchMoveSuppress,!0),this.docTouchStartSuppress&&document.removeEventListener("touchstart",this.docTouchStartSuppress,!0),this.docMouseMoveSuppress&&document.removeEventListener("mousemove",this.docMouseMoveSuppress,!0),this.docMouseDownSuppress&&document.removeEventListener("mousedown",this.docMouseDownSuppress,!0),this.docPointerMoveSuppress=void 0,this.docPointerDownSuppress=void 0,this.docTouchMoveSuppress=void 0,this.docTouchStartSuppress=void 0,this.docMouseMoveSuppress=void 0,this.docMouseDownSuppress=void 0)}static \u0275fac=function(i){return new(i||a)};static \u0275dir=Q({type:a,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 a})();var ls=(()=>{class a{_settings=m(Ut);_router=m(da);dashboards=D([],{equal:bi});activeDashboard=D(0);_widgetAction=new kt(null);widgetAction$=this._widgetAction.asObservable();_isDashboardStatic=new kt(!0);isDashboardStatic$=this._isDashboardStatic.asObservable();isDashboardStatic=ra(this.isDashboardStatic$);blankDashboard=[{id:null,name:"Dashboard 1",configuration:[{w:12,h:12,id:"d1d58e6f-f8b4-4a72-9597-7f92aa6776fc",selector:"widget-tutorial",input:{widgetProperties:{type:"widget-tutorial",uuid:"d1d58e6f-f8b4-4a72-9597-7f92aa6776fc"}},x:0,y:0}]}];constructor(){let e=this._settings.getDashboardConfig();if(!e||e.length===0){console.warn("[Dashboard Service] No dashboards found in settings, creating blank dashboard");let i=this.blankDashboard.map(t=>he(re({},t),{id:rt.create()}));this.dashboards.set([...i])}else this.dashboards.set(this._settings.getDashboardConfig());ft(()=>{this._settings.saveDashboards(this.dashboards())})}toggleStaticDashboard(){this._isDashboardStatic.next(!this._isDashboardStatic.value)}add(e,i){this.dashboards.update(t=>[...t,{id:rt.create(),name:e,configuration:i}])}update(e,i){this.dashboards.update(t=>t.map((l,d)=>d===e?he(re({},l),{name:i}):l))}delete(e){this.dashboards.update(i=>i.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,i){if(e<0||e>=this.dashboards().length){console.error(`[Dashboard Service] Invalid itemIndex: ${e}`);return}let t=this.dashboards()[e],l=Qt(t);l.id=rt.create(),l.name=i,Array.isArray(l.configuration)?l.configuration.forEach(d=>{d&&d.input?.widgetProperties?(d.id=rt.create(),d.input.widgetProperties.uuid=d.id):console.error("Dashboard Service] Widget configuration is missing required properties:",d)}):(console.error("Dashboard Service] Dashboard configuration is not an array:",l.configuration),l.configuration=[]),this.dashboards.update(d=>[...d,l])}updateConfiguration(e,i){this.dashboards.update(t=>t.map((l,d)=>d===e?bi(l.configuration,i)?l:he(re({},l),{configuration:i}):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(i){return new(i||a)};static \u0275prov=fe({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function Ko(a,s){a&1&&Yi(0)}var go=(()=>{class a{data=m(ze);static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&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),Te(7,Ko,1,0,"ng-container",4),o()),i&2&&(c(2),k(t.data.title),c(),p("mat-dialog-close",!1),c(4),p("ngComponentOutlet",t.data.componentType))},dependencies:[ee,xe,je,Ye,He,ce,se,ta],styles:[".dialogue-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}.dialog-content-padding[_ngcontent-%COMP%]{--mat-dialog-content-padding: 0px 24px 20px 24px}"]})}return a})();function Jo(a,s){if(a&1&&(n(0,"button",4),r(1),o()),a&2){let e=f();p("mat-dialog-close",!0),c(),k(e.data.confirmBtnText)}}var ho=(()=>{class a{data=m(ze);static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&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(),u(11,Jo,2,2,"button",4),o()),i&2&&(c(2),k(t.data.title),c(),p("mat-dialog-close",!1),c(4),U(" ",t.data.message,`
2
+ `),c(2),p("mat-dialog-close",!1),c(),k(t.data.cancelBtnText),c(),A(t.data.confirmBtnText?11:-1))},dependencies:[ee,xe,je,Ye,Ct,He,ce,Qe,se],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 a})();function $o(a,s){if(a&1&&(n(0,"button",9),r(1),o()),a&2){let e=f(),i=Ae(1);p("disabled",!i.valid),c(),k(e.data.confirmBtnText)}}var bo=(()=>{class a{dialogRef=m(qe);data=m(ze);saveName(){this.dialogRef.close(this.data)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){if(i&1){let l=P();n(0,"form",1,0),_("ngSubmit",function(){return M(l),w(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),Ki("ngModelChange",function(g){return M(l),Xi(t.data.name,g)||(t.data.name=g),w(g)}),o(),n(13,"mat-error"),r(14," A name is required "),o()()(),n(15,"mat-dialog-actions",7)(16,"button",8),r(17),o(),u(18,$o,2,2,"button",9),o()()}i&2&&(c(4),k(t.data.title),c(),p("mat-dialog-close",!1),c(7),Zi("ngModel",t.data.name),c(4),p("mat-dialog-close",!1),c(),k(t.data.cancelBtnText),c(),A(t.data.confirmBtnText?18:-1))},dependencies:[xe,je,Ye,Ct,He,Ce,ee,we,R,V,ei,Ke,oe,ce,Qe,se,ae,Jt,te,F,ie,L,Qa,Wa],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 a})();function en(a,s){if(a&1&&(n(0,"mat-option",12),r(1),o()),a&2){let e=s.$implicit;p("value",Ee(e.value)),c(),k(e.label)}}function tn(a,s){if(a&1){let e=P();n(0,"button",21),_("click",function(){M(e);let t=f();return w(t.moveCtrlUp())}),n(1,"mat-icon"),r(2,"arrow_drop_up"),o()()}}function an(a,s){if(a&1){let e=P();n(0,"button",22),_("click",function(){M(e);let t=f();return w(t.moveCtrlDown())}),n(1,"mat-icon"),r(2,"arrow_drop_down"),o()()}}var _o=(()=>{class a{app=m(bt);ctrlFormGroup=h.required();controlIndex=h(void 0);arrayLength=h(void 0);deleteCtrl=K();moveUp=K();moveDown=K();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(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&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),y(23,en,2,3,"mat-option",12,I),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),u(31,tn,3,0,"button",18),u(32,an,3,0,"button",19),n(33,"button",20),_("click",function(){return t.deleteControl()}),n(34,"mat-icon"),r(35,"delete"),o()()()()()()),i&2&&(p("formGroup",t.ctrlFormGroup()),c(23),x(t.colors),c(8),A(t.controlIndex()!==0?31:-1),c(),A(t.controlIndex()!==t.arrayLength()-1?32:-1))},dependencies:[ae,te,F,ie,L,B,H,Xe,R,V,oe,me,Z,se,$e,Se,Ce,ee],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 a})();function on(a,s){if(a&1){let e=P();n(0,"boolean-control-config",4),_("moveUp",function(t){M(e);let l=f();return w(l.moveUp(t))})("moveDown",function(t){M(e);let l=f();return w(l.moveDown(t))})("deleteCtrl",function(t){M(e);let l=f();return w(l.deletePath(t))}),o()}if(a&2){let e=s.$implicit,i=s.$index,t=f();p("ctrlFormGroup",t.getFormGroup(e))("controlIndex",i)("arrayLength",t.arrayLength)}}var vo=(()=>{class a{fb=m(xt);multiCtrlArray=h.required();addPath=K();updatePath=K();delPath=K();multiFormGroup=null;arrayLength=0;multiCtrlArraySubscription=null;ngOnInit(){this.arrayLength=this.multiCtrlArray().length,this.multiFormGroup=new Ra({multiCtrlArray:this.multiCtrlArray()}),this.multiCtrlArraySubscription=this.multiCtrlArray().valueChanges.pipe(Bt(350)).subscribe(e=>{this.updatePath.emit(e)})}addCtrlGroup(){let e=rt.create();this.multiCtrlArray().push(this.fb.group({ctrlLabel:[null,Y.required],type:["1",Y.required],pathID:[e],color:["contrast"],isNumeric:[!1],value:[null]})),this.arrayLength=this.multiCtrlArray().length;let i={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(i)}moveUp(e){let i=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e-1,i,{emitEvent:!1})}moveDown(e){let i=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e+1,i,{emitEvent:!1})}deletePath(e){this.delPath.emit(e),this.arrayLength=this.multiCtrlArray().length}getFormGroup(e){return e}ngOnDestroy(){this.multiCtrlArraySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&1&&(n(0,"div",0)(1,"div",1),y(2,on,1,3,"boolean-control-config",2,Rt),n(4,"button",3),_("click",function(){return t.addCtrlGroup()}),n(5,"mat-icon"),r(6,"add"),o()()()()),i&2&&(p("formGroup",t.multiFormGroup),c(2),x(t.multiCtrlArray().controls))},dependencies:[ae,ie,B,H,za,_o,ce,xa,Ce,ee],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 a})();var nn=["*"];var rn=new J("MAT_CARD_CONFIG"),lc=(()=>{class a{appearance;constructor(){let e=m(rn,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,t){i&2&&W("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:nn,decls:1,vars:0,template:function(i,t){i&1&&(ve(),X(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}
3
+ `],encapsulation:2,changeDetection:0})}return a})();var Co=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=_e({type:a});static \u0275inj=be({imports:[$,$]})}return a})();function ln(a,s){if(a&1&&(n(0,"mat-option",8),r(1),o()),a&2){let e=s.$implicit;p("value",Ee(e.value)),c(),k(e.label)}}var yo=(()=>{class a{app=m(bt);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(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){if(i&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),y(15,ln,2,3,"mat-option",8,I),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),_("change",function(g){return M(l),w(t.enableTrackAgainstMovingAverage(g))}),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),_("change",function(g){return M(l),w(t.setScaleControls(g))}),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),_("change",function(g){return M(l),w(t.setScaleControls(g))}),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()()()()()}i&2&&(c(6),p("formControl",t.displayName()),c(2),p("formControl",t.showLabel()),c(6),p("formControl",t.color()),c(),x(t.colors),c(10),p("formControl",t.numDecimal()),c(),p("formControl",t.showAverageData()),c(2),p("formControl",t.trackAgainstAverage()),c(2),p("formControl",t.verticalChart()),c(8),p("formControl",t.enableMinMaxScaleLimit()),c(),p("value",!1),c(6),p("formControl",t.yScaleSuggestedMin()),c(4),p("formControl",t.yScaleSuggestedMax()),c(),p("value",!0),c(7),p("formControl",t.yScaleMin()),c(5),p("formControl",t.yScaleMax()),c(),p("formControl",t.showYScale()),c(2),p("formControl",t.inverseYAxis()),c(6),p("formControl",t.showTimeScale()),c(6),p("formControl",t.showDatasetMaximumValueLine()),c(2),p("formControl",t.showDatasetAverageValueLine()),c(2),p("formControl",t.showDatasetMinimumValueLine()))},dependencies:[Co,we,R,V,$e,Se,Je,me,Z,It,Ke,oe,no,ao,oo,B,te,Ze,F,L,yt,$t,Me],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 a})();var sn=(a,s)=>s.uuid;function cn(a,s){if(a&1&&(n(0,"mat-option",4),r(1),o()),a&2){let e=s.$implicit;p("value",e.uuid),c(),U(" ",e.label," ")}}function dn(a,s){if(a&1&&(n(0,"mat-option",4),r(1),o()),a&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function mn(a,s){if(a&1&&(n(0,"mat-optgroup",6),y(1,dn,2,2,"mat-option",4,I),o()),a&2){let e=s.$implicit;p("label",e.group),c(),x(e.units)}}var xo=(()=>{class a{datasetService=m(ii);units=m(St);datasetUUID=h.required();convertUnitTo=h.required();availableDataSets=[];unitList={};ngOnInit(){this.availableDataSets=this.datasetService.list().filter(i=>i.editable!==!1).sort();let e=this.datasetUUID();e.value&&this.setPathUnits(e.value)}setPathUnits(e){let i=this.datasetService.getDatasetConfig(e);return e&&i?(this.unitList=this.units.getConversionsForPath(i.path),this.convertUnitTo()?.enable(),!0):(this.unitList=this.units.getConversionsForPath(""),this.convertUnitTo()?.disable(),!1)}datasetChanged(e){this.setPathUnits(e.value)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&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),_("selectionChange",function(d){return t.datasetChanged(d)}),y(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),y(12,mn,3,1,"mat-optgroup",6,I),o()()()()),i&2&&(c(5),p("formControl",t.datasetUUID()),c(),x(t.availableDataSets),c(5),p("formControl",t.convertUnitTo()),c(),x(t.unitList.conversions))},dependencies:[we,R,V,Je,me,Z,wt,B,F,L,Me],styles:[".display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}"]})}return a})();var Mo=(()=>{class a{transform(e){return Object.keys(e)}static \u0275fac=function(i){return new(i||a)};static \u0275pipe=Ui({name:"objectKeys",type:a,pure:!0})}return a})();var un=["panel"],An=["*"];function gn(a,s){if(a&1&&(hi(0,"div",1,0),X(2),fi()),a&2){let e=s.id,i=f();gt(i._classList),W("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),Hi("id",i.id),q("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var Ti=class{source;option;constructor(s,e){this.source=s,this.option=e}},ko=new J("mat-autocomplete-default-options",{providedIn:"root",factory:hn});function hn(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var si=(()=>{class a{_changeDetectorRef=m(nt);_elementRef=m(pe);_defaults=m(ko);_animationsDisabled=ye();_activeOptionChanges=lt.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 le;opened=new le;closed=new le;optionActivated=new le;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(Dt).getId("mat-autocomplete-");inertGroups;constructor(){let e=m(qt);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 _a(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 i=new Ti(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,selectors:[["mat-autocomplete"]],contentQueries:function(i,t,l){if(i&1&&(ue(l,Z,5),ue(l,Ka,5)),i&2){let d;z(d=j())&&(t.options=d),z(d=j())&&(t.optionGroups=d)}},viewQuery:function(i,t){if(i&1&&(Ve(Ni,7),Ve(un,5)),i&2){let l;z(l=j())&&(t.template=l.first),z(l=j())&&(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",O],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",O],requireSelection:[2,"requireSelection","requireSelection",O],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",O],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",O]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Re([{provide:Xa,useExisting:a}])],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(i,t){i&1&&(ve(),Qi(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 a})();var fn={provide:Kt,useExisting:Tt(()=>Pt),multi:!0};var To=new J("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let a=m(Fe);return()=>Ci(a)}});function bn(a){let s=m(Fe);return()=>Ci(s)}var _n={provide:To,deps:[],useFactory:bn},Pt=(()=>{class a{_environmentInjector=m(Ri);_element=m(pe);_injector=m(Fe);_viewContainerRef=m(Wi);_zone=m(ut);_changeDetectorRef=m(nt);_dir=m(Ht,{optional:!0});_formField=m(Ya,{optional:!0,host:!0});_viewportRuler=m(ka);_scrollStrategy=m(To);_renderer=m(gi);_animationsDisabled=ye();_defaults=m(ko,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new st;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=lt.EMPTY;_breakpointObserver=m(jt);_handsetLandscapeSubscription=lt.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new st;_overlayPanelClass=ha(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&&Yt(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Pe(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Oe(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Oe(()=>this._overlayAttached)):ui()).pipe(ct(e=>e instanceof Ja?e:null))}optionSelections=Oi(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(mt(e),Vt(()=>Pe(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(Vt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new pi(e=>{let i=l=>{let d=ua(l),g=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,C=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&d!==this._element.nativeElement&&!this._hasFocus()&&(!g||!g.contains(d))&&(!C||!C.contains(d))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(d)&&e.next(l)},t=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];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 i=e,t=i.keyCode,l=_t(i);if(t===27&&!l&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&t===13&&this.panelOpen&&!l)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let d=this.autocomplete._keyManager.activeItem,g=t===38||t===40;t===9||g&&!l&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):g&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(g||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 i=e.target,t=i.value;if(i.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 _i()===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 pi(t=>{qi(()=>{t.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(Vi(()=>this._positionStrategy.reapplyLastPosition()),Li(0))??ui();return Pe(e,i).pipe(Vt(()=>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})),dt(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 i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,t=e?e.source:this._pendingAutoselectedOption;t?(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),i._emitSelectEvent(t),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(t=>{t!==e&&t.selected&&t.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;vi(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Ma(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=Pa(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(De.HandsetLandscape).subscribe(l=>{l.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.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&&!_t(e)||e.keyCode===38&&_t(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 Da({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=Ia(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{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=i:d=[...i,...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 i=-1;for(let t=0;t<e.options.length;t++)if(!e.options.get(t).disabled){i=t;break}e._keyManager.setActiveItem(i)}else e._keyManager.setActiveItem(-1)}_canOpen(){let e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_scrollToOption(e){let i=this.autocomplete,t=$a(e,i.options,i.optionGroups);if(e===0&&t===1)i._setScrollTop(0);else if(i.panel){let l=i.options.toArray()[e];if(l){let d=l._getHostElement(),g=eo(d.offsetTop,d.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(g)}}}_trackedModal=null;_applyModalPanelOwnership(){let e=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&Yt(this._trackedModal,"aria-owns",i),vi(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Yt(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||a)};static \u0275dir=Q({type:a,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,t){i&1&&_("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()}),i&2&&q("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",O]},exportAs:["matAutocompleteTrigger"],features:[Re([fn]),ot]})}return a})(),Eo=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=_e({type:a});static \u0275inj=be({providers:[_n],imports:[Oa,It,$,Ta,It,$]})}return a})();var Cn=(a,s)=>s.path;function yn(a,s){a&1&&b(0,"i",22)}function xn(a,s){a&1&&b(0,"i",23)}function Mn(a,s){if(a&1&&(n(0,"mat-option",16),r(1),o()),a&2){let e=s.$implicit;p("value",e),c(),ht("",e.properties.quantity,": ",e.properties.display)}}function wn(a,s){if(a&1){let e=P();n(0,"div",5)(1,"mat-form-field",21)(2,"mat-label"),u(3,yn,1,0,"i",22)(4,xn,1,0,"i",23),r(5," Filter"),o(),n(6,"mat-select",24,2),_("selectionChange",function(){M(e),f();let t=Ae(11),l=f();return w(l.pathFormGroup().controls.path.setValue(t.value))}),n(8,"mat-option"),r(9,"All"),o(),y(10,Mn,2,3,"mat-option",16,I),o()()()}if(a&2){let e=Ae(7),i=f(2);c(3),A(e.value?4:3),c(3),p("formControl",i.pathSkUnitsFilterControl),c(4),x(i.pathSkUnitsFiltersList)}}function Sn(a,s){a&1&&(n(0,"span",8),r(1,"(optional)"),o())}function kn(a,s){a&1&&(n(0,"mat-hint"),r(1,"Leave blank to disable this path."),o())}function Tn(a,s){if(a&1){let e=P();n(0,"button",25),_("click",function(){M(e);let t=f(2);return w(t.pathFormGroup().controls.path.setValue(""))}),n(1,"mat-icon"),r(2,"close"),o()()}}function En(a,s){a&1&&(n(0,"mat-error"),r(1," Path is required. Please enter a valid Signal K path. "),o())}function Dn(a,s){a&1&&(n(0,"mat-error"),r(1," Path not recognized. Please enter a path from the server's published list. "),o())}function In(a,s){if(a&1&&(n(0,"span"),r(1),o(),b(2,"br"),n(3,"small",26),r(4),o()),a&2){let e=f().$implicit;c(),k(e.path),c(3),k(e.meta.description)}}function Gn(a,s){if(a&1&&r(0),a&2){let e=f().$implicit;U(" ",e.path," ")}}function Pn(a,s){if(a&1&&(n(0,"mat-option",11),u(1,In,5,2)(2,Gn,1,1),o()),a&2){let e=s.$implicit;p("value",e.path),c(),A(e.meta!==void 0?1:2)}}function On(a,s){if(a&1&&(n(0,"mat-option",16),r(1),o()),a&2){let e=s.$implicit;p("value",e),c(),U(" ",e," ")}}function Fn(a,s){if(a&1&&(n(0,"mat-option",16),r(1),o()),a&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function Ln(a,s){if(a&1&&(n(0,"mat-optgroup",28),y(1,Fn,2,2,"mat-option",16,I),o()),a&2){let e=s.$implicit;p("label",e.group),c(),x(e.units)}}function Bn(a,s){if(a&1&&(n(0,"mat-form-field",20)(1,"mat-label"),r(2,"Display Format"),o(),n(3,"mat-select",27),y(4,Ln,3,1,"mat-optgroup",28,I),o()()),a&2){let e=f(2);c(4),x(e.unitList.conversions)}}function Vn(a,s){if(a&1&&(n(0,"div",3)(1,"div",4)(2,"span"),r(3),o()(),u(4,wn,12,2,"div",5),n(5,"div",6)(6,"mat-form-field",7)(7,"mat-label"),r(8," Signal K Path "),u(9,Sn,2,0,"span",8),o(),b(10,"input",9,0),u(12,kn,2,0,"mat-hint"),u(13,Tn,3,0,"button",10),u(14,En,2,0,"mat-error")(15,Dn,2,0,"mat-error"),n(16,"mat-autocomplete",null,1),y(18,Pn,3,2,"mat-option",11,Cn),Ne(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),y(27,On,2,2,"mat-option",16,I),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),u(35,Bn,6,0,"mat-form-field",20),o()()()),a&2){let e,i=Ae(17),t=f();p("formGroup",t.pathFormGroup()),c(2),Nt("color",t.pathFormGroup().enabled?"":"rgba(255,255,255,0.5)"),c(),k(t.pathFormGroup().value.description),c(),A(t.pathFormGroup().value.pathType==="number"&&t.showPathSkUnitsFilter?4:-1),c(5),A(t.pathFormGroup().value.pathRequired===!1?9:-1),c(),p("matAutocomplete",i),c(2),A(t.pathFormGroup().value.pathRequired===!1?12:-1),c(),A(t.pathFormGroup().value.path?13:-1),c(),A((e=t.pathFormGroup().controls.path.errors)!=null&&e.required?14:(e=t.pathFormGroup().controls.path.errors)!=null&&e.requireMatch?15:-1),c(4),x(We(20,11,t.filteredPaths)),c(9),x(t.availableSources),c(8),A(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(a){return s=>{let e=s.parent?.value?.pathRequired!==!1,i=s.value;return e?i===null||i===""?{requireMatch:!0}:a().some(d=>d.path===i)?null:{requireMatch:!0}:i===null||i===""||a().some(d=>d.path===i)?null:{requireMatch:!0}}}var Do=(()=>{class a{_data=m(ma);_units=m(St);_connection=m(na);_destroyRef=m(Le);pathFormGroup=h.required();multiCTRLArray=h.required();filterSelfPaths=h.required();availablePaths;filteredPaths=new kt(null);availableSources;unitList={base:"",conversions:[]};showPathSkUnitsFilter=!1;pathSkUnitsFilterControl=new Ua(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((i,t)=>i.properties.quantity>t.properties.quantity?1:-1),this.pathSkUnitsFiltersList.unshift(this.unitlessUnit),e.value.pathSkUnitsFilter&&this.pathSkUnitsFilterControl.setValue(this.pathSkUnitsFiltersList.find(i=>i.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(Ue(this._destroyRef)).subscribe(()=>{this.pathFormGroup().controls.path.updateValueAndValidity()}),e.controls.path.valid?this.enableFormFields(!1):this.disablePathFields(),e.controls.sampleTime||(e.addControl("sampleTime",new de("500",Y.required)),e.controls.sampleTime.updateValueAndValidity({onlySelf:!0,emitEvent:!1})),e.controls.path.valueChanges.pipe(Fi(i=>i===""?Ai(0):Ai(350)),mt(""),ct(i=>this.filterPaths(i||""))).pipe(Ue(this._destroyRef)).subscribe(()=>{let i=this.pathFormGroup();i.controls.path.pristine||(i.controls.path.valid?(this.enableFormFields(!0),this.updatePathMetaBoundDisplayName(i.controls.path.value),this.updatePathMetaBoundDisplayScale(i.controls.path.value)):this.disablePathFields())}),e.controls.pathType.valueChanges.pipe(Ue(this._destroyRef)).subscribe(()=>{let i=this.pathFormGroup();i.value.showPathSkUnitsFilter?this.pathSkUnitsFilterControl.setValue(this.unitlessUnit):this.pathSkUnitsFilterControl.setValue(null),i.controls.path.updateValueAndValidity()}))}ngOnChanges(e){e.filterSelfPaths&&!e.filterSelfPaths.firstChange&&this.pathFormGroup().controls.path.updateValueAndValidity()}getPaths(){let e=this.pathFormGroup().controls.pathType.value,i=this.filterSelfPaths(),t=!1,l=this.pathFormGroup();if(l.value.supportsPut){let d=!1;this.multiCTRLArray().length>0&&(d=this.multiCTRLArray().some(g=>g.pathID===this.pathFormGroup().value.pathID&&g.type==="3")),d?t=!1:t=la(this._connection.skServerVersion,"2.12.0",">=")?l.value.supportsPut:!1}return this._data.getPathsAndMetaByType(e,t,i).sort()}filterPaths(e){let i=e.toLowerCase(),t=this.getPaths();if(this.pathSkUnitsFilterControl.value){let l=this.pathSkUnitsFilterControl.value.unit;t=t.filter(d=>{let g=!!d.meta&&!!d.meta.units,C=l==="unitless";return g&&d.meta.units===l||!g&&C})}t=t.filter(l=>l.path.toLowerCase().includes(i)),this.filteredPaths.next(t)}enableFormFields(e){let i=this._data.getPathObject(this.pathFormGroup().controls.path.value);if(i!=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(i.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(i.sources).length>1&&(this.availableSources=Object.keys(i.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 i=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(i.parent.parent.value,"displayName"))return;let t=this._data.getPathMeta(e);t?.displayName&&i.parent.parent.controls.displayName.setValue(t.displayName)}updatePathMetaBoundDisplayScale(e){let i=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(i.parent.parent.value,"displayScale"))return;let t=this._data.getPathMeta(e);if(t?.displayScale){let l=i.parent.parent.get("displayScale"),d=i.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(i){return new(i||a)};static \u0275cmp=v({type:a,selectors:[["path-control-config"]],inputs:{pathFormGroup:[1,"pathFormGroup"],multiCTRLArray:[1,"multiCTRLArray"],filterSelfPaths:[1,"filterSelfPaths"]},features:[ot],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(i,t){i&1&&u(0,Vn,36,13,"div",3),i&2&&A(t.pathFormGroup().value.isPathConfigurable?0:-1)},dependencies:[ae,te,Ze,F,ie,L,B,Me,H,Xe,R,V,oe,Eo,si,Z,wt,Pt,se,Mt,ei,me,Ce,ee,ja,Wt],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 a})();function Nn(a,s){if(a&1&&b(0,"path-control-config",6),a&2){let e=s.$implicit,i=f(2);p("pathFormGroup",e)("filterSelfPaths",i.filterSelfPaths().value)("multiCTRLArray",i.multiCTRLArray)}}function Wn(a,s){if(a&1&&y(0,Nn,1,3,"path-control-config",6,I),a&2){let e=f();x(e.pathsFormGroup.controls)}}function Un(a,s){if(a&1&&b(0,"path-control-config",6),a&2){let e=s.$implicit,i=f(2);p("pathFormGroup",i.pathsFormGroup.get(e))("filterSelfPaths",i.filterSelfPaths().value)("multiCTRLArray",i.multiCTRLArray)}}function Qn(a,s){if(a&1&&(y(0,Un,1,3,"path-control-config",6,I),Ne(2,"objectKeys")),a&2){let e=f();x(We(2,0,e.pathsFormGroup.controls))}}var Io=(()=>{class a{rootFormGroup=m(H);fb=m(xt);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,Y.required],pathID:[e.path.pathID],source:[e.path.source,Y.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(i){return new(i||a)};static \u0275cmp=v({type:a,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:[ot],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(i,t){i&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()()(),zi(9,4),u(10,Wn,2,0)(11,Qn,3,2),ji(),n(12,"mat-checkbox",5),r(13,` Restrict to own vessel
5
+ `),o()),i&2&&(c(),p("formControl",t.enableTimeout()),c(5),p("formControl",t.dataTimeout()),c(3),p("formGroup",t.pathsFormGroup),c(),A(t.isArray()?10:11),c(2),p("formControl",t.filterSelfPaths()))},dependencies:[Se,ae,te,Ze,F,ie,L,yt,B,Me,H,R,V,oe,Mt,Do,Mo],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:5px}"]})}return a})();function qn(a,s){if(a&1){let e=P();n(0,"button",7),_("click",function(){M(e);let t=f();return w(t.dateTimezone().setValue(""))}),b(1,"span",8),o()}}function zn(a,s){if(a&1&&(n(0,"mat-option",6),r(1),o()),a&2){let e=s.$implicit;p("value",e.label),c(),ht(" ",e.offset," - ",e.label," ")}}function jn(a){return s=>a.some(i=>i.label===s.value)?null:{requireMatch:!0}}var Yn=()=>{let a=Intl.supportedValuesOf("timeZone"),s=new Date;return a.map(e=>({offset:new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(s).find(d=>d.type==="timeZoneName")?.value||"",label:e}))},Go=(()=>{class a{_destroyRef=m(Le);dateFormat=h(void 0);dateTimezone=h(void 0);tz=[];filteredTZ;filteredTZSubscription=null;constructor(){}ngOnInit(){typeof Intl.supportedValuesOf<"u"?this.tz=Yn().sort((e,i)=>this.compareOffsets(e.offset,i.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,i)=>this.compareOffsets(e.offset,i.offset))),this.tz.unshift({offset:"",label:"System Timezone -"}),this.dateTimezone().setValidators([Y.required,jn(this.tz)]),this.filteredTZ=this.dateTimezone().valueChanges.pipe(Bt(500),mt(""),ct(e=>this.filterTZ(e||""))),this.filteredTZSubscription=this.filteredTZ.pipe(Ue(this._destroyRef)).subscribe()}filterTZ(e){let i=e.toLowerCase();return this.tz.filter(t=>t.label.toLowerCase().includes(i))}compareOffsets(e,i){let t=l=>{let d=l.match(/([+-]?)(\d+)(?::(\d+))?/);if(!d)return 0;let g=d[1]==="-"?-1:1,C=parseInt(d[2],10),S=d[3]?parseInt(d[3],10):0;return g*(C*60+S)};return t(e)-t(i)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){if(i&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),u(9,qn,2,0,"button",5),n(10,"mat-autocomplete",null,0),y(12,zn,2,3,"mat-option",6,Rt),Ne(14,"async"),o()()()),i&2){let l=Ae(11);c(4),p("formControl",t.dateFormat()),c(4),p("formControl",t.dateTimezone())("matAutocomplete",l),c(),A(t.dateTimezone().value?9:-1),c(3),x(We(14,4,t.filteredTZ))}},dependencies:[R,V,oe,ae,te,F,L,B,Me,Pt,se,Mt,si,Z,Wt],encapsulation:2})}return a})();function Hn(a,s){if(a&1&&(n(0,"mat-option",6),r(1),Ne(2,"titlecase"),o()),a&2){let e=s.$implicit;p("value",Ee(e)),c(),k(We(2,3,e))}}var Ei={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"},Po={options:{modes:[],states:[]},state:null,mode:"off-line",target:null,engaged:!1},Oo=(()=>{class a{formGroupName=h.required();_plugins=m(ai);_destroyRef=m(Le);http=m(oa);rootFormGroup=m(H);autopilotFormGroup;apiVersion=D(null);availableAutopilots=D({});autopilotPlugin=D(null);discoveryInProgress=D(!1);apiDetectionError=D(null);apInstances=Ji(()=>{let e=this.availableAutopilots();return e?Object.keys(e):[]});modes=D(null);pluginId=D(null);currentRequests=new Set;constructor(){ft(()=>{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(Ei.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 Lt(this.makeHttpRequest(this.http.get(Ei.V2_AUTOPILOTS,{observe:"response",responseType:"json"}))))?.status===200}catch(e){if(e&&typeof e=="object"&&"status"in e){let i=e;i.status===404?console.log("[Autopilot Options] V2 API endpoint not found (404)"):i.status>=500?console.warn("[Autopilot Options] V2 API server error:",i.status,i.statusText):console.log("[Autopilot Options] V2 API error:",i.status,i.statusText)}else console.log("[Autopilot Options] V2 API network error:",e);return!1}})}discoverV2Autopilots(){return N(this,null,function*(){try{let e=yield Lt(this.makeHttpRequest(this.http.get(Ei.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 i;try{try{this.discoveryInProgress.set(!0),i=yield Lt(this.makeHttpRequest(this.http.get(`API_PATHS.V2_AUTOPILOTS/${e}`))),console.log("[Autopilot Options] V2 Autopilot Options response:",JSON.stringify(i))}catch{i=Po,console.log(`[Autopilot Options] Default AP discovery endpoint error for instance '${e}'`)}return this.discoveryInProgress.set(!1),i}catch(t){return console.error("[Autopilot Options] Failed to discover V2 endpoints:",t),console.log(`[Autopilot Options] Using fallback V2 endpoints for instance '${e}'`),Po}})}onAutopilotInstanceIdChange(e){let i=e.value;if(e.value===""){this.modes.set(""),this.autopilotFormGroup.get("modes")?.setValue("",{emitEvent:!1});return}console.log("[Autopilot Options] Selected Autopilot Instance ID:",i),this.apiVersion()==="v2"?this.discoverV2AutopilotOptions(i).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 i=e.pipe(Ue(this._destroyRef));return this.currentRequests.add(i),i.pipe(Bi(()=>this.currentRequests.delete(i)))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&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),_("selectionChange",function(d){return t.onAutopilotInstanceIdChange(d)}),n(18,"mat-option",5),r(19,"No autopilot"),o(),y(20,Hn,3,5,"mat-option",6,I),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()()()),i&2&&(c(),p("formGroup",t.autopilotFormGroup),c(8),U(" ",t.apiVersion()),c(4),U(" ",t.pluginId()),c(7),x(t.apInstances()),c(5),U(" ",t.modes()," "))},dependencies:[B,F,ie,L,H,Xe,we,R,V,$e,Se,Je,me,Z,Ke,ia],styles:[".autopilot-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}"]})}return a})();var Fo=()=>["measuring","capacity"],Zn=()=>["marineCompass","baseplateCompass"],Xn=()=>["measuring"];function Kn(a,s){if(a&1&&b(0,"config-display-chart-options",5),a&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(a,s){a&1&&b(0,"select-autopilot",6)}function $n(a,s){a&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"URL"),o(),b(3,"input",40),o())}function er(a,s){a&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(a,s){a&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Widget Label"),o(),b(3,"input",41),o())}function ir(a,s){a&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(a,s){a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Integer Places"),o(),b(3,"input",45),o())}function or(a,s){if(a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Decimal Places"),o(),b(3,"input",46),o()),a&2){let e=f(2);gt(e.widgetConfig.showMiniChart!==void 0?"options-grid-span2":"")}}function nr(a,s){a&1&&(n(0,"mat-checkbox",19),r(1," Show Min recorded value "),o())}function rr(a,s){a&1&&(n(0,"mat-checkbox",20),r(1," Show Max recorded value "),o())}function lr(a,s){if(a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Next Dashboard after start"),o(),b(3,"input",47),o()),a&2){let e=f(2);W("options-grid-span2",!e.widgetConfig.numInt)}}function sr(a,s){if(a&1&&(n(0,"mat-option",50),r(1),o()),a&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function cr(a,s){if(a&1&&(n(0,"mat-optgroup",49),y(1,sr,2,2,"mat-option",50,I),o()),a&2){let e=f().$implicit;p("label",e.group),c(),x(e.units)}}function dr(a,s){if(a&1&&u(0,cr,3,1,"mat-optgroup",49),a&2){let e=s.$implicit,i=f(3);A(!i.widgetConfig.convertUnitToGroup||i.widgetConfig.convertUnitToGroup===""||i.widgetConfig.convertUnitToGroup===e.group?0:-1)}}function mr(a,s){if(a&1&&(n(0,"mat-form-field",22)(1,"mat-label"),r(2,"Display Units"),o(),n(3,"mat-select",48),y(4,dr,1,1,null,null,I),o()()),a&2){let e=f(2);c(4),x(e.unitList.conversions)}}function pr(a,s){a&1&&(n(0,"mat-checkbox",23),r(1," Enable beeps on count down "),o())}function ur(a,s){if(a&1&&b(0,"display-datetime-options",24),a&2){let e=f(2);p("dateFormat",e.dateFormatToControl)("dateTimezone",e.dateTimezoneToControl)}}function Ar(a,s){a&1&&(n(0,"mat-checkbox",25),r(1," Close-hauled Lines "),o())}function gr(a,s){a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Vessel Close-hauled Angle"),o(),b(3,"input",51),o())}function hr(a,s){a&1&&(n(0,"mat-checkbox",26),r(1," Wind Sectors "),o())}function fr(a,s){a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Sector Duration"),o(),b(3,"input",52),o())}function br(a,s){a&1&&(n(0,"mat-checkbox",27),r(1," Apparent Wind Speed Value "),o())}function _r(a,s){a&1&&(n(0,"mat-checkbox",28),r(1," True Wind Speed Value "),o())}function vr(a,s){a&1&&(n(0,"mat-checkbox",29),r(1," Course Over Ground "),o())}function Cr(a,s){a&1&&(n(0,"mat-checkbox",30),r(1," True Wind Angle Indicator "),o())}function yr(a,s){a&1&&(n(0,"mat-checkbox",31),r(1," Next Waypoint "),o())}function xr(a,s){a&1&&(n(0,"mat-checkbox",32),r(1," Drift "),o())}function Mr(a,s){a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Minimum Value"),o(),b(3,"input",53),o())}function wr(a,s){a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Maximum Value"),o(),b(3,"input",54),o())}function Sr(a,s){a&1&&(n(0,"mat-checkbox",33),r(1," Ignore Zones configuration "),o())}function kr(a,s){a&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Highlights Width"),o(),b(3,"input",55),o())}function Tr(a,s){a&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(a,s){a&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(a,s){a&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Progress Bar Start Angle"),o(),b(3,"input",67),o())}function Ir(a,s){if(a&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()()(),u(8,Er,10,0,"mat-form-field",34),u(9,Dr,4,0,"mat-form-field",34)),a&2){let e=f(3);c(8),A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"&&Et(2,Xn).includes(e.formMaster.value.gauge.subType)?8:-1),c(),A(e.formMaster.value.gauge.subType==="capacity"?9:-1)}}function Gr(a,s){if(a&1&&u(0,Tr,14,0)(1,Ir,10,3),a&2){let e=f(2);A(Et(1,Zn).indexOf(e.formMaster.value.gauge.subType)>-1?0:Et(2,Fo).indexOf(e.formMaster.value.gauge.subType)>-1?1:-1)}}function Pr(a,s){a&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(a,s){a&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(a,s){if(a&1&&(n(0,"mat-option",50),r(1),o()),a&2){let e=s.$implicit;p("value",Ee(e.value)),c(),k(e.label)}}function Lr(a,s){if(a&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Color"),o(),n(3,"mat-select",76),y(4,Fr,2,3,"mat-option",50,I),o()()),a&2){let e=f(2);c(4),x(e.colors)}}function Br(a,s){a&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(a,s){a&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(a,s){a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale Start"),o(),b(3,"input",81),o())}function Nr(a,s){a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale End"),o(),b(3,"input",82),o())}function Wr(a,s){a&1&&(n(0,"mat-checkbox",37),r(1," Inverse Scale Axis "),o())}function Ur(a,s){a&1&&(n(0,"mat-checkbox",38),r(1," Vertical Data Graph "),o())}function Qr(a,s){a&1&&(n(0,"mat-checkbox",39),r(1," Disable background color "),o())}function qr(a,s){if(a&1&&(n(0,"mat-option",50),r(1),o()),a&2){let e=s.$implicit;p("value",Ee(e.value)),c(),k(e.label)}}function zr(a,s){if(a&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Background Color"),o(),n(3,"mat-select",83),y(4,qr,2,3,"mat-option",50,I),o()()),a&2){let e=f(2);c(4),x(e.colors)}}function jr(a,s){a&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(a,s){a&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(a,s){if(a&1&&(u(0,jr,40,0,"mat-form-field",34),u(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()()()),a&2){let e=f(2);A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)!=="horizon"?0:-1),c(),A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="horizon"?1:-1)}}function Zr(a,s){if(a&1&&(n(0,"div",7)(1,"div",15),u(2,$n,4,0,"mat-form-field",16),u(3,er,2,0,"mat-checkbox",17),u(4,tr,4,0,"mat-form-field",16),u(5,ir,8,0),u(6,ar,4,0,"mat-form-field"),u(7,or,4,2,"mat-form-field",18),u(8,nr,2,0,"mat-checkbox",19),u(9,rr,2,0,"mat-checkbox",20),u(10,lr,4,2,"mat-form-field",21),u(11,mr,6,0,"mat-form-field",22),u(12,pr,2,0,"mat-checkbox",23),u(13,ur,1,2,"display-datetime-options",24),u(14,Ar,2,0,"mat-checkbox",25),u(15,gr,4,0,"mat-form-field"),u(16,hr,2,0,"mat-checkbox",26),u(17,fr,4,0,"mat-form-field"),u(18,br,2,0,"mat-checkbox",27),u(19,_r,2,0,"mat-checkbox",28),u(20,vr,2,0,"mat-checkbox",29),u(21,Cr,2,0,"mat-checkbox",30),u(22,yr,2,0,"mat-checkbox",31),u(23,xr,2,0,"mat-checkbox",32),u(24,Mr,4,0,"mat-form-field"),u(25,wr,4,0,"mat-form-field"),u(26,Sr,2,0,"mat-checkbox",33),u(27,kr,4,0,"mat-form-field",34),u(28,Gr,2,3),u(29,Pr,14,0),u(30,Or,8,0,"mat-form-field",35),u(31,Lr,6,0,"mat-form-field",16),u(32,Br,10,0,"mat-form-field",16),u(33,Vr,4,0,"mat-checkbox",36),u(34,Rr,4,0,"mat-form-field"),u(35,Nr,4,0,"mat-form-field"),u(36,Wr,2,0,"mat-checkbox",37),u(37,Ur,2,0,"mat-checkbox",38),u(38,Qr,2,0,"mat-checkbox",39),u(39,zr,6,0,"mat-form-field"),u(40,Hr,28,2),o()()),a&2){let e=f();c(2),A((e.widgetConfig==null?null:e.widgetConfig.widgetUrl)!==void 0?2:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.allowInput)!==void 0?3:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.displayName)!==void 0?4:-1),c(),A(e.formMaster.get("displayScale")?5:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.numInt)!==void 0?6:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.numDecimal)!==void 0?7:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.showMin)!==void 0?8:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.showMax)!==void 0?9:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.nextDashboard)!==void 0?10:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.convertUnitTo)!==void 0?11:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.playBeeps)!==void 0?12:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.dateFormat)!==void 0?13:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.laylineEnable)!==void 0?14:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.laylineEnable)!==void 0?15:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.windSectorEnable)!==void 0?16:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.windSectorEnable)!==void 0?17:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.awsEnable)!==void 0?18:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.twsEnable)!==void 0?19:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.courseOverGroundEnable)!==void 0?20:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.twaEnable)!==void 0?21:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.waypointEnable)!==void 0?22:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.driftEnable)!==void 0?23:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.minValue)!==void 0&&!e.formMaster.get("displayScale")?24:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.maxValue)!==void 0&&!e.formMaster.get("displayScale")?25:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.ignoreZones)!==void 0?26:-1),c(),A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"&&Et(39,Fo).includes(e.formMaster.value.gauge.subType)||(e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngLinear"?27:-1),c(),A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"?28:-1),c(),A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngLinear"?29:-1),c(),A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="simpleLinear"?30:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.color)!==void 0?31:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.timeScale)!==void 0?32:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.showMiniChart)!==void 0?33:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.yScaleMin)!==void 0?34:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.yScaleMax)!==void 0?35:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.inverseYAxis)!==void 0?36:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.verticalChart)!==void 0?37:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.noBgColor)!==void 0?38:-1),c(),A((e.widgetConfig==null?null:e.widgetConfig.bgColor)!==void 0?39:-1),c(),A((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(a,s){if(a&1&&(b(0,"span",120),r(1,"\xA0Controls ")),a&2){let e=f(2);At(e.formMaster.controls.multiChildCtrls.valid?"display: none":"display: block")}}function Kr(a,s){if(a&1){let e=P();n(0,"mat-tab",8)(1,"div",117)(2,"div"),Te(3,Xr,2,2,"ng-template",118),o(),n(4,"boolean-multicontrol-options",119),_("addPath",function(t){M(e);let l=f();return w(l.addPathGroup(t))})("updatePath",function(t){M(e);let l=f();return w(l.updatePath(t))})("delPath",function(t){M(e);let l=f();return w(l.deletePath(t))}),o()()()}if(a&2){let e=f();c(4),p("multiCtrlArray",e.multiChildCtrlsToControl)}}function Jr(a,s){if(a&1&&(n(0,"span",122),r(1," error "),o(),r(2," \xA0Paths ")),a&2){let e=f(2);At(e.formMaster.controls.paths.valid||e.formMaster.controls.paths.disabled?"display: none":"display: block")}}function $r(a,s){if(a&1&&(n(0,"mat-tab",9)(1,"div",117)(2,"div"),Te(3,Jr,3,2,"ng-template",118),o(),b(4,"paths-options",121),o()()),a&2){let e=f();c(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(a,s){a&1&&(n(0,"p")(1,"mat-checkbox",125),r(2," Digital display "),o()())}function tl(a,s){a&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(a,s){if(a&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()()(),u(10,el,3,0,"p"),u(11,tl,12,0,"mat-form-field",16),o()()),a&2){let e=f();c(10),A(e.formMaster.value.gauge.subType==="linear"?10:-1),c(),A(e.formMaster.value.gauge.subType==="radial"?11:-1)}}function al(a,s){a&1&&(n(0,"p")(1,"mat-checkbox",132),r(2," Value to send on button push (checked = on, unchecked = off) "),o()())}function ol(a,s){if(a&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()(),u(8,al,3,0,"p"),o()()),a&2){let e=f();c(8),A(e.formMaster.controls.putMomentary.value?8:-1)}}function nl(a,s){a&1&&b(0,"span",120)}function rl(a,s){if(a&1&&(u(0,nl,1,0,"span",120),r(1," Dataset ")),a&2){let e=f(2);A(e.formMaster.controls.datasetUUID.valid?-1:0)}}function ll(a,s){if(a&1&&(n(0,"mat-tab",12),Te(1,rl,2,1,"ng-template",118),b(2,"config-dataset-chart-options",133),o()),a&2){let e=f();c(2),p("datasetUUID",e.datasetUUIDToControl)("convertUnitTo",e.convertUnitToControl)}}var Lo=(()=>{class a{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(qe);fb=m(xt);DatasetService=m(ii);units=m(St);app=m(bt);widgetConfig=m(ze);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,i)=>{let t=e.label||"",l=i.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,i){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===a.KEY_MULTI_CHILD_CTRLS){t.addControl(l,this.fb.array([]));let g=t.get(l);d.forEach(C=>{g.push(this.generateCtrlArray(C))})}else if(l===a.KEY_DISPLAY_SCALE)t.addControl(l,this.generateFormGroups(d,l));else if(l===a.KEY_GAUGE)t.addControl(l,this.generateFormGroups(d,l));else if(l===a.KEY_AUTOPILOT)t.addControl(l,this.generateFormGroups(d,l));else if(l===a.KEY_PATHS){let g=d;if(this.widgetConfig.multiChildCtrls!==void 0){this.isPathArray=!0,t.addControl(l,this.fb.array([]));let C=t.get(l);Object.keys(g).forEach(S=>{let T=g[S];if(T){let E=this.generatePathArray(S,T);T.isPathConfigurable===!1&&E.disable(),C.push(E)}})}else{let C=this.fb.group({});Object.keys(g).forEach(S=>{let T=g[S];if(T){let E=this.generateFormGroups(T,S);T.isPathConfigurable===!1&&E.disable(),C.addControl(S,E)}}),t.addControl(l,C)}}i===a.KEY_PATHS&&t.addControl(l,this.generateFormGroups(d,l))}else if(i===a.KEY_CONVERT_UNIT_TO){let g=e[l];(g&&g.pathType=="number"||"datasetUUID"in this.widgetConfig)&&t.addControl(l,new de(d))}else switch(l){case"path":t.addControl(l,new de(d));break;case"datasetUUID":t.addControl(l,new de(d,Y.required));break;case"dataTimeout":t.addControl(l,new de(d,Y.required));break;default:t.addControl(l,new de(d));break}}),t}generatePathArray(e,i){let t=new Na({});return Object.keys(i).forEach(l=>{t.addControl(l,this.generatePathFields(l,i[l]))}),t}generatePathFields(e,i){let t=null;switch(e){case"path":t=new de(i);break;case"source":t=new de(i,Y.required);break;case"sampleTime":t=new de(i,Y.required);break;default:t=new de(i);break}return t}generateCtrlArray(e){let i=this.fb.group(e);return i.get("ctrlLabel").addValidators(Y.required),i}addPathGroup(e){this.addPathEvent=e}updatePath(e){e.forEach(i=>{this.formMaster.get("paths").controls.forEach(l=>{l.get("pathID").value==i.pathID&&(l.controls.description.setValue(i.ctrlLabel),l.controls.pathType.setValue(i.isNumeric?"number":"boolean"),this.updatePathEvent=e)})})}deletePath(e){let i=this.formMaster.get("paths"),t=0;i.controls.forEach(d=>{d.get("pathID").value==e.pathID?i.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(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&1&&(n(0,"form",0),_("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),u(6,Kn,1,23,"config-display-chart-options",5)(7,Jn,1,0,"select-autopilot",6)(8,Zr,41,40,"div",7),o(),u(9,Kr,5,1,"mat-tab",8),u(10,$r,5,7,"mat-tab",9),u(11,il,12,2,"mat-tab",10),u(12,ol,9,1,"mat-tab",11),u(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()()()),i&2&&(p("formGroup",t.formMaster),c(2),k(t.titleDialog),c(4),A((t.widgetConfig==null?null:t.widgetConfig.datasetUUID)!==void 0?6:t.widgetConfig!=null&&t.widgetConfig.autopilot?7:8),c(3),A((t.widgetConfig==null?null:t.widgetConfig.multiChildCtrls)!==void 0?9:-1),c(),A((t.widgetConfig==null?null:t.widgetConfig.paths)!==void 0?10:-1),c(),A((t.widgetConfig==null||t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="steel"?11:-1),c(),A((t.widgetConfig==null?null:t.widgetConfig.putEnable)!==void 0&&(t.widgetConfig==null?null:t.widgetConfig.multiChildCtrls)===void 0?12:-1),c(),A((t.widgetConfig==null?null:t.widgetConfig.datasetUUID)!==void 0?13:-1),c(5),p("disabled",!t.formMaster.valid))},dependencies:[ae,Jt,te,Ze,F,ie,L,yt,$t,B,H,Xe,qa,xe,je,Ye,Ct,He,we,R,V,Ke,oe,co,ro,lo,so,$e,Se,Je,me,Z,wt,ti,Ha,ce,Qe,Go,yo,xo,vo,Io,Oo],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 a})();var sl=["button"],cl=["*"];function dl(a,s){if(a&1&&(n(0,"div",2),b(1,"mat-pseudo-checkbox",6),o()),a&2){let e=f();c(),p("disabled",e.disabled)}}var Bo=new J("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:ml});function ml(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Vo=new J("MatButtonToggleGroup"),pl={provide:Kt,useExisting:Tt(()=>Di),multi:!0},ci=class{source;value;constructor(s,e){this.source=s,this.value=e}},Di=(()=>{class a{_changeDetector=m(nt);_dir=m(Ht,{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(Dt).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}valueChange=new le;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 le;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(Bo,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new to(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(g=>g.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 i=new ci(e,this.value);this._rawValue=i.value,this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(e,i,t=!1,l=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?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(i=>e.value!=null&&i===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 i=this._buttonToggles.get(e);if(!i.disabled){i.tabIndex=0;break}}}_getNextButton(e,i){let t=this._buttonToggles;for(let l=1;l<=t.length;l++){let d=(e+i*l+t.length)%t.length,g=t.get(d);if(g&&!g.disabled)return g}return null}_setSelectionByValue(e){if(this._rawValue=e,!this._buttonToggles)return;let i=this._buttonToggles.toArray();if(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(t=>this._selectValue(t,i))):(this._clearSelection(),this._selectValue(e,i)),!this.multiple&&i.every(t=>t.tabIndex===-1)){for(let t of i)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,i){for(let t of i)if(t.value===e){t.checked=!0,this._selectionModel.select(t),this.multiple||(t.tabIndex=0);break}}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static \u0275fac=function(i){return new(i||a)};static \u0275dir=Q({type:a,selectors:[["mat-button-toggle-group"]],contentQueries:function(i,t,l){if(i&1&&ue(l,di,5),i&2){let d;z(d=j())&&(t._buttonToggles=d)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(i,t){i&1&&_("keydown",function(d){return t._keydown(d)}),i&2&&(q("role",t.multiple?"group":"radiogroup")("aria-disabled",t.disabled),W("mat-button-toggle-vertical",t.vertical)("mat-button-toggle-group-appearance-standard",t.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",O],value:"value",multiple:[2,"multiple","multiple",O],disabled:[2,"disabled","disabled",O],disabledInteractive:[2,"disabledInteractive","disabledInteractive",O],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",O],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",O]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Re([pl,{provide:Vo,useExisting:a}])]})}return a})(),di=(()=>{class a{_changeDetectorRef=m(nt);_elementRef=m(pe);_focusMonitor=m(ga);_idGenerator=m(Dt);_animationDisabled=ye();_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 le;constructor(){m(zt).load(Zt);let e=m(Vo,{optional:!0}),i=m(new $i("tabindex"),{optional:!0})||"",t=m(Bo,{optional:!0});this._tabIndex=D(parseInt(i)||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 i=this.buttonToggleGroup._buttonToggles.find(t=>t.tabIndex===0);i&&(i.tabIndex=-1),this.tabIndex=0}this.change.emit(new ci(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,selectors:[["mat-button-toggle"]],viewQuery:function(i,t){if(i&1&&Ve(sl,5),i&2){let l;z(l=j())&&(t._buttonElement=l.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(i,t){i&1&&_("focus",function(){return t.focus()}),i&2&&(q("aria-label",null)("aria-labelledby",null)("id",t.id)("name",null),W("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",O],appearance:"appearance",checked:[2,"checked","checked",O],disabled:[2,"disabled","disabled",O],disabledInteractive:[2,"disabledInteractive","disabledInteractive",O]},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(i,t){if(i&1){let l=P();ve(),n(0,"button",1,0),_("click",function(){return M(l),w(t._onButtonClick())}),u(2,dl,2,1,"div",2),n(3,"span",3),X(4),o()(),b(5,"span",4)(6,"span",5)}if(i&2){let l=Ae(1);p("id",t.buttonId)("disabled",t.disabled&&!t.disabledInteractive||null),q("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),c(2),A(t.buttonToggleGroup&&(!t.buttonToggleGroup.multiple&&!t.buttonToggleGroup.hideSingleSelectionIndicator||t.buttonToggleGroup.multiple&&!t.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),c(4),p("matRippleTrigger",l)("matRippleDisabled",t.disableRipple||t.disabled)}},dependencies:[ya,Za],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 a})(),Ro=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=_e({type:a});static \u0275inj=be({imports:[$,Xt,di,$]})}return a})();var Al=["Core","Gauge","Component","Racing"];var No=(()=>{class a{_plugins=m(ai);_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={},i=Array.from(new Set(this._widgetDefinition.flatMap(t=>[...t.requiredPlugins||[],...t.optionalPlugins||[]])));return yield Promise.all(i.map(t=>N(this,null,function*(){e[t]=yield this._plugins.isEnabled(t)}))),this._widgetDefinition.map(t=>{let l=t.requiredPlugins||[],d=t.optionalPlugins||[],g=l.map(E=>({name:E,enabled:e[E],required:!0})),C=d.map(E=>({name:E,enabled:e[E],required:!1})),S=[...g,...C],T=g.every(E=>E.enabled);return T&&d.length>0&&(T=C.some(E=>E.enabled)),he(re({},t),{isDependencyValid:T,pluginsStatus:S})})})}static \u0275fac=function(i){return new(i||a)};static \u0275prov=fe({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function gl(a,s){a&1&&(n(0,"span"),r(1,", "),o())}function hl(a,s){if(a&1&&(n(0,"span",8),r(1),n(2,"span",9),r(3),o()(),u(4,gl,2,0,"span")),a&2){let e=s.$implicit,i=s.$index,t=s.$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"),q("title",e.required?"Required":"Optional"),c(),ht(" ",e.enabled?"\u2714":"\u2716"," ",e.name," "),c(2),k(e.required?"":"(optional)"),c(),A(i!==t-1?4:-1)}}function fl(a,s){if(a&1&&(n(0,"div",7)(1,"span"),r(2,"Plugins:"),o(),y(3,hl,5,6,null,null,I),o()),a&2){let e=f();At(e.pluginsStatus().length>0?"margin-bottom: 8px;margin-top: 4px;":""),c(),gt(e.pluginDependencyValid()?"":"dependency-error"),c(2),x(e.pluginsStatus())}}var Wo=(()=>{class a{static _iconSetRegistered=!1;svgIcon=h.required();iconSize=h.required();name=h.required();description=h.required();pluginsStatus=h.required();pluginDependencyValid=h.required();constructor(){let e=m(pa),i=m(ca);a._iconSetRegistered||(e.addSvgIconSet(i.bypassSecurityTrustResourceUrl("assets/svg/icons.svg")),a._iconSetRegistered=!0)}onKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.target.click())}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,selectors:[["widget-list-card"]],hostBindings:function(i,t){i&1&&_("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(i,t){i&1&&(n(0,"div",0)(1,"div",1),b(2,"mat-icon",2),o(),n(3,"div",3)(4,"p",4),r(5),o(),u(6,fl,5,4,"div",5),n(7,"span",6),r(8),o()()()),i&2&&(q("aria-disabled",t.pluginDependencyValid()?null:"true"),c(2),Nt("width",t.iconSize(),"px")("height",t.iconSize(),"px"),p("svgIcon",t.svgIcon()),c(2),At(t.pluginsStatus().length>0?"margin-bottom:0px; margin-top: 4px":""),c(),k(t.name()),c(),A(t.pluginsStatus().length>0?6:-1),c(2),k(t.description()))},dependencies:[aa,ea,Ce,ee],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 a})();var bl=(a,s)=>s.selector;function _l(a,s){if(a&1&&(n(0,"mat-button-toggle",1),r(1),o()),a&2){let e=s.$implicit;p("value",e),c(),U(" ",e," ")}}function vl(a,s){if(a&1){let e=P();n(0,"widget-list-card",3),_("click",function(){let t=M(e).$implicit,l=f();return w(l.onSelectWidget(t))}),o()}if(a&2){let e=s.$implicit;W("dependency-missing",!e.isDependencyValid),p("svgIcon",e.icon)("iconSize",48)("name",e.name)("description",e.description)("pluginDependencyValid",e.isDependencyValid)("pluginsStatus",e.pluginsStatus)}}var Uo=(()=>{class a{_dialogRef=m(qe);_widgets=m(No);_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(i=>i.category===e.value)),this._widgetCategory.set(e.value)}onSelectWidget(e){if(!e.isDependencyValid)return;let{name:i,description:t,icon:l,minWidth:d,minHeight:g,defaultWidth:C,defaultHeight:S,category:T,requiredPlugins:E,optionalPlugins:et,selector:tt,componentClassName:Ft}=e,it=he(re({name:i,description:t,icon:l,minWidth:d,minHeight:g,defaultWidth:C,defaultHeight:S,category:T,requiredPlugins:E},et?{optionalPlugins:et}:{}),{selector:tt,componentClassName:Ft});this._dialogRef.close(it)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&1&&(n(0,"div")(1,"mat-button-toggle-group",0),_("change",function(d){return t.onCategoryChange(d)}),y(2,_l,2,2,"mat-button-toggle",1,I),o(),n(4,"div"),y(5,vl,1,8,"widget-list-card",2,bl),o()()),i&2&&(c(),p("value",t._widgetCategory()),c(),x(t._widgets.categories),c(3),x(t.filteredWidgetsList()))},dependencies:[Ro,Di,di,Wo],styles:[".list-filter[_ngcontent-%COMP%]{margin-bottom:20px}.dependency-missing[_ngcontent-%COMP%]{pointer-events:none;opacity:.8;background-color:var(--mat-sys-neutral10)}"]})}return a})();var Qo=(()=>{class a{dialogRef=m(qe);fileVersionToUpgrade=9;configVersionToUpgrade=10;currentConfigVersion=11;_storage=m(sa);_settings=m(Ut);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 i of e){let t=yield this.transformConfig(i);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 ${i.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 ${i.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 i=this.transformApp(e.app),t=this.transformTheme(e.theme),l=e.layout?.rootSplits||[],d=e.layout?.splitSets||[],g=e.widget?.widgets||[],C=l.map((S,T)=>{let E=this.extractWidgetsFromSplitSets(d,g,S);return{id:S,name:`Dashboard ${T+1}`,configuration:E}});localStorage.setItem("appConfig",JSON.stringify(i)),localStorage.setItem("dashboardsConfig",JSON.stringify(C)),localStorage.setItem("themeConfig",JSON.stringify(t))}setTimeout(()=>{this._settings.reloadApp()},1500)}transformConfig(e){return N(this,null,function*(){let i=yield this._storage.getConfig(e.scope,e.name,this.fileVersionToUpgrade);if(i.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(i.app),l=this.transformTheme(i.theme),d=i.layout?.rootSplits||[],g=i.layout?.splitSets||[],C=i.widget?.widgets||[],S=d.map((E,et)=>{let tt=this.extractWidgetsFromSplitSets(g,C,E);return{id:E,name:`Dashboard ${et+1}`,configuration:tt}}),T=Qt(i);return T.app.configVersion=0,{scope:e.scope,name:e.name,newConfiguration:{app:t,theme:l,dashboards:S},oldConfiguration:T}})}transformWidget(e,i){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":i==="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,i,t){let l=new Map(i.map(it=>[it.uuid,it])),d=[],g=[],C=0,S=0,T=12,E=12,et=2,tt=2,Ft=it=>{let Gi=e.find(at=>at.uuid===it);if(!Gi){g.push(`Missing splitSet with UUID: ${it}`);return}Gi.splitAreas.forEach(at=>{if(at.type==="widget"){let ke=l.get(at.uuid);if(ke){if(ke.type==="WidgetBlank"){console.warn(`Skipping widget of type WidgetBlank with UUID: ${ke.uuid}`);return}if(S+tt>E){g.push(`No space left in the grid for widget with UUID: ${ke.uuid}`);return}let Pi=a.widgetTypeToSelectorMap[ke.type]||"widget-unknown",Ho=this.transformWidget(ke.config,ke.type);d.push({id:ke.uuid,selector:Pi,input:{widgetProperties:{type:Pi,uuid:ke.uuid,config:Ho}},x:C,y:S,w:et,h:tt}),C+=et,C>=T&&(C=0,S+=tt)}else g.push(`Missing widget with UUID: ${at.uuid}`)}else at.type==="splitSet"&&Ft(at.uuid)})};return Ft(t),g.length>0&&console.warn("Transformation Issues:",g),d}startFresh(){if(this._storage.initConfig)this._storage.listConfigs(this.fileVersionToUpgrade).then(e=>N(this,null,function*(){for(let i of e){let t=yield this._storage.getConfig(i.scope,i.name,this.fileVersionToUpgrade);if(t.app.configVersion=0,i.scope==="global")try{setTimeout(()=>{this._storage.patchGlobal(i.name,i.scope,t,"replace",9),console.log(`[Retired] Configuration ${i.scope}/${i.name} has been patched to version 0.`)},750)}catch{console.error(`[Upgrade] Error saving configuration for ${i.name}:`)}else try{yield this._storage.setConfig(i.scope,i.name,t,9),console.log(`[Retired] Configuration ${i.scope}/${i.name} has been patched to version 0.`)}catch{console.error(`[Upgrade] Error saving configuration for ${i.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(i){return new(i||a)};static \u0275cmp=v({type:a,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(i,t){i&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
+ `),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),_("click",function(){return t.upgrade()}),r(190,"Upgrade"),o(),n(191,"button",6),_("click",function(){return t.startFresh()}),r(192,"Start Fresh"),o()())},dependencies:[xe,ce,Qe],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 a})();var Lp=(()=>{class a{dialog=m(Va);openFrameDialog(e,i){switch(e.component){case"select-widget":e.componentType=Uo;break;case"upgrade-config":e.componentType=Qo;break}return this.dialog.open(go,{data:e,height:i?"calc(100% - 30px)":"",width:i?"calc(100% - 30px)":"",maxWidth:i?"100%":"",maxHeight:i?"100%":""}).afterClosed()}openConfirmationDialog(e){return this.dialog.open(ho,{data:e,minWidth:"35vw",minHeight:"25vh"}).afterClosed()}openNameDialog(e){return this.dialog.open(bo,{data:e,minWidth:"20vw",minHeight:"20vh",disableClose:!0})}openWidgetOptions(e){return this.dialog.open(Lo,{data:e.config,minWidth:"50vw",maxWidth:"90vw"})}static \u0275fac=function(i){return new(i||a)};static \u0275prov=fe({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function Cl(a,s){}var qo="_mat-bottom-sheet-enter",zo="_mat-bottom-sheet-exit",yl=(()=>{class a extends Fa{_breakpointSubscription;_animationsDisabled=ye();_animationState="void";_animationStateChanged=new le;_destroyed;constructor(){super();let e=m(jt);this._breakpointSubscription=e.observe([De.Medium,De.Large,De.XLarge]).subscribe(()=>{let i=this._elementRef.nativeElement.classList;i.toggle("mat-bottom-sheet-container-medium",e.isMatched(De.Medium)),i.toggle("mat-bottom-sheet-container-large",e.isMatched(De.Large)),i.toggle("mat-bottom-sheet-container-xlarge",e.isMatched(De.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,i){let t=i===qo;(t||i===zo)&&this._animationStateChanged.emit({toState:t?"visible":"hidden",phase:e?"start":"done"})}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=v({type:a,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(i,t){i&1&&_("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)}),i&2&&(q("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-label",t._config.ariaLabel),W("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:[Be],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,t){i&1&&Te(0,Cl,0,0,"ng-template",0)},dependencies:[wa],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 a})(),xl=new J("MatBottomSheetData"),Ii=class{viewContainerRef;panelClass;direction;data=null;hasBackdrop=!0;backdropClass;disableClose=!1;ariaLabel=null;ariaModal=!1;closeOnNavigation=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;height="";minHeight;maxHeight},mi=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new st;_result;_closeFallbackTimeout;constructor(s,e,i){this._ref=s,this.containerInstance=i,this.disableClose=e.disableClose,i._animationStateChanged.pipe(Oe(t=>t.phase==="done"&&t.toState==="visible"),dt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Oe(t=>t.phase==="done"&&t.toState==="hidden"),dt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),s.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),Pe(this.backdropClick(),this.keydownEvents().pipe(Oe(t=>t.keyCode===27))).subscribe(t=>{!this.disableClose&&(t.type!=="keydown"||!_t(t))&&(t.preventDefault(),this.dismiss())})}dismiss(s){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Oe(e=>e.phase==="start"),dt(1)).subscribe(()=>{this._closeFallbackTimeout=setTimeout(()=>this._ref.close(this._result),500),this._ref.overlayRef.detachBackdrop()}),this._result=s,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}},Ml=new J("mat-bottom-sheet-default-options"),wl=(()=>{class a{_injector=m(Fe);_parentBottomSheet=m(a,{optional:!0,skipSelf:!0});_animationsDisabled=ye();_defaultOptions=m(Ml,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=m(La);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,i){let t=re(re({},this._defaultOptions||new Ii),i),l;return this._dialog.open(e,he(re({},t),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:yl,scrollStrategy:t.scrollStrategy||Ea(this._injector),positionStrategy:Ga(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:l}),providers:(d,g,C)=>(l=new mi(d,t,C),[{provide:mi,useValue:l},{provide:xl,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(i){return new(i||a)};static \u0275prov=fe({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),$p=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=_e({type:a});static \u0275inj=be({providers:[wl],imports:[Ba,$,Sa,$]})}return a})();var jo=["*"],Sl=`.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
+ `,kl=["unscopedContent"],Tl=["text"],El=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Dl=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Il=new J("ListOption"),Gl=(()=>{class a{_elementRef=m(pe);constructor(){}static \u0275fac=function(i){return new(i||a)};static \u0275dir=Q({type:a,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return a})(),Pl=(()=>{class a{_elementRef=m(pe);constructor(){}static \u0275fac=function(i){return new(i||a)};static \u0275dir=Q({type:a,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return a})(),Ol=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275dir=Q({type:a,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return a})(),Yo=(()=>{class a{_listOption=m(Il,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||a)};static \u0275dir=Q({type:a,hostVars:4,hostBindings:function(i,t){i&2&&W("mdc-list-item__start",t._isAlignedAtStart())("mdc-list-item__end",!t._isAlignedAtStart())}})}return a})(),Fl=(()=>{class a extends Yo{static \u0275fac=(()=>{let e;return function(t){return(e||(e=pt(a)))(t||a)}})();static \u0275dir=Q({type:a,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Be]})}return a})(),Ll=(()=>{class a extends Yo{static \u0275fac=(()=>{let e;return function(t){return(e||(e=pt(a)))(t||a)}})();static \u0275dir=Q({type:a,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Be]})}return a})(),Bl=new J("MAT_LIST_CONFIG"),Ot=(()=>{class a{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=vt(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(vt(e))}_disabled=D(!1);_defaultOptions=m(Bl,{optional:!0});static \u0275fac=function(i){return new(i||a)};static \u0275dir=Q({type:a,hostVars:1,hostBindings:function(i,t){i&2&&q("aria-disabled",t.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return a})(),Vl=(()=>{class a{_elementRef=m(pe);_ngZone=m(ut);_listBase=m(Ot,{optional:!0});_platform=m(qt);_hostElement;_isButtonElement;_noopAnimations=ye();_avatars;_icons;set lines(e){this._explicitLines=Aa(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=vt(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(vt(e))}_disabled=D(!1);_subscriptions=new lt;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){m(zt).load(Zt);let e=m(Ca,{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 va(this,this._ngZone,this._hostElement,this._platform,m(Fe)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Pe(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),t=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let l=this._titles.length===0&&i===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(i){return new(i||a)};static \u0275dir=Q({type:a,contentQueries:function(i,t,l){if(i&1&&(ue(l,Fl,4),ue(l,Ll,4)),i&2){let d;z(d=j())&&(t._avatars=d),z(d=j())&&(t._icons=d)}},hostVars:4,hostBindings:function(i,t){i&2&&(q("aria-disabled",t.disabled)("disabled",t._isButtonElement&&t.disabled||null),W("mdc-list-item--disabled",t.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return a})();var ku=(()=>{class a extends Ot{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(t){return(e||(e=pt(a)))(t||a)}})();static \u0275cmp=v({type:a,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[Re([{provide:Ot,useExisting:a}]),Be],ngContentSelectors:jo,decls:1,vars:0,template:function(i,t){i&1&&(ve(),X(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 a})();var Tu=(()=>{class a extends Ot{static \u0275fac=(()=>{let e;return function(t){return(e||(e=pt(a)))(t||a)}})();static \u0275cmp=v({type:a,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Re([{provide:Ot,useExisting:a}]),Be],ngContentSelectors:jo,decls:1,vars:0,template:function(i,t){i&1&&(ve(),X(0))},styles:[Sl],encapsulation:2,changeDetection:0})}return a})(),Eu=(()=>{class a extends Vl{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=vt(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=pt(a)))(t||a)}})();static \u0275cmp=v({type:a,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,t,l){if(i&1&&(ue(l,Pl,5),ue(l,Gl,5),ue(l,Ol,5)),i&2){let d;z(d=j())&&(t._lines=d),z(d=j())&&(t._titles=d),z(d=j())&&(t._meta=d)}},viewQuery:function(i,t){if(i&1&&(Ve(kl,5),Ve(Tl,5)),i&2){let l;z(l=j())&&(t._unscopedContent=l.first),z(l=j())&&(t._itemText=l.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,t){i&2&&(q("aria-current",t._getAriaCurrent()),W("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:[Be],ngContentSelectors:Dl,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(i,t){if(i&1){let l=P();ve(El),X(0),n(1,"span",1),X(2,1),X(3,2),n(4,"span",2,0),_("cdkObserveContent",function(){return M(l),w(t._updateItemLines(!0))}),X(6,3),o()(),X(7,4),X(8,5),b(9,"div",3)}},dependencies:[fa],encapsulation:2,changeDetection:0})}return a})();var Du=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=_e({type:a});static \u0275inj=be({imports:[ba,$,Xt,io,ti]})}return a})();export{Ao as a,Xl as b,ls as c,lc as d,Co as e,Lp as f,mi as g,wl as h,$p as i,Gl as j,Ll as k,ku as l,Tu as m,Eu as n,Du as o};