@mxtommy/kip 3.7.0 → 3.8.0
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/CHANGELOG.md +10 -0
- package/README.md +1 -0
- package/package.json +3 -3
- package/public/assets/help-docs/dashboards.md +1 -0
- package/public/assets/svg/icons.svg +21 -0
- package/public/chunk-D4C4GVZH.js +11 -0
- package/public/{chunk-5LQ6SLDH.js → chunk-HJU5KIWA.js} +1 -1
- package/public/{chunk-W2ETB57D.js → chunk-KOL3FQI5.js} +1 -1
- package/public/{chunk-74XVS6H6.js → chunk-Q7NWJ5SL.js} +1 -1
- package/public/{chunk-JO2PGH4G.js → chunk-RQUSN3L5.js} +1 -1
- package/public/{chunk-YZBZ2AEV.js → chunk-X3ZJYPXO.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-MXFIK2ND.js → main-X3DRYSC5.js} +15 -15
- package/public/chunk-3DQV466V.js +0 -11
package/public/chunk-3DQV466V.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{a as ai,b as eo,c as io,d as ao,e as oo}from"./chunk-26NZEHY5.js";import{a as Me}from"./chunk-BGFEFM5V.js";import{a as Xa,b as Ja,c as to,d as ii}from"./chunk-2BAYNCPQ.js";import{a as yt,b as Xt}from"./chunk-T5MW4GJK.js";import{a as ja,b as qa,c as Ha,d as xe,e as Ka,f as j,g as $a,h as Ya,k as Qa,l as Za,m as Ae,n as lt,o as Zt}from"./chunk-SQZ5Y2UZ.js";import{g as aa,j as oa,o as la,p as Q,q as gt}from"./chunk-PFPMEH2B.js";import{a as Da,b as Ga,c as Ia,d as zt,e as jt,g as Oa,h as qt,i as Ht,j as Kt,k as _e,l as bt}from"./chunk-JHWS5VWZ.js";import{a as ge}from"./chunk-5LQ6SLDH.js";import{a as za,b as ei}from"./chunk-MZFYZTYI.js";import{$ as vt,A as La,B as Na,C as rt,D as Va,E as Xe,F as $t,G as _t,H as z,I as Ra,J as Ba,K as Yt,L as Je,M as ve,N as P,P as ye,Q as J,R as F,T as L,U as ti,V as Wa,W as Ce,Y as Ua,_ as N,a as oe,ca as tt,da as Qt,e as ta,f as ea,h as ia,i as Ue,j as _i,k as ze,p as ra,q as Ze,r as Z,t as U,w as O,x as X,y as Pa,z as Fa}from"./chunk-BOUFMQO7.js";import{$b as _,$c as Bt,$d as qe,A as se,Aa as w,Ab as Ft,Ac as T,Ad as Xi,Ae as Ye,Bc as R,Be as ot,Cb as St,Cc as he,Ce as Qe,Da as Pt,Db as Bi,De as Ut,Ec as Hi,F as Gi,Fa as me,Fb as at,Fc as Ki,Fe as _a,Gb as Le,Gc as $i,Ge as nt,Hb as Wi,I as hi,Ie as va,Ja as k,Jd as Ji,K as It,Kc as Tt,L as Ot,Mc as Nt,Me as ya,Na as ee,Nc as Re,Nd as Wt,Ne as Ca,O as Ii,Oa as pe,Od as na,P as Pe,Qa as wt,Qc as Vt,R as ce,Rb as et,Rc as Rt,Sb as u,Sd as vi,Tb as h,Td as sa,U as Oi,Ub as A,Ud as je,Ue as xa,Vb as Ne,Ve as Ma,W as Pi,Wb as C,Wd as ca,Xb as x,Xc as Yi,Xe as wa,Yb as p,Yc as Be,Ye as Ci,Zb as n,Zd as da,Ze as Sa,_b as o,_c as Qi,a as st,ac as fi,ad as b,af as Ta,b as Mt,bc as bi,be as ma,bf as ka,ce as He,cf as Aa,dc as Ui,de as pa,ec as zi,ed as ae,ee as ua,f as H,fa as de,fc as ji,ff as Ea,g as re,ga as Fe,gc as D,hc as qi,ia as Fi,ic as y,id as I,j as pi,je as ke,kc as g,ke as fe,lb as s,lc as ht,le as ha,m as le,mc as q,na as Te,nb as Ni,nc as ct,ne as yi,o as Se,oa as mt,oc as Lt,oe as Ke,pa as pt,pb as gi,pc as B,qc as W,qe as $e,ra as K,re as Y,sb as Vi,t as ui,ta as m,te as kt,uc as dt,ue as ft,vc as Ve,ve as be,wb as v,wc as V,wd as Zi,xa as Li,xb as ut,xc as ue,xe as ga,y as Oe,yb as $,yc as ie,ye as fa,za as M,zb as Ri,zc as r,zd as We,ze as ba}from"./chunk-W2S6R4AZ.js";var Pl=(()=>{class i{_settings=m(Ue);_router=m(oa);dashboards=k([],{equal:_i});activeDashboard=k(0);_widgetAction=new Se(null);widgetAction$=this._widgetAction.asObservable();_isDashboardStatic=new Se(!0);isDashboardStatic$=this._isDashboardStatic.asObservable();isDashboardStatic=na(this.isDashboardStatic$);blankDashboard=[{id:null,name:"Dashboard 1",configuration:[{w:12,h:12,id:"d1d58e6f-f8b4-4a72-9597-7f92aa6776fc",selector:"widget-tutorial",input:{widgetProperties:{type:"widget-tutorial",uuid:"d1d58e6f-f8b4-4a72-9597-7f92aa6776fc"}},x:0,y:0}]}];constructor(){let t=this._settings.getDashboardConfig();if(!t||t.length===0){console.warn("[Dashboard Service] No dashboards found in settings, creating blank dashboard");let a=this.blankDashboard.map(e=>Mt(st({},e),{id:oe.create()}));this.dashboards.set([...a])}else this.dashboards.set(this._settings.getDashboardConfig());Be(()=>{this._settings.saveDashboards(this.dashboards())})}toggleStaticDashboard(){this._isDashboardStatic.next(!this._isDashboardStatic.value)}add(t,a){this.dashboards.update(e=>[...e,{id:oe.create(),name:t,configuration:a}])}update(t,a){this.dashboards.update(e=>e.map((l,d)=>d===t?Mt(st({},l),{name:a}):l))}delete(t){this.dashboards.update(a=>a.filter((e,l)=>l!==t)),this.dashboards().length===0?(this.add("Dashboard "+(this.dashboards().length+1),[]),this.activeDashboard.set(0)):this.activeDashboard()>this.dashboards().length-1&&this.activeDashboard.set(this.dashboards().length-1)}duplicate(t,a){if(t<0||t>=this.dashboards().length){console.error(`[Dashboard Service] Invalid itemIndex: ${t}`);return}let e=this.dashboards()[t],l=ze(e);l.id=oe.create(),l.name=a,Array.isArray(l.configuration)?l.configuration.forEach(d=>{d&&d.input?.widgetProperties?(d.id=oe.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(t,a){this.dashboards.update(e=>e.map((l,d)=>d===t?_i(l.configuration,a)?l:Mt(st({},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(t){t>=0&&t<this.dashboards().length?this.activeDashboard.set(t):console.error(`[Dashboard Service] Invalid dashboard ID: ${t}`)}navigateToActive(){this._router.navigate(["/dashboard",this.activeDashboard()])}navigateTo(t){t>=0&&t<this.dashboards().length?this._router.navigate(["/dashboard",t]):console.error(`[Dashboard Service] Invalid dashboard ID: ${t}`)}navigateToNextDashboard(){let t=null;this.activeDashboard()-1<0?t=this.dashboards().length-1:t=this.activeDashboard()-1,this._router.navigate(["/dashboard",t])}navigateToPreviousDashboard(){let t=null;this.activeDashboard()+1>=this.dashboards().length?t=0:t=this.activeDashboard()+1,this._router.navigate(["/dashboard",t])}deleteWidget(t){this._widgetAction.next({id:t,operation:"delete"})}duplicateWidget(t){this._widgetAction.next({id:t,operation:"duplicate"})}setStaticDashboard(t){this._isDashboardStatic.next(t)}static \u0275fac=function(a){return new(a||i)};static \u0275prov=mt({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Uo(i,c){i&1&&ji(0)}var no=(()=>{class i{data=m(jt);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,e){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),St(7,Uo,1,0,"ng-container",4),o()),a&2&&(s(2),T(e.data.title),s(),p("mat-dialog-close",!1),s(4),p("ngComponentOutlet",e.data.componentType))},dependencies:[Q,bt,qt,Ht,Kt,nt,ot,Zi],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,c){if(i&1&&(n(0,"button",4),r(1),o()),i&2){let t=g();p("mat-dialog-close",!0),s(),T(t.data.confirmBtnText)}}var ro=(()=>{class i{data=m(jt);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,e){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&&(s(2),T(e.data.title),s(),p("mat-dialog-close",!1),s(4),R(" ",e.data.message,`
|
|
2
|
-
`),s(2),p("mat-dialog-close",!1),s(),T(e.data.cancelBtnText),s(),h(e.data.confirmBtnText?11:-1))},dependencies:[Q,bt,qt,Ht,_e,Kt,nt,Ut,ot],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 jo(i,c){if(i&1&&(n(0,"button",9),r(1),o()),i&2){let t=g(),a=dt(1);p("disabled",!a.valid),s(),T(t.data.confirmBtnText)}}var so=(()=>{class i{dialogRef=m(zt);data=m(jt);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,e){if(a&1){let l=D();n(0,"form",1,0),y("ngSubmit",function(){return M(l),w(e.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),$i("ngModelChange",function(f){return M(l),Ki(e.data.name,f)||(e.data.name=f),w(f)}),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,jo,2,2,"button",9),o()()}a&2&&(s(4),T(e.data.title),s(),p("mat-dialog-close",!1),s(7),Hi("ngModel",e.data.name),s(4),p("mat-dialog-close",!1),s(),T(e.data.cancelBtnText),s(),h(e.data.confirmBtnText?18:-1))},dependencies:[bt,qt,Ht,_e,Kt,gt,Q,vt,N,L,ti,Qt,tt,nt,Ut,ot,J,Xe,Z,O,X,P,Va,La],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 qo(i,c){if(i&1&&(n(0,"mat-option",12),r(1),o()),i&2){let t=c.$implicit;p("value",Tt(t.value)),s(),T(t.label)}}function Ho(i,c){if(i&1){let t=D();n(0,"button",21),y("click",function(){M(t);let e=g();return w(e.moveCtrlUp())}),n(1,"mat-icon"),r(2,"arrow_drop_up"),o()()}}function Ko(i,c){if(i&1){let t=D();n(0,"button",22),y("click",function(){M(t);let e=g();return w(e.moveCtrlDown())}),n(1,"mat-icon"),r(2,"arrow_drop_down"),o()()}}var co=(()=>{class i{app=m(ge);ctrlFormGroup=b.required();controlIndex=b(void 0);arrayLength=b(void 0);deleteCtrl=Bt();moveUp=Bt();moveDown=Bt();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors}deleteControl(){let t={ctrlIndex:this.controlIndex(),pathID:this.ctrlFormGroup().get("pathID").value};this.deleteCtrl.emit(t)}moveCtrlUp(){this.moveUp.emit(this.controlIndex())}moveCtrlDown(){this.moveDown.emit(this.controlIndex())}static \u0275fac=function(a){return new(a||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,e){a&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),r(5,"Label"),o(),_(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),C(23,qo,2,3,"mat-option",12,A),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,Ho,3,0,"button",18),u(32,Ko,3,0,"button",19),n(33,"button",20),y("click",function(){return e.deleteControl()}),n(34,"mat-icon"),r(35,"delete"),o()()()()()()),a&2&&(p("formGroup",e.ctrlFormGroup()),s(23),x(e.colors),s(8),h(e.controlIndex()!==0?31:-1),s(),h(e.controlIndex()!==e.arrayLength()-1?32:-1))},dependencies:[J,Z,O,X,P,F,z,Yt,N,L,tt,lt,j,ot,Xt,yt,gt,Q],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 $o(i,c){if(i&1){let t=D();n(0,"boolean-control-config",4),y("moveUp",function(e){M(t);let l=g();return w(l.moveUp(e))})("moveDown",function(e){M(t);let l=g();return w(l.moveDown(e))})("deleteCtrl",function(e){M(t);let l=g();return w(l.deletePath(e))}),o()}if(i&2){let t=c.$implicit,a=c.$index,e=g();p("ctrlFormGroup",e.getFormGroup(t))("controlIndex",a)("arrayLength",e.arrayLength)}}var mo=(()=>{class i{fb=m(ye);multiCtrlArray=b.required();addPath=Bt();updatePath=Bt();delPath=Bt();multiFormGroup=null;arrayLength=0;multiCtrlArraySubscription=null;ngOnInit(){this.arrayLength=this.multiCtrlArray().length,this.multiFormGroup=new Pa({multiCtrlArray:this.multiCtrlArray()}),this.multiCtrlArraySubscription=this.multiCtrlArray().valueChanges.pipe(Pe(350)).subscribe(t=>{this.updatePath.emit(t)})}addCtrlGroup(){let t=oe.create();this.multiCtrlArray().push(this.fb.group({ctrlLabel:[null,U.required],type:["1",U.required],pathID:[t],color:["contrast"],isNumeric:[!1],value:[null]})),this.arrayLength=this.multiCtrlArray().length;let a={path:{description:null,path:null,pathID:t,source:"default",pathType:"boolean",supportsPut:!0,isPathConfigurable:!0,showPathSkUnitsFilter:!1,pathSkUnitsFilter:null,convertUnitTo:null,sampleTime:500},ctrlType:1};this.addPath.emit(a)}moveUp(t){let a=this.multiCtrlArray().at(t);this.multiCtrlArray().removeAt(t,{emitEvent:!1}),this.multiCtrlArray().insert(t-1,a,{emitEvent:!1})}moveDown(t){let a=this.multiCtrlArray().at(t);this.multiCtrlArray().removeAt(t,{emitEvent:!1}),this.multiCtrlArray().insert(t+1,a,{emitEvent:!1})}deletePath(t){this.delPath.emit(t),this.arrayLength=this.multiCtrlArray().length}getFormGroup(t){return t}ngOnDestroy(){this.multiCtrlArraySubscription?.unsubscribe()}static \u0275fac=function(a){return new(a||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,e){a&1&&(n(0,"div",0)(1,"div",1),C(2,$o,1,3,"boolean-control-config",2,Ne),n(4,"button",3),y("click",function(){return e.addCtrlGroup()}),n(5,"mat-icon"),r(6,"add"),o()()()()),a&2&&(p("formGroup",e.multiFormGroup),s(2),x(e.multiCtrlArray().controls))},dependencies:[J,X,F,z,Ba,co,nt,_a,gt,Q],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 Yo=["*"];var Qo=new K("MAT_CARD_CONFIG"),Ps=(()=>{class i{appearance;constructor(){let t=m(Qo,{optional:!0});this.appearance=t?.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,e){a&2&&V("mat-mdc-card-outlined",e.appearance==="outlined")("mdc-card--outlined",e.appearance==="outlined")("mat-mdc-card-filled",e.appearance==="filled")("mdc-card--filled",e.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:Yo,decls:1,vars:0,template:function(a,e){a&1&&(ht(),q(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 po=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ut({type:i});static \u0275inj=pt({imports:[Y,Y]})}return i})();function Zo(i,c){if(i&1&&(n(0,"mat-option",8),r(1),o()),i&2){let t=c.$implicit;p("value",Tt(t.value)),s(),T(t.label)}}var uo=(()=>{class i{app=m(ge);displayName=b.required();showLabel=b.required();convertUnitTo=b.required();datasetUUID=b.required();datasetAverageArray=b.required();showAverageData=b.required();trackAgainstAverage=b.required();showDatasetMinimumValueLine=b.required();showDatasetMaximumValueLine=b.required();showDatasetAverageValueLine=b.required();showDatasetAngleAverageValueLine=b.required();verticalChart=b.required();inverseYAxis=b.required();showTimeScale=b.required();showYScale=b.required();startScaleAtZero=b.required();yScaleSuggestedMin=b.required();yScaleSuggestedMax=b.required();enableMinMaxScaleLimit=b.required();yScaleMin=b.required();yScaleMax=b.required();numDecimal=b.required();color=b.required();colors=[];ngOnInit(){this.colors=this.app.configurableThemeColors,this.showAverageData()&&!this.showAverageData()?.value&&this.trackAgainstAverage().disable(),this.enableMinMaxScaleLimit()&&this.setValueScaleOptionsControls(this.enableMinMaxScaleLimit().value)}setValueScaleOptionsControls(t){t?(this.yScaleMin()?.enable(),this.yScaleMax()?.enable(),this.yScaleSuggestedMin()?.disable(),this.yScaleSuggestedMax()?.disable()):(this.yScaleMin()?.disable(),this.yScaleMax()?.disable(),this.yScaleSuggestedMin()?.enable(),this.yScaleSuggestedMax()?.enable())}setScaleControls(t){this.setValueScaleOptionsControls(t.value)}enableTrackAgainstMovingAverage(t){t.checked?this.trackAgainstAverage().enable():(this.trackAgainstAverage().setValue(t.checked),this.trackAgainstAverage().disable())}static \u0275fac=function(a){return new(a||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,e){if(a&1){let l=D();n(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),r(5,"Widget Label"),o(),_(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),C(15,Zo,2,3,"mat-option",8,A),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(),_(25,"input",11),o(),n(26,"mat-checkbox",12),y("change",function(f){return M(l),w(e.enableTrackAgainstMovingAverage(f))}),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),y("change",function(f){return M(l),w(e.setScaleControls(f))}),r(40,"Auto Scale"),o(),n(41,"div",19)(42,"mat-form-field",20)(43,"mat-label"),r(44,"Suggested Min"),o(),_(45,"input",21),o(),n(46,"mat-form-field",20)(47,"mat-label"),r(48,"Suggested Max"),o(),_(49,"input",22),o()(),n(50,"mat-radio-button",18),y("change",function(f){return M(l),w(e.setScaleControls(f))}),r(51," Fixed Scale "),o(),n(52,"div",19)(53,"div",23)(54,"mat-form-field",20)(55,"mat-label"),r(56,"Min"),o(),_(57,"input",24),o()(),n(58,"div",23)(59,"mat-form-field",20)(60,"mat-label"),r(61,"Max"),o(),_(62,"input",25),o()()()(),n(63,"mat-checkbox",26),r(64," Show Scale Ticks "),o(),n(65,"mat-checkbox",27),r(66," Inverse Scale "),o()()(),n(67,"div",9)(68,"div")(69,"p",15),r(70,"Time Scale"),o(),n(71,"mat-checkbox",28),r(72," Show Scale Ticks "),o()()(),n(73,"div",9)(74,"div")(75,"p",15),r(76,"Dataset"),o(),n(77,"mat-checkbox",29),r(78," Show Maximum Line "),o(),n(79,"mat-checkbox",30),r(80," Show Average Line "),o(),n(81,"mat-checkbox",31,0),r(83," Show Minimum Line "),o()()()()()}a&2&&(s(6),p("formControl",e.displayName()),s(2),p("formControl",e.showLabel()),s(6),p("formControl",e.color()),s(),x(e.colors),s(10),p("formControl",e.numDecimal()),s(),p("formControl",e.showAverageData()),s(2),p("formControl",e.trackAgainstAverage()),s(2),p("formControl",e.verticalChart()),s(8),p("formControl",e.enableMinMaxScaleLimit()),s(),p("value",!1),s(6),p("formControl",e.yScaleSuggestedMin()),s(4),p("formControl",e.yScaleSuggestedMax()),s(),p("value",!0),s(7),p("formControl",e.yScaleMin()),s(5),p("formControl",e.yScaleMax()),s(),p("formControl",e.showYScale()),s(2),p("formControl",e.inverseYAxis()),s(6),p("formControl",e.showTimeScale()),s(6),p("formControl",e.showDatasetMaximumValueLine()),s(2),p("formControl",e.showDatasetAverageValueLine()),s(2),p("formControl",e.showDatasetMinimumValueLine()))},dependencies:[po,vt,N,L,Xt,yt,Zt,lt,j,Ae,Qt,tt,to,Xa,Ja,F,Z,$t,O,P,ve,Je,_t],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 Xo=(i,c)=>c.uuid;function Jo(i,c){if(i&1&&(n(0,"mat-option",4),r(1),o()),i&2){let t=c.$implicit;p("value",t.uuid),s(),R(" ",t.label," ")}}function tn(i,c){if(i&1&&(n(0,"mat-option",4),r(1),o()),i&2){let t=c.$implicit;p("value",t.measure),s(),R(" ",t.description," ")}}function en(i,c){if(i&1&&(n(0,"mat-optgroup",6),C(1,tn,2,2,"mat-option",4,A),o()),i&2){let t=c.$implicit;p("label",t.group),s(),x(t.units)}}var ho=(()=>{class i{datasetService=m(ii);units=m(Me);datasetUUID=b.required();convertUnitTo=b.required();availableDataSets=[];unitList={};ngOnInit(){this.availableDataSets=this.datasetService.list().filter(a=>a.editable!==!1).sort();let t=this.datasetUUID();t.value&&this.setPathUnits(t.value)}setPathUnits(t){let a=this.datasetService.getDatasetConfig(t);return t&&a?(this.unitList=this.units.getConversionsForPath(a.path),this.convertUnitTo()?.enable(),!0):(this.unitList=this.units.getConversionsForPath(""),this.convertUnitTo()?.disable(),!1)}datasetChanged(t){this.setPathUnits(t.value)}static \u0275fac=function(a){return new(a||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,e){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),y("selectionChange",function(d){return e.datasetChanged(d)}),C(6,Jo,2,2,"mat-option",4,Xo),o()(),n(8,"mat-form-field",2)(9,"mat-label"),r(10,"Display Format"),o(),n(11,"mat-select",5),C(12,en,3,1,"mat-optgroup",6,A),o()()()()),a&2&&(s(5),p("formControl",e.datasetUUID()),s(),x(e.availableDataSets),s(5),p("formControl",e.convertUnitTo()),s(),x(e.unitList.conversions))},dependencies:[vt,N,L,Zt,lt,j,xe,F,O,P,_t],styles:[".display-content[_ngcontent-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:10px}"]})}return i})();var go=(()=>{class i{transform(t){return Object.keys(t)}static \u0275fac=function(a){return new(a||i)};static \u0275pipe=Ri({name:"objectKeys",type:i,pure:!0})}return i})();var on=["panel"],nn=["*"];function rn(i,c){if(i&1&&(fi(0,"div",1,0),q(2),bi()),i&2){let t=c.id,a=g();ie(a._classList),V("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"),qi("id",a.id),et("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby(t))}}var Si=class{source;option;constructor(c,t){this.source=c,this.option=t}},_o=new K("mat-autocomplete-default-options",{providedIn:"root",factory:ln});function ln(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var si=(()=>{class i{_changeDetectorRef=m(ae);_elementRef=m(wt);_defaults=m(_o);_animationsDisabled=ft();_activeOptionChanges=re.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new at;opened=new at;closed=new at;optionActivated=new at;set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}id=m(ke).getId("mat-autocomplete-");inertGroups;constructor(){let t=m(je);this.inertGroups=t?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new ha(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let a=new Si(this,t);this.optionSelected.emit(a)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let a=t?t+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:t}_skipPredicate(){return!1}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(a,e,l){if(a&1&&(ct(l,j,5),ct(l,Ha,5)),a&2){let d;B(d=W())&&(e.options=d),B(d=W())&&(e.optionGroups=d)}},viewQuery:function(a,e){if(a&1&&(Lt(Ni,7),Lt(on,5)),a&2){let l;B(l=W())&&(e.template=l.first),B(l=W())&&(e.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",I],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",I],requireSelection:[2,"requireSelection","requireSelection",I],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",I],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",I]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Nt([{provide:qa,useExisting:i}])],ngContentSelectors:nn,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,e){a&1&&(ht(),Bi(0,rn,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 sn={provide:Ze,useExisting:Te(()=>De),multi:!0};var vo=new K("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=m(Pt);return()=>Ci(i)}});function cn(i){let c=m(Pt);return()=>Ci(c)}var dn={provide:vo,deps:[],useFactory:cn},De=(()=>{class i{_environmentInjector=m(Li);_element=m(wt);_injector=m(Pt);_viewContainerRef=m(Vi);_zone=m(Le);_changeDetectorRef=m(ae);_dir=m($e,{optional:!0});_formField=m(Ua,{optional:!0,host:!0});_viewportRuler=m(xa);_scrollStrategy=m(vo);_renderer=m(gi);_animationsDisabled=ft();_defaults=m(_o,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new le;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=re.EMPTY;_breakpointObserver=m(He);_handsetLandscapeSubscription=re.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new le;_overlayPanelClass=ma(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&Ke(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return It(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ot(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ot(()=>this._overlayAttached)):ui()).pipe(se(t=>t instanceof Ka?t:null))}optionSelections=Gi(()=>{let t=this.autocomplete?this.autocomplete.options:null;return t?t.changes.pipe(de(t),Fe(()=>It(...t.map(a=>a.onSelectionChange)))):this._initialized.pipe(Fe(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new pi(t=>{let a=l=>{let d=sa(l),f=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,S=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&d!==this._element.nativeElement&&!this._hasFocus()&&(!f||!f.contains(d))&&(!S||!S.contains(d))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(d)&&t.next(l)},e=[this._renderer.listen("document","click",a),this._renderer.listen("document","auxclick",a),this._renderer.listen("document","touchend",a)];return()=>{e.forEach(l=>l())}})}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){let a=t,e=a.keyCode,l=fe(a);if(e===27&&!l&&a.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&e===13&&this.panelOpen&&!l)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){let d=this.autocomplete._keyManager.activeItem,f=e===38||e===40;e===9||f&&!l&&this.panelOpen?this.autocomplete._keyManager.onKeydown(a):f&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(f||this.autocomplete._keyManager.activeItem!==d)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(t){let a=t.target,e=a.value;if(a.type==="number"&&(e=e==""?null:parseFloat(e)),this._previousValue!==e){if(this._previousValue=e,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(e),!e)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);e!==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 vi()===this._element.nativeElement}_floatLabel(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new pi(e=>{Wi(()=>{e.next()},{injector:this._environmentInjector})}),a=this.autocomplete.options?.changes.pipe(Fi(()=>this._positionStrategy.reapplyLastPosition()),Oi(0))??ui();return It(t,a).pipe(Fe(()=>this._zone.run(()=>{let e=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),e!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),ce(1)).subscribe(e=>this._setValueAndClose(e))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let a=this.autocomplete;return a&&a.displayWith?a.displayWith(t):t}_assignOptionValue(t){let a=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(a??"")}_updateNativeInputValue(t){this._formField?this._formField._control.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let a=this.autocomplete,e=t?t.source:this._pendingAutoselectedOption;e?(this._clearPreviousSelectedOption(e),this._assignOptionValue(e.value),this._onChange(e.value),a._emitSelectEvent(e),this._element.nativeElement.focus()):a.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,a){this.autocomplete?.options?.forEach(e=>{e!==t&&e.selected&&e.deselect(a)})}_openPanelInternal(t=this._element.nativeElement.value){if(this._attachOverlay(t),this._floatLabel(),this._trackedModal){let a=this.autocomplete.id;yi(this._trackedModal,"aria-owns",a)}}_attachOverlay(t){this.autocomplete;let a=this._overlayRef;a?(this._positionStrategy.setOrigin(this._getConnectedElement()),a.updateSize({width:this._getPanelWidth()})):(this._portal=new va(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),a=Aa(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(kt.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=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let e=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&e!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=t=>{(t.keyCode===27&&!fe(t)||t.keyCode===38&&fe(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Sa({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass,panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let t=Ta(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let a=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],e=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:e},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:e}],d;this.position==="above"?d=l:this.position==="below"?d=a:d=[...a,...l],t.withPositions(d)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let t=this.autocomplete;if(t.autoActiveFirstOption){let a=-1;for(let e=0;e<t.options.length;e++)if(!t.options.get(e).disabled){a=e;break}t._keyManager.setActiveItem(a)}else t._keyManager.setActiveItem(-1)}_canOpen(){let t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this.autocompleteDisabled}_scrollToOption(t){let a=this.autocomplete,e=$a(t,a.options,a.optionGroups);if(t===0&&e===1)a._setScrollTop(0);else if(a.panel){let l=a.options.toArray()[t];if(l){let d=l._getHostElement(),f=Ya(d.offsetTop,d.offsetHeight,a._getScrollTop(),a.panel.nativeElement.offsetHeight);a._setScrollTop(f)}}}_trackedModal=null;_applyModalPanelOwnership(){let t=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;let a=this.autocomplete.id;this._trackedModal&&Ke(this._trackedModal,"aria-owns",a),yi(t,"aria-owns",a),this._trackedModal=t}_clearFromModal(){if(this._trackedModal){let t=this.autocomplete.id;Ke(this._trackedModal,"aria-owns",t),this._trackedModal=null}}static \u0275fac=function(a){return new(a||i)};static \u0275dir=$({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,e){a&1&&y("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(d){return e._handleInput(d)})("keydown",function(d){return e._handleKeydown(d)})("click",function(){return e._handleClick()}),a&2&&et("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-controls",e.autocompleteDisabled||!e.panelOpen||e.autocomplete==null?null:e.autocomplete.id)("aria-haspopup",e.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",I]},exportAs:["matAutocompleteTrigger"],features:[Nt([sn]),ee]})}return i})(),yo=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ut({type:i});static \u0275inj=pt({providers:[dn],imports:[Ea,Ae,Y,Ma,Ae,Y]})}return i})();var pn=(i,c)=>c.path;function un(i,c){i&1&&_(0,"i",22)}function hn(i,c){i&1&&_(0,"i",23)}function gn(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let t=c.$implicit;p("value",t),s(),he("",t.properties.quantity,": ",t.properties.display)}}function fn(i,c){if(i&1){let t=D();n(0,"div",5)(1,"mat-form-field",21)(2,"mat-label"),u(3,un,1,0,"i",22)(4,hn,1,0,"i",23),r(5," Filter"),o(),n(6,"mat-select",24,2),y("selectionChange",function(){M(t),g();let e=dt(11),l=g();return w(l.pathFormGroup().controls.path.setValue(e.value))}),n(8,"mat-option"),r(9,"All"),o(),C(10,gn,2,3,"mat-option",16,A),o()()()}if(i&2){let t=dt(7),a=g(2);s(3),h(t.value?4:3),s(3),p("formControl",a.pathSkUnitsFilterControl),s(4),x(a.pathSkUnitsFiltersList)}}function bn(i,c){i&1&&(n(0,"span",8),r(1,"(optional)"),o())}function _n(i,c){i&1&&(n(0,"mat-hint"),r(1,"Leave blank to disable this path."),o())}function vn(i,c){if(i&1){let t=D();n(0,"button",25),y("click",function(){M(t);let e=g(2);return w(e.pathFormGroup().controls.path.setValue(""))}),n(1,"mat-icon"),r(2,"close"),o()()}}function yn(i,c){i&1&&(n(0,"mat-error"),r(1," Path is required. Please enter a valid Signal K path. "),o())}function Cn(i,c){i&1&&(n(0,"mat-error"),r(1," Path not recognized. Please enter a path from the server's published list. "),o())}function xn(i,c){if(i&1&&(n(0,"span"),r(1),o(),_(2,"br"),n(3,"small",26),r(4),o()),i&2){let t=g().$implicit;s(),T(t.path),s(3),T(t.meta.description)}}function Mn(i,c){if(i&1&&r(0),i&2){let t=g().$implicit;R(" ",t.path," ")}}function wn(i,c){if(i&1&&(n(0,"mat-option",11),u(1,xn,5,2)(2,Mn,1,1),o()),i&2){let t=c.$implicit;p("value",t.path),s(),h(t.meta!==void 0?1:2)}}function Sn(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let t=c.$implicit;p("value",t),s(),R(" ",t," ")}}function Tn(i,c){if(i&1&&(n(0,"mat-option",16),r(1),o()),i&2){let t=c.$implicit;p("value",t.measure),s(),R(" ",t.description," ")}}function kn(i,c){if(i&1&&(n(0,"mat-optgroup",28),C(1,Tn,2,2,"mat-option",16,A),o()),i&2){let t=c.$implicit;p("label",t.group),s(),x(t.units)}}function An(i,c){if(i&1&&(n(0,"mat-form-field",20)(1,"mat-label"),r(2,"Display Format"),o(),n(3,"mat-select",27),C(4,kn,3,1,"mat-optgroup",28,A),o()()),i&2){let t=g(2);s(4),x(t.unitList.conversions)}}function En(i,c){if(i&1&&(n(0,"div",3)(1,"div",4)(2,"span"),r(3),o()(),u(4,fn,12,2,"div",5),n(5,"div",6)(6,"mat-form-field",7)(7,"mat-label"),r(8," Signal K Path "),u(9,bn,2,0,"span",8),o(),_(10,"input",9,0),u(12,_n,2,0,"mat-hint"),u(13,vn,3,0,"button",10),u(14,yn,2,0,"mat-error")(15,Cn,2,0,"mat-error"),n(16,"mat-autocomplete",null,1),C(18,wn,3,2,"mat-option",11,pn),Vt(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),C(27,Sn,2,2,"mat-option",16,A),o()()(),n(29,"div",17)(30,"mat-form-field",14)(31,"mat-label"),r(32,"Sample Time"),o(),_(33,"input",18),o()(),n(34,"div",19),u(35,An,6,0,"mat-form-field",20),o()()()),i&2){let t,a=dt(17),e=g();p("formGroup",e.pathFormGroup()),s(2),Ve("color",e.pathFormGroup().enabled?"":"rgba(255,255,255,0.5)"),s(),T(e.pathFormGroup().value.description),s(),h(e.pathFormGroup().value.pathType==="number"&&e.showPathSkUnitsFilter?4:-1),s(5),h(e.pathFormGroup().value.pathRequired===!1?9:-1),s(),p("matAutocomplete",a),s(2),h(e.pathFormGroup().value.pathRequired===!1?12:-1),s(),h(e.pathFormGroup().value.path?13:-1),s(),h((t=e.pathFormGroup().controls.path.errors)!=null&&t.required?14:(t=e.pathFormGroup().controls.path.errors)!=null&&t.requireMatch?15:-1),s(4),x(Rt(20,11,e.filteredPaths)),s(9),x(e.availableSources),s(8),h(e.pathFormGroup().value.pathType==="number"&&e.pathFormGroup().value.showConvertUnitTo===void 0||e.pathFormGroup().value.pathType==="number"&&e.pathFormGroup().value.showConvertUnitTo===!0?35:-1)}}function Dn(i){return c=>{let t=c.parent?.value?.pathRequired!==!1,a=c.value;return t?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 Co=(()=>{class i{_data=m(ra);_units=m(Me);_connection=m(ta);_destroyRef=m(me);pathFormGroup=b.required();multiCTRLArray=b.required();filterSelfPaths=b.required();availablePaths;filteredPaths=new Se(null);availableSources;unitList={base:"",conversions:[]};showPathSkUnitsFilter=!1;pathSkUnitsFilterControl=new Na(null);pathSkUnitsFiltersList;unitlessUnit={unit:"unitless",properties:{display:"(null)",quantity:"Unitless",quantityDisplay:"(null)",description:""}};ngOnInit(){let t=this.pathFormGroup();t.controls.path.disabled||(this.pathSkUnitsFiltersList=this._units.skBaseUnits.sort((a,e)=>a.properties.quantity>e.properties.quantity?1:-1),this.pathSkUnitsFiltersList.unshift(this.unitlessUnit),t.value.pathSkUnitsFilter&&this.pathSkUnitsFilterControl.setValue(this.pathSkUnitsFiltersList.find(a=>a.unit===this.pathFormGroup().value.pathSkUnitsFilter),{onlySelf:!0}),t.value.showPathSkUnitsFilter&&(this.showPathSkUnitsFilter=t.value.showPathSkUnitsFilter),t.controls.path.setValidators([Dn(()=>this.getPaths())]),t.controls.path.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t.controls.pathRequired&&t.controls.pathRequired.valueChanges.pipe(Wt(this._destroyRef)).subscribe(()=>{this.pathFormGroup().controls.path.updateValueAndValidity()}),t.controls.path.valid?this.enableFormFields(!1):this.disablePathFields(),t.controls.sampleTime||(t.addControl("sampleTime",new rt("500",U.required)),t.controls.sampleTime.updateValueAndValidity({onlySelf:!0,emitEvent:!1})),t.controls.path.valueChanges.pipe(Ii(a=>a===""?hi(0):hi(350)),de(""),se(a=>this.filterPaths(a||""))).pipe(Wt(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.controls.path.pristine||(a.controls.path.valid?(this.enableFormFields(!0),this.updatePathMetaBoundDisplayName(a.controls.path.value),this.updatePathMetaBoundDisplayScale(a.controls.path.value)):this.disablePathFields())}),t.controls.pathType.valueChanges.pipe(Wt(this._destroyRef)).subscribe(()=>{let a=this.pathFormGroup();a.value.showPathSkUnitsFilter?this.pathSkUnitsFilterControl.setValue(this.unitlessUnit):this.pathSkUnitsFilterControl.setValue(null),a.controls.path.updateValueAndValidity()}))}ngOnChanges(t){t.filterSelfPaths&&!t.filterSelfPaths.firstChange&&this.pathFormGroup().controls.path.updateValueAndValidity()}getPaths(){let t=this.pathFormGroup().controls.pathType.value,a=this.filterSelfPaths(),e=!1,l=this.pathFormGroup();if(l.value.supportsPut){let d=!1;this.multiCTRLArray().length>0&&(d=this.multiCTRLArray().some(f=>f.pathID===this.pathFormGroup().value.pathID&&f.type==="3")),d?e=!1:e=ea(this._connection.skServerVersion,"2.12.0",">=")?l.value.supportsPut:!1}return this._data.getPathsAndMetaByType(t,e,a).sort()}filterPaths(t){let a=t.toLowerCase(),e=this.getPaths();if(this.pathSkUnitsFilterControl.value){let l=this.pathSkUnitsFilterControl.value.unit;e=e.filter(d=>{let f=!!d.meta&&!!d.meta.units,S=l==="unitless";return f&&d.meta.units===l||!f&&S})}e=e.filter(l=>l.path.toLowerCase().includes(a)),this.filteredPaths.next(e)}enableFormFields(t){let a=this._data.getPathObject(this.pathFormGroup().controls.path.value);if(a!=null){this.pathFormGroup().controls.sampleTime.enable({onlySelf:!1});let e=this.pathFormGroup();e.controls.pathType.value=="number"&&(this.unitList=this._units.getConversionsForPath(e.controls.path.value),t&&e.controls.convertUnitTo.setValue(this.unitList.base,{onlySelf:!0}),e.controls.convertUnitTo.enable({onlySelf:!1})),Object.keys(a.sources).length==1?(this.availableSources=["default"],t?e.controls.source.value!="default"&&e.controls.source.setValue("default",{onlySelf:!0}):e.controls.source.value!="default"&&e.controls.source.setValue("",{onlySelf:!0})):Object.keys(a.sources).length>1&&(this.availableSources=Object.keys(a.sources),e.controls.source.value=="default"&&e.controls.source.reset()),e.controls.source.enable({onlySelf:!1})}else this.disablePathFields()}disablePathFields(){this.pathFormGroup().controls.source.reset("",{onlySelf:!0}),this.pathFormGroup().controls.source.disable({onlySelf:!1}),this.pathFormGroup().controls.sampleTime.disable({onlySelf:!1});let t=this.pathFormGroup();t.controls.pathType.value=="number"&&(t.controls.convertUnitTo.reset("",{onlySelf:!0}),t.controls.convertUnitTo.disable({onlySelf:!1}))}updatePathMetaBoundDisplayName(t){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayName"))return;let e=this._data.getPathMeta(t);e?.displayName&&a.parent.parent.controls.displayName.setValue(e.displayName)}updatePathMetaBoundDisplayScale(t){let a=this.pathFormGroup();if(!Object.prototype.hasOwnProperty.call(a.parent.parent.value,"displayScale"))return;let e=this._data.getPathMeta(t);if(e?.displayScale){let l=a.parent.parent.get("displayScale"),d=a.controls.convertUnitTo.value;e.displayScale.lower!==null&&e.displayScale.lower!==void 0&&l.controls.lower.setValue(this._units.convertToUnit(d,e.displayScale.lower)),e.displayScale.upper!==null&&e.displayScale.upper!==void 0&&l.controls.upper.setValue(this._units.convertToUnit(d,e.displayScale.upper)),e.displayScale.type!==null&&e.displayScale.type!==void 0&&l.controls.type.setValue(e.displayScale.type),e.displayScale.power!==null&&e.displayScale.power!==void 0&&l.controls.power.setValue(e.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:[ee],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,e){a&1&&u(0,En,36,13,"div",3),a&2&&h(e.pathFormGroup().value.isPathConfigurable?0:-1)},dependencies:[J,Z,$t,O,X,P,F,_t,z,Yt,N,L,tt,yo,si,j,xe,De,ot,Ce,ti,lt,gt,Q,Wa,We],styles:[".pathGroup[_ngcontent-%COMP%]{width:100%}.pathGroupFields[_ngcontent-%COMP%]{display:block;width:calc(100% - 5px)}.pathField[_ngcontent-%COMP%]{width:100%}.pathProperties[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;align-content:flex-start;gap:10px}.fields[_ngcontent-%COMP%]{width:100%}.sourceField[_ngcontent-%COMP%]{flex:3 1}.sampleTimeField[_ngcontent-%COMP%]{flex:1 3}.unitField[_ngcontent-%COMP%]{flex:3 1}"]})}return i})();function Gn(i,c){if(i&1&&_(0,"path-control-config",6),i&2){let t=c.$implicit,a=g(2);p("pathFormGroup",t)("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function In(i,c){if(i&1&&C(0,Gn,1,3,"path-control-config",6,A),i&2){let t=g();x(t.pathsFormGroup.controls)}}function On(i,c){if(i&1&&_(0,"path-control-config",6),i&2){let t=c.$implicit,a=g(2);p("pathFormGroup",a.pathsFormGroup.get(t))("filterSelfPaths",a.filterSelfPaths().value)("multiCTRLArray",a.multiCTRLArray)}}function Pn(i,c){if(i&1&&(C(0,On,1,3,"path-control-config",6,A),Vt(2,"objectKeys")),i&2){let t=g();x(Rt(2,0,t.pathsFormGroup.controls))}}var xo=(()=>{class i{rootFormGroup=m(z);fb=m(ye);formGroupName=b.required();isArray=b.required();enableTimeout=b.required();dataTimeout=b.required();filterSelfPaths=b.required();addPathEvent=b(void 0);delPathEvent=b(void 0);updatePathEvent=b(void 0);pathsFormGroup;multiCTRLArray=[];ngOnInit(){this.isArray()?(this.pathsFormGroup=this.rootFormGroup.control.get(this.formGroupName()),this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value):this.pathsFormGroup=this.rootFormGroup.control.get(this.formGroupName())}addPath(t){this.pathsFormGroup.push(this.fb.group({description:[t.path.description],path:[t.path.path,U.required],pathID:[t.path.pathID],source:[t.path.source,U.required],pathType:[t.path.pathType],isPathConfigurable:[t.path.isPathConfigurable],showPathSkUnitsFilter:[t.path.showPathSkUnitsFilter],pathSkUnitsFilter:[t.path.pathSkUnitsFilter],convertUnitTo:[t.path.convertUnitTo],sampleTime:[t.path.sampleTime],supportsPut:[t.path.supportsPut]})),this.pathsFormGroup.updateValueAndValidity(),this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}delPath(){this.multiCTRLArray=this.rootFormGroup.control.get("multiChildCtrls").value}updatePath(t){this.multiCTRLArray=t}ngOnChanges(t){t.addPathEvent&&!t.addPathEvent.firstChange&&this.addPath(t.addPathEvent.currentValue),t.delPathEvent&&!t.delPathEvent.firstChange&&this.delPath(),t.updatePathEvent&&!t.updatePathEvent.firstChange&&this.updatePath(t.updatePathEvent.currentValue)}static \u0275fac=function(a){return new(a||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:[ee],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,e){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(),_(6,"input",2),n(7,"span",3),r(8,"Seconds"),o()()(),Ui(9,4),u(10,In,2,0)(11,Pn,3,2),zi(),n(12,"mat-checkbox",5),r(13,` Restrict to own vessel
|
|
5
|
-
`),o()),a&2&&(s(),p("formControl",e.enableTimeout()),s(5),p("formControl",e.dataTimeout()),s(3),p("formGroup",e.pathsFormGroup),s(),h(e.isArray()?10:11),s(2),p("formControl",e.filterSelfPaths()))},dependencies:[yt,J,Z,$t,O,X,P,ve,F,_t,z,N,L,tt,Ce,Co,go],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding-top:15px;padding-bottom:5px}"]})}return i})();function Fn(i,c){if(i&1){let t=D();n(0,"button",7),y("click",function(){M(t);let e=g();return w(e.dateTimezone().setValue(""))}),_(1,"span",8),o()}}function Ln(i,c){if(i&1&&(n(0,"mat-option",6),r(1),o()),i&2){let t=c.$implicit;p("value",t.label),s(),he(" ",t.offset," - ",t.label," ")}}function Nn(i){return c=>i.some(a=>a.label===c.value)?null:{requireMatch:!0}}var Vn=()=>{let i=Intl.supportedValuesOf("timeZone"),c=new Date;return i.map(t=>({offset:new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"shortOffset"}).formatToParts(c).find(d=>d.type==="timeZoneName")?.value||"",label:t}))},Mo=(()=>{class i{_destroyRef=m(me);dateFormat=b(void 0);dateTimezone=b(void 0);tz=[];filteredTZ;filteredTZSubscription=null;constructor(){}ngOnInit(){typeof Intl.supportedValuesOf<"u"?this.tz=Vn().sort((t,a)=>this.compareOffsets(t.offset,a.offset)):(console.log("[Widget Options] Feature not supported. Using static Time Zone list"),this.tz=[{offset:"GMT",label:"Africa/Abidjan"},{offset:"GMT",label:"Africa/Accra"},{offset:"GMT+3",label:"Africa/Addis_Ababa"},{offset:"GMT+1",label:"Africa/Algiers"},{offset:"GMT+3",label:"Africa/Asmera"},{offset:"GMT",label:"Africa/Bamako"},{offset:"GMT+1",label:"Africa/Bangui"},{offset:"GMT",label:"Africa/Banjul"},{offset:"GMT",label:"Africa/Bissau"},{offset:"GMT+2",label:"Africa/Blantyre"},{offset:"GMT+1",label:"Africa/Brazzaville"},{offset:"GMT+2",label:"Africa/Bujumbura"},{offset:"GMT+2",label:"Africa/Cairo"},{offset:"GMT",label:"Africa/Casablanca"},{offset:"GMT+2",label:"Africa/Ceuta"},{offset:"GMT",label:"Africa/Conakry"},{offset:"GMT",label:"Africa/Dakar"},{offset:"GMT+3",label:"Africa/Dar_es_Salaam"},{offset:"GMT+3",label:"Africa/Djibouti"},{offset:"GMT+1",label:"Africa/Douala"},{offset:"GMT",label:"Africa/El_Aaiun"},{offset:"GMT",label:"Africa/Freetown"},{offset:"GMT+2",label:"Africa/Gaborone"},{offset:"GMT+2",label:"Africa/Harare"},{offset:"GMT+2",label:"Africa/Johannesburg"},{offset:"GMT+2",label:"Africa/Juba"},{offset:"GMT+3",label:"Africa/Kampala"},{offset:"GMT+2",label:"Africa/Khartoum"},{offset:"GMT+2",label:"Africa/Kigali"},{offset:"GMT+1",label:"Africa/Kinshasa"},{offset:"GMT+1",label:"Africa/Lagos"},{offset:"GMT+1",label:"Africa/Libreville"},{offset:"GMT",label:"Africa/Lome"},{offset:"GMT+1",label:"Africa/Luanda"},{offset:"GMT+2",label:"Africa/Lubumbashi"},{offset:"GMT+2",label:"Africa/Lusaka"},{offset:"GMT+1",label:"Africa/Malabo"},{offset:"GMT+2",label:"Africa/Maputo"},{offset:"GMT+2",label:"Africa/Maseru"},{offset:"GMT+2",label:"Africa/Mbabane"},{offset:"GMT+3",label:"Africa/Mogadishu"},{offset:"GMT",label:"Africa/Monrovia"},{offset:"GMT+3",label:"Africa/Nairobi"},{offset:"GMT+1",label:"Africa/Ndjamena"},{offset:"GMT+1",label:"Africa/Niamey"},{offset:"GMT",label:"Africa/Nouakchott"},{offset:"GMT",label:"Africa/Ouagadougou"},{offset:"GMT+1",label:"Africa/Porto-Novo"},{offset:"GMT",label:"Africa/Sao_Tome"},{offset:"GMT+2",label:"Africa/Tripoli"},{offset:"GMT+1",label:"Africa/Tunis"},{offset:"GMT+2",label:"Africa/Windhoek"},{offset:"GMT-9",label:"America/Adak"},{offset:"GMT-8",label:"America/Anchorage"},{offset:"GMT-4",label:"America/Anguilla"},{offset:"GMT-4",label:"America/Antigua"},{offset:"GMT-3",label:"America/Araguaina"},{offset:"GMT-3",label:"America/Argentina/La_Rioja"},{offset:"GMT-3",label:"America/Argentina/Rio_Gallegos"},{offset:"GMT-3",label:"America/Argentina/Salta"},{offset:"GMT-3",label:"America/Argentina/San_Juan"},{offset:"GMT-3",label:"America/Argentina/San_Luis"},{offset:"GMT-3",label:"America/Argentina/Tucuman"},{offset:"GMT-3",label:"America/Argentina/Ushuaia"},{offset:"GMT-4",label:"America/Aruba"},{offset:"GMT-3",label:"America/Asuncion"},{offset:"GMT-3",label:"America/Bahia"},{offset:"GMT-6",label:"America/Bahia_Banderas"},{offset:"GMT-4",label:"America/Barbados"},{offset:"GMT-3",label:"America/Belem"},{offset:"GMT-6",label:"America/Belize"},{offset:"GMT-4",label:"America/Blanc-Sablon"},{offset:"GMT-4",label:"America/Boa_Vista"},{offset:"GMT-5",label:"America/Bogota"},{offset:"GMT-6",label:"America/Boise"},{offset:"GMT-3",label:"America/Buenos_Aires"},{offset:"GMT-6",label:"America/Cambridge_Bay"},{offset:"GMT-4",label:"America/Campo_Grande"},{offset:"GMT-5",label:"America/Cancun"},{offset:"GMT-4",label:"America/Caracas"},{offset:"GMT-3",label:"America/Catamarca"},{offset:"GMT-3",label:"America/Cayenne"},{offset:"GMT-5",label:"America/Cayman"},{offset:"GMT-5",label:"America/Chicago"},{offset:"GMT-6",label:"America/Chihuahua"},{offset:"GMT-6",label:"America/Ciudad_Juarez"},{offset:"GMT-5",label:"America/Coral_Harbour"},{offset:"GMT-3",label:"America/Cordoba"},{offset:"GMT-6",label:"America/Costa_Rica"},{offset:"GMT-7",label:"America/Creston"},{offset:"GMT-4",label:"America/Cuiaba"},{offset:"GMT-4",label:"America/Curacao"},{offset:"GMT",label:"America/Danmarkshavn"},{offset:"GMT-7",label:"America/Dawson"},{offset:"GMT-7",label:"America/Dawson_Creek"},{offset:"GMT-6",label:"America/Denver"},{offset:"GMT-4",label:"America/Detroit"},{offset:"GMT-4",label:"America/Dominica"},{offset:"GMT-6",label:"America/Edmonton"},{offset:"GMT-5",label:"America/Eirunepe"},{offset:"GMT-6",label:"America/El_Salvador"},{offset:"GMT-7",label:"America/Fort_Nelson"},{offset:"GMT-3",label:"America/Fortaleza"},{offset:"GMT-3",label:"America/Glace_Bay"},{offset:"GMT-1",label:"America/Godthab"},{offset:"GMT-3",label:"America/Goose_Bay"},{offset:"GMT-4",label:"America/Grand_Turk"},{offset:"GMT-4",label:"America/Grenada"},{offset:"GMT-4",label:"America/Guadeloupe"},{offset:"GMT-6",label:"America/Guatemala"},{offset:"GMT-5",label:"America/Guayaquil"},{offset:"GMT-4",label:"America/Guyana"},{offset:"GMT-3",label:"America/Halifax"},{offset:"GMT-4",label:"America/Havana"},{offset:"GMT-7",label:"America/Hermosillo"},{offset:"GMT-5",label:"America/Indiana/Knox"},{offset:"GMT-4",label:"America/Indiana/Marengo"},{offset:"GMT-4",label:"America/Indiana/Petersburg"},{offset:"GMT-5",label:"America/Indiana/Tell_City"},{offset:"GMT-4",label:"America/Indiana/Vevay"},{offset:"GMT-4",label:"America/Indiana/Vincennes"},{offset:"GMT-4",label:"America/Indiana/Winamac"},{offset:"GMT-4",label:"America/Indianapolis"},{offset:"GMT-6",label:"America/Inuvik"},{offset:"GMT-4",label:"America/Iqaluit"},{offset:"GMT-5",label:"America/Jamaica"},{offset:"GMT-3",label:"America/Jujuy"},{offset:"GMT-8",label:"America/Juneau"},{offset:"GMT-4",label:"America/Kentucky/Monticello"},{offset:"GMT-4",label:"America/Kralendijk"},{offset:"GMT-4",label:"America/La_Paz"},{offset:"GMT-5",label:"America/Lima"},{offset:"GMT-7",label:"America/Los_Angeles"},{offset:"GMT-4",label:"America/Louisville"},{offset:"GMT-4",label:"America/Lower_Princes"},{offset:"GMT-3",label:"America/Maceio"},{offset:"GMT-6",label:"America/Managua"},{offset:"GMT-4",label:"America/Manaus"},{offset:"GMT-4",label:"America/Marigot"},{offset:"GMT-4",label:"America/Martinique"},{offset:"GMT-5",label:"America/Matamoros"},{offset:"GMT-7",label:"America/Mazatlan"},{offset:"GMT-3",label:"America/Mendoza"},{offset:"GMT-5",label:"America/Menominee"},{offset:"GMT-6",label:"America/Merida"},{offset:"GMT-8",label:"America/Metlakatla"},{offset:"GMT-6",label:"America/Mexico_City"},{offset:"GMT-2",label:"America/Miquelon"},{offset:"GMT-3",label:"America/Moncton"},{offset:"GMT-6",label:"America/Monterrey"},{offset:"GMT-3",label:"America/Montevideo"},{offset:"GMT-4",label:"America/Montserrat"},{offset:"GMT-4",label:"America/Nassau"},{offset:"GMT-4",label:"America/New_York"},{offset:"GMT-8",label:"America/Nome"},{offset:"GMT-2",label:"America/Noronha"},{offset:"GMT-5",label:"America/North_Dakota/Beulah"},{offset:"GMT-5",label:"America/North_Dakota/Center"},{offset:"GMT-5",label:"America/North_Dakota/New_Salem"},{offset:"GMT-5",label:"America/Ojinaga"},{offset:"GMT-5",label:"America/Panama"},{offset:"GMT-3",label:"America/Paramaribo"},{offset:"GMT-7",label:"America/Phoenix"},{offset:"GMT-4",label:"America/Port-au-Prince"},{offset:"GMT-4",label:"America/Port_of_Spain"},{offset:"GMT-4",label:"America/Porto_Velho"},{offset:"GMT-4",label:"America/Puerto_Rico"},{offset:"GMT-3",label:"America/Punta_Arenas"},{offset:"GMT-5",label:"America/Rankin_Inlet"},{offset:"GMT-3",label:"America/Recife"},{offset:"GMT-6",label:"America/Regina"},{offset:"GMT-5",label:"America/Resolute"},{offset:"GMT-5",label:"America/Rio_Branco"},{offset:"GMT-3",label:"America/Santarem"},{offset:"GMT-3",label:"America/Santiago"},{offset:"GMT-4",label:"America/Santo_Domingo"},{offset:"GMT-3",label:"America/Sao_Paulo"},{offset:"GMT-1",label:"America/Scoresbysund"},{offset:"GMT-8",label:"America/Sitka"},{offset:"GMT-4",label:"America/St_Barthelemy"},{offset:"GMT-2:30",label:"America/St_Johns"},{offset:"GMT-4",label:"America/St_Kitts"},{offset:"GMT-4",label:"America/St_Lucia"},{offset:"GMT-4",label:"America/St_Thomas"},{offset:"GMT-4",label:"America/St_Vincent"},{offset:"GMT-6",label:"America/Swift_Current"},{offset:"GMT-6",label:"America/Tegucigalpa"},{offset:"GMT-3",label:"America/Thule"},{offset:"GMT-7",label:"America/Tijuana"},{offset:"GMT-4",label:"America/Toronto"},{offset:"GMT-4",label:"America/Tortola"},{offset:"GMT-7",label:"America/Vancouver"},{offset:"GMT-7",label:"America/Whitehorse"},{offset:"GMT-5",label:"America/Winnipeg"},{offset:"GMT-8",label:"America/Yakutat"},{offset:"GMT+8",label:"Antarctica/Casey"},{offset:"GMT+7",label:"Antarctica/Davis"},{offset:"GMT+10",label:"Antarctica/DumontDUrville"},{offset:"GMT+11",label:"Antarctica/Macquarie"},{offset:"GMT+5",label:"Antarctica/Mawson"},{offset:"GMT+13",label:"Antarctica/McMurdo"},{offset:"GMT-3",label:"Antarctica/Palmer"},{offset:"GMT-3",label:"Antarctica/Rothera"},{offset:"GMT+3",label:"Antarctica/Syowa"},{offset:"GMT+2",label:"Antarctica/Troll"},{offset:"GMT+5",label:"Antarctica/Vostok"},{offset:"GMT+2",label:"Arctic/Longyearbyen"},{offset:"GMT+3",label:"Asia/Aden"},{offset:"GMT+5",label:"Asia/Almaty"},{offset:"GMT+3",label:"Asia/Amman"},{offset:"GMT+12",label:"Asia/Anadyr"},{offset:"GMT+5",label:"Asia/Aqtau"},{offset:"GMT+5",label:"Asia/Aqtobe"},{offset:"GMT+5",label:"Asia/Ashgabat"},{offset:"GMT+5",label:"Asia/Atyrau"},{offset:"GMT+3",label:"Asia/Baghdad"},{offset:"GMT+3",label:"Asia/Bahrain"},{offset:"GMT+4",label:"Asia/Baku"},{offset:"GMT+7",label:"Asia/Bangkok"},{offset:"GMT+7",label:"Asia/Barnaul"},{offset:"GMT+3",label:"Asia/Beirut"},{offset:"GMT+6",label:"Asia/Bishkek"},{offset:"GMT+8",label:"Asia/Brunei"},{offset:"GMT+5:30",label:"Asia/Calcutta"},{offset:"GMT+9",label:"Asia/Chita"},{offset:"GMT+5:30",label:"Asia/Colombo"},{offset:"GMT+3",label:"Asia/Damascus"},{offset:"GMT+6",label:"Asia/Dhaka"},{offset:"GMT+9",label:"Asia/Dili"},{offset:"GMT+4",label:"Asia/Dubai"},{offset:"GMT+5",label:"Asia/Dushanbe"},{offset:"GMT+3",label:"Asia/Famagusta"},{offset:"GMT+2",label:"Asia/Gaza"},{offset:"GMT+2",label:"Asia/Hebron"},{offset:"GMT+8",label:"Asia/Hong_Kong"},{offset:"GMT+7",label:"Asia/Hovd"},{offset:"GMT+8",label:"Asia/Irkutsk"},{offset:"GMT+7",label:"Asia/Jakarta"},{offset:"GMT+9",label:"Asia/Jayapura"},{offset:"GMT+3",label:"Asia/Jerusalem"},{offset:"GMT+4:30",label:"Asia/Kabul"},{offset:"GMT+12",label:"Asia/Kamchatka"},{offset:"GMT+5",label:"Asia/Karachi"},{offset:"GMT+5:45",label:"Asia/Katmandu"},{offset:"GMT+9",label:"Asia/Khandyga"},{offset:"GMT+7",label:"Asia/Krasnoyarsk"},{offset:"GMT+8",label:"Asia/Kuala_Lumpur"},{offset:"GMT+8",label:"Asia/Kuching"},{offset:"GMT+3",label:"Asia/Kuwait"},{offset:"GMT+8",label:"Asia/Macau"},{offset:"GMT+11",label:"Asia/Magadan"},{offset:"GMT+8",label:"Asia/Makassar"},{offset:"GMT+8",label:"Asia/Manila"},{offset:"GMT+4",label:"Asia/Muscat"},{offset:"GMT+3",label:"Asia/Nicosia"},{offset:"GMT+7",label:"Asia/Novokuznetsk"},{offset:"GMT+7",label:"Asia/Novosibirsk"},{offset:"GMT+6",label:"Asia/Omsk"},{offset:"GMT+5",label:"Asia/Oral"},{offset:"GMT+7",label:"Asia/Phnom_Penh"},{offset:"GMT+7",label:"Asia/Pontianak"},{offset:"GMT+9",label:"Asia/Pyongyang"},{offset:"GMT+3",label:"Asia/Qatar"},{offset:"GMT+5",label:"Asia/Qostanay"},{offset:"GMT+5",label:"Asia/Qyzylorda"},{offset:"GMT+6:30",label:"Asia/Rangoon"},{offset:"GMT+3",label:"Asia/Riyadh"},{offset:"GMT+7",label:"Asia/Saigon"},{offset:"GMT+11",label:"Asia/Sakhalin"},{offset:"GMT+5",label:"Asia/Samarkand"},{offset:"GMT+9",label:"Asia/Seoul"},{offset:"GMT+8",label:"Asia/Shanghai"},{offset:"GMT+8",label:"Asia/Singapore"},{offset:"GMT+11",label:"Asia/Srednekolymsk"},{offset:"GMT+8",label:"Asia/Taipei"},{offset:"GMT+5",label:"Asia/Tashkent"},{offset:"GMT+4",label:"Asia/Tbilisi"},{offset:"GMT+3:30",label:"Asia/Tehran"},{offset:"GMT+6",label:"Asia/Thimphu"},{offset:"GMT+9",label:"Asia/Tokyo"},{offset:"GMT+7",label:"Asia/Tomsk"},{offset:"GMT+8",label:"Asia/Ulaanbaatar"},{offset:"GMT+6",label:"Asia/Urumqi"},{offset:"GMT+10",label:"Asia/Ust-Nera"},{offset:"GMT+7",label:"Asia/Vientiane"},{offset:"GMT+10",label:"Asia/Vladivostok"},{offset:"GMT+9",label:"Asia/Yakutsk"},{offset:"GMT+5",label:"Asia/Yekaterinburg"},{offset:"GMT+4",label:"Asia/Yerevan"},{offset:"GMT",label:"Atlantic/Azores"},{offset:"GMT-3",label:"Atlantic/Bermuda"},{offset:"GMT+1",label:"Atlantic/Canary"},{offset:"GMT-1",label:"Atlantic/Cape_Verde"},{offset:"GMT+1",label:"Atlantic/Faeroe"},{offset:"GMT+1",label:"Atlantic/Madeira"},{offset:"GMT",label:"Atlantic/Reykjavik"},{offset:"GMT-2",label:"Atlantic/South_Georgia"},{offset:"GMT",label:"Atlantic/St_Helena"},{offset:"GMT-3",label:"Atlantic/Stanley"},{offset:"GMT+10:30",label:"Australia/Adelaide"},{offset:"GMT+10",label:"Australia/Brisbane"},{offset:"GMT+10:30",label:"Australia/Broken_Hill"},{offset:"GMT+9:30",label:"Australia/Darwin"},{offset:"GMT+8:45",label:"Australia/Eucla"},{offset:"GMT+11",label:"Australia/Hobart"},{offset:"GMT+10",label:"Australia/Lindeman"},{offset:"GMT+11",label:"Australia/Lord_Howe"},{offset:"GMT+11",label:"Australia/Melbourne"},{offset:"GMT+8",label:"Australia/Perth"},{offset:"GMT+11",label:"Australia/Sydney"},{offset:"GMT+2",label:"Europe/Amsterdam"},{offset:"GMT+2",label:"Europe/Andorra"},{offset:"GMT+4",label:"Europe/Astrakhan"},{offset:"GMT+3",label:"Europe/Athens"},{offset:"GMT+2",label:"Europe/Belgrade"},{offset:"GMT+2",label:"Europe/Berlin"},{offset:"GMT+2",label:"Europe/Bratislava"},{offset:"GMT+2",label:"Europe/Brussels"},{offset:"GMT+3",label:"Europe/Bucharest"},{offset:"GMT+2",label:"Europe/Budapest"},{offset:"GMT+2",label:"Europe/Busingen"},{offset:"GMT+3",label:"Europe/Chisinau"},{offset:"GMT+2",label:"Europe/Copenhagen"},{offset:"GMT+1",label:"Europe/Dublin"},{offset:"GMT+2",label:"Europe/Gibraltar"},{offset:"GMT+1",label:"Europe/Guernsey"},{offset:"GMT+3",label:"Europe/Helsinki"},{offset:"GMT+1",label:"Europe/Isle_of_Man"},{offset:"GMT+3",label:"Europe/Istanbul"},{offset:"GMT+1",label:"Europe/Jersey"},{offset:"GMT+2",label:"Europe/Kaliningrad"},{offset:"GMT+3",label:"Europe/Kiev"},{offset:"GMT+3",label:"Europe/Kirov"},{offset:"GMT+1",label:"Europe/Lisbon"},{offset:"GMT+2",label:"Europe/Ljubljana"},{offset:"GMT+1",label:"Europe/London"},{offset:"GMT+2",label:"Europe/Luxembourg"},{offset:"GMT+2",label:"Europe/Madrid"},{offset:"GMT+2",label:"Europe/Malta"},{offset:"GMT+3",label:"Europe/Mariehamn"},{offset:"GMT+3",label:"Europe/Minsk"},{offset:"GMT+2",label:"Europe/Monaco"},{offset:"GMT+3",label:"Europe/Moscow"},{offset:"GMT+2",label:"Europe/Oslo"},{offset:"GMT+2",label:"Europe/Paris"},{offset:"GMT+2",label:"Europe/Podgorica"},{offset:"GMT+2",label:"Europe/Prague"},{offset:"GMT+3",label:"Europe/Riga"},{offset:"GMT+2",label:"Europe/Rome"},{offset:"GMT+4",label:"Europe/Samara"},{offset:"GMT+2",label:"Europe/San_Marino"},{offset:"GMT+2",label:"Europe/Sarajevo"},{offset:"GMT+4",label:"Europe/Saratov"},{offset:"GMT+3",label:"Europe/Simferopol"},{offset:"GMT+2",label:"Europe/Skopje"},{offset:"GMT+3",label:"Europe/Sofia"},{offset:"GMT+2",label:"Europe/Stockholm"},{offset:"GMT+3",label:"Europe/Tallinn"},{offset:"GMT+2",label:"Europe/Tirane"},{offset:"GMT+4",label:"Europe/Ulyanovsk"},{offset:"GMT+2",label:"Europe/Vaduz"},{offset:"GMT+2",label:"Europe/Vatican"},{offset:"GMT+2",label:"Europe/Vienna"},{offset:"GMT+3",label:"Europe/Vilnius"},{offset:"GMT+3",label:"Europe/Volgograd"},{offset:"GMT+2",label:"Europe/Warsaw"},{offset:"GMT+2",label:"Europe/Zagreb"},{offset:"GMT+2",label:"Europe/Zurich"},{offset:"GMT+3",label:"Indian/Antananarivo"},{offset:"GMT+6",label:"Indian/Chagos"},{offset:"GMT+7",label:"Indian/Christmas"},{offset:"GMT+6:30",label:"Indian/Cocos"},{offset:"GMT+3",label:"Indian/Comoro"},{offset:"GMT+5",label:"Indian/Kerguelen"},{offset:"GMT+4",label:"Indian/Mahe"},{offset:"GMT+5",label:"Indian/Maldives"},{offset:"GMT+4",label:"Indian/Mauritius"},{offset:"GMT+3",label:"Indian/Mayotte"},{offset:"GMT+4",label:"Indian/Reunion"},{offset:"GMT+13",label:"Pacific/Apia"},{offset:"GMT+13",label:"Pacific/Auckland"},{offset:"GMT+11",label:"Pacific/Bougainville"},{offset:"GMT+13:45",label:"Pacific/Chatham"},{offset:"GMT-5",label:"Pacific/Easter"},{offset:"GMT+11",label:"Pacific/Efate"},{offset:"GMT+13",label:"Pacific/Enderbury"},{offset:"GMT+13",label:"Pacific/Fakaofo"},{offset:"GMT+12",label:"Pacific/Fiji"},{offset:"GMT+12",label:"Pacific/Funafuti"},{offset:"GMT-6",label:"Pacific/Galapagos"},{offset:"GMT-9",label:"Pacific/Gambier"},{offset:"GMT+11",label:"Pacific/Guadalcanal"},{offset:"GMT+10",label:"Pacific/Guam"},{offset:"GMT-10",label:"Pacific/Honolulu"},{offset:"GMT+14",label:"Pacific/Kiritimati"},{offset:"GMT+11",label:"Pacific/Kosrae"},{offset:"GMT+12",label:"Pacific/Kwajalein"},{offset:"GMT+12",label:"Pacific/Majuro"},{offset:"GMT-9:30",label:"Pacific/Marquesas"},{offset:"GMT-11",label:"Pacific/Midway"},{offset:"GMT+12",label:"Pacific/Nauru"},{offset:"GMT-11",label:"Pacific/Niue"},{offset:"GMT+12",label:"Pacific/Norfolk"},{offset:"GMT+11",label:"Pacific/Noumea"},{offset:"GMT-11",label:"Pacific/Pago_Pago"},{offset:"GMT+9",label:"Pacific/Palau"},{offset:"GMT-8",label:"Pacific/Pitcairn"},{offset:"GMT+11",label:"Pacific/Ponape"},{offset:"GMT+10",label:"Pacific/Port_Moresby"},{offset:"GMT-10",label:"Pacific/Rarotonga"},{offset:"GMT+10",label:"Pacific/Saipan"},{offset:"GMT-10",label:"Pacific/Tahiti"},{offset:"GMT+12",label:"Pacific/Tarawa"},{offset:"GMT+13",label:"Pacific/Tongatapu"},{offset:"GMT+10",label:"Pacific/Truk"},{offset:"GMT+12",label:"Pacific/Wake"},{offset:"GMT+12",label:"Pacific/Wallis"}].sort((t,a)=>this.compareOffsets(t.offset,a.offset))),this.tz.unshift({offset:"",label:"System Timezone -"}),this.dateTimezone().setValidators([U.required,Nn(this.tz)]),this.filteredTZ=this.dateTimezone().valueChanges.pipe(Pe(500),de(""),se(t=>this.filterTZ(t||""))),this.filteredTZSubscription=this.filteredTZ.pipe(Wt(this._destroyRef)).subscribe()}filterTZ(t){let a=t.toLowerCase();return this.tz.filter(e=>e.label.toLowerCase().includes(a))}compareOffsets(t,a){let e=l=>{let d=l.match(/([+-]?)(\d+)(?::(\d+))?/);if(!d)return 0;let f=d[1]==="-"?-1:1,S=parseInt(d[2],10),G=d[3]?parseInt(d[3],10):0;return f*(S*60+G)};return e(t)-e(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,e){if(a&1&&(n(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),r(3,"Date & Time Format"),o(),_(4,"input",3),o(),n(5,"mat-form-field",2)(6,"mat-label"),r(7,"Adjust Value to Time Zone"),o(),_(8,"input",4),u(9,Fn,2,0,"button",5),n(10,"mat-autocomplete",null,0),C(12,Ln,2,3,"mat-option",6,Ne),Vt(14,"async"),o()()()),a&2){let l=dt(11);s(4),p("formControl",e.dateFormat()),s(4),p("formControl",e.dateTimezone())("matAutocomplete",l),s(),h(e.dateTimezone().value?9:-1),s(3),x(Rt(14,4,e.filteredTZ))}},dependencies:[N,L,tt,J,Z,O,P,F,_t,De,ot,Ce,si,j,We],encapsulation:2})}return i})();function Rn(i,c){if(i&1&&(n(0,"mat-option",6),r(1),Vt(2,"titlecase"),o()),i&2){let t=c.$implicit;p("value",Tt(t)),s(),T(Rt(2,3,t))}}var Ti={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"},wo={options:{modes:[],states:[]},state:null,mode:"off-line",target:null,engaged:!1},So=(()=>{class i{formGroupName=b.required();_plugins=m(ai);_destroyRef=m(me);http=m(Ji);rootFormGroup=m(z);autopilotFormGroup;apiVersion=k(null);availableAutopilots=k({});autopilotPlugin=k(null);discoveryInProgress=k(!1);apiDetectionError=k(null);apInstances=Yi(()=>{let t=this.availableAutopilots();return t?Object.keys(t):[]});modes=k(null);pluginId=k(null);currentRequests=new Set;constructor(){Be(()=>{this.autopilotFormGroup.get("apiVersion")?.setValue(this.apiVersion(),{emitEvent:!1})})}ngOnInit(){this.autopilotFormGroup=this.rootFormGroup.control.get(this.formGroupName()),this.modes.set(this.autopilotFormGroup.value.modes||null),this.detectAutopilotApi()}detectAutopilotApi(){return H(this,null,function*(){this.discoveryInProgress.set(!0),console.log("[Autopilot Options] Starting API detection...");try{if(yield this.checkV2Api())if(this.apiVersion.set("v2"),this.autopilotFormGroup.get("apiVersion")?.setValue("v2",{emitEvent:!1}),yield this.discoverV2Autopilots(),this.availableAutopilots()&&Object.keys(this.availableAutopilots()).length>0){this.pluginId.set(this.autopilotPlugin()),this.autopilotFormGroup.get("pluginId")?.setValue(this.autopilotPlugin(),{emitEvent:!1}),this.discoveryInProgress.set(!1);return}else console.warn("[Autopilot Options] No V2 autopilot plugin found")}catch(t){console.error("[Autopilot Options] Error checking V2 API, checking V1...",t)}try{if(yield this._plugins.isEnabled(Ti.V1_PLUGIN)){this.apiVersion.set("v1"),this.autopilotFormGroup.get("apiVersion")?.setValue("v1",{emitEvent:!1}),this.availableAutopilots.set({"Default Autopilot":{provider:"Signal K Autopilot",isDefault:!0}}),this.pluginId.set("Signal K Autopilot"),this.autopilotFormGroup.get("pluginId")?.setValue("Signal K Autopilot",{emitEvent:!1}),console.log("[Autopilot Options] V1 API Signal K Autopilot plugin detected"),this.discoveryInProgress.set(!1);return}console.log("[Autopilot Options] V1 API plugin (signalk-autopilot) not found")}catch(t){console.error("[Autopilot Options] V1 plugin detection failed:",t)}console.warn("[Autopilot Options] No Autopilot detected"),this.discoveryInProgress.set(!1)})}checkV2Api(){return H(this,null,function*(){try{return(yield Oe(this.makeHttpRequest(this.http.get(Ti.V2_AUTOPILOTS,{observe:"response",responseType:"json"}))))?.status===200}catch(t){if(t&&typeof t=="object"&&"status"in t){let a=t;a.status===404?console.log("[Autopilot Options] V2 API endpoint not found (404)"):a.status>=500?console.warn("[Autopilot Options] V2 API server error:",a.status,a.statusText):console.log("[Autopilot Options] V2 API error:",a.status,a.statusText)}else console.log("[Autopilot Options] V2 API network error:",t);return!1}})}discoverV2Autopilots(){return H(this,null,function*(){try{let t=yield Oe(this.makeHttpRequest(this.http.get(Ti.V2_AUTOPILOTS)));t&&Object.keys(t).length>0?(this.availableAutopilots.set(t),console.log("[Autopilot Options] Discovered V2 autopilot instances:",JSON.stringify(t))):(this.availableAutopilots.set({}),console.warn("[Autopilot Options] No V2 autopilot plugin found in response."))}catch(t){console.error("[Autopilot Options] Failed to discover V2 autopilots:",t),this.availableAutopilots.set({}),this.apiDetectionError.set(`Failed to discover autopilots: ${t instanceof Error?t.message:"Unknown error"}`)}})}discoverV2AutopilotOptions(t){return H(this,null,function*(){let a;try{try{this.discoveryInProgress.set(!0),a=yield Oe(this.makeHttpRequest(this.http.get(`API_PATHS.V2_AUTOPILOTS/${t}`))),console.log("[Autopilot Options] V2 Autopilot Options response:",JSON.stringify(a))}catch{a=wo,console.log(`[Autopilot Options] Default AP discovery endpoint error for instance '${t}'`)}return this.discoveryInProgress.set(!1),a}catch(e){return console.error("[Autopilot Options] Failed to discover V2 endpoints:",e),console.log(`[Autopilot Options] Using fallback V2 endpoints for instance '${t}'`),wo}})}onAutopilotInstanceIdChange(t){let a=t.value;if(t.value===""){this.modes.set(""),this.autopilotFormGroup.get("modes")?.setValue("",{emitEvent:!1});return}console.log("[Autopilot Options] Selected Autopilot Instance ID:",a),this.apiVersion()==="v2"?this.discoverV2AutopilotOptions(a).then(e=>{let l=e.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(e=>{console.error("[Autopilot Options] Error requesting autopilot modes:",e),this.autopilotFormGroup.get("modes")?.setValue([],{emitEvent:!1})}):this.apiVersion()==="v1"&&(this.modes.set("standby, auto, wind, route"),this.autopilotFormGroup.get("modes")?.setValue("standby, auto, wind, route",{emitEvent:!1}),console.log("[Autopilot Options] Autopilot mode set to Raymarine v1 API modes: standby, auto, wind, route"))}makeHttpRequest(t){let a=t.pipe(Wt(this._destroyRef));return this.currentRequests.add(a),a.pipe(Pi(()=>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,e){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),y("selectionChange",function(d){return e.onAutopilotInstanceIdChange(d)}),n(18,"mat-option",5),r(19,"No autopilot"),o(),C(20,Rn,3,5,"mat-option",6,A),o()(),n(22,"div",7)(23,"b"),r(24,"Supported modes:"),o(),r(25),o(),n(26,"mat-checkbox",8),r(27," Display True Heading "),o(),n(28,"mat-checkbox",9),r(29," Invert Rudder Angle Indicator "),o()()()),a&2&&(s(),p("formGroup",e.autopilotFormGroup),s(8),R(" ",e.apiVersion()),s(4),R(" ",e.pluginId()),s(7),x(e.apInstances()),s(5),R(" ",e.modes()," "))},dependencies:[F,O,X,P,z,Yt,vt,N,L,Xt,yt,Zt,lt,j,Qt,Xi],styles:[".autopilot-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}"]})}return i})();var To=()=>["measuring","capacity"],Bn=()=>["marineCompass","baseplateCompass"];function Wn(i,c){if(i&1&&_(0,"config-display-chart-options",5),i&2){let t=g();p("displayName",t.displayNameToControl)("datasetUUID",t.datasetUUIDToControl)("convertUnitTo",t.convertUnitToControl)("showAverageData",t.showAverageDataToControl)("trackAgainstAverage",t.trackAgainstAverageToControl)("datasetAverageArray",t.datasetAverageArrayToControl)("showDatasetMinimumValueLine",t.showDatasetMinimumValueLineToControl)("showDatasetMaximumValueLine",t.showDatasetMaximumValueLineToControl)("showDatasetAverageValueLine",t.showDatasetAverageValueLineToControl)("showDatasetAngleAverageValueLine",t.showDatasetAngleAverageValueLineToControl)("startScaleAtZero",t.startScaleAtZeroToControl)("showLabel",t.showLabelToControl)("showTimeScale",t.showTimeScaleToControl)("showYScale",t.showYScaleToControl)("yScaleSuggestedMin",t.yScaleSuggestedMinToControl)("yScaleSuggestedMax",t.yScaleSuggestedMaxToControl)("enableMinMaxScaleLimit",t.enableMinMaxScaleLimitToControl)("yScaleMin",t.yScaleMinToControl)("yScaleMax",t.yScaleMaxToControl)("numDecimal",t.numDecimalToControl)("verticalChart",t.verticalChartToControl)("inverseYAxis",t.inverseYAxisToControl)("color",t.colorToControl)}}function Un(i,c){i&1&&_(0,"select-autopilot",6)}function zn(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"URL"),o(),_(3,"input",40),o())}function jn(i,c){i&1&&(n(0,"mat-checkbox",17),r(1," Allow pointer events on embedded content. WARNING: this may prevent swipe gestures over the Embed widget or keyboard events, while the focus is in the embed, from triggering normal KIP interactions. "),o())}function qn(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Widget Label"),o(),_(3,"input",41),o())}function Hn(i,c){i&1&&(n(0,"mat-form-field",42)(1,"mat-label"),r(2,"Scale Start"),o(),_(3,"input",43),o(),n(4,"mat-form-field",42)(5,"mat-label"),r(6,"Scale End"),o(),_(7,"input",44),o())}function Kn(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Integer Places"),o(),_(3,"input",45),o())}function $n(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Decimal Places"),o(),_(3,"input",46),o()),i&2){let t=g(2);ie(t.widgetConfig.showMiniChart!==void 0?"options-grid-span2":"")}}function Yn(i,c){i&1&&(n(0,"mat-checkbox",19),r(1," Show Min recorded value "),o())}function Qn(i,c){i&1&&(n(0,"mat-checkbox",20),r(1," Show Max recorded value "),o())}function Zn(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Next Dashboard after start"),o(),_(3,"input",47),o()),i&2){let t=g(2);V("options-grid-span2",!t.widgetConfig.numInt)}}function Xn(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let t=c.$implicit;p("value",t.measure),s(),R(" ",t.description," ")}}function Jn(i,c){if(i&1&&(n(0,"mat-optgroup",49),C(1,Xn,2,2,"mat-option",50,A),o()),i&2){let t=g().$implicit;p("label",t.group),s(),x(t.units)}}function tr(i,c){if(i&1&&u(0,Jn,3,1,"mat-optgroup",49),i&2){let t=c.$implicit,a=g(3);h(!a.widgetConfig.convertUnitToGroup||a.widgetConfig.convertUnitToGroup===""||a.widgetConfig.convertUnitToGroup===t.group?0:-1)}}function er(i,c){if(i&1&&(n(0,"mat-form-field",22)(1,"mat-label"),r(2,"Display Units"),o(),n(3,"mat-select",48),C(4,tr,1,1,null,null,A),o()()),i&2){let t=g(2);s(4),x(t.unitList.conversions)}}function ir(i,c){i&1&&(n(0,"mat-checkbox",23),r(1," Enable beeps on count down "),o())}function ar(i,c){if(i&1&&_(0,"display-datetime-options",24),i&2){let t=g(2);p("dateFormat",t.dateFormatToControl)("dateTimezone",t.dateTimezoneToControl)}}function or(i,c){i&1&&(n(0,"mat-checkbox",25),r(1," Close-hauled Lines "),o())}function nr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Vessel Close-hauled Angle"),o(),_(3,"input",51),o())}function rr(i,c){i&1&&(n(0,"mat-checkbox",26),r(1," Wind Sectors "),o())}function lr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Sector Duration"),o(),_(3,"input",52),o())}function sr(i,c){i&1&&(n(0,"mat-checkbox",27),r(1," Apparent Wind Speed Value "),o())}function cr(i,c){i&1&&(n(0,"mat-checkbox",28),r(1," True Wind Speed Value "),o())}function dr(i,c){i&1&&(n(0,"mat-checkbox",29),r(1," Course Over Ground "),o())}function mr(i,c){i&1&&(n(0,"mat-checkbox",30),r(1," True Wind Angle Indicator "),o())}function pr(i,c){i&1&&(n(0,"mat-checkbox",31),r(1," Next Waypoint "),o())}function ur(i,c){i&1&&(n(0,"mat-checkbox",32),r(1," Drift "),o())}function hr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Minimum Value"),o(),_(3,"input",53),o())}function gr(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Maximum Value"),o(),_(3,"input",54),o())}function fr(i,c){i&1&&(n(0,"mat-checkbox",33),r(1," Ignore Zones configuration "),o())}function br(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Highlights Width"),o(),_(3,"input",55),o())}function _r(i,c){i&1&&(n(0,"mat-form-field",35)(1,"mat-label"),r(2,"Rotation Element"),o(),n(3,"mat-select",56)(4,"mat-option",57),r(5,"Dial (Marine Compass)"),o(),n(6,"mat-option",58),r(7,"Needle (Base plate compass)"),o()()(),n(8,"div",34)(9,"mat-checkbox",59),r(10," Show value box "),o()(),n(11,"div",34)(12,"mat-checkbox",60),r(13," Show cardinal degrees "),o()())}function vr(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Progress Bar Start Angle"),o(),_(3,"input",63),o())}function yr(i,c){if(i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Gauge Type"),o(),n(3,"mat-select",56)(4,"mat-option",61),r(5,"Measuring"),o(),n(6,"mat-option",62),r(7,"Capacity"),o()()(),u(8,vr,4,0,"mat-form-field",34)),i&2){let t=g(3);s(8),h(t.formMaster.value.gauge.subType==="capacity"?8:-1)}}function Cr(i,c){if(i&1&&u(0,_r,14,0)(1,yr,9,1),i&2){let t=g(2);h(Re(1,Bn).indexOf(t.formMaster.value.gauge.subType)>-1?0:Re(2,To).indexOf(t.formMaster.value.gauge.subType)>-1?1:-1)}}function xr(i,c){i&1&&(n(0,"div",34)(1,"mat-checkbox",64),r(2," Use needle indicator "),o()(),n(3,"div",34)(4,"mat-checkbox",65),r(5," Enable Ticks "),o()(),n(6,"mat-form-field",35)(7,"mat-label"),r(8,"Orientation"),o(),n(9,"mat-select",66)(10,"mat-option",67),r(11,"Vertical"),o(),n(12,"mat-option",68),r(13,"Horizontal"),o()()())}function Mr(i,c){i&1&&(n(0,"mat-form-field",35)(1,"mat-label"),r(2,"Unit Label"),o(),n(3,"mat-select",69)(4,"mat-option",70),r(5,"Full Label"),o(),n(6,"mat-option",71),r(7,"First Letter Only"),o()()())}function wr(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let t=c.$implicit;p("value",Tt(t.value)),s(),T(t.label)}}function Sr(i,c){if(i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Color"),o(),n(3,"mat-select",72),C(4,wr,2,3,"mat-option",50,A),o()()),i&2){let t=g(2);s(4),x(t.colors)}}function Tr(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Scale Span"),o(),n(3,"mat-select",73)(4,"mat-option",74),r(5,"1 Minute"),o(),n(6,"mat-option",75),r(7,"5 Minutes"),o(),n(8,"mat-option",76),r(9,"30 Minutes"),o()()())}function kr(i,c){i&1&&(n(0,"mat-checkbox",36),r(1," Show Background Graph "),n(2,"i"),r(3,"(Too many graphs may affect performance)"),o()())}function Ar(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale Start"),o(),_(3,"input",77),o())}function Er(i,c){i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Suggested Scale End"),o(),_(3,"input",78),o())}function Dr(i,c){i&1&&(n(0,"mat-checkbox",37),r(1," Inverse Scale Axis "),o())}function Gr(i,c){i&1&&(n(0,"mat-checkbox",38),r(1," Vertical Data Graph "),o())}function Ir(i,c){i&1&&(n(0,"mat-checkbox",39),r(1," Disable background color "),o())}function Or(i,c){if(i&1&&(n(0,"mat-option",50),r(1),o()),i&2){let t=c.$implicit;p("value",Tt(t.value)),s(),T(t.label)}}function Pr(i,c){if(i&1&&(n(0,"mat-form-field")(1,"mat-label"),r(2,"Background Color"),o(),n(3,"mat-select",79),C(4,Or,2,3,"mat-option",50,A),o()()),i&2){let t=g(2);s(4),x(t.colors)}}function Fr(i,c){i&1&&(n(0,"mat-form-field",34)(1,"mat-label"),r(2,"Background Style"),o(),n(3,"mat-select",80)(4,"mat-option",81),r(5,"Dark Gray"),o(),n(6,"mat-option",82),r(7,"Satin Gray"),o(),n(8,"mat-option",83),r(9,"Light Gray"),o(),n(10,"mat-option",84),r(11,"White"),o(),n(12,"mat-option",85),r(13,"Black"),o(),n(14,"mat-option",86),r(15,"Beige"),o(),n(16,"mat-option",87),r(17,"Brown"),o(),n(18,"mat-option",88),r(19,"Red"),o(),n(20,"mat-option",89),r(21,"Green"),o(),n(22,"mat-option",90),r(23,"Blue"),o(),n(24,"mat-option",91),r(25,"Anthracite"),o(),n(26,"mat-option",92),r(27,"Mud"),o(),n(28,"mat-option",93),r(29,"Punched Sheet"),o(),n(30,"mat-option",94),r(31,"Carbon"),o(),n(32,"mat-option",95),r(33,"Stainless"),o(),n(34,"mat-option",96),r(35,"Brushed Metal"),o(),n(36,"mat-option",97),r(37,"Brushed Stainless"),o(),n(38,"mat-option",98),r(39,"Turned"),o()()(),n(40,"mat-form-field",34)(41,"mat-label"),r(42,"Frame Style"),o(),n(43,"mat-select",99)(44,"mat-option",100),r(45,"Black Metal"),o(),n(46,"mat-option",101),r(47,"Metal"),o(),n(48,"mat-option",102),r(49,"Shiny Metal"),o(),n(50,"mat-option",103),r(51,"Brass"),o(),n(52,"mat-option",104),r(53,"Steel"),o(),n(54,"mat-option",105),r(55,"Chrome"),o(),n(56,"mat-option",106),r(57,"Gold"),o(),n(58,"mat-option",91),r(59,"Anthracite"),o(),n(60,"mat-option",107),r(61,"Tilted Gray"),o(),n(62,"mat-option",108),r(63,"Tilted Black"),o(),n(64,"mat-option",109),r(65,"Glossy Metal"),o()()())}function Lr(i,c){if(i&1&&(n(0,"div",7)(1,"div",15),u(2,zn,4,0,"mat-form-field",16),u(3,jn,2,0,"mat-checkbox",17),u(4,qn,4,0,"mat-form-field",16),u(5,Hn,8,0),u(6,Kn,4,0,"mat-form-field"),u(7,$n,4,2,"mat-form-field",18),u(8,Yn,2,0,"mat-checkbox",19),u(9,Qn,2,0,"mat-checkbox",20),u(10,Zn,4,2,"mat-form-field",21),u(11,er,6,0,"mat-form-field",22),u(12,ir,2,0,"mat-checkbox",23),u(13,ar,1,2,"display-datetime-options",24),u(14,or,2,0,"mat-checkbox",25),u(15,nr,4,0,"mat-form-field"),u(16,rr,2,0,"mat-checkbox",26),u(17,lr,4,0,"mat-form-field"),u(18,sr,2,0,"mat-checkbox",27),u(19,cr,2,0,"mat-checkbox",28),u(20,dr,2,0,"mat-checkbox",29),u(21,mr,2,0,"mat-checkbox",30),u(22,pr,2,0,"mat-checkbox",31),u(23,ur,2,0,"mat-checkbox",32),u(24,hr,4,0,"mat-form-field"),u(25,gr,4,0,"mat-form-field"),u(26,fr,2,0,"mat-checkbox",33),u(27,br,4,0,"mat-form-field",34),u(28,Cr,2,3),u(29,xr,14,0),u(30,Mr,8,0,"mat-form-field",35),u(31,Sr,6,0,"mat-form-field",16),u(32,Tr,10,0,"mat-form-field",16),u(33,kr,4,0,"mat-checkbox",36),u(34,Ar,4,0,"mat-form-field"),u(35,Er,4,0,"mat-form-field"),u(36,Dr,2,0,"mat-checkbox",37),u(37,Gr,2,0,"mat-checkbox",38),u(38,Ir,2,0,"mat-checkbox",39),u(39,Pr,6,0,"mat-form-field"),u(40,Fr,66,0),o()()),i&2){let t=g();s(2),h(t.widgetConfig.widgetUrl!==void 0?2:-1),s(),h(t.widgetConfig.allowInput!==void 0?3:-1),s(),h(t.widgetConfig.displayName!==void 0?4:-1),s(),h(t.formMaster.get("displayScale")?5:-1),s(),h(t.widgetConfig.numInt!==void 0?6:-1),s(),h(t.widgetConfig.numDecimal!==void 0?7:-1),s(),h(t.widgetConfig.showMin!==void 0?8:-1),s(),h(t.widgetConfig.showMax!==void 0?9:-1),s(),h(t.widgetConfig.nextDashboard!==void 0?10:-1),s(),h(t.widgetConfig.convertUnitTo!==void 0?11:-1),s(),h(t.widgetConfig.playBeeps!==void 0?12:-1),s(),h(t.widgetConfig.dateFormat!==void 0?13:-1),s(),h(t.widgetConfig.laylineEnable!==void 0?14:-1),s(),h(t.widgetConfig.laylineEnable!==void 0?15:-1),s(),h(t.widgetConfig.windSectorEnable!==void 0?16:-1),s(),h(t.widgetConfig.windSectorEnable!==void 0?17:-1),s(),h(t.widgetConfig.awsEnable!==void 0?18:-1),s(),h(t.widgetConfig.twsEnable!==void 0?19:-1),s(),h(t.widgetConfig.courseOverGroundEnable!==void 0?20:-1),s(),h(t.widgetConfig.twaEnable!==void 0?21:-1),s(),h(t.widgetConfig.waypointEnable!==void 0?22:-1),s(),h(t.widgetConfig.driftEnable!==void 0?23:-1),s(),h(t.widgetConfig.minValue!==void 0&&!t.formMaster.get("displayScale")?24:-1),s(),h(t.widgetConfig.maxValue!==void 0&&!t.formMaster.get("displayScale")?25:-1),s(),h(t.widgetConfig.ignoreZones!==void 0?26:-1),s(),h((t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngRadial"&&Re(39,To).includes(t.formMaster.value.gauge.subType)||(t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngLinear"?27:-1),s(),h((t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngRadial"?28:-1),s(),h((t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="ngLinear"?29:-1),s(),h((t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="simpleLinear"?30:-1),s(),h(t.widgetConfig.color!==void 0?31:-1),s(),h(t.widgetConfig.timeScale!==void 0?32:-1),s(),h(t.widgetConfig.showMiniChart!==void 0?33:-1),s(),h(t.widgetConfig.yScaleMin!==void 0?34:-1),s(),h(t.widgetConfig.yScaleMax!==void 0?35:-1),s(),h(t.widgetConfig.inverseYAxis!==void 0?36:-1),s(),h(t.widgetConfig.verticalChart!==void 0?37:-1),s(),h(t.widgetConfig.noBgColor!==void 0?38:-1),s(),h(t.widgetConfig.bgColor!==void 0?39:-1),s(),h((t.widgetConfig.gauge==null?null:t.widgetConfig.gauge.type)==="steel"?40:-1)}}function Nr(i,c){if(i&1&&(_(0,"span",113),r(1,"\xA0Controls ")),i&2){let t=g(2);ue(t.formMaster.controls.multiChildCtrls.valid?"display: none":"display: block")}}function Vr(i,c){if(i&1){let t=D();n(0,"mat-tab",8)(1,"div",110)(2,"div"),St(3,Nr,2,2,"ng-template",111),o(),n(4,"boolean-multicontrol-options",112),y("addPath",function(e){M(t);let l=g();return w(l.addPathGroup(e))})("updatePath",function(e){M(t);let l=g();return w(l.updatePath(e))})("delPath",function(e){M(t);let l=g();return w(l.deletePath(e))}),o()()()}if(i&2){let t=g();s(4),p("multiCtrlArray",t.multiChildCtrlsToControl)}}function Rr(i,c){if(i&1&&(n(0,"span",115),r(1," error "),o(),r(2," \xA0Paths ")),i&2){let t=g(2);ue(t.formMaster.controls.paths.valid||t.formMaster.controls.paths.disabled?"display: none":"display: block")}}function Br(i,c){if(i&1&&(n(0,"mat-tab",9)(1,"div",110)(2,"div"),St(3,Rr,3,2,"ng-template",111),o(),_(4,"paths-options",114),o()()),i&2){let t=g();s(4),p("isArray",t.isPathArray)("enableTimeout",t.enableTimeoutToControl)("dataTimeout",t.dataTimeoutToControl)("filterSelfPaths",t.filterSelfPathsToControl)("addPathEvent",t.addPathEvent)("delPathEvent",t.delPathEvent)("updatePathEvent",t.updatePathEvent)}}function Wr(i,c){i&1&&(n(0,"p")(1,"mat-checkbox",118),r(2," Digital display "),o()())}function Ur(i,c){i&1&&(n(0,"mat-form-field",16)(1,"mat-label"),r(2,"Dial Size"),o(),n(3,"mat-select",119)(4,"mat-option",120),r(5,"1/4"),o(),n(6,"mat-option",121),r(7,"1/2"),o(),n(8,"mat-option",122),r(9,"3/4"),o(),n(10,"mat-option",70),r(11,"Full"),o()()())}function zr(i,c){if(i&1&&(n(0,"mat-tab",10)(1,"div",7)(2,"mat-form-field",16)(3,"mat-label"),r(4,"Gauge Type"),o(),n(5,"mat-select",66)(6,"mat-option",116),r(7,"Linear"),o(),n(8,"mat-option",117),r(9,"Radial"),o()()(),u(10,Wr,3,0,"p"),u(11,Ur,12,0,"mat-form-field",16),o()()),i&2){let t=g();s(10),h(t.formMaster.value.gauge.subType==="linear"?10:-1),s(),h(t.formMaster.value.gauge.subType==="radial"?11:-1)}}function jr(i,c){i&1&&(n(0,"p")(1,"mat-checkbox",125),r(2," Value to send on button push (checked = on, unchecked = off) "),o()())}function qr(i,c){if(i&1&&(n(0,"mat-tab",11)(1,"div",110)(2,"p")(3,"mat-checkbox",123),r(4," Enable Put Requests "),o()(),n(5,"p")(6,"mat-checkbox",124),r(7," Momentary mode (instead of switching between on/off) "),o()(),u(8,jr,3,0,"p"),o()()),i&2){let t=g();s(8),h(t.formMaster.controls.putMomentary.value?8:-1)}}function Hr(i,c){i&1&&_(0,"span",113)}function Kr(i,c){if(i&1&&(u(0,Hr,1,0,"span",113),r(1," Dataset ")),i&2){let t=g(2);h(t.formMaster.controls.datasetUUID.valid?-1:0)}}function $r(i,c){if(i&1&&(n(0,"mat-tab",12),St(1,Kr,2,1,"ng-template",111),_(2,"config-dataset-chart-options",126),o()),i&2){let t=g();s(2),p("datasetUUID",t.datasetUUIDToControl)("convertUnitTo",t.convertUnitToControl)}}var ko=(()=>{class i{dialogRef=m(zt);fb=m(ye);DatasetService=m(ii);units=m(Me);app=m(ge);widgetConfig=m(jt);titleDialog="Widget Options";formMaster;availableDataSets;unitList={};isPathArray=!1;addPathEvent;delPathEvent;updatePathEvent;colors=[];ngOnInit(){this.availableDataSets=this.DatasetService.list().sort(),this.unitList=this.units.getConversionsForPath(""),this.formMaster=this.generateFormGroups(this.widgetConfig),this.colors=this.app.configurableThemeColors}generateFormGroups(t,a){let e=this.fb.group({});return Object.keys(t).forEach(l=>{if(typeof t[l]=="object"&&t[l]!==null){if(l=="multiChildCtrls"){e.addControl(l,this.fb.array([]));let d=e.get(l);t[l].forEach(f=>{d.push(this.generateCtrlArray(f))})}else if(l=="displayScale")e.addControl(l,this.generateFormGroups(t[l],l));else if(l=="gauge")e.addControl(l,this.generateFormGroups(t[l],l));else if(l=="autopilot")e.addControl(l,this.generateFormGroups(t[l],l));else if(l=="paths")if(this.widgetConfig.multiChildCtrls!==void 0){this.isPathArray=!0,e.addControl(l,this.fb.array([]));let d=e.get(l);Object.keys(t[l]).forEach(f=>{let S=this.widgetConfig.paths[f];if(S){let G=this.generatePathArray(f,S);S.isPathConfigurable===!1&&G.disable(),d.push(G)}})}else{let d=this.fb.group({});Object.keys(t[l]).forEach(f=>{let S=this.widgetConfig.paths[f];if(S){let G=this.generateFormGroups(S,f);S.isPathConfigurable===!1&&G.disable(),d.addControl(f,G)}}),e.addControl(l,d)}a=="paths"&&e.addControl(l,this.generateFormGroups(t[l],l))}else if(a=="convertUnitTo")(this.widgetConfig.paths[l].pathType=="number"||"datasetUUID"in this.widgetConfig)&&e.addControl(l,new rt(t[l]));else switch(l){case"path":e.addControl(l,new rt(t[l]));break;case"datasetUUID":e.addControl(l,new rt(t[l],U.required));break;case"dataTimeout":e.addControl(l,new rt(t[l],U.required));break;default:e.addControl(l,new rt(t[l]));break}}),e}generatePathArray(t,a){let e=new Fa({});return Object.keys(a).forEach(l=>{e.addControl(l,this.generatePathFields(l,a[l]))}),e}generatePathFields(t,a){let e=null;switch(t){case"path":e=new rt(a);break;case"source":e=new rt(a,U.required);break;case"sampleTime":e=new rt(a,U.required);break;default:e=new rt(a);break}return e}generateCtrlArray(t){let a=this.fb.group(t);return a.get("ctrlLabel").addValidators(U.required),a}addPathGroup(t){this.addPathEvent=t}updatePath(t){t.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=t)})})}deletePath(t){let a=this.formMaster.get("paths"),e=0;a.controls.forEach(d=>{d.get("pathID").value==t.pathID?a.removeAt(e):e++}),this.formMaster.get("multiChildCtrls").removeAt(t.ctrlIndex),this.delPathEvent=t.pathID,this.formMaster.updateValueAndValidity()}get convertUnitToControl(){return this.formMaster.get("convertUnitTo")}get datasetUUIDToControl(){return this.formMaster.get("datasetUUID")}get filterSelfPathsToControl(){return this.formMaster.get("filterSelfPaths")}get dataTimeoutToControl(){return this.formMaster.get("dataTimeout")}get enableTimeoutToControl(){return this.formMaster.get("enableTimeout")}get dateTimezoneToControl(){return this.formMaster.get("dateTimezone")}get yScaleSuggestedMaxToControl(){return this.formMaster.get("yScaleSuggestedMax")}get enableMinMaxScaleLimitToControl(){return this.formMaster.get("enableMinMaxScaleLimit")}get showDatasetMinimumValueLineToControl(){return this.formMaster.get("showDatasetMinimumValueLine")}get showDatasetMaximumValueLineToControl(){return this.formMaster.get("showDatasetMaximumValueLine")}get showDatasetAverageValueLineToControl(){return this.formMaster.get("showDatasetAverageValueLine")}get showDatasetAngleAverageValueLineToControl(){return this.formMaster.get("showDatasetAngleAverageValueLine")}get startScaleAtZeroToControl(){return this.formMaster.get("startScaleAtZero")}get showLabelToControl(){return this.formMaster.get("showLabel")}get showTimeScaleToControl(){return this.formMaster.get("showTimeScale")}get showYScaleToControl(){return this.formMaster.get("showYScale")}get yScaleSuggestedMinToControl(){return this.formMaster.get("yScaleSuggestedMin")}get yScaleMinToControl(){return this.formMaster.get("yScaleMin")}get yScaleMaxToControl(){return this.formMaster.get("yScaleMax")}get datasetAverageArrayToControl(){return this.formMaster.get("datasetAverageArray")}get trackAgainstAverageToControl(){return this.formMaster.get("trackAgainstAverage")}get showAverageDataToControl(){return this.formMaster.get("showAverageData")}get convertUnitToToControl(){return this.formMaster.get("convertUnitTo")}get datasetUUIDControl(){return this.formMaster.get("datasetUUID")}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"],["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","backgroundColor","name","backgroundColor"],["value","darkGray"],["value","satinGray"],["value","lightGray"],["value","white"],["value","black"],["value","beige"],["value","brown"],["value","red"],["value","green"],["value","blue"],["value","anthracite"],["value","mud"],["value","punchedSheet"],["value","carbon"],["value","stainless"],["value","brushedMetal"],["value","brushedStainless"],["value","turned"],["placeholder","Select style...","formControlName","faceColor","name","faceColor"],["value","blackMetal"],["value","metal"],["value","shinyMetal"],["value","brass"],["value","steel"],["value","chrome"],["value","gold"],["value","tiltedGray"],["value","tiltedBlack"],["value","glossyMetal"],[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,e){a&1&&(n(0,"form",0),y("ngSubmit",function(){return e.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,Wn,1,23,"config-display-chart-options",5)(7,Un,1,0,"select-autopilot",6)(8,Lr,41,40,"div",7),o(),u(9,Vr,5,1,"mat-tab",8),u(10,Br,5,7,"mat-tab",9),u(11,zr,12,2,"mat-tab",10),u(12,qr,9,1,"mat-tab",11),u(13,$r,3,2,"mat-tab",12),o()(),_(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",e.formMaster),s(2),T(e.titleDialog),s(4),h(e.widgetConfig.datasetUUID!==void 0?6:e.widgetConfig.autopilot?7:8),s(3),h(e.widgetConfig.multiChildCtrls!==void 0?9:-1),s(),h(e.widgetConfig.paths!==void 0?10:-1),s(),h((e.widgetConfig.gauge==null?null:e.widgetConfig.gauge.type)==="steel"?11:-1),s(),h(e.widgetConfig.putEnable!==void 0&&e.widgetConfig.multiChildCtrls===void 0?12:-1),s(),h(e.widgetConfig.datasetUUID!==void 0?13:-1),s(5),p("disabled",!e.formMaster.valid))},dependencies:[J,Xe,Z,$t,O,X,P,ve,Je,F,z,Yt,Ra,bt,qt,Ht,_e,Kt,vt,N,L,Qt,tt,oo,eo,io,ao,Xt,yt,Zt,lt,j,xe,ei,za,nt,Ut,Mo,uo,ho,mo,xo,So],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 Yr=["button"],Qr=["*"];function Zr(i,c){if(i&1&&(n(0,"div",2),_(1,"mat-pseudo-checkbox",6),o()),i&2){let t=g();s(),p("disabled",t.disabled)}}var Ao=new K("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Xr});function Xr(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Eo=new K("MatButtonToggleGroup"),Jr={provide:Ze,useExisting:Te(()=>ki),multi:!0},ci=class{source;value;constructor(c,t){this.source=c,this.value=t}},ki=(()=>{class i{_changeDetector=m(ae);_dir=m($e,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}_name=m(ke).getId("mat-button-toggle-group-");vertical;get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(a=>a.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}valueChange=new at;get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new at;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let t=m(Ao,{optional:!0});this.appearance=t&&t.appearance?t.appearance:"standard",this.hideSingleSelectionIndicator=t?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=t?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Qa(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let e=t.target.id,l=this._buttonToggles.toArray().findIndex(f=>f.buttonId===e),d=null;switch(t.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&&(t.preventDefault(),d._onButtonClick(),d.focus())}_emitChangeEvent(t){let a=new ci(t,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(t,a,e=!1,l=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(t):this._selectionModel.deselect(t):l=!0,l?Promise.resolve().then(()=>this._updateModelValue(t,e)):this._updateModelValue(t,e)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>t.value!=null&&a===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;t<this._buttonToggles.length;t++){let a=this._buttonToggles.get(t);if(!a.disabled){a.tabIndex=0;break}}}_getNextButton(t,a){let e=this._buttonToggles;for(let l=1;l<=e.length;l++){let d=(t+a*l+e.length)%e.length,f=e.get(d);if(f&&!f.disabled)return f}return null}_setSelectionByValue(t){if(this._rawValue=t,!this._buttonToggles)return;let a=this._buttonToggles.toArray();if(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(e=>this._selectValue(e,a))):(this._clearSelection(),this._selectValue(t,a)),!this.multiple&&a.every(e=>e.tabIndex===-1)){for(let e of a)if(!e.disabled){e.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t,a){for(let e of a)if(e.value===t){e.checked=!0,this._selectionModel.select(e),this.multiple||(e.tabIndex=0);break}}_updateModelValue(t,a){a&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}static \u0275fac=function(a){return new(a||i)};static \u0275dir=$({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,e,l){if(a&1&&ct(l,di,5),a&2){let d;B(d=W())&&(e._buttonToggles=d)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,e){a&1&&y("keydown",function(d){return e._keydown(d)}),a&2&&(et("role",e.multiple?"group":"radiogroup")("aria-disabled",e.disabled),V("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard",e.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",I],value:"value",multiple:[2,"multiple","multiple",I],disabled:[2,"disabled","disabled",I],disabledInteractive:[2,"disabledInteractive","disabledInteractive",I],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",I],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",I]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Nt([Jr,{provide:Eo,useExisting:i}])]})}return i})(),di=(()=>{class i{_changeDetectorRef=m(ae);_elementRef=m(wt);_focusMonitor=m(da);_idGenerator=m(ke);_animationDisabled=ft();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(t){this._tabIndex.set(t)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new at;constructor(){m(qe).load(Ye);let t=m(Eo,{optional:!0}),a=m(new Qi("tabindex"),{optional:!0})||"",e=m(Ao,{optional:!0});this._tabIndex=k(parseInt(a)||0),this.buttonToggleGroup=t,this.appearance=e&&e.appearance?e.appearance:"standard",this.disabledInteractive=e?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(e=>e.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,e){if(a&1&&Lt(Yr,5),a&2){let l;B(l=W())&&(e._buttonElement=l.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,e){a&1&&y("focus",function(){return e.focus()}),a&2&&(et("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),V("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-disabled-interactive",e.disabledInteractive)("mat-button-toggle-appearance-standard",e.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",I],appearance:"appearance",checked:[2,"checked","checked",I],disabled:[2,"disabled","disabled",I],disabledInteractive:[2,"disabledInteractive","disabledInteractive",I]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:Qr,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,e){if(a&1){let l=D();ht(),n(0,"button",1,0),y("click",function(){return M(l),w(e._onButtonClick())}),u(2,Zr,2,1,"div",2),n(3,"span",3),q(4),o()(),_(5,"span",4)(6,"span",5)}if(a&2){let l=dt(1);p("id",e.buttonId)("disabled",e.disabled&&!e.disabledInteractive||null),et("role",e.isSingleSelector()?"radio":"button")("tabindex",e.disabled&&!e.disabledInteractive?-1:e.tabIndex)("aria-pressed",e.isSingleSelector()?null:e.checked)("aria-checked",e.isSingleSelector()?e.checked:null)("name",e._getButtonName())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-disabled",e.disabled&&e.disabledInteractive?"true":null),s(2),h(e.buttonToggleGroup&&(!e.buttonToggleGroup.multiple&&!e.buttonToggleGroup.hideSingleSelectionIndicator||e.buttonToggleGroup.multiple&&!e.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),s(4),p("matRippleTrigger",l)("matRippleDisabled",e.disableRipple||e.disabled)}},dependencies:[ba,ja],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})(),Do=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ut({type:i});static \u0275inj=pt({imports:[Y,Qe,di,Y]})}return i})();var Go=(()=>{class i{_plugins=m(ai);_widgetCategories=["Core","Gauge","Component","Racing"];_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",pluginDependency:[],selector:"widget-numeric",componentClassName:"WidgetNumericComponent"},{name:"Text",description:"Displays text data with customizable color formatting option.",icon:"textWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Core",pluginDependency:[],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",pluginDependency:[],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",pluginDependency:[],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",pluginDependency:[],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",pluginDependency:[],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",pluginDependency:[],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",pluginDependency:[],selector:"widget-simple-linear",componentClassName:"WidgetSimpleLinearComponent"},{name:"Linear",description:"A horizontal or vertical linear gauge that supports zones highlights. ",icon:"linearGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",pluginDependency:[],selector:"widget-gauge-ng-linear",componentClassName:"WidgetGaugeNgLinearComponent"},{name:"Radial",description:"A radial gauge that supports various configurations, including capacity and measurement dials and zones highlight.",icon:"radialGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",pluginDependency:[],selector:"widget-gauge-ng-radial",componentClassName:"WidgetGaugeNgRadialComponent"},{name:"Compass",description:"A faceplate or card rotating compass gauge with various cardinal point indicator options.",icon:"compassGauge",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Gauge",pluginDependency:[],selector:"widget-gauge-ng-compass",componentClassName:"WidgetGaugeNgCompassComponent"},{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",pluginDependency:[],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",pluginDependency:[],selector:"widget-wind-steer",componentClassName:"WidgetWindComponent"},{name:"Freeboard-SK",description:"Add Freeboard-SK Chart Plotter as a widget with auto sign-in to your dashboard.",icon:"freeboardWidget",minWidth:3,minHeight:4,defaultWidth:3,defaultHeight:7,category:"Component",pluginDependency:["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",pluginDependency:["autopilot"],selector:"widget-autopilot",componentClassName:"WidgetAutopilotComponent"},{name:"Realtime Data Chart",description:"Visualize data on a realtime chart with multiple series pre configured such as averages, SMA, EMA and DEMA. The use the Data Chart widget KIP Dataset must be configured.",icon:"datachartWidget",minWidth:1,minHeight:2,defaultWidth:2,defaultHeight:3,category:"Component",pluginDependency:[],selector:"widget-data-chart",componentClassName:"WidgetDataChartComponent"},{name:"Embed Webpage Viewer",description:"Use this widget to embed a view of an external web based applications, such as Grafana graphs, other Signal K Apps and related tools, in your dashboard for a seamless integration. Interactions with the embedded page are not enabled by default but are supported.",icon:"embedWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Component",pluginDependency:[],selector:"widget-iframe",componentClassName:"WidgetIframeComponent"},{name:"Racesteer",description:"A dynamic race steering display that fuses polar performance data with live environmental conditions, guiding you to the optimal steering, tacking, and gybing angles for maximum speed. Instantly see how your performance stacks up against competition polars, helping you make smarter tactical decisions on the water.",icon:"racesteeringWidget",minWidth:1,minHeight:1,defaultWidth:2,defaultHeight:3,category:"Racing",pluginDependency:["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,pluginDependency:["signalk-racer"],category:"Racing",selector:"widget-racer-line",componentClassName:"WidgetRacerLineComponent"},{name:"Racer - Start Timer",description:"An advanced racing countdown timer that indicates if you are OCS (On Course Side). Set the start line, choose your countdown duration, easily adjust the timer, or set the exact start time. At the start, automatically switches to your desired dashboard\u2014unless you are over early.",icon:"racertimerWidget",minWidth:2,minHeight:2,defaultWidth:2,defaultHeight:2,pluginDependency:["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 (kts). Displays live values and SMA over the current period\u2019s average.",icon:"windtrendsWidget",minWidth:5,minHeight:4,defaultWidth:2,defaultHeight:3,category:"Racing",pluginDependency:[],selector:"widget-windtrends-chart",componentClassName:"WidgetWindTrendsChartComponent"},{name:"Countdown Timer",description:"A simple race start countdown timer. The timer can be started, paused, synched, reset and the countdown duration specified.",icon:"racetimerWidget",minWidth:3,minHeight:3,defaultWidth:3,defaultHeight:4,category:"Racing",pluginDependency:[],selector:"widget-racetimer",componentClassName:"WidgetRaceTimerComponent"}];get kipWidgets(){return this._widgetDefinition}get categories(){return this._widgetCategories}getKipWidgetsWithStatus(){return H(this,null,function*(){let t={},a=Array.from(new Set(this._widgetDefinition.flatMap(e=>e.pluginDependency)));return yield Promise.all(a.map(e=>H(this,null,function*(){t[e]=yield this._plugins.isEnabled(e)}))),this._widgetDefinition.map(e=>{if(!e.pluginDependency||e.pluginDependency.length===0)return Mt(st({},e),{isDependencyValid:!0,pluginsStatus:[]});let l=e.pluginDependency.map(f=>({name:f,enabled:t[f]})),d=l.every(f=>f.enabled);return Mt(st({},e),{isDependencyValid:d,pluginsStatus:l})})})}static \u0275fac=function(a){return new(a||i)};static \u0275prov=mt({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function el(i,c){i&1&&(n(0,"span"),r(1,", "),o())}function il(i,c){if(i&1&&(n(0,"span"),r(1),o(),u(2,el,2,0,"span")),i&2){let t=c.$implicit,a=c.$index,e=c.$count,l=g(2);ie(l.pluginDependencyValid()?"":t.enabled?"dependency-ok":"dependency-error"),s(),he(" ",t.enabled?"\u2714":"\u2716"," ",t.name," "),s(),h(a!==e-1?2:-1)}}function al(i,c){if(i&1&&(n(0,"div",7)(1,"span"),r(2,"Plugin:"),o(),C(3,il,3,5,null,null,A),o()),i&2){let t=g();ue(t.pluginsStatus().length>0?"margin-bottom: 8px":""),s(),ie(t.pluginDependencyValid()?"":"dependency-error"),s(2),x(t.pluginsStatus())}}var Io=(()=>{class i{svgIcon=b.required();iconSize=b.required();name=b.required();description=b.required();pluginsStatus=b.required();pluginDependencyValid=b.required();constructor(){let t=m(la),a=m(aa);t.addSvgIconSet(a.bypassSecurityTrustResourceUrl("assets/svg/icons.svg"))}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=v({type:i,selectors:[["widget-list-card"]],inputs:{svgIcon:[1,"svgIcon"],iconSize:[1,"iconSize"],name:[1,"name"],description:[1,"description"],pluginsStatus:[1,"pluginsStatus"],pluginDependencyValid:[1,"pluginDependencyValid"]},decls:9,vars:10,consts:[[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"]],template:function(a,e){a&1&&(n(0,"div",0)(1,"div",1),_(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&&(s(2),Ve("width",e.iconSize(),"px")("height",e.iconSize(),"px"),p("svgIcon",e.svgIcon()),s(2),ue(e.pluginsStatus().length>0?"margin-bottom:0px; margin-top: 8px":""),s(),T(e.name()),s(),h(e.pluginsStatus().length>0?6:-1),s(2),T(e.description()))},dependencies:[gt,Q],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-small-size)}.dependency-error[_ngcontent-%COMP%]{color:var(--kip-port-color)}.dependency-ok[_ngcontent-%COMP%]{color:var(--kip-starboard-color)}.no-text-select[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}"]})}return i})();var ol=(i,c)=>c.selector;function nl(i,c){if(i&1&&(n(0,"mat-button-toggle",1),r(1),o()),i&2){let t=c.$implicit;p("value",t),s(),R(" ",t," ")}}function rl(i,c){if(i&1){let t=D();n(0,"widget-list-card",3),y("click",function(){let e=M(t).$implicit,l=g();return w(l.onSelectWidget(e))}),o()}if(i&2){let t=c.$implicit;V("dependency-missing",!t.isDependencyValid),p("svgIcon",t.icon)("iconSize",48)("name",t.name)("description",t.description)("pluginDependencyValid",t.isDependencyValid)("pluginsStatus",t.pluginsStatus)}}var Oo=(()=>{class i{_dialogRef=m(zt);_widgets=m(Go);_widgetsList=[];filteredWidgetsList=k([]);_widgetCategory=k("Core");isDependencyValid=k(!0);ngOnInit(){this.loadWidgets()}loadWidgets(){return H(this,null,function*(){this._widgetsList=yield this._widgets.getKipWidgetsWithStatus(),this.filteredWidgetsList.set(this._widgetsList.filter(t=>t.category===this._widgetCategory()))})}onCategoryChange(t){this.filteredWidgetsList.set(this._widgetsList.filter(a=>a.category===t.value)),this._widgetCategory.set(t.value)}onSelectWidget(t){let{name:a,description:e,icon:l,minWidth:d,minHeight:f,defaultWidth:S,defaultHeight:G,category:Ct,pluginDependency:Gt,selector:ne,componentClassName:Jt}=t,Ie={name:a,description:e,icon:l,minWidth:d,minHeight:f,defaultWidth:S,defaultHeight:G,category:Ct,pluginDependency:Gt,selector:ne,componentClassName:Jt};this._dialogRef.close(Ie)}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,e){a&1&&(n(0,"div")(1,"mat-button-toggle-group",0),y("change",function(d){return e.onCategoryChange(d)}),C(2,nl,2,2,"mat-button-toggle",1,A),o(),n(4,"div"),C(5,rl,1,8,"widget-list-card",2,ol),o()()),a&2&&(s(),p("value",e._widgetCategory()),s(),x(e._widgets.categories),s(3),x(e.filteredWidgetsList()))},dependencies:[Do,ki,di,Io],styles:[".list-filter[_ngcontent-%COMP%]{margin-bottom:20px}.dependency-missing[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})}return i})();var Po=(()=>{class i{dialogRef=m(zt);fileVersionToUpgrade=9;configVersionToUpgrade=10;currentConfigVersion=11;_storage=m(ia);_settings=m(Ue);static widgetTypeToSelectorMap={WidgetNumeric:"widget-numeric",WidgetTextGeneric:"widget-text",WidgetDateGeneric:"widget-datetime",WidgetBooleanSwitch:"widget-boolean-switch",WidgetBlank:"widget-blank",WidgetStateComponent:"widget-button",WidgetSimpleLinearComponent:"widget-simple-linear",WidgetGaugeNgLinearComponent:"widget-gauge-ng-linear",WidgetGaugeNgRadialComponent:"widget-gauge-ng-radial",WidgetGaugeNgCompassComponent:"widget-gauge-ng-compass",WidgetGaugeComponent:"widget-gauge-steel",WidgetWindComponent:"widget-wind-steer",WidgetFreeboardskComponent:"widget-freeboardsk",WidgetAutopilotComponent:"widget-autopilot",WidgetDataChart:"widget-data-chart",WidgetRaceTimerComponent:"widget-racetimer",WidgetIframeComponent:"widget-iframe",WidgetTutorial:"widget-tutorial"};upgrade(){if(this._storage.initConfig)this._storage.listConfigs(this.fileVersionToUpgrade).then(t=>H(this,null,function*(){for(let a of t){let e=yield this.transformConfig(a);if(e)if(e.scope==="global")try{this._storage.patchGlobal(e.name,e.scope,e.newConfiguration,"add"),this._storage.patchGlobal(e.name,e.scope,e.oldConfiguration,"replace",9),console.log(`[Upgrade] Configuration ${e.scope}/${e.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(e.scope,e.name,e.newConfiguration).then(()=>{this._storage.setConfig(e.scope,e.name,e.oldConfiguration,9),console.log(`[Upgrade] Configuration ${e.scope}/${e.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(t=>{console.error("Error fetching configuration data:",t)});else{let t={app:null,widget:null,layout:null,theme:null};t.app=this._settings.loadConfigFromLocalStorage("appConfig"),t.widget=this._settings.loadConfigFromLocalStorage("widgetConfig"),t.layout=this._settings.loadConfigFromLocalStorage("layoutConfig"),t.theme=this._settings.loadConfigFromLocalStorage("themeConfig");let a=this.transformApp(t.app),e=this.transformTheme(t.theme),l=t.layout?.rootSplits||[],d=t.layout?.splitSets||[],f=t.widget?.widgets||[],S=l.map((G,Ct)=>{let Gt=this.extractWidgetsFromSplitSets(d,f,G);return{id:G,name:`Dashboard ${Ct+1}`,configuration:Gt}});localStorage.setItem("appConfig",JSON.stringify(a)),localStorage.setItem("dashboardsConfig",JSON.stringify(S)),localStorage.setItem("themeConfig",JSON.stringify(e))}setTimeout(()=>{this._settings.reloadApp()},1500)}transformConfig(t){return H(this,null,function*(){let a=yield this._storage.getConfig(t.scope,t.name,this.fileVersionToUpgrade);if(a.app.configVersion!==this.configVersionToUpgrade)return console.error(`[Upgrade Component] Configuration ${t.scope}/${t.name} is not an upgradable version ${this.configVersionToUpgrade} config. Skipping upgrade. Please delete old configuration files.`),null;let e=this.transformApp(a.app),l=this.transformTheme(a.theme),d=a.layout?.rootSplits||[],f=a.layout?.splitSets||[],S=a.widget?.widgets||[],G=d.map((Gt,ne)=>{let Jt=this.extractWidgetsFromSplitSets(f,S,Gt);return{id:Gt,name:`Dashboard ${ne+1}`,configuration:Jt}}),Ct=ze(a);return Ct.app.configVersion=0,{scope:t.scope,name:t.name,newConfiguration:{app:e,theme:l,dashboards:G},oldConfiguration:Ct}})}transformWidget(t,a){if(t.color==="white"&&(t.color="contrast"),t.textColor){switch(t.textColor){case"text":t.color="contrast";break;case"primary":t.color="blue";break;case"accent":t.color="yellow";break;case"warn":t.color="purple";break;case"nobar":a==="WidgetGaugeNgLinearComponent"&&(t.color="blue",t.gauge=t.gauge||{},t.gauge.useNeedle=!1);break;default:t.color=t.textColor}delete t.textColor}return t}transformApp(t){return t?(t.configVersion=11,t.nightModeBrightness=.27,t):null}transformTheme(t){return t?{themeName:""}:null}extractWidgetsFromSplitSets(t,a,e){let l=new Map(a.map(we=>[we.uuid,we])),d=[],f=[],S=0,G=0,Ct=12,Gt=12,ne=2,Jt=2,Ie=we=>{let Ei=t.find(te=>te.uuid===we);if(!Ei){f.push(`Missing splitSet with UUID: ${we}`);return}Ei.splitAreas.forEach(te=>{if(te.type==="widget"){let xt=l.get(te.uuid);if(xt){if(xt.type==="WidgetBlank"){console.warn(`Skipping widget of type WidgetBlank with UUID: ${xt.uuid}`);return}if(G+Jt>Gt){f.push(`No space left in the grid for widget with UUID: ${xt.uuid}`);return}let Di=i.widgetTypeToSelectorMap[xt.type]||"widget-unknown",Wo=this.transformWidget(xt.config,xt.type);d.push({id:xt.uuid,selector:Di,input:{widgetProperties:{type:Di,uuid:xt.uuid,config:Wo}},x:S,y:G,w:ne,h:Jt}),S+=ne,S>=Ct&&(S=0,G+=Jt)}else f.push(`Missing widget with UUID: ${te.uuid}`)}else te.type==="splitSet"&&Ie(te.uuid)})};return Ie(e),f.length>0&&console.warn("Transformation Issues:",f),d}startFresh(){if(this._storage.initConfig)this._storage.listConfigs(this.fileVersionToUpgrade).then(t=>H(this,null,function*(){for(let a of t){let e=yield this._storage.getConfig(a.scope,a.name,this.fileVersionToUpgrade);if(e.app.configVersion=0,a.scope==="global")try{setTimeout(()=>{this._storage.patchGlobal(a.name,a.scope,e,"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,e,9),console.log(`[Retired] Configuration ${a.scope}/${a.name} has been patched to version 0.`)}catch{console.error(`[Upgrade] Error saving configuration for ${a.name}.`)}}})).catch(t=>{console.error("Error fetching configuration data:",t)});else{let t={app:null,dashboards:null,theme:null};t.app=this._settings.loadConfigFromLocalStorage("appConfig"),t.theme=this._settings.loadConfigFromLocalStorage("themeConfig"),t.app.configVersion=11,t.app.nightModeBrightness=.27,t.theme.themeName="",localStorage.setItem("appConfig",JSON.stringify(t.app)),localStorage.setItem("themeConfig",JSON.stringify(t.theme)),localStorage.removeItem("widgetConfig"),localStorage.removeItem("layoutConfig")}this.dialogRef.close()}static \u0275fac=function(a){return new(a||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,e){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(),_(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),y("click",function(){return e.upgrade()}),r(190,"Upgrade"),o(),n(191,"button",6),y("click",function(){return e.startFresh()}),r(192,"Start Fresh"),o()())},dependencies:[bt,nt,Ut],styles:[".button-group[_ngcontent-%COMP%]{display:flex;justify-content:center}.nav-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;margin-bottom:2em}.nav-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .nav-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #bbb;padding:.5em 1em;text-align:center}.nav-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#ddd;color:#222;font-weight:700}.nav-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background:#242424}.warning[_ngcontent-%COMP%]{color:#b71c1c}.button-group[_ngcontent-%COMP%]{margin-top:2em;display:flex;gap:20px}"]})}return i})();var rp=(()=>{class i{dialog=m(Oa);openFrameDialog(t,a){switch(t.component){case"select-widget":t.componentType=Oo;break;case"upgrade-config":t.componentType=Po;break}return this.dialog.open(no,{data:t,height:a?"calc(100% - 30px)":"",width:a?"calc(100% - 30px)":"",maxWidth:a?"100%":"",maxHeight:a?"100%":""}).afterClosed()}openConfirmationDialog(t){return this.dialog.open(ro,{data:t,minWidth:"35vw",minHeight:"25vh"}).afterClosed()}openNameDialog(t){return this.dialog.open(so,{data:t,minWidth:"20vw",minHeight:"20vh",disableClose:!0})}openWidgetOptions(t){return this.dialog.open(ko,{data:t.config,minWidth:"50vw",maxWidth:"90vw"})}static \u0275fac=function(a){return new(a||i)};static \u0275prov=mt({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Fo=[["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"]],Et=(()=>{if(typeof document>"u")return!1;let i=Fo[0],c={};for(let t of Fo)if(t?.[1]in document){for(let[e,l]of t.entries())c[i[e]]=l;return c}return!1})(),Lo={change:Et.fullscreenchange,error:Et.fullscreenerror},it={request(i=document.documentElement,c){return new Promise((t,a)=>{let e=()=>{it.off("change",e),t()};it.on("change",e);let l=i[Et.requestFullscreen](c);l instanceof Promise&&l.then(e).catch(a)})},exit(){return new Promise((i,c)=>{if(!it.isFullscreen){i();return}let t=()=>{it.off("change",t),i()};it.on("change",t);let a=document[Et.exitFullscreen]();a instanceof Promise&&a.then(t).catch(c)})},toggle(i,c){return it.isFullscreen?it.exit():it.request(i,c)},onchange(i){it.on("change",i)},onerror(i){it.on("error",i)},on(i,c){let t=Lo[i];t&&document.addEventListener(t,c,!1)},off(i,c){let t=Lo[i];t&&document.removeEventListener(t,c,!1)},raw:Et};Object.defineProperties(it,{isFullscreen:{get:()=>!!document[Et.fullscreenElement]},element:{enumerable:!0,get:()=>document[Et.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Et.fullscreenEnabled]}});Et||(it={isEnabled:!1});var Dt=it;var pp=(()=>{class i{isDragging=k(!1);fullscreenStatus=k(!1);fullscreenSupported=k(!0);noSleepStatus=k(!1);noSleepSupported=k(!0);noSleep=new NoSleep;initialTouchX=null;initialTouchY=null;hotkeyListeners=new Map;constructor(){Dt.isEnabled?Dt.on("change",()=>{this.fullscreenStatus.set(Dt.isFullscreen),Dt.isFullscreen||this.noSleep.disable()}):(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=new NoSleep,typeof this.noSleep.enable!="function"||typeof this.noSleep.disable!="function")throw new Error("[UI Event Service] NoSleep methods not available")}catch(t){this.noSleepSupported.set(!1),console.warn(`[UI Event Service] NoSleep is not supported by this device/browser. Error: ${t}`)}}checkPwaMode(){let t=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone!==void 0;return console.log("[UI Event Service] PWA mode:",t),t}toggleNoSleep(){this.noSleepSupported()&&(this.noSleepStatus()?this.noSleep.disable():this.noSleep.enable(),this.noSleepStatus.set(!this.noSleepStatus()),console.log("[UI Event Service] NoSleep active:",this.noSleepStatus()))}toggleFullScreen(){Dt.isEnabled?(this.fullscreenStatus()?(Dt.isFullscreen&&Dt.exit(),this.noSleep.disable()):(Dt.request(),this.noSleep.enable()),this.fullscreenStatus.set(!this.fullscreenStatus())):(this.fullscreenSupported.set(!1),console.log("[UI Event Service] Fullscreen mode is not supported by this browser."))}addGestureListeners(t,a){let e=this.preventBrowserHistorySwipeGestures.bind(this);document.addEventListener("openLeftSidenav",t),document.addEventListener("openRightSidenav",a),document.addEventListener("touchstart",e,{passive:!1}),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",e),document.addEventListener("touchcancel",e)}removeGestureListeners(t,a){let e=this.preventBrowserHistorySwipeGestures.bind(this);document.removeEventListener("openLeftSidenav",t),document.removeEventListener("openRightSidenav",a),document.removeEventListener("touchstart",e),document.removeEventListener("touchmove",e),document.removeEventListener("touchend",e),document.removeEventListener("touchcancel",e)}preventBrowserHistorySwipeGestures(t){if(t.touches.length===1){let a=t.touches[0],e=30;if(t.type==="touchstart")this.initialTouchX=a.clientX,this.initialTouchY=a.clientY;else if(t.type==="touchmove"&&this.initialTouchX!==null&&this.initialTouchY!==null){let l=Math.abs(a.clientX-this.initialTouchX),d=Math.abs(a.clientY-this.initialTouchY);l>10&&l>d&&(this.initialTouchX<e||this.initialTouchX>window.innerWidth-e)&&t.preventDefault(),d>10&&this.initialTouchY<50&&t.preventDefault()}else(t.type==="touchend"||t.type==="touchcancel")&&(this.initialTouchX=null,this.initialTouchY=null)}}addHotkeyListener(t,a){let e=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;t(d,l)}else console.warn("[uiEvent Service] Non-keyboard event detected in addHotkeyListener:",l)};this.hotkeyListeners.set(t,e),document.addEventListener("keydown",e)}removeHotkeyListener(t){let a=this.hotkeyListeners.get(t);a&&(document.removeEventListener("keydown",a),this.hotkeyListeners.delete(t))}static \u0275fac=function(a){return new(a||i)};static \u0275prov=mt({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function ll(i,c){}var No="_mat-bottom-sheet-enter",Vo="_mat-bottom-sheet-exit",sl=(()=>{class i extends Da{_breakpointSubscription;_animationsDisabled=ft();_animationState="void";_animationStateChanged=new at;_destroyed;constructor(){super();let t=m(He);this._breakpointSubscription=t.observe([kt.Medium,kt.Large,kt.XLarge]).subscribe(()=>{let a=this._elementRef.nativeElement.classList;a.toggle("mat-bottom-sheet-container-medium",t.isMatched(kt.Medium)),a.toggle("mat-bottom-sheet-container-large",t.isMatched(kt.Large)),a.toggle("mat-bottom-sheet-container-xlarge",t.isMatched(kt.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._animationsDisabled&&this._simulateAnimation(No))}exit(){this._destroyed||(this._elementRef.nativeElement.setAttribute("mat-exit",""),this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._animationsDisabled&&this._simulateAnimation(Vo))}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_simulateAnimation(t){this._ngZone.run(()=>{this._handleAnimationEvent(!0,t),setTimeout(()=>this._handleAnimationEvent(!1,t))})}_trapFocus(){super._trapFocus({preventScroll:!0})}_handleAnimationEvent(t,a){let e=a===No;(e||a===Vo)&&this._animationStateChanged.emit({toState:e?"visible":"hidden",phase:t?"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,e){a&1&&y("animationstart",function(d){return e._handleAnimationEvent(!0,d.animationName)})("animationend",function(d){return e._handleAnimationEvent(!1,d.animationName)})("animationcancel",function(d){return e._handleAnimationEvent(!1,d.animationName)}),a&2&&(et("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-label",e._config.ariaLabel),V("mat-bottom-sheet-container-animations-enabled",!e._animationsDisabled)("mat-bottom-sheet-container-enter",e._animationState==="visible")("mat-bottom-sheet-container-exit",e._animationState==="hidden"))},features:[Ft],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a,e){a&1&&St(0,ll,0,0,"ng-template",0)},dependencies:[ya],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})(),cl=new K("MatBottomSheetData"),Ai=class{viewContainerRef;panelClass;direction;data=null;hasBackdrop=!0;backdropClass;disableClose=!1;ariaLabel=null;ariaModal=!1;closeOnNavigation=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;height="";minHeight;maxHeight},mi=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new le;_result;_closeFallbackTimeout;constructor(c,t,a){this._ref=c,this.containerInstance=a,this.disableClose=t.disableClose,a._animationStateChanged.pipe(Ot(e=>e.phase==="done"&&e.toState==="visible"),ce(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),a._animationStateChanged.pipe(Ot(e=>e.phase==="done"&&e.toState==="hidden"),ce(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),c.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),It(this.backdropClick(),this.keydownEvents().pipe(Ot(e=>e.keyCode===27))).subscribe(e=>{!this.disableClose&&(e.type!=="keydown"||!fe(e))&&(e.preventDefault(),this.dismiss())})}dismiss(c){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Ot(t=>t.phase==="start"),ce(1)).subscribe(()=>{this._closeFallbackTimeout=setTimeout(()=>this._ref.close(this._result),500),this._ref.overlayRef.detachBackdrop()}),this._result=c,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},dl=new K("mat-bottom-sheet-default-options"),ml=(()=>{class i{_injector=m(Pt);_parentBottomSheet=m(i,{optional:!0,skipSelf:!0});_animationsDisabled=ft();_defaultOptions=m(dl,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=m(Ga);get _openedBottomSheetRef(){let t=this._parentBottomSheet;return t?t._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(t){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=t:this._bottomSheetRefAtThisLevel=t}constructor(){}open(t,a){let e=st(st({},this._defaultOptions||new Ai),a),l;return this._dialog.open(t,Mt(st({},e),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:sl,scrollStrategy:e.scrollStrategy||wa(this._injector),positionStrategy:ka(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:l}),providers:(d,f,S)=>(l=new mi(d,e,S),[{provide:mi,useValue:l},{provide:cl,useValue:e.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(t){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(t)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(a){return new(a||i)};static \u0275prov=mt({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Ep=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ut({type:i});static \u0275inj=pt({providers:[ml],imports:[Ia,Y,Ca,Y]})}return i})();var Ro=["*"],pl=`.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
|
-
`,ul=["unscopedContent"],hl=["text"],gl=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],fl=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var bl=new K("ListOption"),_l=(()=>{class i{_elementRef=m(wt);constructor(){}static \u0275fac=function(a){return new(a||i)};static \u0275dir=$({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),vl=(()=>{class i{_elementRef=m(wt);constructor(){}static \u0275fac=function(a){return new(a||i)};static \u0275dir=$({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),yl=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275dir=$({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),Bo=(()=>{class i{_listOption=m(bl,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(a){return new(a||i)};static \u0275dir=$({type:i,hostVars:4,hostBindings:function(a,e){a&2&&V("mdc-list-item__start",e._isAlignedAtStart())("mdc-list-item__end",!e._isAlignedAtStart())}})}return i})(),Cl=(()=>{class i extends Bo{static \u0275fac=(()=>{let t;return function(e){return(t||(t=pe(i)))(e||i)}})();static \u0275dir=$({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Ft]})}return i})(),xl=(()=>{class i extends Bo{static \u0275fac=(()=>{let t;return function(e){return(t||(t=pe(i)))(e||i)}})();static \u0275dir=$({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Ft]})}return i})(),Ml=new K("MAT_LIST_CONFIG"),Ge=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=be(t)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(t){this._disabled.set(be(t))}_disabled=k(!1);_defaultOptions=m(Ml,{optional:!0});static \u0275fac=function(a){return new(a||i)};static \u0275dir=$({type:i,hostVars:1,hostBindings:function(a,e){a&2&&et("aria-disabled",e.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),wl=(()=>{class i{_elementRef=m(wt);_ngZone=m(Le);_listBase=m(Ge,{optional:!0});_platform=m(je);_hostElement;_isButtonElement;_noopAnimations=ft();_avatars;_icons;set lines(t){this._explicitLines=ca(t,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=be(t)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(t){this._disabled.set(be(t))}_disabled=k(!1);_subscriptions=new re;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){m(qe).load(Ye);let t=m(fa,{optional:!0});this.rippleConfig=t||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new ga(this,this._ngZone,this._hostElement,this._platform,m(Pt)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(It(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();let a=this._explicitLines??this._inferLinesFromContent(),e=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;e.classList.toggle("mdc-list-item__primary-text",l),e.classList.toggle("mdc-list-item__secondary-text",!l)}else e.classList.remove("mdc-list-item__primary-text"),e.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!!(t.textContent&&t.textContent.trim()))}static \u0275fac=function(a){return new(a||i)};static \u0275dir=$({type:i,contentQueries:function(a,e,l){if(a&1&&(ct(l,Cl,4),ct(l,xl,4)),a&2){let d;B(d=W())&&(e._avatars=d),B(d=W())&&(e._icons=d)}},hostVars:4,hostBindings:function(a,e){a&2&&(et("aria-disabled",e.disabled)("disabled",e._isButtonElement&&e.disabled||null),V("mdc-list-item--disabled",e.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})();var au=(()=>{class i extends Ge{_isNonInteractive=!1;static \u0275fac=(()=>{let t;return function(e){return(t||(t=pe(i)))(e||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:[Nt([{provide:Ge,useExisting:i}]),Ft],ngContentSelectors:Ro,decls:1,vars:0,template:function(a,e){a&1&&(ht(),q(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 ou=(()=>{class i extends Ge{static \u0275fac=(()=>{let t;return function(e){return(t||(t=pe(i)))(e||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Nt([{provide:Ge,useExisting:i}]),Ft],ngContentSelectors:Ro,decls:1,vars:0,template:function(a,e){a&1&&(ht(),q(0))},styles:[pl],encapsulation:2,changeDetection:0})}return i})(),nu=(()=>{class i extends wl{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(t){this._activated=be(t)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let t;return function(e){return(t||(t=pe(i)))(e||i)}})();static \u0275cmp=v({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,e,l){if(a&1&&(ct(l,vl,5),ct(l,_l,5),ct(l,yl,5)),a&2){let d;B(d=W())&&(e._lines=d),B(d=W())&&(e._titles=d),B(d=W())&&(e._meta=d)}},viewQuery:function(a,e){if(a&1&&(Lt(ul,5),Lt(hl,5)),a&2){let l;B(l=W())&&(e._unscopedContent=l.first),B(l=W())&&(e._itemText=l.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,e){a&2&&(et("aria-current",e._getAriaCurrent()),V("mdc-list-item--activated",e.activated)("mdc-list-item--with-leading-avatar",e._avatars.length!==0)("mdc-list-item--with-leading-icon",e._icons.length!==0)("mdc-list-item--with-trailing-meta",e._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",e._hasBothLeadingAndTrailing())("_mat-animation-noopable",e._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[Ft],ngContentSelectors:fl,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(a,e){if(a&1){let l=D();ht(gl),q(0),n(1,"span",1),q(2,1),q(3,2),n(4,"span",2,0),y("cdkObserveContent",function(){return M(l),w(e._updateItemLines(!0))}),q(6,3),o()(),q(7,4),q(8,5),_(9,"div",3)}},dependencies:[pa],encapsulation:2,changeDetection:0})}return i})();var ru=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=ut({type:i});static \u0275inj=pt({imports:[ua,Y,Qe,Za,ei]})}return i})();export{Pl as a,Ps as b,po as c,rp as d,pp as e,mi as f,ml as g,Ep as h,_l as i,xl as j,au as k,ou as l,nu as m,ru as n};
|