@signalk/freeboard-sk 3.4.1 → 3.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +2 -2
- package/public/assets/features/radar-overlay-2.jpg +0 -0
- package/public/assets/features/radar-targets-1.jpg +0 -0
- package/public/assets/features/route-styles-1.jpg +0 -0
- package/public/assets/features/screen-widgets-2.jpg +0 -0
- package/public/assets/features-corpus.json +1 -1
- package/public/assets/help/img/ais_shiptypes.png +0 -0
- package/public/assets/help/index.html +87 -27
- package/public/assets/img/routes/route-end.svg +6 -0
- package/public/assets/img/routes/route-start.svg +6 -0
- package/public/assets/img/routes/route-waypoint.svg +9 -0
- package/public/assets/img/vessels/ais_fishing.svg +33 -0
- package/public/chunk-2EKPI63M.js +1 -0
- package/public/{chunk-VBSJZWSI.js → chunk-2H73O7R4.js} +1 -1
- package/public/{chunk-DN6IX7CO.js → chunk-2JAD5V57.js} +1 -1
- package/public/{chunk-GJZ7P5CR.js → chunk-4LLIVPOH.js} +1 -1
- package/public/chunk-5Z3KAAE3.js +1 -0
- package/public/{chunk-PWZFOOT4.js → chunk-6EZKIXYQ.js} +1 -1
- package/public/{chunk-MWETYHR7.js → chunk-7ISDSY26.js} +1 -1
- package/public/{chunk-ZQSUYMH2.js → chunk-BNDXOOFA.js} +1 -1
- package/public/{chunk-YH3OTY6F.js → chunk-BV7AHY6X.js} +1 -1
- package/public/{chunk-3MRBMOCG.js → chunk-DJVZLSS4.js} +1 -1
- package/public/{chunk-RENDTMDT.js → chunk-G5EXGCP4.js} +1 -1
- package/public/chunk-GVY3IGQP.js +1 -0
- package/public/chunk-HHNV7R6H.js +2 -0
- package/public/{chunk-AZQNOMPD.js → chunk-HHVNH6WV.js} +1 -1
- package/public/{chunk-WOU2FNU3.js → chunk-JPTPBTTP.js} +1 -1
- package/public/{chunk-VT4GQY5X.js → chunk-LH5NA6FP.js} +1 -1
- package/public/{chunk-DSUCHYD7.js → chunk-LRYGINIX.js} +1 -1
- package/public/chunk-MXEXQKUN.js +1 -0
- package/public/{chunk-6JTVABJT.js → chunk-NMNQPUAT.js} +127 -127
- package/public/{chunk-MZ3YWFFB.js → chunk-NXLWB5IV.js} +1 -1
- package/public/chunk-OFW4P2DX.js +276 -0
- package/public/chunk-OP6VYX5P.js +1 -0
- package/public/chunk-QD2NEHGC.js +1 -0
- package/public/{chunk-YBVURHD5.js → chunk-QJ2QMZLA.js} +1 -1
- package/public/{chunk-SIFYI3HU.js → chunk-SJSHCZKD.js} +1 -1
- package/public/{chunk-IP2UNZAT.js → chunk-TCWGFZUF.js} +1 -1
- package/public/{chunk-DC5AFSD6.js → chunk-THOUUI2P.js} +1 -1
- package/public/{chunk-VXYZIAGN.js → chunk-TO4IOJWS.js} +1 -1
- package/public/{chunk-4BCNBZTG.js → chunk-TUYXGFSN.js} +1 -1
- package/public/{chunk-PWNYMCP2.js → chunk-UMXWED35.js} +1 -1
- package/public/{chunk-2GVS7ZQR.js → chunk-UOK6WTQH.js} +1 -1
- package/public/chunk-V3SPESMB.js +7 -0
- package/public/chunk-VCMXPNSW.js +1 -0
- package/public/chunk-VTGTY5BJ.js +1 -0
- package/public/chunk-W5SXKI6G.js +1 -0
- package/public/chunk-XDKT43CW.js +4 -0
- package/public/{chunk-2QKJQDG4.js → chunk-XXJX5CGO.js} +14 -14
- package/public/chunk-ZTXZ6FY6.js +1 -0
- package/public/index.html +2 -2
- package/public/main-TP6UQVMD.js +359 -0
- package/public/{styles-ADI62PD5.css → styles-4RQCM62J.css} +1 -1
- package/public/worker-DI2XYCRR.js +3 -0
- package/public/chunk-2NWIJAJ6.js +0 -1
- package/public/chunk-7VECY4HP.js +0 -1
- package/public/chunk-BC2VITG4.js +0 -1
- package/public/chunk-CRWXCOWS.js +0 -1
- package/public/chunk-K4EGDHPT.js +0 -2
- package/public/chunk-LEEF5WZZ.js +0 -1
- package/public/chunk-QYBMIGVH.js +0 -1
- package/public/chunk-R6ABX6RX.js +0 -4
- package/public/chunk-RH4MSKTX.js +0 -1
- package/public/chunk-RYULE37H.js +0 -1
- package/public/chunk-WARJYBQ7.js +0 -7
- package/public/chunk-Z2IWHI3C.js +0 -1
- package/public/main-WXGVUWZE.js +0 -358
- package/public/worker-CDFJSLG6.js +0 -3
|
Binary file
|
|
@@ -754,8 +754,9 @@
|
|
|
754
754
|
<a href="#settings">SETTINGS</a>. <br /> <br />
|
|
755
755
|
|
|
756
756
|
<i
|
|
757
|
-
>For how to use these controls, see the <b>Radar Overlay</b
|
|
758
|
-
<b>Radar Guard Zones</b>
|
|
757
|
+
>For how to use these controls, see the <b>Radar Overlay</b>,
|
|
758
|
+
<b>Radar Guard Zones</b> and
|
|
759
|
+
<b>Radar & Camera Targets</b> entries in the Feature Browser (<b
|
|
759
760
|
>Main menu</b
|
|
760
761
|
>
|
|
761
762
|
or <b>More actions</b> → <b>What's New</b>).</i
|
|
@@ -1104,12 +1105,14 @@
|
|
|
1104
1105
|
<li>
|
|
1105
1106
|
<b>Center: </b> Clicking
|
|
1106
1107
|
<i class="material-icons">center_focus_strong</i> positions
|
|
1107
|
-
the map so the
|
|
1108
|
+
the map so the waypoint is displayed in the center.
|
|
1108
1109
|
</li>
|
|
1109
1110
|
<li>
|
|
1110
|
-
<b>
|
|
1111
|
-
<i class="material-icons">
|
|
1112
|
-
|
|
1111
|
+
<b>Properties: </b> Click
|
|
1112
|
+
<i class="material-icons">info_outline</i> to open the
|
|
1113
|
+
waypoint's details, where you can change its name,
|
|
1114
|
+
description, position and symbol. See the Feature Browser
|
|
1115
|
+
→ Waypoints.
|
|
1113
1116
|
</li>
|
|
1114
1117
|
<li>
|
|
1115
1118
|
<b>Add to Group: </b> Click
|
|
@@ -1800,7 +1803,9 @@
|
|
|
1800
1803
|
server.
|
|
1801
1804
|
</ul>
|
|
1802
1805
|
All Alerts are available to view via the Alerts List.<br />
|
|
1803
|
-
|
|
1806
|
+
A <b>Person Overboard</b> alarm can be raised from the Alerts List, or
|
|
1807
|
+
with the red Person Overboard button at the bottom of the toolbar. See
|
|
1808
|
+
the Feature Browser → Person Overboard.
|
|
1804
1809
|
<div>
|
|
1805
1810
|
<img src="./img/alarms.png" style="max-width: 350px" alt="" />
|
|
1806
1811
|
</div>
|
|
@@ -1813,9 +1818,7 @@
|
|
|
1813
1818
|
<i class="material-icons" style="color: orangered">warning</i>
|
|
1814
1819
|
button on the toolbar to display the Alerts List:
|
|
1815
1820
|
</li>
|
|
1816
|
-
<li>
|
|
1817
|
-
Click the <b>RAISE</b> button and select the desired alarm type.
|
|
1818
|
-
</li>
|
|
1821
|
+
<li>Click the <b>RAISE</b> button and select <b>Overboard!</b>.</li>
|
|
1819
1822
|
</ul>
|
|
1820
1823
|
|
|
1821
1824
|
An alarm request will be sent to the Signal K server which will emit a
|
|
@@ -1825,12 +1828,16 @@
|
|
|
1825
1828
|
<i>Silenced</i>.
|
|
1826
1829
|
<ul>
|
|
1827
1830
|
<li>
|
|
1828
|
-
Silencing the alert will mute any sound and the
|
|
1829
|
-
visible.
|
|
1831
|
+
Silencing the alert (<b>MUTE</b>) will mute any sound and the
|
|
1832
|
+
alert card remains visible. On a display nobody is logged in to,
|
|
1833
|
+
MUTE silences that display only: the alarm stays active on the
|
|
1834
|
+
server and on other displays, and sounds again if it escalates.
|
|
1830
1835
|
</li>
|
|
1831
1836
|
<li>
|
|
1832
|
-
Acknowledging the alert will close the alert card and
|
|
1833
|
-
sound. The alert remains an entry in the Alert List.
|
|
1837
|
+
Acknowledging the alert (<b>ACK</b>) will close the alert card and
|
|
1838
|
+
silence any sound. The alert remains an entry in the Alert List.
|
|
1839
|
+
Acknowledging needs a logged-in user. A Person Overboard card
|
|
1840
|
+
stays visible after ACK, until the MOB is ended.
|
|
1834
1841
|
</li>
|
|
1835
1842
|
</ul>
|
|
1836
1843
|
|
|
@@ -1848,15 +1855,15 @@
|
|
|
1848
1855
|
Freeboard displays vessels with the following icons:
|
|
1849
1856
|
<div style="display: flex">
|
|
1850
1857
|
<div style="width: 30px; text-align: center">
|
|
1851
|
-
<img src="../img/
|
|
1858
|
+
<img src="../img/vessels/self.png" style="width: 12px" alt="" />
|
|
1852
1859
|
</div>
|
|
1853
1860
|
<div>Vessel associated Signal K "self"</div>
|
|
1854
1861
|
</div>
|
|
1855
1862
|
<div style="display: flex">
|
|
1856
1863
|
<div style="width: 30px; text-align: center">
|
|
1857
1864
|
<img
|
|
1858
|
-
src="../img/vessels/ais_self.
|
|
1859
|
-
style="width:
|
|
1865
|
+
src="../img/vessels/ais_self.svg"
|
|
1866
|
+
style="width: 24px"
|
|
1860
1867
|
alt=""
|
|
1861
1868
|
/>
|
|
1862
1869
|
</div>
|
|
@@ -1904,6 +1911,16 @@
|
|
|
1904
1911
|
</div>
|
|
1905
1912
|
<div>Wing in Ground <i>(AIS type 20-29)</i></div>
|
|
1906
1913
|
</div>
|
|
1914
|
+
<div style="display: flex">
|
|
1915
|
+
<div style="width: 30px; text-align: center">
|
|
1916
|
+
<img
|
|
1917
|
+
src="../img/vessels/ais_fishing.svg"
|
|
1918
|
+
style="width: 24px"
|
|
1919
|
+
alt=""
|
|
1920
|
+
/>
|
|
1921
|
+
</div>
|
|
1922
|
+
<div>Fishing <i>(AIS type 30)</i></div>
|
|
1923
|
+
</div>
|
|
1907
1924
|
<div style="display: flex">
|
|
1908
1925
|
<div style="width: 30px; text-align: center">
|
|
1909
1926
|
<img
|
|
@@ -1912,7 +1929,7 @@
|
|
|
1912
1929
|
alt=""
|
|
1913
1930
|
/>
|
|
1914
1931
|
</div>
|
|
1915
|
-
<div>Pleasure <i>(AIS type
|
|
1932
|
+
<div>Pleasure <i>(AIS type 36-39)</i></div>
|
|
1916
1933
|
</div>
|
|
1917
1934
|
<div style="display: flex">
|
|
1918
1935
|
<div style="width: 30px; text-align: center">
|
|
@@ -1932,7 +1949,11 @@
|
|
|
1932
1949
|
alt=""
|
|
1933
1950
|
/>
|
|
1934
1951
|
</div>
|
|
1935
|
-
<div>
|
|
1952
|
+
<div>
|
|
1953
|
+
Special Vessel <i>(AIS type 31-35, 50-59)</i>: tows, dredgers,
|
|
1954
|
+
dive boats and military vessels, as well as pilot boats, tugs and
|
|
1955
|
+
search & rescue
|
|
1956
|
+
</div>
|
|
1936
1957
|
</div>
|
|
1937
1958
|
<div style="display: flex">
|
|
1938
1959
|
<div style="width: 30px; text-align: center">
|
|
@@ -1974,6 +1995,30 @@
|
|
|
1974
1995
|
</div>
|
|
1975
1996
|
<div>Other <i>(AIS type 90-99)</i></div>
|
|
1976
1997
|
</div>
|
|
1998
|
+
<div style="display: flex">
|
|
1999
|
+
<div style="width: 30px; text-align: center">
|
|
2000
|
+
<svg
|
|
2001
|
+
width="20"
|
|
2002
|
+
height="20"
|
|
2003
|
+
viewBox="0 0 20 20"
|
|
2004
|
+
aria-hidden="true"
|
|
2005
|
+
>
|
|
2006
|
+
<circle
|
|
2007
|
+
cx="10"
|
|
2008
|
+
cy="10"
|
|
2009
|
+
r="8"
|
|
2010
|
+
stroke="#ff6f00"
|
|
2011
|
+
stroke-width="2"
|
|
2012
|
+
fill="none"
|
|
2013
|
+
/>
|
|
2014
|
+
</svg>
|
|
2015
|
+
</div>
|
|
2016
|
+
<div>
|
|
2017
|
+
Radar or camera target
|
|
2018
|
+
<i>(grey when not updated for 20 seconds)</i>. See the Feature
|
|
2019
|
+
Browser → Radar & Camera Targets.
|
|
2020
|
+
</div>
|
|
2021
|
+
</div>
|
|
1977
2022
|
|
|
1978
2023
|
Freeboard provides the ability to de-clutter the screen of vessels in
|
|
1979
2024
|
the following ways:
|
|
@@ -2036,15 +2081,11 @@
|
|
|
2036
2081
|
|
|
2037
2082
|
<div style="display: flex; flex-wrap: wrap">
|
|
2038
2083
|
<div>
|
|
2039
|
-
<img
|
|
2040
|
-
src="./img/vessels/ais_list.png"
|
|
2041
|
-
style="max-width: 250px"
|
|
2042
|
-
alt=""
|
|
2043
|
-
/>
|
|
2084
|
+
<img src="./img/ais_list.png" style="max-width: 250px" alt="" />
|
|
2044
2085
|
</div>
|
|
2045
2086
|
<div>
|
|
2046
2087
|
<img
|
|
2047
|
-
src="./img/
|
|
2088
|
+
src="./img/ais_shiptypes.png"
|
|
2048
2089
|
style="max-width: 250px"
|
|
2049
2090
|
alt=""
|
|
2050
2091
|
/>
|
|
@@ -2239,6 +2280,12 @@
|
|
|
2239
2280
|
<b>Split view</b> button, which opens a second chart beside or
|
|
2240
2281
|
below the main one. See the Feature Browser → <i>Split View</i>.
|
|
2241
2282
|
</li>
|
|
2283
|
+
<li>
|
|
2284
|
+
<b>Panel background</b>: Choose how see-through the course data
|
|
2285
|
+
panel and supporting screen widgets are: <i>Default</i>,
|
|
2286
|
+
<i>Opaque</i>, 85 % or 70 %. See the Feature Browser →
|
|
2287
|
+
<i>Following a Route</i>.
|
|
2288
|
+
</li>
|
|
2242
2289
|
</ul>
|
|
2243
2290
|
<ul>
|
|
2244
2291
|
<li>
|
|
@@ -2483,6 +2530,11 @@
|
|
|
2483
2530
|
<b>COURSE:</b><br />
|
|
2484
2531
|
This section provides settings for course navigation.<br />
|
|
2485
2532
|
|
|
2533
|
+
<b>Route style</b>: How routes are drawn on the map:
|
|
2534
|
+
<b>Flags & pins</b> (default), <b>Classic</b>,
|
|
2535
|
+
<b>Chevrons (animated)</b> or <b>Chevrons (static)</b>. See the
|
|
2536
|
+
Feature Browser → <i>Route Styles</i>.<br />
|
|
2537
|
+
|
|
2486
2538
|
<b>Auto-advance to next point on arrival</b>: Check this option to
|
|
2487
2539
|
automatically advance to the next route point once the target
|
|
2488
2540
|
notification has been received.<br />
|
|
@@ -2535,7 +2587,13 @@
|
|
|
2535
2587
|
</li>
|
|
2536
2588
|
<li>
|
|
2537
2589
|
<b>Display Wind Vectors</b>: Select to display wind vectors for
|
|
2538
|
-
the vessel on the map.
|
|
2590
|
+
the vessel on the map. <i>(Default is unchecked)</i>
|
|
2591
|
+
</li>
|
|
2592
|
+
<li>
|
|
2593
|
+
<b>Display Current (Set & Drift)</b>: Select to display an
|
|
2594
|
+
arrow on the vessel showing the set and drift of the current. See
|
|
2595
|
+
the Feature Browser → Own Vessel Display.
|
|
2596
|
+
<i>(Default is checked)</i>
|
|
2539
2597
|
</li>
|
|
2540
2598
|
<li>
|
|
2541
2599
|
<b>Display Laylines</b>: Select to display laylines when
|
|
@@ -2801,7 +2859,9 @@
|
|
|
2801
2859
|
The device list is locked while the RADAR is shown on the map.<br />
|
|
2802
2860
|
<b>Draw range circles at the radar range while it transmits</b>:
|
|
2803
2861
|
Select to draw range circles at the RADAR range around the vessel
|
|
2804
|
-
while the RADAR transmits, in place of the vessel range circles
|
|
2862
|
+
while the RADAR transmits, in place of the vessel range circles.<br />
|
|
2863
|
+
<b>Range circle color</b>: The color of the RADAR range circles. The
|
|
2864
|
+
default dark grey is drawn light grey at night so it stays visible.
|
|
2805
2865
|
<hr />
|
|
2806
2866
|
|
|
2807
2867
|
<b>SIGNAL K:</b><br />
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="37" height="37" viewBox="0 0 37 37">
|
|
3
|
+
<g transform="matrix(1.0637 0 0 1.0637 18.5005 18.5002)">
|
|
4
|
+
<path style="stroke: rgb(0,0,0); stroke-width: 0.5; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(215,25,32); fill-rule: nonzero; opacity: 1;" transform=" translate(-17.3925, -17.3921)" d="M 7.01 34.784 C 6.214 34.784 5.571 34.139 5.571 33.345 L 5.571 2.808 C 5.571 2.122 6.054 1.53 6.727 1.396 C 6.909 1.36 7.004 1.291 7.28 1.08 C 8.798 -0.086 10.415 -0.744 17.413 1.433 C 24.613 3.677 26.514 2.113 26.524 2.094 C 26.849 1.528 27.51 1.251 28.143 1.416 C 28.775 1.584 29.214 2.155 29.214 2.808 L 29.214 17.813 C 29.214 18.063 29.148 18.31 29.025 18.527 C 28.657 19.171 26.329 22.227 16.557 19.188 C 10.446 17.285 9.596 17.937 9.034 18.368 C 8.87 18.494 8.679 18.64 8.449 18.778 L 8.449 33.344 C 8.449 34.139 7.805 34.784 7.01 34.784 Z" stroke-linecap="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="37" height="37" viewBox="0 0 37 37">
|
|
3
|
+
<g transform="matrix(1.0637 0 0 1.0637 17.6987 18.5002)">
|
|
4
|
+
<path style="stroke: rgb(0,0,0); stroke-width: 0.5; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(119,187,65); fill-rule: nonzero; opacity: 1;" transform=" translate(-17.3925, -17.3921)" d="M 7.01 34.784 C 6.214 34.784 5.571 34.139 5.571 33.345 L 5.571 2.808 C 5.571 2.122 6.054 1.53 6.727 1.396 C 6.909 1.36 7.004 1.291 7.28 1.08 C 8.798 -0.086 10.415 -0.744 17.413 1.433 C 24.613 3.677 26.514 2.113 26.524 2.094 C 26.849 1.528 27.51 1.251 28.143 1.416 C 28.775 1.584 29.214 2.155 29.214 2.808 L 29.214 17.813 C 29.214 18.063 29.148 18.31 29.025 18.527 C 28.657 19.171 26.329 22.227 16.557 19.188 C 10.446 17.285 9.596 17.937 9.034 18.368 C 8.87 18.494 8.679 18.64 8.449 18.778 L 8.449 33.344 C 8.449 34.139 7.805 34.784 7.01 34.784 Z" stroke-linecap="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="37" height="37" viewBox="0 0 37 37">
|
|
3
|
+
<g transform="matrix(-0.4991 -0.0009 0.0009 -0.4997 17.6984 18.231)">
|
|
4
|
+
<polygon style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(12,44,103); fill-rule: nonzero; opacity: 1;" points="20.089,-2.109 20.736,-3.423 21.297,-4.777 21.77,-6.164 22.153,-7.579 22.444,-9.015 22.643,-10.467 22.747,-11.929 22.757,-13.395 22.672,-14.858 22.494,-16.312 22.222,-17.752 21.859,-19.172 21.404,-20.565 20.861,-21.927 20.232,-23.25 19.519,-24.53 18.724,-25.762 17.852,-26.94 16.907,-28.06 15.891,-29.116 14.809,-30.105 13.666,-31.022 12.466,-31.863 11.215,-32.626 9.917,-33.306 8.578,-33.902 7.203,-34.41 5.799,-34.829 4.37,-35.157 2.923,-35.391 1.465,-35.533 0,-35.58 -1.465,-35.533 -2.923,-35.391 -4.37,-35.157 -5.799,-34.829 -7.203,-34.41 -8.578,-33.902 -9.917,-33.306 -11.215,-32.626 -12.466,-31.863 -13.666,-31.022 -14.809,-30.105 -15.891,-29.116 -16.907,-28.06 -17.852,-26.94 -18.724,-25.762 -19.519,-24.53 -20.232,-23.25 -20.861,-21.927 -21.404,-20.565 -21.859,-19.172 -22.222,-17.752 -22.494,-16.312 -22.672,-14.858 -22.757,-13.395 -22.747,-11.929 -22.643,-10.467 -22.444,-9.015 -22.153,-7.579 -21.77,-6.164 -21.297,-4.777 -20.736,-3.423 -20.089,-2.109 0,35.58 "/>
|
|
5
|
+
</g>
|
|
6
|
+
<g transform="matrix(0.4991 0 0 0.4991 17.8132 25.5609)">
|
|
7
|
+
<circle style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1;" cx="0" cy="0" r="7.616"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
2
|
+
width="24.000000pt" height="24.000000pt" viewBox="0 0 24.000000 24.000000"
|
|
3
|
+
preserveAspectRatio="xMidYMid meet">
|
|
4
|
+
<title>ais-fishing</title>
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.vessel-stroke-fishing {
|
|
7
|
+
fill: #000000;
|
|
8
|
+
stroke: #000000;
|
|
9
|
+
}
|
|
10
|
+
.vessel-fill-fishing {
|
|
11
|
+
fill: #ff8c00;
|
|
12
|
+
stroke: none;
|
|
13
|
+
}
|
|
14
|
+
</style>
|
|
15
|
+
|
|
16
|
+
<g transform="translate(0.000000,24.000000) scale(0.100000,-0.100000)"
|
|
17
|
+
class="vessel-stroke-fishing">
|
|
18
|
+
<path d="M103 180 c-14 -31 -23 -72 -23 -101 0 -51 8 -60 30 -34 12 14 15 14
|
|
19
|
+
30 0 9 -8 20 -15 23 -15 16 0 5 108 -16 153 l-22 48 -22 -51z m46 -29 c6 -19
|
|
20
|
+
11 -52 11 -75 0 -38 -1 -39 -17 -23 -16 16 -18 16 -36 -1 -19 -17 -20 -16 -15
|
|
21
|
+
38 6 64 25 117 37 104 5 -5 13 -24 20 -43z"/>
|
|
22
|
+
</g>
|
|
23
|
+
<g transform="translate(0.000000,24.000000) scale(0.100000,-0.100000)"
|
|
24
|
+
class="vessel-fill-fishing">
|
|
25
|
+
<path d="M149 151 c6 -19
|
|
26
|
+
11 -52 11 -75 0 -38 -1 -39 -17 -23 -16 16 -18 16 -36 -1 -19 -17 -20 -16 -15
|
|
27
|
+
38 6 64 25 117 37 104 5 -5 13 -24 20 -43z"/>
|
|
28
|
+
</g>
|
|
29
|
+
<g transform="translate(0.000000,24.000000) scale(0.100000,-0.100000)"
|
|
30
|
+
class="vessel-stroke-fishing">
|
|
31
|
+
<path d="M133 110 l-14 0 0 14 14 0 0 -14 -14 0z"/>
|
|
32
|
+
</g>
|
|
33
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as a}from"./chunk-SJSHCZKD.js";import"./chunk-4LLIVPOH.js";import"./chunk-G5EXGCP4.js";import"./chunk-2JAD5V57.js";import"./chunk-BNDXOOFA.js";import"./chunk-THOUUI2P.js";import"./chunk-XXJX5CGO.js";import"./chunk-XDKT43CW.js";import"./chunk-BZGM3F3K.js";export{a as PlaybackDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A,B,C,D,E,F,G,H,I,J,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-
|
|
1
|
+
import{A,B,C,D,E,F,G,H,I,J,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-QD2NEHGC.js";import"./chunk-V3SPESMB.js";import"./chunk-BZGM3F3K.js";export{e as Assert,d as AssertError,b as Check,h as Clean,f as Clone,j as Convert,u as Create,t as CreateError,o as Decode,m as DecodeError,n as DecodeUnsafe,k as Default,D as Delete,A as Diff,E as Edit,r as Encode,p as EncodeError,q as EncodeUnsafe,v as Equal,c as Errors,s as HasCodec,w as Hash,B as Insert,i as IsOptionalUndefined,z as Parse,x as ParseError,y as Parser,F as Patch,l as Pipeline,a as Pointer,H as Repair,g as UnionPrioritySort,G as UnionScoreSelect,C as Update,I as Value,J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as o}from"./chunk-
|
|
1
|
+
import{A as o}from"./chunk-XXJX5CGO.js";import{V as f,d as u}from"./chunk-XDKT43CW.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{E as z,Ea as Z,N as G,U as j,W as F,Z as U,ba as B,ha as $,n as V,p as Y,ua as y,w as g,xa as v,y as X}from"./chunk-2QKJQDG4.js";import{Hb as A,Ib as O,Jc as H,Nb as M,O as r,Oa as D,Ob as x,Pb as S,Sa as m,V as _,Va as P,Vb as u,X as n,Xb as L,Ya as C,Yb as k,Zb as N,_a as I,ab as E,d as c,fa as p,ga as T,ja as w,ra as h,xb as f,yb as R}from"./chunk-R6ABX6RX.js";import{a as l}from"./chunk-BZGM3F3K.js";var q=["tooltip"],K=20;var J=new _("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let a=n(p);return()=>F(a,{scrollThrottle:K})}}),tt=new _("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var Q="tooltip-panel",et={passive:!0},it=8,ot=8,st=24,nt=200,It=(()=>{class a{_elementRef=n(h);_ngZone=n(w);_platform=n(V);_ariaDescriber=n(Z);_focusMonitor=n($);_dir=n(X);_injector=n(p);_viewContainerRef=n(C);_mediaMatcher=n(Y);_document=n(T);_renderer=n(P);_animationsDisabled=v();_defaultOptions=n(tt,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=at;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=y(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=y(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=g(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=g(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new c;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=it}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(r(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(e=>e()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new G(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(r(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&s._origin instanceof h)return this._overlayRef;this._detach()}let e=this._injector.get(z).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${Q}`,o=U(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e).withPopoverLocation("global");return o.positionChanges.pipe(r(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=B(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(J)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(r(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(r(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(r(this._destroyed)).subscribe(s=>{s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(r(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),o=this._getOverlayPosition();e.withPositions([this._addOffset(l(l({},i.main),o.main)),this._addOffset(l(l({},i.fallback),o.fallback))])}_addOffset(t){let e=ot,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:o,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:o,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),m(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t instanceof Set?Array.from(t):t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:o}=t,s;if(e==="center"?this._dir&&this._dir.value==="rtl"?s=i==="end"?"left":"right":s=i==="start"?"left":"right":s=e==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let d=this._overlayRef;if(d){let b=`${this._cssClassPrefix}-${Q}-`;d.removePanelClass(b+this._currentPosition),d.addPanelClass(b+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i)},this._defaultOptions?.touchLongPressShowDelay??o)})):this._addListener("mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",t=>{let e=t.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}),this._addListener("wheel",t=>{if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",t),this._addListener("touchcancel",t)}}}_addListener(t,e){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,t,e,et))}_isTouchPlatform(){let t=this._defaultOptions?.detectHoverCapability;return typeof t=="function"?!t():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!t&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||m({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=t=>t.type==="keydown"?this._isTooltipVisible()&&t.keyCode===27&&!j(t):!0;static \u0275fac=function(e){return new(e||a)};static \u0275dir=E({type:a,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&u("mat-mdc-tooltip-disabled",i.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return a})(),at=(()=>{class a{_changeDetectorRef=n(H);_elementRef=n(h);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=v();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new c;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>st&&t.width>=nt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,o=this._hideAnimation;if(e.classList.remove(t?o:i),e.classList.add(t?i:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(e);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=I({type:a,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&M(q,7),e&2){let o;x(o=S())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&A("mouseleave",function(s){return i._handleMouseLeave(s)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){e&1&&(f(0,"div",1,0),O("animationend",function(s){return i._handleAnimationEnd(s)}),f(2,"div",2),k(3),R()()),e&2&&(L(i.tooltipClass),u("mdc-tooltip--multiline",i._isMultiline),D(3),N(i.message))},styles:[`.mat-mdc-tooltip {
|
|
1
|
+
import{E as z,Ea as Z,N as G,U as j,W as F,Z as U,ba as B,ha as $,n as V,p as Y,ua as y,w as g,xa as v,y as X}from"./chunk-XXJX5CGO.js";import{$b as N,Ab as R,Jb as A,Kb as O,Lc as H,Pb as M,Q as r,Qa as D,Qb as x,Rb as S,Ua as m,X as _,Xa as P,Xb as u,Z as n,Zb as L,_a as C,_b as k,ab as I,cb as E,d as c,ha as p,ia as T,la as w,ta as h,zb as f}from"./chunk-XDKT43CW.js";import{a as l}from"./chunk-BZGM3F3K.js";var q=["tooltip"],K=20;var J=new _("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let a=n(p);return()=>F(a,{scrollThrottle:K})}}),tt=new _("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var Q="tooltip-panel",et={passive:!0},it=8,ot=8,st=24,nt=200,It=(()=>{class a{_elementRef=n(h);_ngZone=n(w);_platform=n(V);_ariaDescriber=n(Z);_focusMonitor=n($);_dir=n(X);_injector=n(p);_viewContainerRef=n(C);_mediaMatcher=n(Y);_document=n(T);_renderer=n(P);_animationsDisabled=v();_defaultOptions=n(tt,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=at;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=y(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=y(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=g(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=g(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new c;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=it}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(r(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(e=>e()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new G(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(r(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&s._origin instanceof h)return this._overlayRef;this._detach()}let e=this._injector.get(z).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${Q}`,o=U(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e).withPopoverLocation("global");return o.positionChanges.pipe(r(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=B(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(J)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(r(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(r(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(r(this._destroyed)).subscribe(s=>{s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(r(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),o=this._getOverlayPosition();e.withPositions([this._addOffset(l(l({},i.main),o.main)),this._addOffset(l(l({},i.fallback),o.fallback))])}_addOffset(t){let e=ot,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:o,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:o,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),m(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t instanceof Set?Array.from(t):t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:o}=t,s;if(e==="center"?this._dir&&this._dir.value==="rtl"?s=i==="end"?"left":"right":s=i==="start"?"left":"right":s=e==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let d=this._overlayRef;if(d){let b=`${this._cssClassPrefix}-${Q}-`;d.removePanelClass(b+this._currentPosition),d.addPanelClass(b+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i)},this._defaultOptions?.touchLongPressShowDelay??o)})):this._addListener("mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",t=>{let e=t.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}),this._addListener("wheel",t=>{if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",t),this._addListener("touchcancel",t)}}}_addListener(t,e){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,t,e,et))}_isTouchPlatform(){let t=this._defaultOptions?.detectHoverCapability;return typeof t=="function"?!t():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!t&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||m({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=t=>t.type==="keydown"?this._isTooltipVisible()&&t.keyCode===27&&!j(t):!0;static \u0275fac=function(e){return new(e||a)};static \u0275dir=E({type:a,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&u("mat-mdc-tooltip-disabled",i.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return a})(),at=(()=>{class a{_changeDetectorRef=n(H);_elementRef=n(h);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=v();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new c;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>st&&t.width>=nt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,o=this._hideAnimation;if(e.classList.remove(t?o:i),e.classList.add(t?i:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(e);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=I({type:a,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&M(q,7),e&2){let o;x(o=S())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&A("mouseleave",function(s){return i._handleMouseLeave(s)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){e&1&&(f(0,"div",1,0),O("animationend",function(s){return i._handleAnimationEnd(s)}),f(2,"div",2),k(3),R()()),e&2&&(L(i.tooltipClass),u("mdc-tooltip--multiline",i._isMultiline),D(3),N(i.message))},styles:[`.mat-mdc-tooltip {
|
|
2
2
|
position: relative;
|
|
3
3
|
transform: scale(0);
|
|
4
4
|
display: inline-flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as U}from"./chunk-OFW4P2DX.js";import{da as Q}from"./chunk-NMNQPUAT.js";import"./chunk-QJ2QMZLA.js";import"./chunk-CI2BDMX2.js";import"./chunk-LRYGINIX.js";import"./chunk-NXLWB5IV.js";import"./chunk-SJSHCZKD.js";import"./chunk-4LLIVPOH.js";import"./chunk-G5EXGCP4.js";import"./chunk-2JAD5V57.js";import"./chunk-BNDXOOFA.js";import"./chunk-THOUUI2P.js";import{$a as j,Fa as I,Ga as w,Ia as O,Ja as E,Ka as R,La as k,Na as T,Oa as V,Wa as A,Ya as W,m as y}from"./chunk-XXJX5CGO.js";import"./chunk-QD2NEHGC.js";import"./chunk-7FANVIZX.js";import"./chunk-HHNV7R6H.js";import{m as z}from"./chunk-MXEXQKUN.js";import{$b as S,Fb as D,Jb as m,Lb as c,Na as v,Pb as C,Qa as s,Qb as b,Rb as M,Ya as d,_b as l,ab as P,da as p,ea as g,na as h,pb as f,qb as u,vb as _,wb as a,xb as r,yb as x}from"./chunk-XDKT43CW.js";import"./chunk-7ISDSY26.js";import"./chunk-V3SPESMB.js";import"./chunk-BZGM3F3K.js";var F=["frame"];function L(o,n){if(o&1&&(a(0,"mat-dialog-content",3),x(1,"iframe",5,0),r()),o&2){let e=c();s(),_("src",e.url,v)("title",e.data.panel.title)}}function q(o,n){o&1&&(a(0,"mat-dialog-content",4),l(1," This widget has no settings. "),r())}function G(o,n){if(o&1){let e=D();a(0,"mat-dialog-content",6)(1,"fb-screen-class-picker",7),m("changed",function(i){p(e);let N=c();return g(N.setMinScreen(i))}),r()(),a(2,"mat-dialog-actions",8)(3,"button",9),m("click",function(){p(e);let i=c();return g(i.removeWidget())}),a(4,"mat-icon"),l(5,"delete"),r(),l(6," Remove widget "),r(),a(7,"button",10),m("click",function(){p(e);let i=c();return g(i.moveWidget())}),a(8,"mat-icon"),l(9,"open_with"),r(),l(10," Move "),r()()}if(o&2){let e=c();s(),_("value",e.minScreen())}}var B=class o{constructor(n,e,t,i){this.dialogRef=n;this.data=e;this.service=t;this.sanitizer=i}dialogRef;data;service;sanitizer;frame;url;minScreen=h("phone");detach=null;ngOnInit(){let n=this.data.targetInstance,e=n&&this.service.placements().find(i=>i.instanceId===n);e&&this.minScreen.set(z(e));let t=this.data.panel;t&&(this.url=this.sanitizer.bypassSecurityTrustResourceUrl(t.url?this.service.resolveAssetUrl(t.url):"about:blank"))}ngAfterViewInit(){let n=this.data.panel;!n||!this.frame||(this.detach=this.service.attachPanel(this.frame.nativeElement,{extension:this.data.extension,panel:n,targetInstance:this.data.targetInstance,targetWidget:this.data.targetWidget,targetOverlay:this.data.targetOverlay,close:()=>this.dialogRef.close()}))}removeWidget(){this.data.targetInstance&&this.service.removeWidget(this.data.targetInstance),this.dialogRef.close()}setMinScreen(n){this.minScreen.set(n),this.data.targetInstance&&this.service.setMinScreen(this.data.targetInstance,n)}moveWidget(){this.data.targetInstance&&this.service.startMove(this.data.targetInstance),this.dialogRef.close()}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||o)(d(I),d(w),d(Q),d(y))};static \u0275cmp=P({type:o,selectors:[["fb-plotterext-panel-dialog"]],viewQuery:function(e,t){if(e&1&&C(F,5),e&2){let i;b(i=M())&&(t.frame=i.first)}},decls:9,vars:3,consts:[["frame",""],["mat-dialog-title","",1,"pe-panel-header"],["mat-icon-button","","aria-label","Close",3,"click"],[1,"pe-panel-content"],[1,"pe-panel-noconfig"],["sandbox","allow-scripts allow-same-origin allow-forms",3,"src","title"],[1,"pe-panel-screen"],[3,"changed","value"],[1,"pe-panel-actions"],["mat-button","",1,"pe-remove",3,"click"],["mat-button","",3,"click"]],template:function(e,t){e&1&&(a(0,"div",1)(1,"span"),l(2),r(),a(3,"button",2),m("click",function(){return t.dialogRef.close()}),a(4,"mat-icon"),l(5,"close"),r()()(),f(6,L,3,2,"mat-dialog-content",3)(7,q,2,0,"mat-dialog-content",4),f(8,G,11,1)),e&2&&(s(2),S(t.data.panel?t.data.panel.title:t.data.title),s(4),u(t.data.panel?6:7),s(2),u(t.data.targetInstance?8:-1))},dependencies:[k,O,R,E,j,W,A,V,T,U],styles:[".pe-panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-right:8px}.pe-panel-content[_ngcontent-%COMP%]{padding:0;height:60vh}.pe-panel-noconfig[_ngcontent-%COMP%]{padding:16px 24px}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}.pe-panel-screen[_ngcontent-%COMP%]{padding:12px 24px 0}.pe-panel-actions[_ngcontent-%COMP%]{justify-content:flex-start}.pe-remove[_ngcontent-%COMP%]{color:#d32f2f}"]})};export{B as PlotterPanelDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-7ISDSY26.js";import"./chunk-V3SPESMB.js";import"./chunk-BZGM3F3K.js";var o=t.String({minLength:1}),e=t.Unsafe(t.Array(t.Union([t.Number(),t.Undefined()]),{minItems:2,maxItems:3,prefixItems:[t.Number(),t.Number()]})),i=t.Object({position:e,name:t.Optional(t.String()),description:t.Optional(t.String()),href:t.Optional(t.String({pattern:"^/resources/waypoints/[^/]+$"}))}),n=t.Array(i,{minItems:2}),s=t.Object({routeId:o}),a=t.Object({name:t.Optional(t.String()),description:t.Optional(t.String()),points:n}),p=t.Object({routeId:o,points:n}),m=t.Object({routeId:o,name:t.Optional(t.String()),description:t.Optional(t.String()),dialog:t.Optional(t.Boolean())}),c=t.Object({ref:t.String({minLength:1})});export{a as CreateParams,p as ReplaceParams,s as RouteIdParams,m as SaveParams,c as ShowParams};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as M,$a as vr,A as T,Aa as ir,Ab as se,B as b,Ba as lr,C as E,Ca as cr,D as U,Da as dr,E as N,F as O,Fa as ur,G as P,Ga as yr,I as g,Ia as Rr,J as B,Ja as Cr,K as S,Ka as Tr,L,La as br,M as h,Ma as Er,N as A,Na as Ur,O as D,Oa as Nr,P as V,Pa as Or,Q as j,Qa as Pr,Ra as gr,Sa as Br,Ta as Sr,U as k,Ua as Lr,V as v,Va as hr,W as w,Wa as Ar,X as K,Xa as Dr,Y as z,Ya as Vr,Z as F,Za as jr,_ as G,_a as kr,aa as q,ab as wr,ba as W,bb as Kr,ca as H,cb as zr,da as J,db as Fr,ea as Q,eb as Gr,fa as X,fb as Mr,g as e,ga as Y,gb as qr,h as o,ha as Z,hb as Wr,i as t,ia as _,ib as Hr,j as p,ja as $,jb as Jr,ka as rr,kb as Qr,l as m,la as er,lb as Xr,m as f,ma as or,mb as Yr,n as x,nb as Zr,o as n,ob as _r,p as s,pb as $r,q as I,qb as re,r as a,ra as tr,rb as ee,s as i,sa as pr,sb as oe,t as l,ta as mr,tb as te,u as c,ua as fr,ub as pe,v as d,va as xr,vb as me,w as u,wa as nr,wb as fe,x as y,xa as sr,xb as xe,y as R,ya as Ir,yb as ne,z as C,za as ar}from"./chunk-
|
|
1
|
+
import{$ as M,$a as vr,A as T,Aa as ir,Ab as se,B as b,Ba as lr,C as E,Ca as cr,D as U,Da as dr,E as N,F as O,Fa as ur,G as P,Ga as yr,I as g,Ia as Rr,J as B,Ja as Cr,K as S,Ka as Tr,L,La as br,M as h,Ma as Er,N as A,Na as Ur,O as D,Oa as Nr,P as V,Pa as Or,Q as j,Qa as Pr,Ra as gr,Sa as Br,Ta as Sr,U as k,Ua as Lr,V as v,Va as hr,W as w,Wa as Ar,X as K,Xa as Dr,Y as z,Ya as Vr,Z as F,Za as jr,_ as G,_a as kr,aa as q,ab as wr,ba as W,bb as Kr,ca as H,cb as zr,da as J,db as Fr,ea as Q,eb as Gr,fa as X,fb as Mr,g as e,ga as Y,gb as qr,h as o,ha as Z,hb as Wr,i as t,ia as _,ib as Hr,j as p,ja as $,jb as Jr,ka as rr,kb as Qr,l as m,la as er,lb as Xr,m as f,ma as or,mb as Yr,n as x,nb as Zr,o as n,ob as _r,p as s,pb as $r,q as I,qb as re,r as a,ra as tr,rb as ee,s as i,sa as pr,sb as oe,t as l,ta as mr,tb as te,u as c,ua as fr,ub as pe,v as d,va as xr,vb as me,w as u,wa as nr,wb as fe,x as y,xa as sr,xb as xe,y as R,ya as Ir,yb as ne,z as C,za as ar}from"./chunk-V3SPESMB.js";import{e as Ie}from"./chunk-BZGM3F3K.js";var r={};Ie(r,{Any:()=>l,Array:()=>t,BigInt:()=>Q,Boolean:()=>Y,Call:()=>kr,Capitalize:()=>wr,Codec:()=>w,Conditional:()=>Gr,Constructor:()=>m,ConstructorParameters:()=>Mr,Cyclic:()=>U,Decode:()=>K,DecodeBuilder:()=>v,Dependent:()=>S,Encode:()=>z,EncodeBuilder:()=>k,Enum:()=>A,Evaluate:()=>xe,Exclude:()=>qr,Extends:()=>jr,ExtendsResult:()=>Dr,Extract:()=>Wr,Function:()=>x,Generic:()=>a,Identifier:()=>_,Immutable:()=>G,Index:()=>Hr,Infer:()=>g,InstanceType:()=>Jr,Instantiate:()=>fe,Integer:()=>rr,Interface:()=>Vr,Intersect:()=>V,IsAny:()=>c,IsArray:()=>p,IsBigInt:()=>X,IsBoolean:()=>Z,IsCall:()=>vr,IsCodec:()=>F,IsConstructor:()=>f,IsCyclic:()=>N,IsDependent:()=>L,IsEnum:()=>D,IsEnumValue:()=>h,IsFunction:()=>n,IsGeneric:()=>i,IsIdentifier:()=>$,IsImmutable:()=>M,IsInfer:()=>B,IsInteger:()=>er,IsIntersect:()=>j,IsKind:()=>e,IsLiteral:()=>tr,IsNever:()=>u,IsNull:()=>mr,IsNumber:()=>xr,IsObject:()=>T,IsOptional:()=>R,IsParameter:()=>ar,IsReadonly:()=>W,IsRecord:()=>Er,IsRef:()=>I,IsRefine:()=>J,IsRest:()=>Nr,IsSchema:()=>o,IsString:()=>lr,IsSymbol:()=>sr,IsTemplateLiteral:()=>Ar,IsThis:()=>Pr,IsTuple:()=>yr,IsUndefined:()=>Br,IsUnion:()=>dr,IsUnknown:()=>E,IsUnsafe:()=>P,IsVoid:()=>Lr,KeyOf:()=>Qr,Literal:()=>or,Lowercase:()=>Kr,Mapped:()=>Xr,Module:()=>ne,Never:()=>d,NonNullable:()=>Yr,Null:()=>pr,Number:()=>fr,Object:()=>C,Omit:()=>Zr,Optional:()=>y,Parameter:()=>Ir,Parameters:()=>_r,Partial:()=>$r,Pick:()=>re,Readonly:()=>q,ReadonlyObject:()=>ee,ReadonlyType:()=>oe,Record:()=>Rr,RecordKey:()=>Tr,RecordPattern:()=>Cr,RecordValue:()=>br,Ref:()=>s,Refine:()=>H,Required:()=>te,Rest:()=>Ur,ReturnType:()=>pe,Script:()=>se,String:()=>ir,Symbol:()=>nr,TemplateLiteral:()=>hr,This:()=>Or,Tuple:()=>ur,Uncapitalize:()=>zr,Undefined:()=>gr,Union:()=>cr,Unknown:()=>b,Unsafe:()=>O,Uppercase:()=>Fr,Void:()=>Sr,With:()=>me});export{r as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Mb as l,Nb as o,Xb as r,ab as a}from"./chunk-XDKT43CW.js";var d=["mat-internal-form-field",""],f=["*"],g=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=a({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,e){n&2&&r("mdc-form-field--align-end",e.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:d,ngContentSelectors:f,decls:1,vars:0,template:function(n,e){n&1&&(l(),o(0))},styles:[`.mat-internal-form-field {
|
|
2
2
|
-moz-osx-font-smoothing: grayscale;
|
|
3
3
|
-webkit-font-smoothing: antialiased;
|
|
4
4
|
display: inline-flex;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-7PF3OZ2P.js";import{Ha as ce,Ia as pe,
|
|
1
|
+
import{a as S}from"./chunk-7PF3OZ2P.js";import{Ha as ce,Ia as pe,dc as de,l as Q,m as Y,n as Z,o as ee,p as te,v as oe,wa as le,xa as re,y as se}from"./chunk-NMNQPUAT.js";import{a as ie,b as ne,c as ae}from"./chunk-QJ2QMZLA.js";import"./chunk-CI2BDMX2.js";import{a as z,b as q}from"./chunk-LRYGINIX.js";import{j as B,k as j,l as H}from"./chunk-NXLWB5IV.js";import"./chunk-SJSHCZKD.js";import{a as J}from"./chunk-4LLIVPOH.js";import"./chunk-G5EXGCP4.js";import"./chunk-2JAD5V57.js";import"./chunk-BNDXOOFA.js";import{j as N,o as U}from"./chunk-THOUUI2P.js";import{$a as $,Fa as X,Ga as R,Ja as O,La as W,Na as V,Oa as F,Wa as K,Ya as A,i as E,ub as L}from"./chunk-XXJX5CGO.js";import"./chunk-QD2NEHGC.js";import"./chunk-7FANVIZX.js";import"./chunk-HHNV7R6H.js";import"./chunk-MXEXQKUN.js";import{$b as P,Fb as f,Jb as u,Lb as p,Qa as r,Vb as T,Ya as D,Z as y,_b as c,ab as M,ac as G,bc as I,da as m,ea as h,pb as g,qb as x,sb as b,tb as v,ub as w,vb as _,wb as a,xb as s,yb as C}from"./chunk-XDKT43CW.js";import"./chunk-7ISDSY26.js";import"./chunk-V3SPESMB.js";import{g as k}from"./chunk-BZGM3F3K.js";function _e(l,e){if(l&1){let t=f();a(0,"button",11),u("click",function(){m(t);let i=p();return h(i.load())}),a(1,"mat-icon"),c(2,"file_upload"),s(),c(3," \xA0Load "),s()}if(l&2){let t=p();_("disabled",!t.display.loadRoutesOK&&!t.display.loadWaypointsOK&&!t.display.loadTracksOK)}}function ue(l,e){l&1&&(a(0,"div",10)(1,"div")(2,"b"),c(3,"Invalid GPX Data:"),s(),C(4,"br")(5,"br"),a(6,"i"),c(7,"Selected file does not contain GPX data or"),C(8,"br"),c(9," does not correctly implement namespaced <extensions> attributes."),s()()())}function fe(l,e){l&1&&C(0,"mat-progress-bar",12)}function ge(l,e){if(l&1){let t=f();a(0,"div",23)(1,"div",24),c(2),s(),a(3,"div",25)(4,"mat-checkbox",26,0),u("change",function(){let i=m(t).$index,o=T(5),d=p(4);return h(d.checkWpt(o.checked,i))}),s()()()}if(l&2){let t=e.$implicit,n=e.$index,i=p(4);r(2),P(t.name),r(2),_("checked",i.selWaypoints[n])}}function xe(l,e){if(l&1){let t=f();a(0,"div",13)(1,"mat-expansion-panel",16),u("opened",function(){m(t);let i=p(3);return h(i.display.expand.waypoints=!0)})("closed",function(){m(t);let i=p(3);return h(i.display.expand.waypoints=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",18),c(5,"place"),s(),c(6," \xA0\xA0 "),a(7,"b"),c(8,"Waypoints:"),s()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),c(12),s(),a(13,"span",20)(14,"mat-checkbox",21),u("change",function(i){m(t);let o=p(3);return h(o.checkWpt(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),s()()()()(),a(15,"div",22),v(16,ge,6,2,"div",23,b),s()()()}if(l&2){let t=p(3);r(),_("expanded",t.display.expand.waypoints),r(11),I(" (",t.display.selCount.waypoints," of ",t.gpxData.waypoints.length,") "),r(2),_("indeterminate",t.display.someWptChecked)("checked",t.display.allWaypointsChecked)("disabled",t.gpxData.waypoints.length===0),r(2),w(t.gpxData.waypoints)}}function ye(l,e){if(l&1){let t=f();a(0,"div",23)(1,"div",24),c(2),s(),a(3,"div",25)(4,"mat-checkbox",29,1),u("change",function(){let i=m(t).$index,o=T(5),d=p(4);return h(d.checkRte(o.checked,i))}),s()()()}if(l&2){let t=e.$implicit,n=e.$index,i=p(4);r(2),P(t.name),r(2),_("checked",i.selRoutes[n])}}function Ce(l,e){if(l&1){let t=f();a(0,"div",13)(1,"mat-expansion-panel",16),u("opened",function(){m(t);let i=p(3);return h(i.display.expand.routes=!0)})("closed",function(){m(t);let i=p(3);return h(i.display.expand.routes=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",27),c(5,"directions"),s(),c(6," \xA0\xA0 "),a(7,"b"),c(8,"Routes:"),s()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),c(12),s(),a(13,"span",20)(14,"mat-checkbox",28),u("change",function(i){m(t);let o=p(3);return h(o.checkRte(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),s()()()()(),a(15,"div",22),v(16,ye,6,2,"div",23,b),s()()()}if(l&2){let t=p(3);r(),_("expanded",t.display.expand.routes),r(11),I(" (",t.display.selCount.routes," of ",t.gpxData.routes.length,") "),r(2),_("indeterminate",t.display.someRteChecked)("checked",t.display.allRoutesChecked)("disabled",t.gpxData.routes.length==0),r(2),w(t.gpxData.routes)}}function ke(l,e){if(l&1){let t=f();a(0,"div",23)(1,"div",24),c(2),s(),a(3,"div",25)(4,"mat-checkbox",32,2),u("change",function(){let i=m(t).$index,o=T(5),d=p(4);return h(d.checkTrk(o.checked,i))}),s()()()}if(l&2){let t=e.$implicit,n=e.$index,i=p(4);r(2),P(t.name),r(2),_("checked",i.selTracks[n])}}function be(l,e){if(l&1){let t=f();a(0,"div",13)(1,"mat-expansion-panel",16),u("opened",function(){m(t);let i=p(3);return h(i.display.expand.tracks=!0)})("closed",function(){m(t);let i=p(3);return h(i.display.expand.tracks=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",30),c(5,"show_chart"),s(),c(6," \xA0\xA0 "),a(7,"b"),c(8,"Tracks:"),s()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),c(12),s(),a(13,"span",20)(14,"mat-checkbox",31),u("change",function(i){m(t);let o=p(3);return h(o.checkTrk(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),s()()()()(),a(15,"div",22),v(16,ke,6,2,"div",23,b),s()()()}if(l&2){let t=p(3);r(),_("expanded",t.display.expand.tracks),r(11),I(" (",t.display.selCount.tracks," of ",t.gpxData.tracks.length,") "),r(2),_("indeterminate",t.display.someTrkChecked)("checked",t.display.allTracksChecked)("disabled",t.gpxData.tracks.length==0),r(2),w(t.gpxData.tracks)}}function ve(l,e){if(l&1&&(a(0,"div",13)(1,"div",14)(2,"div"),c(3,"File:"),s(),a(4,"div",15),c(5),s()(),C(6,"mat-divider"),s(),g(7,xe,18,6,"div",13),g(8,Ce,18,6,"div",13),g(9,be,18,6,"div",13)),l&2){let t=p(2);r(5),G(" ",t.data.fileName," "),r(2),x(t.gpxData.waypoints.length!=0?7:-1),r(),x(t.gpxData.routes.length!=0?8:-1),r(),x(t.gpxData.tracks.length!=0&&t.app.tracksAvailable()?9:-1)}}function we(l,e){if(l&1&&(a(0,"div",10),g(1,fe,1,0,"mat-progress-bar",12)(2,ve,10,4),s()),l&2){let t=p();r(),x(t.app.sIsFetching()?1:2)}}var me=class l{constructor(e){this.data=e}data;gpxData={name:"",routes:[],waypoints:[],tracks:[]};selRoutes=[];selWaypoints=[];selTracks=[];display={notValid:!1,allRoutesChecked:!1,allWaypointsChecked:!1,allTracksChecked:!1,someWptChecked:!1,someRteChecked:!1,someTrkChecked:!1,loadRoutesOK:!1,loadWaypointsOK:!1,loadTracksOK:!1,routeViewer:!1,selCount:{routes:0,waypoints:0,tracks:0},expand:{routes:!1,waypoints:!1,tracks:!1}};errorCount=0;subCount=0;gpx=new S;app=y(de);dialogRef=y(X);skres=y(re);signalk=y(oe);symbols=y(se);ngOnInit(){this.data.fileData=this.data.fileData||null,this.parseGPXData(this.data.fileData)}ngOnDestroy(){this.clear()}load(){this.uploadToServer({rte:{selected:this.selRoutes},wpt:{selected:this.selWaypoints},trk:{selected:this.selTracks}})}parseGPXData(e){return k(this,null,function*(){this.display.allRoutesChecked=!1,this.display.loadRoutesOK=!1,this.selRoutes=[],this.display.allWaypointsChecked=!1,this.display.loadWaypointsOK=!1,this.selWaypoints=[],this.display.allTracksChecked=!1,this.display.loadTracksOK=!1,this.selTracks=[],this.display.selCount={routes:0,waypoints:0,tracks:0},this.display.expand={routes:!1,waypoints:!1,tracks:!1},this.display.notValid=!1;let t=yield this.parseFileData(e);if(!t){console.warn(`Selected file does not contain GPX data or
|
|
2
2
|
does not correctly implement namespaced <extensions> attributes`,"Invalid GPX Data:"),this.display.notValid=!0;return}this.gpxData=t,this.gpxData.routes.forEach(()=>{this.selRoutes.push(!1)}),this.selRoutes.length===1&&(this.selRoutes[0]=!0,this.display.allRoutesChecked=!0,this.display.expand.routes=!0,this.display.loadRoutesOK=!0,this.display.selCount.routes=1),this.gpxData.waypoints.forEach(()=>{this.selWaypoints.push(!1)}),this.selWaypoints.length===1&&(this.selWaypoints[0]=!0,this.display.allWaypointsChecked=!0,this.display.expand.waypoints=!0,this.display.loadWaypointsOK=!0,this.display.selCount.waypoints=1),this.gpxData.tracks.forEach(()=>{this.selTracks.push(!1)}),this.selTracks.length===1&&(this.selTracks[0]=!0,this.display.allTracksChecked=!0,this.display.expand.tracks=!0,this.display.loadTracksOK=!0,this.display.selCount.tracks=1)})}checkRte(e,t=-1){let n=0;if(t!==-1){this.selRoutes[t]=e,this.display.loadRoutesOK=e;for(let i of this.selRoutes)i&&n++;this.display.loadRoutesOK=n!==0,this.display.selCount.routes=n,this.display.allRoutesChecked=n===this.selRoutes.length}else{for(let i=0;i<this.selRoutes.length;i++)this.selRoutes[i]=e,this.display.loadRoutesOK=e,this.display.allRoutesChecked=e;this.display.selCount.routes=e?this.selRoutes.length:0}this.display.someRteChecked=!(this.display.allRoutesChecked||n===0)}checkWpt(e,t=-1){let n=0;if(t!==-1){this.selWaypoints[t]=e,this.display.loadWaypointsOK=e;for(let i of this.selWaypoints)i&&n++;this.display.loadWaypointsOK=n!==0,this.display.selCount.waypoints=n,this.display.allWaypointsChecked=n===this.selWaypoints.length}else{for(let i=0;i<this.selWaypoints.length;i++)this.selWaypoints[i]=e,this.display.loadWaypointsOK=e,this.display.allWaypointsChecked=e;this.display.selCount.waypoints=e?this.selWaypoints.length:0}this.display.someWptChecked=!(this.display.allWaypointsChecked||n===0)}checkTrk(e,t=-1){let n=0;if(t!==-1){this.selTracks[t]=e,this.display.loadTracksOK=e;for(let i of this.selTracks)i&&n++;this.display.loadTracksOK=n!==0,this.display.selCount.tracks=n,this.display.allTracksChecked=n===this.selTracks.length}else{for(let i=0;i<this.selTracks.length;i++)this.selTracks[i]=e,this.display.loadTracksOK=e,this.display.allTracksChecked=e;this.display.selCount.tracks=e?this.selTracks.length:0}this.display.someTrkChecked=!(this.display.allTracksChecked||n===0)}clear(){this.gpx=new S}parseFileData(e){return k(this,null,function*(){let t={name:"",routes:[],waypoints:[],tracks:[]};if(this.gpx=new S,this.app.sIsFetching.set(!0),!(yield this.gpx.parse(e)))return this.app.sIsFetching.set(!1),null;let n=1;return this.gpx.rte.forEach(i=>{t.routes.push({name:i.name!==""?i.name:`Rte: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:"",wptcount:i.rtept.length}),n++}),n=1,this.gpx.wpt.forEach(i=>{t.waypoints.push({name:i.name?i.name:`Wpt: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:""}),n++}),n=1,this.gpx.trk.forEach(i=>{t.tracks.push({name:i.name?i.name:`Trk: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:""}),n++}),this.app.sIsFetching.set(!1),t})}uploadToServer(e){return k(this,null,function*(){this.app.sIsFetching.set(!0),this.errorCount=0,this.subCount=0;for(let n=0;n<e.rte.selected.length;n++)e.rte.selected[n]&&this.transformRoute(this.gpx.rte[n]);for(let n=0;n<e.wpt.selected.length;n++)e.wpt.selected[n]&&this.transformWaypoint(this.gpx.wpt[n]);let t=[];for(let n=0;n<e.trk.selected.length;n++)if(e.trk.selected[n]){let i=this.gpx.trk[n],o=this.transformTrack(i);this.subCount++;try{let d=yield this.skres.importTrack(o.feature,le((i.trkseg??[]).map(he=>he.trkpt)));this.subCount--,t.push(d),this.app.debug("SUCCESS: Track added."),this.checkComplete()}catch(d){this.errorCount++,this.subCount--,this.logError(d),this.checkComplete()}}t.length!==0&&this.skres.trackAddFromServer(t)})}errorList=[];logError(e){if(e instanceof E){let t=e.error?e.error.message:e.message;this.errorList.push({status:e.status,message:t})}else this.errorList.push({status:void 0,message:e instanceof Error?e.message:String(e)})}checkComplete(){this.subCount===0&&(this.app.sIsFetching.set(!1),this.app.saveConfig(),this.dialogRef.close({errCount:this.errorCount,errList:this.errorList}),this.app.debug(`GPXLoad: complete: ${this.errorCount}`))}transformRoute(e){let t=this.skres.buildRoute(e.rtept.map(o=>[o.lon,o.lat])),n=t[1];n.name=e.name??"",n.description=e.desc??"";let i=n.feature.properties??={};e.cmt&&(i.cmt=e.cmt),e.src&&(i.src=e.src),e.number&&(i.number=e.number),e.type&&(i.type=e.type),i.coordinatesMeta=[],i.coordinatesMeta=e.rtept.map(o=>{let d={name:o.name??""};return o.cmt&&(d.description=o.cmt),d}),this.subCount++,this.signalk.api.put(this.app.skApiVersion,`/resources/routes/${t[0]}`,t[1]).subscribe(o=>{this.subCount--,Math.floor(o.statusCode/100)===2?(this.app.debug("SUCCESS: Route added."),this.skres.selectionAdd("routes",t[0])):this.errorCount++,this.checkComplete()},o=>{this.errorCount++,this.subCount--,this.logError(o),this.checkComplete()})}transformWaypoint(e){let t=this.skres.buildWaypoint([e.lon,e.lat]),n=t[1],i=n.feature.properties??={};if(e.ele&&n.feature.geometry.coordinates.push(e.ele),e.name&&e.name.length!==0&&(n.name=e.name),e.desc&&e.desc.length!==0&&(n.description=e.desc),e.type&&(n.type=e.type,i.type=e.type),e.cmt&&(i.cmt=e.cmt),e.src&&(i.src=e.src),e.sym){i.sym=e.sym;let o=this.symbols.resolveGpxSym(e.sym);o&&(n.type="waypoint",i.skIcon=o)}this.subCount++,this.signalk.api.put(this.app.skApiVersion,`/resources/waypoints/${t[0]}`,t[1]).subscribe(o=>{this.subCount--,Math.floor(o.statusCode/100)===2?(this.app.debug("SUCCESS: Waypoint added."),this.skres.selectionAdd("waypoints",t[0])):this.errorCount++,this.checkComplete()},o=>{this.errorCount++,this.subCount--,this.logError(o),this.checkComplete()})}transformTrack(e){let t={},n={feature:{type:"Feature",geometry:{type:"MultiLineString",coordinates:[]},properties:t,id:""}};return e.trkseg&&e.trkseg.forEach(i=>{let o=[];i.trkpt.forEach(d=>{o.push([d.lon,d.lat])}),n.feature.geometry.coordinates.push(o)}),e.name&&e.name.length!==0?t.name=e.name:t.name=`gpxtrk #${Math.random().toString().slice(-5)}`,e.desc&&e.desc.length!==0&&(t.description=e.desc),e.cmt&&(t.cmt=e.cmt),e.src&&(t.src=e.src),e.type&&(t.type=e.type),n}static \u0275fac=function(t){return new(t||l)(D(R))};static \u0275cmp=M({type:l,selectors:[["gpxload-dialog"]],decls:13,vars:3,consts:[["wval",""],["rval",""],["tval",""],[1,"gpxload-dialog"],[2,"background-color","transparent"],[2,"display","flex","width","100%"],["mat-raised-button","","matTooltip","Load selected resources","matTooltipPosition","right",2,"width","85px",3,"disabled"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click","disabled"],["mat-dialog-content",""],["mat-raised-button","","matTooltip","Load selected resources","matTooltipPosition","right",2,"width","85px",3,"click","disabled"],["mode","indeterminate"],[1,"card-group"],[2,"display","flex"],[2,"flex","1 1 auto","padding-left","10px","overflow","hidden","display","-webkit-box","-webkit-box-orient","vertical","-webkit-line-clamp","1","line-clamp","1","text-overflow","ellipsis"],[3,"opened","closed","expanded"],[2,"padding","0 12px"],[1,"icon-waypoint"],[1,"pnlSelectedItems"],[1,"pnlSelect"],["matTooltip","Select all Waypoints","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],[1,"list-container-scrollable"],[1,"item-row"],[1,"name"],[1,"check"],["matTooltip","Select Waypoint","matTooltipPosition","below",3,"change","checked"],[1,"icon-route"],["matTooltip","Select all Routes","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],["matTooltip","Select this Route","matTooltipPosition","below",3,"change","checked"],[1,"icon-track"],["matTooltip","Select all Tracks","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],["matTooltip","Select this Track","matTooltipPosition","below",3,"change","checked"]],template:function(t,n){t&1&&(a(0,"div",3)(1,"mat-toolbar",4)(2,"div",5)(3,"div"),g(4,_e,4,1,"button",6),s(),a(5,"div",7),c(6,"Import GPX"),s(),a(7,"div",8)(8,"button",9),u("click",function(){return n.dialogRef.close(-1)}),a(9,"mat-icon"),c(10,"close"),s()()()()(),g(11,ue,10,0,"div",10)(12,we,3,1,"div",10),s()),t&2&&(r(4),x(n.app.sIsFetching()?-1:4),r(4),_("disabled",n.app.sIsFetching()),r(3),x(n.display.notValid?11:12))},dependencies:[ne,ie,pe,ce,W,O,F,V,$,A,K,B,N,U,q,z,te,Q,Y,ee,Z,H,j,ae,J,L],styles:[".gpxload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0 12px 6px}.card-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}.item-row[_ngcontent-%COMP%]{display:flex;width:100%;padding:2px 0}.item-row[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-overflow:ellipsis;line-height:2.5em}.item-row[_ngcontent-%COMP%] .check[_ngcontent-%COMP%]{text-align:right;padding-right:15px}.pnlSelectedItems[_ngcontent-%COMP%]{display:none;line-height:2.9em}.pnlSelect[_ngcontent-%COMP%]{flex:1 1 auto;padding-left:3px;padding-right:3px;text-align:right}.txtSelect[_ngcontent-%COMP%]{display:none}button[_ngcontent-%COMP%]{min-width:unset;padding:unset}@media only screen and (min-width:400px){.pnlSelectedItems[_ngcontent-%COMP%]{display:inline}}@media only screen and (min-width:475px){.pnlSelectedItems[_ngcontent-%COMP%]{display:inline;line-height:2.9em}.txtSelect[_ngcontent-%COMP%]{display:inline}.pnlSelect[_ngcontent-%COMP%]{flex:1 1 auto;padding-left:20px;padding-right:15px;text-align:right}button[_ngcontent-%COMP%]{min-width:inherit;padding:inherit}}"]})};export{me as GPXImportDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as Z,
|
|
1
|
+
import{N as Z,dc as $,v as Y}from"./chunk-NMNQPUAT.js";import{a as q,b as Q,c as X}from"./chunk-QJ2QMZLA.js";import"./chunk-CI2BDMX2.js";import"./chunk-LRYGINIX.js";import{j as B,l as N}from"./chunk-NXLWB5IV.js";import{a as z,b as G,d as J}from"./chunk-SJSHCZKD.js";import{a as U}from"./chunk-4LLIVPOH.js";import"./chunk-G5EXGCP4.js";import"./chunk-2JAD5V57.js";import"./chunk-BNDXOOFA.js";import{b as K,i as W,o as H}from"./chunk-THOUUI2P.js";import{$a as j,Fa as P,Ga as R,Ja as k,La as T,Na as V,Oa as A,Wa as F,Ya as O,ub as L}from"./chunk-XXJX5CGO.js";import"./chunk-QD2NEHGC.js";import"./chunk-7FANVIZX.js";import"./chunk-HHNV7R6H.js";import"./chunk-MXEXQKUN.js";import{$b as w,Fb as b,Jb as f,Lb as c,Qa as r,Ya as m,_b as n,ab as v,ac as y,da as d,dc as D,ea as p,ec as S,fc as E,pb as u,qb as g,sb as C,tb as M,ub as I,vb as _,wb as i,xb as t,yb as h}from"./chunk-XDKT43CW.js";import"./chunk-7ISDSY26.js";import"./chunk-V3SPESMB.js";import"./chunk-BZGM3F3K.js";function te(a,o){if(a&1&&(i(0,"mat-option",10),n(1),t()),a&2){let e=o.$implicit;_("value",e),r(),w(e)}}function ie(a,o){if(a&1){let e=b();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}a&2&&(r(),_("astext",!0))}function ne(a,o){if(a&1){let e=b();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),h(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),h(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function ae(a,o){a&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function oe(a,o){if(a&1){let e=b();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),h(27,"br"),n(28,"\xA0 "),u(29,ae,2,0,"div",16),t()()()}if(a&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),y(" ",e.source.name," "),r(4),y(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class a{constructor(o,e,s,l){this.app=o;this.skclient=e;this.dialogRef=s;this.data=l}app;skclient;dialogRef;data;resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(o=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(o).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(o){this.source=o,this.source.type="Unknown";try{let e=JSON.parse(o.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||a)(m($),m(Y),m(P),m(R))};static \u0275cmp=v({type:a,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,oe,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,H,W,K,J,G,z,X,U,A,V,B,j,O,F,Q,q,N,T,k,Z],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as s,xa as d}from"./chunk-
|
|
1
|
+
import{C as s,xa as d}from"./chunk-XXJX5CGO.js";import{W as a,Xb as i,ab as c,bb as r}from"./chunk-XDKT43CW.js";var p=(()=>{class e{_animationsDisabled=d();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=c({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,o){t&2&&i("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,o){},styles:[`.mat-pseudo-checkbox {
|
|
2
2
|
border-radius: 2px;
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
display: inline-block;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-7ISDSY26.js";import"./chunk-V3SPESMB.js";import"./chunk-BZGM3F3K.js";var n=t.Object({type:t.String({minLength:1}),ids:t.Array(t.String({minLength:1}),{minItems:1})});export{n as DisplayParams};
|