@signalk/freeboard-sk 3.3.0 → 3.4.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.
Files changed (46) hide show
  1. package/package.json +2 -2
  2. package/public/3rdpartylicenses.txt +37 -37
  3. package/public/assets/features/split-view-1.jpg +0 -0
  4. package/public/assets/features/split-view-2.jpg +0 -0
  5. package/public/assets/features/toolbar-overflow-1.jpg +0 -0
  6. package/public/assets/features/toolbar-overflow-2.jpg +0 -0
  7. package/public/assets/features-corpus.json +1 -1
  8. package/public/assets/help/index.html +32 -1
  9. package/public/{chunk-YSHHABBQ.js → chunk-5B3P22GG.js} +1 -1
  10. package/public/{chunk-PD55PKQG.js → chunk-5WUOKMEL.js} +5 -5
  11. package/public/{chunk-MYBGWSLC.js → chunk-CXU2QR7B.js} +1 -1
  12. package/public/chunk-D7NY4CGQ.js +1 -0
  13. package/public/{chunk-62WHV6CJ.js → chunk-DXAIA7TN.js} +4 -4
  14. package/public/chunk-FESHPCKG.js +106 -0
  15. package/public/{chunk-PAHYECKY.js → chunk-LZQNRNTA.js} +1 -1
  16. package/public/chunk-M3QKKNN7.js +1 -0
  17. package/public/{chunk-X6D4D6EN.js → chunk-M4D7Z434.js} +1 -1
  18. package/public/chunk-NL5F2VEH.js +4399 -0
  19. package/public/{chunk-45ZTFAA5.js → chunk-OMAUXPDZ.js} +1 -1
  20. package/public/{chunk-MX5HWKAH.js → chunk-RABBT5ST.js} +1 -1
  21. package/public/{chunk-Z5VKGWZC.js → chunk-SU5TGPFJ.js} +1 -1
  22. package/public/{chunk-ISXARX6U.js → chunk-U7APAW37.js} +1 -1
  23. package/public/{chunk-X2BSGTPL.js → chunk-W2UT4HJG.js} +1 -1
  24. package/public/chunk-XHD652B2.js +1 -0
  25. package/public/{chunk-RG7WQ7O2.js → chunk-XHH2BWBG.js} +1 -1
  26. package/public/chunk-XIEUBZE5.js +1 -0
  27. package/public/{chunk-T7ZWMXKZ.js → chunk-XRUZGBPD.js} +1 -1
  28. package/public/{chunk-YZN4NRWW.js → chunk-XSBLUIEK.js} +1 -1
  29. package/public/chunk-YP3ILUPZ.js +1 -0
  30. package/public/chunk-YXEZPMKV.js +1 -0
  31. package/public/chunk-ZJLAX3N2.js +1 -0
  32. package/public/index.html +2 -2
  33. package/public/main-C7W4SDMX.js +358 -0
  34. package/public/{styles-BRU77GKR.css → styles-ADI62PD5.css} +1 -1
  35. package/public/worker-KSHRWMJ6.js +3 -0
  36. package/public/chunk-2KQASZ2P.js +0 -1
  37. package/public/chunk-6E2BDKCH.js +0 -106
  38. package/public/chunk-B3ZGKAZU.js +0 -4170
  39. package/public/chunk-BXGNCKBA.js +0 -1
  40. package/public/chunk-EGNX7VBY.js +0 -1
  41. package/public/chunk-I33LU6L4.js +0 -1
  42. package/public/chunk-I75RV7GQ.js +0 -1
  43. package/public/chunk-NRPRHL2L.js +0 -1
  44. package/public/chunk-V2SBXN4Z.js +0 -1
  45. package/public/main-XWH2CEAU.js +0 -468
  46. package/public/worker-PCWM7FLK.js +0 -3
@@ -321,6 +321,9 @@
321
321
  <br />
322
322
  <b>Left menu bar:</b>
323
323
  Provides access to functions that allow you control the map display.
324
+ If the screen is too short for every button, the ones that don't fit
325
+ are listed at the top of the <b>More Actions</b> menu, which moves to
326
+ the bottom of the bar.
324
327
  <ul>
325
328
  <li class="nobullet">
326
329
  <i class="material-icons">menu</i>
@@ -412,7 +415,11 @@
412
415
  </ul>
413
416
  <br />
414
417
  <b>Right menu bar:</b>
415
- Provides access to quick-actions and experiments.
418
+ Provides access to quick-actions and experiments. If the screen is too
419
+ short for every button, a
420
+ <i class="material-icons">more_horiz</i> button at the bottom of the
421
+ bar lists the ones that don't fit. See the Feature Browser →
422
+ <i>Toolbars on Small Screens</i>.
416
423
  <ul>
417
424
  <li class="nobullet">
418
425
  <i class="material-icons">av_timer</i>
@@ -484,6 +491,15 @@
484
491
  dark map backgrounds.
485
492
  </li>
486
493
 
494
+ <li class="nobullet">
495
+ <i class="material-icons">vertical_split</i>
496
+ <b>Split view:</b>
497
+ Opens a second chart beside or below the main one; press again to
498
+ close it. Shown when <b>Enable split view</b> is checked in
499
+ <a href="#settings">Settings</a>. See the Feature Browser →
500
+ <i>Split View</i>.
501
+ </li>
502
+
487
503
  <li class="nobullet">
488
504
  <img src="./img/command-autopilot.svg" />
489
505
  <b>Display Autopilot console:</b>
@@ -1319,6 +1335,15 @@
1319
1335
  <li>
1320
1336
  <b>Display Chart:</b> Check the checkbox to display the chart.
1321
1337
  </li>
1338
+ <li>
1339
+ <b>Plugin layers:</b> Map layers drawn by Signal K server
1340
+ plugins are listed at the top, above the charts. Check the
1341
+ checkbox to display a layer, click
1342
+ <i class="material-icons">opacity</i> to set its opacity and,
1343
+ where the plugin offers settings, click
1344
+ <i class="material-icons">tune</i> to open them. See the
1345
+ Feature Browser &rarr; <i>Extension Map Layers</i>.
1346
+ </li>
1322
1347
  </ul>
1323
1348
  Freeboard by default will display:
1324
1349
  <ul>
@@ -2175,6 +2200,12 @@
2175
2200
  <b><i class="material-icons">visibility_off</i></b> icon appears
2176
2201
  at the top right of screen.
2177
2202
  </li>
2203
+ <li>
2204
+ <b>Enable split view</b>: Check this box to show the
2205
+ <i class="material-icons">vertical_split</i>
2206
+ <b>Split view</b> button, which opens a second chart beside or
2207
+ below the main one. See the Feature Browser → <i>Split View</i>.
2208
+ </li>
2178
2209
  </ul>
2179
2210
  <ul>
2180
2211
  <li>
@@ -1 +1 @@
1
- import{Ac as o,N as f,c as u}from"./chunk-RG7WQ7O2.js";var d=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new u;constructor(e=!1,t,s=!0,n){this._multiple=e,this._emitChanges=s,this.compareWith=n,t&&t.length&&(e?t.forEach(i=>this._markSelected(i)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(s=>this._markSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(s=>this._unmarkSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,s=new Set(e.map(i=>this._getConcreteValue(i)));e.forEach(i=>this._markSelected(i)),t.filter(i=>!s.has(this._getConcreteValue(i,s))).forEach(i=>this._unmarkSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let s of t)if(this.compareWith(e,s))return s;return e}else return e}};var p=(()=>{class r{_listeners=[];notify(t,s){for(let n of this._listeners)n(t,s)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(s=>t!==s)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(s){return new(s||r)};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var g=class{applyChanges(e,t,s,n,i){e.forEachOperation((c,a,_)=>{let h,l;if(c.previousIndex==null){let m=s(c,a,_);h=t.createEmbeddedView(m.templateRef,m.context,m.index),l=o.INSERTED}else _==null?(t.remove(a),l=o.REMOVED):(h=t.get(a),t.move(h,_),l=o.MOVED);i&&i({context:h?.context,operation:l,record:c})})}detach(){}};export{d as a,p as b,g as c};
1
+ import{Ec as o,O as f,c as u}from"./chunk-XHH2BWBG.js";var d=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new u;constructor(e=!1,t,s=!0,n){this._multiple=e,this._emitChanges=s,this.compareWith=n,t&&t.length&&(e?t.forEach(i=>this._markSelected(i)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(s=>this._markSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(s=>this._unmarkSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,s=new Set(e.map(i=>this._getConcreteValue(i)));e.forEach(i=>this._markSelected(i)),t.filter(i=>!s.has(this._getConcreteValue(i,s))).forEach(i=>this._unmarkSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let s of t)if(this.compareWith(e,s))return s;return e}else return e}};var p=(()=>{class r{_listeners=[];notify(t,s){for(let n of this._listeners)n(t,s)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(s=>t!==s)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(s){return new(s||r)};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var g=class{applyChanges(e,t,s,n,i){e.forEachOperation((c,a,_)=>{let h,l;if(c.previousIndex==null){let m=s(c,a,_);h=t.createEmbeddedView(m.templateRef,m.context,m.index),l=o.INSERTED}else _==null?(t.remove(a),l=o.REMOVED):(h=t.get(a),t.move(h,_),l=o.MOVED);i&&i({context:h?.context,operation:l,record:c})})}detach(){}};export{d as a,p as b,g as c};
@@ -1,4 +1,4 @@
1
- import{b as xt}from"./chunk-YZN4NRWW.js";import{a as U}from"./chunk-YSHHABBQ.js";import{$ as H,$a as v,Ad as pt,Cc as j,Cd as _t,Ga as C,Ha as T,Ia as z,K as V,Kb as B,M as tt,Na as f,O as E,Oa as l,P as R,Pa as _,Qa as L,R as c,Uc as dt,Ud as gt,V as it,Vd as bt,W as et,X as nt,Yd as ut,Za as D,_ as Q,_b as W,_d as ft,a as Y,aa as F,ab as I,bb as r,c as $,ca as at,cb as S,da as w,db as G,de as vt,eb as d,ec as st,fa as O,fb as h,jb as M,lb as x,ma as p,md as q,nd as ht,qa as ot,qc as ct,sc as rt,t as J,ua as g,uc as lt,va as P,wa as b,wc as mt,wd as m,ya as u,za as y,zb as A}from"./chunk-RG7WQ7O2.js";var Ot=(()=>{class i{get vertical(){return this._vertical}set vertical(t){this._vertical=m(t)}_vertical=!1;get inset(){return this._inset}set inset(t){this._inset=m(t)}_inset=!1;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,n){e&2&&(C("aria-orientation",n.vertical?"vertical":"horizontal"),x("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,n){},styles:[`.mat-divider {
1
+ import{b as xt}from"./chunk-XSBLUIEK.js";import{a as U}from"./chunk-5B3P22GG.js";import{$ as Q,$b as W,$d as ft,Aa as w,Ab as A,Ac as mt,Bd as pt,Dd as _t,Gc as j,Ha as C,Ia as T,Ja as z,K as V,Lb as B,N as tt,Oa as f,P as E,Pa as l,Q as R,Qa as _,Ra as L,S as c,Vd as gt,W as it,Wd as bt,X as et,Y as nt,Yc as dt,Zd as ut,_a as D,a as Y,aa as H,ab as v,ba as F,bb as I,c as $,cb as r,da as at,db as S,ea as y,eb as G,ee as vt,fb as d,fc as st,ga as O,gb as h,kb as M,mb as x,na as p,od as q,pd as ht,ra as ot,rc as ct,t as J,va as g,wa as P,xa as b,xc as rt,yd as m,za as u,zc as lt}from"./chunk-XHH2BWBG.js";var Ot=(()=>{class i{get vertical(){return this._vertical}set vertical(t){this._vertical=m(t)}_vertical=!1;get inset(){return this._inset}set inset(t){this._inset=m(t)}_inset=!1;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,n){e&2&&(C("aria-orientation",n.vertical?"vertical":"horizontal"),x("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,n){},styles:[`.mat-divider {
2
2
  display: block;
3
3
  margin: 0;
4
4
  border-top-style: solid;
@@ -18,7 +18,7 @@ import{b as xt}from"./chunk-YZN4NRWW.js";import{a as U}from"./chunk-YSHHABBQ.js"
18
18
  margin-left: auto;
19
19
  margin-right: 80px;
20
20
  }
21
- `],encapsulation:2,changeDetection:0})}return i})(),kt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=P({type:i});static \u0275inj=E({imports:[j]})}return i})();var N=["*"],Z=`.mdc-list {
21
+ `],encapsulation:2,changeDetection:0})}return i})(),kt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=P({type:i});static \u0275inj=E({imports:[j]})}return i})();var N=["*"],K=`.mdc-list {
22
22
  margin: 0;
23
23
  padding: 8px 0;
24
24
  list-style-type: none;
@@ -562,7 +562,7 @@ mat-action-list button::-moz-focus-inner {
562
562
  .mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated {
563
563
  background-color: var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container));
564
564
  }
565
- `,wt=["unscopedContent"],St=["text"],Et=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Rt=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],Ft=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],Pt=["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"];function Bt(i,o){i&1&&r(0,4)}function jt(i,o){if(i&1&&(l(0,"div",11),L(1,"input",12),l(2,"div",13),it(),l(3,"svg",14),L(4,"path",15),_(),et(),L(5,"div",16),_()()),i&2){let t=v();x("mdc-checkbox--disabled",t.disabled),p(),f("checked",t.selected)("disabled",t.disabled)}}function Nt(i,o){if(i&1&&(l(0,"div",17),L(1,"input",18),l(2,"div",19),L(3,"div",20)(4,"div",21),_()()),i&2){let t=v();x("mdc-radio--disabled",t.disabled),p(),f("checked",t.selected)("disabled",t.disabled)}}function Vt(i,o){}function Qt(i,o){if(i&1&&(l(0,"span",4),y(1,Vt,0,0,"ng-template",6),_()),i&2){v();let t=M(3);p(),f("ngTemplateOutlet",t)}}function Ht(i,o){}function Gt(i,o){if(i&1&&(l(0,"span",5),y(1,Ht,0,0,"ng-template",6),_()),i&2){v();let t=M(5);p(),f("ngTemplateOutlet",t)}}function Wt(i,o){}function qt(i,o){if(i&1&&y(0,Wt,0,0,"ng-template",6),i&2){v();let t=M(1);f("ngTemplateOutlet",t)}}function Ut(i,o){}function Xt(i,o){if(i&1&&(l(0,"span",9),y(1,Ut,0,0,"ng-template",6),_()),i&2){v();let t=M(3);p(),f("ngTemplateOutlet",t)}}function Kt(i,o){}function Zt(i,o){if(i&1&&(l(0,"span",9),y(1,Kt,0,0,"ng-template",6),_()),i&2){v();let t=M(5);p(),f("ngTemplateOutlet",t)}}function Yt(i,o){}function $t(i,o){if(i&1&&y(0,Yt,0,0,"ng-template",6),i&2){v();let t=M(1);f("ngTemplateOutlet",t)}}var yt=new R("ListOption"),Ct=(()=>{class i{_elementRef=c(O);constructor(){}static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),Lt=(()=>{class i{_elementRef=c(O);constructor(){}static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),Jt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),It=(()=>{class i{_listOption=c(yt,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,hostVars:4,hostBindings:function(e,n){e&2&&x("mdc-list-item__start",n._isAlignedAtStart())("mdc-list-item__end",!n._isAlignedAtStart())}})}return i})(),ti=(()=>{class i extends It{static \u0275fac=(()=>{let t;return function(n){return(t||(t=w(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[u]})}return i})(),ii=(()=>{class i extends It{static \u0275fac=(()=>{let t;return function(n){return(t||(t=w(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[u]})}return i})(),ei=new R("MAT_LIST_CONFIG"),k=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=m(t)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(t){this._disabled.set(m(t))}_disabled=F(!1);_defaultOptions=c(ei,{optional:!0});static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,hostVars:1,hostBindings:function(e,n){e&2&&C("aria-disabled",n.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),X=(()=>{class i{_elementRef=c(O);_ngZone=c(H);_listBase=c(k,{optional:!0});_platform=c(ct);_hostElement;_isButtonElement;_noopAnimations=pt();_avatars;_icons;set lines(t){this._explicitLines=mt(t,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=m(t)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(t){this._disabled.set(m(t))}_disabled=F(!1);_subscriptions=new Y;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){c(lt).load(ut);let t=c(bt,{optional:!0});this.rippleConfig=t||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new gt(this,this._ngZone,this._hostElement,this._platform,c(nt)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(J(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();let e=this._explicitLines??this._inferLinesFromContent(),n=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",e<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",e<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",e===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",e===3),this._hasUnscopedTextContent){let a=this._titles.length===0&&e===1;n.classList.toggle("mdc-list-item__primary-text",a),n.classList.toggle("mdc-list-item__secondary-text",!a)}else n.classList.remove("mdc-list-item__primary-text"),n.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!!(t.textContent&&t.textContent.trim()))}static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,contentQueries:function(e,n,a){if(e&1&&S(a,ti,4)(a,ii,4),e&2){let s;d(s=h())&&(n._avatars=s),d(s=h())&&(n._icons=s)}},hostVars:4,hostBindings:function(e,n){e&2&&(C("aria-disabled",n.disabled)("disabled",n._isButtonElement&&n.disabled||null),x("mdc-list-item--disabled",n.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})();var Ni=(()=>{class i extends k{_isNonInteractive=!1;static \u0275fac=(()=>{let t;return function(n){return(t||(t=w(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[A([{provide:k,useExisting:i}]),u],ngContentSelectors:N,decls:1,vars:0,template:function(e,n){e&1&&(I(),r(0))},styles:[`.mdc-list {
565
+ `,yt=["unscopedContent"],St=["text"],Et=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Rt=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],Ft=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],Pt=["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"];function Bt(i,o){i&1&&r(0,4)}function jt(i,o){if(i&1&&(l(0,"div",11),L(1,"input",12),l(2,"div",13),it(),l(3,"svg",14),L(4,"path",15),_(),et(),L(5,"div",16),_()()),i&2){let t=v();x("mdc-checkbox--disabled",t.disabled),p(),f("checked",t.selected)("disabled",t.disabled)}}function Nt(i,o){if(i&1&&(l(0,"div",17),L(1,"input",18),l(2,"div",19),L(3,"div",20)(4,"div",21),_()()),i&2){let t=v();x("mdc-radio--disabled",t.disabled),p(),f("checked",t.selected)("disabled",t.disabled)}}function Vt(i,o){}function Qt(i,o){if(i&1&&(l(0,"span",4),w(1,Vt,0,0,"ng-template",6),_()),i&2){v();let t=M(3);p(),f("ngTemplateOutlet",t)}}function Ht(i,o){}function Gt(i,o){if(i&1&&(l(0,"span",5),w(1,Ht,0,0,"ng-template",6),_()),i&2){v();let t=M(5);p(),f("ngTemplateOutlet",t)}}function Wt(i,o){}function qt(i,o){if(i&1&&w(0,Wt,0,0,"ng-template",6),i&2){v();let t=M(1);f("ngTemplateOutlet",t)}}function Ut(i,o){}function Xt(i,o){if(i&1&&(l(0,"span",9),w(1,Ut,0,0,"ng-template",6),_()),i&2){v();let t=M(3);p(),f("ngTemplateOutlet",t)}}function Zt(i,o){}function Kt(i,o){if(i&1&&(l(0,"span",9),w(1,Zt,0,0,"ng-template",6),_()),i&2){v();let t=M(5);p(),f("ngTemplateOutlet",t)}}function Yt(i,o){}function $t(i,o){if(i&1&&w(0,Yt,0,0,"ng-template",6),i&2){v();let t=M(1);f("ngTemplateOutlet",t)}}var wt=new R("ListOption"),Ct=(()=>{class i{_elementRef=c(O);constructor(){}static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),Lt=(()=>{class i{_elementRef=c(O);constructor(){}static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),Jt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),It=(()=>{class i{_listOption=c(wt,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,hostVars:4,hostBindings:function(e,n){e&2&&x("mdc-list-item__start",n._isAlignedAtStart())("mdc-list-item__end",!n._isAlignedAtStart())}})}return i})(),ti=(()=>{class i extends It{static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[u]})}return i})(),ii=(()=>{class i extends It{static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[u]})}return i})(),ei=new R("MAT_LIST_CONFIG"),k=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=m(t)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(t){this._disabled.set(m(t))}_disabled=F(!1);_defaultOptions=c(ei,{optional:!0});static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,hostVars:1,hostBindings:function(e,n){e&2&&C("aria-disabled",n.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),X=(()=>{class i{_elementRef=c(O);_ngZone=c(H);_listBase=c(k,{optional:!0});_platform=c(ct);_hostElement;_isButtonElement;_noopAnimations=pt();_avatars;_icons;set lines(t){this._explicitLines=mt(t,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=m(t)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(t){this._disabled.set(m(t))}_disabled=F(!1);_subscriptions=new Y;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){c(lt).load(ut);let t=c(bt,{optional:!0});this.rippleConfig=t||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new gt(this,this._ngZone,this._hostElement,this._platform,c(nt)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(J(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();let e=this._explicitLines??this._inferLinesFromContent(),n=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",e<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",e<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",e===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",e===3),this._hasUnscopedTextContent){let a=this._titles.length===0&&e===1;n.classList.toggle("mdc-list-item__primary-text",a),n.classList.toggle("mdc-list-item__secondary-text",!a)}else n.classList.remove("mdc-list-item__primary-text"),n.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!!(t.textContent&&t.textContent.trim()))}static \u0275fac=function(e){return new(e||i)};static \u0275dir=b({type:i,contentQueries:function(e,n,a){if(e&1&&S(a,ti,4)(a,ii,4),e&2){let s;d(s=h())&&(n._avatars=s),d(s=h())&&(n._icons=s)}},hostVars:4,hostBindings:function(e,n){e&2&&(C("aria-disabled",n.disabled)("disabled",n._isButtonElement&&n.disabled||null),x("mdc-list-item--disabled",n.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})();var Ni=(()=>{class i extends k{_isNonInteractive=!1;static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-action-list"]],hostAttrs:["role","group",1,"mat-mdc-action-list","mat-mdc-list-base","mdc-list"],exportAs:["matActionList"],features:[A([{provide:k,useExisting:i}]),u],ngContentSelectors:N,decls:1,vars:0,template:function(e,n){e&1&&(I(),r(0))},styles:[`.mdc-list {
566
566
  margin: 0;
567
567
  padding: 8px 0;
568
568
  list-style-type: none;
@@ -1106,7 +1106,7 @@ mat-action-list button::-moz-focus-inner {
1106
1106
  .mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated {
1107
1107
  background-color: var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container));
1108
1108
  }
1109
- `],encapsulation:2,changeDetection:0})}return i})();var Vi=(()=>{class i extends k{static \u0275fac=(()=>{let t;return function(n){return(t||(t=w(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[A([{provide:k,useExisting:i}]),u],ngContentSelectors:N,decls:1,vars:0,template:function(e,n){e&1&&(I(),r(0))},styles:[Z],encapsulation:2,changeDetection:0})}return i})(),Qi=(()=>{class i extends X{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(t){this._activated=m(t)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let t;return function(n){return(t||(t=w(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,n,a){if(e&1&&S(a,Lt,5)(a,Ct,5)(a,Jt,5),e&2){let s;d(s=h())&&(n._lines=s),d(s=h())&&(n._titles=s),d(s=h())&&(n._meta=s)}},viewQuery:function(e,n){if(e&1&&G(wt,5)(St,5),e&2){let a;d(a=h())&&(n._unscopedContent=a.first),d(a=h())&&(n._itemText=a.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(e,n){e&2&&(C("aria-current",n._getAriaCurrent()),x("mdc-list-item--activated",n.activated)("mdc-list-item--with-leading-avatar",n._avatars.length!==0)("mdc-list-item--with-leading-icon",n._icons.length!==0)("mdc-list-item--with-trailing-meta",n._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",n._hasBothLeadingAndTrailing())("_mat-animation-noopable",n._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[u],ngContentSelectors:Rt,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(e,n){e&1&&(I(Et),r(0),l(1,"span",1),r(2,1),r(3,2),l(4,"span",2,0),D("cdkObserveContent",function(){return n._updateItemLines(!0)}),r(6,3),_()(),r(7,4),r(8,5),L(9,"div",3))},dependencies:[q],encapsulation:2,changeDetection:0})}return i})(),Mt=new R("SelectionList"),ni=(()=>{class i extends X{_selectionList=c(Mt);_changeDetectorRef=c(W);_lines;_titles;_unscopedContent;selectedChange=new Q;togglePosition="after";get checkboxPosition(){return this.togglePosition}set checkboxPosition(t){this.togglePosition=t}get color(){return this._color||this._selectionList.color}set color(t){this._color=t}_color;get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}_value;get selected(){return this._selectionList.selectedOptions.isSelected(this)}set selected(t){let e=m(t);e!==this._selected&&(this._setSelected(e),(e||this._selectionList.multiple)&&this._selectionList._reportValueChange())}_selected=!1;_inputsInitialized=!1;ngOnInit(){let t=this._selectionList;t._value&&t._value.some(n=>t.compareWith(this._value,n))&&this._setSelected(!0);let e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetectorRef.markForCheck())}),this._inputsInitialized=!0}ngOnDestroy(){super.ngOnDestroy(),this.selected&&Promise.resolve().then(()=>{this.selected=!1})}toggle(){this.selected=!this.selected}focus(){this._hostElement.focus()}getLabel(){return(this._titles?.get(0)?._elementRef.nativeElement||this._unscopedContent?.nativeElement)?.textContent||""}_hasCheckboxAt(t){return this._selectionList.multiple&&this._getTogglePosition()===t}_hasRadioAt(t){return!this._selectionList.multiple&&this._getTogglePosition()===t&&!this._selectionList.hideSingleSelectionIndicator}_hasIconsOrAvatarsAt(t){return this._hasProjected("icons",t)||this._hasProjected("avatars",t)}_hasProjected(t,e){return this._getTogglePosition()!==e&&(t==="avatars"?this._avatars.length!==0:this._icons.length!==0)}_handleBlur(){this._selectionList._onTouched()}_getTogglePosition(){return this.togglePosition||"after"}_setSelected(t){return t===this._selected?!1:(this._selected=t,t?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this),this.selectedChange.emit(t),this._changeDetectorRef.markForCheck(),!0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_toggleOnInteraction(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))}_setTabindex(t){this._hostElement.setAttribute("tabindex",t+"")}_hasBothLeadingAndTrailing(){let t=this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"),e=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return t&&e}static \u0275fac=(()=>{let t;return function(n){return(t||(t=w(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-list-option"]],contentQueries:function(e,n,a){if(e&1&&S(a,Lt,5)(a,Ct,5),e&2){let s;d(s=h())&&(n._lines=s),d(s=h())&&(n._titles=s)}},viewQuery:function(e,n){if(e&1&&G(wt,5),e&2){let a;d(a=h())&&(n._unscopedContent=a.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:27,hostBindings:function(e,n){e&1&&D("blur",function(){return n._handleBlur()})("click",function(){return n._toggleOnInteraction()}),e&2&&(C("aria-selected",n.selected),x("mdc-list-item--selected",n.selected&&!n._selectionList.multiple&&n._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",n._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",n._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",n._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",n._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",n._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",n._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",n._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",n._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",n._hasBothLeadingAndTrailing())("mat-accent",n.color!=="primary"&&n.color!=="warn")("mat-warn",n.color==="warn")("_mat-animation-noopable",n._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[A([{provide:X,useExisting:i},{provide:yt,useExisting:i}]),u],ngContentSelectors:Pt,decls:20,vars:4,consts:[["icons",""],["checkbox",""],["radio",""],["unscopedContent",""],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mdc-list-item__end"],[1,"mat-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"]],template:function(e,n){e&1&&(I(Ft),y(0,Bt,1,0,"ng-template",null,0,B)(2,jt,6,4,"ng-template",null,1,B)(4,Nt,5,4,"ng-template",null,2,B),T(6,Qt,2,1,"span",4)(7,Gt,2,1,"span",5),T(8,qt,1,1,null,6),l(9,"span",7),r(10),r(11,1),l(12,"span",8,3),D("cdkObserveContent",function(){return n._updateItemLines(!0)}),r(14,2),_()(),T(15,Xt,2,1,"span",9)(16,Zt,2,1,"span",9),T(17,$t,1,1,null,6),r(18,3),L(19,"div",10)),e&2&&(p(6),z(n._hasCheckboxAt("before")?6:n._hasRadioAt("before")?7:-1),p(2),z(n._hasIconsOrAvatarsAt("before")?8:-1),p(7),z(n._hasCheckboxAt("after")?15:n._hasRadioAt("after")?16:-1),p(2),z(n._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[st,q],styles:[`.mat-mdc-list-option-with-trailing-avatar.mdc-list-item, [dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item {
1109
+ `],encapsulation:2,changeDetection:0})}return i})();var Vi=(()=>{class i extends k{static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[A([{provide:k,useExisting:i}]),u],ngContentSelectors:N,decls:1,vars:0,template:function(e,n){e&1&&(I(),r(0))},styles:[K],encapsulation:2,changeDetection:0})}return i})(),Qi=(()=>{class i extends X{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(t){this._activated=m(t)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,n,a){if(e&1&&S(a,Lt,5)(a,Ct,5)(a,Jt,5),e&2){let s;d(s=h())&&(n._lines=s),d(s=h())&&(n._titles=s),d(s=h())&&(n._meta=s)}},viewQuery:function(e,n){if(e&1&&G(yt,5)(St,5),e&2){let a;d(a=h())&&(n._unscopedContent=a.first),d(a=h())&&(n._itemText=a.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(e,n){e&2&&(C("aria-current",n._getAriaCurrent()),x("mdc-list-item--activated",n.activated)("mdc-list-item--with-leading-avatar",n._avatars.length!==0)("mdc-list-item--with-leading-icon",n._icons.length!==0)("mdc-list-item--with-trailing-meta",n._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",n._hasBothLeadingAndTrailing())("_mat-animation-noopable",n._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[u],ngContentSelectors:Rt,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(e,n){e&1&&(I(Et),r(0),l(1,"span",1),r(2,1),r(3,2),l(4,"span",2,0),D("cdkObserveContent",function(){return n._updateItemLines(!0)}),r(6,3),_()(),r(7,4),r(8,5),L(9,"div",3))},dependencies:[q],encapsulation:2,changeDetection:0})}return i})(),Mt=new R("SelectionList"),ni=(()=>{class i extends X{_selectionList=c(Mt);_changeDetectorRef=c(W);_lines;_titles;_unscopedContent;selectedChange=new Q;togglePosition="after";get checkboxPosition(){return this.togglePosition}set checkboxPosition(t){this.togglePosition=t}get color(){return this._color||this._selectionList.color}set color(t){this._color=t}_color;get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}_value;get selected(){return this._selectionList.selectedOptions.isSelected(this)}set selected(t){let e=m(t);e!==this._selected&&(this._setSelected(e),(e||this._selectionList.multiple)&&this._selectionList._reportValueChange())}_selected=!1;_inputsInitialized=!1;ngOnInit(){let t=this._selectionList;t._value&&t._value.some(n=>t.compareWith(this._value,n))&&this._setSelected(!0);let e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetectorRef.markForCheck())}),this._inputsInitialized=!0}ngOnDestroy(){super.ngOnDestroy(),this.selected&&Promise.resolve().then(()=>{this.selected=!1})}toggle(){this.selected=!this.selected}focus(){this._hostElement.focus()}getLabel(){return(this._titles?.get(0)?._elementRef.nativeElement||this._unscopedContent?.nativeElement)?.textContent||""}_hasCheckboxAt(t){return this._selectionList.multiple&&this._getTogglePosition()===t}_hasRadioAt(t){return!this._selectionList.multiple&&this._getTogglePosition()===t&&!this._selectionList.hideSingleSelectionIndicator}_hasIconsOrAvatarsAt(t){return this._hasProjected("icons",t)||this._hasProjected("avatars",t)}_hasProjected(t,e){return this._getTogglePosition()!==e&&(t==="avatars"?this._avatars.length!==0:this._icons.length!==0)}_handleBlur(){this._selectionList._onTouched()}_getTogglePosition(){return this.togglePosition||"after"}_setSelected(t){return t===this._selected?!1:(this._selected=t,t?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this),this.selectedChange.emit(t),this._changeDetectorRef.markForCheck(),!0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_toggleOnInteraction(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))}_setTabindex(t){this._hostElement.setAttribute("tabindex",t+"")}_hasBothLeadingAndTrailing(){let t=this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"),e=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return t&&e}static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-list-option"]],contentQueries:function(e,n,a){if(e&1&&S(a,Lt,5)(a,Ct,5),e&2){let s;d(s=h())&&(n._lines=s),d(s=h())&&(n._titles=s)}},viewQuery:function(e,n){if(e&1&&G(yt,5),e&2){let a;d(a=h())&&(n._unscopedContent=a.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:27,hostBindings:function(e,n){e&1&&D("blur",function(){return n._handleBlur()})("click",function(){return n._toggleOnInteraction()}),e&2&&(C("aria-selected",n.selected),x("mdc-list-item--selected",n.selected&&!n._selectionList.multiple&&n._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",n._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",n._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",n._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",n._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",n._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",n._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",n._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",n._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",n._hasBothLeadingAndTrailing())("mat-accent",n.color!=="primary"&&n.color!=="warn")("mat-warn",n.color==="warn")("_mat-animation-noopable",n._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[A([{provide:X,useExisting:i},{provide:wt,useExisting:i}]),u],ngContentSelectors:Pt,decls:20,vars:4,consts:[["icons",""],["checkbox",""],["radio",""],["unscopedContent",""],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mdc-list-item__end"],[1,"mat-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"]],template:function(e,n){e&1&&(I(Ft),w(0,Bt,1,0,"ng-template",null,0,B)(2,jt,6,4,"ng-template",null,1,B)(4,Nt,5,4,"ng-template",null,2,B),T(6,Qt,2,1,"span",4)(7,Gt,2,1,"span",5),T(8,qt,1,1,null,6),l(9,"span",7),r(10),r(11,1),l(12,"span",8,3),D("cdkObserveContent",function(){return n._updateItemLines(!0)}),r(14,2),_()(),T(15,Xt,2,1,"span",9)(16,Kt,2,1,"span",9),T(17,$t,1,1,null,6),r(18,3),L(19,"div",10)),e&2&&(p(6),z(n._hasCheckboxAt("before")?6:n._hasRadioAt("before")?7:-1),p(2),z(n._hasIconsOrAvatarsAt("before")?8:-1),p(7),z(n._hasCheckboxAt("after")?15:n._hasRadioAt("after")?16:-1),p(2),z(n._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[st,q],styles:[`.mat-mdc-list-option-with-trailing-avatar.mdc-list-item, [dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item {
1110
1110
  padding-left: 0;
1111
1111
  padding-right: 0;
1112
1112
  }
@@ -1609,4 +1609,4 @@ mat-action-list button::-moz-focus-inner {
1609
1609
  left: 16px;
1610
1610
  }
1611
1611
  }
1612
- `],encapsulation:2,changeDetection:0})}return i})();var Hi=(()=>{class i extends k{_isNonInteractive=!1;static \u0275fac=(()=>{let t;return function(n){return(t||(t=w(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[A([{provide:k,useExisting:i}]),u],ngContentSelectors:N,decls:1,vars:0,template:function(e,n){e&1&&(I(),r(0))},styles:[Z],encapsulation:2,changeDetection:0})}return i})(),ai={provide:vt,useExisting:tt(()=>oi),multi:!0},K=class{source;options;constructor(o,t){this.source=o,this.options=t}},oi=(()=>{class i extends k{_element=c(O);_ngZone=c(H);_renderer=c(ot);_initialized=!1;_keyManager;_listenerCleanups;_destroyed=new $;_isDestroyed=!1;_onChange=t=>{};_items;selectionChange=new Q;color="accent";compareWith=(t,e)=>t===e;get multiple(){return this._multiple}set multiple(t){let e=m(t);e!==this._multiple&&(this._multiple=e,this.selectedOptions=new U(this._multiple,this.selectedOptions.selected))}_multiple=!0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=m(t)}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;selectedOptions=new U(this._multiple);_value=null;_onTouched=()=>{};_changeDetectorRef=c(W);constructor(){super(),this._isNonInteractive=!1}ngAfterViewInit(){this._initialized=!0,this._setupRovingTabindex(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen(this._element.nativeElement,"focusin",this._handleFocusin),this._renderer.listen(this._element.nativeElement,"focusout",this._handleFocusout)]}),this._value&&this._setOptionsFromValues(this._value),this._watchForSelectionChange()}ngOnChanges(t){let e=t.disabled,n=t.disableRipple,a=t.hideSingleSelectionIndicator;(n&&!n.firstChange||e&&!e.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._listenerCleanups?.forEach(t=>t()),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_reportValueChange(){if(this.options&&!this._isDestroyed){let t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new K(this,t))}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this._markOptionsForCheck()}get disabled(){return this._selectionListDisabled()}set disabled(t){this._selectionListDisabled.set(m(t)),this._selectionListDisabled()&&this._keyManager?.setActiveItem(-1)}_selectionListDisabled=F(!1);registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_watchForSelectionChange(){this.selectedOptions.changed.pipe(V(this._destroyed)).subscribe(t=>{for(let e of t.added)e.selected=!0;for(let e of t.removed)e.selected=!1;this._containsFocus()||this._resetActiveOption()})}_setOptionsFromValues(t){this.options.forEach(e=>e._setSelected(!1)),t.forEach(e=>{let n=this.options.find(a=>a.selected?!1:this.compareWith(a.value,e));n&&n._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_markOptionsForCheck(){this.options&&this.options.forEach(t=>t._markForCheck())}_setAllOptionsSelected(t,e){let n=[];return this.options.forEach(a=>{(!e||!a.disabled)&&a._setSelected(t)&&n.push(a)}),n.length&&this._reportValueChange(),n}get options(){return this._items}_handleKeydown(t){let e=this._keyManager.activeItem;if((t.keyCode===13||t.keyCode===32)&&!this._keyManager.isTyping()&&e&&!e.disabled)t.preventDefault(),e._toggleOnInteraction();else if(t.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&dt(t,"ctrlKey","metaKey")){let n=this.options.some(a=>!a.disabled&&!a.selected);t.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(n,!0))}else this._keyManager.onKeydown(t)}_handleFocusout=()=>{setTimeout(()=>{this._containsFocus()||this._resetActiveOption()})};_handleFocusin=t=>{if(this.disabled)return;let e=this._items.toArray().findIndex(n=>n._elementRef.nativeElement.contains(t.target));e>-1?this._setActiveOption(e):this._resetActiveOption()};_setupRovingTabindex(){this._keyManager=new _t(this._items).withHomeAndEnd().withTypeAhead().withWrap().skipPredicate(()=>this.disabled),this._resetActiveOption(),this._keyManager.change.subscribe(t=>this._setActiveOption(t)),this._items.changes.pipe(V(this._destroyed)).subscribe(()=>{let t=this._keyManager.activeItem;(!t||this._items.toArray().indexOf(t)===-1)&&this._resetActiveOption()})}_setActiveOption(t){this._items.forEach((e,n)=>e._setTabindex(n===t?0:-1)),this._keyManager.updateActiveItem(t)}_resetActiveOption(){if(this.disabled){this._setActiveOption(-1);return}let t=this._items.find(e=>e.selected&&!e.disabled)||this._items.first;this._setActiveOption(t?this._items.toArray().indexOf(t):-1)}_containsFocus(){let t=rt();return t&&this._element.nativeElement.contains(t)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-selection-list"]],contentQueries:function(e,n,a){if(e&1&&S(a,ni,5),e&2){let s;d(s=h())&&(n._items=s)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(e,n){e&1&&D("keydown",function(s){return n._handleKeydown(s)}),e&2&&C("aria-multiselectable",n.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[A([ai,{provide:k,useExisting:i},{provide:Mt,useExisting:i}]),u,at],ngContentSelectors:N,decls:1,vars:0,template:function(e,n){e&1&&(I(),r(0))},styles:[Z],encapsulation:2,changeDetection:0})}return i})(),Gi=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=P({type:i});static \u0275inj=E({imports:[ht,ft,xt,j,kt]})}return i})();var Ui="plotterExtensions";var Xi=["widgets","panels.iframe","panels.state","buttons","events.publish","signalk.stream","signalk.put","units","map","resources","resources.filter","routes","charts","charts.time","nightMode","resourceGroups","background.iframe","ui","windows"],si=["tr","ct","cb","bl","br"],Ki={tr:"Top right",ct:"Top center",cb:"Bottom center",bl:"Bottom left",br:"Bottom right"},Zi={tr:"top",ct:"top",cb:"bottom",bl:"bottom",br:"bottom"},ci={tr:{cols:4,rows:2},ct:{cols:2,rows:2},cb:{cols:2,rows:2},bl:{cols:4,rows:2},br:{cols:4,rows:2}},ri={tr:"right",ct:"left",cb:"left",bl:"left",br:"right"},Yi=si.reduce((i,o)=>{let t=Array.from({length:ci[o].cols},(e,n)=>n);return i[o]=ri[o]==="right"?t.reverse():t,i},{}),$i=6;function Ji(){return Math.min(124,Math.max(84,.095*window.innerWidth))}function te(i){let o=/^([12])x([12])$/.exec(i??"");return o?{cols:Number(o[1]),rows:Number(o[2])}:{cols:1,rows:1}}export{Ot as a,kt as b,Ct as c,Lt as d,Ni as e,Vi as f,Qi as g,ni as h,Hi as i,oi as j,Gi as k,Ui as l,Xi as m,si as n,Ki as o,Zi as p,ci as q,Yi as r,$i as s,Ji as t,te as u};
1612
+ `],encapsulation:2,changeDetection:0})}return i})();var Hi=(()=>{class i extends k{_isNonInteractive=!1;static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(i)))(n||i)}})();static \u0275cmp=g({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[A([{provide:k,useExisting:i}]),u],ngContentSelectors:N,decls:1,vars:0,template:function(e,n){e&1&&(I(),r(0))},styles:[K],encapsulation:2,changeDetection:0})}return i})(),ai={provide:vt,useExisting:tt(()=>oi),multi:!0},Z=class{source;options;constructor(o,t){this.source=o,this.options=t}},oi=(()=>{class i extends k{_element=c(O);_ngZone=c(H);_renderer=c(ot);_initialized=!1;_keyManager;_listenerCleanups;_destroyed=new $;_isDestroyed=!1;_onChange=t=>{};_items;selectionChange=new Q;color="accent";compareWith=(t,e)=>t===e;get multiple(){return this._multiple}set multiple(t){let e=m(t);e!==this._multiple&&(this._multiple=e,this.selectedOptions=new U(this._multiple,this.selectedOptions.selected))}_multiple=!0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=m(t)}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;selectedOptions=new U(this._multiple);_value=null;_onTouched=()=>{};_changeDetectorRef=c(W);constructor(){super(),this._isNonInteractive=!1}ngAfterViewInit(){this._initialized=!0,this._setupRovingTabindex(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen(this._element.nativeElement,"focusin",this._handleFocusin),this._renderer.listen(this._element.nativeElement,"focusout",this._handleFocusout)]}),this._value&&this._setOptionsFromValues(this._value),this._watchForSelectionChange()}ngOnChanges(t){let e=t.disabled,n=t.disableRipple,a=t.hideSingleSelectionIndicator;(n&&!n.firstChange||e&&!e.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._listenerCleanups?.forEach(t=>t()),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_reportValueChange(){if(this.options&&!this._isDestroyed){let t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new Z(this,t))}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this._markOptionsForCheck()}get disabled(){return this._selectionListDisabled()}set disabled(t){this._selectionListDisabled.set(m(t)),this._selectionListDisabled()&&this._keyManager?.setActiveItem(-1)}_selectionListDisabled=F(!1);registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_watchForSelectionChange(){this.selectedOptions.changed.pipe(V(this._destroyed)).subscribe(t=>{for(let e of t.added)e.selected=!0;for(let e of t.removed)e.selected=!1;this._containsFocus()||this._resetActiveOption()})}_setOptionsFromValues(t){this.options.forEach(e=>e._setSelected(!1)),t.forEach(e=>{let n=this.options.find(a=>a.selected?!1:this.compareWith(a.value,e));n&&n._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_markOptionsForCheck(){this.options&&this.options.forEach(t=>t._markForCheck())}_setAllOptionsSelected(t,e){let n=[];return this.options.forEach(a=>{(!e||!a.disabled)&&a._setSelected(t)&&n.push(a)}),n.length&&this._reportValueChange(),n}get options(){return this._items}_handleKeydown(t){let e=this._keyManager.activeItem;if((t.keyCode===13||t.keyCode===32)&&!this._keyManager.isTyping()&&e&&!e.disabled)t.preventDefault(),e._toggleOnInteraction();else if(t.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&dt(t,"ctrlKey","metaKey")){let n=this.options.some(a=>!a.disabled&&!a.selected);t.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(n,!0))}else this._keyManager.onKeydown(t)}_handleFocusout=()=>{setTimeout(()=>{this._containsFocus()||this._resetActiveOption()})};_handleFocusin=t=>{if(this.disabled)return;let e=this._items.toArray().findIndex(n=>n._elementRef.nativeElement.contains(t.target));e>-1?this._setActiveOption(e):this._resetActiveOption()};_setupRovingTabindex(){this._keyManager=new _t(this._items).withHomeAndEnd().withTypeAhead().withWrap().skipPredicate(()=>this.disabled),this._resetActiveOption(),this._keyManager.change.subscribe(t=>this._setActiveOption(t)),this._items.changes.pipe(V(this._destroyed)).subscribe(()=>{let t=this._keyManager.activeItem;(!t||this._items.toArray().indexOf(t)===-1)&&this._resetActiveOption()})}_setActiveOption(t){this._items.forEach((e,n)=>e._setTabindex(n===t?0:-1)),this._keyManager.updateActiveItem(t)}_resetActiveOption(){if(this.disabled){this._setActiveOption(-1);return}let t=this._items.find(e=>e.selected&&!e.disabled)||this._items.first;this._setActiveOption(t?this._items.toArray().indexOf(t):-1)}_containsFocus(){let t=rt();return t&&this._element.nativeElement.contains(t)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-selection-list"]],contentQueries:function(e,n,a){if(e&1&&S(a,ni,5),e&2){let s;d(s=h())&&(n._items=s)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(e,n){e&1&&D("keydown",function(s){return n._handleKeydown(s)}),e&2&&C("aria-multiselectable",n.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[A([ai,{provide:k,useExisting:i},{provide:Mt,useExisting:i}]),u,at],ngContentSelectors:N,decls:1,vars:0,template:function(e,n){e&1&&(I(),r(0))},styles:[K],encapsulation:2,changeDetection:0})}return i})(),Gi=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=P({type:i});static \u0275inj=E({imports:[ht,ft,xt,j,kt]})}return i})();var Ui="plotterExtensions";var Xi=["widgets","panels.iframe","panels.state","buttons","events.publish","signalk.stream","signalk.put","units","map","resources","resources.filter","routes","charts","charts.time","nightMode","resourceGroups","background.iframe","ui","windows","overlays.image","overlays.data"],si=["tr","ct","cb","bl","br"],Zi={tr:"Top right",ct:"Top center",cb:"Bottom center",bl:"Bottom left",br:"Bottom right"},Ki={tr:"top",ct:"top",cb:"bottom",bl:"bottom",br:"bottom"},ci={tr:{cols:4,rows:2},ct:{cols:2,rows:2},cb:{cols:2,rows:2},bl:{cols:4,rows:2},br:{cols:4,rows:2}},ri={tr:"right",ct:"left",cb:"left",bl:"left",br:"right"},Yi=si.reduce((i,o)=>{let t=Array.from({length:ci[o].cols},(e,n)=>n);return i[o]=ri[o]==="right"?t.reverse():t,i},{}),$i=6;function Ji(){return Math.min(124,Math.max(84,.095*window.innerWidth))}function te(i){let o=/^([12])x([12])$/.exec(i??"");return o?{cols:Number(o[1]),rows:Number(o[2])}:{cols:1,rows:1}}export{Ot as a,kt as b,Ct as c,Lt as d,Ni as e,Vi as f,Qi as g,ni as h,Hi as i,oi as j,Gi as k,Ui as l,Xi as m,si as n,Zi as o,Ki as p,ci as q,Yi as r,$i as s,Ji as t,te as u};
@@ -1,4 +1,4 @@
1
- import{a as Ga}from"./chunk-6E2BDKCH.js";import{b as Ra,d as Pa,f as La,g as Ct,h as $e,i as Na,j as Xe,k as Ya,l as Ba,m as Ha,n as za,o as Wa}from"./chunk-X6D4D6EN.js";import{a as ja,b as qa}from"./chunk-YZN4NRWW.js";import{a as Ka}from"./chunk-YSHHABBQ.js";import{$ as st,$a as h,$c as da,$d as Oe,A as Ye,Ab as Jt,Ad as Te,Ba as $t,Bd as fa,Cc as ye,Fd as ba,Ga as C,Gc as na,Gd as ft,Ha as R,I as se,Ia as P,Id as ya,J as it,K as _e,Ka as Ve,Kc as Ke,La as $,Lb as ea,Ld as va,M as rt,Ma as X,Mc as ne,Md as Da,N as ge,Na as u,Nc as ht,Nd as Ca,O as le,Oa as d,Od as wa,P as E,Pa as c,Q as jt,Qa as w,Qb as We,Qd as Ma,R as s,Ra as N,Rd as ka,Sa as Y,Sc as ut,T as b,Ta as Xt,Tc as ia,U as y,Uc as T,V as de,Vc as ra,W as ot,Wc as je,Wd as Aa,X as fe,Xa as Z,Xc as oa,Y as qt,Ya as J,Yd as Ge,Za as g,Zc as sa,Zd as bt,_ as p,_a as Zt,_b as V,_c as la,_d as Sa,a as W,aa as _,ab as me,ac as M,ad as ca,bb as ee,bc as pt,bd as pa,c as S,ca as Q,cb as Be,cd as _t,ce as Qe,da as Gt,db as B,dd as gt,de as xa,eb as v,ed as qe,ee as Ea,fa as U,fb as D,fe as Ia,ge as Ue,i as Ne,id as ma,ie as yt,jb as He,jd as ve,je as Va,kb as ze,ke as vt,lb as I,m as nt,ma as l,me as Ta,na as lt,nb as be,ob as m,p as Kt,pb as x,pe as Dt,qa as Ee,qb as ae,qc as ta,qd as ha,rb as ct,rd as ua,sa as Qt,sb as K,sc as mt,sd as _a,se as Oa,t as te,ta as Ut,tb as j,tc as aa,u as xe,ua as k,ub as q,uc as he,ue as Fa,va as ce,wa as pe,xd as ga,ya as dt,yc as ue,za as Ie,zb as G}from"./chunk-RG7WQ7O2.js";import{a as zt,b as Wt}from"./chunk-NCEQPEJE.js";var yn=["text"],vn=[[["mat-icon"]],"*"],Dn=["mat-icon","*"];function Cn(i,o){if(i&1&&w(0,"mat-pseudo-checkbox",1),i&2){let e=h();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function wn(i,o){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=h();u("disabled",e.disabled)}}function Mn(i,o){if(i&1&&(d(0,"span",4),m(1),c()),i&2){let e=h();l(),ae("(",e.group.label,")")}}var Mt=new E("MAT_OPTION_PARENT_COMPONENT"),kt=new E("MatOptgroup");var wt=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},De=(()=>{class i{_element=s(U);_changeDetectorRef=s(V);_parent=s(Mt,{optional:!0});group=s(kt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=s(ne).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=_(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new p;_text;_stateChanges=new S;constructor(){let e=s(he);e.load(Ge),e.load(ve),this._signalDisableRipple=!!this._parent&&$t(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!T(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new wt(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&B(yn,7),t&2){let n;v(n=D())&&(a._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&g("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(J("id",a.id),C("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),I("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",M]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Dn,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(me(vn),R(0,Cn,1,2,"mat-pseudo-checkbox",1),ee(1),d(2,"span",2,0),ee(4,1),c(),R(5,wn,1,1,"mat-pseudo-checkbox",3),R(6,Mn,2,1,"span",4),w(7,"div",5)),t&2&&(P(a.multiple?0:-1),l(5),P(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),P(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[ja,Aa],styles:[`.mat-mdc-option {
1
+ import{a as Ga}from"./chunk-FESHPCKG.js";import{b as Ra,d as Pa,f as La,g as Ct,h as $e,i as Na,j as Xe,k as Ya,l as Ba,m as Ha,n as za,o as Wa}from"./chunk-M4D7Z434.js";import{a as ja,b as qa}from"./chunk-XSBLUIEK.js";import{a as Ka}from"./chunk-5B3P22GG.js";import{$ as p,$a as Zt,$b as V,$c as oa,$d as Sa,A as Ye,Aa as Ie,Ab as G,Bb as Jt,Bd as Te,Ca as $t,Cc as ue,Cd as fa,Gc as ye,Gd as ba,Ha as C,Hd as ft,I as se,Ia as R,J as it,Ja as P,Jd as ya,K as _e,Kc as na,La as Ve,Ma as $,Mb as ea,Md as va,N as rt,Na as X,Nd as Da,O as ge,Oa as u,Oc as Ke,Od as Ca,P as le,Pa as d,Pd as wa,Q as E,Qa as c,Qc as ne,R as jt,Ra as w,Rb as We,Rc as ht,Rd as Ma,S as s,Sa as N,Sd as ka,Ta as Y,U as b,Ua as Xt,V as y,W as de,Wc as ut,X as ot,Xc as ia,Xd as Aa,Y as fe,Ya as Z,Yc as T,Z as qt,Za as J,Zc as ra,Zd as Ge,_a as g,_c as je,_d as bt,a as W,aa as st,ab as h,ae as Oe,ba as _,bb as me,bc as M,bd as sa,c as S,cb as ee,cc as pt,cd as la,da as Q,db as Be,dd as da,de as Qe,ea as Gt,eb as B,ed as ca,ee as xa,fb as v,fd as pa,fe as Ea,ga as U,gb as D,gd as _t,ge as Ia,hd as gt,he as Ue,i as Ne,id as qe,je as yt,kb as He,ke as Va,lb as ze,le as vt,m as nt,mb as I,md as ma,na as l,nd as ve,ne as Ta,oa as lt,ob as be,p as Kt,pb as m,qb as x,qe as Dt,ra as Ee,rb as ae,rc as ta,sb as ct,sd as ha,t as te,ta as Qt,tb as K,td as ua,te as Oa,u as xe,ua as Ut,ub as j,ud as _a,va as k,vb as q,ve as Fa,wa as ce,xa as pe,xc as mt,yc as aa,za as dt,zc as he,zd as ga}from"./chunk-XHH2BWBG.js";import{a as zt,b as Wt}from"./chunk-NCEQPEJE.js";var yn=["text"],vn=[[["mat-icon"]],"*"],Dn=["mat-icon","*"];function Cn(i,o){if(i&1&&w(0,"mat-pseudo-checkbox",1),i&2){let e=h();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function wn(i,o){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=h();u("disabled",e.disabled)}}function Mn(i,o){if(i&1&&(d(0,"span",4),m(1),c()),i&2){let e=h();l(),ae("(",e.group.label,")")}}var Mt=new E("MAT_OPTION_PARENT_COMPONENT"),kt=new E("MatOptgroup");var wt=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},De=(()=>{class i{_element=s(U);_changeDetectorRef=s(V);_parent=s(Mt,{optional:!0});group=s(kt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=s(ne).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=_(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new p;_text;_stateChanges=new S;constructor(){let e=s(he);e.load(Ge),e.load(ve),this._signalDisableRipple=!!this._parent&&$t(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!T(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new wt(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&B(yn,7),t&2){let n;v(n=D())&&(a._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&g("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(J("id",a.id),C("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),I("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",M]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Dn,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(me(vn),R(0,Cn,1,2,"mat-pseudo-checkbox",1),ee(1),d(2,"span",2,0),ee(4,1),c(),R(5,wn,1,1,"mat-pseudo-checkbox",3),R(6,Mn,2,1,"span",4),w(7,"div",5)),t&2&&(P(a.multiple?0:-1),l(5),P(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),P(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[ja,Aa],styles:[`.mat-mdc-option {
2
2
  -webkit-user-select: none;
3
3
  user-select: none;
4
4
  -moz-osx-font-smoothing: grayscale;
@@ -0,0 +1 @@
1
+ import{E as $e,F as et,Kb as ct,Lb as pt,N as tt,Qb as L,T as it,Ta as lt,U as nt,Ua as ee,V as at,Va as te,b as De,bb as dt,c as Ee,cb as gt,db as mt,e as U,f as We,h as I,j as Ve,k as ke,ma as ot,qa as rt,sa as st}from"./chunk-NL5F2VEH.js";import{a as Je,b as Qe,c as $}from"./chunk-U7APAW37.js";import{b as Ae,e as Be,j as Fe,k as Ne,l as Re}from"./chunk-DXAIA7TN.js";import{a as Y,b as J,c as Xe,d as Q}from"./chunk-CXU2QR7B.js";import{a as Ye}from"./chunk-FESHPCKG.js";import"./chunk-OMAUXPDZ.js";import{b as z,c as Ue,d as Ge,f as He,i as q,j as Ze,n as j,o as X}from"./chunk-M4D7Z434.js";import{a as Ke,h as ze,j as qe,k as je}from"./chunk-5WUOKMEL.js";import"./chunk-XSBLUIEK.js";import"./chunk-5B3P22GG.js";import{$ as ue,Ha as O,Ia as b,Ja as T,Jd as Ce,La as D,Ma as y,Na as S,Nd as we,Oa as h,Pa as n,Pb as B,Pd as Me,Qa as i,Ra as E,Rd as ve,S as W,Sd as N,Tb as Se,U as m,Ub as F,V as c,W as x,X as _e,Ya as V,_a as p,_d as be,ab as w,ae as Te,ba as A,ca as fe,de as R,fe as G,ga as he,kb as M,ke as H,na as o,nb as ye,ne as Z,oe as Pe,pb as l,qb as C,rb as k,re as Le,se as xe,tb as _,te as Oe,ub as u,ue as Ie,va as P,vb as f,ve as K}from"./chunk-XHH2BWBG.js";import"./chunk-NCEQPEJE.js";var vt=(d,s)=>s[0];function bt(d,s){if(d&1&&(n(0,"mat-option",8),x(),n(1,"svg",6),E(2,"line",7),i()()),d&2){let a=s.$implicit;h("value",a),o(2),O("stroke-width",a)}}function Tt(d,s){if(d&1&&(n(0,"mat-option",8),x(),n(1,"svg",6),E(2,"line",9),i()()),d&2){let a=s.$implicit;h("value",a[0]),o(2),O("stroke-dasharray",a[1])}}var ie=class d{color=F("#ff0000");dash=F("none");weight=F(1);_color=B(()=>this.color());_dash=B(()=>this.dash());_weight=B(()=>this.weight());selectionChange=Se();app=W(L);line={dashArrays:this.app.lineDashMap,weights:[1,2,3,4,5]};constructor(){}ngOnInit(){}onSelectChange(){let s=this.app.formatLineDashArray(this._dash());this.selectionChange.emit({lineStyle:{fill:{color:this._color()},stroke:{color:this._color(),width:this._weight(),lineDash:s}},config:{color:this._color(),weight:this._weight(),dash:this._dash()}})}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,selectors:[["linestyle-select"]],inputs:{color:[1,"color"],dash:[1,"dash"],weight:[1,"weight"]},outputs:{selectionChange:"selectionChange"},decls:25,vars:5,consts:[[2,"display","flex"],[2,"width","100px"],["mat-input","","matNativeControl","","type","color",3,"ngModelChange","change","ngModel"],[2,"width","110px"],[3,"ngModelChange","selectionChange","ngModel"],[2,"display","flex","align-items","center","gap","8px"],["width","48","height","10",2,"vertical-align","middle","margin-right","6px"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-array","none"],[3,"value"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-width","2"]],template:function(a,e){a&1&&(n(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),l(3,"Color"),i(),n(4,"input",2),f("ngModelChange",function(r){return u(e._color,r)||(e._color=r),r}),p("change",function(){return e.onSelectChange()}),i()(),n(5,"mat-form-field",3)(6,"mat-label"),l(7,"Weight"),i(),n(8,"mat-select",4),f("ngModelChange",function(r){return u(e._weight,r)||(e._weight=r),r}),p("selectionChange",function(){return e.onSelectChange()}),n(9,"mat-select-trigger")(10,"div",5),x(),n(11,"svg",6),E(12,"line",7),i()()(),y(13,bt,3,2,"mat-option",8,D),i()(),_e(),n(15,"mat-form-field",3)(16,"mat-label"),l(17,"Style"),i(),n(18,"mat-select",4),f("ngModelChange",function(r){return u(e._dash,r)||(e._dash=r),r}),p("selectionChange",function(){return e.onSelectChange()}),n(19,"mat-select-trigger")(20,"div",5),x(),n(21,"svg",6),E(22,"line",9),i()()(),y(23,Tt,3,2,"mat-option",8,vt),i()()()),a&2&&(o(4),_("ngModel",e._color),o(4),_("ngModel",e._weight),o(4),O("stroke-width",e._weight()),o(),S(e.line.weights),o(5),_("ngModel",e._dash),o(4),O("stroke-dasharray",e.line.dashArrays.get(e._dash())),o(),S(e.line.dashArrays))},dependencies:[K,G,H,Z,N,R,$,X,j,q,z,Q,J,Xe,Y],encapsulation:2})};var ne="auto";var Et=(d,s)=>s[0];function Wt(d,s){if(d&1){let a=V();n(0,"div",4)(1,"mat-radio-button",5,0),p("change",function(){m(a);let g=M(2),r=w().$implicit,t=w();return r[1].current=g.value,c(t.save(!0))}),l(3),i()()}if(d&2){let a=s.$implicit,e=w().$implicit,g=w();o(),h("name",e[0])("value",a)("checked",a===e[1].current),o(2),k(" ",g.pathLabel(a)," ")}}function Vt(d,s){if(d&1&&(n(0,"div",2)(1,"div",3)(2,"div"),l(3),i()(),n(4,"div"),y(5,Wt,4,4,"div",4,D),i()()),d&2){let a=s.$implicit;o(3),C(a[1].name),o(2),S(a[1].available)}}var ae=class d{title="";chosen=new ue;pathChoices={tws:{name:"True Wind Speed",choices:["environment.wind.speedTrue","environment.wind.speedOverGround"],available:[],current:""},twd:{name:"True Wind Direction",choices:["environment.wind.directionTrue","environment.wind.directionMagnetic","environment.wind.angleTrueGround","environment.wind.angleTrueWater"],available:[],current:""},heading:{name:"Heading / COG",choices:[ne,"navigation.courseOverGroundTrue","navigation.courseOverGroundMagnetic","navigation.headingTrue","navigation.headingMagnetic"],available:[],current:""}};pathChoicesArray=Object.entries(this.pathChoices);availPaths;app=W(L);constructor(){}pathLabel(s){return s===ne?"Automatic":s.split(".").slice(-1)[0]}ngOnInit(){this.initEntries()}initEntries(){this.availPaths=new Map(Object.entries(this.app.data.vessels.prefAvailablePaths)),this.pathChoices.tws.current=this.app.config.units.preferredPaths.tws,this.pathChoices.twd.current=this.app.config.units.preferredPaths.twd,this.pathChoices.heading.current=this.app.config.units.preferredPaths.heading,Object.entries(this.pathChoices).forEach(a=>{let e=a[1];e.choices.forEach(g=>{(g===ne||this.availPaths.has(g))&&e.available.push(g)}),e.available.length===0&&e.available.push(e.choices[0])})}save(s){let a={};Object.entries(this.pathChoices).forEach(e=>{a[e[0]]=e[1].current}),this.chosen.emit({save:s,value:a})}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,selectors:[["signalk-preferred-paths"]],inputs:{title:"title"},outputs:{chosen:"chosen"},decls:6,vars:1,consts:[["pathopt",""],[2,"font-size","10pt"],[1,"sk-details"],[1,"title"],[2,"margin","5px 0 5px 0"],[3,"change","name","value","checked"]],template:function(a,e){a&1&&(n(0,"fieldset")(1,"legend",1),l(2),i(),n(3,"div"),y(4,Vt,7,1,"div",2,Et),i()()),a&2&&(o(2),C(e.title),o(2),S(e.pathChoicesArray))},dependencies:[te,ee],styles:[".sk-details[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:10pt;max-height:100%;width:60vw;max-width:300px}.sk-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{background:left 1px -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.18)),color-stop(.65,transparent)) #b2bbc2e3;padding:3px 5px 0;margin-top:3px;font-weight:500;line-height:23px;color:#000}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:0;line-height:23px;margin:0;flex:1 1 auto;overflow:auto}.sk-details[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;flex-direction:row;line-height:26px;border-width:0 0 0 0;border-style:solid;border-color:gray;padding-left:5px}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-width:0 0 1px 0}.sk-details[_ngcontent-%COMP%] .sectionname[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;font-weight:500}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;width:100%;background-color:#fff}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0})};var v=(d,s)=>s[0],kt=(d,s)=>s.id;function Pt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Lt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function xt(d,s){if(d&1&&(n(0,"mat-option",133),l(1),i()),d&2){let a=s.$implicit;h("value",a.url)("matTooltip",a.description),o(),k(" ",a.name," ")}}function Ot(d,s){if(d&1){let a=V();n(0,"div",47)(1,"div",38)(2,"mat-form-field",39)(3,"mat-label"),l(4,"Select Instruments App"),i(),n(5,"mat-select",65),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.instruments,g)||(r.facade.settings.display.plugins.instruments=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.onInstrumentApp())}),y(6,xt,2,3,"mat-option",133,D),i()()(),n(8,"div",38)(9,"mat-form-field",53)(10,"mat-label"),l(11,"Parameters"),i(),n(12,"input",134,21),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.parameters,g)||(r.facade.settings.display.plugins.parameters=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel("pluginParameters"))}),i()()(),n(14,"div",38)(15,"mat-checkbox",135),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.display.plugins.startOnOpen,g)||(r.facade.settings.display.plugins.startOnOpen=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel("pluginStartOnOpen"))}),l(16," Halt App on hide "),i()(),n(17,"div",38)(18,"button",136),p("click",function(){m(a);let g=w();return c(g.toggleFavourites())}),n(19,"mat-icon"),l(20,"star"),i(),l(21," FAVOURITES "),i()()()}if(d&2){let a=w();o(5),_("ngModel",a.facade.settings.display.plugins.instruments),o(),S(a.facade.applicationList),o(6),h("disabled",a.facade.settings.display.plugins.instruments===null),_("ngModel",a.facade.settings.display.plugins.parameters),o(3),_("ngModel",a.facade.settings.display.plugins.startOnOpen)}}function It(d,s){if(d&1&&(n(0,"mat-list-option",138),l(1),i()),d&2){let a=s.$implicit,e=w(2);h("disabled",a.url==e.facade.settings.display.plugins.instruments)("selected",e.facade.settings.display.plugins.favourites.includes(a.url))("value",a.url),o(),k(" ",a.name," ")}}function At(d,s){if(d&1){let a=V();n(0,"div",37)(1,"div",38)(2,"div",115),E(3,"br"),l(4,"Select Favourite Apps: "),i(),E(5,"mat-divider"),n(6,"mat-selection-list",137,22),p("selectionChange",function(g){m(a);let r=M(7),t=w();return c(t.onFavSelected(g,r))}),y(8,It,2,4,"mat-list-option",138,D),i()()()}if(d&2){let a=w();o(8),S(a.facade.favouritesList)}}function Bt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Ft(d,s){d&1&&(n(0,"mat-error"),l(1,"Please enter a number >= 0"),i())}function Nt(d,s){d&1&&(n(0,"mat-error"),l(1,"Please enter a number >= 1"),i())}function Rt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Ut(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Gt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Ht(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Zt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Kt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function zt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function qt(d,s){if(d&1){let a=V();n(0,"div",38)(1,"mat-form-field",39)(2,"mat-label"),l(3,"Position display format"),i(),n(4,"mat-select",139),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.units.positionFormat,g)||(r.facade.settings.units.positionFormat=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel())}),y(5,zt,2,2,"mat-option",41,D),i()()()}if(d&2){let a=w();o(4),_("ngModel",a.facade.settings.units.positionFormat),o(),S(a.options.preferredValues.coords)}}function jt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Xt(d,s){if(d&1){let a=V();n(0,"div",38)(1,"mat-form-field",39)(2,"mat-label"),l(3,"Prefer True / Magnetic values"),i(),n(4,"mat-select",140),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.units.headingAttribute,g)||(r.facade.settings.units.headingAttribute=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel("headingAttribute"))}),y(5,jt,2,2,"mat-option",41,D),i()()()}if(d&2){let a=w();o(4),_("ngModel",a.facade.settings.units.headingAttribute),o(),S(a.options.preferredValues.heading)}}function Yt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Jt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Qt(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function $t(d,s){if(d&1){let a=V();n(0,"mat-form-field",39)(1,"mat-label"),l(2,"Resume Following After"),i(),n(3,"mat-select",141),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.map.refollowDelay,g)||(r.facade.settings.map.refollowDelay=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.persistModel())}),y(4,Qt,2,2,"mat-option",41,v),i()()}if(d&2){let a=w();o(3),_("ngModel",a.facade.settings.map.refollowDelay),o(),S(a.options.map.refollowDelay)}}function ei(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ti(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ii(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ni(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function ai(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function oi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function ri(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function si(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function li(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a number > 0 "),i())}function di(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function gi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function mi(d,s){if(d&1&&(n(0,"mat-radio-button",41),E(1,"img",142),l(2),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),ye(`transform: scale(${a[0]})`),o(),k(" (",a[1],") ")}}function ci(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a value between -90 and 90 (max 9 decimals) "),i())}function pi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a value between -180 and 180 (max 9 decimals) "),i())}function _i(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ui(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function fi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function hi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function yi(d,s){d&1&&(n(0,"mat-error"),l(1," Please enter a number >= 1. "),i())}function Si(d,s){d&1&&(n(0,"mat-hint"),l(1,"Server requires a Track API (v2) provider"),i())}function Ci(d,s){if(d&1&&(n(0,"mat-hint"),l(1),i()),d&2){let a=w();o(),k("Using: ",a.app.serverTrailWanted()?"Server":"This device")}}function wi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Mi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function vi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function bi(d,s){if(d&1){let a=V();n(0,"div",37)(1,"div",143)(2,"mat-slider",144)(3,"input",105),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.vessels.aisTrackLength,g)||(r.facade.settings.vessels.aisTrackLength=g),c(g)}),p("valueChange",function(){m(a);let g=w();return c(g.deferPersist())}),i()(),l(4),i()()}if(d&2){let a=w();o(2),h("disabled",!a.app.featureFlags().tracksApi),o(),_("ngModel",a.facade.settings.vessels.aisTrackLength),o(),k(" Picked vessel track length (",a.facade.settings.vessels.aisTrackLength," hrs) ")}}function Ti(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Di(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Ei(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Wi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Vi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function ki(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Pi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a),o(),C(a)}}function Li(d,s){if(d&1){let a=V();n(0,"button",145),p("click",function(){m(a),w();let g=M(564);return c(g.value="")}),n(1,"mat-icon"),l(2,"close"),i()()}}function xi(d,s){if(d&1&&(n(0,"mat-list-option",117),l(1),i()),d&2){let a=s.$implicit,e=w();h("selected",e.facade.settings.resources.paths.includes(a))("value",a),o(),k(" ",a," ")}}function Oi(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a.id),o(),C(a.name)}}function Ii(d,s){if(d&1){let a=V();n(0,"mat-tab",118)(1,"div",32)(2,"div",33)(3,"div",130)(4,"div",35),l(5,"RADAR SETTINGS"),i(),n(6,"mat-card",36)(7,"div",47)(8,"div",38)(9,"mat-form-field",146)(10,"mat-label"),l(11,"Radar Devices"),i(),n(12,"mat-select",147,23),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.radars.deviceId,g)||(r.facade.settings.radars.deviceId=g),c(g)}),p("selectionChange",function(){m(a);let g=w();return c(g.doRadar())}),y(14,Oi,2,2,"mat-option",41,kt),i()()(),n(16,"div",38)(17,"button",148),p("click",function(){m(a);let g=w();return c(g.refreshRadars())}),n(18,"mat-icon"),l(19," refresh"),i(),l(20," REFRESH "),i()()(),n(21,"div",47)(22,"div",38)(23,"mat-checkbox",49),f("ngModelChange",function(g){m(a);let r=w();return u(r.facade.settings.radars.rings,g)||(r.facade.settings.radars.rings=g),c(g)}),p("change",function(){m(a);let g=w();return c(g.persistModel())}),l(24," Draw range circles at the radar range while it transmits "),i()()()()()()()()}if(d&2){let a=w();o(12),h("disabled",!a.radarList().length||a.app.uiCtrl().radarLayer),_("ngModel",a.facade.settings.radars.deviceId),o(2),S(a.radarList()),o(9),_("ngModel",a.facade.settings.radars.rings)}}function Ai(d,s){if(d&1&&(n(0,"mat-option",41),l(1),i()),d&2){let a=s.$implicit;h("value",a[0]),o(),C(a[1])}}function Bi(d,s){d&1&&(n(0,"mat-error"),l(1," Value required. "),i())}var ft=class d{show={favourites:A(!1)};options;centerOffsetLimit=Ve;aisStateFilter={moored:!1,anchored:!1};formattedNumberModel={rangeCirclesDistance:1e3};unitsChangedSignal=A(0);radarList=A([]);saveOnClose=!1;arrivalCircleChanged=!1;facade=W(pt);myElement=W(he);dialogRef=W(Ce);wakeLock=W(De);s57=W($e);app=W(L);radarApi=W(tt);course=W(st);constructor(){this.options=new ct,fe(()=>{this.unitsChangedSignal(),this.formatNumberModel()})}ngOnInit(){this.facade.refresh(),this.facade.settings.selections.aisState.forEach(s=>{s in this.aisStateFilter&&(this.aisStateFilter[s]=!0)}),this.refreshRadars()}refreshRadars(){this.radarApi.listRadars().then(s=>{this.radarList.set(s)}).catch(()=>{this.radarList.set([])})}formatNumberModel(){this.formattedNumberModel={rangeCirclesDistance:this.facade.settings.units.distance==="kilometer"?Math.floor(this.facade.settings.vessels.rangeCirclesDistance/1e3):Math.floor(I.transform(this.facade.settings.vessels.rangeCirclesDistance,"m","naut-mile"))}}raiseChange(){this.app.alignUnitPrefs(this.app.serverConfig.unitPreferences()),this.unitsChangedSignal.update(s=>s+1)}handleClose(){this.saveOnClose&&this.persistModel(),this.arrivalCircleChanged&&this.applyArrivalCircle(),this.dialogRef.close()}doWakelock(s){this.persistModel(),s?this.wakeLock.disable():this.wakeLock.enable()}doS57(s){this.facade.settings.map.s57Options.depthUnit=this.facade.settings.units.depth,s?this.parseNumber(s):this.persistModel(),this.s57.setOptions(this.facade.settings.map.s57Options)}doRadar(){this.radarApi.init(this.facade.settings.radars.deviceId).then(s=>{s&&this.persistModel()})}onLineStyle(s,a){let e=this.facade.settings.vessels.selfLines[s];e&&(e.color=a.config.color,e.dash=a.config.dash,e.weight=a.config.weight,this.app.selfLines.update(g=>{let r=Object.assign({},g);return r[s]=a.lineStyle,r}),this.persistModel())}toggleFavourites(){this.show.favourites.update(s=>!s)}parseCenterOffset(s){s.reset(typeof s.model=="number"?ke(s.model):0),this.persistModel()}onArrivalCircleChange(s){this.parseNumber(s),this.arrivalCircleChanged=!0}applyArrivalCircle(){let s=this.facade.settings.course.arrivalCircle,a=this.course.courseData();a.position&&s>0&&s!==a.arrivalCircle&&this.course.setArrivalCircle(s)}parseNumber(s,a){if(typeof s.model!="number"){s.reset(this.fallbackToDefault());return}!a&&s.model<0&&s.reset(Math.abs(s.model)),this.persistModel()}parseFormattedNumber(s,a){typeof s.model=="number"&&(!a&&s.model<0&&s.reset(Math.abs(s.model)),this.facade.settings.vessels.rangeCirclesDistance=this.facade.settings.units.distance==="kilometer"?Math.floor(this.formattedNumberModel.rangeCirclesDistance*1e3):Math.floor(I.nauticalMilesToKm(this.formattedNumberModel.rangeCirclesDistance)*1e3),this.persistModel())}fallbackToDefault(){let s=et();if(typeof this.facade.settings.display.statusBar.referenceSpeed!="number")return s.display.statusBar.referenceSpeed;if(typeof this.facade.settings.display.statusBar.tapFadeSpeed!="number")return s.display.statusBar.tapFadeSpeed;if(typeof this.facade.settings.map.s57Options.shallowDepth!="number")return s.map.s57Options.shallowDepth;if(typeof this.facade.settings.map.s57Options.safetyDepth!="number")return s.map.s57Options.safetyDepth;if(typeof this.facade.settings.map.s57Options.deepDepth!="number")return s.map.s57Options.deepDepth;if(typeof this.facade.fixedPosition[0]!="number"||typeof this.facade.fixedPosition[1]!="number")return 0;if(typeof this.facade.settings.course.arrivalCircle!="number")return s.course.arrivalCircle}get serverTrailAvailable(){return Ee(this.app.trackSource())}trailLengthAllStop=We+1;get trailLengthStop(){let s=this.facade.settings.vessels.trailDuration;return s===U?this.trailLengthAllStop:s}set trailLengthStop(s){this.facade.settings.vessels.trailDuration=s===this.trailLengthAllStop?U:s}trailLengthStopLabel=s=>s===this.trailLengthAllStop?"All":`${s}`;get trailLengthText(){let s=this.facade.settings.vessels.trailDuration;return s===U?"All":`${s} hrs`}persistModel(s){this.facade.applySettings(),this.facade.emitChangeEvent(s)}get speedUnitSymbol(){return I.getSymbol(this.facade.settings.units.speed)}deferPersist(s){this.saveOnClose=!0,this.facade.emitChangeEvent(s)}onInstrumentApp(){this.persistModel("pluginInstruments"),this.facade.buildFavouritesList()}onPreferredPaths(s){s.save&&(this.facade.settings.units.preferredPaths=s.value,this.persistModel())}onFavSelected(s,a){this.facade.settings.display.plugins.favourites=a.selectedOptions.selected.map(e=>e.value),this.persistModel()}onAisStateFilter(){let s=[];for(let a in this.aisStateFilter)this.aisStateFilter[a]&&s.push(a);this.facade.settings.selections.aisState=[].concat(s),this.persistModel()}onResPathSelected(s){this.facade.settings.resources.paths=s.selectedOptions.selected.map(a=>a.value),this.facade.settings.resources.paths.forEach(a=>{a in this.facade.settings.selections.resourceSets||(this.facade.settings.selections.resourceSets[a]=[])}),this.persistModel()}clearAuthToken(){this.facade.clearToken()}renderSymbol(s){return I.getSymbol(s)}static \u0275fac=function(a){return new(a||d)};static \u0275cmp=P({type:d,selectors:[["settings-dialog"]],decls:663,vars:143,consts:[["refspeed","ngModel"],["tapfade","ngModel"],["serverprefs",""],["distunits",""],["centerOffsetY","ngModel"],["centerOffsetX","ngModel"],["s57shallowDepth","ngModel"],["s57safetyDepth","ngModel"],["s57deepDepth","ngModel"],["coursearrivalcircle","ngModel"],["courseautoadvance",""],["courseautoadvanceon",""],["vesselfixedlocationmode",""],["fixedlat","ngModel"],["fixedlon","ngModel"],["rangeCirclesDistance","ngModel"],["notesrootfilter",""],["respath",""],["skmaxradius",""],["videourl","ngModel"],["experiments",""],["instparams","ngModel"],["favs",""],["radarlist",""],[2,"background-color","transparent"],[1,"dialog-icon"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],["dynamicHeight","false","mat-stretch-tabs","false","mat-align-tabs","start"],["label","Display"],[1,"theme-page","settings"],[1,"theme-panel"],["id","sectDisplay",1,"setting-group"],[1,"setting-group-title"],[1,"setting-card"],[1,"setting-card-row",2,"padding-bottom","10px"],[1,"setting-card-row-item"],[2,"width","100%"],["matTooltip","Dark Mode setting.",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["label","after","matTooltip","Auto-set using environment.mode value.",3,"ngModelChange","change","ngModel"],["matTooltip","Action button selection.",3,"ngModelChange","selectionChange","ngModel"],["label","after","matTooltip","Disable wake lock.",3,"ngModelChange","change","disabled","ngModel"],["label","after","matTooltip","Un-check to prefer dialogs over the information panel",3,"ngModelChange","change","ngModel"],["label","after","matTooltip","Show the Split view button, which opens a second chart beside or below the main one.",3,"ngModelChange","change","ngModel"],[1,"setting-card-row"],["matTooltip","Do not play sounds","label","after",3,"ngModelChange","change","ngModel"],["label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Period of time out of alarm state before re-triggering.",3,"ngModelChange","selectionChange","ngModel","disabled"],[1,"setting-group"],["label","after","matTooltip","Show the bearing, distance and ETA from the vessel to the cursor in the status bar. Click or tap the chart to hold the readout on that point.",3,"ngModelChange","change","ngModel"],["floatLabel","always",2,"width","100%"],["matInput","","type","number","min","0","matTooltip","Boat speed used to estimate ETA when SOG is unavailable (e.g. at anchor or hove to).",3,"ngModelChange","change","disabled","ngModel"],["matInput","","type","number","min","1","step","0.5","matTooltip","How long the marker left by a click or tap takes to fade. The readout stays held on that point until it does.",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Glyph used to display wind direction and speed.",3,"ngModelChange","selectionChange","ngModel"],["label","Units"],["id","sectUnits",1,"setting-group"],["label","after","matTooltip","Use the unit preferences configured on the server.",3,"ngModelChange","change","disabled","ngModel"],[3,"ngModelChange","selectionChange","disabled","ngModel"],["title","Preferred Paths",3,"chosen"],["label","Map"],["id","sectMap",1,"setting-group"],["aria-hidden","true",1,"setting-field-group-title"],[3,"ngModelChange","selectionChange","ngModel"],[1,"setting-field-group-title"],[1,"setting-field-group"],["floatLabel","always"],["matInput","","type","number","matTooltip","Where the vessel sits up or down the screen, as a percentage of the distance to the edge. Positive looks ahead (vessel lower); negative looks behind.",3,"ngModelChange","change","min","max","ngModel"],["matInput","","type","number","matTooltip","Where the vessel sits left or right of centre, as a percentage of the distance to the edge. Positive shifts the map right (vessel left).",3,"ngModelChange","change","min","max","ngModel"],["matTooltip","Add close button to popovers","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Double Click map to zoom","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Keep tiles visible when zooming past chart maxZoom","label","after",3,"ngModelChange","change","ngModel"],[1,"setting-card-row-item","setting-card-row-stack"],["matTooltip","What panning the chart does while following the vessel.",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Graphicsstyle",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Boundaries",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Color Table",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Colors",3,"ngModelChange","selectionChange","ngModel"],["matInput","","type","number","required","","min","0",3,"ngModelChange","change","ngModel"],["matSuffix",""],["multiple","","placeholder","Layers",3,"ngModelChange","selectionChange","ngModel"],["label","Course"],["id","sectCourse",1,"setting-group"],["matTooltip","Select the trigger for advancing to next point.",3,"ngModelChange","selectionChange","disabled","ngModel"],["matTooltip","Period of time before destination is advanced to next waypoint.",3,"ngModelChange","selectionChange","disabled","ngModel"],["label","Vessels"],["id","sectVessels",1,"setting-group"],[3,"ngModelChange","change","ngModel"],["label","after","matTooltip","e.g. Building, Camp, etc.",3,"ngModelChange","change","ngModel"],["matInput","","type","number","required","","pattern","^-?([1-8]?[0-9])(\\.\\d{1,9})?$","min","-90","max","90",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","pattern","^-?(1[0-7]?[0-9]|[1-9]?[0-9])(\\.\\d{1,9})?$","min","-180","max","180",3,"ngModelChange","change","ngModel","disabled"],["matTooltip","Length of heading line.",3,"ngModelChange","selectionChange","ngModel"],[3,"selectionChange","color","dash","weight"],["matTooltip","Length of COG line.",3,"ngModelChange","selectionChange","ngModel"],[3,"ngModelChange","selectionChange","ngModel","disabled"],["label","after",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","min","1",3,"ngModelChange","change","ngModel","disabled"],[2,"width","200px"],["matTooltip","Where the vessel track comes from. Auto uses the server when it can supply one.",3,"ngModelChange","selectionChange","disabled","ngModel"],["value","auto"],["value","server",3,"disabled"],["value","local"],["discrete","","tickInterval","1","min","1",3,"max","displayWith","disabled"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["label","Resources"],["id","sectNotes",1,"setting-group"],[3,"valueChange","selectionChange","disabled","value"],["matInput","","type","text","placeholder","?radius=%note:radius%","matTooltip","Filter to apply when retrieving notes",3,"ngModelChange","change","ngModel"],["matSuffix","","mat-icon-button",""],["matTooltip","Allow group name editing.","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Require position information when adding notes to a group.","label","after",3,"ngModelChange","change","ngModel"],["label","after","matTooltip","Open Note details with a single click instead of showing the pop-up options",3,"ngModelChange","change","ngModel"],["id","sectResLayers",1,"setting-group"],[2,"font-style","italic"],["matTooltip","Select resource layers to show.",3,"selectionChange"],[3,"selected","value"],["label","Radar"],["label","Signal K"],["id","sectSKConnection",1,"setting-group"],[2,"font-size","smaller"],["matToolTip","Check to receive other vessel data","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive AtoN data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Check to receive aircraft data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive SaR data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive Weather / Meteo data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Only include AIS targets within this distance","matTooltipPosition","below",3,"ngModelChange","selectionChange","ngModel"],["mat-icon-button","","matTooltip","Clear Auth Token",3,"click"],["label","Experiments"],["id","sectExperiments",1,"setting-group"],["matInput","","type","text","required","","placeholder","Video stream URL","matTooltip","Enter URL of video stream",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Enable ALL experimental Features","label","after",3,"ngModelChange","change","ngModel"],["matTooltipPosition","right",3,"value","matTooltip"],["matInput","","type","text","placeholder","e.g. ?layout=mylayout","matTooltip","Enter parameters to pass to Instrument App",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Stop instrument app when hidden","label","after",3,"ngModelChange","change","ngModel"],["mat-raised-button","","matTooltip","Favourite Apps","label","after",3,"click"],[3,"selectionChange"],[3,"disabled","selected","value"],["matTooltip","Display position in this format",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Preferred value type for paths not in Preferred Paths above",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Resume following the vessel once the chart has been left idle for this long.",3,"ngModelChange","selectionChange","ngModel"],["src","./assets/img/vessels/self.png"],["matTooltip","How far back the track of a vessel picked with its TRACK button reaches. Needs a Track API (v2) provider.",1,"setting-card-row-item"],["discrete","","tickInterval","1","min","1","max","96",3,"disabled"],["matSuffix","","mat-icon-button","",3,"click"],[2,"width","stretch"],["matToolTip","Select radar device","matTooltipPosition","below",3,"ngModelChange","selectionChange","disabled","ngModel"],["mat-raised-button","",3,"click"]],template:function(a,e){if(a&1){let g=V();n(0,"mat-toolbar",24)(1,"span",25)(2,"mat-icon"),l(3,"settings"),i()(),n(4,"span",26),l(5,"Settings"),i(),n(6,"span",27)(7,"button",28),p("click",function(){return e.handleClose()}),n(8,"mat-icon"),l(9,"close"),i()()()(),n(10,"div",29)(11,"mat-tab-group",30)(12,"mat-tab",31)(13,"div",32)(14,"div",33)(15,"div",34)(16,"div",35),l(17,"DISPLAY"),i(),n(18,"mat-card",36)(19,"mat-card-content")(20,"div",37)(21,"div",38)(22,"mat-form-field",39)(23,"mat-label"),l(24,"Dark Mode setting"),i(),n(25,"mat-select",40),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.darkMode.source,t)||(e.facade.settings.display.darkMode.source=t),c(t)}),p("selectionChange",function(){return e.persistModel("darkTheme")}),y(26,Pt,2,2,"mat-option",41,v),i()()(),n(28,"div",38)(29,"mat-checkbox",42),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.nightMode,t)||(e.facade.settings.display.nightMode=t),c(t)}),p("change",function(){return e.persistModel()}),l(30," Auto-set Night Mode "),i()(),n(31,"div",38)(32,"mat-form-field",39)(33,"mat-label"),l(34,"Action Button"),i(),n(35,"mat-select",43),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.fab,t)||(e.facade.settings.display.fab=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(36,Lt,2,2,"mat-option",41,v),i()()(),n(38,"div",38)(39,"mat-checkbox",44),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.disableWakelock,t)||(e.facade.settings.display.disableWakelock=t),c(t)}),p("change",function(t){return e.doWakelock(t.checked)}),l(40," Allow Device to Sleep "),i()(),n(41,"div",38)(42,"mat-checkbox",45),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.preferInfoPanel,t)||(e.facade.settings.display.preferInfoPanel=t),c(t)}),p("change",function(){return e.persistModel()}),l(43," Prefer Info-Panel "),i()(),n(44,"div",38)(45,"mat-checkbox",46),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.splitView,t)||(e.facade.settings.display.splitView=t),c(t)}),p("change",function(){return e.persistModel()}),l(46," Enable split view "),i()()()()(),E(47,"br"),n(48,"mat-card",36)(49,"mat-card-content"),b(50,Ot,22,4,"div",47),b(51,At,10,0,"div",37),i()(),E(52,"br"),i(),n(53,"div",34)(54,"div",35),l(55,"SOUND"),i(),n(56,"mat-card",36)(57,"mat-card-content")(58,"div",37)(59,"div",38)(60,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.muteSound,t)||(e.facade.settings.display.muteSound=t),c(t)}),p("change",function(){return e.persistModel()}),l(61," Do not Play Sounds "),i()(),n(62,"div",38)(63,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.depthAlarm.enabled,t)||(e.facade.settings.display.depthAlarm.enabled=t),c(t)}),p("change",function(){return e.persistModel()}),l(64," Show DEPTH Alarms "),i()(),n(65,"div",38)(66,"mat-form-field",39)(67,"mat-label"),l(68,"Alarm Smoothing Time"),i(),n(69,"mat-select",50),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.depthAlarm.smoothing,t)||(e.facade.settings.display.depthAlarm.smoothing=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(70,Bt,2,2,"mat-option",41,v),i()()()()()()(),n(72,"div",51)(73,"div",35),l(74,"STATUS BAR OPTIONS"),i(),n(75,"mat-card",36)(76,"mat-card-content")(77,"div",37)(78,"div",38)(79,"mat-checkbox",52),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.liveEta,t)||(e.facade.settings.display.statusBar.liveEta=t),c(t)}),p("change",function(){return e.persistModel()}),l(80," Live ETA at cursor "),i()(),n(81,"div",38)(82,"mat-form-field",53)(83,"mat-label"),l(84),i(),n(85,"input",54,0),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.referenceSpeed,t)||(e.facade.settings.display.statusBar.referenceSpeed=t),c(t)}),p("change",function(){m(g);let t=M(86);return c(e.parseNumber(t))}),i(),b(87,Ft,2,0,"mat-error"),i()(),n(88,"div",38)(89,"mat-form-field",53)(90,"mat-label"),l(91,"Tap Fade Speed (s)"),i(),n(92,"input",55,1),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.tapFadeSpeed,t)||(e.facade.settings.display.statusBar.tapFadeSpeed=t),c(t)}),p("change",function(){m(g);let t=M(93);return c(e.parseNumber(t))}),i(),b(94,Nt,2,0,"mat-error"),i()()()()()(),n(95,"div",51)(96,"div",35),l(97,"WEATHER"),i(),n(98,"mat-card",36)(99,"mat-card-content")(100,"div",37)(101,"div",38)(102,"mat-form-field",39)(103,"mat-label"),l(104,"Wind indicator"),i(),n(105,"mat-select",56),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.windIndicator,t)||(e.facade.settings.display.windIndicator=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(106,Rt,2,2,"mat-option",41,v),i()()()()()()()()()(),n(108,"mat-tab",57)(109,"div",32)(110,"div",33)(111,"div",58)(112,"div",35),l(113,"UNITS & VALUES"),i(),n(114,"mat-card",36)(115,"mat-card-content")(116,"div",37)(117,"div",38)(118,"fieldset")(119,"legend")(120,"mat-checkbox",59,2),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.useServerPrefs,t)||(e.facade.settings.units.useServerPrefs=t),c(t)}),p("change",function(){return m(g),e.raiseChange(),c(e.persistModel())}),l(122," Use Server Unit Preferences "),i()(),n(123,"div",37)(124,"div",38)(125,"mat-form-field",39)(126,"mat-label"),l(127,"Distance units"),i(),n(128,"mat-select",60,3),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.distance,t)||(e.facade.settings.units.distance=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(130,Ut,2,2,"mat-option",41,v),i()()(),n(132,"div",38)(133,"mat-form-field",39)(134,"mat-label"),l(135,"Depth units"),i(),n(136,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.depth,t)||(e.facade.settings.units.depth=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.doS57())}),y(137,Gt,2,2,"mat-option",41,v),i()()(),n(139,"div",38)(140,"mat-form-field",39)(141,"mat-label"),l(142,"Length units"),i(),n(143,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.length,t)||(e.facade.settings.units.length=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(144,Ht,2,2,"mat-option",41,v),i()()(),n(146,"div",38)(147,"mat-form-field",39)(148,"mat-label"),l(149,"Temperature units"),i(),n(150,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.temperature,t)||(e.facade.settings.units.temperature=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(151,Zt,2,2,"mat-option",41,v),i()()(),n(153,"div",38)(154,"mat-form-field",39)(155,"mat-label"),l(156,"Speed units"),i(),n(157,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.speed,t)||(e.facade.settings.units.speed=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(158,Kt,2,2,"mat-option",41,v),i()()()()()()(),n(160,"div",37),b(161,qt,7,1,"div",38),b(162,Xt,7,1,"div",38),n(163,"div",38)(164,"signalk-preferred-paths",61),p("chosen",function(t){return e.onPreferredPaths(t)}),i()()()()()()()()(),n(165,"mat-tab",62)(166,"div",32)(167,"div",33)(168,"div",63)(169,"div",35),l(170,"MAP"),i(),n(171,"mat-card")(172,"mat-card-content")(173,"div",37)(174,"div",38)(175,"div",64),l(176," \xA0 "),i(),n(177,"mat-form-field",39)(178,"mat-label"),l(179,"Feature label zoom level"),i(),n(180,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.labelsMinZoom,t)||(e.facade.settings.map.labelsMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(181,Yt,2,2,"mat-option",41,D),i()()(),n(183,"div",38)(184,"div",66),l(185," Offset Vessel Center (%) "),i(),n(186,"div",67)(187,"mat-form-field",68)(188,"mat-label"),l(189,"Vertical"),i(),n(190,"input",69,4),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset.y,t)||(e.facade.settings.map.centerOffset.y=t),c(t)}),p("change",function(){m(g);let t=M(191);return c(e.parseCenterOffset(t))}),i()(),n(192,"mat-form-field",68)(193,"mat-label"),l(194,"Horizontal"),i(),n(195,"input",70,5),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset.x,t)||(e.facade.settings.map.centerOffset.x=t),c(t)}),p("change",function(){m(g);let t=M(196);return c(e.parseCenterOffset(t))}),i()()()(),n(197,"div",38)(198,"mat-checkbox",71),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.popoverMulti,t)||(e.facade.settings.map.popoverMulti=t),c(t)}),p("change",function(){return e.persistModel()}),l(199," Popovers close with button "),i()(),n(200,"div",38)(201,"mat-checkbox",72),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.doubleClickZoom,t)||(e.facade.settings.map.doubleClickZoom=t),c(t)}),p("change",function(){return e.persistModel()}),l(202," Double click to Zoom "),i()(),n(203,"div",38)(204,"mat-checkbox",73),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.overZoomTiles,t)||(e.facade.settings.map.overZoomTiles=t),c(t)}),p("change",function(){return e.persistModel()}),l(205," Keep tiles visible on max zoom "),i()(),n(206,"div",74)(207,"mat-form-field",39)(208,"mat-label"),l(209,"Map Pan When Following"),i(),n(210,"mat-select",75),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.panBehavior,t)||(e.facade.settings.map.panBehavior=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(211,Jt,2,2,"mat-option",41,v),i()(),b(213,$t,6,1,"mat-form-field",39),i()()()(),n(214,"div",35),l(215,"VECTOR CHARTS"),i(),n(216,"mat-card")(217,"mat-card-content")(218,"div",37)(219,"div",38)(220,"mat-form-field",39)(221,"mat-label"),l(222,"Graphics Style"),i(),n(223,"mat-select",76),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(224,ei,2,2,"mat-option",41,v),i()()(),n(226,"div",38)(227,"mat-form-field",39)(228,"mat-label"),l(229,"Boundaries"),i(),n(230,"mat-select",77),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(231,ti,2,2,"mat-option",41,v),i()()(),n(233,"div",38)(234,"mat-form-field",39)(235,"mat-label"),l(236,"Color Table (Requires refresh)"),i(),n(237,"mat-select",78),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(238,ii,2,2,"mat-option",41,v),i()()(),n(240,"div",38)(241,"mat-form-field",39)(242,"mat-label"),l(243,"Colors"),i(),n(244,"mat-select",79),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(245,ni,2,2,"mat-option",41,D),i()()()(),n(247,"div",37)(248,"div",38)(249,"mat-form-field",39)(250,"mat-label"),l(251,"Shallow depth"),i(),n(252,"input",80,6),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.shallowDepth,t)||(e.facade.settings.map.s57Options.shallowDepth=t),c(t)}),p("change",function(){m(g);let t=M(253);return c(e.doS57(t))}),i(),b(254,ai,2,0,"mat-error"),n(255,"span",81),l(256,"m"),i()()(),n(257,"div",38)(258,"mat-form-field",39)(259,"mat-label"),l(260,"Safety depth"),i(),n(261,"input",80,7),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.safetyDepth,t)||(e.facade.settings.map.s57Options.safetyDepth=t),c(t)}),p("change",function(){m(g);let t=M(262);return c(e.doS57(t))}),i(),b(263,oi,2,0,"mat-error"),n(264,"span",81),l(265,"m"),i()()(),n(266,"div",38)(267,"mat-form-field",39)(268,"mat-label"),l(269,"Deep depth"),i(),n(270,"input",80,8),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.deepDepth,t)||(e.facade.settings.map.s57Options.deepDepth=t),c(t)}),p("change",function(){m(g);let t=M(271);return c(e.doS57(t))}),i(),b(272,ri,2,0,"mat-error"),n(273,"span",81),l(274,"m"),i()()(),n(275,"div",38)(276,"mat-form-field",39)(277,"mat-label"),l(278,"Layers"),i(),n(279,"mat-select",82),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(280,si,2,2,"mat-option",41,v),i()()()()()()()()()(),n(282,"mat-tab",83)(283,"div",32)(284,"div",33)(285,"div",84)(286,"div",35),l(287,"COURSE"),i(),n(288,"mat-card",36)(289,"mat-card-content")(290,"div",37)(291,"div",38)(292,"mat-form-field",39)(293,"mat-label"),l(294,"Arrival Circle"),i(),n(295,"input",80,9),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.arrivalCircle,t)||(e.facade.settings.course.arrivalCircle=t),c(t)}),p("change",function(){m(g);let t=M(296);return c(e.onArrivalCircleChange(t))}),i(),b(297,li,2,0,"mat-error"),n(298,"span",81),l(299,"m"),i()()()(),n(300,"div",37)(301,"div",38)(302,"mat-checkbox",49,10),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointOnArrival,t)||(e.facade.settings.course.autoNextPointOnArrival=t),c(t)}),p("change",function(){return e.persistModel()}),l(304," Auto-advance to next point on arrival "),i()()(),n(305,"div",37)(306,"div",38)(307,"mat-form-field",39)(308,"mat-label"),l(309,"Notification type to use"),i(),n(310,"mat-select",85,11),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointTrigger,t)||(e.facade.settings.course.autoNextPointTrigger=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(312,di,2,2,"mat-option",41,D),i()()(),n(314,"div",38)(315,"mat-form-field",39)(316,"mat-label"),l(317,"Time to wait before advancing"),i(),n(318,"mat-select",86),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(319,gi,2,2,"mat-option",41,v),i()()()()()()()()()(),n(321,"mat-tab",87)(322,"div",32)(323,"div",33)(324,"div",88)(325,"div",35),l(326,"VESSEL"),i(),n(327,"mat-card",36)(328,"mat-card-content")(329,"div",37)(330,"div",38)(331,"fieldset")(332,"legend"),l(333,"Vessel Icon Size"),i(),n(334,"div",37)(335,"div",38)(336,"mat-radio-group",89),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(337,mi,3,4,"mat-radio-button",41,v),i()()()()()(),n(339,"div",38)(340,"fieldset")(341,"legend")(342,"mat-checkbox",90,12),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.fixedLocationMode,t)||(e.facade.settings.vessels.fixedLocationMode=t),c(t)}),p("change",function(){return e.persistModel()}),l(344," Fixed Location Mode "),i()(),n(345,"div",37)(346,"div",38)(347,"mat-form-field",68)(348,"mat-label"),l(349,"Latitude"),i(),n(350,"input",91,13),f("ngModelChange",function(t){return m(g),u(e.facade.fixedPosition[1],t)||(e.facade.fixedPosition[1]=t),c(t)}),p("change",function(){m(g);let t=M(351);return c(e.parseNumber(t,!0))}),i(),b(352,ci,2,0,"mat-error"),i(),n(353,"mat-form-field",68)(354,"mat-label"),l(355,"Longitude"),i(),n(356,"input",92,14),f("ngModelChange",function(t){return m(g),u(e.facade.fixedPosition[0],t)||(e.facade.fixedPosition[0]=t),c(t)}),p("change",function(){m(g);let t=M(357);return c(e.parseNumber(t,!0))}),i(),b(358,pi,2,0,"mat-error"),i()()()()()()(),E(359,"br"),n(360,"mat-card",36)(361,"mat-card-content")(362,"div",38)(363,"fieldset")(364,"legend"),l(365,"Vessel Lines:"),i(),n(366,"div",37)(367,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.windVectors,t)||(e.facade.settings.vessels.windVectors=t),c(t)}),p("change",function(){return e.persistModel()}),l(368," Display Wind Vectors "),i(),n(369,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.laylines,t)||(e.facade.settings.vessels.laylines=t),c(t)}),p("change",function(){return e.persistModel()}),l(370," Display Laylines "),i()(),n(371,"div",37)(372,"div",38)(373,"fieldset")(374,"legend"),l(375,"Heading Line"),i(),n(376,"div",37)(377,"div",38)(378,"mat-form-field")(379,"mat-label"),l(380,"Heading Line Length"),i(),n(381,"mat-select",93),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(382,_i,2,2,"mat-option",41,v),i()()(),n(384,"div",38)(385,"linestyle-select",94),p("selectionChange",function(t){return e.onLineStyle("heading",t)}),i()()()()()(),n(386,"div",37)(387,"div",38)(388,"fieldset")(389,"legend"),l(390,"COG Line"),i(),n(391,"div",37)(392,"div",38)(393,"mat-form-field")(394,"mat-label"),l(395,"COG Line Length"),i(),n(396,"mat-select",95),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(397,ui,2,2,"mat-option",41,v),i()()(),n(399,"div",38)(400,"linestyle-select",94),p("selectionChange",function(t){return e.onLineStyle("cog",t)}),i()()()()()()()(),n(401,"div",38)(402,"fieldset")(403,"legend")(404,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircles,t)||(e.facade.settings.vessels.rangeCircles=t),c(t)}),p("change",function(){return e.persistModel()}),l(405," Display Range Circles "),i()(),n(406,"div",37)(407,"div",38)(408,"mat-form-field",39)(409,"mat-label"),l(410,"Number of Range Circles"),i(),n(411,"mat-select",96),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(412,fi,2,2,"mat-option",41,D),i()()(),n(414,"div",38)(415,"mat-form-field",39)(416,"mat-label"),l(417,"Minimum Zoom Level"),i(),n(418,"mat-select",96),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(419,hi,2,2,"mat-option",41,D),i()()()(),n(421,"div",37)(422,"div",38)(423,"mat-checkbox",97),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCirclesFixed,t)||(e.facade.settings.vessels.rangeCirclesFixed=t),c(t)}),p("change",function(){return e.persistModel()}),l(424," Use Fixed Distance "),i()(),n(425,"div",38)(426,"mat-form-field",68)(427,"mat-label"),l(428),i(),n(429,"input",98,15),f("ngModelChange",function(t){return m(g),u(e.formattedNumberModel.rangeCirclesDistance,t)||(e.formattedNumberModel.rangeCirclesDistance=t),c(t)}),p("change",function(){m(g);let t=M(430);return c(e.parseFormattedNumber(t))}),i(),b(431,yi,2,0,"mat-error"),i()()()()()()(),E(432,"br"),n(433,"mat-card",36)(434,"mat-card-content")(435,"div",37)(436,"fieldset")(437,"legend")(438,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trail,t)||(e.facade.settings.vessels.trail=t),c(t)}),p("change",function(){return e.persistModel("vesselTrail")}),l(439," Display Vessel Track "),i()(),n(440,"div",37)(441,"div",38)(442,"mat-form-field",99)(443,"mat-label"),l(444,"Track source"),i(),n(445,"mat-select",100),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailSource,t)||(e.facade.settings.vessels.trailSource=t),c(t)}),p("selectionChange",function(){return e.persistModel("trailSource")}),n(446,"mat-option",101),l(447,"Auto"),i(),n(448,"mat-option",102),l(449,"Server"),i(),n(450,"mat-option",103),l(451,"This device"),i()(),b(452,Si,2,0,"mat-hint")(453,Ci,2,1,"mat-hint"),i(),l(454," \xA0\xA0 "),n(455,"mat-slider",104)(456,"input",105),f("ngModelChange",function(t){return m(g),u(e.trailLengthStop,t)||(e.trailLengthStop=t),c(t)}),p("valueChange",function(){return e.deferPersist()}),i()(),l(457),i()(),n(458,"div",37)(459,"div",38)(460,"mat-form-field",39)(461,"mat-label"),l(462,"Resolution: Last hour"),i(),n(463,"mat-select",96),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(464,wi,2,2,"mat-option",41,v),i()()(),n(466,"div",38)(467,"mat-form-field",39)(468,"mat-label"),l(469,"Resolution: 1 hr -> 24 hrs"),i(),n(470,"mat-select",96),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(471,Mi,2,2,"mat-option",41,v),i()()(),n(473,"div",38)(474,"mat-form-field",39)(475,"mat-label"),l(476,"Resolution: > 24 hrs"),i(),n(477,"mat-select",96),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(478,vi,2,2,"mat-option",41,v),i()()()()()()()(),n(480,"div",35),l(481,"OTHER VESSELS"),i(),n(482,"mat-card",36)(483,"mat-card-content")(484,"div",37)(485,"div",38)(486,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisShowTrack,t)||(e.facade.settings.vessels.aisShowTrack=t),c(t)}),p("change",function(){return e.persistModel()}),l(487," Show all tracks "),i(),l(488," \xA0 "),n(489,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.moored,t)||(e.aisStateFilter.moored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),l(490," Hide Moored "),i(),l(491," \xA0 "),n(492,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.anchored,t)||(e.aisStateFilter.anchored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),l(493," Hide Anchored "),i()()(),b(494,bi,5,3,"div",37),n(495,"div",37)(496,"div",38)(497,"mat-form-field",39)(498,"mat-label"),l(499,"Mark AIS target inactive after"),i(),n(500,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisStaleAge,t)||(e.facade.settings.vessels.aisStaleAge=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(501,Ti,2,2,"mat-option",41,v),i()()(),n(503,"div",38)(504,"mat-form-field",39)(505,"mat-label"),l(506,"Remove AIS target after"),i(),n(507,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisMaxAge,t)||(e.facade.settings.vessels.aisMaxAge=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(508,Di,2,2,"mat-option",41,v),i()()(),n(510,"div",38)(511,"mat-form-field",39)(512,"mat-label"),l(513,"Wind Vector Value"),i(),n(514,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisWindApparent,t)||(e.facade.settings.vessels.aisWindApparent=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(515,Ei,2,2,"mat-option",41,v),i()()(),n(517,"div",38)(518,"mat-form-field",39)(519,"mat-label"),l(520,"Wind / Track Zoom Level"),i(),n(521,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisWindMinZoom,t)||(e.facade.settings.vessels.aisWindMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(522,Wi,2,2,"mat-option",41,D),i()()(),n(524,"div",38)(525,"mat-form-field",39)(526,"mat-label"),l(527,"COG Line"),i(),n(528,"mat-select",65),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisCogLine,t)||(e.facade.settings.vessels.aisCogLine=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(529,Vi,2,2,"mat-option",41,v),i()()()()()()()()()(),n(531,"mat-tab",106)(532,"div",32)(533,"div",33)(534,"div",107)(535,"div",35),l(536,"NOTES"),i(),n(537,"mat-card",36)(538,"mat-card-content")(539,"div",47)(540,"div",38)(541,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.ui.showNotes,t)||(e.facade.settings.ui.showNotes=t),c(t)}),p("change",function(){return e.persistModel()}),l(542," Display Notes on Map "),i()(),n(543,"div",38)(544,"mat-form-field",39)(545,"mat-label"),l(546,"Notes Zoom Level"),i(),n(547,"mat-select",108),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(548,ki,2,2,"mat-option",41,D),i()()()(),n(550,"div",47)(551,"div",38)(552,"mat-form-field",39)(553,"mat-label"),l(554),i(),n(555,"mat-select",60),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.getRadius,t)||(e.facade.settings.resources.notes.getRadius=t),c(t)}),p("selectionChange",function(){return e.persistModel("fetchNotes")}),y(556,Pi,2,2,"mat-option",41,D),i()()()(),n(558,"div",47)(559,"div",38)(560,"mat-form-field",53)(561,"mat-label"),l(562,"Notes fetch filter:"),i(),n(563,"input",109,16),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.rootFilter,t)||(e.facade.settings.resources.notes.rootFilter=t),c(t)}),p("change",function(){return e.persistModel("fetchNotes")}),i(),b(565,Li,3,0,"button",110),i()()(),n(566,"div",47)(567,"div",38)(568,"mat-checkbox",111),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.groupNameEdit,t)||(e.facade.settings.resources.notes.groupNameEdit=t),c(t)}),p("change",function(){return e.persistModel()}),l(569," Edit Group Names "),i()(),n(570,"div",38)(571,"mat-checkbox",112),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.groupRequiresPosition,t)||(e.facade.settings.resources.notes.groupRequiresPosition=t),c(t)}),p("change",function(){return e.persistModel()}),l(572," Position Group Note "),i()()(),n(573,"div",47)(574,"div",38)(575,"mat-checkbox",113),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.singleClickNoteDetails,t)||(e.facade.settings.display.singleClickNoteDetails=t),c(t)}),p("change",function(){return e.persistModel()}),l(576," Single Click for Note Details "),i()()()()()(),n(577,"div",114)(578,"div",35),l(579,"CUSTOM RESOURCES"),i(),n(580,"mat-card",36)(581,"mat-card-content")(582,"div",47)(583,"div",38)(584,"div",115),l(585," Select custom resource types (./resources/<name>) "),i(),n(586,"mat-selection-list",116,17),p("selectionChange",function(){m(g);let t=M(587);return c(e.onResPathSelected(t))}),y(588,xi,2,3,"mat-list-option",117,D),i()()()()()()()()(),b(590,Ii,25,3,"mat-tab",118),n(591,"mat-tab",119)(592,"div",32)(593,"div",33)(594,"div",120)(595,"div",35),l(596,"SIGNAL K: CONNECTION"),i(),n(597,"mat-card",36)(598,"mat-card-content")(599,"div",47)(600,"fieldset")(601,"legend"),l(602,"Filter Stream data:"),i(),n(603,"span",121),l(604," Check to include Signal K schema groups on display."),E(605,"br"),n(606,"i"),l(607,"Use to manage display performance."),i()(),n(608,"div",38)(609,"mat-checkbox",122),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.vessels,t)||(e.facade.settings.signalk.vessels=t),c(t)}),p("change",function(){return e.persistModel()}),l(610," Vessels (other than Self) "),i()(),n(611,"div",38)(612,"mat-checkbox",123),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.atons,t)||(e.facade.settings.signalk.atons=t),c(t)}),p("change",function(){return e.persistModel()}),l(613," Aids to Navigation (AtoN) "),i()(),n(614,"div",38)(615,"mat-checkbox",124),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.aircraft,t)||(e.facade.settings.signalk.aircraft=t),c(t)}),p("change",function(){return e.persistModel()}),l(616," Aircraft "),i()(),n(617,"div",38)(618,"mat-checkbox",125),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.sar,t)||(e.facade.settings.signalk.sar=t),c(t)}),p("change",function(){return e.persistModel()}),l(619," Search and Rescue (SaR) "),i()(),n(620,"div",38)(621,"mat-checkbox",126),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.meteo,t)||(e.facade.settings.signalk.meteo=t),c(t)}),p("change",function(){return e.persistModel()}),l(622," Weather (Meteo) "),i()(),n(623,"div",38),E(624,"br"),n(625,"mat-form-field",39)(626,"mat-label"),l(627,"Max. distance from vessel"),i(),n(628,"mat-select",127,18),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.maxRadius,t)||(e.facade.settings.signalk.maxRadius=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(630,Ai,2,2,"mat-option",41,v),i()()()()(),n(632,"div",47)(633,"div",38)(634,"button",128),p("click",function(){return e.clearAuthToken()}),n(635,"mat-icon"),l(636,"key_off"),i()()()()()()()()()(),n(637,"mat-tab",129)(638,"div",32)(639,"div",33)(640,"div",130)(641,"div",35),l(642,"EXPERIMENTS"),i(),n(643,"mat-card",36)(644,"mat-card-content")(645,"div",47)(646,"div",38)(647,"mat-checkbox",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.video.enable,t)||(e.facade.settings.resources.video.enable=t),c(t)}),p("change",function(){return e.persistModel()}),l(648," Enable Video "),i()(),n(649,"div",38)(650,"mat-form-field",53)(651,"mat-label"),l(652,"url:"),i(),n(653,"input",131,19),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.video.url,t)||(e.facade.settings.resources.video.url=t),c(t)}),p("change",function(){return e.persistModel("videoUrl")}),i(),b(655,Bi,2,0,"mat-error"),i()()(),n(656,"div",47)(657,"div",38)(658,"mat-checkbox",132,20),f("ngModelChange",function(t){return m(g),u(e.facade.settings.experiments,t)||(e.facade.settings.experiments=t),c(t)}),p("change",function(){return e.persistModel()}),n(660,"mat-icon"),l(661,"science"),i(),l(662," Experimental Features "),i()()()()()()()()()()()}if(a&2){let g=M(86),r=M(93),t=M(129),oe=M(253),re=M(262),se=M(271),le=M(296),ce=M(303),pe=M(343),de=M(351),ge=M(357),me=M(430),ht=M(564),yt=M(654);o(25),_("ngModel",e.facade.settings.display.darkMode.source),o(),S(e.options.darkMode),o(3),_("ngModel",e.facade.settings.display.nightMode),o(6),_("ngModel",e.facade.settings.display.fab),o(),S(e.options.buttons.fab),o(3),h("disabled",!e.wakeLock.isAvailable),_("ngModel",e.facade.settings.display.disableWakelock),o(3),_("ngModel",e.facade.settings.display.preferInfoPanel),o(3),_("ngModel",e.facade.settings.display.splitView),o(5),T(e.facade.applicationList.length>1?50:-1),o(),T(e.show.favourites()?51:-1),o(9),_("ngModel",e.facade.settings.display.muteSound),o(3),_("ngModel",e.facade.settings.display.depthAlarm.enabled),o(6),_("ngModel",e.facade.settings.display.depthAlarm.smoothing),h("disabled",!e.facade.settings.display.depthAlarm.enabled),o(),S(e.options.alarm.smoothing),o(9),_("ngModel",e.facade.settings.display.statusBar.liveEta),o(5),k("Reference Boat Speed (",e.speedUnitSymbol,")"),o(),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.referenceSpeed),o(2),T(g.invalid&&(g.dirty||g.touched)?87:-1),o(5),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.tapFadeSpeed),o(2),T(r.invalid&&(r.dirty||r.touched)?94:-1),o(11),_("ngModel",e.facade.settings.display.windIndicator),o(),S(e.options.windIndicator),o(14),h("disabled",!e.app.serverConfig.unitPreferences()),_("ngModel",e.facade.settings.units.useServerPrefs),o(8),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.distance),o(2),S(e.options.availableUnits.distance),o(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.depth),o(),S(e.options.availableUnits.depth),o(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.length),o(),S(e.options.availableUnits.length),o(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.temperature),o(),S(e.options.availableUnits.temperature),o(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.speed),o(),S(e.options.availableUnits.speed),o(3),T(e.options.preferredValues.coords.length!==0?161:-1),o(),T(e.options.preferredValues.heading.length!==0?162:-1),o(18),_("ngModel",e.facade.settings.map.labelsMinZoom),o(),S(e.options.zoomLevels),o(9),h("min",-e.centerOffsetLimit)("max",e.centerOffsetLimit),_("ngModel",e.facade.settings.map.centerOffset.y),o(5),h("min",-e.centerOffsetLimit)("max",e.centerOffsetLimit),_("ngModel",e.facade.settings.map.centerOffset.x),o(3),_("ngModel",e.facade.settings.map.popoverMulti),o(3),_("ngModel",e.facade.settings.map.doubleClickZoom),o(3),_("ngModel",e.facade.settings.map.overZoomTiles),o(6),_("ngModel",e.facade.settings.map.panBehavior),o(),S(e.options.map.panBehavior),o(2),T(e.facade.settings.map.panBehavior==="exit"?213:-1),o(10),_("ngModel",e.facade.settings.map.s57Options.graphicsStyle),o(),S(e.options.map.s57.graphicsStyle),o(6),_("ngModel",e.facade.settings.map.s57Options.boundaries),o(),S(e.options.map.s57.boundaries),o(6),_("ngModel",e.facade.settings.map.s57Options.colorTable),o(),S(e.options.map.s57.colorTables),o(6),_("ngModel",e.facade.settings.map.s57Options.colors),o(),S(e.options.map.s57.colors),o(7),_("ngModel",e.facade.settings.map.s57Options.shallowDepth),o(2),T(oe.invalid&&(oe.dirty||oe.touched)?254:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.safetyDepth),o(2),T(re.invalid&&(re.dirty||re.touched)?263:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.deepDepth),o(2),T(se.invalid&&(se.dirty||se.touched)?272:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.otherLayers),o(),S(e.options.map.s57.otherLayers),o(15),_("ngModel",e.facade.settings.course.arrivalCircle),o(2),T(le.invalid&&(le.dirty||le.touched)?297:-1),o(5),_("ngModel",e.facade.settings.course.autoNextPointOnArrival),o(8),h("disabled",ce.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointTrigger),o(2),S(e.options.course.nextPointTrigger),o(6),h("disabled",ce.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointDelay),o(),S(e.options.course.nextPointDelay),o(17),_("ngModel",e.facade.settings.vessels.iconScale),o(),S(e.options.vessel.selfIconScale),o(5),_("ngModel",e.facade.settings.vessels.fixedLocationMode),o(8),_("ngModel",e.facade.fixedPosition[1]),h("disabled",!pe.checked),o(2),T(de.invalid&&(de.dirty||de.touched)?352:-1),o(4),_("ngModel",e.facade.fixedPosition[0]),h("disabled",!pe.checked),o(2),T(ge.invalid&&(ge.dirty||ge.touched)?358:-1),o(9),_("ngModel",e.facade.settings.vessels.windVectors),o(2),_("ngModel",e.facade.settings.vessels.laylines),o(12),_("ngModel",e.facade.settings.vessels.selfLines.heading.length),o(),S(e.options.vessel.headingLine),o(3),h("color",e.facade.settings.vessels.selfLines.heading.color)("dash",e.facade.settings.vessels.selfLines.heading.dash)("weight",e.facade.settings.vessels.selfLines.heading.weight),o(11),_("ngModel",e.facade.settings.vessels.selfLines.cog.length),o(),S(e.options.vessel.cogLine),o(3),h("color",e.facade.settings.vessels.selfLines.cog.color)("dash",e.facade.settings.vessels.selfLines.cog.dash)("weight",e.facade.settings.vessels.selfLines.cog.weight),o(4),_("ngModel",e.facade.settings.vessels.rangeCircles),o(7),_("ngModel",e.facade.settings.vessels.rangeCircleCount),h("disabled",!e.facade.settings.vessels.rangeCircles),o(),S(e.options.rangeCircles.count),o(6),_("ngModel",e.facade.settings.vessels.rangeCircleMinZoom),h("disabled",!e.facade.settings.vessels.rangeCircles),o(),S(e.options.rangeCircles.zoomLevels),o(4),_("ngModel",e.facade.settings.vessels.rangeCirclesFixed),h("disabled",!e.facade.settings.vessels.rangeCircles),o(5),k(" Distance between circles (",e.renderSymbol(e.facade.settings.units.distance),") "),o(),_("ngModel",e.formattedNumberModel.rangeCirclesDistance),h("disabled",!e.facade.settings.vessels.rangeCircles||!e.facade.settings.vessels.rangeCirclesFixed),o(2),T(me.invalid&&(me.dirty||me.touched)?431:-1),o(7),_("ngModel",e.facade.settings.vessels.trail),o(7),h("disabled",!e.facade.settings.vessels.trail),_("ngModel",e.facade.settings.vessels.trailSource),o(3),h("disabled",!e.serverTrailAvailable),o(4),T(e.serverTrailAvailable?e.facade.settings.vessels.trailSource==="auto"?453:-1:452),o(3),h("max",e.trailLengthAllStop)("displayWith",e.trailLengthStopLabel)("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),_("ngModel",e.trailLengthStop),o(),k(" Length (",e.trailLengthText,") "),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.lastHour),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.highResolution),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.next23),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.highResolution),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.beyond24),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.mediumResolution),o(8),_("ngModel",e.facade.settings.vessels.aisShowTrack),o(3),_("ngModel",e.aisStateFilter.moored),o(3),_("ngModel",e.aisStateFilter.anchored),o(2),T(e.facade.settings.vessels.aisShowTrack?-1:494),o(6),_("ngModel",e.facade.settings.vessels.aisStaleAge),o(),S(e.options.vessel.aisTimeouts),o(6),_("ngModel",e.facade.settings.vessels.aisMaxAge),o(),S(e.options.vessel.aisTimeouts),o(6),_("ngModel",e.facade.settings.vessels.aisWindApparent),o(),S(e.options.preferredValues.wind),o(6),_("ngModel",e.facade.settings.vessels.aisWindMinZoom),o(),S(e.options.zoomLevels),o(6),_("ngModel",e.facade.settings.vessels.aisCogLine),o(),S(e.options.vessel.aisCogLine),o(12),_("ngModel",e.facade.settings.ui.showNotes),o(6),h("disabled",!e.facade.settings.ui.showNotes),_("value",e.facade.settings.resources.notes.minZoom),o(),S(e.options.zoomLevels),o(6),C("Fetch Notes radius: ("+e.options.availableUnits.distance.get(t.value)+")"),o(),h("disabled",!e.facade.settings.ui.showNotes),_("ngModel",e.facade.settings.resources.notes.getRadius),o(),S(e.options.resources.noteRadius),o(7),_("ngModel",e.facade.settings.resources.notes.rootFilter),o(2),T(ht.value?565:-1),o(3),_("ngModel",e.facade.settings.resources.notes.groupNameEdit),o(3),_("ngModel",e.facade.settings.resources.notes.groupRequiresPosition),o(4),_("ngModel",e.facade.settings.display.singleClickNoteDetails),o(13),S(e.facade.resourcePathList),o(2),T(e.app.featureFlags().radarApi?590:-1),o(19),_("ngModel",e.facade.settings.signalk.vessels),o(3),_("ngModel",e.facade.settings.signalk.atons),o(3),_("ngModel",e.facade.settings.signalk.aircraft),o(3),_("ngModel",e.facade.settings.signalk.sar),o(3),_("ngModel",e.facade.settings.signalk.meteo),o(7),_("ngModel",e.facade.settings.signalk.maxRadius),o(2),S(e.options.vessel.aisMaxRadius),o(17),_("ngModel",e.facade.settings.resources.video.enable),o(6),h("disabled",!e.facade.settings.resources.video.enable),_("ngModel",e.facade.settings.resources.video.url),o(2),T(yt.invalid?655:-1),o(3),_("ngModel",e.facade.settings.experiments)}},dependencies:[K,G,Pe,H,Oe,Ie,xe,Le,Z,Me,we,Re,Ne,te,lt,ee,Fe,Ae,Be,je,qe,ze,Ke,R,Te,be,N,ve,$,Ye,mt,dt,gt,rt,Q,q,z,Ge,Ue,He,J,Y,Ze,X,j,ot,Qe,Je,at,it,nt,ae,ie],styles:["[_nghost-%COMP%] .mat-dialog-content{padding:0 4px}[_nghost-%COMP%] .mat-mdc-dialog-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:none;overflow:hidden}[_nghost-%COMP%] .mat-mdc-dialog-content .mat-mdc-tab-group, [_nghost-%COMP%] .mat-mdc-dialog-content .mat-mdc-tab-body-wrapper{flex:1 1 auto;min-height:0}.settings[_ngcontent-%COMP%] .setting-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}.setting-card-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.settings[_ngcontent-%COMP%] .setting-card-row-item[_ngcontent-%COMP%]{padding-right:15px;flex:1 1 auto}.settings[_ngcontent-%COMP%] .setting-card-row-item.setting-card-row-stack[_ngcontent-%COMP%]{flex-basis:220px}.settings[_ngcontent-%COMP%] .setting-field-group-title[_ngcontent-%COMP%]{font-size:10pt;font-family:Arial,Helvetica,sans-serif;opacity:.7;line-height:1.4;min-height:1.4em;padding-bottom:2px}.settings[_ngcontent-%COMP%] .setting-field-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.settings[_ngcontent-%COMP%] .setting-field-group[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:0 1 150px;min-width:80px}@media only screen and (max-width:599px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}@media only screen and (min-width:600px)and (max-width:959px),screen and (min-width:960px)and (max-width:1279px),screen and (min-width:1280px)and (max-width:1919px),screen and (min-width:1920px)and (max-width:5000px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ft as SettingsDialog};