@mxtommy/kip 3.8.2 → 3.9.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/copilot-instructions.md +1 -1
- package/CHANGELOG.md +3 -2
- package/package.json +1 -3
- package/public/3rdpartylicenses.txt +0 -26
- package/public/{chunk-SIMUFQFG.js → chunk-4JJLPUET.js} +1 -1
- package/public/{chunk-WD5WD3GY.js → chunk-CQXWGD3T.js} +1 -1
- package/public/{chunk-KPQDHC2Z.js → chunk-H2TTV4FA.js} +1 -1
- package/public/chunk-IHLEBYV7.js +1 -0
- package/public/{chunk-4WFDZ6FH.js → chunk-ITJ6DJR6.js} +1 -1
- package/public/chunk-NXWZM4IV.js +2 -0
- package/public/{chunk-OPPBJYH7.js → chunk-Q2Y75POI.js} +1 -1
- package/public/{chunk-7BMBGIZI.js → chunk-QBSWR6ST.js} +1 -1
- package/public/{chunk-GQ3O7IYU.js → chunk-QQIXD7EO.js} +11 -11
- package/public/{chunk-ZWNGAG3P.js → chunk-RRTCHHRC.js} +1 -1
- package/public/chunk-TXPLRBW5.js +2 -0
- package/public/chunk-VHFBF47T.js +1 -0
- package/public/index.html +2 -2
- package/public/main-JXMQUCCA.js +53 -0
- package/public/{styles-RECKN66R.css → styles-GMXUNVLC.css} +1 -1
- package/public/assets/hammer.min.js +0 -7
- package/public/chunk-7VNHJHIE.js +0 -1
- package/public/chunk-FYMQ3PE4.js +0 -1
- package/public/chunk-SMXTNO74.js +0 -2
- package/public/chunk-TE3Z6IE7.js +0 -2
- package/public/main-ZQQ2KBG6.js +0 -237
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{a as ai,b as lo,c as ro,d as so,e as co}from"./chunk-PKNLASTF.js";import{a as Mt}from"./chunk-VYUMZVH2.js";import{a as ao,b as oo,c as no,d as ii}from"./chunk-CBUY7NMR.js";import{a as Me,b as Je}from"./chunk-JY3WVS7C.js";import{a as Za,b as Ka,c as Xa,d as xt,e as Ja,f as H,g as $a,h as eo,k as to,l as io,m as Et,n as de,o as Xe}from"./chunk-ZBCOJLI4.js";import{g as ca,j as da,o as pa,p as $,q as _e}from"./chunk-SMXTNO74.js";import{a as Pa,b as Ba,c as La,d as Qe,e as qe,g as Va,h as ze,i as je,j as Ye,k as _t,l as Ce}from"./chunk-3LEMFOCV.js";import{a as ht}from"./chunk-7VNHJHIE.js";import{a as Ha,b as ti}from"./chunk-2YVW3TBK.js";import{$ as xe,A as Wa,B as Ua,C as ce,D as Qa,E as Jt,F as He,G as ye,H as Y,I as qa,J as za,K as Ze,L as $t,M as vt,N as B,P as Ct,Q as ie,R as L,T as V,U as ei,V as ja,W as yt,Y as Ya,_ as R,a as nt,ca as ae,da as Ke,e as na,f as ra,h as sa,i as Ut,j as bi,k as Qt,p as ma,q as Xt,r as ee,t as j,w as P,x as te,y as Ra,z as Na}from"./chunk-TA4GACKT.js";import{$b as b,$c as Ne,$d as ga,$e as Da,A as st,Aa as w,Ab as Pe,Ac as S,Ad as ia,Ae as Ca,Bc as U,Be as ya,Cb as ke,Cc as gt,Ce as Zt,Da as Fe,Db as Qi,De as re,Ec as Zi,Ed as aa,Ee as Kt,F as Fi,Fa as mt,Fb as le,Fc as Ki,Fe as Ue,Gb as Lt,Gc as Xi,Hb as qi,He as xa,I as Ai,Ie as se,Ja as k,K as Ge,Kc as Te,Kd as oa,Ke as Ma,L as Oe,Mc as Le,Na as at,Nc as kt,O as Pi,Oa as pt,Oe as wa,P as Pt,Pd as We,Pe as Sa,Qa as Se,Qc as Ve,Qd as la,R as ct,Rb as Q,Rc as Re,Sb as u,Tb as A,U as Bi,Ub as T,Ud as _i,Vb as Vt,Vd as ua,W as Li,Wb as C,Wd as qt,We as ka,Xb as y,Xc as Ji,Xe as Ta,Yb as p,Yc as Nt,Yd as Aa,Zb as n,Ze as Ea,_b as o,_c as $i,_e as Ci,a as ne,ac as hi,ad as f,b as Ae,bc as fi,be as zt,cf as Ia,dc as zi,de as ha,df as Ga,ec as ji,ed as ot,ee as jt,ef as Oa,f as N,fa as dt,fc as Yi,fe as fa,g as lt,ga as Bt,gc as G,ge as ba,hc as Hi,hf as Fa,ia as Vi,ic as _,id as F,j as pi,kc as g,lb as c,lc as be,le as Tt,m as rt,mc as Z,me as ft,na as St,nb as Ni,nc as me,ne as _a,o as wt,oa as ge,oc as Be,pa as he,pb as gi,pc as q,pe as vi,qc as z,qe as Yt,ra as K,sb as Wi,se as Ht,t as ui,ta as m,te as J,uc as pe,vc as Rt,vd as ea,ve as Ee,wb as v,wc as W,wd as ta,we as ve,xa as Ri,xb as fe,xc as ut,xe as bt,y as Ft,yb as X,yc as At,za as M,zb as Ui,zc as l,zd as Wt,ze as va}from"./chunk-35L7BBBD.js";var Yr=(()=>{class t{_settings=m(Ut);_router=m(da);dashboards=k([],{equal:bi});activeDashboard=k(0);_widgetAction=new wt(null);widgetAction$=this._widgetAction.asObservable();_isDashboardStatic=new wt(!0);isDashboardStatic$=this._isDashboardStatic.asObservable();isDashboardStatic=la(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 a=this.blankDashboard.map(i=>Ae(ne({},i),{id:nt.create()}));this.dashboards.set([...a])}else this.dashboards.set(this._settings.getDashboardConfig());Nt(()=>{this._settings.saveDashboards(this.dashboards())})}toggleStaticDashboard(){this._isDashboardStatic.next(!this._isDashboardStatic.value)}add(e,a){this.dashboards.update(i=>[...i,{id:nt.create(),name:e,configuration:a}])}update(e,a){this.dashboards.update(i=>i.map((r,d)=>d===e?Ae(ne({},r),{name:a}):r))}delete(e){this.dashboards.update(a=>a.filter((i,r)=>r!==e)),this.dashboards().length===0?(this.add("Dashboard "+(this.dashboards().length+1),[]),this.activeDashboard.set(0)):this.activeDashboard()>this.dashboards().length-1&&this.activeDashboard.set(this.dashboards().length-1)}duplicate(e,a){if(e<0||e>=this.dashboards().length){console.error(`[Dashboard Service] Invalid itemIndex: ${e}`);return}let i=this.dashboards()[e],r=Qt(i);r.id=nt.create(),r.name=a,Array.isArray(r.configuration)?r.configuration.forEach(d=>{d&&d.input?.widgetProperties?(d.id=nt.create(),d.input.widgetProperties.uuid=d.id):console.error("Dashboard Service] Widget configuration is missing required properties:",d)}):(console.error("Dashboard Service] Dashboard configuration is not an array:",r.configuration),r.configuration=[]),this.dashboards.update(d=>[...d,r])}updateConfiguration(e,a){this.dashboards.update(i=>i.map((r,d)=>d===e?bi(r.configuration,a)?r:Ae(ne({},r),{configuration:a}):r))}previousDashboard(){this.activeDashboard()+1>this.dashboards().length-1?this.activeDashboard.set(0):this.activeDashboard.set(this.activeDashboard()+1)}nextDashboard(){this.activeDashboard()-1<0?this.activeDashboard.set(this.dashboards().length-1):this.activeDashboard.set(this.activeDashboard()-1)}setActiveDashboard(e){e>=0&&e<this.dashboards().length?this.activeDashboard.set(e):console.error(`[Dashboard Service] Invalid dashboard ID: ${e}`)}navigateToActive(){this._router.navigate(["/dashboard",this.activeDashboard()])}navigateTo(e){e>=0&&e<this.dashboards().length?this._router.navigate(["/dashboard",e]):console.error(`[Dashboard Service] Invalid dashboard ID: ${e}`)}navigateToNextDashboard(){let e=null;this.activeDashboard()-1<0?e=this.dashboards().length-1:e=this.activeDashboard()-1,this._router.navigate(["/dashboard",e])}navigateToPreviousDashboard(){let e=null;this.activeDashboard()+1>=this.dashboards().length?e=0:e=this.activeDashboard()+1,this._router.navigate(["/dashboard",e])}deleteWidget(e){this._widgetAction.next({id:e,operation:"delete"})}duplicateWidget(e){this._widgetAction.next({id:e,operation:"duplicate"})}setStaticDashboard(e){this._isDashboardStatic.next(e)}static \u0275fac=function(a){return new(a||t)};static \u0275prov=ge({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ho(t,s){t&1&&Yi(0)}var mo=(()=>{class t{data=m(qe);static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["dialog-frame"]],decls:8,vars:3,consts:[[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],[1,"dialog-content-padding"],[4,"ngComponentOutlet"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"h6",1),l(2),o(),n(3,"button",2)(4,"mat-icon"),l(5,"close"),o()()(),n(6,"mat-dialog-content",3),ke(7,Ho,1,0,"ng-container",4),o()),a&2&&(c(2),S(i.data.title),c(),p("mat-dialog-close",!1),c(4),p("ngComponentOutlet",i.data.componentType))},dependencies:[$,Ce,ze,je,Ye,se,re,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 t})();function Zo(t,s){if(t&1&&(n(0,"button",4),l(1),o()),t&2){let e=g();p("mat-dialog-close",!0),c(),S(e.data.confirmBtnText)}}var po=(()=>{class t{data=m(qe);static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["dialog-confirmation"]],decls:12,vars:6,consts:[[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],["align","end"],["mat-flat-button","",3,"mat-dialog-close"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"h5",1),l(2),o(),n(3,"button",2)(4,"mat-icon"),l(5,"close"),o()()(),n(6,"mat-dialog-content"),l(7),o(),n(8,"mat-dialog-actions",3)(9,"button",4),l(10),o(),u(11,Zo,2,2,"button",4),o()),a&2&&(c(2),S(i.data.title),c(),p("mat-dialog-close",!1),c(4),U(" ",i.data.message,`
|
|
2
|
-
`),c(2),p("mat-dialog-close",!1),c(),S(i.data.cancelBtnText),c(),A(i.data.confirmBtnText?11:-1))},dependencies:[$,Ce,ze,je,_t,Ye,se,Ue,re],styles:[".dialogue-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}"]})}return t})();function Ko(t,s){if(t&1&&(n(0,"button",9),l(1),o()),t&2){let e=g(),a=pe(1);p("disabled",!a.valid),c(),S(e.data.confirmBtnText)}}var Ao=(()=>{class t{dialogRef=m(Qe);data=m(qe);saveName(){this.dialogRef.close(this.data)}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["dialog-name"]],decls:19,vars:6,consts:[["name","ngForm"],["name","name",3,"ngSubmit"],[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],[1,"field-margin"],["matInput","","type","text","id","name","placeholder","Name","name","name","required","","cdkFocusInitial","",3,"ngModelChange","ngModel"],["align","end"],["mat-flat-button","",3,"mat-dialog-close"],["mat-flat-button","","type","submit",3,"disabled"]],template:function(a,i){if(a&1){let r=G();n(0,"form",1,0),_("ngSubmit",function(){return M(r),w(i.saveName())}),n(2,"div",2)(3,"h5",3),l(4),o(),n(5,"button",4)(6,"mat-icon"),l(7,"close"),o()()(),n(8,"mat-dialog-content")(9,"mat-form-field",5)(10,"mat-label"),l(11,"Name"),o(),n(12,"input",6),Xi("ngModelChange",function(h){return M(r),Ki(i.data.name,h)||(i.data.name=h),w(h)}),o(),n(13,"mat-error"),l(14," A name is required "),o()()(),n(15,"mat-dialog-actions",7)(16,"button",8),l(17),o(),u(18,Ko,2,2,"button",9),o()()}a&2&&(c(4),S(i.data.title),c(),p("mat-dialog-close",!1),c(7),Zi("ngModel",i.data.name),c(4),p("mat-dialog-close",!1),c(),S(i.data.cancelBtnText),c(),A(i.data.confirmBtnText?18:-1))},dependencies:[Ce,ze,je,_t,Ye,_e,$,xe,R,V,ei,Ke,ae,se,Ue,re,ie,Jt,ee,P,te,B,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 t})();function Xo(t,s){if(t&1&&(n(0,"mat-option",12),l(1),o()),t&2){let e=s.$implicit;p("value",Te(e.value)),c(),S(e.label)}}function Jo(t,s){if(t&1){let e=G();n(0,"button",21),_("click",function(){M(e);let i=g();return w(i.moveCtrlUp())}),n(1,"mat-icon"),l(2,"arrow_drop_up"),o()()}}function $o(t,s){if(t&1){let e=G();n(0,"button",22),_("click",function(){M(e);let i=g();return w(i.moveCtrlDown())}),n(1,"mat-icon"),l(2,"arrow_drop_down"),o()()}}var go=(()=>{class t{app=m(ht);ctrlFormGroup=f.required();controlIndex=f(void 0);arrayLength=f(void 0);deleteCtrl=Ne();moveUp=Ne();moveDown=Ne();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors}deleteControl(){let e={ctrlIndex:this.controlIndex(),pathID:this.ctrlFormGroup().get("pathID").value};this.deleteCtrl.emit(e)}moveCtrlUp(){this.moveUp.emit(this.controlIndex())}moveCtrlDown(){this.moveDown.emit(this.controlIndex())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["boolean-control-config"]],inputs:{ctrlFormGroup:[1,"ctrlFormGroup"],controlIndex:[1,"controlIndex"],arrayLength:[1,"arrayLength"]},outputs:{deleteCtrl:"deleteCtrl",moveUp:"moveUp",moveDown:"moveDown"},decls:36,vars:3,consts:[[1,"ctrl-grid","rounded-card","rounded-card-color",3,"formGroup"],[1,"controls","flex-container"],[1,"flex-label"],[1,"full-width"],["matInput","","type","string","placeholder","Enter a display label...","formControlName","ctrlLabel"],[1,"flex-settings"],[1,"settings"],["placeholder","Select Type...","formControlName","type","name","type","required",""],["value","1"],["value","2"],["value","3"],["placeholder","Select Color...","formControlName","color","name","color","required",""],[3,"value"],[1,"flex-full-width"],["formControlName","isNumeric"],[1,"actions"],[1,"flex-actions"],[1,"btn-grid"],["mat-icon-button","","type","button","aria-label","Move control up in the list",1,"up"],["mat-icon-button","","type","button","aria-label","Move control down in the list",1,"down"],["mat-icon-button","","type","button","aria-label","Delete control",1,"delete",3,"click"],["mat-icon-button","","type","button","aria-label","Move control up in the list",1,"up",3,"click"],["mat-icon-button","","type","button","aria-label","Move control down in the list",1,"down",3,"click"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),l(5,"Label"),o(),b(6,"input",4),o()(),n(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),l(10,"Type"),o(),n(11,"mat-select",7)(12,"mat-option",8),l(13,"Toggle"),o(),n(14,"mat-option",9),l(15,"Push"),o(),n(16,"mat-option",10),l(17,"Indicator"),o()()()(),n(18,"div",5)(19,"mat-form-field",6)(20,"mat-label"),l(21,"Color"),o(),n(22,"mat-select",11),C(23,Xo,2,3,"mat-option",12,T),o()()(),n(25,"div",13)(26,"mat-checkbox",14),l(27," Use numeric path "),o()()(),n(28,"div",15)(29,"div",16)(30,"div",17),u(31,Jo,3,0,"button",18),u(32,$o,3,0,"button",19),n(33,"button",20),_("click",function(){return i.deleteControl()}),n(34,"mat-icon"),l(35,"delete"),o()()()()()()),a&2&&(p("formGroup",i.ctrlFormGroup()),c(23),y(i.colors),c(8),A(i.controlIndex()!==0?31:-1),c(),A(i.controlIndex()!==i.arrayLength()-1?32:-1))},dependencies:[ie,ee,P,te,B,L,Y,Ze,R,V,ae,de,H,re,Je,Me,_e,$],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 t})();function en(t,s){if(t&1){let e=G();n(0,"boolean-control-config",4),_("moveUp",function(i){M(e);let r=g();return w(r.moveUp(i))})("moveDown",function(i){M(e);let r=g();return w(r.moveDown(i))})("deleteCtrl",function(i){M(e);let r=g();return w(r.deletePath(i))}),o()}if(t&2){let e=s.$implicit,a=s.$index,i=g();p("ctrlFormGroup",i.getFormGroup(e))("controlIndex",a)("arrayLength",i.arrayLength)}}var ho=(()=>{class t{fb=m(Ct);multiCtrlArray=f.required();addPath=Ne();updatePath=Ne();delPath=Ne();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(Pt(350)).subscribe(e=>{this.updatePath.emit(e)})}addCtrlGroup(){let e=nt.create();this.multiCtrlArray().push(this.fb.group({ctrlLabel:[null,j.required],type:["1",j.required],pathID:[e],color:["contrast"],isNumeric:[!1],value:[null]})),this.arrayLength=this.multiCtrlArray().length;let a={path:{description:null,path:null,pathID:e,source:"default",pathType:"boolean",supportsPut:!0,isPathConfigurable:!0,showPathSkUnitsFilter:!1,pathSkUnitsFilter:null,convertUnitTo:null,sampleTime:500},ctrlType:1};this.addPath.emit(a)}moveUp(e){let a=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e-1,a,{emitEvent:!1})}moveDown(e){let a=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e+1,a,{emitEvent:!1})}deletePath(e){this.delPath.emit(e),this.arrayLength=this.multiCtrlArray().length}getFormGroup(e){return e}ngOnDestroy(){this.multiCtrlArraySubscription?.unsubscribe()}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["boolean-multicontrol-options"]],inputs:{multiCtrlArray:[1,"multiCtrlArray"]},outputs:{addPath:"addPath",updatePath:"updatePath",delPath:"delPath"},decls:7,vars:1,consts:[[3,"formGroup"],["formArrayName","multiCtrlArray"],[1,"full-width",3,"ctrlFormGroup","controlIndex","arrayLength"],["type","button","mat-mini-fab","","color","primary","aria-label","Add control down in the list",1,"add-btn",3,"click"],[1,"full-width",3,"moveUp","moveDown","deleteCtrl","ctrlFormGroup","controlIndex","arrayLength"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1),C(2,en,1,3,"boolean-control-config",2,Vt),n(4,"button",3),_("click",function(){return i.addCtrlGroup()}),n(5,"mat-icon"),l(6,"add"),o()()()()),a&2&&(p("formGroup",i.multiFormGroup),c(2),y(i.multiCtrlArray().controls))},dependencies:[ie,te,L,Y,za,go,se,xa,_e,$],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 t})();var tn=["*"];var an=new K("MAT_CARD_CONFIG"),Ys=(()=>{class t{appearance;constructor(){let e=m(an,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,i){a&2&&W("mat-mdc-card-outlined",i.appearance==="outlined")("mdc-card--outlined",i.appearance==="outlined")("mat-mdc-card-filled",i.appearance==="filled")("mdc-card--filled",i.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:tn,decls:1,vars:0,template:function(a,i){a&1&&(be(),Z(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 t})();var fo=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275mod=fe({type:t});static \u0275inj=he({imports:[J,J]})}return t})();function on(t,s){if(t&1&&(n(0,"mat-option",8),l(1),o()),t&2){let e=s.$implicit;p("value",Te(e.value)),c(),S(e.label)}}var bo=(()=>{class t{app=m(ht);displayName=f.required();showLabel=f.required();convertUnitTo=f.required();datasetUUID=f.required();datasetAverageArray=f.required();showAverageData=f.required();trackAgainstAverage=f.required();showDatasetMinimumValueLine=f.required();showDatasetMaximumValueLine=f.required();showDatasetAverageValueLine=f.required();showDatasetAngleAverageValueLine=f.required();verticalChart=f.required();inverseYAxis=f.required();showTimeScale=f.required();showYScale=f.required();startScaleAtZero=f.required();yScaleSuggestedMin=f.required();yScaleSuggestedMax=f.required();enableMinMaxScaleLimit=f.required();yScaleMin=f.required();yScaleMax=f.required();numDecimal=f.required();color=f.required();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors,this.showAverageData()&&!this.showAverageData()?.value&&this.trackAgainstAverage().disable(),this.enableMinMaxScaleLimit()&&this.setValueScaleOptionsControls(this.enableMinMaxScaleLimit().value)}setValueScaleOptionsControls(e){e?(this.yScaleMin()?.enable(),this.yScaleMax()?.enable(),this.yScaleSuggestedMin()?.disable(),this.yScaleSuggestedMax()?.disable()):(this.yScaleMin()?.disable(),this.yScaleMax()?.disable(),this.yScaleSuggestedMin()?.enable(),this.yScaleSuggestedMax()?.enable())}setScaleControls(e){this.setValueScaleOptionsControls(e.value)}enableTrackAgainstMovingAverage(e){e.checked?this.trackAgainstAverage().enable():(this.trackAgainstAverage().setValue(e.checked),this.trackAgainstAverage().disable())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["config-display-chart-options"]],inputs:{displayName:[1,"displayName"],showLabel:[1,"showLabel"],convertUnitTo:[1,"convertUnitTo"],datasetUUID:[1,"datasetUUID"],datasetAverageArray:[1,"datasetAverageArray"],showAverageData:[1,"showAverageData"],trackAgainstAverage:[1,"trackAgainstAverage"],showDatasetMinimumValueLine:[1,"showDatasetMinimumValueLine"],showDatasetMaximumValueLine:[1,"showDatasetMaximumValueLine"],showDatasetAverageValueLine:[1,"showDatasetAverageValueLine"],showDatasetAngleAverageValueLine:[1,"showDatasetAngleAverageValueLine"],verticalChart:[1,"verticalChart"],inverseYAxis:[1,"inverseYAxis"],showTimeScale:[1,"showTimeScale"],showYScale:[1,"showYScale"],startScaleAtZero:[1,"startScaleAtZero"],yScaleSuggestedMin:[1,"yScaleSuggestedMin"],yScaleSuggestedMax:[1,"yScaleSuggestedMax"],enableMinMaxScaleLimit:[1,"enableMinMaxScaleLimit"],yScaleMin:[1,"yScaleMin"],yScaleMax:[1,"yScaleMax"],numDecimal:[1,"numDecimal"],color:[1,"color"]},decls:84,vars:20,consts:[["minLine",""],[1,"tab-content"],[1,"chart-flex-container"],[1,"chart-panel-group"],[1,"full-width"],["matInput","","placeholder","Enter a label to display","name","displayName",3,"formControl"],["name","showLabel",1,"full-width",3,"formControl"],["placeholder","Select Color...","name","color","required","",3,"formControl"],[3,"value"],[1,"flex-item-rounded-card","rounded-card-color"],[2,"margin-left","10px"],["matInput","","type","number","min","0","max","5","placeholder","Enter or select number...","name","numDecimal","required","",3,"formControl"],["name","showAverageData",1,"full-width",2,"margin-top","10px",3,"change","formControl"],["name","trackAgainstAverage",1,"full-width",2,"margin-left","25px",3,"formControl"],["name","verticalChart",3,"formControl"],[1,"no-margin"],[1,"mat-caption"],["aria-label","Select an option","name","enableMinMaxScaleLimit",1,"chart-option-radio-group",3,"formControl"],[1,"chart-option-radio-button",3,"change","value"],[1,"chart-option-radio-button-config"],[1,"chart-option-radio-button-config-form-field"],["matInput","","type","number","name","yScaleSuggestedMin",3,"formControl"],["matInput","","type","number","name","yScaleSuggestedMax",3,"formControl"],[1,"chart-option-radio-button-config-item"],["matInput","","type","number","name","yScaleMin","required","",3,"formControl"],["matInput","","type","number","name","yScaleMax","required","",3,"formControl"],["name","showYScale",1,"full-width",3,"formControl"],["name","inverseYAxis",3,"formControl"],["name","showTimeScale",1,"full-width",3,"formControl"],["name","showDatasetMaximumValueLine",1,"full-width",3,"formControl"],["name","showDatasetAverageValueLine",1,"full-width",3,"formControl"],["name","showDatasetMinimumValueLine",1,"full-width",3,"formControl"]],template:function(a,i){if(a&1){let r=G();n(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),l(5,"Widget Label"),o(),b(6,"input",5),o()(),n(7,"div",3)(8,"mat-checkbox",6),l(9," Show Label "),o()()(),n(10,"div",2)(11,"mat-form-field",4)(12,"mat-label"),l(13,"Color"),o(),n(14,"mat-select",7),C(15,on,2,3,"mat-option",8,T),o()()(),n(17,"div",2)(18,"div",9)(19,"div")(20,"p"),l(21,"Series"),o(),n(22,"mat-form-field",10)(23,"mat-label"),l(24,"Value Decimal Places"),o(),b(25,"input",11),o(),n(26,"mat-checkbox",12),_("change",function(h){return M(r),w(i.enableTrackAgainstMovingAverage(h))}),l(27," Display Moving Average "),o(),n(28,"mat-checkbox",13),l(29," Track Against Moving Average "),o()(),n(30,"mat-checkbox",14),l(31," Vertical Data Graph "),o()(),n(32,"div",9)(33,"div")(34,"p",15),l(35,"Data Scale"),o(),n(36,"span",16),l(37,"(Default node is automatic scale)"),o(),n(38,"mat-radio-group",17)(39,"mat-radio-button",18),_("change",function(h){return M(r),w(i.setScaleControls(h))}),l(40,"Auto Scale"),o(),n(41,"div",19)(42,"mat-form-field",20)(43,"mat-label"),l(44,"Suggested Min"),o(),b(45,"input",21),o(),n(46,"mat-form-field",20)(47,"mat-label"),l(48,"Suggested Max"),o(),b(49,"input",22),o()(),n(50,"mat-radio-button",18),_("change",function(h){return M(r),w(i.setScaleControls(h))}),l(51," Fixed Scale "),o(),n(52,"div",19)(53,"div",23)(54,"mat-form-field",20)(55,"mat-label"),l(56,"Min"),o(),b(57,"input",24),o()(),n(58,"div",23)(59,"mat-form-field",20)(60,"mat-label"),l(61,"Max"),o(),b(62,"input",25),o()()()(),n(63,"mat-checkbox",26),l(64," Show Scale Ticks "),o(),n(65,"mat-checkbox",27),l(66," Inverse Scale "),o()()(),n(67,"div",9)(68,"div")(69,"p",15),l(70,"Time Scale"),o(),n(71,"mat-checkbox",28),l(72," Show Scale Ticks "),o()()(),n(73,"div",9)(74,"div")(75,"p",15),l(76,"Dataset"),o(),n(77,"mat-checkbox",29),l(78," Show Maximum Line "),o(),n(79,"mat-checkbox",30),l(80," Show Average Line "),o(),n(81,"mat-checkbox",31,0),l(83," Show Minimum Line "),o()()()()()}a&2&&(c(6),p("formControl",i.displayName()),c(2),p("formControl",i.showLabel()),c(6),p("formControl",i.color()),c(),y(i.colors),c(10),p("formControl",i.numDecimal()),c(),p("formControl",i.showAverageData()),c(2),p("formControl",i.trackAgainstAverage()),c(2),p("formControl",i.verticalChart()),c(8),p("formControl",i.enableMinMaxScaleLimit()),c(),p("value",!1),c(6),p("formControl",i.yScaleSuggestedMin()),c(4),p("formControl",i.yScaleSuggestedMax()),c(),p("value",!0),c(7),p("formControl",i.yScaleMin()),c(5),p("formControl",i.yScaleMax()),c(),p("formControl",i.showYScale()),c(2),p("formControl",i.inverseYAxis()),c(6),p("formControl",i.showTimeScale()),c(6),p("formControl",i.showDatasetMaximumValueLine()),c(2),p("formControl",i.showDatasetAverageValueLine()),c(2),p("formControl",i.showDatasetMinimumValueLine()))},dependencies:[fo,xe,R,V,Je,Me,Xe,de,H,Et,Ke,ae,no,ao,oo,L,ee,He,P,B,vt,$t,ye],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 t})();var nn=(t,s)=>s.uuid;function ln(t,s){if(t&1&&(n(0,"mat-option",4),l(1),o()),t&2){let e=s.$implicit;p("value",e.uuid),c(),U(" ",e.label," ")}}function rn(t,s){if(t&1&&(n(0,"mat-option",4),l(1),o()),t&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function sn(t,s){if(t&1&&(n(0,"mat-optgroup",6),C(1,rn,2,2,"mat-option",4,T),o()),t&2){let e=s.$implicit;p("label",e.group),c(),y(e.units)}}var _o=(()=>{class t{datasetService=m(ii);units=m(Mt);datasetUUID=f.required();convertUnitTo=f.required();availableDataSets=[];unitList={};ngOnInit(){this.availableDataSets=this.datasetService.list().filter(a=>a.editable!==!1).sort();let e=this.datasetUUID();e.value&&this.setPathUnits(e.value)}setPathUnits(e){let a=this.datasetService.getDatasetConfig(e);return e&&a?(this.unitList=this.units.getConversionsForPath(a.path),this.convertUnitTo()?.enable(),!0):(this.unitList=this.units.getConversionsForPath(""),this.convertUnitTo()?.disable(),!1)}datasetChanged(e){this.setPathUnits(e.value)}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["config-dataset-chart-options"]],inputs:{datasetUUID:[1,"datasetUUID"],convertUnitTo:[1,"convertUnitTo"]},decls:14,vars:2,consts:[[1,"display-content","tab-content"],[1,"widget-options-grid"],[1,"options-grid-span2"],["placeholder","Select dataset...","name","datasetUUID","required","",3,"selectionChange","formControl"],[3,"value"],["placeholder","Select unit...","name","convertUnitTo","required","",3,"formControl"],[3,"label"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),l(4,"Dataset"),o(),n(5,"mat-select",3),_("selectionChange",function(d){return i.datasetChanged(d)}),C(6,ln,2,2,"mat-option",4,nn),o()(),n(8,"mat-form-field",2)(9,"mat-label"),l(10,"Display Format"),o(),n(11,"mat-select",5),C(12,sn,3,1,"mat-optgroup",6,T),o()()()()),a&2&&(c(5),p("formControl",i.datasetUUID()),c(),y(i.availableDataSets),c(5),p("formControl",i.convertUnitTo()),c(),y(i.unitList.conversions))},dependencies:[xe,R,V,Xe,de,H,xt,L,P,B,ye],styles:[".display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}"]})}return t})();var vo=(()=>{class t{transform(e){return Object.keys(e)}static \u0275fac=function(a){return new(a||t)};static \u0275pipe=Ui({name:"objectKeys",type:t,pure:!0})}return t})();var dn=["panel"],mn=["*"];function pn(t,s){if(t&1&&(hi(0,"div",1,0),Z(2),fi()),t&2){let e=s.id,a=g();At(a._classList),W("mat-mdc-autocomplete-visible",a.showPanel)("mat-mdc-autocomplete-hidden",!a.showPanel)("mat-autocomplete-panel-animations-enabled",!a._animationsDisabled)("mat-primary",a._color==="primary")("mat-accent",a._color==="accent")("mat-warn",a._color==="warn"),Hi("id",a.id),Q("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby(e))}}var wi=class{source;option;constructor(s,e){this.source=s,this.option=e}},xo=new K("mat-autocomplete-default-options",{providedIn:"root",factory:un});function un(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var si=(()=>{class t{_changeDetectorRef=m(ot);_elementRef=m(Se);_defaults=m(xo);_animationsDisabled=ve();_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(Tt).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 a=new wi(this,e);this.optionSelected.emit(a)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let a=e?e+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(a,i,r){if(a&1&&(me(r,H,5),me(r,Xa,5)),a&2){let d;q(d=z())&&(i.options=d),q(d=z())&&(i.optionGroups=d)}},viewQuery:function(a,i){if(a&1&&(Be(Ni,7),Be(dn,5)),a&2){let r;q(r=z())&&(i.template=r.first),q(r=z())&&(i.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",F],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",F],requireSelection:[2,"requireSelection","requireSelection",F],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",F],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",F]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Le([{provide:Ka,useExisting:t}])],ngContentSelectors:mn,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(a,i){a&1&&(be(),Qi(0,pn,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 t})();var An={provide:Xt,useExisting:St(()=>It),multi:!0};var Mo=new K("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=m(Fe);return()=>Ci(t)}});function gn(t){let s=m(Fe);return()=>Ci(s)}var hn={provide:Mo,deps:[],useFactory:gn},It=(()=>{class t{_environmentInjector=m(Ri);_element=m(Se);_injector=m(Fe);_viewContainerRef=m(Wi);_zone=m(Lt);_changeDetectorRef=m(ot);_dir=m(Ht,{optional:!0});_formField=m(Ya,{optional:!0,host:!0});_viewportRuler=m(ka);_scrollStrategy=m(Mo);_renderer=m(gi);_animationsDisabled=ve();_defaults=m(xo,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new rt;_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 rt;_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 Ge(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(st(e=>e instanceof Ja?e:null))}optionSelections=Fi(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(dt(e),Bt(()=>Ge(...e.map(a=>a.onSelectionChange)))):this._initialized.pipe(Bt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new pi(e=>{let a=r=>{let d=ua(r),h=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,x=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&d!==this._element.nativeElement&&!this._hasFocus()&&(!h||!h.contains(d))&&(!x||!x.contains(d))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(d)&&e.next(r)},i=[this._renderer.listen("document","click",a),this._renderer.listen("document","auxclick",a),this._renderer.listen("document","touchend",a)];return()=>{i.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let a=e,i=a.keyCode,r=ft(a);if(i===27&&!r&&a.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){let d=this.autocomplete._keyManager.activeItem,h=i===38||i===40;i===9||h&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(a):h&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(h||this.autocomplete._keyManager.activeItem!==d)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let a=e.target,i=a.value;if(a.type==="number"&&(i=i==""?null:parseFloat(i)),this._previousValue!==i){if(this._previousValue=i,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(i),!i)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let r=this.autocomplete.options?.find(d=>d.selected);if(r){let d=this._getDisplayValue(r.value);i!==d&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return _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(i=>{qi(()=>{i.next()},{injector:this._environmentInjector})}),a=this.autocomplete.options?.changes.pipe(Vi(()=>this._positionStrategy.reapplyLastPosition()),Bi(0))??ui();return Ge(e,a).pipe(Bt(()=>this._zone.run(()=>{let i=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),i!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),ct(1)).subscribe(i=>this._setValueAndClose(i))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let a=this.autocomplete;return a&&a.displayWith?a.displayWith(e):e}_assignOptionValue(e){let a=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(a??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let a=this.autocomplete,i=e?e.source:this._pendingAutoselectedOption;i?(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),a._emitSelectEvent(i),this._element.nativeElement.focus()):a.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,a){this.autocomplete?.options?.forEach(i=>{i!==e&&i.selected&&i.deselect(a)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let a=this.autocomplete.id;vi(this._trackedModal,"aria-owns",a)}}_attachOverlay(e){this.autocomplete;let a=this._overlayRef;a?(this._positionStrategy.setOrigin(this._getConnectedElement()),a.updateSize({width:this._getPanelWidth()})):(this._portal=new Ma(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),a=Oa(this._injector,this._getOverlayConfig()),this._overlayRef=a,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&a&&a.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Ee.HandsetLandscape).subscribe(r=>{r.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),a&&!a.hasAttached()&&(a.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!ft(e)||e.keyCode===38&&ft(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 a=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}],d;this.position==="above"?d=r:this.position==="below"?d=a:d=[...a,...r],e.withPositions(d)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let a=-1;for(let i=0;i<e.options.length;i++)if(!e.options.get(i).disabled){a=i;break}e._keyManager.setActiveItem(a)}else e._keyManager.setActiveItem(-1)}_canOpen(){let e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_scrollToOption(e){let a=this.autocomplete,i=$a(e,a.options,a.optionGroups);if(e===0&&i===1)a._setScrollTop(0);else if(a.panel){let r=a.options.toArray()[e];if(r){let d=r._getHostElement(),h=eo(d.offsetTop,d.offsetHeight,a._getScrollTop(),a.panel.nativeElement.offsetHeight);a._setScrollTop(h)}}}_trackedModal=null;_applyModalPanelOwnership(){let e=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let a=this.autocomplete.id;this._trackedModal&&Yt(this._trackedModal,"aria-owns",a),vi(e,"aria-owns",a),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Yt(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(a){return new(a||t)};static \u0275dir=X({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,i){a&1&&_("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(d){return i._handleInput(d)})("keydown",function(d){return i._handleKeydown(d)})("click",function(){return i._handleClick()}),a&2&&Q("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-controls",i.autocompleteDisabled||!i.panelOpen||i.autocomplete==null?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",F]},exportAs:["matAutocompleteTrigger"],features:[Le([An]),at]})}return t})(),wo=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275mod=fe({type:t});static \u0275inj=he({providers:[hn],imports:[Fa,Et,J,Ta,Et,J]})}return t})();var bn=(t,s)=>s.path;function _n(t,s){t&1&&b(0,"i",22)}function vn(t,s){t&1&&b(0,"i",23)}function Cn(t,s){if(t&1&&(n(0,"mat-option",16),l(1),o()),t&2){let e=s.$implicit;p("value",e),c(),gt("",e.properties.quantity,": ",e.properties.display)}}function yn(t,s){if(t&1){let e=G();n(0,"div",5)(1,"mat-form-field",21)(2,"mat-label"),u(3,_n,1,0,"i",22)(4,vn,1,0,"i",23),l(5," Filter"),o(),n(6,"mat-select",24,2),_("selectionChange",function(){M(e),g();let i=pe(11),r=g();return w(r.pathFormGroup().controls.path.setValue(i.value))}),n(8,"mat-option"),l(9,"All"),o(),C(10,Cn,2,3,"mat-option",16,T),o()()()}if(t&2){let e=pe(7),a=g(2);c(3),A(e.value?4:3),c(3),p("formControl",a.pathSkUnitsFilterControl),c(4),y(a.pathSkUnitsFiltersList)}}function xn(t,s){t&1&&(n(0,"span",8),l(1,"(optional)"),o())}function Mn(t,s){t&1&&(n(0,"mat-hint"),l(1,"Leave blank to disable this path."),o())}function wn(t,s){if(t&1){let e=G();n(0,"button",25),_("click",function(){M(e);let i=g(2);return w(i.pathFormGroup().controls.path.setValue(""))}),n(1,"mat-icon"),l(2,"close"),o()()}}function Sn(t,s){t&1&&(n(0,"mat-error"),l(1," Path is required. Please enter a valid Signal K path. "),o())}function kn(t,s){t&1&&(n(0,"mat-error"),l(1," Path not recognized. Please enter a path from the server's published list. "),o())}function Tn(t,s){if(t&1&&(n(0,"span"),l(1),o(),b(2,"br"),n(3,"small",26),l(4),o()),t&2){let e=g().$implicit;c(),S(e.path),c(3),S(e.meta.description)}}function En(t,s){if(t&1&&l(0),t&2){let e=g().$implicit;U(" ",e.path," ")}}function Dn(t,s){if(t&1&&(n(0,"mat-option",11),u(1,Tn,5,2)(2,En,1,1),o()),t&2){let e=s.$implicit;p("value",e.path),c(),A(e.meta!==void 0?1:2)}}function In(t,s){if(t&1&&(n(0,"mat-option",16),l(1),o()),t&2){let e=s.$implicit;p("value",e),c(),U(" ",e," ")}}function Gn(t,s){if(t&1&&(n(0,"mat-option",16),l(1),o()),t&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function On(t,s){if(t&1&&(n(0,"mat-optgroup",28),C(1,Gn,2,2,"mat-option",16,T),o()),t&2){let e=s.$implicit;p("label",e.group),c(),y(e.units)}}function Fn(t,s){if(t&1&&(n(0,"mat-form-field",20)(1,"mat-label"),l(2,"Display Format"),o(),n(3,"mat-select",27),C(4,On,3,1,"mat-optgroup",28,T),o()()),t&2){let e=g(2);c(4),y(e.unitList.conversions)}}function Pn(t,s){if(t&1&&(n(0,"div",3)(1,"div",4)(2,"span"),l(3),o()(),u(4,yn,12,2,"div",5),n(5,"div",6)(6,"mat-form-field",7)(7,"mat-label"),l(8," Signal K Path "),u(9,xn,2,0,"span",8),o(),b(10,"input",9,0),u(12,Mn,2,0,"mat-hint"),u(13,wn,3,0,"button",10),u(14,Sn,2,0,"mat-error")(15,kn,2,0,"mat-error"),n(16,"mat-autocomplete",null,1),C(18,Dn,3,2,"mat-option",11,bn),Ve(20,"async"),o()()(),n(21,"div",12)(22,"div",13)(23,"mat-form-field",14)(24,"mat-label"),l(25,"Data Source"),o(),n(26,"mat-select",15),C(27,In,2,2,"mat-option",16,T),o()()(),n(29,"div",17)(30,"mat-form-field",14)(31,"mat-label"),l(32,"Sample Time"),o(),b(33,"input",18),o()(),n(34,"div",19),u(35,Fn,6,0,"mat-form-field",20),o()()()),t&2){let e,a=pe(17),i=g();p("formGroup",i.pathFormGroup()),c(2),Rt("color",i.pathFormGroup().enabled?"":"rgba(255,255,255,0.5)"),c(),S(i.pathFormGroup().value.description),c(),A(i.pathFormGroup().value.pathType==="number"&&i.showPathSkUnitsFilter?4:-1),c(5),A(i.pathFormGroup().value.pathRequired===!1?9:-1),c(),p("matAutocomplete",a),c(2),A(i.pathFormGroup().value.pathRequired===!1?12:-1),c(),A(i.pathFormGroup().value.path?13:-1),c(),A((e=i.pathFormGroup().controls.path.errors)!=null&&e.required?14:(e=i.pathFormGroup().controls.path.errors)!=null&&e.requireMatch?15:-1),c(4),y(Re(20,11,i.filteredPaths)),c(9),y(i.availableSources),c(8),A(i.pathFormGroup().value.pathType==="number"&&i.pathFormGroup().value.showConvertUnitTo===void 0||i.pathFormGroup().value.pathType==="number"&&i.pathFormGroup().value.showConvertUnitTo===!0?35:-1)}}function Bn(t){return s=>{let e=s.parent?.value?.pathRequired!==!1,a=s.value;return e?a===null||a===""?{requireMatch:!0}:t().some(d=>d.path===a)?null:{requireMatch:!0}:a===null||a===""||t().some(d=>d.path===a)?null:{requireMatch:!0}}}var So=(()=>{class t{_data=m(ma);_units=m(Mt);_connection=m(na);_destroyRef=m(mt);pathFormGroup=f.required();multiCTRLArray=f.required();filterSelfPaths=f.required();availablePaths;filteredPaths=new wt(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((a,i)=>a.properties.quantity>i.properties.quantity?1:-1),this.pathSkUnitsFiltersList.unshift(this.unitlessUnit),e.value.pathSkUnitsFilter&&this.pathSkUnitsFilterControl.setValue(this.pathSkUnitsFiltersList.find(a=>a.unit===this.pathFormGroup().value.pathSkUnitsFilter),{onlySelf:!0}),e.value.showPathSkUnitsFilter&&(this.showPathSkUnitsFilter=e.value.showPathSkUnitsFilter),e.controls.path.setValidators([Bn(()=>this.getPaths())]),e.controls.path.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e.controls.pathRequired&&e.controls.pathRequired.valueChanges.pipe(We(this._destroyRef)).subscribe(()=>{this.pathFormGroup().controls.path.updateValueAndValidity()}),e.controls.path.valid?this.enableFormFields(!1):this.disablePathFields(),e.controls.sampleTime||(e.addControl("sampleTime",new ce("500",j.required)),e.controls.sampleTime.updateValueAndValidity({onlySelf:!0,emitEvent:!1})),e.controls.path.valueChanges.pipe(Pi(a=>a===""?Ai(0):Ai(350)),dt(""),st(a=>this.filterPaths(a||""))).pipe(We(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.controls.path.pristine||(a.controls.path.valid?(this.enableFormFields(!0),this.updatePathMetaBoundDisplayName(a.controls.path.value),this.updatePathMetaBoundDisplayScale(a.controls.path.value)):this.disablePathFields())}),e.controls.pathType.valueChanges.pipe(We(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.value.showPathSkUnitsFilter?this.pathSkUnitsFilterControl.setValue(this.unitlessUnit):this.pathSkUnitsFilterControl.setValue(null),a.controls.path.updateValueAndValidity()}))}ngOnChanges(e){e.filterSelfPaths&&!e.filterSelfPaths.firstChange&&this.pathFormGroup().controls.path.updateValueAndValidity()}getPaths(){let e=this.pathFormGroup().controls.pathType.value,a=this.filterSelfPaths(),i=!1,r=this.pathFormGroup();if(r.value.supportsPut){let d=!1;this.multiCTRLArray().length>0&&(d=this.multiCTRLArray().some(h=>h.pathID===this.pathFormGroup().value.pathID&&h.type==="3")),d?i=!1:i=ra(this._connection.skServerVersion,"2.12.0",">=")?r.value.supportsPut:!1}return this._data.getPathsAndMetaByType(e,i,a).sort()}filterPaths(e){let a=e.toLowerCase(),i=this.getPaths();if(this.pathSkUnitsFilterControl.value){let r=this.pathSkUnitsFilterControl.value.unit;i=i.filter(d=>{let h=!!d.meta&&!!d.meta.units,x=r==="unitless";return h&&d.meta.units===r||!h&&x})}i=i.filter(r=>r.path.toLowerCase().includes(a)),this.filteredPaths.next(i)}enableFormFields(e){let a=this._data.getPathObject(this.pathFormGroup().controls.path.value);if(a!=null){this.pathFormGroup().controls.sampleTime.enable({onlySelf:!1});let i=this.pathFormGroup();i.controls.pathType.value=="number"&&(this.unitList=this._units.getConversionsForPath(i.controls.path.value),e&&i.controls.convertUnitTo.setValue(this.unitList.base,{onlySelf:!0}),i.controls.convertUnitTo.enable({onlySelf:!1})),Object.keys(a.sources).length==1?(this.availableSources=["default"],e?i.controls.source.value!="default"&&i.controls.source.setValue("default",{onlySelf:!0}):i.controls.source.value!="default"&&i.controls.source.setValue("",{onlySelf:!0})):Object.keys(a.sources).length>1&&(this.availableSources=Object.keys(a.sources),i.controls.source.value=="default"&&i.controls.source.reset()),i.controls.source.enable({onlySelf:!1})}else this.disablePathFields()}disablePathFields(){this.pathFormGroup().controls.source.reset("",{onlySelf:!0}),this.pathFormGroup().controls.source.disable({onlySelf:!1}),this.pathFormGroup().controls.sampleTime.disable({onlySelf:!1});let e=this.pathFormGroup();e.controls.pathType.value=="number"&&(e.controls.convertUnitTo.reset("",{onlySelf:!0}),e.controls.convertUnitTo.disable({onlySelf:!1}))}updatePathMetaBoundDisplayName(e){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayName"))return;let i=this._data.getPathMeta(e);i?.displayName&&a.parent.parent.controls.displayName.setValue(i.displayName)}updatePathMetaBoundDisplayScale(e){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayScale"))return;let i=this._data.getPathMeta(e);if(i?.displayScale){let r=a.parent.parent.get("displayScale"),d=a.controls.convertUnitTo.value;i.displayScale.lower!==null&&i.displayScale.lower!==void 0&&r.controls.lower.setValue(this._units.convertToUnit(d,i.displayScale.lower)),i.displayScale.upper!==null&&i.displayScale.upper!==void 0&&r.controls.upper.setValue(this._units.convertToUnit(d,i.displayScale.upper)),i.displayScale.type!==null&&i.displayScale.type!==void 0&&r.controls.type.setValue(i.displayScale.type),i.displayScale.power!==null&&i.displayScale.power!==void 0&&r.controls.power.setValue(i.displayScale.power)}}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["path-control-config"]],inputs:{pathFormGroup:[1,"pathFormGroup"],multiCTRLArray:[1,"multiCTRLArray"],filterSelfPaths:[1,"filterSelfPaths"]},features:[at],decls:1,vars:1,consts:[["pathInput",""],["pathAutoComplete","matAutocomplete"],["pathUnitsFilter",""],[1,"flex-container","rounded-card","rounded-card-color",3,"formGroup"],[1,"flex-field-100"],[1,"flex-field-fixed"],[1,"flex-field-to-100"],["floatLabel","auto","appearance","fill",1,"pathField"],[1,"optional-label"],["type","text","matInput","","placeholder","Type to use autocomplete or select from list","formControlName","path",3,"matAutocomplete"],["mat-icon-button","","matIconSuffix","","aria-label","Clear"],[2,"min-height","48px","line-height","1.15","height","auto","padding","8px 16px","white-space","normal",3,"value"],[1,"pathProperties"],[1,"sourceField"],["appearance","outline","floatLabel","always",1,"fields"],["placeholder","Select source","formControlName","source","required",""],[3,"value"],[1,"sampleTimeField"],["matInput","","type","number","placeholder","Sample time in milliseconds","formControlName","sampleTime","required",""],[1,"unitField"],[1,"fields"],["floatLabel","auto","appearance","fill",1,"filter-path"],[1,"fa-solid","fa-filter"],[1,"fa-solid","fa-filter-circle-xmark"],["panelWidth","",3,"selectionChange","formControl"],["mat-icon-button","","matIconSuffix","","aria-label","Clear",3,"click"],[1,"pathMetaDescription"],["placeholder","Select unit","formControlName","convertUnitTo","required",""],[3,"label"]],template:function(a,i){a&1&&u(0,Pn,36,13,"div",3),a&2&&A(i.pathFormGroup().value.isPathConfigurable?0:-1)},dependencies:[ie,ee,He,P,te,B,L,ye,Y,Ze,R,V,ae,wo,si,H,xt,It,re,yt,ei,de,_e,$,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 t})();function Ln(t,s){if(t&1&&b(0,"path-control-config",6),t&2){let e=s.$implicit,a=g(2);p("pathFormGroup",e)("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Vn(t,s){if(t&1&&C(0,Ln,1,3,"path-control-config",6,T),t&2){let e=g();y(e.pathsFormGroup.controls)}}function Rn(t,s){if(t&1&&b(0,"path-control-config",6),t&2){let e=s.$implicit,a=g(2);p("pathFormGroup",a.pathsFormGroup.get(e))("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Nn(t,s){if(t&1&&(C(0,Rn,1,3,"path-control-config",6,T),Ve(2,"objectKeys")),t&2){let e=g();y(Re(2,0,e.pathsFormGroup.controls))}}var ko=(()=>{class t{rootFormGroup=m(Y);fb=m(Ct);formGroupName=f.required();isArray=f.required();enableTimeout=f.required();dataTimeout=f.required();filterSelfPaths=f.required();addPathEvent=f(void 0);delPathEvent=f(void 0);updatePathEvent=f(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,j.required],pathID:[e.path.pathID],source:[e.path.source,j.required],pathType:[e.path.pathType],isPathConfigurable:[e.path.isPathConfigurable],showPathSkUnitsFilter:[e.path.showPathSkUnitsFilter],pathSkUnitsFilter:[e.path.pathSkUnitsFilter],convertUnitTo:[e.path.convertUnitTo],sampleTime:[e.path.sampleTime],supportsPut:[e.path.supportsPut]})),this.pathsFormGroup.updateValueAndValidity(),this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}delPath(){this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}updatePath(e){this.multiCTRLArray=e}ngOnChanges(e){e.addPathEvent&&!e.addPathEvent.firstChange&&this.addPath(e.addPathEvent.currentValue),e.delPathEvent&&!e.delPathEvent.firstChange&&this.delPath(),e.updatePathEvent&&!e.updatePathEvent.firstChange&&this.updatePath(e.updatePathEvent.currentValue)}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,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:[at],decls:14,vars:5,consts:[[1,"widget-options-grid"],["name","enableTimeout",3,"formControl"],["type","number","matNativeControl","","placeholder","Time in seconds...","name","dataTimeout","min","2","required","",3,"formControl"],["matTextSuffix",""],[3,"formGroup"],["name","filterSelfPaths",3,"formControl"],[2,"display","block",3,"pathFormGroup","filterSelfPaths","multiCTRLArray"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"mat-checkbox",1),l(2," Enable Widget Data TTL "),o(),n(3,"mat-form-field")(4,"mat-label"),l(5,"TTL Timeout For Paths"),o(),b(6,"input",2),n(7,"span",3),l(8,"Seconds"),o()()(),zi(9,4),u(10,Vn,2,0)(11,Nn,3,2),ji(),n(12,"mat-checkbox",5),l(13,` Restrict to own vessel
|
|
5
|
-
`),o()),a&2&&(c(),p("formControl",i.enableTimeout()),c(5),p("formControl",i.dataTimeout()),c(3),p("formGroup",i.pathsFormGroup),c(),A(i.isArray()?10:11),c(2),p("formControl",i.filterSelfPaths()))},dependencies:[Me,ie,ee,He,P,te,B,vt,L,ye,Y,R,V,ae,yt,So,vo],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:5px}"]})}return t})();function Wn(t,s){if(t&1){let e=G();n(0,"button",7),_("click",function(){M(e);let i=g();return w(i.dateTimezone().setValue(""))}),b(1,"span",8),o()}}function Un(t,s){if(t&1&&(n(0,"mat-option",6),l(1),o()),t&2){let e=s.$implicit;p("value",e.label),c(),gt(" ",e.offset," - ",e.label," ")}}function Qn(t){return s=>t.some(a=>a.label===s.value)?null:{requireMatch:!0}}var qn=()=>{let t=Intl.supportedValuesOf("timeZone"),s=new Date;return t.map(e=>({offset:new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(s).find(d=>d.type==="timeZoneName")?.value||"",label:e}))},To=(()=>{class t{_destroyRef=m(mt);dateFormat=f(void 0);dateTimezone=f(void 0);tz=[];filteredTZ;filteredTZSubscription=null;constructor(){}ngOnInit(){typeof Intl.supportedValuesOf<"u"?this.tz=qn().sort((e,a)=>this.compareOffsets(e.offset,a.offset)):(console.log("[Widget Options] Feature not supported. Using static Time Zone list"),this.tz=[{offset:"GMT",label:"Africa/Abidjan"},{offset:"GMT",label:"Africa/Accra"},{offset:"GMT+3",label:"Africa/Addis_Ababa"},{offset:"GMT+1",label:"Africa/Algiers"},{offset:"GMT+3",label:"Africa/Asmera"},{offset:"GMT",label:"Africa/Bamako"},{offset:"GMT+1",label:"Africa/Bangui"},{offset:"GMT",label:"Africa/Banjul"},{offset:"GMT",label:"Africa/Bissau"},{offset:"GMT+2",label:"Africa/Blantyre"},{offset:"GMT+1",label:"Africa/Brazzaville"},{offset:"GMT+2",label:"Africa/Bujumbura"},{offset:"GMT+2",label:"Africa/Cairo"},{offset:"GMT",label:"Africa/Casablanca"},{offset:"GMT+2",label:"Africa/Ceuta"},{offset:"GMT",label:"Africa/Conakry"},{offset:"GMT",label:"Africa/Dakar"},{offset:"GMT+3",label:"Africa/Dar_es_Salaam"},{offset:"GMT+3",label:"Africa/Djibouti"},{offset:"GMT+1",label:"Africa/Douala"},{offset:"GMT",label:"Africa/El_Aaiun"},{offset:"GMT",label:"Africa/Freetown"},{offset:"GMT+2",label:"Africa/Gaborone"},{offset:"GMT+2",label:"Africa/Harare"},{offset:"GMT+2",label:"Africa/Johannesburg"},{offset:"GMT+2",label:"Africa/Juba"},{offset:"GMT+3",label:"Africa/Kampala"},{offset:"GMT+2",label:"Africa/Khartoum"},{offset:"GMT+2",label:"Africa/Kigali"},{offset:"GMT+1",label:"Africa/Kinshasa"},{offset:"GMT+1",label:"Africa/Lagos"},{offset:"GMT+1",label:"Africa/Libreville"},{offset:"GMT",label:"Africa/Lome"},{offset:"GMT+1",label:"Africa/Luanda"},{offset:"GMT+2",label:"Africa/Lubumbashi"},{offset:"GMT+2",label:"Africa/Lusaka"},{offset:"GMT+1",label:"Africa/Malabo"},{offset:"GMT+2",label:"Africa/Maputo"},{offset:"GMT+2",label:"Africa/Maseru"},{offset:"GMT+2",label:"Africa/Mbabane"},{offset:"GMT+3",label:"Africa/Mogadishu"},{offset:"GMT",label:"Africa/Monrovia"},{offset:"GMT+3",label:"Africa/Nairobi"},{offset:"GMT+1",label:"Africa/Ndjamena"},{offset:"GMT+1",label:"Africa/Niamey"},{offset:"GMT",label:"Africa/Nouakchott"},{offset:"GMT",label:"Africa/Ouagadougou"},{offset:"GMT+1",label:"Africa/Porto-Novo"},{offset:"GMT",label:"Africa/Sao_Tome"},{offset:"GMT+2",label:"Africa/Tripoli"},{offset:"GMT+1",label:"Africa/Tunis"},{offset:"GMT+2",label:"Africa/Windhoek"},{offset:"GMT-9",label:"America/Adak"},{offset:"GMT-8",label:"America/Anchorage"},{offset:"GMT-4",label:"America/Anguilla"},{offset:"GMT-4",label:"America/Antigua"},{offset:"GMT-3",label:"America/Araguaina"},{offset:"GMT-3",label:"America/Argentina/La_Rioja"},{offset:"GMT-3",label:"America/Argentina/Rio_Gallegos"},{offset:"GMT-3",label:"America/Argentina/Salta"},{offset:"GMT-3",label:"America/Argentina/San_Juan"},{offset:"GMT-3",label:"America/Argentina/San_Luis"},{offset:"GMT-3",label:"America/Argentina/Tucuman"},{offset:"GMT-3",label:"America/Argentina/Ushuaia"},{offset:"GMT-4",label:"America/Aruba"},{offset:"GMT-3",label:"America/Asuncion"},{offset:"GMT-3",label:"America/Bahia"},{offset:"GMT-6",label:"America/Bahia_Banderas"},{offset:"GMT-4",label:"America/Barbados"},{offset:"GMT-3",label:"America/Belem"},{offset:"GMT-6",label:"America/Belize"},{offset:"GMT-4",label:"America/Blanc-Sablon"},{offset:"GMT-4",label:"America/Boa_Vista"},{offset:"GMT-5",label:"America/Bogota"},{offset:"GMT-6",label:"America/Boise"},{offset:"GMT-3",label:"America/Buenos_Aires"},{offset:"GMT-6",label:"America/Cambridge_Bay"},{offset:"GMT-4",label:"America/Campo_Grande"},{offset:"GMT-5",label:"America/Cancun"},{offset:"GMT-4",label:"America/Caracas"},{offset:"GMT-3",label:"America/Catamarca"},{offset:"GMT-3",label:"America/Cayenne"},{offset:"GMT-5",label:"America/Cayman"},{offset:"GMT-5",label:"America/Chicago"},{offset:"GMT-6",label:"America/Chihuahua"},{offset:"GMT-6",label:"America/Ciudad_Juarez"},{offset:"GMT-5",label:"America/Coral_Harbour"},{offset:"GMT-3",label:"America/Cordoba"},{offset:"GMT-6",label:"America/Costa_Rica"},{offset:"GMT-7",label:"America/Creston"},{offset:"GMT-4",label:"America/Cuiaba"},{offset:"GMT-4",label:"America/Curacao"},{offset:"GMT",label:"America/Danmarkshavn"},{offset:"GMT-7",label:"America/Dawson"},{offset:"GMT-7",label:"America/Dawson_Creek"},{offset:"GMT-6",label:"America/Denver"},{offset:"GMT-4",label:"America/Detroit"},{offset:"GMT-4",label:"America/Dominica"},{offset:"GMT-6",label:"America/Edmonton"},{offset:"GMT-5",label:"America/Eirunepe"},{offset:"GMT-6",label:"America/El_Salvador"},{offset:"GMT-7",label:"America/Fort_Nelson"},{offset:"GMT-3",label:"America/Fortaleza"},{offset:"GMT-3",label:"America/Glace_Bay"},{offset:"GMT-1",label:"America/Godthab"},{offset:"GMT-3",label:"America/Goose_Bay"},{offset:"GMT-4",label:"America/Grand_Turk"},{offset:"GMT-4",label:"America/Grenada"},{offset:"GMT-4",label:"America/Guadeloupe"},{offset:"GMT-6",label:"America/Guatemala"},{offset:"GMT-5",label:"America/Guayaquil"},{offset:"GMT-4",label:"America/Guyana"},{offset:"GMT-3",label:"America/Halifax"},{offset:"GMT-4",label:"America/Havana"},{offset:"GMT-7",label:"America/Hermosillo"},{offset:"GMT-5",label:"America/Indiana/Knox"},{offset:"GMT-4",label:"America/Indiana/Marengo"},{offset:"GMT-4",label:"America/Indiana/Petersburg"},{offset:"GMT-5",label:"America/Indiana/Tell_City"},{offset:"GMT-4",label:"America/Indiana/Vevay"},{offset:"GMT-4",label:"America/Indiana/Vincennes"},{offset:"GMT-4",label:"America/Indiana/Winamac"},{offset:"GMT-4",label:"America/Indianapolis"},{offset:"GMT-6",label:"America/Inuvik"},{offset:"GMT-4",label:"America/Iqaluit"},{offset:"GMT-5",label:"America/Jamaica"},{offset:"GMT-3",label:"America/Jujuy"},{offset:"GMT-8",label:"America/Juneau"},{offset:"GMT-4",label:"America/Kentucky/Monticello"},{offset:"GMT-4",label:"America/Kralendijk"},{offset:"GMT-4",label:"America/La_Paz"},{offset:"GMT-5",label:"America/Lima"},{offset:"GMT-7",label:"America/Los_Angeles"},{offset:"GMT-4",label:"America/Louisville"},{offset:"GMT-4",label:"America/Lower_Princes"},{offset:"GMT-3",label:"America/Maceio"},{offset:"GMT-6",label:"America/Managua"},{offset:"GMT-4",label:"America/Manaus"},{offset:"GMT-4",label:"America/Marigot"},{offset:"GMT-4",label:"America/Martinique"},{offset:"GMT-5",label:"America/Matamoros"},{offset:"GMT-7",label:"America/Mazatlan"},{offset:"GMT-3",label:"America/Mendoza"},{offset:"GMT-5",label:"America/Menominee"},{offset:"GMT-6",label:"America/Merida"},{offset:"GMT-8",label:"America/Metlakatla"},{offset:"GMT-6",label:"America/Mexico_City"},{offset:"GMT-2",label:"America/Miquelon"},{offset:"GMT-3",label:"America/Moncton"},{offset:"GMT-6",label:"America/Monterrey"},{offset:"GMT-3",label:"America/Montevideo"},{offset:"GMT-4",label:"America/Montserrat"},{offset:"GMT-4",label:"America/Nassau"},{offset:"GMT-4",label:"America/New_York"},{offset:"GMT-8",label:"America/Nome"},{offset:"GMT-2",label:"America/Noronha"},{offset:"GMT-5",label:"America/North_Dakota/Beulah"},{offset:"GMT-5",label:"America/North_Dakota/Center"},{offset:"GMT-5",label:"America/North_Dakota/New_Salem"},{offset:"GMT-5",label:"America/Ojinaga"},{offset:"GMT-5",label:"America/Panama"},{offset:"GMT-3",label:"America/Paramaribo"},{offset:"GMT-7",label:"America/Phoenix"},{offset:"GMT-4",label:"America/Port-au-Prince"},{offset:"GMT-4",label:"America/Port_of_Spain"},{offset:"GMT-4",label:"America/Porto_Velho"},{offset:"GMT-4",label:"America/Puerto_Rico"},{offset:"GMT-3",label:"America/Punta_Arenas"},{offset:"GMT-5",label:"America/Rankin_Inlet"},{offset:"GMT-3",label:"America/Recife"},{offset:"GMT-6",label:"America/Regina"},{offset:"GMT-5",label:"America/Resolute"},{offset:"GMT-5",label:"America/Rio_Branco"},{offset:"GMT-3",label:"America/Santarem"},{offset:"GMT-3",label:"America/Santiago"},{offset:"GMT-4",label:"America/Santo_Domingo"},{offset:"GMT-3",label:"America/Sao_Paulo"},{offset:"GMT-1",label:"America/Scoresbysund"},{offset:"GMT-8",label:"America/Sitka"},{offset:"GMT-4",label:"America/St_Barthelemy"},{offset:"GMT-2:30",label:"America/St_Johns"},{offset:"GMT-4",label:"America/St_Kitts"},{offset:"GMT-4",label:"America/St_Lucia"},{offset:"GMT-4",label:"America/St_Thomas"},{offset:"GMT-4",label:"America/St_Vincent"},{offset:"GMT-6",label:"America/Swift_Current"},{offset:"GMT-6",label:"America/Tegucigalpa"},{offset:"GMT-3",label:"America/Thule"},{offset:"GMT-7",label:"America/Tijuana"},{offset:"GMT-4",label:"America/Toronto"},{offset:"GMT-4",label:"America/Tortola"},{offset:"GMT-7",label:"America/Vancouver"},{offset:"GMT-7",label:"America/Whitehorse"},{offset:"GMT-5",label:"America/Winnipeg"},{offset:"GMT-8",label:"America/Yakutat"},{offset:"GMT+8",label:"Antarctica/Casey"},{offset:"GMT+7",label:"Antarctica/Davis"},{offset:"GMT+10",label:"Antarctica/DumontDUrville"},{offset:"GMT+11",label:"Antarctica/Macquarie"},{offset:"GMT+5",label:"Antarctica/Mawson"},{offset:"GMT+13",label:"Antarctica/McMurdo"},{offset:"GMT-3",label:"Antarctica/Palmer"},{offset:"GMT-3",label:"Antarctica/Rothera"},{offset:"GMT+3",label:"Antarctica/Syowa"},{offset:"GMT+2",label:"Antarctica/Troll"},{offset:"GMT+5",label:"Antarctica/Vostok"},{offset:"GMT+2",label:"Arctic/Longyearbyen"},{offset:"GMT+3",label:"Asia/Aden"},{offset:"GMT+5",label:"Asia/Almaty"},{offset:"GMT+3",label:"Asia/Amman"},{offset:"GMT+12",label:"Asia/Anadyr"},{offset:"GMT+5",label:"Asia/Aqtau"},{offset:"GMT+5",label:"Asia/Aqtobe"},{offset:"GMT+5",label:"Asia/Ashgabat"},{offset:"GMT+5",label:"Asia/Atyrau"},{offset:"GMT+3",label:"Asia/Baghdad"},{offset:"GMT+3",label:"Asia/Bahrain"},{offset:"GMT+4",label:"Asia/Baku"},{offset:"GMT+7",label:"Asia/Bangkok"},{offset:"GMT+7",label:"Asia/Barnaul"},{offset:"GMT+3",label:"Asia/Beirut"},{offset:"GMT+6",label:"Asia/Bishkek"},{offset:"GMT+8",label:"Asia/Brunei"},{offset:"GMT+5:30",label:"Asia/Calcutta"},{offset:"GMT+9",label:"Asia/Chita"},{offset:"GMT+5:30",label:"Asia/Colombo"},{offset:"GMT+3",label:"Asia/Damascus"},{offset:"GMT+6",label:"Asia/Dhaka"},{offset:"GMT+9",label:"Asia/Dili"},{offset:"GMT+4",label:"Asia/Dubai"},{offset:"GMT+5",label:"Asia/Dushanbe"},{offset:"GMT+3",label:"Asia/Famagusta"},{offset:"GMT+2",label:"Asia/Gaza"},{offset:"GMT+2",label:"Asia/Hebron"},{offset:"GMT+8",label:"Asia/Hong_Kong"},{offset:"GMT+7",label:"Asia/Hovd"},{offset:"GMT+8",label:"Asia/Irkutsk"},{offset:"GMT+7",label:"Asia/Jakarta"},{offset:"GMT+9",label:"Asia/Jayapura"},{offset:"GMT+3",label:"Asia/Jerusalem"},{offset:"GMT+4:30",label:"Asia/Kabul"},{offset:"GMT+12",label:"Asia/Kamchatka"},{offset:"GMT+5",label:"Asia/Karachi"},{offset:"GMT+5:45",label:"Asia/Katmandu"},{offset:"GMT+9",label:"Asia/Khandyga"},{offset:"GMT+7",label:"Asia/Krasnoyarsk"},{offset:"GMT+8",label:"Asia/Kuala_Lumpur"},{offset:"GMT+8",label:"Asia/Kuching"},{offset:"GMT+3",label:"Asia/Kuwait"},{offset:"GMT+8",label:"Asia/Macau"},{offset:"GMT+11",label:"Asia/Magadan"},{offset:"GMT+8",label:"Asia/Makassar"},{offset:"GMT+8",label:"Asia/Manila"},{offset:"GMT+4",label:"Asia/Muscat"},{offset:"GMT+3",label:"Asia/Nicosia"},{offset:"GMT+7",label:"Asia/Novokuznetsk"},{offset:"GMT+7",label:"Asia/Novosibirsk"},{offset:"GMT+6",label:"Asia/Omsk"},{offset:"GMT+5",label:"Asia/Oral"},{offset:"GMT+7",label:"Asia/Phnom_Penh"},{offset:"GMT+7",label:"Asia/Pontianak"},{offset:"GMT+9",label:"Asia/Pyongyang"},{offset:"GMT+3",label:"Asia/Qatar"},{offset:"GMT+5",label:"Asia/Qostanay"},{offset:"GMT+5",label:"Asia/Qyzylorda"},{offset:"GMT+6:30",label:"Asia/Rangoon"},{offset:"GMT+3",label:"Asia/Riyadh"},{offset:"GMT+7",label:"Asia/Saigon"},{offset:"GMT+11",label:"Asia/Sakhalin"},{offset:"GMT+5",label:"Asia/Samarkand"},{offset:"GMT+9",label:"Asia/Seoul"},{offset:"GMT+8",label:"Asia/Shanghai"},{offset:"GMT+8",label:"Asia/Singapore"},{offset:"GMT+11",label:"Asia/Srednekolymsk"},{offset:"GMT+8",label:"Asia/Taipei"},{offset:"GMT+5",label:"Asia/Tashkent"},{offset:"GMT+4",label:"Asia/Tbilisi"},{offset:"GMT+3:30",label:"Asia/Tehran"},{offset:"GMT+6",label:"Asia/Thimphu"},{offset:"GMT+9",label:"Asia/Tokyo"},{offset:"GMT+7",label:"Asia/Tomsk"},{offset:"GMT+8",label:"Asia/Ulaanbaatar"},{offset:"GMT+6",label:"Asia/Urumqi"},{offset:"GMT+10",label:"Asia/Ust-Nera"},{offset:"GMT+7",label:"Asia/Vientiane"},{offset:"GMT+10",label:"Asia/Vladivostok"},{offset:"GMT+9",label:"Asia/Yakutsk"},{offset:"GMT+5",label:"Asia/Yekaterinburg"},{offset:"GMT+4",label:"Asia/Yerevan"},{offset:"GMT",label:"Atlantic/Azores"},{offset:"GMT-3",label:"Atlantic/Bermuda"},{offset:"GMT+1",label:"Atlantic/Canary"},{offset:"GMT-1",label:"Atlantic/Cape_Verde"},{offset:"GMT+1",label:"Atlantic/Faeroe"},{offset:"GMT+1",label:"Atlantic/Madeira"},{offset:"GMT",label:"Atlantic/Reykjavik"},{offset:"GMT-2",label:"Atlantic/South_Georgia"},{offset:"GMT",label:"Atlantic/St_Helena"},{offset:"GMT-3",label:"Atlantic/Stanley"},{offset:"GMT+10:30",label:"Australia/Adelaide"},{offset:"GMT+10",label:"Australia/Brisbane"},{offset:"GMT+10:30",label:"Australia/Broken_Hill"},{offset:"GMT+9:30",label:"Australia/Darwin"},{offset:"GMT+8:45",label:"Australia/Eucla"},{offset:"GMT+11",label:"Australia/Hobart"},{offset:"GMT+10",label:"Australia/Lindeman"},{offset:"GMT+11",label:"Australia/Lord_Howe"},{offset:"GMT+11",label:"Australia/Melbourne"},{offset:"GMT+8",label:"Australia/Perth"},{offset:"GMT+11",label:"Australia/Sydney"},{offset:"GMT+2",label:"Europe/Amsterdam"},{offset:"GMT+2",label:"Europe/Andorra"},{offset:"GMT+4",label:"Europe/Astrakhan"},{offset:"GMT+3",label:"Europe/Athens"},{offset:"GMT+2",label:"Europe/Belgrade"},{offset:"GMT+2",label:"Europe/Berlin"},{offset:"GMT+2",label:"Europe/Bratislava"},{offset:"GMT+2",label:"Europe/Brussels"},{offset:"GMT+3",label:"Europe/Bucharest"},{offset:"GMT+2",label:"Europe/Budapest"},{offset:"GMT+2",label:"Europe/Busingen"},{offset:"GMT+3",label:"Europe/Chisinau"},{offset:"GMT+2",label:"Europe/Copenhagen"},{offset:"GMT+1",label:"Europe/Dublin"},{offset:"GMT+2",label:"Europe/Gibraltar"},{offset:"GMT+1",label:"Europe/Guernsey"},{offset:"GMT+3",label:"Europe/Helsinki"},{offset:"GMT+1",label:"Europe/Isle_of_Man"},{offset:"GMT+3",label:"Europe/Istanbul"},{offset:"GMT+1",label:"Europe/Jersey"},{offset:"GMT+2",label:"Europe/Kaliningrad"},{offset:"GMT+3",label:"Europe/Kiev"},{offset:"GMT+3",label:"Europe/Kirov"},{offset:"GMT+1",label:"Europe/Lisbon"},{offset:"GMT+2",label:"Europe/Ljubljana"},{offset:"GMT+1",label:"Europe/London"},{offset:"GMT+2",label:"Europe/Luxembourg"},{offset:"GMT+2",label:"Europe/Madrid"},{offset:"GMT+2",label:"Europe/Malta"},{offset:"GMT+3",label:"Europe/Mariehamn"},{offset:"GMT+3",label:"Europe/Minsk"},{offset:"GMT+2",label:"Europe/Monaco"},{offset:"GMT+3",label:"Europe/Moscow"},{offset:"GMT+2",label:"Europe/Oslo"},{offset:"GMT+2",label:"Europe/Paris"},{offset:"GMT+2",label:"Europe/Podgorica"},{offset:"GMT+2",label:"Europe/Prague"},{offset:"GMT+3",label:"Europe/Riga"},{offset:"GMT+2",label:"Europe/Rome"},{offset:"GMT+4",label:"Europe/Samara"},{offset:"GMT+2",label:"Europe/San_Marino"},{offset:"GMT+2",label:"Europe/Sarajevo"},{offset:"GMT+4",label:"Europe/Saratov"},{offset:"GMT+3",label:"Europe/Simferopol"},{offset:"GMT+2",label:"Europe/Skopje"},{offset:"GMT+3",label:"Europe/Sofia"},{offset:"GMT+2",label:"Europe/Stockholm"},{offset:"GMT+3",label:"Europe/Tallinn"},{offset:"GMT+2",label:"Europe/Tirane"},{offset:"GMT+4",label:"Europe/Ulyanovsk"},{offset:"GMT+2",label:"Europe/Vaduz"},{offset:"GMT+2",label:"Europe/Vatican"},{offset:"GMT+2",label:"Europe/Vienna"},{offset:"GMT+3",label:"Europe/Vilnius"},{offset:"GMT+3",label:"Europe/Volgograd"},{offset:"GMT+2",label:"Europe/Warsaw"},{offset:"GMT+2",label:"Europe/Zagreb"},{offset:"GMT+2",label:"Europe/Zurich"},{offset:"GMT+3",label:"Indian/Antananarivo"},{offset:"GMT+6",label:"Indian/Chagos"},{offset:"GMT+7",label:"Indian/Christmas"},{offset:"GMT+6:30",label:"Indian/Cocos"},{offset:"GMT+3",label:"Indian/Comoro"},{offset:"GMT+5",label:"Indian/Kerguelen"},{offset:"GMT+4",label:"Indian/Mahe"},{offset:"GMT+5",label:"Indian/Maldives"},{offset:"GMT+4",label:"Indian/Mauritius"},{offset:"GMT+3",label:"Indian/Mayotte"},{offset:"GMT+4",label:"Indian/Reunion"},{offset:"GMT+13",label:"Pacific/Apia"},{offset:"GMT+13",label:"Pacific/Auckland"},{offset:"GMT+11",label:"Pacific/Bougainville"},{offset:"GMT+13:45",label:"Pacific/Chatham"},{offset:"GMT-5",label:"Pacific/Easter"},{offset:"GMT+11",label:"Pacific/Efate"},{offset:"GMT+13",label:"Pacific/Enderbury"},{offset:"GMT+13",label:"Pacific/Fakaofo"},{offset:"GMT+12",label:"Pacific/Fiji"},{offset:"GMT+12",label:"Pacific/Funafuti"},{offset:"GMT-6",label:"Pacific/Galapagos"},{offset:"GMT-9",label:"Pacific/Gambier"},{offset:"GMT+11",label:"Pacific/Guadalcanal"},{offset:"GMT+10",label:"Pacific/Guam"},{offset:"GMT-10",label:"Pacific/Honolulu"},{offset:"GMT+14",label:"Pacific/Kiritimati"},{offset:"GMT+11",label:"Pacific/Kosrae"},{offset:"GMT+12",label:"Pacific/Kwajalein"},{offset:"GMT+12",label:"Pacific/Majuro"},{offset:"GMT-9:30",label:"Pacific/Marquesas"},{offset:"GMT-11",label:"Pacific/Midway"},{offset:"GMT+12",label:"Pacific/Nauru"},{offset:"GMT-11",label:"Pacific/Niue"},{offset:"GMT+12",label:"Pacific/Norfolk"},{offset:"GMT+11",label:"Pacific/Noumea"},{offset:"GMT-11",label:"Pacific/Pago_Pago"},{offset:"GMT+9",label:"Pacific/Palau"},{offset:"GMT-8",label:"Pacific/Pitcairn"},{offset:"GMT+11",label:"Pacific/Ponape"},{offset:"GMT+10",label:"Pacific/Port_Moresby"},{offset:"GMT-10",label:"Pacific/Rarotonga"},{offset:"GMT+10",label:"Pacific/Saipan"},{offset:"GMT-10",label:"Pacific/Tahiti"},{offset:"GMT+12",label:"Pacific/Tarawa"},{offset:"GMT+13",label:"Pacific/Tongatapu"},{offset:"GMT+10",label:"Pacific/Truk"},{offset:"GMT+12",label:"Pacific/Wake"},{offset:"GMT+12",label:"Pacific/Wallis"}].sort((e,a)=>this.compareOffsets(e.offset,a.offset))),this.tz.unshift({offset:"",label:"System Timezone -"}),this.dateTimezone().setValidators([j.required,Qn(this.tz)]),this.filteredTZ=this.dateTimezone().valueChanges.pipe(Pt(500),dt(""),st(e=>this.filterTZ(e||""))),this.filteredTZSubscription=this.filteredTZ.pipe(We(this._destroyRef)).subscribe()}filterTZ(e){let a=e.toLowerCase();return this.tz.filter(i=>i.label.toLowerCase().includes(a))}compareOffsets(e,a){let i=r=>{let d=r.match(/([+-]?)(\d+)(?::(\d+))?/);if(!d)return 0;let h=d[1]==="-"?-1:1,x=parseInt(d[2],10),I=d[3]?parseInt(d[3],10):0;return h*(x*60+I)};return i(e)-i(a)}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["display-datetime-options"]],inputs:{dateFormat:[1,"dateFormat"],dateTimezone:[1,"dateTimezone"]},decls:15,vars:6,consts:[["timeZoneAutoComplete","matAutocomplete"],[1,"widget-options-grid"],[1,"options-grid-span2"],["matInput","","placeholder","dd/MM/yyyy HH:mm:ss","name","dateFormat","required","",3,"formControl"],["type","text","matInput","","placeholder","Type to use autocomplete","name","dateTimezone","required","",3,"formControl","matAutocomplete"],["mat-icon-button","","matSuffix","","aria-label","Clear"],[3,"value"],["mat-icon-button","","matSuffix","","aria-label","Clear",3,"click"],[1,"fa-solid","fa-close"]],template:function(a,i){if(a&1&&(n(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),l(3,"Date & Time Format"),o(),b(4,"input",3),o(),n(5,"mat-form-field",2)(6,"mat-label"),l(7,"Adjust Value to Time Zone"),o(),b(8,"input",4),u(9,Wn,2,0,"button",5),n(10,"mat-autocomplete",null,0),C(12,Un,2,3,"mat-option",6,Vt),Ve(14,"async"),o()()()),a&2){let r=pe(11);c(4),p("formControl",i.dateFormat()),c(4),p("formControl",i.dateTimezone())("matAutocomplete",r),c(),A(i.dateTimezone().value?9:-1),c(3),y(Re(14,4,i.filteredTZ))}},dependencies:[R,V,ae,ie,ee,P,B,L,ye,It,re,yt,si,H,Wt],encapsulation:2})}return t})();function zn(t,s){if(t&1&&(n(0,"mat-option",6),l(1),Ve(2,"titlecase"),o()),t&2){let e=s.$implicit;p("value",Te(e)),c(),S(Re(2,3,e))}}var Si={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"},Eo={options:{modes:[],states:[]},state:null,mode:"off-line",target:null,engaged:!1},Do=(()=>{class t{formGroupName=f.required();_plugins=m(ai);_destroyRef=m(mt);http=m(oa);rootFormGroup=m(Y);autopilotFormGroup;apiVersion=k(null);availableAutopilots=k({});autopilotPlugin=k(null);discoveryInProgress=k(!1);apiDetectionError=k(null);apInstances=Ji(()=>{let e=this.availableAutopilots();return e?Object.keys(e):[]});modes=k(null);pluginId=k(null);currentRequests=new Set;constructor(){Nt(()=>{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(Si.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 Ft(this.makeHttpRequest(this.http.get(Si.V2_AUTOPILOTS,{observe:"response",responseType:"json"}))))?.status===200}catch(e){if(e&&typeof e=="object"&&"status"in e){let a=e;a.status===404?console.log("[Autopilot Options] V2 API endpoint not found (404)"):a.status>=500?console.warn("[Autopilot Options] V2 API server error:",a.status,a.statusText):console.log("[Autopilot Options] V2 API error:",a.status,a.statusText)}else console.log("[Autopilot Options] V2 API network error:",e);return!1}})}discoverV2Autopilots(){return N(this,null,function*(){try{let e=yield Ft(this.makeHttpRequest(this.http.get(Si.V2_AUTOPILOTS)));e&&Object.keys(e).length>0?(this.availableAutopilots.set(e),console.log("[Autopilot Options] Discovered V2 autopilot instances:",JSON.stringify(e))):(this.availableAutopilots.set({}),console.warn("[Autopilot Options] No V2 autopilot plugin found in response."))}catch(e){console.error("[Autopilot Options] Failed to discover V2 autopilots:",e),this.availableAutopilots.set({}),this.apiDetectionError.set(`Failed to discover autopilots: ${e instanceof Error?e.message:"Unknown error"}`)}})}discoverV2AutopilotOptions(e){return N(this,null,function*(){let a;try{try{this.discoveryInProgress.set(!0),a=yield Ft(this.makeHttpRequest(this.http.get(`API_PATHS.V2_AUTOPILOTS/${e}`))),console.log("[Autopilot Options] V2 Autopilot Options response:",JSON.stringify(a))}catch{a=Eo,console.log(`[Autopilot Options] Default AP discovery endpoint error for instance '${e}'`)}return this.discoveryInProgress.set(!1),a}catch(i){return console.error("[Autopilot Options] Failed to discover V2 endpoints:",i),console.log(`[Autopilot Options] Using fallback V2 endpoints for instance '${e}'`),Eo}})}onAutopilotInstanceIdChange(e){let a=e.value;if(e.value===""){this.modes.set(""),this.autopilotFormGroup.get("modes")?.setValue("",{emitEvent:!1});return}console.log("[Autopilot Options] Selected Autopilot Instance ID:",a),this.apiVersion()==="v2"?this.discoverV2AutopilotOptions(a).then(i=>{let r=i.options.modes||[];this.modes.set(r.join(", ")),this.autopilotFormGroup.get("modes")?.setValue(r,{emitEvent:!1}),console.log("[Autopilot Options] Autopilot plugin supported modes :",r.join(", "))}).catch(i=>{console.error("[Autopilot Options] Error requesting autopilot modes:",i),this.autopilotFormGroup.get("modes")?.setValue([],{emitEvent:!1})}):this.apiVersion()==="v1"&&(this.modes.set("standby, auto, wind, route"),this.autopilotFormGroup.get("modes")?.setValue("standby, auto, wind, route",{emitEvent:!1}),console.log("[Autopilot Options] Autopilot mode set to Raymarine v1 API modes: standby, auto, wind, route"))}makeHttpRequest(e){let a=e.pipe(We(this._destroyRef));return this.currentRequests.add(a),a.pipe(Li(()=>this.currentRequests.delete(a)))}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["select-autopilot"]],inputs:{formGroupName:[1,"formGroupName"]},decls:30,vars:4,consts:[[1,"display-content","tab-content"],[1,"autopilot-options",3,"formGroup"],[1,"flex-item-rounded-card","rounded-card-color",2,"margin-block","10px"],[2,"margin-block-start","0px"],["placeholder","Select autopilot...","formControlName","instanceId","name","instanceId","required","",3,"selectionChange"],["value",""],[3,"value"],[1,"flex-item-rounded-card","rounded-card-color",2,"margin-block","10px","margin-left","10px","margin-right","10px"],["name","headingDirectionTrue","formControlName","headingDirectionTrue"],["name","invertRudder","formControlName","invertRudder"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),l(4,"Signal K Service Discovery"),o(),n(5,"ul")(6,"li")(7,"b"),l(8,"API Version:"),o(),l(9),o(),n(10,"li")(11,"b"),l(12,"Plugin:"),o(),l(13),o()()(),n(14,"mat-form-field")(15,"mat-label"),l(16,"Target Autopilot"),o(),n(17,"mat-select",4),_("selectionChange",function(d){return i.onAutopilotInstanceIdChange(d)}),n(18,"mat-option",5),l(19,"No autopilot"),o(),C(20,zn,3,5,"mat-option",6,T),o()(),n(22,"div",7)(23,"b"),l(24,"Supported modes:"),o(),l(25),o(),n(26,"mat-checkbox",8),l(27," Display True Heading "),o(),n(28,"mat-checkbox",9),l(29," Invert Rudder Angle Indicator "),o()()()),a&2&&(c(),p("formGroup",i.autopilotFormGroup),c(8),U(" ",i.apiVersion()),c(4),U(" ",i.pluginId()),c(7),y(i.apInstances()),c(5),U(" ",i.modes()," "))},dependencies:[L,P,te,B,Y,Ze,xe,R,V,Je,Me,Xe,de,H,Ke,ia],styles:[".autopilot-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}"]})}return t})();var Io=()=>["measuring","capacity"],jn=()=>["marineCompass","baseplateCompass"],Yn=()=>["measuring"];function Hn(t,s){if(t&1&&b(0,"config-display-chart-options",5),t&2){let e=g();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 Zn(t,s){t&1&&b(0,"select-autopilot",6)}function Kn(t,s){t&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"URL"),o(),b(3,"input",40),o())}function Xn(t,s){t&1&&(n(0,"mat-checkbox",17),l(1," Allow pointer events on embedded content. WARNING: this may prevent swipe gestures over the Embed widget or keyboard events, while the focus is in the embed, from triggering normal KIP interactions. "),o())}function Jn(t,s){t&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"Widget Label"),o(),b(3,"input",41),o())}function $n(t,s){t&1&&(n(0,"mat-form-field",42)(1,"mat-label"),l(2,"Scale Start"),o(),b(3,"input",43),o(),n(4,"mat-form-field",42)(5,"mat-label"),l(6,"Scale End"),o(),b(7,"input",44),o())}function el(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Integer Places"),o(),b(3,"input",45),o())}function tl(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Decimal Places"),o(),b(3,"input",46),o()),t&2){let e=g(2);At(e.widgetConfig.showMiniChart!==void 0?"options-grid-span2":"")}}function il(t,s){t&1&&(n(0,"mat-checkbox",19),l(1," Show Min recorded value "),o())}function al(t,s){t&1&&(n(0,"mat-checkbox",20),l(1," Show Max recorded value "),o())}function ol(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Next Dashboard after start"),o(),b(3,"input",47),o()),t&2){let e=g(2);W("options-grid-span2",!e.widgetConfig.numInt)}}function nl(t,s){if(t&1&&(n(0,"mat-option",50),l(1),o()),t&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function ll(t,s){if(t&1&&(n(0,"mat-optgroup",49),C(1,nl,2,2,"mat-option",50,T),o()),t&2){let e=g().$implicit;p("label",e.group),c(),y(e.units)}}function rl(t,s){if(t&1&&u(0,ll,3,1,"mat-optgroup",49),t&2){let e=s.$implicit,a=g(3);A(!a.widgetConfig.convertUnitToGroup||a.widgetConfig.convertUnitToGroup===""||a.widgetConfig.convertUnitToGroup===e.group?0:-1)}}function sl(t,s){if(t&1&&(n(0,"mat-form-field",22)(1,"mat-label"),l(2,"Display Units"),o(),n(3,"mat-select",48),C(4,rl,1,1,null,null,T),o()()),t&2){let e=g(2);c(4),y(e.unitList.conversions)}}function cl(t,s){t&1&&(n(0,"mat-checkbox",23),l(1," Enable beeps on count down "),o())}function dl(t,s){if(t&1&&b(0,"display-datetime-options",24),t&2){let e=g(2);p("dateFormat",e.dateFormatToControl)("dateTimezone",e.dateTimezoneToControl)}}function ml(t,s){t&1&&(n(0,"mat-checkbox",25),l(1," Close-hauled Lines "),o())}function pl(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Vessel Close-hauled Angle"),o(),b(3,"input",51),o())}function ul(t,s){t&1&&(n(0,"mat-checkbox",26),l(1," Wind Sectors "),o())}function Al(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Sector Duration"),o(),b(3,"input",52),o())}function gl(t,s){t&1&&(n(0,"mat-checkbox",27),l(1," Apparent Wind Speed Value "),o())}function hl(t,s){t&1&&(n(0,"mat-checkbox",28),l(1," True Wind Speed Value "),o())}function fl(t,s){t&1&&(n(0,"mat-checkbox",29),l(1," Course Over Ground "),o())}function bl(t,s){t&1&&(n(0,"mat-checkbox",30),l(1," True Wind Angle Indicator "),o())}function _l(t,s){t&1&&(n(0,"mat-checkbox",31),l(1," Next Waypoint "),o())}function vl(t,s){t&1&&(n(0,"mat-checkbox",32),l(1," Drift "),o())}function Cl(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Minimum Value"),o(),b(3,"input",53),o())}function yl(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Maximum Value"),o(),b(3,"input",54),o())}function xl(t,s){t&1&&(n(0,"mat-checkbox",33),l(1," Ignore Zones configuration "),o())}function Ml(t,s){t&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Highlights Width"),o(),b(3,"input",55),o())}function wl(t,s){t&1&&(n(0,"mat-form-field",35)(1,"mat-label"),l(2,"Rotation Element"),o(),n(3,"mat-select",56)(4,"mat-option",57),l(5,"Dial (Marine Compass)"),o(),n(6,"mat-option",58),l(7,"Needle (Base plate compass)"),o()()(),n(8,"div",34)(9,"mat-checkbox",59),l(10," Show value box "),o()(),n(11,"div",34)(12,"mat-checkbox",60),l(13," Show cardinal degrees "),o()())}function Sl(t,s){t&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Progress Bar Start Position"),o(),n(3,"mat-select",63)(4,"mat-option",64),l(5,"Left"),o(),n(6,"mat-option",65),l(7,"Middle"),o(),n(8,"mat-option",66),l(9,"Right"),o()()())}function kl(t,s){t&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Progress Bar Start Angle"),o(),b(3,"input",67),o())}function Tl(t,s){if(t&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Gauge Type"),o(),n(3,"mat-select",56)(4,"mat-option",61),l(5,"Measuring"),o(),n(6,"mat-option",62),l(7,"Capacity"),o()()(),u(8,Sl,10,0,"mat-form-field",34),u(9,kl,4,0,"mat-form-field",34)),t&2){let e=g(3);c(8),A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"&&kt(2,Yn).includes(e.formMaster.value.gauge.subType)?8:-1),c(),A(e.formMaster.value.gauge.subType==="capacity"?9:-1)}}function El(t,s){if(t&1&&u(0,wl,14,0)(1,Tl,10,3),t&2){let e=g(2);A(kt(1,jn).indexOf(e.formMaster.value.gauge.subType)>-1?0:kt(2,Io).indexOf(e.formMaster.value.gauge.subType)>-1?1:-1)}}function Dl(t,s){t&1&&(n(0,"div",34)(1,"mat-checkbox",68),l(2," Use needle indicator "),o()(),n(3,"div",34)(4,"mat-checkbox",69),l(5," Enable Ticks "),o()(),n(6,"mat-form-field",35)(7,"mat-label"),l(8,"Orientation"),o(),n(9,"mat-select",70)(10,"mat-option",71),l(11,"Vertical"),o(),n(12,"mat-option",72),l(13,"Horizontal"),o()()())}function Il(t,s){t&1&&(n(0,"mat-form-field",35)(1,"mat-label"),l(2,"Unit Label"),o(),n(3,"mat-select",73)(4,"mat-option",74),l(5,"Full Label"),o(),n(6,"mat-option",75),l(7,"First Letter Only"),o()()())}function Gl(t,s){if(t&1&&(n(0,"mat-option",50),l(1),o()),t&2){let e=s.$implicit;p("value",Te(e.value)),c(),S(e.label)}}function Ol(t,s){if(t&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"Color"),o(),n(3,"mat-select",76),C(4,Gl,2,3,"mat-option",50,T),o()()),t&2){let e=g(2);c(4),y(e.colors)}}function Fl(t,s){t&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"Scale Span"),o(),n(3,"mat-select",77)(4,"mat-option",78),l(5,"1 Minute"),o(),n(6,"mat-option",79),l(7,"5 Minutes"),o(),n(8,"mat-option",80),l(9,"30 Minutes"),o()()())}function Pl(t,s){t&1&&(n(0,"mat-checkbox",36),l(1," Show Background Graph "),n(2,"i"),l(3,"(Too many graphs may affect performance)"),o()())}function Bl(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Suggested Scale Start"),o(),b(3,"input",81),o())}function Ll(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Suggested Scale End"),o(),b(3,"input",82),o())}function Vl(t,s){t&1&&(n(0,"mat-checkbox",37),l(1," Inverse Scale Axis "),o())}function Rl(t,s){t&1&&(n(0,"mat-checkbox",38),l(1," Vertical Data Graph "),o())}function Nl(t,s){t&1&&(n(0,"mat-checkbox",39),l(1," Disable background color "),o())}function Wl(t,s){if(t&1&&(n(0,"mat-option",50),l(1),o()),t&2){let e=s.$implicit;p("value",Te(e.value)),c(),S(e.label)}}function Ul(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),l(2,"Background Color"),o(),n(3,"mat-select",83),C(4,Wl,2,3,"mat-option",50,T),o()()),t&2){let e=g(2);c(4),y(e.colors)}}function Ql(t,s){t&1&&(n(0,"mat-form-field",34)(1,"mat-label"),l(2,"Background Style"),o(),n(3,"mat-select",96)(4,"mat-option",97),l(5,"Dark Gray"),o(),n(6,"mat-option",98),l(7,"Satin Gray"),o(),n(8,"mat-option",99),l(9,"Light Gray"),o(),n(10,"mat-option",100),l(11,"White"),o(),n(12,"mat-option",101),l(13,"Black"),o(),n(14,"mat-option",102),l(15,"Beige"),o(),n(16,"mat-option",103),l(17,"Brown"),o(),n(18,"mat-option",104),l(19,"Red"),o(),n(20,"mat-option",105),l(21,"Green"),o(),n(22,"mat-option",106),l(23,"Blue"),o(),n(24,"mat-option",92),l(25,"Anthracite"),o(),n(26,"mat-option",107),l(27,"Mud"),o(),n(28,"mat-option",108),l(29,"Punched Sheet"),o(),n(30,"mat-option",109),l(31,"Carbon"),o(),n(32,"mat-option",110),l(33,"Stainless"),o(),n(34,"mat-option",111),l(35,"Brushed Metal"),o(),n(36,"mat-option",112),l(37,"Brushed Stainless"),o(),n(38,"mat-option",113),l(39,"Turned"),o()()())}function ql(t,s){t&1&&(n(0,"div",34)(1,"mat-checkbox",114),l(2," Reverse Pitch Axis "),o()(),n(3,"div",34)(4,"mat-checkbox",115),l(5," Reverse Roll Axis "),o()(),n(6,"div",34)(7,"mat-checkbox",116),l(8," Show Frame "),o()())}function zl(t,s){if(t&1&&(u(0,Ql,40,0,"mat-form-field",34),u(1,ql,9,0),n(2,"mat-form-field",34)(3,"mat-label"),l(4,"Frame Style"),o(),n(5,"mat-select",84)(6,"mat-option",85),l(7,"Black Metal"),o(),n(8,"mat-option",86),l(9,"Metal"),o(),n(10,"mat-option",87),l(11,"Shiny Metal"),o(),n(12,"mat-option",88),l(13,"Brass"),o(),n(14,"mat-option",89),l(15,"Steel"),o(),n(16,"mat-option",90),l(17,"Chrome"),o(),n(18,"mat-option",91),l(19,"Gold"),o(),n(20,"mat-option",92),l(21,"Anthracite"),o(),n(22,"mat-option",93),l(23,"Tilted Gray"),o(),n(24,"mat-option",94),l(25,"Tilted Black"),o(),n(26,"mat-option",95),l(27,"Glossy Metal"),o()()()),t&2){let e=g(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 jl(t,s){if(t&1&&(n(0,"div",7)(1,"div",15),u(2,Kn,4,0,"mat-form-field",16),u(3,Xn,2,0,"mat-checkbox",17),u(4,Jn,4,0,"mat-form-field",16),u(5,$n,8,0),u(6,el,4,0,"mat-form-field"),u(7,tl,4,2,"mat-form-field",18),u(8,il,2,0,"mat-checkbox",19),u(9,al,2,0,"mat-checkbox",20),u(10,ol,4,2,"mat-form-field",21),u(11,sl,6,0,"mat-form-field",22),u(12,cl,2,0,"mat-checkbox",23),u(13,dl,1,2,"display-datetime-options",24),u(14,ml,2,0,"mat-checkbox",25),u(15,pl,4,0,"mat-form-field"),u(16,ul,2,0,"mat-checkbox",26),u(17,Al,4,0,"mat-form-field"),u(18,gl,2,0,"mat-checkbox",27),u(19,hl,2,0,"mat-checkbox",28),u(20,fl,2,0,"mat-checkbox",29),u(21,bl,2,0,"mat-checkbox",30),u(22,_l,2,0,"mat-checkbox",31),u(23,vl,2,0,"mat-checkbox",32),u(24,Cl,4,0,"mat-form-field"),u(25,yl,4,0,"mat-form-field"),u(26,xl,2,0,"mat-checkbox",33),u(27,Ml,4,0,"mat-form-field",34),u(28,El,2,3),u(29,Dl,14,0),u(30,Il,8,0,"mat-form-field",35),u(31,Ol,6,0,"mat-form-field",16),u(32,Fl,10,0,"mat-form-field",16),u(33,Pl,4,0,"mat-checkbox",36),u(34,Bl,4,0,"mat-form-field"),u(35,Ll,4,0,"mat-form-field"),u(36,Vl,2,0,"mat-checkbox",37),u(37,Rl,2,0,"mat-checkbox",38),u(38,Nl,2,0,"mat-checkbox",39),u(39,Ul,6,0,"mat-form-field"),u(40,zl,28,2),o()()),t&2){let e=g();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"&&kt(39,Io).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 Yl(t,s){if(t&1&&(b(0,"span",120),l(1,"\xA0Controls ")),t&2){let e=g(2);ut(e.formMaster.controls.multiChildCtrls.valid?"display: none":"display: block")}}function Hl(t,s){if(t&1){let e=G();n(0,"mat-tab",8)(1,"div",117)(2,"div"),ke(3,Yl,2,2,"ng-template",118),o(),n(4,"boolean-multicontrol-options",119),_("addPath",function(i){M(e);let r=g();return w(r.addPathGroup(i))})("updatePath",function(i){M(e);let r=g();return w(r.updatePath(i))})("delPath",function(i){M(e);let r=g();return w(r.deletePath(i))}),o()()()}if(t&2){let e=g();c(4),p("multiCtrlArray",e.multiChildCtrlsToControl)}}function Zl(t,s){if(t&1&&(n(0,"span",122),l(1," error "),o(),l(2," \xA0Paths ")),t&2){let e=g(2);ut(e.formMaster.controls.paths.valid||e.formMaster.controls.paths.disabled?"display: none":"display: block")}}function Kl(t,s){if(t&1&&(n(0,"mat-tab",9)(1,"div",117)(2,"div"),ke(3,Zl,3,2,"ng-template",118),o(),b(4,"paths-options",121),o()()),t&2){let e=g();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 Xl(t,s){t&1&&(n(0,"p")(1,"mat-checkbox",125),l(2," Digital display "),o()())}function Jl(t,s){t&1&&(n(0,"mat-form-field",16)(1,"mat-label"),l(2,"Dial Size"),o(),n(3,"mat-select",126)(4,"mat-option",127),l(5,"1/4"),o(),n(6,"mat-option",128),l(7,"1/2"),o(),n(8,"mat-option",129),l(9,"3/4"),o(),n(10,"mat-option",74),l(11,"Full"),o()()())}function $l(t,s){if(t&1&&(n(0,"mat-tab",10)(1,"div",7)(2,"mat-form-field",16)(3,"mat-label"),l(4,"Gauge Type"),o(),n(5,"mat-select",70)(6,"mat-option",123),l(7,"Linear"),o(),n(8,"mat-option",124),l(9,"Radial"),o()()(),u(10,Xl,3,0,"p"),u(11,Jl,12,0,"mat-form-field",16),o()()),t&2){let e=g();c(10),A(e.formMaster.value.gauge.subType==="linear"?10:-1),c(),A(e.formMaster.value.gauge.subType==="radial"?11:-1)}}function er(t,s){t&1&&(n(0,"p")(1,"mat-checkbox",132),l(2," Value to send on button push (checked = on, unchecked = off) "),o()())}function tr(t,s){if(t&1&&(n(0,"mat-tab",11)(1,"div",117)(2,"p")(3,"mat-checkbox",130),l(4," Enable Put Requests "),o()(),n(5,"p")(6,"mat-checkbox",131),l(7," Momentary mode (instead of switching between on/off) "),o()(),u(8,er,3,0,"p"),o()()),t&2){let e=g();c(8),A(e.formMaster.controls.putMomentary.value?8:-1)}}function ir(t,s){t&1&&b(0,"span",120)}function ar(t,s){if(t&1&&(u(0,ir,1,0,"span",120),l(1," Dataset ")),t&2){let e=g(2);A(e.formMaster.controls.datasetUUID.valid?-1:0)}}function or(t,s){if(t&1&&(n(0,"mat-tab",12),ke(1,ar,2,1,"ng-template",118),b(2,"config-dataset-chart-options",133),o()),t&2){let e=g();c(2),p("datasetUUID",e.datasetUUIDToControl)("convertUnitTo",e.convertUnitToControl)}}var Go=(()=>{class t{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(Ct);DatasetService=m(ii);units=m(Mt);app=m(ht);widgetConfig=m(qe);titleDialog="Widget Options";formMaster;availableDataSets;unitList={};isPathArray=!1;addPathEvent;delPathEvent;updatePathEvent;colors=[];ngOnInit(){if(!this.widgetConfig){console.error("Widget configuration data is missing. Closing dialog."),this.dialogRef.close();return}this.availableDataSets=this.DatasetService.list().sort((e,a)=>{let i=e.label||"",r=a.label||"";return i.localeCompare(r,void 0,{sensitivity:"base"})}),this.unitList=this.units.getConversionsForPath(""),this.formMaster=this.generateFormGroups(this.widgetConfig),this.colors=this.app.configurableThemeColors}isPlainObject(e){return Object.prototype.toString.call(e)==="[object Object]"}generateFormGroups(e,a){let i=this.fb.group({});return Object.keys(e).forEach(r=>{let d=e[r];if(d!==null&&(Array.isArray(d)||this.isPlainObject(d))){if(r===t.KEY_MULTI_CHILD_CTRLS){i.addControl(r,this.fb.array([]));let h=i.get(r);d.forEach(x=>{h.push(this.generateCtrlArray(x))})}else if(r===t.KEY_DISPLAY_SCALE)i.addControl(r,this.generateFormGroups(d,r));else if(r===t.KEY_GAUGE)i.addControl(r,this.generateFormGroups(d,r));else if(r===t.KEY_AUTOPILOT)i.addControl(r,this.generateFormGroups(d,r));else if(r===t.KEY_PATHS){let h=d;if(this.widgetConfig.multiChildCtrls!==void 0){this.isPathArray=!0,i.addControl(r,this.fb.array([]));let x=i.get(r);Object.keys(h).forEach(I=>{let O=h[I];if(O){let E=this.generatePathArray(I,O);O.isPathConfigurable===!1&&E.disable(),x.push(E)}})}else{let x=this.fb.group({});Object.keys(h).forEach(I=>{let O=h[I];if(O){let E=this.generateFormGroups(O,I);O.isPathConfigurable===!1&&E.disable(),x.addControl(I,E)}}),i.addControl(r,x)}}a===t.KEY_PATHS&&i.addControl(r,this.generateFormGroups(d,r))}else if(a===t.KEY_CONVERT_UNIT_TO){let h=e[r];(h&&h.pathType=="number"||"datasetUUID"in this.widgetConfig)&&i.addControl(r,new ce(d))}else switch(r){case"path":i.addControl(r,new ce(d));break;case"datasetUUID":i.addControl(r,new ce(d,j.required));break;case"dataTimeout":i.addControl(r,new ce(d,j.required));break;default:i.addControl(r,new ce(d));break}}),i}generatePathArray(e,a){let i=new Na({});return Object.keys(a).forEach(r=>{i.addControl(r,this.generatePathFields(r,a[r]))}),i}generatePathFields(e,a){let i=null;switch(e){case"path":i=new ce(a);break;case"source":i=new ce(a,j.required);break;case"sampleTime":i=new ce(a,j.required);break;default:i=new ce(a);break}return i}generateCtrlArray(e){let a=this.fb.group(e);return a.get("ctrlLabel").addValidators(j.required),a}addPathGroup(e){this.addPathEvent=e}updatePath(e){e.forEach(a=>{this.formMaster.get("paths").controls.forEach(r=>{r.get("pathID").value==a.pathID&&(r.controls.description.setValue(a.ctrlLabel),r.controls.pathType.setValue(a.isNumeric?"number":"boolean"),this.updatePathEvent=e)})})}deletePath(e){let a=this.formMaster.get("paths"),i=0;a.controls.forEach(d=>{d.get("pathID").value==e.pathID?a.removeAt(i):i++}),this.formMaster.get("multiChildCtrls").removeAt(e.ctrlIndex),this.delPathEvent=e.pathID,this.formMaster.updateValueAndValidity()}get convertUnitToControl(){return this.formMaster.get("convertUnitTo")}get datasetUUIDToControl(){return this.formMaster.get("datasetUUID")}get filterSelfPathsToControl(){return this.formMaster.get("filterSelfPaths")}get dataTimeoutToControl(){return this.formMaster.get("dataTimeout")}get enableTimeoutToControl(){return this.formMaster.get("enableTimeout")}get dateTimezoneToControl(){return this.formMaster.get("dateTimezone")}get yScaleSuggestedMaxToControl(){return this.formMaster.get("yScaleSuggestedMax")}get enableMinMaxScaleLimitToControl(){return this.formMaster.get("enableMinMaxScaleLimit")}get showDatasetMinimumValueLineToControl(){return this.formMaster.get("showDatasetMinimumValueLine")}get showDatasetMaximumValueLineToControl(){return this.formMaster.get("showDatasetMaximumValueLine")}get showDatasetAverageValueLineToControl(){return this.formMaster.get("showDatasetAverageValueLine")}get showDatasetAngleAverageValueLineToControl(){return this.formMaster.get("showDatasetAngleAverageValueLine")}get startScaleAtZeroToControl(){return this.formMaster.get("startScaleAtZero")}get showLabelToControl(){return this.formMaster.get("showLabel")}get showTimeScaleToControl(){return this.formMaster.get("showTimeScale")}get showYScaleToControl(){return this.formMaster.get("showYScale")}get yScaleSuggestedMinToControl(){return this.formMaster.get("yScaleSuggestedMin")}get yScaleMinToControl(){return this.formMaster.get("yScaleMin")}get yScaleMaxToControl(){return this.formMaster.get("yScaleMax")}get datasetAverageArrayToControl(){return this.formMaster.get("datasetAverageArray")}get trackAgainstAverageToControl(){return this.formMaster.get("trackAgainstAverage")}get showAverageDataToControl(){return this.formMaster.get("showAverageData")}get displayNameToControl(){return this.formMaster.get("displayName")}get numDecimalToControl(){return this.formMaster.get("numDecimal")}get verticalChartToControl(){return this.formMaster.get("verticalChart")}get inverseYAxisToControl(){return this.formMaster.get("inverseYAxis")}get colorToControl(){return this.formMaster.get("color")}get dateFormatToControl(){return this.formMaster.get("dateFormat")}get multiChildCtrlsToControl(){return this.formMaster.get("multiChildCtrls")}submitConfig(){this.dialogRef.close(this.formMaster.getRawValue())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["modal-widget-config"]],decls:20,vars:9,consts:[[3,"ngSubmit","formGroup"],["mat-dialog-title",""],[1,"widget-config-dialog-content"],[1,"tab-group-content"],["label","Display"],[1,"tab-content",3,"displayName","datasetUUID","convertUnitTo","showAverageData","trackAgainstAverage","datasetAverageArray","showDatasetMinimumValueLine","showDatasetMaximumValueLine","showDatasetAverageValueLine","showDatasetAngleAverageValueLine","startScaleAtZero","showLabel","showTimeScale","showYScale","yScaleSuggestedMin","yScaleSuggestedMax","enableMinMaxScaleLimit","yScaleMin","yScaleMax","numDecimal","verticalChart","inverseYAxis","color"],["formGroupName","autopilot",1,"tab-content"],[1,"display-content","tab-content"],["label","Controls"],["label","Paths"],["label","Settings","formGroupName","gauge"],["label","Put Request"],["label","Dataset"],["type","button","mat-dialog-close","","mat-flat-button",""],["mat-flat-button","","type","submit",3,"disabled"],[1,"widget-options-grid"],[1,"options-grid-span2"],["name","allowInput","formControlName","allowInput",1,"options-grid-span2"],[3,"class"],["name","showMin","formControlName","showMin"],["name","showMax","formControlName","showMax"],[3,"options-grid-span2"],[1,"fields"],["name","playBeeps","formControlName","playBeeps"],[1,"options-grid-span2",3,"dateFormat","dateTimezone"],["name","laylineEnable","formControlName","laylineEnable",1,"fields"],["name","windSectorEnable","formControlName","windSectorEnable"],["name","awsEnable","formControlName","awsEnable"],["name","twsEnable","formControlName","twsEnable"],["name","courseOverGroundEnable","formControlName","courseOverGroundEnable"],["name","twaEnable","formControlName","twaEnable"],["name","waypointEnable","formControlName","waypointEnable"],["name","driftEnable","formControlName","driftEnable"],["name","ignoreZones","formControlName","ignoreZones"],["formGroupName","gauge"],["formGroupName","gauge",1,"options-grid-span2"],["name","showMiniChart","formControlName","showMiniChart",1,"options-grid-span2"],["name","inverseYAxis","formControlName","inverseYAxis"],["name","verticalChart","formControlName","verticalChart"],["name","noBgColor","formControlName","noBgColor"],["type","url","matInput","","placeholder","Enter URL to page/resource","name","widgetUrl","formControlName","widgetUrl"],["matInput","","placeholder","Enter a label to display","name","displayName","formControlName","displayName"],["formGroupName","displayScale","appearance","outline"],["matNativeControl","","type","number","name","lower","formControlName","lower","placeholder","Enter number..."],["matInput","","type","number","name","upper","formControlName","upper","placeholder","Enter number..."],["type","number","min","1","max","5","matInput","","placeholder","Enter or select number...","name","numInt","formControlName","numInt","required",""],["type","number","min","0","max","5","matInput","","placeholder","Enter or select number...","name","numDecimal","formControlName","numDecimal","required",""],["type","number","min","0","max","99","matInput","","placeholder","Enter or select number...","name","nextDashboard","formControlName","nextDashboard"],["placeholder","Select unit","formControlName","convertUnitTo","required",""],[3,"label"],[3,"value"],["type","number","min","10","max","90","matInput","","placeholder","Select angle...","name","laylineAngle","formControlName","laylineAngle"],["type","number","min","1","max","90","matInput","","placeholder","Select or enter duration...","name","windSectorWindowSeconds","formControlName","windSectorWindowSeconds"],["matInput","","type","number","name","minValue","formControlName","minValue","placeholder","Enter or select number..."],["matInput","","type","number","name","maxValue","formControlName","maxValue","placeholder","Enter or select number..."],["type","number","min","0","max","25","matInput","","placeholder","Enter or select number...","name","highlightsWidth","formControlName","highlightsWidth","required",""],["placeholder","Select Gauge Type...","formControlName","subType","name","subType"],["value","marineCompass"],["value","baseplateCompass"],["name","showValueBox","formControlName","showValueBox"],["name","compassUseNumbers","formControlName","compassUseNumbers"],["value","measuring"],["value","capacity"],["placeholder","Select start position...","formControlName","barStartPosition","name","barStartPosition"],["value","left"],["value","middle"],["value","right"],["type","number","min","1","max","360","matInput","","placeholder","Enter or select number...","name","scaleStart","formControlName","scaleStart","required",""],["name","useNeedle","formControlName","useNeedle"],["name","enableTicks","formControlName","enableTicks"],["placeholder","Select type...","formControlName","subType","name","subType"],["value","vertical"],["value","horizontal"],["placeholder","Select label format","formControlName","unitLabelFormat","name","unitLabelFormat"],["value","full"],["value","abr"],["placeholder","Select Color...","formControlName","color","name","color","required",""],["placeholder","Select span duration...","formControlName","timeScale","name","timeScale","required",""],["value","Last Minute"],["value","Last 5 Minutes"],["value","Last 30 Minutes"],["type","number","matInput","","placeholder","Enter or select number...","name","yScaleMin","formControlName","yScaleMin","required",""],["type","number","matInput","","placeholder","Enter or select number...","name","yScaleMax","formControlName","yScaleMax","required",""],["placeholder","Select Color...","formControlName","bgColor","name","bgColor","required",""],["placeholder","Select style...","formControlName","faceColor","name","faceColor"],["value","blackMetal"],["value","metal"],["value","shinyMetal"],["value","brass"],["value","steel"],["value","chrome"],["value","gold"],["value","anthracite"],["value","tiltedGray"],["value","tiltedBlack"],["value","glossyMetal"],["placeholder","Select style...","formControlName","backgroundColor","name","backgroundColor"],["value","darkGray"],["value","satinGray"],["value","lightGray"],["value","white"],["value","black"],["value","beige"],["value","brown"],["value","red"],["value","green"],["value","blue"],["value","mud"],["value","punchedSheet"],["value","carbon"],["value","stainless"],["value","brushedMetal"],["value","brushedStainless"],["value","turned"],["name","invertPitch","formControlName","invertPitch"],["name","invertRoll","formControlName","invertRoll"],["name","noFrameVisible","formControlName","noFrameVisible"],[1,"tab-content"],["mat-tab-label",""],[3,"addPath","updatePath","delPath","multiCtrlArray"],[1,"warning","fa","fa-exclamation-circle"],["formGroupName","paths",3,"isArray","enableTimeout","dataTimeout","filterSelfPaths","addPathEvent","delPathEvent","updatePathEvent"],[1,"warning","material-icons"],["value","linear"],["value","radial"],["formControlName","digitalMeter","name","digitalMeter"],["placeholder","Select size...","formControlName","radialSize","name","radialSize"],["value","quarter"],["value","half"],["value","three-quarter"],["formControlName","putEnable","name","putEnable"],["formControlName","putMomentary","name","putMomentary"],["formControlName","putMomentaryValue","name","putMomentaryValue"],[3,"datasetUUID","convertUnitTo"]],template:function(a,i){a&1&&(n(0,"form",0),_("ngSubmit",function(){return i.submitConfig()}),n(1,"h6",1),l(2),o(),n(3,"mat-dialog-content",2)(4,"mat-tab-group",3)(5,"mat-tab",4),u(6,Hn,1,23,"config-display-chart-options",5)(7,Zn,1,0,"select-autopilot",6)(8,jl,41,40,"div",7),o(),u(9,Hl,5,1,"mat-tab",8),u(10,Kl,5,7,"mat-tab",9),u(11,$l,12,2,"mat-tab",10),u(12,tr,9,1,"mat-tab",11),u(13,or,3,2,"mat-tab",12),o()(),b(14,"mat-divider"),n(15,"mat-dialog-actions")(16,"button",13),l(17,"Cancel"),o(),n(18,"button",14),l(19," Save "),o()()()),a&2&&(p("formGroup",i.formMaster),c(2),S(i.titleDialog),c(4),A((i.widgetConfig==null?null:i.widgetConfig.datasetUUID)!==void 0?6:i.widgetConfig!=null&&i.widgetConfig.autopilot?7:8),c(3),A((i.widgetConfig==null?null:i.widgetConfig.multiChildCtrls)!==void 0?9:-1),c(),A((i.widgetConfig==null?null:i.widgetConfig.paths)!==void 0?10:-1),c(),A((i.widgetConfig==null||i.widgetConfig.gauge==null?null:i.widgetConfig.gauge.type)==="steel"?11:-1),c(),A((i.widgetConfig==null?null:i.widgetConfig.putEnable)!==void 0&&(i.widgetConfig==null?null:i.widgetConfig.multiChildCtrls)===void 0?12:-1),c(),A((i.widgetConfig==null?null:i.widgetConfig.datasetUUID)!==void 0?13:-1),c(5),p("disabled",!i.formMaster.valid))},dependencies:[ie,Jt,ee,He,P,te,B,vt,$t,L,Y,Ze,qa,Ce,ze,je,_t,Ye,xe,R,V,Ke,ae,co,lo,ro,so,Je,Me,Xe,de,H,xt,ti,Ha,se,Ue,To,bo,_o,ho,ko,Do],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 t})();var nr=["button"],lr=["*"];function rr(t,s){if(t&1&&(n(0,"div",2),b(1,"mat-pseudo-checkbox",6),o()),t&2){let e=g();c(),p("disabled",e.disabled)}}var Oo=new K("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:sr});function sr(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Fo=new K("MatButtonToggleGroup"),cr={provide:Xt,useExisting:St(()=>ki),multi:!0},ci=class{source;value;constructor(s,e){this.source=s,this.value=e}},ki=(()=>{class t{_changeDetector=m(ot);_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(Tt).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(a=>a.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}valueChange=new 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(Oo,{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 i=e.target.id,r=this._buttonToggles.toArray().findIndex(h=>h.buttonId===i),d=null;switch(e.keyCode){case 32:case 13:d=this._buttonToggles.get(r)||null;break;case 38:d=this._getNextButton(r,-1);break;case 37:d=this._getNextButton(r,this.dir==="ltr"?-1:1);break;case 40:d=this._getNextButton(r,1);break;case 39:d=this._getNextButton(r,this.dir==="ltr"?1:-1);break;default:return}d&&(e.preventDefault(),d._onButtonClick(),d.focus())}_emitChangeEvent(e){let a=new ci(e,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(e,a,i=!1,r=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(e):this._selectionModel.deselect(e):r=!0,r?Promise.resolve().then(()=>this._updateModelValue(e,i)):this._updateModelValue(e,i)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>e.value!=null&&a===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;e<this._buttonToggles.length;e++){let a=this._buttonToggles.get(e);if(!a.disabled){a.tabIndex=0;break}}}_getNextButton(e,a){let i=this._buttonToggles;for(let r=1;r<=i.length;r++){let d=(e+a*r+i.length)%i.length,h=i.get(d);if(h&&!h.disabled)return h}return null}_setSelectionByValue(e){if(this._rawValue=e,!this._buttonToggles)return;let a=this._buttonToggles.toArray();if(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(i=>this._selectValue(i,a))):(this._clearSelection(),this._selectValue(e,a)),!this.multiple&&a.every(i=>i.tabIndex===-1)){for(let i of a)if(!i.disabled){i.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e,a){for(let i of a)if(i.value===e){i.checked=!0,this._selectionModel.select(i),this.multiple||(i.tabIndex=0);break}}_updateModelValue(e,a){a&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static \u0275fac=function(a){return new(a||t)};static \u0275dir=X({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,i,r){if(a&1&&me(r,di,5),a&2){let d;q(d=z())&&(i._buttonToggles=d)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,i){a&1&&_("keydown",function(d){return i._keydown(d)}),a&2&&(Q("role",i.multiple?"group":"radiogroup")("aria-disabled",i.disabled),W("mat-button-toggle-vertical",i.vertical)("mat-button-toggle-group-appearance-standard",i.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",F],value:"value",multiple:[2,"multiple","multiple",F],disabled:[2,"disabled","disabled",F],disabledInteractive:[2,"disabledInteractive","disabledInteractive",F],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",F],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",F]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Le([cr,{provide:Fo,useExisting:t}])]})}return t})(),di=(()=>{class t{_changeDetectorRef=m(ot);_elementRef=m(Se);_focusMonitor=m(ga);_idGenerator=m(Tt);_animationDisabled=ve();_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(Fo,{optional:!0}),a=m(new $i("tabindex"),{optional:!0})||"",i=m(Oo,{optional:!0});this._tabIndex=k(parseInt(a)||0),this.buttonToggleGroup=e,this.appearance=i&&i.appearance?i.appearance:"standard",this.disabledInteractive=i?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(i=>i.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new ci(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(a,i){if(a&1&&Be(nr,5),a&2){let r;q(r=z())&&(i._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,i){a&1&&_("focus",function(){return i.focus()}),a&2&&(Q("aria-label",null)("aria-labelledby",null)("id",i.id)("name",null),W("mat-button-toggle-standalone",!i.buttonToggleGroup)("mat-button-toggle-checked",i.checked)("mat-button-toggle-disabled",i.disabled)("mat-button-toggle-disabled-interactive",i.disabledInteractive)("mat-button-toggle-appearance-standard",i.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",F],appearance:"appearance",checked:[2,"checked","checked",F],disabled:[2,"disabled","disabled",F],disabledInteractive:[2,"disabledInteractive","disabledInteractive",F]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:lr,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(a,i){if(a&1){let r=G();be(),n(0,"button",1,0),_("click",function(){return M(r),w(i._onButtonClick())}),u(2,rr,2,1,"div",2),n(3,"span",3),Z(4),o()(),b(5,"span",4)(6,"span",5)}if(a&2){let r=pe(1);p("id",i.buttonId)("disabled",i.disabled&&!i.disabledInteractive||null),Q("role",i.isSingleSelector()?"radio":"button")("tabindex",i.disabled&&!i.disabledInteractive?-1:i.tabIndex)("aria-pressed",i.isSingleSelector()?null:i.checked)("aria-checked",i.isSingleSelector()?i.checked:null)("name",i._getButtonName())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),c(2),A(i.buttonToggleGroup&&(!i.buttonToggleGroup.multiple&&!i.buttonToggleGroup.hideSingleSelectionIndicator||i.buttonToggleGroup.multiple&&!i.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),c(4),p("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.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 t})(),Po=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275mod=fe({type:t});static \u0275inj=he({imports:[J,Kt,di,J]})}return t})();var mr=["Core","Gauge","Component","Racing"];var Bo=(()=>{class t{_plugins=m(ai);_widgetCategories=[...mr];_widgetDefinition=[{name:"Numeric",description:"Displays numeric data in a clear and concise format, with options to show minimum and/or maximum recorded values. Includes an optional background minichart for quick visual trend insights.",icon:"numericWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-numeric",componentClassName:"WidgetNumericComponent"},{name:"Text",description:"Displays text data with a customizable color formatting option.",icon:"textWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-text",componentClassName:"WidgetTextComponent"},{name:"Date & Time",description:"Displays date and time data with fully custom formatting options and timezone correction.",icon:"datetimeWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-datetime",componentClassName:"WidgetDatetimeComponent"},{name:"Position",description:"Displays latitude and longitude for location tracking and navigation.",icon:"positionWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-position",componentClassName:"WidgetPositionComponent"},{name:"Static Label",description:"A static text widget that allows you to add customizable labels to your dashboard, helping to organize and clarify your layout effectively.",icon:"labelWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-label",componentClassName:"WidgetLabelComponent"},{name:"Switch Panel",description:"A switch panel group with multiple controls including toggle switches, indicator lights, and press buttons for digital switching and other operations.",icon:"switchpanelWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-boolean-switch",componentClassName:"WidgetBooleanSwitchComponent"},{name:"Slider",description:"A range slider that allows users to adjust values, such as controlling lighting intensity from 0% to 100%.",icon:"sliderWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-slider",componentClassName:"WidgetSliderComponent"},{name:"Compact Linear",description:"A simple horizontal linear gauge with a large value label offering a clean, compact modern look.",icon:"simpleLinearGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-simple-linear",componentClassName:"WidgetSimpleLinearComponent"},{name:"Linear",description:"A horizontal or vertical linear gauge that supports zone highlighting.",icon:"linearGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-linear",componentClassName:"WidgetGaugeNgLinearComponent"},{name:"Radial",description:"A radial gauge with configurable capacity and measurement dials plus zone highlighting.",icon:"radialGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-radial",componentClassName:"WidgetGaugeNgRadialComponent"},{name:"Compass",description:"A faceplate or card-style rotating compass gauge with multiple cardinal point indicator options.",icon:"compassGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-compass",componentClassName:"WidgetGaugeNgCompassComponent"},{name:"Pitch & Roll",description:"Horizon-style attitude indicator showing live pitch and roll (\xB0) with smooth animation\u2014ideal for monitoring trim, heel, and sea-state response.",icon:"pitchRollGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-horizon",componentClassName:"WidgetHorizonComponent"},{name:"Classic Steel",description:"A traditional steel looking linear & radial gauges replica that supports range sizes and zones highlights.",icon:"steelGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-steel",componentClassName:"WidgetSteelGaugeComponent"},{name:"Windsteer",description:"A wind steering display that combines wind, wind sectors, heading, course over ground and next waypoint information.",icon:"windsteeringWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-wind-steer",componentClassName:"WidgetWindComponent"},{name:"Freeboard-SK",description:"Adds the Freeboard-SK chart plotter as a widget with automatic sign-in to your dashboard.",icon:"freeboardWidget",minWidth:3,minHeight:4,defaultWidth:3,defaultHeight:7,category:"Component",requiredPlugins:["freeboard-sk","tracks","resources-provider","course-provider"],selector:"widget-freeboardsk",componentClassName:"WidgetFreeboardskComponent"},{name:"Autopilot Head",description:"Provides typical autopilot controls for Signal K v1 & v2 Autopilot API devices. Requires a compatible hardware-specific Autopilot plugin for full functionality.",icon:"autopilotWidget",minWidth:2,minHeight:7,defaultWidth:2,defaultHeight:7,category:"Component",requiredPlugins:[],optionalPlugins:["autopilot","pypilot-autopilot-provider"],selector:"widget-autopilot",componentClassName:"WidgetAutopilotComponent"},{name:"Realtime Data Chart",description:"Visualizes data on a real-time chart with multiple preconfigured series including actuals, SMA and period overall averages and Min/Max. Requires the KIP Dataset to be configured.",icon:"datachartWidget",minWidth:1,minHeight:2,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-data-chart",componentClassName:"WidgetDataChartComponent"},{name:"Embed Webpage Viewer",description:"Embeds external web-based applications\u2014such as Grafana graphs or other Signal K apps\u2014into your dashboard for seamless integration. Interaction is disabled by default but can be enabled.",icon:"embedWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-iframe",componentClassName:"WidgetIframeComponent"},{name:"Racesteer",description:"A dynamic race steering display that fuses polar performance data with live conditions to guide optimal steering, tacking, and gybing angles for maximum speed. Instantly compare performance against competition polars for smarter tactical decisions.",icon:"racesteeringWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Racing",requiredPlugins:["signalk-polar-performance-plugin"],selector:"widget-racesteer",componentClassName:"WidgetRacesteerComponent"},{name:"Racer - Start Line Insight",description:"Gain a tactical advantage for racing starts: set and adjust the port and starboard ends of the start line, see your distance to the line, the favored end, and how much the line is favored or unfavored. Includes visual integration with Freeboard SK for interactive line adjustment and display.",icon:"racerlineWidget",minWidth:2,minHeight:2,defaultWidth:2,defaultHeight:2,requiredPlugins:["signalk-racer"],category:"Racing",selector:"widget-racer-line",componentClassName:"WidgetRacerLineComponent"},{name:"Racer - Start Timer",description:"An advanced racing countdown timer that indicates OCS (On Course Side) status. Set the start line, choose or adjust the duration, or specify the exact start time. Automatically switches to the target dashboard at the start unless over early.",icon:"racertimerWidget",minWidth:2,minHeight:2,defaultWidth:2,defaultHeight:2,requiredPlugins:["signalk-racer"],category:"Racing",selector:"widget-racer-timer",componentClassName:"WidgetRacerTimerComponent"},{name:"Wind Trends",description:"Real-time True Wind trends with dual top axes for direction (\xB0) and speed (knots). Displays live values and SMA over the current period\u2019s average.",icon:"windtrendsWidget",minWidth:5,minHeight:4,defaultWidth:5,defaultHeight:4,category:"Racing",requiredPlugins:[],selector:"widget-windtrends-chart",componentClassName:"WidgetWindTrendsChartComponent"},{name:"Countdown Timer",description:"A simple race start countdown timer that can be started, paused, synced, reset, and configured for duration.",icon:"racetimerWidget",minWidth:3,minHeight:3,defaultWidth:3,defaultHeight:4,category:"Racing",requiredPlugins:[],selector:"widget-racetimer",componentClassName:"WidgetRaceTimerComponent"}];get kipWidgets(){return this._widgetDefinition}get categories(){return this._widgetCategories}getKipWidgetsWithStatus(){return N(this,null,function*(){let e={},a=Array.from(new Set(this._widgetDefinition.flatMap(i=>[...i.requiredPlugins||[],...i.optionalPlugins||[]])));return yield Promise.all(a.map(i=>N(this,null,function*(){e[i]=yield this._plugins.isEnabled(i)}))),this._widgetDefinition.map(i=>{let r=i.requiredPlugins||[],d=i.optionalPlugins||[],h=r.map(E=>({name:E,enabled:e[E],required:!0})),x=d.map(E=>({name:E,enabled:e[E],required:!1})),I=[...h,...x],O=h.every(E=>E.enabled);return O&&d.length>0&&(O=x.some(E=>E.enabled)),Ae(ne({},i),{isDependencyValid:O,pluginsStatus:I})})})}static \u0275fac=function(a){return new(a||t)};static \u0275prov=ge({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pr(t,s){t&1&&(n(0,"span"),l(1,", "),o())}function ur(t,s){if(t&1&&(n(0,"span",8),l(1),n(2,"span",9),l(3),o()(),u(4,pr,2,0,"span")),t&2){let e=s.$implicit,a=s.$index,i=s.$count,r=g(2);p("ngClass",r.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(),gt(" ",e.enabled?"\u2714":"\u2716"," ",e.name," "),c(2),S(e.required?"":"(optional)"),c(),A(a!==i-1?4:-1)}}function Ar(t,s){if(t&1&&(n(0,"div",7)(1,"span"),l(2,"Plugins:"),o(),C(3,ur,5,6,null,null,T),o()),t&2){let e=g();ut(e.pluginsStatus().length>0?"margin-bottom: 8px;margin-top: 4px;":""),c(),At(e.pluginDependencyValid()?"":"dependency-error"),c(2),y(e.pluginsStatus())}}var Lo=(()=>{class t{static _iconSetRegistered=!1;svgIcon=f.required();iconSize=f.required();name=f.required();description=f.required();pluginsStatus=f.required();pluginDependencyValid=f.required();constructor(){let e=m(pa),a=m(ca);t._iconSetRegistered||(e.addSvgIconSet(a.bypassSecurityTrustResourceUrl("assets/svg/icons.svg")),t._iconSetRegistered=!0)}onKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.target.click())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["widget-list-card"]],hostBindings:function(a,i){a&1&&_("keydown",function(d){return i.onKeydown(d)})},inputs:{svgIcon:[1,"svgIcon"],iconSize:[1,"iconSize"],name:[1,"name"],description:[1,"description"],pluginsStatus:[1,"pluginsStatus"],pluginDependencyValid:[1,"pluginDependencyValid"]},decls:9,vars:11,consts:[["role","button","tabindex","0",1,"item-container"],[1,"item-icon"],["aria-hidden","false",3,"svgIcon"],[1,"item-label"],[1,"title","no-text-select"],[1,"dependency","no-text-select",3,"style"],[1,"description","no-text-select"],[1,"dependency","no-text-select"],[3,"ngClass"],[1,"plugin-type-label"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"div",1),b(2,"mat-icon",2),o(),n(3,"div",3)(4,"p",4),l(5),o(),u(6,Ar,5,4,"div",5),n(7,"span",6),l(8),o()()()),a&2&&(Q("aria-disabled",i.pluginDependencyValid()?null:"true"),c(2),Rt("width",i.iconSize(),"px")("height",i.iconSize(),"px"),p("svgIcon",i.svgIcon()),c(2),ut(i.pluginsStatus().length>0?"margin-bottom:0px; margin-top: 4px":""),c(),S(i.name()),c(),A(i.pluginsStatus().length>0?6:-1),c(2),S(i.description()))},dependencies:[aa,ea,_e,$],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 t})();var gr=(t,s)=>s.selector;function hr(t,s){if(t&1&&(n(0,"mat-button-toggle",1),l(1),o()),t&2){let e=s.$implicit;p("value",e),c(),U(" ",e," ")}}function fr(t,s){if(t&1){let e=G();n(0,"widget-list-card",3),_("click",function(){let i=M(e).$implicit,r=g();return w(r.onSelectWidget(i))}),o()}if(t&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 Vo=(()=>{class t{_dialogRef=m(Qe);_widgets=m(Bo);_widgetsList=[];filteredWidgetsList=k([]);_widgetCategory=k("Core");isDependencyValid=k(!0);ngOnInit(){this.loadWidgets()}loadWidgets(){return N(this,null,function*(){this._widgetsList=yield this._widgets.getKipWidgetsWithStatus(),this.filteredWidgetsList.set(this._widgetsList.filter(e=>e.category===this._widgetCategory()))})}onCategoryChange(e){this.filteredWidgetsList.set(this._widgetsList.filter(a=>a.category===e.value)),this._widgetCategory.set(e.value)}onSelectWidget(e){if(!e.isDependencyValid)return;let{name:a,description:i,icon:r,minWidth:d,minHeight:h,defaultWidth:x,defaultHeight:I,category:O,requiredPlugins:E,optionalPlugins:$e,selector:et,componentClassName:Ot}=e,tt=Ae(ne({name:a,description:i,icon:r,minWidth:d,minHeight:h,defaultWidth:x,defaultHeight:I,category:O,requiredPlugins:E},$e?{optionalPlugins:$e}:{}),{selector:et,componentClassName:Ot});this._dialogRef.close(tt)}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["widgets-list"]],decls:7,vars:1,consts:[["name","widgetCategories","aria-label","Widget categories",1,"list-filter",3,"change","value"],[3,"value"],[3,"dependency-missing","svgIcon","iconSize","name","description","pluginDependencyValid","pluginsStatus"],[3,"click","svgIcon","iconSize","name","description","pluginDependencyValid","pluginsStatus"]],template:function(a,i){a&1&&(n(0,"div")(1,"mat-button-toggle-group",0),_("change",function(d){return i.onCategoryChange(d)}),C(2,hr,2,2,"mat-button-toggle",1,T),o(),n(4,"div"),C(5,fr,1,8,"widget-list-card",2,gr),o()()),a&2&&(c(),p("value",i._widgetCategory()),c(),y(i._widgets.categories),c(3),y(i.filteredWidgetsList()))},dependencies:[Po,ki,di,Lo],styles:[".list-filter[_ngcontent-%COMP%]{margin-bottom:20px}.dependency-missing[_ngcontent-%COMP%]{pointer-events:none;opacity:.8;background-color:var(--mat-sys-neutral10)}"]})}return t})();var Ro=(()=>{class t{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 a of e){let i=yield this.transformConfig(a);if(i)if(i.scope==="global")try{this._storage.patchGlobal(i.name,i.scope,i.newConfiguration,"add"),this._storage.patchGlobal(i.name,i.scope,i.oldConfiguration,"replace",9),console.log(`[Upgrade] Configuration ${i.scope}/${i.name} has been upgraded to version ${this.currentConfigVersion} and saved. Old configuration has been patched to version 0.`)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}`)}else this._storage.setConfig(i.scope,i.name,i.newConfiguration).then(()=>{this._storage.setConfig(i.scope,i.name,i.oldConfiguration,9),console.log(`[Upgrade] Configuration ${i.scope}/${i.name} has been upgraded to version ${this.currentConfigVersion} and saved. Old configuration has been patched to version 0.`)}).catch(r=>{console.error(`[Upgrade] Error saving configuration for ${a.name}:`,r)})}})).catch(e=>{console.error("Error fetching configuration data:",e)});else{let e={app:null,widget:null,layout:null,theme:null};e.app=this._settings.loadConfigFromLocalStorage("appConfig"),e.widget=this._settings.loadConfigFromLocalStorage("widgetConfig"),e.layout=this._settings.loadConfigFromLocalStorage("layoutConfig"),e.theme=this._settings.loadConfigFromLocalStorage("themeConfig");let a=this.transformApp(e.app),i=this.transformTheme(e.theme),r=e.layout?.rootSplits||[],d=e.layout?.splitSets||[],h=e.widget?.widgets||[],x=r.map((I,O)=>{let E=this.extractWidgetsFromSplitSets(d,h,I);return{id:I,name:`Dashboard ${O+1}`,configuration:E}});localStorage.setItem("appConfig",JSON.stringify(a)),localStorage.setItem("dashboardsConfig",JSON.stringify(x)),localStorage.setItem("themeConfig",JSON.stringify(i))}setTimeout(()=>{this._settings.reloadApp()},1500)}transformConfig(e){return N(this,null,function*(){let a=yield this._storage.getConfig(e.scope,e.name,this.fileVersionToUpgrade);if(a.app.configVersion!==this.configVersionToUpgrade)return console.error(`[Upgrade Component] Configuration ${e.scope}/${e.name} is not an upgradable version ${this.configVersionToUpgrade} config. Skipping upgrade. Please delete old configuration files.`),null;let i=this.transformApp(a.app),r=this.transformTheme(a.theme),d=a.layout?.rootSplits||[],h=a.layout?.splitSets||[],x=a.widget?.widgets||[],I=d.map((E,$e)=>{let et=this.extractWidgetsFromSplitSets(h,x,E);return{id:E,name:`Dashboard ${$e+1}`,configuration:et}}),O=Qt(a);return O.app.configVersion=0,{scope:e.scope,name:e.name,newConfiguration:{app:i,theme:r,dashboards:I},oldConfiguration:O}})}transformWidget(e,a){if(e.color==="white"&&(e.color="contrast"),e.textColor){switch(e.textColor){case"text":e.color="contrast";break;case"primary":e.color="blue";break;case"accent":e.color="yellow";break;case"warn":e.color="purple";break;case"nobar":a==="WidgetGaugeNgLinearComponent"&&(e.color="blue",e.gauge=e.gauge||{},e.gauge.useNeedle=!1);break;default:e.color=e.textColor}delete e.textColor}return e}transformApp(e){return e?(e.configVersion=11,e.nightModeBrightness=.27,e):null}transformTheme(e){return e?{themeName:""}:null}extractWidgetsFromSplitSets(e,a,i){let r=new Map(a.map(tt=>[tt.uuid,tt])),d=[],h=[],x=0,I=0,O=12,E=12,$e=2,et=2,Ot=tt=>{let Gi=e.find(it=>it.uuid===tt);if(!Gi){h.push(`Missing splitSet with UUID: ${tt}`);return}Gi.splitAreas.forEach(it=>{if(it.type==="widget"){let we=r.get(it.uuid);if(we){if(we.type==="WidgetBlank"){console.warn(`Skipping widget of type WidgetBlank with UUID: ${we.uuid}`);return}if(I+et>E){h.push(`No space left in the grid for widget with UUID: ${we.uuid}`);return}let Oi=t.widgetTypeToSelectorMap[we.type]||"widget-unknown",Yo=this.transformWidget(we.config,we.type);d.push({id:we.uuid,selector:Oi,input:{widgetProperties:{type:Oi,uuid:we.uuid,config:Yo}},x,y:I,w:$e,h:et}),x+=$e,x>=O&&(x=0,I+=et)}else h.push(`Missing widget with UUID: ${it.uuid}`)}else it.type==="splitSet"&&Ot(it.uuid)})};return Ot(i),h.length>0&&console.warn("Transformation Issues:",h),d}startFresh(){if(this._storage.initConfig)this._storage.listConfigs(this.fileVersionToUpgrade).then(e=>N(this,null,function*(){for(let a of e){let i=yield this._storage.getConfig(a.scope,a.name,this.fileVersionToUpgrade);if(i.app.configVersion=0,a.scope==="global")try{setTimeout(()=>{this._storage.patchGlobal(a.name,a.scope,i,"replace",9),console.log(`[Retired] Configuration ${a.scope}/${a.name} has been patched to version 0.`)},750)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}:`)}else try{yield this._storage.setConfig(a.scope,a.name,i,9),console.log(`[Retired] Configuration ${a.scope}/${a.name} has been patched to version 0.`)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}.`)}}})).catch(e=>{console.error("Error fetching configuration data:",e)});else{let e={app:null,dashboards:null,theme:null};e.app=this._settings.loadConfigFromLocalStorage("appConfig"),e.theme=this._settings.loadConfigFromLocalStorage("themeConfig"),e.app.configVersion=11,e.app.nightModeBrightness=.27,e.theme.themeName="",localStorage.setItem("appConfig",JSON.stringify(e.app)),localStorage.setItem("themeConfig",JSON.stringify(e.theme)),localStorage.removeItem("widgetConfig"),localStorage.removeItem("layoutConfig")}this.dialogRef.close()}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["upgrade-config"]],decls:193,vars:0,consts:[[1,"warning"],[1,"nav-table"],[2,"font-size","x-large"],["href","https://discord.gg/AMDYT2DQga","target","_blank"],[1,"button-group"],["mat-flat-button","",3,"click"],["mat-flat-button","",2,"margin-left","20px",3,"click"]],template:function(a,i){a&1&&(n(0,"h2"),l(1,"All New Touch, Mouse, and Keyboard Navigation"),o(),n(2,"p",0)(3,"strong"),l(4,"Heads up:"),o(),l(5," The new version introduces a completely redesigned fullscreen interface with no navigation bar. Please review the input modes table below to get an understanding of the new ways to operate KIP before upgrading. After the upgrade, give yourself time to get comfortable with the changes."),o(),n(6,"table",1)(7,"thead")(8,"tr")(9,"th"),l(10,"Actions"),o(),n(11,"th"),l(12,"Touch"),o(),n(13,"th"),l(14,"Mouse"),o(),n(15,"th"),l(16,"Keyboard Shortcuts"),o()()(),n(17,"tbody")(18,"tr")(19,"td"),l(20,"Open Actions menu"),o(),n(21,"td"),l(22,"Swipe left"),o(),n(23,"td"),l(24,"Click, drag left, and release"),o(),n(25,"td")(26,"kbd"),l(27,"Shift"),o(),l(28," + "),n(29,"kbd"),l(30,"Ctrl"),o(),l(31," + "),n(32,"kbd",2),l(33,"\u2190"),o(),l(34," (Left Arrow)"),o()(),n(35,"tr")(36,"td"),l(37,"Open Notification menu"),o(),n(38,"td"),l(39,"Swipe right"),o(),n(40,"td"),l(41,"Click, drag right, and release"),o(),n(42,"td")(43,"kbd"),l(44,"Shift"),o(),l(45," + "),n(46,"kbd"),l(47,"Ctrl"),o(),l(48," + "),n(49,"kbd",2),l(50,"\u2192"),o(),l(51," (Right Arrow)"),o()(),n(52,"tr")(53,"td"),l(54,"Cycle through dashboards"),o(),n(55,"td"),l(56,"Swipe up/down"),o(),n(57,"td"),l(58,"Click, drag up/down, and release"),o(),n(59,"td")(60,"kbd"),l(61,"Shift"),o(),l(62," + "),n(63,"kbd"),l(64,"Ctrl"),o(),l(65," + "),n(66,"kbd",2),l(67,"\u2191"),o(),l(68,"/"),n(69,"kbd",2),l(70,"\u2193"),o(),l(71," (Up/Down Arrow)"),o()(),n(72,"tr")(73,"td"),l(74,"Toggle Fullscreen"),o(),n(75,"td"),l(76,"N/A"),o(),n(77,"td"),l(78,"N/A"),o(),n(79,"td")(80,"kbd"),l(81,"Shift"),o(),l(82," + "),n(83,"kbd"),l(84,"Ctrl"),o(),l(85," + "),n(86,"kbd"),l(87,"F"),o()()(),n(88,"tr")(89,"td"),l(90,"Toggle Night mode"),o(),n(91,"td"),l(92,"N/A"),o(),n(93,"td"),l(94,"N/A"),o(),n(95,"td")(96,"kbd"),l(97,"Shift"),o(),l(98," + "),n(99,"kbd"),l(100,"Ctrl"),o(),l(101," + "),n(102,"kbd"),l(103,"N"),o()()(),n(104,"tr")(105,"td"),l(106,"Toggle dashboard edit mode"),o(),n(107,"td"),l(108,"N/A"),o(),n(109,"td"),l(110,"N/A"),o(),n(111,"td")(112,"kbd"),l(113,"Shift"),o(),l(114," + "),n(115,"kbd"),l(116,"Ctrl"),o(),l(117," + "),n(118,"kbd"),l(119,"E"),o()()()()(),n(120,"i"),l(121,"Note that the words Touch and Tap are synonymous with mouse click."),o(),b(122,"br")(123,"br"),n(124,"h2"),l(125,"Migration Limitations"),o(),n(126,"p")(127,"span",0),l(128,"Important:"),o(),l(129," The new widget layout engine is "),n(130,"strong"),l(131,"completely different"),o(),l(132," from the previous version. When you upgrade, your configuration will be migrated, but "),n(133,"strong"),l(134,"the way dashboards and widgets are arranged will change significantly"),o(),l(135,`.
|
|
7
|
-
`),o(),n(136,"ul")(137,"li"),
|
|
8
|
-
`),o(),n(188,"div",4)(189,"button",5),_("click",function(){return i.upgrade()}),l(190,"Upgrade"),o(),n(191,"button",6),_("click",function(){return i.startFresh()}),l(192,"Start Fresh"),o()())},dependencies:[Ce,se,Ue],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 t})();var yp=(()=>{class t{dialog=m(Va);openFrameDialog(e,a){switch(e.component){case"select-widget":e.componentType=Vo;break;case"upgrade-config":e.componentType=Ro;break}return this.dialog.open(mo,{data:e,height:a?"calc(100% - 30px)":"",width:a?"calc(100% - 30px)":"",maxWidth:a?"100%":"",maxHeight:a?"100%":""}).afterClosed()}openConfirmationDialog(e){return this.dialog.open(po,{data:e,minWidth:"35vw",minHeight:"25vh"}).afterClosed()}openNameDialog(e){return this.dialog.open(Ao,{data:e,minWidth:"20vw",minHeight:"20vh",disableClose:!0})}openWidgetOptions(e){return this.dialog.open(Go,{data:e.config,minWidth:"50vw",maxWidth:"90vw"})}static \u0275fac=function(a){return new(a||t)};static \u0275prov=ge({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var No=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Ie=(()=>{if(typeof document>"u")return!1;let t=No[0],s={};for(let e of No)if(e?.[1]in document){for(let[i,r]of e.entries())s[t[i]]=r;return s}return!1})(),Wo={change:Ie.fullscreenchange,error:Ie.fullscreenerror},oe={request(t=document.documentElement,s){return new Promise((e,a)=>{let i=()=>{oe.off("change",i),e()};oe.on("change",i);let r=t[Ie.requestFullscreen](s);r instanceof Promise&&r.then(i).catch(a)})},exit(){return new Promise((t,s)=>{if(!oe.isFullscreen){t();return}let e=()=>{oe.off("change",e),t()};oe.on("change",e);let a=document[Ie.exitFullscreen]();a instanceof Promise&&a.then(e).catch(s)})},toggle(t,s){return oe.isFullscreen?oe.exit():oe.request(t,s)},onchange(t){oe.on("change",t)},onerror(t){oe.on("error",t)},on(t,s){let e=Wo[t];e&&document.addEventListener(e,s,!1)},off(t,s){let e=Wo[t];e&&document.removeEventListener(e,s,!1)},raw:Ie};Object.defineProperties(oe,{isFullscreen:{get:()=>!!document[Ie.fullscreenElement]},element:{enumerable:!0,get:()=>document[Ie.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Ie.fullscreenEnabled]}});Ie||(oe={isEnabled:!1});var ue=oe;var br="data:video/webm;base64,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",_r="data:video/mp4;base64,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",Ti=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.")}},Ei=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}},Di=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",br),this._addSourceToVideo(this.noSleepVideo,"mp4",_r),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,a){let i=document.createElement("source");i.src=a,i.type=`video/${e}`,s.appendChild(i)}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"?Ti:"wakeLock"in navigator&&!navigator.standalone?Ei:Di;var Ip=(()=>{class t{isDragging=k(!1);fullscreenStatus=k(!1);fullscreenSupported=k(!0);noSleepStatus=k(!1);noSleepSupported=k(!0);noSleep=null;initialTouchX=null;initialTouchY=null;hotkeyListeners=new Map;boundPreventGestures=null;fullscreenChangeHandler=()=>{if(this.fullscreenStatus.set(ue.isFullscreen),!ue.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)):(ue.isEnabled?ue.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(ue.isEnabled){if(this.fullscreenStatus()){if(ue.isFullscreen&&ue.exit(),this.noSleepStatus()){try{this.noSleep?.disable()}catch{}this.noSleepStatus.set(!1)}}else if(ue.request(),!this.noSleepStatus()){this.noSleep||this.checkNoSleepSupport();try{this.noSleep?.enable(),this.noSleepStatus.set(!0)}catch{}}this.fullscreenStatus.set(!this.fullscreenStatus())}else this.fullscreenSupported.set(!1),console.log("[UI Event Service] Fullscreen mode is not supported by this browser.")}addGestureListeners(e,a){this.boundPreventGestures||(this.boundPreventGestures=this.preventBrowserHistorySwipeGestures.bind(this)),document.addEventListener("openLeftSidenav",e),document.addEventListener("openRightSidenav",a),document.addEventListener("touchstart",this.boundPreventGestures,{passive:!1}),document.addEventListener("touchmove",this.boundPreventGestures,{passive:!1}),document.addEventListener("touchend",this.boundPreventGestures),document.addEventListener("touchcancel",this.boundPreventGestures)}removeGestureListeners(e,a){document.removeEventListener("openLeftSidenav",e),document.removeEventListener("openRightSidenav",a),this.boundPreventGestures&&(document.removeEventListener("touchstart",this.boundPreventGestures),document.removeEventListener("touchmove",this.boundPreventGestures),document.removeEventListener("touchend",this.boundPreventGestures),document.removeEventListener("touchcancel",this.boundPreventGestures))}preventBrowserHistorySwipeGestures(e){if(e.touches.length===1){let a=e.touches[0],i=30;if(e.type==="touchstart")this.initialTouchX=a.clientX,this.initialTouchY=a.clientY;else if(e.type==="touchmove"&&this.initialTouchX!==null&&this.initialTouchY!==null){let r=Math.abs(a.clientX-this.initialTouchX),d=Math.abs(a.clientY-this.initialTouchY);r>10&&r>d&&(this.initialTouchX<i||this.initialTouchX>window.innerWidth-i)&&e.preventDefault(),d>10&&this.initialTouchY<50&&e.preventDefault()}else(e.type==="touchend"||e.type==="touchcancel")&&(this.initialTouchX=null,this.initialTouchY=null)}}addHotkeyListener(e,a){let i=r=>{if(r instanceof KeyboardEvent){let d=r.key.toLowerCase();if(a&&(a.keys&&!a.keys.includes(d)||a.ctrlKey!==void 0&&r.ctrlKey!==a.ctrlKey||a.shiftKey!==void 0&&r.shiftKey!==a.shiftKey))return;e(d,r)}else console.warn("[uiEvent Service] Non-keyboard event detected in addHotkeyListener:",r)};this.hotkeyListeners.set(e,i),document.addEventListener("keydown",i)}removeHotkeyListener(e){let a=this.hotkeyListeners.get(e);a&&(document.removeEventListener("keydown",a),this.hotkeyListeners.delete(e))}ngOnDestroy(){if(ue.isEnabled)try{ue.off("change",this.fullscreenChangeHandler)}catch{}if(this.noSleep&&this.noSleepStatus())try{this.noSleep.disable()}catch{}this.noSleep=null,this.boundPreventGestures&&(document.removeEventListener("touchstart",this.boundPreventGestures),document.removeEventListener("touchmove",this.boundPreventGestures),document.removeEventListener("touchend",this.boundPreventGestures),document.removeEventListener("touchcancel",this.boundPreventGestures),this.boundPreventGestures=null);for(let[,e]of this.hotkeyListeners.entries())document.removeEventListener("keydown",e);this.hotkeyListeners.clear()}static \u0275fac=function(a){return new(a||t)};static \u0275prov=ge({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vr(t,s){}var Qo="_mat-bottom-sheet-enter",qo="_mat-bottom-sheet-exit",Cr=(()=>{class t extends Pa{_breakpointSubscription;_animationsDisabled=ve();_animationState="void";_animationStateChanged=new le;_destroyed;constructor(){super();let e=m(jt);this._breakpointSubscription=e.observe([Ee.Medium,Ee.Large,Ee.XLarge]).subscribe(()=>{let a=this._elementRef.nativeElement.classList;a.toggle("mat-bottom-sheet-container-medium",e.isMatched(Ee.Medium)),a.toggle("mat-bottom-sheet-container-large",e.isMatched(Ee.Large)),a.toggle("mat-bottom-sheet-container-xlarge",e.isMatched(Ee.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(qo))}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_simulateAnimation(e){this._ngZone.run(()=>{this._handleAnimationEvent(!0,e),setTimeout(()=>this._handleAnimationEvent(!1,e))})}_trapFocus(){super._trapFocus({preventScroll:!0})}_handleAnimationEvent(e,a){let i=a===Qo;(i||a===qo)&&this._animationStateChanged.emit({toState:i?"visible":"hidden",phase:e?"start":"done"})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(a,i){a&1&&_("animationstart",function(d){return i._handleAnimationEvent(!0,d.animationName)})("animationend",function(d){return i._handleAnimationEvent(!1,d.animationName)})("animationcancel",function(d){return i._handleAnimationEvent(!1,d.animationName)}),a&2&&(Q("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-label",i._config.ariaLabel),W("mat-bottom-sheet-container-animations-enabled",!i._animationsDisabled)("mat-bottom-sheet-container-enter",i._animationState==="visible")("mat-bottom-sheet-container-exit",i._animationState==="hidden"))},features:[Pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a,i){a&1&&ke(0,vr,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 t})(),yr=new K("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 rt;_result;_closeFallbackTimeout;constructor(s,e,a){this._ref=s,this.containerInstance=a,this.disableClose=e.disableClose,a._animationStateChanged.pipe(Oe(i=>i.phase==="done"&&i.toState==="visible"),ct(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),a._animationStateChanged.pipe(Oe(i=>i.phase==="done"&&i.toState==="hidden"),ct(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),s.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),Ge(this.backdropClick(),this.keydownEvents().pipe(Oe(i=>i.keyCode===27))).subscribe(i=>{!this.disableClose&&(i.type!=="keydown"||!ft(i))&&(i.preventDefault(),this.dismiss())})}dismiss(s){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Oe(e=>e.phase==="start"),ct(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}},xr=new K("mat-bottom-sheet-default-options"),Mr=(()=>{class t{_injector=m(Fe);_parentBottomSheet=m(t,{optional:!0,skipSelf:!0});_animationsDisabled=ve();_defaultOptions=m(xr,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=m(Ba);get _openedBottomSheetRef(){let e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}constructor(){}open(e,a){let i=ne(ne({},this._defaultOptions||new Ii),a),r;return this._dialog.open(e,Ae(ne({},i),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:Cr,scrollStrategy:i.scrollStrategy||Ea(this._injector),positionStrategy:Ga(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:r}),providers:(d,h,x)=>(r=new mi(d,i,x),[{provide:mi,useValue:r},{provide:yr,useValue:i.data}])})),r.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===r&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>r.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):r.containerInstance.enter(),this._openedBottomSheetRef=r,r}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(a){return new(a||t)};static \u0275prov=ge({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hp=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275mod=fe({type:t});static \u0275inj=he({providers:[Mr],imports:[La,J,Sa,J]})}return t})();var zo=["*"],wr=`.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
|
-
`,Sr=["unscopedContent"],kr=["text"],Tr=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Er=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Dr=new K("ListOption"),Ir=(()=>{class t{_elementRef=m(Se);constructor(){}static \u0275fac=function(a){return new(a||t)};static \u0275dir=X({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Gr=(()=>{class t{_elementRef=m(Se);constructor(){}static \u0275fac=function(a){return new(a||t)};static \u0275dir=X({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),Or=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275dir=X({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),jo=(()=>{class t{_listOption=m(Dr,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(a){return new(a||t)};static \u0275dir=X({type:t,hostVars:4,hostBindings:function(a,i){a&2&&W("mdc-list-item__start",i._isAlignedAtStart())("mdc-list-item__end",!i._isAlignedAtStart())}})}return t})(),Fr=(()=>{class t extends jo{static \u0275fac=(()=>{let e;return function(i){return(e||(e=pt(t)))(i||t)}})();static \u0275dir=X({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Pe]})}return t})(),Pr=(()=>{class t extends jo{static \u0275fac=(()=>{let e;return function(i){return(e||(e=pt(t)))(i||t)}})();static \u0275dir=X({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Pe]})}return t})(),Br=new K("MAT_LIST_CONFIG"),Gt=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=bt(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(bt(e))}_disabled=k(!1);_defaultOptions=m(Br,{optional:!0});static \u0275fac=function(a){return new(a||t)};static \u0275dir=X({type:t,hostVars:1,hostBindings:function(a,i){a&2&&Q("aria-disabled",i.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),Lr=(()=>{class t{_elementRef=m(Se);_ngZone=m(Lt);_listBase=m(Gt,{optional:!0});_platform=m(qt);_hostElement;_isButtonElement;_noopAnimations=ve();_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=bt(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(bt(e))}_disabled=k(!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(Ge(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let a=this._explicitLines??this._inferLinesFromContent(),i=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",a<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",a<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",a===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",a===3),this._hasUnscopedTextContent){let r=this._titles.length===0&&a===1;i.classList.toggle("mdc-list-item__primary-text",r),i.classList.toggle("mdc-list-item__secondary-text",!r)}else i.classList.remove("mdc-list-item__primary-text"),i.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(a){return new(a||t)};static \u0275dir=X({type:t,contentQueries:function(a,i,r){if(a&1&&(me(r,Fr,4),me(r,Pr,4)),a&2){let d;q(d=z())&&(i._avatars=d),q(d=z())&&(i._icons=d)}},hostVars:4,hostBindings:function(a,i){a&2&&(Q("aria-disabled",i.disabled)("disabled",i._isButtonElement&&i.disabled||null),W("mdc-list-item--disabled",i.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var yu=(()=>{class t extends Gt{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(i){return(e||(e=pt(t)))(i||t)}})();static \u0275cmp=v({type:t,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[Le([{provide:Gt,useExisting:t}]),Pe],ngContentSelectors:zo,decls:1,vars:0,template:function(a,i){a&1&&(be(),Z(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
|
|
1
|
+
import{a as ai,b as ro,c as lo,d as so,e as co}from"./chunk-PKNLASTF.js";import{a as wt}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 Mt,e as Ja,f as Z,g as $a,h as eo,k as to,l as io,m as Dt,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 vt,l as xe}from"./chunk-3LEMFOCV.js";import{a as ft}from"./chunk-IHLEBYV7.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 Ct,N as L,P as yt,Q as ae,R as B,T as V,U as ei,V as ja,W as xt,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 S,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 T,K as Pe,Kc as Ee,Kd as oa,Ke as Ma,L as Oe,Mc as Re,Na as ot,Nc as Tt,O as Fi,Oa as pt,Oe as wa,P as Lt,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 E,Ud as _i,Vb as Vt,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 Nt,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 Bt,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 Et,m as st,mc as X,me as bt,na as kt,nb as Ni,nc as ue,ne as _a,o as St,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 Rt,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 _t,y as Ft,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 Nl=(()=>{class i{static _instanceCounter=0;_instanceId;swipeMinDistance=h(30);swipeMaxDuration=h(600);longPressMs=h(500);doubleTapInterval=h(300);tapSlop=h(20);pressMoveSlop=h(10);_swipeMinDistance=30;_swipeMaxDuration=600;_longPressMs=500;_doubleTapInterval=300;_tapSlop=20;_pressMoveSlop=10;swipeleft=K();swiperight=K();swipeup=K();swipedown=K();press=K();doubletap=K();zone=m(ut);destroyRef=m(Le);host=m(pe);static DEBUG=!0;pointerId=null;startX=0;startY=0;startTime=0;tracking=!1;longPressTimer=null;pressFired=!1;cancelLongpressHandlers=[];lastTapTime=0;lastTapX=0;lastTapY=0;currentPointerType=null;lastTapUpTime=0;lastTapUpX=0;lastTapUpY=0;potentialDoubleTap=!1;constructor(){this._instanceId=++i._instanceCounter,this.debug("GestureDirective instance created",{instanceId:this._instanceId}),this.zone.runOutsideAngular(()=>{let e=this.host.nativeElement;e.style.touchAction||(e.style.touchAction="none","webkitTouchCallout"in e.style&&(e.style.webkitTouchCallout="none")),e.addEventListener("pointerdown",this.onPointerDown,{passive:!1}),e.addEventListener("pointermove",this.onPointerMove,{passive:!0}),e.addEventListener("pointerup",this.onPointerUp,{passive:!0}),e.addEventListener("pointercancel",this.onPointerCancel,{passive:!0}),e.addEventListener("lostpointercapture",this.onPointerCancel,{passive:!0}),e.addEventListener("dblclick",this.onNativeDblClick,{passive:!0}),this.destroyRef.onDestroy(()=>{e.removeEventListener("pointerdown",this.onPointerDown),e.removeEventListener("pointermove",this.onPointerMove),e.removeEventListener("pointerup",this.onPointerUp),e.removeEventListener("pointercancel",this.onPointerCancel),e.removeEventListener("lostpointercapture",this.onPointerCancel),e.removeEventListener("dblclick",this.onNativeDblClick),this.longPressTimer&&window.clearTimeout(this.longPressTimer)})})}onNativeDblClick=e=>{let a=new CustomEvent("doubletap",{detail:{x:e.clientX,y:e.clientY,native:!0}});this.zone.run(()=>this.doubletap.emit(a)),this.lastTapTime=0};debug(...e){this.constructor.DEBUG&&console.debug(`[GestureDirective][#${this._instanceId}]`,...e)}onPointerDown=e=>{if(this.debug("pointerdown",{x:e.clientX,y:e.clientY,pointerId:e.pointerId,pointerType:e.pointerType,sourceElement:e.target instanceof Element?e.target.outerHTML:String(e.target)}),this.pointerId!==null)return;switch(this.pointerId=e.pointerId,this.tracking=!0,this.pressFired=!1,this.currentPointerType=e.pointerType||null,e.pointerType){case"touch":this._swipeMinDistance=this.swipeMinDistance(),this._swipeMaxDuration=this.swipeMaxDuration(),this._longPressMs=this.longPressMs(),this._doubleTapInterval=this.doubleTapInterval(),this._tapSlop=this.tapSlop(),this._pressMoveSlop=this.pressMoveSlop();break;case"pen":this._swipeMinDistance=20,this._swipeMaxDuration=500,this._longPressMs=400,this._doubleTapInterval=250,this._tapSlop=10,this._pressMoveSlop=8;break;case"mouse":default:this._swipeMinDistance=15,this._swipeMaxDuration=400,this._longPressMs=350,this._doubleTapInterval=250,this._tapSlop=8,this._pressMoveSlop=6;break}let t=performance.now()-this.lastTapUpTime,l=Math.hypot(e.clientX-this.lastTapUpX,e.clientY-this.lastTapUpY);this.potentialDoubleTap=t<=this._doubleTapInterval&&l<=this._tapSlop,this.startX=e.clientX,this.startY=e.clientY,this.startTime=performance.now();try{e.target.setPointerCapture(e.pointerId)}catch{}this.longPressTimer&&(this.debug("longpress timer cleared on pointerdown"),window.clearTimeout(this.longPressTimer)),this.potentialDoubleTap||(this.addLongpressCancelListeners(),this.debug("longpress timer scheduled"),this.longPressTimer=window.setTimeout(()=>{if(this.debug("longpress timer fired",{tracking:this.tracking}),!this.tracking){this.debug("longpress cancelled: not tracking");return}let d=e.clientX-this.startX,g=e.clientY-this.startY;if(Math.abs(d)<=this._pressMoveSlop&&Math.abs(g)<=this._pressMoveSlop){this.debug("longpress recognized",{x:this.startX,y:this.startY}),this.pressFired=!0;let C=new CustomEvent("press",{detail:{x:this.startX,y:this.startY,center:{x:this.startX,y:this.startY}}});this.zone.run(()=>this.press.emit(C))}this.removeLongpressCancelListeners()},this._longPressMs))};onPointerMove=e=>{!this.tracking||e.pointerId!==this.pointerId||this.pressFired||this.longPressTimer&&(this.debug("longpress cancelled by pointermove"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null,this.removeLongpressCancelListeners())};onPointerUp=e=>{if(this.debug("pointerup",{x:e.clientX,y:e.clientY,pointerId:e.pointerId}),!this.tracking||e.pointerId!==this.pointerId)return;let a=performance.now(),t=a-this.startTime,l=e.clientX-this.startX,d=e.clientY-this.startY,g=Math.abs(l),C=Math.abs(d);if(this.longPressTimer&&(this.debug("longpress cancelled by pointerup"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.pressFired){this.debug("pointerup after longpress: not resetting gesture state");return}if(t<=this._swipeMaxDuration&&(g>=this._swipeMinDistance&&g>=C?(this.debug("swipe detected",{direction:l>0?"right":"left",dx:l,dy:d,duration:t}),this.zone.run(()=>{l>0?this.swiperight.emit(new CustomEvent("swiperight",{detail:{dx:l,dy:d,duration:t}})):this.swipeleft.emit(new CustomEvent("swipeleft",{detail:{dx:l,dy:d,duration:t}}))})):C>=this._swipeMinDistance&&C>g&&(this.debug("swipe detected",{direction:d>0?"down":"up",dx:l,dy:d,duration:t}),this.zone.run(()=>{d>0?this.swipedown.emit(new CustomEvent("swipedown",{detail:{dx:l,dy:d,duration:t}})):this.swipeup.emit(new CustomEvent("swipeup",{detail:{dx:l,dy:d,duration:t}}))}))),this.currentPointerType!=="mouse"&&g<=this._tapSlop&&C<=this._tapSlop&&t<this._longPressMs){let D=a,G=D-this.lastTapTime,k=Math.hypot(e.clientX-this.lastTapX,e.clientY-this.lastTapY);G<=this._doubleTapInterval&&k<=this._tapSlop?(this.zone.run(()=>this.doubletap.emit(new CustomEvent("doubletap",{detail:{x:e.clientX,y:e.clientY,dt:G}}))),this.lastTapTime=0,this.potentialDoubleTap=!1):(this.lastTapTime=D,this.lastTapX=e.clientX,this.lastTapY=e.clientY)}!this.pressFired&&g<=this._tapSlop&&C<=this._tapSlop&&t<this._longPressMs?(this.lastTapUpTime=a,this.lastTapUpX=e.clientX,this.lastTapUpY=e.clientY):this.potentialDoubleTap=!1,this.reset()};onPointerCancel=e=>{let a=this.host.nativeElement;this.debug("pointercancel",{pointerId:e.pointerId,pointerType:e.pointerType,event:e,documentActiveElement:document.activeElement,elementIsConnected:a.isConnected,elementVisibility:a.offsetParent!==null,hasPointerCapture:typeof a.hasPointerCapture=="function"?a.hasPointerCapture(e.pointerId):void 0,documentHidden:document.hidden}),e.pointerId===this.pointerId&&(this.longPressTimer&&(this.debug("longpress cancelled by pointercancel"),window.clearTimeout(this.longPressTimer),this.longPressTimer=null,this.removeLongpressCancelListeners()),this.reset())};addLongpressCancelListeners(){this.debug("addLongpressCancelListeners");let e=l=>{this.debug("longpress cancelled by event",l?.type),this.longPressTimer&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=null),this.removeLongpressCancelListeners()},a=this.host.nativeElement,t=document;this.cancelLongpressHandlers=[{type:"pointermove",handler:e,opts:!0},{type:"pointerleave",handler:e,opts:!0},{type:"pointerout",handler:e,opts:!0},{type:"lostpointercapture",handler:e,opts:!0},{type:"blur",handler:e,opts:!0}];for(let{type:l,handler:d,opts:g}of this.cancelLongpressHandlers)a.addEventListener(l,d,g),t.addEventListener(l,d,g)}removeLongpressCancelListeners(){this.debug("removeLongpressCancelListeners");let e=this.host.nativeElement,a=document;for(let{type:t,handler:l,opts:d}of this.cancelLongpressHandlers)e.removeEventListener(t,l,d),a.removeEventListener(t,l,d);this.cancelLongpressHandlers=[]}reset(){this.debug("reset gesture state"),this.pointerId=null,this.tracking=!1,this.pressFired=!1,this.currentPointerType=null,this.removeLongpressCancelListeners()}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,selectors:[["","kipGestures",""]],inputs:{swipeMinDistance:[1,"swipeMinDistance"],swipeMaxDuration:[1,"swipeMaxDuration"],longPressMs:[1,"longPressMs"],doubleTapInterval:[1,"doubleTapInterval"],tapSlop:[1,"tapSlop"],pressMoveSlop:[1,"pressMoveSlop"]},outputs:{swipeleft:"swipeleft",swiperight:"swiperight",swipeup:"swipeup",swipedown:"swipedown",press:"press",doubletap:"doubletap"}})}return i})();var Kl=(()=>{class i{_settings=m(Ut);_router=m(da);dashboards=T([],{equal:bi});activeDashboard=T(0);_widgetAction=new St(null);widgetAction$=this._widgetAction.asObservable();_isDashboardStatic=new St(!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 a=this.blankDashboard.map(t=>he(re({},t),{id:rt.create()}));this.dashboards.set([...a])}else this.dashboards.set(this._settings.getDashboardConfig());Nt(()=>{this._settings.saveDashboards(this.dashboards())})}toggleStaticDashboard(){this._isDashboardStatic.next(!this._isDashboardStatic.value)}add(e,a){this.dashboards.update(t=>[...t,{id:rt.create(),name:e,configuration:a}])}update(e,a){this.dashboards.update(t=>t.map((l,d)=>d===e?he(re({},l),{name:a}):l))}delete(e){this.dashboards.update(a=>a.filter((t,l)=>l!==e)),this.dashboards().length===0?(this.add("Dashboard "+(this.dashboards().length+1),[]),this.activeDashboard.set(0)):this.activeDashboard()>this.dashboards().length-1&&this.activeDashboard.set(this.dashboards().length-1)}duplicate(e,a){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=a,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,a){this.dashboards.update(t=>t.map((l,d)=>d===e?bi(l.configuration,a)?l:he(re({},l),{configuration:a}):l))}previousDashboard(){this.activeDashboard()+1>this.dashboards().length-1?this.activeDashboard.set(0):this.activeDashboard.set(this.activeDashboard()+1)}nextDashboard(){this.activeDashboard()-1<0?this.activeDashboard.set(this.dashboards().length-1):this.activeDashboard.set(this.activeDashboard()-1)}setActiveDashboard(e){e>=0&&e<this.dashboards().length?this.activeDashboard.set(e):console.error(`[Dashboard Service] Invalid dashboard ID: ${e}`)}navigateToActive(){this._router.navigate(["/dashboard",this.activeDashboard()])}navigateTo(e){e>=0&&e<this.dashboards().length?this._router.navigate(["/dashboard",e]):console.error(`[Dashboard Service] Invalid dashboard ID: ${e}`)}navigateToNextDashboard(){let e=null;this.activeDashboard()-1<0?e=this.dashboards().length-1:e=this.activeDashboard()-1,this._router.navigate(["/dashboard",e])}navigateToPreviousDashboard(){let e=null;this.activeDashboard()+1>=this.dashboards().length?e=0:e=this.activeDashboard()+1,this._router.navigate(["/dashboard",e])}deleteWidget(e){this._widgetAction.next({id:e,operation:"delete"})}duplicateWidget(e){this._widgetAction.next({id:e,operation:"duplicate"})}setStaticDashboard(e){this._isDashboardStatic.next(e)}static \u0275fac=function(a){return new(a||i)};static \u0275prov=fe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Ho(i,s){i&1&&Yi(0)}var mo=(()=>{class i{data=m(ze);static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["dialog-frame"]],decls:8,vars:3,consts:[[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],[1,"dialog-content-padding"],[4,"ngComponentOutlet"]],template:function(a,t){a&1&&(n(0,"div",0)(1,"h6",1),r(2),o(),n(3,"button",2)(4,"mat-icon"),r(5,"close"),o()()(),n(6,"mat-dialog-content",3),Te(7,Ho,1,0,"ng-container",4),o()),a&2&&(c(2),S(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 i})();function Zo(i,s){if(i&1&&(n(0,"button",4),r(1),o()),i&2){let e=f();p("mat-dialog-close",!0),c(),S(e.data.confirmBtnText)}}var po=(()=>{class i{data=m(ze);static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["dialog-confirmation"]],decls:12,vars:6,consts:[[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],["align","end"],["mat-flat-button","",3,"mat-dialog-close"]],template:function(a,t){a&1&&(n(0,"div",0)(1,"h5",1),r(2),o(),n(3,"button",2)(4,"mat-icon"),r(5,"close"),o()()(),n(6,"mat-dialog-content"),r(7),o(),n(8,"mat-dialog-actions",3)(9,"button",4),r(10),o(),u(11,Zo,2,2,"button",4),o()),a&2&&(c(2),S(t.data.title),c(),p("mat-dialog-close",!1),c(4),U(" ",t.data.message,`
|
|
2
|
+
`),c(2),p("mat-dialog-close",!1),c(),S(t.data.cancelBtnText),c(),A(t.data.confirmBtnText?11:-1))},dependencies:[ee,xe,je,Ye,vt,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 i})();function Xo(i,s){if(i&1&&(n(0,"button",9),r(1),o()),i&2){let e=f(),a=Ae(1);p("disabled",!a.valid),c(),S(e.data.confirmBtnText)}}var Ao=(()=>{class i{dialogRef=m(qe);data=m(ze);saveName(){this.dialogRef.close(this.data)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["dialog-name"]],decls:19,vars:6,consts:[["name","ngForm"],["name","name",3,"ngSubmit"],[1,"dialogue-header"],["mat-dialog-title",""],["mat-icon-button","",1,"dialog-close-icon",3,"mat-dialog-close"],[1,"field-margin"],["matInput","","type","text","id","name","placeholder","Name","name","name","required","","cdkFocusInitial","",3,"ngModelChange","ngModel"],["align","end"],["mat-flat-button","",3,"mat-dialog-close"],["mat-flat-button","","type","submit",3,"disabled"]],template:function(a,t){if(a&1){let l=P();n(0,"form",1,0),_("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,Xo,2,2,"button",9),o()()}a&2&&(c(4),S(t.data.title),c(),p("mat-dialog-close",!1),c(7),Zi("ngModel",t.data.name),c(4),p("mat-dialog-close",!1),c(),S(t.data.cancelBtnText),c(),A(t.data.confirmBtnText?18:-1))},dependencies:[xe,je,Ye,vt,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 i})();function Ko(i,s){if(i&1&&(n(0,"mat-option",12),r(1),o()),i&2){let e=s.$implicit;p("value",Ee(e.value)),c(),S(e.label)}}function Jo(i,s){if(i&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 $o(i,s){if(i&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 go=(()=>{class i{app=m(ft);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(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["boolean-control-config"]],inputs:{ctrlFormGroup:[1,"ctrlFormGroup"],controlIndex:[1,"controlIndex"],arrayLength:[1,"arrayLength"]},outputs:{deleteCtrl:"deleteCtrl",moveUp:"moveUp",moveDown:"moveDown"},decls:36,vars:3,consts:[[1,"ctrl-grid","rounded-card","rounded-card-color",3,"formGroup"],[1,"controls","flex-container"],[1,"flex-label"],[1,"full-width"],["matInput","","type","string","placeholder","Enter a display label...","formControlName","ctrlLabel"],[1,"flex-settings"],[1,"settings"],["placeholder","Select Type...","formControlName","type","name","type","required",""],["value","1"],["value","2"],["value","3"],["placeholder","Select Color...","formControlName","color","name","color","required",""],[3,"value"],[1,"flex-full-width"],["formControlName","isNumeric"],[1,"actions"],[1,"flex-actions"],[1,"btn-grid"],["mat-icon-button","","type","button","aria-label","Move control up in the list",1,"up"],["mat-icon-button","","type","button","aria-label","Move control down in the list",1,"down"],["mat-icon-button","","type","button","aria-label","Delete control",1,"delete",3,"click"],["mat-icon-button","","type","button","aria-label","Move control up in the list",1,"up",3,"click"],["mat-icon-button","","type","button","aria-label","Move control down in the list",1,"down",3,"click"]],template:function(a,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),r(5,"Label"),o(),b(6,"input",4),o()(),n(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),r(10,"Type"),o(),n(11,"mat-select",7)(12,"mat-option",8),r(13,"Toggle"),o(),n(14,"mat-option",9),r(15,"Push"),o(),n(16,"mat-option",10),r(17,"Indicator"),o()()()(),n(18,"div",5)(19,"mat-form-field",6)(20,"mat-label"),r(21,"Color"),o(),n(22,"mat-select",11),y(23,Ko,2,3,"mat-option",12,E),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,Jo,3,0,"button",18),u(32,$o,3,0,"button",19),n(33,"button",20),_("click",function(){return t.deleteControl()}),n(34,"mat-icon"),r(35,"delete"),o()()()()()()),a&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 i})();function en(i,s){if(i&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(i&2){let e=s.$implicit,a=s.$index,t=f();p("ctrlFormGroup",t.getFormGroup(e))("controlIndex",a)("arrayLength",t.arrayLength)}}var ho=(()=>{class i{fb=m(yt);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(Lt(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 a={path:{description:null,path:null,pathID:e,source:"default",pathType:"boolean",supportsPut:!0,isPathConfigurable:!0,showPathSkUnitsFilter:!1,pathSkUnitsFilter:null,convertUnitTo:null,sampleTime:500},ctrlType:1};this.addPath.emit(a)}moveUp(e){let a=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e-1,a,{emitEvent:!1})}moveDown(e){let a=this.multiCtrlArray().at(e);this.multiCtrlArray().removeAt(e,{emitEvent:!1}),this.multiCtrlArray().insert(e+1,a,{emitEvent:!1})}deletePath(e){this.delPath.emit(e),this.arrayLength=this.multiCtrlArray().length}getFormGroup(e){return e}ngOnDestroy(){this.multiCtrlArraySubscription?.unsubscribe()}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["boolean-multicontrol-options"]],inputs:{multiCtrlArray:[1,"multiCtrlArray"]},outputs:{addPath:"addPath",updatePath:"updatePath",delPath:"delPath"},decls:7,vars:1,consts:[[3,"formGroup"],["formArrayName","multiCtrlArray"],[1,"full-width",3,"ctrlFormGroup","controlIndex","arrayLength"],["type","button","mat-mini-fab","","color","primary","aria-label","Add control down in the list",1,"add-btn",3,"click"],[1,"full-width",3,"moveUp","moveDown","deleteCtrl","ctrlFormGroup","controlIndex","arrayLength"]],template:function(a,t){a&1&&(n(0,"div",0)(1,"div",1),y(2,en,1,3,"boolean-control-config",2,Vt),n(4,"button",3),_("click",function(){return t.addCtrlGroup()}),n(5,"mat-icon"),r(6,"add"),o()()()()),a&2&&(p("formGroup",t.multiFormGroup),c(2),x(t.multiCtrlArray().controls))},dependencies:[ae,ie,B,H,za,go,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 i})();var tn=["*"];var an=new J("MAT_CARD_CONFIG"),Ks=(()=>{class i{appearance;constructor(){let e=m(an,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,t){a&2&&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:tn,decls:1,vars:0,template:function(a,t){a&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 i})();var fo=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=_e({type:i});static \u0275inj=be({imports:[$,$]})}return i})();function on(i,s){if(i&1&&(n(0,"mat-option",8),r(1),o()),i&2){let e=s.$implicit;p("value",Ee(e.value)),c(),S(e.label)}}var bo=(()=>{class i{app=m(ft);displayName=h.required();showLabel=h.required();convertUnitTo=h.required();datasetUUID=h.required();datasetAverageArray=h.required();showAverageData=h.required();trackAgainstAverage=h.required();showDatasetMinimumValueLine=h.required();showDatasetMaximumValueLine=h.required();showDatasetAverageValueLine=h.required();showDatasetAngleAverageValueLine=h.required();verticalChart=h.required();inverseYAxis=h.required();showTimeScale=h.required();showYScale=h.required();startScaleAtZero=h.required();yScaleSuggestedMin=h.required();yScaleSuggestedMax=h.required();enableMinMaxScaleLimit=h.required();yScaleMin=h.required();yScaleMax=h.required();numDecimal=h.required();color=h.required();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors,this.showAverageData()&&!this.showAverageData()?.value&&this.trackAgainstAverage().disable(),this.enableMinMaxScaleLimit()&&this.setValueScaleOptionsControls(this.enableMinMaxScaleLimit().value)}setValueScaleOptionsControls(e){e?(this.yScaleMin()?.enable(),this.yScaleMax()?.enable(),this.yScaleSuggestedMin()?.disable(),this.yScaleSuggestedMax()?.disable()):(this.yScaleMin()?.disable(),this.yScaleMax()?.disable(),this.yScaleSuggestedMin()?.enable(),this.yScaleSuggestedMax()?.enable())}setScaleControls(e){this.setValueScaleOptionsControls(e.value)}enableTrackAgainstMovingAverage(e){e.checked?this.trackAgainstAverage().enable():(this.trackAgainstAverage().setValue(e.checked),this.trackAgainstAverage().disable())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["config-display-chart-options"]],inputs:{displayName:[1,"displayName"],showLabel:[1,"showLabel"],convertUnitTo:[1,"convertUnitTo"],datasetUUID:[1,"datasetUUID"],datasetAverageArray:[1,"datasetAverageArray"],showAverageData:[1,"showAverageData"],trackAgainstAverage:[1,"trackAgainstAverage"],showDatasetMinimumValueLine:[1,"showDatasetMinimumValueLine"],showDatasetMaximumValueLine:[1,"showDatasetMaximumValueLine"],showDatasetAverageValueLine:[1,"showDatasetAverageValueLine"],showDatasetAngleAverageValueLine:[1,"showDatasetAngleAverageValueLine"],verticalChart:[1,"verticalChart"],inverseYAxis:[1,"inverseYAxis"],showTimeScale:[1,"showTimeScale"],showYScale:[1,"showYScale"],startScaleAtZero:[1,"startScaleAtZero"],yScaleSuggestedMin:[1,"yScaleSuggestedMin"],yScaleSuggestedMax:[1,"yScaleSuggestedMax"],enableMinMaxScaleLimit:[1,"enableMinMaxScaleLimit"],yScaleMin:[1,"yScaleMin"],yScaleMax:[1,"yScaleMax"],numDecimal:[1,"numDecimal"],color:[1,"color"]},decls:84,vars:20,consts:[["minLine",""],[1,"tab-content"],[1,"chart-flex-container"],[1,"chart-panel-group"],[1,"full-width"],["matInput","","placeholder","Enter a label to display","name","displayName",3,"formControl"],["name","showLabel",1,"full-width",3,"formControl"],["placeholder","Select Color...","name","color","required","",3,"formControl"],[3,"value"],[1,"flex-item-rounded-card","rounded-card-color"],[2,"margin-left","10px"],["matInput","","type","number","min","0","max","5","placeholder","Enter or select number...","name","numDecimal","required","",3,"formControl"],["name","showAverageData",1,"full-width",2,"margin-top","10px",3,"change","formControl"],["name","trackAgainstAverage",1,"full-width",2,"margin-left","25px",3,"formControl"],["name","verticalChart",3,"formControl"],[1,"no-margin"],[1,"mat-caption"],["aria-label","Select an option","name","enableMinMaxScaleLimit",1,"chart-option-radio-group",3,"formControl"],[1,"chart-option-radio-button",3,"change","value"],[1,"chart-option-radio-button-config"],[1,"chart-option-radio-button-config-form-field"],["matInput","","type","number","name","yScaleSuggestedMin",3,"formControl"],["matInput","","type","number","name","yScaleSuggestedMax",3,"formControl"],[1,"chart-option-radio-button-config-item"],["matInput","","type","number","name","yScaleMin","required","",3,"formControl"],["matInput","","type","number","name","yScaleMax","required","",3,"formControl"],["name","showYScale",1,"full-width",3,"formControl"],["name","inverseYAxis",3,"formControl"],["name","showTimeScale",1,"full-width",3,"formControl"],["name","showDatasetMaximumValueLine",1,"full-width",3,"formControl"],["name","showDatasetAverageValueLine",1,"full-width",3,"formControl"],["name","showDatasetMinimumValueLine",1,"full-width",3,"formControl"]],template:function(a,t){if(a&1){let l=P();n(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),r(5,"Widget Label"),o(),b(6,"input",5),o()(),n(7,"div",3)(8,"mat-checkbox",6),r(9," Show Label "),o()()(),n(10,"div",2)(11,"mat-form-field",4)(12,"mat-label"),r(13,"Color"),o(),n(14,"mat-select",7),y(15,on,2,3,"mat-option",8,E),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()()()()()}a&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:[fo,we,R,V,$e,Se,Je,me,Z,Dt,Ke,oe,no,ao,oo,B,te,Ze,F,L,Ct,$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 i})();var nn=(i,s)=>s.uuid;function rn(i,s){if(i&1&&(n(0,"mat-option",4),r(1),o()),i&2){let e=s.$implicit;p("value",e.uuid),c(),U(" ",e.label," ")}}function ln(i,s){if(i&1&&(n(0,"mat-option",4),r(1),o()),i&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function sn(i,s){if(i&1&&(n(0,"mat-optgroup",6),y(1,ln,2,2,"mat-option",4,E),o()),i&2){let e=s.$implicit;p("label",e.group),c(),x(e.units)}}var _o=(()=>{class i{datasetService=m(ii);units=m(wt);datasetUUID=h.required();convertUnitTo=h.required();availableDataSets=[];unitList={};ngOnInit(){this.availableDataSets=this.datasetService.list().filter(a=>a.editable!==!1).sort();let e=this.datasetUUID();e.value&&this.setPathUnits(e.value)}setPathUnits(e){let a=this.datasetService.getDatasetConfig(e);return e&&a?(this.unitList=this.units.getConversionsForPath(a.path),this.convertUnitTo()?.enable(),!0):(this.unitList=this.units.getConversionsForPath(""),this.convertUnitTo()?.disable(),!1)}datasetChanged(e){this.setPathUnits(e.value)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["config-dataset-chart-options"]],inputs:{datasetUUID:[1,"datasetUUID"],convertUnitTo:[1,"convertUnitTo"]},decls:14,vars:2,consts:[[1,"display-content","tab-content"],[1,"widget-options-grid"],[1,"options-grid-span2"],["placeholder","Select dataset...","name","datasetUUID","required","",3,"selectionChange","formControl"],[3,"value"],["placeholder","Select unit...","name","convertUnitTo","required","",3,"formControl"],[3,"label"]],template:function(a,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),r(4,"Dataset"),o(),n(5,"mat-select",3),_("selectionChange",function(d){return t.datasetChanged(d)}),y(6,rn,2,2,"mat-option",4,nn),o()(),n(8,"mat-form-field",2)(9,"mat-label"),r(10,"Display Format"),o(),n(11,"mat-select",5),y(12,sn,3,1,"mat-optgroup",6,E),o()()()()),a&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,Mt,B,F,L,Me],styles:[".display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}"]})}return i})();var vo=(()=>{class i{transform(e){return Object.keys(e)}static \u0275fac=function(a){return new(a||i)};static \u0275pipe=Ui({name:"objectKeys",type:i,pure:!0})}return i})();var dn=["panel"],mn=["*"];function pn(i,s){if(i&1&&(hi(0,"div",1,0),X(2),fi()),i&2){let e=s.id,a=f();gt(a._classList),W("mat-mdc-autocomplete-visible",a.showPanel)("mat-mdc-autocomplete-hidden",!a.showPanel)("mat-autocomplete-panel-animations-enabled",!a._animationsDisabled)("mat-primary",a._color==="primary")("mat-accent",a._color==="accent")("mat-warn",a._color==="warn"),Hi("id",a.id),q("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby(e))}}var wi=class{source;option;constructor(s,e){this.source=s,this.option=e}},xo=new J("mat-autocomplete-default-options",{providedIn:"root",factory:un});function un(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var si=(()=>{class i{_changeDetectorRef=m(nt);_elementRef=m(pe);_defaults=m(xo);_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(Et).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 a=new wi(this,e);this.optionSelected.emit(a)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let a=e?e+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(a,t,l){if(a&1&&(ue(l,Z,5),ue(l,Ka,5)),a&2){let d;z(d=j())&&(t.options=d),z(d=j())&&(t.optionGroups=d)}},viewQuery:function(a,t){if(a&1&&(Ve(Ni,7),Ve(dn,5)),a&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:i}])],ngContentSelectors:mn,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(a,t){a&1&&(ve(),Qi(0,pn,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}
|
|
4
|
+
`],encapsulation:2,changeDetection:0})}return i})();var An={provide:Kt,useExisting:kt(()=>Gt),multi:!0};var Mo=new J("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=m(Fe);return()=>Ci(i)}});function gn(i){let s=m(Fe);return()=>Ci(s)}var hn={provide:Mo,deps:[],useFactory:gn},Gt=(()=>{class i{_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(Mo);_renderer=m(gi);_animationsDisabled=ye();_defaults=m(xo,{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),Bt(()=>Pe(...e.map(a=>a.onSelectionChange)))):this._initialized.pipe(Bt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new pi(e=>{let a=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",a),this._renderer.listen("document","auxclick",a),this._renderer.listen("document","touchend",a)];return()=>{t.forEach(l=>l())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let a=e,t=a.keyCode,l=bt(a);if(t===27&&!l&&a.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&t===13&&this.panelOpen&&!l)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){let d=this.autocomplete._keyManager.activeItem,g=t===38||t===40;t===9||g&&!l&&this.panelOpen?this.autocomplete._keyManager.onKeydown(a):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 a=e.target,t=a.value;if(a.type==="number"&&(t=t==""?null:parseFloat(t)),this._previousValue!==t){if(this._previousValue=t,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(t),!t)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let l=this.autocomplete.options?.find(d=>d.selected);if(l){let d=this._getDisplayValue(l.value);t!==d&&l.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let l=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(l)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return _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})}),a=this.autocomplete.options?.changes.pipe(Vi(()=>this._positionStrategy.reapplyLastPosition()),Li(0))??ui();return Pe(e,a).pipe(Bt(()=>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 a=this.autocomplete;return a&&a.displayWith?a.displayWith(e):e}_assignOptionValue(e){let a=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(a??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let a=this.autocomplete,t=e?e.source:this._pendingAutoselectedOption;t?(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),a._emitSelectEvent(t),this._element.nativeElement.focus()):a.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,a){this.autocomplete?.options?.forEach(t=>{t!==e&&t.selected&&t.deselect(a)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let a=this.autocomplete.id;vi(this._trackedModal,"aria-owns",a)}}_attachOverlay(e){this.autocomplete;let a=this._overlayRef;a?(this._positionStrategy.setOrigin(this._getConnectedElement()),a.updateSize({width:this._getPanelWidth()})):(this._portal=new Ma(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),a=Pa(this._injector,this._getOverlayConfig()),this._overlayRef=a,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&a&&a.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(De.HandsetLandscape).subscribe(l=>{l.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),a&&!a.hasAttached()&&(a.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let t=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&t!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!bt(e)||e.keyCode===38&&bt(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 a=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],t=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:t},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:t}],d;this.position==="above"?d=l:this.position==="below"?d=a:d=[...a,...l],e.withPositions(d)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let a=-1;for(let t=0;t<e.options.length;t++)if(!e.options.get(t).disabled){a=t;break}e._keyManager.setActiveItem(a)}else e._keyManager.setActiveItem(-1)}_canOpen(){let e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_scrollToOption(e){let a=this.autocomplete,t=$a(e,a.options,a.optionGroups);if(e===0&&t===1)a._setScrollTop(0);else if(a.panel){let l=a.options.toArray()[e];if(l){let d=l._getHostElement(),g=eo(d.offsetTop,d.offsetHeight,a._getScrollTop(),a.panel.nativeElement.offsetHeight);a._setScrollTop(g)}}}_trackedModal=null;_applyModalPanelOwnership(){let e=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let a=this.autocomplete.id;this._trackedModal&&Yt(this._trackedModal,"aria-owns",a),vi(e,"aria-owns",a),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Yt(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,t){a&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()}),a&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([An]),ot]})}return i})(),wo=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=_e({type:i});static \u0275inj=be({providers:[hn],imports:[Oa,Dt,$,Ta,Dt,$]})}return i})();var bn=(i,s)=>s.path;function _n(i,s){i&1&&b(0,"i",22)}function vn(i,s){i&1&&b(0,"i",23)}function Cn(i,s){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=s.$implicit;p("value",e),c(),ht("",e.properties.quantity,": ",e.properties.display)}}function yn(i,s){if(i&1){let e=P();n(0,"div",5)(1,"mat-form-field",21)(2,"mat-label"),u(3,_n,1,0,"i",22)(4,vn,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,Cn,2,3,"mat-option",16,E),o()()()}if(i&2){let e=Ae(7),a=f(2);c(3),A(e.value?4:3),c(3),p("formControl",a.pathSkUnitsFilterControl),c(4),x(a.pathSkUnitsFiltersList)}}function xn(i,s){i&1&&(n(0,"span",8),r(1,"(optional)"),o())}function Mn(i,s){i&1&&(n(0,"mat-hint"),r(1,"Leave blank to disable this path."),o())}function wn(i,s){if(i&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 Sn(i,s){i&1&&(n(0,"mat-error"),r(1," Path is required. Please enter a valid Signal K path. "),o())}function kn(i,s){i&1&&(n(0,"mat-error"),r(1," Path not recognized. Please enter a path from the server's published list. "),o())}function Tn(i,s){if(i&1&&(n(0,"span"),r(1),o(),b(2,"br"),n(3,"small",26),r(4),o()),i&2){let e=f().$implicit;c(),S(e.path),c(3),S(e.meta.description)}}function En(i,s){if(i&1&&r(0),i&2){let e=f().$implicit;U(" ",e.path," ")}}function Dn(i,s){if(i&1&&(n(0,"mat-option",11),u(1,Tn,5,2)(2,En,1,1),o()),i&2){let e=s.$implicit;p("value",e.path),c(),A(e.meta!==void 0?1:2)}}function In(i,s){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=s.$implicit;p("value",e),c(),U(" ",e," ")}}function Gn(i,s){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function Pn(i,s){if(i&1&&(n(0,"mat-optgroup",28),y(1,Gn,2,2,"mat-option",16,E),o()),i&2){let e=s.$implicit;p("label",e.group),c(),x(e.units)}}function On(i,s){if(i&1&&(n(0,"mat-form-field",20)(1,"mat-label"),r(2,"Display Format"),o(),n(3,"mat-select",27),y(4,Pn,3,1,"mat-optgroup",28,E),o()()),i&2){let e=f(2);c(4),x(e.unitList.conversions)}}function Fn(i,s){if(i&1&&(n(0,"div",3)(1,"div",4)(2,"span"),r(3),o()(),u(4,yn,12,2,"div",5),n(5,"div",6)(6,"mat-form-field",7)(7,"mat-label"),r(8," Signal K Path "),u(9,xn,2,0,"span",8),o(),b(10,"input",9,0),u(12,Mn,2,0,"mat-hint"),u(13,wn,3,0,"button",10),u(14,Sn,2,0,"mat-error")(15,kn,2,0,"mat-error"),n(16,"mat-autocomplete",null,1),y(18,Dn,3,2,"mat-option",11,bn),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,In,2,2,"mat-option",16,E),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,On,6,0,"mat-form-field",20),o()()()),i&2){let e,a=Ae(17),t=f();p("formGroup",t.pathFormGroup()),c(2),Rt("color",t.pathFormGroup().enabled?"":"rgba(255,255,255,0.5)"),c(),S(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",a),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 Ln(i){return s=>{let e=s.parent?.value?.pathRequired!==!1,a=s.value;return e?a===null||a===""?{requireMatch:!0}:i().some(d=>d.path===a)?null:{requireMatch:!0}:a===null||a===""||i().some(d=>d.path===a)?null:{requireMatch:!0}}}var So=(()=>{class i{_data=m(ma);_units=m(wt);_connection=m(na);_destroyRef=m(Le);pathFormGroup=h.required();multiCTRLArray=h.required();filterSelfPaths=h.required();availablePaths;filteredPaths=new St(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((a,t)=>a.properties.quantity>t.properties.quantity?1:-1),this.pathSkUnitsFiltersList.unshift(this.unitlessUnit),e.value.pathSkUnitsFilter&&this.pathSkUnitsFilterControl.setValue(this.pathSkUnitsFiltersList.find(a=>a.unit===this.pathFormGroup().value.pathSkUnitsFilter),{onlySelf:!0}),e.value.showPathSkUnitsFilter&&(this.showPathSkUnitsFilter=e.value.showPathSkUnitsFilter),e.controls.path.setValidators([Ln(()=>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(a=>a===""?Ai(0):Ai(350)),mt(""),ct(a=>this.filterPaths(a||""))).pipe(Ue(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.controls.path.pristine||(a.controls.path.valid?(this.enableFormFields(!0),this.updatePathMetaBoundDisplayName(a.controls.path.value),this.updatePathMetaBoundDisplayScale(a.controls.path.value)):this.disablePathFields())}),e.controls.pathType.valueChanges.pipe(Ue(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.value.showPathSkUnitsFilter?this.pathSkUnitsFilterControl.setValue(this.unitlessUnit):this.pathSkUnitsFilterControl.setValue(null),a.controls.path.updateValueAndValidity()}))}ngOnChanges(e){e.filterSelfPaths&&!e.filterSelfPaths.firstChange&&this.pathFormGroup().controls.path.updateValueAndValidity()}getPaths(){let e=this.pathFormGroup().controls.pathType.value,a=this.filterSelfPaths(),t=!1,l=this.pathFormGroup();if(l.value.supportsPut){let d=!1;this.multiCTRLArray().length>0&&(d=this.multiCTRLArray().some(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,a).sort()}filterPaths(e){let a=e.toLowerCase(),t=this.getPaths();if(this.pathSkUnitsFilterControl.value){let l=this.pathSkUnitsFilterControl.value.unit;t=t.filter(d=>{let 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(a)),this.filteredPaths.next(t)}enableFormFields(e){let a=this._data.getPathObject(this.pathFormGroup().controls.path.value);if(a!=null){this.pathFormGroup().controls.sampleTime.enable({onlySelf:!1});let t=this.pathFormGroup();t.controls.pathType.value=="number"&&(this.unitList=this._units.getConversionsForPath(t.controls.path.value),e&&t.controls.convertUnitTo.setValue(this.unitList.base,{onlySelf:!0}),t.controls.convertUnitTo.enable({onlySelf:!1})),Object.keys(a.sources).length==1?(this.availableSources=["default"],e?t.controls.source.value!="default"&&t.controls.source.setValue("default",{onlySelf:!0}):t.controls.source.value!="default"&&t.controls.source.setValue("",{onlySelf:!0})):Object.keys(a.sources).length>1&&(this.availableSources=Object.keys(a.sources),t.controls.source.value=="default"&&t.controls.source.reset()),t.controls.source.enable({onlySelf:!1})}else this.disablePathFields()}disablePathFields(){this.pathFormGroup().controls.source.reset("",{onlySelf:!0}),this.pathFormGroup().controls.source.disable({onlySelf:!1}),this.pathFormGroup().controls.sampleTime.disable({onlySelf:!1});let e=this.pathFormGroup();e.controls.pathType.value=="number"&&(e.controls.convertUnitTo.reset("",{onlySelf:!0}),e.controls.convertUnitTo.disable({onlySelf:!1}))}updatePathMetaBoundDisplayName(e){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayName"))return;let t=this._data.getPathMeta(e);t?.displayName&&a.parent.parent.controls.displayName.setValue(t.displayName)}updatePathMetaBoundDisplayScale(e){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayScale"))return;let t=this._data.getPathMeta(e);if(t?.displayScale){let l=a.parent.parent.get("displayScale"),d=a.controls.convertUnitTo.value;t.displayScale.lower!==null&&t.displayScale.lower!==void 0&&l.controls.lower.setValue(this._units.convertToUnit(d,t.displayScale.lower)),t.displayScale.upper!==null&&t.displayScale.upper!==void 0&&l.controls.upper.setValue(this._units.convertToUnit(d,t.displayScale.upper)),t.displayScale.type!==null&&t.displayScale.type!==void 0&&l.controls.type.setValue(t.displayScale.type),t.displayScale.power!==null&&t.displayScale.power!==void 0&&l.controls.power.setValue(t.displayScale.power)}}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["path-control-config"]],inputs:{pathFormGroup:[1,"pathFormGroup"],multiCTRLArray:[1,"multiCTRLArray"],filterSelfPaths:[1,"filterSelfPaths"]},features:[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(a,t){a&1&&u(0,Fn,36,13,"div",3),a&2&&A(t.pathFormGroup().value.isPathConfigurable?0:-1)},dependencies:[ae,te,Ze,F,ie,L,B,Me,H,Xe,R,V,oe,wo,si,Z,Mt,Gt,se,xt,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 i})();function Bn(i,s){if(i&1&&b(0,"path-control-config",6),i&2){let e=s.$implicit,a=f(2);p("pathFormGroup",e)("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Vn(i,s){if(i&1&&y(0,Bn,1,3,"path-control-config",6,E),i&2){let e=f();x(e.pathsFormGroup.controls)}}function Rn(i,s){if(i&1&&b(0,"path-control-config",6),i&2){let e=s.$implicit,a=f(2);p("pathFormGroup",a.pathsFormGroup.get(e))("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Nn(i,s){if(i&1&&(y(0,Rn,1,3,"path-control-config",6,E),Ne(2,"objectKeys")),i&2){let e=f();x(We(2,0,e.pathsFormGroup.controls))}}var ko=(()=>{class i{rootFormGroup=m(H);fb=m(yt);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(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["paths-options"]],inputs:{formGroupName:[1,"formGroupName"],isArray:[1,"isArray"],enableTimeout:[1,"enableTimeout"],dataTimeout:[1,"dataTimeout"],filterSelfPaths:[1,"filterSelfPaths"],addPathEvent:[1,"addPathEvent"],delPathEvent:[1,"delPathEvent"],updatePathEvent:[1,"updatePathEvent"]},features:[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(a,t){a&1&&(n(0,"div",0)(1,"mat-checkbox",1),r(2," Enable Widget Data TTL "),o(),n(3,"mat-form-field")(4,"mat-label"),r(5,"TTL Timeout For Paths"),o(),b(6,"input",2),n(7,"span",3),r(8,"Seconds"),o()()(),zi(9,4),u(10,Vn,2,0)(11,Nn,3,2),ji(),n(12,"mat-checkbox",5),r(13,` Restrict to own vessel
|
|
5
|
+
`),o()),a&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,Ct,B,Me,H,R,V,oe,xt,So,vo],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:5px}"]})}return i})();function Wn(i,s){if(i&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 Un(i,s){if(i&1&&(n(0,"mat-option",6),r(1),o()),i&2){let e=s.$implicit;p("value",e.label),c(),ht(" ",e.offset," - ",e.label," ")}}function Qn(i){return s=>i.some(a=>a.label===s.value)?null:{requireMatch:!0}}var qn=()=>{let i=Intl.supportedValuesOf("timeZone"),s=new Date;return i.map(e=>({offset:new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(s).find(d=>d.type==="timeZoneName")?.value||"",label:e}))},To=(()=>{class i{_destroyRef=m(Le);dateFormat=h(void 0);dateTimezone=h(void 0);tz=[];filteredTZ;filteredTZSubscription=null;constructor(){}ngOnInit(){typeof Intl.supportedValuesOf<"u"?this.tz=qn().sort((e,a)=>this.compareOffsets(e.offset,a.offset)):(console.log("[Widget Options] Feature not supported. Using static Time Zone list"),this.tz=[{offset:"GMT",label:"Africa/Abidjan"},{offset:"GMT",label:"Africa/Accra"},{offset:"GMT+3",label:"Africa/Addis_Ababa"},{offset:"GMT+1",label:"Africa/Algiers"},{offset:"GMT+3",label:"Africa/Asmera"},{offset:"GMT",label:"Africa/Bamako"},{offset:"GMT+1",label:"Africa/Bangui"},{offset:"GMT",label:"Africa/Banjul"},{offset:"GMT",label:"Africa/Bissau"},{offset:"GMT+2",label:"Africa/Blantyre"},{offset:"GMT+1",label:"Africa/Brazzaville"},{offset:"GMT+2",label:"Africa/Bujumbura"},{offset:"GMT+2",label:"Africa/Cairo"},{offset:"GMT",label:"Africa/Casablanca"},{offset:"GMT+2",label:"Africa/Ceuta"},{offset:"GMT",label:"Africa/Conakry"},{offset:"GMT",label:"Africa/Dakar"},{offset:"GMT+3",label:"Africa/Dar_es_Salaam"},{offset:"GMT+3",label:"Africa/Djibouti"},{offset:"GMT+1",label:"Africa/Douala"},{offset:"GMT",label:"Africa/El_Aaiun"},{offset:"GMT",label:"Africa/Freetown"},{offset:"GMT+2",label:"Africa/Gaborone"},{offset:"GMT+2",label:"Africa/Harare"},{offset:"GMT+2",label:"Africa/Johannesburg"},{offset:"GMT+2",label:"Africa/Juba"},{offset:"GMT+3",label:"Africa/Kampala"},{offset:"GMT+2",label:"Africa/Khartoum"},{offset:"GMT+2",label:"Africa/Kigali"},{offset:"GMT+1",label:"Africa/Kinshasa"},{offset:"GMT+1",label:"Africa/Lagos"},{offset:"GMT+1",label:"Africa/Libreville"},{offset:"GMT",label:"Africa/Lome"},{offset:"GMT+1",label:"Africa/Luanda"},{offset:"GMT+2",label:"Africa/Lubumbashi"},{offset:"GMT+2",label:"Africa/Lusaka"},{offset:"GMT+1",label:"Africa/Malabo"},{offset:"GMT+2",label:"Africa/Maputo"},{offset:"GMT+2",label:"Africa/Maseru"},{offset:"GMT+2",label:"Africa/Mbabane"},{offset:"GMT+3",label:"Africa/Mogadishu"},{offset:"GMT",label:"Africa/Monrovia"},{offset:"GMT+3",label:"Africa/Nairobi"},{offset:"GMT+1",label:"Africa/Ndjamena"},{offset:"GMT+1",label:"Africa/Niamey"},{offset:"GMT",label:"Africa/Nouakchott"},{offset:"GMT",label:"Africa/Ouagadougou"},{offset:"GMT+1",label:"Africa/Porto-Novo"},{offset:"GMT",label:"Africa/Sao_Tome"},{offset:"GMT+2",label:"Africa/Tripoli"},{offset:"GMT+1",label:"Africa/Tunis"},{offset:"GMT+2",label:"Africa/Windhoek"},{offset:"GMT-9",label:"America/Adak"},{offset:"GMT-8",label:"America/Anchorage"},{offset:"GMT-4",label:"America/Anguilla"},{offset:"GMT-4",label:"America/Antigua"},{offset:"GMT-3",label:"America/Araguaina"},{offset:"GMT-3",label:"America/Argentina/La_Rioja"},{offset:"GMT-3",label:"America/Argentina/Rio_Gallegos"},{offset:"GMT-3",label:"America/Argentina/Salta"},{offset:"GMT-3",label:"America/Argentina/San_Juan"},{offset:"GMT-3",label:"America/Argentina/San_Luis"},{offset:"GMT-3",label:"America/Argentina/Tucuman"},{offset:"GMT-3",label:"America/Argentina/Ushuaia"},{offset:"GMT-4",label:"America/Aruba"},{offset:"GMT-3",label:"America/Asuncion"},{offset:"GMT-3",label:"America/Bahia"},{offset:"GMT-6",label:"America/Bahia_Banderas"},{offset:"GMT-4",label:"America/Barbados"},{offset:"GMT-3",label:"America/Belem"},{offset:"GMT-6",label:"America/Belize"},{offset:"GMT-4",label:"America/Blanc-Sablon"},{offset:"GMT-4",label:"America/Boa_Vista"},{offset:"GMT-5",label:"America/Bogota"},{offset:"GMT-6",label:"America/Boise"},{offset:"GMT-3",label:"America/Buenos_Aires"},{offset:"GMT-6",label:"America/Cambridge_Bay"},{offset:"GMT-4",label:"America/Campo_Grande"},{offset:"GMT-5",label:"America/Cancun"},{offset:"GMT-4",label:"America/Caracas"},{offset:"GMT-3",label:"America/Catamarca"},{offset:"GMT-3",label:"America/Cayenne"},{offset:"GMT-5",label:"America/Cayman"},{offset:"GMT-5",label:"America/Chicago"},{offset:"GMT-6",label:"America/Chihuahua"},{offset:"GMT-6",label:"America/Ciudad_Juarez"},{offset:"GMT-5",label:"America/Coral_Harbour"},{offset:"GMT-3",label:"America/Cordoba"},{offset:"GMT-6",label:"America/Costa_Rica"},{offset:"GMT-7",label:"America/Creston"},{offset:"GMT-4",label:"America/Cuiaba"},{offset:"GMT-4",label:"America/Curacao"},{offset:"GMT",label:"America/Danmarkshavn"},{offset:"GMT-7",label:"America/Dawson"},{offset:"GMT-7",label:"America/Dawson_Creek"},{offset:"GMT-6",label:"America/Denver"},{offset:"GMT-4",label:"America/Detroit"},{offset:"GMT-4",label:"America/Dominica"},{offset:"GMT-6",label:"America/Edmonton"},{offset:"GMT-5",label:"America/Eirunepe"},{offset:"GMT-6",label:"America/El_Salvador"},{offset:"GMT-7",label:"America/Fort_Nelson"},{offset:"GMT-3",label:"America/Fortaleza"},{offset:"GMT-3",label:"America/Glace_Bay"},{offset:"GMT-1",label:"America/Godthab"},{offset:"GMT-3",label:"America/Goose_Bay"},{offset:"GMT-4",label:"America/Grand_Turk"},{offset:"GMT-4",label:"America/Grenada"},{offset:"GMT-4",label:"America/Guadeloupe"},{offset:"GMT-6",label:"America/Guatemala"},{offset:"GMT-5",label:"America/Guayaquil"},{offset:"GMT-4",label:"America/Guyana"},{offset:"GMT-3",label:"America/Halifax"},{offset:"GMT-4",label:"America/Havana"},{offset:"GMT-7",label:"America/Hermosillo"},{offset:"GMT-5",label:"America/Indiana/Knox"},{offset:"GMT-4",label:"America/Indiana/Marengo"},{offset:"GMT-4",label:"America/Indiana/Petersburg"},{offset:"GMT-5",label:"America/Indiana/Tell_City"},{offset:"GMT-4",label:"America/Indiana/Vevay"},{offset:"GMT-4",label:"America/Indiana/Vincennes"},{offset:"GMT-4",label:"America/Indiana/Winamac"},{offset:"GMT-4",label:"America/Indianapolis"},{offset:"GMT-6",label:"America/Inuvik"},{offset:"GMT-4",label:"America/Iqaluit"},{offset:"GMT-5",label:"America/Jamaica"},{offset:"GMT-3",label:"America/Jujuy"},{offset:"GMT-8",label:"America/Juneau"},{offset:"GMT-4",label:"America/Kentucky/Monticello"},{offset:"GMT-4",label:"America/Kralendijk"},{offset:"GMT-4",label:"America/La_Paz"},{offset:"GMT-5",label:"America/Lima"},{offset:"GMT-7",label:"America/Los_Angeles"},{offset:"GMT-4",label:"America/Louisville"},{offset:"GMT-4",label:"America/Lower_Princes"},{offset:"GMT-3",label:"America/Maceio"},{offset:"GMT-6",label:"America/Managua"},{offset:"GMT-4",label:"America/Manaus"},{offset:"GMT-4",label:"America/Marigot"},{offset:"GMT-4",label:"America/Martinique"},{offset:"GMT-5",label:"America/Matamoros"},{offset:"GMT-7",label:"America/Mazatlan"},{offset:"GMT-3",label:"America/Mendoza"},{offset:"GMT-5",label:"America/Menominee"},{offset:"GMT-6",label:"America/Merida"},{offset:"GMT-8",label:"America/Metlakatla"},{offset:"GMT-6",label:"America/Mexico_City"},{offset:"GMT-2",label:"America/Miquelon"},{offset:"GMT-3",label:"America/Moncton"},{offset:"GMT-6",label:"America/Monterrey"},{offset:"GMT-3",label:"America/Montevideo"},{offset:"GMT-4",label:"America/Montserrat"},{offset:"GMT-4",label:"America/Nassau"},{offset:"GMT-4",label:"America/New_York"},{offset:"GMT-8",label:"America/Nome"},{offset:"GMT-2",label:"America/Noronha"},{offset:"GMT-5",label:"America/North_Dakota/Beulah"},{offset:"GMT-5",label:"America/North_Dakota/Center"},{offset:"GMT-5",label:"America/North_Dakota/New_Salem"},{offset:"GMT-5",label:"America/Ojinaga"},{offset:"GMT-5",label:"America/Panama"},{offset:"GMT-3",label:"America/Paramaribo"},{offset:"GMT-7",label:"America/Phoenix"},{offset:"GMT-4",label:"America/Port-au-Prince"},{offset:"GMT-4",label:"America/Port_of_Spain"},{offset:"GMT-4",label:"America/Porto_Velho"},{offset:"GMT-4",label:"America/Puerto_Rico"},{offset:"GMT-3",label:"America/Punta_Arenas"},{offset:"GMT-5",label:"America/Rankin_Inlet"},{offset:"GMT-3",label:"America/Recife"},{offset:"GMT-6",label:"America/Regina"},{offset:"GMT-5",label:"America/Resolute"},{offset:"GMT-5",label:"America/Rio_Branco"},{offset:"GMT-3",label:"America/Santarem"},{offset:"GMT-3",label:"America/Santiago"},{offset:"GMT-4",label:"America/Santo_Domingo"},{offset:"GMT-3",label:"America/Sao_Paulo"},{offset:"GMT-1",label:"America/Scoresbysund"},{offset:"GMT-8",label:"America/Sitka"},{offset:"GMT-4",label:"America/St_Barthelemy"},{offset:"GMT-2:30",label:"America/St_Johns"},{offset:"GMT-4",label:"America/St_Kitts"},{offset:"GMT-4",label:"America/St_Lucia"},{offset:"GMT-4",label:"America/St_Thomas"},{offset:"GMT-4",label:"America/St_Vincent"},{offset:"GMT-6",label:"America/Swift_Current"},{offset:"GMT-6",label:"America/Tegucigalpa"},{offset:"GMT-3",label:"America/Thule"},{offset:"GMT-7",label:"America/Tijuana"},{offset:"GMT-4",label:"America/Toronto"},{offset:"GMT-4",label:"America/Tortola"},{offset:"GMT-7",label:"America/Vancouver"},{offset:"GMT-7",label:"America/Whitehorse"},{offset:"GMT-5",label:"America/Winnipeg"},{offset:"GMT-8",label:"America/Yakutat"},{offset:"GMT+8",label:"Antarctica/Casey"},{offset:"GMT+7",label:"Antarctica/Davis"},{offset:"GMT+10",label:"Antarctica/DumontDUrville"},{offset:"GMT+11",label:"Antarctica/Macquarie"},{offset:"GMT+5",label:"Antarctica/Mawson"},{offset:"GMT+13",label:"Antarctica/McMurdo"},{offset:"GMT-3",label:"Antarctica/Palmer"},{offset:"GMT-3",label:"Antarctica/Rothera"},{offset:"GMT+3",label:"Antarctica/Syowa"},{offset:"GMT+2",label:"Antarctica/Troll"},{offset:"GMT+5",label:"Antarctica/Vostok"},{offset:"GMT+2",label:"Arctic/Longyearbyen"},{offset:"GMT+3",label:"Asia/Aden"},{offset:"GMT+5",label:"Asia/Almaty"},{offset:"GMT+3",label:"Asia/Amman"},{offset:"GMT+12",label:"Asia/Anadyr"},{offset:"GMT+5",label:"Asia/Aqtau"},{offset:"GMT+5",label:"Asia/Aqtobe"},{offset:"GMT+5",label:"Asia/Ashgabat"},{offset:"GMT+5",label:"Asia/Atyrau"},{offset:"GMT+3",label:"Asia/Baghdad"},{offset:"GMT+3",label:"Asia/Bahrain"},{offset:"GMT+4",label:"Asia/Baku"},{offset:"GMT+7",label:"Asia/Bangkok"},{offset:"GMT+7",label:"Asia/Barnaul"},{offset:"GMT+3",label:"Asia/Beirut"},{offset:"GMT+6",label:"Asia/Bishkek"},{offset:"GMT+8",label:"Asia/Brunei"},{offset:"GMT+5:30",label:"Asia/Calcutta"},{offset:"GMT+9",label:"Asia/Chita"},{offset:"GMT+5:30",label:"Asia/Colombo"},{offset:"GMT+3",label:"Asia/Damascus"},{offset:"GMT+6",label:"Asia/Dhaka"},{offset:"GMT+9",label:"Asia/Dili"},{offset:"GMT+4",label:"Asia/Dubai"},{offset:"GMT+5",label:"Asia/Dushanbe"},{offset:"GMT+3",label:"Asia/Famagusta"},{offset:"GMT+2",label:"Asia/Gaza"},{offset:"GMT+2",label:"Asia/Hebron"},{offset:"GMT+8",label:"Asia/Hong_Kong"},{offset:"GMT+7",label:"Asia/Hovd"},{offset:"GMT+8",label:"Asia/Irkutsk"},{offset:"GMT+7",label:"Asia/Jakarta"},{offset:"GMT+9",label:"Asia/Jayapura"},{offset:"GMT+3",label:"Asia/Jerusalem"},{offset:"GMT+4:30",label:"Asia/Kabul"},{offset:"GMT+12",label:"Asia/Kamchatka"},{offset:"GMT+5",label:"Asia/Karachi"},{offset:"GMT+5:45",label:"Asia/Katmandu"},{offset:"GMT+9",label:"Asia/Khandyga"},{offset:"GMT+7",label:"Asia/Krasnoyarsk"},{offset:"GMT+8",label:"Asia/Kuala_Lumpur"},{offset:"GMT+8",label:"Asia/Kuching"},{offset:"GMT+3",label:"Asia/Kuwait"},{offset:"GMT+8",label:"Asia/Macau"},{offset:"GMT+11",label:"Asia/Magadan"},{offset:"GMT+8",label:"Asia/Makassar"},{offset:"GMT+8",label:"Asia/Manila"},{offset:"GMT+4",label:"Asia/Muscat"},{offset:"GMT+3",label:"Asia/Nicosia"},{offset:"GMT+7",label:"Asia/Novokuznetsk"},{offset:"GMT+7",label:"Asia/Novosibirsk"},{offset:"GMT+6",label:"Asia/Omsk"},{offset:"GMT+5",label:"Asia/Oral"},{offset:"GMT+7",label:"Asia/Phnom_Penh"},{offset:"GMT+7",label:"Asia/Pontianak"},{offset:"GMT+9",label:"Asia/Pyongyang"},{offset:"GMT+3",label:"Asia/Qatar"},{offset:"GMT+5",label:"Asia/Qostanay"},{offset:"GMT+5",label:"Asia/Qyzylorda"},{offset:"GMT+6:30",label:"Asia/Rangoon"},{offset:"GMT+3",label:"Asia/Riyadh"},{offset:"GMT+7",label:"Asia/Saigon"},{offset:"GMT+11",label:"Asia/Sakhalin"},{offset:"GMT+5",label:"Asia/Samarkand"},{offset:"GMT+9",label:"Asia/Seoul"},{offset:"GMT+8",label:"Asia/Shanghai"},{offset:"GMT+8",label:"Asia/Singapore"},{offset:"GMT+11",label:"Asia/Srednekolymsk"},{offset:"GMT+8",label:"Asia/Taipei"},{offset:"GMT+5",label:"Asia/Tashkent"},{offset:"GMT+4",label:"Asia/Tbilisi"},{offset:"GMT+3:30",label:"Asia/Tehran"},{offset:"GMT+6",label:"Asia/Thimphu"},{offset:"GMT+9",label:"Asia/Tokyo"},{offset:"GMT+7",label:"Asia/Tomsk"},{offset:"GMT+8",label:"Asia/Ulaanbaatar"},{offset:"GMT+6",label:"Asia/Urumqi"},{offset:"GMT+10",label:"Asia/Ust-Nera"},{offset:"GMT+7",label:"Asia/Vientiane"},{offset:"GMT+10",label:"Asia/Vladivostok"},{offset:"GMT+9",label:"Asia/Yakutsk"},{offset:"GMT+5",label:"Asia/Yekaterinburg"},{offset:"GMT+4",label:"Asia/Yerevan"},{offset:"GMT",label:"Atlantic/Azores"},{offset:"GMT-3",label:"Atlantic/Bermuda"},{offset:"GMT+1",label:"Atlantic/Canary"},{offset:"GMT-1",label:"Atlantic/Cape_Verde"},{offset:"GMT+1",label:"Atlantic/Faeroe"},{offset:"GMT+1",label:"Atlantic/Madeira"},{offset:"GMT",label:"Atlantic/Reykjavik"},{offset:"GMT-2",label:"Atlantic/South_Georgia"},{offset:"GMT",label:"Atlantic/St_Helena"},{offset:"GMT-3",label:"Atlantic/Stanley"},{offset:"GMT+10:30",label:"Australia/Adelaide"},{offset:"GMT+10",label:"Australia/Brisbane"},{offset:"GMT+10:30",label:"Australia/Broken_Hill"},{offset:"GMT+9:30",label:"Australia/Darwin"},{offset:"GMT+8:45",label:"Australia/Eucla"},{offset:"GMT+11",label:"Australia/Hobart"},{offset:"GMT+10",label:"Australia/Lindeman"},{offset:"GMT+11",label:"Australia/Lord_Howe"},{offset:"GMT+11",label:"Australia/Melbourne"},{offset:"GMT+8",label:"Australia/Perth"},{offset:"GMT+11",label:"Australia/Sydney"},{offset:"GMT+2",label:"Europe/Amsterdam"},{offset:"GMT+2",label:"Europe/Andorra"},{offset:"GMT+4",label:"Europe/Astrakhan"},{offset:"GMT+3",label:"Europe/Athens"},{offset:"GMT+2",label:"Europe/Belgrade"},{offset:"GMT+2",label:"Europe/Berlin"},{offset:"GMT+2",label:"Europe/Bratislava"},{offset:"GMT+2",label:"Europe/Brussels"},{offset:"GMT+3",label:"Europe/Bucharest"},{offset:"GMT+2",label:"Europe/Budapest"},{offset:"GMT+2",label:"Europe/Busingen"},{offset:"GMT+3",label:"Europe/Chisinau"},{offset:"GMT+2",label:"Europe/Copenhagen"},{offset:"GMT+1",label:"Europe/Dublin"},{offset:"GMT+2",label:"Europe/Gibraltar"},{offset:"GMT+1",label:"Europe/Guernsey"},{offset:"GMT+3",label:"Europe/Helsinki"},{offset:"GMT+1",label:"Europe/Isle_of_Man"},{offset:"GMT+3",label:"Europe/Istanbul"},{offset:"GMT+1",label:"Europe/Jersey"},{offset:"GMT+2",label:"Europe/Kaliningrad"},{offset:"GMT+3",label:"Europe/Kiev"},{offset:"GMT+3",label:"Europe/Kirov"},{offset:"GMT+1",label:"Europe/Lisbon"},{offset:"GMT+2",label:"Europe/Ljubljana"},{offset:"GMT+1",label:"Europe/London"},{offset:"GMT+2",label:"Europe/Luxembourg"},{offset:"GMT+2",label:"Europe/Madrid"},{offset:"GMT+2",label:"Europe/Malta"},{offset:"GMT+3",label:"Europe/Mariehamn"},{offset:"GMT+3",label:"Europe/Minsk"},{offset:"GMT+2",label:"Europe/Monaco"},{offset:"GMT+3",label:"Europe/Moscow"},{offset:"GMT+2",label:"Europe/Oslo"},{offset:"GMT+2",label:"Europe/Paris"},{offset:"GMT+2",label:"Europe/Podgorica"},{offset:"GMT+2",label:"Europe/Prague"},{offset:"GMT+3",label:"Europe/Riga"},{offset:"GMT+2",label:"Europe/Rome"},{offset:"GMT+4",label:"Europe/Samara"},{offset:"GMT+2",label:"Europe/San_Marino"},{offset:"GMT+2",label:"Europe/Sarajevo"},{offset:"GMT+4",label:"Europe/Saratov"},{offset:"GMT+3",label:"Europe/Simferopol"},{offset:"GMT+2",label:"Europe/Skopje"},{offset:"GMT+3",label:"Europe/Sofia"},{offset:"GMT+2",label:"Europe/Stockholm"},{offset:"GMT+3",label:"Europe/Tallinn"},{offset:"GMT+2",label:"Europe/Tirane"},{offset:"GMT+4",label:"Europe/Ulyanovsk"},{offset:"GMT+2",label:"Europe/Vaduz"},{offset:"GMT+2",label:"Europe/Vatican"},{offset:"GMT+2",label:"Europe/Vienna"},{offset:"GMT+3",label:"Europe/Vilnius"},{offset:"GMT+3",label:"Europe/Volgograd"},{offset:"GMT+2",label:"Europe/Warsaw"},{offset:"GMT+2",label:"Europe/Zagreb"},{offset:"GMT+2",label:"Europe/Zurich"},{offset:"GMT+3",label:"Indian/Antananarivo"},{offset:"GMT+6",label:"Indian/Chagos"},{offset:"GMT+7",label:"Indian/Christmas"},{offset:"GMT+6:30",label:"Indian/Cocos"},{offset:"GMT+3",label:"Indian/Comoro"},{offset:"GMT+5",label:"Indian/Kerguelen"},{offset:"GMT+4",label:"Indian/Mahe"},{offset:"GMT+5",label:"Indian/Maldives"},{offset:"GMT+4",label:"Indian/Mauritius"},{offset:"GMT+3",label:"Indian/Mayotte"},{offset:"GMT+4",label:"Indian/Reunion"},{offset:"GMT+13",label:"Pacific/Apia"},{offset:"GMT+13",label:"Pacific/Auckland"},{offset:"GMT+11",label:"Pacific/Bougainville"},{offset:"GMT+13:45",label:"Pacific/Chatham"},{offset:"GMT-5",label:"Pacific/Easter"},{offset:"GMT+11",label:"Pacific/Efate"},{offset:"GMT+13",label:"Pacific/Enderbury"},{offset:"GMT+13",label:"Pacific/Fakaofo"},{offset:"GMT+12",label:"Pacific/Fiji"},{offset:"GMT+12",label:"Pacific/Funafuti"},{offset:"GMT-6",label:"Pacific/Galapagos"},{offset:"GMT-9",label:"Pacific/Gambier"},{offset:"GMT+11",label:"Pacific/Guadalcanal"},{offset:"GMT+10",label:"Pacific/Guam"},{offset:"GMT-10",label:"Pacific/Honolulu"},{offset:"GMT+14",label:"Pacific/Kiritimati"},{offset:"GMT+11",label:"Pacific/Kosrae"},{offset:"GMT+12",label:"Pacific/Kwajalein"},{offset:"GMT+12",label:"Pacific/Majuro"},{offset:"GMT-9:30",label:"Pacific/Marquesas"},{offset:"GMT-11",label:"Pacific/Midway"},{offset:"GMT+12",label:"Pacific/Nauru"},{offset:"GMT-11",label:"Pacific/Niue"},{offset:"GMT+12",label:"Pacific/Norfolk"},{offset:"GMT+11",label:"Pacific/Noumea"},{offset:"GMT-11",label:"Pacific/Pago_Pago"},{offset:"GMT+9",label:"Pacific/Palau"},{offset:"GMT-8",label:"Pacific/Pitcairn"},{offset:"GMT+11",label:"Pacific/Ponape"},{offset:"GMT+10",label:"Pacific/Port_Moresby"},{offset:"GMT-10",label:"Pacific/Rarotonga"},{offset:"GMT+10",label:"Pacific/Saipan"},{offset:"GMT-10",label:"Pacific/Tahiti"},{offset:"GMT+12",label:"Pacific/Tarawa"},{offset:"GMT+13",label:"Pacific/Tongatapu"},{offset:"GMT+10",label:"Pacific/Truk"},{offset:"GMT+12",label:"Pacific/Wake"},{offset:"GMT+12",label:"Pacific/Wallis"}].sort((e,a)=>this.compareOffsets(e.offset,a.offset))),this.tz.unshift({offset:"",label:"System Timezone -"}),this.dateTimezone().setValidators([Y.required,Qn(this.tz)]),this.filteredTZ=this.dateTimezone().valueChanges.pipe(Lt(500),mt(""),ct(e=>this.filterTZ(e||""))),this.filteredTZSubscription=this.filteredTZ.pipe(Ue(this._destroyRef)).subscribe()}filterTZ(e){let a=e.toLowerCase();return this.tz.filter(t=>t.label.toLowerCase().includes(a))}compareOffsets(e,a){let t=l=>{let d=l.match(/([+-]?)(\d+)(?::(\d+))?/);if(!d)return 0;let g=d[1]==="-"?-1:1,C=parseInt(d[2],10),D=d[3]?parseInt(d[3],10):0;return g*(C*60+D)};return t(e)-t(a)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["display-datetime-options"]],inputs:{dateFormat:[1,"dateFormat"],dateTimezone:[1,"dateTimezone"]},decls:15,vars:6,consts:[["timeZoneAutoComplete","matAutocomplete"],[1,"widget-options-grid"],[1,"options-grid-span2"],["matInput","","placeholder","dd/MM/yyyy HH:mm:ss","name","dateFormat","required","",3,"formControl"],["type","text","matInput","","placeholder","Type to use autocomplete","name","dateTimezone","required","",3,"formControl","matAutocomplete"],["mat-icon-button","","matSuffix","","aria-label","Clear"],[3,"value"],["mat-icon-button","","matSuffix","","aria-label","Clear",3,"click"],[1,"fa-solid","fa-close"]],template:function(a,t){if(a&1&&(n(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),r(3,"Date & Time Format"),o(),b(4,"input",3),o(),n(5,"mat-form-field",2)(6,"mat-label"),r(7,"Adjust Value to Time Zone"),o(),b(8,"input",4),u(9,Wn,2,0,"button",5),n(10,"mat-autocomplete",null,0),y(12,Un,2,3,"mat-option",6,Vt),Ne(14,"async"),o()()()),a&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,Gt,se,xt,si,Z,Wt],encapsulation:2})}return i})();function zn(i,s){if(i&1&&(n(0,"mat-option",6),r(1),Ne(2,"titlecase"),o()),i&2){let e=s.$implicit;p("value",Ee(e)),c(),S(We(2,3,e))}}var Si={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"},Eo={options:{modes:[],states:[]},state:null,mode:"off-line",target:null,engaged:!1},Do=(()=>{class i{formGroupName=h.required();_plugins=m(ai);_destroyRef=m(Le);http=m(oa);rootFormGroup=m(H);autopilotFormGroup;apiVersion=T(null);availableAutopilots=T({});autopilotPlugin=T(null);discoveryInProgress=T(!1);apiDetectionError=T(null);apInstances=Ji(()=>{let e=this.availableAutopilots();return e?Object.keys(e):[]});modes=T(null);pluginId=T(null);currentRequests=new Set;constructor(){Nt(()=>{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(Si.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 Ft(this.makeHttpRequest(this.http.get(Si.V2_AUTOPILOTS,{observe:"response",responseType:"json"}))))?.status===200}catch(e){if(e&&typeof e=="object"&&"status"in e){let a=e;a.status===404?console.log("[Autopilot Options] V2 API endpoint not found (404)"):a.status>=500?console.warn("[Autopilot Options] V2 API server error:",a.status,a.statusText):console.log("[Autopilot Options] V2 API error:",a.status,a.statusText)}else console.log("[Autopilot Options] V2 API network error:",e);return!1}})}discoverV2Autopilots(){return N(this,null,function*(){try{let e=yield Ft(this.makeHttpRequest(this.http.get(Si.V2_AUTOPILOTS)));e&&Object.keys(e).length>0?(this.availableAutopilots.set(e),console.log("[Autopilot Options] Discovered V2 autopilot instances:",JSON.stringify(e))):(this.availableAutopilots.set({}),console.warn("[Autopilot Options] No V2 autopilot plugin found in response."))}catch(e){console.error("[Autopilot Options] Failed to discover V2 autopilots:",e),this.availableAutopilots.set({}),this.apiDetectionError.set(`Failed to discover autopilots: ${e instanceof Error?e.message:"Unknown error"}`)}})}discoverV2AutopilotOptions(e){return N(this,null,function*(){let a;try{try{this.discoveryInProgress.set(!0),a=yield Ft(this.makeHttpRequest(this.http.get(`API_PATHS.V2_AUTOPILOTS/${e}`))),console.log("[Autopilot Options] V2 Autopilot Options response:",JSON.stringify(a))}catch{a=Eo,console.log(`[Autopilot Options] Default AP discovery endpoint error for instance '${e}'`)}return this.discoveryInProgress.set(!1),a}catch(t){return console.error("[Autopilot Options] Failed to discover V2 endpoints:",t),console.log(`[Autopilot Options] Using fallback V2 endpoints for instance '${e}'`),Eo}})}onAutopilotInstanceIdChange(e){let a=e.value;if(e.value===""){this.modes.set(""),this.autopilotFormGroup.get("modes")?.setValue("",{emitEvent:!1});return}console.log("[Autopilot Options] Selected Autopilot Instance ID:",a),this.apiVersion()==="v2"?this.discoverV2AutopilotOptions(a).then(t=>{let l=t.options.modes||[];this.modes.set(l.join(", ")),this.autopilotFormGroup.get("modes")?.setValue(l,{emitEvent:!1}),console.log("[Autopilot Options] Autopilot plugin supported modes :",l.join(", "))}).catch(t=>{console.error("[Autopilot Options] Error requesting autopilot modes:",t),this.autopilotFormGroup.get("modes")?.setValue([],{emitEvent:!1})}):this.apiVersion()==="v1"&&(this.modes.set("standby, auto, wind, route"),this.autopilotFormGroup.get("modes")?.setValue("standby, auto, wind, route",{emitEvent:!1}),console.log("[Autopilot Options] Autopilot mode set to Raymarine v1 API modes: standby, auto, wind, route"))}makeHttpRequest(e){let a=e.pipe(Ue(this._destroyRef));return this.currentRequests.add(a),a.pipe(Bi(()=>this.currentRequests.delete(a)))}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["select-autopilot"]],inputs:{formGroupName:[1,"formGroupName"]},decls:30,vars:4,consts:[[1,"display-content","tab-content"],[1,"autopilot-options",3,"formGroup"],[1,"flex-item-rounded-card","rounded-card-color",2,"margin-block","10px"],[2,"margin-block-start","0px"],["placeholder","Select autopilot...","formControlName","instanceId","name","instanceId","required","",3,"selectionChange"],["value",""],[3,"value"],[1,"flex-item-rounded-card","rounded-card-color",2,"margin-block","10px","margin-left","10px","margin-right","10px"],["name","headingDirectionTrue","formControlName","headingDirectionTrue"],["name","invertRudder","formControlName","invertRudder"]],template:function(a,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),r(4,"Signal K Service Discovery"),o(),n(5,"ul")(6,"li")(7,"b"),r(8,"API Version:"),o(),r(9),o(),n(10,"li")(11,"b"),r(12,"Plugin:"),o(),r(13),o()()(),n(14,"mat-form-field")(15,"mat-label"),r(16,"Target Autopilot"),o(),n(17,"mat-select",4),_("selectionChange",function(d){return t.onAutopilotInstanceIdChange(d)}),n(18,"mat-option",5),r(19,"No autopilot"),o(),y(20,zn,3,5,"mat-option",6,E),o()(),n(22,"div",7)(23,"b"),r(24,"Supported modes:"),o(),r(25),o(),n(26,"mat-checkbox",8),r(27," Display True Heading "),o(),n(28,"mat-checkbox",9),r(29," Invert Rudder Angle Indicator "),o()()()),a&2&&(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 i})();var Io=()=>["measuring","capacity"],jn=()=>["marineCompass","baseplateCompass"],Yn=()=>["measuring"];function Hn(i,s){if(i&1&&b(0,"config-display-chart-options",5),i&2){let e=f();p("displayName",e.displayNameToControl)("datasetUUID",e.datasetUUIDToControl)("convertUnitTo",e.convertUnitToControl)("showAverageData",e.showAverageDataToControl)("trackAgainstAverage",e.trackAgainstAverageToControl)("datasetAverageArray",e.datasetAverageArrayToControl)("showDatasetMinimumValueLine",e.showDatasetMinimumValueLineToControl)("showDatasetMaximumValueLine",e.showDatasetMaximumValueLineToControl)("showDatasetAverageValueLine",e.showDatasetAverageValueLineToControl)("showDatasetAngleAverageValueLine",e.showDatasetAngleAverageValueLineToControl)("startScaleAtZero",e.startScaleAtZeroToControl)("showLabel",e.showLabelToControl)("showTimeScale",e.showTimeScaleToControl)("showYScale",e.showYScaleToControl)("yScaleSuggestedMin",e.yScaleSuggestedMinToControl)("yScaleSuggestedMax",e.yScaleSuggestedMaxToControl)("enableMinMaxScaleLimit",e.enableMinMaxScaleLimitToControl)("yScaleMin",e.yScaleMinToControl)("yScaleMax",e.yScaleMaxToControl)("numDecimal",e.numDecimalToControl)("verticalChart",e.verticalChartToControl)("inverseYAxis",e.inverseYAxisToControl)("color",e.colorToControl)}}function Zn(i,s){i&1&&b(0,"select-autopilot",6)}function Xn(i,s){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"URL"),o(),b(3,"input",40),o())}function Kn(i,s){i&1&&(n(0,"mat-checkbox",17),r(1," Allow pointer events on embedded content. WARNING: this may prevent swipe gestures over the Embed widget or keyboard events, while the focus is in the embed, from triggering normal KIP interactions. "),o())}function Jn(i,s){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Widget Label"),o(),b(3,"input",41),o())}function $n(i,s){i&1&&(n(0,"mat-form-field",42)(1,"mat-label"),r(2,"Scale Start"),o(),b(3,"input",43),o(),n(4,"mat-form-field",42)(5,"mat-label"),r(6,"Scale End"),o(),b(7,"input",44),o())}function er(i,s){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Integer Places"),o(),b(3,"input",45),o())}function tr(i,s){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Decimal Places"),o(),b(3,"input",46),o()),i&2){let e=f(2);gt(e.widgetConfig.showMiniChart!==void 0?"options-grid-span2":"")}}function ir(i,s){i&1&&(n(0,"mat-checkbox",19),r(1," Show Min recorded value "),o())}function ar(i,s){i&1&&(n(0,"mat-checkbox",20),r(1," Show Max recorded value "),o())}function or(i,s){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Next Dashboard after start"),o(),b(3,"input",47),o()),i&2){let e=f(2);W("options-grid-span2",!e.widgetConfig.numInt)}}function nr(i,s){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=s.$implicit;p("value",e.measure),c(),U(" ",e.description," ")}}function rr(i,s){if(i&1&&(n(0,"mat-optgroup",49),y(1,nr,2,2,"mat-option",50,E),o()),i&2){let e=f().$implicit;p("label",e.group),c(),x(e.units)}}function lr(i,s){if(i&1&&u(0,rr,3,1,"mat-optgroup",49),i&2){let e=s.$implicit,a=f(3);A(!a.widgetConfig.convertUnitToGroup||a.widgetConfig.convertUnitToGroup===""||a.widgetConfig.convertUnitToGroup===e.group?0:-1)}}function sr(i,s){if(i&1&&(n(0,"mat-form-field",22)(1,"mat-label"),r(2,"Display Units"),o(),n(3,"mat-select",48),y(4,lr,1,1,null,null,E),o()()),i&2){let e=f(2);c(4),x(e.unitList.conversions)}}function cr(i,s){i&1&&(n(0,"mat-checkbox",23),r(1," Enable beeps on count down "),o())}function dr(i,s){if(i&1&&b(0,"display-datetime-options",24),i&2){let e=f(2);p("dateFormat",e.dateFormatToControl)("dateTimezone",e.dateTimezoneToControl)}}function mr(i,s){i&1&&(n(0,"mat-checkbox",25),r(1," Close-hauled Lines "),o())}function pr(i,s){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Vessel Close-hauled Angle"),o(),b(3,"input",51),o())}function ur(i,s){i&1&&(n(0,"mat-checkbox",26),r(1," Wind Sectors "),o())}function Ar(i,s){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Sector Duration"),o(),b(3,"input",52),o())}function gr(i,s){i&1&&(n(0,"mat-checkbox",27),r(1," Apparent Wind Speed Value "),o())}function hr(i,s){i&1&&(n(0,"mat-checkbox",28),r(1," True Wind Speed Value "),o())}function fr(i,s){i&1&&(n(0,"mat-checkbox",29),r(1," Course Over Ground "),o())}function br(i,s){i&1&&(n(0,"mat-checkbox",30),r(1," True Wind Angle Indicator "),o())}function _r(i,s){i&1&&(n(0,"mat-checkbox",31),r(1," Next Waypoint "),o())}function vr(i,s){i&1&&(n(0,"mat-checkbox",32),r(1," Drift "),o())}function Cr(i,s){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Minimum Value"),o(),b(3,"input",53),o())}function yr(i,s){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Maximum Value"),o(),b(3,"input",54),o())}function xr(i,s){i&1&&(n(0,"mat-checkbox",33),r(1," Ignore Zones configuration "),o())}function Mr(i,s){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Highlights Width"),o(),b(3,"input",55),o())}function wr(i,s){i&1&&(n(0,"mat-form-field",35)(1,"mat-label"),r(2,"Rotation Element"),o(),n(3,"mat-select",56)(4,"mat-option",57),r(5,"Dial (Marine Compass)"),o(),n(6,"mat-option",58),r(7,"Needle (Base plate compass)"),o()()(),n(8,"div",34)(9,"mat-checkbox",59),r(10," Show value box "),o()(),n(11,"div",34)(12,"mat-checkbox",60),r(13," Show cardinal degrees "),o()())}function Sr(i,s){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Progress Bar Start Position"),o(),n(3,"mat-select",63)(4,"mat-option",64),r(5,"Left"),o(),n(6,"mat-option",65),r(7,"Middle"),o(),n(8,"mat-option",66),r(9,"Right"),o()()())}function kr(i,s){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Progress Bar Start Angle"),o(),b(3,"input",67),o())}function Tr(i,s){if(i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Gauge Type"),o(),n(3,"mat-select",56)(4,"mat-option",61),r(5,"Measuring"),o(),n(6,"mat-option",62),r(7,"Capacity"),o()()(),u(8,Sr,10,0,"mat-form-field",34),u(9,kr,4,0,"mat-form-field",34)),i&2){let e=f(3);c(8),A((e.widgetConfig==null||e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="ngRadial"&&Tt(2,Yn).includes(e.formMaster.value.gauge.subType)?8:-1),c(),A(e.formMaster.value.gauge.subType==="capacity"?9:-1)}}function Er(i,s){if(i&1&&u(0,wr,14,0)(1,Tr,10,3),i&2){let e=f(2);A(Tt(1,jn).indexOf(e.formMaster.value.gauge.subType)>-1?0:Tt(2,Io).indexOf(e.formMaster.value.gauge.subType)>-1?1:-1)}}function Dr(i,s){i&1&&(n(0,"div",34)(1,"mat-checkbox",68),r(2," Use needle indicator "),o()(),n(3,"div",34)(4,"mat-checkbox",69),r(5," Enable Ticks "),o()(),n(6,"mat-form-field",35)(7,"mat-label"),r(8,"Orientation"),o(),n(9,"mat-select",70)(10,"mat-option",71),r(11,"Vertical"),o(),n(12,"mat-option",72),r(13,"Horizontal"),o()()())}function Ir(i,s){i&1&&(n(0,"mat-form-field",35)(1,"mat-label"),r(2,"Unit Label"),o(),n(3,"mat-select",73)(4,"mat-option",74),r(5,"Full Label"),o(),n(6,"mat-option",75),r(7,"First Letter Only"),o()()())}function Gr(i,s){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=s.$implicit;p("value",Ee(e.value)),c(),S(e.label)}}function Pr(i,s){if(i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Color"),o(),n(3,"mat-select",76),y(4,Gr,2,3,"mat-option",50,E),o()()),i&2){let e=f(2);c(4),x(e.colors)}}function Or(i,s){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Scale Span"),o(),n(3,"mat-select",77)(4,"mat-option",78),r(5,"1 Minute"),o(),n(6,"mat-option",79),r(7,"5 Minutes"),o(),n(8,"mat-option",80),r(9,"30 Minutes"),o()()())}function Fr(i,s){i&1&&(n(0,"mat-checkbox",36),r(1," Show Background Graph "),n(2,"i"),r(3,"(Too many graphs may affect performance)"),o()())}function Lr(i,s){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale Start"),o(),b(3,"input",81),o())}function Br(i,s){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale End"),o(),b(3,"input",82),o())}function Vr(i,s){i&1&&(n(0,"mat-checkbox",37),r(1," Inverse Scale Axis "),o())}function Rr(i,s){i&1&&(n(0,"mat-checkbox",38),r(1," Vertical Data Graph "),o())}function Nr(i,s){i&1&&(n(0,"mat-checkbox",39),r(1," Disable background color "),o())}function Wr(i,s){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let e=s.$implicit;p("value",Ee(e.value)),c(),S(e.label)}}function Ur(i,s){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Background Color"),o(),n(3,"mat-select",83),y(4,Wr,2,3,"mat-option",50,E),o()()),i&2){let e=f(2);c(4),x(e.colors)}}function Qr(i,s){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Background Style"),o(),n(3,"mat-select",96)(4,"mat-option",97),r(5,"Dark Gray"),o(),n(6,"mat-option",98),r(7,"Satin Gray"),o(),n(8,"mat-option",99),r(9,"Light Gray"),o(),n(10,"mat-option",100),r(11,"White"),o(),n(12,"mat-option",101),r(13,"Black"),o(),n(14,"mat-option",102),r(15,"Beige"),o(),n(16,"mat-option",103),r(17,"Brown"),o(),n(18,"mat-option",104),r(19,"Red"),o(),n(20,"mat-option",105),r(21,"Green"),o(),n(22,"mat-option",106),r(23,"Blue"),o(),n(24,"mat-option",92),r(25,"Anthracite"),o(),n(26,"mat-option",107),r(27,"Mud"),o(),n(28,"mat-option",108),r(29,"Punched Sheet"),o(),n(30,"mat-option",109),r(31,"Carbon"),o(),n(32,"mat-option",110),r(33,"Stainless"),o(),n(34,"mat-option",111),r(35,"Brushed Metal"),o(),n(36,"mat-option",112),r(37,"Brushed Stainless"),o(),n(38,"mat-option",113),r(39,"Turned"),o()()())}function qr(i,s){i&1&&(n(0,"div",34)(1,"mat-checkbox",114),r(2," Reverse Pitch Axis "),o()(),n(3,"div",34)(4,"mat-checkbox",115),r(5," Reverse Roll Axis "),o()(),n(6,"div",34)(7,"mat-checkbox",116),r(8," Show Frame "),o()())}function zr(i,s){if(i&1&&(u(0,Qr,40,0,"mat-form-field",34),u(1,qr,9,0),n(2,"mat-form-field",34)(3,"mat-label"),r(4,"Frame Style"),o(),n(5,"mat-select",84)(6,"mat-option",85),r(7,"Black Metal"),o(),n(8,"mat-option",86),r(9,"Metal"),o(),n(10,"mat-option",87),r(11,"Shiny Metal"),o(),n(12,"mat-option",88),r(13,"Brass"),o(),n(14,"mat-option",89),r(15,"Steel"),o(),n(16,"mat-option",90),r(17,"Chrome"),o(),n(18,"mat-option",91),r(19,"Gold"),o(),n(20,"mat-option",92),r(21,"Anthracite"),o(),n(22,"mat-option",93),r(23,"Tilted Gray"),o(),n(24,"mat-option",94),r(25,"Tilted Black"),o(),n(26,"mat-option",95),r(27,"Glossy Metal"),o()()()),i&2){let e=f(2);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 jr(i,s){if(i&1&&(n(0,"div",7)(1,"div",15),u(2,Xn,4,0,"mat-form-field",16),u(3,Kn,2,0,"mat-checkbox",17),u(4,Jn,4,0,"mat-form-field",16),u(5,$n,8,0),u(6,er,4,0,"mat-form-field"),u(7,tr,4,2,"mat-form-field",18),u(8,ir,2,0,"mat-checkbox",19),u(9,ar,2,0,"mat-checkbox",20),u(10,or,4,2,"mat-form-field",21),u(11,sr,6,0,"mat-form-field",22),u(12,cr,2,0,"mat-checkbox",23),u(13,dr,1,2,"display-datetime-options",24),u(14,mr,2,0,"mat-checkbox",25),u(15,pr,4,0,"mat-form-field"),u(16,ur,2,0,"mat-checkbox",26),u(17,Ar,4,0,"mat-form-field"),u(18,gr,2,0,"mat-checkbox",27),u(19,hr,2,0,"mat-checkbox",28),u(20,fr,2,0,"mat-checkbox",29),u(21,br,2,0,"mat-checkbox",30),u(22,_r,2,0,"mat-checkbox",31),u(23,vr,2,0,"mat-checkbox",32),u(24,Cr,4,0,"mat-form-field"),u(25,yr,4,0,"mat-form-field"),u(26,xr,2,0,"mat-checkbox",33),u(27,Mr,4,0,"mat-form-field",34),u(28,Er,2,3),u(29,Dr,14,0),u(30,Ir,8,0,"mat-form-field",35),u(31,Pr,6,0,"mat-form-field",16),u(32,Or,10,0,"mat-form-field",16),u(33,Fr,4,0,"mat-checkbox",36),u(34,Lr,4,0,"mat-form-field"),u(35,Br,4,0,"mat-form-field"),u(36,Vr,2,0,"mat-checkbox",37),u(37,Rr,2,0,"mat-checkbox",38),u(38,Nr,2,0,"mat-checkbox",39),u(39,Ur,6,0,"mat-form-field"),u(40,zr,28,2),o()()),i&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"&&Tt(39,Io).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 Yr(i,s){if(i&1&&(b(0,"span",120),r(1,"\xA0Controls ")),i&2){let e=f(2);At(e.formMaster.controls.multiChildCtrls.valid?"display: none":"display: block")}}function Hr(i,s){if(i&1){let e=P();n(0,"mat-tab",8)(1,"div",117)(2,"div"),Te(3,Yr,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(i&2){let e=f();c(4),p("multiCtrlArray",e.multiChildCtrlsToControl)}}function Zr(i,s){if(i&1&&(n(0,"span",122),r(1," error "),o(),r(2," \xA0Paths ")),i&2){let e=f(2);At(e.formMaster.controls.paths.valid||e.formMaster.controls.paths.disabled?"display: none":"display: block")}}function Xr(i,s){if(i&1&&(n(0,"mat-tab",9)(1,"div",117)(2,"div"),Te(3,Zr,3,2,"ng-template",118),o(),b(4,"paths-options",121),o()()),i&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 Kr(i,s){i&1&&(n(0,"p")(1,"mat-checkbox",125),r(2," Digital display "),o()())}function Jr(i,s){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Dial Size"),o(),n(3,"mat-select",126)(4,"mat-option",127),r(5,"1/4"),o(),n(6,"mat-option",128),r(7,"1/2"),o(),n(8,"mat-option",129),r(9,"3/4"),o(),n(10,"mat-option",74),r(11,"Full"),o()()())}function $r(i,s){if(i&1&&(n(0,"mat-tab",10)(1,"div",7)(2,"mat-form-field",16)(3,"mat-label"),r(4,"Gauge Type"),o(),n(5,"mat-select",70)(6,"mat-option",123),r(7,"Linear"),o(),n(8,"mat-option",124),r(9,"Radial"),o()()(),u(10,Kr,3,0,"p"),u(11,Jr,12,0,"mat-form-field",16),o()()),i&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 el(i,s){i&1&&(n(0,"p")(1,"mat-checkbox",132),r(2," Value to send on button push (checked = on, unchecked = off) "),o()())}function tl(i,s){if(i&1&&(n(0,"mat-tab",11)(1,"div",117)(2,"p")(3,"mat-checkbox",130),r(4," Enable Put Requests "),o()(),n(5,"p")(6,"mat-checkbox",131),r(7," Momentary mode (instead of switching between on/off) "),o()(),u(8,el,3,0,"p"),o()()),i&2){let e=f();c(8),A(e.formMaster.controls.putMomentary.value?8:-1)}}function il(i,s){i&1&&b(0,"span",120)}function al(i,s){if(i&1&&(u(0,il,1,0,"span",120),r(1," Dataset ")),i&2){let e=f(2);A(e.formMaster.controls.datasetUUID.valid?-1:0)}}function ol(i,s){if(i&1&&(n(0,"mat-tab",12),Te(1,al,2,1,"ng-template",118),b(2,"config-dataset-chart-options",133),o()),i&2){let e=f();c(2),p("datasetUUID",e.datasetUUIDToControl)("convertUnitTo",e.convertUnitToControl)}}var Go=(()=>{class i{static KEY_MULTI_CHILD_CTRLS="multiChildCtrls";static KEY_DISPLAY_SCALE="displayScale";static KEY_GAUGE="gauge";static KEY_AUTOPILOT="autopilot";static KEY_PATHS="paths";static KEY_CONVERT_UNIT_TO="convertUnitTo";dialogRef=m(qe);fb=m(yt);DatasetService=m(ii);units=m(wt);app=m(ft);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,a)=>{let t=e.label||"",l=a.label||"";return t.localeCompare(l,void 0,{sensitivity:"base"})}),this.unitList=this.units.getConversionsForPath(""),this.formMaster=this.generateFormGroups(this.widgetConfig),this.colors=this.app.configurableThemeColors}isPlainObject(e){return Object.prototype.toString.call(e)==="[object Object]"}generateFormGroups(e,a){let t=this.fb.group({});return Object.keys(e).forEach(l=>{let d=e[l];if(d!==null&&(Array.isArray(d)||this.isPlainObject(d))){if(l===i.KEY_MULTI_CHILD_CTRLS){t.addControl(l,this.fb.array([]));let g=t.get(l);d.forEach(C=>{g.push(this.generateCtrlArray(C))})}else if(l===i.KEY_DISPLAY_SCALE)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_GAUGE)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_AUTOPILOT)t.addControl(l,this.generateFormGroups(d,l));else if(l===i.KEY_PATHS){let 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(D=>{let G=g[D];if(G){let k=this.generatePathArray(D,G);G.isPathConfigurable===!1&&k.disable(),C.push(k)}})}else{let C=this.fb.group({});Object.keys(g).forEach(D=>{let G=g[D];if(G){let k=this.generateFormGroups(G,D);G.isPathConfigurable===!1&&k.disable(),C.addControl(D,k)}}),t.addControl(l,C)}}a===i.KEY_PATHS&&t.addControl(l,this.generateFormGroups(d,l))}else if(a===i.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,a){let t=new Na({});return Object.keys(a).forEach(l=>{t.addControl(l,this.generatePathFields(l,a[l]))}),t}generatePathFields(e,a){let t=null;switch(e){case"path":t=new de(a);break;case"source":t=new de(a,Y.required);break;case"sampleTime":t=new de(a,Y.required);break;default:t=new de(a);break}return t}generateCtrlArray(e){let a=this.fb.group(e);return a.get("ctrlLabel").addValidators(Y.required),a}addPathGroup(e){this.addPathEvent=e}updatePath(e){e.forEach(a=>{this.formMaster.get("paths").controls.forEach(l=>{l.get("pathID").value==a.pathID&&(l.controls.description.setValue(a.ctrlLabel),l.controls.pathType.setValue(a.isNumeric?"number":"boolean"),this.updatePathEvent=e)})})}deletePath(e){let a=this.formMaster.get("paths"),t=0;a.controls.forEach(d=>{d.get("pathID").value==e.pathID?a.removeAt(t):t++}),this.formMaster.get("multiChildCtrls").removeAt(e.ctrlIndex),this.delPathEvent=e.pathID,this.formMaster.updateValueAndValidity()}get convertUnitToControl(){return this.formMaster.get("convertUnitTo")}get datasetUUIDToControl(){return this.formMaster.get("datasetUUID")}get filterSelfPathsToControl(){return this.formMaster.get("filterSelfPaths")}get dataTimeoutToControl(){return this.formMaster.get("dataTimeout")}get enableTimeoutToControl(){return this.formMaster.get("enableTimeout")}get dateTimezoneToControl(){return this.formMaster.get("dateTimezone")}get yScaleSuggestedMaxToControl(){return this.formMaster.get("yScaleSuggestedMax")}get enableMinMaxScaleLimitToControl(){return this.formMaster.get("enableMinMaxScaleLimit")}get showDatasetMinimumValueLineToControl(){return this.formMaster.get("showDatasetMinimumValueLine")}get showDatasetMaximumValueLineToControl(){return this.formMaster.get("showDatasetMaximumValueLine")}get showDatasetAverageValueLineToControl(){return this.formMaster.get("showDatasetAverageValueLine")}get showDatasetAngleAverageValueLineToControl(){return this.formMaster.get("showDatasetAngleAverageValueLine")}get startScaleAtZeroToControl(){return this.formMaster.get("startScaleAtZero")}get showLabelToControl(){return this.formMaster.get("showLabel")}get showTimeScaleToControl(){return this.formMaster.get("showTimeScale")}get showYScaleToControl(){return this.formMaster.get("showYScale")}get yScaleSuggestedMinToControl(){return this.formMaster.get("yScaleSuggestedMin")}get yScaleMinToControl(){return this.formMaster.get("yScaleMin")}get yScaleMaxToControl(){return this.formMaster.get("yScaleMax")}get datasetAverageArrayToControl(){return this.formMaster.get("datasetAverageArray")}get trackAgainstAverageToControl(){return this.formMaster.get("trackAgainstAverage")}get showAverageDataToControl(){return this.formMaster.get("showAverageData")}get displayNameToControl(){return this.formMaster.get("displayName")}get numDecimalToControl(){return this.formMaster.get("numDecimal")}get verticalChartToControl(){return this.formMaster.get("verticalChart")}get inverseYAxisToControl(){return this.formMaster.get("inverseYAxis")}get colorToControl(){return this.formMaster.get("color")}get dateFormatToControl(){return this.formMaster.get("dateFormat")}get multiChildCtrlsToControl(){return this.formMaster.get("multiChildCtrls")}submitConfig(){this.dialogRef.close(this.formMaster.getRawValue())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["modal-widget-config"]],decls:20,vars:9,consts:[[3,"ngSubmit","formGroup"],["mat-dialog-title",""],[1,"widget-config-dialog-content"],[1,"tab-group-content"],["label","Display"],[1,"tab-content",3,"displayName","datasetUUID","convertUnitTo","showAverageData","trackAgainstAverage","datasetAverageArray","showDatasetMinimumValueLine","showDatasetMaximumValueLine","showDatasetAverageValueLine","showDatasetAngleAverageValueLine","startScaleAtZero","showLabel","showTimeScale","showYScale","yScaleSuggestedMin","yScaleSuggestedMax","enableMinMaxScaleLimit","yScaleMin","yScaleMax","numDecimal","verticalChart","inverseYAxis","color"],["formGroupName","autopilot",1,"tab-content"],[1,"display-content","tab-content"],["label","Controls"],["label","Paths"],["label","Settings","formGroupName","gauge"],["label","Put Request"],["label","Dataset"],["type","button","mat-dialog-close","","mat-flat-button",""],["mat-flat-button","","type","submit",3,"disabled"],[1,"widget-options-grid"],[1,"options-grid-span2"],["name","allowInput","formControlName","allowInput",1,"options-grid-span2"],[3,"class"],["name","showMin","formControlName","showMin"],["name","showMax","formControlName","showMax"],[3,"options-grid-span2"],[1,"fields"],["name","playBeeps","formControlName","playBeeps"],[1,"options-grid-span2",3,"dateFormat","dateTimezone"],["name","laylineEnable","formControlName","laylineEnable",1,"fields"],["name","windSectorEnable","formControlName","windSectorEnable"],["name","awsEnable","formControlName","awsEnable"],["name","twsEnable","formControlName","twsEnable"],["name","courseOverGroundEnable","formControlName","courseOverGroundEnable"],["name","twaEnable","formControlName","twaEnable"],["name","waypointEnable","formControlName","waypointEnable"],["name","driftEnable","formControlName","driftEnable"],["name","ignoreZones","formControlName","ignoreZones"],["formGroupName","gauge"],["formGroupName","gauge",1,"options-grid-span2"],["name","showMiniChart","formControlName","showMiniChart",1,"options-grid-span2"],["name","inverseYAxis","formControlName","inverseYAxis"],["name","verticalChart","formControlName","verticalChart"],["name","noBgColor","formControlName","noBgColor"],["type","url","matInput","","placeholder","Enter URL to page/resource","name","widgetUrl","formControlName","widgetUrl"],["matInput","","placeholder","Enter a label to display","name","displayName","formControlName","displayName"],["formGroupName","displayScale","appearance","outline"],["matNativeControl","","type","number","name","lower","formControlName","lower","placeholder","Enter number..."],["matInput","","type","number","name","upper","formControlName","upper","placeholder","Enter number..."],["type","number","min","1","max","5","matInput","","placeholder","Enter or select number...","name","numInt","formControlName","numInt","required",""],["type","number","min","0","max","5","matInput","","placeholder","Enter or select number...","name","numDecimal","formControlName","numDecimal","required",""],["type","number","min","0","max","99","matInput","","placeholder","Enter or select number...","name","nextDashboard","formControlName","nextDashboard"],["placeholder","Select unit","formControlName","convertUnitTo","required",""],[3,"label"],[3,"value"],["type","number","min","10","max","90","matInput","","placeholder","Select angle...","name","laylineAngle","formControlName","laylineAngle"],["type","number","min","1","max","90","matInput","","placeholder","Select or enter duration...","name","windSectorWindowSeconds","formControlName","windSectorWindowSeconds"],["matInput","","type","number","name","minValue","formControlName","minValue","placeholder","Enter or select number..."],["matInput","","type","number","name","maxValue","formControlName","maxValue","placeholder","Enter or select number..."],["type","number","min","0","max","25","matInput","","placeholder","Enter or select number...","name","highlightsWidth","formControlName","highlightsWidth","required",""],["placeholder","Select Gauge Type...","formControlName","subType","name","subType"],["value","marineCompass"],["value","baseplateCompass"],["name","showValueBox","formControlName","showValueBox"],["name","compassUseNumbers","formControlName","compassUseNumbers"],["value","measuring"],["value","capacity"],["placeholder","Select start position...","formControlName","barStartPosition","name","barStartPosition"],["value","left"],["value","middle"],["value","right"],["type","number","min","1","max","360","matInput","","placeholder","Enter or select number...","name","scaleStart","formControlName","scaleStart","required",""],["name","useNeedle","formControlName","useNeedle"],["name","enableTicks","formControlName","enableTicks"],["placeholder","Select type...","formControlName","subType","name","subType"],["value","vertical"],["value","horizontal"],["placeholder","Select label format","formControlName","unitLabelFormat","name","unitLabelFormat"],["value","full"],["value","abr"],["placeholder","Select Color...","formControlName","color","name","color","required",""],["placeholder","Select span duration...","formControlName","timeScale","name","timeScale","required",""],["value","Last Minute"],["value","Last 5 Minutes"],["value","Last 30 Minutes"],["type","number","matInput","","placeholder","Enter or select number...","name","yScaleMin","formControlName","yScaleMin","required",""],["type","number","matInput","","placeholder","Enter or select number...","name","yScaleMax","formControlName","yScaleMax","required",""],["placeholder","Select Color...","formControlName","bgColor","name","bgColor","required",""],["placeholder","Select style...","formControlName","faceColor","name","faceColor"],["value","blackMetal"],["value","metal"],["value","shinyMetal"],["value","brass"],["value","steel"],["value","chrome"],["value","gold"],["value","anthracite"],["value","tiltedGray"],["value","tiltedBlack"],["value","glossyMetal"],["placeholder","Select style...","formControlName","backgroundColor","name","backgroundColor"],["value","darkGray"],["value","satinGray"],["value","lightGray"],["value","white"],["value","black"],["value","beige"],["value","brown"],["value","red"],["value","green"],["value","blue"],["value","mud"],["value","punchedSheet"],["value","carbon"],["value","stainless"],["value","brushedMetal"],["value","brushedStainless"],["value","turned"],["name","invertPitch","formControlName","invertPitch"],["name","invertRoll","formControlName","invertRoll"],["name","noFrameVisible","formControlName","noFrameVisible"],[1,"tab-content"],["mat-tab-label",""],[3,"addPath","updatePath","delPath","multiCtrlArray"],[1,"warning","fa","fa-exclamation-circle"],["formGroupName","paths",3,"isArray","enableTimeout","dataTimeout","filterSelfPaths","addPathEvent","delPathEvent","updatePathEvent"],[1,"warning","material-icons"],["value","linear"],["value","radial"],["formControlName","digitalMeter","name","digitalMeter"],["placeholder","Select size...","formControlName","radialSize","name","radialSize"],["value","quarter"],["value","half"],["value","three-quarter"],["formControlName","putEnable","name","putEnable"],["formControlName","putMomentary","name","putMomentary"],["formControlName","putMomentaryValue","name","putMomentaryValue"],[3,"datasetUUID","convertUnitTo"]],template:function(a,t){a&1&&(n(0,"form",0),_("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,Hn,1,23,"config-display-chart-options",5)(7,Zn,1,0,"select-autopilot",6)(8,jr,41,40,"div",7),o(),u(9,Hr,5,1,"mat-tab",8),u(10,Xr,5,7,"mat-tab",9),u(11,$r,12,2,"mat-tab",10),u(12,tl,9,1,"mat-tab",11),u(13,ol,3,2,"mat-tab",12),o()(),b(14,"mat-divider"),n(15,"mat-dialog-actions")(16,"button",13),r(17,"Cancel"),o(),n(18,"button",14),r(19," Save "),o()()()),a&2&&(p("formGroup",t.formMaster),c(2),S(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,Ct,$t,B,H,Xe,qa,xe,je,Ye,vt,He,we,R,V,Ke,oe,co,ro,lo,so,$e,Se,Je,me,Z,Mt,ti,Ha,ce,Qe,To,bo,_o,ho,ko,Do],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.widget-config-dialog-content[_ngcontent-%COMP%]{height:100%}.display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}.warning[_ngcontent-%COMP%]{color:var(--mat-sys-error-container)}.tab-group-content[_ngcontent-%COMP%]{overflow:hidden;width:100%}"]})}return i})();var nl=["button"],rl=["*"];function ll(i,s){if(i&1&&(n(0,"div",2),b(1,"mat-pseudo-checkbox",6),o()),i&2){let e=f();c(),p("disabled",e.disabled)}}var Po=new J("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:sl});function sl(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Oo=new J("MatButtonToggleGroup"),cl={provide:Kt,useExisting:kt(()=>ki),multi:!0},ci=class{source;value;constructor(s,e){this.source=s,this.value=e}},ki=(()=>{class i{_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(Et).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(a=>a.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}valueChange=new 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(Po,{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 a=new ci(e,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(e,a,t=!1,l=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(e):this._selectionModel.deselect(e):l=!0,l?Promise.resolve().then(()=>this._updateModelValue(e,t)):this._updateModelValue(e,t)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>e.value!=null&&a===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;e<this._buttonToggles.length;e++){let a=this._buttonToggles.get(e);if(!a.disabled){a.tabIndex=0;break}}}_getNextButton(e,a){let t=this._buttonToggles;for(let l=1;l<=t.length;l++){let d=(e+a*l+t.length)%t.length,g=t.get(d);if(g&&!g.disabled)return g}return null}_setSelectionByValue(e){if(this._rawValue=e,!this._buttonToggles)return;let a=this._buttonToggles.toArray();if(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(t=>this._selectValue(t,a))):(this._clearSelection(),this._selectValue(e,a)),!this.multiple&&a.every(t=>t.tabIndex===-1)){for(let t of a)if(!t.disabled){t.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e,a){for(let t of a)if(t.value===e){t.checked=!0,this._selectionModel.select(t),this.multiple||(t.tabIndex=0);break}}_updateModelValue(e,a){a&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,t,l){if(a&1&&ue(l,di,5),a&2){let d;z(d=j())&&(t._buttonToggles=d)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,t){a&1&&_("keydown",function(d){return t._keydown(d)}),a&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([cl,{provide:Oo,useExisting:i}])]})}return i})(),di=(()=>{class i{_changeDetectorRef=m(nt);_elementRef=m(pe);_focusMonitor=m(ga);_idGenerator=m(Et);_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(Oo,{optional:!0}),a=m(new $i("tabindex"),{optional:!0})||"",t=m(Po,{optional:!0});this._tabIndex=T(parseInt(a)||0),this.buttonToggleGroup=e,this.appearance=t&&t.appearance?t.appearance:"standard",this.disabledInteractive=t?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(t=>t.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new ci(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-button-toggle"]],viewQuery:function(a,t){if(a&1&&Ve(nl,5),a&2){let l;z(l=j())&&(t._buttonElement=l.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,t){a&1&&_("focus",function(){return t.focus()}),a&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:rl,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(a,t){if(a&1){let l=P();ve(),n(0,"button",1,0),_("click",function(){return M(l),w(t._onButtonClick())}),u(2,ll,2,1,"div",2),n(3,"span",3),X(4),o()(),b(5,"span",4)(6,"span",5)}if(a&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 i})(),Fo=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=_e({type:i});static \u0275inj=be({imports:[$,Xt,di,$]})}return i})();var ml=["Core","Gauge","Component","Racing"];var Lo=(()=>{class i{_plugins=m(ai);_widgetCategories=[...ml];_widgetDefinition=[{name:"Numeric",description:"Displays numeric data in a clear and concise format, with options to show minimum and/or maximum recorded values. Includes an optional background minichart for quick visual trend insights.",icon:"numericWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-numeric",componentClassName:"WidgetNumericComponent"},{name:"Text",description:"Displays text data with a customizable color formatting option.",icon:"textWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-text",componentClassName:"WidgetTextComponent"},{name:"Date & Time",description:"Displays date and time data with fully custom formatting options and timezone correction.",icon:"datetimeWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-datetime",componentClassName:"WidgetDatetimeComponent"},{name:"Position",description:"Displays latitude and longitude for location tracking and navigation.",icon:"positionWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-position",componentClassName:"WidgetPositionComponent"},{name:"Static Label",description:"A static text widget that allows you to add customizable labels to your dashboard, helping to organize and clarify your layout effectively.",icon:"labelWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-label",componentClassName:"WidgetLabelComponent"},{name:"Switch Panel",description:"A switch panel group with multiple controls including toggle switches, indicator lights, and press buttons for digital switching and other operations.",icon:"switchpanelWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-boolean-switch",componentClassName:"WidgetBooleanSwitchComponent"},{name:"Slider",description:"A range slider that allows users to adjust values, such as controlling lighting intensity from 0% to 100%.",icon:"sliderWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",requiredPlugins:[],selector:"widget-slider",componentClassName:"WidgetSliderComponent"},{name:"Compact Linear",description:"A simple horizontal linear gauge with a large value label offering a clean, compact modern look.",icon:"simpleLinearGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-simple-linear",componentClassName:"WidgetSimpleLinearComponent"},{name:"Linear",description:"A horizontal or vertical linear gauge that supports zone highlighting.",icon:"linearGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-linear",componentClassName:"WidgetGaugeNgLinearComponent"},{name:"Radial",description:"A radial gauge with configurable capacity and measurement dials plus zone highlighting.",icon:"radialGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-radial",componentClassName:"WidgetGaugeNgRadialComponent"},{name:"Compass",description:"A faceplate or card-style rotating compass gauge with multiple cardinal point indicator options.",icon:"compassGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-ng-compass",componentClassName:"WidgetGaugeNgCompassComponent"},{name:"Pitch & Roll",description:"Horizon-style attitude indicator showing live pitch and roll (\xB0) with smooth animation\u2014ideal for monitoring trim, heel, and sea-state response.",icon:"pitchRollGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-horizon",componentClassName:"WidgetHorizonComponent"},{name:"Classic Steel",description:"A traditional steel looking linear & radial gauges replica that supports range sizes and zones highlights.",icon:"steelGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",requiredPlugins:[],selector:"widget-gauge-steel",componentClassName:"WidgetSteelGaugeComponent"},{name:"Windsteer",description:"A wind steering display that combines wind, wind sectors, heading, course over ground and next waypoint information.",icon:"windsteeringWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-wind-steer",componentClassName:"WidgetWindComponent"},{name:"Freeboard-SK",description:"Adds the Freeboard-SK chart plotter as a widget with automatic sign-in to your dashboard.",icon:"freeboardWidget",minWidth:3,minHeight:4,defaultWidth:3,defaultHeight:7,category:"Component",requiredPlugins:["freeboard-sk","tracks","resources-provider","course-provider"],selector:"widget-freeboardsk",componentClassName:"WidgetFreeboardskComponent"},{name:"Autopilot Head",description:"Provides typical autopilot controls for Signal K v1 & v2 Autopilot API devices. Requires a compatible hardware-specific Autopilot plugin for full functionality.",icon:"autopilotWidget",minWidth:2,minHeight:7,defaultWidth:2,defaultHeight:7,category:"Component",requiredPlugins:[],optionalPlugins:["autopilot","pypilot-autopilot-provider"],selector:"widget-autopilot",componentClassName:"WidgetAutopilotComponent"},{name:"Realtime Data Chart",description:"Visualizes data on a real-time chart with multiple preconfigured series including actuals, SMA and period overall averages and Min/Max. Requires the KIP Dataset to be configured.",icon:"datachartWidget",minWidth:1,minHeight:2,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-data-chart",componentClassName:"WidgetDataChartComponent"},{name:"Embed Webpage Viewer",description:"Embeds external web-based applications\u2014such as Grafana graphs or other Signal K apps\u2014into your dashboard for seamless integration. Interaction is disabled by default but can be enabled.",icon:"embedWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Component",requiredPlugins:[],selector:"widget-iframe",componentClassName:"WidgetIframeComponent"},{name:"Racesteer",description:"A dynamic race steering display that fuses polar performance data with live conditions to guide optimal steering, tacking, and gybing angles for maximum speed. Instantly compare performance against competition polars for smarter tactical decisions.",icon:"racesteeringWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Racing",requiredPlugins:["signalk-polar-performance-plugin"],selector:"widget-racesteer",componentClassName:"WidgetRacesteerComponent"},{name:"Racer - Start Line Insight",description:"Gain a tactical advantage for racing starts: set and adjust the port and starboard ends of the start line, see your distance to the line, the favored end, and how much the line is favored or unfavored. Includes visual integration with Freeboard SK for interactive line adjustment and display.",icon:"racerlineWidget",minWidth:2,minHeight:2,defaultWidth:2,defaultHeight:2,requiredPlugins:["signalk-racer"],category:"Racing",selector:"widget-racer-line",componentClassName:"WidgetRacerLineComponent"},{name:"Racer - Start Timer",description:"An advanced racing countdown timer that indicates OCS (On Course Side) status. Set the start line, choose or adjust the duration, or specify the exact start time. Automatically switches to the target dashboard at the start unless over early.",icon:"racertimerWidget",minWidth:2,minHeight:2,defaultWidth:2,defaultHeight:2,requiredPlugins:["signalk-racer"],category:"Racing",selector:"widget-racer-timer",componentClassName:"WidgetRacerTimerComponent"},{name:"Wind Trends",description:"Real-time True Wind trends with dual top axes for direction (\xB0) and speed (knots). Displays live values and SMA over the current period\u2019s average.",icon:"windtrendsWidget",minWidth:5,minHeight:4,defaultWidth:5,defaultHeight:4,category:"Racing",requiredPlugins:[],selector:"widget-windtrends-chart",componentClassName:"WidgetWindTrendsChartComponent"},{name:"Countdown Timer",description:"A simple race start countdown timer that can be started, paused, synced, reset, and configured for duration.",icon:"racetimerWidget",minWidth:3,minHeight:3,defaultWidth:3,defaultHeight:4,category:"Racing",requiredPlugins:[],selector:"widget-racetimer",componentClassName:"WidgetRaceTimerComponent"}];get kipWidgets(){return this._widgetDefinition}get categories(){return this._widgetCategories}getKipWidgetsWithStatus(){return N(this,null,function*(){let e={},a=Array.from(new Set(this._widgetDefinition.flatMap(t=>[...t.requiredPlugins||[],...t.optionalPlugins||[]])));return yield Promise.all(a.map(t=>N(this,null,function*(){e[t]=yield this._plugins.isEnabled(t)}))),this._widgetDefinition.map(t=>{let l=t.requiredPlugins||[],d=t.optionalPlugins||[],g=l.map(k=>({name:k,enabled:e[k],required:!0})),C=d.map(k=>({name:k,enabled:e[k],required:!1})),D=[...g,...C],G=g.every(k=>k.enabled);return G&&d.length>0&&(G=C.some(k=>k.enabled)),he(re({},t),{isDependencyValid:G,pluginsStatus:D})})})}static \u0275fac=function(a){return new(a||i)};static \u0275prov=fe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function pl(i,s){i&1&&(n(0,"span"),r(1,", "),o())}function ul(i,s){if(i&1&&(n(0,"span",8),r(1),n(2,"span",9),r(3),o()(),u(4,pl,2,0,"span")),i&2){let e=s.$implicit,a=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),S(e.required?"":"(optional)"),c(),A(a!==t-1?4:-1)}}function Al(i,s){if(i&1&&(n(0,"div",7)(1,"span"),r(2,"Plugins:"),o(),y(3,ul,5,6,null,null,E),o()),i&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 Bo=(()=>{class i{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),a=m(ca);i._iconSetRegistered||(e.addSvgIconSet(a.bypassSecurityTrustResourceUrl("assets/svg/icons.svg")),i._iconSetRegistered=!0)}onKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.target.click())}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["widget-list-card"]],hostBindings:function(a,t){a&1&&_("keydown",function(d){return t.onKeydown(d)})},inputs:{svgIcon:[1,"svgIcon"],iconSize:[1,"iconSize"],name:[1,"name"],description:[1,"description"],pluginsStatus:[1,"pluginsStatus"],pluginDependencyValid:[1,"pluginDependencyValid"]},decls:9,vars:11,consts:[["role","button","tabindex","0",1,"item-container"],[1,"item-icon"],["aria-hidden","false",3,"svgIcon"],[1,"item-label"],[1,"title","no-text-select"],[1,"dependency","no-text-select",3,"style"],[1,"description","no-text-select"],[1,"dependency","no-text-select"],[3,"ngClass"],[1,"plugin-type-label"]],template:function(a,t){a&1&&(n(0,"div",0)(1,"div",1),b(2,"mat-icon",2),o(),n(3,"div",3)(4,"p",4),r(5),o(),u(6,Al,5,4,"div",5),n(7,"span",6),r(8),o()()()),a&2&&(q("aria-disabled",t.pluginDependencyValid()?null:"true"),c(2),Rt("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(),S(t.name()),c(),A(t.pluginsStatus().length>0?6:-1),c(2),S(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 i})();var gl=(i,s)=>s.selector;function hl(i,s){if(i&1&&(n(0,"mat-button-toggle",1),r(1),o()),i&2){let e=s.$implicit;p("value",e),c(),U(" ",e," ")}}function fl(i,s){if(i&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(i&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 Vo=(()=>{class i{_dialogRef=m(qe);_widgets=m(Lo);_widgetsList=[];filteredWidgetsList=T([]);_widgetCategory=T("Core");isDependencyValid=T(!0);ngOnInit(){this.loadWidgets()}loadWidgets(){return N(this,null,function*(){this._widgetsList=yield this._widgets.getKipWidgetsWithStatus(),this.filteredWidgetsList.set(this._widgetsList.filter(e=>e.category===this._widgetCategory()))})}onCategoryChange(e){this.filteredWidgetsList.set(this._widgetsList.filter(a=>a.category===e.value)),this._widgetCategory.set(e.value)}onSelectWidget(e){if(!e.isDependencyValid)return;let{name:a,description:t,icon:l,minWidth:d,minHeight:g,defaultWidth:C,defaultHeight:D,category:G,requiredPlugins:k,optionalPlugins:et,selector:tt,componentClassName:Ot}=e,it=he(re({name:a,description:t,icon:l,minWidth:d,minHeight:g,defaultWidth:C,defaultHeight:D,category:G,requiredPlugins:k},et?{optionalPlugins:et}:{}),{selector:tt,componentClassName:Ot});this._dialogRef.close(it)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["widgets-list"]],decls:7,vars:1,consts:[["name","widgetCategories","aria-label","Widget categories",1,"list-filter",3,"change","value"],[3,"value"],[3,"dependency-missing","svgIcon","iconSize","name","description","pluginDependencyValid","pluginsStatus"],[3,"click","svgIcon","iconSize","name","description","pluginDependencyValid","pluginsStatus"]],template:function(a,t){a&1&&(n(0,"div")(1,"mat-button-toggle-group",0),_("change",function(d){return t.onCategoryChange(d)}),y(2,hl,2,2,"mat-button-toggle",1,E),o(),n(4,"div"),y(5,fl,1,8,"widget-list-card",2,gl),o()()),a&2&&(c(),p("value",t._widgetCategory()),c(),x(t._widgets.categories),c(3),x(t.filteredWidgetsList()))},dependencies:[Fo,ki,di,Bo],styles:[".list-filter[_ngcontent-%COMP%]{margin-bottom:20px}.dependency-missing[_ngcontent-%COMP%]{pointer-events:none;opacity:.8;background-color:var(--mat-sys-neutral10)}"]})}return i})();var Ro=(()=>{class i{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 a of e){let t=yield this.transformConfig(a);if(t)if(t.scope==="global")try{this._storage.patchGlobal(t.name,t.scope,t.newConfiguration,"add"),this._storage.patchGlobal(t.name,t.scope,t.oldConfiguration,"replace",9),console.log(`[Upgrade] Configuration ${t.scope}/${t.name} has been upgraded to version ${this.currentConfigVersion} and saved. Old configuration has been patched to version 0.`)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}`)}else this._storage.setConfig(t.scope,t.name,t.newConfiguration).then(()=>{this._storage.setConfig(t.scope,t.name,t.oldConfiguration,9),console.log(`[Upgrade] Configuration ${t.scope}/${t.name} has been upgraded to version ${this.currentConfigVersion} and saved. Old configuration has been patched to version 0.`)}).catch(l=>{console.error(`[Upgrade] Error saving configuration for ${a.name}:`,l)})}})).catch(e=>{console.error("Error fetching configuration data:",e)});else{let e={app:null,widget:null,layout:null,theme:null};e.app=this._settings.loadConfigFromLocalStorage("appConfig"),e.widget=this._settings.loadConfigFromLocalStorage("widgetConfig"),e.layout=this._settings.loadConfigFromLocalStorage("layoutConfig"),e.theme=this._settings.loadConfigFromLocalStorage("themeConfig");let a=this.transformApp(e.app),t=this.transformTheme(e.theme),l=e.layout?.rootSplits||[],d=e.layout?.splitSets||[],g=e.widget?.widgets||[],C=l.map((D,G)=>{let k=this.extractWidgetsFromSplitSets(d,g,D);return{id:D,name:`Dashboard ${G+1}`,configuration:k}});localStorage.setItem("appConfig",JSON.stringify(a)),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 a=yield this._storage.getConfig(e.scope,e.name,this.fileVersionToUpgrade);if(a.app.configVersion!==this.configVersionToUpgrade)return console.error(`[Upgrade Component] Configuration ${e.scope}/${e.name} is not an upgradable version ${this.configVersionToUpgrade} config. Skipping upgrade. Please delete old configuration files.`),null;let t=this.transformApp(a.app),l=this.transformTheme(a.theme),d=a.layout?.rootSplits||[],g=a.layout?.splitSets||[],C=a.widget?.widgets||[],D=d.map((k,et)=>{let tt=this.extractWidgetsFromSplitSets(g,C,k);return{id:k,name:`Dashboard ${et+1}`,configuration:tt}}),G=Qt(a);return G.app.configVersion=0,{scope:e.scope,name:e.name,newConfiguration:{app:t,theme:l,dashboards:D},oldConfiguration:G}})}transformWidget(e,a){if(e.color==="white"&&(e.color="contrast"),e.textColor){switch(e.textColor){case"text":e.color="contrast";break;case"primary":e.color="blue";break;case"accent":e.color="yellow";break;case"warn":e.color="purple";break;case"nobar":a==="WidgetGaugeNgLinearComponent"&&(e.color="blue",e.gauge=e.gauge||{},e.gauge.useNeedle=!1);break;default:e.color=e.textColor}delete e.textColor}return e}transformApp(e){return e?(e.configVersion=11,e.nightModeBrightness=.27,e):null}transformTheme(e){return e?{themeName:""}:null}extractWidgetsFromSplitSets(e,a,t){let l=new Map(a.map(it=>[it.uuid,it])),d=[],g=[],C=0,D=0,G=12,k=12,et=2,tt=2,Ot=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(D+tt>k){g.push(`No space left in the grid for widget with UUID: ${ke.uuid}`);return}let Pi=i.widgetTypeToSelectorMap[ke.type]||"widget-unknown",Yo=this.transformWidget(ke.config,ke.type);d.push({id:ke.uuid,selector:Pi,input:{widgetProperties:{type:Pi,uuid:ke.uuid,config:Yo}},x:C,y:D,w:et,h:tt}),C+=et,C>=G&&(C=0,D+=tt)}else g.push(`Missing widget with UUID: ${at.uuid}`)}else at.type==="splitSet"&&Ot(at.uuid)})};return Ot(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 a of e){let t=yield this._storage.getConfig(a.scope,a.name,this.fileVersionToUpgrade);if(t.app.configVersion=0,a.scope==="global")try{setTimeout(()=>{this._storage.patchGlobal(a.name,a.scope,t,"replace",9),console.log(`[Retired] Configuration ${a.scope}/${a.name} has been patched to version 0.`)},750)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}:`)}else try{yield this._storage.setConfig(a.scope,a.name,t,9),console.log(`[Retired] Configuration ${a.scope}/${a.name} has been patched to version 0.`)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}.`)}}})).catch(e=>{console.error("Error fetching configuration data:",e)});else{let e={app:null,dashboards:null,theme:null};e.app=this._settings.loadConfigFromLocalStorage("appConfig"),e.theme=this._settings.loadConfigFromLocalStorage("themeConfig"),e.app.configVersion=11,e.app.nightModeBrightness=.27,e.theme.themeName="",localStorage.setItem("appConfig",JSON.stringify(e.app)),localStorage.setItem("themeConfig",JSON.stringify(e.theme)),localStorage.removeItem("widgetConfig"),localStorage.removeItem("layoutConfig")}this.dialogRef.close()}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["upgrade-config"]],decls:193,vars:0,consts:[[1,"warning"],[1,"nav-table"],[2,"font-size","x-large"],["href","https://discord.gg/AMDYT2DQga","target","_blank"],[1,"button-group"],["mat-flat-button","",3,"click"],["mat-flat-button","",2,"margin-left","20px",3,"click"]],template:function(a,t){a&1&&(n(0,"h2"),r(1,"All New Touch, Mouse, and Keyboard Navigation"),o(),n(2,"p",0)(3,"strong"),r(4,"Heads up:"),o(),r(5," The new version introduces a completely redesigned fullscreen interface with no navigation bar. Please review the input modes table below to get an understanding of the new ways to operate KIP before upgrading. After the upgrade, give yourself time to get comfortable with the changes."),o(),n(6,"table",1)(7,"thead")(8,"tr")(9,"th"),r(10,"Actions"),o(),n(11,"th"),r(12,"Touch"),o(),n(13,"th"),r(14,"Mouse"),o(),n(15,"th"),r(16,"Keyboard Shortcuts"),o()()(),n(17,"tbody")(18,"tr")(19,"td"),r(20,"Open Actions menu"),o(),n(21,"td"),r(22,"Swipe left"),o(),n(23,"td"),r(24,"Click, drag left, and release"),o(),n(25,"td")(26,"kbd"),r(27,"Shift"),o(),r(28," + "),n(29,"kbd"),r(30,"Ctrl"),o(),r(31," + "),n(32,"kbd",2),r(33,"\u2190"),o(),r(34," (Left Arrow)"),o()(),n(35,"tr")(36,"td"),r(37,"Open Notification menu"),o(),n(38,"td"),r(39,"Swipe right"),o(),n(40,"td"),r(41,"Click, drag right, and release"),o(),n(42,"td")(43,"kbd"),r(44,"Shift"),o(),r(45," + "),n(46,"kbd"),r(47,"Ctrl"),o(),r(48," + "),n(49,"kbd",2),r(50,"\u2192"),o(),r(51," (Right Arrow)"),o()(),n(52,"tr")(53,"td"),r(54,"Cycle through dashboards"),o(),n(55,"td"),r(56,"Swipe up/down"),o(),n(57,"td"),r(58,"Click, drag up/down, and release"),o(),n(59,"td")(60,"kbd"),r(61,"Shift"),o(),r(62," + "),n(63,"kbd"),r(64,"Ctrl"),o(),r(65," + "),n(66,"kbd",2),r(67,"\u2191"),o(),r(68,"/"),n(69,"kbd",2),r(70,"\u2193"),o(),r(71," (Up/Down Arrow)"),o()(),n(72,"tr")(73,"td"),r(74,"Toggle Fullscreen"),o(),n(75,"td"),r(76,"N/A"),o(),n(77,"td"),r(78,"N/A"),o(),n(79,"td")(80,"kbd"),r(81,"Shift"),o(),r(82," + "),n(83,"kbd"),r(84,"Ctrl"),o(),r(85," + "),n(86,"kbd"),r(87,"F"),o()()(),n(88,"tr")(89,"td"),r(90,"Toggle Night mode"),o(),n(91,"td"),r(92,"N/A"),o(),n(93,"td"),r(94,"N/A"),o(),n(95,"td")(96,"kbd"),r(97,"Shift"),o(),r(98," + "),n(99,"kbd"),r(100,"Ctrl"),o(),r(101," + "),n(102,"kbd"),r(103,"N"),o()()(),n(104,"tr")(105,"td"),r(106,"Toggle dashboard edit mode"),o(),n(107,"td"),r(108,"N/A"),o(),n(109,"td"),r(110,"N/A"),o(),n(111,"td")(112,"kbd"),r(113,"Shift"),o(),r(114," + "),n(115,"kbd"),r(116,"Ctrl"),o(),r(117," + "),n(118,"kbd"),r(119,"E"),o()()()()(),n(120,"i"),r(121,"Note that the words Touch and Tap are synonymous with mouse click."),o(),b(122,"br")(123,"br"),n(124,"h2"),r(125,"Migration Limitations"),o(),n(126,"p")(127,"span",0),r(128,"Important:"),o(),r(129," The new widget layout engine is "),n(130,"strong"),r(131,"completely different"),o(),r(132," from the previous version. When you upgrade, your configuration will be migrated, but "),n(133,"strong"),r(134,"the way dashboards and widgets are arranged will change significantly"),o(),r(135,`.
|
|
7
|
+
`),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 i})();var Sp=(()=>{class i{dialog=m(Va);openFrameDialog(e,a){switch(e.component){case"select-widget":e.componentType=Vo;break;case"upgrade-config":e.componentType=Ro;break}return this.dialog.open(mo,{data:e,height:a?"calc(100% - 30px)":"",width:a?"calc(100% - 30px)":"",maxWidth:a?"100%":"",maxHeight:a?"100%":""}).afterClosed()}openConfirmationDialog(e){return this.dialog.open(po,{data:e,minWidth:"35vw",minHeight:"25vh"}).afterClosed()}openNameDialog(e){return this.dialog.open(Ao,{data:e,minWidth:"20vw",minHeight:"20vh",disableClose:!0})}openWidgetOptions(e){return this.dialog.open(Go,{data:e.config,minWidth:"50vw",maxWidth:"90vw"})}static \u0275fac=function(a){return new(a||i)};static \u0275prov=fe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var No=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Ge=(()=>{if(typeof document>"u")return!1;let i=No[0],s={};for(let e of No)if(e?.[1]in document){for(let[t,l]of e.entries())s[i[t]]=l;return s}return!1})(),Wo={change:Ge.fullscreenchange,error:Ge.fullscreenerror},ne={request(i=document.documentElement,s){return new Promise((e,a)=>{let t=()=>{ne.off("change",t),e()};ne.on("change",t);let l=i[Ge.requestFullscreen](s);l instanceof Promise&&l.then(t).catch(a)})},exit(){return new Promise((i,s)=>{if(!ne.isFullscreen){i();return}let e=()=>{ne.off("change",e),i()};ne.on("change",e);let a=document[Ge.exitFullscreen]();a instanceof Promise&&a.then(e).catch(s)})},toggle(i,s){return ne.isFullscreen?ne.exit():ne.request(i,s)},onchange(i){ne.on("change",i)},onerror(i){ne.on("error",i)},on(i,s){let e=Wo[i];e&&document.addEventListener(e,s,!1)},off(i,s){let e=Wo[i];e&&document.removeEventListener(e,s,!1)},raw:Ge};Object.defineProperties(ne,{isFullscreen:{get:()=>!!document[Ge.fullscreenElement]},element:{enumerable:!0,get:()=>document[Ge.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Ge.fullscreenEnabled]}});Ge||(ne={isEnabled:!1});var ge=ne;var bl="data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpcyVCQ1YBAEAAACRzGCpGpXMWhBAaQlAZ4xxCzmvsGUJMEYIcMkxbyyVzkCGkoEKIWyiB0JBVAABAAACHQXgUhIpBCCGEJT1YkoMnPQghhIg5eBSEaUEIIYQQQgghhBBCCCGERTlokoMnQQgdhOMwOAyD5Tj4HIRFOVgQgydB6CCED0K4moOsOQghhCQ1SFCDBjnoHITCLCiKgsQwuBaEBDUojILkMMjUgwtCiJqDSTX4GoRnQXgWhGlBCCGEJEFIkIMGQcgYhEZBWJKDBjm4FITLQagahCo5CB+EIDRkFQCQAACgoiiKoigKEBqyCgDIAAAQQFEUx3EcyZEcybEcCwgNWQUAAAEACAAAoEiKpEiO5EiSJFmSJVmSJVmS5omqLMuyLMuyLMsyEBqyCgBIAABQUQxFcRQHCA1ZBQBkAAAIoDiKpViKpWiK54iOCISGrAIAgAAABAAAEDRDUzxHlETPVFXXtm3btm3btm3btm3btm1blmUZCA1ZBQBAAAAQ0mlmqQaIMAMZBkJDVgEACAAAgBGKMMSA0JBVAABAAACAGEoOogmtOd+c46BZDppKsTkdnEi1eZKbirk555xzzsnmnDHOOeecopxZDJoJrTnnnMSgWQqaCa0555wnsXnQmiqtOeeccc7pYJwRxjnnnCateZCajbU555wFrWmOmkuxOeecSLl5UptLtTnnnHPOOeecc84555zqxekcnBPOOeecqL25lpvQxTnnnE/G6d6cEM4555xzzjnnnHPOOeecIDRkFQAABABAEIaNYdwpCNLnaCBGEWIaMulB9+gwCRqDnELq0ehopJQ6CCWVcVJKJwgNWQUAAAIAQAghhRRSSCGFFFJIIYUUYoghhhhyyimnoIJKKqmooowyyyyzzDLLLLPMOuyssw47DDHEEEMrrcRSU2011lhr7jnnmoO0VlprrbVSSimllFIKQkNWAQAgAAAEQgYZZJBRSCGFFGKIKaeccgoqqIDQkFUAACAAgAAAAABP8hzRER3RER3RER3RER3R8RzPESVREiVREi3TMjXTU0VVdWXXlnVZt31b2IVd933d933d+HVhWJZlWZZlWZZlWZZlWZZlWZYgNGQVAAACAAAghBBCSCGFFFJIKcYYc8w56CSUEAgNWQUAAAIACAAAAHAUR3EcyZEcSbIkS9IkzdIsT/M0TxM9URRF0zRV0RVdUTdtUTZl0zVdUzZdVVZtV5ZtW7Z125dl2/d93/d93/d93/d93/d9XQdCQ1YBABIAADqSIymSIimS4ziOJElAaMgqAEAGAEAAAIriKI7jOJIkSZIlaZJneZaomZrpmZ4qqkBoyCoAABAAQAAAAAAAAIqmeIqpeIqoeI7oiJJomZaoqZoryqbsuq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq4LhIasAgAkAAB0JEdyJEdSJEVSJEdygNCQVQCADACAAAAcwzEkRXIsy9I0T/M0TxM90RM901NFV3SB0JBVAAAgAIAAAAAAAAAMybAUy9EcTRIl1VItVVMt1VJF1VNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVN0zRNEwgNWQkAkAEAkBBTLS3GmgmLJGLSaqugYwxS7KWxSCpntbfKMYUYtV4ah5RREHupJGOKQcwtpNApJq3WVEKFFKSYYyoVUg5SIDRkhQAQmgHgcBxAsixAsiwAAAAAAAAAkDQN0DwPsDQPAAAAAAAAACRNAyxPAzTPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAA0DwP8DwR8EQRAAAAAAAAACzPAzTRAzxRBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAAsDwP8EQR0DwRAAAAAAAAACzPAzxRBDzRAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEOAAABBgIRQasiIAiBMAcEgSJAmSBM0DSJYFTYOmwTQBkmVB06BpME0AAAAAAAAAAAAAJE2DpkHTIIoASdOgadA0iCIAAAAAAAAAAAAAkqZB06BpEEWApGnQNGgaRBEAAAAAAAAAAAAAzzQhihBFmCbAM02IIkQRpgkAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAGHAAAAgwoQwUGrIiAIgTAHA4imUBAIDjOJYFAACO41gWAABYliWKAABgWZooAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLBBU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdASqwAJAAAEcIhYWIhYSIAgIABhwJ7kPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99YAD+/6tQgKOFggADgAqjhYIAD4AOo4WCACSADqOZgQArADECAAEQEAAYABhYL/QACIBDmAYAAKOFggA6gA6jhYIAT4AOo5mBAFMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAGSADqOFggB6gA6jmYEAewAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAj4AOo5mBAKMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAKSADqOFggC6gA6jmYEAywAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAz4AOo4WCAOSADqOZgQDzADECAAEQEAAYABhYL/QACIBDmAYAAKOFggD6gA6jhYIBD4AOo5iBARsAEQIAARAQFGAAYWC/0AAiAQ5gGACjhYIBJIAOo4WCATqADqOZgQFDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK",_l="data:video/mp4;base64,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",Ti=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.")}},Ei=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}},Di=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",bl),this._addSourceToVideo(this.noSleepVideo,"mp4",_l),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,a){let t=document.createElement("source");t.src=a,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"?Ti:"wakeLock"in navigator&&!navigator.standalone?Ei:Di;var Fp=(()=>{class i{isDragging=T(!1);fullscreenStatus=T(!1);fullscreenSupported=T(!0);noSleepStatus=T(!1);noSleepSupported=T(!0);noSleep=null;initialTouchX=null;initialTouchY=null;hotkeyListeners=new Map;boundPreventGestures=null;fullscreenChangeHandler=()=>{if(this.fullscreenStatus.set(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,a){this.boundPreventGestures||(this.boundPreventGestures=this.preventBrowserHistorySwipeGestures.bind(this)),document.addEventListener("openLeftSidenav",e),document.addEventListener("openRightSidenav",a),document.addEventListener("touchstart",this.boundPreventGestures,{passive:!1}),document.addEventListener("touchmove",this.boundPreventGestures,{passive:!1}),document.addEventListener("touchend",this.boundPreventGestures),document.addEventListener("touchcancel",this.boundPreventGestures)}removeGestureListeners(e,a){document.removeEventListener("openLeftSidenav",e),document.removeEventListener("openRightSidenav",a),this.boundPreventGestures&&(document.removeEventListener("touchstart",this.boundPreventGestures),document.removeEventListener("touchmove",this.boundPreventGestures),document.removeEventListener("touchend",this.boundPreventGestures),document.removeEventListener("touchcancel",this.boundPreventGestures))}preventBrowserHistorySwipeGestures(e){if(e.touches.length===1){let a=e.touches[0],t=30;if(e.type==="touchstart")this.initialTouchX=a.clientX,this.initialTouchY=a.clientY;else if(e.type==="touchmove"&&this.initialTouchX!==null&&this.initialTouchY!==null){let l=Math.abs(a.clientX-this.initialTouchX),d=Math.abs(a.clientY-this.initialTouchY);l>10&&l>d&&(this.initialTouchX<t||this.initialTouchX>window.innerWidth-t)&&e.preventDefault(),d>10&&this.initialTouchY<50&&e.preventDefault()}else(e.type==="touchend"||e.type==="touchcancel")&&(this.initialTouchX=null,this.initialTouchY=null)}}addHotkeyListener(e,a){let t=l=>{if(l instanceof KeyboardEvent){let d=l.key.toLowerCase();if(a&&(a.keys&&!a.keys.includes(d)||a.ctrlKey!==void 0&&l.ctrlKey!==a.ctrlKey||a.shiftKey!==void 0&&l.shiftKey!==a.shiftKey))return;e(d,l)}else console.warn("[uiEvent Service] Non-keyboard event detected in addHotkeyListener:",l)};this.hotkeyListeners.set(e,t),document.addEventListener("keydown",t)}removeHotkeyListener(e){let a=this.hotkeyListeners.get(e);a&&(document.removeEventListener("keydown",a),this.hotkeyListeners.delete(e))}ngOnDestroy(){if(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(a){return new(a||i)};static \u0275prov=fe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function vl(i,s){}var Qo="_mat-bottom-sheet-enter",qo="_mat-bottom-sheet-exit",Cl=(()=>{class i 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 a=this._elementRef.nativeElement.classList;a.toggle("mat-bottom-sheet-container-medium",e.isMatched(De.Medium)),a.toggle("mat-bottom-sheet-container-large",e.isMatched(De.Large)),a.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(qo))}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_simulateAnimation(e){this._ngZone.run(()=>{this._handleAnimationEvent(!0,e),setTimeout(()=>this._handleAnimationEvent(!1,e))})}_trapFocus(){super._trapFocus({preventScroll:!0})}_handleAnimationEvent(e,a){let t=a===Qo;(t||a===qo)&&this._animationStateChanged.emit({toState:t?"visible":"hidden",phase:e?"start":"done"})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(a,t){a&1&&_("animationstart",function(d){return t._handleAnimationEvent(!0,d.animationName)})("animationend",function(d){return t._handleAnimationEvent(!1,d.animationName)})("animationcancel",function(d){return t._handleAnimationEvent(!1,d.animationName)}),a&2&&(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(a,t){a&1&&Te(0,vl,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 i})(),yl=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,a){this._ref=s,this.containerInstance=a,this.disableClose=e.disableClose,a._animationStateChanged.pipe(Oe(t=>t.phase==="done"&&t.toState==="visible"),dt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),a._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"||!bt(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}},xl=new J("mat-bottom-sheet-default-options"),Ml=(()=>{class i{_injector=m(Fe);_parentBottomSheet=m(i,{optional:!0,skipSelf:!0});_animationsDisabled=ye();_defaultOptions=m(xl,{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,a){let t=re(re({},this._defaultOptions||new Ii),a),l;return this._dialog.open(e,he(re({},t),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:Cl,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:yl,useValue:t.data}])})),l.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===l&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>l.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):l.containerInstance.enter(),this._openedBottomSheetRef=l,l}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(a){return new(a||i)};static \u0275prov=fe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Jp=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=_e({type:i});static \u0275inj=be({providers:[Ml],imports:[Ba,$,Sa,$]})}return i})();var zo=["*"],wl=`.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
|
+
`,Sl=["unscopedContent"],kl=["text"],Tl=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],El=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Dl=new J("ListOption"),Il=(()=>{class i{_elementRef=m(pe);constructor(){}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),Gl=(()=>{class i{_elementRef=m(pe);constructor(){}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),Pl=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),jo=(()=>{class i{_listOption=m(Dl,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,hostVars:4,hostBindings:function(a,t){a&2&&W("mdc-list-item__start",t._isAlignedAtStart())("mdc-list-item__end",!t._isAlignedAtStart())}})}return i})(),Ol=(()=>{class i extends jo{static \u0275fac=(()=>{let e;return function(t){return(e||(e=pt(i)))(t||i)}})();static \u0275dir=Q({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Be]})}return i})(),Fl=(()=>{class i extends jo{static \u0275fac=(()=>{let e;return function(t){return(e||(e=pt(i)))(t||i)}})();static \u0275dir=Q({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Be]})}return i})(),Ll=new J("MAT_LIST_CONFIG"),Pt=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=_t(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(_t(e))}_disabled=T(!1);_defaultOptions=m(Ll,{optional:!0});static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,hostVars:1,hostBindings:function(a,t){a&2&&q("aria-disabled",t.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),Bl=(()=>{class i{_elementRef=m(pe);_ngZone=m(ut);_listBase=m(Pt,{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=_t(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(_t(e))}_disabled=T(!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 a=this._explicitLines??this._inferLinesFromContent(),t=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",a<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",a<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",a===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",a===3),this._hasUnscopedTextContent){let l=this._titles.length===0&&a===1;t.classList.toggle("mdc-list-item__primary-text",l),t.classList.toggle("mdc-list-item__secondary-text",!l)}else t.classList.remove("mdc-list-item__primary-text"),t.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(a){return new(a||i)};static \u0275dir=Q({type:i,contentQueries:function(a,t,l){if(a&1&&(ue(l,Ol,4),ue(l,Fl,4)),a&2){let d;z(d=j())&&(t._avatars=d),z(d=j())&&(t._icons=d)}},hostVars:4,hostBindings:function(a,t){a&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 i})();var Su=(()=>{class i extends Pt{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(t){return(e||(e=pt(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[Re([{provide:Pt,useExisting:i}]),Be],ngContentSelectors:zo,decls:1,vars:0,template:function(a,t){a&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 i})();var ku=(()=>{class i extends Pt{static \u0275fac=(()=>{let e;return function(t){return(e||(e=pt(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Re([{provide:Pt,useExisting:i}]),Be],ngContentSelectors:zo,decls:1,vars:0,template:function(a,t){a&1&&(ve(),X(0))},styles:[wl],encapsulation:2,changeDetection:0})}return i})(),Tu=(()=>{class i extends Bl{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=_t(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(i)))(t||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,t,l){if(a&1&&(ue(l,Gl,5),ue(l,Il,5),ue(l,Pl,5)),a&2){let d;z(d=j())&&(t._lines=d),z(d=j())&&(t._titles=d),z(d=j())&&(t._meta=d)}},viewQuery:function(a,t){if(a&1&&(Ve(Sl,5),Ve(kl,5)),a&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(a,t){a&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:El,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(a,t){if(a&1){let l=P();ve(Tl),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 i})();var Eu=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=_e({type:i});static \u0275inj=be({imports:[ba,$,Xt,io,ti]})}return i})();export{Nl as a,Kl as b,Ks as c,fo as d,Sp as e,Fp as f,yl as g,mi as h,Ml as i,Jp as j,Il as k,Fl as l,Su as m,ku as n,Tu as o,Eu as p};
|