@alfadocs/ui-kit 0.31.8 → 0.32.1

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 (103) hide show
  1. package/dist/_chunks/{agenda-card-DtGlQde1.js → agenda-card-CFyWSX7Z.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-CXmlwt2K.js → agenda-tray-By_asPN9.js} +2 -2
  3. package/dist/_chunks/{badge-B9Cr6iEB.js → badge-zsf5i5bH.js} +9 -2
  4. package/dist/_chunks/{benefit-card-B86DH-PE.js → benefit-card-_Sc-MGha.js} +18 -8
  5. package/dist/_chunks/{booking-A4o9xI2n.js → booking-h_kBZM6M.js} +24 -26
  6. package/dist/_chunks/{card-CNri9ssR.js → card-DPmk26CL.js} +2 -2
  7. package/dist/_chunks/{contact-card-Dos7Tley.js → contact-card-Cf8Ktyt3.js} +2 -2
  8. package/dist/_chunks/{practice-profile-card-CfAMeTxQ.js → contact-profile-card-Ce-LIDU8.js} +128 -125
  9. package/dist/_chunks/{editable-currency-cell-renderer-YvTwkFrD.js → editable-currency-cell-renderer-B9VRSV_S.js} +2 -2
  10. package/dist/_chunks/{key-value-pair-CYE7NSpM.js → key-value-pair-CkQIb9EG.js} +42 -32
  11. package/dist/_chunks/{map-view-WEWqXzof.js → map-view-knHSNLoe.js} +140 -128
  12. package/dist/_chunks/{operator-hero-BsjE-kJF.js → operator-hero-7LiiP7zi.js} +4 -4
  13. package/dist/_chunks/{patient-search-CSDru7QW.js → patient-search-CBq62kmL.js} +2 -2
  14. package/dist/_chunks/{practice-results-CIkAdwRm.js → practice-results-Bw5fJTYF.js} +4 -4
  15. package/dist/_chunks/{reviews-panel-Cjys8G8K.js → reviews-panel-B-18RBSn.js} +39 -36
  16. package/dist/_chunks/{stat-CYEx8sIR.js → stat-EC2Papj7.js} +14 -14
  17. package/dist/_chunks/{timeline-BZC7qGdy.js → timeline-DQa5Tyz4.js} +2 -2
  18. package/dist/_chunks/{workflow-map-DfpjDZHK.js → workflow-map-uSiHbOWQ.js} +4 -4
  19. package/dist/agent-catalog.json +28 -28
  20. package/dist/components/agenda-card/index.js +1 -1
  21. package/dist/components/agenda-tray/index.js +1 -1
  22. package/dist/components/badge/index.js +1 -1
  23. package/dist/components/benefit-card/index.js +1 -1
  24. package/dist/components/booking/index.js +1 -1
  25. package/dist/components/card/index.js +1 -1
  26. package/dist/components/contact-card/index.js +1 -1
  27. package/dist/components/contact-profile-card/contact-profile-card.agent.d.ts +4 -0
  28. package/dist/components/{practice-profile-card/practice-profile-card.d.ts → contact-profile-card/contact-profile-card.d.ts} +9 -9
  29. package/dist/components/contact-profile-card/index.d.ts +4 -0
  30. package/dist/components/contact-profile-card/index.js +8 -0
  31. package/dist/components/data-table/index.js +1 -1
  32. package/dist/components/index.d.ts +1 -1
  33. package/dist/components/key-value-pair/index.js +1 -1
  34. package/dist/components/map-view/index.js +1 -1
  35. package/dist/components/map-view/map-view.d.ts +1 -1
  36. package/dist/components/operator-hero/index.js +1 -1
  37. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  38. package/dist/components/patient-search/index.js +1 -1
  39. package/dist/components/practice-results/index.js +1 -1
  40. package/dist/components/reviews-panel/index.js +1 -1
  41. package/dist/components/stat/index.js +1 -1
  42. package/dist/components/timeline/index.js +1 -1
  43. package/dist/components/workflow/index.js +1 -1
  44. package/dist/i18n/locales/ar.d.ts +1 -1
  45. package/dist/i18n/locales/ar.js +2 -2
  46. package/dist/i18n/locales/de.d.ts +1 -1
  47. package/dist/i18n/locales/de.js +2 -2
  48. package/dist/i18n/locales/el.d.ts +1 -1
  49. package/dist/i18n/locales/el.js +2 -2
  50. package/dist/i18n/locales/en.d.ts +1 -1
  51. package/dist/i18n/locales/en.js +2 -2
  52. package/dist/i18n/locales/es.d.ts +1 -1
  53. package/dist/i18n/locales/es.js +2 -2
  54. package/dist/i18n/locales/fr.d.ts +1 -1
  55. package/dist/i18n/locales/fr.js +2 -2
  56. package/dist/i18n/locales/hi.d.ts +1 -1
  57. package/dist/i18n/locales/hi.js +2 -2
  58. package/dist/i18n/locales/it.d.ts +1 -1
  59. package/dist/i18n/locales/it.js +2 -2
  60. package/dist/i18n/locales/ja.d.ts +1 -1
  61. package/dist/i18n/locales/ja.js +2 -2
  62. package/dist/i18n/locales/nl.d.ts +1 -1
  63. package/dist/i18n/locales/nl.js +2 -2
  64. package/dist/i18n/locales/pl.d.ts +1 -1
  65. package/dist/i18n/locales/pl.js +2 -2
  66. package/dist/i18n/locales/pt.d.ts +1 -1
  67. package/dist/i18n/locales/pt.js +2 -2
  68. package/dist/i18n/locales/ro.d.ts +1 -1
  69. package/dist/i18n/locales/ro.js +2 -2
  70. package/dist/i18n/locales/ru.d.ts +1 -1
  71. package/dist/i18n/locales/ru.js +2 -2
  72. package/dist/i18n/locales/sq.d.ts +1 -1
  73. package/dist/i18n/locales/sq.js +2 -2
  74. package/dist/i18n/locales/sv.d.ts +1 -1
  75. package/dist/i18n/locales/sv.js +2 -2
  76. package/dist/i18n/locales/tr.d.ts +1 -1
  77. package/dist/i18n/locales/tr.js +2 -2
  78. package/dist/i18n/locales/zh.d.ts +1 -1
  79. package/dist/i18n/locales/zh.js +2 -2
  80. package/dist/index.js +113 -113
  81. package/dist/locales/ar.json +1 -1
  82. package/dist/locales/de.json +1 -1
  83. package/dist/locales/el.json +1 -1
  84. package/dist/locales/en.json +1 -1
  85. package/dist/locales/es.json +1 -1
  86. package/dist/locales/fr.json +1 -1
  87. package/dist/locales/hi.json +1 -1
  88. package/dist/locales/it.json +1 -1
  89. package/dist/locales/ja.json +1 -1
  90. package/dist/locales/nl.json +1 -1
  91. package/dist/locales/pl.json +1 -1
  92. package/dist/locales/pt.json +1 -1
  93. package/dist/locales/ro.json +1 -1
  94. package/dist/locales/ru.json +1 -1
  95. package/dist/locales/sq.json +1 -1
  96. package/dist/locales/sv.json +1 -1
  97. package/dist/locales/tr.json +1 -1
  98. package/dist/locales/zh.json +1 -1
  99. package/dist/tokens.css +1 -1
  100. package/package.json +4 -4
  101. package/dist/components/practice-profile-card/index.d.ts +0 -4
  102. package/dist/components/practice-profile-card/index.js +0 -8
  103. package/dist/components/practice-profile-card/practice-profile-card.agent.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { jsx as j, jsxs as le } from "react/jsx-runtime";
1
+ import { jsx as z, jsxs as le } from "react/jsx-runtime";
2
2
  import * as Fe from "react";
3
3
  import A, { useMemo as N, useContext as F, useEffect as C, useLayoutEffect as X, forwardRef as H, useImperativeHandle as V, useState as _, useReducer as Ue, useCallback as ne, useRef as U, Children as Ee, createContext as nn, useId as tn } from "react";
4
4
  import { c as oe } from "./index-D2ZczOXr.js";
@@ -39,7 +39,7 @@ function cn() {
39
39
  }
40
40
  var dn = cn();
41
41
  const re = /* @__PURE__ */ on(dn), un = "1.8.3";
42
- function z(e, n) {
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]);
45
45
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -134,7 +134,7 @@ function Pn() {
134
134
  n((i) => {
135
135
  var s = a;
136
136
  i[s];
137
- var g = z(i, [typeof s == "symbol" ? s : s + ""]);
137
+ var g = j(i, [typeof s == "symbol" ? s : s + ""]);
138
138
  return g;
139
139
  });
140
140
  }, clearMapInstances: () => {
@@ -152,7 +152,7 @@ function An() {
152
152
  n((i) => {
153
153
  var s = a;
154
154
  i[s];
155
- var g = z(i, [typeof s == "symbol" ? s : s + ""]);
155
+ var g = j(i, [typeof s == "symbol" ? s : s + ""]);
156
156
  return g;
157
157
  });
158
158
  },
@@ -234,11 +234,11 @@ function Tn(e) {
234
234
  importLibrary: p
235
235
  };
236
236
  }
237
- function Ln(e) {
237
+ function kn(e) {
238
238
  return N(() => e.disableUsageAttribution ? null : wn, [e.disableUsageAttribution]);
239
239
  }
240
- const Dn = (e) => {
241
- const { children: n } = e, t = z(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: a, clearMapInstances: i } = Pn(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = An(), { status: m, loadedLibraries: f, importLibrary: u } = Tn(t), h = Ln(t), y = N(() => ({
240
+ const Ln = (e) => {
241
+ const { children: n } = e, t = j(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: a, clearMapInstances: i } = Pn(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = An(), { status: m, loadedLibraries: f, importLibrary: u } = Tn(t), h = kn(t), y = N(() => ({
242
242
  mapInstances: o,
243
243
  addMapInstance: r,
244
244
  removeMapInstance: a,
@@ -267,20 +267,20 @@ const Dn = (e) => {
267
267
  ]);
268
268
  return A.createElement(Q.Provider, { value: y }, n);
269
269
  };
270
- function Sn(e, n) {
270
+ function Dn(e, n) {
271
271
  for (const t of Nn) {
272
272
  const o = n[t], r = Ge[t];
273
273
  C(() => {
274
274
  if (!e || !o)
275
275
  return;
276
276
  const a = google.maps.event.addListener(e, r, (i) => {
277
- o(kn(r, e, i));
277
+ o(Sn(r, e, i));
278
278
  });
279
279
  return () => a.remove();
280
280
  }, [e, r, o]);
281
281
  }
282
282
  }
283
- function kn(e, n, t) {
283
+ function Sn(e, n, t) {
284
284
  var o;
285
285
  const r = {
286
286
  type: e,
@@ -402,7 +402,7 @@ const Rn = /* @__PURE__ */ new Set([
402
402
  "zoomControl",
403
403
  "zoomControlOptions"
404
404
  ]);
405
- function jn(e, n) {
405
+ function zn(e, n) {
406
406
  const t = {}, o = Object.keys(n);
407
407
  for (const r of o)
408
408
  Rn.has(r) && (t[r] = n[r]);
@@ -414,7 +414,7 @@ function Ze() {
414
414
  var e;
415
415
  return ((e = F(Q)) === null || e === void 0 ? void 0 : e.status) || B.NOT_LOADED;
416
416
  }
417
- function zn(e, n) {
417
+ function jn(e, n) {
418
418
  const { viewport: t, viewState: o } = n, r = !!t;
419
419
  return X(() => {
420
420
  if (!e || !o)
@@ -571,7 +571,7 @@ class ce {
571
571
  }
572
572
  ce.entries = {};
573
573
  function Zn(e, n) {
574
- const t = We(), [o, r] = _(null), [a, i] = ye(), s = Jn(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: m, defaultHeading: f, defaultTilt: u, reuseMaps: h, renderingType: y, colorScheme: d } = e, p = z(e, ["id", "defaultBounds", "defaultCenter", "defaultZoom", "defaultHeading", "defaultTilt", "reuseMaps", "renderingType", "colorScheme"]), b = e.zoom !== void 0 || e.defaultZoom !== void 0, E = e.center !== void 0 || e.defaultCenter !== void 0;
574
+ const t = We(), [o, r] = _(null), [a, i] = ye(), s = Jn(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: m, defaultHeading: f, 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, E = e.center !== void 0 || e.defaultCenter !== void 0;
575
575
  !c && (!b || !E) && 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(m) && (p.zoom = m), !p.heading && Number.isFinite(f) && (p.heading = f), !p.tilt && Number.isFinite(u) && (p.tilt = u);
576
576
  const M = p.internalUsageAttributionIds;
577
577
  M == null ? p.internalUsageAttributionIds = n.internalUsageAttributionIds : p.internalUsageAttributionIds = [
@@ -585,22 +585,22 @@ function Zn(e, n) {
585
585
  () => {
586
586
  if (!a || !t)
587
587
  return;
588
- const { addMapInstance: v, removeMapInstance: O } = n, { mapId: L } = e, k = `${L || "default"}:${y || "default"}:${d || "LIGHT"}`;
588
+ const { addMapInstance: v, removeMapInstance: O } = n, { mapId: k } = e, S = `${k || "default"}:${y || "default"}:${d || "LIGHT"}`;
589
589
  let T, x;
590
- if (h && ce.has(k) ? (x = ce.pop(k), T = x.getDiv(), a.appendChild(T), x.setOptions(p), setTimeout(() => x.moveCamera({}), 0)) : (T = document.createElement("div"), T.style.height = "100%", a.appendChild(T), x = new google.maps.Map(T, Object.assign(Object.assign(Object.assign({}, p), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(x), v(x, g), c) {
591
- const { padding: R } = c, q = z(c, ["padding"]);
590
+ if (h && ce.has(S) ? (x = ce.pop(S), T = x.getDiv(), a.appendChild(T), x.setOptions(p), setTimeout(() => x.moveCamera({}), 0)) : (T = document.createElement("div"), T.style.height = "100%", a.appendChild(T), x = new google.maps.Map(T, Object.assign(Object.assign(Object.assign({}, p), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(x), v(x, g), c) {
591
+ const { padding: R } = c, q = j(c, ["padding"]);
592
592
  x.fitBounds(q, R);
593
593
  } else (!b || !E) && x.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
594
594
  if (P.current) {
595
595
  const { mapId: R, cameraState: q } = P.current;
596
- R !== L && x.moveCamera(q);
596
+ R !== k && x.moveCamera(q);
597
597
  }
598
598
  return () => {
599
599
  P.current = {
600
- mapId: L,
600
+ mapId: k,
601
601
  // eslint-disable-next-line react-hooks/exhaustive-deps
602
602
  cameraState: s.current
603
- }, T.remove(), h ? ce.push(k, x) : google.maps.event.clearInstanceListeners(x), r(null), O(g);
603
+ }, T.remove(), h ? ce.push(S, x) : google.maps.event.clearInstanceListeners(x), r(null), O(g);
604
604
  };
605
605
  },
606
606
  // some dependencies are ignored in the list below:
@@ -625,8 +625,8 @@ const Ye = A.createContext(null), Xe = (e) => {
625
625
  if (!a)
626
626
  throw new Error("<Map> can only be used inside an <ApiProvider> component.");
627
627
  const [s, g, c] = Zn(e, a);
628
- Hn(s, c, e), Sn(s, e), jn(s, e);
629
- const l = zn(s, e), m = !!e.controlled;
628
+ Hn(s, c, e), Dn(s, e), zn(s, e);
629
+ const l = jn(s, e), m = !!e.controlled;
630
630
  C(() => {
631
631
  if (s)
632
632
  return l && s.setOptions({ disableDefaultUI: !0 }), (l || m) && s.setOptions({
@@ -711,7 +711,7 @@ function Yn(e) {
711
711
  }
712
712
  const Qe = Yn, Xn = () => {
713
713
  };
714
- function D(e, n, t) {
714
+ function L(e, n, t) {
715
715
  const o = Qe(t ?? Xn), r = !!t;
716
716
  C(() => {
717
717
  if (!e || !n || !r)
@@ -777,26 +777,26 @@ function Ce(e) {
777
777
  }
778
778
  const rt = ({ children: e, styles: n, className: t }) => A.createElement("div", { className: t, style: n }, e);
779
779
  function at(e) {
780
- const [n, t] = _(null), [o, r] = _(null), a = Z(), i = $("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: m, onDrag: f, onDragStart: u, onDragEnd: h, collisionBehavior: y, clickable: d, draggable: p, position: b, title: E, zIndex: M, anchorPoint: P, anchorLeft: v, anchorTop: O } = e, L = Ee.count(s);
780
+ const [n, t] = _(null), [o, r] = _(null), a = Z(), i = $("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: m, onDrag: f, onDragStart: u, onDragEnd: h, collisionBehavior: y, clickable: d, draggable: p, position: b, title: E, zIndex: M, anchorPoint: P, anchorLeft: v, anchorTop: O } = e, k = Ee.count(s);
781
781
  return C(() => {
782
782
  if (!a || !i)
783
783
  return;
784
- const k = new i.AdvancedMarkerElement();
785
- k.map = a, t(k);
784
+ const S = new i.AdvancedMarkerElement();
785
+ S.map = a, t(S);
786
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);
787
+ return k > 0 && (T = document.createElement("div"), S.content = T, r(T)), () => {
788
+ S.map = null, T == null || T.remove(), t(null), r(null);
789
789
  };
790
- }, [a, i, L]), C(() => {
791
- !(n != null && n.content) || !Ce(n.content) || L > 0 || (n.content.className = c ?? "");
792
- }, [n, c, L]), it(n, P, v, O, L > 0), I(n, "position", b), I(n, "title", E ?? ""), I(n, "zIndex", M), I(n, "collisionBehavior", y), C(() => {
790
+ }, [a, i, k]), C(() => {
791
+ !(n != null && n.content) || !Ce(n.content) || k > 0 || (n.content.className = c ?? "");
792
+ }, [n, c, k]), it(n, P, v, O, k > 0), I(n, "position", b), I(n, "title", E ?? ""), I(n, "zIndex", M), I(n, "collisionBehavior", y), C(() => {
793
793
  n && (p !== void 0 ? n.gmpDraggable = p : f || u || h ? n.gmpDraggable = !0 : n.gmpDraggable = !1);
794
794
  }, [n, p, f, h, u]), C(() => {
795
795
  if (!n)
796
796
  return;
797
- const k = d !== void 0 ? d : !!g || !!l || !!m;
798
- n.gmpClickable = k, k && (n != null && n.content) && Ce(n.content) && (n.content.style.pointerEvents = "all", g && (n.content.style.cursor = "pointer"));
799
- }, [n, d, g, l, m]), D(n, "click", g), D(n, "drag", f), D(n, "dragstart", u), D(n, "dragend", h), be(n == null ? void 0 : n.element, "mouseenter", l), be(n == null ? void 0 : n.element, "mouseleave", m), [n, o];
797
+ const S = d !== void 0 ? d : !!g || !!l || !!m;
798
+ n.gmpClickable = S, S && (n != null && n.content) && Ce(n.content) && (n.content.style.pointerEvents = "all", g && (n.content.style.cursor = "pointer"));
799
+ }, [n, d, g, l, m]), L(n, "click", g), L(n, "drag", f), L(n, "dragstart", u), L(n, "dragend", h), be(n == null ? void 0 : n.element, "mouseenter", l), be(n == null ? void 0 : n.element, "mouseleave", m), [n, o];
800
800
  }
801
801
  function it(e, n, t, o, r) {
802
802
  C(() => {
@@ -817,7 +817,7 @@ function it(e, n, t, o, r) {
817
817
  }
818
818
  function st(e) {
819
819
  var n, t, o;
820
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: m, center: f, defaultCenter: u, radius: h, defaultRadius: y } = e, d = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [p, b] = _(null), E = Z(), M = ae(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 || m), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), re);
820
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: m, center: f, defaultCenter: u, radius: h, defaultRadius: y } = e, d = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [p, b] = _(null), E = Z(), M = ae(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 || m), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), re);
821
821
  return C(() => {
822
822
  if (!E) {
823
823
  E === void 0 && console.error("<Circle> has to be inside a Map component.");
@@ -827,10 +827,10 @@ function st(e) {
827
827
  return P.setMap(E), b(P), () => {
828
828
  P.setMap(null), b(null);
829
829
  };
830
- }, [E]), D(p, "click", r), D(p, "drag", a), D(p, "dragstart", i), D(p, "dragend", s), D(p, "mouseover", g), D(p, "mouseout", c), D(p, "radius_changed", l ? () => {
830
+ }, [E]), L(p, "click", r), L(p, "drag", a), L(p, "dragstart", i), L(p, "dragend", s), L(p, "mouseover", g), L(p, "mouseout", c), L(p, "radius_changed", l ? () => {
831
831
  const P = p == null ? void 0 : p.getRadius();
832
832
  P !== void 0 && l(P);
833
- } : null), D(p, "center_changed", m ? () => {
833
+ } : null), L(p, "center_changed", m ? () => {
834
834
  m(p == null ? void 0 : p.getCenter());
835
835
  } : null), C(() => {
836
836
  p && p.setOptions(M);
@@ -918,7 +918,7 @@ const dt = /* @__PURE__ */ new Set([
918
918
  function ut(e) {
919
919
  return dt.has(e);
920
920
  }
921
- function je(e) {
921
+ function ze(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());
@@ -926,7 +926,7 @@ function je(e) {
926
926
  }
927
927
  function gt(e) {
928
928
  var n, t, o;
929
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: m, encodedPaths: f, paths: u, defaultPaths: h } = e, y = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, p] = _(null), b = Z(), E = $("geometry"), M = U(!1), P = ae(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 }), re);
929
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: m, encodedPaths: f, paths: u, defaultPaths: h } = e, y = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, p] = _(null), b = Z(), E = $("geometry"), M = U(!1), P = ae(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 }), re);
930
930
  return C(() => {
931
931
  if (!b) {
932
932
  b === void 0 && console.error("<Polygon> has to be inside a Map component.");
@@ -938,32 +938,32 @@ function gt(e) {
938
938
  const O = u ?? h;
939
939
  O && Array.isArray(O) && v.setPaths(O), v.setOptions(P);
940
940
  } else {
941
- const O = u ?? h, L = Object.assign({}, P);
942
- O && Array.isArray(O) && (L.paths = O), v = new google.maps.Polygon(L);
941
+ const O = u ?? h, k = Object.assign({}, P);
942
+ O && Array.isArray(O) && (k.paths = O), v = new google.maps.Polygon(k);
943
943
  }
944
944
  return v.setMap(b), p(v), () => {
945
945
  v.setMap(null), p(null);
946
946
  };
947
- }, [b, m]), 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 && !M.current && l(je(d));
947
+ }, [b, m]), L(d, "click", r), L(d, "drag", a), L(d, "dragstart", i), L(d, "mouseover", g), L(d, "mouseout", c), L(d, "dragend", (v) => {
948
+ s == null || s(v), l && d && !M.current && l(ze(d));
949
949
  }), C(() => {
950
950
  if (!d || !l)
951
951
  return;
952
952
  const v = [], O = d.getPaths();
953
953
  if (typeof O.getLength != "function" || typeof O.getAt != "function")
954
954
  return;
955
- const L = () => {
956
- M.current || l(je(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));
955
+ const k = () => {
956
+ M.current || l(ze(d));
957
+ }, S = (T) => {
958
+ v.push(google.maps.event.addListener(T, "insert_at", k)), v.push(google.maps.event.addListener(T, "remove_at", k)), v.push(google.maps.event.addListener(T, "set_at", k));
959
959
  };
960
960
  for (let T = 0; T < O.getLength(); T++)
961
- k(O.getAt(T));
961
+ S(O.getAt(T));
962
962
  return v.push(google.maps.event.addListener(O, "insert_at", (T) => {
963
- k(O.getAt(T)), L();
963
+ S(O.getAt(T)), k();
964
964
  })), v.push(google.maps.event.addListener(O, "set_at", (T) => {
965
- k(O.getAt(T)), L();
966
- })), v.push(google.maps.event.addListener(O, "remove_at", L)), () => {
965
+ S(O.getAt(T)), k();
966
+ })), v.push(google.maps.event.addListener(O, "remove_at", k)), () => {
967
967
  v.forEach((T) => T.remove());
968
968
  };
969
969
  }, [
@@ -978,8 +978,8 @@ function gt(e) {
978
978
  }, [d, P]), C(() => {
979
979
  if (!d || !u || !Array.isArray(u))
980
980
  return;
981
- const v = u[0], O = Array.isArray(v) ? u : [u], L = d.getPaths();
982
- Un(O, L) || (M.current = !0, d.setPaths(u), M.current = !1);
981
+ const v = u[0], O = Array.isArray(v) ? u : [u], k = d.getPaths();
982
+ Un(O, k) || (M.current = !0, d.setPaths(u), M.current = !1);
983
983
  }, [d, u]), C(() => {
984
984
  if (!d || !f || !E)
985
985
  return;
@@ -995,7 +995,7 @@ const ft = H((e, n) => {
995
995
  ft.displayName = "Polygon";
996
996
  function mt(e) {
997
997
  var n, t, o;
998
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: m, encodedPath: f, path: u, defaultPath: h } = e, y = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, p] = _(null), b = Z(), E = $("geometry"), M = U(!1), P = ae(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 }), re);
998
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: m, encodedPath: f, path: u, defaultPath: h } = e, y = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, p] = _(null), b = Z(), E = $("geometry"), M = U(!1), P = ae(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 }), re);
999
999
  return C(() => {
1000
1000
  if (!b) {
1001
1001
  b === void 0 && console.error("<Polyline> has to be inside a Map component.");
@@ -1007,13 +1007,13 @@ function mt(e) {
1007
1007
  const O = u ?? h;
1008
1008
  O && Array.isArray(O) && v.setPath(O), v.setOptions(P);
1009
1009
  } else {
1010
- const O = u ?? h, L = Object.assign({}, P);
1011
- O && Array.isArray(O) && (L.path = O), v = new google.maps.Polyline(L);
1010
+ const O = u ?? h, k = Object.assign({}, P);
1011
+ O && Array.isArray(O) && (k.path = O), v = new google.maps.Polyline(k);
1012
1012
  }
1013
1013
  return v.setMap(b), p(v), () => {
1014
1014
  v.setMap(null), p(null);
1015
1015
  };
1016
- }, [b, m]), D(d, "click", r), D(d, "drag", a), D(d, "dragstart", i), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
1016
+ }, [b, m]), L(d, "click", r), L(d, "drag", a), L(d, "dragstart", i), L(d, "mouseover", g), L(d, "mouseout", c), L(d, "dragend", (v) => {
1017
1017
  s == null || s(v), l && d && !M.current && l(d.getPath().getArray());
1018
1018
  }), C(() => {
1019
1019
  if (!d || !l)
@@ -1023,13 +1023,13 @@ function mt(e) {
1023
1023
  return;
1024
1024
  const O = () => {
1025
1025
  M.current || l(v.getArray());
1026
- }, L = [
1026
+ }, k = [
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((k) => k.remove());
1032
+ k.forEach((S) => S.remove());
1033
1033
  };
1034
1034
  }, [
1035
1035
  d,
@@ -1119,8 +1119,8 @@ function Ct(e) {
1119
1119
  className: P,
1120
1120
  children: v,
1121
1121
  onCenterChanged: O,
1122
- onHeadingChanged: L,
1123
- onTiltChanged: k,
1122
+ onHeadingChanged: k,
1123
+ onTiltChanged: S,
1124
1124
  onRangeChanged: T,
1125
1125
  onRollChanged: x,
1126
1126
  onCameraChanged: R,
@@ -1129,9 +1129,9 @@ function Ct(e) {
1129
1129
  onAnimationEnd: Ae,
1130
1130
  onError: ge,
1131
1131
  mode: Te,
1132
- gestureHandling: Le
1133
- } = e, w = z(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"]), S = c ?? h, ee = l ?? y, De = m ?? d, Se = f ?? p, ke = u ?? b, W = Object.assign({}, w);
1134
- S && (W.center = S), ee !== void 0 && (W.heading = ee), De !== void 0 && (W.tilt = De), Se !== void 0 && (W.range = Se), ke !== void 0 && (W.roll = ke), Object.assign(a, W);
1132
+ gestureHandling: ke
1133
+ } = e, w = 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"]), D = c ?? h, ee = l ?? y, Le = m ?? d, De = f ?? p, Se = u ?? b, W = Object.assign({}, w);
1134
+ D && (W.center = D), ee !== void 0 && (W.heading = ee), Le !== void 0 && (W.tilt = Le), De !== void 0 && (W.range = De), Se !== void 0 && (W.roll = Se), 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.
@@ -1157,7 +1157,7 @@ function Ot(e, n, t) {
1157
1157
  }), h !== null && E.range !== h && (e.range = h), y !== null && E.heading !== y && (e.heading = y), d !== null && E.tilt !== d && (e.tilt = d), p !== null && E.roll !== p && (e.roll = p);
1158
1158
  });
1159
1159
  }
1160
- const ze = [
1160
+ const je = [
1161
1161
  "gmp-centerchange",
1162
1162
  "gmp-headingchange",
1163
1163
  "gmp-tiltchange",
@@ -1207,10 +1207,10 @@ function Pt(e, n) {
1207
1207
  const f = () => {
1208
1208
  s(K(e, "camerachange"));
1209
1209
  };
1210
- for (const u of ze)
1210
+ for (const u of je)
1211
1211
  e.addEventListener(u, f);
1212
1212
  return () => {
1213
- for (const u of ze)
1213
+ for (const u of je)
1214
1214
  e.removeEventListener(u, f);
1215
1215
  };
1216
1216
  }, [e, s]), C(() => {
@@ -1273,11 +1273,11 @@ function Tt(e, n) {
1273
1273
  e && Object.assign(e, t);
1274
1274
  }, [e, t]);
1275
1275
  }
1276
- const Lt = A.createContext(null), Dt = {
1276
+ const kt = A.createContext(null), Lt = {
1277
1277
  width: "100%",
1278
1278
  height: "100%",
1279
1279
  position: "relative"
1280
- }, St = H((e, n) => {
1280
+ }, Dt = H((e, n) => {
1281
1281
  const { children: t, id: o, className: r, style: a } = e, i = F(Q);
1282
1282
  if (!i)
1283
1283
  throw new Error("<Map3D> can only be used inside an <APIProvider> component.");
@@ -1301,15 +1301,15 @@ const Lt = A.createContext(null), Dt = {
1301
1301
  c == null || c.stopCameraAnimation();
1302
1302
  }
1303
1303
  }), [c]);
1304
- const h = N(() => Object.assign(Object.assign({}, Dt), a), [a]), y = N(() => ({ map3d: c }), [c]);
1304
+ const h = N(() => Object.assign(Object.assign({}, Lt), a), [a]), y = N(() => ({ map3d: c }), [c]);
1305
1305
  return u ? A.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
- A.createElement("gmp-map-3d", { ref: m, style: { width: "100%", height: "100%" } }, c && A.createElement(Lt.Provider, { value: y }, t))
1308
+ A.createElement("gmp-map-3d", { ref: m, style: { width: "100%", height: "100%" } }, c && A.createElement(kt.Provider, { value: y }, t))
1309
1309
  ) : A.createElement("div", Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : h, className: r }, o ? { id: o } : {}));
1310
1310
  });
1311
- St.displayName = "Map3D";
1312
- const we = nn(null), kt = H(function(n, t) {
1311
+ Dt.displayName = "Map3D";
1312
+ const we = nn(null), St = H(function(n, t) {
1313
1313
  const { children: o, onClick: r, position: a, altitudeMode: i, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: m, zIndex: f, title: u } = n, h = !!r, [y, d] = _(null), [p, b] = _(!1), E = N(() => {
1314
1314
  const v = document.createElement("div");
1315
1315
  return v.style.display = "none", document.body.appendChild(v), v;
@@ -1327,12 +1327,12 @@ const we = nn(null), kt = H(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, k = L.tagName.toLowerCase();
1331
- if (k === "img" || k === "svg") {
1330
+ const k = O, S = k.tagName.toLowerCase();
1331
+ if (S === "img" || S === "svg") {
1332
1332
  const T = document.createElement("template");
1333
- T.content.appendChild(L.cloneNode(!0)), y.appendChild(T);
1333
+ T.content.appendChild(k.cloneNode(!0)), y.appendChild(T);
1334
1334
  } else
1335
- y.appendChild(L.cloneNode(!0));
1335
+ y.appendChild(k.cloneNode(!0));
1336
1336
  }
1337
1337
  }, [y, E, o, p]);
1338
1338
  const P = N(() => ({ marker: y, setContentHandledExternally: b }), [y]);
@@ -1343,7 +1343,7 @@ const we = nn(null), kt = H(function(n, t) {
1343
1343
  ue(o, E)
1344
1344
  );
1345
1345
  });
1346
- kt.displayName = "Marker3D";
1346
+ St.displayName = "Marker3D";
1347
1347
  const _t = H(function(n, t) {
1348
1348
  var o;
1349
1349
  const { children: r, headerContent: a, style: i, className: s, open: g = !0, position: c, anchor: l, anchorId: m, altitudeMode: f, lightDismissDisabled: u, autoPanDisabled: h, onClose: y } = n, [d, p] = _(null), b = U(null);
@@ -1382,7 +1382,7 @@ function It(e, n, t) {
1382
1382
  }, [e, t]);
1383
1383
  }
1384
1384
  function Nt(e) {
1385
- const [n, t] = _(null), o = Z(), { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c } = e, l = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"]), { position: m, draggable: f } = l;
1385
+ const [n, t] = _(null), o = Z(), { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c } = e, l = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"]), { position: m, draggable: f } = l;
1386
1386
  return C(() => {
1387
1387
  if (!o) {
1388
1388
  o === void 0 && console.error("<Marker> has to be inside a Map component.");
@@ -1448,7 +1448,7 @@ const Rt = (e) => {
1448
1448
  m.removeChild(m.firstChild);
1449
1449
  m && m.appendChild(l.element);
1450
1450
  }, [o, i, r, e]), ue(e.children, i);
1451
- }, jt = (e) => {
1451
+ }, zt = (e) => {
1452
1452
  const { children: n } = e, t = F(Me), o = F(we), 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 = $("marker");
1453
1453
  return C(() => {
1454
1454
  if (a && i)
@@ -1484,22 +1484,22 @@ const Rt = (e) => {
1484
1484
  n,
1485
1485
  e
1486
1486
  ]), ue(n, s);
1487
- }, zt = (e) => {
1487
+ }, jt = (e) => {
1488
1488
  var n;
1489
1489
  const t = $("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
- const { glyph: r, glyphSrc: a, glyphText: i } = e, s = z(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 A.createElement(jt, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
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 A.createElement(zt, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
1495
1495
  } else {
1496
- const { glyph: r, glyphSrc: a, glyphText: i } = e, s = z(e, ["glyph", "glyphSrc", "glyphText"]), g = (n = r ?? a) !== null && n !== void 0 ? n : i;
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
1497
  return A.createElement(Rt, Object.assign({}, s, { glyph: g }));
1498
1498
  }
1499
1499
  };
1500
1500
  function Bt(e) {
1501
1501
  var n, t, o;
1502
- const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onBoundsChanged: l, bounds: m, defaultBounds: f } = e, u = z(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [h, y] = _(null), d = Z(), p = ae(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 }), re);
1502
+ const { onClick: r, onDrag: a, onDragStart: i, onDragEnd: s, onMouseOver: g, onMouseOut: c, onBoundsChanged: l, bounds: m, defaultBounds: f } = e, u = j(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [h, y] = _(null), d = Z(), p = ae(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 }), re);
1503
1503
  return C(() => {
1504
1504
  if (!d) {
1505
1505
  d === void 0 && console.error("<Rectangle> has to be inside a Map component.");
@@ -1509,7 +1509,7 @@ function Bt(e) {
1509
1509
  return b.setMap(d), y(b), () => {
1510
1510
  b.setMap(null), y(null);
1511
1511
  };
1512
- }, [d]), D(h, "click", r), D(h, "drag", a), D(h, "dragstart", i), D(h, "dragend", s), D(h, "mouseover", g), D(h, "mouseout", c), D(h, "bounds_changed", l ? () => {
1512
+ }, [d]), L(h, "click", r), L(h, "drag", a), L(h, "dragstart", i), L(h, "dragend", s), L(h, "mouseover", g), L(h, "mouseout", c), L(h, "bounds_changed", l ? () => {
1513
1513
  l(h == null ? void 0 : h.getBounds());
1514
1514
  } : null), C(() => {
1515
1515
  h && h.setOptions(p);
@@ -1682,7 +1682,14 @@ const Ut = {
1682
1682
  size: {
1683
1683
  sm: "ds:[--map-block-size:14rem]",
1684
1684
  md: "ds:[--map-block-size:20rem]",
1685
- lg: "ds:[--map-block-size:28rem]"
1685
+ lg: "ds:[--map-block-size:28rem]",
1686
+ // `fill` defers sizing to the parent. The outer takes
1687
+ // `block-size: 100%` so the inner (also 100%) has something
1688
+ // to inherit from. Use inside a viewport-locked column —
1689
+ // `<PracticeResults variant="map-first">` wires this through
1690
+ // automatically; standalone consumers must give the parent
1691
+ // a constrained block-size or the map collapses to 0.
1692
+ fill: "ds:[block-size:100%]"
1686
1693
  },
1687
1694
  surface: {
1688
1695
  bordered: "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
@@ -1692,12 +1699,17 @@ const Ut = {
1692
1699
  },
1693
1700
  defaultVariants: { size: "md", surface: "bordered" }
1694
1701
  }
1695
- ), Vt = oe(
1696
- [
1697
- "ds:block ds:inline-size-full",
1698
- "ds:[block-size:var(--map-block-size)]"
1699
- ].join(" ")
1700
- ), Gt = oe(
1702
+ ), Vt = oe("ds:block ds:inline-size-full", {
1703
+ variants: {
1704
+ size: {
1705
+ sm: "ds:[block-size:var(--map-block-size)]",
1706
+ md: "ds:[block-size:var(--map-block-size)]",
1707
+ lg: "ds:[block-size:var(--map-block-size)]",
1708
+ fill: "ds:[block-size:100%]"
1709
+ }
1710
+ },
1711
+ defaultVariants: { size: "md" }
1712
+ }), Gt = oe(
1701
1713
  [
1702
1714
  "ds:absolute ds:inset-0",
1703
1715
  "ds:flex ds:flex-col ds:items-center ds:justify-center",
@@ -1731,15 +1743,15 @@ function $t({
1731
1743
  }) {
1732
1744
  const { t: a } = He();
1733
1745
  return /* @__PURE__ */ le("div", { className: Gt(), "data-testid": "map-view-consent", children: [
1734
- /* @__PURE__ */ j(
1746
+ /* @__PURE__ */ z(
1735
1747
  sn,
1736
1748
  {
1737
1749
  "aria-hidden": "true",
1738
1750
  className: "ds:size-6 ds:text-[var(--muted-foreground)]"
1739
1751
  }
1740
1752
  ),
1741
- /* @__PURE__ */ j("p", { className: Jt(), children: a("mapView.consentTitle") }),
1742
- e ? /* @__PURE__ */ j(
1753
+ /* @__PURE__ */ z("p", { className: Jt(), children: a("mapView.consentTitle") }),
1754
+ e ? /* @__PURE__ */ z(
1743
1755
  "p",
1744
1756
  {
1745
1757
  className: Be(),
@@ -1747,9 +1759,9 @@ function $t({
1747
1759
  children: e
1748
1760
  }
1749
1761
  ) : null,
1750
- /* @__PURE__ */ j("p", { className: Be(), children: n }),
1762
+ /* @__PURE__ */ z("p", { className: Be(), children: n }),
1751
1763
  /* @__PURE__ */ le("div", { className: "ds:flex ds:gap-[var(--spacing-sm)] ds:flex-wrap ds:items-center ds:justify-center", children: [
1752
- r ?? /* @__PURE__ */ j(
1764
+ r ?? /* @__PURE__ */ z(
1753
1765
  rn,
1754
1766
  {
1755
1767
  type: "button",
@@ -1769,7 +1781,7 @@ function $t({
1769
1781
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-[var(--primary)] ds:underline ds:underline-offset-2",
1770
1782
  children: [
1771
1783
  a("mapView.openInGoogleMaps"),
1772
- /* @__PURE__ */ j(ln, { "aria-hidden": "true", className: "ds:size-3" })
1784
+ /* @__PURE__ */ z(ln, { "aria-hidden": "true", className: "ds:size-3" })
1773
1785
  ]
1774
1786
  }
1775
1787
  )
@@ -1800,13 +1812,13 @@ const qt = H(
1800
1812
  const { t: E, i18n: M } = He(), P = tn(), v = N(
1801
1813
  () => `map-${P.replace(/[^a-zA-Z0-9-_]/g, "")}`,
1802
1814
  [P]
1803
- ), [O, L] = _(!1);
1815
+ ), [O, k] = _(!1);
1804
1816
  C(() => {
1805
1817
  if (typeof window > "u") return;
1806
- const w = window.matchMedia("(prefers-reduced-motion: reduce)"), S = () => L(w.matches);
1807
- return S(), w.addEventListener("change", S), () => w.removeEventListener("change", S);
1818
+ const w = window.matchMedia("(prefers-reduced-motion: reduce)"), D = () => k(w.matches);
1819
+ return D(), w.addEventListener("change", D), () => w.removeEventListener("change", D);
1808
1820
  }, []);
1809
- const k = N(() => `https://www.google.com/maps/search/?api=1&query=${c ? encodeURIComponent(c) : `${t.lat},${t.lng}`}`, [c, t.lat, t.lng]), [T, x] = _(
1821
+ const S = N(() => `https://www.google.com/maps/search/?api=1&query=${c ? encodeURIComponent(c) : `${t.lat},${t.lng}`}`, [c, t.lat, t.lng]), [T, x] = _(
1810
1822
  () => f ? [] : pe()
1811
1823
  );
1812
1824
  C(() => {
@@ -1827,16 +1839,16 @@ const qt = H(
1827
1839
  b,
1828
1840
  () => ({
1829
1841
  panTo: (w) => {
1830
- var S;
1831
- return (S = R.current) == null ? void 0 : S.panTo(w);
1842
+ var D;
1843
+ return (D = R.current) == null ? void 0 : D.panTo(w);
1832
1844
  },
1833
1845
  setZoom: (w) => {
1834
- var S;
1835
- return (S = R.current) == null ? void 0 : S.setZoom(w);
1846
+ var D;
1847
+ return (D = R.current) == null ? void 0 : D.setZoom(w);
1836
1848
  },
1837
1849
  selectMarker: (w) => {
1838
- var S;
1839
- return (S = R.current) == null ? void 0 : S.selectMarker(w);
1850
+ var D;
1851
+ return (D = R.current) == null ? void 0 : D.selectMarker(w);
1840
1852
  }
1841
1853
  }),
1842
1854
  []
@@ -1844,16 +1856,16 @@ const qt = H(
1844
1856
  const Pe = N(
1845
1857
  () => ({
1846
1858
  panTo: (w) => {
1847
- var S;
1848
- return (S = R.current) == null ? void 0 : S.panTo(w);
1859
+ var D;
1860
+ return (D = R.current) == null ? void 0 : D.panTo(w);
1849
1861
  },
1850
1862
  setZoom: (w) => {
1851
- var S;
1852
- return (S = R.current) == null ? void 0 : S.setZoom(w);
1863
+ var D;
1864
+ return (D = R.current) == null ? void 0 : D.setZoom(w);
1853
1865
  },
1854
1866
  selectMarker: (w) => {
1855
- var S;
1856
- return (S = R.current) == null ? void 0 : S.selectMarker(w);
1867
+ var D;
1868
+ return (D = R.current) == null ? void 0 : D.selectMarker(w);
1857
1869
  }
1858
1870
  }),
1859
1871
  []
@@ -1865,14 +1877,14 @@ const qt = H(
1865
1877
  var w;
1866
1878
  (w = R.current) == null || w.setZoom(o);
1867
1879
  }, [o]);
1868
- const [Ae, ge] = _(!1), Te = s || Ae, Le = ne(() => {
1880
+ const [Ae, ge] = _(!1), Te = s || Ae, ke = ne(() => {
1869
1881
  if (g) {
1870
1882
  g(), ge(!0);
1871
1883
  return;
1872
1884
  }
1873
1885
  ge(!0);
1874
1886
  }, [g]);
1875
- return /* @__PURE__ */ j(
1887
+ return /* @__PURE__ */ z(
1876
1888
  "div",
1877
1889
  {
1878
1890
  className: Ht({ size: u, surface: h, className: d }),
@@ -1881,8 +1893,8 @@ const qt = H(
1881
1893
  role: "region",
1882
1894
  "aria-label": y ?? E("mapView.label"),
1883
1895
  ...p,
1884
- children: /* @__PURE__ */ j("div", { className: Vt(), children: Te ? /* @__PURE__ */ j(
1885
- Dn,
1896
+ children: /* @__PURE__ */ z("div", { className: Vt({ size: u }), children: Te ? /* @__PURE__ */ z(
1897
+ Ln,
1886
1898
  {
1887
1899
  apiKey: n,
1888
1900
  language: M.language,
@@ -1898,7 +1910,7 @@ const qt = H(
1898
1910
  onClick: () => i == null ? void 0 : i(null),
1899
1911
  className: "ds:[inline-size:100%] ds:[block-size:100%]",
1900
1912
  children: [
1901
- /* @__PURE__ */ j(
1913
+ /* @__PURE__ */ z(
1902
1914
  Zt,
1903
1915
  {
1904
1916
  onHandleReady: q,
@@ -1906,19 +1918,19 @@ const qt = H(
1906
1918
  }
1907
1919
  ),
1908
1920
  (r ?? []).map((w) => {
1909
- const S = a != null && a === w.id, ee = E("mapView.markerLabel", {
1921
+ const D = a != null && a === w.id, ee = E("mapView.markerLabel", {
1910
1922
  label: w.label ?? w.id
1911
1923
  });
1912
- return /* @__PURE__ */ j(
1924
+ return /* @__PURE__ */ z(
1913
1925
  en,
1914
1926
  {
1915
1927
  position: w.position,
1916
1928
  title: ee,
1917
1929
  "aria-label": ee,
1918
- "data-selected": S ? "true" : "false",
1930
+ "data-selected": D ? "true" : "false",
1919
1931
  onClick: () => i == null ? void 0 : i(w.id),
1920
- children: /* @__PURE__ */ j(
1921
- zt,
1932
+ children: /* @__PURE__ */ z(
1933
+ jt,
1922
1934
  {
1923
1935
  background: "var(--primary)",
1924
1936
  borderColor: "var(--primary)",
@@ -1933,14 +1945,14 @@ const qt = H(
1933
1945
  }
1934
1946
  )
1935
1947
  }
1936
- ) : /* @__PURE__ */ j(
1948
+ ) : /* @__PURE__ */ z(
1937
1949
  $t,
1938
1950
  {
1939
1951
  address: c,
1940
1952
  description: l ?? E("mapView.consentDescription"),
1941
- onLoadMap: Le,
1953
+ onLoadMap: ke,
1942
1954
  consentCta: m,
1943
- openInGoogleMapsHref: k
1955
+ openInGoogleMapsHref: S
1944
1956
  }
1945
1957
  ) })
1946
1958
  }
@@ -1951,4 +1963,4 @@ qt.displayName = "MapView";
1951
1963
  export {
1952
1964
  qt as M
1953
1965
  };
1954
- //# sourceMappingURL=map-view-WEWqXzof.js.map
1966
+ //# sourceMappingURL=map-view-knHSNLoe.js.map