@local-logic/maps 0.0.9 → 0.0.11

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 (80) hide show
  1. package/dist/IconBase.es-rM5tt24D.js +48 -0
  2. package/dist/{index-BZ2605rA.js → index-9RZYMoMG.js} +1 -1
  3. package/dist/index-B9QF7ewJ.js +73 -0
  4. package/dist/index-BCa658u4.js +24 -0
  5. package/dist/index-BMvwx9_l.js +96 -0
  6. package/dist/index-BOBkPCX5.js +772 -0
  7. package/dist/index-BOuko7CL.js +32 -0
  8. package/dist/index-BdXay-zF.js +62 -0
  9. package/dist/index-Bn_2qA7h.js +65 -0
  10. package/dist/{index-CPq7k7F4.js → index-BsnsAUt5.js} +1 -1
  11. package/dist/index-CNxLnZ8O.js +23 -0
  12. package/dist/{index-B43MtiHH.js → index-D5uhfwEH.js} +10 -9
  13. package/dist/index-DJ4SJ9IL.js +53 -0
  14. package/dist/index-DaEKTD5_.js +65 -0
  15. package/dist/index-Do_dW76Q.js +23 -0
  16. package/dist/index-Dyy8UNMs.js +50 -0
  17. package/dist/index.es.js +1 -1
  18. package/dist/{index.modern-EsUgbhzI.js → index.modern-CLRs8JwI.js} +7 -7
  19. package/dist/index.umd.js +134 -146
  20. package/dist/src/components/Map/Root/BaseMap/Google/index.d.ts.map +1 -1
  21. package/dist/src/components/Map/Root/BaseMap/Mapbox/index.d.ts.map +1 -1
  22. package/dist/src/components/Map/Root/BaseMap/Maptiler/index.d.ts.map +1 -1
  23. package/dist/src/components/Map/Root/BaseMap/index.d.ts.map +1 -1
  24. package/dist/src/components/Map/Root/CenterPin/Google/index.d.ts +4 -0
  25. package/dist/src/components/Map/Root/CenterPin/Google/index.d.ts.map +1 -0
  26. package/dist/src/components/Map/Root/CenterPin/Mapbox/index.d.ts +4 -0
  27. package/dist/src/components/Map/Root/CenterPin/Mapbox/index.d.ts.map +1 -0
  28. package/dist/src/components/Map/Root/CenterPin/Maptiler/index.d.ts +4 -0
  29. package/dist/src/components/Map/Root/CenterPin/Maptiler/index.d.ts.map +1 -0
  30. package/dist/src/components/Map/Root/CenterPin/index.d.ts +4 -0
  31. package/dist/src/components/Map/Root/CenterPin/index.d.ts.map +1 -0
  32. package/dist/src/components/Map/Root/CenterPin/styles.d.ts +4 -0
  33. package/dist/src/components/Map/Root/CenterPin/styles.d.ts.map +1 -0
  34. package/dist/src/components/Map/Root/CenterPin/types.d.ts +6 -0
  35. package/dist/src/components/Map/Root/CenterPin/types.d.ts.map +1 -0
  36. package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts +4 -3
  37. package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts.map +1 -1
  38. package/dist/src/components/Map/Root/Markers/Cluster/styles.d.ts +2 -1
  39. package/dist/src/components/Map/Root/Markers/Cluster/styles.d.ts.map +1 -1
  40. package/dist/src/components/Map/Root/Markers/Google/index.d.ts +1 -1
  41. package/dist/src/components/Map/Root/Markers/Google/index.d.ts.map +1 -1
  42. package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts +1 -1
  43. package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts.map +1 -1
  44. package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts +1 -1
  45. package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts.map +1 -1
  46. package/dist/src/components/Map/Root/Markers/MarkerIcon/index.d.ts +6 -0
  47. package/dist/src/components/Map/Root/Markers/MarkerIcon/index.d.ts.map +1 -0
  48. package/dist/src/components/Map/Root/Markers/index.d.ts +1 -1
  49. package/dist/src/components/Map/Root/Markers/index.d.ts.map +1 -1
  50. package/dist/src/components/Map/Root/Markers/styles.d.ts +2 -4
  51. package/dist/src/components/Map/Root/Markers/styles.d.ts.map +1 -1
  52. package/dist/src/components/Map/Root/Markers/types.d.ts +18 -9
  53. package/dist/src/components/Map/Root/Markers/types.d.ts.map +1 -1
  54. package/dist/src/components/Map/Root/Popup/Mapbox/index.d.ts.map +1 -1
  55. package/dist/src/components/Map/Root/Popup/Maptiler/index.d.ts.map +1 -1
  56. package/dist/src/components/Map/Root/constants.d.ts +3 -0
  57. package/dist/src/components/Map/Root/constants.d.ts.map +1 -1
  58. package/dist/src/components/Map/Root/context.d.ts +2 -0
  59. package/dist/src/components/Map/Root/context.d.ts.map +1 -1
  60. package/dist/src/components/Map/Root/index.d.ts +1 -0
  61. package/dist/src/components/Map/Root/index.d.ts.map +1 -1
  62. package/dist/src/components/Map/Root/types.d.ts +10 -0
  63. package/dist/src/components/Map/Root/types.d.ts.map +1 -1
  64. package/dist/src/components/Map/index.d.ts +2 -2
  65. package/dist/src/components/Map/index.d.ts.map +1 -1
  66. package/dist/src/components/Map/index.stories.d.ts.map +1 -1
  67. package/dist/src/components/Map/storybook-data.d.ts.map +1 -1
  68. package/dist/src/index.d.ts.map +1 -1
  69. package/dist/style.css +24 -1
  70. package/dist/styles-D2MYaLhP.js +47 -0
  71. package/package.json +5 -3
  72. package/dist/index-92HhWupr.js +0 -29
  73. package/dist/index-BF2kb4Y-.js +0 -42
  74. package/dist/index-C5-_i-6M.js +0 -64
  75. package/dist/index-CXjxZmYt.js +0 -144
  76. package/dist/index-CY0to_1B.js +0 -676
  77. package/dist/index-ChwN5abO.js +0 -29
  78. package/dist/index-CrIFr9oc.js +0 -47
  79. package/dist/index-D5-2anzJ.js +0 -29
  80. package/dist/index-J1MKzGEM.js +0 -31
@@ -0,0 +1,32 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { P as u } from "./logo-control-NE-LlsRy.js";
3
+ import "react";
4
+ import { c as a } from "./styles-uPzJnzVS.js";
5
+ function c({
6
+ latitude: e,
7
+ longitude: p,
8
+ anchor: r,
9
+ offset: t = [0, -35],
10
+ onClose: n,
11
+ children: f
12
+ }) {
13
+ return typeof e > "u" || typeof p > "u" ? null : /* @__PURE__ */ o(
14
+ u,
15
+ {
16
+ className: "maplibre-popup",
17
+ focusAfterOpen: !0,
18
+ latitude: e,
19
+ longitude: p,
20
+ anchor: r,
21
+ offset: t,
22
+ onClose: n,
23
+ closeButton: !1,
24
+ closeOnMove: !0,
25
+ children: /* @__PURE__ */ o("div", { className: a, children: f })
26
+ },
27
+ "maplibre-popup"
28
+ );
29
+ }
30
+ export {
31
+ c as default
32
+ };
@@ -0,0 +1,62 @@
1
+ import { jsxs as u, jsx as s } from "react/jsx-runtime";
2
+ import { useEffect as x } from "react";
3
+ import { u as L, a as c } from "./index.modern-CLRs8JwI.js";
4
+ import { u as b, M as d } from "./index-BOBkPCX5.js";
5
+ import { C as y, c as E, M as O } from "./index-BMvwx9_l.js";
6
+ function N({
7
+ clusters: n,
8
+ colors: e,
9
+ clusterIcon: M,
10
+ markerBounds: p,
11
+ markerBoundsPadding: a,
12
+ onClick: m
13
+ }) {
14
+ const r = L(), { zoom: g } = b();
15
+ x(() => {
16
+ if (r && p) {
17
+ const [t, f, i, o] = p;
18
+ r.fitBounds({
19
+ south: t - a.bottom,
20
+ west: f - a.left,
21
+ north: i + a.top,
22
+ east: o + a.right
23
+ });
24
+ }
25
+ }, [r, p, a]);
26
+ const h = (t) => () => {
27
+ m == null || m(t);
28
+ };
29
+ return n == null ? void 0 : n.map((t, f) => {
30
+ const i = t.geometry.coordinates[0], o = t.geometry.coordinates[1];
31
+ return /* @__PURE__ */ u(
32
+ c,
33
+ {
34
+ position: {
35
+ lat: o,
36
+ lng: i
37
+ },
38
+ onClick: h(t),
39
+ children: [
40
+ t.properties.cluster && /* @__PURE__ */ s(y, { colors: e, icon: M }),
41
+ !t.properties.cluster && /* @__PURE__ */ s(
42
+ "div",
43
+ {
44
+ className: E,
45
+ style: {
46
+ "--background": e == null ? void 0 : e.background,
47
+ "--fill": e == null ? void 0 : e.fill
48
+ },
49
+ "data-is-cluster": !!t.properties.cluster,
50
+ "data-is-zoomed-out": g - 1 < d + 1,
51
+ children: /* @__PURE__ */ s(O, { icon: t.properties.icon })
52
+ }
53
+ )
54
+ ]
55
+ },
56
+ `map-marker-${i}-${o}-${f}`
57
+ );
58
+ });
59
+ }
60
+ export {
61
+ N as default
62
+ };
@@ -0,0 +1,65 @@
1
+ import { jsxs as x, jsx as s } from "react/jsx-runtime";
2
+ import { useEffect as c } from "react";
3
+ import { u as h, a as L } from "./logo-control-NE-LlsRy.js";
4
+ import { u as b, M as E } from "./index-BOBkPCX5.js";
5
+ import { C as y, c as O, M as $ } from "./index-BMvwx9_l.js";
6
+ function N({
7
+ clusters: r,
8
+ colors: a,
9
+ clusterIcon: M,
10
+ markerBounds: m,
11
+ markerBoundsPadding: e,
12
+ onClick: p
13
+ }) {
14
+ const { current: f } = h(), { zoom: u } = b();
15
+ c(() => {
16
+ if (f && m) {
17
+ const [t, i, o, n] = m;
18
+ f.fitBounds(
19
+ [
20
+ [i - e.left, t - e.bottom],
21
+ [n + e.right, o + e.top]
22
+ ],
23
+ {
24
+ maxZoom: 17,
25
+ duration: 1e3
26
+ }
27
+ );
28
+ }
29
+ }, [f, m, e]);
30
+ const g = (t) => (i) => {
31
+ i.originalEvent.stopPropagation(), p == null || p(t);
32
+ };
33
+ return r == null ? void 0 : r.map((t, i) => {
34
+ const o = t.geometry.coordinates[0], n = t.geometry.coordinates[1];
35
+ return /* @__PURE__ */ x(
36
+ L,
37
+ {
38
+ anchor: "bottom",
39
+ longitude: o,
40
+ latitude: n,
41
+ onClick: g(t),
42
+ children: [
43
+ t.properties.cluster && /* @__PURE__ */ s(y, { colors: a, icon: M }),
44
+ !t.properties.cluster && /* @__PURE__ */ s(
45
+ "div",
46
+ {
47
+ className: O,
48
+ style: {
49
+ "--background": a == null ? void 0 : a.background,
50
+ "--fill": a == null ? void 0 : a.fill
51
+ },
52
+ "data-is-cluster": !!t.properties.cluster,
53
+ "data-is-zoomed-out": u < E,
54
+ children: /* @__PURE__ */ s($, { icon: t.properties.icon })
55
+ }
56
+ )
57
+ ]
58
+ },
59
+ `map-marker-${o}-${n}-${i}`
60
+ );
61
+ });
62
+ }
63
+ export {
64
+ N as default
65
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as u, Fragment as h } from "react/jsx-runtime";
2
2
  import { useState as i, useContext as P, useEffect as c } from "react";
3
- import { G as M } from "./index.modern-EsUgbhzI.js";
3
+ import { G as M } from "./index.modern-CLRs8JwI.js";
4
4
  import { a as x } from "./utils-YqJg0vBb.js";
5
5
  function f(a, e) {
6
6
  switch (a) {
@@ -0,0 +1,23 @@
1
+ import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
+ import { a } from "./scale-control-CyJd4u6j.js";
3
+ import "react";
4
+ import { c as e, S as n, o as r, i as s } from "./styles-D2MYaLhP.js";
5
+ function d({ marker: t }) {
6
+ return /* @__PURE__ */ o(
7
+ a,
8
+ {
9
+ anchor: "bottom",
10
+ longitude: t.longitude,
11
+ latitude: t.latitude,
12
+ className: e.trim(),
13
+ children: [
14
+ /* @__PURE__ */ i(n, {}),
15
+ /* @__PURE__ */ i(r, { className: s })
16
+ ]
17
+ },
18
+ `center-pin-marker-${t.longitude}-${t.latitude}`
19
+ );
20
+ }
21
+ export {
22
+ d as default
23
+ };
@@ -1,27 +1,28 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { P as a } from "./scale-control-CyJd4u6j.js";
2
+ import { P as s } from "./scale-control-CyJd4u6j.js";
3
3
  import "react";
4
- import { c as s } from "./styles-uPzJnzVS.js";
4
+ import { c as u } from "./styles-uPzJnzVS.js";
5
5
  function l({
6
6
  latitude: o,
7
7
  longitude: e,
8
8
  anchor: r,
9
- offset: f = [0, -35],
10
- onClose: n,
11
- children: t
9
+ offset: n = [0, -35],
10
+ onClose: t,
11
+ children: f
12
12
  }) {
13
13
  return typeof o > "u" || typeof e > "u" ? null : /* @__PURE__ */ p(
14
- a,
14
+ s,
15
15
  {
16
16
  className: "mapbox-popup",
17
17
  focusAfterOpen: !0,
18
18
  latitude: o,
19
19
  longitude: e,
20
20
  anchor: r,
21
- offset: f,
22
- onClose: n,
21
+ offset: n,
22
+ onClose: t,
23
23
  closeButton: !1,
24
- children: /* @__PURE__ */ p("div", { className: s, children: t })
24
+ closeOnMove: !0,
25
+ children: /* @__PURE__ */ p("div", { className: u, children: f })
25
26
  }
26
27
  );
27
28
  }
@@ -0,0 +1,53 @@
1
+ import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
+ import { useEffect as d } from "react";
3
+ import { M as b, N as x, u as M } from "./scale-control-CyJd4u6j.js";
4
+ import { u as m, d as r, a as v } from "./index-BOBkPCX5.js";
5
+ const y = () => {
6
+ const { current: e } = M(), { setBounds: o, setZoom: s } = m(), t = () => {
7
+ var a;
8
+ e && (o((a = e.getBounds()) == null ? void 0 : a.toArray().flat()), s(e.getZoom()));
9
+ };
10
+ return d(() => {
11
+ e && (t(), e.on("move", () => {
12
+ t();
13
+ }));
14
+ }, [e]), null;
15
+ };
16
+ function z({ children: e }) {
17
+ const {
18
+ mapProvider: o,
19
+ center: s,
20
+ zoom: t = r.zoom,
21
+ minZoom: a,
22
+ maxZoom: p,
23
+ pitch: u = r.pitch,
24
+ bearing: l = r.bearing,
25
+ cooperativeGestures: c = r.cooperativeGestures,
26
+ zoomPosition: n
27
+ } = m();
28
+ return o.name !== "mapbox" ? null : /* @__PURE__ */ f(
29
+ b,
30
+ {
31
+ mapboxAccessToken: o.apiKey,
32
+ initialViewState: {
33
+ ...s,
34
+ zoom: t,
35
+ pitch: u,
36
+ bearing: l
37
+ },
38
+ cooperativeGestures: c,
39
+ minZoom: a,
40
+ maxZoom: p,
41
+ mapStyle: `mapbox://styles/${o.theme || v.mapbox}`,
42
+ interactiveLayerIds: ["road-label", "waterway-label"],
43
+ children: [
44
+ /* @__PURE__ */ i(y, {}),
45
+ n && /* @__PURE__ */ i(x, { position: n }),
46
+ e
47
+ ]
48
+ }
49
+ );
50
+ }
51
+ export {
52
+ z as default
53
+ };
@@ -0,0 +1,65 @@
1
+ import { jsxs as g, jsx as s } from "react/jsx-runtime";
2
+ import { useEffect as b } from "react";
3
+ import { u as c, a as h } from "./scale-control-CyJd4u6j.js";
4
+ import { u as L, M as E } from "./index-BOBkPCX5.js";
5
+ import { C as y, c as O, M as $ } from "./index-BMvwx9_l.js";
6
+ function N({
7
+ clusters: m,
8
+ colors: a,
9
+ clusterIcon: M,
10
+ markerBoundsPadding: e,
11
+ markerBounds: p,
12
+ onClick: r
13
+ }) {
14
+ const { current: f } = c(), { zoom: u } = L();
15
+ b(() => {
16
+ if (f && p) {
17
+ const [t, i, o, n] = p;
18
+ f.fitBounds(
19
+ [
20
+ [i - e.left, t - e.bottom],
21
+ [n + e.right, o + e.top]
22
+ ],
23
+ {
24
+ maxZoom: 17,
25
+ duration: 1e3
26
+ }
27
+ );
28
+ }
29
+ }, [f, p, e]);
30
+ const x = (t) => (i) => {
31
+ i.originalEvent.stopPropagation(), r == null || r(t);
32
+ };
33
+ return m == null ? void 0 : m.map((t, i) => {
34
+ const o = t.geometry.coordinates[0], n = t.geometry.coordinates[1];
35
+ return /* @__PURE__ */ g(
36
+ h,
37
+ {
38
+ anchor: "bottom",
39
+ longitude: o,
40
+ latitude: n,
41
+ onClick: x(t),
42
+ children: [
43
+ t.properties.cluster && /* @__PURE__ */ s(y, { colors: a, icon: M }),
44
+ !t.properties.cluster && /* @__PURE__ */ s(
45
+ "div",
46
+ {
47
+ className: O,
48
+ style: {
49
+ "--background": a == null ? void 0 : a.background,
50
+ "--fill": a == null ? void 0 : a.fill
51
+ },
52
+ "data-is-cluster": !!t.properties.cluster,
53
+ "data-is-zoomed-out": u < E,
54
+ children: /* @__PURE__ */ s($, { icon: t.properties.icon })
55
+ }
56
+ )
57
+ ]
58
+ },
59
+ `map-marker-${o}-${n}-${i}`
60
+ );
61
+ });
62
+ }
63
+ export {
64
+ N as default
65
+ };
@@ -0,0 +1,23 @@
1
+ import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
+ import { a as e } from "./logo-control-NE-LlsRy.js";
3
+ import "react";
4
+ import { c as a, S as n, o as r, i as s } from "./styles-D2MYaLhP.js";
5
+ function d({ marker: t }) {
6
+ return /* @__PURE__ */ o(
7
+ e,
8
+ {
9
+ anchor: "bottom",
10
+ longitude: t.longitude,
11
+ latitude: t.latitude,
12
+ className: a.trim(),
13
+ children: [
14
+ /* @__PURE__ */ i(n, {}),
15
+ /* @__PURE__ */ i(r, { className: s })
16
+ ]
17
+ },
18
+ `center-pin-marker-${t.longitude}-${t.latitude}`
19
+ );
20
+ }
21
+ export {
22
+ d as default
23
+ };
@@ -0,0 +1,50 @@
1
+ import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
+ import { useEffect as d } from "react";
3
+ import { M, N as h, u as g } from "./logo-control-NE-LlsRy.js";
4
+ import { u as n, d as a, a as v } from "./index-BOBkPCX5.js";
5
+ const y = () => {
6
+ const { current: t } = g(), { setBounds: e, setZoom: r } = n(), o = () => {
7
+ t && (e(t.getBounds().toArray().flat()), r(t.getZoom()));
8
+ };
9
+ return d(() => {
10
+ t && (o(), t.on("move", () => {
11
+ o();
12
+ }));
13
+ }, [t]), null;
14
+ };
15
+ function B({ children: t }) {
16
+ const {
17
+ mapProvider: e,
18
+ center: r,
19
+ zoom: o = a.zoom,
20
+ minZoom: m,
21
+ maxZoom: p,
22
+ pitch: u = a.pitch,
23
+ bearing: l = a.bearing,
24
+ cooperativeGestures: c = a.cooperativeGestures,
25
+ zoomPosition: s
26
+ } = n();
27
+ return e.name !== "maptiler" ? null : /* @__PURE__ */ f(
28
+ M,
29
+ {
30
+ initialViewState: {
31
+ ...r,
32
+ zoom: o,
33
+ pitch: u,
34
+ bearing: l
35
+ },
36
+ cooperativeGestures: c,
37
+ minZoom: m,
38
+ maxZoom: p,
39
+ mapStyle: `https://api.maptiler.com/maps/${e.theme || v.maptiler}/style.json?key=${e.apiKey}`,
40
+ children: [
41
+ /* @__PURE__ */ i(y, {}),
42
+ s && /* @__PURE__ */ i(h, { position: s }),
43
+ t
44
+ ]
45
+ }
46
+ );
47
+ }
48
+ export {
49
+ B as default
50
+ };
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e as c } from "./index-CY0to_1B.js";
1
+ import { i as c } from "./index-BOBkPCX5.js";
2
2
  export {
3
3
  c as LocalLogicMap
4
4
  };
@@ -1,4 +1,4 @@
1
- import C, { useMemo as P, useContext as z, useEffect as y, useLayoutEffect as W, forwardRef as Y, useState as A, useReducer as Q, useCallback as ee, useRef as N, useImperativeHandle as te, Children as le } from "react";
1
+ import C, { forwardRef as Y, useMemo as P, useContext as z, useEffect as y, useLayoutEffect as W, useImperativeHandle as Q, useState as A, useRef as N, useReducer as ee, useCallback as te, Children as le } from "react";
2
2
  import { createPortal as $ } from "react-dom";
3
3
  import { g as ce } from "./_commonjsHelpers-C6fGbg64.js";
4
4
  var j, J;
@@ -163,12 +163,12 @@ function be(t) {
163
163
  apiKey: o,
164
164
  version: r,
165
165
  libraries: i = []
166
- } = t, a = D(t, he), [s, u] = A(R.loadingStatus), [d, c] = Q((l, g) => l[g.name] ? l : k({}, l, {
166
+ } = t, a = D(t, he), [s, u] = A(R.loadingStatus), [d, c] = ee((l, g) => l[g.name] ? l : k({}, l, {
167
167
  [g.name]: g.value
168
168
  }), {}), p = P(() => i == null ? void 0 : i.join(","), [i]), f = P(() => JSON.stringify(k({
169
169
  apiKey: o,
170
170
  version: r
171
- }, a)), [o, r, a]), m = ee(async (l) => {
171
+ }, a)), [o, r, a]), m = te(async (l) => {
172
172
  var g;
173
173
  if (d[l])
174
174
  return d[l];
@@ -390,14 +390,14 @@ const Ae = () => {
390
390
  }, /* @__PURE__ */ C.createElement("h2", null, "Error: AuthFailure"), /* @__PURE__ */ C.createElement("p", null, "A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ", /* @__PURE__ */ C.createElement("code", null, "APIProvider.apiKey"), " prop is correct. Check the error-message in the console for further details."));
391
391
  };
392
392
  function Pe() {
393
- const [t, e] = A(null), n = ee((o) => e(o), [e]);
393
+ const [t, e] = A(null), n = te((o) => e(o), [e]);
394
394
  return [t, n];
395
395
  }
396
396
  function ie() {
397
397
  return oe() === x.LOADED;
398
398
  }
399
399
  function De() {
400
- const [, t] = Q((e) => e + 1, 0);
400
+ const [, t] = ee((e) => e + 1, 0);
401
401
  return t;
402
402
  }
403
403
  function Te(t, e) {
@@ -705,7 +705,7 @@ const ot = Y((t, e) => {
705
705
  } = t, [a, s] = We(t), u = P(() => a ? {
706
706
  marker: a
707
707
  } : null, [a]);
708
- return te(e, () => a, [a]), s ? /* @__PURE__ */ C.createElement(je.Provider, {
708
+ return Q(e, () => a, [a]), s ? /* @__PURE__ */ C.createElement(je.Provider, {
709
709
  value: u
710
710
  }, $(/* @__PURE__ */ C.createElement(Ze, {
711
711
  anchorPoint: i,
@@ -895,7 +895,7 @@ function Ye(t) {
895
895
  }
896
896
  Y((t, e) => {
897
897
  const n = Ye(t);
898
- return te(e, () => n, [n]), /* @__PURE__ */ C.createElement(C.Fragment, null);
898
+ return Q(e, () => n, [n]), /* @__PURE__ */ C.createElement(C.Fragment, null);
899
899
  });
900
900
  export {
901
901
  nt as A,