@hybridcore/ui 1.3.7 → 1.4.0

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 (126) hide show
  1. package/dist/AccordionDetails-CGs6GZQK.js +454 -0
  2. package/dist/Add-eepk2WTM.js +379 -0
  3. package/dist/Box-BPyg-Ybm.js +70 -0
  4. package/dist/Button-DLwB_sKd.js +354 -0
  5. package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
  6. package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
  7. package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
  8. package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
  9. package/dist/Delete-OHEw9lDi.js +22 -0
  10. package/dist/DialogContent-CxOSq6h9.js +519 -0
  11. package/dist/FormControlLabel-D9KFjcIx.js +193 -0
  12. package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
  13. package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
  14. package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
  15. package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
  16. package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
  17. package/dist/ListItem-CZbZ91vp.js +428 -0
  18. package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
  19. package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
  20. package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
  21. package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
  22. package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
  23. package/dist/Tabs-BzelDJKy.js +787 -0
  24. package/dist/TextField-D87qTh1k.js +457 -0
  25. package/dist/Typography-Bm7PFqUT.js +176 -0
  26. package/dist/assets/index.css +1 -1
  27. package/dist/assets/index2.css +1 -1
  28. package/dist/components/card/index.js +6 -6
  29. package/dist/components/card/styled.js +1 -1
  30. package/dist/components/collapsible-card/style.js +20 -466
  31. package/dist/components/confirm/dialog.js +8 -149
  32. package/dist/components/confirm/index.js +1 -1
  33. package/dist/components/container/index.js +7 -7
  34. package/dist/components/context-menu/index.js +191 -604
  35. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  36. package/dist/components/data-security-selectors/security-level/index.js +42 -40
  37. package/dist/components/date-time-picker/index.js +18 -19
  38. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  39. package/dist/components/geometry-picker/edit/index.js +16 -16
  40. package/dist/components/geometry-picker/geometry/index.js +35 -35
  41. package/dist/components/geometry-picker/index.js +3 -3
  42. package/dist/components/geometry-picker/kml/index.js +14 -14
  43. package/dist/components/geometry-picker/map/index.js +1 -1
  44. package/dist/components/geometry-picker/map/logic.js +38 -37
  45. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
  46. package/dist/components/geometry-picker/parser/logic.js +33 -32
  47. package/dist/components/icon-button/index.js +1 -1
  48. package/dist/components/icon-button/styled.js +0 -2
  49. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
  50. package/dist/components/instance-form/components/variable/index.js +19 -0
  51. package/dist/components/instance-form/components/variables/index.js +40 -0
  52. package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
  53. package/dist/components/instance-hierarchy-table/index.js +58 -0
  54. package/dist/components/instance-hierarchy-table/styled.js +29 -0
  55. package/dist/components/instance-table/index.js +125 -0
  56. package/dist/components/instance-table/styled.js +13 -0
  57. package/dist/components/map/helpers/ol.js +1 -1
  58. package/dist/components/map/index.js +1 -1
  59. package/dist/components/map/logic.js +1 -1
  60. package/dist/components/map/styled.js +1 -1
  61. package/dist/components/phone-input/index.js +1 -1
  62. package/dist/components/property-mapping/index.js +558 -0
  63. package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
  64. package/dist/components/range-selector/components/date-range/index.js +9 -0
  65. package/dist/components/range-selector/components/geometry-range/index.js +26 -0
  66. package/dist/components/range-selector/components/number-range/index.js +86 -0
  67. package/dist/components/range-selector/components/string-range/index.js +31 -0
  68. package/dist/components/range-selector/index.js +59 -0
  69. package/dist/components/search-input/index.js +4 -4
  70. package/dist/components/tabs/appleTabs.style.js +55 -0
  71. package/dist/components/tabs/index.js +93 -0
  72. package/dist/components/tabs/tab-panel.js +18 -0
  73. package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
  74. package/dist/components/template-form/components/property-list/index.js +72 -0
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
  76. package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
  77. package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
  78. package/dist/components/template-form/components/property-list/types.js +8 -0
  79. package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
  80. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
  81. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
  82. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
  83. package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
  84. package/dist/components/template-form/components/select-icon/index.js +186 -0
  85. package/dist/components/template-form/components/select-icon/styled.js +76 -0
  86. package/dist/components/template-form/index.js +338 -0
  87. package/dist/components/template-property-filters/property.js +48 -46
  88. package/dist/components/tree-select/index.js +16 -15
  89. package/dist/components/tree-select/styled.js +2 -2
  90. package/dist/components/treeview-filter/index.js +8 -8
  91. package/dist/components/treeview-filter/item/index.js +1 -1
  92. package/dist/components/treeview-filter/item-label/index.js +18 -17
  93. package/dist/constants/index.js +41 -0
  94. package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
  95. package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
  96. package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
  97. package/dist/dialog-v5-nL5yy.js +153 -0
  98. package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
  99. package/dist/extendSxProp-qqdkfHzS.js +30 -0
  100. package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
  101. package/dist/index-C1fczHEW.js +11042 -0
  102. package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
  103. package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
  104. package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
  105. package/dist/main.d.ts +561 -78
  106. package/dist/main.js +157 -157
  107. package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
  108. package/dist/property-list-form-BfP9gzSo.js +391 -0
  109. package/dist/requirePropFactory-BjhhI-AW.js +18 -0
  110. package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
  111. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  112. package/dist/useControlled-BYdyS7Pn.js +31 -0
  113. package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
  114. package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
  115. package/dist/utils/ontology.js +52 -30
  116. package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
  117. package/package.json +2 -1
  118. package/dist/DialogContent-BCYm_d1s.js +0 -864
  119. package/dist/FormControlLabel-DENNVXWL.js +0 -639
  120. package/dist/Typography-Dg-ROiTA.js +0 -201
  121. package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
  122. package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
  123. package/dist/createSvgIcon-B2WT0K4k.js +0 -87
  124. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
  125. package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
  126. package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
@@ -1,10 +1,10 @@
1
1
  import k from "react";
2
2
  import { createMapboxLayer as Xe } from "../../map/helpers/mapbox.js";
3
- import { I as $e, s as ke, n as ge, e as ve, C as fe, f as v, V as se, F as L, P as me, p as Ze, h as Je, i as _e, R as Ge, j as ye, k as Q, M as D, l as Qe, m as ze, o as et, q as tt, L as J, r as it, t as Ie, u as Re, G as st, v as nt, b as Fe, a as rt } from "../../../ol-BUKJ1urU.js";
3
+ import { I as $e, s as ke, n as ge, f as ve, C as fe, h as v, V as se, F as L, P as me, p as Ze, i as Je, j as _e, R as Ge, k as ye, l as Q, M as D, m as Qe, o as ze, q as et, r as tt, L as J, t as it, u as Ie, v as Re, G as st, w as nt, b as Fe, a as rt } from "../../../ol-CHaVTXvL.js";
4
4
  import { T as z, g as F, d as ot, q as Te, a as ne, E as ee, f as at, F as Ae, x as ht, r as be, i as ct, l as q, u as oe } from "../../../has-CjQtZJa9.js";
5
5
  import { O as xe } from "../../../Text-D6oGbCdi.js";
6
6
  import { defaultStyle as lt, selectStyleFunction as dt, markerStyle as ut } from "./style.js";
7
- import { G as E, ax as ae, ac as U, aL as te, k as C, aM as I, h as ie, T as gt, aI as Oe, ay as Ne, aN as R, aO as Ve, aP as ft, aQ as Se, P as je, J as _t, aR as mt, aK as yt } from "../../../Source-Hf_SiWEW.js";
7
+ import { G as w, ax as ae, ac as U, aL as te, k as C, aM as I, h as ie, T as gt, aI as Oe, ay as Ne, aN as R, aO as Ve, aP as ft, aQ as Se, P as je, J as _t, aR as mt, aK as yt } from "../../../Source-Hf_SiWEW.js";
8
8
  import { alert as xt } from "../../confirm/index.js";
9
9
  const pt = {
10
10
  /**
@@ -244,7 +244,7 @@ function Ft() {
244
244
  return e.getGeometry() ? l[e.getGeometry().getType()] : null;
245
245
  };
246
246
  }
247
- const Pe = 0, K = 1, Ee = [0, 0, 0, 0], N = [], he = {
247
+ const Pe = 0, K = 1, we = [0, 0, 0, 0], N = [], he = {
248
248
  /**
249
249
  * Triggered upon feature modification start
250
250
  * @event ModifyEvent#modifystart
@@ -499,7 +499,7 @@ class Tt extends me {
499
499
  index: i,
500
500
  segment: r
501
501
  };
502
- this.rBush_.insert(E(r), o);
502
+ this.rBush_.insert(w(r), o);
503
503
  }
504
504
  }
505
505
  /**
@@ -519,7 +519,7 @@ class Tt extends me {
519
519
  index: o,
520
520
  segment: h
521
521
  };
522
- this.rBush_.insert(E(h), c);
522
+ this.rBush_.insert(w(h), c);
523
523
  }
524
524
  }
525
525
  }
@@ -540,7 +540,7 @@ class Tt extends me {
540
540
  index: o,
541
541
  segment: h
542
542
  };
543
- this.rBush_.insert(E(h), c);
543
+ this.rBush_.insert(w(h), c);
544
544
  }
545
545
  }
546
546
  }
@@ -563,7 +563,7 @@ class Tt extends me {
563
563
  index: c,
564
564
  segment: g
565
565
  };
566
- this.rBush_.insert(E(g), u);
566
+ this.rBush_.insert(w(g), u);
567
567
  }
568
568
  }
569
569
  }
@@ -702,7 +702,7 @@ class Tt extends me {
702
702
  const s = this.vertexFeature_;
703
703
  if (s) {
704
704
  e.map.getView().getProjection();
705
- const i = [], n = s.getGeometry().getCoordinates(), r = E([n]), o = this.rBush_.getInExtent(r), a = {};
705
+ const i = [], n = s.getGeometry().getCoordinates(), r = w([n]), o = this.rBush_.getInExtent(r), a = {};
706
706
  o.sort(St);
707
707
  for (let h = 0, c = o.length; h < c; ++h) {
708
708
  const d = o[h], g = d.segment;
@@ -763,7 +763,7 @@ class Tt extends me {
763
763
  o
764
764
  );
765
765
  } else
766
- this.rBush_.update(E(s.segment), s);
766
+ this.rBush_.update(w(s.segment), s);
767
767
  }
768
768
  return this.featuresBeingModified_ && (this.dispatchEvent(
769
769
  new ce(
@@ -790,7 +790,7 @@ class Tt extends me {
790
790
  const i = s || t.getCoordinateFromPixel(e);
791
791
  t.getView().getProjection();
792
792
  const n = function(a, h) {
793
- return we(i, a) - we(i, h);
793
+ return Ee(i, a) - Ee(i, h);
794
794
  };
795
795
  let r, o;
796
796
  if (this.hitDetection_) {
@@ -824,9 +824,9 @@ class Tt extends me {
824
824
  }
825
825
  if (!r) {
826
826
  const a = gt(
827
- ae(i, Ee)
827
+ ae(i, we)
828
828
  ), h = t.getView().getResolution() * this.pixelTolerance_, c = Oe(
829
- Ne(a, h, Ee)
829
+ Ne(a, h, we)
830
830
  );
831
831
  r = this.rBush_.getInExtent(c);
832
832
  }
@@ -903,7 +903,7 @@ class Tt extends me {
903
903
  depth: r,
904
904
  index: o
905
905
  };
906
- h.insert(E(c.segment), c), this.dragSegments_.push([c, 1]);
906
+ h.insert(w(c.segment), c), this.dragSegments_.push([c, 1]);
907
907
  const d = {
908
908
  segment: [t, s[1]],
909
909
  feature: i,
@@ -911,7 +911,7 @@ class Tt extends me {
911
911
  depth: r,
912
912
  index: o + 1
913
913
  };
914
- h.insert(E(d.segment), d), this.dragSegments_.push([d, 0]), this.ignoreNextSingleClick_ = !0;
914
+ h.insert(w(d.segment), d), this.dragSegments_.push([d, 0]), this.ignoreNextSingleClick_ = !0;
915
915
  }
916
916
  /**
917
917
  * Removes the vertex currently being pointed.
@@ -969,7 +969,7 @@ class Tt extends me {
969
969
  segment: _
970
970
  };
971
971
  this.rBush_.insert(
972
- E(x.segment),
972
+ w(x.segment),
973
973
  x
974
974
  );
975
975
  }
@@ -1005,7 +1005,7 @@ class Tt extends me {
1005
1005
  function St(l, e) {
1006
1006
  return l.index - e.index;
1007
1007
  }
1008
- function we(l, e, t) {
1008
+ function Ee(l, e, t) {
1009
1009
  const s = e.geometry;
1010
1010
  if (s.getType() === "Circle") {
1011
1011
  let n = (
@@ -1072,7 +1072,7 @@ class Y extends ne {
1072
1072
  super(e), this.feature = t;
1073
1073
  }
1074
1074
  }
1075
- function Et(l, e) {
1075
+ function wt(l, e) {
1076
1076
  const t = [];
1077
1077
  for (let s = 0; s < e.length; ++s) {
1078
1078
  const n = e[s].getGeometry();
@@ -1144,7 +1144,7 @@ function Be(l, e, t) {
1144
1144
  }
1145
1145
  }
1146
1146
  const le = { index: -1, endIndex: NaN };
1147
- function wt(l, e, t, s) {
1147
+ function Et(l, e, t, s) {
1148
1148
  const i = l[0], n = l[1];
1149
1149
  let r = 1 / 0, o = -1, a = NaN;
1150
1150
  for (let d = 0; d < e.targets.length; ++d) {
@@ -1350,10 +1350,10 @@ class Dt extends me {
1350
1350
  ]), i = t.getCoordinateFromPixel([
1351
1351
  e.pixel[0] + this.snapTolerance_,
1352
1352
  e.pixel[1] - this.snapTolerance_
1353
- ]), n = E([s, i]), r = this.traceSource_.getFeaturesInExtent(n);
1353
+ ]), n = w([s, i]), r = this.traceSource_.getFeaturesInExtent(n);
1354
1354
  if (r.length === 0)
1355
1355
  return;
1356
- const o = Et(e.coordinate, r);
1356
+ const o = wt(e.coordinate, r);
1357
1357
  o.length && (this.traceState_ = {
1358
1358
  active: !0,
1359
1359
  startPx: e.pixel.slice(),
@@ -1424,7 +1424,7 @@ class Dt extends me {
1424
1424
  const t = this.traceState_;
1425
1425
  if (!t.active || t.targetIndex === -1 && te(t.startPx, e.pixel) < this.snapTolerance_)
1426
1426
  return;
1427
- const s = wt(
1427
+ const s = Et(
1428
1428
  e.coordinate,
1429
1429
  t,
1430
1430
  this.getMap(),
@@ -1869,12 +1869,12 @@ class Gt extends me {
1869
1869
  []
1870
1870
  );
1871
1871
  if (n(r, i), r.length === 1)
1872
- this.rBush_.insert(E(r[0]), {
1872
+ this.rBush_.insert(w(r[0]), {
1873
1873
  feature: e,
1874
1874
  segment: r[0]
1875
1875
  });
1876
1876
  else if (r.length > 1) {
1877
- const o = r.map((h) => E(h)), a = r.map((h) => ({
1877
+ const o = r.map((h) => w(h)), a = r.map((h) => ({
1878
1878
  feature: e,
1879
1879
  segment: h
1880
1880
  }));
@@ -2020,7 +2020,7 @@ class Gt extends me {
2020
2020
  s.getView().getProjection();
2021
2021
  const i = C(t), n = Oe(
2022
2022
  Ne(
2023
- E([i]),
2023
+ w([i]),
2024
2024
  s.getView().getResolution() * this.pixelTolerance_
2025
2025
  )
2026
2026
  ), r = this.rBush_.getInExtent(n), o = r.length;
@@ -2181,12 +2181,13 @@ class Gt extends me {
2181
2181
  }
2182
2182
  }
2183
2183
  }
2184
- let Le = null, w = new ye(), P = {
2184
+ let Le = null;
2185
+ const E = new ye(), P = {
2185
2186
  layer: new se({
2186
- source: w,
2187
+ source: E,
2187
2188
  style: lt
2188
2189
  }),
2189
- modify: new Tt({ source: w }),
2190
+ modify: new Tt({ source: E }),
2190
2191
  draw: null,
2191
2192
  snap: null,
2192
2193
  select: new pe({
@@ -2239,7 +2240,7 @@ function qt(l) {
2239
2240
  var m;
2240
2241
  (m = e.current) == null || m.addInteraction(P.modify), P.modify.on("modifyend", () => {
2241
2242
  setTimeout(() => {
2242
- l.onDrawEnd && l.onDrawEnd(w.getFeatures());
2243
+ l.onDrawEnd && l.onDrawEnd(E.getFeatures());
2243
2244
  }, 250), p();
2244
2245
  });
2245
2246
  }, _ = async () => {
@@ -2262,7 +2263,7 @@ function qt(l) {
2262
2263
  A.forEach(
2263
2264
  (Ye) => G(Ye)
2264
2265
  ), j(), setTimeout(() => {
2265
- l.onDrawEnd && l.onDrawEnd(w.getFeatures());
2266
+ l.onDrawEnd && l.onDrawEnd(E.getFeatures());
2266
2267
  }, 250);
2267
2268
  }
2268
2269
  }
@@ -2282,12 +2283,12 @@ function qt(l) {
2282
2283
  var B, A;
2283
2284
  p();
2284
2285
  const y = new Dt({
2285
- source: w,
2286
+ source: E,
2286
2287
  type: m
2287
- }), S = new Gt({ source: w });
2288
+ }), S = new Gt({ source: E });
2288
2289
  y.on("drawend", () => {
2289
2290
  setTimeout(() => {
2290
- l.onDrawEnd && l.onDrawEnd(w.getFeatures());
2291
+ l.onDrawEnd && l.onDrawEnd(E.getFeatures());
2291
2292
  }, 250), p(), s("Pointer");
2292
2293
  }), P.draw = y, P.snap = S, (B = e.current) == null || B.addInteraction(y), (A = e.current) == null || A.addInteraction(S);
2293
2294
  }, p = () => {
@@ -2295,14 +2296,14 @@ function qt(l) {
2295
2296
  P.draw && ((m = e.current) == null || m.removeInteraction(P.draw)), P.snap && ((y = e.current) == null || y.removeInteraction(P.snap));
2296
2297
  }, T = (m) => {
2297
2298
  const y = Fe(m);
2298
- y && w.addFeatures(y);
2299
+ y && E.addFeatures(y);
2299
2300
  }, M = (m) => {
2300
2301
  const y = rt(m, ut);
2301
- y && w.addFeatures(y);
2302
+ y && E.addFeatures(y);
2302
2303
  }, V = () => {
2303
- w.clear();
2304
+ E.clear();
2304
2305
  }, G = (m) => {
2305
- w.removeFeature(m);
2306
+ E.removeFeature(m);
2306
2307
  }, j = () => {
2307
2308
  o({
2308
2309
  open: !1,
@@ -2313,7 +2314,7 @@ function qt(l) {
2313
2314
  }, Ue = (m) => {
2314
2315
  var S;
2315
2316
  const y = Fe(m);
2316
- y ? (re(), w.addFeatures(y), (S = e.current) == null || S.centerToFeature(y[0]), l.onDrawEnd && l.onDrawEnd(y)) : xt("Error!", "Feature(s) could not be loaded! Check your KML data!");
2317
+ y ? (re(), E.addFeatures(y), (S = e.current) == null || S.centerToFeature(y[0]), l.onDrawEnd && l.onDrawEnd(y)) : xt("Error!", "Feature(s) could not be loaded! Check your KML data!");
2317
2318
  }, Ke = (m) => {
2318
2319
  var y;
2319
2320
  (y = e.current) == null || y.setCenter(m);
@@ -399,11 +399,11 @@ class $ {
399
399
  */
400
400
  rotateAround(t, n) {
401
401
  if (!(t instanceof $)) throw new TypeError("axis is not Vector3d object");
402
- const s = n.toRadians(), e = this.unit(), i = t.unit(), r = Math.sin(s), a = Math.cos(s), o = 1 - a, f = i.x, c = i.y, u = i.z, w = [
402
+ const s = n.toRadians(), e = this.unit(), i = t.unit(), r = Math.sin(s), a = Math.cos(s), o = 1 - a, p = i.x, u = i.y, d = i.z, w = [
403
403
  // rotation matrix for rotation about supplied axis
404
- [o * f * f + a, o * f * c - r * u, o * f * u + r * c],
405
- [o * f * c + r * u, o * c * c + a, o * c * u - r * f],
406
- [o * f * u - r * c, o * c * u + r * f, o * u * u + a]
404
+ [o * p * p + a, o * p * u - r * d, o * p * d + r * u],
405
+ [o * p * u + r * d, o * u * u + a, o * u * d - r * p],
406
+ [o * p * d - r * u, o * u * d + r * p, o * d * d + a]
407
407
  ], N = [
408
408
  w[0][0] * e.x + w[0][1] * e.y + w[0][2] * e.z,
409
409
  w[1][0] * e.x + w[1][1] * e.y + w[1][2] * e.z,
@@ -579,8 +579,8 @@ class Q {
579
579
  * earth centre.
580
580
  */
581
581
  toCartesian() {
582
- const t = this.datum ? this.datum.ellipsoid : this.referenceFrame ? this.referenceFrame.ellipsoid : B.WGS84, n = this.lat.toRadians(), s = this.lon.toRadians(), e = this.height, { a: i, f: r } = t, a = Math.sin(n), o = Math.cos(n), f = Math.sin(s), c = Math.cos(s), u = 2 * r - r * r, w = i / Math.sqrt(1 - u * a * a), N = (w + e) * o * c, g = (w + e) * o * f, d = (w * (1 - u) + e) * a;
583
- return new ft(N, g, d);
582
+ const t = this.datum ? this.datum.ellipsoid : this.referenceFrame ? this.referenceFrame.ellipsoid : B.WGS84, n = this.lat.toRadians(), s = this.lon.toRadians(), e = this.height, { a: i, f: r } = t, a = Math.sin(n), o = Math.cos(n), p = Math.sin(s), u = Math.cos(s), d = 2 * r - r * r, w = i / Math.sqrt(1 - d * a * a), N = (w + e) * o * u, g = (w + e) * o * p, f = (w * (1 - d) + e) * a;
583
+ return new ft(N, g, f);
584
584
  }
585
585
  /**
586
586
  * Checks if another point is equal to ‘this’ point.
@@ -659,8 +659,8 @@ class ft extends $ {
659
659
  */
660
660
  toLatLon(t = B.WGS84) {
661
661
  if (!t || !t.a) throw new TypeError(`invalid ellipsoid ‘${t}’`);
662
- const { x: n, y: s, z: e } = this, { a: i, b: r, f: a } = t, o = 2 * a - a * a, f = o / (1 - o), c = Math.sqrt(n * n + s * s), u = Math.sqrt(c * c + e * e), w = r * e / (i * c) * (1 + f * r / u), N = w / Math.sqrt(1 + w * w), g = N / w, d = isNaN(g) ? 0 : Math.atan2(e + f * r * N * N * N, c - o * i * g * g * g), p = Math.atan2(s, n), m = Math.sin(d), y = Math.cos(d), b = i / Math.sqrt(1 - o * m * m), S = c * y + e * m - i * i / b;
663
- return new Q(d.toDegrees(), p.toDegrees(), S);
662
+ const { x: n, y: s, z: e } = this, { a: i, b: r, f: a } = t, o = 2 * a - a * a, p = o / (1 - o), u = Math.sqrt(n * n + s * s), d = Math.sqrt(u * u + e * e), w = r * e / (i * u) * (1 + p * r / d), N = w / Math.sqrt(1 + w * w), g = N / w, f = isNaN(g) ? 0 : Math.atan2(e + p * r * N * N * N, u - o * i * g * g * g), c = Math.atan2(s, n), m = Math.sin(f), y = Math.cos(f), b = i / Math.sqrt(1 - o * m * m), S = u * y + e * m - i * i / b;
663
+ return new Q(f.toDegrees(), c.toDegrees(), S);
664
664
  }
665
665
  /**
666
666
  * Returns a string representation of ‘this’ cartesian point.
@@ -899,7 +899,7 @@ class lt extends ft {
899
899
  * @returns {Cartesian} Transformed point.
900
900
  */
901
901
  applyTransform(t) {
902
- const { x: n, y: s, z: e } = this, i = t[0], r = t[1], a = t[2], o = t[3] / 1e6 + 1, f = (t[4] / 3600).toRadians(), c = (t[5] / 3600).toRadians(), u = (t[6] / 3600).toRadians(), w = i + n * o - s * u + e * c, N = r + n * u + s * o - e * f, g = a - n * c + s * f + e * o;
902
+ const { x: n, y: s, z: e } = this, i = t[0], r = t[1], a = t[2], o = t[3] / 1e6 + 1, p = (t[4] / 3600).toRadians(), u = (t[5] / 3600).toRadians(), d = (t[6] / 3600).toRadians(), w = i + n * o - s * d + e * u, N = r + n * d + s * o - e * p, g = a - n * u + s * p + e * o;
903
903
  return new lt(w, N, g);
904
904
  }
905
905
  }
@@ -951,15 +951,15 @@ class pt {
951
951
  * const latlong = grid.toLatLon(); // 48°51′29.52″N, 002°17′40.20″E
952
952
  */
953
953
  toLatLon() {
954
- const { zone: t, hemisphere: n } = this, s = 5e5, e = 1e7, { a: i, f: r } = this.datum.ellipsoid, a = 0.9996, o = this.easting - s, f = n == "S" ? this.northing - e : this.northing, c = Math.sqrt(r * (2 - r)), u = r / (2 - r), w = u * u, N = u * w, g = u * N, d = u * g, p = u * d, m = i / (1 + u) * (1 + 1 / 4 * w + 1 / 64 * g + 1 / 256 * p), y = o / (a * m), b = f / (a * m), S = [
954
+ const { zone: t, hemisphere: n } = this, s = 5e5, e = 1e7, { a: i, f: r } = this.datum.ellipsoid, a = 0.9996, o = this.easting - s, p = n == "S" ? this.northing - e : this.northing, u = Math.sqrt(r * (2 - r)), d = r / (2 - r), w = d * d, N = d * w, g = d * N, f = d * g, c = d * f, m = i / (1 + d) * (1 + 1 / 4 * w + 1 / 64 * g + 1 / 256 * c), y = o / (a * m), b = p / (a * m), S = [
955
955
  null,
956
956
  // note β is one-based array (6th order Krüger expressions)
957
- 1 / 2 * u - 2 / 3 * w + 37 / 96 * N - 1 / 360 * g - 81 / 512 * d + 96199 / 604800 * p,
958
- 1 / 48 * w + 1 / 15 * N - 437 / 1440 * g + 46 / 105 * d - 1118711 / 3870720 * p,
959
- 17 / 480 * N - 37 / 840 * g - 209 / 4480 * d + 5569 / 90720 * p,
960
- 4397 / 161280 * g - 11 / 504 * d - 830251 / 7257600 * p,
961
- 4583 / 161280 * d - 108847 / 3991680 * p,
962
- 20648693 / 638668800 * p
957
+ 1 / 2 * d - 2 / 3 * w + 37 / 96 * N - 1 / 360 * g - 81 / 512 * f + 96199 / 604800 * c,
958
+ 1 / 48 * w + 1 / 15 * N - 437 / 1440 * g + 46 / 105 * f - 1118711 / 3870720 * c,
959
+ 17 / 480 * N - 37 / 840 * g - 209 / 4480 * f + 5569 / 90720 * c,
960
+ 4397 / 161280 * g - 11 / 504 * f - 830251 / 7257600 * c,
961
+ 4583 / 161280 * f - 108847 / 3991680 * c,
962
+ 20648693 / 638668800 * c
963
963
  ];
964
964
  let L = b;
965
965
  for (let l = 1; l <= 6; l++) L -= S[l] * Math.sin(2 * l * b) * Math.cosh(2 * l * y);
@@ -968,15 +968,15 @@ class pt {
968
968
  const G = Math.sinh(P), v = Math.sin(L), F = Math.cos(L), T = v / Math.sqrt(G * G + F * F);
969
969
  let W = null, E = T;
970
970
  do {
971
- const l = Math.sinh(c * Math.atanh(c * E / Math.sqrt(1 + E * E))), st = E * Math.sqrt(1 + l * l) - l * Math.sqrt(1 + E * E);
972
- W = (T - st) / Math.sqrt(1 + st * st) * (1 + (1 - c * c) * E * E) / ((1 - c * c) * Math.sqrt(1 + E * E)), E += W;
971
+ const l = Math.sinh(u * Math.atanh(u * E / Math.sqrt(1 + E * E))), st = E * Math.sqrt(1 + l * l) - l * Math.sqrt(1 + E * E);
972
+ W = (T - st) / Math.sqrt(1 + st * st) * (1 + (1 - u * u) * E * E) / ((1 - u * u) * Math.sqrt(1 + E * E)), E += W;
973
973
  } while (Math.abs(W) > 1e-12);
974
974
  const q = E, U = Math.atan(q);
975
975
  let O = Math.atan2(G, F), C = 1;
976
976
  for (let l = 1; l <= 6; l++) C -= 2 * l * S[l] * Math.cos(2 * l * b) * Math.cosh(2 * l * y);
977
977
  let z = 0;
978
978
  for (let l = 1; l <= 6; l++) z += 2 * l * S[l] * Math.sin(2 * l * b) * Math.sinh(2 * l * y);
979
- const k = Math.atan(Math.tan(L) * Math.tanh(P)), j = Math.atan2(z, C), A = k + j, X = Math.sin(U), H = Math.sqrt(1 - c * c * X * X) * Math.sqrt(1 + q * q) * Math.sqrt(G * G + F * F), Y = m / i / Math.sqrt(C * C + z * z), J = a * H * Y, Z = ((t - 1) * 6 - 180 + 3).toRadians();
979
+ const k = Math.atan(Math.tan(L) * Math.tanh(P)), j = Math.atan2(z, C), A = k + j, X = Math.sin(U), H = Math.sqrt(1 - u * u * X * X) * Math.sqrt(1 + q * q) * Math.sqrt(G * G + F * F), Y = m / i / Math.sqrt(C * C + z * z), J = a * H * Y, Z = ((t - 1) * 6 - 180 + 3).toRadians();
980
980
  O += Z;
981
981
  const V = Number(U.toDegrees().toFixed(14)), tt = Number(O.toDegrees().toFixed(14)), nt = Number(A.toDegrees().toFixed(9)), et = Number(J.toFixed(12)), I = new K(V, tt, 0, this.datum);
982
982
  return I.convergence = nt, I.scale = et, I;
@@ -1046,11 +1046,11 @@ class K extends D {
1046
1046
  let e = t || Math.floor((this.lon + 180) / 6) + 1, i = ((e - 1) * 6 - 180 + 3).toRadians();
1047
1047
  const a = "CDEFGHJKLMNPQRSTUVWXX".charAt(Math.floor(this.lat / 8 + 10));
1048
1048
  e == 31 && a == "V" && this.lon >= 3 && (e++, i += 6 .toRadians()), e == 32 && a == "X" && this.lon < 9 && (e--, i -= 6 .toRadians()), e == 32 && a == "X" && this.lon >= 9 && (e++, i += 6 .toRadians()), e == 34 && a == "X" && this.lon < 21 && (e--, i -= 6 .toRadians()), e == 34 && a == "X" && this.lon >= 21 && (e++, i += 6 .toRadians()), e == 36 && a == "X" && this.lon < 33 && (e--, i -= 6 .toRadians()), e == 36 && a == "X" && this.lon >= 33 && (e++, i += 6 .toRadians());
1049
- const o = this.lat.toRadians(), f = this.lon.toRadians() - i, c = this.datum ? this.datum.ellipsoid : D.ellipsoids.WGS84, { a: u, f: w } = c, N = 0.9996, g = Math.sqrt(w * (2 - w)), d = w / (2 - w), p = d * d, m = d * p, y = d * m, b = d * y, S = d * b, L = Math.cos(f), P = Math.sin(f), G = Math.tan(f), v = Math.tan(o), F = Math.sinh(g * Math.atanh(g * v / Math.sqrt(1 + v * v))), T = v * Math.sqrt(1 + F * F) - F * Math.sqrt(1 + v * v), W = Math.atan2(T, L), E = Math.asinh(P / Math.sqrt(T * T + L * L)), q = u / (1 + d) * (1 + 1 / 4 * p + 1 / 64 * y + 1 / 256 * S), U = [
1049
+ const o = this.lat.toRadians(), p = this.lon.toRadians() - i, u = this.datum ? this.datum.ellipsoid : D.ellipsoids.WGS84, { a: d, f: w } = u, N = 0.9996, g = Math.sqrt(w * (2 - w)), f = w / (2 - w), c = f * f, m = f * c, y = f * m, b = f * y, S = f * b, L = Math.cos(p), P = Math.sin(p), G = Math.tan(p), v = Math.tan(o), F = Math.sinh(g * Math.atanh(g * v / Math.sqrt(1 + v * v))), T = v * Math.sqrt(1 + F * F) - F * Math.sqrt(1 + v * v), W = Math.atan2(T, L), E = Math.asinh(P / Math.sqrt(T * T + L * L)), q = d / (1 + f) * (1 + 1 / 4 * c + 1 / 64 * y + 1 / 256 * S), U = [
1050
1050
  null,
1051
1051
  // note α is one-based array (6th order Krüger expressions)
1052
- 1 / 2 * d - 2 / 3 * p + 5 / 16 * m + 41 / 180 * y - 127 / 288 * b + 7891 / 37800 * S,
1053
- 13 / 48 * p - 3 / 5 * m + 557 / 1440 * y + 281 / 630 * b - 1983433 / 1935360 * S,
1052
+ 1 / 2 * f - 2 / 3 * c + 5 / 16 * m + 41 / 180 * y - 127 / 288 * b + 7891 / 37800 * S,
1053
+ 13 / 48 * c - 3 / 5 * m + 557 / 1440 * y + 281 / 630 * b - 1983433 / 1935360 * S,
1054
1054
  61 / 240 * m - 103 / 140 * y + 15061 / 26880 * b + 167603 / 181440 * S,
1055
1055
  49561 / 161280 * y - 179 / 168 * b + 6601661 / 7257600 * S,
1056
1056
  34729 / 80640 * b - 3418889 / 1995840 * S,
@@ -1064,7 +1064,7 @@ class K extends D {
1064
1064
  for (let l = 1; l <= 6; l++) j += 2 * l * U[l] * Math.cos(2 * l * W) * Math.cosh(2 * l * E);
1065
1065
  let A = 0;
1066
1066
  for (let l = 1; l <= 6; l++) A += 2 * l * U[l] * Math.sin(2 * l * W) * Math.sinh(2 * l * E);
1067
- const X = Math.atan(T / Math.sqrt(1 + T * T) * G), H = Math.atan2(A, j), Y = X + H, J = Math.sin(o), Z = Math.sqrt(1 - g * g * J * J) * Math.sqrt(1 + v * v) / Math.sqrt(T * T + L * L), V = q / u * Math.sqrt(j * j + A * A), tt = N * Z * V;
1067
+ const X = Math.atan(T / Math.sqrt(1 + T * T) * G), H = Math.atan2(A, j), Y = X + H, J = Math.sin(o), Z = Math.sqrt(1 - g * g * J * J) * Math.sqrt(1 + v * v) / Math.sqrt(T * T + L * L), V = q / d * Math.sqrt(j * j + A * A), tt = N * Z * V;
1068
1068
  z = z + n, k < 0 && (k = k + s), z = Number(z.toFixed(9)), k = Number(k.toFixed(9));
1069
1069
  const nt = Number(Y.toDegrees().toFixed(9)), et = Number(tt.toFixed(12)), I = this.lat >= 0 ? "N" : "S";
1070
1070
  return new pt(e, I, z, k, this.datum, nt, et, !!t);
@@ -1136,14 +1136,14 @@ class _ {
1136
1136
  if (!t) throw new Error(`invalid MGRS grid reference ‘${t}’`);
1137
1137
  if (!t.trim().match(/\s/)) {
1138
1138
  if (!Number(t.slice(0, 2))) throw new Error(`invalid MGRS grid reference ‘${t}’`);
1139
- let u = t.trim().slice(5);
1140
- u = u.slice(0, u.length / 2) + " " + u.slice(-u.length / 2), t = t.slice(0, 3) + " " + t.slice(3, 5) + " " + u;
1139
+ let d = t.trim().slice(5);
1140
+ d = d.slice(0, d.length / 2) + " " + d.slice(-d.length / 2), t = t.slice(0, 3) + " " + t.slice(3, 5) + " " + d;
1141
1141
  }
1142
1142
  const n = t.match(/\S+/g);
1143
1143
  if (n == null || n.length != 4) throw new Error(`invalid MGRS grid reference ‘${t}’`);
1144
1144
  const s = n[0], e = s.slice(0, 2), i = s.slice(2, 3), r = n[1], a = r.slice(0, 1), o = r.slice(1, 2);
1145
- let f = n[2], c = n[3];
1146
- return f = f.length >= 5 ? f : (f + "00000").slice(0, 5), c = c.length >= 5 ? c : (c + "00000").slice(0, 5), new _(e, i, a, o, f, c);
1145
+ let p = n[2], u = n[3];
1146
+ return p = p.length >= 5 ? p : (p + "00000").slice(0, 5), u = u.length >= 5 ? u : (u + "00000").slice(0, 5), new _(e, i, a, o, p, u);
1147
1147
  }
1148
1148
  /**
1149
1149
  * Returns a string representation of an MGRS grid reference.
@@ -1169,8 +1169,8 @@ class _ {
1169
1169
  */
1170
1170
  toString(t = 10) {
1171
1171
  if (![2, 4, 6, 8, 10].includes(Number(t))) throw new RangeError(`invalid precision ‘${t}’`);
1172
- const { zone: n, band: s, e100k: e, n100k: i, easting: r, northing: a } = this, o = Math.floor(r / Math.pow(10, 5 - t / 2)), f = Math.floor(a / Math.pow(10, 5 - t / 2)), c = n.toString().padStart(2, "0"), u = o.toString().padStart(t / 2, "0"), w = f.toString().padStart(t / 2, "0");
1173
- return `${c}${s} ${e}${i} ${u} ${w}`;
1172
+ const { zone: n, band: s, e100k: e, n100k: i, easting: r, northing: a } = this, o = Math.floor(r / Math.pow(10, 5 - t / 2)), p = Math.floor(a / Math.pow(10, 5 - t / 2)), u = n.toString().padStart(2, "0"), d = o.toString().padStart(t / 2, "0"), w = p.toString().padStart(t / 2, "0");
1173
+ return `${u}${s} ${e}${i} ${d} ${w}`;
1174
1174
  }
1175
1175
  }
1176
1176
  class ht extends pt {
@@ -1186,8 +1186,8 @@ class ht extends pt {
1186
1186
  */
1187
1187
  toMgrs() {
1188
1188
  const t = this.zone, n = this.toLatLon(), s = rt.charAt(Math.floor(n.lat / 8 + 10)), e = Math.floor(this.easting / 1e5), i = ot[(t - 1) % 3].charAt(e - 1), r = Math.floor(this.northing / 1e5) % 20, a = at[(t - 1) % 2].charAt(r);
1189
- let o = this.easting % 1e5, f = this.northing % 1e5;
1190
- return o = Number(o.toFixed(6)), f = Number(f.toFixed(6)), new _(t, s, i, a, o, f);
1189
+ let o = this.easting % 1e5, p = this.northing % 1e5;
1190
+ return o = Number(o.toFixed(6)), p = Number(p.toFixed(6)), new _(t, s, i, a, o, p);
1191
1191
  }
1192
1192
  }
1193
1193
  class wt extends K {
@@ -1230,16 +1230,16 @@ function Nt({
1230
1230
  });
1231
1231
  ct(() => (o(M[1], M[0]), () => {
1232
1232
  }), [M]), ct(() => {
1233
- const { latitude: d, longitude: p } = e.latLon;
1234
- return t && (d !== M[1] || p !== M[0]) && t({
1235
- latitude: d,
1236
- longitude: p
1233
+ const { latitude: f, longitude: c } = e.latLon;
1234
+ return t && (f !== M[1] || c !== M[0]) && t({
1235
+ latitude: f,
1236
+ longitude: c
1237
1237
  }), () => {
1238
1238
  };
1239
1239
  }, [e]);
1240
- const o = (d, p) => {
1240
+ const o = (f, c) => {
1241
1241
  try {
1242
- const m = new wt(d, p), y = m.toUtm(), b = y.toMgrs(), S = m.toString("dms");
1242
+ const m = new wt(f, c), y = m.toUtm(), b = y.toMgrs(), S = m.toString("dms");
1243
1243
  i({
1244
1244
  latLon: {
1245
1245
  latitude: m.latitude,
@@ -1249,7 +1249,8 @@ function Nt({
1249
1249
  mgrs: b.toString(),
1250
1250
  dms: S
1251
1251
  });
1252
- } catch {
1252
+ } catch (m) {
1253
+ console.log("error", m);
1253
1254
  }
1254
1255
  };
1255
1256
  return {
@@ -1259,42 +1260,45 @@ function Nt({
1259
1260
  latLonStr: r
1260
1261
  },
1261
1262
  action: {
1262
- onChangeFormat: (d) => {
1263
- s(d.target.value);
1263
+ onChangeFormat: (f) => {
1264
+ s(f.target.value);
1264
1265
  },
1265
- onChangeLat: (d) => {
1266
- let p = d.target.value;
1267
- p = p.replace(",", "."), a({
1268
- latitude: p,
1266
+ onChangeLat: (f) => {
1267
+ let c = f.target.value;
1268
+ c = c.replace(",", "."), a({
1269
+ latitude: c,
1269
1270
  longitude: r.longitude
1270
- }), o(Number(p), e.latLon.longitude);
1271
+ }), o(Number(c), e.latLon.longitude);
1271
1272
  },
1272
- onChangeLon: (d) => {
1273
- let p = d.target.value;
1274
- p = p.replace(",", "."), a({
1273
+ onChangeLon: (f) => {
1274
+ let c = f.target.value;
1275
+ c = c.replace(",", "."), a({
1275
1276
  latitude: r.latitude,
1276
- longitude: p
1277
- }), o(e.latLon.latitude, Number(p));
1277
+ longitude: c
1278
+ }), o(e.latLon.latitude, Number(c));
1278
1279
  },
1279
- onChangeDms: (d) => {
1280
+ onChangeDms: (f) => {
1280
1281
  try {
1281
- const p = d.target.value.split(","), m = p[0].trim(), y = p[1].trim(), b = h.parse(m), S = h.parse(y);
1282
+ const c = f.target.value.split(","), m = c[0].trim(), y = c[1].trim(), b = h.parse(m), S = h.parse(y);
1282
1283
  o(b, S);
1283
- } catch {
1284
+ } catch (c) {
1285
+ console.log("error", c);
1284
1286
  }
1285
1287
  },
1286
- onChangeMgrs: (d) => {
1288
+ onChangeMgrs: (f) => {
1287
1289
  try {
1288
- const m = _.parse(d.target.value).toUtm().toLatLon();
1290
+ const m = _.parse(f.target.value).toUtm().toLatLon();
1289
1291
  o(m.latitude, m.longitude);
1290
- } catch {
1292
+ } catch (c) {
1293
+ console.log("error", c);
1291
1294
  }
1292
1295
  },
1293
- onChangeUtm: (d) => {
1296
+ onChangeUtm: (f) => {
1294
1297
  try {
1295
- const m = ht.parse(d.target.value).toLatLon();
1298
+ const m = ht.parse(f.target.value).toLatLon();
1296
1299
  o(m.latitude, m.longitude);
1297
- } catch {
1300
+ } catch (c) {
1301
+ console.log("error", c);
1298
1302
  }
1299
1303
  }
1300
1304
  }
@@ -1,77 +1,78 @@
1
1
  import u from "react";
2
- import { parse as a, convert as c } from "../../map/helpers/wkt.js";
2
+ import { parse as a, convert as l } from "../../map/helpers/wkt.js";
3
3
  import m from "lodash";
4
4
  function M({ value: p, onChange: i }) {
5
- const s = u.useMemo(() => {
6
- let e = a(p);
7
- return m.isArray(e) || (e = [e]), e;
5
+ const r = u.useMemo(() => {
6
+ let o = a(p);
7
+ return m.isArray(o) || (o = [o]), o;
8
8
  }, [p]);
9
9
  return {
10
10
  state: {
11
- parsed: s
11
+ parsed: r
12
12
  },
13
13
  action: {
14
- onCoordinateInputChange: (e) => (l) => {
14
+ onCoordinateInputChange: (o) => (s) => {
15
15
  if (i) {
16
- let o, t = [...s];
17
- t[e] = {
16
+ let e;
17
+ const t = [...r];
18
+ t[o] = {
18
19
  type: "Point",
19
- coordinates: [l.longitude, l.latitude]
20
- }, t.length > 1 ? o = c({
20
+ coordinates: [s.longitude, s.latitude]
21
+ }, t.length > 1 ? e = l({
21
22
  type: "GeometryCollection",
22
23
  geometries: t
23
- }) : o = c(t[0]), i(o);
24
+ }) : e = l(t[0]), i(e);
24
25
  }
25
26
  },
26
- onPolygonInputChange: (e, l, o) => (t) => {
27
+ onPolygonInputChange: (o, s, e) => (t) => {
27
28
  if (i) {
28
- let n = [...s], r = [...e[0]];
29
- r[o] = [t.longitude, t.latitude], n[l] = {
29
+ const n = [...r], c = [...o[0]];
30
+ c[e] = [t.longitude, t.latitude], n[s] = {
30
31
  type: "Polygon",
31
- coordinates: [r]
32
+ coordinates: [c]
32
33
  };
33
- const g = c({
34
+ const g = l({
34
35
  type: "GeometryCollection",
35
36
  geometries: n
36
37
  });
37
38
  i(g);
38
39
  }
39
40
  },
40
- onMultiPointInputChange: (e, l, o) => (t) => {
41
+ onMultiPointInputChange: (o, s, e) => (t) => {
41
42
  if (i) {
42
- let n = [...s], r = [...e];
43
- r[o] = [t.longitude, t.latitude], n[l] = {
43
+ const n = [...r], c = [...o];
44
+ c[e] = [t.longitude, t.latitude], n[s] = {
44
45
  type: "MultiPoint",
45
- coordinates: r
46
+ coordinates: c
46
47
  };
47
- const g = c({
48
+ const g = l({
48
49
  type: "GeometryCollection",
49
50
  geometries: n
50
51
  });
51
52
  i(g);
52
53
  }
53
54
  },
54
- onLineStringInputChange: (e, l, o) => (t) => {
55
+ onLineStringInputChange: (o, s, e) => (t) => {
55
56
  if (i) {
56
- let n = [...s], r = [...e];
57
- r[o] = [t.longitude, t.latitude], n[l] = {
57
+ const n = [...r], c = [...o];
58
+ c[e] = [t.longitude, t.latitude], n[s] = {
58
59
  type: "LineString",
59
- coordinates: r
60
+ coordinates: c
60
61
  };
61
- const g = c({
62
+ const g = l({
62
63
  type: "GeometryCollection",
63
64
  geometries: n
64
65
  });
65
66
  i(g);
66
67
  }
67
68
  },
68
- onRemoveItem: (e) => (l) => {
69
- if (l.stopPropagation(), i) {
70
- let o = [...s];
71
- o.splice(e, 1);
72
- const n = c({
69
+ onRemoveItem: (o) => (s) => {
70
+ if (s.stopPropagation(), i) {
71
+ const e = [...r];
72
+ e.splice(o, 1);
73
+ const n = l({
73
74
  type: "GeometryCollection",
74
- geometries: o
75
+ geometries: e
75
76
  });
76
77
  i(n);
77
78
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { VerticalButton as m, MiniButton as c } from "./styled.js";
3
- import { I as e } from "../../IconButton-D8bwME9t.js";
3
+ import { I as e } from "../../IconButton-BaiyAtmS.js";
4
4
  const a = ({
5
5
  variant: i = "default",
6
6
  startIcon: f,