@alfadocs/ui-kit 0.14.1 → 0.15.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 (36) hide show
  1. package/dist/_chunks/carousel.agent-2dXpQoqp.js +1661 -0
  2. package/dist/_chunks/{header-D0ULgQl3.js → header-DqmKROIY.js} +42 -52
  3. package/dist/_chunks/{map-view-Dd48BxVB.js → map-view-DVP-Kp9l.js} +445 -444
  4. package/dist/_chunks/menu-XRhW3_99.js +16 -0
  5. package/dist/_chunks/{patient-shell-CL20JnVJ.js → patient-shell-BE0CdPOJ.js} +2 -2
  6. package/dist/_chunks/public-header.agent-AzJSINlU.js +237 -0
  7. package/dist/_chunks/stat-DEkZx0Mx.js +318 -0
  8. package/dist/_chunks/use-count-up-BLLetaZ8.js +109 -0
  9. package/dist/agent-catalog.json +92 -1
  10. package/dist/components/carousel/carousel.agent.d.ts +4 -0
  11. package/dist/components/carousel/carousel.d.ts +45 -0
  12. package/dist/components/carousel/index.d.ts +3 -0
  13. package/dist/components/carousel/index.js +6 -0
  14. package/dist/components/header/index.js +1 -1
  15. package/dist/components/index.d.ts +2 -0
  16. package/dist/components/map-view/index.js +1 -1
  17. package/dist/components/map-view/map-view.d.ts +8 -0
  18. package/dist/components/public-header/index.d.ts +3 -0
  19. package/dist/components/public-header/index.js +6 -0
  20. package/dist/components/public-header/public-header.agent.d.ts +4 -0
  21. package/dist/components/public-header/public-header.d.ts +43 -0
  22. package/dist/components/stat/index.js +1 -1
  23. package/dist/components/stat/stat.d.ts +31 -0
  24. package/dist/hooks/index.d.ts +2 -0
  25. package/dist/hooks/index.js +10 -8
  26. package/dist/hooks/use-count-up.d.ts +88 -0
  27. package/dist/i18n/config.js +51 -0
  28. package/dist/i18n/resources.d.ts +51 -0
  29. package/dist/index.js +367 -361
  30. package/dist/locales/de.json +17 -0
  31. package/dist/locales/en.json +17 -0
  32. package/dist/locales/it.json +17 -0
  33. package/dist/patterns/patient-shell/index.js +1 -1
  34. package/dist/tokens.css +1 -1
  35. package/package.json +10 -1
  36. package/dist/_chunks/stat-CDQ_a0vk.js +0 -228
@@ -1,17 +1,17 @@
1
- import { jsx as R, jsxs as ae } from "react/jsx-runtime";
2
- import * as Re from "react";
3
- import T, { useMemo as I, useContext as B, useEffect as E, useLayoutEffect as Y, forwardRef as U, useImperativeHandle as H, useState as N, useReducer as je, useCallback as le, useRef as F, Children as be, createContext as Xe, useId as Qe } from "react";
4
- import { c as ee } from "./index-D2ZczOXr.js";
5
- import { useTranslation as ze } from "react-i18next";
6
- import { createPortal as ce } from "react-dom";
7
- import { g as en } from "./_commonjsHelpers-C6fGbg64.js";
8
- import { B as nn } from "./button-DD_0Xdmr.js";
9
- import { u as tn } from "./registry-C9nwlNyL.js";
10
- import { M as on } from "./map-pin-B8STOPMJ.js";
11
- import { E as rn } from "./external-link-C6F25E6k.js";
12
- var ue, Le;
13
- function an() {
14
- return Le || (Le = 1, ue = function e(n, t) {
1
+ import { jsx as R, jsxs as ie } from "react/jsx-runtime";
2
+ import * as je from "react";
3
+ import P, { useMemo as N, useContext as B, useEffect as E, useLayoutEffect as X, forwardRef as U, useImperativeHandle as H, useState as x, useReducer as ze, useCallback as ce, useRef as F, Children as Ee, createContext as Qe, useId as en } from "react";
4
+ import { c as ne } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as Be } from "react-i18next";
6
+ import { createPortal as de } from "react-dom";
7
+ import { g as nn } from "./_commonjsHelpers-C6fGbg64.js";
8
+ import { B as tn } from "./button-DD_0Xdmr.js";
9
+ import { u as on } from "./registry-C9nwlNyL.js";
10
+ import { M as rn } from "./map-pin-B8STOPMJ.js";
11
+ import { E as an } from "./external-link-C6F25E6k.js";
12
+ var ge, De;
13
+ function sn() {
14
+ return De || (De = 1, ge = function e(n, t) {
15
15
  if (n === t) return !0;
16
16
  if (n && t && typeof n == "object" && typeof t == "object") {
17
17
  if (n.constructor !== t.constructor) return !1;
@@ -35,10 +35,10 @@ function an() {
35
35
  return !0;
36
36
  }
37
37
  return n !== n && t !== t;
38
- }), ue;
38
+ }), ge;
39
39
  }
40
- var sn = an();
41
- const ne = /* @__PURE__ */ en(sn), ln = "1.8.3";
40
+ var ln = sn();
41
+ const te = /* @__PURE__ */ nn(ln), cn = "1.8.3";
42
42
  function j(e, n) {
43
43
  var t = {};
44
44
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
@@ -47,7 +47,7 @@ function j(e, n) {
47
47
  n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
48
48
  return t;
49
49
  }
50
- function De(e, n, t, o) {
50
+ function Se(e, n, t, o) {
51
51
  function r(a) {
52
52
  return a instanceof t ? a : new t(function(i) {
53
53
  i(a);
@@ -74,43 +74,43 @@ function De(e, n, t, o) {
74
74
  c((o = o.apply(e, [])).next());
75
75
  });
76
76
  }
77
- function cn(e, n) {
77
+ function dn(e, n) {
78
78
  e.src = n;
79
79
  }
80
- const dn = (e) => {
80
+ const un = (e) => {
81
81
  var n, t, o, r = "The Google Maps JavaScript API", a = "google", i = "importLibrary", s = "__ib__", g = document, c = window, l = c[a] || (c[a] = {}), f = l.maps || (l.maps = {}), m = /* @__PURE__ */ new Set(), u = new URLSearchParams(), h = () => n || (n = new Promise(async (y, d) => {
82
82
  var p;
83
83
  await (t = g.createElement("script")), u.set("libraries", [...m] + "");
84
84
  for (o in e)
85
85
  u.set(o.replace(/[A-Z]/g, (b) => "_" + b[0].toLowerCase()), e[o]);
86
- u.set("callback", a + ".maps." + s), cn(t, "https://maps.googleapis.com/maps/api/js?" + u), f[s] = y, t.onerror = () => n = d(Error(r + " could not load.")), t.nonce = ((p = g.querySelector("script[nonce]")) == null ? void 0 : p.nonce) || "", g.head.append(t);
86
+ u.set("callback", a + ".maps." + s), dn(t, "https://maps.googleapis.com/maps/api/js?" + u), f[s] = y, t.onerror = () => n = d(Error(r + " could not load.")), t.nonce = ((p = g.querySelector("script[nonce]")) == null ? void 0 : p.nonce) || "", g.head.append(t);
87
87
  }));
88
88
  f[i] ? console.warn(r + " only loads once. Ignoring:", e) : f[i] = (y, ...d) => m.add(y) && h().then(() => f[i](y, ...d));
89
- }, un = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, gn = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, fn = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", mn = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Be = process.env.NODE_ENV !== "production", Ee = Be ? (e) => {
89
+ }, gn = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, fn = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, mn = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", pn = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Fe = process.env.NODE_ENV !== "production", Ce = Fe ? (e) => {
90
90
  console.warn(`[@googlemaps/js-api-loader] ${e}`);
91
91
  } : () => {
92
- }, pn = Be ? (e) => {
92
+ }, hn = Fe ? (e) => {
93
93
  console.info(`[@googlemaps/js-api-loader] ${e}`);
94
94
  } : () => {
95
- }, hn = process.env.NODE_ENV !== "production";
96
- let me = !1;
97
- function vn(e) {
98
- if (me) {
99
- Ee(un(e));
95
+ }, vn = process.env.NODE_ENV !== "production";
96
+ let pe = !1;
97
+ function yn(e) {
98
+ if (pe) {
99
+ Ce(gn(e));
100
100
  return;
101
101
  }
102
- bn(e), me = !0;
102
+ En(e), pe = !0;
103
103
  }
104
- async function yn(e) {
104
+ async function bn(e) {
105
105
  var n, t;
106
- if (me || Ee(fn), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
106
+ if (pe || Ce(mn), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
107
107
  throw new Error("google.maps.importLibrary is not installed.");
108
108
  return await google.maps.importLibrary(e);
109
109
  }
110
- function bn(e) {
110
+ function En(e) {
111
111
  var t, o;
112
112
  const n = !!((o = (t = window.google) == null ? void 0 : t.maps) != null && o.importLibrary);
113
- n ? pn(gn(e)) : hn && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && Ee(mn), n || dn(e);
113
+ n ? hn(fn(e)) : vn && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && Ce(pn), n || un(e);
114
114
  }
115
115
  const z = {
116
116
  NOT_LOADED: "NOT_LOADED",
@@ -118,16 +118,16 @@ const z = {
118
118
  LOADED: "LOADED",
119
119
  FAILED: "FAILED",
120
120
  AUTH_FAILURE: "AUTH_FAILURE"
121
- }, En = "GMP_visgl_rgmlibrary_v1_default", Cn = [
122
- `gmp_visgl_reactgooglemaps_v${ln}`
123
- ], X = T.createContext(null);
124
- let V = z.NOT_LOADED, oe;
125
- const pe = /* @__PURE__ */ new Set();
126
- function re(e) {
127
- e !== V && (V = e, pe.forEach((n) => n(V)));
128
- }
129
- function On() {
130
- const [e, n] = N({});
121
+ }, Cn = "GMP_visgl_rgmlibrary_v1_default", On = [
122
+ `gmp_visgl_reactgooglemaps_v${cn}`
123
+ ], Q = P.createContext(null);
124
+ let V = z.NOT_LOADED, re;
125
+ const he = /* @__PURE__ */ new Set();
126
+ function ae(e) {
127
+ e !== V && (V = e, he.forEach((n) => n(V)));
128
+ }
129
+ function Mn() {
130
+ const [e, n] = x({});
131
131
  return { mapInstances: e, addMapInstance: (a, i = "default") => {
132
132
  n((s) => Object.assign(Object.assign({}, s), { [i]: a }));
133
133
  }, removeMapInstance: (a = "default") => {
@@ -141,8 +141,8 @@ function On() {
141
141
  n({});
142
142
  } };
143
143
  }
144
- function Mn() {
145
- const [e, n] = N({});
144
+ function wn() {
145
+ const [e, n] = x({});
146
146
  return {
147
147
  map3dInstances: e,
148
148
  addMap3DInstance: (a, i = "default") => {
@@ -162,7 +162,7 @@ function Mn() {
162
162
  };
163
163
  }
164
164
  function Pn(e) {
165
- const { onLoad: n, onError: t, apiKey: o, version: r, libraries: a = [], region: i, language: s, authReferrerPolicy: g, channel: c, solutionChannel: l, fetchAppCheckToken: f } = e, [m, u] = N(V), [h, y] = je((b, C) => b[C.name] ? b : Object.assign(Object.assign({}, b), { [C.name]: C.value }), {}), d = I(() => {
165
+ const { onLoad: n, onError: t, apiKey: o, version: r, libraries: a = [], region: i, language: s, authReferrerPolicy: g, channel: c, solutionChannel: l, fetchAppCheckToken: f } = e, [m, u] = x(V), [h, y] = ze((b, C) => b[C.name] ? b : Object.assign(Object.assign({}, b), { [C.name]: C.value }), {}), d = N(() => {
166
166
  const b = {
167
167
  apiKey: o,
168
168
  version: r,
@@ -183,30 +183,30 @@ function Pn(e) {
183
183
  g,
184
184
  c,
185
185
  l
186
- ]), p = le((b) => De(this, void 0, void 0, function* () {
186
+ ]), p = ce((b) => Se(this, void 0, void 0, function* () {
187
187
  if (h[b])
188
188
  return h[b];
189
- const C = yield yn(b);
189
+ const C = yield bn(b);
190
190
  return y({ name: b, value: C }), C;
191
191
  }), [h]);
192
- return E(() => (pe.add(u), u(V), () => {
193
- pe.delete(u);
192
+ return E(() => (he.add(u), u(V), () => {
193
+ he.delete(u);
194
194
  }), []), E(
195
195
  () => {
196
- De(this, void 0, void 0, function* () {
196
+ Se(this, void 0, void 0, function* () {
197
197
  var b, C;
198
198
  try {
199
- oe && oe !== d && console.warn("The Google Maps JavaScript API has already been loaded with different parameters. The new parameters will be ignored. If you need to use different parameters, please refresh the page.");
200
- const w = ["core", "maps", ...a];
199
+ re && re !== d && console.warn("The Google Maps JavaScript API has already been loaded with different parameters. The new parameters will be ignored. If you need to use different parameters, please refresh the page.");
200
+ const M = ["core", "maps", ...a];
201
201
  if (!((C = (b = window.google) === null || b === void 0 ? void 0 : b.maps) === null || C === void 0) && C.importLibrary) {
202
- oe || re(z.LOADED), yield Promise.all(w.map((v) => p(v))), n && n();
202
+ re || ae(z.LOADED), yield Promise.all(M.map((v) => p(v))), n && n();
203
203
  return;
204
204
  }
205
205
  if (V === z.LOADING || V === z.LOADED) {
206
206
  V === z.LOADED && n && n();
207
207
  return;
208
208
  }
209
- oe = d, re(z.LOADING);
209
+ re = d, ae(z.LOADING);
210
210
  const A = Object.fromEntries(Object.entries({
211
211
  key: o,
212
212
  v: r,
@@ -215,9 +215,9 @@ function Pn(e) {
215
215
  language: s,
216
216
  authReferrerPolicy: g
217
217
  }).filter(([, v]) => v !== void 0));
218
- c !== void 0 && c >= 0 && c <= 999 && (A.channel = String(c)), l === void 0 ? A.solutionChannel = En : l !== "" && (A.solutionChannel = l), vn(A), yield Promise.all(w.map((v) => p(v))), re(z.LOADED), n && n();
219
- } catch (w) {
220
- re(z.FAILED), t ? t(w) : console.error("The Google Maps JavaScript API failed to load.", w);
218
+ c !== void 0 && c >= 0 && c <= 999 && (A.channel = String(c)), l === void 0 ? A.solutionChannel = Cn : l !== "" && (A.solutionChannel = l), yn(A), yield Promise.all(M.map((v) => p(v))), ae(z.LOADED), n && n();
219
+ } catch (M) {
220
+ ae(z.FAILED), t ? t(M) : console.error("The Google Maps JavaScript API failed to load.", M);
221
221
  }
222
222
  });
223
223
  },
@@ -234,11 +234,11 @@ function Pn(e) {
234
234
  importLibrary: p
235
235
  };
236
236
  }
237
- function wn(e) {
238
- return I(() => e.disableUsageAttribution ? null : Cn, [e.disableUsageAttribution]);
237
+ function An(e) {
238
+ return N(() => e.disableUsageAttribution ? null : On, [e.disableUsageAttribution]);
239
239
  }
240
- const An = (e) => {
241
- const { children: n } = e, t = j(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: a, clearMapInstances: i } = On(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = Mn(), { status: f, loadedLibraries: m, importLibrary: u } = Pn(t), h = wn(t), y = I(() => ({
240
+ const Tn = (e) => {
241
+ const { children: n } = e, t = j(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: a, clearMapInstances: i } = Mn(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = wn(), { status: f, loadedLibraries: m, importLibrary: u } = Pn(t), h = An(t), y = N(() => ({
242
242
  mapInstances: o,
243
243
  addMapInstance: r,
244
244
  removeMapInstance: a,
@@ -265,22 +265,22 @@ const An = (e) => {
265
265
  u,
266
266
  h
267
267
  ]);
268
- return T.createElement(X.Provider, { value: y }, n);
268
+ return P.createElement(Q.Provider, { value: y }, n);
269
269
  };
270
- function Tn(e, n) {
271
- for (const t of kn) {
272
- const o = n[t], r = Fe[t];
270
+ function Ln(e, n) {
271
+ for (const t of _n) {
272
+ const o = n[t], r = Ue[t];
273
273
  E(() => {
274
274
  if (!e || !o)
275
275
  return;
276
276
  const a = google.maps.event.addListener(e, r, (i) => {
277
- o(Ln(r, e, i));
277
+ o(Dn(r, e, i));
278
278
  });
279
279
  return () => a.remove();
280
280
  }, [e, r, o]);
281
281
  }
282
282
  }
283
- function Ln(e, n, t) {
283
+ function Dn(e, n, t) {
284
284
  var o;
285
285
  const r = {
286
286
  type: e,
@@ -290,7 +290,7 @@ function Ln(e, n, t) {
290
290
  stop: () => {
291
291
  }
292
292
  };
293
- if (Dn.includes(e)) {
293
+ if (Sn.includes(e)) {
294
294
  const a = r, i = n.getCenter(), s = n.getZoom(), g = n.getHeading() || 0, c = n.getTilt() || 0, l = n.getBounds();
295
295
  return (!i || !l || !Number.isFinite(s)) && console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"), a.detail = {
296
296
  center: (i == null ? void 0 : i.toJSON()) || { lat: 0, lng: 0 },
@@ -304,7 +304,7 @@ function Ln(e, n, t) {
304
304
  west: -180
305
305
  }
306
306
  }, a;
307
- } else if (Sn.includes(e)) {
307
+ } else if (kn.includes(e)) {
308
308
  if (!t)
309
309
  throw new Error("[createEvent] mouse events must provide a srcEvent");
310
310
  const a = r;
@@ -315,7 +315,7 @@ function Ln(e, n, t) {
315
315
  }
316
316
  return r;
317
317
  }
318
- const Fe = {
318
+ const Ue = {
319
319
  onBoundsChanged: "bounds_changed",
320
320
  onCenterChanged: "center_changed",
321
321
  onClick: "click",
@@ -341,31 +341,31 @@ const Fe = {
341
341
  // since that is going to be fired in every situation where the camera is
342
342
  // updated.
343
343
  onCameraChanged: "bounds_changed"
344
- }, Dn = [
344
+ }, Sn = [
345
345
  "bounds_changed",
346
346
  "center_changed",
347
347
  "heading_changed",
348
348
  "tilt_changed",
349
349
  "zoom_changed"
350
- ], Sn = [
350
+ ], kn = [
351
351
  "click",
352
352
  "contextmenu",
353
353
  "dblclick",
354
354
  "mousemove",
355
355
  "mouseout",
356
356
  "mouseover"
357
- ], kn = Object.keys(Fe);
358
- function te(e, n) {
357
+ ], _n = Object.keys(Ue);
358
+ function oe(e, n) {
359
359
  const t = F(e);
360
360
  return n(e, t.current) || (t.current = e), t.current;
361
361
  }
362
- function _n(e, n, t) {
363
- E(e, [te(n, t)]);
362
+ function In(e, n, t) {
363
+ E(e, [oe(n, t)]);
364
364
  }
365
- function Ue(e, n) {
366
- _n(e, n, ne);
365
+ function He(e, n) {
366
+ In(e, n, te);
367
367
  }
368
- const In = /* @__PURE__ */ new Set([
368
+ const Nn = /* @__PURE__ */ new Set([
369
369
  "backgroundColor",
370
370
  "clickableIcons",
371
371
  "controlSize",
@@ -402,21 +402,21 @@ const In = /* @__PURE__ */ new Set([
402
402
  "zoomControl",
403
403
  "zoomControlOptions"
404
404
  ]);
405
- function Nn(e, n) {
405
+ function xn(e, n) {
406
406
  const t = {}, o = Object.keys(n);
407
407
  for (const r of o)
408
- In.has(r) && (t[r] = n[r]);
409
- Ue(() => {
408
+ Nn.has(r) && (t[r] = n[r]);
409
+ He(() => {
410
410
  e && e.setOptions(t);
411
411
  }, [t]);
412
412
  }
413
- function He() {
413
+ function Ve() {
414
414
  var e;
415
- return ((e = B(X)) === null || e === void 0 ? void 0 : e.status) || z.NOT_LOADED;
415
+ return ((e = B(Q)) === null || e === void 0 ? void 0 : e.status) || z.NOT_LOADED;
416
416
  }
417
- function xn(e, n) {
417
+ function Rn(e, n) {
418
418
  const { viewport: t, viewState: o } = n, r = !!t;
419
- return Y(() => {
419
+ return X(() => {
420
420
  if (!e || !o)
421
421
  return;
422
422
  const { latitude: a, longitude: i, bearing: s, pitch: g, zoom: c } = o;
@@ -428,19 +428,19 @@ function xn(e, n) {
428
428
  });
429
429
  }, [e, o]), r;
430
430
  }
431
- function Rn(e) {
431
+ function jn(e) {
432
432
  return !e || typeof e != "object" || !("lat" in e && "lng" in e) ? !1 : Number.isFinite(e.lat) && Number.isFinite(e.lng);
433
433
  }
434
- function Ve(e, n) {
434
+ function Ge(e, n) {
435
435
  if (!e || !n)
436
436
  return !1;
437
- const t = se(e), o = se(n);
437
+ const t = le(e), o = le(n);
438
438
  return !(t.lat !== o.lat || t.lng !== o.lng);
439
439
  }
440
- function se(e) {
441
- return Rn(e) ? e : e.toJSON();
440
+ function le(e) {
441
+ return jn(e) ? e : e.toJSON();
442
442
  }
443
- function Se(e) {
443
+ function ke(e) {
444
444
  if ("north" in e && "south" in e && "east" in e && "west" in e)
445
445
  return e;
446
446
  const n = e.getNorthEast().toJSON(), t = e.getSouthWest().toJSON();
@@ -451,40 +451,40 @@ function Se(e) {
451
451
  west: t.lng
452
452
  };
453
453
  }
454
- function jn(e, n) {
454
+ function zn(e, n) {
455
455
  if (!e || !n)
456
456
  return !1;
457
- const t = Se(e), o = Se(n);
457
+ const t = ke(e), o = ke(n);
458
458
  return t.north === o.north && t.south === o.south && t.east === o.east && t.west === o.west;
459
459
  }
460
- function Ge(e, n) {
460
+ function Je(e, n) {
461
461
  if (!e || !n)
462
462
  return e === n;
463
463
  const t = "getArray" in n ? n.getArray() : n;
464
464
  if (e.length !== t.length)
465
465
  return !1;
466
466
  for (let o = 0; o < e.length; o++)
467
- if (!Ve(e[o], t[o]))
467
+ if (!Ge(e[o], t[o]))
468
468
  return !1;
469
469
  return !0;
470
470
  }
471
- function zn(e, n) {
471
+ function Bn(e, n) {
472
472
  if (!e || !n)
473
473
  return e === n;
474
474
  const t = "getArray" in n ? n.getArray().map((o) => o.getArray()) : n;
475
475
  if (e.length !== t.length)
476
476
  return !1;
477
477
  for (let o = 0; o < e.length; o++)
478
- if (!Ge(e[o], t[o]))
478
+ if (!Je(e[o], t[o]))
479
479
  return !1;
480
480
  return !0;
481
481
  }
482
- function Bn(e, n, t) {
483
- const o = t.center ? se(t.center) : null;
482
+ function Fn(e, n, t) {
483
+ const o = t.center ? le(t.center) : null;
484
484
  let r = null, a = null;
485
485
  o && Number.isFinite(o.lat) && Number.isFinite(o.lng) && (r = o.lat, a = o.lng);
486
486
  const i = Number.isFinite(t.zoom) ? t.zoom : null, s = Number.isFinite(t.heading) ? t.heading : null, g = Number.isFinite(t.tilt) ? t.tilt : null;
487
- Y(() => {
487
+ X(() => {
488
488
  if (!e)
489
489
  return;
490
490
  const c = {};
@@ -492,7 +492,7 @@ function Bn(e, n, t) {
492
492
  r !== null && a !== null && (n.current.center.lat !== r || n.current.center.lng !== a) && (c.center = { lat: r, lng: a }, l = !0), i !== null && n.current.zoom !== i && (c.zoom = i, l = !0), s !== null && n.current.heading !== s && (c.heading = s, l = !0), g !== null && n.current.tilt !== g && (c.tilt = g, l = !0), l && e.moveCamera(c);
493
493
  });
494
494
  }
495
- const Fn = () => {
495
+ const Un = () => {
496
496
  const e = {
497
497
  position: "absolute",
498
498
  top: 0,
@@ -509,31 +509,31 @@ const Fn = () => {
509
509
  background: "#dddddd",
510
510
  padding: "1rem 1.5rem"
511
511
  };
512
- return T.createElement(
512
+ return P.createElement(
513
513
  "div",
514
514
  { style: e },
515
- T.createElement("h2", null, "Error: AuthFailure"),
516
- T.createElement(
515
+ P.createElement("h2", null, "Error: AuthFailure"),
516
+ P.createElement(
517
517
  "p",
518
518
  null,
519
519
  "A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",
520
- T.createElement("code", null, "APIProvider.apiKey"),
520
+ P.createElement("code", null, "APIProvider.apiKey"),
521
521
  " prop is correct. Check the error-message in the console for further details."
522
522
  )
523
523
  );
524
524
  };
525
- function he() {
526
- const [e, n] = N(null), t = le((o) => n(o), [n]);
525
+ function ve() {
526
+ const [e, n] = x(null), t = ce((o) => n(o), [n]);
527
527
  return [e, t];
528
528
  }
529
- function Je() {
530
- return He() === z.LOADED;
531
- }
532
529
  function Ze() {
533
- const [, e] = je((n) => n + 1, 0);
530
+ return Ve() === z.LOADED;
531
+ }
532
+ function $e() {
533
+ const [, e] = ze((n) => n + 1, 0);
534
534
  return e;
535
535
  }
536
- function Un(e, n) {
536
+ function Hn(e, n) {
537
537
  const t = e.getCenter(), o = e.getZoom(), r = e.getHeading() || 0, a = e.getTilt() || 0, i = e.getBounds();
538
538
  (!t || !i || !Number.isFinite(o)) && console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"), Object.assign(n.current, {
539
539
  center: (t == null ? void 0 : t.toJSON()) || { lat: 0, lng: 0 },
@@ -542,8 +542,8 @@ function Un(e, n) {
542
542
  tilt: a
543
543
  });
544
544
  }
545
- function Hn(e) {
546
- const n = Ze(), t = F({
545
+ function Vn(e) {
546
+ const n = $e(), t = F({
547
547
  center: { lat: 0, lng: 0 },
548
548
  heading: 0,
549
549
  tilt: 0,
@@ -553,12 +553,12 @@ function Hn(e) {
553
553
  if (!e)
554
554
  return;
555
555
  const o = google.maps.event.addListener(e, "bounds_changed", () => {
556
- Un(e, t), n();
556
+ Hn(e, t), n();
557
557
  });
558
558
  return () => o.remove();
559
559
  }, [e, n]), t;
560
560
  }
561
- class ie {
561
+ class se {
562
562
  static has(n) {
563
563
  return this.entries[n] && this.entries[n].length > 0;
564
564
  }
@@ -569,14 +569,14 @@ class ie {
569
569
  this.entries[n] || (this.entries[n] = []), this.entries[n].push(t);
570
570
  }
571
571
  }
572
- ie.entries = {};
573
- function Vn(e, n) {
574
- const t = Je(), [o, r] = N(null), [a, i] = he(), s = Hn(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: f, defaultHeading: m, defaultTilt: u, reuseMaps: h, renderingType: y, colorScheme: d } = e, p = j(e, ["id", "defaultBounds", "defaultCenter", "defaultZoom", "defaultHeading", "defaultTilt", "reuseMaps", "renderingType", "colorScheme"]), b = e.zoom !== void 0 || e.defaultZoom !== void 0, C = e.center !== void 0 || e.defaultCenter !== void 0;
572
+ se.entries = {};
573
+ function Gn(e, n) {
574
+ const t = Ze(), [o, r] = x(null), [a, i] = ve(), s = Vn(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: f, defaultHeading: m, defaultTilt: u, reuseMaps: h, renderingType: y, colorScheme: d } = e, p = j(e, ["id", "defaultBounds", "defaultCenter", "defaultZoom", "defaultHeading", "defaultTilt", "reuseMaps", "renderingType", "colorScheme"]), b = e.zoom !== void 0 || e.defaultZoom !== void 0, C = e.center !== void 0 || e.defaultCenter !== void 0;
575
575
  !c && (!b || !C) && console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"), !p.center && l && (p.center = l), !p.zoom && Number.isFinite(f) && (p.zoom = f), !p.heading && Number.isFinite(m) && (p.heading = m), !p.tilt && Number.isFinite(u) && (p.tilt = u);
576
- const w = p.internalUsageAttributionIds;
577
- w == null ? p.internalUsageAttributionIds = n.internalUsageAttributionIds : p.internalUsageAttributionIds = [
576
+ const M = p.internalUsageAttributionIds;
577
+ M == null ? p.internalUsageAttributionIds = n.internalUsageAttributionIds : p.internalUsageAttributionIds = [
578
578
  ...n.internalUsageAttributionIds || [],
579
- ...w
579
+ ...M
580
580
  ];
581
581
  for (const v of Object.keys(p))
582
582
  p[v] === void 0 && delete p[v];
@@ -585,22 +585,22 @@ function Vn(e, n) {
585
585
  () => {
586
586
  if (!a || !t)
587
587
  return;
588
- const { addMapInstance: v, removeMapInstance: O } = n, { mapId: L } = e, S = `${L || "default"}:${y || "default"}:${d || "LIGHT"}`;
589
- let M, x;
590
- if (h && ie.has(S) ? (x = ie.pop(S), M = x.getDiv(), a.appendChild(M), x.setOptions(p), setTimeout(() => x.moveCamera({}), 0)) : (M = document.createElement("div"), M.style.height = "100%", a.appendChild(M), x = new google.maps.Map(M, Object.assign(Object.assign(Object.assign({}, p), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(x), v(x, g), c) {
591
- const { padding: $ } = c, P = j(c, ["padding"]);
592
- x.fitBounds(P, $);
593
- } else (!b || !C) && x.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
588
+ const { addMapInstance: v, removeMapInstance: O } = n, { mapId: L } = e, k = `${L || "default"}:${y || "default"}:${d || "LIGHT"}`;
589
+ let T, _;
590
+ if (h && se.has(k) ? (_ = se.pop(k), T = _.getDiv(), a.appendChild(T), _.setOptions(p), setTimeout(() => _.moveCamera({}), 0)) : (T = document.createElement("div"), T.style.height = "100%", a.appendChild(T), _ = new google.maps.Map(T, Object.assign(Object.assign(Object.assign({}, p), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(_), v(_, g), c) {
591
+ const { padding: $ } = c, q = j(c, ["padding"]);
592
+ _.fitBounds(q, $);
593
+ } else (!b || !C) && _.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
594
594
  if (A.current) {
595
- const { mapId: $, cameraState: P } = A.current;
596
- $ !== L && x.moveCamera(P);
595
+ const { mapId: $, cameraState: q } = A.current;
596
+ $ !== L && _.moveCamera(q);
597
597
  }
598
598
  return () => {
599
599
  A.current = {
600
600
  mapId: L,
601
601
  // eslint-disable-next-line react-hooks/exhaustive-deps
602
602
  cameraState: s.current
603
- }, M.remove(), h ? ie.push(S, x) : google.maps.event.clearInstanceListeners(x), r(null), O(g);
603
+ }, T.remove(), h ? se.push(k, _) : google.maps.event.clearInstanceListeners(_), r(null), O(g);
604
604
  };
605
605
  },
606
606
  // some dependencies are ignored in the list below:
@@ -620,13 +620,13 @@ function Vn(e, n) {
620
620
  ]
621
621
  ), [o, i, s];
622
622
  }
623
- const $e = T.createContext(null), qe = (e) => {
624
- const { children: n, id: t, className: o, style: r } = e, a = B(X), i = He();
623
+ const qe = P.createContext(null), We = (e) => {
624
+ const { children: n, id: t, className: o, style: r } = e, a = B(Q), i = Ve();
625
625
  if (!a)
626
626
  throw new Error("<Map> can only be used inside an <ApiProvider> component.");
627
- const [s, g, c] = Vn(e, a);
628
- Bn(s, c, e), Tn(s, e), Nn(s, e);
629
- const l = xn(s, e), f = !!e.controlled;
627
+ const [s, g, c] = Gn(e, a);
628
+ Fn(s, c, e), Ln(s, e), xn(s, e);
629
+ const l = Rn(s, e), f = !!e.controlled;
630
630
  E(() => {
631
631
  if (s)
632
632
  return l && s.setOptions({ disableDefaultUI: !0 }), (l || f) && s.setOptions({
@@ -645,19 +645,19 @@ const $e = T.createContext(null), qe = (e) => {
645
645
  e.gestureHandling,
646
646
  e.keyboardShortcuts
647
647
  ]);
648
- const m = e.center ? se(e.center) : null;
648
+ const m = e.center ? le(e.center) : null;
649
649
  let u = null, h = null;
650
650
  m && Number.isFinite(m.lat) && Number.isFinite(m.lng) && (u = m.lat, h = m.lng);
651
- const y = I(() => {
652
- var b, C, w;
651
+ const y = N(() => {
652
+ var b, C, M;
653
653
  return {
654
654
  center: { lat: u ?? 0, lng: h ?? 0 },
655
655
  zoom: (b = e.zoom) !== null && b !== void 0 ? b : 0,
656
656
  heading: (C = e.heading) !== null && C !== void 0 ? C : 0,
657
- tilt: (w = e.tilt) !== null && w !== void 0 ? w : 0
657
+ tilt: (M = e.tilt) !== null && M !== void 0 ? M : 0
658
658
  };
659
659
  }, [u, h, e.zoom, e.heading, e.tilt]);
660
- Y(() => {
660
+ X(() => {
661
661
  if (!s || !f)
662
662
  return;
663
663
  s.moveCamera(y);
@@ -666,53 +666,53 @@ const $e = T.createContext(null), qe = (e) => {
666
666
  });
667
667
  return () => b.remove();
668
668
  }, [s, f, y]);
669
- const d = I(() => Object.assign({
669
+ const d = N(() => Object.assign({
670
670
  width: "100%",
671
671
  height: "100%",
672
672
  position: "relative",
673
673
  // when using deckgl, the map should be sent to the back
674
674
  zIndex: l ? -1 : 0
675
- }, r), [r, l]), p = I(() => ({ map: s }), [s]);
676
- return i === z.AUTH_FAILURE ? T.createElement(
675
+ }, r), [r, l]), p = N(() => ({ map: s }), [s]);
676
+ return i === z.AUTH_FAILURE ? P.createElement(
677
677
  "div",
678
678
  { style: Object.assign({ position: "relative" }, o ? {} : d), className: o },
679
- T.createElement(Fn, null)
680
- ) : T.createElement("div", Object.assign({ ref: g, "data-testid": "map", style: o ? void 0 : d, className: o }, t ? { id: t } : {}), s ? T.createElement($e.Provider, { value: p }, n) : null);
679
+ P.createElement(Un, null)
680
+ ) : P.createElement("div", Object.assign({ ref: g, "data-testid": "map", style: o ? void 0 : d, className: o }, t ? { id: t } : {}), s ? P.createElement(qe.Provider, { value: p }, n) : null);
681
681
  };
682
- qe.deckGLViewProps = !0;
683
- const ke = /* @__PURE__ */ new Set();
684
- function Q(...e) {
682
+ We.deckGLViewProps = !0;
683
+ const _e = /* @__PURE__ */ new Set();
684
+ function ee(...e) {
685
685
  const n = JSON.stringify(e);
686
- ke.has(n) || (ke.add(n), console.error(...e));
686
+ _e.has(n) || (_e.add(n), console.error(...e));
687
687
  }
688
688
  const J = (e = null) => {
689
- const n = B(X), { map: t } = B($e) || {};
689
+ const n = B(Q), { map: t } = B(qe) || {};
690
690
  if (n === null)
691
- return Q("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."), null;
691
+ return ee("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."), null;
692
692
  const { mapInstances: o } = n;
693
693
  return e !== null ? o[e] || null : t || o.default || null;
694
694
  };
695
695
  function Z(e) {
696
- const n = Je(), t = B(X);
696
+ const n = Ze(), t = B(Q);
697
697
  return E(() => {
698
698
  !n || !t || t.importLibrary(e);
699
699
  }, [n, t, e]), (t == null ? void 0 : t.loadedLibraries[e]) || null;
700
700
  }
701
- var ge;
702
- const { useLayoutEffect: Gn, useRef: Jn } = Re, Zn = (ge = Re.useInsertionEffect) !== null && ge !== void 0 ? ge : Gn;
703
- function $n() {
701
+ var fe;
702
+ const { useLayoutEffect: Jn, useRef: Zn } = je, $n = (fe = je.useInsertionEffect) !== null && fe !== void 0 ? fe : Jn;
703
+ function qn() {
704
704
  throw new Error("useEffectEvent: invalid call during rendering.");
705
705
  }
706
- function qn(e) {
707
- const n = Jn($n);
708
- return Zn(() => {
706
+ function Wn(e) {
707
+ const n = Zn(qn);
708
+ return $n(() => {
709
709
  n.current = e;
710
710
  }, [e]), ((...t) => n.current(...t));
711
711
  }
712
- const We = qn, Wn = () => {
712
+ const Ke = Wn, Kn = () => {
713
713
  };
714
714
  function D(e, n, t) {
715
- const o = We(t ?? Wn), r = !!t;
715
+ const o = Ke(t ?? Kn), r = !!t;
716
716
  E(() => {
717
717
  if (!e || !n || !r)
718
718
  return;
@@ -720,15 +720,15 @@ function D(e, n, t) {
720
720
  return () => a.remove();
721
721
  }, [e, n, r]);
722
722
  }
723
- function _(e, n, t) {
723
+ function I(e, n, t) {
724
724
  E(() => {
725
725
  e && (e[n] = t);
726
726
  }, [e, n, t]);
727
727
  }
728
- const Kn = () => {
728
+ const Yn = () => {
729
729
  };
730
- function ve(e, n, t) {
731
- const o = We(t ?? Kn), r = !!t;
730
+ function ye(e, n, t) {
731
+ const o = Ke(t ?? Yn), r = !!t;
732
732
  E(() => {
733
733
  if (!e || !n || !r)
734
734
  return;
@@ -736,7 +736,7 @@ function ve(e, n, t) {
736
736
  return e.addEventListener(n, a), () => e.removeEventListener(n, a);
737
737
  }, [e, n, r]);
738
738
  }
739
- class Yn {
739
+ class Xn {
740
740
  constructor() {
741
741
  this.renderedStyles = /* @__PURE__ */ new Set(), this.styleElement = null;
742
742
  }
@@ -757,73 +757,73 @@ class Yn {
757
757
  this.styleElement && (this.styleElement.remove(), this.styleElement = null, this.renderedStyles.clear());
758
758
  }
759
759
  }
760
- const Xn = new Yn();
761
- function Qn(e, n) {
760
+ const Qn = new Xn();
761
+ function et(e, n) {
762
762
  var t;
763
763
  if (!(!((t = google == null ? void 0 : google.maps) === null || t === void 0) && t.version))
764
764
  return;
765
765
  const o = google.maps.version.split("."), r = parseInt(o[0], 10), a = parseInt(o[1], 10);
766
766
  return r > e || r === e && a >= n;
767
767
  }
768
- const Ce = T.createContext(null), et = {
768
+ const Oe = P.createContext(null), nt = {
769
769
  BOTTOM: ["50%", "100%"]
770
- }, Ke = U((e, n) => {
771
- const { children: t, style: o, className: r, anchorPoint: a } = e, [i, s] = tt(e), g = I(() => i ? { marker: i } : null, [i]);
772
- return H(n, () => i, [i]), s ? T.createElement(Ce.Provider, { value: g }, ce(T.createElement(nt, { anchorPoint: a, styles: o, className: r }, t), s)) : null;
770
+ }, Ye = U((e, n) => {
771
+ const { children: t, style: o, className: r, anchorPoint: a } = e, [i, s] = ot(e), g = N(() => i ? { marker: i } : null, [i]);
772
+ return H(n, () => i, [i]), s ? P.createElement(Oe.Provider, { value: g }, de(P.createElement(tt, { anchorPoint: a, styles: o, className: r }, t), s)) : null;
773
773
  });
774
- Ke.displayName = "AdvancedMarker";
775
- function ye(e) {
774
+ Ye.displayName = "AdvancedMarker";
775
+ function be(e) {
776
776
  return e.nodeType === Node.ELEMENT_NODE;
777
777
  }
778
- const nt = ({ children: e, styles: n, className: t }) => T.createElement("div", { className: t, style: n }, e);
779
- function tt(e) {
780
- const [n, t] = N(null), [o, r] = N(null), a = J(), i = Z("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: f, onDrag: m, onDragStart: u, onDragEnd: h, collisionBehavior: y, clickable: d, draggable: p, position: b, title: C, zIndex: w, anchorPoint: A, anchorLeft: v, anchorTop: O } = e, L = be.count(s);
778
+ const tt = ({ children: e, styles: n, className: t }) => P.createElement("div", { className: t, style: n }, e);
779
+ function ot(e) {
780
+ const [n, t] = x(null), [o, r] = x(null), a = J(), i = Z("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: f, onDrag: m, onDragStart: u, onDragEnd: h, collisionBehavior: y, clickable: d, draggable: p, position: b, title: C, zIndex: M, anchorPoint: A, anchorLeft: v, anchorTop: O } = e, L = Ee.count(s);
781
781
  return E(() => {
782
782
  if (!a || !i)
783
783
  return;
784
- const S = new i.AdvancedMarkerElement();
785
- S.map = a, t(S);
786
- let M = null;
787
- return L > 0 && (M = document.createElement("div"), S.content = M, r(M)), () => {
788
- S.map = null, M == null || M.remove(), t(null), r(null);
784
+ const k = new i.AdvancedMarkerElement();
785
+ k.map = a, t(k);
786
+ let T = null;
787
+ return L > 0 && (T = document.createElement("div"), k.content = T, r(T)), () => {
788
+ k.map = null, T == null || T.remove(), t(null), r(null);
789
789
  };
790
790
  }, [a, i, L]), E(() => {
791
- !(n != null && n.content) || !ye(n.content) || L > 0 || (n.content.className = c ?? "");
792
- }, [n, c, L]), ot(n, A, v, O, L > 0), _(n, "position", b), _(n, "title", C ?? ""), _(n, "zIndex", w), _(n, "collisionBehavior", y), E(() => {
791
+ !(n != null && n.content) || !be(n.content) || L > 0 || (n.content.className = c ?? "");
792
+ }, [n, c, L]), rt(n, A, v, O, L > 0), I(n, "position", b), I(n, "title", C ?? ""), I(n, "zIndex", M), I(n, "collisionBehavior", y), E(() => {
793
793
  n && (p !== void 0 ? n.gmpDraggable = p : m || u || h ? n.gmpDraggable = !0 : n.gmpDraggable = !1);
794
794
  }, [n, p, m, h, u]), E(() => {
795
795
  if (!n)
796
796
  return;
797
- const S = d !== void 0 ? d : !!g || !!l || !!f;
798
- n.gmpClickable = S, S && (n != null && n.content) && ye(n.content) && (n.content.style.pointerEvents = "all", g && (n.content.style.cursor = "pointer"));
799
- }, [n, d, g, l, f]), D(n, "click", g), D(n, "drag", m), D(n, "dragstart", u), D(n, "dragend", h), ve(n == null ? void 0 : n.element, "mouseenter", l), ve(n == null ? void 0 : n.element, "mouseleave", f), [n, o];
797
+ const k = d !== void 0 ? d : !!g || !!l || !!f;
798
+ n.gmpClickable = k, k && (n != null && n.content) && be(n.content) && (n.content.style.pointerEvents = "all", g && (n.content.style.cursor = "pointer"));
799
+ }, [n, d, g, l, f]), D(n, "click", g), D(n, "drag", m), D(n, "dragstart", u), D(n, "dragend", h), ye(n == null ? void 0 : n.element, "mouseenter", l), ye(n == null ? void 0 : n.element, "mouseleave", f), [n, o];
800
800
  }
801
- function ot(e, n, t, o, r) {
801
+ function rt(e, n, t, o, r) {
802
802
  E(() => {
803
803
  if (!e || !r)
804
804
  return;
805
- const a = Qn(3, 62), i = e.content;
806
- if (!(!i || !ye(i))) {
805
+ const a = et(3, 62), i = e.content;
806
+ if (!(!i || !be(i))) {
807
807
  if (t !== void 0 || o !== void 0) {
808
808
  a || console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`), e.anchorLeft = t, e.anchorTop = o, n !== void 0 && console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");
809
809
  return;
810
810
  }
811
811
  if (n !== void 0) {
812
- const [s, g] = n ?? et.BOTTOM, c = `calc(-1 * ${s})`, l = `calc(-1 * ${g})`;
813
- a ? (e.anchorLeft = c, e.anchorTop = l, i.style.transform = "") : (i.style.transform = `translate(50%, 100%) translate(${c}, ${l})`, e.dataset.origin = "rgm", Xn.addAdvancedMarkerPointerEventsOverwrite());
812
+ const [s, g] = n ?? nt.BOTTOM, c = `calc(-1 * ${s})`, l = `calc(-1 * ${g})`;
813
+ a ? (e.anchorLeft = c, e.anchorTop = l, i.style.transform = "") : (i.style.transform = `translate(50%, 100%) translate(${c}, ${l})`, e.dataset.origin = "rgm", Qn.addAdvancedMarkerPointerEventsOverwrite());
814
814
  }
815
815
  }
816
816
  }, [e, n, t, o, r]);
817
817
  }
818
- function rt(e) {
818
+ function at(e) {
819
819
  var n, t, o;
820
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: f, center: m, defaultCenter: u, radius: h, defaultRadius: y } = e, d = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [p, b] = N(null), C = J(), w = te(Object.assign(Object.assign({}, d), { clickable: (n = d.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = d.draggable) !== null && t !== void 0 ? t : !!(a || i || s || f), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), ne);
820
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: f, center: m, defaultCenter: u, radius: h, defaultRadius: y } = e, d = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [p, b] = x(null), C = J(), M = oe(Object.assign(Object.assign({}, d), { clickable: (n = d.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = d.draggable) !== null && t !== void 0 ? t : !!(a || i || s || f), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), te);
821
821
  return E(() => {
822
822
  if (!C) {
823
823
  C === void 0 && console.error("<Circle> has to be inside a Map component.");
824
824
  return;
825
825
  }
826
- const A = new google.maps.Circle(Object.assign(Object.assign({}, w), { center: m ?? u, radius: h ?? y }));
826
+ const A = new google.maps.Circle(Object.assign(Object.assign({}, M), { center: m ?? u, radius: h ?? y }));
827
827
  return A.setMap(C), b(A), () => {
828
828
  A.setMap(null), b(null);
829
829
  };
@@ -833,19 +833,19 @@ function rt(e) {
833
833
  } : null), D(p, "center_changed", f ? () => {
834
834
  f(p == null ? void 0 : p.getCenter());
835
835
  } : null), E(() => {
836
- p && p.setOptions(w);
837
- }, [p, w]), E(() => {
838
- !p || !m || Ve(m, p.getCenter()) || p.setCenter(m);
836
+ p && p.setOptions(M);
837
+ }, [p, M]), E(() => {
838
+ !p || !m || Ge(m, p.getCenter()) || p.setCenter(m);
839
839
  }, [p, m]), E(() => {
840
840
  !p || h === void 0 || h !== p.getRadius() && p.setRadius(h);
841
841
  }, [p, h]), p;
842
842
  }
843
- const at = U((e, n) => {
844
- const t = rt(e);
845
- return H(n, () => t, [t]), T.createElement(T.Fragment, null);
843
+ const it = U((e, n) => {
844
+ const t = at(e);
845
+ return H(n, () => t, [t]), P.createElement(P.Fragment, null);
846
846
  });
847
- at.displayName = "Circle";
848
- function it(e, n, t) {
847
+ it.displayName = "Circle";
848
+ function st(e, n, t) {
849
849
  if (n != null && typeof n != "object")
850
850
  throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
851
851
  const o = e.style;
@@ -853,7 +853,7 @@ function it(e, n, t) {
853
853
  if (n == null)
854
854
  return;
855
855
  for (const r in n)
856
- n.hasOwnProperty(r) && _e(o, r, n[r]);
856
+ n.hasOwnProperty(r) && Ie(o, r, n[r]);
857
857
  return;
858
858
  }
859
859
  for (const r in t)
@@ -861,14 +861,14 @@ function it(e, n, t) {
861
861
  if (n != null)
862
862
  for (const r in n) {
863
863
  const a = n[r];
864
- n.hasOwnProperty(r) && t[r] !== a && _e(o, r, a);
864
+ n.hasOwnProperty(r) && t[r] !== a && Ie(o, r, a);
865
865
  }
866
866
  }
867
- function _e(e, n, t) {
867
+ function Ie(e, n, t) {
868
868
  const o = n.indexOf("--") === 0;
869
- t == null || typeof t == "boolean" || t === "" ? o ? e.setProperty(n, "") : n === "float" ? e.cssFloat = "" : e[n] = "" : o ? e.setProperty(n, t) : typeof t == "number" && t !== 0 && !lt(n) ? e[n] = t + "px" : n === "float" ? e.cssFloat = t : e[n] = ("" + t).trim();
869
+ t == null || typeof t == "boolean" || t === "" ? o ? e.setProperty(n, "") : n === "float" ? e.cssFloat = "" : e[n] = "" : o ? e.setProperty(n, t) : typeof t == "number" && t !== 0 && !ct(n) ? e[n] = t + "px" : n === "float" ? e.cssFloat = t : e[n] = ("" + t).trim();
870
870
  }
871
- const st = /* @__PURE__ */ new Set([
871
+ const lt = /* @__PURE__ */ new Set([
872
872
  "animationIterationCount",
873
873
  "aspectRatio",
874
874
  "borderImageOutset",
@@ -915,18 +915,18 @@ const st = /* @__PURE__ */ new Set([
915
915
  "strokeOpacity",
916
916
  "strokeWidth"
917
917
  ]);
918
- function lt(e) {
919
- return st.has(e);
918
+ function ct(e) {
919
+ return lt.has(e);
920
920
  }
921
- function Ie(e) {
921
+ function Ne(e) {
922
922
  const n = e.getPaths(), t = [];
923
923
  for (let o = 0; o < n.getLength(); o++)
924
924
  t.push(n.getAt(o).getArray());
925
925
  return t;
926
926
  }
927
- function ct(e) {
927
+ function dt(e) {
928
928
  var n, t, o;
929
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: f, encodedPaths: m, paths: u, defaultPaths: h } = e, y = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, p] = N(null), b = J(), C = Z("geometry"), w = F(!1), A = te(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), ne);
929
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: f, encodedPaths: m, paths: u, defaultPaths: h } = e, y = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, p] = x(null), b = J(), C = Z("geometry"), M = F(!1), A = oe(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), te);
930
930
  return E(() => {
931
931
  if (!b) {
932
932
  b === void 0 && console.error("<Polygon> has to be inside a Map component.");
@@ -945,7 +945,7 @@ function ct(e) {
945
945
  v.setMap(null), p(null);
946
946
  };
947
947
  }, [b, f]), D(d, "click", r), D(d, "drag", a), D(d, "dragstart", i), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
948
- s == null || s(v), l && d && !w.current && l(Ie(d));
948
+ s == null || s(v), l && d && !M.current && l(Ne(d));
949
949
  }), E(() => {
950
950
  if (!d || !l)
951
951
  return;
@@ -953,18 +953,18 @@ function ct(e) {
953
953
  if (typeof O.getLength != "function" || typeof O.getAt != "function")
954
954
  return;
955
955
  const L = () => {
956
- w.current || l(Ie(d));
957
- }, S = (M) => {
958
- v.push(google.maps.event.addListener(M, "insert_at", L)), v.push(google.maps.event.addListener(M, "remove_at", L)), v.push(google.maps.event.addListener(M, "set_at", L));
956
+ M.current || l(Ne(d));
957
+ }, k = (T) => {
958
+ v.push(google.maps.event.addListener(T, "insert_at", L)), v.push(google.maps.event.addListener(T, "remove_at", L)), v.push(google.maps.event.addListener(T, "set_at", L));
959
959
  };
960
- for (let M = 0; M < O.getLength(); M++)
961
- S(O.getAt(M));
962
- return v.push(google.maps.event.addListener(O, "insert_at", (M) => {
963
- S(O.getAt(M)), L();
964
- })), v.push(google.maps.event.addListener(O, "set_at", (M) => {
965
- S(O.getAt(M)), L();
960
+ for (let T = 0; T < O.getLength(); T++)
961
+ k(O.getAt(T));
962
+ return v.push(google.maps.event.addListener(O, "insert_at", (T) => {
963
+ k(O.getAt(T)), L();
964
+ })), v.push(google.maps.event.addListener(O, "set_at", (T) => {
965
+ k(O.getAt(T)), L();
966
966
  })), v.push(google.maps.event.addListener(O, "remove_at", L)), () => {
967
- v.forEach((M) => M.remove());
967
+ v.forEach((T) => T.remove());
968
968
  };
969
969
  }, [
970
970
  d,
@@ -979,23 +979,23 @@ function ct(e) {
979
979
  if (!d || !u || !Array.isArray(u))
980
980
  return;
981
981
  const v = u[0], O = Array.isArray(v) ? u : [u], L = d.getPaths();
982
- zn(O, L) || (w.current = !0, d.setPaths(u), w.current = !1);
982
+ Bn(O, L) || (M.current = !0, d.setPaths(u), M.current = !1);
983
983
  }, [d, u]), E(() => {
984
984
  if (!d || !m || !C)
985
985
  return;
986
- w.current = !0;
986
+ M.current = !0;
987
987
  const v = m.map((O) => C.encoding.decodePath(O));
988
- d.setPaths(v), w.current = !1;
988
+ d.setPaths(v), M.current = !1;
989
989
  }, [d, m, C]), d;
990
990
  }
991
- const dt = U((e, n) => {
992
- const t = ct(e);
993
- return H(n, () => t, [t]), T.createElement(T.Fragment, null);
991
+ const ut = U((e, n) => {
992
+ const t = dt(e);
993
+ return H(n, () => t, [t]), P.createElement(P.Fragment, null);
994
994
  });
995
- dt.displayName = "Polygon";
996
- function ut(e) {
995
+ ut.displayName = "Polygon";
996
+ function gt(e) {
997
997
  var n, t, o;
998
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: f, encodedPath: m, path: u, defaultPath: h } = e, y = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, p] = N(null), b = J(), C = Z("geometry"), w = F(!1), A = te(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), ne);
998
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: f, encodedPath: m, path: u, defaultPath: h } = e, y = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, p] = x(null), b = J(), C = Z("geometry"), M = F(!1), A = oe(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), te);
999
999
  return E(() => {
1000
1000
  if (!b) {
1001
1001
  b === void 0 && console.error("<Polyline> has to be inside a Map component.");
@@ -1014,7 +1014,7 @@ function ut(e) {
1014
1014
  v.setMap(null), p(null);
1015
1015
  };
1016
1016
  }, [b, f]), D(d, "click", r), D(d, "drag", a), D(d, "dragstart", i), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
1017
- s == null || s(v), l && d && !w.current && l(d.getPath().getArray());
1017
+ s == null || s(v), l && d && !M.current && l(d.getPath().getArray());
1018
1018
  }), E(() => {
1019
1019
  if (!d || !l)
1020
1020
  return;
@@ -1022,14 +1022,14 @@ function ut(e) {
1022
1022
  if (!v)
1023
1023
  return;
1024
1024
  const O = () => {
1025
- w.current || l(v.getArray());
1025
+ M.current || l(v.getArray());
1026
1026
  }, L = [
1027
1027
  google.maps.event.addListener(v, "insert_at", O),
1028
1028
  google.maps.event.addListener(v, "remove_at", O),
1029
1029
  google.maps.event.addListener(v, "set_at", O)
1030
1030
  ];
1031
1031
  return () => {
1032
- L.forEach((S) => S.remove());
1032
+ L.forEach((k) => k.remove());
1033
1033
  };
1034
1034
  }, [
1035
1035
  d,
@@ -1044,28 +1044,28 @@ function ut(e) {
1044
1044
  if (!d || !u)
1045
1045
  return;
1046
1046
  const v = d.getPath();
1047
- Ge(u, v) || (w.current = !0, d.setPath(u), w.current = !1);
1047
+ Je(u, v) || (M.current = !0, d.setPath(u), M.current = !1);
1048
1048
  }, [d, u]), E(() => {
1049
1049
  if (!d || !m || !C)
1050
1050
  return;
1051
- w.current = !0;
1051
+ M.current = !0;
1052
1052
  const v = C.encoding.decodePath(m);
1053
- d.setPath(v), w.current = !1;
1053
+ d.setPath(v), M.current = !1;
1054
1054
  }, [d, m, C]), d;
1055
1055
  }
1056
- const gt = U((e, n) => {
1057
- const t = ut(e);
1058
- return H(n, () => t, [t]), T.createElement(T.Fragment, null);
1056
+ const ft = U((e, n) => {
1057
+ const t = gt(e);
1058
+ return H(n, () => t, [t]), P.createElement(P.Fragment, null);
1059
1059
  });
1060
- gt.displayName = "Polyline";
1061
- const ft = {
1060
+ ft.displayName = "Polyline";
1061
+ const mt = {
1062
1062
  center: { lat: 0, lng: 0, altitude: 0 },
1063
1063
  range: 0,
1064
1064
  heading: 0,
1065
1065
  tilt: 0,
1066
1066
  roll: 0
1067
- }, mt = ["center", "range", "heading", "tilt", "roll"];
1068
- function pt(e, n, t) {
1067
+ }, pt = ["center", "range", "heading", "tilt", "roll"];
1068
+ function ht(e, n, t) {
1069
1069
  const o = e[t];
1070
1070
  if (o != null)
1071
1071
  if (t === "center") {
@@ -1074,15 +1074,15 @@ function pt(e, n, t) {
1074
1074
  } else
1075
1075
  n.current[t] = o;
1076
1076
  }
1077
- function ht(e) {
1078
- const n = Ze(), t = F(Object.assign({}, ft));
1077
+ function vt(e) {
1078
+ const n = $e(), t = F(Object.assign({}, mt));
1079
1079
  return E(() => {
1080
1080
  if (!e)
1081
1081
  return;
1082
1082
  const o = [];
1083
- for (const r of mt) {
1083
+ for (const r of pt) {
1084
1084
  const a = `gmp-${r}change`, i = () => {
1085
- pt(e, t, r), n();
1085
+ ht(e, t, r), n();
1086
1086
  };
1087
1087
  e.addEventListener(a, i), o.push(() => e.removeEventListener(a, i));
1088
1088
  }
@@ -1092,8 +1092,8 @@ function ht(e) {
1092
1092
  };
1093
1093
  }, [e, n]), t;
1094
1094
  }
1095
- function vt(e) {
1096
- const n = Z("maps3d"), [t, o] = N(!1), [, r] = he(), [a, i] = he(), s = ht(a);
1095
+ function yt(e) {
1096
+ const n = Z("maps3d"), [t, o] = x(!1), [, r] = ve(), [a, i] = ve(), s = vt(a);
1097
1097
  return E(() => {
1098
1098
  customElements.whenDefined("gmp-map-3d").then(() => {
1099
1099
  o(!0);
@@ -1115,23 +1115,23 @@ function vt(e) {
1115
1115
  defaultRoll: b,
1116
1116
  // Non-element props to exclude
1117
1117
  id: C,
1118
- style: w,
1118
+ style: M,
1119
1119
  className: A,
1120
1120
  children: v,
1121
1121
  onCenterChanged: O,
1122
1122
  onHeadingChanged: L,
1123
- onTiltChanged: S,
1124
- onRangeChanged: M,
1125
- onRollChanged: x,
1123
+ onTiltChanged: k,
1124
+ onRangeChanged: T,
1125
+ onRollChanged: _,
1126
1126
  onCameraChanged: $,
1127
- onClick: P,
1128
- onSteadyChange: k,
1129
- onAnimationEnd: de,
1130
- onError: Zt,
1127
+ onClick: q,
1128
+ onSteadyChange: w,
1129
+ onAnimationEnd: S,
1130
+ onError: ue,
1131
1131
  mode: $t,
1132
1132
  gestureHandling: qt
1133
- } = e, Ye = j(e, ["center", "heading", "tilt", "range", "roll", "defaultCenter", "defaultHeading", "defaultTilt", "defaultRange", "defaultRoll", "id", "style", "className", "children", "onCenterChanged", "onHeadingChanged", "onTiltChanged", "onRangeChanged", "onRollChanged", "onCameraChanged", "onClick", "onSteadyChange", "onAnimationEnd", "onError", "mode", "gestureHandling"]), Me = c ?? h, Pe = l ?? y, we = f ?? d, Ae = m ?? p, Te = u ?? b, q = Object.assign({}, Ye);
1134
- Me && (q.center = Me), Pe !== void 0 && (q.heading = Pe), we !== void 0 && (q.tilt = we), Ae !== void 0 && (q.range = Ae), Te !== void 0 && (q.roll = Te), Object.assign(a, q);
1133
+ } = e, Xe = j(e, ["center", "heading", "tilt", "range", "roll", "defaultCenter", "defaultHeading", "defaultTilt", "defaultRange", "defaultRoll", "id", "style", "className", "children", "onCenterChanged", "onHeadingChanged", "onTiltChanged", "onRangeChanged", "onRollChanged", "onCameraChanged", "onClick", "onSteadyChange", "onAnimationEnd", "onError", "mode", "gestureHandling"]), we = c ?? h, Pe = l ?? y, Ae = f ?? d, Te = m ?? p, Le = u ?? b, W = Object.assign({}, Xe);
1134
+ we && (W.center = we), Pe !== void 0 && (W.heading = Pe), Ae !== void 0 && (W.tilt = Ae), Te !== void 0 && (W.range = Te), Le !== void 0 && (W.roll = Le), Object.assign(a, W);
1135
1135
  },
1136
1136
  // this effect should only run when the map3d element first becomes
1137
1137
  // available, so we skip re-running it when other props change.
@@ -1139,13 +1139,13 @@ function vt(e) {
1139
1139
  [a]
1140
1140
  ), [a, r, i, s, !!n && t];
1141
1141
  }
1142
- function yt(e) {
1142
+ function bt(e) {
1143
1143
  return e ? "toJSON" in e && typeof e.toJSON == "function" ? e.toJSON() : e : null;
1144
1144
  }
1145
- function bt(e, n, t) {
1145
+ function Et(e, n, t) {
1146
1146
  var o, r, a, i, s, g, c;
1147
- const l = yt(t.center), f = (o = l == null ? void 0 : l.lat) !== null && o !== void 0 ? o : null, m = (r = l == null ? void 0 : l.lng) !== null && r !== void 0 ? r : null, u = (a = l == null ? void 0 : l.altitude) !== null && a !== void 0 ? a : null, h = (i = t.range) !== null && i !== void 0 ? i : null, y = (s = t.heading) !== null && s !== void 0 ? s : null, d = (g = t.tilt) !== null && g !== void 0 ? g : null, p = (c = t.roll) !== null && c !== void 0 ? c : null;
1148
- Y(() => {
1147
+ const l = bt(t.center), f = (o = l == null ? void 0 : l.lat) !== null && o !== void 0 ? o : null, m = (r = l == null ? void 0 : l.lng) !== null && r !== void 0 ? r : null, u = (a = l == null ? void 0 : l.altitude) !== null && a !== void 0 ? a : null, h = (i = t.range) !== null && i !== void 0 ? i : null, y = (s = t.heading) !== null && s !== void 0 ? s : null, d = (g = t.tilt) !== null && g !== void 0 ? g : null, p = (c = t.roll) !== null && c !== void 0 ? c : null;
1148
+ X(() => {
1149
1149
  var b;
1150
1150
  if (!e)
1151
1151
  return;
@@ -1157,14 +1157,14 @@ function bt(e, n, t) {
1157
1157
  }), h !== null && C.range !== h && (e.range = h), y !== null && C.heading !== y && (e.heading = y), d !== null && C.tilt !== d && (e.tilt = d), p !== null && C.roll !== p && (e.roll = p);
1158
1158
  });
1159
1159
  }
1160
- const Ne = [
1160
+ const xe = [
1161
1161
  "gmp-centerchange",
1162
1162
  "gmp-headingchange",
1163
1163
  "gmp-tiltchange",
1164
1164
  "gmp-rangechange",
1165
1165
  "gmp-rollchange"
1166
1166
  ];
1167
- function W(e, n) {
1167
+ function K(e, n) {
1168
1168
  const t = e.center;
1169
1169
  let o;
1170
1170
  return t && "toJSON" in t && typeof t.toJSON == "function" ? o = t.toJSON() : t ? o = t : o = { lat: 0, lng: 0, altitude: 0 }, {
@@ -1179,7 +1179,7 @@ function W(e, n) {
1179
1179
  }
1180
1180
  };
1181
1181
  }
1182
- function Et(e, n) {
1182
+ function Ct(e, n) {
1183
1183
  const t = n;
1184
1184
  return {
1185
1185
  type: "gmp-click",
@@ -1190,7 +1190,7 @@ function Et(e, n) {
1190
1190
  }
1191
1191
  };
1192
1192
  }
1193
- function Ct(e, n) {
1193
+ function Ot(e, n) {
1194
1194
  return {
1195
1195
  type: "gmp-steadychange",
1196
1196
  map3d: e,
@@ -1199,32 +1199,32 @@ function Ct(e, n) {
1199
1199
  }
1200
1200
  };
1201
1201
  }
1202
- function Ot(e, n) {
1202
+ function Mt(e, n) {
1203
1203
  const { onCenterChanged: t, onHeadingChanged: o, onTiltChanged: r, onRangeChanged: a, onRollChanged: i, onCameraChanged: s, onClick: g, onSteadyChange: c, onAnimationEnd: l, onError: f } = n;
1204
- G(e, "gmp-centerchange", t, W), G(e, "gmp-headingchange", o, W), G(e, "gmp-tiltchange", r, W), G(e, "gmp-rangechange", a, W), G(e, "gmp-rollchange", i, W), E(() => {
1204
+ G(e, "gmp-centerchange", t, K), G(e, "gmp-headingchange", o, K), G(e, "gmp-tiltchange", r, K), G(e, "gmp-rangechange", a, K), G(e, "gmp-rollchange", i, K), E(() => {
1205
1205
  if (!e || !s)
1206
1206
  return;
1207
1207
  const m = () => {
1208
- s(W(e, "camerachange"));
1208
+ s(K(e, "camerachange"));
1209
1209
  };
1210
- for (const u of Ne)
1210
+ for (const u of xe)
1211
1211
  e.addEventListener(u, m);
1212
1212
  return () => {
1213
- for (const u of Ne)
1213
+ for (const u of xe)
1214
1214
  e.removeEventListener(u, m);
1215
1215
  };
1216
1216
  }, [e, s]), E(() => {
1217
1217
  if (!e || !g)
1218
1218
  return;
1219
1219
  const m = (u) => {
1220
- g(Et(e, u));
1220
+ g(Ct(e, u));
1221
1221
  };
1222
1222
  return e.addEventListener("gmp-click", m), () => e.removeEventListener("gmp-click", m);
1223
1223
  }, [e, g]), E(() => {
1224
1224
  if (!e || !c)
1225
1225
  return;
1226
1226
  const m = (u) => {
1227
- c(Ct(e, u));
1227
+ c(Ot(e, u));
1228
1228
  };
1229
1229
  return e.addEventListener("gmp-steadychange", m), () => e.removeEventListener("gmp-steadychange", m);
1230
1230
  }, [e, c]), G(e, "gmp-animationend", l, (m, u) => ({
@@ -1245,7 +1245,7 @@ function G(e, n, t, o) {
1245
1245
  return e.addEventListener(n, r), () => e.removeEventListener(n, r);
1246
1246
  }, [e, n, t, o]);
1247
1247
  }
1248
- const Mt = /* @__PURE__ */ new Set([
1248
+ const wt = /* @__PURE__ */ new Set([
1249
1249
  "bounds",
1250
1250
  "defaultUIHidden",
1251
1251
  "gestureHandling",
@@ -1259,30 +1259,30 @@ const Mt = /* @__PURE__ */ new Set([
1259
1259
  "mode"
1260
1260
  ]);
1261
1261
  function Pt(e, n) {
1262
- const t = I(() => {
1262
+ const t = N(() => {
1263
1263
  const o = {}, r = Object.keys(n);
1264
1264
  for (const a of r) {
1265
- if (!Mt.has(a))
1265
+ if (!wt.has(a))
1266
1266
  continue;
1267
1267
  const i = n[a];
1268
1268
  i !== void 0 && (o[a] = i);
1269
1269
  }
1270
1270
  return o;
1271
1271
  }, [n]);
1272
- Ue(() => {
1272
+ He(() => {
1273
1273
  e && Object.assign(e, t);
1274
1274
  }, [e, t]);
1275
1275
  }
1276
- const wt = T.createContext(null), At = {
1276
+ const At = P.createContext(null), Tt = {
1277
1277
  width: "100%",
1278
1278
  height: "100%",
1279
1279
  position: "relative"
1280
- }, Tt = U((e, n) => {
1281
- const { children: t, id: o, className: r, style: a } = e, i = B(X);
1280
+ }, Lt = U((e, n) => {
1281
+ const { children: t, id: o, className: r, style: a } = e, i = B(Q);
1282
1282
  if (!i)
1283
1283
  throw new Error("<Map3D> can only be used inside an <APIProvider> component.");
1284
- const { addMap3DInstance: s, removeMap3DInstance: g } = i, [c, l, f, m, u] = vt(e);
1285
- bt(c, m, e), Ot(c, e), Pt(c, e), E(() => {
1284
+ const { addMap3DInstance: s, removeMap3DInstance: g } = i, [c, l, f, m, u] = yt(e);
1285
+ Et(c, m, e), Mt(c, e), Pt(c, e), E(() => {
1286
1286
  if (!c)
1287
1287
  return;
1288
1288
  const d = o ?? "default";
@@ -1301,24 +1301,24 @@ const wt = T.createContext(null), At = {
1301
1301
  c == null || c.stopCameraAnimation();
1302
1302
  }
1303
1303
  }), [c]);
1304
- const h = I(() => Object.assign(Object.assign({}, At), a), [a]), y = I(() => ({ map3d: c }), [c]);
1305
- return u ? T.createElement(
1304
+ const h = N(() => Object.assign(Object.assign({}, Tt), a), [a]), y = N(() => ({ map3d: c }), [c]);
1305
+ return u ? P.createElement(
1306
1306
  "div",
1307
1307
  Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : h, className: r }, o ? { id: o } : {}),
1308
- T.createElement("gmp-map-3d", { ref: f, style: { width: "100%", height: "100%" } }, c && T.createElement(wt.Provider, { value: y }, t))
1309
- ) : T.createElement("div", Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : h, className: r }, o ? { id: o } : {}));
1308
+ P.createElement("gmp-map-3d", { ref: f, style: { width: "100%", height: "100%" } }, c && P.createElement(At.Provider, { value: y }, t))
1309
+ ) : P.createElement("div", Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : h, className: r }, o ? { id: o } : {}));
1310
1310
  });
1311
- Tt.displayName = "Map3D";
1312
- const Oe = Xe(null), Lt = U(function(n, t) {
1313
- const { children: o, onClick: r, position: a, altitudeMode: i, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: f, zIndex: m, title: u } = n, h = !!r, [y, d] = N(null), [p, b] = N(!1), C = I(() => {
1311
+ Lt.displayName = "Map3D";
1312
+ const Me = Qe(null), Dt = U(function(n, t) {
1313
+ const { children: o, onClick: r, position: a, altitudeMode: i, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: f, zIndex: m, title: u } = n, h = !!r, [y, d] = x(null), [p, b] = x(!1), C = N(() => {
1314
1314
  const v = document.createElement("div");
1315
1315
  return v.style.display = "none", document.body.appendChild(v), v;
1316
1316
  }, []);
1317
1317
  E(() => () => C.remove(), [C]);
1318
- const w = le((v) => {
1318
+ const M = ce((v) => {
1319
1319
  d(v), typeof t == "function" ? t(v) : t && (t.current = v);
1320
1320
  }, [t]);
1321
- ve(y, "gmp-click", r), Y(() => {
1321
+ ye(y, "gmp-click", r), X(() => {
1322
1322
  if (p || !y || !C)
1323
1323
  return;
1324
1324
  for (; y.firstChild; )
@@ -1327,39 +1327,39 @@ const Oe = Xe(null), Lt = U(function(n, t) {
1327
1327
  for (const O of v) {
1328
1328
  if (O.nodeType !== Node.ELEMENT_NODE)
1329
1329
  continue;
1330
- const L = O, S = L.tagName.toLowerCase();
1331
- if (S === "img" || S === "svg") {
1332
- const M = document.createElement("template");
1333
- M.content.appendChild(L.cloneNode(!0)), y.appendChild(M);
1330
+ const L = O, k = L.tagName.toLowerCase();
1331
+ if (k === "img" || k === "svg") {
1332
+ const T = document.createElement("template");
1333
+ T.content.appendChild(L.cloneNode(!0)), y.appendChild(T);
1334
1334
  } else
1335
1335
  y.appendChild(L.cloneNode(!0));
1336
1336
  }
1337
1337
  }, [y, C, o, p]);
1338
- const A = I(() => ({ marker: y, setContentHandledExternally: b }), [y]);
1339
- return _(y, "position", a), _(y, "altitudeMode", i), _(y, "collisionBehavior", s), _(y, "drawsWhenOccluded", g), _(y, "extruded", c), _(y, "label", l), _(y, "sizePreserved", f), _(y, "zIndex", m), _(y, "title", u ?? ""), T.createElement(
1340
- Oe.Provider,
1338
+ const A = N(() => ({ marker: y, setContentHandledExternally: b }), [y]);
1339
+ return I(y, "position", a), I(y, "altitudeMode", i), I(y, "collisionBehavior", s), I(y, "drawsWhenOccluded", g), I(y, "extruded", c), I(y, "label", l), I(y, "sizePreserved", f), I(y, "zIndex", m), I(y, "title", u ?? ""), P.createElement(
1340
+ Me.Provider,
1341
1341
  { value: A },
1342
- h ? T.createElement("gmp-marker-3d-interactive", { ref: w }) : T.createElement("gmp-marker-3d", { ref: w }),
1343
- ce(o, C)
1342
+ h ? P.createElement("gmp-marker-3d-interactive", { ref: M }) : P.createElement("gmp-marker-3d", { ref: M }),
1343
+ de(o, C)
1344
1344
  );
1345
1345
  });
1346
- Lt.displayName = "Marker3D";
1347
- const Dt = U(function(n, t) {
1346
+ Dt.displayName = "Marker3D";
1347
+ const St = U(function(n, t) {
1348
1348
  var o;
1349
- const { children: r, headerContent: a, style: i, className: s, open: g = !0, position: c, anchor: l, anchorId: f, altitudeMode: m, lightDismissDisabled: u, autoPanDisabled: h, onClose: y } = n, [d, p] = N(null), b = F(null);
1350
- H(t, () => d, [d]), St(d, g, y), _(d, "open", g ?? !1), _(d, "altitudeMode", m), _(d, "lightDismissDisabled", u), _(d, "autoPanDisabled", h);
1349
+ const { children: r, headerContent: a, style: i, className: s, open: g = !0, position: c, anchor: l, anchorId: f, altitudeMode: m, lightDismissDisabled: u, autoPanDisabled: h, onClose: y } = n, [d, p] = x(null), b = F(null);
1350
+ H(t, () => d, [d]), kt(d, g, y), I(d, "open", g ?? !1), I(d, "altitudeMode", m), I(d, "lightDismissDisabled", u), I(d, "autoPanDisabled", h);
1351
1351
  const C = (o = l ?? f) !== null && o !== void 0 ? o : c;
1352
- return _(d, "positionAnchor", C), Y(() => {
1353
- d && (it(d, i || null, b.current), b.current = i || null);
1354
- }, [d, i]), T.createElement(
1352
+ return I(d, "positionAnchor", C), X(() => {
1353
+ d && (st(d, i || null, b.current), b.current = i || null);
1354
+ }, [d, i]), P.createElement(
1355
1355
  "gmp-popover",
1356
1356
  { ref: p, className: s },
1357
- a && T.createElement("div", { slot: "header" }, a),
1357
+ a && P.createElement("div", { slot: "header" }, a),
1358
1358
  r
1359
1359
  );
1360
1360
  });
1361
- Dt.displayName = "Popover";
1362
- function St(e, n, t) {
1361
+ St.displayName = "Popover";
1362
+ function kt(e, n, t) {
1363
1363
  const o = F(void 0), r = F(n);
1364
1364
  E(() => {
1365
1365
  r.current = n;
@@ -1381,8 +1381,8 @@ function St(e, n, t) {
1381
1381
  };
1382
1382
  }, [e, t]);
1383
1383
  }
1384
- function kt(e) {
1385
- const [n, t] = N(null), o = J(), { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c } = e, l = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"]), { position: f, draggable: m } = l;
1384
+ function _t(e) {
1385
+ const [n, t] = x(null), o = J(), { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c } = e, l = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"]), { position: f, draggable: m } = l;
1386
1386
  return E(() => {
1387
1387
  if (!o) {
1388
1388
  o === void 0 && console.error("<Marker> has to be inside a Map component.");
@@ -1414,13 +1414,13 @@ function kt(e) {
1414
1414
  m || !f || !n || n.setPosition(f);
1415
1415
  }, [m, f, n]), n;
1416
1416
  }
1417
- const _t = U((e, n) => {
1418
- const t = kt(e);
1419
- return H(n, () => t, [t]), T.createElement(T.Fragment, null);
1417
+ const It = U((e, n) => {
1418
+ const t = _t(e);
1419
+ return H(n, () => t, [t]), P.createElement(P.Fragment, null);
1420
1420
  });
1421
- _t.displayName = "Marker";
1422
- const It = (e) => {
1423
- const n = B(Ce), t = B(Oe), o = n == null ? void 0 : n.marker, r = t == null ? void 0 : t.marker, a = t == null ? void 0 : t.setContentHandledExternally, i = I(() => document.createElement("div"), []), s = Z("marker");
1421
+ It.displayName = "Marker";
1422
+ const Nt = (e) => {
1423
+ const n = B(Oe), t = B(Me), o = n == null ? void 0 : n.marker, r = t == null ? void 0 : t.marker, a = t == null ? void 0 : t.setContentHandledExternally, i = N(() => document.createElement("div"), []), s = Z("marker");
1424
1424
  return E(() => {
1425
1425
  if (r && a)
1426
1426
  return a(!0), () => a(!1);
@@ -1440,16 +1440,16 @@ const It = (e) => {
1440
1440
  o === void 0 && r === void 0 && console.error("The <Pin> component can only be used inside <AdvancedMarker> or <Marker3D>.");
1441
1441
  return;
1442
1442
  }
1443
- e.glyph && e.children && Q("The <Pin> component only uses children to render the glyph if both the glyph property and children are present."), be.count(e.children) > 1 && Q("Passing multiple children to the <Pin> component might lead to unexpected results.");
1443
+ e.glyph && e.children && ee("The <Pin> component only uses children to render the glyph if both the glyph property and children are present."), Ee.count(e.children) > 1 && ee("Passing multiple children to the <Pin> component might lead to unexpected results.");
1444
1444
  const c = Object.assign({}, e), l = new google.maps.marker.PinElement(c);
1445
1445
  e.children && (l.glyph = i);
1446
1446
  const f = (g = o.content) === null || g === void 0 ? void 0 : g.firstChild;
1447
1447
  for (; f != null && f.firstChild; )
1448
1448
  f.removeChild(f.firstChild);
1449
1449
  f && f.appendChild(l.element);
1450
- }, [o, i, r, e]), ce(e.children, i);
1451
- }, Nt = (e) => {
1452
- const { children: n } = e, t = B(Ce), o = B(Oe), r = t == null ? void 0 : t.marker, a = o == null ? void 0 : o.marker, i = o == null ? void 0 : o.setContentHandledExternally, s = I(() => document.createElement("div"), []), g = Z("marker");
1450
+ }, [o, i, r, e]), de(e.children, i);
1451
+ }, xt = (e) => {
1452
+ const { children: n } = e, t = B(Oe), o = B(Me), r = t == null ? void 0 : t.marker, a = o == null ? void 0 : o.marker, i = o == null ? void 0 : o.setContentHandledExternally, s = N(() => document.createElement("div"), []), g = Z("marker");
1453
1453
  return E(() => {
1454
1454
  if (a && i)
1455
1455
  return i(!0), () => i(!1);
@@ -1469,7 +1469,7 @@ const It = (e) => {
1469
1469
  r === void 0 && a === void 0 && console.error("The <Pin> component can only be used inside <AdvancedMarker> or <Marker3D>.");
1470
1470
  return;
1471
1471
  }
1472
- (e.glyphSrc || e.glyphText) && n && Q("The <Pin> component only uses children to render the glyph if both glyphSrc/glyphText and children are present."), be.count(n) > 1 && Q("Passing multiple children to the <Pin> component might lead to unexpected results.");
1472
+ (e.glyphSrc || e.glyphText) && n && ee("The <Pin> component only uses children to render the glyph if both glyphSrc/glyphText and children are present."), Ee.count(n) > 1 && ee("Passing multiple children to the <Pin> component might lead to unexpected results.");
1473
1473
  const l = Object.assign({}, e), f = new g.PinElement(l);
1474
1474
  n && f.appendChild(s);
1475
1475
  const m = (c = r.content) === null || c === void 0 ? void 0 : c.firstChild;
@@ -1483,23 +1483,23 @@ const It = (e) => {
1483
1483
  a,
1484
1484
  n,
1485
1485
  e
1486
- ]), ce(n, s);
1487
- }, xt = (e) => {
1486
+ ]), de(n, s);
1487
+ }, Rt = (e) => {
1488
1488
  var n;
1489
- const t = Z("marker"), o = I(() => t ? typeof customElements < "u" && customElements.get("gmp-pin") !== void 0 : !1, [t]);
1489
+ const t = Z("marker"), o = N(() => t ? typeof customElements < "u" && customElements.get("gmp-pin") !== void 0 : !1, [t]);
1490
1490
  if (!t)
1491
1491
  return null;
1492
1492
  if (o) {
1493
1493
  const { glyph: r, glyphSrc: a, glyphText: i } = e, s = j(e, ["glyph", "glyphSrc", "glyphText"]), g = r instanceof URL || typeof r == "string" && r.startsWith("http"), c = i ?? (typeof r == "string" && !g ? r : void 0), l = a ?? (g ? String(r) : void 0);
1494
- return T.createElement(Nt, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
1494
+ return P.createElement(xt, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
1495
1495
  } else {
1496
1496
  const { glyph: r, glyphSrc: a, glyphText: i } = e, s = j(e, ["glyph", "glyphSrc", "glyphText"]), g = (n = r ?? a) !== null && n !== void 0 ? n : i;
1497
- return T.createElement(It, Object.assign({}, s, { glyph: g }));
1497
+ return P.createElement(Nt, Object.assign({}, s, { glyph: g }));
1498
1498
  }
1499
1499
  };
1500
- function Rt(e) {
1500
+ function jt(e) {
1501
1501
  var n, t, o;
1502
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onBoundsChanged: l, bounds: f, defaultBounds: m } = e, u = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [h, y] = N(null), d = J(), p = te(Object.assign(Object.assign({}, u), { clickable: (n = u.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = u.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = u.editable) !== null && o !== void 0 ? o : !!l }), ne);
1502
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onBoundsChanged: l, bounds: f, defaultBounds: m } = e, u = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [h, y] = x(null), d = J(), p = oe(Object.assign(Object.assign({}, u), { clickable: (n = u.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = u.draggable) !== null && t !== void 0 ? t : !!(a || i || s || l), editable: (o = u.editable) !== null && o !== void 0 ? o : !!l }), te);
1503
1503
  return E(() => {
1504
1504
  if (!d) {
1505
1505
  d === void 0 && console.error("<Rectangle> has to be inside a Map component.");
@@ -1514,21 +1514,21 @@ function Rt(e) {
1514
1514
  } : null), E(() => {
1515
1515
  h && h.setOptions(p);
1516
1516
  }, [h, p]), E(() => {
1517
- !h || !f || jn(f, h.getBounds()) || h.setBounds(f);
1517
+ !h || !f || zn(f, h.getBounds()) || h.setBounds(f);
1518
1518
  }, [h, f]), h;
1519
1519
  }
1520
- const jt = U((e, n) => {
1521
- const t = Rt(e);
1520
+ const zt = U((e, n) => {
1521
+ const t = jt(e);
1522
1522
  return H(n, () => t, [
1523
1523
  t
1524
- ]), T.createElement(T.Fragment, null);
1524
+ ]), P.createElement(P.Fragment, null);
1525
1525
  });
1526
- jt.displayName = "Rectangle";
1527
- function K(e) {
1526
+ zt.displayName = "Rectangle";
1527
+ function Y(e) {
1528
1528
  return typeof document > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(e).trim();
1529
1529
  }
1530
- function fe() {
1531
- const e = K("--background"), n = K("--foreground"), t = K("--border"), o = K("--muted"), r = K("--muted-foreground"), a = K("--primary");
1530
+ function me() {
1531
+ const e = Y("--background"), n = Y("--foreground"), t = Y("--border"), o = Y("--muted"), r = Y("--muted-foreground"), a = Y("--primary");
1532
1532
  return [
1533
1533
  // Hide business POIs — clinical-listing UIs don't want Google's
1534
1534
  // restaurants / shops bleeding into the practice-location card.
@@ -1633,7 +1633,7 @@ function fe() {
1633
1633
  }
1634
1634
  ];
1635
1635
  }
1636
- const zt = {
1636
+ const Bt = {
1637
1637
  id: "map-view",
1638
1638
  capabilities: [],
1639
1639
  state: {},
@@ -1675,29 +1675,29 @@ const zt = {
1675
1675
  description: "Sourced from the id prop."
1676
1676
  }
1677
1677
  }
1678
- }, Bt = ee(
1679
- [
1680
- "ds:relative ds:overflow-hidden ds:block",
1681
- "ds:rounded-[var(--radius-md)] ds:border",
1682
- "ds:border-[color:var(--border)]",
1683
- "ds:bg-[var(--muted)]"
1684
- ].join(" "),
1678
+ }, Ft = ne(
1679
+ ["ds:relative ds:overflow-hidden ds:block", "ds:bg-[var(--muted)]"].join(" "),
1685
1680
  {
1686
1681
  variants: {
1687
1682
  size: {
1688
1683
  sm: "ds:[--map-block-size:14rem]",
1689
1684
  md: "ds:[--map-block-size:20rem]",
1690
1685
  lg: "ds:[--map-block-size:28rem]"
1686
+ },
1687
+ surface: {
1688
+ bordered: "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
1689
+ elevated: "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
1690
+ bare: "ds:rounded-none ds:border-0"
1691
1691
  }
1692
1692
  },
1693
- defaultVariants: { size: "md" }
1693
+ defaultVariants: { size: "md", surface: "bordered" }
1694
1694
  }
1695
- ), Ft = ee(
1695
+ ), Ut = ne(
1696
1696
  [
1697
1697
  "ds:block ds:inline-size-full",
1698
1698
  "ds:[block-size:var(--map-block-size)]"
1699
1699
  ].join(" ")
1700
- ), Ut = ee(
1700
+ ), Ht = ne(
1701
1701
  [
1702
1702
  "ds:absolute ds:inset-0",
1703
1703
  "ds:flex ds:flex-col ds:items-center ds:justify-center",
@@ -1706,10 +1706,10 @@ const zt = {
1706
1706
  "ds:bg-[var(--muted)] ds:text-[var(--foreground)]",
1707
1707
  "ds:text-center"
1708
1708
  ].join(" ")
1709
- ), Ht = ee("type-heading-3 ds:m-0"), xe = ee(
1709
+ ), Vt = ne("type-heading-3 ds:m-0"), Re = ne(
1710
1710
  "type-body-sm ds:text-[var(--muted-foreground)] ds:max-inline-size-[28rem] ds:m-0"
1711
1711
  );
1712
- function Vt({
1712
+ function Gt({
1713
1713
  onHandleReady: e,
1714
1714
  onMarkerSelect: n
1715
1715
  }) {
@@ -1722,34 +1722,34 @@ function Vt({
1722
1722
  });
1723
1723
  }, [t, e, n]), null;
1724
1724
  }
1725
- function Gt({
1725
+ function Jt({
1726
1726
  address: e,
1727
1727
  description: n,
1728
1728
  onConsentRequest: t,
1729
1729
  openInGoogleMapsHref: o
1730
1730
  }) {
1731
- const { t: r } = ze();
1732
- return /* @__PURE__ */ ae("div", { className: Ut(), "data-testid": "map-view-consent", children: [
1731
+ const { t: r } = Be();
1732
+ return /* @__PURE__ */ ie("div", { className: Ht(), "data-testid": "map-view-consent", children: [
1733
1733
  /* @__PURE__ */ R(
1734
- on,
1734
+ rn,
1735
1735
  {
1736
1736
  "aria-hidden": "true",
1737
1737
  className: "ds:size-6 ds:text-[var(--muted-foreground)]"
1738
1738
  }
1739
1739
  ),
1740
- /* @__PURE__ */ R("p", { className: Ht(), children: r("mapView.consentTitle") }),
1740
+ /* @__PURE__ */ R("p", { className: Vt(), children: r("mapView.consentTitle") }),
1741
1741
  e ? /* @__PURE__ */ R(
1742
1742
  "p",
1743
1743
  {
1744
- className: xe(),
1744
+ className: Re(),
1745
1745
  "data-testid": "map-view-address",
1746
1746
  children: e
1747
1747
  }
1748
1748
  ) : null,
1749
- /* @__PURE__ */ R("p", { className: xe(), children: n }),
1750
- /* @__PURE__ */ ae("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
1749
+ /* @__PURE__ */ R("p", { className: Re(), children: n }),
1750
+ /* @__PURE__ */ ie("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
1751
1751
  t ? /* @__PURE__ */ R(
1752
- nn,
1752
+ tn,
1753
1753
  {
1754
1754
  type: "button",
1755
1755
  intent: "primary",
@@ -1758,7 +1758,7 @@ function Gt({
1758
1758
  children: r("mapView.consentCta")
1759
1759
  }
1760
1760
  ) : null,
1761
- /* @__PURE__ */ ae(
1761
+ /* @__PURE__ */ ie(
1762
1762
  "a",
1763
1763
  {
1764
1764
  href: o,
@@ -1767,14 +1767,14 @@ function Gt({
1767
1767
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[var(--primary)] ds:underline ds:underline-offset-2",
1768
1768
  children: [
1769
1769
  r("mapView.openInGoogleMaps"),
1770
- /* @__PURE__ */ R(rn, { "aria-hidden": "true", className: "ds:size-3" })
1770
+ /* @__PURE__ */ R(an, { "aria-hidden": "true", className: "ds:size-3" })
1771
1771
  ]
1772
1772
  }
1773
1773
  )
1774
1774
  ] })
1775
1775
  ] });
1776
1776
  }
1777
- const Jt = U(
1777
+ const Zt = U(
1778
1778
  ({
1779
1779
  id: e,
1780
1780
  apiKey: n,
@@ -1789,124 +1789,125 @@ const Jt = U(
1789
1789
  consentDescription: l,
1790
1790
  mapId: f,
1791
1791
  size: m,
1792
- ariaLabel: u,
1793
- className: h,
1794
- ...y
1795
- }, d) => {
1796
- const { t: p, i18n: b } = ze(), C = Qe(), w = I(
1797
- () => `map-${C.replace(/[^a-zA-Z0-9-_]/g, "")}`,
1798
- [C]
1799
- ), [A, v] = N(!1);
1792
+ surface: u,
1793
+ ariaLabel: h,
1794
+ className: y,
1795
+ ...d
1796
+ }, p) => {
1797
+ const { t: b, i18n: C } = Be(), M = en(), A = N(
1798
+ () => `map-${M.replace(/[^a-zA-Z0-9-_]/g, "")}`,
1799
+ [M]
1800
+ ), [v, O] = x(!1);
1800
1801
  E(() => {
1801
1802
  if (typeof window > "u") return;
1802
- const P = window.matchMedia("(prefers-reduced-motion: reduce)"), k = () => v(P.matches);
1803
- return k(), P.addEventListener("change", k), () => P.removeEventListener("change", k);
1803
+ const w = window.matchMedia("(prefers-reduced-motion: reduce)"), S = () => O(w.matches);
1804
+ return S(), w.addEventListener("change", S), () => w.removeEventListener("change", S);
1804
1805
  }, []);
1805
- const O = I(() => `https://www.google.com/maps/search/?api=1&query=${c ? encodeURIComponent(c) : `${t.lat},${t.lng}`}`, [c, t.lat, t.lng]), [L, S] = N(
1806
- () => f ? [] : fe()
1806
+ const L = N(() => `https://www.google.com/maps/search/?api=1&query=${c ? encodeURIComponent(c) : `${t.lat},${t.lng}`}`, [c, t.lat, t.lng]), [k, T] = x(
1807
+ () => f ? [] : me()
1807
1808
  );
1808
1809
  E(() => {
1809
1810
  if (f || typeof document > "u") return;
1810
- S(fe());
1811
- const P = new MutationObserver(() => {
1812
- S(fe());
1811
+ T(me());
1812
+ const w = new MutationObserver(() => {
1813
+ T(me());
1813
1814
  });
1814
- return P.observe(document.documentElement, {
1815
+ return w.observe(document.documentElement, {
1815
1816
  attributes: !0,
1816
1817
  attributeFilter: ["class"]
1817
- }), () => P.disconnect();
1818
+ }), () => w.disconnect();
1818
1819
  }, [f]);
1819
- const M = F(null), x = le((P) => {
1820
- M.current = P;
1820
+ const _ = F(null), $ = ce((w) => {
1821
+ _.current = w;
1821
1822
  }, []);
1822
1823
  H(
1823
- d,
1824
+ p,
1824
1825
  () => ({
1825
- panTo: (P) => {
1826
- var k;
1827
- return (k = M.current) == null ? void 0 : k.panTo(P);
1826
+ panTo: (w) => {
1827
+ var S;
1828
+ return (S = _.current) == null ? void 0 : S.panTo(w);
1828
1829
  },
1829
- setZoom: (P) => {
1830
- var k;
1831
- return (k = M.current) == null ? void 0 : k.setZoom(P);
1830
+ setZoom: (w) => {
1831
+ var S;
1832
+ return (S = _.current) == null ? void 0 : S.setZoom(w);
1832
1833
  },
1833
- selectMarker: (P) => {
1834
- var k;
1835
- return (k = M.current) == null ? void 0 : k.selectMarker(P);
1834
+ selectMarker: (w) => {
1835
+ var S;
1836
+ return (S = _.current) == null ? void 0 : S.selectMarker(w);
1836
1837
  }
1837
1838
  }),
1838
1839
  []
1839
1840
  );
1840
- const $ = I(
1841
+ const q = N(
1841
1842
  () => ({
1842
- panTo: (P) => {
1843
- var k;
1844
- return (k = M.current) == null ? void 0 : k.panTo(P);
1843
+ panTo: (w) => {
1844
+ var S;
1845
+ return (S = _.current) == null ? void 0 : S.panTo(w);
1845
1846
  },
1846
- setZoom: (P) => {
1847
- var k;
1848
- return (k = M.current) == null ? void 0 : k.setZoom(P);
1847
+ setZoom: (w) => {
1848
+ var S;
1849
+ return (S = _.current) == null ? void 0 : S.setZoom(w);
1849
1850
  },
1850
- selectMarker: (P) => {
1851
- var k;
1852
- return (k = M.current) == null ? void 0 : k.selectMarker(P);
1851
+ selectMarker: (w) => {
1852
+ var S;
1853
+ return (S = _.current) == null ? void 0 : S.selectMarker(w);
1853
1854
  }
1854
1855
  }),
1855
1856
  []
1856
1857
  );
1857
- return tn(zt, $, e), E(() => {
1858
- var P;
1859
- A || (P = M.current) == null || P.panTo(t);
1860
- }, [t.lat, t.lng, A]), E(() => {
1861
- var P;
1862
- (P = M.current) == null || P.setZoom(o);
1858
+ return on(Bt, q, e), E(() => {
1859
+ var w;
1860
+ v || (w = _.current) == null || w.panTo(t);
1861
+ }, [t.lat, t.lng, v]), E(() => {
1862
+ var w;
1863
+ (w = _.current) == null || w.setZoom(o);
1863
1864
  }, [o]), /* @__PURE__ */ R(
1864
1865
  "div",
1865
1866
  {
1866
- className: Bt({ size: m, className: h }),
1867
+ className: Ft({ size: m, surface: u, className: y }),
1867
1868
  "data-component": "map-view",
1868
- "data-component-id": e ?? w,
1869
+ "data-component-id": e ?? A,
1869
1870
  role: "region",
1870
- "aria-label": u ?? p("mapView.label"),
1871
- ...y,
1872
- children: /* @__PURE__ */ R("div", { className: Ft(), children: s ? /* @__PURE__ */ R(
1873
- An,
1871
+ "aria-label": h ?? b("mapView.label"),
1872
+ ...d,
1873
+ children: /* @__PURE__ */ R("div", { className: Ut(), children: s ? /* @__PURE__ */ R(
1874
+ Tn,
1874
1875
  {
1875
1876
  apiKey: n,
1876
- language: b.language,
1877
- children: /* @__PURE__ */ ae(
1878
- qe,
1877
+ language: C.language,
1878
+ children: /* @__PURE__ */ ie(
1879
+ We,
1879
1880
  {
1880
1881
  defaultCenter: t,
1881
1882
  defaultZoom: o,
1882
1883
  mapId: f,
1883
- styles: f ? void 0 : L,
1884
+ styles: f ? void 0 : k,
1884
1885
  gestureHandling: "cooperative",
1885
1886
  disableDefaultUI: !1,
1886
1887
  onClick: () => i == null ? void 0 : i(null),
1887
1888
  className: "ds:[inline-size:100%] ds:[block-size:100%]",
1888
1889
  children: [
1889
1890
  /* @__PURE__ */ R(
1890
- Vt,
1891
+ Gt,
1891
1892
  {
1892
- onHandleReady: x,
1893
- onMarkerSelect: (P) => i == null ? void 0 : i(P)
1893
+ onHandleReady: $,
1894
+ onMarkerSelect: (w) => i == null ? void 0 : i(w)
1894
1895
  }
1895
1896
  ),
1896
- (r ?? []).map((P) => {
1897
- const k = a != null && a === P.id, de = p("mapView.markerLabel", {
1898
- label: P.label ?? P.id
1897
+ (r ?? []).map((w) => {
1898
+ const S = a != null && a === w.id, ue = b("mapView.markerLabel", {
1899
+ label: w.label ?? w.id
1899
1900
  });
1900
1901
  return /* @__PURE__ */ R(
1901
- Ke,
1902
+ Ye,
1902
1903
  {
1903
- position: P.position,
1904
- title: de,
1905
- "aria-label": de,
1906
- "data-selected": k ? "true" : "false",
1907
- onClick: () => i == null ? void 0 : i(P.id),
1904
+ position: w.position,
1905
+ title: ue,
1906
+ "aria-label": ue,
1907
+ "data-selected": S ? "true" : "false",
1908
+ onClick: () => i == null ? void 0 : i(w.id),
1908
1909
  children: /* @__PURE__ */ R(
1909
- xt,
1910
+ Rt,
1910
1911
  {
1911
1912
  background: "var(--primary)",
1912
1913
  borderColor: "var(--primary)",
@@ -1914,7 +1915,7 @@ const Jt = U(
1914
1915
  }
1915
1916
  )
1916
1917
  },
1917
- P.id
1918
+ w.id
1918
1919
  );
1919
1920
  })
1920
1921
  ]
@@ -1922,20 +1923,20 @@ const Jt = U(
1922
1923
  )
1923
1924
  }
1924
1925
  ) : /* @__PURE__ */ R(
1925
- Gt,
1926
+ Jt,
1926
1927
  {
1927
1928
  address: c,
1928
- description: l ?? p("mapView.consentDescription"),
1929
+ description: l ?? b("mapView.consentDescription"),
1929
1930
  onConsentRequest: g,
1930
- openInGoogleMapsHref: O
1931
+ openInGoogleMapsHref: L
1931
1932
  }
1932
1933
  ) })
1933
1934
  }
1934
1935
  );
1935
1936
  }
1936
1937
  );
1937
- Jt.displayName = "MapView";
1938
+ Zt.displayName = "MapView";
1938
1939
  export {
1939
- Jt as M
1940
+ Zt as M
1940
1941
  };
1941
- //# sourceMappingURL=map-view-Dd48BxVB.js.map
1942
+ //# sourceMappingURL=map-view-DVP-Kp9l.js.map