@signalk/freeboard-sk 3.4.0-beta.5 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/assets/features-corpus.json +1 -1
- package/public/{chunk-ZOYZPZ4U.js → chunk-2NWIJAJ6.js} +1 -1
- package/public/{chunk-JZS3AKJD.js → chunk-3MRBMOCG.js} +1 -1
- package/public/{chunk-XXAI6DVG.js → chunk-4BCNBZTG.js} +1 -1
- package/public/{chunk-NYI2HXPA.js → chunk-6JTVABJT.js} +112 -112
- package/public/{chunk-B4EW6D7N.js → chunk-7VECY4HP.js} +1 -1
- package/public/{chunk-QJB4YAYO.js → chunk-QYBMIGVH.js} +1 -1
- package/public/{chunk-IOTVEKD7.js → chunk-RH4MSKTX.js} +1 -1
- package/public/{chunk-JNN2ADIF.js → chunk-YH3OTY6F.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-IQMJPUUB.js → main-WXGVUWZE.js} +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_b as a}from"./chunk-
|
|
1
|
+
import{_b as a}from"./chunk-6JTVABJT.js";import"./chunk-YBVURHD5.js";import"./chunk-CI2BDMX2.js";import"./chunk-DSUCHYD7.js";import"./chunk-MZ3YWFFB.js";import"./chunk-SIFYI3HU.js";import"./chunk-GJZ7P5CR.js";import"./chunk-RENDTMDT.js";import"./chunk-DN6IX7CO.js";import"./chunk-ZQSUYMH2.js";import"./chunk-DC5AFSD6.js";import"./chunk-2QKJQDG4.js";import"./chunk-LEEF5WZZ.js";import"./chunk-7FANVIZX.js";import"./chunk-K4EGDHPT.js";import"./chunk-RYULE37H.js";import"./chunk-R6ABX6RX.js";import"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";export{a as GeoJSONImportDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ba as pt,Bb as ut,H as nt,I as at,Sb as ft,Tb as ht,U as ot,Ub as yt,W as rt,Wb as St,Xb as Ct,aa as st,ab as _t,ac as wt,b as We,ba as lt,bb as ee,bc as L,c as Ve,ca as dt,cb as te,da as gt,e as U,f as ke,h as I,j as Pe,k as Le,r as tt,s as ce,ta as mt,x as it,za as ct}from"./chunk-NYI2HXPA.js";import{a as $e,b as et,c as $}from"./chunk-YBVURHD5.js";import"./chunk-CI2BDMX2.js";import{a as qe,h as je,j as Xe,k as Ye}from"./chunk-DSUCHYD7.js";import{b as Fe,e as Ne,j as Re,k as Ue,l as Ge}from"./chunk-MZ3YWFFB.js";import{a as Y,b as J,c as Je,d as Q}from"./chunk-SIFYI3HU.js";import{a as Qe}from"./chunk-GJZ7P5CR.js";import"./chunk-RENDTMDT.js";import"./chunk-DN6IX7CO.js";import"./chunk-ZQSUYMH2.js";import{b as K,c as He,d as ze,f as Ze,i as q,j as Ke,n as j,o as X}from"./chunk-DC5AFSD6.js";import{$a as R,Fa as Me,Ja as ve,La as be,Na as Te,Oa as N,Wa as De,Ya as Ee,bb as G,gb as H,jb as z,kb as xe,nb as Oe,ob as Ie,pb as Ae,qb as Be,rb as Z}from"./chunk-2QKJQDG4.js";import"./chunk-LEEF5WZZ.js";import"./chunk-7FANVIZX.js";import"./chunk-K4EGDHPT.js";import"./chunk-RYULE37H.js";import{Bc as we,Cc as F,Db as V,Hb as p,Jb as w,Ka as Se,Oa as o,Tb as M,Wb as Ce,X as E,Yb as l,Zb as C,_a as P,_b as k,ba as m,bc as _,ca as c,cc as u,da as x,dc as f,ea as ue,ia as fe,la as A,mb as O,na as he,nb as b,ob as T,qb as D,ra as ye,rb as y,sb as S,tb as h,ub as n,vb as i,wb as W,xc as B}from"./chunk-R6ABX6RX.js";import"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";var kt=(d,s)=>s[0];function Pt(d,s){if(d&1&&(n(0,"mat-option",8),x(),n(1,"svg",6),W(2,"line",7),i()()),d&2){let a=s.$implicit;h("value",a),o(2),O("stroke-width",a)}}function Lt(d,s){if(d&1&&(n(0,"mat-option",8),x(),n(1,"svg",6),W(2,"line",9),i()()),d&2){let a=s.$implicit;h("value",a[0]),o(2),O("stroke-dasharray",a[1])}}var ie=class d{color=F("#ff0000");dash=F("none");weight=F(1);_color=B(()=>this.color());_dash=B(()=>this.dash());_weight=B(()=>this.weight());selectionChange=we();app=E(L);line={dashArrays:this.app.lineDashMap,weights:[1,2,3,4,5]};constructor(){}ngOnInit(){}onSelectChange(){let s=this.app.formatLineDashArray(this._dash());this.selectionChange.emit({lineStyle:{fill:{color:this._color()},stroke:{color:this._color(),width:this._weight(),lineDash:s}},config:{color:this._color(),weight:this._weight(),dash:this._dash()}})}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,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&&(n(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),l(3,"Color"),i(),n(4,"input",2),f("ngModelChange",function(r){return u(e._color,r)||(e._color=r),r}),p("change",function(){return e.onSelectChange()}),i()(),n(5,"mat-form-field",3)(6,"mat-label"),l(7,"Weight"),i(),n(8,"mat-select",4),f("ngModelChange",function(r){return u(e._weight,r)||(e._weight=r),r}),p("selectionChange",function(){return e.onSelectChange()}),n(9,"mat-select-trigger")(10,"div",5),x(),n(11,"svg",6),W(12,"line",7),i()()(),y(13,Pt,3,2,"mat-option",8,D),i()(),ue(),n(15,"mat-form-field",3)(16,"mat-label"),l(17,"Style"),i(),n(18,"mat-select",4),f("ngModelChange",function(r){return u(e._dash,r)||(e._dash=r),r}),p("selectionChange",function(){return e.onSelectChange()}),n(19,"mat-select-trigger")(20,"div",5),x(),n(21,"svg",6),W(22,"line",9),i()()(),y(23,Lt,3,2,"mat-option",8,kt),i()()()),a&2&&(o(4),_("ngModel",e._color),o(4),_("ngModel",e._weight),o(4),O("stroke-width",e._weight()),o(),S(e.line.weights),o(5),_("ngModel",e._dash),o(4),O("stroke-dasharray",e.line.dashArrays.get(e._dash())),o(),S(e.line.dashArrays))},dependencies:[Z,G,H,z,N,R,$,X,j,q,K,Q,J,Je,Y],encapsulation:2})};var ne="auto";var Ot=(d,s)=>s[0];function It(d,s){if(d&1){let a=V();n(0,"div",4)(1,"mat-radio-button",5,0),p("change",function(){m(a);let g=M(2),r=w().$implicit,t=w();return r[1].current=g.value,c(t.save(!0))}),l(3),i()()}if(d&2){let a=s.$implicit,e=w().$implicit,g=w();o(),h("name",e[0])("value",a)("checked",a===e[1].current),o(2),k(" ",g.pathLabel(a)," ")}}function At(d,s){if(d&1&&(n(0,"div",2)(1,"div",3)(2,"div"),l(3),i()(),n(4,"div"),y(5,It,4,4,"div",4,D),i()()),d&2){let a=s.$implicit;o(3),C(a[1].name),o(2),S(a[1].available)}}var ae=class d{title="";chosen=new fe;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:[ne,"navigation.courseOverGroundTrue","navigation.courseOverGroundMagnetic","navigation.headingTrue","navigation.headingMagnetic"],available:[],current:""}};pathChoicesArray=Object.entries(this.pathChoices);availPaths;app=E(L);constructor(){}pathLabel(s){return s===ne?"Automatic":s.split(".").slice(-1)[0]}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(g=>{(g===ne||this.availPaths.has(g))&&e.available.push(g)}),e.available.length===0&&e.available.push(e.choices[0])})}save(s){let a={};Object.entries(this.pathChoices).forEach(e=>{a[e[0]]=e[1].current}),this.chosen.emit({save:s,value:a})}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,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&&(n(0,"fieldset")(1,"legend",1),l(2),i(),n(3,"div"),y(4,At,7,1,"div",2,Ot),i()()),a&2&&(o(2),C(e.title),o(2),S(e.pathChoicesArray))},dependencies:[te,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=(d,s)=>s[0],Bt=(d,s)=>s.id;function Ft(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Nt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Rt(d,s){if(d&1&&(n(0,"mat-option",136),l(1),i()),d&2){let a=s.$implicit;h("value",a.url)("matTooltip",a.description),o(),k(" ",a.name," ")}}function Ut(d,s){if(d&1){let a=V();n(0,"div",47)(1,"div",38)(2,"mat-form-field",39)(3,"mat-label"),l(4,"Select Instruments App"),i(),n(5,"mat-select",65),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.instruments,g)||(r.facade.settings.display.plugins.instruments=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.onInstrumentApp())}),y(6,Rt,2,3,"mat-option",136,D),i()()(),n(8,"div",38)(9,"mat-form-field",53)(10,"mat-label"),l(11,"Parameters"),i(),n(12,"input",137,21),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.parameters,g)||(r.facade.settings.display.plugins.parameters=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel("pluginParameters"))}),i()()(),n(14,"div",38)(15,"mat-checkbox",138),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.startOnOpen,g)||(r.facade.settings.display.plugins.startOnOpen=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel("pluginStartOnOpen"))}),l(16," Halt App on hide "),i()(),n(17,"div",38)(18,"button",139),p("click",function(){m(a);let g=w();return c(g.toggleFavourites())}),n(19,"mat-icon"),l(20,"star"),i(),l(21," FAVOURITES "),i()()()}if(d&2){let a=w();o(5),_("ngModel",a.facade.settings.display.plugins.instruments),o(),S(a.facade.applicationList),o(6),h("disabled",a.facade.settings.display.plugins.instruments===null),_("ngModel",a.facade.settings.display.plugins.parameters),o(3),_("ngModel",a.facade.settings.display.plugins.startOnOpen)}}function Gt(d,s){if(d&1&&(n(0,"mat-list-option",141),l(1),i()),d&2){let a=s.$implicit,e=w(2);h("disabled",a.url==e.facade.settings.display.plugins.instruments)("selected",a.url!==null&&e.facade.settings.display.plugins.favourites.includes(a.url))("value",a.url),o(),k(" ",a.name," ")}}function Ht(d,s){if(d&1){let a=V();n(0,"div",37)(1,"div",38)(2,"div",118),W(3,"br"),l(4,"Select Favourite Apps: "),i(),W(5,"mat-divider"),n(6,"mat-selection-list",140,22),p("selectionChange",function(g){m(a);let r=M(7),t=w();return c(t.onFavSelected(g,r))}),y(8,Gt,2,4,"mat-list-option",141,D),i()()()}if(d&2){let a=w();o(8),S(a.facade.favouritesList)}}function zt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Zt(d,s){d&1&&(n(0,"mat-error"),l(1,"Please enter a number >= 0"),i())}function Kt(d,s){d&1&&(n(0,"mat-error"),l(1,"Please enter a number >= 1"),i())}function qt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function jt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Xt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Yt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Jt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Qt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function $t(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ei(d,s){if(d&1){let a=V();n(0,"div",38)(1,"mat-form-field",39)(2,"mat-label"),l(3,"Position display format"),i(),n(4,"mat-select",142),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.units.positionFormat,g)||(r.facade.settings.units.positionFormat=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel())}),y(5,$t,2,2,"mat-option",41,D),i()()()}if(d&2){let a=w();o(4),_("ngModel",a.facade.settings.units.positionFormat),o(),S(a.options.preferredValues.coords)}}function ti(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ii(d,s){if(d&1){let a=V();n(0,"div",38)(1,"mat-form-field",39)(2,"mat-label"),l(3,"Prefer True / Magnetic values"),i(),n(4,"mat-select",143),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.units.headingAttribute,g)||(r.facade.settings.units.headingAttribute=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel("headingAttribute"))}),y(5,ti,2,2,"mat-option",41,D),i()()()}if(d&2){let a=w();o(4),_("ngModel",a.facade.settings.units.headingAttribute),o(),S(a.options.preferredValues.heading)}}function ni(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function ai(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function oi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ri(d,s){if(d&1){let a=V();n(0,"mat-form-field",39)(1,"mat-label"),l(2,"Resume Following After"),i(),n(3,"mat-select",144),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.map.refollowDelay,g)||(r.facade.settings.map.refollowDelay=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel())}),y(4,oi,2,2,"mat-option",41,v),i()()}if(d&2){let a=w();o(3),_("ngModel",a.facade.settings.map.refollowDelay),o(),S(a.options.map.refollowDelay)}}function si(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function li(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function di(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function gi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function mi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function ci(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function pi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function _i(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ui(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a number > 0 "),i())}function fi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function hi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function yi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Si(d,s){if(d&1&&(n(0,"mat-radio-button",41),W(1,"img",145),l(2),i()),d&2){let a=s.$implicit,e=w();h("value",a[0]),o(),Ce(`transform: scale(${a[0]})`),h("src",e.selfIconPreview,Se),o(),k(" (",a[1],") ")}}function Ci(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a value between -90 and 90 (max 9 decimals) "),i())}function wi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a value between -180 and 180 (max 9 decimals) "),i())}function Mi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function vi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function bi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Ti(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Di(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a number >= 1. "),i())}function Ei(d,s){d&1&&(n(0,"mat-hint"),l(1,"Server requires a Track API (v2) provider"),i())}function Wi(d,s){if(d&1&&(n(0,"mat-hint"),l(1),i()),d&2){let a=w();o(),k("Using: ",a.app.serverTrailWanted()?"Server":"This device")}}function Vi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ki(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Pi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Li(d,s){if(d&1){let a=V();n(0,"div",37)(1,"div",146)(2,"mat-slider",147)(3,"input",108),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.vessels.aisTrackLength,g)||(r.facade.settings.vessels.aisTrackLength=g),c(g)}),p("valueChange",function(){m(a);let g=w();return c(g.deferPersist())}),i()(),l(4),i()()}if(d&2){let a=w();o(2),h("disabled",!a.app.featureFlags().tracksApi),o(),_("ngModel",a.facade.settings.vessels.aisTrackLength),o(),k(" Picked vessel track length (",a.facade.settings.vessels.aisTrackLength," hrs) ")}}function xi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Oi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Ii(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Ai(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Bi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Fi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Ni(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Ri(d,s){if(d&1){let a=V();n(0,"button",148),p("click",function(){m(a),w();let g=M(579);return c(g.value="")}),n(1,"mat-icon"),l(2,"close"),i()()}}function Ui(d,s){if(d&1&&(n(0,"mat-list-option",120),l(1),i()),d&2){let a=s.$implicit,e=w();h("selected",e.facade.settings.resources.paths.includes(a))("value",a),o(),k(" ",a," ")}}function Gi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a.id),o(),C(a.name)}}function Hi(d,s){if(d&1){let a=V();n(0,"mat-tab",121)(1,"div",32)(2,"div",33)(3,"div",133)(4,"div",35),l(5,"RADAR SETTINGS"),i(),n(6,"mat-card",36)(7,"div",47)(8,"div",38)(9,"mat-form-field",149)(10,"mat-label"),l(11,"Radar Devices"),i(),n(12,"mat-select",150,23),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.radars.deviceId,g)||(r.facade.settings.radars.deviceId=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.doRadar())}),y(14,Gi,2,2,"mat-option",41,Bt),i()()(),n(16,"div",38)(17,"button",151),p("click",function(){m(a);let g=w();return c(g.refreshRadars())}),n(18,"mat-icon"),l(19," refresh"),i(),l(20," REFRESH "),i()()(),n(21,"div",47)(22,"div",38)(23,"mat-checkbox",49),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.radars.rings,g)||(r.facade.settings.radars.rings=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel())}),l(24," Draw range circles at the radar range while it transmits "),i()()()()()()()()}if(d&2){let a=w();o(12),h("disabled",!a.radarList().length||a.app.uiCtrl().radarLayer),_("ngModel",a.facade.settings.radars.deviceId),o(2),S(a.radarList()),o(9),_("ngModel",a.facade.settings.radars.rings)}}function zi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Zi(d,s){d&1&&(n(0,"mat-error"),l(1," Value required. "),i())}var bt=class d{show={favourites:A(!1)};options;centerOffsetLimit=Pe;aisStateFilter={moored:!1,anchored:!1};formattedNumberModel={rangeCirclesDistance:1e3};unitsChangedSignal=A(0);radarList=A([]);saveOnClose=!1;arrivalCircleChanged=!1;facade=E(Ct);myElement=E(ye);dialogRef=E(Me);wakeLock=E(We);s57=E(nt);app=E(L);radarApi=E(rt);plotterExt=E(gt);mapImages=E(it);fabOptions(){return ot(this.options.buttons.fab,this.plotterExt.actionButtonChoices(),this.facade.settings.display.fab)}get selfIconPreview(){let s=this.facade.settings.vessels.iconType;return ut(this.mapImages,s)?.getSrc()??ce[s]?.path??ce[tt].path}course=E(pt);constructor(){this.options=new St,he(()=>{this.unitsChangedSignal(),this.formatNumberModel()})}ngOnInit(){this.facade.refresh(),this.facade.settings.selections.aisState.forEach(s=>{this.isAisState(s)&&(this.aisStateFilter[s]=!0)}),this.refreshRadars()}refreshRadars(){this.radarApi.listRadars().then(s=>{this.radarList.set(s)}).catch(()=>{this.radarList.set([])})}formatNumberModel(){this.formattedNumberModel={rangeCirclesDistance:this.facade.settings.units.distance==="kilometer"?Math.floor(this.facade.settings.vessels.rangeCirclesDistance/1e3):Math.floor(I.transform(this.facade.settings.vessels.rangeCirclesDistance,"m","naut-mile")??0)}}unitFromServer(s){return this.facade.settings.units.useServerPrefs&&!!wt(this.app.serverConfig.unitPreferences(),s)}raiseChange(){this.app.alignUnitPrefs(this.app.serverConfig.unitPreferences()),this.unitsChangedSignal.update(s=>s+1)}handleClose(){this.saveOnClose&&this.persistModel(),this.arrivalCircleChanged&&this.applyArrivalCircle(),this.dialogRef.close()}doWakelock(s){this.persistModel(),s?this.wakeLock.disable():this.wakeLock.enable()}doS57(s){this.facade.settings.map.s57Options.depthUnit=this.facade.settings.units.depth,s?this.parseNumber(s):this.persistModel(),this.s57.setOptions(this.facade.settings.map.s57Options)}doRadar(){this.radarApi.init(this.facade.settings.radars.deviceId).then(s=>{s&&this.persistModel()})}onLineStyle(s,a){let e=this.facade.settings.vessels.selfLines[s];e&&(e.color=a.config.color,e.dash=a.config.dash,e.weight=a.config.weight,this.app.selfLines.update(g=>{let r=Object.assign({},g);return r[s]=a.lineStyle,r}),this.persistModel())}toggleFavourites(){this.show.favourites.update(s=>!s)}parseCenterOffset(s){s.reset(typeof s.model=="number"?Le(s.model):0),this.persistModel()}onArrivalCircleChange(s){this.parseNumber(s),this.arrivalCircleChanged=!0}applyArrivalCircle(){let s=this.facade.settings.course.arrivalCircle,a=this.course.courseData();a.position&&s!==null&&s>0&&s!==a.arrivalCircle&&this.course.setArrivalCircle(s)}parseNumber(s,a){if(typeof s.model!="number"){s.reset(this.fallbackToDefault());return}!a&&s.model<0&&s.reset(Math.abs(s.model)),this.persistModel()}parseFormattedNumber(s,a){typeof s.model=="number"&&(!a&&s.model<0&&s.reset(Math.abs(s.model)),this.facade.settings.vessels.rangeCirclesDistance=this.facade.settings.units.distance==="kilometer"?Math.floor(this.formattedNumberModel.rangeCirclesDistance*1e3):Math.floor(I.nauticalMilesToKm(this.formattedNumberModel.rangeCirclesDistance)*1e3),this.persistModel())}fallbackToDefault(){let s=at();if(typeof this.facade.settings.display.statusBar.referenceSpeed!="number")return s.display.statusBar.referenceSpeed;if(typeof this.facade.settings.display.statusBar.tapFadeSpeed!="number")return s.display.statusBar.tapFadeSpeed;if(typeof this.facade.settings.map.s57Options.shallowDepth!="number")return s.map.s57Options.shallowDepth;if(typeof this.facade.settings.map.s57Options.safetyDepth!="number")return s.map.s57Options.safetyDepth;if(typeof this.facade.settings.map.s57Options.deepDepth!="number")return s.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 s.course.arrivalCircle}get serverTrailAvailable(){return Ve(this.app.trackSource())}trailLengthAllStop=ke+1;get trailLengthStop(){let s=this.facade.settings.vessels.trailDuration;return s===U?this.trailLengthAllStop:s}set trailLengthStop(s){this.facade.settings.vessels.trailDuration=s===this.trailLengthAllStop?U:s}trailLengthStopLabel=s=>s===this.trailLengthAllStop?"All":`${s}`;get trailLengthText(){let s=this.facade.settings.vessels.trailDuration;return s===U?"All":`${s} hrs`}persistModel(s){this.facade.applySettings(),this.facade.emitChangeEvent(s)}get speedUnitSymbol(){return I.getSymbol(this.facade.settings.units.speed)}deferPersist(s){this.saveOnClose=!0,this.facade.emitChangeEvent(s)}onInstrumentApp(){this.persistModel("pluginInstruments"),this.facade.buildFavouritesList()}onPreferredPaths(s){s.save&&(this.facade.settings.units.preferredPaths=s.value,this.persistModel())}onFavSelected(s,a){this.facade.settings.display.plugins.favourites=a.selectedOptions.selected.map(e=>e.value),this.persistModel()}onAisStateFilter(){this.facade.settings.selections.aisState=Object.entries(this.aisStateFilter).filter(([,s])=>s).map(([s])=>s),this.persistModel()}isAisState(s){return Object.hasOwn(this.aisStateFilter,s)}onResPathSelected(s){this.facade.settings.resources.paths=s.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(s){return I.getSymbol(s)}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,selectors:[["settings-dialog"]],decls:678,vars:146,consts:[["refspeed","ngModel"],["tapfade","ngModel"],["serverprefs",""],["distunits",""],["centerOffsetY","ngModel"],["centerOffsetX","ngModel"],["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",""],["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"],["label","after","matTooltip","Un-check to prefer dialogs over the information panel",3,"ngModelChange","change","ngModel"],["label","after","matTooltip","Show the Split view button, which opens a second chart beside or below the main one.",3,"ngModelChange","change","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"],[1,"setting-group"],["label","after","matTooltip","Show the bearing, distance and ETA from the vessel to the cursor in the status bar. Click or tap the chart to hold the readout on that point.",3,"ngModelChange","change","ngModel"],["floatLabel","always",2,"width","100%"],["matInput","","type","number","min","0","matTooltip","Boat speed used to estimate ETA when SOG is unavailable (e.g. at anchor or hove to).",3,"ngModelChange","change","disabled","ngModel"],["matInput","","type","number","min","1","step","0.5","matTooltip","How long the marker left by a click or tap takes to fade. The readout stays held on that point until it does.",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Glyph used to display wind direction and speed.",3,"ngModelChange","selectionChange","ngModel"],["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"],["aria-hidden","true",1,"setting-field-group-title"],[3,"ngModelChange","selectionChange","ngModel"],[1,"setting-field-group-title"],[1,"setting-field-group"],["floatLabel","always"],["matInput","","type","number","matTooltip","Where the vessel sits up or down the screen, as a percentage of the distance to the edge. Positive looks ahead (vessel lower); negative looks behind.",3,"ngModelChange","change","min","max","ngModel"],["matInput","","type","number","matTooltip","Where the vessel sits left or right of centre, as a percentage of the distance to the edge. Positive shifts the map right (vessel left).",3,"ngModelChange","change","min","max","ngModel"],["matTooltip","Add close button to popovers","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Glide the chart when it follows the vessel, rotates or zooms. Turn off on a slow device.","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"],[1,"setting-card-row-item","setting-card-row-stack"],["matTooltip","What panning the chart does while following the vessel.",3,"ngModelChange","selectionChange","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"],["matTooltip","Icon used to draw your own vessel.",3,"ngModelChange","selectionChange","ngModel"],[3,"ngModelChange","change","ngModel"],["label","after","matTooltip","Scale the icon to the vessel's reported beam and length overall while zoomed in. It never shrinks below the icon size selected above. Needs design.beam and design.length.overall from the Signal K server.",3,"ngModelChange","change","ngModel"],["label","after","matTooltip","e.g. Building, Camp, etc.",3,"ngModelChange","change","ngModel"],["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"],[2,"width","200px"],["matTooltip","Where the vessel track comes from. Auto uses the server when it can supply one.",3,"ngModelChange","selectionChange","disabled","ngModel"],["value","auto"],["value","server",3,"disabled"],["value","local"],["discrete","","tickInterval","1","min","1",3,"max","displayWith","disabled"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["label","Resources"],["id","sectNotes",1,"setting-group"],[3,"valueChange","selectionChange","disabled","value"],["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"],["label","after","matTooltip","Open Note details with a single click instead of showing the pop-up options",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"],["matTooltip","Resume following the vessel once the chart has been left idle for this long.",3,"ngModelChange","selectionChange","ngModel"],[3,"src"],["matTooltip","How far back the track of a vessel picked with its TRACK button reaches. Needs a Track API (v2) provider.",1,"setting-card-row-item"],["discrete","","tickInterval","1","min","1","max","96",3,"disabled"],["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 g=V();n(0,"mat-toolbar",24)(1,"span",25)(2,"mat-icon"),l(3,"settings"),i()(),n(4,"span",26),l(5,"Settings"),i(),n(6,"span",27)(7,"button",28),p("click",function(){return e.handleClose()}),n(8,"mat-icon"),l(9,"close"),i()()()(),n(10,"div",29)(11,"mat-tab-group",30)(12,"mat-tab",31)(13,"div",32)(14,"div",33)(15,"div",34)(16,"div",35),l(17,"DISPLAY"),i(),n(18,"mat-card",36)(19,"mat-card-content")(20,"div",37)(21,"div",38)(22,"mat-form-field",39)(23,"mat-label"),l(24,"Dark Mode setting"),i(),n(25,"mat-select",40),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.darkMode.source,t)||(e.facade.settings.display.darkMode.source=t),c(t)}),p("selectionChange",function(){return e.persistModel("darkTheme")}),y(26,Ft,2,2,"mat-option",41,v),i()()(),n(28,"div",38)(29,"mat-checkbox",42),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.nightMode,t)||(e.facade.settings.display.nightMode=t),c(t)}),p("change",function(){return e.persistModel()}),l(30," Auto-set Night Mode "),i()(),n(31,"div",38)(32,"mat-form-field",39)(33,"mat-label"),l(34,"Action Button"),i(),n(35,"mat-select",43),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.fab,t)||(e.facade.settings.display.fab=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(36,Nt,2,2,"mat-option",41,v),i()()(),n(38,"div",38)(39,"mat-checkbox",44),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.disableWakelock,t)||(e.facade.settings.display.disableWakelock=t),c(t)}),p("change",function(t){return e.doWakelock(t.checked)}),l(40," Allow Device to Sleep "),i()(),n(41,"div",38)(42,"mat-checkbox",45),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.preferInfoPanel,t)||(e.facade.settings.display.preferInfoPanel=t),c(t)}),p("change",function(){return e.persistModel()}),l(43," Prefer Info-Panel "),i()(),n(44,"div",38)(45,"mat-checkbox",46),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.splitView,t)||(e.facade.settings.display.splitView=t),c(t)}),p("change",function(){return e.persistModel()}),l(46," Enable split view "),i()()()()(),W(47,"br"),n(48,"mat-card",36)(49,"mat-card-content"),b(50,Ut,22,4,"div",47),b(51,Ht,10,0,"div",37),i()(),W(52,"br"),i(),n(53,"div",34)(54,"div",35),l(55,"SOUND"),i(),n(56,"mat-card",36)(57,"mat-card-content")(58,"div",37)(59,"div",38)(60,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.muteSound,t)||(e.facade.settings.display.muteSound=t),c(t)}),p("change",function(){return e.persistModel()}),l(61," Do not Play Sounds "),i()(),n(62,"div",38)(63,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.depthAlarm.enabled,t)||(e.facade.settings.display.depthAlarm.enabled=t),c(t)}),p("change",function(){return e.persistModel()}),l(64," Show DEPTH Alarms "),i()(),n(65,"div",38)(66,"mat-form-field",39)(67,"mat-label"),l(68,"Alarm Smoothing Time"),i(),n(69,"mat-select",50),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.depthAlarm.smoothing,t)||(e.facade.settings.display.depthAlarm.smoothing=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(70,zt,2,2,"mat-option",41,v),i()()()()()()(),n(72,"div",51)(73,"div",35),l(74,"STATUS BAR OPTIONS"),i(),n(75,"mat-card",36)(76,"mat-card-content")(77,"div",37)(78,"div",38)(79,"mat-checkbox",52),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.liveEta,t)||(e.facade.settings.display.statusBar.liveEta=t),c(t)}),p("change",function(){return e.persistModel()}),l(80," Live ETA at cursor "),i()(),n(81,"div",38)(82,"mat-form-field",53)(83,"mat-label"),l(84),i(),n(85,"input",54,0),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.referenceSpeed,t)||(e.facade.settings.display.statusBar.referenceSpeed=t),c(t)}),p("change",function(){m(g);let t=M(86);return c(e.parseNumber(t))}),i(),b(87,Zt,2,0,"mat-error"),i()(),n(88,"div",38)(89,"mat-form-field",53)(90,"mat-label"),l(91,"Tap Fade Speed (s)"),i(),n(92,"input",55,1),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.tapFadeSpeed,t)||(e.facade.settings.display.statusBar.tapFadeSpeed=t),c(t)}),p("change",function(){m(g);let t=M(93);return c(e.parseNumber(t))}),i(),b(94,Kt,2,0,"mat-error"),i()()()()()(),n(95,"div",51)(96,"div",35),l(97,"WEATHER"),i(),n(98,"mat-card",36)(99,"mat-card-content")(100,"div",37)(101,"div",38)(102,"mat-form-field",39)(103,"mat-label"),l(104,"Wind indicator"),i(),n(105,"mat-select",56),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.windIndicator,t)||(e.facade.settings.display.windIndicator=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(106,qt,2,2,"mat-option",41,v),i()()()()()()()()()(),n(108,"mat-tab",57)(109,"div",32)(110,"div",33)(111,"div",58)(112,"div",35),l(113,"UNITS & VALUES"),i(),n(114,"mat-card",36)(115,"mat-card-content")(116,"div",37)(117,"div",38)(118,"fieldset")(119,"legend")(120,"mat-checkbox",59,2),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.useServerPrefs,t)||(e.facade.settings.units.useServerPrefs=t),c(t)}),p("change",function(){return m(g),e.raiseChange(),c(e.persistModel())}),l(122," Use Server Unit Preferences "),i()(),n(123,"div",37)(124,"div",38)(125,"mat-form-field",39)(126,"mat-label"),l(127,"Distance units"),i(),n(128,"mat-select",60,3),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.distance,t)||(e.facade.settings.units.distance=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(130,jt,2,2,"mat-option",41,v),i()()(),n(132,"div",38)(133,"mat-form-field",39)(134,"mat-label"),l(135,"Depth units"),i(),n(136,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.depth,t)||(e.facade.settings.units.depth=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.doS57())}),y(137,Xt,2,2,"mat-option",41,v),i()()(),n(139,"div",38)(140,"mat-form-field",39)(141,"mat-label"),l(142,"Length units"),i(),n(143,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.length,t)||(e.facade.settings.units.length=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(144,Yt,2,2,"mat-option",41,v),i()()(),n(146,"div",38)(147,"mat-form-field",39)(148,"mat-label"),l(149,"Temperature units"),i(),n(150,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.temperature,t)||(e.facade.settings.units.temperature=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(151,Jt,2,2,"mat-option",41,v),i()()(),n(153,"div",38)(154,"mat-form-field",39)(155,"mat-label"),l(156,"Speed units"),i(),n(157,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.speed,t)||(e.facade.settings.units.speed=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(158,Qt,2,2,"mat-option",41,v),i()()()()()()(),n(160,"div",37),b(161,ei,7,1,"div",38),b(162,ii,7,1,"div",38),n(163,"div",38)(164,"signalk-preferred-paths",61),p("chosen",function(t){return e.onPreferredPaths(t)}),i()()()()()()()()(),n(165,"mat-tab",62)(166,"div",32)(167,"div",33)(168,"div",63)(169,"div",35),l(170,"MAP"),i(),n(171,"mat-card")(172,"mat-card-content")(173,"div",37)(174,"div",38)(175,"div",64),l(176," \xA0 "),i(),n(177,"mat-form-field",39)(178,"mat-label"),l(179,"Feature label zoom level"),i(),n(180,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.labelsMinZoom,t)||(e.facade.settings.map.labelsMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(181,ni,2,2,"mat-option",41,D),i()()(),n(183,"div",38)(184,"div",66),l(185," Offset Vessel Center (%) "),i(),n(186,"div",67)(187,"mat-form-field",68)(188,"mat-label"),l(189,"Vertical"),i(),n(190,"input",69,4),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset.y,t)||(e.facade.settings.map.centerOffset.y=t),c(t)}),p("change",function(){m(g);let t=M(191);return c(e.parseCenterOffset(t))}),i()(),n(192,"mat-form-field",68)(193,"mat-label"),l(194,"Horizontal"),i(),n(195,"input",70,5),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset.x,t)||(e.facade.settings.map.centerOffset.x=t),c(t)}),p("change",function(){m(g);let t=M(196);return c(e.parseCenterOffset(t))}),i()()()(),n(197,"div",38)(198,"mat-checkbox",71),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.popoverMulti,t)||(e.facade.settings.map.popoverMulti=t),c(t)}),p("change",function(){return e.persistModel()}),l(199," Popovers close with button "),i()(),n(200,"div",38)(201,"mat-checkbox",72),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.animation,t)||(e.facade.settings.map.animation=t),c(t)}),p("change",function(){return e.persistModel()}),l(202," Animate map movement "),i()(),n(203,"div",38)(204,"mat-checkbox",73),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.doubleClickZoom,t)||(e.facade.settings.map.doubleClickZoom=t),c(t)}),p("change",function(){return e.persistModel()}),l(205," Double click to Zoom "),i()(),n(206,"div",38)(207,"mat-checkbox",74),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.overZoomTiles,t)||(e.facade.settings.map.overZoomTiles=t),c(t)}),p("change",function(){return e.persistModel()}),l(208," Keep tiles visible on max zoom "),i()(),n(209,"div",75)(210,"mat-form-field",39)(211,"mat-label"),l(212,"Map Pan When Following"),i(),n(213,"mat-select",76),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.panBehavior,t)||(e.facade.settings.map.panBehavior=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(214,ai,2,2,"mat-option",41,v),i()(),b(216,ri,6,1,"mat-form-field",39),i()()()(),n(217,"div",35),l(218,"VECTOR CHARTS"),i(),n(219,"mat-card")(220,"mat-card-content")(221,"div",37)(222,"div",38)(223,"mat-form-field",39)(224,"mat-label"),l(225,"Graphics Style"),i(),n(226,"mat-select",77),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.graphicsStyle,t)||(e.facade.settings.map.s57Options.graphicsStyle=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(227,si,2,2,"mat-option",41,v),i()()(),n(229,"div",38)(230,"mat-form-field",39)(231,"mat-label"),l(232,"Boundaries"),i(),n(233,"mat-select",78),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.boundaries,t)||(e.facade.settings.map.s57Options.boundaries=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(234,li,2,2,"mat-option",41,v),i()()(),n(236,"div",38)(237,"mat-form-field",39)(238,"mat-label"),l(239,"Color Table"),i(),n(240,"mat-select",79),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.colorTable,t)||(e.facade.settings.map.s57Options.colorTable=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(241,di,2,2,"mat-option",41,v),i()()(),n(243,"div",38)(244,"mat-form-field",39)(245,"mat-label"),l(246,"Colors"),i(),n(247,"mat-select",80),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.colors,t)||(e.facade.settings.map.s57Options.colors=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(248,gi,2,2,"mat-option",41,D),i()()()(),n(250,"div",37)(251,"div",38)(252,"mat-form-field",39)(253,"mat-label"),l(254,"Shallow depth"),i(),n(255,"input",81,6),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.shallowDepth,t)||(e.facade.settings.map.s57Options.shallowDepth=t),c(t)}),p("change",function(){m(g);let t=M(256);return c(e.doS57(t))}),i(),b(257,mi,2,0,"mat-error"),n(258,"span",82),l(259,"m"),i()()(),n(260,"div",38)(261,"mat-form-field",39)(262,"mat-label"),l(263,"Safety depth"),i(),n(264,"input",81,7),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.safetyDepth,t)||(e.facade.settings.map.s57Options.safetyDepth=t),c(t)}),p("change",function(){m(g);let t=M(265);return c(e.doS57(t))}),i(),b(266,ci,2,0,"mat-error"),n(267,"span",82),l(268,"m"),i()()(),n(269,"div",38)(270,"mat-form-field",39)(271,"mat-label"),l(272,"Deep depth"),i(),n(273,"input",81,8),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.deepDepth,t)||(e.facade.settings.map.s57Options.deepDepth=t),c(t)}),p("change",function(){m(g);let t=M(274);return c(e.doS57(t))}),i(),b(275,pi,2,0,"mat-error"),n(276,"span",82),l(277,"m"),i()()(),n(278,"div",38)(279,"mat-form-field",39)(280,"mat-label"),l(281,"Layers"),i(),n(282,"mat-select",83),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.otherLayers,t)||(e.facade.settings.map.s57Options.otherLayers=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(283,_i,2,2,"mat-option",41,v),i()()()()()()()()()(),n(285,"mat-tab",84)(286,"div",32)(287,"div",33)(288,"div",85)(289,"div",35),l(290,"COURSE"),i(),n(291,"mat-card",36)(292,"mat-card-content")(293,"div",37)(294,"div",38)(295,"mat-form-field",39)(296,"mat-label"),l(297,"Arrival Circle"),i(),n(298,"input",81,9),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.arrivalCircle,t)||(e.facade.settings.course.arrivalCircle=t),c(t)}),p("change",function(){m(g);let t=M(299);return c(e.onArrivalCircleChange(t))}),i(),b(300,ui,2,0,"mat-error"),n(301,"span",82),l(302,"m"),i()()()(),n(303,"div",37)(304,"div",38)(305,"mat-checkbox",49,10),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointOnArrival,t)||(e.facade.settings.course.autoNextPointOnArrival=t),c(t)}),p("change",function(){return e.persistModel()}),l(307," Auto-advance to next point on arrival "),i()()(),n(308,"div",37)(309,"div",38)(310,"mat-form-field",39)(311,"mat-label"),l(312,"Notification type to use"),i(),n(313,"mat-select",86,11),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointTrigger,t)||(e.facade.settings.course.autoNextPointTrigger=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(315,fi,2,2,"mat-option",41,D),i()()(),n(317,"div",38)(318,"mat-form-field",39)(319,"mat-label"),l(320,"Time to wait before advancing"),i(),n(321,"mat-select",87),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointDelay,t)||(e.facade.settings.course.autoNextPointDelay=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(322,hi,2,2,"mat-option",41,v),i()()()()()()()()()(),n(324,"mat-tab",88)(325,"div",32)(326,"div",33)(327,"div",89)(328,"div",35),l(329,"VESSEL"),i(),n(330,"mat-card",36)(331,"mat-card-content")(332,"div",37)(333,"div",38)(334,"fieldset")(335,"legend"),l(336,"Vessel Icon"),i(),n(337,"div",37)(338,"div",38)(339,"mat-form-field",39)(340,"mat-label"),l(341,"Vessel icon"),i(),n(342,"mat-select",90),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.iconType,t)||(e.facade.settings.vessels.iconType=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(343,yi,2,2,"mat-option",41,v),i()()()(),n(345,"div",37)(346,"div",38)(347,"mat-radio-group",91),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.iconScale,t)||(e.facade.settings.vessels.iconScale=t),c(t)}),p("change",function(){return e.persistModel()}),y(348,Si,3,5,"mat-radio-button",41,v),i()()(),n(350,"div",47)(351,"div",38)(352,"mat-checkbox",92),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.iconActualSize,t)||(e.facade.settings.vessels.iconActualSize=t),c(t)}),p("change",function(){return e.persistModel()}),l(353," Show vessel at actual size when zoomed in "),i()()()()()(),n(354,"div",38)(355,"fieldset")(356,"legend")(357,"mat-checkbox",93,12),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.fixedLocationMode,t)||(e.facade.settings.vessels.fixedLocationMode=t),c(t)}),p("change",function(){return e.persistModel()}),l(359," Fixed Location Mode "),i()(),n(360,"div",37)(361,"div",38)(362,"mat-form-field",68)(363,"mat-label"),l(364,"Latitude"),i(),n(365,"input",94,13),f("ngModelChange",function(t){return m(g),u(e.facade.fixedPosition[1],t)||(e.facade.fixedPosition[1]=t),c(t)}),p("change",function(){m(g);let t=M(366);return c(e.parseNumber(t,!0))}),i(),b(367,Ci,2,0,"mat-error"),i(),n(368,"mat-form-field",68)(369,"mat-label"),l(370,"Longitude"),i(),n(371,"input",95,14),f("ngModelChange",function(t){return m(g),u(e.facade.fixedPosition[0],t)||(e.facade.fixedPosition[0]=t),c(t)}),p("change",function(){m(g);let t=M(372);return c(e.parseNumber(t,!0))}),i(),b(373,wi,2,0,"mat-error"),i()()()()()()(),W(374,"br"),n(375,"mat-card",36)(376,"mat-card-content")(377,"div",38)(378,"fieldset")(379,"legend"),l(380,"Vessel Lines:"),i(),n(381,"div",37)(382,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.windVectors,t)||(e.facade.settings.vessels.windVectors=t),c(t)}),p("change",function(){return e.persistModel()}),l(383," Display Wind Vectors "),i(),n(384,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.laylines,t)||(e.facade.settings.vessels.laylines=t),c(t)}),p("change",function(){return e.persistModel()}),l(385," Display Laylines "),i()(),n(386,"div",37)(387,"div",38)(388,"fieldset")(389,"legend"),l(390,"Heading Line"),i(),n(391,"div",37)(392,"div",38)(393,"mat-form-field")(394,"mat-label"),l(395,"Heading Line Length"),i(),n(396,"mat-select",96),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.selfLines.heading.length,t)||(e.facade.settings.vessels.selfLines.heading.length=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(397,Mi,2,2,"mat-option",41,v),i()()(),n(399,"div",38)(400,"linestyle-select",97),p("selectionChange",function(t){return e.onLineStyle("heading",t)}),i()()()()()(),n(401,"div",37)(402,"div",38)(403,"fieldset")(404,"legend"),l(405,"COG Line"),i(),n(406,"div",37)(407,"div",38)(408,"mat-form-field")(409,"mat-label"),l(410,"COG Line Length"),i(),n(411,"mat-select",98),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.selfLines.cog.length,t)||(e.facade.settings.vessels.selfLines.cog.length=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(412,vi,2,2,"mat-option",41,v),i()()(),n(414,"div",38)(415,"linestyle-select",97),p("selectionChange",function(t){return e.onLineStyle("cog",t)}),i()()()()()()()(),n(416,"div",38)(417,"fieldset")(418,"legend")(419,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircles,t)||(e.facade.settings.vessels.rangeCircles=t),c(t)}),p("change",function(){return e.persistModel()}),l(420," Display Range Circles "),i()(),n(421,"div",37)(422,"div",38)(423,"mat-form-field",39)(424,"mat-label"),l(425,"Number of Range Circles"),i(),n(426,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircleCount,t)||(e.facade.settings.vessels.rangeCircleCount=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(427,bi,2,2,"mat-option",41,D),i()()(),n(429,"div",38)(430,"mat-form-field",39)(431,"mat-label"),l(432,"Minimum Zoom Level"),i(),n(433,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircleMinZoom,t)||(e.facade.settings.vessels.rangeCircleMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(434,Ti,2,2,"mat-option",41,D),i()()()(),n(436,"div",37)(437,"div",38)(438,"mat-checkbox",100),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCirclesFixed,t)||(e.facade.settings.vessels.rangeCirclesFixed=t),c(t)}),p("change",function(){return e.persistModel()}),l(439," Use Fixed Distance "),i()(),n(440,"div",38)(441,"mat-form-field",68)(442,"mat-label"),l(443),i(),n(444,"input",101,15),f("ngModelChange",function(t){return m(g),u(e.formattedNumberModel.rangeCirclesDistance,t)||(e.formattedNumberModel.rangeCirclesDistance=t),c(t)}),p("change",function(){m(g);let t=M(445);return c(e.parseFormattedNumber(t))}),i(),b(446,Di,2,0,"mat-error"),i()()()()()()(),W(447,"br"),n(448,"mat-card",36)(449,"mat-card-content")(450,"div",37)(451,"fieldset")(452,"legend")(453,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trail,t)||(e.facade.settings.vessels.trail=t),c(t)}),p("change",function(){return e.persistModel("vesselTrail")}),l(454," Display Vessel Track "),i()(),n(455,"div",37)(456,"div",38)(457,"mat-form-field",102)(458,"mat-label"),l(459,"Track source"),i(),n(460,"mat-select",103),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailSource,t)||(e.facade.settings.vessels.trailSource=t),c(t)}),p("selectionChange",function(){return e.persistModel("trailSource")}),n(461,"mat-option",104),l(462,"Auto"),i(),n(463,"mat-option",105),l(464,"Server"),i(),n(465,"mat-option",106),l(466,"This device"),i()(),b(467,Ei,2,0,"mat-hint")(468,Wi,2,1,"mat-hint"),i(),l(469," \xA0\xA0 "),n(470,"mat-slider",107)(471,"input",108),f("ngModelChange",function(t){return m(g),u(e.trailLengthStop,t)||(e.trailLengthStop=t),c(t)}),p("valueChange",function(){return e.deferPersist()}),i()(),l(472),i()(),n(473,"div",37)(474,"div",38)(475,"mat-form-field",39)(476,"mat-label"),l(477,"Resolution: Last hour"),i(),n(478,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.lastHour,t)||(e.facade.settings.vessels.trailResolution.lastHour=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(479,Vi,2,2,"mat-option",41,v),i()()(),n(481,"div",38)(482,"mat-form-field",39)(483,"mat-label"),l(484,"Resolution: 1 hr -> 24 hrs"),i(),n(485,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.next23,t)||(e.facade.settings.vessels.trailResolution.next23=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(486,ki,2,2,"mat-option",41,v),i()()(),n(488,"div",38)(489,"mat-form-field",39)(490,"mat-label"),l(491,"Resolution: > 24 hrs"),i(),n(492,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.beyond24,t)||(e.facade.settings.vessels.trailResolution.beyond24=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(493,Pi,2,2,"mat-option",41,v),i()()()()()()()(),n(495,"div",35),l(496,"OTHER VESSELS"),i(),n(497,"mat-card",36)(498,"mat-card-content")(499,"div",37)(500,"div",38)(501,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisShowTrack,t)||(e.facade.settings.vessels.aisShowTrack=t),c(t)}),p("change",function(){return e.persistModel()}),l(502," Show all tracks "),i(),l(503," \xA0 "),n(504,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.moored,t)||(e.aisStateFilter.moored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),l(505," Hide Moored "),i(),l(506," \xA0 "),n(507,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.anchored,t)||(e.aisStateFilter.anchored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),l(508," Hide Anchored "),i()()(),b(509,Li,5,3,"div",37),n(510,"div",37)(511,"div",38)(512,"mat-form-field",39)(513,"mat-label"),l(514,"Mark AIS target inactive after"),i(),n(515,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisStaleAge,t)||(e.facade.settings.vessels.aisStaleAge=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(516,xi,2,2,"mat-option",41,v),i()()(),n(518,"div",38)(519,"mat-form-field",39)(520,"mat-label"),l(521,"Remove AIS target after"),i(),n(522,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisMaxAge,t)||(e.facade.settings.vessels.aisMaxAge=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(523,Oi,2,2,"mat-option",41,v),i()()(),n(525,"div",38)(526,"mat-form-field",39)(527,"mat-label"),l(528,"Wind Vector Value"),i(),n(529,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisWindApparent,t)||(e.facade.settings.vessels.aisWindApparent=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(530,Ii,2,2,"mat-option",41,v),i()()(),n(532,"div",38)(533,"mat-form-field",39)(534,"mat-label"),l(535,"Wind / Track Zoom Level"),i(),n(536,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisWindMinZoom,t)||(e.facade.settings.vessels.aisWindMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(537,Ai,2,2,"mat-option",41,D),i()()(),n(539,"div",38)(540,"mat-form-field",39)(541,"mat-label"),l(542,"COG Line"),i(),n(543,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisCogLine,t)||(e.facade.settings.vessels.aisCogLine=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(544,Bi,2,2,"mat-option",41,v),i()()()()()()()()()(),n(546,"mat-tab",109)(547,"div",32)(548,"div",33)(549,"div",110)(550,"div",35),l(551,"NOTES"),i(),n(552,"mat-card",36)(553,"mat-card-content")(554,"div",47)(555,"div",38)(556,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.ui.showNotes,t)||(e.facade.settings.ui.showNotes=t),c(t)}),p("change",function(){return e.persistModel()}),l(557," Display Notes on Map "),i()(),n(558,"div",38)(559,"mat-form-field",39)(560,"mat-label"),l(561,"Notes Zoom Level"),i(),n(562,"mat-select",111),f("valueChange",function(t){return m(g),u(e.facade.settings.resources.notes.minZoom,t)||(e.facade.settings.resources.notes.minZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel("fetchNotes")}),y(563,Fi,2,2,"mat-option",41,D),i()()()(),n(565,"div",47)(566,"div",38)(567,"mat-form-field",39)(568,"mat-label"),l(569),i(),n(570,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.getRadius,t)||(e.facade.settings.resources.notes.getRadius=t),c(t)}),p("selectionChange",function(){return e.persistModel("fetchNotes")}),y(571,Ni,2,2,"mat-option",41,D),i()()()(),n(573,"div",47)(574,"div",38)(575,"mat-form-field",53)(576,"mat-label"),l(577,"Notes fetch filter:"),i(),n(578,"input",112,16),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.rootFilter,t)||(e.facade.settings.resources.notes.rootFilter=t),c(t)}),p("change",function(){return e.persistModel("fetchNotes")}),i(),b(580,Ri,3,0,"button",113),i()()(),n(581,"div",47)(582,"div",38)(583,"mat-checkbox",114),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.groupNameEdit,t)||(e.facade.settings.resources.notes.groupNameEdit=t),c(t)}),p("change",function(){return e.persistModel()}),l(584," Edit Group Names "),i()(),n(585,"div",38)(586,"mat-checkbox",115),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.groupRequiresPosition,t)||(e.facade.settings.resources.notes.groupRequiresPosition=t),c(t)}),p("change",function(){return e.persistModel()}),l(587," Position Group Note "),i()()(),n(588,"div",47)(589,"div",38)(590,"mat-checkbox",116),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.singleClickNoteDetails,t)||(e.facade.settings.display.singleClickNoteDetails=t),c(t)}),p("change",function(){return e.persistModel()}),l(591," Single Click for Note Details "),i()()()()()(),n(592,"div",117)(593,"div",35),l(594,"CUSTOM RESOURCES"),i(),n(595,"mat-card",36)(596,"mat-card-content")(597,"div",47)(598,"div",38)(599,"div",118),l(600," Select custom resource types (./resources/<name>) "),i(),n(601,"mat-selection-list",119,17),p("selectionChange",function(){m(g);let t=M(602);return c(e.onResPathSelected(t))}),y(603,Ui,2,3,"mat-list-option",120,D),i()()()()()()()()(),b(605,Hi,25,3,"mat-tab",121),n(606,"mat-tab",122)(607,"div",32)(608,"div",33)(609,"div",123)(610,"div",35),l(611,"SIGNAL K: CONNECTION"),i(),n(612,"mat-card",36)(613,"mat-card-content")(614,"div",47)(615,"fieldset")(616,"legend"),l(617,"Filter Stream data:"),i(),n(618,"span",124),l(619," Check to include Signal K schema groups on display."),W(620,"br"),n(621,"i"),l(622,"Use to manage display performance."),i()(),n(623,"div",38)(624,"mat-checkbox",125),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.vessels,t)||(e.facade.settings.signalk.vessels=t),c(t)}),p("change",function(){return e.persistModel()}),l(625," Vessels (other than Self) "),i()(),n(626,"div",38)(627,"mat-checkbox",126),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.atons,t)||(e.facade.settings.signalk.atons=t),c(t)}),p("change",function(){return e.persistModel()}),l(628," Aids to Navigation (AtoN) "),i()(),n(629,"div",38)(630,"mat-checkbox",127),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.aircraft,t)||(e.facade.settings.signalk.aircraft=t),c(t)}),p("change",function(){return e.persistModel()}),l(631," Aircraft "),i()(),n(632,"div",38)(633,"mat-checkbox",128),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.sar,t)||(e.facade.settings.signalk.sar=t),c(t)}),p("change",function(){return e.persistModel()}),l(634," Search and Rescue (SaR) "),i()(),n(635,"div",38)(636,"mat-checkbox",129),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.meteo,t)||(e.facade.settings.signalk.meteo=t),c(t)}),p("change",function(){return e.persistModel()}),l(637," Weather (Meteo) "),i()(),n(638,"div",38),W(639,"br"),n(640,"mat-form-field",39)(641,"mat-label"),l(642,"Max. distance from vessel"),i(),n(643,"mat-select",130,18),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.maxRadius,t)||(e.facade.settings.signalk.maxRadius=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(645,zi,2,2,"mat-option",41,v),i()()()()(),n(647,"div",47)(648,"div",38)(649,"button",131),p("click",function(){return e.clearAuthToken()}),n(650,"mat-icon"),l(651,"key_off"),i()()()()()()()()()(),n(652,"mat-tab",132)(653,"div",32)(654,"div",33)(655,"div",133)(656,"div",35),l(657,"EXPERIMENTS"),i(),n(658,"mat-card",36)(659,"mat-card-content")(660,"div",47)(661,"div",38)(662,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.video.enable,t)||(e.facade.settings.resources.video.enable=t),c(t)}),p("change",function(){return e.persistModel()}),l(663," Enable Video "),i()(),n(664,"div",38)(665,"mat-form-field",53)(666,"mat-label"),l(667,"url:"),i(),n(668,"input",134,19),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.video.url,t)||(e.facade.settings.resources.video.url=t),c(t)}),p("change",function(){return e.persistModel("videoUrl")}),i(),b(670,Zi,2,0,"mat-error"),i()()(),n(671,"div",47)(672,"div",38)(673,"mat-checkbox",135,20),f("ngModelChange",function(t){return m(g),u(e.facade.settings.experiments,t)||(e.facade.settings.experiments=t),c(t)}),p("change",function(){return e.persistModel()}),n(675,"mat-icon"),l(676,"science"),i(),l(677," Experimental Features "),i()()()()()()()()()()()}if(a&2){let g=M(86),r=M(93),t=M(129),oe=M(256),re=M(265),se=M(274),le=M(299),pe=M(306),_e=M(358),de=M(366),ge=M(372),me=M(445),Tt=M(579),Dt=M(669);o(25),_("ngModel",e.facade.settings.display.darkMode.source),o(),S(e.options.darkMode),o(3),_("ngModel",e.facade.settings.display.nightMode),o(6),_("ngModel",e.facade.settings.display.fab),o(),S(e.fabOptions()),o(3),h("disabled",!e.wakeLock.isAvailable),_("ngModel",e.facade.settings.display.disableWakelock),o(3),_("ngModel",e.facade.settings.display.preferInfoPanel),o(3),_("ngModel",e.facade.settings.display.splitView),o(5),T(e.facade.applicationList.length>1?50:-1),o(),T(e.show.favourites()?51:-1),o(9),_("ngModel",e.facade.settings.display.muteSound),o(3),_("ngModel",e.facade.settings.display.depthAlarm.enabled),o(6),_("ngModel",e.facade.settings.display.depthAlarm.smoothing),h("disabled",!e.facade.settings.display.depthAlarm.enabled),o(),S(e.options.alarm.smoothing),o(9),_("ngModel",e.facade.settings.display.statusBar.liveEta),o(5),k("Reference Boat Speed (",e.speedUnitSymbol,")"),o(),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.referenceSpeed),o(2),T(g.invalid&&(g.dirty||g.touched)?87:-1),o(5),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.tapFadeSpeed),o(2),T(r.invalid&&(r.dirty||r.touched)?94:-1),o(11),_("ngModel",e.facade.settings.display.windIndicator),o(),S(e.options.windIndicator),o(14),h("disabled",!e.app.serverConfig.unitPreferences()),_("ngModel",e.facade.settings.units.useServerPrefs),o(8),h("disabled",e.unitFromServer("distance")),_("ngModel",e.facade.settings.units.distance),o(2),S(e.options.availableUnits.distance),o(6),h("disabled",e.unitFromServer("depth")),_("ngModel",e.facade.settings.units.depth),o(),S(e.options.availableUnits.depth),o(6),h("disabled",e.unitFromServer("length")),_("ngModel",e.facade.settings.units.length),o(),S(e.options.availableUnits.length),o(6),h("disabled",e.unitFromServer("temperature")),_("ngModel",e.facade.settings.units.temperature),o(),S(e.options.availableUnits.temperature),o(6),h("disabled",e.unitFromServer("speed")),_("ngModel",e.facade.settings.units.speed),o(),S(e.options.availableUnits.speed),o(3),T(e.options.preferredValues.coords.length!==0?161:-1),o(),T(e.options.preferredValues.heading.length!==0?162:-1),o(18),_("ngModel",e.facade.settings.map.labelsMinZoom),o(),S(e.options.zoomLevels),o(9),h("min",-e.centerOffsetLimit)("max",e.centerOffsetLimit),_("ngModel",e.facade.settings.map.centerOffset.y),o(5),h("min",-e.centerOffsetLimit)("max",e.centerOffsetLimit),_("ngModel",e.facade.settings.map.centerOffset.x),o(3),_("ngModel",e.facade.settings.map.popoverMulti),o(3),_("ngModel",e.facade.settings.map.animation),o(3),_("ngModel",e.facade.settings.map.doubleClickZoom),o(3),_("ngModel",e.facade.settings.map.overZoomTiles),o(6),_("ngModel",e.facade.settings.map.panBehavior),o(),S(e.options.map.panBehavior),o(2),T(e.facade.settings.map.panBehavior==="exit"?216:-1),o(10),_("ngModel",e.facade.settings.map.s57Options.graphicsStyle),o(),S(e.options.map.s57.graphicsStyle),o(6),_("ngModel",e.facade.settings.map.s57Options.boundaries),o(),S(e.options.map.s57.boundaries),o(6),_("ngModel",e.facade.settings.map.s57Options.colorTable),o(),S(e.options.map.s57.colorTables),o(6),_("ngModel",e.facade.settings.map.s57Options.colors),o(),S(e.options.map.s57.colors),o(7),_("ngModel",e.facade.settings.map.s57Options.shallowDepth),o(2),T(oe.invalid&&(oe.dirty||oe.touched)?257:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.safetyDepth),o(2),T(re.invalid&&(re.dirty||re.touched)?266:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.deepDepth),o(2),T(se.invalid&&(se.dirty||se.touched)?275:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.otherLayers),o(),S(e.options.map.s57.otherLayers),o(15),_("ngModel",e.facade.settings.course.arrivalCircle),o(2),T(le.invalid&&(le.dirty||le.touched)?300:-1),o(5),_("ngModel",e.facade.settings.course.autoNextPointOnArrival),o(8),h("disabled",pe.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointTrigger),o(2),S(e.options.course.nextPointTrigger),o(6),h("disabled",pe.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointDelay),o(),S(e.options.course.nextPointDelay),o(20),_("ngModel",e.facade.settings.vessels.iconType),o(),S(e.options.vessel.selfIconType),o(4),_("ngModel",e.facade.settings.vessels.iconScale),o(),S(e.options.vessel.selfIconScale),o(4),_("ngModel",e.facade.settings.vessels.iconActualSize),o(5),_("ngModel",e.facade.settings.vessels.fixedLocationMode),o(8),_("ngModel",e.facade.fixedPosition[1]),h("disabled",!_e.checked),o(2),T(de.invalid&&(de.dirty||de.touched)?367:-1),o(4),_("ngModel",e.facade.fixedPosition[0]),h("disabled",!_e.checked),o(2),T(ge.invalid&&(ge.dirty||ge.touched)?373:-1),o(9),_("ngModel",e.facade.settings.vessels.windVectors),o(2),_("ngModel",e.facade.settings.vessels.laylines),o(12),_("ngModel",e.facade.settings.vessels.selfLines.heading.length),o(),S(e.options.vessel.headingLine),o(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),o(11),_("ngModel",e.facade.settings.vessels.selfLines.cog.length),o(),S(e.options.vessel.cogLine),o(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),o(4),_("ngModel",e.facade.settings.vessels.rangeCircles),o(7),_("ngModel",e.facade.settings.vessels.rangeCircleCount),h("disabled",!e.facade.settings.vessels.rangeCircles),o(),S(e.options.rangeCircles.count),o(6),_("ngModel",e.facade.settings.vessels.rangeCircleMinZoom),h("disabled",!e.facade.settings.vessels.rangeCircles),o(),S(e.options.rangeCircles.zoomLevels),o(4),_("ngModel",e.facade.settings.vessels.rangeCirclesFixed),h("disabled",!e.facade.settings.vessels.rangeCircles),o(5),k(" Distance between circles (",e.renderSymbol(e.facade.settings.units.distance),") "),o(),_("ngModel",e.formattedNumberModel.rangeCirclesDistance),h("disabled",!e.facade.settings.vessels.rangeCircles||!e.facade.settings.vessels.rangeCirclesFixed),o(2),T(me.invalid&&(me.dirty||me.touched)?446:-1),o(7),_("ngModel",e.facade.settings.vessels.trail),o(7),h("disabled",!e.facade.settings.vessels.trail),_("ngModel",e.facade.settings.vessels.trailSource),o(3),h("disabled",!e.serverTrailAvailable),o(4),T(e.serverTrailAvailable?e.facade.settings.vessels.trailSource==="auto"?468:-1:467),o(3),h("max",e.trailLengthAllStop)("displayWith",e.trailLengthStopLabel)("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),_("ngModel",e.trailLengthStop),o(),k(" Length (",e.trailLengthText,") "),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.lastHour),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.highResolution),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.next23),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.highResolution),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.beyond24),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.mediumResolution),o(8),_("ngModel",e.facade.settings.vessels.aisShowTrack),o(3),_("ngModel",e.aisStateFilter.moored),o(3),_("ngModel",e.aisStateFilter.anchored),o(2),T(e.facade.settings.vessels.aisShowTrack?-1:509),o(6),_("ngModel",e.facade.settings.vessels.aisStaleAge),o(),S(e.options.vessel.aisTimeouts),o(6),_("ngModel",e.facade.settings.vessels.aisMaxAge),o(),S(e.options.vessel.aisTimeouts),o(6),_("ngModel",e.facade.settings.vessels.aisWindApparent),o(),S(e.options.preferredValues.wind),o(6),_("ngModel",e.facade.settings.vessels.aisWindMinZoom),o(),S(e.options.zoomLevels),o(6),_("ngModel",e.facade.settings.vessels.aisCogLine),o(),S(e.options.vessel.aisCogLine),o(12),_("ngModel",e.facade.settings.ui.showNotes),o(6),h("disabled",!e.facade.settings.ui.showNotes),_("value",e.facade.settings.resources.notes.minZoom),o(),S(e.options.zoomLevels),o(6),C("Fetch Notes radius: ("+e.options.availableUnits.distance.get(t.value)+")"),o(),h("disabled",!e.facade.settings.ui.showNotes),_("ngModel",e.facade.settings.resources.notes.getRadius),o(),S(e.options.resources.noteRadius),o(7),_("ngModel",e.facade.settings.resources.notes.rootFilter),o(2),T(Tt.value?580:-1),o(3),_("ngModel",e.facade.settings.resources.notes.groupNameEdit),o(3),_("ngModel",e.facade.settings.resources.notes.groupRequiresPosition),o(4),_("ngModel",e.facade.settings.display.singleClickNoteDetails),o(13),S(e.facade.resourcePathList),o(2),T(e.app.featureFlags().radarApi?605:-1),o(19),_("ngModel",e.facade.settings.signalk.vessels),o(3),_("ngModel",e.facade.settings.signalk.atons),o(3),_("ngModel",e.facade.settings.signalk.aircraft),o(3),_("ngModel",e.facade.settings.signalk.sar),o(3),_("ngModel",e.facade.settings.signalk.meteo),o(7),_("ngModel",e.facade.settings.signalk.maxRadius),o(2),S(e.options.vessel.aisMaxRadius),o(17),_("ngModel",e.facade.settings.resources.video.enable),o(6),h("disabled",!e.facade.settings.resources.video.enable),_("ngModel",e.facade.settings.resources.video.url),o(2),T(Dt.invalid?670:-1),o(3),_("ngModel",e.facade.settings.experiments)}},dependencies:[Z,G,xe,H,Ae,Be,Ie,Oe,z,be,ve,Ge,Ue,te,_t,ee,Re,Fe,Ne,Ye,Xe,je,qe,R,Ee,De,N,Te,$,Qe,yt,ft,ht,ct,Q,q,K,ze,He,Ze,J,Y,Ke,X,j,mt,et,$e,dt,st,lt,ae,ie],styles:["[_nghost-%COMP%] .mat-dialog-content{padding:0 4px}[_nghost-%COMP%] .mat-mdc-dialog-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:none;overflow:hidden}[_nghost-%COMP%] .mat-mdc-dialog-content .mat-mdc-tab-group, [_nghost-%COMP%] .mat-mdc-dialog-content .mat-mdc-tab-body-wrapper{flex:1 1 auto;min-height:0}.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}.settings[_ngcontent-%COMP%] .setting-card-row-item.setting-card-row-stack[_ngcontent-%COMP%]{flex-basis:220px}.settings[_ngcontent-%COMP%] .setting-field-group-title[_ngcontent-%COMP%]{font-size:10pt;font-family:Arial,Helvetica,sans-serif;opacity:.7;line-height:1.4;min-height:1.4em;padding-bottom:2px}.settings[_ngcontent-%COMP%] .setting-field-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.settings[_ngcontent-%COMP%] .setting-field-group[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:0 1 150px;min-width:80px}@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{bt as SettingsDialog};
|
|
1
|
+
import{Ba as pt,Bb as ut,H as nt,I as at,Sb as ft,Tb as ht,U as ot,Ub as yt,W as rt,Wb as St,Xb as Ct,aa as st,ab as _t,ac as wt,b as We,ba as lt,bb as ee,bc as L,c as Ve,ca as dt,cb as te,da as gt,e as U,f as ke,h as I,j as Pe,k as Le,r as tt,s as ce,ta as mt,x as it,za as ct}from"./chunk-6JTVABJT.js";import{a as $e,b as et,c as $}from"./chunk-YBVURHD5.js";import"./chunk-CI2BDMX2.js";import{a as qe,h as je,j as Xe,k as Ye}from"./chunk-DSUCHYD7.js";import{b as Fe,e as Ne,j as Re,k as Ue,l as Ge}from"./chunk-MZ3YWFFB.js";import{a as Y,b as J,c as Je,d as Q}from"./chunk-SIFYI3HU.js";import{a as Qe}from"./chunk-GJZ7P5CR.js";import"./chunk-RENDTMDT.js";import"./chunk-DN6IX7CO.js";import"./chunk-ZQSUYMH2.js";import{b as K,c as He,d as ze,f as Ze,i as q,j as Ke,n as j,o as X}from"./chunk-DC5AFSD6.js";import{$a as R,Fa as Me,Ja as ve,La as be,Na as Te,Oa as N,Wa as De,Ya as Ee,bb as G,gb as H,jb as z,kb as xe,nb as Oe,ob as Ie,pb as Ae,qb as Be,rb as Z}from"./chunk-2QKJQDG4.js";import"./chunk-LEEF5WZZ.js";import"./chunk-7FANVIZX.js";import"./chunk-K4EGDHPT.js";import"./chunk-RYULE37H.js";import{Bc as we,Cc as F,Db as V,Hb as p,Jb as w,Ka as Se,Oa as o,Tb as M,Wb as Ce,X as E,Yb as l,Zb as C,_a as P,_b as k,ba as m,bc as _,ca as c,cc as u,da as x,dc as f,ea as ue,ia as fe,la as A,mb as O,na as he,nb as b,ob as T,qb as D,ra as ye,rb as y,sb as S,tb as h,ub as n,vb as i,wb as W,xc as B}from"./chunk-R6ABX6RX.js";import"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";var kt=(d,s)=>s[0];function Pt(d,s){if(d&1&&(n(0,"mat-option",8),x(),n(1,"svg",6),W(2,"line",7),i()()),d&2){let a=s.$implicit;h("value",a),o(2),O("stroke-width",a)}}function Lt(d,s){if(d&1&&(n(0,"mat-option",8),x(),n(1,"svg",6),W(2,"line",9),i()()),d&2){let a=s.$implicit;h("value",a[0]),o(2),O("stroke-dasharray",a[1])}}var ie=class d{color=F("#ff0000");dash=F("none");weight=F(1);_color=B(()=>this.color());_dash=B(()=>this.dash());_weight=B(()=>this.weight());selectionChange=we();app=E(L);line={dashArrays:this.app.lineDashMap,weights:[1,2,3,4,5]};constructor(){}ngOnInit(){}onSelectChange(){let s=this.app.formatLineDashArray(this._dash());this.selectionChange.emit({lineStyle:{fill:{color:this._color()},stroke:{color:this._color(),width:this._weight(),lineDash:s}},config:{color:this._color(),weight:this._weight(),dash:this._dash()}})}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,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&&(n(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),l(3,"Color"),i(),n(4,"input",2),f("ngModelChange",function(r){return u(e._color,r)||(e._color=r),r}),p("change",function(){return e.onSelectChange()}),i()(),n(5,"mat-form-field",3)(6,"mat-label"),l(7,"Weight"),i(),n(8,"mat-select",4),f("ngModelChange",function(r){return u(e._weight,r)||(e._weight=r),r}),p("selectionChange",function(){return e.onSelectChange()}),n(9,"mat-select-trigger")(10,"div",5),x(),n(11,"svg",6),W(12,"line",7),i()()(),y(13,Pt,3,2,"mat-option",8,D),i()(),ue(),n(15,"mat-form-field",3)(16,"mat-label"),l(17,"Style"),i(),n(18,"mat-select",4),f("ngModelChange",function(r){return u(e._dash,r)||(e._dash=r),r}),p("selectionChange",function(){return e.onSelectChange()}),n(19,"mat-select-trigger")(20,"div",5),x(),n(21,"svg",6),W(22,"line",9),i()()(),y(23,Lt,3,2,"mat-option",8,kt),i()()()),a&2&&(o(4),_("ngModel",e._color),o(4),_("ngModel",e._weight),o(4),O("stroke-width",e._weight()),o(),S(e.line.weights),o(5),_("ngModel",e._dash),o(4),O("stroke-dasharray",e.line.dashArrays.get(e._dash())),o(),S(e.line.dashArrays))},dependencies:[Z,G,H,z,N,R,$,X,j,q,K,Q,J,Je,Y],encapsulation:2})};var ne="auto";var Ot=(d,s)=>s[0];function It(d,s){if(d&1){let a=V();n(0,"div",4)(1,"mat-radio-button",5,0),p("change",function(){m(a);let g=M(2),r=w().$implicit,t=w();return r[1].current=g.value,c(t.save(!0))}),l(3),i()()}if(d&2){let a=s.$implicit,e=w().$implicit,g=w();o(),h("name",e[0])("value",a)("checked",a===e[1].current),o(2),k(" ",g.pathLabel(a)," ")}}function At(d,s){if(d&1&&(n(0,"div",2)(1,"div",3)(2,"div"),l(3),i()(),n(4,"div"),y(5,It,4,4,"div",4,D),i()()),d&2){let a=s.$implicit;o(3),C(a[1].name),o(2),S(a[1].available)}}var ae=class d{title="";chosen=new fe;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:[ne,"navigation.courseOverGroundTrue","navigation.courseOverGroundMagnetic","navigation.headingTrue","navigation.headingMagnetic"],available:[],current:""}};pathChoicesArray=Object.entries(this.pathChoices);availPaths;app=E(L);constructor(){}pathLabel(s){return s===ne?"Automatic":s.split(".").slice(-1)[0]}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(g=>{(g===ne||this.availPaths.has(g))&&e.available.push(g)}),e.available.length===0&&e.available.push(e.choices[0])})}save(s){let a={};Object.entries(this.pathChoices).forEach(e=>{a[e[0]]=e[1].current}),this.chosen.emit({save:s,value:a})}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,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&&(n(0,"fieldset")(1,"legend",1),l(2),i(),n(3,"div"),y(4,At,7,1,"div",2,Ot),i()()),a&2&&(o(2),C(e.title),o(2),S(e.pathChoicesArray))},dependencies:[te,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=(d,s)=>s[0],Bt=(d,s)=>s.id;function Ft(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Nt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Rt(d,s){if(d&1&&(n(0,"mat-option",136),l(1),i()),d&2){let a=s.$implicit;h("value",a.url)("matTooltip",a.description),o(),k(" ",a.name," ")}}function Ut(d,s){if(d&1){let a=V();n(0,"div",47)(1,"div",38)(2,"mat-form-field",39)(3,"mat-label"),l(4,"Select Instruments App"),i(),n(5,"mat-select",65),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.instruments,g)||(r.facade.settings.display.plugins.instruments=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.onInstrumentApp())}),y(6,Rt,2,3,"mat-option",136,D),i()()(),n(8,"div",38)(9,"mat-form-field",53)(10,"mat-label"),l(11,"Parameters"),i(),n(12,"input",137,21),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.parameters,g)||(r.facade.settings.display.plugins.parameters=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel("pluginParameters"))}),i()()(),n(14,"div",38)(15,"mat-checkbox",138),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.startOnOpen,g)||(r.facade.settings.display.plugins.startOnOpen=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel("pluginStartOnOpen"))}),l(16," Halt App on hide "),i()(),n(17,"div",38)(18,"button",139),p("click",function(){m(a);let g=w();return c(g.toggleFavourites())}),n(19,"mat-icon"),l(20,"star"),i(),l(21," FAVOURITES "),i()()()}if(d&2){let a=w();o(5),_("ngModel",a.facade.settings.display.plugins.instruments),o(),S(a.facade.applicationList),o(6),h("disabled",a.facade.settings.display.plugins.instruments===null),_("ngModel",a.facade.settings.display.plugins.parameters),o(3),_("ngModel",a.facade.settings.display.plugins.startOnOpen)}}function Gt(d,s){if(d&1&&(n(0,"mat-list-option",141),l(1),i()),d&2){let a=s.$implicit,e=w(2);h("disabled",a.url==e.facade.settings.display.plugins.instruments)("selected",a.url!==null&&e.facade.settings.display.plugins.favourites.includes(a.url))("value",a.url),o(),k(" ",a.name," ")}}function Ht(d,s){if(d&1){let a=V();n(0,"div",37)(1,"div",38)(2,"div",118),W(3,"br"),l(4,"Select Favourite Apps: "),i(),W(5,"mat-divider"),n(6,"mat-selection-list",140,22),p("selectionChange",function(g){m(a);let r=M(7),t=w();return c(t.onFavSelected(g,r))}),y(8,Gt,2,4,"mat-list-option",141,D),i()()()}if(d&2){let a=w();o(8),S(a.facade.favouritesList)}}function zt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Zt(d,s){d&1&&(n(0,"mat-error"),l(1,"Please enter a number >= 0"),i())}function Kt(d,s){d&1&&(n(0,"mat-error"),l(1,"Please enter a number >= 1"),i())}function qt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function jt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Xt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Yt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Jt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Qt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function $t(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ei(d,s){if(d&1){let a=V();n(0,"div",38)(1,"mat-form-field",39)(2,"mat-label"),l(3,"Position display format"),i(),n(4,"mat-select",142),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.units.positionFormat,g)||(r.facade.settings.units.positionFormat=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel())}),y(5,$t,2,2,"mat-option",41,D),i()()()}if(d&2){let a=w();o(4),_("ngModel",a.facade.settings.units.positionFormat),o(),S(a.options.preferredValues.coords)}}function ti(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ii(d,s){if(d&1){let a=V();n(0,"div",38)(1,"mat-form-field",39)(2,"mat-label"),l(3,"Prefer True / Magnetic values"),i(),n(4,"mat-select",143),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.units.headingAttribute,g)||(r.facade.settings.units.headingAttribute=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel("headingAttribute"))}),y(5,ti,2,2,"mat-option",41,D),i()()()}if(d&2){let a=w();o(4),_("ngModel",a.facade.settings.units.headingAttribute),o(),S(a.options.preferredValues.heading)}}function ni(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function ai(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function oi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ri(d,s){if(d&1){let a=V();n(0,"mat-form-field",39)(1,"mat-label"),l(2,"Resume Following After"),i(),n(3,"mat-select",144),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.map.refollowDelay,g)||(r.facade.settings.map.refollowDelay=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel())}),y(4,oi,2,2,"mat-option",41,v),i()()}if(d&2){let a=w();o(3),_("ngModel",a.facade.settings.map.refollowDelay),o(),S(a.options.map.refollowDelay)}}function si(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function li(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function di(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function gi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function mi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function ci(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function pi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function _i(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ui(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a number > 0 "),i())}function fi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function hi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function yi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Si(d,s){if(d&1&&(n(0,"mat-radio-button",41),W(1,"img",145),l(2),i()),d&2){let a=s.$implicit,e=w();h("value",a[0]),o(),Ce(`transform: scale(${a[0]})`),h("src",e.selfIconPreview,Se),o(),k(" (",a[1],") ")}}function Ci(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a value between -90 and 90 (max 9 decimals) "),i())}function wi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a value between -180 and 180 (max 9 decimals) "),i())}function Mi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function vi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function bi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Ti(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Di(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a number >= 1. "),i())}function Ei(d,s){d&1&&(n(0,"mat-hint"),l(1,"Server requires a Track API (v2) provider"),i())}function Wi(d,s){if(d&1&&(n(0,"mat-hint"),l(1),i()),d&2){let a=w();o(),k("Using: ",a.app.serverTrailWanted()?"Server":"This device")}}function Vi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ki(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Pi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Li(d,s){if(d&1){let a=V();n(0,"div",37)(1,"div",146)(2,"mat-slider",147)(3,"input",108),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.vessels.aisTrackLength,g)||(r.facade.settings.vessels.aisTrackLength=g),c(g)}),p("valueChange",function(){m(a);let g=w();return c(g.deferPersist())}),i()(),l(4),i()()}if(d&2){let a=w();o(2),h("disabled",!a.app.featureFlags().tracksApi),o(),_("ngModel",a.facade.settings.vessels.aisTrackLength),o(),k(" Picked vessel track length (",a.facade.settings.vessels.aisTrackLength," hrs) ")}}function xi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Oi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Ii(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Ai(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Bi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Fi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Ni(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Ri(d,s){if(d&1){let a=V();n(0,"button",148),p("click",function(){m(a),w();let g=M(579);return c(g.value="")}),n(1,"mat-icon"),l(2,"close"),i()()}}function Ui(d,s){if(d&1&&(n(0,"mat-list-option",120),l(1),i()),d&2){let a=s.$implicit,e=w();h("selected",e.facade.settings.resources.paths.includes(a))("value",a),o(),k(" ",a," ")}}function Gi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a.id),o(),C(a.name)}}function Hi(d,s){if(d&1){let a=V();n(0,"mat-tab",121)(1,"div",32)(2,"div",33)(3,"div",133)(4,"div",35),l(5,"RADAR SETTINGS"),i(),n(6,"mat-card",36)(7,"div",47)(8,"div",38)(9,"mat-form-field",149)(10,"mat-label"),l(11,"Radar Devices"),i(),n(12,"mat-select",150,23),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.radars.deviceId,g)||(r.facade.settings.radars.deviceId=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.doRadar())}),y(14,Gi,2,2,"mat-option",41,Bt),i()()(),n(16,"div",38)(17,"button",151),p("click",function(){m(a);let g=w();return c(g.refreshRadars())}),n(18,"mat-icon"),l(19," refresh"),i(),l(20," REFRESH "),i()()(),n(21,"div",47)(22,"div",38)(23,"mat-checkbox",49),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.radars.rings,g)||(r.facade.settings.radars.rings=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel())}),l(24," Draw range circles at the radar range while it transmits "),i()()()()()()()()}if(d&2){let a=w();o(12),h("disabled",!a.radarList().length||a.app.uiCtrl().radarLayer),_("ngModel",a.facade.settings.radars.deviceId),o(2),S(a.radarList()),o(9),_("ngModel",a.facade.settings.radars.rings)}}function zi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Zi(d,s){d&1&&(n(0,"mat-error"),l(1," Value required. "),i())}var bt=class d{show={favourites:A(!1)};options;centerOffsetLimit=Pe;aisStateFilter={moored:!1,anchored:!1};formattedNumberModel={rangeCirclesDistance:1e3};unitsChangedSignal=A(0);radarList=A([]);saveOnClose=!1;arrivalCircleChanged=!1;facade=E(Ct);myElement=E(ye);dialogRef=E(Me);wakeLock=E(We);s57=E(nt);app=E(L);radarApi=E(rt);plotterExt=E(gt);mapImages=E(it);fabOptions(){return ot(this.options.buttons.fab,this.plotterExt.actionButtonChoices(),this.facade.settings.display.fab)}get selfIconPreview(){let s=this.facade.settings.vessels.iconType;return ut(this.mapImages,s)?.getSrc()??ce[s]?.path??ce[tt].path}course=E(pt);constructor(){this.options=new St,he(()=>{this.unitsChangedSignal(),this.formatNumberModel()})}ngOnInit(){this.facade.refresh(),this.facade.settings.selections.aisState.forEach(s=>{this.isAisState(s)&&(this.aisStateFilter[s]=!0)}),this.refreshRadars()}refreshRadars(){this.radarApi.listRadars().then(s=>{this.radarList.set(s)}).catch(()=>{this.radarList.set([])})}formatNumberModel(){this.formattedNumberModel={rangeCirclesDistance:this.facade.settings.units.distance==="kilometer"?Math.floor(this.facade.settings.vessels.rangeCirclesDistance/1e3):Math.floor(I.transform(this.facade.settings.vessels.rangeCirclesDistance,"m","naut-mile")??0)}}unitFromServer(s){return this.facade.settings.units.useServerPrefs&&!!wt(this.app.serverConfig.unitPreferences(),s)}raiseChange(){this.app.alignUnitPrefs(this.app.serverConfig.unitPreferences()),this.unitsChangedSignal.update(s=>s+1)}handleClose(){this.saveOnClose&&this.persistModel(),this.arrivalCircleChanged&&this.applyArrivalCircle(),this.dialogRef.close()}doWakelock(s){this.persistModel(),s?this.wakeLock.disable():this.wakeLock.enable()}doS57(s){this.facade.settings.map.s57Options.depthUnit=this.facade.settings.units.depth,s?this.parseNumber(s):this.persistModel(),this.s57.setOptions(this.facade.settings.map.s57Options)}doRadar(){this.radarApi.init(this.facade.settings.radars.deviceId).then(s=>{s&&this.persistModel()})}onLineStyle(s,a){let e=this.facade.settings.vessels.selfLines[s];e&&(e.color=a.config.color,e.dash=a.config.dash,e.weight=a.config.weight,this.app.selfLines.update(g=>{let r=Object.assign({},g);return r[s]=a.lineStyle,r}),this.persistModel())}toggleFavourites(){this.show.favourites.update(s=>!s)}parseCenterOffset(s){s.reset(typeof s.model=="number"?Le(s.model):0),this.persistModel()}onArrivalCircleChange(s){this.parseNumber(s),this.arrivalCircleChanged=!0}applyArrivalCircle(){let s=this.facade.settings.course.arrivalCircle,a=this.course.courseData();a.position&&s!==null&&s>0&&s!==a.arrivalCircle&&this.course.setArrivalCircle(s)}parseNumber(s,a){if(typeof s.model!="number"){s.reset(this.fallbackToDefault());return}!a&&s.model<0&&s.reset(Math.abs(s.model)),this.persistModel()}parseFormattedNumber(s,a){typeof s.model=="number"&&(!a&&s.model<0&&s.reset(Math.abs(s.model)),this.facade.settings.vessels.rangeCirclesDistance=this.facade.settings.units.distance==="kilometer"?Math.floor(this.formattedNumberModel.rangeCirclesDistance*1e3):Math.floor(I.nauticalMilesToKm(this.formattedNumberModel.rangeCirclesDistance)*1e3),this.persistModel())}fallbackToDefault(){let s=at();if(typeof this.facade.settings.display.statusBar.referenceSpeed!="number")return s.display.statusBar.referenceSpeed;if(typeof this.facade.settings.display.statusBar.tapFadeSpeed!="number")return s.display.statusBar.tapFadeSpeed;if(typeof this.facade.settings.map.s57Options.shallowDepth!="number")return s.map.s57Options.shallowDepth;if(typeof this.facade.settings.map.s57Options.safetyDepth!="number")return s.map.s57Options.safetyDepth;if(typeof this.facade.settings.map.s57Options.deepDepth!="number")return s.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 s.course.arrivalCircle}get serverTrailAvailable(){return Ve(this.app.trackSource())}trailLengthAllStop=ke+1;get trailLengthStop(){let s=this.facade.settings.vessels.trailDuration;return s===U?this.trailLengthAllStop:s}set trailLengthStop(s){this.facade.settings.vessels.trailDuration=s===this.trailLengthAllStop?U:s}trailLengthStopLabel=s=>s===this.trailLengthAllStop?"All":`${s}`;get trailLengthText(){let s=this.facade.settings.vessels.trailDuration;return s===U?"All":`${s} hrs`}persistModel(s){this.facade.applySettings(),this.facade.emitChangeEvent(s)}get speedUnitSymbol(){return I.getSymbol(this.facade.settings.units.speed)}deferPersist(s){this.saveOnClose=!0,this.facade.emitChangeEvent(s)}onInstrumentApp(){this.persistModel("pluginInstruments"),this.facade.buildFavouritesList()}onPreferredPaths(s){s.save&&(this.facade.settings.units.preferredPaths=s.value,this.persistModel())}onFavSelected(s,a){this.facade.settings.display.plugins.favourites=a.selectedOptions.selected.map(e=>e.value),this.persistModel()}onAisStateFilter(){this.facade.settings.selections.aisState=Object.entries(this.aisStateFilter).filter(([,s])=>s).map(([s])=>s),this.persistModel()}isAisState(s){return Object.hasOwn(this.aisStateFilter,s)}onResPathSelected(s){this.facade.settings.resources.paths=s.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(s){return I.getSymbol(s)}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,selectors:[["settings-dialog"]],decls:678,vars:146,consts:[["refspeed","ngModel"],["tapfade","ngModel"],["serverprefs",""],["distunits",""],["centerOffsetY","ngModel"],["centerOffsetX","ngModel"],["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",""],["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"],["label","after","matTooltip","Un-check to prefer dialogs over the information panel",3,"ngModelChange","change","ngModel"],["label","after","matTooltip","Show the Split view button, which opens a second chart beside or below the main one.",3,"ngModelChange","change","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"],[1,"setting-group"],["label","after","matTooltip","Show the bearing, distance and ETA from the vessel to the cursor in the status bar. Click or tap the chart to hold the readout on that point.",3,"ngModelChange","change","ngModel"],["floatLabel","always",2,"width","100%"],["matInput","","type","number","min","0","matTooltip","Boat speed used to estimate ETA when SOG is unavailable (e.g. at anchor or hove to).",3,"ngModelChange","change","disabled","ngModel"],["matInput","","type","number","min","1","step","0.5","matTooltip","How long the marker left by a click or tap takes to fade. The readout stays held on that point until it does.",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Glyph used to display wind direction and speed.",3,"ngModelChange","selectionChange","ngModel"],["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"],["aria-hidden","true",1,"setting-field-group-title"],[3,"ngModelChange","selectionChange","ngModel"],[1,"setting-field-group-title"],[1,"setting-field-group"],["floatLabel","always"],["matInput","","type","number","matTooltip","Where the vessel sits up or down the screen, as a percentage of the distance to the edge. Positive looks ahead (vessel lower); negative looks behind.",3,"ngModelChange","change","min","max","ngModel"],["matInput","","type","number","matTooltip","Where the vessel sits left or right of centre, as a percentage of the distance to the edge. Positive shifts the map right (vessel left).",3,"ngModelChange","change","min","max","ngModel"],["matTooltip","Add close button to popovers","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Glide the chart when it follows the vessel, rotates or zooms. Turn off on a slow device.","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"],[1,"setting-card-row-item","setting-card-row-stack"],["matTooltip","What panning the chart does while following the vessel.",3,"ngModelChange","selectionChange","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"],["matTooltip","Icon used to draw your own vessel.",3,"ngModelChange","selectionChange","ngModel"],[3,"ngModelChange","change","ngModel"],["label","after","matTooltip","Scale the icon to the vessel's reported beam and length overall while zoomed in. It never shrinks below the icon size selected above. Needs design.beam and design.length.overall from the Signal K server.",3,"ngModelChange","change","ngModel"],["label","after","matTooltip","e.g. Building, Camp, etc.",3,"ngModelChange","change","ngModel"],["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"],[2,"width","200px"],["matTooltip","Where the vessel track comes from. Auto uses the server when it can supply one.",3,"ngModelChange","selectionChange","disabled","ngModel"],["value","auto"],["value","server",3,"disabled"],["value","local"],["discrete","","tickInterval","1","min","1",3,"max","displayWith","disabled"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["label","Resources"],["id","sectNotes",1,"setting-group"],[3,"valueChange","selectionChange","disabled","value"],["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"],["label","after","matTooltip","Open Note details with a single click instead of showing the pop-up options",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"],["matTooltip","Resume following the vessel once the chart has been left idle for this long.",3,"ngModelChange","selectionChange","ngModel"],[3,"src"],["matTooltip","How far back the track of a vessel picked with its TRACK button reaches. Needs a Track API (v2) provider.",1,"setting-card-row-item"],["discrete","","tickInterval","1","min","1","max","96",3,"disabled"],["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 g=V();n(0,"mat-toolbar",24)(1,"span",25)(2,"mat-icon"),l(3,"settings"),i()(),n(4,"span",26),l(5,"Settings"),i(),n(6,"span",27)(7,"button",28),p("click",function(){return e.handleClose()}),n(8,"mat-icon"),l(9,"close"),i()()()(),n(10,"div",29)(11,"mat-tab-group",30)(12,"mat-tab",31)(13,"div",32)(14,"div",33)(15,"div",34)(16,"div",35),l(17,"DISPLAY"),i(),n(18,"mat-card",36)(19,"mat-card-content")(20,"div",37)(21,"div",38)(22,"mat-form-field",39)(23,"mat-label"),l(24,"Dark Mode setting"),i(),n(25,"mat-select",40),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.darkMode.source,t)||(e.facade.settings.display.darkMode.source=t),c(t)}),p("selectionChange",function(){return e.persistModel("darkTheme")}),y(26,Ft,2,2,"mat-option",41,v),i()()(),n(28,"div",38)(29,"mat-checkbox",42),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.nightMode,t)||(e.facade.settings.display.nightMode=t),c(t)}),p("change",function(){return e.persistModel()}),l(30," Auto-set Night Mode "),i()(),n(31,"div",38)(32,"mat-form-field",39)(33,"mat-label"),l(34,"Action Button"),i(),n(35,"mat-select",43),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.fab,t)||(e.facade.settings.display.fab=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(36,Nt,2,2,"mat-option",41,v),i()()(),n(38,"div",38)(39,"mat-checkbox",44),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.disableWakelock,t)||(e.facade.settings.display.disableWakelock=t),c(t)}),p("change",function(t){return e.doWakelock(t.checked)}),l(40," Allow Device to Sleep "),i()(),n(41,"div",38)(42,"mat-checkbox",45),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.preferInfoPanel,t)||(e.facade.settings.display.preferInfoPanel=t),c(t)}),p("change",function(){return e.persistModel()}),l(43," Prefer Info-Panel "),i()(),n(44,"div",38)(45,"mat-checkbox",46),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.splitView,t)||(e.facade.settings.display.splitView=t),c(t)}),p("change",function(){return e.persistModel()}),l(46," Enable split view "),i()()()()(),W(47,"br"),n(48,"mat-card",36)(49,"mat-card-content"),b(50,Ut,22,4,"div",47),b(51,Ht,10,0,"div",37),i()(),W(52,"br"),i(),n(53,"div",34)(54,"div",35),l(55,"SOUND"),i(),n(56,"mat-card",36)(57,"mat-card-content")(58,"div",37)(59,"div",38)(60,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.muteSound,t)||(e.facade.settings.display.muteSound=t),c(t)}),p("change",function(){return e.persistModel()}),l(61," Do not Play Sounds "),i()(),n(62,"div",38)(63,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.depthAlarm.enabled,t)||(e.facade.settings.display.depthAlarm.enabled=t),c(t)}),p("change",function(){return e.persistModel()}),l(64," Show DEPTH Alarms "),i()(),n(65,"div",38)(66,"mat-form-field",39)(67,"mat-label"),l(68,"Alarm Smoothing Time"),i(),n(69,"mat-select",50),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.depthAlarm.smoothing,t)||(e.facade.settings.display.depthAlarm.smoothing=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(70,zt,2,2,"mat-option",41,v),i()()()()()()(),n(72,"div",51)(73,"div",35),l(74,"STATUS BAR OPTIONS"),i(),n(75,"mat-card",36)(76,"mat-card-content")(77,"div",37)(78,"div",38)(79,"mat-checkbox",52),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.liveEta,t)||(e.facade.settings.display.statusBar.liveEta=t),c(t)}),p("change",function(){return e.persistModel()}),l(80," Live ETA at cursor "),i()(),n(81,"div",38)(82,"mat-form-field",53)(83,"mat-label"),l(84),i(),n(85,"input",54,0),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.referenceSpeed,t)||(e.facade.settings.display.statusBar.referenceSpeed=t),c(t)}),p("change",function(){m(g);let t=M(86);return c(e.parseNumber(t))}),i(),b(87,Zt,2,0,"mat-error"),i()(),n(88,"div",38)(89,"mat-form-field",53)(90,"mat-label"),l(91,"Tap Fade Speed (s)"),i(),n(92,"input",55,1),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.tapFadeSpeed,t)||(e.facade.settings.display.statusBar.tapFadeSpeed=t),c(t)}),p("change",function(){m(g);let t=M(93);return c(e.parseNumber(t))}),i(),b(94,Kt,2,0,"mat-error"),i()()()()()(),n(95,"div",51)(96,"div",35),l(97,"WEATHER"),i(),n(98,"mat-card",36)(99,"mat-card-content")(100,"div",37)(101,"div",38)(102,"mat-form-field",39)(103,"mat-label"),l(104,"Wind indicator"),i(),n(105,"mat-select",56),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.windIndicator,t)||(e.facade.settings.display.windIndicator=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(106,qt,2,2,"mat-option",41,v),i()()()()()()()()()(),n(108,"mat-tab",57)(109,"div",32)(110,"div",33)(111,"div",58)(112,"div",35),l(113,"UNITS & VALUES"),i(),n(114,"mat-card",36)(115,"mat-card-content")(116,"div",37)(117,"div",38)(118,"fieldset")(119,"legend")(120,"mat-checkbox",59,2),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.useServerPrefs,t)||(e.facade.settings.units.useServerPrefs=t),c(t)}),p("change",function(){return m(g),e.raiseChange(),c(e.persistModel())}),l(122," Use Server Unit Preferences "),i()(),n(123,"div",37)(124,"div",38)(125,"mat-form-field",39)(126,"mat-label"),l(127,"Distance units"),i(),n(128,"mat-select",60,3),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.distance,t)||(e.facade.settings.units.distance=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(130,jt,2,2,"mat-option",41,v),i()()(),n(132,"div",38)(133,"mat-form-field",39)(134,"mat-label"),l(135,"Depth units"),i(),n(136,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.depth,t)||(e.facade.settings.units.depth=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.doS57())}),y(137,Xt,2,2,"mat-option",41,v),i()()(),n(139,"div",38)(140,"mat-form-field",39)(141,"mat-label"),l(142,"Length units"),i(),n(143,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.length,t)||(e.facade.settings.units.length=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(144,Yt,2,2,"mat-option",41,v),i()()(),n(146,"div",38)(147,"mat-form-field",39)(148,"mat-label"),l(149,"Temperature units"),i(),n(150,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.temperature,t)||(e.facade.settings.units.temperature=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(151,Jt,2,2,"mat-option",41,v),i()()(),n(153,"div",38)(154,"mat-form-field",39)(155,"mat-label"),l(156,"Speed units"),i(),n(157,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.speed,t)||(e.facade.settings.units.speed=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(158,Qt,2,2,"mat-option",41,v),i()()()()()()(),n(160,"div",37),b(161,ei,7,1,"div",38),b(162,ii,7,1,"div",38),n(163,"div",38)(164,"signalk-preferred-paths",61),p("chosen",function(t){return e.onPreferredPaths(t)}),i()()()()()()()()(),n(165,"mat-tab",62)(166,"div",32)(167,"div",33)(168,"div",63)(169,"div",35),l(170,"MAP"),i(),n(171,"mat-card")(172,"mat-card-content")(173,"div",37)(174,"div",38)(175,"div",64),l(176," \xA0 "),i(),n(177,"mat-form-field",39)(178,"mat-label"),l(179,"Feature label zoom level"),i(),n(180,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.labelsMinZoom,t)||(e.facade.settings.map.labelsMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(181,ni,2,2,"mat-option",41,D),i()()(),n(183,"div",38)(184,"div",66),l(185," Offset Vessel Center (%) "),i(),n(186,"div",67)(187,"mat-form-field",68)(188,"mat-label"),l(189,"Vertical"),i(),n(190,"input",69,4),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset.y,t)||(e.facade.settings.map.centerOffset.y=t),c(t)}),p("change",function(){m(g);let t=M(191);return c(e.parseCenterOffset(t))}),i()(),n(192,"mat-form-field",68)(193,"mat-label"),l(194,"Horizontal"),i(),n(195,"input",70,5),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset.x,t)||(e.facade.settings.map.centerOffset.x=t),c(t)}),p("change",function(){m(g);let t=M(196);return c(e.parseCenterOffset(t))}),i()()()(),n(197,"div",38)(198,"mat-checkbox",71),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.popoverMulti,t)||(e.facade.settings.map.popoverMulti=t),c(t)}),p("change",function(){return e.persistModel()}),l(199," Popovers close with button "),i()(),n(200,"div",38)(201,"mat-checkbox",72),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.animation,t)||(e.facade.settings.map.animation=t),c(t)}),p("change",function(){return e.persistModel()}),l(202," Animate map movement "),i()(),n(203,"div",38)(204,"mat-checkbox",73),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.doubleClickZoom,t)||(e.facade.settings.map.doubleClickZoom=t),c(t)}),p("change",function(){return e.persistModel()}),l(205," Double click to Zoom "),i()(),n(206,"div",38)(207,"mat-checkbox",74),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.overZoomTiles,t)||(e.facade.settings.map.overZoomTiles=t),c(t)}),p("change",function(){return e.persistModel()}),l(208," Keep tiles visible on max zoom "),i()(),n(209,"div",75)(210,"mat-form-field",39)(211,"mat-label"),l(212,"Map Pan When Following"),i(),n(213,"mat-select",76),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.panBehavior,t)||(e.facade.settings.map.panBehavior=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(214,ai,2,2,"mat-option",41,v),i()(),b(216,ri,6,1,"mat-form-field",39),i()()()(),n(217,"div",35),l(218,"VECTOR CHARTS"),i(),n(219,"mat-card")(220,"mat-card-content")(221,"div",37)(222,"div",38)(223,"mat-form-field",39)(224,"mat-label"),l(225,"Graphics Style"),i(),n(226,"mat-select",77),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.graphicsStyle,t)||(e.facade.settings.map.s57Options.graphicsStyle=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(227,si,2,2,"mat-option",41,v),i()()(),n(229,"div",38)(230,"mat-form-field",39)(231,"mat-label"),l(232,"Boundaries"),i(),n(233,"mat-select",78),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.boundaries,t)||(e.facade.settings.map.s57Options.boundaries=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(234,li,2,2,"mat-option",41,v),i()()(),n(236,"div",38)(237,"mat-form-field",39)(238,"mat-label"),l(239,"Color Table"),i(),n(240,"mat-select",79),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.colorTable,t)||(e.facade.settings.map.s57Options.colorTable=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(241,di,2,2,"mat-option",41,v),i()()(),n(243,"div",38)(244,"mat-form-field",39)(245,"mat-label"),l(246,"Colors"),i(),n(247,"mat-select",80),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.colors,t)||(e.facade.settings.map.s57Options.colors=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(248,gi,2,2,"mat-option",41,D),i()()()(),n(250,"div",37)(251,"div",38)(252,"mat-form-field",39)(253,"mat-label"),l(254,"Shallow depth"),i(),n(255,"input",81,6),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.shallowDepth,t)||(e.facade.settings.map.s57Options.shallowDepth=t),c(t)}),p("change",function(){m(g);let t=M(256);return c(e.doS57(t))}),i(),b(257,mi,2,0,"mat-error"),n(258,"span",82),l(259,"m"),i()()(),n(260,"div",38)(261,"mat-form-field",39)(262,"mat-label"),l(263,"Safety depth"),i(),n(264,"input",81,7),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.safetyDepth,t)||(e.facade.settings.map.s57Options.safetyDepth=t),c(t)}),p("change",function(){m(g);let t=M(265);return c(e.doS57(t))}),i(),b(266,ci,2,0,"mat-error"),n(267,"span",82),l(268,"m"),i()()(),n(269,"div",38)(270,"mat-form-field",39)(271,"mat-label"),l(272,"Deep depth"),i(),n(273,"input",81,8),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.deepDepth,t)||(e.facade.settings.map.s57Options.deepDepth=t),c(t)}),p("change",function(){m(g);let t=M(274);return c(e.doS57(t))}),i(),b(275,pi,2,0,"mat-error"),n(276,"span",82),l(277,"m"),i()()(),n(278,"div",38)(279,"mat-form-field",39)(280,"mat-label"),l(281,"Layers"),i(),n(282,"mat-select",83),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.otherLayers,t)||(e.facade.settings.map.s57Options.otherLayers=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(283,_i,2,2,"mat-option",41,v),i()()()()()()()()()(),n(285,"mat-tab",84)(286,"div",32)(287,"div",33)(288,"div",85)(289,"div",35),l(290,"COURSE"),i(),n(291,"mat-card",36)(292,"mat-card-content")(293,"div",37)(294,"div",38)(295,"mat-form-field",39)(296,"mat-label"),l(297,"Arrival Circle"),i(),n(298,"input",81,9),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.arrivalCircle,t)||(e.facade.settings.course.arrivalCircle=t),c(t)}),p("change",function(){m(g);let t=M(299);return c(e.onArrivalCircleChange(t))}),i(),b(300,ui,2,0,"mat-error"),n(301,"span",82),l(302,"m"),i()()()(),n(303,"div",37)(304,"div",38)(305,"mat-checkbox",49,10),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointOnArrival,t)||(e.facade.settings.course.autoNextPointOnArrival=t),c(t)}),p("change",function(){return e.persistModel()}),l(307," Auto-advance to next point on arrival "),i()()(),n(308,"div",37)(309,"div",38)(310,"mat-form-field",39)(311,"mat-label"),l(312,"Notification type to use"),i(),n(313,"mat-select",86,11),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointTrigger,t)||(e.facade.settings.course.autoNextPointTrigger=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(315,fi,2,2,"mat-option",41,D),i()()(),n(317,"div",38)(318,"mat-form-field",39)(319,"mat-label"),l(320,"Time to wait before advancing"),i(),n(321,"mat-select",87),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointDelay,t)||(e.facade.settings.course.autoNextPointDelay=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(322,hi,2,2,"mat-option",41,v),i()()()()()()()()()(),n(324,"mat-tab",88)(325,"div",32)(326,"div",33)(327,"div",89)(328,"div",35),l(329,"VESSEL"),i(),n(330,"mat-card",36)(331,"mat-card-content")(332,"div",37)(333,"div",38)(334,"fieldset")(335,"legend"),l(336,"Vessel Icon"),i(),n(337,"div",37)(338,"div",38)(339,"mat-form-field",39)(340,"mat-label"),l(341,"Vessel icon"),i(),n(342,"mat-select",90),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.iconType,t)||(e.facade.settings.vessels.iconType=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(343,yi,2,2,"mat-option",41,v),i()()()(),n(345,"div",37)(346,"div",38)(347,"mat-radio-group",91),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.iconScale,t)||(e.facade.settings.vessels.iconScale=t),c(t)}),p("change",function(){return e.persistModel()}),y(348,Si,3,5,"mat-radio-button",41,v),i()()(),n(350,"div",47)(351,"div",38)(352,"mat-checkbox",92),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.iconActualSize,t)||(e.facade.settings.vessels.iconActualSize=t),c(t)}),p("change",function(){return e.persistModel()}),l(353," Show vessel at actual size when zoomed in "),i()()()()()(),n(354,"div",38)(355,"fieldset")(356,"legend")(357,"mat-checkbox",93,12),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.fixedLocationMode,t)||(e.facade.settings.vessels.fixedLocationMode=t),c(t)}),p("change",function(){return e.persistModel()}),l(359," Fixed Location Mode "),i()(),n(360,"div",37)(361,"div",38)(362,"mat-form-field",68)(363,"mat-label"),l(364,"Latitude"),i(),n(365,"input",94,13),f("ngModelChange",function(t){return m(g),u(e.facade.fixedPosition[1],t)||(e.facade.fixedPosition[1]=t),c(t)}),p("change",function(){m(g);let t=M(366);return c(e.parseNumber(t,!0))}),i(),b(367,Ci,2,0,"mat-error"),i(),n(368,"mat-form-field",68)(369,"mat-label"),l(370,"Longitude"),i(),n(371,"input",95,14),f("ngModelChange",function(t){return m(g),u(e.facade.fixedPosition[0],t)||(e.facade.fixedPosition[0]=t),c(t)}),p("change",function(){m(g);let t=M(372);return c(e.parseNumber(t,!0))}),i(),b(373,wi,2,0,"mat-error"),i()()()()()()(),W(374,"br"),n(375,"mat-card",36)(376,"mat-card-content")(377,"div",38)(378,"fieldset")(379,"legend"),l(380,"Vessel Lines:"),i(),n(381,"div",37)(382,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.windVectors,t)||(e.facade.settings.vessels.windVectors=t),c(t)}),p("change",function(){return e.persistModel()}),l(383," Display Wind Vectors "),i(),n(384,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.laylines,t)||(e.facade.settings.vessels.laylines=t),c(t)}),p("change",function(){return e.persistModel()}),l(385," Display Laylines "),i()(),n(386,"div",37)(387,"div",38)(388,"fieldset")(389,"legend"),l(390,"Heading Line"),i(),n(391,"div",37)(392,"div",38)(393,"mat-form-field")(394,"mat-label"),l(395,"Heading Line Length"),i(),n(396,"mat-select",96),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.selfLines.heading.length,t)||(e.facade.settings.vessels.selfLines.heading.length=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(397,Mi,2,2,"mat-option",41,v),i()()(),n(399,"div",38)(400,"linestyle-select",97),p("selectionChange",function(t){return e.onLineStyle("heading",t)}),i()()()()()(),n(401,"div",37)(402,"div",38)(403,"fieldset")(404,"legend"),l(405,"COG Line"),i(),n(406,"div",37)(407,"div",38)(408,"mat-form-field")(409,"mat-label"),l(410,"COG Line Length"),i(),n(411,"mat-select",98),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.selfLines.cog.length,t)||(e.facade.settings.vessels.selfLines.cog.length=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(412,vi,2,2,"mat-option",41,v),i()()(),n(414,"div",38)(415,"linestyle-select",97),p("selectionChange",function(t){return e.onLineStyle("cog",t)}),i()()()()()()()(),n(416,"div",38)(417,"fieldset")(418,"legend")(419,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircles,t)||(e.facade.settings.vessels.rangeCircles=t),c(t)}),p("change",function(){return e.persistModel()}),l(420," Display Range Circles "),i()(),n(421,"div",37)(422,"div",38)(423,"mat-form-field",39)(424,"mat-label"),l(425,"Number of Range Circles"),i(),n(426,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircleCount,t)||(e.facade.settings.vessels.rangeCircleCount=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(427,bi,2,2,"mat-option",41,D),i()()(),n(429,"div",38)(430,"mat-form-field",39)(431,"mat-label"),l(432,"Minimum Zoom Level"),i(),n(433,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircleMinZoom,t)||(e.facade.settings.vessels.rangeCircleMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(434,Ti,2,2,"mat-option",41,D),i()()()(),n(436,"div",37)(437,"div",38)(438,"mat-checkbox",100),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCirclesFixed,t)||(e.facade.settings.vessels.rangeCirclesFixed=t),c(t)}),p("change",function(){return e.persistModel()}),l(439," Use Fixed Distance "),i()(),n(440,"div",38)(441,"mat-form-field",68)(442,"mat-label"),l(443),i(),n(444,"input",101,15),f("ngModelChange",function(t){return m(g),u(e.formattedNumberModel.rangeCirclesDistance,t)||(e.formattedNumberModel.rangeCirclesDistance=t),c(t)}),p("change",function(){m(g);let t=M(445);return c(e.parseFormattedNumber(t))}),i(),b(446,Di,2,0,"mat-error"),i()()()()()()(),W(447,"br"),n(448,"mat-card",36)(449,"mat-card-content")(450,"div",37)(451,"fieldset")(452,"legend")(453,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trail,t)||(e.facade.settings.vessels.trail=t),c(t)}),p("change",function(){return e.persistModel("vesselTrail")}),l(454," Display Vessel Track "),i()(),n(455,"div",37)(456,"div",38)(457,"mat-form-field",102)(458,"mat-label"),l(459,"Track source"),i(),n(460,"mat-select",103),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailSource,t)||(e.facade.settings.vessels.trailSource=t),c(t)}),p("selectionChange",function(){return e.persistModel("trailSource")}),n(461,"mat-option",104),l(462,"Auto"),i(),n(463,"mat-option",105),l(464,"Server"),i(),n(465,"mat-option",106),l(466,"This device"),i()(),b(467,Ei,2,0,"mat-hint")(468,Wi,2,1,"mat-hint"),i(),l(469," \xA0\xA0 "),n(470,"mat-slider",107)(471,"input",108),f("ngModelChange",function(t){return m(g),u(e.trailLengthStop,t)||(e.trailLengthStop=t),c(t)}),p("valueChange",function(){return e.deferPersist()}),i()(),l(472),i()(),n(473,"div",37)(474,"div",38)(475,"mat-form-field",39)(476,"mat-label"),l(477,"Resolution: Last hour"),i(),n(478,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.lastHour,t)||(e.facade.settings.vessels.trailResolution.lastHour=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(479,Vi,2,2,"mat-option",41,v),i()()(),n(481,"div",38)(482,"mat-form-field",39)(483,"mat-label"),l(484,"Resolution: 1 hr -> 24 hrs"),i(),n(485,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.next23,t)||(e.facade.settings.vessels.trailResolution.next23=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(486,ki,2,2,"mat-option",41,v),i()()(),n(488,"div",38)(489,"mat-form-field",39)(490,"mat-label"),l(491,"Resolution: > 24 hrs"),i(),n(492,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.beyond24,t)||(e.facade.settings.vessels.trailResolution.beyond24=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(493,Pi,2,2,"mat-option",41,v),i()()()()()()()(),n(495,"div",35),l(496,"OTHER VESSELS"),i(),n(497,"mat-card",36)(498,"mat-card-content")(499,"div",37)(500,"div",38)(501,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisShowTrack,t)||(e.facade.settings.vessels.aisShowTrack=t),c(t)}),p("change",function(){return e.persistModel()}),l(502," Show all tracks "),i(),l(503," \xA0 "),n(504,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.moored,t)||(e.aisStateFilter.moored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),l(505," Hide Moored "),i(),l(506," \xA0 "),n(507,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.anchored,t)||(e.aisStateFilter.anchored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),l(508," Hide Anchored "),i()()(),b(509,Li,5,3,"div",37),n(510,"div",37)(511,"div",38)(512,"mat-form-field",39)(513,"mat-label"),l(514,"Mark AIS target inactive after"),i(),n(515,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisStaleAge,t)||(e.facade.settings.vessels.aisStaleAge=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(516,xi,2,2,"mat-option",41,v),i()()(),n(518,"div",38)(519,"mat-form-field",39)(520,"mat-label"),l(521,"Remove AIS target after"),i(),n(522,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisMaxAge,t)||(e.facade.settings.vessels.aisMaxAge=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(523,Oi,2,2,"mat-option",41,v),i()()(),n(525,"div",38)(526,"mat-form-field",39)(527,"mat-label"),l(528,"Wind Vector Value"),i(),n(529,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisWindApparent,t)||(e.facade.settings.vessels.aisWindApparent=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(530,Ii,2,2,"mat-option",41,v),i()()(),n(532,"div",38)(533,"mat-form-field",39)(534,"mat-label"),l(535,"Wind / Track Zoom Level"),i(),n(536,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisWindMinZoom,t)||(e.facade.settings.vessels.aisWindMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(537,Ai,2,2,"mat-option",41,D),i()()(),n(539,"div",38)(540,"mat-form-field",39)(541,"mat-label"),l(542,"COG Line"),i(),n(543,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisCogLine,t)||(e.facade.settings.vessels.aisCogLine=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(544,Bi,2,2,"mat-option",41,v),i()()()()()()()()()(),n(546,"mat-tab",109)(547,"div",32)(548,"div",33)(549,"div",110)(550,"div",35),l(551,"NOTES"),i(),n(552,"mat-card",36)(553,"mat-card-content")(554,"div",47)(555,"div",38)(556,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.ui.showNotes,t)||(e.facade.settings.ui.showNotes=t),c(t)}),p("change",function(){return e.persistModel()}),l(557," Display Notes on Map "),i()(),n(558,"div",38)(559,"mat-form-field",39)(560,"mat-label"),l(561,"Notes Zoom Level"),i(),n(562,"mat-select",111),f("valueChange",function(t){return m(g),u(e.facade.settings.resources.notes.minZoom,t)||(e.facade.settings.resources.notes.minZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel("fetchNotes")}),y(563,Fi,2,2,"mat-option",41,D),i()()()(),n(565,"div",47)(566,"div",38)(567,"mat-form-field",39)(568,"mat-label"),l(569),i(),n(570,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.getRadius,t)||(e.facade.settings.resources.notes.getRadius=t),c(t)}),p("selectionChange",function(){return e.persistModel("fetchNotes")}),y(571,Ni,2,2,"mat-option",41,D),i()()()(),n(573,"div",47)(574,"div",38)(575,"mat-form-field",53)(576,"mat-label"),l(577,"Notes fetch filter:"),i(),n(578,"input",112,16),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.rootFilter,t)||(e.facade.settings.resources.notes.rootFilter=t),c(t)}),p("change",function(){return e.persistModel("fetchNotes")}),i(),b(580,Ri,3,0,"button",113),i()()(),n(581,"div",47)(582,"div",38)(583,"mat-checkbox",114),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.groupNameEdit,t)||(e.facade.settings.resources.notes.groupNameEdit=t),c(t)}),p("change",function(){return e.persistModel()}),l(584," Edit Group Names "),i()(),n(585,"div",38)(586,"mat-checkbox",115),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.groupRequiresPosition,t)||(e.facade.settings.resources.notes.groupRequiresPosition=t),c(t)}),p("change",function(){return e.persistModel()}),l(587," Position Group Note "),i()()(),n(588,"div",47)(589,"div",38)(590,"mat-checkbox",116),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.singleClickNoteDetails,t)||(e.facade.settings.display.singleClickNoteDetails=t),c(t)}),p("change",function(){return e.persistModel()}),l(591," Single Click for Note Details "),i()()()()()(),n(592,"div",117)(593,"div",35),l(594,"CUSTOM RESOURCES"),i(),n(595,"mat-card",36)(596,"mat-card-content")(597,"div",47)(598,"div",38)(599,"div",118),l(600," Select custom resource types (./resources/<name>) "),i(),n(601,"mat-selection-list",119,17),p("selectionChange",function(){m(g);let t=M(602);return c(e.onResPathSelected(t))}),y(603,Ui,2,3,"mat-list-option",120,D),i()()()()()()()()(),b(605,Hi,25,3,"mat-tab",121),n(606,"mat-tab",122)(607,"div",32)(608,"div",33)(609,"div",123)(610,"div",35),l(611,"SIGNAL K: CONNECTION"),i(),n(612,"mat-card",36)(613,"mat-card-content")(614,"div",47)(615,"fieldset")(616,"legend"),l(617,"Filter Stream data:"),i(),n(618,"span",124),l(619," Check to include Signal K schema groups on display."),W(620,"br"),n(621,"i"),l(622,"Use to manage display performance."),i()(),n(623,"div",38)(624,"mat-checkbox",125),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.vessels,t)||(e.facade.settings.signalk.vessels=t),c(t)}),p("change",function(){return e.persistModel()}),l(625," Vessels (other than Self) "),i()(),n(626,"div",38)(627,"mat-checkbox",126),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.atons,t)||(e.facade.settings.signalk.atons=t),c(t)}),p("change",function(){return e.persistModel()}),l(628," Aids to Navigation (AtoN) "),i()(),n(629,"div",38)(630,"mat-checkbox",127),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.aircraft,t)||(e.facade.settings.signalk.aircraft=t),c(t)}),p("change",function(){return e.persistModel()}),l(631," Aircraft "),i()(),n(632,"div",38)(633,"mat-checkbox",128),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.sar,t)||(e.facade.settings.signalk.sar=t),c(t)}),p("change",function(){return e.persistModel()}),l(634," Search and Rescue (SaR) "),i()(),n(635,"div",38)(636,"mat-checkbox",129),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.meteo,t)||(e.facade.settings.signalk.meteo=t),c(t)}),p("change",function(){return e.persistModel()}),l(637," Weather (Meteo) "),i()(),n(638,"div",38),W(639,"br"),n(640,"mat-form-field",39)(641,"mat-label"),l(642,"Max. distance from vessel"),i(),n(643,"mat-select",130,18),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.maxRadius,t)||(e.facade.settings.signalk.maxRadius=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(645,zi,2,2,"mat-option",41,v),i()()()()(),n(647,"div",47)(648,"div",38)(649,"button",131),p("click",function(){return e.clearAuthToken()}),n(650,"mat-icon"),l(651,"key_off"),i()()()()()()()()()(),n(652,"mat-tab",132)(653,"div",32)(654,"div",33)(655,"div",133)(656,"div",35),l(657,"EXPERIMENTS"),i(),n(658,"mat-card",36)(659,"mat-card-content")(660,"div",47)(661,"div",38)(662,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.video.enable,t)||(e.facade.settings.resources.video.enable=t),c(t)}),p("change",function(){return e.persistModel()}),l(663," Enable Video "),i()(),n(664,"div",38)(665,"mat-form-field",53)(666,"mat-label"),l(667,"url:"),i(),n(668,"input",134,19),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.video.url,t)||(e.facade.settings.resources.video.url=t),c(t)}),p("change",function(){return e.persistModel("videoUrl")}),i(),b(670,Zi,2,0,"mat-error"),i()()(),n(671,"div",47)(672,"div",38)(673,"mat-checkbox",135,20),f("ngModelChange",function(t){return m(g),u(e.facade.settings.experiments,t)||(e.facade.settings.experiments=t),c(t)}),p("change",function(){return e.persistModel()}),n(675,"mat-icon"),l(676,"science"),i(),l(677," Experimental Features "),i()()()()()()()()()()()}if(a&2){let g=M(86),r=M(93),t=M(129),oe=M(256),re=M(265),se=M(274),le=M(299),pe=M(306),_e=M(358),de=M(366),ge=M(372),me=M(445),Tt=M(579),Dt=M(669);o(25),_("ngModel",e.facade.settings.display.darkMode.source),o(),S(e.options.darkMode),o(3),_("ngModel",e.facade.settings.display.nightMode),o(6),_("ngModel",e.facade.settings.display.fab),o(),S(e.fabOptions()),o(3),h("disabled",!e.wakeLock.isAvailable),_("ngModel",e.facade.settings.display.disableWakelock),o(3),_("ngModel",e.facade.settings.display.preferInfoPanel),o(3),_("ngModel",e.facade.settings.display.splitView),o(5),T(e.facade.applicationList.length>1?50:-1),o(),T(e.show.favourites()?51:-1),o(9),_("ngModel",e.facade.settings.display.muteSound),o(3),_("ngModel",e.facade.settings.display.depthAlarm.enabled),o(6),_("ngModel",e.facade.settings.display.depthAlarm.smoothing),h("disabled",!e.facade.settings.display.depthAlarm.enabled),o(),S(e.options.alarm.smoothing),o(9),_("ngModel",e.facade.settings.display.statusBar.liveEta),o(5),k("Reference Boat Speed (",e.speedUnitSymbol,")"),o(),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.referenceSpeed),o(2),T(g.invalid&&(g.dirty||g.touched)?87:-1),o(5),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.tapFadeSpeed),o(2),T(r.invalid&&(r.dirty||r.touched)?94:-1),o(11),_("ngModel",e.facade.settings.display.windIndicator),o(),S(e.options.windIndicator),o(14),h("disabled",!e.app.serverConfig.unitPreferences()),_("ngModel",e.facade.settings.units.useServerPrefs),o(8),h("disabled",e.unitFromServer("distance")),_("ngModel",e.facade.settings.units.distance),o(2),S(e.options.availableUnits.distance),o(6),h("disabled",e.unitFromServer("depth")),_("ngModel",e.facade.settings.units.depth),o(),S(e.options.availableUnits.depth),o(6),h("disabled",e.unitFromServer("length")),_("ngModel",e.facade.settings.units.length),o(),S(e.options.availableUnits.length),o(6),h("disabled",e.unitFromServer("temperature")),_("ngModel",e.facade.settings.units.temperature),o(),S(e.options.availableUnits.temperature),o(6),h("disabled",e.unitFromServer("speed")),_("ngModel",e.facade.settings.units.speed),o(),S(e.options.availableUnits.speed),o(3),T(e.options.preferredValues.coords.length!==0?161:-1),o(),T(e.options.preferredValues.heading.length!==0?162:-1),o(18),_("ngModel",e.facade.settings.map.labelsMinZoom),o(),S(e.options.zoomLevels),o(9),h("min",-e.centerOffsetLimit)("max",e.centerOffsetLimit),_("ngModel",e.facade.settings.map.centerOffset.y),o(5),h("min",-e.centerOffsetLimit)("max",e.centerOffsetLimit),_("ngModel",e.facade.settings.map.centerOffset.x),o(3),_("ngModel",e.facade.settings.map.popoverMulti),o(3),_("ngModel",e.facade.settings.map.animation),o(3),_("ngModel",e.facade.settings.map.doubleClickZoom),o(3),_("ngModel",e.facade.settings.map.overZoomTiles),o(6),_("ngModel",e.facade.settings.map.panBehavior),o(),S(e.options.map.panBehavior),o(2),T(e.facade.settings.map.panBehavior==="exit"?216:-1),o(10),_("ngModel",e.facade.settings.map.s57Options.graphicsStyle),o(),S(e.options.map.s57.graphicsStyle),o(6),_("ngModel",e.facade.settings.map.s57Options.boundaries),o(),S(e.options.map.s57.boundaries),o(6),_("ngModel",e.facade.settings.map.s57Options.colorTable),o(),S(e.options.map.s57.colorTables),o(6),_("ngModel",e.facade.settings.map.s57Options.colors),o(),S(e.options.map.s57.colors),o(7),_("ngModel",e.facade.settings.map.s57Options.shallowDepth),o(2),T(oe.invalid&&(oe.dirty||oe.touched)?257:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.safetyDepth),o(2),T(re.invalid&&(re.dirty||re.touched)?266:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.deepDepth),o(2),T(se.invalid&&(se.dirty||se.touched)?275:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.otherLayers),o(),S(e.options.map.s57.otherLayers),o(15),_("ngModel",e.facade.settings.course.arrivalCircle),o(2),T(le.invalid&&(le.dirty||le.touched)?300:-1),o(5),_("ngModel",e.facade.settings.course.autoNextPointOnArrival),o(8),h("disabled",pe.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointTrigger),o(2),S(e.options.course.nextPointTrigger),o(6),h("disabled",pe.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointDelay),o(),S(e.options.course.nextPointDelay),o(20),_("ngModel",e.facade.settings.vessels.iconType),o(),S(e.options.vessel.selfIconType),o(4),_("ngModel",e.facade.settings.vessels.iconScale),o(),S(e.options.vessel.selfIconScale),o(4),_("ngModel",e.facade.settings.vessels.iconActualSize),o(5),_("ngModel",e.facade.settings.vessels.fixedLocationMode),o(8),_("ngModel",e.facade.fixedPosition[1]),h("disabled",!_e.checked),o(2),T(de.invalid&&(de.dirty||de.touched)?367:-1),o(4),_("ngModel",e.facade.fixedPosition[0]),h("disabled",!_e.checked),o(2),T(ge.invalid&&(ge.dirty||ge.touched)?373:-1),o(9),_("ngModel",e.facade.settings.vessels.windVectors),o(2),_("ngModel",e.facade.settings.vessels.laylines),o(12),_("ngModel",e.facade.settings.vessels.selfLines.heading.length),o(),S(e.options.vessel.headingLine),o(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),o(11),_("ngModel",e.facade.settings.vessels.selfLines.cog.length),o(),S(e.options.vessel.cogLine),o(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),o(4),_("ngModel",e.facade.settings.vessels.rangeCircles),o(7),_("ngModel",e.facade.settings.vessels.rangeCircleCount),h("disabled",!e.facade.settings.vessels.rangeCircles),o(),S(e.options.rangeCircles.count),o(6),_("ngModel",e.facade.settings.vessels.rangeCircleMinZoom),h("disabled",!e.facade.settings.vessels.rangeCircles),o(),S(e.options.rangeCircles.zoomLevels),o(4),_("ngModel",e.facade.settings.vessels.rangeCirclesFixed),h("disabled",!e.facade.settings.vessels.rangeCircles),o(5),k(" Distance between circles (",e.renderSymbol(e.facade.settings.units.distance),") "),o(),_("ngModel",e.formattedNumberModel.rangeCirclesDistance),h("disabled",!e.facade.settings.vessels.rangeCircles||!e.facade.settings.vessels.rangeCirclesFixed),o(2),T(me.invalid&&(me.dirty||me.touched)?446:-1),o(7),_("ngModel",e.facade.settings.vessels.trail),o(7),h("disabled",!e.facade.settings.vessels.trail),_("ngModel",e.facade.settings.vessels.trailSource),o(3),h("disabled",!e.serverTrailAvailable),o(4),T(e.serverTrailAvailable?e.facade.settings.vessels.trailSource==="auto"?468:-1:467),o(3),h("max",e.trailLengthAllStop)("displayWith",e.trailLengthStopLabel)("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),_("ngModel",e.trailLengthStop),o(),k(" Length (",e.trailLengthText,") "),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.lastHour),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.highResolution),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.next23),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.highResolution),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.beyond24),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.mediumResolution),o(8),_("ngModel",e.facade.settings.vessels.aisShowTrack),o(3),_("ngModel",e.aisStateFilter.moored),o(3),_("ngModel",e.aisStateFilter.anchored),o(2),T(e.facade.settings.vessels.aisShowTrack?-1:509),o(6),_("ngModel",e.facade.settings.vessels.aisStaleAge),o(),S(e.options.vessel.aisTimeouts),o(6),_("ngModel",e.facade.settings.vessels.aisMaxAge),o(),S(e.options.vessel.aisTimeouts),o(6),_("ngModel",e.facade.settings.vessels.aisWindApparent),o(),S(e.options.preferredValues.wind),o(6),_("ngModel",e.facade.settings.vessels.aisWindMinZoom),o(),S(e.options.zoomLevels),o(6),_("ngModel",e.facade.settings.vessels.aisCogLine),o(),S(e.options.vessel.aisCogLine),o(12),_("ngModel",e.facade.settings.ui.showNotes),o(6),h("disabled",!e.facade.settings.ui.showNotes),_("value",e.facade.settings.resources.notes.minZoom),o(),S(e.options.zoomLevels),o(6),C("Fetch Notes radius: ("+e.options.availableUnits.distance.get(t.value)+")"),o(),h("disabled",!e.facade.settings.ui.showNotes),_("ngModel",e.facade.settings.resources.notes.getRadius),o(),S(e.options.resources.noteRadius),o(7),_("ngModel",e.facade.settings.resources.notes.rootFilter),o(2),T(Tt.value?580:-1),o(3),_("ngModel",e.facade.settings.resources.notes.groupNameEdit),o(3),_("ngModel",e.facade.settings.resources.notes.groupRequiresPosition),o(4),_("ngModel",e.facade.settings.display.singleClickNoteDetails),o(13),S(e.facade.resourcePathList),o(2),T(e.app.featureFlags().radarApi?605:-1),o(19),_("ngModel",e.facade.settings.signalk.vessels),o(3),_("ngModel",e.facade.settings.signalk.atons),o(3),_("ngModel",e.facade.settings.signalk.aircraft),o(3),_("ngModel",e.facade.settings.signalk.sar),o(3),_("ngModel",e.facade.settings.signalk.meteo),o(7),_("ngModel",e.facade.settings.signalk.maxRadius),o(2),S(e.options.vessel.aisMaxRadius),o(17),_("ngModel",e.facade.settings.resources.video.enable),o(6),h("disabled",!e.facade.settings.resources.video.enable),_("ngModel",e.facade.settings.resources.video.url),o(2),T(Dt.invalid?670:-1),o(3),_("ngModel",e.facade.settings.experiments)}},dependencies:[Z,G,xe,H,Ae,Be,Ie,Oe,z,be,ve,Ge,Ue,te,_t,ee,Re,Fe,Ne,Ye,Xe,je,qe,R,Ee,De,N,Te,$,Qe,yt,ft,ht,ct,Q,q,K,ze,He,Ze,J,Y,Ke,X,j,mt,et,$e,dt,st,lt,ae,ie],styles:["[_nghost-%COMP%] .mat-dialog-content{padding:0 4px}[_nghost-%COMP%] .mat-mdc-dialog-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:none;overflow:hidden}[_nghost-%COMP%] .mat-mdc-dialog-content .mat-mdc-tab-group, [_nghost-%COMP%] .mat-mdc-dialog-content .mat-mdc-tab-body-wrapper{flex:1 1 auto;min-height:0}.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}.settings[_ngcontent-%COMP%] .setting-card-row-item.setting-card-row-stack[_ngcontent-%COMP%]{flex-basis:220px}.settings[_ngcontent-%COMP%] .setting-field-group-title[_ngcontent-%COMP%]{font-size:10pt;font-family:Arial,Helvetica,sans-serif;opacity:.7;line-height:1.4;min-height:1.4em;padding-bottom:2px}.settings[_ngcontent-%COMP%] .setting-field-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.settings[_ngcontent-%COMP%] .setting-field-group[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:0 1 150px;min-width:80px}@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{bt as SettingsDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$b as a}from"./chunk-
|
|
1
|
+
import{$b as a}from"./chunk-6JTVABJT.js";import"./chunk-YBVURHD5.js";import"./chunk-CI2BDMX2.js";import"./chunk-DSUCHYD7.js";import"./chunk-MZ3YWFFB.js";import"./chunk-SIFYI3HU.js";import"./chunk-GJZ7P5CR.js";import"./chunk-RENDTMDT.js";import"./chunk-DN6IX7CO.js";import"./chunk-ZQSUYMH2.js";import"./chunk-DC5AFSD6.js";import"./chunk-2QKJQDG4.js";import"./chunk-LEEF5WZZ.js";import"./chunk-7FANVIZX.js";import"./chunk-K4EGDHPT.js";import"./chunk-RYULE37H.js";import"./chunk-R6ABX6RX.js";import"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";export{a as Trail2RouteDialog};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-7PF3OZ2P.js";import{Ha as ce,Ia as pe,bc as de,l as Q,m as Y,n as Z,o as ee,p as te,v as oe,wa as le,xa as re,y as se}from"./chunk-
|
|
1
|
+
import{a as S}from"./chunk-7PF3OZ2P.js";import{Ha as ce,Ia as pe,bc as de,l as Q,m as Y,n as Z,o as ee,p as te,v as oe,wa as le,xa as re,y as se}from"./chunk-6JTVABJT.js";import{a as ie,b as ne,c as ae}from"./chunk-YBVURHD5.js";import"./chunk-CI2BDMX2.js";import{a as z,b as q}from"./chunk-DSUCHYD7.js";import{j as B,k as j,l as H}from"./chunk-MZ3YWFFB.js";import"./chunk-SIFYI3HU.js";import{a as J}from"./chunk-GJZ7P5CR.js";import"./chunk-RENDTMDT.js";import"./chunk-DN6IX7CO.js";import"./chunk-ZQSUYMH2.js";import{j as N,o as U}from"./chunk-DC5AFSD6.js";import{$a as $,Fa as X,Ga as R,Ja as O,La as W,Na as V,Oa as F,Wa as K,Ya as A,i as E,rb as L}from"./chunk-2QKJQDG4.js";import"./chunk-LEEF5WZZ.js";import"./chunk-7FANVIZX.js";import"./chunk-K4EGDHPT.js";import"./chunk-RYULE37H.js";import{$b as I,Db as f,Hb as u,Jb as p,Oa as r,Tb as T,Wa as D,X as y,Yb as c,Zb as P,_a as M,_b as G,ba as m,ca as h,nb as g,ob as x,qb as b,rb as v,sb as w,tb as _,ub as a,vb as s,wb as C}from"./chunk-R6ABX6RX.js";import"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import{g as k}from"./chunk-BZGM3F3K.js";function _e(l,e){if(l&1){let t=f();a(0,"button",11),u("click",function(){m(t);let i=p();return h(i.load())}),a(1,"mat-icon"),c(2,"file_upload"),s(),c(3," \xA0Load "),s()}if(l&2){let t=p();_("disabled",!t.display.loadRoutesOK&&!t.display.loadWaypointsOK&&!t.display.loadTracksOK)}}function ue(l,e){l&1&&(a(0,"div",10)(1,"div")(2,"b"),c(3,"Invalid GPX Data:"),s(),C(4,"br")(5,"br"),a(6,"i"),c(7,"Selected file does not contain GPX data or"),C(8,"br"),c(9," does not correctly implement namespaced <extensions> attributes."),s()()())}function fe(l,e){l&1&&C(0,"mat-progress-bar",12)}function ge(l,e){if(l&1){let t=f();a(0,"div",23)(1,"div",24),c(2),s(),a(3,"div",25)(4,"mat-checkbox",26,0),u("change",function(){let i=m(t).$index,o=T(5),d=p(4);return h(d.checkWpt(o.checked,i))}),s()()()}if(l&2){let t=e.$implicit,n=e.$index,i=p(4);r(2),P(t.name),r(2),_("checked",i.selWaypoints[n])}}function xe(l,e){if(l&1){let t=f();a(0,"div",13)(1,"mat-expansion-panel",16),u("opened",function(){m(t);let i=p(3);return h(i.display.expand.waypoints=!0)})("closed",function(){m(t);let i=p(3);return h(i.display.expand.waypoints=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",18),c(5,"place"),s(),c(6," \xA0\xA0 "),a(7,"b"),c(8,"Waypoints:"),s()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),c(12),s(),a(13,"span",20)(14,"mat-checkbox",21),u("change",function(i){m(t);let o=p(3);return h(o.checkWpt(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),s()()()()(),a(15,"div",22),v(16,ge,6,2,"div",23,b),s()()()}if(l&2){let t=p(3);r(),_("expanded",t.display.expand.waypoints),r(11),I(" (",t.display.selCount.waypoints," of ",t.gpxData.waypoints.length,") "),r(2),_("indeterminate",t.display.someWptChecked)("checked",t.display.allWaypointsChecked)("disabled",t.gpxData.waypoints.length===0),r(2),w(t.gpxData.waypoints)}}function ye(l,e){if(l&1){let t=f();a(0,"div",23)(1,"div",24),c(2),s(),a(3,"div",25)(4,"mat-checkbox",29,1),u("change",function(){let i=m(t).$index,o=T(5),d=p(4);return h(d.checkRte(o.checked,i))}),s()()()}if(l&2){let t=e.$implicit,n=e.$index,i=p(4);r(2),P(t.name),r(2),_("checked",i.selRoutes[n])}}function Ce(l,e){if(l&1){let t=f();a(0,"div",13)(1,"mat-expansion-panel",16),u("opened",function(){m(t);let i=p(3);return h(i.display.expand.routes=!0)})("closed",function(){m(t);let i=p(3);return h(i.display.expand.routes=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",27),c(5,"directions"),s(),c(6," \xA0\xA0 "),a(7,"b"),c(8,"Routes:"),s()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),c(12),s(),a(13,"span",20)(14,"mat-checkbox",28),u("change",function(i){m(t);let o=p(3);return h(o.checkRte(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),s()()()()(),a(15,"div",22),v(16,ye,6,2,"div",23,b),s()()()}if(l&2){let t=p(3);r(),_("expanded",t.display.expand.routes),r(11),I(" (",t.display.selCount.routes," of ",t.gpxData.routes.length,") "),r(2),_("indeterminate",t.display.someRteChecked)("checked",t.display.allRoutesChecked)("disabled",t.gpxData.routes.length==0),r(2),w(t.gpxData.routes)}}function ke(l,e){if(l&1){let t=f();a(0,"div",23)(1,"div",24),c(2),s(),a(3,"div",25)(4,"mat-checkbox",32,2),u("change",function(){let i=m(t).$index,o=T(5),d=p(4);return h(d.checkTrk(o.checked,i))}),s()()()}if(l&2){let t=e.$implicit,n=e.$index,i=p(4);r(2),P(t.name),r(2),_("checked",i.selTracks[n])}}function be(l,e){if(l&1){let t=f();a(0,"div",13)(1,"mat-expansion-panel",16),u("opened",function(){m(t);let i=p(3);return h(i.display.expand.tracks=!0)})("closed",function(){m(t);let i=p(3);return h(i.display.expand.tracks=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",30),c(5,"show_chart"),s(),c(6," \xA0\xA0 "),a(7,"b"),c(8,"Tracks:"),s()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),c(12),s(),a(13,"span",20)(14,"mat-checkbox",31),u("change",function(i){m(t);let o=p(3);return h(o.checkTrk(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),s()()()()(),a(15,"div",22),v(16,ke,6,2,"div",23,b),s()()()}if(l&2){let t=p(3);r(),_("expanded",t.display.expand.tracks),r(11),I(" (",t.display.selCount.tracks," of ",t.gpxData.tracks.length,") "),r(2),_("indeterminate",t.display.someTrkChecked)("checked",t.display.allTracksChecked)("disabled",t.gpxData.tracks.length==0),r(2),w(t.gpxData.tracks)}}function ve(l,e){if(l&1&&(a(0,"div",13)(1,"div",14)(2,"div"),c(3,"File:"),s(),a(4,"div",15),c(5),s()(),C(6,"mat-divider"),s(),g(7,xe,18,6,"div",13),g(8,Ce,18,6,"div",13),g(9,be,18,6,"div",13)),l&2){let t=p(2);r(5),G(" ",t.data.fileName," "),r(2),x(t.gpxData.waypoints.length!=0?7:-1),r(),x(t.gpxData.routes.length!=0?8:-1),r(),x(t.gpxData.tracks.length!=0&&t.app.tracksAvailable()?9:-1)}}function we(l,e){if(l&1&&(a(0,"div",10),g(1,fe,1,0,"mat-progress-bar",12)(2,ve,10,4),s()),l&2){let t=p();r(),x(t.app.sIsFetching()?1:2)}}var me=class l{constructor(e){this.data=e}data;gpxData={name:"",routes:[],waypoints:[],tracks:[]};selRoutes=[];selWaypoints=[];selTracks=[];display={notValid:!1,allRoutesChecked:!1,allWaypointsChecked:!1,allTracksChecked:!1,someWptChecked:!1,someRteChecked:!1,someTrkChecked:!1,loadRoutesOK:!1,loadWaypointsOK:!1,loadTracksOK:!1,routeViewer:!1,selCount:{routes:0,waypoints:0,tracks:0},expand:{routes:!1,waypoints:!1,tracks:!1}};errorCount=0;subCount=0;gpx=new S;app=y(de);dialogRef=y(X);skres=y(re);signalk=y(oe);symbols=y(se);ngOnInit(){this.data.fileData=this.data.fileData||null,this.parseGPXData(this.data.fileData)}ngOnDestroy(){this.clear()}load(){this.uploadToServer({rte:{selected:this.selRoutes},wpt:{selected:this.selWaypoints},trk:{selected:this.selTracks}})}parseGPXData(e){return k(this,null,function*(){this.display.allRoutesChecked=!1,this.display.loadRoutesOK=!1,this.selRoutes=[],this.display.allWaypointsChecked=!1,this.display.loadWaypointsOK=!1,this.selWaypoints=[],this.display.allTracksChecked=!1,this.display.loadTracksOK=!1,this.selTracks=[],this.display.selCount={routes:0,waypoints:0,tracks:0},this.display.expand={routes:!1,waypoints:!1,tracks:!1},this.display.notValid=!1;let t=yield this.parseFileData(e);if(!t){console.warn(`Selected file does not contain GPX data or
|
|
2
2
|
does not correctly implement namespaced <extensions> attributes`,"Invalid GPX Data:"),this.display.notValid=!0;return}this.gpxData=t,this.gpxData.routes.forEach(()=>{this.selRoutes.push(!1)}),this.selRoutes.length===1&&(this.selRoutes[0]=!0,this.display.allRoutesChecked=!0,this.display.expand.routes=!0,this.display.loadRoutesOK=!0,this.display.selCount.routes=1),this.gpxData.waypoints.forEach(()=>{this.selWaypoints.push(!1)}),this.selWaypoints.length===1&&(this.selWaypoints[0]=!0,this.display.allWaypointsChecked=!0,this.display.expand.waypoints=!0,this.display.loadWaypointsOK=!0,this.display.selCount.waypoints=1),this.gpxData.tracks.forEach(()=>{this.selTracks.push(!1)}),this.selTracks.length===1&&(this.selTracks[0]=!0,this.display.allTracksChecked=!0,this.display.expand.tracks=!0,this.display.loadTracksOK=!0,this.display.selCount.tracks=1)})}checkRte(e,t=-1){let n=0;if(t!==-1){this.selRoutes[t]=e,this.display.loadRoutesOK=e;for(let i of this.selRoutes)i&&n++;this.display.loadRoutesOK=n!==0,this.display.selCount.routes=n,this.display.allRoutesChecked=n===this.selRoutes.length}else{for(let i=0;i<this.selRoutes.length;i++)this.selRoutes[i]=e,this.display.loadRoutesOK=e,this.display.allRoutesChecked=e;this.display.selCount.routes=e?this.selRoutes.length:0}this.display.someRteChecked=!(this.display.allRoutesChecked||n===0)}checkWpt(e,t=-1){let n=0;if(t!==-1){this.selWaypoints[t]=e,this.display.loadWaypointsOK=e;for(let i of this.selWaypoints)i&&n++;this.display.loadWaypointsOK=n!==0,this.display.selCount.waypoints=n,this.display.allWaypointsChecked=n===this.selWaypoints.length}else{for(let i=0;i<this.selWaypoints.length;i++)this.selWaypoints[i]=e,this.display.loadWaypointsOK=e,this.display.allWaypointsChecked=e;this.display.selCount.waypoints=e?this.selWaypoints.length:0}this.display.someWptChecked=!(this.display.allWaypointsChecked||n===0)}checkTrk(e,t=-1){let n=0;if(t!==-1){this.selTracks[t]=e,this.display.loadTracksOK=e;for(let i of this.selTracks)i&&n++;this.display.loadTracksOK=n!==0,this.display.selCount.tracks=n,this.display.allTracksChecked=n===this.selTracks.length}else{for(let i=0;i<this.selTracks.length;i++)this.selTracks[i]=e,this.display.loadTracksOK=e,this.display.allTracksChecked=e;this.display.selCount.tracks=e?this.selTracks.length:0}this.display.someTrkChecked=!(this.display.allTracksChecked||n===0)}clear(){this.gpx=new S}parseFileData(e){return k(this,null,function*(){let t={name:"",routes:[],waypoints:[],tracks:[]};if(this.gpx=new S,this.app.sIsFetching.set(!0),!(yield this.gpx.parse(e)))return this.app.sIsFetching.set(!1),null;let n=1;return this.gpx.rte.forEach(i=>{t.routes.push({name:i.name!==""?i.name:`Rte: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:"",wptcount:i.rtept.length}),n++}),n=1,this.gpx.wpt.forEach(i=>{t.waypoints.push({name:i.name?i.name:`Wpt: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:""}),n++}),n=1,this.gpx.trk.forEach(i=>{t.tracks.push({name:i.name?i.name:`Trk: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:""}),n++}),this.app.sIsFetching.set(!1),t})}uploadToServer(e){return k(this,null,function*(){this.app.sIsFetching.set(!0),this.errorCount=0,this.subCount=0;for(let n=0;n<e.rte.selected.length;n++)e.rte.selected[n]&&this.transformRoute(this.gpx.rte[n]);for(let n=0;n<e.wpt.selected.length;n++)e.wpt.selected[n]&&this.transformWaypoint(this.gpx.wpt[n]);let t=[];for(let n=0;n<e.trk.selected.length;n++)if(e.trk.selected[n]){let i=this.gpx.trk[n],o=this.transformTrack(i);this.subCount++;try{let d=yield this.skres.importTrack(o.feature,le((i.trkseg??[]).map(he=>he.trkpt)));this.subCount--,t.push(d),this.app.debug("SUCCESS: Track added."),this.checkComplete()}catch(d){this.errorCount++,this.subCount--,this.logError(d),this.checkComplete()}}t.length!==0&&this.skres.trackAddFromServer(t)})}errorList=[];logError(e){if(e instanceof E){let t=e.error?e.error.message:e.message;this.errorList.push({status:e.status,message:t})}else this.errorList.push({status:void 0,message:e instanceof Error?e.message:String(e)})}checkComplete(){this.subCount===0&&(this.app.sIsFetching.set(!1),this.app.saveConfig(),this.dialogRef.close({errCount:this.errorCount,errList:this.errorList}),this.app.debug(`GPXLoad: complete: ${this.errorCount}`))}transformRoute(e){let t=this.skres.buildRoute(e.rtept.map(o=>[o.lon,o.lat])),n=t[1];n.name=e.name??"",n.description=e.desc??"";let i=n.feature.properties??={};e.cmt&&(i.cmt=e.cmt),e.src&&(i.src=e.src),e.number&&(i.number=e.number),e.type&&(i.type=e.type),i.coordinatesMeta=[],i.coordinatesMeta=e.rtept.map(o=>{let d={name:o.name??""};return o.cmt&&(d.description=o.cmt),d}),this.subCount++,this.signalk.api.put(this.app.skApiVersion,`/resources/routes/${t[0]}`,t[1]).subscribe(o=>{this.subCount--,Math.floor(o.statusCode/100)===2?(this.app.debug("SUCCESS: Route added."),this.skres.selectionAdd("routes",t[0])):this.errorCount++,this.checkComplete()},o=>{this.errorCount++,this.subCount--,this.logError(o),this.checkComplete()})}transformWaypoint(e){let t=this.skres.buildWaypoint([e.lon,e.lat]),n=t[1],i=n.feature.properties??={};if(e.ele&&n.feature.geometry.coordinates.push(e.ele),e.name&&e.name.length!==0&&(n.name=e.name),e.desc&&e.desc.length!==0&&(n.description=e.desc),e.type&&(n.type=e.type,i.type=e.type),e.cmt&&(i.cmt=e.cmt),e.src&&(i.src=e.src),e.sym){i.sym=e.sym;let o=this.symbols.resolveGpxSym(e.sym);o&&(n.type="waypoint",i.skIcon=o)}this.subCount++,this.signalk.api.put(this.app.skApiVersion,`/resources/waypoints/${t[0]}`,t[1]).subscribe(o=>{this.subCount--,Math.floor(o.statusCode/100)===2?(this.app.debug("SUCCESS: Waypoint added."),this.skres.selectionAdd("waypoints",t[0])):this.errorCount++,this.checkComplete()},o=>{this.errorCount++,this.subCount--,this.logError(o),this.checkComplete()})}transformTrack(e){let t={},n={feature:{type:"Feature",geometry:{type:"MultiLineString",coordinates:[]},properties:t,id:""}};return e.trkseg&&e.trkseg.forEach(i=>{let o=[];i.trkpt.forEach(d=>{o.push([d.lon,d.lat])}),n.feature.geometry.coordinates.push(o)}),e.name&&e.name.length!==0?t.name=e.name:t.name=`gpxtrk #${Math.random().toString().slice(-5)}`,e.desc&&e.desc.length!==0&&(t.description=e.desc),e.cmt&&(t.cmt=e.cmt),e.src&&(t.src=e.src),e.type&&(t.type=e.type),n}static \u0275fac=function(t){return new(t||l)(D(R))};static \u0275cmp=M({type:l,selectors:[["gpxload-dialog"]],decls:13,vars:3,consts:[["wval",""],["rval",""],["tval",""],[1,"gpxload-dialog"],[2,"background-color","transparent"],[2,"display","flex","width","100%"],["mat-raised-button","","matTooltip","Load selected resources","matTooltipPosition","right",2,"width","85px",3,"disabled"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click","disabled"],["mat-dialog-content",""],["mat-raised-button","","matTooltip","Load selected resources","matTooltipPosition","right",2,"width","85px",3,"click","disabled"],["mode","indeterminate"],[1,"card-group"],[2,"display","flex"],[2,"flex","1 1 auto","padding-left","10px","overflow","hidden","display","-webkit-box","-webkit-box-orient","vertical","-webkit-line-clamp","1","line-clamp","1","text-overflow","ellipsis"],[3,"opened","closed","expanded"],[2,"padding","0 12px"],[1,"icon-waypoint"],[1,"pnlSelectedItems"],[1,"pnlSelect"],["matTooltip","Select all Waypoints","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],[1,"list-container-scrollable"],[1,"item-row"],[1,"name"],[1,"check"],["matTooltip","Select Waypoint","matTooltipPosition","below",3,"change","checked"],[1,"icon-route"],["matTooltip","Select all Routes","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],["matTooltip","Select this Route","matTooltipPosition","below",3,"change","checked"],[1,"icon-track"],["matTooltip","Select all Tracks","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],["matTooltip","Select this Track","matTooltipPosition","below",3,"change","checked"]],template:function(t,n){t&1&&(a(0,"div",3)(1,"mat-toolbar",4)(2,"div",5)(3,"div"),g(4,_e,4,1,"button",6),s(),a(5,"div",7),c(6,"Import GPX"),s(),a(7,"div",8)(8,"button",9),u("click",function(){return n.dialogRef.close(-1)}),a(9,"mat-icon"),c(10,"close"),s()()()()(),g(11,ue,10,0,"div",10)(12,we,3,1,"div",10),s()),t&2&&(r(4),x(n.app.sIsFetching()?-1:4),r(4),_("disabled",n.app.sIsFetching()),r(3),x(n.display.notValid?11:12))},dependencies:[ne,ie,pe,ce,W,O,F,V,$,A,K,B,N,U,q,z,te,Q,Y,ee,Z,H,j,ae,J,L],styles:[".gpxload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0 12px 6px}.card-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}.item-row[_ngcontent-%COMP%]{display:flex;width:100%;padding:2px 0}.item-row[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-overflow:ellipsis;line-height:2.5em}.item-row[_ngcontent-%COMP%] .check[_ngcontent-%COMP%]{text-align:right;padding-right:15px}.pnlSelectedItems[_ngcontent-%COMP%]{display:none;line-height:2.9em}.pnlSelect[_ngcontent-%COMP%]{flex:1 1 auto;padding-left:3px;padding-right:3px;text-align:right}.txtSelect[_ngcontent-%COMP%]{display:none}button[_ngcontent-%COMP%]{min-width:unset;padding:unset}@media only screen and (min-width:400px){.pnlSelectedItems[_ngcontent-%COMP%]{display:inline}}@media only screen and (min-width:475px){.pnlSelectedItems[_ngcontent-%COMP%]{display:inline;line-height:2.9em}.txtSelect[_ngcontent-%COMP%]{display:inline}.pnlSelect[_ngcontent-%COMP%]{flex:1 1 auto;padding-left:20px;padding-right:15px;text-align:right}button[_ngcontent-%COMP%]{min-width:inherit;padding:inherit}}"]})};export{me as GPXImportDialog};
|
package/public/index.html
CHANGED
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</app-root>
|
|
57
|
-
<link rel="modulepreload" href="chunk-VT4GQY5X.js"><link rel="modulepreload" href="chunk-
|
|
57
|
+
<link rel="modulepreload" href="chunk-VT4GQY5X.js"><link rel="modulepreload" href="chunk-6JTVABJT.js"><link rel="modulepreload" href="chunk-YBVURHD5.js"><link rel="modulepreload" href="chunk-CI2BDMX2.js"><link rel="modulepreload" href="chunk-DSUCHYD7.js"><link rel="modulepreload" href="chunk-MZ3YWFFB.js"><link rel="modulepreload" href="chunk-SIFYI3HU.js"><link rel="modulepreload" href="chunk-GJZ7P5CR.js"><link rel="modulepreload" href="chunk-RENDTMDT.js"><link rel="modulepreload" href="chunk-DN6IX7CO.js"><script src="polyfills-LVNOU2XZ.js" type="module"></script><script src="main-WXGVUWZE.js" type="module"></script></body>
|
|
58
58
|
</html>
|