@loczer/storefront-sdk 0.244.0 → 0.245.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.
- package/dist/chunks/node_modules/mapbox-gl/dist/mapbox-gl-49Q9GS_J.js +51367 -0
- package/dist/chunks/pkg/ui/dist/Map/{MapContent-CHNOF5Mh.js → MapContent-iwk3GnoZ.js} +2 -2
- package/dist/chunks/pkg/ui/dist/{Map-cFpsMPLn.js → Map-hqJFsVdw.js} +1 -1
- package/dist/components/Map/index.js +1 -1
- package/dist/storefront.css +1 -1
- package/package.json +2 -2
- package/dist/chunks/node_modules/mapbox-gl/dist/mapbox-gl-lLYGzV1T.js +0 -45017
|
@@ -6,7 +6,7 @@ import { classifyMapboxError as o, toSanitizedMapboxError as s } from "./mapboxE
|
|
|
6
6
|
import { Component as c, useEffect as l, useRef as u, useState as d } from "react";
|
|
7
7
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
8
|
//#region ../ui/dist/Map/MapContent.js
|
|
9
|
-
var m = 2, h = 750, g = null, _ = async () => (g ||= Promise.all([import("../../../../node_modules/mapbox-gl/dist/mapbox-gl-
|
|
9
|
+
var m = 2, h = 750, g = null, _ = async () => (g ||= Promise.all([import("../../../../node_modules/mapbox-gl/dist/mapbox-gl-49Q9GS_J.js").then((t) => /* @__PURE__ */ e(t.default, 1)), Promise.resolve({ })]).then(([e]) => e.default ?? e).catch((e) => {
|
|
10
10
|
throw g = null, e;
|
|
11
11
|
}), g), v = ({ mapboxToken: e, initialCenter: c = a, initialZoom: g = 11, markers: v = [], routeGeoJson: y, routeColor: x = n, routeWidth: S = 5, polygonGeoJson: C, routeEndpointsToFetch: w, className: T, style: E, interactive: D = !0, showNavigationControl: O = !0, cooperativeGestures: k = !0, mapStyle: A = "mapbox://styles/pr37capital/cmajla29i003901s9ex09hiw4", onMapLoad: j, onMapMoveOrZoom: M, skeletonColor: N = r }) => {
|
|
12
12
|
let P = u(null), F = u(null), [I, L] = d(null), R = u([]), z = u(g), [B, V] = d(null), [H, U] = d(!1), W = u(!1), G = t("relative overflow-clip w-full h-full", T);
|
|
@@ -21,7 +21,7 @@ var m = 2, h = 750, g = null, _ = async () => (g ||= Promise.all([import("../../
|
|
|
21
21
|
try {
|
|
22
22
|
let n = await _();
|
|
23
23
|
if (t) return;
|
|
24
|
-
if (F.current = n, n.accessToken = e, !(typeof n.supported != "function" || n.supported(
|
|
24
|
+
if (F.current = n, n.accessToken = e, !(typeof n.supported != "function" || n.supported(!0))) {
|
|
25
25
|
V("La carte n'est pas supportée sur cet appareil.");
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -14,7 +14,7 @@ var l = ({ className: t, style: n, color: r }) => /* @__PURE__ */ c("div", {
|
|
|
14
14
|
style: { backgroundColor: r ?? "rgb(201 221 176)" }
|
|
15
15
|
})
|
|
16
16
|
}), /* @__PURE__ */ s("div", { className: "h-full w-full transition-opacity duration-500 ease-out pointer-events-none opacity-0" })]
|
|
17
|
-
}), u = r(() => import("./Map/MapContent-
|
|
17
|
+
}), u = r(() => import("./Map/MapContent-iwk3GnoZ.js")), d = (e) => {
|
|
18
18
|
let r = a(null), [c, d] = o(!1);
|
|
19
19
|
i(() => {
|
|
20
20
|
if (t()) return;
|