@alfadocs/ui-kit-debug 1.131.0 → 1.133.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 (139) hide show
  1. package/dist/_chunks/{address-autocomplete-D2uNpxcE.js → address-autocomplete-yDLqg43e.js} +2 -2
  2. package/dist/_chunks/{address-autocomplete-D2uNpxcE.js.map → address-autocomplete-yDLqg43e.js.map} +1 -1
  3. package/dist/_chunks/{address-fields-BU65pA-V.js → address-fields-DvSWdeR0.js} +2 -2
  4. package/dist/_chunks/{address-fields-BU65pA-V.js.map → address-fields-DvSWdeR0.js.map} +1 -1
  5. package/dist/_chunks/calendar-appointment-editor-dialog-BHx6kUhX.js +13773 -0
  6. package/dist/_chunks/calendar-appointment-editor-dialog-BHx6kUhX.js.map +1 -0
  7. package/dist/_chunks/map-view-Cm69dCnY.js +1794 -0
  8. package/dist/_chunks/map-view-Cm69dCnY.js.map +1 -0
  9. package/dist/_chunks/{maps-core-gate-DKx96CC_.js → maps-core-gate-CP8SEHH1.js} +97 -93
  10. package/dist/_chunks/{maps-core-gate-DKx96CC_.js.map → maps-core-gate-CP8SEHH1.js.map} +1 -1
  11. package/dist/_chunks/{practice-results-M5A9-X9y.js → practice-results-DaxGw9_f.js} +762 -748
  12. package/dist/_chunks/practice-results-DaxGw9_f.js.map +1 -0
  13. package/dist/_chunks/{reserved.agent-BBuWWtYb.js → reserved.agent-W8mR179D.js} +2 -2
  14. package/dist/_chunks/{reserved.agent-BBuWWtYb.js.map → reserved.agent-W8mR179D.js.map} +1 -1
  15. package/dist/agent-catalog.json +25 -2
  16. package/dist/agent-i18n/en.json +3 -1
  17. package/dist/browser-support.js +1 -1
  18. package/dist/components/address-autocomplete/index.js +1 -1
  19. package/dist/components/address-fields/index.js +1 -1
  20. package/dist/components/booking/index.js +1 -1
  21. package/dist/components/map-view/index.d.ts +1 -1
  22. package/dist/components/map-view/index.d.ts.map +1 -1
  23. package/dist/components/map-view/index.js +1 -1
  24. package/dist/components/map-view/map-view.agent.d.ts.map +1 -1
  25. package/dist/components/map-view/map-view.d.ts +42 -1
  26. package/dist/components/map-view/map-view.d.ts.map +1 -1
  27. package/dist/components/practice-results/index.js +1 -1
  28. package/dist/components/practice-results/practice-results.d.ts +12 -1
  29. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  30. package/dist/core.css +1 -1
  31. package/dist/host-compat.css +4 -1
  32. package/dist/i18n/locales/ar.d.ts +4 -0
  33. package/dist/i18n/locales/ar.d.ts.map +1 -1
  34. package/dist/i18n/locales/ar.js +6 -2
  35. package/dist/i18n/locales/ar.js.map +1 -1
  36. package/dist/i18n/locales/de.d.ts +4 -0
  37. package/dist/i18n/locales/de.d.ts.map +1 -1
  38. package/dist/i18n/locales/de.js +6 -2
  39. package/dist/i18n/locales/de.js.map +1 -1
  40. package/dist/i18n/locales/el.d.ts +4 -0
  41. package/dist/i18n/locales/el.d.ts.map +1 -1
  42. package/dist/i18n/locales/el.js +6 -2
  43. package/dist/i18n/locales/el.js.map +1 -1
  44. package/dist/i18n/locales/en.d.ts +4 -0
  45. package/dist/i18n/locales/en.d.ts.map +1 -1
  46. package/dist/i18n/locales/en.js +5 -1
  47. package/dist/i18n/locales/en.js.map +1 -1
  48. package/dist/i18n/locales/es.d.ts +4 -0
  49. package/dist/i18n/locales/es.d.ts.map +1 -1
  50. package/dist/i18n/locales/es.js +6 -2
  51. package/dist/i18n/locales/es.js.map +1 -1
  52. package/dist/i18n/locales/fr.d.ts +4 -0
  53. package/dist/i18n/locales/fr.d.ts.map +1 -1
  54. package/dist/i18n/locales/fr.js +6 -2
  55. package/dist/i18n/locales/fr.js.map +1 -1
  56. package/dist/i18n/locales/hi.d.ts +4 -0
  57. package/dist/i18n/locales/hi.d.ts.map +1 -1
  58. package/dist/i18n/locales/hi.js +6 -2
  59. package/dist/i18n/locales/hi.js.map +1 -1
  60. package/dist/i18n/locales/it.d.ts +4 -0
  61. package/dist/i18n/locales/it.d.ts.map +1 -1
  62. package/dist/i18n/locales/it.js +6 -2
  63. package/dist/i18n/locales/it.js.map +1 -1
  64. package/dist/i18n/locales/ja.d.ts +4 -0
  65. package/dist/i18n/locales/ja.d.ts.map +1 -1
  66. package/dist/i18n/locales/ja.js +6 -2
  67. package/dist/i18n/locales/ja.js.map +1 -1
  68. package/dist/i18n/locales/nl.d.ts +4 -0
  69. package/dist/i18n/locales/nl.d.ts.map +1 -1
  70. package/dist/i18n/locales/nl.js +6 -2
  71. package/dist/i18n/locales/nl.js.map +1 -1
  72. package/dist/i18n/locales/pl.d.ts +4 -0
  73. package/dist/i18n/locales/pl.d.ts.map +1 -1
  74. package/dist/i18n/locales/pl.js +6 -2
  75. package/dist/i18n/locales/pl.js.map +1 -1
  76. package/dist/i18n/locales/pt.d.ts +4 -0
  77. package/dist/i18n/locales/pt.d.ts.map +1 -1
  78. package/dist/i18n/locales/pt.js +6 -2
  79. package/dist/i18n/locales/pt.js.map +1 -1
  80. package/dist/i18n/locales/ro.d.ts +4 -0
  81. package/dist/i18n/locales/ro.d.ts.map +1 -1
  82. package/dist/i18n/locales/ro.js +6 -2
  83. package/dist/i18n/locales/ro.js.map +1 -1
  84. package/dist/i18n/locales/ru.d.ts +4 -0
  85. package/dist/i18n/locales/ru.d.ts.map +1 -1
  86. package/dist/i18n/locales/ru.js +6 -2
  87. package/dist/i18n/locales/ru.js.map +1 -1
  88. package/dist/i18n/locales/sq.d.ts +4 -0
  89. package/dist/i18n/locales/sq.d.ts.map +1 -1
  90. package/dist/i18n/locales/sq.js +6 -2
  91. package/dist/i18n/locales/sq.js.map +1 -1
  92. package/dist/i18n/locales/sv.d.ts +4 -0
  93. package/dist/i18n/locales/sv.d.ts.map +1 -1
  94. package/dist/i18n/locales/sv.js +6 -2
  95. package/dist/i18n/locales/sv.js.map +1 -1
  96. package/dist/i18n/locales/tr.d.ts +4 -0
  97. package/dist/i18n/locales/tr.d.ts.map +1 -1
  98. package/dist/i18n/locales/tr.js +6 -2
  99. package/dist/i18n/locales/tr.js.map +1 -1
  100. package/dist/i18n/locales/zh.d.ts +4 -0
  101. package/dist/i18n/locales/zh.d.ts.map +1 -1
  102. package/dist/i18n/locales/zh.js +6 -2
  103. package/dist/i18n/locales/zh.js.map +1 -1
  104. package/dist/index.js +6 -6
  105. package/dist/locales/ar.json +6 -2
  106. package/dist/locales/de.json +6 -2
  107. package/dist/locales/el.json +6 -2
  108. package/dist/locales/en.json +5 -1
  109. package/dist/locales/es.json +6 -2
  110. package/dist/locales/fr.json +6 -2
  111. package/dist/locales/hi.json +6 -2
  112. package/dist/locales/it.json +6 -2
  113. package/dist/locales/ja.json +6 -2
  114. package/dist/locales/nl.json +6 -2
  115. package/dist/locales/pl.json +6 -2
  116. package/dist/locales/pt.json +6 -2
  117. package/dist/locales/ro.json +6 -2
  118. package/dist/locales/ru.json +6 -2
  119. package/dist/locales/sq.json +6 -2
  120. package/dist/locales/sv.json +6 -2
  121. package/dist/locales/tr.json +6 -2
  122. package/dist/locales/zh.json +6 -2
  123. package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
  124. package/dist/patterns/calendar/calendar-workspace.model.d.ts.map +1 -1
  125. package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
  126. package/dist/patterns/calendar/calendar.journey.d.ts.map +1 -1
  127. package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
  128. package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
  129. package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
  130. package/dist/patterns/calendar/calendar.types.d.ts +4 -0
  131. package/dist/patterns/calendar/calendar.types.d.ts.map +1 -1
  132. package/dist/patterns/calendar/index.js +1 -1
  133. package/dist/tokens.css +1 -1
  134. package/package.json +1 -1
  135. package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
  136. package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js.map +0 -1
  137. package/dist/_chunks/map-view-DkL58SRp.js +0 -1613
  138. package/dist/_chunks/map-view-DkL58SRp.js.map +0 -1
  139. package/dist/_chunks/practice-results-M5A9-X9y.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import * as Ae from "react";
2
- import A, { useMemo as N, useContext as H, useEffect as C, useLayoutEffect as J, useState as k, useReducer as De, useCallback as ce, useRef as x, forwardRef as B, useImperativeHandle as F, Children as je, createContext as Fe } from "react";
2
+ import A, { useMemo as N, useContext as H, useEffect as C, useLayoutEffect as J, useState as k, useReducer as De, useCallback as ce, useRef as B, forwardRef as j, useImperativeHandle as F, Children as je, createContext as Fe } from "react";
3
3
  import { createPortal as Le } from "react-dom";
4
4
  import { g as ze } from "./_commonjsHelpers-DaMA6jEr.js";
5
- var te, he;
5
+ var oe, he;
6
6
  function Ue() {
7
- return he || (he = 1, te = function e(n, t) {
7
+ return he || (he = 1, oe = function e(n, t) {
8
8
  if (n === t) return !0;
9
9
  if (n && t && typeof n == "object" && typeof t == "object") {
10
10
  if (n.constructor !== t.constructor) return !1;
@@ -28,10 +28,10 @@ function Ue() {
28
28
  return !0;
29
29
  }
30
30
  return n !== n && t !== t;
31
- }), te;
31
+ }), oe;
32
32
  }
33
33
  var Ge = Ue();
34
- const q = /* @__PURE__ */ ze(Ge), He = "1.8.3";
34
+ const Z = /* @__PURE__ */ ze(Ge), He = "1.8.3";
35
35
  function R(e, n) {
36
36
  var t = {};
37
37
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
@@ -86,17 +86,17 @@ const Ve = (e) => {
86
86
  console.info(`[@googlemaps/js-api-loader] ${e}`);
87
87
  } : () => {
88
88
  }, Ye = process.env.NODE_ENV !== "production";
89
- let re = !1;
89
+ let ae = !1;
90
90
  function Xe(e) {
91
- if (re) {
91
+ if (ae) {
92
92
  ue($e(e));
93
93
  return;
94
94
  }
95
- en(e), re = !0;
95
+ en(e), ae = !0;
96
96
  }
97
97
  async function Qe(e) {
98
98
  var n, t;
99
- if (re || ue(Ze), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
99
+ if (ae || ue(Ze), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
100
100
  throw new Error("google.maps.importLibrary is not installed.");
101
101
  return await google.maps.importLibrary(e);
102
102
  }
@@ -114,10 +114,10 @@ const T = {
114
114
  }, nn = "GMP_visgl_rgmlibrary_v1_default", tn = [
115
115
  `gmp_visgl_reactgooglemaps_v${He}`
116
116
  ], V = A.createContext(null);
117
- let j = T.NOT_LOADED, Y;
118
- const ae = /* @__PURE__ */ new Set();
117
+ let x = T.NOT_LOADED, q;
118
+ const ee = /* @__PURE__ */ new Set();
119
119
  function X(e) {
120
- e !== j && (j = e, ae.forEach((n) => n(j)));
120
+ e !== x && (x = e, ee.forEach((n) => n(x)));
121
121
  }
122
122
  function on() {
123
123
  const [e, n] = k({});
@@ -155,7 +155,7 @@ function rn() {
155
155
  };
156
156
  }
157
157
  function an(e) {
158
- const { onLoad: n, onError: t, apiKey: o, version: r, libraries: a = [], region: s, language: i, authReferrerPolicy: f, channel: d, solutionChannel: l, fetchAppCheckToken: h } = e, [p, u] = k(j), [m, y] = De((b, E) => b[E.name] ? b : Object.assign(Object.assign({}, b), { [E.name]: E.value }), {}), c = N(() => {
158
+ const { onLoad: n, onError: t, apiKey: o, version: r, libraries: a = [], region: s, language: i, authReferrerPolicy: f, channel: d, solutionChannel: l, fetchAppCheckToken: h } = e, [p, u] = k(x), [m, y] = De((b, E) => b[E.name] ? b : Object.assign(Object.assign({}, b), { [E.name]: E.value }), {}), c = N(() => {
159
159
  const b = {
160
160
  apiKey: o,
161
161
  version: r,
@@ -182,24 +182,24 @@ function an(e) {
182
182
  const E = yield Qe(b);
183
183
  return y({ name: b, value: E }), E;
184
184
  }), [m]);
185
- return C(() => (ae.add(u), u(j), () => {
186
- ae.delete(u);
185
+ return C(() => (ee.add(u), u(x), () => {
186
+ ee.delete(u);
187
187
  }), []), C(
188
188
  () => {
189
189
  ve(this, void 0, void 0, function* () {
190
190
  var b, E;
191
191
  try {
192
- Y && Y !== c && 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.");
192
+ q && q !== c && 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.");
193
193
  const M = ["core", "maps", ...a];
194
194
  if (!((E = (b = window.google) === null || b === void 0 ? void 0 : b.maps) === null || E === void 0) && E.importLibrary) {
195
- Y || X(T.LOADED), yield Promise.all(M.map((v) => g(v))), n && n();
195
+ q || X(T.LOADED), yield Promise.all(M.map((v) => g(v))), n && n();
196
196
  return;
197
197
  }
198
- if (j === T.LOADING || j === T.LOADED) {
199
- j === T.LOADED && n && n();
198
+ if (x === T.LOADING || x === T.LOADED) {
199
+ x === T.LOADED && n && n();
200
200
  return;
201
201
  }
202
- Y = c, X(T.LOADING);
202
+ q = c, X(T.LOADING);
203
203
  const D = Object.fromEntries(Object.entries({
204
204
  key: o,
205
205
  v: r,
@@ -260,9 +260,12 @@ const St = (e) => {
260
260
  ]);
261
261
  return A.createElement(V.Provider, { value: y }, n);
262
262
  };
263
+ function kt() {
264
+ x = T.NOT_LOADED, q = void 0, ee.clear();
265
+ }
263
266
  function ln(e, n) {
264
267
  for (const t of gn) {
265
- const o = n[t], r = Ie[t];
268
+ const o = n[t], r = _e[t];
266
269
  C(() => {
267
270
  if (!e || !o)
268
271
  return;
@@ -308,7 +311,7 @@ function cn(e, n, t) {
308
311
  }
309
312
  return r;
310
313
  }
311
- const Ie = {
314
+ const _e = {
312
315
  onBoundsChanged: "bounds_changed",
313
316
  onCenterChanged: "center_changed",
314
317
  onClick: "click",
@@ -347,16 +350,16 @@ const Ie = {
347
350
  "mousemove",
348
351
  "mouseout",
349
352
  "mouseover"
350
- ], gn = Object.keys(Ie);
351
- function Z(e, n) {
352
- const t = x(e);
353
+ ], gn = Object.keys(_e);
354
+ function W(e, n) {
355
+ const t = B(e);
353
356
  return n(e, t.current) || (t.current = e), t.current;
354
357
  }
355
358
  function fn(e, n, t) {
356
- C(e, [Z(n, t)]);
359
+ C(e, [W(n, t)]);
357
360
  }
358
- function _e(e, n) {
359
- fn(e, n, q);
361
+ function Ie(e, n) {
362
+ fn(e, n, Z);
360
363
  }
361
364
  const mn = /* @__PURE__ */ new Set([
362
365
  "backgroundColor",
@@ -399,7 +402,7 @@ function pn(e, n) {
399
402
  const t = {}, o = Object.keys(n);
400
403
  for (const r of o)
401
404
  mn.has(r) && (t[r] = n[r]);
402
- _e(() => {
405
+ Ie(() => {
403
406
  e && e.setOptions(t);
404
407
  }, [t]);
405
408
  }
@@ -427,10 +430,10 @@ function vn(e) {
427
430
  function ke(e, n) {
428
431
  if (!e || !n)
429
432
  return !1;
430
- const t = ee(e), o = ee(n);
433
+ const t = ne(e), o = ne(n);
431
434
  return !(t.lat !== o.lat || t.lng !== o.lng);
432
435
  }
433
- function ee(e) {
436
+ function ne(e) {
434
437
  return vn(e) ? e : e.toJSON();
435
438
  }
436
439
  function ye(e) {
@@ -473,7 +476,7 @@ function bn(e, n) {
473
476
  return !0;
474
477
  }
475
478
  function En(e, n, t) {
476
- const o = t.center ? ee(t.center) : null;
479
+ const o = t.center ? ne(t.center) : null;
477
480
  let r = null, a = null;
478
481
  o && Number.isFinite(o.lat) && Number.isFinite(o.lng) && (r = o.lat, a = o.lng);
479
482
  const s = Number.isFinite(t.zoom) ? t.zoom : null, i = Number.isFinite(t.heading) ? t.heading : null, f = Number.isFinite(t.tilt) ? t.tilt : null;
@@ -536,7 +539,7 @@ function On(e, n) {
536
539
  });
537
540
  }
538
541
  function Mn(e) {
539
- const n = Ne(), t = x({
542
+ const n = Ne(), t = B({
540
543
  center: { lat: 0, lng: 0 },
541
544
  heading: 0,
542
545
  tilt: 0,
@@ -573,27 +576,27 @@ function An(e, n) {
573
576
  ];
574
577
  for (const v of Object.keys(g))
575
578
  g[v] === void 0 && delete g[v];
576
- const D = x(void 0);
579
+ const D = B(void 0);
577
580
  return C(
578
581
  () => {
579
582
  if (!a || !t)
580
583
  return;
581
- const { addMapInstance: v, removeMapInstance: O } = n, { mapId: P } = e, _ = `${P || "default"}:${y || "default"}:${c || "LIGHT"}`;
584
+ const { addMapInstance: v, removeMapInstance: O } = n, { mapId: P } = e, I = `${P || "default"}:${y || "default"}:${c || "LIGHT"}`;
582
585
  let L, w;
583
- if (m && Q.has(_) ? (w = Q.pop(_), L = w.getDiv(), a.appendChild(L), w.setOptions(g), setTimeout(() => w.moveCamera({}), 0)) : (L = document.createElement("div"), L.style.height = "100%", a.appendChild(L), w = new google.maps.Map(L, Object.assign(Object.assign(Object.assign({}, g), y ? { renderingType: y } : {}), c ? { colorScheme: c } : {}))), r(w), v(w, f), d) {
584
- const { padding: W } = d, K = R(d, ["padding"]);
585
- w.fitBounds(K, W);
586
+ if (m && Q.has(I) ? (w = Q.pop(I), L = w.getDiv(), a.appendChild(L), w.setOptions(g), setTimeout(() => w.moveCamera({}), 0)) : (L = document.createElement("div"), L.style.height = "100%", a.appendChild(L), w = new google.maps.Map(L, Object.assign(Object.assign(Object.assign({}, g), y ? { renderingType: y } : {}), c ? { colorScheme: c } : {}))), r(w), v(w, f), d) {
587
+ const { padding: K } = d, Y = R(d, ["padding"]);
588
+ w.fitBounds(Y, K);
586
589
  } else (!b || !E) && w.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
587
590
  if (D.current) {
588
- const { mapId: W, cameraState: K } = D.current;
589
- W !== P && w.moveCamera(K);
591
+ const { mapId: K, cameraState: Y } = D.current;
592
+ K !== P && w.moveCamera(Y);
590
593
  }
591
594
  return () => {
592
595
  D.current = {
593
596
  mapId: P,
594
597
  // eslint-disable-next-line react-hooks/exhaustive-deps
595
598
  cameraState: i.current
596
- }, L.remove(), m ? Q.push(_, w) : google.maps.event.clearInstanceListeners(w), r(null), O(f);
599
+ }, L.remove(), m ? Q.push(I, w) : google.maps.event.clearInstanceListeners(w), r(null), O(f);
597
600
  };
598
601
  },
599
602
  // some dependencies are ignored in the list below:
@@ -638,7 +641,7 @@ const Re = A.createContext(null), Dn = (e) => {
638
641
  e.gestureHandling,
639
642
  e.keyboardShortcuts
640
643
  ]);
641
- const p = e.center ? ee(e.center) : null;
644
+ const p = e.center ? ne(e.center) : null;
642
645
  let u = null, m = null;
643
646
  p && Number.isFinite(p.lat) && Number.isFinite(p.lng) && (u = p.lat, m = p.lng);
644
647
  const y = N(() => {
@@ -685,26 +688,26 @@ const $ = (e = null) => {
685
688
  const { mapInstances: o } = n;
686
689
  return e !== null ? o[e] || null : t || o.default || null;
687
690
  };
688
- function ne(e) {
691
+ function te(e) {
689
692
  const n = Te(), t = H(V);
690
693
  return C(() => {
691
694
  !n || !t || t.importLibrary(e);
692
695
  }, [n, t, e]), (t == null ? void 0 : t.loadedLibraries[e]) || null;
693
696
  }
694
- var oe;
695
- const { useLayoutEffect: Pn, useRef: In } = Ae, _n = (oe = Ae.useInsertionEffect) !== null && oe !== void 0 ? oe : Pn;
697
+ var re;
698
+ const { useLayoutEffect: Pn, useRef: _n } = Ae, In = (re = Ae.useInsertionEffect) !== null && re !== void 0 ? re : Pn;
696
699
  function Sn() {
697
700
  throw new Error("useEffectEvent: invalid call during rendering.");
698
701
  }
699
702
  function kn(e) {
700
- const n = In(Sn);
701
- return _n(() => {
703
+ const n = _n(Sn);
704
+ return In(() => {
702
705
  n.current = e;
703
706
  }, [e]), ((...t) => n.current(...t));
704
707
  }
705
708
  const xe = kn, wn = () => {
706
709
  };
707
- function I(e, n, t) {
710
+ function _(e, n, t) {
708
711
  const o = xe(t ?? wn), r = !!t;
709
712
  C(() => {
710
713
  if (!e || !n || !r)
@@ -760,7 +763,7 @@ function xn(e, n) {
760
763
  }
761
764
  const Bn = A.createContext(null), jn = {
762
765
  BOTTOM: ["50%", "100%"]
763
- }, Fn = B((e, n) => {
766
+ }, Fn = j((e, n) => {
764
767
  const { children: t, style: o, className: r, anchorPoint: a } = e, [s, i] = Un(e), f = N(() => s ? { marker: s } : null, [s]);
765
768
  return F(n, () => s, [s]), i ? A.createElement(Bn.Provider, { value: f }, Le(A.createElement(zn, { anchorPoint: a, styles: o, className: r }, t), i)) : null;
766
769
  });
@@ -770,15 +773,15 @@ function le(e) {
770
773
  }
771
774
  const zn = ({ children: e, styles: n, className: t }) => A.createElement("div", { className: t, style: n }, e);
772
775
  function Un(e) {
773
- const [n, t] = k(null), [o, r] = k(null), a = $(), s = ne("marker"), { children: i, onClick: f, className: d, onMouseEnter: l, onMouseLeave: h, onDrag: p, onDragStart: u, onDragEnd: m, collisionBehavior: y, clickable: c, draggable: g, position: b, title: E, zIndex: M, anchorPoint: D, anchorLeft: v, anchorTop: O } = e, P = je.count(i);
776
+ const [n, t] = k(null), [o, r] = k(null), a = $(), s = te("marker"), { children: i, onClick: f, className: d, onMouseEnter: l, onMouseLeave: h, onDrag: p, onDragStart: u, onDragEnd: m, collisionBehavior: y, clickable: c, draggable: g, position: b, title: E, zIndex: M, anchorPoint: D, anchorLeft: v, anchorTop: O } = e, P = je.count(i);
774
777
  return C(() => {
775
778
  if (!a || !s)
776
779
  return;
777
- const _ = new s.AdvancedMarkerElement();
778
- _.map = a, t(_);
780
+ const I = new s.AdvancedMarkerElement();
781
+ I.map = a, t(I);
779
782
  let L = null;
780
- return P > 0 && (L = document.createElement("div"), _.content = L, r(L)), () => {
781
- _.map = null, L == null || L.remove(), t(null), r(null);
783
+ return P > 0 && (L = document.createElement("div"), I.content = L, r(L)), () => {
784
+ I.map = null, L == null || L.remove(), t(null), r(null);
782
785
  };
783
786
  }, [a, s, P]), C(() => {
784
787
  !(n != null && n.content) || !le(n.content) || P > 0 || (n.content.className = d ?? "");
@@ -787,9 +790,9 @@ function Un(e) {
787
790
  }, [n, g, p, m, u]), C(() => {
788
791
  if (!n)
789
792
  return;
790
- const _ = c !== void 0 ? c : !!f || !!l || !!h;
791
- n.gmpClickable = _, _ && (n != null && n.content) && le(n.content) && (n.content.style.pointerEvents = "all", f && (n.content.style.cursor = "pointer"));
792
- }, [n, c, f, l, h]), I(n, "click", f), I(n, "drag", p), I(n, "dragstart", u), I(n, "dragend", m), se(n == null ? void 0 : n.element, "mouseenter", l), se(n == null ? void 0 : n.element, "mouseleave", h), [n, o];
793
+ const I = c !== void 0 ? c : !!f || !!l || !!h;
794
+ n.gmpClickable = I, I && (n != null && n.content) && le(n.content) && (n.content.style.pointerEvents = "all", f && (n.content.style.cursor = "pointer"));
795
+ }, [n, c, f, l, h]), _(n, "click", f), _(n, "drag", p), _(n, "dragstart", u), _(n, "dragend", m), se(n == null ? void 0 : n.element, "mouseenter", l), se(n == null ? void 0 : n.element, "mouseleave", h), [n, o];
793
796
  }
794
797
  function Gn(e, n, t, o, r) {
795
798
  C(() => {
@@ -810,7 +813,7 @@ function Gn(e, n, t, o, r) {
810
813
  }
811
814
  function Hn(e) {
812
815
  var n, t, o;
813
- const { onClick: r, onDrag: a, onDragStart: s, onDragEnd: i, onMouseOver: f, onMouseOut: d, onRadiusChanged: l, onCenterChanged: h, center: p, defaultCenter: u, radius: m, defaultRadius: y } = e, c = R(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [g, b] = k(null), E = $(), M = Z(Object.assign(Object.assign({}, c), { clickable: (n = c.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = c.draggable) !== null && t !== void 0 ? t : !!(a || s || i || h), editable: (o = c.editable) !== null && o !== void 0 ? o : !!l }), q);
816
+ const { onClick: r, onDrag: a, onDragStart: s, onDragEnd: i, onMouseOver: f, onMouseOut: d, onRadiusChanged: l, onCenterChanged: h, center: p, defaultCenter: u, radius: m, defaultRadius: y } = e, c = R(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [g, b] = k(null), E = $(), M = W(Object.assign(Object.assign({}, c), { clickable: (n = c.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = c.draggable) !== null && t !== void 0 ? t : !!(a || s || i || h), editable: (o = c.editable) !== null && o !== void 0 ? o : !!l }), Z);
814
817
  return C(() => {
815
818
  if (!E) {
816
819
  E === void 0 && console.error("<Circle> has to be inside a Map component.");
@@ -820,10 +823,10 @@ function Hn(e) {
820
823
  return D.setMap(E), b(D), () => {
821
824
  D.setMap(null), b(null);
822
825
  };
823
- }, [E]), I(g, "click", r), I(g, "drag", a), I(g, "dragstart", s), I(g, "dragend", i), I(g, "mouseover", f), I(g, "mouseout", d), I(g, "radius_changed", l ? () => {
826
+ }, [E]), _(g, "click", r), _(g, "drag", a), _(g, "dragstart", s), _(g, "dragend", i), _(g, "mouseover", f), _(g, "mouseout", d), _(g, "radius_changed", l ? () => {
824
827
  const D = g == null ? void 0 : g.getRadius();
825
828
  D !== void 0 && l(D);
826
- } : null), I(g, "center_changed", h ? () => {
829
+ } : null), _(g, "center_changed", h ? () => {
827
830
  h(g == null ? void 0 : g.getCenter());
828
831
  } : null), C(() => {
829
832
  g && g.setOptions(M);
@@ -833,7 +836,7 @@ function Hn(e) {
833
836
  !g || m === void 0 || m !== g.getRadius() && g.setRadius(m);
834
837
  }, [g, m]), g;
835
838
  }
836
- const Jn = B((e, n) => {
839
+ const Jn = j((e, n) => {
837
840
  const t = Hn(e);
838
841
  return F(n, () => t, [t]), A.createElement(A.Fragment, null);
839
842
  });
@@ -919,7 +922,7 @@ function Ce(e) {
919
922
  }
920
923
  function Zn(e) {
921
924
  var n, t, o;
922
- const { onClick: r, onDrag: a, onDragStart: s, onDragEnd: i, onMouseOver: f, onMouseOut: d, onPathsChanged: l, polygon: h, encodedPaths: p, paths: u, defaultPaths: m } = e, y = R(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [c, g] = k(null), b = $(), E = ne("geometry"), M = x(!1), D = Z(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 || s || i || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), q);
925
+ const { onClick: r, onDrag: a, onDragStart: s, onDragEnd: i, onMouseOver: f, onMouseOut: d, onPathsChanged: l, polygon: h, encodedPaths: p, paths: u, defaultPaths: m } = e, y = R(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [c, g] = k(null), b = $(), E = te("geometry"), M = B(!1), D = W(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 || s || i || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), Z);
923
926
  return C(() => {
924
927
  if (!b) {
925
928
  b === void 0 && console.error("<Polygon> has to be inside a Map component.");
@@ -937,7 +940,7 @@ function Zn(e) {
937
940
  return v.setMap(b), g(v), () => {
938
941
  v.setMap(null), g(null);
939
942
  };
940
- }, [b, h]), I(c, "click", r), I(c, "drag", a), I(c, "dragstart", s), I(c, "mouseover", f), I(c, "mouseout", d), I(c, "dragend", (v) => {
943
+ }, [b, h]), _(c, "click", r), _(c, "drag", a), _(c, "dragstart", s), _(c, "mouseover", f), _(c, "mouseout", d), _(c, "dragend", (v) => {
941
944
  i == null || i(v), l && c && !M.current && l(Ce(c));
942
945
  }), C(() => {
943
946
  if (!c || !l)
@@ -947,15 +950,15 @@ function Zn(e) {
947
950
  return;
948
951
  const P = () => {
949
952
  M.current || l(Ce(c));
950
- }, _ = (L) => {
953
+ }, I = (L) => {
951
954
  v.push(google.maps.event.addListener(L, "insert_at", P)), v.push(google.maps.event.addListener(L, "remove_at", P)), v.push(google.maps.event.addListener(L, "set_at", P));
952
955
  };
953
956
  for (let L = 0; L < O.getLength(); L++)
954
- _(O.getAt(L));
957
+ I(O.getAt(L));
955
958
  return v.push(google.maps.event.addListener(O, "insert_at", (L) => {
956
- _(O.getAt(L)), P();
959
+ I(O.getAt(L)), P();
957
960
  })), v.push(google.maps.event.addListener(O, "set_at", (L) => {
958
- _(O.getAt(L)), P();
961
+ I(O.getAt(L)), P();
959
962
  })), v.push(google.maps.event.addListener(O, "remove_at", P)), () => {
960
963
  v.forEach((L) => L.remove());
961
964
  };
@@ -981,14 +984,14 @@ function Zn(e) {
981
984
  c.setPaths(v), M.current = !1;
982
985
  }, [c, p, E]), c;
983
986
  }
984
- const Wn = B((e, n) => {
987
+ const Wn = j((e, n) => {
985
988
  const t = Zn(e);
986
989
  return F(n, () => t, [t]), A.createElement(A.Fragment, null);
987
990
  });
988
991
  Wn.displayName = "Polygon";
989
992
  function Kn(e) {
990
993
  var n, t, o;
991
- const { onClick: r, onDrag: a, onDragStart: s, onDragEnd: i, onMouseOver: f, onMouseOut: d, onPathChanged: l, polyline: h, encodedPath: p, path: u, defaultPath: m } = e, y = R(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [c, g] = k(null), b = $(), E = ne("geometry"), M = x(!1), D = Z(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 || s || i || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), q);
994
+ const { onClick: r, onDrag: a, onDragStart: s, onDragEnd: i, onMouseOver: f, onMouseOut: d, onPathChanged: l, polyline: h, encodedPath: p, path: u, defaultPath: m } = e, y = R(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [c, g] = k(null), b = $(), E = te("geometry"), M = B(!1), D = W(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 || s || i || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), Z);
992
995
  return C(() => {
993
996
  if (!b) {
994
997
  b === void 0 && console.error("<Polyline> has to be inside a Map component.");
@@ -1006,7 +1009,7 @@ function Kn(e) {
1006
1009
  return v.setMap(b), g(v), () => {
1007
1010
  v.setMap(null), g(null);
1008
1011
  };
1009
- }, [b, h]), I(c, "click", r), I(c, "drag", a), I(c, "dragstart", s), I(c, "mouseover", f), I(c, "mouseout", d), I(c, "dragend", (v) => {
1012
+ }, [b, h]), _(c, "click", r), _(c, "drag", a), _(c, "dragstart", s), _(c, "mouseover", f), _(c, "mouseout", d), _(c, "dragend", (v) => {
1010
1013
  i == null || i(v), l && c && !M.current && l(c.getPath().getArray());
1011
1014
  }), C(() => {
1012
1015
  if (!c || !l)
@@ -1022,7 +1025,7 @@ function Kn(e) {
1022
1025
  google.maps.event.addListener(v, "set_at", O)
1023
1026
  ];
1024
1027
  return () => {
1025
- P.forEach((_) => _.remove());
1028
+ P.forEach((I) => I.remove());
1026
1029
  };
1027
1030
  }, [
1028
1031
  c,
@@ -1046,7 +1049,7 @@ function Kn(e) {
1046
1049
  c.setPath(v), M.current = !1;
1047
1050
  }, [c, p, E]), c;
1048
1051
  }
1049
- const Yn = B((e, n) => {
1052
+ const Yn = j((e, n) => {
1050
1053
  const t = Kn(e);
1051
1054
  return F(n, () => t, [t]), A.createElement(A.Fragment, null);
1052
1055
  });
@@ -1068,7 +1071,7 @@ function et(e, n, t) {
1068
1071
  n.current[t] = o;
1069
1072
  }
1070
1073
  function nt(e) {
1071
- const n = Ne(), t = x(Object.assign({}, Xn));
1074
+ const n = Ne(), t = B(Object.assign({}, Xn));
1072
1075
  return C(() => {
1073
1076
  if (!e)
1074
1077
  return;
@@ -1086,7 +1089,7 @@ function nt(e) {
1086
1089
  }, [e, n]), t;
1087
1090
  }
1088
1091
  function tt(e) {
1089
- const n = ne("maps3d"), [t, o] = k(!1), [, r] = ie(), [a, s] = ie(), i = nt(a);
1092
+ const n = te("maps3d"), [t, o] = k(!1), [, r] = ie(), [a, s] = ie(), i = nt(a);
1090
1093
  return C(() => {
1091
1094
  customElements.whenDefined("gmp-map-3d").then(() => {
1092
1095
  o(!0);
@@ -1113,11 +1116,11 @@ function tt(e) {
1113
1116
  children: v,
1114
1117
  onCenterChanged: O,
1115
1118
  onHeadingChanged: P,
1116
- onTiltChanged: _,
1119
+ onTiltChanged: I,
1117
1120
  onRangeChanged: L,
1118
1121
  onRollChanged: w,
1119
- onCameraChanged: W,
1120
- onClick: K,
1122
+ onCameraChanged: K,
1123
+ onClick: Y,
1121
1124
  onSteadyChange: Ot,
1122
1125
  onAnimationEnd: Mt,
1123
1126
  onError: At,
@@ -1262,7 +1265,7 @@ function ct(e, n) {
1262
1265
  }
1263
1266
  return o;
1264
1267
  }, [n]);
1265
- _e(() => {
1268
+ Ie(() => {
1266
1269
  e && Object.assign(e, t);
1267
1270
  }, [e, t]);
1268
1271
  }
@@ -1270,7 +1273,7 @@ const ut = A.createContext(null), dt = {
1270
1273
  width: "100%",
1271
1274
  height: "100%",
1272
1275
  position: "relative"
1273
- }, gt = B((e, n) => {
1276
+ }, gt = j((e, n) => {
1274
1277
  const { children: t, id: o, className: r, style: a } = e, s = H(V);
1275
1278
  if (!s)
1276
1279
  throw new Error("<Map3D> can only be used inside an <APIProvider> component.");
@@ -1302,7 +1305,7 @@ const ut = A.createContext(null), dt = {
1302
1305
  ) : A.createElement("div", Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : m, className: r }, o ? { id: o } : {}));
1303
1306
  });
1304
1307
  gt.displayName = "Map3D";
1305
- const ft = Fe(null), mt = B(function(n, t) {
1308
+ const ft = Fe(null), mt = j(function(n, t) {
1306
1309
  const { children: o, onClick: r, position: a, altitudeMode: s, collisionBehavior: i, drawsWhenOccluded: f, extruded: d, label: l, sizePreserved: h, zIndex: p, title: u } = n, m = !!r, [y, c] = k(null), [g, b] = k(!1), E = N(() => {
1307
1310
  const v = document.createElement("div");
1308
1311
  return v.style.display = "none", document.body.appendChild(v), v;
@@ -1320,8 +1323,8 @@ const ft = Fe(null), mt = B(function(n, t) {
1320
1323
  for (const O of v) {
1321
1324
  if (O.nodeType !== Node.ELEMENT_NODE)
1322
1325
  continue;
1323
- const P = O, _ = P.tagName.toLowerCase();
1324
- if (_ === "img" || _ === "svg") {
1326
+ const P = O, I = P.tagName.toLowerCase();
1327
+ if (I === "img" || I === "svg") {
1325
1328
  const L = document.createElement("template");
1326
1329
  L.content.appendChild(P.cloneNode(!0)), y.appendChild(L);
1327
1330
  } else
@@ -1337,9 +1340,9 @@ const ft = Fe(null), mt = B(function(n, t) {
1337
1340
  );
1338
1341
  });
1339
1342
  mt.displayName = "Marker3D";
1340
- const pt = B(function(n, t) {
1343
+ const pt = j(function(n, t) {
1341
1344
  var o;
1342
- const { children: r, headerContent: a, style: s, className: i, open: f = !0, position: d, anchor: l, anchorId: h, altitudeMode: p, lightDismissDisabled: u, autoPanDisabled: m, onClose: y } = n, [c, g] = k(null), b = x(null);
1345
+ const { children: r, headerContent: a, style: s, className: i, open: f = !0, position: d, anchor: l, anchorId: h, altitudeMode: p, lightDismissDisabled: u, autoPanDisabled: m, onClose: y } = n, [c, g] = k(null), b = B(null);
1343
1346
  F(t, () => c, [c]), ht(c, f, y), S(c, "open", f ?? !1), S(c, "altitudeMode", p), S(c, "lightDismissDisabled", u), S(c, "autoPanDisabled", m);
1344
1347
  const E = (o = l ?? h) !== null && o !== void 0 ? o : d;
1345
1348
  return S(c, "positionAnchor", E), J(() => {
@@ -1353,7 +1356,7 @@ const pt = B(function(n, t) {
1353
1356
  });
1354
1357
  pt.displayName = "Popover";
1355
1358
  function ht(e, n, t) {
1356
- const o = x(void 0), r = x(n);
1359
+ const o = B(void 0), r = B(n);
1357
1360
  C(() => {
1358
1361
  r.current = n;
1359
1362
  }, [n]), C(() => {
@@ -1407,14 +1410,14 @@ function vt(e) {
1407
1410
  p || !h || !n || n.setPosition(h);
1408
1411
  }, [p, h, n]), n;
1409
1412
  }
1410
- const yt = B((e, n) => {
1413
+ const yt = j((e, n) => {
1411
1414
  const t = vt(e);
1412
1415
  return F(n, () => t, [t]), A.createElement(A.Fragment, null);
1413
1416
  });
1414
1417
  yt.displayName = "Marker";
1415
1418
  function bt(e) {
1416
1419
  var n, t, o;
1417
- const { onClick: r, onDrag: a, onDragStart: s, onDragEnd: i, onMouseOver: f, onMouseOut: d, onBoundsChanged: l, bounds: h, defaultBounds: p } = e, u = R(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [m, y] = k(null), c = $(), g = Z(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 || s || i || l), editable: (o = u.editable) !== null && o !== void 0 ? o : !!l }), q);
1420
+ const { onClick: r, onDrag: a, onDragStart: s, onDragEnd: i, onMouseOver: f, onMouseOut: d, onBoundsChanged: l, bounds: h, defaultBounds: p } = e, u = R(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [m, y] = k(null), c = $(), g = W(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 || s || i || l), editable: (o = u.editable) !== null && o !== void 0 ? o : !!l }), Z);
1418
1421
  return C(() => {
1419
1422
  if (!c) {
1420
1423
  c === void 0 && console.error("<Rectangle> has to be inside a Map component.");
@@ -1424,7 +1427,7 @@ function bt(e) {
1424
1427
  return b.setMap(c), y(b), () => {
1425
1428
  b.setMap(null), y(null);
1426
1429
  };
1427
- }, [c]), I(m, "click", r), I(m, "drag", a), I(m, "dragstart", s), I(m, "dragend", i), I(m, "mouseover", f), I(m, "mouseout", d), I(m, "bounds_changed", l ? () => {
1430
+ }, [c]), _(m, "click", r), _(m, "drag", a), _(m, "dragstart", s), _(m, "dragend", i), _(m, "mouseover", f), _(m, "mouseout", d), _(m, "bounds_changed", l ? () => {
1428
1431
  l(m == null ? void 0 : m.getBounds());
1429
1432
  } : null), C(() => {
1430
1433
  m && m.setOptions(g);
@@ -1432,7 +1435,7 @@ function bt(e) {
1432
1435
  !m || !h || yn(h, m.getBounds()) || m.setBounds(h);
1433
1436
  }, [m, h]), m;
1434
1437
  }
1435
- const Et = B((e, n) => {
1438
+ const Et = j((e, n) => {
1436
1439
  const t = bt(e);
1437
1440
  return F(n, () => t, [
1438
1441
  t
@@ -1450,7 +1453,7 @@ const Ct = {
1450
1453
  return r !== void 0 && typeof n[r] == "function";
1451
1454
  });
1452
1455
  };
1453
- function kt({
1456
+ function wt({
1454
1457
  libraries: e = [],
1455
1458
  pending: n,
1456
1459
  children: t
@@ -1481,12 +1484,13 @@ function kt({
1481
1484
  }
1482
1485
  export {
1483
1486
  St as A,
1484
- kt as M,
1487
+ wt as M,
1488
+ kt as _,
1485
1489
  Dn as a,
1486
1490
  Te as b,
1487
1491
  $ as c,
1488
1492
  Fn as d,
1489
1493
  yt as e,
1490
- ne as u
1494
+ te as u
1491
1495
  };
1492
- //# sourceMappingURL=maps-core-gate-DKx96CC_.js.map
1496
+ //# sourceMappingURL=maps-core-gate-CP8SEHH1.js.map