@signalk/freeboard-sk 3.0.0-beta.1 → 3.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/package.json +1 -1
  2. package/public/3rdpartylicenses.txt +66 -66
  3. package/public/assets/img/wind/barbs/weatherStation-10.svg +4 -0
  4. package/public/assets/img/wind/barbs/weatherStation-15.svg +5 -0
  5. package/public/assets/img/wind/barbs/weatherStation-20.svg +5 -0
  6. package/public/assets/img/wind/barbs/weatherStation-25.svg +6 -0
  7. package/public/assets/img/wind/barbs/weatherStation-30.svg +6 -0
  8. package/public/assets/img/wind/barbs/weatherStation-35.svg +7 -0
  9. package/public/assets/img/wind/barbs/weatherStation-40.svg +7 -0
  10. package/public/assets/img/wind/barbs/weatherStation-45.svg +8 -0
  11. package/public/assets/img/wind/barbs/weatherStation-5.svg +4 -0
  12. package/public/assets/img/wind/barbs/weatherStation-50.svg +4 -0
  13. package/public/assets/img/wind/barbs/weatherStation-55.svg +5 -0
  14. package/public/assets/img/wind/barbs/weatherStation-60.svg +5 -0
  15. package/public/assets/img/wind/barbs/weatherStation-65.svg +6 -0
  16. package/public/assets/img/wind/barbs/weatherStation-70.svg +6 -0
  17. package/public/assets/img/wind/barbs/weatherStation-75.svg +7 -0
  18. package/public/{chunk-QNWLXTD7.js → chunk-25YKCA66.js} +1 -1
  19. package/public/{chunk-EU3YXT24.js → chunk-6OLNESWL.js} +1 -1
  20. package/public/chunk-74KWRC7R.js +1 -0
  21. package/public/{chunk-WRR2LL5R.js → chunk-C5M5BKON.js} +1 -1
  22. package/public/chunk-FUWK7K44.js +1 -0
  23. package/public/{chunk-CSNMIJA3.js → chunk-GB3EVGP6.js} +1 -1
  24. package/public/{chunk-WWDDTAFW.js → chunk-GLOI4RSR.js} +1 -1
  25. package/public/{chunk-WPZCQDE4.js → chunk-OFYJGX2H.js} +1 -1
  26. package/public/{chunk-RS6VYSOP.js → chunk-OT726FHN.js} +1 -1
  27. package/public/{chunk-2GXI757Z.js → chunk-PD24DQFJ.js} +1 -1
  28. package/public/{chunk-7OJ7YZPE.js → chunk-PEC6ZGZT.js} +1 -1
  29. package/public/{chunk-NM5IDVR6.js → chunk-QYCAVSMC.js} +1 -1
  30. package/public/chunk-T6YD46E6.js +3874 -0
  31. package/public/{chunk-ILSUTX3X.js → chunk-UC6YVGPV.js} +1 -1
  32. package/public/{chunk-NMXQ543J.js → chunk-VSRZABG4.js} +1 -1
  33. package/public/chunk-X2YCOXS3.js +1 -0
  34. package/public/{chunk-P5D5HOAL.js → chunk-XKSYGWTR.js} +15 -15
  35. package/public/index.html +1 -1
  36. package/public/{main-IKMWD43W.js → main-2FKZYFHY.js} +6 -6
  37. package/public/worker-4MQD26BS.js +3 -0
  38. package/public/chunk-A626ZBXE.js +0 -3871
  39. package/public/chunk-JJ245XTQ.js +0 -1
  40. package/public/chunk-VUZVHRKQ.js +0 -1
  41. package/public/chunk-XP3I253N.js +0 -1
  42. package/public/worker-5T47RUMR.js +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalk/freeboard-sk",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.3",
4
4
  "description": "Openlayers chart plotter implementation for Signal K",
5
5
  "keywords": [
6
6
  "signalk-webapp",
@@ -794,6 +794,72 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
794
794
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
795
795
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
796
796
 
797
+ --------------------------------------------------------------------------------
798
+ Package: @angular/core
799
+ License: "MIT"
800
+
801
+ The MIT License
802
+
803
+ Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
804
+
805
+ Permission is hereby granted, free of charge, to any person obtaining a copy
806
+ of this software and associated documentation files (the "Software"), to deal
807
+ in the Software without restriction, including without limitation the rights
808
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
809
+ copies of the Software, and to permit persons to whom the Software is
810
+ furnished to do so, subject to the following conditions:
811
+
812
+ The above copyright notice and this permission notice shall be included in
813
+ all copies or substantial portions of the Software.
814
+
815
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
816
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
817
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
818
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
819
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
820
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
821
+ THE SOFTWARE.
822
+
823
+ --------------------------------------------------------------------------------
824
+ Package: uuid
825
+ License: "MIT"
826
+
827
+ The MIT License (MIT)
828
+
829
+ Copyright (c) 2010-2020 Robert Kieffer and other contributors
830
+
831
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
832
+
833
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
834
+
835
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
836
+
837
+ --------------------------------------------------------------------------------
838
+ Package: signalk-plotterext-bus
839
+ License: "MIT"
840
+
841
+ MIT License
842
+
843
+ Copyright (c) 2026 Joel Kozikowski
844
+
845
+ Permission is hereby granted, free of charge, to any person obtaining a copy
846
+ of this software and associated documentation files (the "Software"), to deal
847
+ in the Software without restriction, including without limitation the rights
848
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
849
+ copies of the Software, and to permit persons to whom the Software is
850
+ furnished to do so, subject to the following conditions:
851
+
852
+ The above copyright notice and this permission notice shall be included in all
853
+ copies or substantial portions of the Software.
854
+
855
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
856
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
857
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
858
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
859
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
860
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
861
+ SOFTWARE.
862
+
797
863
  --------------------------------------------------------------------------------
798
864
  Package: @kolkov/angular-editor
799
865
  License: "MIT"
@@ -986,72 +1052,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
986
1052
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
987
1053
  SOFTWARE.
988
1054
 
989
- --------------------------------------------------------------------------------
990
- Package: uuid
991
- License: "MIT"
992
-
993
- The MIT License (MIT)
994
-
995
- Copyright (c) 2010-2020 Robert Kieffer and other contributors
996
-
997
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
998
-
999
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1000
-
1001
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1002
-
1003
- --------------------------------------------------------------------------------
1004
- Package: signalk-plotterext-bus
1005
- License: "MIT"
1006
-
1007
- MIT License
1008
-
1009
- Copyright (c) 2026 Joel Kozikowski
1010
-
1011
- Permission is hereby granted, free of charge, to any person obtaining a copy
1012
- of this software and associated documentation files (the "Software"), to deal
1013
- in the Software without restriction, including without limitation the rights
1014
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1015
- copies of the Software, and to permit persons to whom the Software is
1016
- furnished to do so, subject to the following conditions:
1017
-
1018
- The above copyright notice and this permission notice shall be included in all
1019
- copies or substantial portions of the Software.
1020
-
1021
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1022
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1023
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1024
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1025
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1026
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1027
- SOFTWARE.
1028
-
1029
- --------------------------------------------------------------------------------
1030
- Package: @angular/core
1031
- License: "MIT"
1032
-
1033
- The MIT License
1034
-
1035
- Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
1036
-
1037
- Permission is hereby granted, free of charge, to any person obtaining a copy
1038
- of this software and associated documentation files (the "Software"), to deal
1039
- in the Software without restriction, including without limitation the rights
1040
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1041
- copies of the Software, and to permit persons to whom the Software is
1042
- furnished to do so, subject to the following conditions:
1043
-
1044
- The above copyright notice and this permission notice shall be included in
1045
- all copies or substantial portions of the Software.
1046
-
1047
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1048
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1049
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1050
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1051
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1052
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1053
- THE SOFTWARE.
1054
-
1055
1055
  --------------------------------------------------------------------------------
1056
1056
  Package: rxjs
1057
1057
  License: "Apache-2.0"
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="8" x2="2" y2="2" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="8" x2="2" y2="2" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ <line x1="13" y1="13" x2="7.5" y2="10" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="8" x2="2" y2="2" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ <line x1="13" y1="13" x2="2" y2="7" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="8" x2="2" y2="2" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ <line x1="13" y1="13" x2="2" y2="7" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ <line x1="13" y1="18" x2="7.5" y2="15" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="8" x2="2" y2="2" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ <line x1="13" y1="13" x2="2" y2="7" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ <line x1="13" y1="18" x2="2" y2="12" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
6
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="8" x2="2" y2="2" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ <line x1="13" y1="13" x2="2" y2="7" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ <line x1="13" y1="18" x2="2" y2="12" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
6
+ <line x1="13" y1="23" x2="7.5" y2="20" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
7
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="8" x2="2" y2="2" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ <line x1="13" y1="13" x2="2" y2="7" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ <line x1="13" y1="18" x2="2" y2="12" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
6
+ <line x1="13" y1="23" x2="2" y2="17" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
7
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="8" x2="2" y2="2" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ <line x1="13" y1="13" x2="2" y2="7" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ <line x1="13" y1="18" x2="2" y2="12" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
6
+ <line x1="13" y1="23" x2="2" y2="17" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
7
+ <line x1="13" y1="28" x2="7.5" y2="25" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
8
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <line x1="13" y1="13" x2="7.5" y2="10" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <path d="M 13 8 L 1 9 L 13 16 Z" fill="#808000"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <path d="M 13 8 L 1 9 L 13 16 Z" fill="#808000"/>
4
+ <line x1="13" y1="20" x2="7.5" y2="17" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <path d="M 13 8 L 1 9 L 13 16 Z" fill="#808000"/>
4
+ <line x1="13" y1="20" x2="2" y2="14" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <path d="M 13 8 L 1 9 L 13 16 Z" fill="#808000"/>
4
+ <line x1="13" y1="20" x2="2" y2="14" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ <line x1="13" y1="25" x2="7.5" y2="22" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <path d="M 13 8 L 1 9 L 13 16 Z" fill="#808000"/>
4
+ <line x1="13" y1="20" x2="2" y2="14" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ <line x1="13" y1="25" x2="2" y2="19" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
6
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="26" height="44" viewBox="0 0 26 44">
2
+ <line x1="13" y1="42" x2="13" y2="8" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
3
+ <path d="M 13 8 L 1 9 L 13 16 Z" fill="#808000"/>
4
+ <line x1="13" y1="20" x2="2" y2="14" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
5
+ <line x1="13" y1="25" x2="2" y2="19" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
6
+ <line x1="13" y1="30" x2="7.5" y2="27" stroke="#808000" stroke-width="2" stroke-linecap="round"/>
7
+ </svg>
@@ -1,4 +1,4 @@
1
- import{a as Qt,c as qt,i as $t,j as Ut,l as Ne,n as Gt,o as Wt}from"./chunk-7OJ7YZPE.js";import{$a as g,$b as Ge,Ad as De,Ba as R,Bc as _e,Bd as de,Ca as k,Cc as We,Cd as Se,Da as x,Dc as Fe,Dd as le,E as re,Eb as Ue,Ec as St,F as dt,Fa as B,G as F,Ga as L,Gb as Oe,Ha as N,Hc as Me,I as lt,Ia as h,Ic as Xe,Id as Be,J as Ee,Ja as c,Jb as yt,Jc as wt,K as Q,Ka as o,Kd as Le,L as q,La as C,Ld as Bt,Ma as qe,Mb as Ct,Mc as It,Md as Lt,N as d,Na as $e,Nd as Z,O as A,P as O,Q as mt,Qc as Tt,Qd as ie,R as pt,Ra as V,S as ve,Sa as X,Sc as Et,Sd as K,T as ht,Ta as ee,Tb as ne,Td as Y,Ua as u,Ud as Nt,V as $,Vb as I,W as he,Wa as p,Wb as ze,Wd as Vt,X as T,Xa as P,Ya as D,Yc as At,Yd as jt,Z as Ae,Za as be,_ as ke,_a as j,_c as Ot,a as ct,aa as U,ab as v,ad as zt,ba as xe,c as z,da as ut,ea as He,eb as S,fb as gt,gb as w,gd as Rt,h as Te,ha as s,ia as Qe,ib as te,ic as Re,ja as J,jb as m,je as Ht,k as st,kb as E,kc as Mt,la as bt,lb as y,mc as Pe,nd as Pt,oa as _t,pa as b,pd as oe,qa as G,qc as Dt,ra as _,rd as Ft,sc as ae,ta as W,tb as vt,ua as ue,ub as ye,va as ft,wb as Ce,xb as kt,xd as ce,yb as xt,yd as se}from"./chunk-P5D5HOAL.js";import{a as pe}from"./chunk-EQVTEUXC.js";var yn=["*"],Cn=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],Mn=[`mat-card-title, mat-card-subtitle,
1
+ import{a as Qt,c as qt,i as $t,j as Ut,l as Ne,n as Gt,o as Wt}from"./chunk-PEC6ZGZT.js";import{$ as ke,$a as j,$c as Ot,Bd as De,Ca as R,Cc as _e,Cd as de,Da as k,Dc as We,Dd as Se,Ea as x,Ec as Fe,Ed as le,F as re,Fb as Ue,Fc as St,G as dt,Ga as B,H as F,Ha as L,Hb as Oe,Ia as N,Ic as Me,J as lt,Ja as h,Jc as Xe,Jd as Be,K as Ee,Ka as c,Kb as yt,Kc as wt,L as Q,La as o,Ld as Le,M as q,Ma as C,Md as Bt,Na as qe,Nb as Ct,Nc as It,Nd as Lt,O as d,Oa as $e,Od as Z,P as A,Q as O,R as mt,Rc as Tt,Rd as ie,S as pt,Sa as V,T as ve,Ta as X,Tc as Et,Td as K,U as ht,Ua as ee,Ub as ne,Ud as Y,Va as u,Vd as Nt,W as $,Wb as I,X as he,Xa as p,Xb as ze,Xd as Vt,Y as T,Ya as P,Za as D,Zc as At,Zd as jt,_ as Ae,_a as be,a as ct,ab as g,ac as Ge,ba as U,bb as v,bd as zt,c as z,ca as xe,ea as ut,fa as He,fb as S,gb as gt,h as Te,hb as w,hd as Rt,ia as s,ja as Qe,jb as te,jc as Re,k as st,ka as J,kb as m,ke as Ht,lb as E,lc as Mt,ma as bt,mb as y,nc as Pe,od as Pt,pa as _t,qa as b,qd as oe,ra as G,rc as Dt,sa as _,sd as Ft,tc as ae,ua as W,ub as vt,va as ue,vb as ye,wa as ft,xb as Ce,yb as kt,yd as ce,zb as xt,zd as se}from"./chunk-XKSYGWTR.js";import{a as pe}from"./chunk-EQVTEUXC.js";var yn=["*"],Cn=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],Mn=[`mat-card-title, mat-card-subtitle,
2
2
  [mat-card-title], [mat-card-subtitle],
3
3
  [matCardTitle], [matCardSubtitle]`,`[mat-card-image], [matCardImage],
4
4
  [mat-card-sm-image], [matCardImageSmall],
@@ -1,4 +1,4 @@
1
- import{a as Ra,c as za,d as Wa}from"./chunk-NM5IDVR6.js";import{c as ja,e as Ka,f as Ga,g as Tt,h as st,i as qa,j as lt,k as Qa,l as Ua,m as Xa,n as $a,o as Za}from"./chunk-7OJ7YZPE.js";import{$a as v,$c as fa,$d as Et,Ad as Aa,Ba as M,Bc as le,Bd as Sa,Ca as B,Cc as Ye,Cd as xa,Da as H,Dd as Ea,E as ue,F as ut,Fa as Ne,Fb as ra,G as R,Ga as J,Ha as ee,Hc as Ct,I as _t,Ia as u,Ic as da,Id as Ia,J as De,Ja as d,Jb as Ze,Jc as O,K as _e,Ka as c,Kc as ca,Kd as nt,L as S,La as k,Lc as Me,Ld as St,M as Jt,Ma as F,Mc as pa,Md as Ta,N as s,Na as L,Nd as Be,O as b,Oa as ia,Oc as tt,P as y,Pc as ha,Q as ge,Qc as ma,Qd as rt,R as gt,Rc as ua,S as X,Sa as te,Sc as at,Sd as Va,T as Ge,Ta as ae,Tb as V,Tc as wt,Td as Oa,Ua as g,Uc as Mt,Ud as Fa,V as h,Va as Qe,Vb as A,Vc as it,Vd as Pa,W as Pe,Wa as m,Wb as yt,Wd as La,X as f,Xa as ye,Xd as ot,Ya as ie,Yc as _a,Z as $,Za as Ue,Zc as ga,Zd as xt,_ as ea,_a as N,_c as ke,_d as Na,a as K,aa as P,ab as D,be as Ya,c as C,eb as Xe,ee as It,fb as $e,fd as ba,gb as x,gd as ya,h as je,ha as l,hd as va,he as Ba,ia as Ce,ib as oe,ic as Je,jb as p,je as Ha,k as mt,kb as E,kc as vt,la as fe,lb as se,lc as oa,ld as kt,mb as bt,mc as ve,md as Da,n as Zt,na as ta,nb as G,oa as qe,ob as q,oc as Dt,pa as w,pb as Q,pd as de,qa as be,qc as ne,qd as Ca,r as re,ra as Z,s as Fe,sc as we,ta as ft,ua as Le,ub as U,uc as sa,ud as wa,vb as na,vd as At,wa as aa,wc as la,wd as Ma,x as Ke,xd as ka,zc as et}from"./chunk-P5D5HOAL.js";import{a as me,b as $t}from"./chunk-EQVTEUXC.js";var ki=["text"],Ai=[[["mat-icon"]],"*"],Si=["mat-icon","*"];function xi(n,o){if(n&1&&k(0,"mat-pseudo-checkbox",1),n&2){let e=m();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function Ei(n,o){if(n&1&&k(0,"mat-pseudo-checkbox",3),n&2){let e=m();u("disabled",e.disabled)}}function Ii(n,o){if(n&1&&(d(0,"span",4),p(1),c()),n&2){let e=m();l(),se("(",e.group.label,")")}}var Ot=new S("MAT_OPTION_PARENT_COMPONENT"),Rt=new S("MatOptgroup");var Vt=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},Se=(()=>{class n{_element=s(P);_changeDetectorRef=s(V);_parent=s(Ot,{optional:!0});group=s(Rt,{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(le).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=f(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new h;_text;_stateChanges=new C;constructor(){let e=s(ve);e.load(nt),e.load(ke),this._signalDisableRipple=!!this._parent&&aa(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)&&!O(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 Vt(this,e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&N(ki,7),t&2){let i;v(i=D())&&(a._text=i.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&&(ae("id",a.id),M("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),x("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",A]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Si,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&&(ye(Ai),B(0,xi,1,2,"mat-pseudo-checkbox",1),ie(1),d(2,"span",2,0),ie(4,1),c(),B(5,Ei,1,1,"mat-pseudo-checkbox",3),B(6,Ii,2,1,"span",4),k(7,"div",5)),t&2&&(H(a.multiple?0:-1),l(5),H(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),H(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[za,Ia],styles:[`.mat-mdc-option {
1
+ import{a as Ra,c as za,d as Wa}from"./chunk-QYCAVSMC.js";import{c as ja,e as Ka,f as Ga,g as Tt,h as st,i as qa,j as lt,k as Qa,l as Ua,m as Xa,n as $a,o as Za}from"./chunk-PEC6ZGZT.js";import{$ as ea,$a as N,$c as ke,$d as Na,Ac as et,Bd as Aa,Ca as M,Cc as le,Cd as Sa,Da as B,Dc as Ye,Dd as xa,Ea as H,Ed as Ea,F as ue,G as ut,Ga as Ne,Gb as ra,H as R,Ha as J,Ia as ee,Ic as Ct,J as _t,Ja as u,Jc as da,Jd as Ia,K as De,Ka as d,Kb as Ze,Kc as O,L as _e,La as c,Lc as ca,Ld as nt,M as S,Ma as k,Mc as Me,Md as St,N as Jt,Na as F,Nc as pa,Nd as Ta,O as s,Oa as L,Od as Be,P as b,Pa as ia,Pc as tt,Q as y,Qc as ha,R as ge,Rc as ma,Rd as rt,S as gt,Sc as ua,T as X,Ta as te,Tc as at,Td as Va,U as Ge,Ua as ae,Ub as V,Uc as wt,Ud as Oa,Va as g,Vc as Mt,Vd as Fa,W as h,Wa as Qe,Wb as A,Wc as it,Wd as Pa,X as Pe,Xa as m,Xb as yt,Xd as La,Y as f,Ya as ye,Yd as ot,Za as ie,Zc as _a,_ as $,_a as Ue,_c as ga,_d as xt,a as K,ab as v,ad as fa,ae as Et,ba as P,bb as D,c as C,ce as Ya,fb as Xe,fe as It,gb as $e,gd as ba,h as je,hb as x,hd as ya,ia as l,id as va,ie as Ba,ja as Ce,jb as oe,jc as Je,k as mt,kb as p,ke as Ha,lb as E,lc as vt,ma as fe,mb as se,mc as oa,md as kt,n as Zt,nb as bt,nc as ve,nd as Da,oa as ta,ob as G,pa as qe,pb as q,pc as Dt,qa as w,qb as Q,qd as de,r as re,ra as be,rc as ne,rd as Ca,s as Fe,sa as Z,tc as we,ua as ft,va as Le,vb as U,vc as sa,vd as wa,wb as na,wd as At,xa as aa,xc as la,xd as Ma,y as Ke,yd as ka}from"./chunk-XKSYGWTR.js";import{a as me,b as $t}from"./chunk-EQVTEUXC.js";var ki=["text"],Ai=[[["mat-icon"]],"*"],Si=["mat-icon","*"];function xi(n,o){if(n&1&&k(0,"mat-pseudo-checkbox",1),n&2){let e=m();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function Ei(n,o){if(n&1&&k(0,"mat-pseudo-checkbox",3),n&2){let e=m();u("disabled",e.disabled)}}function Ii(n,o){if(n&1&&(d(0,"span",4),p(1),c()),n&2){let e=m();l(),se("(",e.group.label,")")}}var Ot=new S("MAT_OPTION_PARENT_COMPONENT"),Rt=new S("MatOptgroup");var Vt=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},Se=(()=>{class n{_element=s(P);_changeDetectorRef=s(V);_parent=s(Ot,{optional:!0});group=s(Rt,{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(le).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=f(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new h;_text;_stateChanges=new C;constructor(){let e=s(ve);e.load(nt),e.load(ke),this._signalDisableRipple=!!this._parent&&aa(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)&&!O(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 Vt(this,e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&N(ki,7),t&2){let i;v(i=D())&&(a._text=i.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&&(ae("id",a.id),M("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),x("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",A]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Si,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&&(ye(Ai),B(0,xi,1,2,"mat-pseudo-checkbox",1),ie(1),d(2,"span",2,0),ie(4,1),c(),B(5,Ei,1,1,"mat-pseudo-checkbox",3),B(6,Ii,2,1,"span",4),k(7,"div",5)),t&2&&(H(a.multiple?0:-1),l(5),H(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),H(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[za,Ia],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{k as a}from"./chunk-6OLNESWL.js";import"./chunk-QYCAVSMC.js";import"./chunk-PEC6ZGZT.js";import"./chunk-XKSYGWTR.js";import"./chunk-EQVTEUXC.js";export{a as PlaybackDialog};
@@ -1 +1 @@
1
- import{A as Z,Ia as $,f as N,n as Q,o as X,r as Y}from"./chunk-A626ZBXE.js";import"./chunk-CSNMIJA3.js";import{i as K,k as W}from"./chunk-QNWLXTD7.js";import{a as B,b as J,c as U,e as q}from"./chunk-EU3YXT24.js";import"./chunk-NM5IDVR6.js";import{c as H,i as z,o as G}from"./chunk-7OJ7YZPE.js";import{Bd as k,Ca as u,Da as g,Dd as T,Fa as C,Ga as M,Ha as I,Ia as _,Ja as i,Ka as t,La as b,Ld as V,Nd as A,O as d,P as p,Qd as F,Sa as h,Sd as O,Td as j,Ua as f,Wa as c,ha as r,jb as n,je as L,kb as w,lb as v,ma as m,nb as D,ob as S,pa as y,pb as E,xd as P,yd as R}from"./chunk-P5D5HOAL.js";import"./chunk-EQVTEUXC.js";function te(o,a){if(o&1&&(i(0,"mat-option",10),n(1),t()),o&2){let e=a.$implicit;_("value",e),r(),w(e)}}function ie(o,a){if(o&1){let e=h();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}o&2&&(r(),_("astext",!0))}function ne(o,a){if(o&1){let e=h();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),b(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),b(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function oe(o,a){o&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function ae(o,a){if(o&1){let e=h();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),b(27,"br"),n(28,"\xA0 "),u(29,oe,2,0,"div",16),t()()()}if(o&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),v(" ",e.source.name," "),r(4),v(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class o{constructor(a,e,s,l){this.app=a;this.skclient=e;this.dialogRef=s;this.data=l}resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};unsubscribe=[];ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(a=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(a).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}ngOnDestroy(){this.unsubscribe.forEach(a=>a.unsubscribe())}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(a){this.source=a,this.source.type="Unknown";try{let e=JSON.parse(a.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||o)(m(Z),m(Y),m(P),m(R))};static \u0275cmp=y({type:o,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,ae,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,G,z,H,q,U,J,N,B,j,O,K,F,A,V,X,Q,W,T,k,$],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
1
+ import{A as Z,Ia as $,f as N,n as Q,o as X,r as Y}from"./chunk-T6YD46E6.js";import"./chunk-GB3EVGP6.js";import{i as K,k as W}from"./chunk-25YKCA66.js";import{a as B,b as J,c as U,e as q}from"./chunk-6OLNESWL.js";import"./chunk-QYCAVSMC.js";import{c as H,i as z,o as G}from"./chunk-PEC6ZGZT.js";import{Cd as k,Da as u,Ea as g,Ed as T,Ga as C,Ha as M,Ia as I,Ja as _,Ka as i,La as t,Ma as b,Md as V,Od as A,P as d,Q as p,Rd as F,Ta as h,Td as O,Ud as j,Va as f,Xa as c,ia as r,kb as n,ke as L,lb as w,mb as v,na as m,ob as D,pb as S,qa as y,qb as E,yd as P,zd as R}from"./chunk-XKSYGWTR.js";import"./chunk-EQVTEUXC.js";function te(o,a){if(o&1&&(i(0,"mat-option",10),n(1),t()),o&2){let e=a.$implicit;_("value",e),r(),w(e)}}function ie(o,a){if(o&1){let e=h();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}o&2&&(r(),_("astext",!0))}function ne(o,a){if(o&1){let e=h();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),b(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),b(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function oe(o,a){o&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function ae(o,a){if(o&1){let e=h();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),b(27,"br"),n(28,"\xA0 "),u(29,oe,2,0,"div",16),t()()()}if(o&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),v(" ",e.source.name," "),r(4),v(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class o{constructor(a,e,s,l){this.app=a;this.skclient=e;this.dialogRef=s;this.data=l}resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};unsubscribe=[];ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(a=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(a).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}ngOnDestroy(){this.unsubscribe.forEach(a=>a.unsubscribe())}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(a){this.source=a,this.source.type="Unknown";try{let e=JSON.parse(a.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||o)(m(Z),m(Y),m(P),m(R))};static \u0275cmp=y({type:o,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,ae,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,G,z,H,q,U,J,N,B,j,O,K,F,A,V,X,Q,W,T,k,$],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
@@ -0,0 +1 @@
1
+ import{Ea as a}from"./chunk-T6YD46E6.js";import"./chunk-GB3EVGP6.js";import"./chunk-25YKCA66.js";import"./chunk-6OLNESWL.js";import"./chunk-QYCAVSMC.js";import"./chunk-PEC6ZGZT.js";import"./chunk-XKSYGWTR.js";import"./chunk-EQVTEUXC.js";export{a as Trail2RouteDialog};
@@ -1,4 +1,4 @@
1
- import{a as U,d as xt}from"./chunk-NM5IDVR6.js";import{$a as d,$b as st,Ba as C,Ca as T,Da as z,Eb as B,G as V,Gd as gt,Hd as bt,I as tt,Ia as f,Ja as l,Jc as dt,K as E,Ka as _,Kd as ut,L as R,La as L,Md as ft,N as c,Q as it,R as et,S as nt,Tb as W,Ua as D,Ud as vt,V as Q,W as H,Wa as v,X as F,Xa as I,Ya as r,Z as at,Za as S,_ as w,_a as G,a as Y,aa as O,ab as h,bd as q,c as $,cd as ht,eb as M,gb as x,ha as p,ic as ct,kc as rt,la as ot,ld as m,mc as lt,oc as mt,pa as g,pd as pt,qa as P,r as J,ra as b,rd as _t,sc as j,ta as u,ua as y,ub as A}from"./chunk-P5D5HOAL.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{a as U,d as xt}from"./chunk-QYCAVSMC.js";import{$ as w,$a as G,Ca as C,Da as T,Ea as z,Fb as B,H as V,Hd as gt,Id as bt,J as tt,Ja as f,Ka as l,Kc as dt,L as E,La as _,Ld as ut,M as R,Ma as L,Nd as ft,O as c,R as it,S as et,T as nt,Ub as W,Va as D,Vd as vt,W as Q,X as H,Xa as v,Y as F,Ya as I,Za as r,_ as at,_a as S,a as Y,ab as d,ac as st,ba as O,bb as h,c as $,cd as q,dd as ht,fb as M,hb as x,ia as p,jc as ct,lc as rt,ma as ot,md as m,nc as lt,pc as mt,qa as g,qd as pt,r as J,ra as P,sa as b,sd as _t,tc as j,ua as u,va as y,vb as A}from"./chunk-XKSYGWTR.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;
@@ -1,2 +1,2 @@
1
- import{a as pe}from"./chunk-FEIJMPL7.js";import{A as le,D as re,f as H,g as j,h as N,i as Y,j as Z,k as ee,l as te,m as ie,n as ne,o as ae,r as oe,w as se}from"./chunk-A626ZBXE.js";import{a as A,b as L}from"./chunk-CSNMIJA3.js";import{i as U,j as z,k as q}from"./chunk-QNWLXTD7.js";import{a as B}from"./chunk-EU3YXT24.js";import"./chunk-NM5IDVR6.js";import{j as J,o as Q}from"./chunk-7OJ7YZPE.js";import{Bd as R,Ca as f,Da as x,Dd as X,Fa as b,Ga as v,Ha as T,Ia as u,Ja as a,Ka as o,La as C,Ld as O,N as y,Nd as W,O as d,P as m,Qd as V,Sa as _,Sd as F,Td as K,Ua as h,Wa as p,eb as w,ha as l,jb as r,je as $,kb as P,lb as M,ma as D,mb as S,pa as I,xd as E,yd as G}from"./chunk-P5D5HOAL.js";import{f as k}from"./chunk-EQVTEUXC.js";function de(s,t){if(s&1){let e=_();a(0,"button",11),h("click",function(){d(e);let i=p();return m(i.load())}),a(1,"mat-icon"),r(2,"file_upload"),o(),r(3," \xA0Load "),o()}if(s&2){let e=p();u("disabled",!e.display.loadRoutesOK&&!e.display.loadWaypointsOK&&!e.display.loadTracksOK)}}function me(s,t){s&1&&(a(0,"div",10)(1,"div")(2,"b"),r(3,"Invalid GPX Data:"),o(),C(4,"br")(5,"br"),a(6,"i"),r(7,"Selected file does not contain GPX data or"),C(8,"br"),r(9," does not correctly implement namespaced <extensions> attributes."),o()()())}function ue(s,t){s&1&&C(0,"mat-progress-bar",12)}function he(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",26,0),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkWpt(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selWaypoints[n])}}function _e(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.waypoints=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.waypoints=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",18),r(5,"place"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Waypoints:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",21),h("change",function(i){d(e);let c=p(3);return m(c.checkWpt(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,he,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.waypoints),l(11),S(" (",e.display.selCount.waypoints," of ",e.gpxData==null?null:e.gpxData.waypoints.length,") "),l(2),u("indeterminate",e.display.someWptChecked)("checked",e.display.allWaypointsChecked)("disabled",e.gpxData.waypoints.length===0),l(2),T(e.gpxData.waypoints)}}function fe(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",29,1),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkRte(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selRoutes[n])}}function xe(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.routes=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.routes=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",27),r(5,"directions"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Routes:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",28),h("change",function(i){d(e);let c=p(3);return m(c.checkRte(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,fe,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.routes),l(11),S(" (",e.display.selCount.routes," of ",e.gpxData==null?null:e.gpxData.routes.length,") "),l(2),u("indeterminate",e.display.someRteChecked)("checked",e.display.allRoutesChecked)("disabled",e.gpxData.routes.length==0),l(2),T(e.gpxData.routes)}}function ye(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",32,2),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkTrk(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selTracks[n])}}function ge(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.tracks=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.tracks=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",30),r(5,"show_chart"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Tracks:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",31),h("change",function(i){d(e);let c=p(3);return m(c.checkTrk(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,ye,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.tracks),l(11),S(" (",e.display.selCount.tracks," of ",e.gpxData==null?null:e.gpxData.tracks.length,") "),l(2),u("indeterminate",e.display.someTrkChecked)("checked",e.display.allTracksChecked)("disabled",e.gpxData.tracks.length==0),l(2),T(e.gpxData.tracks)}}function Ce(s,t){if(s&1&&(a(0,"div",13)(1,"div",14)(2,"div"),r(3,"File:"),o(),a(4,"div",15),r(5),o()(),C(6,"mat-divider"),o(),f(7,_e,18,6,"div",13),f(8,xe,18,6,"div",13),f(9,ge,18,6,"div",13)),s&2){let e=p(2);l(5),M(" ",e.data.fileName," "),l(2),x(e.gpxData.waypoints.length!=0?7:-1),l(),x(e.gpxData.routes.length!=0?8:-1),l(),x(e.gpxData.tracks.length!=0&&e.app.featureFlags().resourceTracks?9:-1)}}function ke(s,t){if(s&1&&(a(0,"div",10),f(1,ue,1,0,"mat-progress-bar",12)(2,Ce,10,4),o()),s&2){let e=p();l(),x(e.app.sIsFetching()?1:2)}}var ce=class s{constructor(t){this.data=t}gpxData={name:"",routes:[],waypoints:[],tracks:[]};selRoutes=[];selectedRoute=null;selWaypoints=[];selTracks=[];display={notValid:!1,allRoutesChecked:!1,allWaypointsChecked:!1,allTracksChecked:!1,someWptChecked:!1,someRteChecked:!1,someTrkChecked:!1,loadRoutesOK:!1,loadWaypointsOK:!1,loadTracksOK:!1,routeViewer:!1,selCount:{routes:0,waypoints:0,tracks:0},expand:{routes:!1,waypoints:!1,tracks:!1}};errorCount=0;subCount=0;gpx;app=y(le);dialogRef=y(E);skres=y(re);signalk=y(oe);symbols=y(se);ngOnInit(){this.data.fileData=this.data.fileData||null,this.parseGPXData(this.data.fileData)}ngOnDestroy(){this.clear()}load(){this.uploadToServer({rte:{selected:this.selRoutes},wpt:{selected:this.selWaypoints},trk:{selected:this.selTracks}})}parseGPXData(t){return k(this,null,function*(){if(this.display.allRoutesChecked=!1,this.display.loadRoutesOK=!1,this.selRoutes=[],this.display.allWaypointsChecked=!1,this.display.loadWaypointsOK=!1,this.selWaypoints=[],this.display.allTracksChecked=!1,this.display.loadTracksOK=!1,this.selTracks=[],this.display.selCount={routes:0,waypoints:0,tracks:0},this.display.expand={routes:!1,waypoints:!1,tracks:!1},this.display.notValid=!1,this.gpxData=yield this.parseFileData(t),!this.gpxData){console.warn(`Selected file does not contain GPX data or
1
+ import{a as pe}from"./chunk-FEIJMPL7.js";import{A as le,D as re,f as H,g as j,h as N,i as Y,j as Z,k as ee,l as te,m as ie,n as ne,o as ae,r as oe,w as se}from"./chunk-T6YD46E6.js";import{a as A,b as L}from"./chunk-GB3EVGP6.js";import{i as U,j as z,k as q}from"./chunk-25YKCA66.js";import{a as B}from"./chunk-6OLNESWL.js";import"./chunk-QYCAVSMC.js";import{j as J,o as Q}from"./chunk-PEC6ZGZT.js";import{Cd as R,Da as f,Ea as x,Ed as X,Ga as b,Ha as v,Ia as T,Ja as u,Ka as a,La as o,Ma as C,Md as O,O as y,Od as W,P as d,Q as m,Rd as V,Ta as _,Td as F,Ud as K,Va as h,Xa as p,fb as w,ia as l,kb as r,ke as $,lb as P,mb as M,na as D,nb as S,qa as I,yd as E,zd as G}from"./chunk-XKSYGWTR.js";import{f as k}from"./chunk-EQVTEUXC.js";function de(s,t){if(s&1){let e=_();a(0,"button",11),h("click",function(){d(e);let i=p();return m(i.load())}),a(1,"mat-icon"),r(2,"file_upload"),o(),r(3," \xA0Load "),o()}if(s&2){let e=p();u("disabled",!e.display.loadRoutesOK&&!e.display.loadWaypointsOK&&!e.display.loadTracksOK)}}function me(s,t){s&1&&(a(0,"div",10)(1,"div")(2,"b"),r(3,"Invalid GPX Data:"),o(),C(4,"br")(5,"br"),a(6,"i"),r(7,"Selected file does not contain GPX data or"),C(8,"br"),r(9," does not correctly implement namespaced <extensions> attributes."),o()()())}function ue(s,t){s&1&&C(0,"mat-progress-bar",12)}function he(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",26,0),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkWpt(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selWaypoints[n])}}function _e(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.waypoints=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.waypoints=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",18),r(5,"place"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Waypoints:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",21),h("change",function(i){d(e);let c=p(3);return m(c.checkWpt(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,he,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.waypoints),l(11),S(" (",e.display.selCount.waypoints," of ",e.gpxData==null?null:e.gpxData.waypoints.length,") "),l(2),u("indeterminate",e.display.someWptChecked)("checked",e.display.allWaypointsChecked)("disabled",e.gpxData.waypoints.length===0),l(2),T(e.gpxData.waypoints)}}function fe(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",29,1),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkRte(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selRoutes[n])}}function xe(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.routes=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.routes=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",27),r(5,"directions"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Routes:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",28),h("change",function(i){d(e);let c=p(3);return m(c.checkRte(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,fe,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.routes),l(11),S(" (",e.display.selCount.routes," of ",e.gpxData==null?null:e.gpxData.routes.length,") "),l(2),u("indeterminate",e.display.someRteChecked)("checked",e.display.allRoutesChecked)("disabled",e.gpxData.routes.length==0),l(2),T(e.gpxData.routes)}}function ye(s,t){if(s&1){let e=_();a(0,"div",23)(1,"div",24),r(2),o(),a(3,"div",25)(4,"mat-checkbox",32,2),h("change",function(){let i=d(e).$index,c=w(5),g=p(4);return m(g.checkTrk(c.checked,i))}),o()()()}if(s&2){let e=t.$implicit,n=t.$index,i=p(4);l(2),P(e.name),l(2),u("checked",i.selTracks[n])}}function ge(s,t){if(s&1){let e=_();a(0,"div",13)(1,"mat-expansion-panel",16),h("opened",function(){d(e);let i=p(3);return m(i.display.expand.tracks=!0)})("closed",function(){d(e);let i=p(3);return m(i.display.expand.tracks=!1)}),a(2,"mat-expansion-panel-header",17)(3,"mat-panel-title")(4,"mat-icon",30),r(5,"show_chart"),o(),r(6," \xA0\xA0 "),a(7,"b"),r(8,"Tracks:"),o()(),a(9,"mat-panel-description")(10,"div",5)(11,"span",19),r(12),o(),a(13,"span",20)(14,"mat-checkbox",31),h("change",function(i){d(e);let c=p(3);return m(c.checkTrk(i.checked,-1))})("click",function(i){return i.cancelBubble=!0}),o()()()()(),a(15,"div",22),v(16,ye,6,2,"div",23,b),o()()()}if(s&2){let e=p(3);l(),u("expanded",e.display.expand.tracks),l(11),S(" (",e.display.selCount.tracks," of ",e.gpxData==null?null:e.gpxData.tracks.length,") "),l(2),u("indeterminate",e.display.someTrkChecked)("checked",e.display.allTracksChecked)("disabled",e.gpxData.tracks.length==0),l(2),T(e.gpxData.tracks)}}function Ce(s,t){if(s&1&&(a(0,"div",13)(1,"div",14)(2,"div"),r(3,"File:"),o(),a(4,"div",15),r(5),o()(),C(6,"mat-divider"),o(),f(7,_e,18,6,"div",13),f(8,xe,18,6,"div",13),f(9,ge,18,6,"div",13)),s&2){let e=p(2);l(5),M(" ",e.data.fileName," "),l(2),x(e.gpxData.waypoints.length!=0?7:-1),l(),x(e.gpxData.routes.length!=0?8:-1),l(),x(e.gpxData.tracks.length!=0&&e.app.featureFlags().resourceTracks?9:-1)}}function ke(s,t){if(s&1&&(a(0,"div",10),f(1,ue,1,0,"mat-progress-bar",12)(2,Ce,10,4),o()),s&2){let e=p();l(),x(e.app.sIsFetching()?1:2)}}var ce=class s{constructor(t){this.data=t}gpxData={name:"",routes:[],waypoints:[],tracks:[]};selRoutes=[];selectedRoute=null;selWaypoints=[];selTracks=[];display={notValid:!1,allRoutesChecked:!1,allWaypointsChecked:!1,allTracksChecked:!1,someWptChecked:!1,someRteChecked:!1,someTrkChecked:!1,loadRoutesOK:!1,loadWaypointsOK:!1,loadTracksOK:!1,routeViewer:!1,selCount:{routes:0,waypoints:0,tracks:0},expand:{routes:!1,waypoints:!1,tracks:!1}};errorCount=0;subCount=0;gpx;app=y(le);dialogRef=y(E);skres=y(re);signalk=y(oe);symbols=y(se);ngOnInit(){this.data.fileData=this.data.fileData||null,this.parseGPXData(this.data.fileData)}ngOnDestroy(){this.clear()}load(){this.uploadToServer({rte:{selected:this.selRoutes},wpt:{selected:this.selWaypoints},trk:{selected:this.selTracks}})}parseGPXData(t){return k(this,null,function*(){if(this.display.allRoutesChecked=!1,this.display.loadRoutesOK=!1,this.selRoutes=[],this.display.allWaypointsChecked=!1,this.display.loadWaypointsOK=!1,this.selWaypoints=[],this.display.allTracksChecked=!1,this.display.loadTracksOK=!1,this.selTracks=[],this.display.selCount={routes:0,waypoints:0,tracks:0},this.display.expand={routes:!1,waypoints:!1,tracks:!1},this.display.notValid=!1,this.gpxData=yield this.parseFileData(t),!this.gpxData){console.warn(`Selected file does not contain GPX data or
2
2
  does not correctly implement namespaced <extensions> attributes`,"Invalid GPX Data:"),this.display.notValid=!0;return}this.gpxData.routes.forEach(()=>{this.selRoutes.push(!1)}),this.selRoutes.length===1&&(this.selRoutes[0]=!0,this.display.allRoutesChecked=!0,this.display.expand.routes=!0,this.display.loadRoutesOK=!0,this.display.selCount.routes=1),this.gpxData.waypoints.forEach(()=>{this.selWaypoints.push(!1)}),this.selWaypoints.length===1&&(this.selWaypoints[0]=!0,this.display.allWaypointsChecked=!0,this.display.expand.waypoints=!0,this.display.loadWaypointsOK=!0,this.display.selCount.waypoints=1),this.gpxData.tracks.forEach(()=>{this.selTracks.push(!1)}),this.selTracks.length===1&&(this.selTracks[0]=!0,this.display.allTracksChecked=!0,this.display.expand.tracks=!0,this.display.loadTracksOK=!0,this.display.selCount.tracks=1)})}checkRte(t,e=-1){let n=0;if(e!==-1){this.selRoutes[e]=t,this.display.loadRoutesOK=t;for(let i of this.selRoutes)i&&n++;this.display.loadRoutesOK=n!==0,this.display.selCount.routes=n,this.display.allRoutesChecked=n===this.selRoutes.length}else{for(let i=0;i<this.selRoutes.length;i++)this.selRoutes[i]=t,this.display.loadRoutesOK=t,this.display.allRoutesChecked=t;this.display.selCount.routes=t?this.selRoutes.length:0}this.display.someRteChecked=!(this.display.allRoutesChecked||n===0)}checkWpt(t,e=-1){let n=0;if(e!==-1){this.selWaypoints[e]=t,this.display.loadWaypointsOK=t;for(let i of this.selWaypoints)i&&n++;this.display.loadWaypointsOK=n!==0,this.display.selCount.waypoints=n,this.display.allWaypointsChecked=n===this.selWaypoints.length}else{for(let i=0;i<this.selWaypoints.length;i++)this.selWaypoints[i]=t,this.display.loadWaypointsOK=t,this.display.allWaypointsChecked=t;this.display.selCount.waypoints=t?this.selWaypoints.length:0}this.display.someWptChecked=!(this.display.allWaypointsChecked||n===0)}checkTrk(t,e=-1){let n=0;if(e!==-1){this.selTracks[e]=t,this.display.loadTracksOK=t;for(let i of this.selTracks)i&&n++;this.display.loadTracksOK=n!==0,this.display.selCount.tracks=n,this.display.allTracksChecked=n===this.selTracks.length}else{for(let i=0;i<this.selTracks.length;i++)this.selTracks[i]=t,this.display.loadTracksOK=t,this.display.allTracksChecked=t;this.display.selCount.tracks=t?this.selTracks.length:0}this.display.someTrkChecked=!(this.display.allTracksChecked||n===0)}clear(){this.gpx=null}parseFileData(t){return k(this,null,function*(){let e={name:"",routes:[],waypoints:[],tracks:[]};if(this.gpx=new pe,this.app.sIsFetching.set(!0),!(yield this.gpx.parse(t)))return this.app.sIsFetching.set(!1),null;let n=1;return this.gpx.rte.forEach(i=>{e.routes.push({name:i.name!==""?i.name:`Rte: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:"",wptcount:i.rtept.length}),n++}),n=1,this.gpx.wpt.forEach(i=>{e.waypoints.push({name:i.name?i.name:`Wpt: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:""}),n++}),n=1,this.gpx.trk.forEach(i=>{e.tracks.push({name:i.name?i.name:`Trk: ${n}`,description:i.desc?i.desc:i.cmt?i.cmt:""}),n++}),this.app.sIsFetching.set(!1),e})}uploadToServer(t){return k(this,null,function*(){this.app.sIsFetching.set(!0),this.errorCount=0,this.subCount=0;for(let n=0;n<t.rte.selected.length;n++)t.rte.selected[n]&&this.transformRoute(this.gpx.rte[n]);for(let n=0;n<t.wpt.selected.length;n++)t.wpt.selected[n]&&this.transformWaypoint(this.gpx.wpt[n]);let e=[];for(let n=0;n<t.trk.selected.length;n++)if(t.trk.selected[n]){let i=this.transformTrack(this.gpx.trk[n]);this.subCount++;try{let c=yield this.skres.postToServer("tracks",i);this.subCount--,Math.floor(c.statusCode/100)===2?(e.push(c.id),this.app.debug("SUCCESS: Track added.")):this.errorCount++,this.checkComplete()}catch(c){this.errorCount++,this.subCount--,this.logError(c),this.checkComplete()}}e.length!==0&&this.skres.trackAddFromServer(e)})}errorList=[];logError(t){let e=t.error?t.error.message:t.message;this.errorList.push({status:t.status,message:e})}checkComplete(){this.subCount===0&&(this.app.sIsFetching.set(!1),this.app.saveConfig(),this.dialogRef.close({errCount:this.errorCount,errList:this.errorList}),this.app.debug(`GPXLoad: complete: ${this.errorCount}`))}transformRoute(t){let e=this.skres.buildRoute(t.rtept.map(i=>[i.lon,i.lat])),n=e[1];n.name=t.name??"",n.description=t.desc??"",t.cmt&&(n.feature.properties.cmt=t.cmt),t.src&&(n.feature.properties.src=t.src),t.number&&(n.feature.properties.number=t.number),t.type&&(n.feature.properties.type=t.type),n.feature.properties.coordinatesMeta=[],n.feature.properties.coordinatesMeta=t.rtept.map(i=>{let c={name:i.name??""};return i.cmt&&(c.description=i.cmt),c}),this.subCount++,this.signalk.api.put(this.app.skApiVersion,`/resources/routes/${e[0]}`,e[1]).subscribe(i=>{this.subCount--,Math.floor(i.statusCode/100)===2?(this.app.debug("SUCCESS: Route added."),this.skres.selectionAdd("routes",e[0])):this.errorCount++,this.checkComplete()},i=>{this.errorCount++,this.subCount--,this.logError(i),this.checkComplete()})}transformWaypoint(t){let e=this.skres.buildWaypoint([t.lon,t.lat]),n=e[1];if(t.ele&&n.feature.geometry.coordinates.push(t.ele),t.name&&t.name.length!==0&&(n.name=t.name),t.desc&&t.desc.length!==0&&(n.description=t.desc),t.type&&(n.type=t.type,n.feature.properties.type=t.type),t.cmt&&(n.feature.properties.cmt=t.cmt),t.src&&(n.feature.properties.src=t.src),t.sym){n.feature.properties.sym=t.sym;let i=this.symbols.resolveGpxSym(t.sym);i&&(n.type="waypoint",n.feature.properties.skIcon=i)}this.subCount++,this.signalk.api.put(this.app.skApiVersion,`/resources/waypoints/${e[0]}`,e[1]).subscribe(i=>{this.subCount--,Math.floor(i.statusCode/100)===2?(this.app.debug("SUCCESS: Waypoint added."),this.skres.selectionAdd("waypoints",e[0])):this.errorCount++,this.checkComplete()},i=>{this.errorCount++,this.subCount--,this.logError(i),this.checkComplete()})}transformTrack(t){let e={feature:{type:"Feature",geometry:{type:"MultiLineString",coordinates:[]},properties:{},id:""}};return t.trkseg&&t.trkseg.forEach(n=>{let i=[];n.trkpt.forEach(c=>{i.push([c.lon,c.lat])}),e.feature.geometry.coordinates.push(i)}),t.name&&t.name.length!==0?e.feature.properties.name=t.name:e.feature.properties.name=`gpxtrk #${Math.random().toString().slice(-5)}`,t.desc&&t.desc.length!==0&&(e.feature.properties.description=t.desc),t.cmt&&(e.feature.properties.cmt=t.cmt),t.src&&(e.feature.properties.src=t.src),t.type&&(e.feature.properties.type=t.type),e}static \u0275fac=function(e){return new(e||s)(D(G))};static \u0275cmp=I({type:s,selectors:[["gpxload-dialog"]],decls:13,vars:3,consts:[["wval",""],["rval",""],["tval",""],[1,"gpxload-dialog"],[2,"background-color","transparent"],[2,"display","flex","width","100%"],["mat-raised-button","","matTooltip","Load selected resources","matTooltipPosition","right",2,"width","85px",3,"disabled"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click","disabled"],["mat-dialog-content",""],["mat-raised-button","","matTooltip","Load selected resources","matTooltipPosition","right",2,"width","85px",3,"click","disabled"],["mode","indeterminate"],[1,"card-group"],[2,"display","flex"],[2,"flex","1 1 auto","padding-left","10px","overflow","hidden","display","-webkit-box","-webkit-box-orient","vertical","-webkit-line-clamp","1","line-clamp","1","text-overflow","ellipsis"],[3,"opened","closed","expanded"],[2,"padding","0 12px"],[1,"icon-waypoint"],[1,"pnlSelectedItems"],[1,"pnlSelect"],["matTooltip","Select all Waypoints","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],[1,"list-container-scrollable"],[1,"item-row"],[1,"name"],[1,"check"],["matTooltip","Select Waypoint","matTooltipPosition","below",3,"change","checked"],[1,"icon-route"],["matTooltip","Select all Routes","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],["matTooltip","Select this Route","matTooltipPosition","below",3,"change","checked"],[1,"icon-track"],["matTooltip","Select all Tracks","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],["matTooltip","Select this Track","matTooltipPosition","below",3,"change","checked"]],template:function(e,n){e&1&&(a(0,"div",3)(1,"mat-toolbar",4)(2,"div",5)(3,"div"),f(4,de,4,1,"button",6),o(),a(5,"div",7),r(6,"Import GPX"),o(),a(7,"div",8)(8,"button",9),h("click",function(){return n.dialogRef.close(-1)}),a(9,"mat-icon"),r(10,"close"),o()()()()(),f(11,me,10,0,"div",10)(12,ke,3,1,"div",10),o()),e&2&&(l(4),x(n.app.sIsFetching()?-1:4),l(4),u("disabled",n.app.sIsFetching()),l(3),x(n.display.notValid?11:12))},dependencies:[ae,ne,N,j,X,R,K,F,V,W,O,U,J,Q,L,A,ie,Y,Z,te,ee,q,z,H,B,$],styles:[".gpxload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0 12px 6px}.card-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}.item-row[_ngcontent-%COMP%]{display:flex;width:100%;padding:2px 0}.item-row[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-overflow:ellipsis;line-height:2.5em}.item-row[_ngcontent-%COMP%] .check[_ngcontent-%COMP%]{text-align:right;padding-right:15px}.pnlSelectedItems[_ngcontent-%COMP%]{display:none;line-height:2.9em}.pnlSelect[_ngcontent-%COMP%]{flex:1 1 auto;padding-left:3px;padding-right:3px;text-align:right}.txtSelect[_ngcontent-%COMP%]{display:none}button[_ngcontent-%COMP%]{min-width:unset;padding:unset}@media only screen and (min-width:400px){.pnlSelectedItems[_ngcontent-%COMP%]{display:inline}}@media only screen and (min-width:475px){.pnlSelectedItems[_ngcontent-%COMP%]{display:inline;line-height:2.9em}.txtSelect[_ngcontent-%COMP%]{display:inline}.pnlSelect[_ngcontent-%COMP%]{flex:1 1 auto;padding-left:20px;padding-right:15px;text-align:right}button[_ngcontent-%COMP%]{min-width:inherit;padding:inherit}}"]})};export{ce as GPXImportDialog};