@signalk/freeboard-sk 2.24.0-beta.2 → 2.24.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/{chunk-WDCDO7ZN.js → chunk-2J5KKPJP.js} +1 -1
- package/public/{chunk-V6RYVIHA.js → chunk-3KKHZ7XW.js} +1 -1
- package/public/{chunk-57OGK3K6.js → chunk-46IPBKZB.js} +1 -1
- package/public/{chunk-PVMR7EP7.js → chunk-B6MVZV6D.js} +66 -66
- package/public/{chunk-KII72BJM.js → chunk-ISFYSB5M.js} +1 -1
- package/public/{chunk-DT3KOU7O.js → chunk-PFQHJ7DR.js} +1 -1
- package/public/{chunk-WIUBUSFZ.js → chunk-VFC2KSTD.js} +1 -1
- package/public/index.html +1 -1
- package/public/main-3QMZFAR3.js +11 -0
- package/public/{worker-7GKP5VP4.js → worker-42LKK6ER.js} +20 -4
- package/public/main-CDKOXZZ2.js +0 -11
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Fa as a}from"./chunk-B6MVZV6D.js";import"./chunk-TQPGRJVE.js";import"./chunk-QI5ICQLG.js";import"./chunk-QPQHN5VS.js";import"./chunk-EQVTEUXC.js";export{a as Trail2RouteDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as ze,D as qe,E as L,J as je,P as Xe,Q as Ye,R as Je,b as Me,e as Ee,fa as Qe,g as We,ga as $,h as ke,ha as ee,l as Pe,la as $e,m as H,ma as et,na as tt,u as Ge,v as Ze,w as He,x as Q,xa as it,ya as nt,z as Ke}from"./chunk-PVMR7EP7.js";import{a as xe,d as Oe,i as Fe,j as Ie,k as Be}from"./chunk-TQPGRJVE.js";import{d as Le,e as X,f as Y,g as Ue,h as J}from"./chunk-QI5ICQLG.js";import{$d as Ve,Aa as V,Ba as T,Da as b,Ea as S,Ed as we,Fa as w,Fb as I,Ga as h,Gd as Ce,Ha as i,Ia as n,Ja as D,Jb as fe,Jd as A,Kb as B,L as E,Ld as ye,M as g,Md as N,N as m,O as x,Od as R,P as ge,Qa as W,Sa as p,T as me,Td as U,Ua as y,V as F,W as ce,Wd as G,Xd as ve,_ as pe,_d as be,ae as Te,be as De,cb as M,ce as Z,fa as s,fb as _e,ge as K,hb as d,he as Ae,ib as C,jb as k,je as Ne,lb as _,mb as f,me as z,na as P,nb as u,ne as Re,rd as ue,re as q,se as j,vd as he,xd as Se,za as O}from"./chunk-QPQHN5VS.js";import"./chunk-EQVTEUXC.js";var pt=(l,c)=>c[0];function _t(l,c){if(l&1&&(i(0,"mat-option",8),x(),i(1,"svg",6),D(2,"line",7),n()()),l&2){let a=c.$implicit;h("value",a),s(2),O("stroke-width",a)}}function ft(l,c){if(l&1&&(i(0,"mat-option",8),x(),i(1,"svg",6),D(2,"line",9),n()()),l&2){let a=c.$implicit;h("value",a[0]),s(2),O("stroke-dasharray",a[1])}}var te=class l{color=B("#ff0000");dash=B("none");weight=B(1);_color=I(()=>this.color());_dash=I(()=>this.dash());_weight=I(()=>this.weight());selectionChange=fe();app=E(L);line={dashArrays:this.app.lineDashMap,weights:[1,2,3,4,5]};constructor(){}ngOnInit(){}onSelectChange(c){let a=this.app.formatLineDashArray(this._dash());this.selectionChange.emit({lineStyle:{fill:{color:this._color()},stroke:{color:this._color(),width:this._weight(),lineDash:a}},config:{color:this._color(),weight:this._weight(),dash:this._dash()}})}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["linestyle-select"]],inputs:{color:[1,"color"],dash:[1,"dash"],weight:[1,"weight"]},outputs:{selectionChange:"selectionChange"},decls:25,vars:5,consts:[[2,"display","flex"],[2,"width","100px"],["mat-input","","matNativeControl","","type","color",3,"ngModelChange","change","ngModel"],[2,"width","110px"],[3,"ngModelChange","selectionChange","ngModel"],[2,"display","flex","align-items","center","gap","8px"],["width","48","height","10",2,"vertical-align","middle","margin-right","6px"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-array","none"],[3,"value"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-width","2"]],template:function(a,e){a&1&&(i(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),d(3,"Color"),n(),i(4,"input",2),u("ngModelChange",function(r){return f(e._color,r)||(e._color=r),r}),p("change",function(r){return e.onSelectChange({key:"color",value:r.srcElement.value})}),n()(),i(5,"mat-form-field",3)(6,"mat-label"),d(7,"Weight"),n(),i(8,"mat-select",4),u("ngModelChange",function(r){return f(e._weight,r)||(e._weight=r),r}),p("selectionChange",function(r){return e.onSelectChange({key:"weight",value:r.value})}),i(9,"mat-select-trigger")(10,"div",5),x(),i(11,"svg",6),D(12,"line",7),n()()(),S(13,_t,3,2,"mat-option",8,b),n()(),ge(),i(15,"mat-form-field",3)(16,"mat-label"),d(17,"Style"),n(),i(18,"mat-select",4),u("ngModelChange",function(r){return f(e._dash,r)||(e._dash=r),r}),p("selectionChange",function(r){return e.onSelectChange({key:"dash",value:r.value})}),i(19,"mat-select-trigger")(20,"div",5),x(),i(21,"svg",6),D(22,"line",9),n()()(),S(23,ft,3,2,"mat-option",8,pt),n()()()),a&2&&(s(4),_("ngModel",e._color),s(4),_("ngModel",e._weight),s(4),O("stroke-width",e._weight()),s(),w(e.line.weights),s(5),_("ngModel",e._dash),s(4),O("stroke-dasharray",e.line.dashArrays.get(e._dash())),s(),w(e.line.dashArrays))},dependencies:[Z,R,U,G,N,A,H,j,q,z,K,J,Y,Ue,X],encapsulation:2})};var ht=(l,c)=>c[0];function St(l,c){if(l&1){let a=W();i(0,"div",4)(1,"mat-radio-button",5,0),p("change",function(){g(a);let o=M(2),r=y().$implicit,t=y();return r[1].current=o.value,m(t.save(!0))}),d(3),n()()}if(l&2){let a=c.$implicit,e=y().$implicit;s(),h("name",e[0])("value",a)("checked",a===e[1].current),s(2),k(" ",a.split(".").slice(-1)," ")}}function wt(l,c){if(l&1&&(i(0,"div",2)(1,"div",3)(2,"div"),d(3),n()(),i(4,"div"),S(5,St,4,4,"div",4,b),n()()),l&2){let a=c.$implicit;s(3),C(a[1].name),s(2),w(a[1].available)}}var ie=class l{title="";chosen=new me;pathChoices={tws:{name:"True Wind Speed",choices:["environment.wind.speedTrue","environment.wind.speedOverGround"],available:[],current:""},twd:{name:"True Wind Direction",choices:["environment.wind.directionTrue","environment.wind.directionMagnetic","environment.wind.angleTrueGround","environment.wind.angleTrueWater"],available:[],current:""},heading:{name:"Heading / COG",choices:["navigation.courseOverGroundTrue","navigation.courseOverGroundMagnetic","navigation.headingTrue","navigation.headingMagnetic"],available:[],current:""}};pathChoicesArray=Object.entries(this.pathChoices);availPaths;app=E(L);constructor(){}ngOnInit(){this.initEntries()}initEntries(){this.availPaths=new Map(Object.entries(this.app.data.vessels.prefAvailablePaths)),this.pathChoices.tws.current=this.app.config.units.preferredPaths.tws,this.pathChoices.twd.current=this.app.config.units.preferredPaths.twd,this.pathChoices.heading.current=this.app.config.units.preferredPaths.heading,Object.entries(this.pathChoices).forEach(a=>{let e=a[1];e.choices.forEach(o=>{this.availPaths.has(o)&&e.available.push(o)}),e.available.length===0&&e.available.push(e.choices[0])})}save(c){let a={};Object.entries(this.pathChoices).forEach(e=>{a[e[0]]=e[1].current}),this.chosen.emit({save:c,value:a})}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["signalk-preferred-paths"]],inputs:{title:"title"},outputs:{chosen:"chosen"},decls:6,vars:1,consts:[["pathopt",""],[2,"font-size","10pt"],[1,"sk-details"],[1,"title"],[2,"margin","5px 0 5px 0"],[3,"change","name","value","checked"]],template:function(a,e){a&1&&(i(0,"fieldset")(1,"legend",1),d(2),n(),i(3,"div"),S(4,wt,7,1,"div",2,ht),n()()),a&2&&(s(2),C(e.title),s(2),w(e.pathChoicesArray))},dependencies:[ee,$],styles:[".sk-details[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:10pt;max-height:100%;width:60vw;max-width:300px}.sk-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{background:left 1px -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.18)),color-stop(.65,transparent)) #b2bbc2e3;padding:3px 5px 0;margin-top:3px;font-weight:500;line-height:23px;color:#000}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:0;line-height:23px;margin:0;flex:1 1 auto;overflow:auto}.sk-details[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;flex-direction:row;line-height:26px;border-width:0 0 0 0;border-style:solid;border-color:gray;padding-left:5px}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-width:0 0 1px 0}.sk-details[_ngcontent-%COMP%] .sectionname[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;font-weight:500}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;width:100%;background-color:#fff}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0})};var v=(l,c)=>c[0],Ct=(l,c)=>c.id;function yt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Mt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function vt(l,c){if(l&1&&(i(0,"mat-option",111),d(1),n()),l&2){let a=c.$implicit;h("value",a.url)("matTooltip",a.description),s(),k(" ",a.name," ")}}function bt(l,c){if(l&1){let a=W();i(0,"div",41)(1,"div",34)(2,"mat-form-field",35)(3,"mat-label"),d(4,"Select Instruments App"),n(),i(5,"mat-select",52),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.display.plugins.instruments,o)||(r.facade.settings.display.plugins.instruments=o),m(o)}),p("selectionChange",function(){g(a);let o=y();return m(o.onInstrumentApp())}),S(6,vt,2,3,"mat-option",111,b),n()()(),i(8,"div",34)(9,"mat-form-field",87)(10,"mat-label"),d(11,"Parameters"),n(),i(12,"input",112,17),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.display.plugins.parameters,o)||(r.facade.settings.display.plugins.parameters=o),m(o)}),p("change",function(){g(a);let o=y();return m(o.persistModel("pluginParameters"))}),n()()(),i(14,"div",34)(15,"mat-checkbox",113),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.display.plugins.startOnOpen,o)||(r.facade.settings.display.plugins.startOnOpen=o),m(o)}),p("change",function(){g(a);let o=y();return m(o.persistModel("pluginStartOnOpen"))}),d(16," Halt App on hide "),n()(),i(17,"div",34)(18,"button",114),p("click",function(){g(a);let o=y();return m(o.toggleFavourites())}),i(19,"mat-icon"),d(20,"star"),n(),d(21," FAVOURITES "),n()()()}if(l&2){let a=y();s(5),_("ngModel",a.facade.settings.display.plugins.instruments),s(),w(a.facade.applicationList),s(6),h("disabled",a.facade.settings.display.plugins.instruments===null),_("ngModel",a.facade.settings.display.plugins.parameters),s(3),_("ngModel",a.facade.settings.display.plugins.startOnOpen)}}function Vt(l,c){if(l&1&&(i(0,"mat-list-option",116),d(1),n()),l&2){let a=c.$implicit,e=y(2);h("disabled",a.url==e.facade.settings.display.plugins.instruments)("selected",e.facade.settings.display.plugins.favourites.includes(a.url))("value",a.url),s(),k(" ",a.name," ")}}function Tt(l,c){if(l&1){let a=W();i(0,"div",33)(1,"div",34)(2,"div",93),D(3,"br"),d(4,"Select Favourite Apps: "),n(),D(5,"mat-divider"),i(6,"mat-selection-list",115,18),p("selectionChange",function(o){g(a);let r=M(7),t=y();return m(t.onFavSelected(o,r))}),S(8,Vt,2,4,"mat-list-option",116,b),n()()()}if(l&2){let a=y();s(8),w(a.facade.favouritesList)}}function Dt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Et(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Wt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function kt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Pt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Lt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function xt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Ot(l,c){if(l&1){let a=W();i(0,"div",34)(1,"mat-form-field",35)(2,"mat-label"),d(3,"Position display format"),n(),i(4,"mat-select",117),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.units.positionFormat,o)||(r.facade.settings.units.positionFormat=o),m(o)}),p("selectionChange",function(){g(a);let o=y();return m(o.persistModel())}),S(5,xt,2,2,"mat-option",37,b),n()()()}if(l&2){let a=y();s(4),_("ngModel",a.facade.settings.units.positionFormat),s(),w(a.options.preferredValues.coords)}}function Ft(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function It(l,c){if(l&1){let a=W();i(0,"div",34)(1,"mat-form-field",35)(2,"mat-label"),d(3,"Prefer True / Magnetic values"),n(),i(4,"mat-select",118),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.units.headingAttribute,o)||(r.facade.settings.units.headingAttribute=o),m(o)}),p("selectionChange",function(){g(a);let o=y();return m(o.persistModel("headingAttribute"))}),S(5,Ft,2,2,"mat-option",37,b),n()()()}if(l&2){let a=y();s(4),_("ngModel",a.facade.settings.units.headingAttribute),s(),w(a.options.preferredValues.heading)}}function Bt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function At(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Nt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Rt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Ut(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Gt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function Zt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a positive number "),n())}function Ht(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a positive number "),n())}function Kt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a positive number "),n())}function zt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function qt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a number > 0 "),n())}function jt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function Xt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Yt(l,c){if(l&1&&(i(0,"mat-radio-button",37),D(1,"img",119),d(2),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),_e(`transform: scale(${a[0]})`),s(),k(" (",a[1],") ")}}function Jt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a value between -90 and 90 (max 9 decimals) "),n())}function Qt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a value between -180 and 180 (max 9 decimals) "),n())}function $t(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function ei(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function ti(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function ii(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function ni(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a number >= 1. "),n())}function ai(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function oi(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function ri(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function si(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function li(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function di(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function gi(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function mi(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function ci(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function pi(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function _i(l,c){if(l&1){let a=W();i(0,"button",120),p("click",function(){g(a),y();let o=M(497);return m(o.value="")}),i(1,"mat-icon"),d(2,"close"),n()()}}function fi(l,c){if(l&1&&(i(0,"mat-list-option",95),d(1),n()),l&2){let a=c.$implicit,e=y();h("selected",e.facade.settings.resources.paths.includes(a))("value",a),s(),k(" ",a," ")}}function ui(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a.id),s(),C(a.name)}}function hi(l,c){if(l&1){let a=W();i(0,"mat-tab",96)(1,"div",28)(2,"div",29)(3,"div",108)(4,"div",31),d(5,"RADAR SETTINGS"),n(),i(6,"mat-card",32)(7,"div",41)(8,"div",34)(9,"mat-form-field",121)(10,"mat-label"),d(11,"Radar Devices"),n(),i(12,"mat-select",122,19),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.radars.deviceId,o)||(r.facade.settings.radars.deviceId=o),m(o)}),p("selectionChange",function(){g(a);let o=y();return m(o.persistModel())}),S(14,ui,2,2,"mat-option",37,Ct),n()()(),i(16,"div",34)(17,"button",123),p("click",function(){g(a);let o=y();return m(o.refreshRadars())}),i(18,"mat-icon"),d(19," refresh"),n(),d(20," REFRESH "),n()()()()()()()()}if(l&2){let a=y();s(12),h("disabled",!a.radarList().length||a.app.uiCtrl().radarLayer),_("ngModel",a.facade.settings.radars.deviceId),s(2),w(a.radarList())}}function Si(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function wi(l,c){l&1&&(i(0,"mat-error"),d(1," Value required. "),n())}var rt=class l{show={favourites:F(!1)};options;aisStateFilter={moored:!1,anchored:!1};formattedNumberModel={rangeCirclesDistance:1e3};unitsChangedSignal=F(0);radarList=F([]);saveOnClose=!1;facade=E(nt);myElement=E(pe);dialogRef=E(ue);wakeLock=E(He);s57=E(Ke);app=E(L);radarApi=E(qe);constructor(){this.options=new it,ce(()=>{this.unitsChangedSignal(),this.formatNumberModel()})}ngOnInit(){this.facade.refresh(),this.facade.settings.selections.aisState.forEach(c=>{c in this.aisStateFilter&&(this.aisStateFilter[c]=!0)}),this.refreshRadars()}refreshRadars(){this.radarApi.listRadars().then(c=>{this.radarList.set(c)}).catch(()=>{this.radarList.set([])})}formatNumberModel(){this.formattedNumberModel={rangeCirclesDistance:this.facade.settings.units.distance==="kilometer"?Math.floor(this.facade.settings.vessels.rangeCirclesDistance/1e3):Math.floor(Q.transform(this.facade.settings.vessels.rangeCirclesDistance,"m","naut-mile"))}}raiseChange(){this.app.alignUnitPrefs(this.app.serverConfig.unitPreferences()),this.unitsChangedSignal.update(c=>c+1)}handleClose(){this.saveOnClose&&this.persistModel(),this.dialogRef.close()}doWakelock(c){this.persistModel(),c?this.wakeLock.disable():this.wakeLock.enable()}doS57(c){this.facade.settings.map.s57Options.depthUnit=this.facade.settings.units.depth,c?this.parseNumber(c):this.persistModel(),this.s57.setOptions(this.facade.settings.map.s57Options)}onLineStyle(c,a){let e=this.facade.settings.vessels.selfLines[c];e&&(e.color=a.config.color,e.dash=a.config.dash,e.weight=a.config.weight,this.app.selfLines.update(o=>{let r=Object.assign({},o);return r[c]=a.lineStyle,r}),this.persistModel())}toggleFavourites(){this.show.favourites.update(c=>!c)}parseNumber(c,a){if(typeof c.model!="number"){c.reset(this.fallbackToDefault());return}!a&&c.model<0&&c.reset(Math.abs(c.model)),this.persistModel()}parseFormattedNumber(c,a){typeof c.model=="number"&&(!a&&c.model<0&&c.reset(Math.abs(c.model)),this.facade.settings.vessels.rangeCirclesDistance=this.facade.settings.units.distance==="kilometer"?Math.floor(this.formattedNumberModel.rangeCirclesDistance*1e3):Math.floor(Q.nauticalMilesToKm(this.formattedNumberModel.rangeCirclesDistance)*1e3),this.persistModel())}fallbackToDefault(){let c=ze();if(typeof this.facade.settings.map.s57Options.shallowDepth!="number")return c.map.s57Options.shallowDepth;if(typeof this.facade.settings.map.s57Options.safetyDepth!="number")return c.map.s57Options.safetyDepth;if(typeof this.facade.settings.map.s57Options.deepDepth!="number")return c.map.s57Options.deepDepth;if(typeof this.facade.fixedPosition[0]!="number"||typeof this.facade.fixedPosition[1]!="number")return 0;if(typeof this.facade.settings.course.arrivalCircle!="number")return c.course.arrivalCircle}persistModel(c){this.facade.applySettings(),this.facade.emitChangeEvent(c)}deferPersist(c){this.saveOnClose=!0,this.facade.emitChangeEvent(c)}onInstrumentApp(){this.persistModel("pluginInstruments"),this.facade.buildFavouritesList()}onPreferredPaths(c){c.save&&(this.facade.settings.units.preferredPaths=c.value,this.persistModel())}onFavSelected(c,a){this.facade.settings.display.plugins.favourites=a.selectedOptions.selected.map(e=>e.value),this.persistModel()}onAisStateFilter(){let c=[];for(let a in this.aisStateFilter)this.aisStateFilter[a]&&c.push(a);this.facade.settings.selections.aisState=[].concat(c),this.persistModel()}onResPathSelected(c){this.facade.settings.resources.paths=c.selectedOptions.selected.map(a=>a.value),this.facade.settings.resources.paths.forEach(a=>{a in this.facade.settings.selections.resourceSets||(this.facade.settings.selections.resourceSets[a]=[])}),this.persistModel()}clearAuthToken(){this.facade.clearToken()}renderSymbol(c){return Q.getSymbol(c)}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["settings-dialog"]],decls:592,vars:120,consts:[["serverprefs",""],["distunits",""],["s57shallowDepth","ngModel"],["s57safetyDepth","ngModel"],["s57deepDepth","ngModel"],["coursearrivalcircle","ngModel"],["courseautoadvance",""],["courseautoadvanceon",""],["vesselfixedlocationmode",""],["fixedlat","ngModel"],["fixedlon","ngModel"],["rangeCirclesDistance","ngModel"],["notesrootfilter",""],["respath",""],["skmaxradius",""],["videourl","ngModel"],["experiments",""],["instparams","ngModel"],["favs",""],["radarlist",""],[2,"background-color","transparent"],[1,"dialog-icon"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content","",2,"display","flex"],["dynamicHeight","false","mat-stretch-tabs","false","mat-align-tabs","start"],["label","Display"],[1,"theme-page","settings"],[1,"theme-panel"],["id","sectDisplay",1,"setting-group"],[1,"setting-group-title"],[1,"setting-card"],[1,"setting-card-row",2,"padding-bottom","10px"],[1,"setting-card-row-item"],[2,"width","100%"],["matTooltip","Dark Mode setting.",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["label","after","matTooltip","Auto-set using environment.mode value.",3,"ngModelChange","change","ngModel"],["matTooltip","Action button selection.",3,"ngModelChange","selectionChange","ngModel"],["label","after","matTooltip","Disable wake lock.",3,"ngModelChange","change","disabled","ngModel"],[1,"setting-card-row"],["matTooltip","Do not play sounds","label","after",3,"ngModelChange","change","ngModel"],["label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Period of time out of alarm state before re-triggering.",3,"ngModelChange","selectionChange","ngModel","disabled"],["label","Units"],["id","sectUnits",1,"setting-group"],["label","after","matTooltip","Use the unit preferences configured on the server.",3,"ngModelChange","change","disabled","ngModel"],[3,"ngModelChange","selectionChange","disabled","ngModel"],["title","Preferred Paths",3,"chosen"],["label","Map"],["id","sectMap",1,"setting-group"],[3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Add close button to popovers","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Double Click map to zoom","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Keep tiles visible when zooming past chart maxZoom","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Do not exit follow vessel when map is panned.","label","after",3,"ngModelChange","change","ngModel"],["placeholder","Graphicsstyle",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Boundaries",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Color Table",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Colors",3,"ngModelChange","selectionChange","ngModel"],["matInput","","type","number","required","","min","0",3,"ngModelChange","change","ngModel"],["matSuffix",""],["multiple","","placeholder","Layers",3,"ngModelChange","selectionChange","ngModel"],["label","Course"],["id","sectCourse",1,"setting-group"],["matTooltip","Select the trigger for advancing to next point.",3,"ngModelChange","selectionChange","disabled","ngModel"],["matTooltip","Period of time before destination is advanced to next waypoint.",3,"ngModelChange","selectionChange","disabled","ngModel"],["label","Vessels"],["id","sectVessels",1,"setting-group"],[3,"ngModelChange","change","ngModel"],["label","after","matTooltip","e.g. Building, Camp, etc.",3,"ngModelChange","change","ngModel"],["floatLabel","always"],["matInput","","type","number","required","","pattern","^-?([1-8]?[0-9])(\\.\\d{1,9})?$","min","-90","max","90",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","pattern","^-?(1[0-7]?[0-9]|[1-9]?[0-9])(\\.\\d{1,9})?$","min","-180","max","180",3,"ngModelChange","change","ngModel","disabled"],["matTooltip","Length of heading line.",3,"ngModelChange","selectionChange","ngModel"],[3,"selectionChange","color","dash","weight"],["matTooltip","Length of COG line.",3,"ngModelChange","selectionChange","ngModel"],[3,"ngModelChange","selectionChange","ngModel","disabled"],["label","after",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","min","1",3,"ngModelChange","change","ngModel","disabled"],["matTooltip","Select to source trail data from the server","label","after",3,"ngModelChange","change","disabled","ngModel"],["discrete","","tickInterval","1","min","1","max","96",3,"disabled"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["label","Resources"],["id","sectNotes",1,"setting-group"],[3,"valueChange","selectionChange","disabled","value"],["floatLabel","always",2,"width","100%"],["matInput","","type","text","placeholder","?radius=%note:radius%","matTooltip","Filter to apply when retrieving notes",3,"ngModelChange","change","ngModel"],["matSuffix","","mat-icon-button",""],["matTooltip","Allow group name editing.","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Require position information when adding notes to a group.","label","after",3,"ngModelChange","change","ngModel"],["id","sectResLayers",1,"setting-group"],[2,"font-style","italic"],["matTooltip","Select resource layers to show.",3,"selectionChange"],[3,"selected","value"],["label","Radar"],["label","Signal K"],["id","sectSKConnection",1,"setting-group"],[2,"font-size","smaller"],["matToolTip","Check to receive other vessel data","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive AtoN data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Check to receive aircraft data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive SaR data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive Weather / Meteo data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Only include AIS targets within this distance","matTooltipPosition","below",3,"ngModelChange","selectionChange","ngModel"],["mat-icon-button","","matTooltip","Clear Auth Token",3,"click"],["label","Experiments"],["id","sectExperiments",1,"setting-group"],["matInput","","type","text","required","","placeholder","Video stream URL","matTooltip","Enter URL of video stream",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Enable ALL experimental Features","label","after",3,"ngModelChange","change","ngModel"],["matTooltipPosition","right",3,"value","matTooltip"],["matInput","","type","text","placeholder","e.g. ?layout=mylayout","matTooltip","Enter parameters to pass to Instrument App",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Stop instrument app when hidden","label","after",3,"ngModelChange","change","ngModel"],["mat-raised-button","","matTooltip","Favourite Apps","label","after",3,"click"],[3,"selectionChange"],[3,"disabled","selected","value"],["matTooltip","Display position in this format",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Preferred value type for paths not in Preferred Paths above",3,"ngModelChange","selectionChange","ngModel"],["src","./assets/img/vessels/self.png"],["matSuffix","","mat-icon-button","",3,"click"],[2,"width","stretch"],["matToolTip","Select radar device","matTooltipPosition","below",3,"ngModelChange","selectionChange","disabled","ngModel"],["mat-raised-button","",3,"click"]],template:function(a,e){if(a&1){let o=W();i(0,"mat-toolbar",20)(1,"span",21)(2,"mat-icon"),d(3,"settings"),n()(),i(4,"span",22),d(5,"Settings"),n(),i(6,"span",23)(7,"button",24),p("click",function(){return g(o),m(e.handleClose())}),i(8,"mat-icon"),d(9,"close"),n()()()(),i(10,"div",25)(11,"mat-tab-group",26)(12,"mat-tab",27)(13,"div",28)(14,"div",29)(15,"div",30)(16,"div",31),d(17,"DISPLAY"),n(),i(18,"mat-card",32)(19,"mat-card-content")(20,"div",33)(21,"div",34)(22,"mat-form-field",35)(23,"mat-label"),d(24,"Dark Mode setting"),n(),i(25,"mat-select",36),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.darkMode.source,t)||(e.facade.settings.display.darkMode.source=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel("darkTheme"))}),S(26,yt,2,2,"mat-option",37,v),n()()(),i(28,"div",34)(29,"mat-checkbox",38),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.nightMode,t)||(e.facade.settings.display.nightMode=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(30," Auto-set Night Mode "),n()(),i(31,"div",34)(32,"mat-form-field",35)(33,"mat-label"),d(34,"Action Button"),n(),i(35,"mat-select",39),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.fab,t)||(e.facade.settings.display.fab=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(36,Mt,2,2,"mat-option",37,v),n()()(),i(38,"div",34)(39,"mat-checkbox",40),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.disableWakelock,t)||(e.facade.settings.display.disableWakelock=t),m(t)}),p("change",function(t){return g(o),m(e.doWakelock(t.checked))}),d(40," Allow Device to Sleep "),n()()()()(),D(41,"br"),i(42,"mat-card",32)(43,"mat-card-content"),V(44,bt,22,4,"div",41),V(45,Tt,10,0,"div",33),n()(),D(46,"br"),n(),i(47,"div",30)(48,"div",31),d(49,"SOUND"),n(),i(50,"mat-card",32)(51,"mat-card-content")(52,"div",33)(53,"div",34)(54,"mat-checkbox",42),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.muteSound,t)||(e.facade.settings.display.muteSound=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(55," Do not Play Sounds "),n()(),i(56,"div",34)(57,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.depthAlarm.enabled,t)||(e.facade.settings.display.depthAlarm.enabled=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(58," Show DEPTH Alarms "),n()(),i(59,"div",34)(60,"mat-form-field",35)(61,"mat-label"),d(62,"Alarm Smoothing Time"),n(),i(63,"mat-select",44),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.depthAlarm.smoothing,t)||(e.facade.settings.display.depthAlarm.smoothing=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(64,Dt,2,2,"mat-option",37,v),n()()()()()()()()()(),i(66,"mat-tab",45)(67,"div",28)(68,"div",29)(69,"div",46)(70,"div",31),d(71,"UNITS & VALUES"),n(),i(72,"mat-card",32)(73,"mat-card-content")(74,"div",33)(75,"div",34)(76,"fieldset")(77,"legend")(78,"mat-checkbox",47,0),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.useServerPrefs,t)||(e.facade.settings.units.useServerPrefs=t),m(t)}),p("change",function(){return g(o),e.raiseChange(),m(e.persistModel())}),d(80," Use Server Unit Preferences "),n()(),i(81,"div",33)(82,"div",34)(83,"mat-form-field",35)(84,"mat-label"),d(85,"Distance units"),n(),i(86,"mat-select",48,1),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.distance,t)||(e.facade.settings.units.distance=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.persistModel())}),S(88,Et,2,2,"mat-option",37,v),n()()(),i(90,"div",34)(91,"mat-form-field",35)(92,"mat-label"),d(93,"Depth units"),n(),i(94,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.depth,t)||(e.facade.settings.units.depth=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.doS57())}),S(95,Wt,2,2,"mat-option",37,v),n()()(),i(97,"div",34)(98,"mat-form-field",35)(99,"mat-label"),d(100,"Length units"),n(),i(101,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.length,t)||(e.facade.settings.units.length=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.persistModel())}),S(102,kt,2,2,"mat-option",37,v),n()()(),i(104,"div",34)(105,"mat-form-field",35)(106,"mat-label"),d(107,"Temperature units"),n(),i(108,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.temperature,t)||(e.facade.settings.units.temperature=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.persistModel())}),S(109,Pt,2,2,"mat-option",37,v),n()()(),i(111,"div",34)(112,"mat-form-field",35)(113,"mat-label"),d(114,"Speed units"),n(),i(115,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.speed,t)||(e.facade.settings.units.speed=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.persistModel())}),S(116,Lt,2,2,"mat-option",37,v),n()()()()()()(),i(118,"div",33),V(119,Ot,7,1,"div",34),V(120,It,7,1,"div",34),i(121,"div",34)(122,"signalk-preferred-paths",49),p("chosen",function(t){return g(o),m(e.onPreferredPaths(t))}),n()()()()()()()()(),i(123,"mat-tab",50)(124,"div",28)(125,"div",29)(126,"div",51)(127,"div",31),d(128,"MAP"),n(),i(129,"mat-card")(130,"mat-card-content")(131,"div",33)(132,"div",34)(133,"mat-form-field",35)(134,"mat-label"),d(135,"Feature label zoom level"),n(),i(136,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.labelsMinZoom,t)||(e.facade.settings.map.labelsMinZoom=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(137,Bt,2,2,"mat-option",37,b),n()()(),i(139,"div",34)(140,"mat-form-field",35)(141,"mat-label"),d(142,"Offset Vessel Center"),n(),i(143,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.centerOffset,t)||(e.facade.settings.map.centerOffset=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(144,At,2,2,"mat-option",37,v),n()()(),i(146,"div",34)(147,"mat-checkbox",53),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.popoverMulti,t)||(e.facade.settings.map.popoverMulti=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(148," Popovers close with button "),n()(),i(149,"div",34)(150,"mat-checkbox",54),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.doubleClickZoom,t)||(e.facade.settings.map.doubleClickZoom=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(151," Double click to Zoom "),n()(),i(152,"div",34)(153,"mat-checkbox",55),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.overZoomTiles,t)||(e.facade.settings.map.overZoomTiles=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(154," Keep tiles visible on max zoom "),n()(),i(155,"div",34)(156,"mat-checkbox",56),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.lockMoveMap,t)||(e.facade.settings.map.lockMoveMap=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(157," Lock Follow Vessel "),n()()()()(),i(158,"div",31),d(159,"VECTOR CHARTS"),n(),i(160,"mat-card")(161,"mat-card-content")(162,"div",33)(163,"div",34)(164,"mat-form-field",35)(165,"mat-label"),d(166,"Graphics Style"),n(),i(167,"mat-select",57),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.graphicsStyle,t)||(e.facade.settings.map.s57Options.graphicsStyle=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(168,Nt,2,2,"mat-option",37,v),n()()(),i(170,"div",34)(171,"mat-form-field",35)(172,"mat-label"),d(173,"Boundaries"),n(),i(174,"mat-select",58),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.boundaries,t)||(e.facade.settings.map.s57Options.boundaries=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(175,Rt,2,2,"mat-option",37,v),n()()(),i(177,"div",34)(178,"mat-form-field",35)(179,"mat-label"),d(180,"Color Table (Requires refresh)"),n(),i(181,"mat-select",59),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.colorTable,t)||(e.facade.settings.map.s57Options.colorTable=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(182,Ut,2,2,"mat-option",37,v),n()()(),i(184,"div",34)(185,"mat-form-field",35)(186,"mat-label"),d(187,"Colors"),n(),i(188,"mat-select",60),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.colors,t)||(e.facade.settings.map.s57Options.colors=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(189,Gt,2,2,"mat-option",37,b),n()()()(),i(191,"div",33)(192,"div",34)(193,"mat-form-field",35)(194,"mat-label"),d(195,"Shallow depth"),n(),i(196,"input",61,2),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.shallowDepth,t)||(e.facade.settings.map.s57Options.shallowDepth=t),m(t)}),p("change",function(){g(o);let t=M(197);return m(e.doS57(t))}),n(),V(198,Zt,2,0,"mat-error"),i(199,"span",62),d(200,"m"),n()()(),i(201,"div",34)(202,"mat-form-field",35)(203,"mat-label"),d(204,"Safety depth"),n(),i(205,"input",61,3),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.safetyDepth,t)||(e.facade.settings.map.s57Options.safetyDepth=t),m(t)}),p("change",function(){g(o);let t=M(206);return m(e.doS57(t))}),n(),V(207,Ht,2,0,"mat-error"),i(208,"span",62),d(209,"m"),n()()(),i(210,"div",34)(211,"mat-form-field",35)(212,"mat-label"),d(213,"Deep depth"),n(),i(214,"input",61,4),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.deepDepth,t)||(e.facade.settings.map.s57Options.deepDepth=t),m(t)}),p("change",function(){g(o);let t=M(215);return m(e.doS57(t))}),n(),V(216,Kt,2,0,"mat-error"),i(217,"span",62),d(218,"m"),n()()(),i(219,"div",34)(220,"mat-form-field",35)(221,"mat-label"),d(222,"Layers"),n(),i(223,"mat-select",63),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.otherLayers,t)||(e.facade.settings.map.s57Options.otherLayers=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(224,zt,2,2,"mat-option",37,v),n()()()()()()()()()(),i(226,"mat-tab",64)(227,"div",28)(228,"div",29)(229,"div",65)(230,"div",31),d(231,"COURSE"),n(),i(232,"mat-card",32)(233,"mat-card-content")(234,"div",33)(235,"div",34)(236,"mat-form-field",35)(237,"mat-label"),d(238,"Arrival Circle"),n(),i(239,"input",61,5),u("ngModelChange",function(t){return g(o),f(e.facade.settings.course.arrivalCircle,t)||(e.facade.settings.course.arrivalCircle=t),m(t)}),p("change",function(){g(o);let t=M(240);return m(e.parseNumber(t))}),n(),V(241,qt,2,0,"mat-error"),i(242,"span",62),d(243,"m"),n()()()(),i(244,"div",33)(245,"div",34)(246,"mat-checkbox",43,6),u("ngModelChange",function(t){return g(o),f(e.facade.settings.course.autoNextPointOnArrival,t)||(e.facade.settings.course.autoNextPointOnArrival=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(248," Auto-advance to next point on arrival "),n()()(),i(249,"div",33)(250,"div",34)(251,"mat-form-field",35)(252,"mat-label"),d(253,"Notification type to use"),n(),i(254,"mat-select",66,7),u("ngModelChange",function(t){return g(o),f(e.facade.settings.course.autoNextPointTrigger,t)||(e.facade.settings.course.autoNextPointTrigger=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(256,jt,2,2,"mat-option",37,b),n()()(),i(258,"div",34)(259,"mat-form-field",35)(260,"mat-label"),d(261,"Time to wait before advancing"),n(),i(262,"mat-select",67),u("ngModelChange",function(t){return g(o),f(e.facade.settings.course.autoNextPointDelay,t)||(e.facade.settings.course.autoNextPointDelay=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(263,Xt,2,2,"mat-option",37,v),n()()()()()()()()()(),i(265,"mat-tab",68)(266,"div",28)(267,"div",29)(268,"div",69)(269,"div",31),d(270,"VESSEL"),n(),i(271,"mat-card",32)(272,"mat-card-content")(273,"div",33)(274,"div",34)(275,"fieldset")(276,"legend"),d(277,"Vessel Icon Size"),n(),i(278,"div",33)(279,"div",34)(280,"mat-radio-group",70),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.iconScale,t)||(e.facade.settings.vessels.iconScale=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),S(281,Yt,3,4,"mat-radio-button",37,v),n()()()()()(),i(283,"div",34)(284,"fieldset")(285,"legend")(286,"mat-checkbox",71,8),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.fixedLocationMode,t)||(e.facade.settings.vessels.fixedLocationMode=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(288," Fixed Location Mode "),n()(),i(289,"div",33)(290,"div",34)(291,"mat-form-field",72)(292,"mat-label"),d(293,"Latitude"),n(),i(294,"input",73,9),u("ngModelChange",function(t){return g(o),f(e.facade.fixedPosition[1],t)||(e.facade.fixedPosition[1]=t),m(t)}),p("change",function(){g(o);let t=M(295);return m(e.parseNumber(t,!0))}),n(),V(296,Jt,2,0,"mat-error"),n(),i(297,"mat-form-field",72)(298,"mat-label"),d(299,"Longitude"),n(),i(300,"input",74,10),u("ngModelChange",function(t){return g(o),f(e.facade.fixedPosition[0],t)||(e.facade.fixedPosition[0]=t),m(t)}),p("change",function(){g(o);let t=M(301);return m(e.parseNumber(t,!0))}),n(),V(302,Qt,2,0,"mat-error"),n()()()()()()(),D(303,"br"),i(304,"mat-card",32)(305,"mat-card-content")(306,"div",34)(307,"fieldset")(308,"legend"),d(309,"Vessel Lines:"),n(),i(310,"div",33)(311,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.windVectors,t)||(e.facade.settings.vessels.windVectors=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(312," Display Wind Vectors "),n(),i(313,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.laylines,t)||(e.facade.settings.vessels.laylines=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(314," Display Laylines "),n()(),i(315,"div",33)(316,"div",34)(317,"fieldset")(318,"legend"),d(319,"Heading Line"),n(),i(320,"div",33)(321,"div",34)(322,"mat-form-field")(323,"mat-label"),d(324,"Heading Line Length"),n(),i(325,"mat-select",75),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.selfLines.heading.length,t)||(e.facade.settings.vessels.selfLines.heading.length=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(326,$t,2,2,"mat-option",37,v),n()()(),i(328,"div",34)(329,"linestyle-select",76),p("selectionChange",function(t){return g(o),m(e.onLineStyle("heading",t))}),n()()()()()(),i(330,"div",33)(331,"div",34)(332,"fieldset")(333,"legend"),d(334,"COG Line"),n(),i(335,"div",33)(336,"div",34)(337,"mat-form-field")(338,"mat-label"),d(339,"COG Line Length"),n(),i(340,"mat-select",77),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.selfLines.cog.length,t)||(e.facade.settings.vessels.selfLines.cog.length=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(341,ei,2,2,"mat-option",37,v),n()()(),i(343,"div",34)(344,"linestyle-select",76),p("selectionChange",function(t){return g(o),m(e.onLineStyle("cog",t))}),n()()()()()()()(),i(345,"div",34)(346,"fieldset")(347,"legend")(348,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.rangeCircles,t)||(e.facade.settings.vessels.rangeCircles=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(349," Display Range Circles "),n()(),i(350,"div",33)(351,"div",34)(352,"mat-form-field",35)(353,"mat-label"),d(354,"Number of Range Circles"),n(),i(355,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.rangeCircleCount,t)||(e.facade.settings.vessels.rangeCircleCount=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(356,ti,2,2,"mat-option",37,b),n()()(),i(358,"div",34)(359,"mat-form-field",35)(360,"mat-label"),d(361,"Minimum Zoom Level"),n(),i(362,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.rangeCircleMinZoom,t)||(e.facade.settings.vessels.rangeCircleMinZoom=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(363,ii,2,2,"mat-option",37,b),n()()()(),i(365,"div",33)(366,"div",34)(367,"mat-checkbox",79),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.rangeCirclesFixed,t)||(e.facade.settings.vessels.rangeCirclesFixed=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(368," Use Fixed Distance "),n()(),i(369,"div",34)(370,"mat-form-field",72)(371,"mat-label"),d(372),n(),i(373,"input",80,11),u("ngModelChange",function(t){return g(o),f(e.formattedNumberModel.rangeCirclesDistance,t)||(e.formattedNumberModel.rangeCirclesDistance=t),m(t)}),p("change",function(){g(o);let t=M(374);return m(e.parseFormattedNumber(t))}),n(),V(375,ni,2,0,"mat-error"),n()()()()()()(),D(376,"br"),i(377,"mat-card",32)(378,"mat-card-content")(379,"div",33)(380,"fieldset")(381,"legend")(382,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trail,t)||(e.facade.settings.vessels.trail=t),m(t)}),p("change",function(){return g(o),m(e.persistModel("vesselTrail"))}),d(383," Display Vessel Track "),n()(),i(384,"div",33)(385,"div",34)(386,"mat-checkbox",81),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailFromServer,t)||(e.facade.settings.vessels.trailFromServer=t),m(t)}),p("change",function(){return g(o),m(e.persistModel("trailFromServer"))}),d(387," Get Track from server "),n(),d(388," \xA0\xA0 "),i(389,"mat-slider",82)(390,"input",83),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailDuration,t)||(e.facade.settings.vessels.trailDuration=t),m(t)}),p("valueChange",function(){return g(o),m(e.deferPersist())}),n()(),d(391),n()(),i(392,"div",33)(393,"div",34)(394,"mat-form-field",35)(395,"mat-label"),d(396,"Resolution: Last hour"),n(),i(397,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailResolution.lastHour,t)||(e.facade.settings.vessels.trailResolution.lastHour=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(398,ai,2,2,"mat-option",37,v),n()()(),i(400,"div",34)(401,"mat-form-field",35)(402,"mat-label"),d(403,"Resolution: 1 hr -> 24 hrs"),n(),i(404,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailResolution.next23,t)||(e.facade.settings.vessels.trailResolution.next23=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(405,oi,2,2,"mat-option",37,v),n()()(),i(407,"div",34)(408,"mat-form-field",35)(409,"mat-label"),d(410,"Resolution: > 24 hrs"),n(),i(411,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailResolution.beyond24,t)||(e.facade.settings.vessels.trailResolution.beyond24=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(412,ri,2,2,"mat-option",37,v),n()()()()()()()(),i(414,"div",31),d(415,"OTHER VESSELS"),n(),i(416,"mat-card",32)(417,"mat-card-content")(418,"div",33)(419,"div",34)(420,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisShowTrack,t)||(e.facade.settings.vessels.aisShowTrack=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(421," Show Track "),n(),d(422," \xA0 "),i(423,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.aisStateFilter.moored,t)||(e.aisStateFilter.moored=t),m(t)}),p("change",function(){return g(o),m(e.onAisStateFilter())}),d(424," Hide Moored "),n(),d(425," \xA0 "),i(426,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.aisStateFilter.anchored,t)||(e.aisStateFilter.anchored=t),m(t)}),p("change",function(){return g(o),m(e.onAisStateFilter())}),d(427," Hide Anchored "),n()()(),i(428,"div",33)(429,"div",34)(430,"mat-form-field",35)(431,"mat-label"),d(432,"Mark AIS target inactive after"),n(),i(433,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisStaleAge,t)||(e.facade.settings.vessels.aisStaleAge=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(434,si,2,2,"mat-option",37,v),n()()(),i(436,"div",34)(437,"mat-form-field",35)(438,"mat-label"),d(439,"Remove AIS target after"),n(),i(440,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisMaxAge,t)||(e.facade.settings.vessels.aisMaxAge=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(441,li,2,2,"mat-option",37,v),n()()(),i(443,"div",34)(444,"mat-form-field",35)(445,"mat-label"),d(446,"Wind Vector Value"),n(),i(447,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisWindApparent,t)||(e.facade.settings.vessels.aisWindApparent=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(448,di,2,2,"mat-option",37,v),n()()(),i(450,"div",34)(451,"mat-form-field",35)(452,"mat-label"),d(453,"Wind / Track Zoom Level"),n(),i(454,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisWindMinZoom,t)||(e.facade.settings.vessels.aisWindMinZoom=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(455,gi,2,2,"mat-option",37,b),n()()(),i(457,"div",34)(458,"mat-form-field",35)(459,"mat-label"),d(460,"COG Line"),n(),i(461,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisCogLine,t)||(e.facade.settings.vessels.aisCogLine=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(462,mi,2,2,"mat-option",37,v),n()()()()()()()()()(),i(464,"mat-tab",84)(465,"div",28)(466,"div",29)(467,"div",85)(468,"div",31),d(469,"NOTES"),n(),i(470,"mat-card",32)(471,"mat-card-content")(472,"div",41)(473,"div",34)(474,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.ui.showNotes,t)||(e.facade.settings.ui.showNotes=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(475," Display Notes on Map "),n()(),i(476,"div",34)(477,"mat-form-field",35)(478,"mat-label"),d(479,"Notes Zoom Level"),n(),i(480,"mat-select",86),u("valueChange",function(t){return g(o),f(e.facade.settings.resources.notes.minZoom,t)||(e.facade.settings.resources.notes.minZoom=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel("fetchNotes"))}),S(481,ci,2,2,"mat-option",37,b),n()()()(),i(483,"div",41)(484,"div",34)(485,"mat-form-field",35)(486,"mat-label"),d(487),n(),i(488,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.notes.getRadius,t)||(e.facade.settings.resources.notes.getRadius=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel("fetchNotes"))}),S(489,pi,2,2,"mat-option",37,b),n()()()(),i(491,"div",41)(492,"div",34)(493,"mat-form-field",87)(494,"mat-label"),d(495,"Notes fetch filter:"),n(),i(496,"input",88,12),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.notes.rootFilter,t)||(e.facade.settings.resources.notes.rootFilter=t),m(t)}),p("change",function(){return g(o),m(e.persistModel("fetchNotes"))}),n(),V(498,_i,3,0,"button",89),n()()(),i(499,"div",41)(500,"div",34)(501,"mat-checkbox",90),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.notes.groupNameEdit,t)||(e.facade.settings.resources.notes.groupNameEdit=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(502," Edit Group Names "),n()(),i(503,"div",34)(504,"mat-checkbox",91),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.notes.groupRequiresPosition,t)||(e.facade.settings.resources.notes.groupRequiresPosition=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(505," Position Group Note "),n()()()()()(),i(506,"div",92)(507,"div",31),d(508,"CUSTOM RESOURCES"),n(),i(509,"mat-card",32)(510,"mat-card-content")(511,"div",41)(512,"div",34)(513,"div",93),d(514," Select custom resource types (./resources/<name>) "),n(),i(515,"mat-selection-list",94,13),p("selectionChange",function(){g(o);let t=M(516);return m(e.onResPathSelected(t))}),S(517,fi,2,3,"mat-list-option",95,b),n()()()()()()()()(),V(519,hi,21,2,"mat-tab",96),i(520,"mat-tab",97)(521,"div",28)(522,"div",29)(523,"div",98)(524,"div",31),d(525,"SIGNAL K: CONNECTION"),n(),i(526,"mat-card",32)(527,"mat-card-content")(528,"div",41)(529,"fieldset")(530,"legend"),d(531,"Filter Stream data:"),n(),i(532,"span",99),d(533," Check to include Signal K schema groups on display."),D(534,"br"),i(535,"i"),d(536,"Use to manage display performance."),n()(),i(537,"div",34)(538,"mat-checkbox",100),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.vessels,t)||(e.facade.settings.signalk.vessels=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(539," Vessels (other than Self) "),n()(),i(540,"div",34)(541,"mat-checkbox",101),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.atons,t)||(e.facade.settings.signalk.atons=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(542," Aids to Navigation (AtoN) "),n()(),i(543,"div",34)(544,"mat-checkbox",102),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.aircraft,t)||(e.facade.settings.signalk.aircraft=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(545," Aircraft "),n()(),i(546,"div",34)(547,"mat-checkbox",103),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.sar,t)||(e.facade.settings.signalk.sar=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(548," Search and Rescue (SaR) "),n()(),i(549,"div",34)(550,"mat-checkbox",104),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.meteo,t)||(e.facade.settings.signalk.meteo=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(551," Weather (Meteo) "),n()(),i(552,"div",34),D(553,"br"),i(554,"mat-form-field",35)(555,"mat-label"),d(556,"Max. distance from vessel"),n(),i(557,"mat-select",105,14),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.maxRadius,t)||(e.facade.settings.signalk.maxRadius=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(559,Si,2,2,"mat-option",37,v),n()()()()(),i(561,"div",41)(562,"div",34)(563,"button",106),p("click",function(){return g(o),m(e.clearAuthToken())}),i(564,"mat-icon"),d(565,"key_off"),n()()()()()()()()()(),i(566,"mat-tab",107)(567,"div",28)(568,"div",29)(569,"div",108)(570,"div",31),d(571,"EXPERIMENTS"),n(),i(572,"mat-card",32)(573,"mat-card-content")(574,"div",41)(575,"div",34)(576,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.video.enable,t)||(e.facade.settings.resources.video.enable=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(577," Enable Video "),n()(),i(578,"div",34)(579,"mat-form-field",87)(580,"mat-label"),d(581,"url:"),n(),i(582,"input",109,15),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.video.url,t)||(e.facade.settings.resources.video.url=t),m(t)}),p("change",function(){return g(o),m(e.persistModel("videoUrl"))}),n(),V(584,wi,2,0,"mat-error"),n()()(),i(585,"div",41)(586,"div",34)(587,"mat-checkbox",110,16),u("ngModelChange",function(t){return g(o),f(e.facade.settings.experiments,t)||(e.facade.settings.experiments=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),i(589,"mat-icon"),d(590,"science"),n(),d(591," Experimental Features "),n()()()()()()()()()()()}if(a&2){let o=M(87),r=M(197),t=M(206),ne=M(215),ae=M(240),le=M(247),de=M(287),oe=M(295),re=M(301),se=M(374),st=M(497),lt=M(583);s(25),_("ngModel",e.facade.settings.display.darkMode.source),s(),w(e.options.darkMode),s(3),_("ngModel",e.facade.settings.display.nightMode),s(6),_("ngModel",e.facade.settings.display.fab),s(),w(e.options.buttons.fab),s(3),h("disabled",!e.wakeLock.isAvailable),_("ngModel",e.facade.settings.display.disableWakelock),s(5),T(e.facade.applicationList.length>1?44:-1),s(),T(e.show.favourites()?45:-1),s(9),_("ngModel",e.facade.settings.display.muteSound),s(3),_("ngModel",e.facade.settings.display.depthAlarm.enabled),s(6),_("ngModel",e.facade.settings.display.depthAlarm.smoothing),h("disabled",!e.facade.settings.display.depthAlarm.enabled),s(),w(e.options.alarm.smoothing),s(14),h("disabled",!e.app.serverConfig.unitPreferences()),_("ngModel",e.facade.settings.units.useServerPrefs),s(8),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.distance),s(2),w(e.options.availableUnits.distance),s(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.depth),s(),w(e.options.availableUnits.depth),s(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.length),s(),w(e.options.availableUnits.length),s(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.temperature),s(),w(e.options.availableUnits.temperature),s(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.speed),s(),w(e.options.availableUnits.speed),s(3),T(e.options.preferredValues.coords.length!==0?119:-1),s(),T(e.options.preferredValues.heading.length!==0?120:-1),s(16),_("ngModel",e.facade.settings.map.labelsMinZoom),s(),w(e.options.zoomLevels),s(6),_("ngModel",e.facade.settings.map.centerOffset),s(),w(e.options.map.centerOffset),s(3),_("ngModel",e.facade.settings.map.popoverMulti),s(3),_("ngModel",e.facade.settings.map.doubleClickZoom),s(3),_("ngModel",e.facade.settings.map.overZoomTiles),s(3),_("ngModel",e.facade.settings.map.lockMoveMap),s(11),_("ngModel",e.facade.settings.map.s57Options.graphicsStyle),s(),w(e.options.map.s57.graphicsStyle),s(6),_("ngModel",e.facade.settings.map.s57Options.boundaries),s(),w(e.options.map.s57.boundaries),s(6),_("ngModel",e.facade.settings.map.s57Options.colorTable),s(),w(e.options.map.s57.colorTables),s(6),_("ngModel",e.facade.settings.map.s57Options.colors),s(),w(e.options.map.s57.colors),s(7),_("ngModel",e.facade.settings.map.s57Options.shallowDepth),s(2),T(r.invalid&&(r.dirty||r.touched)?198:-1),s(7),_("ngModel",e.facade.settings.map.s57Options.safetyDepth),s(2),T(t.invalid&&(t.dirty||t.touched)?207:-1),s(7),_("ngModel",e.facade.settings.map.s57Options.deepDepth),s(2),T(ne.invalid&&(ne.dirty||ne.touched)?216:-1),s(7),_("ngModel",e.facade.settings.map.s57Options.otherLayers),s(),w(e.options.map.s57.otherLayers),s(15),_("ngModel",e.facade.settings.course.arrivalCircle),s(2),T(ae.invalid&&(ae.dirty||ae.touched)?241:-1),s(5),_("ngModel",e.facade.settings.course.autoNextPointOnArrival),s(8),h("disabled",le.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointTrigger),s(2),w(e.options.course.nextPointTrigger),s(6),h("disabled",le.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointDelay),s(),w(e.options.course.nextPointDelay),s(17),_("ngModel",e.facade.settings.vessels.iconScale),s(),w(e.options.vessel.selfIconScale),s(5),_("ngModel",e.facade.settings.vessels.fixedLocationMode),s(8),_("ngModel",e.facade.fixedPosition[1]),h("disabled",!de.checked),s(2),T(oe.invalid&&(oe.dirty||oe.touched)?296:-1),s(4),_("ngModel",e.facade.fixedPosition[0]),h("disabled",!de.checked),s(2),T(re.invalid&&(re.dirty||re.touched)?302:-1),s(9),_("ngModel",e.facade.settings.vessels.windVectors),s(2),_("ngModel",e.facade.settings.vessels.laylines),s(12),_("ngModel",e.facade.settings.vessels.selfLines.heading.length),s(),w(e.options.vessel.headingLine),s(3),h("color",e.facade.settings.vessels.selfLines.heading.color)("dash",e.facade.settings.vessels.selfLines.heading.dash)("weight",e.facade.settings.vessels.selfLines.heading.weight),s(11),_("ngModel",e.facade.settings.vessels.selfLines.cog.length),s(),w(e.options.vessel.cogLine),s(3),h("color",e.facade.settings.vessels.selfLines.cog.color)("dash",e.facade.settings.vessels.selfLines.cog.dash)("weight",e.facade.settings.vessels.selfLines.cog.weight),s(4),_("ngModel",e.facade.settings.vessels.rangeCircles),s(7),_("ngModel",e.facade.settings.vessels.rangeCircleCount),h("disabled",!e.facade.settings.vessels.rangeCircles),s(),w(e.options.rangeCircles.count),s(6),_("ngModel",e.facade.settings.vessels.rangeCircleMinZoom),h("disabled",!e.facade.settings.vessels.rangeCircles),s(),w(e.options.rangeCircles.zoomLevels),s(4),_("ngModel",e.facade.settings.vessels.rangeCirclesFixed),h("disabled",!e.facade.settings.vessels.rangeCircles),s(5),k(" Distance between circles (",e.renderSymbol(e.facade.settings.units.distance),") "),s(),_("ngModel",e.formattedNumberModel.rangeCirclesDistance),h("disabled",!e.facade.settings.vessels.rangeCircles||!e.facade.settings.vessels.rangeCirclesFixed),s(2),T(se.invalid&&(se.dirty||se.touched)?375:-1),s(7),_("ngModel",e.facade.settings.vessels.trail),s(4),h("disabled",!e.facade.settings.vessels.trail),_("ngModel",e.facade.settings.vessels.trailFromServer),s(3),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),s(),_("ngModel",e.facade.settings.vessels.trailDuration),s(),k(" Length (",e.facade.settings.vessels.trailDuration," hrs) "),s(6),_("ngModel",e.facade.settings.vessels.trailResolution.lastHour),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),s(),w(e.options.trailIntervals.highResolution),s(6),_("ngModel",e.facade.settings.vessels.trailResolution.next23),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),s(),w(e.options.trailIntervals.highResolution),s(6),_("ngModel",e.facade.settings.vessels.trailResolution.beyond24),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),s(),w(e.options.trailIntervals.mediumResolution),s(8),_("ngModel",e.facade.settings.vessels.aisShowTrack),s(3),_("ngModel",e.aisStateFilter.moored),s(3),_("ngModel",e.aisStateFilter.anchored),s(7),_("ngModel",e.facade.settings.vessels.aisStaleAge),s(),w(e.options.vessel.aisTimeouts),s(6),_("ngModel",e.facade.settings.vessels.aisMaxAge),s(),w(e.options.vessel.aisTimeouts),s(6),_("ngModel",e.facade.settings.vessels.aisWindApparent),s(),w(e.options.preferredValues.wind),s(6),_("ngModel",e.facade.settings.vessels.aisWindMinZoom),s(),w(e.options.zoomLevels),s(6),_("ngModel",e.facade.settings.vessels.aisCogLine),s(),w(e.options.vessel.aisCogLine),s(12),_("ngModel",e.facade.settings.ui.showNotes),s(6),h("disabled",!e.facade.settings.ui.showNotes),_("value",e.facade.settings.resources.notes.minZoom),s(),w(e.options.zoomLevels),s(6),C("Fetch Notes radius: ("+e.options.availableUnits.distance.get(o.value)+")"),s(),h("disabled",!e.facade.settings.ui.showNotes),_("ngModel",e.facade.settings.resources.notes.getRadius),s(),w(e.options.resources.noteRadius),s(7),_("ngModel",e.facade.settings.resources.notes.rootFilter),s(2),T(st.value?498:-1),s(3),_("ngModel",e.facade.settings.resources.notes.groupNameEdit),s(3),_("ngModel",e.facade.settings.resources.notes.groupRequiresPosition),s(13),w(e.facade.resourcePathList),s(2),T(e.app.featureFlags().radarApi?519:-1),s(19),_("ngModel",e.facade.settings.signalk.vessels),s(3),_("ngModel",e.facade.settings.signalk.atons),s(3),_("ngModel",e.facade.settings.signalk.aircraft),s(3),_("ngModel",e.facade.settings.signalk.sar),s(3),_("ngModel",e.facade.settings.signalk.meteo),s(7),_("ngModel",e.facade.settings.signalk.maxRadius),s(2),w(e.options.vessel.aisMaxRadius),s(17),_("ngModel",e.facade.settings.resources.video.enable),s(6),h("disabled",!e.facade.settings.resources.video.enable),_("ngModel",e.facade.settings.resources.video.url),s(2),T(lt.invalid?584:-1),s(3),_("ngModel",e.facade.settings.experiments)}},dependencies:[Z,R,ve,U,Te,De,Ve,be,G,Se,he,Be,Ie,ee,Qe,$,Fe,xe,Oe,ke,We,Ee,Me,A,Ce,we,N,ye,H,Le,tt,$e,et,je,J,z,K,Ae,Ne,Y,X,Re,j,q,Pe,Ze,Ge,Je,Xe,Ye,ie,te],styles:["[_nghost-%COMP%] .mat-dialog-content{padding:0 4px}.settings[_ngcontent-%COMP%] .setting-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}.setting-card-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.settings[_ngcontent-%COMP%] .setting-card-row-item[_ngcontent-%COMP%]{padding-right:15px;flex:1 1 auto}@media only screen and (max-width:599px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}@media only screen and (min-width:600px)and (max-width:959px),screen and (min-width:960px)and (max-width:1279px),screen and (min-width:1280px)and (max-width:1919px),screen and (min-width:1920px)and (max-width:5000px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{rt as SettingsDialog};
|
|
1
|
+
import{A as ze,Aa as it,Ba as nt,D as qe,E as L,J as je,P as Xe,Q as Ye,R as Je,b as Me,e as Ee,fa as Qe,g as We,ga as $,h as ke,ha as ee,l as Pe,la as $e,m as H,ma as et,na as tt,u as Ge,v as Ze,w as He,x as Q,z as Ke}from"./chunk-B6MVZV6D.js";import{a as xe,d as Oe,i as Fe,j as Ie,k as Be}from"./chunk-TQPGRJVE.js";import{d as Le,e as X,f as Y,g as Ue,h as J}from"./chunk-QI5ICQLG.js";import{$d as Ve,Aa as V,Ba as T,Da as b,Ea as S,Ed as we,Fa as w,Fb as I,Ga as h,Gd as Ce,Ha as i,Ia as n,Ja as D,Jb as fe,Jd as A,Kb as B,L as E,Ld as ye,M as g,Md as N,N as m,O as x,Od as R,P as ge,Qa as W,Sa as p,T as me,Td as U,Ua as y,V as F,W as ce,Wd as G,Xd as ve,_ as pe,_d as be,ae as Te,be as De,cb as M,ce as Z,fa as s,fb as _e,ge as K,hb as d,he as Ae,ib as C,jb as k,je as Ne,lb as _,mb as f,me as z,na as P,nb as u,ne as Re,rd as ue,re as q,se as j,vd as he,xd as Se,za as O}from"./chunk-QPQHN5VS.js";import"./chunk-EQVTEUXC.js";var pt=(l,c)=>c[0];function _t(l,c){if(l&1&&(i(0,"mat-option",8),x(),i(1,"svg",6),D(2,"line",7),n()()),l&2){let a=c.$implicit;h("value",a),s(2),O("stroke-width",a)}}function ft(l,c){if(l&1&&(i(0,"mat-option",8),x(),i(1,"svg",6),D(2,"line",9),n()()),l&2){let a=c.$implicit;h("value",a[0]),s(2),O("stroke-dasharray",a[1])}}var te=class l{color=B("#ff0000");dash=B("none");weight=B(1);_color=I(()=>this.color());_dash=I(()=>this.dash());_weight=I(()=>this.weight());selectionChange=fe();app=E(L);line={dashArrays:this.app.lineDashMap,weights:[1,2,3,4,5]};constructor(){}ngOnInit(){}onSelectChange(c){let a=this.app.formatLineDashArray(this._dash());this.selectionChange.emit({lineStyle:{fill:{color:this._color()},stroke:{color:this._color(),width:this._weight(),lineDash:a}},config:{color:this._color(),weight:this._weight(),dash:this._dash()}})}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["linestyle-select"]],inputs:{color:[1,"color"],dash:[1,"dash"],weight:[1,"weight"]},outputs:{selectionChange:"selectionChange"},decls:25,vars:5,consts:[[2,"display","flex"],[2,"width","100px"],["mat-input","","matNativeControl","","type","color",3,"ngModelChange","change","ngModel"],[2,"width","110px"],[3,"ngModelChange","selectionChange","ngModel"],[2,"display","flex","align-items","center","gap","8px"],["width","48","height","10",2,"vertical-align","middle","margin-right","6px"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-array","none"],[3,"value"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-width","2"]],template:function(a,e){a&1&&(i(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),d(3,"Color"),n(),i(4,"input",2),u("ngModelChange",function(r){return f(e._color,r)||(e._color=r),r}),p("change",function(r){return e.onSelectChange({key:"color",value:r.srcElement.value})}),n()(),i(5,"mat-form-field",3)(6,"mat-label"),d(7,"Weight"),n(),i(8,"mat-select",4),u("ngModelChange",function(r){return f(e._weight,r)||(e._weight=r),r}),p("selectionChange",function(r){return e.onSelectChange({key:"weight",value:r.value})}),i(9,"mat-select-trigger")(10,"div",5),x(),i(11,"svg",6),D(12,"line",7),n()()(),S(13,_t,3,2,"mat-option",8,b),n()(),ge(),i(15,"mat-form-field",3)(16,"mat-label"),d(17,"Style"),n(),i(18,"mat-select",4),u("ngModelChange",function(r){return f(e._dash,r)||(e._dash=r),r}),p("selectionChange",function(r){return e.onSelectChange({key:"dash",value:r.value})}),i(19,"mat-select-trigger")(20,"div",5),x(),i(21,"svg",6),D(22,"line",9),n()()(),S(23,ft,3,2,"mat-option",8,pt),n()()()),a&2&&(s(4),_("ngModel",e._color),s(4),_("ngModel",e._weight),s(4),O("stroke-width",e._weight()),s(),w(e.line.weights),s(5),_("ngModel",e._dash),s(4),O("stroke-dasharray",e.line.dashArrays.get(e._dash())),s(),w(e.line.dashArrays))},dependencies:[Z,R,U,G,N,A,H,j,q,z,K,J,Y,Ue,X],encapsulation:2})};var ht=(l,c)=>c[0];function St(l,c){if(l&1){let a=W();i(0,"div",4)(1,"mat-radio-button",5,0),p("change",function(){g(a);let o=M(2),r=y().$implicit,t=y();return r[1].current=o.value,m(t.save(!0))}),d(3),n()()}if(l&2){let a=c.$implicit,e=y().$implicit;s(),h("name",e[0])("value",a)("checked",a===e[1].current),s(2),k(" ",a.split(".").slice(-1)," ")}}function wt(l,c){if(l&1&&(i(0,"div",2)(1,"div",3)(2,"div"),d(3),n()(),i(4,"div"),S(5,St,4,4,"div",4,b),n()()),l&2){let a=c.$implicit;s(3),C(a[1].name),s(2),w(a[1].available)}}var ie=class l{title="";chosen=new me;pathChoices={tws:{name:"True Wind Speed",choices:["environment.wind.speedTrue","environment.wind.speedOverGround"],available:[],current:""},twd:{name:"True Wind Direction",choices:["environment.wind.directionTrue","environment.wind.directionMagnetic","environment.wind.angleTrueGround","environment.wind.angleTrueWater"],available:[],current:""},heading:{name:"Heading / COG",choices:["navigation.courseOverGroundTrue","navigation.courseOverGroundMagnetic","navigation.headingTrue","navigation.headingMagnetic"],available:[],current:""}};pathChoicesArray=Object.entries(this.pathChoices);availPaths;app=E(L);constructor(){}ngOnInit(){this.initEntries()}initEntries(){this.availPaths=new Map(Object.entries(this.app.data.vessels.prefAvailablePaths)),this.pathChoices.tws.current=this.app.config.units.preferredPaths.tws,this.pathChoices.twd.current=this.app.config.units.preferredPaths.twd,this.pathChoices.heading.current=this.app.config.units.preferredPaths.heading,Object.entries(this.pathChoices).forEach(a=>{let e=a[1];e.choices.forEach(o=>{this.availPaths.has(o)&&e.available.push(o)}),e.available.length===0&&e.available.push(e.choices[0])})}save(c){let a={};Object.entries(this.pathChoices).forEach(e=>{a[e[0]]=e[1].current}),this.chosen.emit({save:c,value:a})}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["signalk-preferred-paths"]],inputs:{title:"title"},outputs:{chosen:"chosen"},decls:6,vars:1,consts:[["pathopt",""],[2,"font-size","10pt"],[1,"sk-details"],[1,"title"],[2,"margin","5px 0 5px 0"],[3,"change","name","value","checked"]],template:function(a,e){a&1&&(i(0,"fieldset")(1,"legend",1),d(2),n(),i(3,"div"),S(4,wt,7,1,"div",2,ht),n()()),a&2&&(s(2),C(e.title),s(2),w(e.pathChoicesArray))},dependencies:[ee,$],styles:[".sk-details[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:10pt;max-height:100%;width:60vw;max-width:300px}.sk-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{background:left 1px -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.18)),color-stop(.65,transparent)) #b2bbc2e3;padding:3px 5px 0;margin-top:3px;font-weight:500;line-height:23px;color:#000}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:0;line-height:23px;margin:0;flex:1 1 auto;overflow:auto}.sk-details[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;flex-direction:row;line-height:26px;border-width:0 0 0 0;border-style:solid;border-color:gray;padding-left:5px}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-width:0 0 1px 0}.sk-details[_ngcontent-%COMP%] .sectionname[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;font-weight:500}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;width:100%;background-color:#fff}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0})};var v=(l,c)=>c[0],Ct=(l,c)=>c.id;function yt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Mt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function vt(l,c){if(l&1&&(i(0,"mat-option",111),d(1),n()),l&2){let a=c.$implicit;h("value",a.url)("matTooltip",a.description),s(),k(" ",a.name," ")}}function bt(l,c){if(l&1){let a=W();i(0,"div",41)(1,"div",34)(2,"mat-form-field",35)(3,"mat-label"),d(4,"Select Instruments App"),n(),i(5,"mat-select",52),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.display.plugins.instruments,o)||(r.facade.settings.display.plugins.instruments=o),m(o)}),p("selectionChange",function(){g(a);let o=y();return m(o.onInstrumentApp())}),S(6,vt,2,3,"mat-option",111,b),n()()(),i(8,"div",34)(9,"mat-form-field",87)(10,"mat-label"),d(11,"Parameters"),n(),i(12,"input",112,17),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.display.plugins.parameters,o)||(r.facade.settings.display.plugins.parameters=o),m(o)}),p("change",function(){g(a);let o=y();return m(o.persistModel("pluginParameters"))}),n()()(),i(14,"div",34)(15,"mat-checkbox",113),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.display.plugins.startOnOpen,o)||(r.facade.settings.display.plugins.startOnOpen=o),m(o)}),p("change",function(){g(a);let o=y();return m(o.persistModel("pluginStartOnOpen"))}),d(16," Halt App on hide "),n()(),i(17,"div",34)(18,"button",114),p("click",function(){g(a);let o=y();return m(o.toggleFavourites())}),i(19,"mat-icon"),d(20,"star"),n(),d(21," FAVOURITES "),n()()()}if(l&2){let a=y();s(5),_("ngModel",a.facade.settings.display.plugins.instruments),s(),w(a.facade.applicationList),s(6),h("disabled",a.facade.settings.display.plugins.instruments===null),_("ngModel",a.facade.settings.display.plugins.parameters),s(3),_("ngModel",a.facade.settings.display.plugins.startOnOpen)}}function Vt(l,c){if(l&1&&(i(0,"mat-list-option",116),d(1),n()),l&2){let a=c.$implicit,e=y(2);h("disabled",a.url==e.facade.settings.display.plugins.instruments)("selected",e.facade.settings.display.plugins.favourites.includes(a.url))("value",a.url),s(),k(" ",a.name," ")}}function Tt(l,c){if(l&1){let a=W();i(0,"div",33)(1,"div",34)(2,"div",93),D(3,"br"),d(4,"Select Favourite Apps: "),n(),D(5,"mat-divider"),i(6,"mat-selection-list",115,18),p("selectionChange",function(o){g(a);let r=M(7),t=y();return m(t.onFavSelected(o,r))}),S(8,Vt,2,4,"mat-list-option",116,b),n()()()}if(l&2){let a=y();s(8),w(a.facade.favouritesList)}}function Dt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Et(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Wt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function kt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Pt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Lt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function xt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Ot(l,c){if(l&1){let a=W();i(0,"div",34)(1,"mat-form-field",35)(2,"mat-label"),d(3,"Position display format"),n(),i(4,"mat-select",117),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.units.positionFormat,o)||(r.facade.settings.units.positionFormat=o),m(o)}),p("selectionChange",function(){g(a);let o=y();return m(o.persistModel())}),S(5,xt,2,2,"mat-option",37,b),n()()()}if(l&2){let a=y();s(4),_("ngModel",a.facade.settings.units.positionFormat),s(),w(a.options.preferredValues.coords)}}function Ft(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function It(l,c){if(l&1){let a=W();i(0,"div",34)(1,"mat-form-field",35)(2,"mat-label"),d(3,"Prefer True / Magnetic values"),n(),i(4,"mat-select",118),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.units.headingAttribute,o)||(r.facade.settings.units.headingAttribute=o),m(o)}),p("selectionChange",function(){g(a);let o=y();return m(o.persistModel("headingAttribute"))}),S(5,Ft,2,2,"mat-option",37,b),n()()()}if(l&2){let a=y();s(4),_("ngModel",a.facade.settings.units.headingAttribute),s(),w(a.options.preferredValues.heading)}}function Bt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function At(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Nt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Rt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Ut(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Gt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function Zt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a positive number "),n())}function Ht(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a positive number "),n())}function Kt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a positive number "),n())}function zt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function qt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a number > 0 "),n())}function jt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function Xt(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function Yt(l,c){if(l&1&&(i(0,"mat-radio-button",37),D(1,"img",119),d(2),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),_e(`transform: scale(${a[0]})`),s(),k(" (",a[1],") ")}}function Jt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a value between -90 and 90 (max 9 decimals) "),n())}function Qt(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a value between -180 and 180 (max 9 decimals) "),n())}function $t(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function ei(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function ti(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function ii(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function ni(l,c){l&1&&(i(0,"mat-error"),d(1," Please enter a number >= 1. "),n())}function ai(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function oi(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function ri(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function si(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function li(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function di(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function gi(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function mi(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function ci(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function pi(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a),s(),C(a)}}function _i(l,c){if(l&1){let a=W();i(0,"button",120),p("click",function(){g(a),y();let o=M(497);return m(o.value="")}),i(1,"mat-icon"),d(2,"close"),n()()}}function fi(l,c){if(l&1&&(i(0,"mat-list-option",95),d(1),n()),l&2){let a=c.$implicit,e=y();h("selected",e.facade.settings.resources.paths.includes(a))("value",a),s(),k(" ",a," ")}}function ui(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a.id),s(),C(a.name)}}function hi(l,c){if(l&1){let a=W();i(0,"mat-tab",96)(1,"div",28)(2,"div",29)(3,"div",108)(4,"div",31),d(5,"RADAR SETTINGS"),n(),i(6,"mat-card",32)(7,"div",41)(8,"div",34)(9,"mat-form-field",121)(10,"mat-label"),d(11,"Radar Devices"),n(),i(12,"mat-select",122,19),u("ngModelChange",function(o){g(a);let r=y();return f(r.facade.settings.radars.deviceId,o)||(r.facade.settings.radars.deviceId=o),m(o)}),p("selectionChange",function(){g(a);let o=y();return m(o.persistModel())}),S(14,ui,2,2,"mat-option",37,Ct),n()()(),i(16,"div",34)(17,"button",123),p("click",function(){g(a);let o=y();return m(o.refreshRadars())}),i(18,"mat-icon"),d(19," refresh"),n(),d(20," REFRESH "),n()()()()()()()()}if(l&2){let a=y();s(12),h("disabled",!a.radarList().length||a.app.uiCtrl().radarLayer),_("ngModel",a.facade.settings.radars.deviceId),s(2),w(a.radarList())}}function Si(l,c){if(l&1&&(i(0,"mat-option",37),d(1),n()),l&2){let a=c.$implicit;h("value",a[0]),s(),C(a[1])}}function wi(l,c){l&1&&(i(0,"mat-error"),d(1," Value required. "),n())}var rt=class l{show={favourites:F(!1)};options;aisStateFilter={moored:!1,anchored:!1};formattedNumberModel={rangeCirclesDistance:1e3};unitsChangedSignal=F(0);radarList=F([]);saveOnClose=!1;facade=E(nt);myElement=E(pe);dialogRef=E(ue);wakeLock=E(He);s57=E(Ke);app=E(L);radarApi=E(qe);constructor(){this.options=new it,ce(()=>{this.unitsChangedSignal(),this.formatNumberModel()})}ngOnInit(){this.facade.refresh(),this.facade.settings.selections.aisState.forEach(c=>{c in this.aisStateFilter&&(this.aisStateFilter[c]=!0)}),this.refreshRadars()}refreshRadars(){this.radarApi.listRadars().then(c=>{this.radarList.set(c)}).catch(()=>{this.radarList.set([])})}formatNumberModel(){this.formattedNumberModel={rangeCirclesDistance:this.facade.settings.units.distance==="kilometer"?Math.floor(this.facade.settings.vessels.rangeCirclesDistance/1e3):Math.floor(Q.transform(this.facade.settings.vessels.rangeCirclesDistance,"m","naut-mile"))}}raiseChange(){this.app.alignUnitPrefs(this.app.serverConfig.unitPreferences()),this.unitsChangedSignal.update(c=>c+1)}handleClose(){this.saveOnClose&&this.persistModel(),this.dialogRef.close()}doWakelock(c){this.persistModel(),c?this.wakeLock.disable():this.wakeLock.enable()}doS57(c){this.facade.settings.map.s57Options.depthUnit=this.facade.settings.units.depth,c?this.parseNumber(c):this.persistModel(),this.s57.setOptions(this.facade.settings.map.s57Options)}onLineStyle(c,a){let e=this.facade.settings.vessels.selfLines[c];e&&(e.color=a.config.color,e.dash=a.config.dash,e.weight=a.config.weight,this.app.selfLines.update(o=>{let r=Object.assign({},o);return r[c]=a.lineStyle,r}),this.persistModel())}toggleFavourites(){this.show.favourites.update(c=>!c)}parseNumber(c,a){if(typeof c.model!="number"){c.reset(this.fallbackToDefault());return}!a&&c.model<0&&c.reset(Math.abs(c.model)),this.persistModel()}parseFormattedNumber(c,a){typeof c.model=="number"&&(!a&&c.model<0&&c.reset(Math.abs(c.model)),this.facade.settings.vessels.rangeCirclesDistance=this.facade.settings.units.distance==="kilometer"?Math.floor(this.formattedNumberModel.rangeCirclesDistance*1e3):Math.floor(Q.nauticalMilesToKm(this.formattedNumberModel.rangeCirclesDistance)*1e3),this.persistModel())}fallbackToDefault(){let c=ze();if(typeof this.facade.settings.map.s57Options.shallowDepth!="number")return c.map.s57Options.shallowDepth;if(typeof this.facade.settings.map.s57Options.safetyDepth!="number")return c.map.s57Options.safetyDepth;if(typeof this.facade.settings.map.s57Options.deepDepth!="number")return c.map.s57Options.deepDepth;if(typeof this.facade.fixedPosition[0]!="number"||typeof this.facade.fixedPosition[1]!="number")return 0;if(typeof this.facade.settings.course.arrivalCircle!="number")return c.course.arrivalCircle}persistModel(c){this.facade.applySettings(),this.facade.emitChangeEvent(c)}deferPersist(c){this.saveOnClose=!0,this.facade.emitChangeEvent(c)}onInstrumentApp(){this.persistModel("pluginInstruments"),this.facade.buildFavouritesList()}onPreferredPaths(c){c.save&&(this.facade.settings.units.preferredPaths=c.value,this.persistModel())}onFavSelected(c,a){this.facade.settings.display.plugins.favourites=a.selectedOptions.selected.map(e=>e.value),this.persistModel()}onAisStateFilter(){let c=[];for(let a in this.aisStateFilter)this.aisStateFilter[a]&&c.push(a);this.facade.settings.selections.aisState=[].concat(c),this.persistModel()}onResPathSelected(c){this.facade.settings.resources.paths=c.selectedOptions.selected.map(a=>a.value),this.facade.settings.resources.paths.forEach(a=>{a in this.facade.settings.selections.resourceSets||(this.facade.settings.selections.resourceSets[a]=[])}),this.persistModel()}clearAuthToken(){this.facade.clearToken()}renderSymbol(c){return Q.getSymbol(c)}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["settings-dialog"]],decls:592,vars:120,consts:[["serverprefs",""],["distunits",""],["s57shallowDepth","ngModel"],["s57safetyDepth","ngModel"],["s57deepDepth","ngModel"],["coursearrivalcircle","ngModel"],["courseautoadvance",""],["courseautoadvanceon",""],["vesselfixedlocationmode",""],["fixedlat","ngModel"],["fixedlon","ngModel"],["rangeCirclesDistance","ngModel"],["notesrootfilter",""],["respath",""],["skmaxradius",""],["videourl","ngModel"],["experiments",""],["instparams","ngModel"],["favs",""],["radarlist",""],[2,"background-color","transparent"],[1,"dialog-icon"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content","",2,"display","flex"],["dynamicHeight","false","mat-stretch-tabs","false","mat-align-tabs","start"],["label","Display"],[1,"theme-page","settings"],[1,"theme-panel"],["id","sectDisplay",1,"setting-group"],[1,"setting-group-title"],[1,"setting-card"],[1,"setting-card-row",2,"padding-bottom","10px"],[1,"setting-card-row-item"],[2,"width","100%"],["matTooltip","Dark Mode setting.",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["label","after","matTooltip","Auto-set using environment.mode value.",3,"ngModelChange","change","ngModel"],["matTooltip","Action button selection.",3,"ngModelChange","selectionChange","ngModel"],["label","after","matTooltip","Disable wake lock.",3,"ngModelChange","change","disabled","ngModel"],[1,"setting-card-row"],["matTooltip","Do not play sounds","label","after",3,"ngModelChange","change","ngModel"],["label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Period of time out of alarm state before re-triggering.",3,"ngModelChange","selectionChange","ngModel","disabled"],["label","Units"],["id","sectUnits",1,"setting-group"],["label","after","matTooltip","Use the unit preferences configured on the server.",3,"ngModelChange","change","disabled","ngModel"],[3,"ngModelChange","selectionChange","disabled","ngModel"],["title","Preferred Paths",3,"chosen"],["label","Map"],["id","sectMap",1,"setting-group"],[3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Add close button to popovers","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Double Click map to zoom","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Keep tiles visible when zooming past chart maxZoom","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Do not exit follow vessel when map is panned.","label","after",3,"ngModelChange","change","ngModel"],["placeholder","Graphicsstyle",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Boundaries",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Color Table",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Colors",3,"ngModelChange","selectionChange","ngModel"],["matInput","","type","number","required","","min","0",3,"ngModelChange","change","ngModel"],["matSuffix",""],["multiple","","placeholder","Layers",3,"ngModelChange","selectionChange","ngModel"],["label","Course"],["id","sectCourse",1,"setting-group"],["matTooltip","Select the trigger for advancing to next point.",3,"ngModelChange","selectionChange","disabled","ngModel"],["matTooltip","Period of time before destination is advanced to next waypoint.",3,"ngModelChange","selectionChange","disabled","ngModel"],["label","Vessels"],["id","sectVessels",1,"setting-group"],[3,"ngModelChange","change","ngModel"],["label","after","matTooltip","e.g. Building, Camp, etc.",3,"ngModelChange","change","ngModel"],["floatLabel","always"],["matInput","","type","number","required","","pattern","^-?([1-8]?[0-9])(\\.\\d{1,9})?$","min","-90","max","90",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","pattern","^-?(1[0-7]?[0-9]|[1-9]?[0-9])(\\.\\d{1,9})?$","min","-180","max","180",3,"ngModelChange","change","ngModel","disabled"],["matTooltip","Length of heading line.",3,"ngModelChange","selectionChange","ngModel"],[3,"selectionChange","color","dash","weight"],["matTooltip","Length of COG line.",3,"ngModelChange","selectionChange","ngModel"],[3,"ngModelChange","selectionChange","ngModel","disabled"],["label","after",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","min","1",3,"ngModelChange","change","ngModel","disabled"],["matTooltip","Select to source trail data from the server","label","after",3,"ngModelChange","change","disabled","ngModel"],["discrete","","tickInterval","1","min","1","max","96",3,"disabled"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["label","Resources"],["id","sectNotes",1,"setting-group"],[3,"valueChange","selectionChange","disabled","value"],["floatLabel","always",2,"width","100%"],["matInput","","type","text","placeholder","?radius=%note:radius%","matTooltip","Filter to apply when retrieving notes",3,"ngModelChange","change","ngModel"],["matSuffix","","mat-icon-button",""],["matTooltip","Allow group name editing.","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Require position information when adding notes to a group.","label","after",3,"ngModelChange","change","ngModel"],["id","sectResLayers",1,"setting-group"],[2,"font-style","italic"],["matTooltip","Select resource layers to show.",3,"selectionChange"],[3,"selected","value"],["label","Radar"],["label","Signal K"],["id","sectSKConnection",1,"setting-group"],[2,"font-size","smaller"],["matToolTip","Check to receive other vessel data","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive AtoN data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Check to receive aircraft data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive SaR data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive Weather / Meteo data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Only include AIS targets within this distance","matTooltipPosition","below",3,"ngModelChange","selectionChange","ngModel"],["mat-icon-button","","matTooltip","Clear Auth Token",3,"click"],["label","Experiments"],["id","sectExperiments",1,"setting-group"],["matInput","","type","text","required","","placeholder","Video stream URL","matTooltip","Enter URL of video stream",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Enable ALL experimental Features","label","after",3,"ngModelChange","change","ngModel"],["matTooltipPosition","right",3,"value","matTooltip"],["matInput","","type","text","placeholder","e.g. ?layout=mylayout","matTooltip","Enter parameters to pass to Instrument App",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Stop instrument app when hidden","label","after",3,"ngModelChange","change","ngModel"],["mat-raised-button","","matTooltip","Favourite Apps","label","after",3,"click"],[3,"selectionChange"],[3,"disabled","selected","value"],["matTooltip","Display position in this format",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Preferred value type for paths not in Preferred Paths above",3,"ngModelChange","selectionChange","ngModel"],["src","./assets/img/vessels/self.png"],["matSuffix","","mat-icon-button","",3,"click"],[2,"width","stretch"],["matToolTip","Select radar device","matTooltipPosition","below",3,"ngModelChange","selectionChange","disabled","ngModel"],["mat-raised-button","",3,"click"]],template:function(a,e){if(a&1){let o=W();i(0,"mat-toolbar",20)(1,"span",21)(2,"mat-icon"),d(3,"settings"),n()(),i(4,"span",22),d(5,"Settings"),n(),i(6,"span",23)(7,"button",24),p("click",function(){return g(o),m(e.handleClose())}),i(8,"mat-icon"),d(9,"close"),n()()()(),i(10,"div",25)(11,"mat-tab-group",26)(12,"mat-tab",27)(13,"div",28)(14,"div",29)(15,"div",30)(16,"div",31),d(17,"DISPLAY"),n(),i(18,"mat-card",32)(19,"mat-card-content")(20,"div",33)(21,"div",34)(22,"mat-form-field",35)(23,"mat-label"),d(24,"Dark Mode setting"),n(),i(25,"mat-select",36),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.darkMode.source,t)||(e.facade.settings.display.darkMode.source=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel("darkTheme"))}),S(26,yt,2,2,"mat-option",37,v),n()()(),i(28,"div",34)(29,"mat-checkbox",38),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.nightMode,t)||(e.facade.settings.display.nightMode=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(30," Auto-set Night Mode "),n()(),i(31,"div",34)(32,"mat-form-field",35)(33,"mat-label"),d(34,"Action Button"),n(),i(35,"mat-select",39),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.fab,t)||(e.facade.settings.display.fab=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(36,Mt,2,2,"mat-option",37,v),n()()(),i(38,"div",34)(39,"mat-checkbox",40),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.disableWakelock,t)||(e.facade.settings.display.disableWakelock=t),m(t)}),p("change",function(t){return g(o),m(e.doWakelock(t.checked))}),d(40," Allow Device to Sleep "),n()()()()(),D(41,"br"),i(42,"mat-card",32)(43,"mat-card-content"),V(44,bt,22,4,"div",41),V(45,Tt,10,0,"div",33),n()(),D(46,"br"),n(),i(47,"div",30)(48,"div",31),d(49,"SOUND"),n(),i(50,"mat-card",32)(51,"mat-card-content")(52,"div",33)(53,"div",34)(54,"mat-checkbox",42),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.muteSound,t)||(e.facade.settings.display.muteSound=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(55," Do not Play Sounds "),n()(),i(56,"div",34)(57,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.depthAlarm.enabled,t)||(e.facade.settings.display.depthAlarm.enabled=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(58," Show DEPTH Alarms "),n()(),i(59,"div",34)(60,"mat-form-field",35)(61,"mat-label"),d(62,"Alarm Smoothing Time"),n(),i(63,"mat-select",44),u("ngModelChange",function(t){return g(o),f(e.facade.settings.display.depthAlarm.smoothing,t)||(e.facade.settings.display.depthAlarm.smoothing=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(64,Dt,2,2,"mat-option",37,v),n()()()()()()()()()(),i(66,"mat-tab",45)(67,"div",28)(68,"div",29)(69,"div",46)(70,"div",31),d(71,"UNITS & VALUES"),n(),i(72,"mat-card",32)(73,"mat-card-content")(74,"div",33)(75,"div",34)(76,"fieldset")(77,"legend")(78,"mat-checkbox",47,0),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.useServerPrefs,t)||(e.facade.settings.units.useServerPrefs=t),m(t)}),p("change",function(){return g(o),e.raiseChange(),m(e.persistModel())}),d(80," Use Server Unit Preferences "),n()(),i(81,"div",33)(82,"div",34)(83,"mat-form-field",35)(84,"mat-label"),d(85,"Distance units"),n(),i(86,"mat-select",48,1),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.distance,t)||(e.facade.settings.units.distance=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.persistModel())}),S(88,Et,2,2,"mat-option",37,v),n()()(),i(90,"div",34)(91,"mat-form-field",35)(92,"mat-label"),d(93,"Depth units"),n(),i(94,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.depth,t)||(e.facade.settings.units.depth=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.doS57())}),S(95,Wt,2,2,"mat-option",37,v),n()()(),i(97,"div",34)(98,"mat-form-field",35)(99,"mat-label"),d(100,"Length units"),n(),i(101,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.length,t)||(e.facade.settings.units.length=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.persistModel())}),S(102,kt,2,2,"mat-option",37,v),n()()(),i(104,"div",34)(105,"mat-form-field",35)(106,"mat-label"),d(107,"Temperature units"),n(),i(108,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.temperature,t)||(e.facade.settings.units.temperature=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.persistModel())}),S(109,Pt,2,2,"mat-option",37,v),n()()(),i(111,"div",34)(112,"mat-form-field",35)(113,"mat-label"),d(114,"Speed units"),n(),i(115,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.units.speed,t)||(e.facade.settings.units.speed=t),m(t)}),p("selectionChange",function(){return g(o),e.raiseChange(),m(e.persistModel())}),S(116,Lt,2,2,"mat-option",37,v),n()()()()()()(),i(118,"div",33),V(119,Ot,7,1,"div",34),V(120,It,7,1,"div",34),i(121,"div",34)(122,"signalk-preferred-paths",49),p("chosen",function(t){return g(o),m(e.onPreferredPaths(t))}),n()()()()()()()()(),i(123,"mat-tab",50)(124,"div",28)(125,"div",29)(126,"div",51)(127,"div",31),d(128,"MAP"),n(),i(129,"mat-card")(130,"mat-card-content")(131,"div",33)(132,"div",34)(133,"mat-form-field",35)(134,"mat-label"),d(135,"Feature label zoom level"),n(),i(136,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.labelsMinZoom,t)||(e.facade.settings.map.labelsMinZoom=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(137,Bt,2,2,"mat-option",37,b),n()()(),i(139,"div",34)(140,"mat-form-field",35)(141,"mat-label"),d(142,"Offset Vessel Center"),n(),i(143,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.centerOffset,t)||(e.facade.settings.map.centerOffset=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(144,At,2,2,"mat-option",37,v),n()()(),i(146,"div",34)(147,"mat-checkbox",53),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.popoverMulti,t)||(e.facade.settings.map.popoverMulti=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(148," Popovers close with button "),n()(),i(149,"div",34)(150,"mat-checkbox",54),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.doubleClickZoom,t)||(e.facade.settings.map.doubleClickZoom=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(151," Double click to Zoom "),n()(),i(152,"div",34)(153,"mat-checkbox",55),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.overZoomTiles,t)||(e.facade.settings.map.overZoomTiles=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(154," Keep tiles visible on max zoom "),n()(),i(155,"div",34)(156,"mat-checkbox",56),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.lockMoveMap,t)||(e.facade.settings.map.lockMoveMap=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(157," Lock Follow Vessel "),n()()()()(),i(158,"div",31),d(159,"VECTOR CHARTS"),n(),i(160,"mat-card")(161,"mat-card-content")(162,"div",33)(163,"div",34)(164,"mat-form-field",35)(165,"mat-label"),d(166,"Graphics Style"),n(),i(167,"mat-select",57),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.graphicsStyle,t)||(e.facade.settings.map.s57Options.graphicsStyle=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(168,Nt,2,2,"mat-option",37,v),n()()(),i(170,"div",34)(171,"mat-form-field",35)(172,"mat-label"),d(173,"Boundaries"),n(),i(174,"mat-select",58),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.boundaries,t)||(e.facade.settings.map.s57Options.boundaries=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(175,Rt,2,2,"mat-option",37,v),n()()(),i(177,"div",34)(178,"mat-form-field",35)(179,"mat-label"),d(180,"Color Table (Requires refresh)"),n(),i(181,"mat-select",59),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.colorTable,t)||(e.facade.settings.map.s57Options.colorTable=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(182,Ut,2,2,"mat-option",37,v),n()()(),i(184,"div",34)(185,"mat-form-field",35)(186,"mat-label"),d(187,"Colors"),n(),i(188,"mat-select",60),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.colors,t)||(e.facade.settings.map.s57Options.colors=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(189,Gt,2,2,"mat-option",37,b),n()()()(),i(191,"div",33)(192,"div",34)(193,"mat-form-field",35)(194,"mat-label"),d(195,"Shallow depth"),n(),i(196,"input",61,2),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.shallowDepth,t)||(e.facade.settings.map.s57Options.shallowDepth=t),m(t)}),p("change",function(){g(o);let t=M(197);return m(e.doS57(t))}),n(),V(198,Zt,2,0,"mat-error"),i(199,"span",62),d(200,"m"),n()()(),i(201,"div",34)(202,"mat-form-field",35)(203,"mat-label"),d(204,"Safety depth"),n(),i(205,"input",61,3),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.safetyDepth,t)||(e.facade.settings.map.s57Options.safetyDepth=t),m(t)}),p("change",function(){g(o);let t=M(206);return m(e.doS57(t))}),n(),V(207,Ht,2,0,"mat-error"),i(208,"span",62),d(209,"m"),n()()(),i(210,"div",34)(211,"mat-form-field",35)(212,"mat-label"),d(213,"Deep depth"),n(),i(214,"input",61,4),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.deepDepth,t)||(e.facade.settings.map.s57Options.deepDepth=t),m(t)}),p("change",function(){g(o);let t=M(215);return m(e.doS57(t))}),n(),V(216,Kt,2,0,"mat-error"),i(217,"span",62),d(218,"m"),n()()(),i(219,"div",34)(220,"mat-form-field",35)(221,"mat-label"),d(222,"Layers"),n(),i(223,"mat-select",63),u("ngModelChange",function(t){return g(o),f(e.facade.settings.map.s57Options.otherLayers,t)||(e.facade.settings.map.s57Options.otherLayers=t),m(t)}),p("selectionChange",function(){return g(o),m(e.doS57())}),S(224,zt,2,2,"mat-option",37,v),n()()()()()()()()()(),i(226,"mat-tab",64)(227,"div",28)(228,"div",29)(229,"div",65)(230,"div",31),d(231,"COURSE"),n(),i(232,"mat-card",32)(233,"mat-card-content")(234,"div",33)(235,"div",34)(236,"mat-form-field",35)(237,"mat-label"),d(238,"Arrival Circle"),n(),i(239,"input",61,5),u("ngModelChange",function(t){return g(o),f(e.facade.settings.course.arrivalCircle,t)||(e.facade.settings.course.arrivalCircle=t),m(t)}),p("change",function(){g(o);let t=M(240);return m(e.parseNumber(t))}),n(),V(241,qt,2,0,"mat-error"),i(242,"span",62),d(243,"m"),n()()()(),i(244,"div",33)(245,"div",34)(246,"mat-checkbox",43,6),u("ngModelChange",function(t){return g(o),f(e.facade.settings.course.autoNextPointOnArrival,t)||(e.facade.settings.course.autoNextPointOnArrival=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(248," Auto-advance to next point on arrival "),n()()(),i(249,"div",33)(250,"div",34)(251,"mat-form-field",35)(252,"mat-label"),d(253,"Notification type to use"),n(),i(254,"mat-select",66,7),u("ngModelChange",function(t){return g(o),f(e.facade.settings.course.autoNextPointTrigger,t)||(e.facade.settings.course.autoNextPointTrigger=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(256,jt,2,2,"mat-option",37,b),n()()(),i(258,"div",34)(259,"mat-form-field",35)(260,"mat-label"),d(261,"Time to wait before advancing"),n(),i(262,"mat-select",67),u("ngModelChange",function(t){return g(o),f(e.facade.settings.course.autoNextPointDelay,t)||(e.facade.settings.course.autoNextPointDelay=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(263,Xt,2,2,"mat-option",37,v),n()()()()()()()()()(),i(265,"mat-tab",68)(266,"div",28)(267,"div",29)(268,"div",69)(269,"div",31),d(270,"VESSEL"),n(),i(271,"mat-card",32)(272,"mat-card-content")(273,"div",33)(274,"div",34)(275,"fieldset")(276,"legend"),d(277,"Vessel Icon Size"),n(),i(278,"div",33)(279,"div",34)(280,"mat-radio-group",70),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.iconScale,t)||(e.facade.settings.vessels.iconScale=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),S(281,Yt,3,4,"mat-radio-button",37,v),n()()()()()(),i(283,"div",34)(284,"fieldset")(285,"legend")(286,"mat-checkbox",71,8),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.fixedLocationMode,t)||(e.facade.settings.vessels.fixedLocationMode=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(288," Fixed Location Mode "),n()(),i(289,"div",33)(290,"div",34)(291,"mat-form-field",72)(292,"mat-label"),d(293,"Latitude"),n(),i(294,"input",73,9),u("ngModelChange",function(t){return g(o),f(e.facade.fixedPosition[1],t)||(e.facade.fixedPosition[1]=t),m(t)}),p("change",function(){g(o);let t=M(295);return m(e.parseNumber(t,!0))}),n(),V(296,Jt,2,0,"mat-error"),n(),i(297,"mat-form-field",72)(298,"mat-label"),d(299,"Longitude"),n(),i(300,"input",74,10),u("ngModelChange",function(t){return g(o),f(e.facade.fixedPosition[0],t)||(e.facade.fixedPosition[0]=t),m(t)}),p("change",function(){g(o);let t=M(301);return m(e.parseNumber(t,!0))}),n(),V(302,Qt,2,0,"mat-error"),n()()()()()()(),D(303,"br"),i(304,"mat-card",32)(305,"mat-card-content")(306,"div",34)(307,"fieldset")(308,"legend"),d(309,"Vessel Lines:"),n(),i(310,"div",33)(311,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.windVectors,t)||(e.facade.settings.vessels.windVectors=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(312," Display Wind Vectors "),n(),i(313,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.laylines,t)||(e.facade.settings.vessels.laylines=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(314," Display Laylines "),n()(),i(315,"div",33)(316,"div",34)(317,"fieldset")(318,"legend"),d(319,"Heading Line"),n(),i(320,"div",33)(321,"div",34)(322,"mat-form-field")(323,"mat-label"),d(324,"Heading Line Length"),n(),i(325,"mat-select",75),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.selfLines.heading.length,t)||(e.facade.settings.vessels.selfLines.heading.length=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(326,$t,2,2,"mat-option",37,v),n()()(),i(328,"div",34)(329,"linestyle-select",76),p("selectionChange",function(t){return g(o),m(e.onLineStyle("heading",t))}),n()()()()()(),i(330,"div",33)(331,"div",34)(332,"fieldset")(333,"legend"),d(334,"COG Line"),n(),i(335,"div",33)(336,"div",34)(337,"mat-form-field")(338,"mat-label"),d(339,"COG Line Length"),n(),i(340,"mat-select",77),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.selfLines.cog.length,t)||(e.facade.settings.vessels.selfLines.cog.length=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(341,ei,2,2,"mat-option",37,v),n()()(),i(343,"div",34)(344,"linestyle-select",76),p("selectionChange",function(t){return g(o),m(e.onLineStyle("cog",t))}),n()()()()()()()(),i(345,"div",34)(346,"fieldset")(347,"legend")(348,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.rangeCircles,t)||(e.facade.settings.vessels.rangeCircles=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(349," Display Range Circles "),n()(),i(350,"div",33)(351,"div",34)(352,"mat-form-field",35)(353,"mat-label"),d(354,"Number of Range Circles"),n(),i(355,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.rangeCircleCount,t)||(e.facade.settings.vessels.rangeCircleCount=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(356,ti,2,2,"mat-option",37,b),n()()(),i(358,"div",34)(359,"mat-form-field",35)(360,"mat-label"),d(361,"Minimum Zoom Level"),n(),i(362,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.rangeCircleMinZoom,t)||(e.facade.settings.vessels.rangeCircleMinZoom=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(363,ii,2,2,"mat-option",37,b),n()()()(),i(365,"div",33)(366,"div",34)(367,"mat-checkbox",79),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.rangeCirclesFixed,t)||(e.facade.settings.vessels.rangeCirclesFixed=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(368," Use Fixed Distance "),n()(),i(369,"div",34)(370,"mat-form-field",72)(371,"mat-label"),d(372),n(),i(373,"input",80,11),u("ngModelChange",function(t){return g(o),f(e.formattedNumberModel.rangeCirclesDistance,t)||(e.formattedNumberModel.rangeCirclesDistance=t),m(t)}),p("change",function(){g(o);let t=M(374);return m(e.parseFormattedNumber(t))}),n(),V(375,ni,2,0,"mat-error"),n()()()()()()(),D(376,"br"),i(377,"mat-card",32)(378,"mat-card-content")(379,"div",33)(380,"fieldset")(381,"legend")(382,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trail,t)||(e.facade.settings.vessels.trail=t),m(t)}),p("change",function(){return g(o),m(e.persistModel("vesselTrail"))}),d(383," Display Vessel Track "),n()(),i(384,"div",33)(385,"div",34)(386,"mat-checkbox",81),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailFromServer,t)||(e.facade.settings.vessels.trailFromServer=t),m(t)}),p("change",function(){return g(o),m(e.persistModel("trailFromServer"))}),d(387," Get Track from server "),n(),d(388," \xA0\xA0 "),i(389,"mat-slider",82)(390,"input",83),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailDuration,t)||(e.facade.settings.vessels.trailDuration=t),m(t)}),p("valueChange",function(){return g(o),m(e.deferPersist())}),n()(),d(391),n()(),i(392,"div",33)(393,"div",34)(394,"mat-form-field",35)(395,"mat-label"),d(396,"Resolution: Last hour"),n(),i(397,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailResolution.lastHour,t)||(e.facade.settings.vessels.trailResolution.lastHour=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(398,ai,2,2,"mat-option",37,v),n()()(),i(400,"div",34)(401,"mat-form-field",35)(402,"mat-label"),d(403,"Resolution: 1 hr -> 24 hrs"),n(),i(404,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailResolution.next23,t)||(e.facade.settings.vessels.trailResolution.next23=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(405,oi,2,2,"mat-option",37,v),n()()(),i(407,"div",34)(408,"mat-form-field",35)(409,"mat-label"),d(410,"Resolution: > 24 hrs"),n(),i(411,"mat-select",78),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.trailResolution.beyond24,t)||(e.facade.settings.vessels.trailResolution.beyond24=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(412,ri,2,2,"mat-option",37,v),n()()()()()()()(),i(414,"div",31),d(415,"OTHER VESSELS"),n(),i(416,"mat-card",32)(417,"mat-card-content")(418,"div",33)(419,"div",34)(420,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisShowTrack,t)||(e.facade.settings.vessels.aisShowTrack=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(421," Show Track "),n(),d(422," \xA0 "),i(423,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.aisStateFilter.moored,t)||(e.aisStateFilter.moored=t),m(t)}),p("change",function(){return g(o),m(e.onAisStateFilter())}),d(424," Hide Moored "),n(),d(425," \xA0 "),i(426,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.aisStateFilter.anchored,t)||(e.aisStateFilter.anchored=t),m(t)}),p("change",function(){return g(o),m(e.onAisStateFilter())}),d(427," Hide Anchored "),n()()(),i(428,"div",33)(429,"div",34)(430,"mat-form-field",35)(431,"mat-label"),d(432,"Mark AIS target inactive after"),n(),i(433,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisStaleAge,t)||(e.facade.settings.vessels.aisStaleAge=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(434,si,2,2,"mat-option",37,v),n()()(),i(436,"div",34)(437,"mat-form-field",35)(438,"mat-label"),d(439,"Remove AIS target after"),n(),i(440,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisMaxAge,t)||(e.facade.settings.vessels.aisMaxAge=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(441,li,2,2,"mat-option",37,v),n()()(),i(443,"div",34)(444,"mat-form-field",35)(445,"mat-label"),d(446,"Wind Vector Value"),n(),i(447,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisWindApparent,t)||(e.facade.settings.vessels.aisWindApparent=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(448,di,2,2,"mat-option",37,v),n()()(),i(450,"div",34)(451,"mat-form-field",35)(452,"mat-label"),d(453,"Wind / Track Zoom Level"),n(),i(454,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisWindMinZoom,t)||(e.facade.settings.vessels.aisWindMinZoom=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(455,gi,2,2,"mat-option",37,b),n()()(),i(457,"div",34)(458,"mat-form-field",35)(459,"mat-label"),d(460,"COG Line"),n(),i(461,"mat-select",52),u("ngModelChange",function(t){return g(o),f(e.facade.settings.vessels.aisCogLine,t)||(e.facade.settings.vessels.aisCogLine=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(462,mi,2,2,"mat-option",37,v),n()()()()()()()()()(),i(464,"mat-tab",84)(465,"div",28)(466,"div",29)(467,"div",85)(468,"div",31),d(469,"NOTES"),n(),i(470,"mat-card",32)(471,"mat-card-content")(472,"div",41)(473,"div",34)(474,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.ui.showNotes,t)||(e.facade.settings.ui.showNotes=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(475," Display Notes on Map "),n()(),i(476,"div",34)(477,"mat-form-field",35)(478,"mat-label"),d(479,"Notes Zoom Level"),n(),i(480,"mat-select",86),u("valueChange",function(t){return g(o),f(e.facade.settings.resources.notes.minZoom,t)||(e.facade.settings.resources.notes.minZoom=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel("fetchNotes"))}),S(481,ci,2,2,"mat-option",37,b),n()()()(),i(483,"div",41)(484,"div",34)(485,"mat-form-field",35)(486,"mat-label"),d(487),n(),i(488,"mat-select",48),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.notes.getRadius,t)||(e.facade.settings.resources.notes.getRadius=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel("fetchNotes"))}),S(489,pi,2,2,"mat-option",37,b),n()()()(),i(491,"div",41)(492,"div",34)(493,"mat-form-field",87)(494,"mat-label"),d(495,"Notes fetch filter:"),n(),i(496,"input",88,12),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.notes.rootFilter,t)||(e.facade.settings.resources.notes.rootFilter=t),m(t)}),p("change",function(){return g(o),m(e.persistModel("fetchNotes"))}),n(),V(498,_i,3,0,"button",89),n()()(),i(499,"div",41)(500,"div",34)(501,"mat-checkbox",90),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.notes.groupNameEdit,t)||(e.facade.settings.resources.notes.groupNameEdit=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(502," Edit Group Names "),n()(),i(503,"div",34)(504,"mat-checkbox",91),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.notes.groupRequiresPosition,t)||(e.facade.settings.resources.notes.groupRequiresPosition=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(505," Position Group Note "),n()()()()()(),i(506,"div",92)(507,"div",31),d(508,"CUSTOM RESOURCES"),n(),i(509,"mat-card",32)(510,"mat-card-content")(511,"div",41)(512,"div",34)(513,"div",93),d(514," Select custom resource types (./resources/<name>) "),n(),i(515,"mat-selection-list",94,13),p("selectionChange",function(){g(o);let t=M(516);return m(e.onResPathSelected(t))}),S(517,fi,2,3,"mat-list-option",95,b),n()()()()()()()()(),V(519,hi,21,2,"mat-tab",96),i(520,"mat-tab",97)(521,"div",28)(522,"div",29)(523,"div",98)(524,"div",31),d(525,"SIGNAL K: CONNECTION"),n(),i(526,"mat-card",32)(527,"mat-card-content")(528,"div",41)(529,"fieldset")(530,"legend"),d(531,"Filter Stream data:"),n(),i(532,"span",99),d(533," Check to include Signal K schema groups on display."),D(534,"br"),i(535,"i"),d(536,"Use to manage display performance."),n()(),i(537,"div",34)(538,"mat-checkbox",100),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.vessels,t)||(e.facade.settings.signalk.vessels=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(539," Vessels (other than Self) "),n()(),i(540,"div",34)(541,"mat-checkbox",101),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.atons,t)||(e.facade.settings.signalk.atons=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(542," Aids to Navigation (AtoN) "),n()(),i(543,"div",34)(544,"mat-checkbox",102),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.aircraft,t)||(e.facade.settings.signalk.aircraft=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(545," Aircraft "),n()(),i(546,"div",34)(547,"mat-checkbox",103),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.sar,t)||(e.facade.settings.signalk.sar=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(548," Search and Rescue (SaR) "),n()(),i(549,"div",34)(550,"mat-checkbox",104),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.meteo,t)||(e.facade.settings.signalk.meteo=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(551," Weather (Meteo) "),n()(),i(552,"div",34),D(553,"br"),i(554,"mat-form-field",35)(555,"mat-label"),d(556,"Max. distance from vessel"),n(),i(557,"mat-select",105,14),u("ngModelChange",function(t){return g(o),f(e.facade.settings.signalk.maxRadius,t)||(e.facade.settings.signalk.maxRadius=t),m(t)}),p("selectionChange",function(){return g(o),m(e.persistModel())}),S(559,Si,2,2,"mat-option",37,v),n()()()()(),i(561,"div",41)(562,"div",34)(563,"button",106),p("click",function(){return g(o),m(e.clearAuthToken())}),i(564,"mat-icon"),d(565,"key_off"),n()()()()()()()()()(),i(566,"mat-tab",107)(567,"div",28)(568,"div",29)(569,"div",108)(570,"div",31),d(571,"EXPERIMENTS"),n(),i(572,"mat-card",32)(573,"mat-card-content")(574,"div",41)(575,"div",34)(576,"mat-checkbox",43),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.video.enable,t)||(e.facade.settings.resources.video.enable=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),d(577," Enable Video "),n()(),i(578,"div",34)(579,"mat-form-field",87)(580,"mat-label"),d(581,"url:"),n(),i(582,"input",109,15),u("ngModelChange",function(t){return g(o),f(e.facade.settings.resources.video.url,t)||(e.facade.settings.resources.video.url=t),m(t)}),p("change",function(){return g(o),m(e.persistModel("videoUrl"))}),n(),V(584,wi,2,0,"mat-error"),n()()(),i(585,"div",41)(586,"div",34)(587,"mat-checkbox",110,16),u("ngModelChange",function(t){return g(o),f(e.facade.settings.experiments,t)||(e.facade.settings.experiments=t),m(t)}),p("change",function(){return g(o),m(e.persistModel())}),i(589,"mat-icon"),d(590,"science"),n(),d(591," Experimental Features "),n()()()()()()()()()()()}if(a&2){let o=M(87),r=M(197),t=M(206),ne=M(215),ae=M(240),le=M(247),de=M(287),oe=M(295),re=M(301),se=M(374),st=M(497),lt=M(583);s(25),_("ngModel",e.facade.settings.display.darkMode.source),s(),w(e.options.darkMode),s(3),_("ngModel",e.facade.settings.display.nightMode),s(6),_("ngModel",e.facade.settings.display.fab),s(),w(e.options.buttons.fab),s(3),h("disabled",!e.wakeLock.isAvailable),_("ngModel",e.facade.settings.display.disableWakelock),s(5),T(e.facade.applicationList.length>1?44:-1),s(),T(e.show.favourites()?45:-1),s(9),_("ngModel",e.facade.settings.display.muteSound),s(3),_("ngModel",e.facade.settings.display.depthAlarm.enabled),s(6),_("ngModel",e.facade.settings.display.depthAlarm.smoothing),h("disabled",!e.facade.settings.display.depthAlarm.enabled),s(),w(e.options.alarm.smoothing),s(14),h("disabled",!e.app.serverConfig.unitPreferences()),_("ngModel",e.facade.settings.units.useServerPrefs),s(8),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.distance),s(2),w(e.options.availableUnits.distance),s(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.depth),s(),w(e.options.availableUnits.depth),s(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.length),s(),w(e.options.availableUnits.length),s(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.temperature),s(),w(e.options.availableUnits.temperature),s(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.speed),s(),w(e.options.availableUnits.speed),s(3),T(e.options.preferredValues.coords.length!==0?119:-1),s(),T(e.options.preferredValues.heading.length!==0?120:-1),s(16),_("ngModel",e.facade.settings.map.labelsMinZoom),s(),w(e.options.zoomLevels),s(6),_("ngModel",e.facade.settings.map.centerOffset),s(),w(e.options.map.centerOffset),s(3),_("ngModel",e.facade.settings.map.popoverMulti),s(3),_("ngModel",e.facade.settings.map.doubleClickZoom),s(3),_("ngModel",e.facade.settings.map.overZoomTiles),s(3),_("ngModel",e.facade.settings.map.lockMoveMap),s(11),_("ngModel",e.facade.settings.map.s57Options.graphicsStyle),s(),w(e.options.map.s57.graphicsStyle),s(6),_("ngModel",e.facade.settings.map.s57Options.boundaries),s(),w(e.options.map.s57.boundaries),s(6),_("ngModel",e.facade.settings.map.s57Options.colorTable),s(),w(e.options.map.s57.colorTables),s(6),_("ngModel",e.facade.settings.map.s57Options.colors),s(),w(e.options.map.s57.colors),s(7),_("ngModel",e.facade.settings.map.s57Options.shallowDepth),s(2),T(r.invalid&&(r.dirty||r.touched)?198:-1),s(7),_("ngModel",e.facade.settings.map.s57Options.safetyDepth),s(2),T(t.invalid&&(t.dirty||t.touched)?207:-1),s(7),_("ngModel",e.facade.settings.map.s57Options.deepDepth),s(2),T(ne.invalid&&(ne.dirty||ne.touched)?216:-1),s(7),_("ngModel",e.facade.settings.map.s57Options.otherLayers),s(),w(e.options.map.s57.otherLayers),s(15),_("ngModel",e.facade.settings.course.arrivalCircle),s(2),T(ae.invalid&&(ae.dirty||ae.touched)?241:-1),s(5),_("ngModel",e.facade.settings.course.autoNextPointOnArrival),s(8),h("disabled",le.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointTrigger),s(2),w(e.options.course.nextPointTrigger),s(6),h("disabled",le.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointDelay),s(),w(e.options.course.nextPointDelay),s(17),_("ngModel",e.facade.settings.vessels.iconScale),s(),w(e.options.vessel.selfIconScale),s(5),_("ngModel",e.facade.settings.vessels.fixedLocationMode),s(8),_("ngModel",e.facade.fixedPosition[1]),h("disabled",!de.checked),s(2),T(oe.invalid&&(oe.dirty||oe.touched)?296:-1),s(4),_("ngModel",e.facade.fixedPosition[0]),h("disabled",!de.checked),s(2),T(re.invalid&&(re.dirty||re.touched)?302:-1),s(9),_("ngModel",e.facade.settings.vessels.windVectors),s(2),_("ngModel",e.facade.settings.vessels.laylines),s(12),_("ngModel",e.facade.settings.vessels.selfLines.heading.length),s(),w(e.options.vessel.headingLine),s(3),h("color",e.facade.settings.vessels.selfLines.heading.color)("dash",e.facade.settings.vessels.selfLines.heading.dash)("weight",e.facade.settings.vessels.selfLines.heading.weight),s(11),_("ngModel",e.facade.settings.vessels.selfLines.cog.length),s(),w(e.options.vessel.cogLine),s(3),h("color",e.facade.settings.vessels.selfLines.cog.color)("dash",e.facade.settings.vessels.selfLines.cog.dash)("weight",e.facade.settings.vessels.selfLines.cog.weight),s(4),_("ngModel",e.facade.settings.vessels.rangeCircles),s(7),_("ngModel",e.facade.settings.vessels.rangeCircleCount),h("disabled",!e.facade.settings.vessels.rangeCircles),s(),w(e.options.rangeCircles.count),s(6),_("ngModel",e.facade.settings.vessels.rangeCircleMinZoom),h("disabled",!e.facade.settings.vessels.rangeCircles),s(),w(e.options.rangeCircles.zoomLevels),s(4),_("ngModel",e.facade.settings.vessels.rangeCirclesFixed),h("disabled",!e.facade.settings.vessels.rangeCircles),s(5),k(" Distance between circles (",e.renderSymbol(e.facade.settings.units.distance),") "),s(),_("ngModel",e.formattedNumberModel.rangeCirclesDistance),h("disabled",!e.facade.settings.vessels.rangeCircles||!e.facade.settings.vessels.rangeCirclesFixed),s(2),T(se.invalid&&(se.dirty||se.touched)?375:-1),s(7),_("ngModel",e.facade.settings.vessels.trail),s(4),h("disabled",!e.facade.settings.vessels.trail),_("ngModel",e.facade.settings.vessels.trailFromServer),s(3),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),s(),_("ngModel",e.facade.settings.vessels.trailDuration),s(),k(" Length (",e.facade.settings.vessels.trailDuration," hrs) "),s(6),_("ngModel",e.facade.settings.vessels.trailResolution.lastHour),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),s(),w(e.options.trailIntervals.highResolution),s(6),_("ngModel",e.facade.settings.vessels.trailResolution.next23),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),s(),w(e.options.trailIntervals.highResolution),s(6),_("ngModel",e.facade.settings.vessels.trailResolution.beyond24),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),s(),w(e.options.trailIntervals.mediumResolution),s(8),_("ngModel",e.facade.settings.vessels.aisShowTrack),s(3),_("ngModel",e.aisStateFilter.moored),s(3),_("ngModel",e.aisStateFilter.anchored),s(7),_("ngModel",e.facade.settings.vessels.aisStaleAge),s(),w(e.options.vessel.aisTimeouts),s(6),_("ngModel",e.facade.settings.vessels.aisMaxAge),s(),w(e.options.vessel.aisTimeouts),s(6),_("ngModel",e.facade.settings.vessels.aisWindApparent),s(),w(e.options.preferredValues.wind),s(6),_("ngModel",e.facade.settings.vessels.aisWindMinZoom),s(),w(e.options.zoomLevels),s(6),_("ngModel",e.facade.settings.vessels.aisCogLine),s(),w(e.options.vessel.aisCogLine),s(12),_("ngModel",e.facade.settings.ui.showNotes),s(6),h("disabled",!e.facade.settings.ui.showNotes),_("value",e.facade.settings.resources.notes.minZoom),s(),w(e.options.zoomLevels),s(6),C("Fetch Notes radius: ("+e.options.availableUnits.distance.get(o.value)+")"),s(),h("disabled",!e.facade.settings.ui.showNotes),_("ngModel",e.facade.settings.resources.notes.getRadius),s(),w(e.options.resources.noteRadius),s(7),_("ngModel",e.facade.settings.resources.notes.rootFilter),s(2),T(st.value?498:-1),s(3),_("ngModel",e.facade.settings.resources.notes.groupNameEdit),s(3),_("ngModel",e.facade.settings.resources.notes.groupRequiresPosition),s(13),w(e.facade.resourcePathList),s(2),T(e.app.featureFlags().radarApi?519:-1),s(19),_("ngModel",e.facade.settings.signalk.vessels),s(3),_("ngModel",e.facade.settings.signalk.atons),s(3),_("ngModel",e.facade.settings.signalk.aircraft),s(3),_("ngModel",e.facade.settings.signalk.sar),s(3),_("ngModel",e.facade.settings.signalk.meteo),s(7),_("ngModel",e.facade.settings.signalk.maxRadius),s(2),w(e.options.vessel.aisMaxRadius),s(17),_("ngModel",e.facade.settings.resources.video.enable),s(6),h("disabled",!e.facade.settings.resources.video.enable),_("ngModel",e.facade.settings.resources.video.url),s(2),T(lt.invalid?584:-1),s(3),_("ngModel",e.facade.settings.experiments)}},dependencies:[Z,R,ve,U,Te,De,Ve,be,G,Se,he,Be,Ie,ee,Qe,$,Fe,xe,Oe,ke,We,Ee,Me,A,Ce,we,N,ye,H,Le,tt,$e,et,je,J,z,K,Ae,Ne,Y,X,Re,j,q,Pe,Ze,Ge,Je,Xe,Ye,ie,te],styles:["[_nghost-%COMP%] .mat-dialog-content{padding:0 4px}.settings[_ngcontent-%COMP%] .setting-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}.setting-card-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.settings[_ngcontent-%COMP%] .setting-card-row-item[_ngcontent-%COMP%]{padding-right:15px;flex:1 1 auto}@media only screen and (max-width:599px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}@media only screen and (min-width:600px)and (max-width:959px),screen and (min-width:960px)and (max-width:1279px),screen and (min-width:1280px)and (max-width:1919px),screen and (min-width:1920px)and (max-width:5000px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{rt as SettingsDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ea as a}from"./chunk-B6MVZV6D.js";import"./chunk-TQPGRJVE.js";import"./chunk-QI5ICQLG.js";import"./chunk-QPQHN5VS.js";import"./chunk-EQVTEUXC.js";export{a as GeoJSONImportDialog};
|