@mapsindoors/map-template 1.81.4 → 1.81.6

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 (63) hide show
  1. package/dist/_commonjsHelpers-ba3f0406-b96e6d6a.mjs +22 -0
  2. package/dist/combo-box-item.entry-e4d2d981.mjs +15 -0
  3. package/dist/icon-b8d01d6f-ddfa2c17.mjs +25 -0
  4. package/dist/mapsindoors-react.es.js +2 -9
  5. package/dist/mapsindoors-react.umd.js +170 -208
  6. package/dist/mapsindoors-webcomponent.es.js +39662 -51196
  7. package/dist/mapsindoors-webcomponent.umd.js +167 -198
  8. package/dist/mi-card_2.entry-0e19fee5.mjs +26 -0
  9. package/dist/{mi-chip.entry-d31e2a38.mjs → mi-chip.entry-03344627.mjs} +6 -13
  10. package/dist/mi-column.entry-a7086241.mjs +21 -0
  11. package/dist/{mi-combo-box.entry-426514dc.mjs → mi-combo-box.entry-f0f95481.mjs} +8 -15
  12. package/dist/{mi-data-table.entry-7b25a50a.mjs → mi-data-table.entry-41de8a06.mjs} +3 -10
  13. package/dist/{mi-distance_2.entry-92f37a51.mjs → mi-distance_2.entry-ea59dc56.mjs} +13 -20
  14. package/dist/mi-dropdown-item.entry-07b750c6.mjs +15 -0
  15. package/dist/{mi-dropdown.entry-c6db2c56.mjs → mi-dropdown.entry-3d16a788.mjs} +89 -96
  16. package/dist/{mi-floor-selector.entry-95f28615.mjs → mi-floor-selector.entry-c3b0f92a.mjs} +4 -11
  17. package/dist/{mi-keyboard.entry-d1b6867b.mjs → mi-keyboard.entry-c2f3e2d3.mjs} +402 -409
  18. package/dist/{mi-list-item-category.entry-d6579659.mjs → mi-list-item-category.entry-11428401.mjs} +10 -17
  19. package/dist/{mi-list-item-location.entry-0d3e61f7.mjs → mi-list-item-location.entry-2090309b.mjs} +12 -19
  20. package/dist/{mi-list.entry-1aa8ce70.mjs → mi-list.entry-eea46b64.mjs} +5 -12
  21. package/dist/{mi-location-booking.entry-78a8efc5.mjs → mi-location-booking.entry-2d2f222b.mjs} +3 -10
  22. package/dist/mi-location-info.entry-5f8bb801.mjs +32 -0
  23. package/dist/{mi-map-googlemaps.entry-fa1fca3c.mjs → mi-map-googlemaps.entry-756a56ee.mjs} +21 -28
  24. package/dist/{mi-map-mapbox.entry-bebb47c5.mjs → mi-map-mapbox.entry-c0fd8524.mjs} +6 -13
  25. package/dist/{mi-metric-card.entry-45e0aca6.mjs → mi-metric-card.entry-c0737d77.mjs} +13 -20
  26. package/dist/{mi-my-position.entry-20e65b9a.mjs → mi-my-position.entry-c8b10564.mjs} +90 -97
  27. package/dist/{mi-notification.entry-c5ffd907.mjs → mi-notification.entry-b8ec5fb2.mjs} +5 -12
  28. package/dist/{mi-route-instructions-heading.entry-dafe6b06.mjs → mi-route-instructions-heading.entry-59b1bf8b.mjs} +18 -25
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-7d70d463.mjs → mi-route-instructions-maneuver-legacy.entry-0811c038.mjs} +8 -15
  30. package/dist/{mi-route-instructions-maneuver.entry-769ee215.mjs → mi-route-instructions-maneuver.entry-c3669c3b.mjs} +9 -16
  31. package/dist/{mi-route-instructions-step-legacy.entry-22a830fc.mjs → mi-route-instructions-step-legacy.entry-d2e5b89f.mjs} +26 -33
  32. package/dist/{mi-route-instructions-step.entry-028eee13.mjs → mi-route-instructions-step.entry-9b29f2a9.mjs} +7 -14
  33. package/dist/{mi-route-instructions.entry-0357e12c.mjs → mi-route-instructions.entry-a4a8cc65.mjs} +8 -15
  34. package/dist/{mi-scroll-buttons.entry-101c7a78.mjs → mi-scroll-buttons.entry-00003ac2.mjs} +7 -14
  35. package/dist/{mi-search.entry-336c3a84.mjs → mi-search.entry-30b72287.mjs} +16 -23
  36. package/dist/{mi-share-sms.entry-d00c89f9.mjs → mi-share-sms.entry-7ffb83e6.mjs} +6 -13
  37. package/dist/{mi-step-switcher.entry-1debd131.mjs → mi-step-switcher.entry-7249da65.mjs} +8 -15
  38. package/dist/mi-tab-panel.entry-871a4087.mjs +22 -0
  39. package/dist/mi-tab.entry-e7604b93.mjs +14 -0
  40. package/dist/{mi-tabs.entry-ee5ed456.mjs → mi-tabs.entry-541f0050.mjs} +6 -13
  41. package/dist/{mi-time.entry-df183bd2.mjs → mi-time.entry-c1c06389.mjs} +8 -15
  42. package/dist/mi-variables-9a6c8d4d-e06eec88.mjs +8 -0
  43. package/dist/reactcomponent-276345e6.mjs +49308 -0
  44. package/dist/route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs +8 -0
  45. package/dist/sort-order.enum-64ce8998-b75ac596.mjs +318 -0
  46. package/dist/unit-system.enum-eaefb53e-0f424da4.mjs +8 -0
  47. package/dist/utils-ae714467-b07fc3be.mjs +37 -0
  48. package/package.json +1 -3
  49. package/dist/_commonjsHelpers-ba3f0406-5776c50e.mjs +0 -30
  50. package/dist/combo-box-item.entry-6057d372.mjs +0 -22
  51. package/dist/icon-b8d01d6f-3d42051c.mjs +0 -33
  52. package/dist/mi-card_2.entry-497f71c8.mjs +0 -33
  53. package/dist/mi-column.entry-7f36f3ae.mjs +0 -28
  54. package/dist/mi-dropdown-item.entry-bc28eac8.mjs +0 -22
  55. package/dist/mi-location-info.entry-88b70d19.mjs +0 -39
  56. package/dist/mi-tab-panel.entry-37d52412.mjs +0 -29
  57. package/dist/mi-tab.entry-99917303.mjs +0 -21
  58. package/dist/mi-variables-9a6c8d4d-c2450494.mjs +0 -16
  59. package/dist/reactcomponent-5343254a.mjs +0 -60933
  60. package/dist/route-travel-mode.enum-7f4ce9c7-ececca69.mjs +0 -16
  61. package/dist/sort-order.enum-64ce8998-abc95d37.mjs +0 -326
  62. package/dist/unit-system.enum-eaefb53e-84f2bcd5.mjs +0 -16
  63. package/dist/utils-ae714467-417b7ba2.mjs +0 -45
@@ -1,15 +1,8 @@
1
- import { r as s, h as e, H as r } from "./reactcomponent-5343254a.mjs";
2
- import { U as o } from "./unit-system.enum-eaefb53e-84f2bcd5.mjs";
1
+ import { r as s, h as i, H as r } from "./reactcomponent-276345e6.mjs";
2
+ import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
3
  import "react";
4
4
  import "react-dom";
5
- (function() {
6
- try {
7
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new t.Error().stack;
8
- n && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[n] = "31294eba-4a02-436e-9bae-42e24efb251f", t._sentryDebugIdIdentifier = "sentry-dbid-31294eba-4a02-436e-9bae-42e24efb251f");
9
- } catch {
10
- }
11
- })();
12
- const l = ':host{display:flex;padding-top:12px;padding-bottom:12px;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.icon{width:48px;display:flex;justify-content:center}.icon mi-icon{width:24px;height:24px}.description{display:flex;flex-direction:column;flex:1}.description p{margin:0;padding-right:16px;font-size:0.875rem;word-break:break-all}.description__distance{display:flex;align-items:center}.description__distance mi-distance{font-size:0.75rem;padding-right:12px}.description__distance-border{flex:1;width:100%;height:0;border-bottom:1px solid #e5e7eb}', d = class {
5
+ const l = ':host{display:flex;padding-top:12px;padding-bottom:12px;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.icon{width:48px;display:flex;justify-content:center}.icon mi-icon{width:24px;height:24px}.description{display:flex;flex-direction:column;flex:1}.description p{margin:0;padding-right:16px;font-size:0.875rem;word-break:break-all}.description__distance{display:flex;align-items:center}.description__distance mi-distance{font-size:0.75rem;padding-right:12px}.description__distance-border{flex:1;width:100%;height:0;border-bottom:1px solid #e5e7eb}', h = class {
13
6
  constructor(t) {
14
7
  s(this, t), this.maneuver = void 0, this.maneuverData = void 0, this.translations = void 0, this.translationsData = void 0, this.unit = o.Metric;
15
8
  }
@@ -66,8 +59,8 @@ const l = ':host{display:flex;padding-top:12px;padding-bottom:12px;font-family:F
66
59
  "slight-right": `${this.translationsData.goSlightRight} ${this.translationsData.andContinue}`,
67
60
  "u-turn": `${this.translationsData.turnAround} ${this.translationsData.andContinue}`
68
61
  // 'Turn around and continue'
69
- }, n = this.getManeuverName(this.maneuverData.maneuver.toLowerCase()), i = `arrow-${n}`, a = this.maneuverData.instructions ? this.maneuverData.instructions : t[n];
70
- return e(r, null, e("div", { class: "icon" }, n ? e("mi-icon", { part: "maneuver-icon", "icon-name": i }) : null), e("div", { class: "description" }, e("p", { part: "maneuver-description" }, a), e("div", { class: "description__distance" }, e("mi-distance", { part: "maneuver-description-distance", meters: this.maneuverData.distance.value, unit: this.unit }), e("span", { part: "maneuver-description-distance-border", class: "description__distance-border" }))));
62
+ }, a = this.getManeuverName(this.maneuverData.maneuver.toLowerCase()), n = `arrow-${a}`, e = this.maneuverData.instructions ? this.maneuverData.instructions : t[a];
63
+ return i(r, null, i("div", { class: "icon" }, a ? i("mi-icon", { part: "maneuver-icon", "icon-name": n }) : null), i("div", { class: "description" }, i("p", { part: "maneuver-description" }, e), i("div", { class: "description__distance" }, i("mi-distance", { part: "maneuver-description-distance", meters: this.maneuverData.distance.value, unit: this.unit }), i("span", { part: "maneuver-description-distance-border", class: "description__distance-border" }))));
71
64
  }
72
65
  static get watchers() {
73
66
  return {
@@ -76,8 +69,8 @@ const l = ':host{display:flex;padding-top:12px;padding-bottom:12px;font-family:F
76
69
  };
77
70
  }
78
71
  };
79
- d.style = l;
72
+ h.style = l;
80
73
  export {
81
- d as mi_route_instructions_maneuver_legacy
74
+ h as mi_route_instructions_maneuver_legacy
82
75
  };
83
- //# sourceMappingURL=mi-route-instructions-maneuver-legacy.entry-7d70d463.mjs.map
76
+ //# sourceMappingURL=mi-route-instructions-maneuver-legacy.entry-0811c038.mjs.map
@@ -1,17 +1,10 @@
1
- import { r as e, h as a, H as r } from "./reactcomponent-5343254a.mjs";
2
- import { U as o } from "./unit-system.enum-eaefb53e-84f2bcd5.mjs";
1
+ import { r, h as n, H as e } from "./reactcomponent-276345e6.mjs";
2
+ import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
3
  import "react";
4
4
  import "react-dom";
5
- (function() {
6
- try {
7
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new t.Error().stack;
8
- n && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[n] = "d2260c26-a96c-4f2b-ab01-f533de617a97", t._sentryDebugIdIdentifier = "sentry-dbid-d2260c26-a96c-4f2b-ab01-f533de617a97");
9
- } catch {
10
- }
11
- })();
12
- const u = ":host{display:grid;gap:24px;grid-auto-flow:column;align-items:center;grid-template-columns:24px 1fr;border-top:1px solid #e5e7eb;padding:16px}.icon{width:24px;height:24px}.description{font-size:16px;display:grid;gap:8px;height:-moz-fit-content;height:fit-content}.description__text{margin:0;font-size:16px;word-break:break-all}.description mi-distance{font-size:12px;color:#6b7280}", l = class {
5
+ const h = ":host{display:grid;gap:24px;grid-auto-flow:column;align-items:center;grid-template-columns:24px 1fr;border-top:1px solid #e5e7eb;padding:16px}.icon{width:24px;height:24px}.description{font-size:16px;display:grid;gap:8px;height:-moz-fit-content;height:fit-content}.description__text{margin:0;font-size:16px;word-break:break-all}.description mi-distance{font-size:12px;color:#6b7280}", u = class {
13
6
  constructor(t) {
14
- e(this, t), this.maneuver = void 0, this.maneuverData = void 0, this.translations = void 0, this.translationsData = void 0, this.unit = o.Metric;
7
+ r(this, t), this.maneuver = void 0, this.maneuverData = void 0, this.translations = void 0, this.translationsData = void 0, this.unit = o.Metric;
15
8
  }
16
9
  parseManeuverProp() {
17
10
  this.maneuverData = JSON.parse(this.maneuver);
@@ -66,8 +59,8 @@ const u = ":host{display:grid;gap:24px;grid-auto-flow:column;align-items:center;
66
59
  "slight-right": `${this.translationsData.goSlightRight} ${this.translationsData.andContinue}`,
67
60
  "u-turn": `${this.translationsData.turnAround} ${this.translationsData.andContinue}`
68
61
  // 'Turn around and continue'
69
- }, n = this.getManeuverName(this.maneuverData.maneuver.toLowerCase()), i = `arrow-${n}`, s = this.maneuverData.instructions ? this.maneuverData.instructions : t[n];
70
- return a(r, null, a("div", { class: "icon" }, n ? a("mi-icon", { part: "maneuver-icon", "icon-name": i }) : null), a("div", { class: "description" }, a("div", { class: "description__text" }, s), a("mi-distance", { part: "maneuver-description-distance", meters: this.maneuverData.distance.value, unit: this.unit })));
62
+ }, a = this.getManeuverName(this.maneuverData.maneuver.toLowerCase()), i = `arrow-${a}`, s = this.maneuverData.instructions ? this.maneuverData.instructions : t[a];
63
+ return n(e, null, n("div", { class: "icon" }, a ? n("mi-icon", { part: "maneuver-icon", "icon-name": i }) : null), n("div", { class: "description" }, n("div", { class: "description__text" }, s), n("mi-distance", { part: "maneuver-description-distance", meters: this.maneuverData.distance.value, unit: this.unit })));
71
64
  }
72
65
  static get watchers() {
73
66
  return {
@@ -76,8 +69,8 @@ const u = ":host{display:grid;gap:24px;grid-auto-flow:column;align-items:center;
76
69
  };
77
70
  }
78
71
  };
79
- l.style = u;
72
+ u.style = h;
80
73
  export {
81
- l as mi_route_instructions_maneuver
74
+ u as mi_route_instructions_maneuver
82
75
  };
83
- //# sourceMappingURL=mi-route-instructions-maneuver.entry-769ee215.mjs.map
76
+ //# sourceMappingURL=mi-route-instructions-maneuver.entry-c3669c3b.mjs.map
@@ -1,15 +1,8 @@
1
- import { r as n, c as r, h as s } from "./reactcomponent-5343254a.mjs";
2
- import { U as o } from "./unit-system.enum-eaefb53e-84f2bcd5.mjs";
3
- import { c as l } from "./utils-ae714467-417b7ba2.mjs";
1
+ import { r as n, c as r, h as e } from "./reactcomponent-276345e6.mjs";
2
+ import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
+ import { c as l } from "./utils-ae714467-b07fc3be.mjs";
4
4
  import "react";
5
5
  import "react-dom";
6
- (function() {
7
- try {
8
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new t.Error().stack;
9
- e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "2251760d-9bc4-42dc-aa9f-5d7dad2122ac", t._sentryDebugIdIdentifier = "sentry-dbid-2251760d-9bc4-42dc-aa9f-5d7dad2122ac");
10
- } catch {
11
- }
12
- })();
13
6
  const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.step{display:grid;grid-template-columns:40px 1fr 40px;grid-template-areas:"actionicon heading heading" "modeicon description toggle" "modeicon substeps substeps"}.step__action-icon{-ms-grid-row:1;-ms-grid-column:1;display:flex;justify-content:center;align-items:center;grid-area:actionicon}.step__action-icon--circled{position:relative}.step__action-icon--circled::before{position:absolute;width:24px;height:24px;border:1px solid #1c1917;content:"";border-radius:50%}.step__action-icon mi-icon{display:block;width:12px;height:12px}.step__heading{-ms-grid-row:1;-ms-grid-column:2;-ms-grid-column-span:2;grid-area:heading;font-size:1rem;margin:0;border-bottom:1px solid #DCDCDF;border-top:1px solid #DCDCDF;padding:12px}.step__heading>span{font-size:0.875rem;color:#6b7280}.step__travel-mode{-ms-grid-row:2;-ms-grid-row-span:2;-ms-grid-column:1;grid-area:modeicon;display:flex;justify-content:center;align-items:center;position:relative;min-height:72px}.step__travel-mode::before{position:absolute;width:calc(50% - 2px);left:0;height:100%;content:""}.step__travel-mode--dotted::before{border-right:4px dotted #bfdbfe}.step__travel-mode--solid::before{border-right:4px solid #bfdbfe}.step__travel-mode-icon{position:absolute;left:50%;top:24px;transform:translateX(-50%);background-color:#fcfcfc;padding:3px;border-radius:4px}.step__travel-mode-icon mi-icon{width:16px;height:16px;background-color:#6b7280;display:block}.step__description{-ms-grid-row:2;-ms-grid-column:2;grid-area:description;padding:12px}.step__short-name{margin-right:4px;padding:2px 4px;font-size:0.875rem;color:#fcfcfc;background-color:#6b7280;border-radius:2px}.step__distance-duration{color:#6b7280;font-size:0.875rem}.step__toggle{-ms-grid-row:2;-ms-grid-column:3;grid-area:toggle;display:flex;justify-content:center;align-items:center;transition:transform 300ms;cursor:pointer}.step__toggle--open{transform:rotate(180deg)}.step__toggle mi-icon{width:16px;height:16px;display:block;background-color:#3b82f6}.step__substeps{-ms-grid-row:3;-ms-grid-column:2;-ms-grid-column-span:2;grid-area:substeps}', d = class {
14
7
  constructor(t) {
15
8
  n(this, t), this.stepClicked = r(this, "stepClicked", 7), this.isInternetExplorer = l(), this.step = void 0, this.stepData = void 0, this.hideIndoorSubsteps = !0, this.fromRouteContext = "", this.fromTravelMode = void 0, this.fromTransitStop = void 0, this.unit = o.Metric, this.translations = void 0, this.translationsData = void 0, this.substepsAreOpen = !1;
@@ -36,8 +29,8 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
36
29
  stepClickHandler(t) {
37
30
  if (Array.from(t.target.classList).includes("icon-toggle"))
38
31
  return;
39
- let e = null;
40
- t.target.dataset.maneuverIndex !== void 0 && (e = parseInt(t.target.dataset.maneuverIndex)), this.stepClicked.emit({ maneuverIndex: e });
32
+ let s = null;
33
+ t.target.dataset.maneuverIndex !== void 0 && (s = parseInt(t.target.dataset.maneuverIndex)), this.stepClicked.emit({ maneuverIndex: s });
41
34
  }
42
35
  /**
43
36
  * Render step part depending on travel mode.
@@ -55,7 +48,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
55
48
  case "TRANSIT":
56
49
  return this.renderTransitStep();
57
50
  default:
58
- return s("div", null, "Unknown travel mode: ", this.stepData.travel_mode);
51
+ return e("div", null, "Unknown travel mode: ", this.stepData.travel_mode);
59
52
  }
60
53
  }
61
54
  /**
@@ -81,7 +74,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
81
74
  t = this.getTransitVehicleIconName();
82
75
  break;
83
76
  }
84
- return s("span", { part: "step-travel-mode", class: `step__travel-mode step__travel-mode--${this.stepData.travel_mode.toUpperCase() === "TRANSIT" ? "solid" : "dotted"}` }, s("span", { class: "step__travel-mode-icon" }, s("mi-icon", { part: "step-travel-mode-icon", "icon-name": t })));
77
+ return e("span", { part: "step-travel-mode", class: `step__travel-mode step__travel-mode--${this.stepData.travel_mode.toUpperCase() === "TRANSIT" ? "solid" : "dotted"}` }, e("span", { class: "step__travel-mode-icon" }, e("mi-icon", { part: "step-travel-mode-icon", "icon-name": t })));
85
78
  }
86
79
  /**
87
80
  * Get icon name for transit vehicle.
@@ -89,8 +82,8 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
89
82
  * @returns {string}
90
83
  */
91
84
  getTransitVehicleIconName() {
92
- var t, e;
93
- const i = (e = (t = this.stepData.transit_information) === null || t === void 0 ? void 0 : t.line.vehicle) === null || e === void 0 ? void 0 : e.type.toLowerCase();
85
+ var t, s;
86
+ const i = (s = (t = this.stepData.transit_information) === null || t === void 0 ? void 0 : t.line.vehicle) === null || s === void 0 ? void 0 : s.type.toLowerCase();
94
87
  return i && ["boat", "bus", "railway", "train", "subway"].some((a) => a === i) ? i : "transit";
95
88
  }
96
89
  /**
@@ -105,8 +98,8 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
105
98
  * @returns {JSX.Element}
106
99
  */
107
100
  renderSubsteps() {
108
- return this.substepsAreOpen === !0 ? s("div", { class: "step__substeps" }, this.stepData.steps.map((t, e) => s("mi-route-instructions-maneuver-legacy", {
109
- "data-maneuver-index": e,
101
+ return this.substepsAreOpen === !0 ? e("div", { class: "step__substeps" }, this.stepData.steps.map((t, s) => e("mi-route-instructions-maneuver-legacy", {
102
+ "data-maneuver-index": s,
110
103
  maneuver: JSON.stringify(t),
111
104
  translations: this.translations,
112
105
  unit: this.unit,
@@ -124,7 +117,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
124
117
  * @returns {JSX.Element}
125
118
  */
126
119
  renderToggleButton() {
127
- return this.stepData.steps.length <= 0 || this.hideIndoorSubsteps === !0 && this.stepData.route_context.toLowerCase() === "insidebuilding" ? null : s("span", { class: `step__toggle ${this.substepsAreOpen ? "step__toggle--open" : ""}`, onClick: () => this.toggleSubsteps() }, this.isInternetExplorer ? "▼" : s("mi-icon", { part: "step-toggle", "icon-name": "toggle" }));
120
+ return this.stepData.steps.length <= 0 || this.hideIndoorSubsteps === !0 && this.stepData.route_context.toLowerCase() === "insidebuilding" ? null : e("span", { class: `step__toggle ${this.substepsAreOpen ? "step__toggle--open" : ""}`, onClick: () => this.toggleSubsteps() }, this.isInternetExplorer ? "▼" : e("mi-icon", { part: "step-toggle", "icon-name": "toggle" }));
128
121
  }
129
122
  /**
130
123
  * Render time and distance part.
@@ -132,7 +125,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
132
125
  * @returns {JSX.Element}
133
126
  */
134
127
  renderTimeAndDistance() {
135
- return s("span", { part: "step-info", class: "step__distance-duration" }, s("mi-time", { seconds: this.stepData.duration.value, translations: `{"days":"${this.translationsData.days}","hours":"${this.translationsData.hours}","minutes":"${this.translationsData.minutes}"}` }), " · ", s("mi-distance", { meters: this.stepData.distance.value, unit: this.unit }), s("br", null));
128
+ return e("span", { part: "step-info", class: "step__distance-duration" }, e("mi-time", { seconds: this.stepData.duration.value, translations: `{"days":"${this.translationsData.days}","hours":"${this.translationsData.hours}","minutes":"${this.translationsData.minutes}"}` }), " · ", e("mi-distance", { meters: this.stepData.distance.value, unit: this.unit }), e("br", null));
136
129
  }
137
130
  /**
138
131
  * Render a driving step.
@@ -140,7 +133,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
140
133
  * @returns {JSX.Element}
141
134
  */
142
135
  renderDrivingStep() {
143
- return s("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, this.isInternetExplorer ? null : s("span", { class: "step__action-icon step__action-icon--circled" }, s("mi-icon", { "icon-name": "car" })), s("h3", { part: "step-heading", class: "step__heading" }, this.getStepHeading()), this.renderTravelMode(), s("div", { part: "step-description", class: "step__description" }, this.translationsData.drive, s("br", null), this.renderTimeAndDistance()), this.renderToggleButton(), this.renderSubsteps());
136
+ return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "car" })), e("h3", { part: "step-heading", class: "step__heading" }, this.getStepHeading()), this.renderTravelMode(), e("div", { part: "step-description", class: "step__description" }, this.translationsData.drive, e("br", null), this.renderTimeAndDistance()), this.renderToggleButton(), this.renderSubsteps());
144
137
  }
145
138
  /**
146
139
  * Get display heading.
@@ -149,12 +142,12 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
149
142
  */
150
143
  getStepHeading() {
151
144
  var t;
152
- const e = {
145
+ const s = {
153
146
  driving: this.translationsData.drive,
154
147
  walking: this.translationsData.walk,
155
148
  bicycling: this.translationsData.bike
156
149
  };
157
- return !((t = this.stepData.steps[0]) === null || t === void 0) && t.instructions ? this.stepData.steps[0].instructions : e[this.stepData.travel_mode.toLowerCase()];
150
+ return !((t = this.stepData.steps[0]) === null || t === void 0) && t.instructions ? this.stepData.steps[0].instructions : s[this.stepData.travel_mode.toLowerCase()];
158
151
  }
159
152
  /**
160
153
  * Render a walking step.
@@ -163,8 +156,8 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
163
156
  * @returns {JSX.Element}
164
157
  */
165
158
  renderWalkingStep() {
166
- let t, e;
167
- return this.stepData.parking === !0 ? (t = `${this.translationsData.park} ${this.stepData.label ? ` ${this.translationsData.at} ` + this.stepData.label : ""}`, e = "park") : this.stepData.highway && this.stepData.highway.toUpperCase() === "STEPS" ? (t = `${this.translationsData.takeStaircaseToLevel} ${this.stepData.end_location.floor_name}`, e = "stairs") : this.stepData.highway && this.stepData.highway.toUpperCase() === "LADDER" ? (t = `${this.translationsData.takeLadderToLevel} ${this.stepData.end_location.floor_name}`, e = "ladder") : this.stepData.highway && this.stepData.highway.toUpperCase() === "ESCALATOR" ? (t = `${this.translationsData.takeEscalatorToLevel} ${this.stepData.end_location.floor_name}`, e = "escalator") : this.stepData.highway && this.stepData.highway.toUpperCase() === "WHEELCHAIRRAMP" ? (t = `${this.translationsData.takeWheelchairRampToLevel} ${this.stepData.end_location.floor_name}`, e = "wheelchair-ramp") : this.stepData.highway && this.stepData.highway.toUpperCase() === "WHEELCHAIRLIFT" ? (t = `${this.translationsData.takeWheelchairLiftToLevel} ${this.stepData.end_location.floor_name}`, e = "wheelchair-lift") : this.stepData.highway && this.stepData.highway.toUpperCase() === "ELEVATOR" ? (t = `${this.translationsData.takeElevatorToLevel} ${this.stepData.end_location.floor_name}`, e = "elevator") : this.fromRouteContext === "InsideBuilding" && this.stepData.route_context === "Outside" ? (t = this.addStepContextNameToHeading(this.translationsData.exit, this.stepData.start_context), e = "exit") : this.fromRouteContext === "InsideBuilding" && this.stepData.route_context === "InsideBuilding" ? (t = this.getStepHeading(), e = "walk") : this.fromRouteContext === "Outside" && this.stepData.route_context === "Outside" && this.fromTravelMode.toUpperCase() === "TRANSIT" ? (t = this.fromTransitStop, e = "transit-stop") : this.fromRouteContext === "Outside" && this.stepData.route_context === "Outside" ? (t = this.getStepHeading(), e = "walk") : this.fromRouteContext === "Outside" && this.stepData.route_context === "InsideBuilding" ? (t = this.addStepContextNameToHeading(this.translationsData.enter, this.stepData.end_context), e = "enter") : (t = this.fromRouteContext, e = "circle"), s("div", { class: "step", onClick: (i) => this.stepClickHandler(i) }, this.isInternetExplorer ? null : s("span", { class: `step__action-icon ${e !== "circle" ? "step__action-icon--circled" : ""}` }, s("mi-icon", { "icon-name": e })), s("h3", { part: "step-heading", class: "step__heading" }, t), this.renderTravelMode(), s("div", { part: "step-description", class: "step__description" }, this.translationsData.walk, s("br", null), this.renderTimeAndDistance()), this.renderToggleButton(), this.renderSubsteps());
159
+ let t, s;
160
+ return this.stepData.parking === !0 ? (t = `${this.translationsData.park} ${this.stepData.label ? ` ${this.translationsData.at} ` + this.stepData.label : ""}`, s = "park") : this.stepData.highway && this.stepData.highway.toUpperCase() === "STEPS" ? (t = `${this.translationsData.takeStaircaseToLevel} ${this.stepData.end_location.floor_name}`, s = "stairs") : this.stepData.highway && this.stepData.highway.toUpperCase() === "LADDER" ? (t = `${this.translationsData.takeLadderToLevel} ${this.stepData.end_location.floor_name}`, s = "ladder") : this.stepData.highway && this.stepData.highway.toUpperCase() === "ESCALATOR" ? (t = `${this.translationsData.takeEscalatorToLevel} ${this.stepData.end_location.floor_name}`, s = "escalator") : this.stepData.highway && this.stepData.highway.toUpperCase() === "WHEELCHAIRRAMP" ? (t = `${this.translationsData.takeWheelchairRampToLevel} ${this.stepData.end_location.floor_name}`, s = "wheelchair-ramp") : this.stepData.highway && this.stepData.highway.toUpperCase() === "WHEELCHAIRLIFT" ? (t = `${this.translationsData.takeWheelchairLiftToLevel} ${this.stepData.end_location.floor_name}`, s = "wheelchair-lift") : this.stepData.highway && this.stepData.highway.toUpperCase() === "ELEVATOR" ? (t = `${this.translationsData.takeElevatorToLevel} ${this.stepData.end_location.floor_name}`, s = "elevator") : this.fromRouteContext === "InsideBuilding" && this.stepData.route_context === "Outside" ? (t = this.addStepContextNameToHeading(this.translationsData.exit, this.stepData.start_context), s = "exit") : this.fromRouteContext === "InsideBuilding" && this.stepData.route_context === "InsideBuilding" ? (t = this.getStepHeading(), s = "walk") : this.fromRouteContext === "Outside" && this.stepData.route_context === "Outside" && this.fromTravelMode.toUpperCase() === "TRANSIT" ? (t = this.fromTransitStop, s = "transit-stop") : this.fromRouteContext === "Outside" && this.stepData.route_context === "Outside" ? (t = this.getStepHeading(), s = "walk") : this.fromRouteContext === "Outside" && this.stepData.route_context === "InsideBuilding" ? (t = this.addStepContextNameToHeading(this.translationsData.enter, this.stepData.end_context), s = "enter") : (t = this.fromRouteContext, s = "circle"), e("div", { class: "step", onClick: (i) => this.stepClickHandler(i) }, this.isInternetExplorer ? null : e("span", { class: `step__action-icon ${s !== "circle" ? "step__action-icon--circled" : ""}` }, e("mi-icon", { "icon-name": s })), e("h3", { part: "step-heading", class: "step__heading" }, t), this.renderTravelMode(), e("div", { part: "step-description", class: "step__description" }, this.translationsData.walk, e("br", null), this.renderTimeAndDistance()), this.renderToggleButton(), this.renderSubsteps());
168
161
  }
169
162
  /**
170
163
  * Add building or venue name to the step heading
@@ -172,8 +165,8 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
172
165
  * @param {StepContext} stepContext
173
166
  * @returns
174
167
  */
175
- addStepContextNameToHeading(t, e) {
176
- return e && (e.building ? t += ` ${e.building.buildingInfo.name} ${this.translationsData.building}` : e.venue && (t += ` ${e.venue.venueInfo.name} ${this.translationsData.venue}`)), t;
168
+ addStepContextNameToHeading(t, s) {
169
+ return s && (s.building ? t += ` ${s.building.buildingInfo.name} ${this.translationsData.building}` : s.venue && (t += ` ${s.venue.venueInfo.name} ${this.translationsData.venue}`)), t;
177
170
  }
178
171
  /**
179
172
  * Render a bicycling step.
@@ -181,7 +174,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
181
174
  * @returns {JSX.Element}
182
175
  */
183
176
  renderBicyclingStep() {
184
- return s("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, this.isInternetExplorer ? null : s("span", { class: "step__action-icon step__action-icon--circled" }, s("mi-icon", { "icon-name": "bike" })), s("h3", { part: "step-heading", class: "step__heading" }, this.getStepHeading()), this.renderTravelMode(), s("div", { part: "step-description", class: "step__description" }, this.translationsData.bike, s("br", null), this.renderTimeAndDistance()), this.renderToggleButton(), this.renderSubsteps());
177
+ return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "bike" })), e("h3", { part: "step-heading", class: "step__heading" }, this.getStepHeading()), this.renderTravelMode(), e("div", { part: "step-description", class: "step__description" }, this.translationsData.bike, e("br", null), this.renderTimeAndDistance()), this.renderToggleButton(), this.renderSubsteps());
185
178
  }
186
179
  /**
187
180
  * Render a transit step.
@@ -189,11 +182,11 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
189
182
  * @returns {JSX.Element}
190
183
  */
191
184
  renderTransitStep() {
192
- var t, e;
193
- return s("div", { class: "step", onClick: (i) => this.stepClickHandler(i) }, this.isInternetExplorer ? null : s("span", { class: "step__action-icon step__action-icon--circled" }, s("mi-icon", { "icon-name": "transit-stop" })), s("h3", { part: "step-heading", class: "step__heading" }, this.stepData.instructions), this.renderTravelMode(), s("div", { part: "step-description", class: "step__description" }, this.stepData.transit_information.line.short_name ? s("span", { class: "step__short-name", style: {
185
+ var t, s;
186
+ return e("div", { class: "step", onClick: (i) => this.stepClickHandler(i) }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "transit-stop" })), e("h3", { part: "step-heading", class: "step__heading" }, this.stepData.instructions), this.renderTravelMode(), e("div", { part: "step-description", class: "step__description" }, this.stepData.transit_information.line.short_name ? e("span", { class: "step__short-name", style: {
194
187
  backgroundColor: !((t = this.stepData.transit_information.line) === null || t === void 0) && t.color ? this.stepData.transit_information.line.color : null,
195
- color: !((e = this.stepData.transit_information.line) === null || e === void 0) && e.text_color ? this.stepData.transit_information.line.text_color : null
196
- } }, this.stepData.transit_information.line.short_name) : null, this.stepData.transit_information.headsign ? this.stepData.transit_information.headsign : null, s("br", null), s("span", { part: "step-info", class: "step__distance-duration" }, s("mi-time", { seconds: this.stepData.duration.value, translations: `{"days":"${this.translationsData.days}","hours":"${this.translationsData.hours}","minutes":"${this.translationsData.minutes}"}` }), " · ", this.stepData.transit_information.num_stops ? this.stepData.transit_information.num_stops : null, " ", this.translationsData.stops ? this.translationsData.stops : null)), this.renderToggleButton(), this.renderSubsteps());
188
+ color: !((s = this.stepData.transit_information.line) === null || s === void 0) && s.text_color ? this.stepData.transit_information.line.text_color : null
189
+ } }, this.stepData.transit_information.line.short_name) : null, this.stepData.transit_information.headsign ? this.stepData.transit_information.headsign : null, e("br", null), e("span", { part: "step-info", class: "step__distance-duration" }, e("mi-time", { seconds: this.stepData.duration.value, translations: `{"days":"${this.translationsData.days}","hours":"${this.translationsData.hours}","minutes":"${this.translationsData.minutes}"}` }), " · ", this.stepData.transit_information.num_stops ? this.stepData.transit_information.num_stops : null, " ", this.translationsData.stops ? this.translationsData.stops : null)), this.renderToggleButton(), this.renderSubsteps());
197
190
  }
198
191
  static get watchers() {
199
192
  return {
@@ -206,4 +199,4 @@ d.style = p;
206
199
  export {
207
200
  d as mi_route_instructions_step_legacy
208
201
  };
209
- //# sourceMappingURL=mi-route-instructions-step-legacy.entry-22a830fc.mjs.map
202
+ //# sourceMappingURL=mi-route-instructions-step-legacy.entry-d2e5b89f.mjs.map
@@ -1,18 +1,11 @@
1
- import { r as o, c as a, h as e } from "./reactcomponent-5343254a.mjs";
2
- import { U as n } from "./unit-system.enum-eaefb53e-84f2bcd5.mjs";
3
- import { c as l } from "./utils-ae714467-417b7ba2.mjs";
1
+ import { r as o, c as a, h as e } from "./reactcomponent-276345e6.mjs";
2
+ import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
3
+ import { c as p } from "./utils-ae714467-b07fc3be.mjs";
4
4
  import "react";
5
5
  import "react-dom";
6
- (function() {
7
- try {
8
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new t.Error().stack;
9
- s && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[s] = "8eea14bc-11a4-47d7-8522-da7092b32ee1", t._sentryDebugIdIdentifier = "sentry-dbid-8eea14bc-11a4-47d7-8522-da7092b32ee1");
10
- } catch {
11
- }
12
- })();
13
- const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.step{display:grid;gap:16px;justify-items:center}.step__info{display:grid;grid-auto-flow:column;align-items:center;justify-content:space-between;width:100%;position:sticky;top:50px;background:white;z-index:1000;padding-bottom:8px}.step__destination{display:grid;gap:8px;align-items:center;justify-content:center;grid-auto-flow:column}.step__heading{font-weight:500;font-size:1.25rem;margin:0}.step__heading>span{font-size:0.875rem;color:#6b7280}.step__travel-mode{display:flex;justify-content:center;align-items:center;position:relative;min-height:72px}.step__travel-mode::before{position:absolute;width:calc(50% - 2px);left:0;height:100%;content:""}.step__travel-mode--dotted::before{border-right:4px dotted #bfdbfe}.step__travel-mode--solid::before{border-right:4px solid #bfdbfe}.step__travel-mode-icon{position:absolute;left:50%;top:24px;transform:translateX(-50%);background-color:#fcfcfc;padding:3px;border-radius:4px}.step__travel-mode-icon mi-icon{width:16px;height:16px;background-color:#6b7280;display:block}.step__short-name{margin-right:4px;padding:2px 4px;font-size:0.875rem;color:#fcfcfc;background-color:#6b7280;border-radius:2px}.step__distance-duration{color:#6b7280;font-size:0.875rem}.step__toggle{display:grid;justify-content:center}.step__toggle mi-icon{width:24px;height:24px;display:block}.step__details{display:grid;gap:24px;width:100%}', d = class {
6
+ const l = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.step{display:grid;gap:16px;justify-items:center}.step__info{display:grid;grid-auto-flow:column;align-items:center;justify-content:space-between;width:100%;position:sticky;top:50px;background:white;z-index:1000;padding-bottom:8px}.step__destination{display:grid;gap:8px;align-items:center;justify-content:center;grid-auto-flow:column}.step__heading{font-weight:500;font-size:1.25rem;margin:0}.step__heading>span{font-size:0.875rem;color:#6b7280}.step__travel-mode{display:flex;justify-content:center;align-items:center;position:relative;min-height:72px}.step__travel-mode::before{position:absolute;width:calc(50% - 2px);left:0;height:100%;content:""}.step__travel-mode--dotted::before{border-right:4px dotted #bfdbfe}.step__travel-mode--solid::before{border-right:4px solid #bfdbfe}.step__travel-mode-icon{position:absolute;left:50%;top:24px;transform:translateX(-50%);background-color:#fcfcfc;padding:3px;border-radius:4px}.step__travel-mode-icon mi-icon{width:16px;height:16px;background-color:#6b7280;display:block}.step__short-name{margin-right:4px;padding:2px 4px;font-size:0.875rem;color:#fcfcfc;background-color:#6b7280;border-radius:2px}.step__distance-duration{color:#6b7280;font-size:0.875rem}.step__toggle{display:grid;justify-content:center}.step__toggle mi-icon{width:24px;height:24px;display:block}.step__details{display:grid;gap:24px;width:100%}', d = class {
14
7
  constructor(t) {
15
- o(this, t), this.stepClicked = a(this, "stepClicked", 7), this.substepsToggled = a(this, "substepsToggled", 7), this.isInternetExplorer = l(), this.step = void 0, this.stepData = void 0, this.hideIndoorSubsteps = !0, this.fromRouteContext = "", this.fromTravelMode = void 0, this.fromTransitStop = void 0, this.unit = navigator.language === "en-US" ? n.Imperial : n.Metric, this.showToggleButton = !0, this.translations = void 0, this.translationsData = void 0, this.substepsAreOpen = !1;
8
+ o(this, t), this.stepClicked = a(this, "stepClicked", 7), this.substepsToggled = a(this, "substepsToggled", 7), this.isInternetExplorer = p(), this.step = void 0, this.stepData = void 0, this.hideIndoorSubsteps = !0, this.fromRouteContext = "", this.fromTravelMode = void 0, this.fromTransitStop = void 0, this.unit = navigator.language === "en-US" ? n.Imperial : n.Metric, this.showToggleButton = !0, this.translations = void 0, this.translationsData = void 0, this.substepsAreOpen = !1;
16
9
  }
17
10
  parseStepProp() {
18
11
  this.step && (this.stepData = JSON.parse(this.step));
@@ -231,8 +224,8 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
231
224
  };
232
225
  }
233
226
  };
234
- d.style = p;
227
+ d.style = l;
235
228
  export {
236
229
  d as mi_route_instructions_step
237
230
  };
238
- //# sourceMappingURL=mi-route-instructions-step.entry-028eee13.mjs.map
231
+ //# sourceMappingURL=mi-route-instructions-step.entry-9b29f2a9.mjs.map
@@ -1,19 +1,12 @@
1
- import { r as h, c as g, h as s, H as m } from "./reactcomponent-5343254a.mjs";
2
- import { R as v } from "./route-travel-mode.enum-7f4ce9c7-ececca69.mjs";
3
- import { U as f } from "./unit-system.enum-eaefb53e-84f2bcd5.mjs";
4
- import { c as S } from "./utils-ae714467-417b7ba2.mjs";
1
+ import { r as u, c as g, h as s, H as m } from "./reactcomponent-276345e6.mjs";
2
+ import { R as v } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
3
+ import { U as f } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
4
+ import { c as S } from "./utils-ae714467-b07fc3be.mjs";
5
5
  import "react";
6
6
  import "react-dom";
7
- (function() {
8
- try {
9
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, i = new t.Error().stack;
10
- i && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[i] = "a61e4370-3a4b-45b3-8b68-115da4c5759d", t._sentryDebugIdIdentifier = "sentry-dbid-a61e4370-3a4b-45b3-8b68-115da4c5759d");
11
- } catch {
12
- }
13
- })();
14
7
  const x = ':host{display:block;background-color:#fcfcfc;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:host mi-route-instructions-step:hover{cursor:pointer;background-color:#f9fafb;transition:300ms ease}:host mi-route-instructions-step.active{background-color:#f3f4f6;transition:none;cursor:default}:host .instructions-destination{display:flex}:host .instructions-destination-icon{width:40px;display:flex;justify-content:center;align-items:center}:host .instructions-destination-icon mi-icon{width:24px;height:24px;background-color:#1c1917}:host .instructions-destination-details{flex:1;padding:12px}:host .instructions-destination-details mi-location-info{font-size:0.875rem}', I = class {
15
8
  constructor(t) {
16
- h(this, t), this.clicked = g(this, "clicked", 7), this.miStepElements = [], this.lastStepRouteContext = null, this.lastStepTravelMode = null, this.lastStepTransitStop = null, this.activeStep = {
9
+ u(this, t), this.clicked = g(this, "clicked", 7), this.miStepElements = [], this.lastStepRouteContext = null, this.lastStepTravelMode = null, this.lastStepTransitStop = null, this.activeStep = {
17
10
  legIndex: 0,
18
11
  stepIndex: 0
19
12
  }, this.unit = f.Metric, this.route = void 0, this.hideIndoorSubsteps = !1, this.travelMode = v.Walking, this.originLocation = void 0, this.originName = void 0, this.destinationLocation = void 0, this.destinationName = void 0, this.translations = {
@@ -106,12 +99,12 @@ const x = ':host{display:block;background-color:#fcfcfc;font-family:Figtree, -ap
106
99
  renderInstructions() {
107
100
  return s(m, null, this.getRouteSteps().map((t, i) => {
108
101
  var e, o, n, a, r;
109
- const d = !((o = (e = this.originLocation) === null || e === void 0 ? void 0 : e.properties) === null || o === void 0) && o.name ? this.originLocation.properties.name : this.originName || "", c = t.originalLegIndex === 0 && t.originalStepIndex === 0 ? d : this.lastStepRouteContext, p = this.lastStepTravelMode, u = this.lastStepTransitStop;
102
+ const d = !((o = (e = this.originLocation) === null || e === void 0 ? void 0 : e.properties) === null || o === void 0) && o.name ? this.originLocation.properties.name : this.originName || "", c = t.originalLegIndex === 0 && t.originalStepIndex === 0 ? d : this.lastStepRouteContext, p = this.lastStepTravelMode, h = this.lastStepTransitStop;
110
103
  return this.lastStepRouteContext = t.route_context, this.lastStepTravelMode = t.travel_mode, this.lastStepTransitStop = !((a = (n = t.transit_information) === null || n === void 0 ? void 0 : n.arrival_stop) === null || a === void 0) && a.name ? (r = t.transit_information) === null || r === void 0 ? void 0 : r.arrival_stop.name : null, s("mi-route-instructions-step-legacy", {
111
104
  ref: (l) => this.miStepElements.push(l),
112
105
  "from-travel-mode": p,
113
106
  "from-route-context": c,
114
- "from-transit-stop": u,
107
+ "from-transit-stop": h,
115
108
  step: JSON.stringify(t),
116
109
  translations: JSON.stringify(this.translations),
117
110
  unit: this.unit,
@@ -146,4 +139,4 @@ I.style = x;
146
139
  export {
147
140
  I as mi_route_instructions
148
141
  };
149
- //# sourceMappingURL=mi-route-instructions.entry-0357e12c.mjs.map
142
+ //# sourceMappingURL=mi-route-instructions.entry-a4a8cc65.mjs.map
@@ -1,13 +1,6 @@
1
- import { r as n, h as o } from "./reactcomponent-5343254a.mjs";
1
+ import { r as n, h as e } from "./reactcomponent-276345e6.mjs";
2
2
  import "react";
3
3
  import "react-dom";
4
- (function() {
5
- try {
6
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new t.Error().stack;
7
- e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "a850288a-8c96-4206-8de2-22c257948a36", t._sentryDebugIdIdentifier = "sentry-dbid-a850288a-8c96-4206-8de2-22c257948a36");
8
- } catch {
9
- }
10
- })();
11
4
  const i = 'a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}.scroll-buttons{height:100%;width:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:16px}.scroll-buttons .btn{margin:0;padding:0;background:none;width:64px;height:64px;background-color:#ffffff;border:none;border-radius:8px;display:flex;align-items:center;justify-content:center}.scroll-buttons .btn mi-icon{width:32px}.scroll-buttons .btn:hover{background:none;background-color:#ffffff;cursor:pointer}.scroll-buttons .btn:disabled{opacity:1}.scroll-buttons .btn:disabled mi-icon{background-color:#a5a9af}', r = class {
12
5
  constructor(t) {
13
6
  n(this, t), this.scrollContainerElementRef = void 0, this.scrollLength = 100;
@@ -22,8 +15,8 @@ const i = 'a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:
22
15
  * Watch for container scroll events.
23
16
  */
24
17
  addScrollEventListener() {
25
- var t, e;
26
- (t = this.resizeObserver) === null || t === void 0 || t.disconnect(), (e = this.scrollContainerElementRef) === null || e === void 0 || e.addEventListener("scroll", () => {
18
+ var t, o;
19
+ (t = this.resizeObserver) === null || t === void 0 || t.disconnect(), (o = this.scrollContainerElementRef) === null || o === void 0 || o.addEventListener("scroll", () => {
27
20
  this.updateScrollButtonsState();
28
21
  }), this.scrollContainerElementRef && (this.resizeObserver = new ResizeObserver(() => {
29
22
  this.updateScrollButtonsState();
@@ -67,15 +60,15 @@ const i = 'a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:
67
60
  * @returns {JSX.Element}
68
61
  */
69
62
  render() {
70
- return o("div", { part: "container", class: "scroll-buttons" }, o("button", { part: "button button-up", class: "mi-button mi-button--base btn btn-up", type: "button", disabled: !0, "aria-label": "Scroll Up", ref: (t) => {
63
+ return e("div", { part: "container", class: "scroll-buttons" }, e("button", { part: "button button-up", class: "mi-button mi-button--base btn btn-up", type: "button", disabled: !0, "aria-label": "Scroll Up", ref: (t) => {
71
64
  this.upButtonElement = t;
72
65
  }, onClick: (t) => {
73
66
  t.stopPropagation(), this.updateScrollPosition(-this.scrollLength);
74
- } }, o("mi-icon", { "icon-name": "chevron-up" })), o("button", { part: "button button-down", class: "mi-button mi-button--base btn btn-down", type: "button", "aria-label": "Scroll Down", ref: (t) => {
67
+ } }, e("mi-icon", { "icon-name": "chevron-up" })), e("button", { part: "button button-down", class: "mi-button mi-button--base btn btn-down", type: "button", "aria-label": "Scroll Down", ref: (t) => {
75
68
  this.downButtonElement = t;
76
69
  }, onClick: (t) => {
77
70
  t.stopPropagation(), this.updateScrollPosition(this.scrollLength);
78
- } }, o("mi-icon", { "icon-name": "chevron-down" })));
71
+ } }, e("mi-icon", { "icon-name": "chevron-down" })));
79
72
  }
80
73
  static get watchers() {
81
74
  return {
@@ -87,4 +80,4 @@ r.style = i;
87
80
  export {
88
81
  r as mi_scroll_buttons
89
82
  };
90
- //# sourceMappingURL=mi-scroll-buttons.entry-101c7a78.mjs.map
83
+ //# sourceMappingURL=mi-scroll-buttons.entry-00003ac2.mjs.map
@@ -1,15 +1,8 @@
1
- import { r as v, c as d, h as p, H as M } from "./reactcomponent-5343254a.mjs";
2
- import { c as f, g as I } from "./_commonjsHelpers-ba3f0406-5776c50e.mjs";
1
+ import { r as v, c as p, h as d, H as M } from "./reactcomponent-276345e6.mjs";
2
+ import { c as f, g as I } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
3
3
  import "react";
4
4
  import "react-dom";
5
- (function() {
6
- try {
7
- var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
8
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1c05a378-4717-4669-87fb-499b0ef8c5f6", e._sentryDebugIdIdentifier = "sentry-dbid-1c05a378-4717-4669-87fb-499b0ef8c5f6");
9
- } catch {
10
- }
11
- })();
12
- var m = f(function(e, t) {
5
+ var g = f(function(e, t) {
13
6
  Object.defineProperty(t, "__esModule", {
14
7
  value: !0
15
8
  }), t.default = r, t.debounce = a;
@@ -33,8 +26,8 @@ var m = f(function(e, t) {
33
26
  function a(n) {
34
27
  var i = arguments.length <= 1 || arguments[1] === void 0 ? s : arguments[1], o = void 0;
35
28
  function u() {
36
- for (var l = this, c = arguments.length, h = Array(c), g = 0; g < c; g++)
37
- h[g] = arguments[g];
29
+ for (var l = this, c = arguments.length, h = Array(c), m = 0; m < c; m++)
30
+ h[m] = arguments[m];
38
31
  u.clear(), o = setTimeout(function() {
39
32
  o = null, n.apply(l, h);
40
33
  }, i);
@@ -43,7 +36,7 @@ var m = f(function(e, t) {
43
36
  o && (clearTimeout(o), o = null);
44
37
  }, u;
45
38
  }
46
- }), D = f(function(e, t) {
39
+ }), x = f(function(e, t) {
47
40
  Object.defineProperty(t, "__esModule", {
48
41
  value: !0
49
42
  });
@@ -61,11 +54,11 @@ var m = f(function(e, t) {
61
54
  function a(i) {
62
55
  return i && i.__esModule ? i : { default: i };
63
56
  }
64
- var n = a(m);
65
- t.default = n.default, r(t, s(m, r));
57
+ var n = a(g);
58
+ t.default = n.default, r(t, s(g, r));
66
59
  });
67
- const y = /* @__PURE__ */ I(D), x = 'mi-search{display:block;position:relative;}mi-search input[type=search]{border-radius:8px;background-color:#ffffff;padding-left:40px;height:48px;font-size:1rem;padding-right:40px;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;position:relative;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS43MSAxMUgxMi41TDE3LjQ5IDE2TDE2IDE3LjQ5TDExIDEyLjVWMTEuNzFMMTAuNzMgMTEuNDNDOS41OSAxMi40MSA4LjExIDEzIDYuNSAxM0MyLjkxIDEzIDAgMTAuMDkgMCA2LjVDMCAyLjkxIDIuOTEgMCA2LjUgMEMxMC4wOSAwIDEzIDIuOTEgMTMgNi41QzEzIDguMTEgMTIuNDEgOS41OSAxMS40MyAxMC43M0wxMS43MSAxMVpNMiA2LjVDMiA4Ljk5IDQuMDEgMTEgNi41IDExQzguOTkgMTEgMTEgOC45OSAxMSA2LjVDMTEgNC4wMSA4Ljk5IDIgNi41IDJDNC4wMSAyIDIgNC4wMSAyIDYuNVoiIGZpbGw9IiM4RDk4QUEiLz4KPC9zdmc+Cg==");background-repeat:no-repeat;background-position:16px center;border-color:#E6E6E6;color:var(--tailwind-colors-neutral-500);border:1px solid var(--tailwind-colors-gray-200)}mi-search input[type=search]:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #cfe0fc;}mi-search input[type=search][disabled]{pointer-events:none}mi-search input::-webkit-search-cancel-button{-webkit-appearance:none}mi-search input::-ms-clear{display:none}mi-search input::-moz-search-clear-button{-moz-appearance:none}mi-search button{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:20px;height:20px;background-color:#6b7280;border-radius:50%;padding:0;border-width:0;display:flex;align-items:center;justify-content:center}mi-search button:focus{outline:0}mi-search button svg{fill:white;width:10px;height:10px}';
68
- var E = function(e, t, s, r) {
60
+ const D = /* @__PURE__ */ I(x), E = 'mi-search{display:block;position:relative;}mi-search input[type=search]{border-radius:8px;background-color:#ffffff;padding-left:40px;height:48px;font-size:1rem;padding-right:40px;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;position:relative;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS43MSAxMUgxMi41TDE3LjQ5IDE2TDE2IDE3LjQ5TDExIDEyLjVWMTEuNzFMMTAuNzMgMTEuNDNDOS41OSAxMi40MSA4LjExIDEzIDYuNSAxM0MyLjkxIDEzIDAgMTAuMDkgMCA2LjVDMCAyLjkxIDIuOTEgMCA2LjUgMEMxMC4wOSAwIDEzIDIuOTEgMTMgNi41QzEzIDguMTEgMTIuNDEgOS41OSAxMS40MyAxMC43M0wxMS43MSAxMVpNMiA2LjVDMiA4Ljk5IDQuMDEgMTEgNi41IDExQzguOTkgMTEgMTEgOC45OSAxMSA2LjVDMTEgNC4wMSA4Ljk5IDIgNi41IDJDNC4wMSAyIDIgNC4wMSAyIDYuNVoiIGZpbGw9IiM4RDk4QUEiLz4KPC9zdmc+Cg==");background-repeat:no-repeat;background-position:16px center;border-color:#E6E6E6;color:var(--tailwind-colors-neutral-500);border:1px solid var(--tailwind-colors-gray-200)}mi-search input[type=search]:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #cfe0fc;}mi-search input[type=search][disabled]{pointer-events:none}mi-search input::-webkit-search-cancel-button{-webkit-appearance:none}mi-search input::-ms-clear{display:none}mi-search input::-moz-search-clear-button{-moz-appearance:none}mi-search button{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:20px;height:20px;background-color:#6b7280;border-radius:50%;padding:0;border-width:0;display:flex;align-items:center;justify-content:center}mi-search button:focus{outline:0}mi-search button svg{fill:white;width:10px;height:10px}';
61
+ var A = function(e, t, s, r) {
69
62
  var a = arguments.length, n = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, s) : r, i;
70
63
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
71
64
  n = Reflect.decorate(e, t, s, r);
@@ -76,7 +69,7 @@ var E = function(e, t, s, r) {
76
69
  };
77
70
  const b = class {
78
71
  constructor(e) {
79
- v(this, e), this.results = d(this, "results", 7), this.cleared = d(this, "cleared", 7), this.componentRendered = d(this, "componentRendered", 7), this.shortInput = d(this, "shortInput", 7), this.changed = d(this, "changed", 7), this.preventSearch = !1, this.placeholder = "", this.idAttribute = "", this.dataAttributes = {}, this.mapsindoors = !1, this.google = !1, this.mapbox = !1, this.language = "en", this.miFields = "name,description,aliases,categories,externalId", this.miTake = void 0, this.miSkip = void 0, this.miOrder = void 0, this.miCategories = void 0, this.miNear = void 0, this.miVenue = void 0, this.gmCountryCode = void 0, this.value = void 0, this.disabled = !1, this.sessionToken = void 0, this.userPosition = void 0;
72
+ v(this, e), this.results = p(this, "results", 7), this.cleared = p(this, "cleared", 7), this.componentRendered = p(this, "componentRendered", 7), this.shortInput = p(this, "shortInput", 7), this.changed = p(this, "changed", 7), this.preventSearch = !1, this.placeholder = "", this.idAttribute = "", this.dataAttributes = {}, this.mapsindoors = !1, this.google = !1, this.mapbox = !1, this.language = "en", this.miFields = "name,description,aliases,categories,externalId", this.miTake = void 0, this.miSkip = void 0, this.miOrder = void 0, this.miCategories = void 0, this.miNear = void 0, this.miVenue = void 0, this.gmCountryCode = void 0, this.value = void 0, this.disabled = !1, this.sessionToken = void 0, this.userPosition = void 0;
80
73
  }
81
74
  valueChange(e) {
82
75
  !e || !this.inputElement || e !== this.inputElement.value && (this.inputElement.value = e, this.preventSearch || this.inputChanged());
@@ -240,7 +233,7 @@ const b = class {
240
233
  }
241
234
  render() {
242
235
  var e;
243
- return p(M, null, p("input", { disabled: this.disabled, id: this.idAttribute ? this.idAttribute : null, type: "search", ref: (t) => this.inputElement = t, onInput: () => this.inputChanged(), placeholder: this.placeholder, autocomplete: "off" }), ((e = this.inputElement) === null || e === void 0 ? void 0 : e.value) && p("button", { type: "button", onClick: () => this.clear(), "aria-label": "Clear" }, p("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, p("path", { d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" }))));
236
+ return d(M, null, d("input", { disabled: this.disabled, id: this.idAttribute ? this.idAttribute : null, type: "search", ref: (t) => this.inputElement = t, onInput: () => this.inputChanged(), placeholder: this.placeholder, autocomplete: "off" }), ((e = this.inputElement) === null || e === void 0 ? void 0 : e.value) && d("button", { type: "button", onClick: () => this.clear(), "aria-label": "Clear" }, d("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" }))));
244
237
  }
245
238
  static get watchers() {
246
239
  return {
@@ -248,11 +241,11 @@ const b = class {
248
241
  };
249
242
  }
250
243
  };
251
- E([
252
- y(500)
244
+ A([
245
+ D(500)
253
246
  ], b.prototype, "inputChanged", null);
254
- b.style = x;
247
+ b.style = E;
255
248
  export {
256
249
  b as mi_search
257
250
  };
258
- //# sourceMappingURL=mi-search.entry-336c3a84.mjs.map
251
+ //# sourceMappingURL=mi-search.entry-30b72287.mjs.map
@@ -1,19 +1,12 @@
1
- import { r as a, c as o, h as e } from "./reactcomponent-5343254a.mjs";
1
+ import { r as a, c as i, h as e } from "./reactcomponent-276345e6.mjs";
2
2
  import "react";
3
3
  import "react-dom";
4
- (function() {
5
- try {
6
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, i = new t.Error().stack;
7
- i && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[i] = "fca6dff8-96b1-41f2-a41e-e2e3eed19959", t._sentryDebugIdIdentifier = "sentry-dbid-fca6dff8-96b1-41f2-a41e-e2e3eed19959");
8
- } catch {
9
- }
10
- })();
11
4
  const d = 'a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.width-none{width:0}.width-xxx-small{width:2px}.width-xx-small{width:4px}.width-x-small{width:8px}.width-small{width:12px}.width-medium{width:16px}.width-large{width:24px}.width-x-large{width:32px}.width-xx-large{width:40px}.width-xxx-large{width:48px}.width-xxxx-large{width:64px}.min-width-none{min-width:0}.min-width-xxx-small{min-width:2px}.min-width-xx-small{min-width:4px}.min-width-x-small{min-width:8px}.min-width-small{min-width:12px}.min-width-medium{min-width:16px}.min-width-large{min-width:24px}.min-width-x-large{min-width:32px}.min-width-xx-large{min-width:40px}.min-width-xxx-large{min-width:48px}.min-width-xxxx-large{min-width:64px}.max-width-none{max-width:0}.max-width-xxx-small{max-width:2px}.max-width-xx-small{max-width:4px}.max-width-x-small{max-width:8px}.max-width-small{max-width:12px}.max-width-medium{max-width:16px}.max-width-large{max-width:24px}.max-width-x-large{max-width:32px}.max-width-xx-large{max-width:40px}.max-width-xxx-large{max-width:48px}.max-width-xxxx-large{max-width:64px}.height-none{height:0}.height-xxx-small{height:2px}.height-xx-small{height:4px}.height-x-small{height:8px}.height-small{height:12px}.height-medium{height:16px}.height-large{height:24px}.height-x-large{height:32px}.height-xx-large{height:40px}.height-xxx-large{height:48px}.height-xxxx-large{height:64px}.min-height-none{min-height:0}.min-height-xxx-small{min-height:2px}.min-height-xx-small{min-height:4px}.min-height-x-small{min-height:8px}.min-height-small{min-height:12px}.min-height-medium{min-height:16px}.min-height-large{min-height:24px}.min-height-x-large{min-height:32px}.min-height-xx-large{min-height:40px}.min-height-xxx-large{min-height:48px}.min-height-xxxx-large{min-height:64px}.max-height-none{max-height:0}.max-height-xxx-small{max-height:2px}.max-height-xx-small{max-height:4px}.max-height-x-small{max-height:8px}.max-height-small{max-height:12px}.max-height-medium{max-height:16px}.max-height-large{max-height:24px}.max-height-x-large{max-height:32px}.max-height-xx-large{max-height:40px}.max-height-xxx-large{max-height:48px}.max-height-xxxx-large{max-height:64px}.debug *{outline:1px solid gold}.flex{display:flex;flex:1}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.display-block{display:block}.display-inline-block{display:inline-block}.display-inline{display:inline}.display-none{display:none}.text-decoration-none{text-decoration:none}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.margin-auto{margin-left:auto;margin-right:auto}form .inputs{margin:0 auto;width:80%;padding-top:32px;padding-bottom:32px;position:relative;display:flex;flex-direction:row;align-items:center}form .inputs span.plus-sign{position:absolute;left:16px;display:block;font-size:1rem;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#1c1917;top:50%;transform:translateY(-50%)}form .inputs input{padding-left:12px;padding-right:12px;background-color:#ffffff;border-style:solid;border-width:1px;border-radius:8px;height:48px;font-size:1.25rem;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#1c1917;box-sizing:border-box}form .inputs input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #dbeafe}form .inputs input.country-code{width:15%;min-width:88px;margin-right:16px;padding-left:32px}form .inputs input.phone-number{width:85%}form button{margin-top:32px;margin-bottom:24px}', l = class {
12
5
  constructor(t) {
13
- a(this, t), this.successfullySent = o(this, "successfullySent", 7), this.unsuccessfullySent = o(this, "unsuccessfullySent", 7), this.submitFormHandler = (i) => {
14
- i.preventDefault();
15
- const n = !!(this.venueId && this.originLocationId && this.destinationLocationId);
16
- if (!this.formElement.checkValidity() || !n) {
6
+ a(this, t), this.successfullySent = i(this, "successfullySent", 7), this.unsuccessfullySent = i(this, "unsuccessfullySent", 7), this.submitFormHandler = (n) => {
7
+ n.preventDefault();
8
+ const o = !!(this.venueId && this.originLocationId && this.destinationLocationId);
9
+ if (!this.formElement.checkValidity() || !o) {
17
10
  this.countryCodeInputElement.validity.valid || this.countryCodeInputElement.focus(), this.phoneNumberInputElement.validity.valid || this.phoneNumberInputElement.focus();
18
11
  return;
19
12
  }
@@ -60,4 +53,4 @@ l.style = d;
60
53
  export {
61
54
  l as mi_share_sms
62
55
  };
63
- //# sourceMappingURL=mi-share-sms.entry-d00c89f9.mjs.map
56
+ //# sourceMappingURL=mi-share-sms.entry-7ffb83e6.mjs.map