@signalk/freeboard-sk 2.24.2 → 3.0.0-beta.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/README.md +16 -0
- package/docs/screenshots/2_freeboard-sk.jpg +0 -0
- package/docs/screenshots/3_freeboard-sk.jpg +0 -0
- package/package.json +13 -8
- package/public/3rdpartylicenses.txt +70 -19
- package/public/assets/img/no-such-symbol.svg +4 -0
- package/public/chunk-2GXI757Z.js +1 -0
- package/public/chunk-7OJ7YZPE.js +1010 -0
- package/public/chunk-A626ZBXE.js +3871 -0
- package/public/chunk-CSNMIJA3.js +1612 -0
- package/public/chunk-EU3YXT24.js +929 -0
- package/public/chunk-ILSUTX3X.js +1 -0
- package/public/chunk-JJ245XTQ.js +1 -0
- package/public/chunk-NM5IDVR6.js +107 -0
- package/public/chunk-NMXQ543J.js +1 -0
- package/public/chunk-P5D5HOAL.js +1709 -0
- package/public/{chunk-LXUTMJYP.js → chunk-QNWLXTD7.js} +1 -1
- package/public/chunk-RS6VYSOP.js +1 -0
- package/public/chunk-VUZVHRKQ.js +1 -0
- package/public/chunk-WPZCQDE4.js +1 -0
- package/public/chunk-WRR2LL5R.js +1 -0
- package/public/chunk-WWDDTAFW.js +2 -0
- package/public/chunk-XP3I253N.js +1 -0
- package/public/index.html +1 -1
- package/public/main-IKMWD43W.js +466 -0
- package/public/worker-5T47RUMR.js +3 -0
- package/public/chunk-2AF4T5IB.js +0 -1
- package/public/chunk-3GHIRJ3C.js +0 -2
- package/public/chunk-A4TULHTL.js +0 -1
- package/public/chunk-AFVK3UQJ.js +0 -5482
- package/public/chunk-AX3UMUXB.js +0 -1
- package/public/chunk-EFVTFEXB.js +0 -1
- package/public/chunk-FALIRPMH.js +0 -1035
- package/public/chunk-G4GM24WE.js +0 -1
- package/public/chunk-NTIQMWPW.js +0 -2718
- package/public/chunk-QIOZNURQ.js +0 -1
- package/public/chunk-SBFXQ3G7.js +0 -1
- package/public/main-AZEF35BN.js +0 -466
- package/public/worker-AUTVLQL7.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as Qt,c as qt,i as $t,j as Ut,l as Ne,n as Gt,o as Wt}from"./chunk-7OJ7YZPE.js";import{$a as g,$b as Ge,Ad as De,Ba as R,Bc as _e,Bd as de,Ca as k,Cc as We,Cd as Se,Da as x,Dc as Fe,Dd as le,E as re,Eb as Ue,Ec as St,F as dt,Fa as B,G as F,Ga as L,Gb as Oe,Ha as N,Hc as Me,I as lt,Ia as h,Ic as Xe,Id as Be,J as Ee,Ja as c,Jb as yt,Jc as wt,K as Q,Ka as o,Kd as Le,L as q,La as C,Ld as Bt,Ma as qe,Mb as Ct,Mc as It,Md as Lt,N as d,Na as $e,Nd as Z,O as A,P as O,Q as mt,Qc as Tt,Qd as ie,R as pt,Ra as V,S as ve,Sa as X,Sc as Et,Sd as K,T as ht,Ta as ee,Tb as ne,Td as Y,Ua as u,Ud as Nt,V as $,Vb as I,W as he,Wa as p,Wb as ze,Wd as Vt,X as T,Xa as P,Ya as D,Yc as At,Yd as jt,Z as Ae,Za as be,_ as ke,_a as j,_c as Ot,a as ct,aa as U,ab as v,ad as zt,ba as xe,c as z,da as ut,ea as He,eb as S,fb as gt,gb as w,gd as Rt,h as Te,ha as s,ia as Qe,ib as te,ic as Re,ja as J,jb as m,je as Ht,k as st,kb as E,kc as Mt,la as bt,lb as y,mc as Pe,nd as Pt,oa as _t,pa as b,pd as oe,qa as G,qc as Dt,ra as _,rd as Ft,sc as ae,ta as W,tb as vt,ua as ue,ub as ye,va as ft,wb as Ce,xb as kt,xd as ce,yb as xt,yd as se}from"./chunk-P5D5HOAL.js";import{a as pe}from"./chunk-EQVTEUXC.js";var yn=["*"],Cn=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],Mn=[`mat-card-title, mat-card-subtitle,
|
|
2
2
|
[mat-card-title], [mat-card-subtitle],
|
|
3
3
|
[matCardTitle], [matCardSubtitle]`,`[mat-card-image], [matCardImage],
|
|
4
4
|
[mat-card-sm-image], [matCardImageSmall],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as y,d as S,e as k,g as E,k as R,n as B}from"./chunk-CSNMIJA3.js";import"./chunk-NM5IDVR6.js";import{Ad as L,Bd as C,Cd as w,Dd as P,Ga as f,Ha as u,Ja as e,Ka as a,Nd as W,O as s,P as g,Qd as v,Sa as M,Sd as T,Td as h,Ua as c,Wa as _,ha as l,jb as o,kb as D,lb as A,ma as r,mb as x,pa as p,xd as b,yd as I}from"./chunk-P5D5HOAL.js";import"./chunk-EQVTEUXC.js";var F=(n,i)=>i.extension+"/"+i.widget.id;function O(n,i){if(n&1){let t=M();e(0,"button",4),c("click",function(){let m=s(t).$implicit,j=_();return g(j.dialogRef.close(m))}),e(1,"span",5),o(2),a(),e(3,"span",6),o(4),a()()}if(n&2){let t=i.$implicit;l(2),D(t.widget.title),l(2),x("",t.extensionName," \xB7 ",t.widget.size)}}var N=class n{constructor(i,t){this.dialogRef=i;this.data=t;this.anchorLabel=B[t.anchor]}anchorLabel;static \u0275fac=function(t){return new(t||n)(r(b),r(I))};static \u0275cmp=p({type:n,selectors:[["fb-plotterext-add-widget"]],decls:12,vars:1,consts:[["mat-dialog-title","",1,"pe-add-title"],["mat-list-item",""],["align","end"],["mat-button","",3,"click"],["mat-list-item","",3,"click"],["matListItemTitle",""],["matListItemLine",""]],template:function(t,d){t&1&&(e(0,"div",0)(1,"mat-icon"),o(2,"widgets"),a(),e(3,"span"),o(4),a()(),e(5,"mat-dialog-content")(6,"mat-action-list"),f(7,O,5,3,"button",1,F),a()(),e(9,"mat-dialog-actions",2)(10,"button",3),c("click",function(){return d.dialogRef.close()}),o(11,"Cancel"),a()()),t&2&&(l(4),A("Add widget \u2014 ",d.anchorLabel),l(3),u(d.data.candidates))},dependencies:[P,L,w,C,v,W,h,T,R,k,E,S,y],styles:[".pe-add-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}"]})};export{N as PlotterAddWidgetDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ea as a}from"./chunk-A626ZBXE.js";import"./chunk-CSNMIJA3.js";import"./chunk-QNWLXTD7.js";import"./chunk-EU3YXT24.js";import"./chunk-NM5IDVR6.js";import"./chunk-7OJ7YZPE.js";import"./chunk-P5D5HOAL.js";import"./chunk-EQVTEUXC.js";export{a as Trail2RouteDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as L,Aa as at,F as Xe,L as Ye,M as Je,N as Qe,da as $e,e as Le,ea as $,f as K,fa as ee,ja as et,ka as tt,la as it,n as Ze,o as He,p as Ke,q as O,s as ze,t as qe,z as je,za as nt}from"./chunk-A626ZBXE.js";import{a as We,h as Ve,j as ke,k as Pe}from"./chunk-CSNMIJA3.js";import{a as Be,d as Oe,i as Ie,j as Fe,k as Ae}from"./chunk-QNWLXTD7.js";import{a as xe,b as Y,c as J,d as Ge,e as Q}from"./chunk-EU3YXT24.js";import"./chunk-NM5IDVR6.js";import{c as z,d as Ne,f as Re,i as q,j as Ue,n as j,o as X}from"./chunk-7OJ7YZPE.js";import{Ba as B,Bd as ye,Ca as T,Da as D,Dd as Se,Fa as b,Ga as y,Ha as S,Hb as F,Ia as h,Ja as i,Ka as n,La as E,Lb as fe,Ld as Ce,Mb as A,N as W,Nd as Me,O as m,P as c,Q as x,Qd as N,R as me,Sa as V,Sd as we,Td as R,Ua as p,V as ce,Vd as U,Wa as M,X as I,Y as pe,_d as G,aa as _e,be as Z,ce as ve,eb as w,fe as be,ge as Te,ha as r,hb as ue,he as De,ie as Ee,jb as s,je as H,kb as C,lb as k,nb as _,ob as u,pa as P,pb as f,xd as he}from"./chunk-P5D5HOAL.js";import"./chunk-EQVTEUXC.js";var _t=(l,d)=>d[0];function ut(l,d){if(l&1&&(i(0,"mat-option",8),x(),i(1,"svg",6),E(2,"line",7),n()()),l&2){let a=d.$implicit;h("value",a),r(2),B("stroke-width",a)}}function ft(l,d){if(l&1&&(i(0,"mat-option",8),x(),i(1,"svg",6),E(2,"line",9),n()()),l&2){let a=d.$implicit;h("value",a[0]),r(2),B("stroke-dasharray",a[1])}}var te=class l{color=A("#ff0000");dash=A("none");weight=A(1);_color=F(()=>this.color());_dash=F(()=>this.dash());_weight=F(()=>this.weight());selectionChange=fe();app=W(L);line={dashArrays:this.app.lineDashMap,weights:[1,2,3,4,5]};constructor(){}ngOnInit(){}onSelectChange(d){let a=this.app.formatLineDashArray(this._dash());this.selectionChange.emit({lineStyle:{fill:{color:this._color()},stroke:{color:this._color(),width:this._weight(),lineDash:a}},config:{color:this._color(),weight:this._weight(),dash:this._dash()}})}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["linestyle-select"]],inputs:{color:[1,"color"],dash:[1,"dash"],weight:[1,"weight"]},outputs:{selectionChange:"selectionChange"},decls:25,vars:5,consts:[[2,"display","flex"],[2,"width","100px"],["mat-input","","matNativeControl","","type","color",3,"ngModelChange","change","ngModel"],[2,"width","110px"],[3,"ngModelChange","selectionChange","ngModel"],[2,"display","flex","align-items","center","gap","8px"],["width","48","height","10",2,"vertical-align","middle","margin-right","6px"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-array","none"],[3,"value"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-width","2"]],template:function(a,e){a&1&&(i(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),s(3,"Color"),n(),i(4,"input",2),f("ngModelChange",function(o){return u(e._color,o)||(e._color=o),o}),p("change",function(o){return e.onSelectChange({key:"color",value:o.srcElement.value})}),n()(),i(5,"mat-form-field",3)(6,"mat-label"),s(7,"Weight"),n(),i(8,"mat-select",4),f("ngModelChange",function(o){return u(e._weight,o)||(e._weight=o),o}),p("selectionChange",function(o){return e.onSelectChange({key:"weight",value:o.value})}),i(9,"mat-select-trigger")(10,"div",5),x(),i(11,"svg",6),E(12,"line",7),n()()(),y(13,ut,3,2,"mat-option",8,b),n()(),me(),i(15,"mat-form-field",3)(16,"mat-label"),s(17,"Style"),n(),i(18,"mat-select",4),f("ngModelChange",function(o){return u(e._dash,o)||(e._dash=o),o}),p("selectionChange",function(o){return e.onSelectChange({key:"dash",value:o.value})}),i(19,"mat-select-trigger")(20,"div",5),x(),i(21,"svg",6),E(22,"line",9),n()()(),y(23,ft,3,2,"mat-option",8,_t),n()()()),a&2&&(r(4),_("ngModel",e._color),r(4),_("ngModel",e._weight),r(4),B("stroke-width",e._weight()),r(),S(e.line.weights),r(5),_("ngModel",e._dash),r(4),B("stroke-dasharray",e.line.dashArrays.get(e._dash())),r(),S(e.line.dashArrays))},dependencies:[H,U,G,Z,R,N,K,X,j,q,z,Q,J,Ge,Y],encapsulation:2})};var yt=(l,d)=>d[0];function St(l,d){if(l&1){let a=V();i(0,"div",4)(1,"mat-radio-button",5,0),p("change",function(){m(a);let g=w(2),o=M().$implicit,t=M();return o[1].current=g.value,c(t.save(!0))}),s(3),n()()}if(l&2){let a=d.$implicit,e=M().$implicit;r(),h("name",e[0])("value",a)("checked",a===e[1].current),r(2),k(" ",a.split(".").slice(-1)," ")}}function Ct(l,d){if(l&1&&(i(0,"div",2)(1,"div",3)(2,"div"),s(3),n()(),i(4,"div"),y(5,St,4,4,"div",4,b),n()()),l&2){let a=d.$implicit;r(3),C(a[1].name),r(2),S(a[1].available)}}var ie=class l{title="";chosen=new ce;pathChoices={tws:{name:"True Wind Speed",choices:["environment.wind.speedTrue","environment.wind.speedOverGround"],available:[],current:""},twd:{name:"True Wind Direction",choices:["environment.wind.directionTrue","environment.wind.directionMagnetic","environment.wind.angleTrueGround","environment.wind.angleTrueWater"],available:[],current:""},heading:{name:"Heading / COG",choices:["navigation.courseOverGroundTrue","navigation.courseOverGroundMagnetic","navigation.headingTrue","navigation.headingMagnetic"],available:[],current:""}};pathChoicesArray=Object.entries(this.pathChoices);availPaths;app=W(L);constructor(){}ngOnInit(){this.initEntries()}initEntries(){this.availPaths=new Map(Object.entries(this.app.data.vessels.prefAvailablePaths)),this.pathChoices.tws.current=this.app.config.units.preferredPaths.tws,this.pathChoices.twd.current=this.app.config.units.preferredPaths.twd,this.pathChoices.heading.current=this.app.config.units.preferredPaths.heading,Object.entries(this.pathChoices).forEach(a=>{let e=a[1];e.choices.forEach(g=>{this.availPaths.has(g)&&e.available.push(g)}),e.available.length===0&&e.available.push(e.choices[0])})}save(d){let a={};Object.entries(this.pathChoices).forEach(e=>{a[e[0]]=e[1].current}),this.chosen.emit({save:d,value:a})}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["signalk-preferred-paths"]],inputs:{title:"title"},outputs:{chosen:"chosen"},decls:6,vars:1,consts:[["pathopt",""],[2,"font-size","10pt"],[1,"sk-details"],[1,"title"],[2,"margin","5px 0 5px 0"],[3,"change","name","value","checked"]],template:function(a,e){a&1&&(i(0,"fieldset")(1,"legend",1),s(2),n(),i(3,"div"),y(4,Ct,7,1,"div",2,yt),n()()),a&2&&(r(2),C(e.title),r(2),S(e.pathChoicesArray))},dependencies:[ee,$],styles:[".sk-details[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:10pt;max-height:100%;width:60vw;max-width:300px}.sk-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{background:left 1px -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.18)),color-stop(.65,transparent)) #b2bbc2e3;padding:3px 5px 0;margin-top:3px;font-weight:500;line-height:23px;color:#000}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:0;line-height:23px;margin:0;flex:1 1 auto;overflow:auto}.sk-details[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;flex-direction:row;line-height:26px;border-width:0 0 0 0;border-style:solid;border-color:gray;padding-left:5px}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-width:0 0 1px 0}.sk-details[_ngcontent-%COMP%] .sectionname[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;font-weight:500}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;width:100%;background-color:#fff}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0})};var v=(l,d)=>d[0],Mt=(l,d)=>d.id;function wt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function vt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function bt(l,d){if(l&1&&(i(0,"mat-option",116),s(1),n()),l&2){let a=d.$implicit;h("value",a.url)("matTooltip",a.description),r(),k(" ",a.name," ")}}function Tt(l,d){if(l&1){let a=V();i(0,"div",43)(1,"div",35)(2,"mat-form-field",36)(3,"mat-label"),s(4,"Select Instruments App"),n(),i(5,"mat-select",58),f("ngModelChange",function(g){m(a);let o=M();return u(o.facade.settings.display.plugins.instruments,g)||(o.facade.settings.display.plugins.instruments=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.onInstrumentApp())}),y(6,bt,2,3,"mat-option",116,b),n()()(),i(8,"div",35)(9,"mat-form-field",49)(10,"mat-label"),s(11,"Parameters"),n(),i(12,"input",117,18),f("ngModelChange",function(g){m(a);let o=M();return u(o.facade.settings.display.plugins.parameters,g)||(o.facade.settings.display.plugins.parameters=g),c(g)}),p("change",function(){m(a);let g=M();return c(g.persistModel("pluginParameters"))}),n()()(),i(14,"div",35)(15,"mat-checkbox",118),f("ngModelChange",function(g){m(a);let o=M();return u(o.facade.settings.display.plugins.startOnOpen,g)||(o.facade.settings.display.plugins.startOnOpen=g),c(g)}),p("change",function(){m(a);let g=M();return c(g.persistModel("pluginStartOnOpen"))}),s(16," Halt App on hide "),n()(),i(17,"div",35)(18,"button",119),p("click",function(){m(a);let g=M();return c(g.toggleFavourites())}),i(19,"mat-icon"),s(20,"star"),n(),s(21," FAVOURITES "),n()()()}if(l&2){let a=M();r(5),_("ngModel",a.facade.settings.display.plugins.instruments),r(),S(a.facade.applicationList),r(6),h("disabled",a.facade.settings.display.plugins.instruments===null),_("ngModel",a.facade.settings.display.plugins.parameters),r(3),_("ngModel",a.facade.settings.display.plugins.startOnOpen)}}function Dt(l,d){if(l&1&&(i(0,"mat-list-option",121),s(1),n()),l&2){let a=d.$implicit,e=M(2);h("disabled",a.url==e.facade.settings.display.plugins.instruments)("selected",e.facade.settings.display.plugins.favourites.includes(a.url))("value",a.url),r(),k(" ",a.name," ")}}function Et(l,d){if(l&1){let a=V();i(0,"div",34)(1,"div",35)(2,"div",98),E(3,"br"),s(4,"Select Favourite Apps: "),n(),E(5,"mat-divider"),i(6,"mat-selection-list",120,19),p("selectionChange",function(g){m(a);let o=w(7),t=M();return c(t.onFavSelected(g,o))}),y(8,Dt,2,4,"mat-list-option",121,b),n()()()}if(l&2){let a=M();r(8),S(a.facade.favouritesList)}}function Wt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Vt(l,d){l&1&&(i(0,"mat-error"),s(1,"Please enter a number >= 0"),n())}function kt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Pt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Lt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function xt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Bt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Ot(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function It(l,d){if(l&1){let a=V();i(0,"div",35)(1,"mat-form-field",36)(2,"mat-label"),s(3,"Position display format"),n(),i(4,"mat-select",122),f("ngModelChange",function(g){m(a);let o=M();return u(o.facade.settings.units.positionFormat,g)||(o.facade.settings.units.positionFormat=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.persistModel())}),y(5,Ot,2,2,"mat-option",38,b),n()()()}if(l&2){let a=M();r(4),_("ngModel",a.facade.settings.units.positionFormat),r(),S(a.options.preferredValues.coords)}}function Ft(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function At(l,d){if(l&1){let a=V();i(0,"div",35)(1,"mat-form-field",36)(2,"mat-label"),s(3,"Prefer True / Magnetic values"),n(),i(4,"mat-select",123),f("ngModelChange",function(g){m(a);let o=M();return u(o.facade.settings.units.headingAttribute,g)||(o.facade.settings.units.headingAttribute=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.persistModel("headingAttribute"))}),y(5,Ft,2,2,"mat-option",38,b),n()()()}if(l&2){let a=M();r(4),_("ngModel",a.facade.settings.units.headingAttribute),r(),S(a.options.preferredValues.heading)}}function Nt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a),r(),C(a)}}function Rt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Ut(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Gt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Zt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Ht(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a),r(),C(a)}}function Kt(l,d){l&1&&(i(0,"mat-error"),s(1," Please enter a positive number "),n())}function zt(l,d){l&1&&(i(0,"mat-error"),s(1," Please enter a positive number "),n())}function qt(l,d){l&1&&(i(0,"mat-error"),s(1," Please enter a positive number "),n())}function jt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Xt(l,d){l&1&&(i(0,"mat-error"),s(1," Please enter a number > 0 "),n())}function Yt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a),r(),C(a)}}function Jt(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Qt(l,d){if(l&1&&(i(0,"mat-radio-button",38),E(1,"img",124),s(2),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),ue(`transform: scale(${a[0]})`),r(),k(" (",a[1],") ")}}function $t(l,d){l&1&&(i(0,"mat-error"),s(1," Please enter a value between -90 and 90 (max 9 decimals) "),n())}function ei(l,d){l&1&&(i(0,"mat-error"),s(1," Please enter a value between -180 and 180 (max 9 decimals) "),n())}function ti(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function ii(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function ni(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a),r(),C(a)}}function ai(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a),r(),C(a)}}function oi(l,d){l&1&&(i(0,"mat-error"),s(1," Please enter a number >= 1. "),n())}function ri(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function si(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function li(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function di(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function gi(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function mi(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function ci(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a),r(),C(a)}}function pi(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function _i(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a),r(),C(a)}}function ui(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a),r(),C(a)}}function fi(l,d){if(l&1){let a=V();i(0,"button",125),p("click",function(){m(a),M();let g=w(516);return c(g.value="")}),i(1,"mat-icon"),s(2,"close"),n()()}}function hi(l,d){if(l&1&&(i(0,"mat-list-option",100),s(1),n()),l&2){let a=d.$implicit,e=M();h("selected",e.facade.settings.resources.paths.includes(a))("value",a),r(),k(" ",a," ")}}function yi(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a.id),r(),C(a.name)}}function Si(l,d){if(l&1){let a=V();i(0,"mat-tab",101)(1,"div",29)(2,"div",30)(3,"div",113)(4,"div",32),s(5,"RADAR SETTINGS"),n(),i(6,"mat-card",33)(7,"div",43)(8,"div",35)(9,"mat-form-field",126)(10,"mat-label"),s(11,"Radar Devices"),n(),i(12,"mat-select",127,20),f("ngModelChange",function(g){m(a);let o=M();return u(o.facade.settings.radars.deviceId,g)||(o.facade.settings.radars.deviceId=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.doRadar())}),y(14,yi,2,2,"mat-option",38,Mt),n()()(),i(16,"div",35)(17,"button",128),p("click",function(){m(a);let g=M();return c(g.refreshRadars())}),i(18,"mat-icon"),s(19," refresh"),n(),s(20," REFRESH "),n()()()()()()()()}if(l&2){let a=M();r(12),h("disabled",!a.radarList().length||a.app.uiCtrl().radarLayer),_("ngModel",a.facade.settings.radars.deviceId),r(2),S(a.radarList())}}function Ci(l,d){if(l&1&&(i(0,"mat-option",38),s(1),n()),l&2){let a=d.$implicit;h("value",a[0]),r(),C(a[1])}}function Mi(l,d){l&1&&(i(0,"mat-error"),s(1," Value required. "),n())}var st=class l{show={favourites:I(!1)};options;aisStateFilter={moored:!1,anchored:!1};formattedNumberModel={rangeCirclesDistance:1e3};unitsChangedSignal=I(0);radarList=I([]);saveOnClose=!1;facade=W(at);myElement=W(_e);dialogRef=W(he);wakeLock=W(Ke);s57=W(ze);app=W(L);radarApi=W(je);constructor(){this.options=new nt,pe(()=>{this.unitsChangedSignal(),this.formatNumberModel()})}ngOnInit(){this.facade.refresh(),this.facade.settings.selections.aisState.forEach(d=>{d in this.aisStateFilter&&(this.aisStateFilter[d]=!0)}),this.refreshRadars()}refreshRadars(){this.radarApi.listRadars().then(d=>{this.radarList.set(d)}).catch(()=>{this.radarList.set([])})}formatNumberModel(){this.formattedNumberModel={rangeCirclesDistance:this.facade.settings.units.distance==="kilometer"?Math.floor(this.facade.settings.vessels.rangeCirclesDistance/1e3):Math.floor(O.transform(this.facade.settings.vessels.rangeCirclesDistance,"m","naut-mile"))}}raiseChange(){this.app.alignUnitPrefs(this.app.serverConfig.unitPreferences()),this.unitsChangedSignal.update(d=>d+1)}handleClose(){this.saveOnClose&&this.persistModel(),this.dialogRef.close()}doWakelock(d){this.persistModel(),d?this.wakeLock.disable():this.wakeLock.enable()}doS57(d){this.facade.settings.map.s57Options.depthUnit=this.facade.settings.units.depth,d?this.parseNumber(d):this.persistModel(),this.s57.setOptions(this.facade.settings.map.s57Options)}doRadar(){this.radarApi.init(this.facade.settings.radars.deviceId).then(d=>{d&&this.persistModel()})}onLineStyle(d,a){let e=this.facade.settings.vessels.selfLines[d];e&&(e.color=a.config.color,e.dash=a.config.dash,e.weight=a.config.weight,this.app.selfLines.update(g=>{let o=Object.assign({},g);return o[d]=a.lineStyle,o}),this.persistModel())}toggleFavourites(){this.show.favourites.update(d=>!d)}parseNumber(d,a){if(typeof d.model!="number"){d.reset(this.fallbackToDefault());return}!a&&d.model<0&&d.reset(Math.abs(d.model)),this.persistModel()}parseFormattedNumber(d,a){typeof d.model=="number"&&(!a&&d.model<0&&d.reset(Math.abs(d.model)),this.facade.settings.vessels.rangeCirclesDistance=this.facade.settings.units.distance==="kilometer"?Math.floor(this.formattedNumberModel.rangeCirclesDistance*1e3):Math.floor(O.nauticalMilesToKm(this.formattedNumberModel.rangeCirclesDistance)*1e3),this.persistModel())}fallbackToDefault(){let d=qe();if(typeof this.facade.settings.display.statusBar.referenceSpeed!="number")return d.display.statusBar.referenceSpeed;if(typeof this.facade.settings.map.s57Options.shallowDepth!="number")return d.map.s57Options.shallowDepth;if(typeof this.facade.settings.map.s57Options.safetyDepth!="number")return d.map.s57Options.safetyDepth;if(typeof this.facade.settings.map.s57Options.deepDepth!="number")return d.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 d.course.arrivalCircle}persistModel(d){this.facade.applySettings(),this.facade.emitChangeEvent(d)}get speedUnitSymbol(){return O.getSymbol(this.facade.settings.units.speed)}deferPersist(d){this.saveOnClose=!0,this.facade.emitChangeEvent(d)}onInstrumentApp(){this.persistModel("pluginInstruments"),this.facade.buildFavouritesList()}onPreferredPaths(d){d.save&&(this.facade.settings.units.preferredPaths=d.value,this.persistModel())}onFavSelected(d,a){this.facade.settings.display.plugins.favourites=a.selectedOptions.selected.map(e=>e.value),this.persistModel()}onAisStateFilter(){let d=[];for(let a in this.aisStateFilter)this.aisStateFilter[a]&&d.push(a);this.facade.settings.selections.aisState=[].concat(d),this.persistModel()}onResPathSelected(d){this.facade.settings.resources.paths=d.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(d){return O.getSymbol(d)}static \u0275fac=function(a){return new(a||l)};static \u0275cmp=P({type:l,selectors:[["settings-dialog"]],decls:611,vars:126,consts:[["refspeed","ngModel"],["serverprefs",""],["distunits",""],["s57shallowDepth","ngModel"],["s57safetyDepth","ngModel"],["s57deepDepth","ngModel"],["coursearrivalcircle","ngModel"],["courseautoadvance",""],["courseautoadvanceon",""],["vesselfixedlocationmode",""],["fixedlat","ngModel"],["fixedlon","ngModel"],["rangeCirclesDistance","ngModel"],["notesrootfilter",""],["respath",""],["skmaxradius",""],["videourl","ngModel"],["experiments",""],["instparams","ngModel"],["favs",""],["radarlist",""],[2,"background-color","transparent"],[1,"dialog-icon"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content","",2,"display","flex"],["dynamicHeight","false","mat-stretch-tabs","false","mat-align-tabs","start"],["label","Display"],[1,"theme-page","settings"],[1,"theme-panel"],["id","sectDisplay",1,"setting-group"],[1,"setting-group-title"],[1,"setting-card"],[1,"setting-card-row",2,"padding-bottom","10px"],[1,"setting-card-row-item"],[2,"width","100%"],["matTooltip","Dark Mode setting.",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["label","after","matTooltip","Auto-set using environment.mode value.",3,"ngModelChange","change","ngModel"],["matTooltip","Action button selection.",3,"ngModelChange","selectionChange","ngModel"],["label","after","matTooltip","Disable wake lock.",3,"ngModelChange","change","disabled","ngModel"],["label","after","matTooltip","Un-check to prefer dialogs over the information panel",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 (mouse only).",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"],["label","Units"],["id","sectUnits",1,"setting-group"],["label","after","matTooltip","Use the unit preferences configured on the server.",3,"ngModelChange","change","disabled","ngModel"],[3,"ngModelChange","selectionChange","disabled","ngModel"],["title","Preferred Paths",3,"chosen"],["label","Map"],["id","sectMap",1,"setting-group"],[3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Add close button to popovers","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Double Click map to zoom","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Keep tiles visible when zooming past chart maxZoom","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Do not exit follow vessel when map is panned.","label","after",3,"ngModelChange","change","ngModel"],["placeholder","Graphicsstyle",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Boundaries",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Color Table",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Colors",3,"ngModelChange","selectionChange","ngModel"],["matInput","","type","number","required","","min","0",3,"ngModelChange","change","ngModel"],["matSuffix",""],["multiple","","placeholder","Layers",3,"ngModelChange","selectionChange","ngModel"],["label","Course"],["id","sectCourse",1,"setting-group"],["matTooltip","Select the trigger for advancing to next point.",3,"ngModelChange","selectionChange","disabled","ngModel"],["matTooltip","Period of time before destination is advanced to next waypoint.",3,"ngModelChange","selectionChange","disabled","ngModel"],["label","Vessels"],["id","sectVessels",1,"setting-group"],[3,"ngModelChange","change","ngModel"],["label","after","matTooltip","e.g. Building, Camp, etc.",3,"ngModelChange","change","ngModel"],["floatLabel","always"],["matInput","","type","number","required","","pattern","^-?([1-8]?[0-9])(\\.\\d{1,9})?$","min","-90","max","90",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","pattern","^-?(1[0-7]?[0-9]|[1-9]?[0-9])(\\.\\d{1,9})?$","min","-180","max","180",3,"ngModelChange","change","ngModel","disabled"],["matTooltip","Length of heading line.",3,"ngModelChange","selectionChange","ngModel"],[3,"selectionChange","color","dash","weight"],["matTooltip","Length of COG line.",3,"ngModelChange","selectionChange","ngModel"],[3,"ngModelChange","selectionChange","ngModel","disabled"],["label","after",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","min","1",3,"ngModelChange","change","ngModel","disabled"],["matTooltip","Select to source trail data from the server","label","after",3,"ngModelChange","change","disabled","ngModel"],["discrete","","tickInterval","1","min","1","max","96",3,"disabled"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["label","Resources"],["id","sectNotes",1,"setting-group"],[3,"valueChange","selectionChange","disabled","value"],["matInput","","type","text","placeholder","?radius=%note:radius%","matTooltip","Filter to apply when retrieving notes",3,"ngModelChange","change","ngModel"],["matSuffix","","mat-icon-button",""],["matTooltip","Allow group name editing.","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Require position information when adding notes to a group.","label","after",3,"ngModelChange","change","ngModel"],["id","sectResLayers",1,"setting-group"],[2,"font-style","italic"],["matTooltip","Select resource layers to show.",3,"selectionChange"],[3,"selected","value"],["label","Radar"],["label","Signal K"],["id","sectSKConnection",1,"setting-group"],[2,"font-size","smaller"],["matToolTip","Check to receive other vessel data","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive AtoN data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Check to receive aircraft data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive SaR data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive Weather / Meteo data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Only include AIS targets within this distance","matTooltipPosition","below",3,"ngModelChange","selectionChange","ngModel"],["mat-icon-button","","matTooltip","Clear Auth Token",3,"click"],["label","Experiments"],["id","sectExperiments",1,"setting-group"],["matInput","","type","text","required","","placeholder","Video stream URL","matTooltip","Enter URL of video stream",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Enable ALL experimental Features","label","after",3,"ngModelChange","change","ngModel"],["matTooltipPosition","right",3,"value","matTooltip"],["matInput","","type","text","placeholder","e.g. ?layout=mylayout","matTooltip","Enter parameters to pass to Instrument App",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Stop instrument app when hidden","label","after",3,"ngModelChange","change","ngModel"],["mat-raised-button","","matTooltip","Favourite Apps","label","after",3,"click"],[3,"selectionChange"],[3,"disabled","selected","value"],["matTooltip","Display position in this format",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Preferred value type for paths not in Preferred Paths above",3,"ngModelChange","selectionChange","ngModel"],["src","./assets/img/vessels/self.png"],["matSuffix","","mat-icon-button","",3,"click"],[2,"width","stretch"],["matToolTip","Select radar device","matTooltipPosition","below",3,"ngModelChange","selectionChange","disabled","ngModel"],["mat-raised-button","",3,"click"]],template:function(a,e){if(a&1){let g=V();i(0,"mat-toolbar",21)(1,"span",22)(2,"mat-icon"),s(3,"settings"),n()(),i(4,"span",23),s(5,"Settings"),n(),i(6,"span",24)(7,"button",25),p("click",function(){return e.handleClose()}),i(8,"mat-icon"),s(9,"close"),n()()()(),i(10,"div",26)(11,"mat-tab-group",27)(12,"mat-tab",28)(13,"div",29)(14,"div",30)(15,"div",31)(16,"div",32),s(17,"DISPLAY"),n(),i(18,"mat-card",33)(19,"mat-card-content")(20,"div",34)(21,"div",35)(22,"mat-form-field",36)(23,"mat-label"),s(24,"Dark Mode setting"),n(),i(25,"mat-select",37),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,wt,2,2,"mat-option",38,v),n()()(),i(28,"div",35)(29,"mat-checkbox",39),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()}),s(30," Auto-set Night Mode "),n()(),i(31,"div",35)(32,"mat-form-field",36)(33,"mat-label"),s(34,"Action Button"),n(),i(35,"mat-select",40),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,vt,2,2,"mat-option",38,v),n()()(),i(38,"div",35)(39,"mat-checkbox",41),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)}),s(40," Allow Device to Sleep "),n()(),i(41,"div",35)(42,"mat-checkbox",42),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()}),s(43," Prefer Info-Panel "),n()()()()(),E(44,"br"),i(45,"mat-card",33)(46,"mat-card-content"),T(47,Tt,22,4,"div",43),T(48,Et,10,0,"div",34),n()(),E(49,"br"),n(),i(50,"div",31)(51,"div",32),s(52,"SOUND"),n(),i(53,"mat-card",33)(54,"mat-card-content")(55,"div",34)(56,"div",35)(57,"mat-checkbox",44),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()}),s(58," Do not Play Sounds "),n()(),i(59,"div",35)(60,"mat-checkbox",45),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()}),s(61," Show DEPTH Alarms "),n()(),i(62,"div",35)(63,"mat-form-field",36)(64,"mat-label"),s(65,"Alarm Smoothing Time"),n(),i(66,"mat-select",46),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(67,Wt,2,2,"mat-option",38,v),n()()()()()()(),i(69,"div",47)(70,"div",32),s(71,"STATUS BAR OPTIONS"),n(),i(72,"mat-card",33)(73,"mat-card-content")(74,"div",34)(75,"div",35)(76,"mat-checkbox",48),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()}),s(77," Live ETA at cursor "),n()(),i(78,"div",35)(79,"mat-form-field",49)(80,"mat-label"),s(81),n(),i(82,"input",50,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=w(83);return c(e.parseNumber(t))}),n(),T(84,Vt,2,0,"mat-error"),n()()()()()()()()(),i(85,"mat-tab",51)(86,"div",29)(87,"div",30)(88,"div",52)(89,"div",32),s(90,"UNITS & VALUES"),n(),i(91,"mat-card",33)(92,"mat-card-content")(93,"div",34)(94,"div",35)(95,"fieldset")(96,"legend")(97,"mat-checkbox",53,1),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())}),s(99," Use Server Unit Preferences "),n()(),i(100,"div",34)(101,"div",35)(102,"mat-form-field",36)(103,"mat-label"),s(104,"Distance units"),n(),i(105,"mat-select",54,2),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(107,kt,2,2,"mat-option",38,v),n()()(),i(109,"div",35)(110,"mat-form-field",36)(111,"mat-label"),s(112,"Depth units"),n(),i(113,"mat-select",54),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(114,Pt,2,2,"mat-option",38,v),n()()(),i(116,"div",35)(117,"mat-form-field",36)(118,"mat-label"),s(119,"Length units"),n(),i(120,"mat-select",54),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(121,Lt,2,2,"mat-option",38,v),n()()(),i(123,"div",35)(124,"mat-form-field",36)(125,"mat-label"),s(126,"Temperature units"),n(),i(127,"mat-select",54),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(128,xt,2,2,"mat-option",38,v),n()()(),i(130,"div",35)(131,"mat-form-field",36)(132,"mat-label"),s(133,"Speed units"),n(),i(134,"mat-select",54),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(135,Bt,2,2,"mat-option",38,v),n()()()()()()(),i(137,"div",34),T(138,It,7,1,"div",35),T(139,At,7,1,"div",35),i(140,"div",35)(141,"signalk-preferred-paths",55),p("chosen",function(t){return e.onPreferredPaths(t)}),n()()()()()()()()(),i(142,"mat-tab",56)(143,"div",29)(144,"div",30)(145,"div",57)(146,"div",32),s(147,"MAP"),n(),i(148,"mat-card")(149,"mat-card-content")(150,"div",34)(151,"div",35)(152,"mat-form-field",36)(153,"mat-label"),s(154,"Feature label zoom level"),n(),i(155,"mat-select",58),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(156,Nt,2,2,"mat-option",38,b),n()()(),i(158,"div",35)(159,"mat-form-field",36)(160,"mat-label"),s(161,"Offset Vessel Center"),n(),i(162,"mat-select",58),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset,t)||(e.facade.settings.map.centerOffset=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(163,Rt,2,2,"mat-option",38,v),n()()(),i(165,"div",35)(166,"mat-checkbox",59),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()}),s(167," Popovers close with button "),n()(),i(168,"div",35)(169,"mat-checkbox",60),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()}),s(170," Double click to Zoom "),n()(),i(171,"div",35)(172,"mat-checkbox",61),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()}),s(173," Keep tiles visible on max zoom "),n()(),i(174,"div",35)(175,"mat-checkbox",62),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.lockMoveMap,t)||(e.facade.settings.map.lockMoveMap=t),c(t)}),p("change",function(){return e.persistModel()}),s(176," Lock Follow Vessel "),n()()()()(),i(177,"div",32),s(178,"VECTOR CHARTS"),n(),i(179,"mat-card")(180,"mat-card-content")(181,"div",34)(182,"div",35)(183,"mat-form-field",36)(184,"mat-label"),s(185,"Graphics Style"),n(),i(186,"mat-select",63),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(187,Ut,2,2,"mat-option",38,v),n()()(),i(189,"div",35)(190,"mat-form-field",36)(191,"mat-label"),s(192,"Boundaries"),n(),i(193,"mat-select",64),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(194,Gt,2,2,"mat-option",38,v),n()()(),i(196,"div",35)(197,"mat-form-field",36)(198,"mat-label"),s(199,"Color Table (Requires refresh)"),n(),i(200,"mat-select",65),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(201,Zt,2,2,"mat-option",38,v),n()()(),i(203,"div",35)(204,"mat-form-field",36)(205,"mat-label"),s(206,"Colors"),n(),i(207,"mat-select",66),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(208,Ht,2,2,"mat-option",38,b),n()()()(),i(210,"div",34)(211,"div",35)(212,"mat-form-field",36)(213,"mat-label"),s(214,"Shallow depth"),n(),i(215,"input",67,3),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=w(216);return c(e.doS57(t))}),n(),T(217,Kt,2,0,"mat-error"),i(218,"span",68),s(219,"m"),n()()(),i(220,"div",35)(221,"mat-form-field",36)(222,"mat-label"),s(223,"Safety depth"),n(),i(224,"input",67,4),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=w(225);return c(e.doS57(t))}),n(),T(226,zt,2,0,"mat-error"),i(227,"span",68),s(228,"m"),n()()(),i(229,"div",35)(230,"mat-form-field",36)(231,"mat-label"),s(232,"Deep depth"),n(),i(233,"input",67,5),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=w(234);return c(e.doS57(t))}),n(),T(235,qt,2,0,"mat-error"),i(236,"span",68),s(237,"m"),n()()(),i(238,"div",35)(239,"mat-form-field",36)(240,"mat-label"),s(241,"Layers"),n(),i(242,"mat-select",69),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(243,jt,2,2,"mat-option",38,v),n()()()()()()()()()(),i(245,"mat-tab",70)(246,"div",29)(247,"div",30)(248,"div",71)(249,"div",32),s(250,"COURSE"),n(),i(251,"mat-card",33)(252,"mat-card-content")(253,"div",34)(254,"div",35)(255,"mat-form-field",36)(256,"mat-label"),s(257,"Arrival Circle"),n(),i(258,"input",67,6),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=w(259);return c(e.parseNumber(t))}),n(),T(260,Xt,2,0,"mat-error"),i(261,"span",68),s(262,"m"),n()()()(),i(263,"div",34)(264,"div",35)(265,"mat-checkbox",45,7),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()}),s(267," Auto-advance to next point on arrival "),n()()(),i(268,"div",34)(269,"div",35)(270,"mat-form-field",36)(271,"mat-label"),s(272,"Notification type to use"),n(),i(273,"mat-select",72,8),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(275,Yt,2,2,"mat-option",38,b),n()()(),i(277,"div",35)(278,"mat-form-field",36)(279,"mat-label"),s(280,"Time to wait before advancing"),n(),i(281,"mat-select",73),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(282,Jt,2,2,"mat-option",38,v),n()()()()()()()()()(),i(284,"mat-tab",74)(285,"div",29)(286,"div",30)(287,"div",75)(288,"div",32),s(289,"VESSEL"),n(),i(290,"mat-card",33)(291,"mat-card-content")(292,"div",34)(293,"div",35)(294,"fieldset")(295,"legend"),s(296,"Vessel Icon Size"),n(),i(297,"div",34)(298,"div",35)(299,"mat-radio-group",76),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(300,Qt,3,4,"mat-radio-button",38,v),n()()()()()(),i(302,"div",35)(303,"fieldset")(304,"legend")(305,"mat-checkbox",77,9),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()}),s(307," Fixed Location Mode "),n()(),i(308,"div",34)(309,"div",35)(310,"mat-form-field",78)(311,"mat-label"),s(312,"Latitude"),n(),i(313,"input",79,10),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=w(314);return c(e.parseNumber(t,!0))}),n(),T(315,$t,2,0,"mat-error"),n(),i(316,"mat-form-field",78)(317,"mat-label"),s(318,"Longitude"),n(),i(319,"input",80,11),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=w(320);return c(e.parseNumber(t,!0))}),n(),T(321,ei,2,0,"mat-error"),n()()()()()()(),E(322,"br"),i(323,"mat-card",33)(324,"mat-card-content")(325,"div",35)(326,"fieldset")(327,"legend"),s(328,"Vessel Lines:"),n(),i(329,"div",34)(330,"mat-checkbox",45),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()}),s(331," Display Wind Vectors "),n(),i(332,"mat-checkbox",45),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()}),s(333," Display Laylines "),n()(),i(334,"div",34)(335,"div",35)(336,"fieldset")(337,"legend"),s(338,"Heading Line"),n(),i(339,"div",34)(340,"div",35)(341,"mat-form-field")(342,"mat-label"),s(343,"Heading Line Length"),n(),i(344,"mat-select",81),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(345,ti,2,2,"mat-option",38,v),n()()(),i(347,"div",35)(348,"linestyle-select",82),p("selectionChange",function(t){return e.onLineStyle("heading",t)}),n()()()()()(),i(349,"div",34)(350,"div",35)(351,"fieldset")(352,"legend"),s(353,"COG Line"),n(),i(354,"div",34)(355,"div",35)(356,"mat-form-field")(357,"mat-label"),s(358,"COG Line Length"),n(),i(359,"mat-select",83),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(360,ii,2,2,"mat-option",38,v),n()()(),i(362,"div",35)(363,"linestyle-select",82),p("selectionChange",function(t){return e.onLineStyle("cog",t)}),n()()()()()()()(),i(364,"div",35)(365,"fieldset")(366,"legend")(367,"mat-checkbox",45),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()}),s(368," Display Range Circles "),n()(),i(369,"div",34)(370,"div",35)(371,"mat-form-field",36)(372,"mat-label"),s(373,"Number of Range Circles"),n(),i(374,"mat-select",84),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(375,ni,2,2,"mat-option",38,b),n()()(),i(377,"div",35)(378,"mat-form-field",36)(379,"mat-label"),s(380,"Minimum Zoom Level"),n(),i(381,"mat-select",84),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(382,ai,2,2,"mat-option",38,b),n()()()(),i(384,"div",34)(385,"div",35)(386,"mat-checkbox",85),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()}),s(387," Use Fixed Distance "),n()(),i(388,"div",35)(389,"mat-form-field",78)(390,"mat-label"),s(391),n(),i(392,"input",86,12),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=w(393);return c(e.parseFormattedNumber(t))}),n(),T(394,oi,2,0,"mat-error"),n()()()()()()(),E(395,"br"),i(396,"mat-card",33)(397,"mat-card-content")(398,"div",34)(399,"fieldset")(400,"legend")(401,"mat-checkbox",45),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")}),s(402," Display Vessel Track "),n()(),i(403,"div",34)(404,"div",35)(405,"mat-checkbox",87),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailFromServer,t)||(e.facade.settings.vessels.trailFromServer=t),c(t)}),p("change",function(){return e.persistModel("trailFromServer")}),s(406," Get Track from server "),n(),s(407," \xA0\xA0 "),i(408,"mat-slider",88)(409,"input",89),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailDuration,t)||(e.facade.settings.vessels.trailDuration=t),c(t)}),p("valueChange",function(){return e.deferPersist()}),n()(),s(410),n()(),i(411,"div",34)(412,"div",35)(413,"mat-form-field",36)(414,"mat-label"),s(415,"Resolution: Last hour"),n(),i(416,"mat-select",84),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(417,ri,2,2,"mat-option",38,v),n()()(),i(419,"div",35)(420,"mat-form-field",36)(421,"mat-label"),s(422,"Resolution: 1 hr -> 24 hrs"),n(),i(423,"mat-select",84),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(424,si,2,2,"mat-option",38,v),n()()(),i(426,"div",35)(427,"mat-form-field",36)(428,"mat-label"),s(429,"Resolution: > 24 hrs"),n(),i(430,"mat-select",84),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(431,li,2,2,"mat-option",38,v),n()()()()()()()(),i(433,"div",32),s(434,"OTHER VESSELS"),n(),i(435,"mat-card",33)(436,"mat-card-content")(437,"div",34)(438,"div",35)(439,"mat-checkbox",45),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()}),s(440," Show Track "),n(),s(441," \xA0 "),i(442,"mat-checkbox",45),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.moored,t)||(e.aisStateFilter.moored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),s(443," Hide Moored "),n(),s(444," \xA0 "),i(445,"mat-checkbox",45),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.anchored,t)||(e.aisStateFilter.anchored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),s(446," Hide Anchored "),n()()(),i(447,"div",34)(448,"div",35)(449,"mat-form-field",36)(450,"mat-label"),s(451,"Mark AIS target inactive after"),n(),i(452,"mat-select",58),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(453,di,2,2,"mat-option",38,v),n()()(),i(455,"div",35)(456,"mat-form-field",36)(457,"mat-label"),s(458,"Remove AIS target after"),n(),i(459,"mat-select",58),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(460,gi,2,2,"mat-option",38,v),n()()(),i(462,"div",35)(463,"mat-form-field",36)(464,"mat-label"),s(465,"Wind Vector Value"),n(),i(466,"mat-select",58),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(467,mi,2,2,"mat-option",38,v),n()()(),i(469,"div",35)(470,"mat-form-field",36)(471,"mat-label"),s(472,"Wind / Track Zoom Level"),n(),i(473,"mat-select",58),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(474,ci,2,2,"mat-option",38,b),n()()(),i(476,"div",35)(477,"mat-form-field",36)(478,"mat-label"),s(479,"COG Line"),n(),i(480,"mat-select",58),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(481,pi,2,2,"mat-option",38,v),n()()()()()()()()()(),i(483,"mat-tab",90)(484,"div",29)(485,"div",30)(486,"div",91)(487,"div",32),s(488,"NOTES"),n(),i(489,"mat-card",33)(490,"mat-card-content")(491,"div",43)(492,"div",35)(493,"mat-checkbox",45),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()}),s(494," Display Notes on Map "),n()(),i(495,"div",35)(496,"mat-form-field",36)(497,"mat-label"),s(498,"Notes Zoom Level"),n(),i(499,"mat-select",92),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(500,_i,2,2,"mat-option",38,b),n()()()(),i(502,"div",43)(503,"div",35)(504,"mat-form-field",36)(505,"mat-label"),s(506),n(),i(507,"mat-select",54),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(508,ui,2,2,"mat-option",38,b),n()()()(),i(510,"div",43)(511,"div",35)(512,"mat-form-field",49)(513,"mat-label"),s(514,"Notes fetch filter:"),n(),i(515,"input",93,13),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")}),n(),T(517,fi,3,0,"button",94),n()()(),i(518,"div",43)(519,"div",35)(520,"mat-checkbox",95),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()}),s(521," Edit Group Names "),n()(),i(522,"div",35)(523,"mat-checkbox",96),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()}),s(524," Position Group Note "),n()()()()()(),i(525,"div",97)(526,"div",32),s(527,"CUSTOM RESOURCES"),n(),i(528,"mat-card",33)(529,"mat-card-content")(530,"div",43)(531,"div",35)(532,"div",98),s(533," Select custom resource types (./resources/<name>) "),n(),i(534,"mat-selection-list",99,14),p("selectionChange",function(){m(g);let t=w(535);return c(e.onResPathSelected(t))}),y(536,hi,2,3,"mat-list-option",100,b),n()()()()()()()()(),T(538,Si,21,2,"mat-tab",101),i(539,"mat-tab",102)(540,"div",29)(541,"div",30)(542,"div",103)(543,"div",32),s(544,"SIGNAL K: CONNECTION"),n(),i(545,"mat-card",33)(546,"mat-card-content")(547,"div",43)(548,"fieldset")(549,"legend"),s(550,"Filter Stream data:"),n(),i(551,"span",104),s(552," Check to include Signal K schema groups on display."),E(553,"br"),i(554,"i"),s(555,"Use to manage display performance."),n()(),i(556,"div",35)(557,"mat-checkbox",105),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()}),s(558," Vessels (other than Self) "),n()(),i(559,"div",35)(560,"mat-checkbox",106),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()}),s(561," Aids to Navigation (AtoN) "),n()(),i(562,"div",35)(563,"mat-checkbox",107),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()}),s(564," Aircraft "),n()(),i(565,"div",35)(566,"mat-checkbox",108),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()}),s(567," Search and Rescue (SaR) "),n()(),i(568,"div",35)(569,"mat-checkbox",109),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()}),s(570," Weather (Meteo) "),n()(),i(571,"div",35),E(572,"br"),i(573,"mat-form-field",36)(574,"mat-label"),s(575,"Max. distance from vessel"),n(),i(576,"mat-select",110,15),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(578,Ci,2,2,"mat-option",38,v),n()()()()(),i(580,"div",43)(581,"div",35)(582,"button",111),p("click",function(){return e.clearAuthToken()}),i(583,"mat-icon"),s(584,"key_off"),n()()()()()()()()()(),i(585,"mat-tab",112)(586,"div",29)(587,"div",30)(588,"div",113)(589,"div",32),s(590,"EXPERIMENTS"),n(),i(591,"mat-card",33)(592,"mat-card-content")(593,"div",43)(594,"div",35)(595,"mat-checkbox",45),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()}),s(596," Enable Video "),n()(),i(597,"div",35)(598,"mat-form-field",49)(599,"mat-label"),s(600,"url:"),n(),i(601,"input",114,16),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")}),n(),T(603,Mi,2,0,"mat-error"),n()()(),i(604,"div",43)(605,"div",35)(606,"mat-checkbox",115,17),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()}),i(608,"mat-icon"),s(609,"science"),n(),s(610," Experimental Features "),n()()()()()()()()()()()}if(a&2){let g=w(83),o=w(106),t=w(216),ne=w(225),ae=w(234),oe=w(259),de=w(266),ge=w(306),re=w(314),se=w(320),le=w(393),lt=w(516),dt=w(602);r(25),_("ngModel",e.facade.settings.display.darkMode.source),r(),S(e.options.darkMode),r(3),_("ngModel",e.facade.settings.display.nightMode),r(6),_("ngModel",e.facade.settings.display.fab),r(),S(e.options.buttons.fab),r(3),h("disabled",!e.wakeLock.isAvailable),_("ngModel",e.facade.settings.display.disableWakelock),r(3),_("ngModel",e.facade.settings.display.preferInfoPanel),r(5),D(e.facade.applicationList.length>1?47:-1),r(),D(e.show.favourites()?48:-1),r(9),_("ngModel",e.facade.settings.display.muteSound),r(3),_("ngModel",e.facade.settings.display.depthAlarm.enabled),r(6),_("ngModel",e.facade.settings.display.depthAlarm.smoothing),h("disabled",!e.facade.settings.display.depthAlarm.enabled),r(),S(e.options.alarm.smoothing),r(9),_("ngModel",e.facade.settings.display.statusBar.liveEta),r(5),k("Reference Boat Speed (",e.speedUnitSymbol,")"),r(),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.referenceSpeed),r(2),D(g.invalid&&(g.dirty||g.touched)?84:-1),r(13),h("disabled",!e.app.serverConfig.unitPreferences()),_("ngModel",e.facade.settings.units.useServerPrefs),r(8),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.distance),r(2),S(e.options.availableUnits.distance),r(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.depth),r(),S(e.options.availableUnits.depth),r(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.length),r(),S(e.options.availableUnits.length),r(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.temperature),r(),S(e.options.availableUnits.temperature),r(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.speed),r(),S(e.options.availableUnits.speed),r(3),D(e.options.preferredValues.coords.length!==0?138:-1),r(),D(e.options.preferredValues.heading.length!==0?139:-1),r(16),_("ngModel",e.facade.settings.map.labelsMinZoom),r(),S(e.options.zoomLevels),r(6),_("ngModel",e.facade.settings.map.centerOffset),r(),S(e.options.map.centerOffset),r(3),_("ngModel",e.facade.settings.map.popoverMulti),r(3),_("ngModel",e.facade.settings.map.doubleClickZoom),r(3),_("ngModel",e.facade.settings.map.overZoomTiles),r(3),_("ngModel",e.facade.settings.map.lockMoveMap),r(11),_("ngModel",e.facade.settings.map.s57Options.graphicsStyle),r(),S(e.options.map.s57.graphicsStyle),r(6),_("ngModel",e.facade.settings.map.s57Options.boundaries),r(),S(e.options.map.s57.boundaries),r(6),_("ngModel",e.facade.settings.map.s57Options.colorTable),r(),S(e.options.map.s57.colorTables),r(6),_("ngModel",e.facade.settings.map.s57Options.colors),r(),S(e.options.map.s57.colors),r(7),_("ngModel",e.facade.settings.map.s57Options.shallowDepth),r(2),D(t.invalid&&(t.dirty||t.touched)?217:-1),r(7),_("ngModel",e.facade.settings.map.s57Options.safetyDepth),r(2),D(ne.invalid&&(ne.dirty||ne.touched)?226:-1),r(7),_("ngModel",e.facade.settings.map.s57Options.deepDepth),r(2),D(ae.invalid&&(ae.dirty||ae.touched)?235:-1),r(7),_("ngModel",e.facade.settings.map.s57Options.otherLayers),r(),S(e.options.map.s57.otherLayers),r(15),_("ngModel",e.facade.settings.course.arrivalCircle),r(2),D(oe.invalid&&(oe.dirty||oe.touched)?260:-1),r(5),_("ngModel",e.facade.settings.course.autoNextPointOnArrival),r(8),h("disabled",de.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointTrigger),r(2),S(e.options.course.nextPointTrigger),r(6),h("disabled",de.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointDelay),r(),S(e.options.course.nextPointDelay),r(17),_("ngModel",e.facade.settings.vessels.iconScale),r(),S(e.options.vessel.selfIconScale),r(5),_("ngModel",e.facade.settings.vessels.fixedLocationMode),r(8),_("ngModel",e.facade.fixedPosition[1]),h("disabled",!ge.checked),r(2),D(re.invalid&&(re.dirty||re.touched)?315:-1),r(4),_("ngModel",e.facade.fixedPosition[0]),h("disabled",!ge.checked),r(2),D(se.invalid&&(se.dirty||se.touched)?321:-1),r(9),_("ngModel",e.facade.settings.vessels.windVectors),r(2),_("ngModel",e.facade.settings.vessels.laylines),r(12),_("ngModel",e.facade.settings.vessels.selfLines.heading.length),r(),S(e.options.vessel.headingLine),r(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),r(11),_("ngModel",e.facade.settings.vessels.selfLines.cog.length),r(),S(e.options.vessel.cogLine),r(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),r(4),_("ngModel",e.facade.settings.vessels.rangeCircles),r(7),_("ngModel",e.facade.settings.vessels.rangeCircleCount),h("disabled",!e.facade.settings.vessels.rangeCircles),r(),S(e.options.rangeCircles.count),r(6),_("ngModel",e.facade.settings.vessels.rangeCircleMinZoom),h("disabled",!e.facade.settings.vessels.rangeCircles),r(),S(e.options.rangeCircles.zoomLevels),r(4),_("ngModel",e.facade.settings.vessels.rangeCirclesFixed),h("disabled",!e.facade.settings.vessels.rangeCircles),r(5),k(" Distance between circles (",e.renderSymbol(e.facade.settings.units.distance),") "),r(),_("ngModel",e.formattedNumberModel.rangeCirclesDistance),h("disabled",!e.facade.settings.vessels.rangeCircles||!e.facade.settings.vessels.rangeCirclesFixed),r(2),D(le.invalid&&(le.dirty||le.touched)?394:-1),r(7),_("ngModel",e.facade.settings.vessels.trail),r(4),h("disabled",!e.facade.settings.vessels.trail),_("ngModel",e.facade.settings.vessels.trailFromServer),r(3),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),r(),_("ngModel",e.facade.settings.vessels.trailDuration),r(),k(" Length (",e.facade.settings.vessels.trailDuration," hrs) "),r(6),_("ngModel",e.facade.settings.vessels.trailResolution.lastHour),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),r(),S(e.options.trailIntervals.highResolution),r(6),_("ngModel",e.facade.settings.vessels.trailResolution.next23),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),r(),S(e.options.trailIntervals.highResolution),r(6),_("ngModel",e.facade.settings.vessels.trailResolution.beyond24),h("disabled",!e.facade.settings.vessels.trailFromServer||!e.facade.settings.vessels.trail),r(),S(e.options.trailIntervals.mediumResolution),r(8),_("ngModel",e.facade.settings.vessels.aisShowTrack),r(3),_("ngModel",e.aisStateFilter.moored),r(3),_("ngModel",e.aisStateFilter.anchored),r(7),_("ngModel",e.facade.settings.vessels.aisStaleAge),r(),S(e.options.vessel.aisTimeouts),r(6),_("ngModel",e.facade.settings.vessels.aisMaxAge),r(),S(e.options.vessel.aisTimeouts),r(6),_("ngModel",e.facade.settings.vessels.aisWindApparent),r(),S(e.options.preferredValues.wind),r(6),_("ngModel",e.facade.settings.vessels.aisWindMinZoom),r(),S(e.options.zoomLevels),r(6),_("ngModel",e.facade.settings.vessels.aisCogLine),r(),S(e.options.vessel.aisCogLine),r(12),_("ngModel",e.facade.settings.ui.showNotes),r(6),h("disabled",!e.facade.settings.ui.showNotes),_("value",e.facade.settings.resources.notes.minZoom),r(),S(e.options.zoomLevels),r(6),C("Fetch Notes radius: ("+e.options.availableUnits.distance.get(o.value)+")"),r(),h("disabled",!e.facade.settings.ui.showNotes),_("ngModel",e.facade.settings.resources.notes.getRadius),r(),S(e.options.resources.noteRadius),r(7),_("ngModel",e.facade.settings.resources.notes.rootFilter),r(2),D(lt.value?517:-1),r(3),_("ngModel",e.facade.settings.resources.notes.groupNameEdit),r(3),_("ngModel",e.facade.settings.resources.notes.groupRequiresPosition),r(13),S(e.facade.resourcePathList),r(2),D(e.app.featureFlags().radarApi?538:-1),r(19),_("ngModel",e.facade.settings.signalk.vessels),r(3),_("ngModel",e.facade.settings.signalk.atons),r(3),_("ngModel",e.facade.settings.signalk.aircraft),r(3),_("ngModel",e.facade.settings.signalk.sar),r(3),_("ngModel",e.facade.settings.signalk.meteo),r(7),_("ngModel",e.facade.settings.signalk.maxRadius),r(2),S(e.options.vessel.aisMaxRadius),r(17),_("ngModel",e.facade.settings.resources.video.enable),r(6),h("disabled",!e.facade.settings.resources.video.enable),_("ngModel",e.facade.settings.resources.video.url),r(2),D(dt.invalid?603:-1),r(3),_("ngModel",e.facade.settings.experiments)}},dependencies:[H,U,ve,G,De,Ee,Te,be,Z,Se,ye,Ae,Fe,ee,$e,$,Ie,Be,Oe,Pe,ke,Ve,We,N,Me,Ce,R,we,K,xe,it,et,tt,Xe,Q,q,z,Ne,Re,J,Y,Ue,X,j,Le,He,Ze,Qe,Ye,Je,ie,te],styles:["[_nghost-%COMP%] .mat-dialog-content{padding:0 4px}.settings[_ngcontent-%COMP%] .setting-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}.setting-card-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.settings[_ngcontent-%COMP%] .setting-card-row-item[_ngcontent-%COMP%]{padding-right:15px;flex:1 1 auto}@media only screen and (max-width:599px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}@media only screen and (min-width:600px)and (max-width:959px),screen and (min-width:960px)and (max-width:1279px),screen and (min-width:1280px)and (max-width:1919px),screen and (min-width:1920px)and (max-width:5000px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{st as SettingsDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as Z,Ia as $,f as N,n as Q,o as X,r as Y}from"./chunk-A626ZBXE.js";import"./chunk-CSNMIJA3.js";import{i as K,k as W}from"./chunk-QNWLXTD7.js";import{a as B,b as J,c as U,e as q}from"./chunk-EU3YXT24.js";import"./chunk-NM5IDVR6.js";import{c as H,i as z,o as G}from"./chunk-7OJ7YZPE.js";import{Bd as k,Ca as u,Da as g,Dd as T,Fa as C,Ga as M,Ha as I,Ia as _,Ja as i,Ka as t,La as b,Ld as V,Nd as A,O as d,P as p,Qd as F,Sa as h,Sd as O,Td as j,Ua as f,Wa as c,ha as r,jb as n,je as L,kb as w,lb as v,ma as m,nb as D,ob as S,pa as y,pb as E,xd as P,yd as R}from"./chunk-P5D5HOAL.js";import"./chunk-EQVTEUXC.js";function te(o,a){if(o&1&&(i(0,"mat-option",10),n(1),t()),o&2){let e=a.$implicit;_("value",e),r(),w(e)}}function ie(o,a){if(o&1){let e=h();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}o&2&&(r(),_("astext",!0))}function ne(o,a){if(o&1){let e=h();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),b(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),b(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function oe(o,a){o&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function ae(o,a){if(o&1){let e=h();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),b(27,"br"),n(28,"\xA0 "),u(29,oe,2,0,"div",16),t()()()}if(o&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),v(" ",e.source.name," "),r(4),v(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class o{constructor(a,e,s,l){this.app=a;this.skclient=e;this.dialogRef=s;this.data=l}resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};unsubscribe=[];ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(a=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(a).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}ngOnDestroy(){this.unsubscribe.forEach(a=>a.unsubscribe())}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(a){this.source=a,this.source.type="Unknown";try{let e=JSON.parse(a.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||o)(m(Z),m(Y),m(P),m(R))};static \u0275cmp=y({type:o,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,ae,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,G,z,H,q,U,J,N,B,j,O,K,F,A,V,X,Q,W,T,k,$],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as pe}from"./chunk-FEIJMPL7.js";import{A as le,D as re,f as H,g as j,h as N,i as Y,j as Z,k as ee,l as te,m as ie,n as ne,o as ae,r as oe,w as se}from"./chunk-A626ZBXE.js";import{a as A,b as L}from"./chunk-CSNMIJA3.js";import{i as U,j as z,k as q}from"./chunk-QNWLXTD7.js";import{a as B}from"./chunk-EU3YXT24.js";import"./chunk-NM5IDVR6.js";import{j as J,o as Q}from"./chunk-7OJ7YZPE.js";import{Bd as R,Ca as f,Da as x,Dd as X,Fa as b,Ga as v,Ha as T,Ia as u,Ja as a,Ka as o,La as C,Ld as O,N as y,Nd as W,O as d,P as m,Qd as V,Sa as _,Sd as F,Td as K,Ua as h,Wa as p,eb as w,ha as l,jb as r,je as $,kb as P,lb as M,ma as D,mb as S,pa as I,xd as E,yd as G}from"./chunk-P5D5HOAL.js";import{f as k}from"./chunk-EQVTEUXC.js";function de(s,t){if(s&1){let e=_();a(0,"button",11),h("click",function(){d(e);let i=p();return m(i.load())}),a(1,"mat-icon"),r(2,"file_upload"),o(),r(3," \xA0Load "),o()}if(s&2){let e=p();u("disabled",!e.display.loadRoutesOK&&!e.display.loadWaypointsOK&&!e.display.loadTracksOK)}}function me(s,t){s&1&&(a(0,"div",10)(1,"div")(2,"b"),r(3,"Invalid GPX Data:"),o(),C(4,"br")(5,"br"),a(6,"i"),r(7,"Selected file does not contain GPX data or"),C(8,"br"),r(9," does not correctly implement namespaced <extensions> attributes."),o()()())}function ue(s,t){s&1&&C(0,"mat-progress-bar",12)}function he(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",26,0),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkWpt(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selWaypoints[n])}}function _e(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.waypoints=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.waypoints=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",18),r(5,"place"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Waypoints:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",21),h("change",function(i){d(e);let c=p(3);return m(c.checkWpt(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,he,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.waypoints),l(11),S(" (",e.display.selCount.waypoints," of ",e.gpxData==null?null:e.gpxData.waypoints.length,") "),l(2),u("indeterminate",e.display.someWptChecked)("checked",e.display.allWaypointsChecked)("disabled",e.gpxData.waypoints.length===0),l(2),T(e.gpxData.waypoints)}}function fe(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",29,1),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkRte(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selRoutes[n])}}function xe(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.routes=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.routes=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",27),r(5,"directions"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Routes:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",28),h("change",function(i){d(e);let c=p(3);return m(c.checkRte(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,fe,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.routes),l(11),S(" (",e.display.selCount.routes," of ",e.gpxData==null?null:e.gpxData.routes.length,") "),l(2),u("indeterminate",e.display.someRteChecked)("checked",e.display.allRoutesChecked)("disabled",e.gpxData.routes.length==0),l(2),T(e.gpxData.routes)}}function ye(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",32,2),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkTrk(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selTracks[n])}}function ge(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.tracks=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.tracks=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",30),r(5,"show_chart"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Tracks:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",31),h("change",function(i){d(e);let c=p(3);return m(c.checkTrk(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,ye,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.tracks),l(11),S(" (",e.display.selCount.tracks," of ",e.gpxData==null?null:e.gpxData.tracks.length,") "),l(2),u("indeterminate",e.display.someTrkChecked)("checked",e.display.allTracksChecked)("disabled",e.gpxData.tracks.length==0),l(2),T(e.gpxData.tracks)}}function Ce(s,t){if(s&1&&(a(0,"div",13)(1,"div",14)(2,"div"),r(3,"File:"),o(),a(4,"div",15),r(5),o()(),C(6,"mat-divider"),o(),f(7,_e,18,6,"div",13),f(8,xe,18,6,"div",13),f(9,ge,18,6,"div",13)),s&2){let e=p(2);l(5),M(" ",e.data.fileName," "),l(2),x(e.gpxData.waypoints.length!=0?7:-1),l(),x(e.gpxData.routes.length!=0?8:-1),l(),x(e.gpxData.tracks.length!=0&&e.app.featureFlags().resourceTracks?9:-1)}}function ke(s,t){if(s&1&&(a(0,"div",10),f(1,ue,1,0,"mat-progress-bar",12)(2,Ce,10,4),o()),s&2){let e=p();l(),x(e.app.sIsFetching()?1:2)}}var ce=class s{constructor(t){this.data=t}gpxData={name:"",routes:[],waypoints:[],tracks:[]};selRoutes=[];selectedRoute=null;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;app=y(le);dialogRef=y(E);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(t){return k(this,null,function*(){if(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,this.gpxData=yield this.parseFileData(t),!this.gpxData){console.warn(`Selected file does not contain GPX data or
|
|
2
|
+
does not correctly implement namespaced <extensions> attributes`,"Invalid GPX Data:"),this.display.notValid=!0;return}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(t,e=-1){let n=0;if(e!==-1){this.selRoutes[e]=t,this.display.loadRoutesOK=t;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]=t,this.display.loadRoutesOK=t,this.display.allRoutesChecked=t;this.display.selCount.routes=t?this.selRoutes.length:0}this.display.someRteChecked=!(this.display.allRoutesChecked||n===0)}checkWpt(t,e=-1){let n=0;if(e!==-1){this.selWaypoints[e]=t,this.display.loadWaypointsOK=t;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]=t,this.display.loadWaypointsOK=t,this.display.allWaypointsChecked=t;this.display.selCount.waypoints=t?this.selWaypoints.length:0}this.display.someWptChecked=!(this.display.allWaypointsChecked||n===0)}checkTrk(t,e=-1){let n=0;if(e!==-1){this.selTracks[e]=t,this.display.loadTracksOK=t;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]=t,this.display.loadTracksOK=t,this.display.allTracksChecked=t;this.display.selCount.tracks=t?this.selTracks.length:0}this.display.someTrkChecked=!(this.display.allTracksChecked||n===0)}clear(){this.gpx=null}parseFileData(t){return k(this,null,function*(){let e={name:"",routes:[],waypoints:[],tracks:[]};if(this.gpx=new pe,this.app.sIsFetching.set(!0),!(yield this.gpx.parse(t)))return this.app.sIsFetching.set(!1),null;let n=1;return this.gpx.rte.forEach(i=>{e.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=>{e.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=>{e.tracks.push({name:i.name?i.name:`Trk: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:""}),n++}),this.app.sIsFetching.set(!1),e})}uploadToServer(t){return k(this,null,function*(){this.app.sIsFetching.set(!0),this.errorCount=0,this.subCount=0;for(let n=0;n<t.rte.selected.length;n++)t.rte.selected[n]&&this.transformRoute(this.gpx.rte[n]);for(let n=0;n<t.wpt.selected.length;n++)t.wpt.selected[n]&&this.transformWaypoint(this.gpx.wpt[n]);let e=[];for(let n=0;n<t.trk.selected.length;n++)if(t.trk.selected[n]){let i=this.transformTrack(this.gpx.trk[n]);this.subCount++;try{let c=yield this.skres.postToServer("tracks",i);this.subCount--,Math.floor(c.statusCode/100)===2?(e.push(c.id),this.app.debug("SUCCESS: Track added.")):this.errorCount++,this.checkComplete()}catch(c){this.errorCount++,this.subCount--,this.logError(c),this.checkComplete()}}e.length!==0&&this.skres.trackAddFromServer(e)})}errorList=[];logError(t){let e=t.error?t.error.message:t.message;this.errorList.push({status:t.status,message: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(t){let e=this.skres.buildRoute(t.rtept.map(i=>[i.lon,i.lat])),n=e[1];n.name=t.name??"",n.description=t.desc??"",t.cmt&&(n.feature.properties.cmt=t.cmt),t.src&&(n.feature.properties.src=t.src),t.number&&(n.feature.properties.number=t.number),t.type&&(n.feature.properties.type=t.type),n.feature.properties.coordinatesMeta=[],n.feature.properties.coordinatesMeta=t.rtept.map(i=>{let c={name:i.name??""};return i.cmt&&(c.description=i.cmt),c}),this.subCount++,this.signalk.api.put(this.app.skApiVersion,`/resources/routes/${e[0]}`,e[1]).subscribe(i=>{this.subCount--,Math.floor(i.statusCode/100)===2?(this.app.debug("SUCCESS: Route added."),this.skres.selectionAdd("routes",e[0])):this.errorCount++,this.checkComplete()},i=>{this.errorCount++,this.subCount--,this.logError(i),this.checkComplete()})}transformWaypoint(t){let e=this.skres.buildWaypoint([t.lon,t.lat]),n=e[1];if(t.ele&&n.feature.geometry.coordinates.push(t.ele),t.name&&t.name.length!==0&&(n.name=t.name),t.desc&&t.desc.length!==0&&(n.description=t.desc),t.type&&(n.type=t.type,n.feature.properties.type=t.type),t.cmt&&(n.feature.properties.cmt=t.cmt),t.src&&(n.feature.properties.src=t.src),t.sym){n.feature.properties.sym=t.sym;let i=this.symbols.resolveGpxSym(t.sym);i&&(n.type="waypoint",n.feature.properties.skIcon=i)}this.subCount++,this.signalk.api.put(this.app.skApiVersion,`/resources/waypoints/${e[0]}`,e[1]).subscribe(i=>{this.subCount--,Math.floor(i.statusCode/100)===2?(this.app.debug("SUCCESS: Waypoint added."),this.skres.selectionAdd("waypoints",e[0])):this.errorCount++,this.checkComplete()},i=>{this.errorCount++,this.subCount--,this.logError(i),this.checkComplete()})}transformTrack(t){let e={feature:{type:"Feature",geometry:{type:"MultiLineString",coordinates:[]},properties:{},id:""}};return t.trkseg&&t.trkseg.forEach(n=>{let i=[];n.trkpt.forEach(c=>{i.push([c.lon,c.lat])}),e.feature.geometry.coordinates.push(i)}),t.name&&t.name.length!==0?e.feature.properties.name=t.name:e.feature.properties.name=`gpxtrk #${Math.random().toString().slice(-5)}`,t.desc&&t.desc.length!==0&&(e.feature.properties.description=t.desc),t.cmt&&(e.feature.properties.cmt=t.cmt),t.src&&(e.feature.properties.src=t.src),t.type&&(e.feature.properties.type=t.type),e}static \u0275fac=function(e){return new(e||s)(D(G))};static \u0275cmp=I({type:s,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(e,n){e&1&&(a(0,"div",3)(1,"mat-toolbar",4)(2,"div",5)(3,"div"),f(4,de,4,1,"button",6),o(),a(5,"div",7),r(6,"Import GPX"),o(),a(7,"div",8)(8,"button",9),h("click",function(){return n.dialogRef.close(-1)}),a(9,"mat-icon"),r(10,"close"),o()()()()(),f(11,me,10,0,"div",10)(12,ke,3,1,"div",10),o()),e&2&&(l(4),x(n.app.sIsFetching()?-1:4),l(4),u("disabled",n.app.sIsFetching()),l(3),x(n.display.notValid?11:12))},dependencies:[ae,ne,N,j,X,R,K,F,V,W,O,U,J,Q,L,A,ie,Y,Z,te,ee,q,z,H,B,$],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{ce as GPXImportDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as a}from"./chunk-EU3YXT24.js";import"./chunk-NM5IDVR6.js";import"./chunk-7OJ7YZPE.js";import"./chunk-P5D5HOAL.js";import"./chunk-EQVTEUXC.js";export{a as PlaybackDialog};
|
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-
|
|
57
|
+
<link rel="modulepreload" href="chunk-A626ZBXE.js"><link rel="modulepreload" href="chunk-CSNMIJA3.js"><link rel="modulepreload" href="chunk-QNWLXTD7.js"><link rel="modulepreload" href="chunk-EU3YXT24.js"><link rel="modulepreload" href="chunk-NM5IDVR6.js"><link rel="modulepreload" href="chunk-7OJ7YZPE.js"><link rel="modulepreload" href="chunk-P5D5HOAL.js"><link rel="modulepreload" href="chunk-EQVTEUXC.js"><script src="polyfills-RV3JTMEC.js" type="module"></script><script src="main-IKMWD43W.js" type="module"></script></body>
|
|
58
58
|
</html>
|