@mapsindoors/map-template 1.93.2 → 1.94.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 (103) hide show
  1. package/dist/{GoogleMapsMap-982405ad.mjs → GoogleMapsMap-BqYRaFgc.mjs} +51 -62
  2. package/dist/MapboxMap-CUYrfLHY.mjs +34732 -0
  3. package/dist/_commonjsHelpers-ba3f0406.js +21 -0
  4. package/dist/combo-box-item.entry.js +15 -0
  5. package/dist/icon-b8d01d6f.js +24 -0
  6. package/dist/index-7e9696f3.js +1678 -0
  7. package/dist/index.js +1 -0
  8. package/dist/loader.js +18 -0
  9. package/dist/mapsindoors-react.es.js +3 -5
  10. package/dist/mapsindoors-react.umd.js +197 -582
  11. package/dist/mapsindoors-webcomponent.es.js +58512 -75790
  12. package/dist/mi-card_2.entry.js +28 -0
  13. package/dist/mi-chip.entry.js +22 -0
  14. package/dist/mi-column.entry.js +28 -0
  15. package/dist/mi-combo-box.entry.js +416 -0
  16. package/dist/mi-components.js +18 -0
  17. package/dist/mi-data-table.entry.js +302 -0
  18. package/dist/mi-distance_2.entry.js +67 -0
  19. package/dist/mi-dropdown-item.entry.js +15 -0
  20. package/dist/mi-dropdown.entry.js +610 -0
  21. package/dist/mi-floor-selector.entry.js +202 -0
  22. package/dist/mi-keyboard.entry.js +238 -0
  23. package/dist/mi-list-item-category.entry.js +48 -0
  24. package/dist/mi-list-item-location.entry.js +171 -0
  25. package/dist/mi-list.entry.js +56 -0
  26. package/dist/mi-location-booking.entry.js +5193 -0
  27. package/dist/mi-location-info.entry.js +63 -0
  28. package/dist/mi-map-googlemaps.entry.js +750 -0
  29. package/dist/mi-map-mapbox.entry.js +467 -0
  30. package/dist/mi-metric-card.entry.js +48 -0
  31. package/dist/mi-my-position.entry.js +986 -0
  32. package/dist/mi-notification.entry.js +127 -0
  33. package/dist/mi-route-instructions-heading.entry.js +73 -0
  34. package/dist/mi-route-instructions-maneuver-legacy.entry.js +82 -0
  35. package/dist/mi-route-instructions-maneuver.entry.js +82 -0
  36. package/dist/mi-route-instructions-step-legacy.entry.js +308 -0
  37. package/dist/mi-route-instructions-step.entry.js +321 -0
  38. package/dist/mi-route-instructions.entry.js +157 -0
  39. package/dist/mi-scroll-buttons.entry.js +112 -0
  40. package/dist/mi-search.entry.js +376 -0
  41. package/dist/mi-share-sms.entry.js +80 -0
  42. package/dist/mi-step-switcher.entry.js +31 -0
  43. package/dist/mi-tab-panel.entry.js +25 -0
  44. package/dist/mi-tab.entry.js +12 -0
  45. package/dist/mi-tabs.entry.js +47 -0
  46. package/dist/mi-time.entry.js +57 -0
  47. package/dist/mi-variables-9a6c8d4d.js +6 -0
  48. package/dist/polyfills/core-js.js +11 -0
  49. package/dist/polyfills/css-shim.js +1 -0
  50. package/dist/polyfills/dom.js +79 -0
  51. package/dist/polyfills/es5-html-element.js +1 -0
  52. package/dist/polyfills/index.js +34 -0
  53. package/dist/polyfills/system.js +6 -0
  54. package/dist/{reactcomponent-7fbbd9b2.mjs → reactcomponent-DTepe7hB.mjs} +14121 -14626
  55. package/dist/route-travel-mode.enum-7f4ce9c7.js +9 -0
  56. package/dist/sort-order.enum-64ce8998.js +552 -0
  57. package/dist/unit-system.enum-eaefb53e.js +7 -0
  58. package/dist/utils-ae714467.js +61 -0
  59. package/package.json +10 -6
  60. package/dist/MapboxMap-06ef82a3.mjs +0 -37815
  61. package/dist/_commonjsHelpers-ba3f0406-b96e6d6a.mjs +0 -22
  62. package/dist/combo-box-item.entry-d35f3d51.mjs +0 -15
  63. package/dist/icon-b8d01d6f-ddfa2c17.mjs +0 -25
  64. package/dist/mapsindoors-webcomponent.umd.js +0 -3245
  65. package/dist/mi-card_2.entry-fc772c35.mjs +0 -26
  66. package/dist/mi-chip.entry-81c742a1.mjs +0 -19
  67. package/dist/mi-column.entry-3a083282.mjs +0 -21
  68. package/dist/mi-combo-box.entry-cae6401a.mjs +0 -263
  69. package/dist/mi-data-table.entry-d4c3f445.mjs +0 -224
  70. package/dist/mi-distance_2.entry-a33ed69a.mjs +0 -339
  71. package/dist/mi-dropdown-item.entry-974d1e4f.mjs +0 -15
  72. package/dist/mi-dropdown.entry-5317db65.mjs +0 -349
  73. package/dist/mi-floor-selector.entry-185fbd8b.mjs +0 -115
  74. package/dist/mi-keyboard.entry-eaf4b9ef.mjs +0 -3103
  75. package/dist/mi-list-item-category.entry-9c95008c.mjs +0 -39
  76. package/dist/mi-list-item-location.entry-8b41e8f0.mjs +0 -137
  77. package/dist/mi-list.entry-1218d29d.mjs +0 -42
  78. package/dist/mi-location-booking.entry-270aaf5a.mjs +0 -4866
  79. package/dist/mi-location-info.entry-e4f7fd04.mjs +0 -32
  80. package/dist/mi-map-googlemaps.entry-81fa28d2.mjs +0 -467
  81. package/dist/mi-map-mapbox.entry-31821da3.mjs +0 -301
  82. package/dist/mi-metric-card.entry-40407f04.mjs +0 -29
  83. package/dist/mi-my-position.entry-bc48fe6e.mjs +0 -703
  84. package/dist/mi-notification.entry-9a2bc53b.mjs +0 -84
  85. package/dist/mi-route-instructions-heading.entry-e5b1ff04.mjs +0 -75
  86. package/dist/mi-route-instructions-maneuver-legacy.entry-2c3d73ab.mjs +0 -76
  87. package/dist/mi-route-instructions-maneuver.entry-c6f01024.mjs +0 -76
  88. package/dist/mi-route-instructions-step-legacy.entry-80bcf097.mjs +0 -202
  89. package/dist/mi-route-instructions-step.entry-db802e13.mjs +0 -231
  90. package/dist/mi-route-instructions.entry-62416e29.mjs +0 -143
  91. package/dist/mi-scroll-buttons.entry-92b62b21.mjs +0 -83
  92. package/dist/mi-search.entry-87f1e64a.mjs +0 -251
  93. package/dist/mi-share-sms.entry-b6725edb.mjs +0 -56
  94. package/dist/mi-step-switcher.entry-f8f6c040.mjs +0 -27
  95. package/dist/mi-tab-panel.entry-a89213c2.mjs +0 -22
  96. package/dist/mi-tab.entry-a2fb3f8c.mjs +0 -14
  97. package/dist/mi-tabs.entry-cd638ea7.mjs +0 -37
  98. package/dist/mi-time.entry-0b02870d.mjs +0 -46
  99. package/dist/mi-variables-9a6c8d4d-e06eec88.mjs +0 -8
  100. package/dist/route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs +0 -8
  101. package/dist/sort-order.enum-64ce8998-b75ac596.mjs +0 -318
  102. package/dist/unit-system.enum-eaefb53e-0f424da4.mjs +0 -8
  103. package/dist/utils-ae714467-b07fc3be.mjs +0 -37
@@ -1,251 +0,0 @@
1
- import { r as v, c as d, h as p, H as M } from "./reactcomponent-7fbbd9b2.mjs";
2
- import { c as f, g as I } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
3
- import "react";
4
- import "react-dom";
5
- var g = f(function(e, t) {
6
- Object.defineProperty(t, "__esModule", {
7
- value: !0
8
- }), t.default = r, t.debounce = a;
9
- var s = 500;
10
- t.DEFAULT_DEBOUNCE_DURATION = s;
11
- function r(n) {
12
- return function(o, u, l) {
13
- return {
14
- configurable: !0,
15
- enumerable: l.enumerable,
16
- get: function() {
17
- return Object.defineProperty(this, u, {
18
- configurable: !0,
19
- enumerable: l.enumerable,
20
- value: a(l.value, n)
21
- }), this[u];
22
- }
23
- };
24
- };
25
- }
26
- function a(n) {
27
- var i = arguments.length <= 1 || arguments[1] === void 0 ? s : arguments[1], o = void 0;
28
- function u() {
29
- for (var l = this, c = arguments.length, h = Array(c), m = 0; m < c; m++)
30
- h[m] = arguments[m];
31
- u.clear(), o = setTimeout(function() {
32
- o = null, n.apply(l, h);
33
- }, i);
34
- }
35
- return u.clear = function() {
36
- o && (clearTimeout(o), o = null);
37
- }, u;
38
- }
39
- }), D = f(function(e, t) {
40
- Object.defineProperty(t, "__esModule", {
41
- value: !0
42
- });
43
- function s(i, o) {
44
- var u = o({}, i);
45
- return delete u.default, u;
46
- }
47
- function r(i, o) {
48
- for (var u = Object.getOwnPropertyNames(o), l = 0; l < u.length; l++) {
49
- var c = u[l], h = Object.getOwnPropertyDescriptor(o, c);
50
- h && h.configurable && i[c] === void 0 && Object.defineProperty(i, c, h);
51
- }
52
- return i;
53
- }
54
- function a(i) {
55
- return i && i.__esModule ? i : { default: i };
56
- }
57
- var n = a(g);
58
- t.default = n.default, r(t, s(g, r));
59
- });
60
- const E = /* @__PURE__ */ I(D), y = '@charset "UTF-8";mi-search{display:block;position:relative;}mi-search input[type=search]{border-radius:8px;background-color:#ffffff;padding-left:2.5rem;min-height:3rem;height:auto;font-size:1rem;padding-right:2.5rem;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:1rem center;background-size:1.125rem 1.125rem;border-color:#E6E6E6;color:var(--tailwind-colors-neutral-500);border:1px solid var(--tailwind-colors-gray-200)}mi-search input[type=search]:-moz-placeholder-shown{padding-right:0.875rem}mi-search input[type=search]:placeholder-shown{padding-right:0.875rem}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:0.875rem;top:50%;transform:translateY(-50%);width:1.25rem;height:1.25rem;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:0.625rem;height:0.625rem}';
61
- var A = function(e, t, s, r) {
62
- var a = arguments.length, n = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, s) : r, i;
63
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
64
- n = Reflect.decorate(e, t, s, r);
65
- else
66
- for (var o = e.length - 1; o >= 0; o--)
67
- (i = e[o]) && (n = (a < 3 ? i(n) : a > 3 ? i(t, s, n) : i(t, s)) || n);
68
- return a > 3 && n && Object.defineProperty(t, s, n), n;
69
- };
70
- const b = class {
71
- constructor(e) {
72
- 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;
73
- }
74
- valueChange(e) {
75
- !e || !this.inputElement || e !== this.inputElement.value && (this.inputElement.value = e, this.preventSearch || this.inputChanged());
76
- }
77
- /**
78
- * Clear the input field.
79
- */
80
- async clear() {
81
- this.inputElement.value = "", this.value = "", this.lastRequested = null, this.cleared.emit();
82
- }
83
- /**
84
- * Programmatically trigger the search.
85
- */
86
- triggerSearch() {
87
- const e = this.inputElement.value;
88
- this.search(e);
89
- }
90
- /**
91
- * Sets text to be shown in the search field.
92
- * Setting it will not perform a search.
93
- */
94
- setDisplayText(e) {
95
- this.preventSearch = !0, this.inputElement.value = e, this.value = e, this.preventSearch = !1;
96
- }
97
- /**
98
- * Set focus on the input field.
99
- * The preventScroll boolean is passed as true to prevent the browser
100
- * from scrolling the document to bring the newly-focused element into view.
101
- */
102
- focusInput() {
103
- this.inputElement.focus({ preventScroll: !0 });
104
- }
105
- /**
106
- * Get hold of the search input field.
107
- */
108
- async getInputField() {
109
- return this.inputElement;
110
- }
111
- /**
112
- * Perform the search.
113
- */
114
- search(e) {
115
- Promise.all([
116
- this.makeMapsIndoorsQuery(e),
117
- this.makeGooglePlacesQuery(e),
118
- this.getMapboxSearchResults(e)
119
- ]).then((t) => {
120
- this.lastRequested = e, this.google ? this.pushResults(t[0].concat(t[1])) : this.mapbox && mapboxgl.accessToken ? this.pushResults(t[0].concat(t[2])) : this.pushResults(t[0]);
121
- });
122
- }
123
- /**
124
- * Handles incoming input change event, eg. input field value has changed.
125
- * The function is debounced 500ms to avoid firing too many requests while typing.
126
- */
127
- inputChanged() {
128
- const e = this.inputElement.value;
129
- if (this.value = e, !this.preventSearch) {
130
- if (e.length < 2) {
131
- this.lastRequested = null, e.length === 1 ? this.shortInput.emit() : this.clear();
132
- return;
133
- }
134
- e.length > 1 && e !== this.lastRequested && this.search(e), this.changed.emit();
135
- }
136
- }
137
- /**
138
- * Push the results via the results event.
139
- * @param object[] Locations
140
- */
141
- pushResults(e) {
142
- this.results.emit(e);
143
- }
144
- /**
145
- * Make MapsIndoors locations request based on given search query.
146
- * @param {string} query
147
- * @return {Promise<any[]>}
148
- */
149
- makeMapsIndoorsQuery(e) {
150
- if (!this.mapsindoors)
151
- return Promise.resolve([]);
152
- let t;
153
- if (this.miNear && (t = this.miNear, /^(-?\d+(\.\d+)?),\s*(-?\d+(\.\d+)?)$/.test(this.miNear))) {
154
- const s = this.miNear.split(",");
155
- t = { lat: parseFloat(s[0]), lng: parseFloat(s[1]) };
156
- }
157
- return mapsindoors.services.LocationsService.getLocations({
158
- q: e.trim(),
159
- fields: this.miFields,
160
- take: this.miTake,
161
- skip: this.miSkip,
162
- orderBy: this.miOrder,
163
- near: t,
164
- venue: this.miVenue,
165
- categories: this.miCategories
166
- });
167
- }
168
- /**
169
- * Make Google Places autocomplete suggestion request.
170
- *
171
- * @param {string} query
172
- * @return {Promise<any>}
173
- */
174
- makeGooglePlacesQuery(e) {
175
- return this.google ? this.googleAutocompleteService || (this.googleAutocompleteService = new google.maps.places.AutocompleteService()) : this.googleAutocompleteService = null, this.googleAutocompleteService ? new Promise((t) => {
176
- const s = {
177
- input: e,
178
- language: this.language
179
- };
180
- this.gmCountryCode && (s.componentRestrictions = { country: this.gmCountryCode }), this.googleAutocompleteService.getPlacePredictions(s, (r) => {
181
- const a = (r || []).map((n) => ({
182
- id: n.place_id,
183
- type: "Feature",
184
- properties: {
185
- type: "google_places",
186
- placeId: n.place_id,
187
- name: n.structured_formatting.main_text,
188
- subtitle: n.structured_formatting.secondary_text || "",
189
- floor: 0
190
- }
191
- }));
192
- t(a);
193
- });
194
- }) : Promise.resolve([]);
195
- }
196
- /**
197
- * Get Mapbox Places results.
198
- *
199
- * @param {string} query
200
- * @return {Promise<any>}
201
- */
202
- getMapboxSearchResults(e) {
203
- if (this.mapbox && mapboxgl.accessToken) {
204
- if (e)
205
- return new Promise((t) => {
206
- const s = this.language.split("-")[0];
207
- let r = `https://api.mapbox.com/search/searchbox/v1/suggest?q=${e}&session_token=${this.sessionToken}&access_token=${mapboxgl.accessToken}&language=${s}`;
208
- this.userPosition && (r = r.concat(`&proximity=${this.userPosition}`)), fetch(r).then((a) => a.json()).then((a) => {
209
- const n = a.suggestions.map((i) => ({
210
- id: i.mapbox_id,
211
- type: "Feature",
212
- properties: {
213
- type: "mapbox_places",
214
- placeId: i.mapbox_id,
215
- name: i.name,
216
- subtitle: i.place_formatted || "",
217
- floor: 0
218
- }
219
- }));
220
- t(n);
221
- }).catch(() => {
222
- t([]);
223
- });
224
- });
225
- } else
226
- return Promise.resolve([]);
227
- }
228
- componentDidRender() {
229
- if (this.dataAttributes)
230
- for (const e in this.dataAttributes)
231
- this.inputElement.setAttribute(e, this.dataAttributes[e]);
232
- this.componentRendered.emit();
233
- }
234
- render() {
235
- var e;
236
- 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" }))));
237
- }
238
- static get watchers() {
239
- return {
240
- value: ["valueChange"]
241
- };
242
- }
243
- };
244
- A([
245
- E(500)
246
- ], b.prototype, "inputChanged", null);
247
- b.style = y;
248
- export {
249
- b as mi_search
250
- };
251
- //# sourceMappingURL=mi-search.entry-87f1e64a.mjs.map
@@ -1,56 +0,0 @@
1
- import { r as a, c as i, h as e } from "./reactcomponent-7fbbd9b2.mjs";
2
- import "react";
3
- import "react-dom";
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 {
5
- constructor(t) {
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) {
10
- this.countryCodeInputElement.validity.valid || this.countryCodeInputElement.focus(), this.phoneNumberInputElement.validity.valid || this.phoneNumberInputElement.focus();
11
- return;
12
- }
13
- mapsindoors.services.ShareService.directionsToPhone(this.venueId, this.originLocationId, this.destinationLocationId, this.countryCodeInputElement.value, this.phoneNumberInputElement.value).then(() => this.successfullySent.emit()).catch((r) => this.unsuccessfullySent.emit(r));
14
- }, this.venueId = void 0, this.originLocationId = void 0, this.destinationLocationId = void 0, this.countryCode = "1", this.phoneNumberInputPlaceholder = "Enter phone number", this.submitButtonLabel = "Send SMS";
15
- }
16
- componentDidRender() {
17
- this.countryCodeInputElement.value = this.countryCode;
18
- }
19
- componentDidLoad() {
20
- this.addIntersectionObserver();
21
- }
22
- /**
23
- * Observe the input field for phone number and focus it on intersection.
24
- */
25
- addIntersectionObserver() {
26
- this.intersectionObserver = new IntersectionObserver((t) => {
27
- t[0].intersectionRatio <= 0 || (this.phoneNumberInputElement.focus(), this.intersectionObserver.disconnect());
28
- }), this.intersectionObserver.observe(this.phoneNumberInputElement);
29
- }
30
- /**
31
- * Set input attribute on mi-keyboard component.
32
- *
33
- * @param {FocusEvent} event
34
- */
35
- setKeyboardInputElement(t) {
36
- this.miKeyboardElement.inputElement = t.target;
37
- }
38
- /**
39
- * Update form validity.
40
- */
41
- updateFormValidity() {
42
- if (!this.formElement.checkValidity()) {
43
- this.submitButtonElement.disabled = !0;
44
- return;
45
- }
46
- this.submitButtonElement.disabled = !1;
47
- }
48
- render() {
49
- return e("form", { onSubmit: this.submitFormHandler, ref: (t) => this.formElement = t }, e("div", { class: "inputs" }, e("span", { class: "plus-sign" }, "+"), e("input", { id: "country-code", class: "country-code", pattern: "[0-9]{1,3}", required: !0, autocomplete: "off", type: "text", placeholder: this.countryCode, ref: (t) => this.countryCodeInputElement = t, onInput: () => this.updateFormValidity(), onFocus: (t) => this.setKeyboardInputElement(t) }), e("input", { id: "phone-number", class: "phone-number", pattern: "[0-9]{6,10}", required: !0, autocomplete: "off", type: "text", placeholder: this.phoneNumberInputPlaceholder, ref: (t) => this.phoneNumberInputElement = t, onInput: () => this.updateFormValidity(), onFocus: (t) => this.setKeyboardInputElement(t) })), e("mi-keyboard", { layout: "numeric", ref: (t) => this.miKeyboardElement = t }), e("div", { class: "flex justify-center" }, e("button", { type: "submit", disabled: !0, class: "mi-button mi-button--primary", ref: (t) => this.submitButtonElement = t }, this.submitButtonLabel)));
50
- }
51
- };
52
- l.style = d;
53
- export {
54
- l as mi_share_sms
55
- };
56
- //# sourceMappingURL=mi-share-sms.entry-b6725edb.mjs.map
@@ -1,27 +0,0 @@
1
- import { r as n, c as d, h as t, H as p } from "./reactcomponent-7fbbd9b2.mjs";
2
- import "react";
3
- import "react-dom";
4
- const h = ":host{display:flex}button{padding:16px;background-color:transparent;border:none}button:disabled svg{fill:#d1d5db}button svg{fill:#1f2937}div.steps{padding-top:12px;padding-bottom:12px;padding-left:4px;padding-right:4px;display:flex;flex-grow:1;flex-direction:column;vertical-align:center;justify-content:center}div.steps p{margin:0;padding-bottom:8px;color:#1c1917;font-size:1rem;font-weight:500;line-height:1.25rem;text-align:center}div.steps__dots{display:flex;justify-content:center}div.steps__dots span{width:8px;height:8px;margin-right:8px;float:left;background-color:#d1d5db;border-radius:50%}div.steps__dots span.active{background-color:#1f2937}div.steps__dots span:last-child{margin-right:0px}", o = class {
5
- constructor(e) {
6
- n(this, e), this.stepIndexChanged = d(this, "stepIndexChanged", 7), this.heading = void 0, this.steps = [], this.stepIndex = 0;
7
- }
8
- /**
9
- * Set step index and emit stepIndexChanged event.
10
- *
11
- * @param {number} index
12
- */
13
- setStepIndex(e) {
14
- this.stepIndex = e, this.stepIndexChanged.emit(this.stepIndex);
15
- }
16
- render() {
17
- return t(p, null, t("button", { type: "button", disabled: this.steps.length === 0 || this.stepIndex === 0, onClick: () => this.setStepIndex(this.stepIndex - 1) }, t("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24px", height: "24px" }, t("path", { d: "M0 0h24v24H0V0z", fill: "none" }), t("path", { d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z" }))), t("div", { class: "steps" }, this.heading ? t("p", { part: "heading" }, this.heading) : null, t("div", { class: "steps__dots" }, this.steps.map((e, i) => {
18
- const s = this.stepIndex === i;
19
- return t("span", { part: s ? "active-dot" : "dot", class: { active: s } });
20
- }))), t("button", { type: "button", disabled: this.steps.length === 0 || this.stepIndex === this.steps.length - 1, onClick: () => this.setStepIndex(this.stepIndex + 1) }, t("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24px", height: "24px" }, t("path", { d: "M0 0h24v24H0V0z", fill: "none" }), t("path", { d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }))));
21
- }
22
- };
23
- o.style = h;
24
- export {
25
- o as mi_step_switcher
26
- };
27
- //# sourceMappingURL=mi-step-switcher.entry-f8f6c040.mjs.map
@@ -1,22 +0,0 @@
1
- import { r as i, h as s } from "./reactcomponent-7fbbd9b2.mjs";
2
- import "react";
3
- import "react-dom";
4
- const t = 'div{display:none}div.active{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";flex-shrink:0;flex-grow:1;display:block}', a = class {
5
- constructor(e) {
6
- i(this, e), this.isActive = !1;
7
- }
8
- async active(e) {
9
- return e !== void 0 && (this.isActive = !!e), this.isActive;
10
- }
11
- render() {
12
- const e = {
13
- active: this.isActive
14
- };
15
- return s("div", { class: e }, s("slot", null));
16
- }
17
- };
18
- a.style = t;
19
- export {
20
- a as mi_tab_panel
21
- };
22
- //# sourceMappingURL=mi-tab-panel.entry-a89213c2.mjs.map
@@ -1,14 +0,0 @@
1
- import { r as t } from "./reactcomponent-7fbbd9b2.mjs";
2
- import "react";
3
- import "react-dom";
4
- const n = class {
5
- constructor(r) {
6
- t(this, r), this.label = void 0, this.tabFor = void 0;
7
- }
8
- render() {
9
- }
10
- };
11
- export {
12
- n as mi_tab
13
- };
14
- //# sourceMappingURL=mi-tab.entry-a2fb3f8c.mjs.map
@@ -1,37 +0,0 @@
1
- import { r as a, h as o, H as l, g as d } from "./reactcomponent-7fbbd9b2.mjs";
2
- import "react";
3
- import "react-dom";
4
- const b = ':host{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";flex-shrink:0;flex-grow:1}:host .nav{border:none;border-bottom:solid;border-color:#d1d5db;border-width:1px;padding-left:24px}:host .nav--borderless-bottom{border-bottom:0}:host .nav ul{display:flex;flex-direction:row;padding:0;margin:0;margin-bottom:-1px}:host .nav ul li{list-style:none;text-align:center;cursor:pointer;padding:16px;border-width:1px;border-style:solid;border-color:rgba(0, 0, 0, 0)}:host .nav ul li.active{background-color:#f9fafb;border-color:#d1d5db;border-width:1px;border-style:solid;border-bottom:none;border-top-left-radius:4px;border-top-right-radius:4px;font-weight:600}:host .content{display:block;padding:16px;background-color:#f9fafb}:host .content--bordered{border-width:1px;border-color:#d1d5db;border-style:solid;border-radius:4px}', c = class {
5
- constructor(e) {
6
- a(this, e), this.active = 0, this.bordered = !1, this.tabs = void 0;
7
- }
8
- connectedCallback() {
9
- new MutationObserver(this.componentWillRender.bind(this)).observe(this.el, { childList: !0 });
10
- }
11
- componentWillRender() {
12
- const e = this.el.querySelectorAll("mi-tab");
13
- this.tabs = Array.from(e).reduce((t, r, s) => {
14
- const i = Array.from(this.el.getElementsByTagName("mi-tab-panel")).find((n) => n.id === r.tabFor);
15
- return i && t.push({ label: r.label, content: i }), t;
16
- }, []);
17
- }
18
- componentDidRender() {
19
- this.selectTab(this.active);
20
- }
21
- async selectTab(e) {
22
- await this.tabs[e].content.active() || (this.active = e, this.tabs.forEach((r, s) => r.content.active(s === e)));
23
- }
24
- render() {
25
- return o(l, null, o("nav", { class: `nav ${this.bordered === !0 ? "nav--borderless-bottom" : ""}` }, o("ul", null, this.tabs.map((e, t) => o("li", { class: this.active === t ? "active" : "", onClick: () => {
26
- this.selectTab(t);
27
- } }, " ", e.label, " ")))), o("section", { class: `content ${this.bordered === !0 ? "content--bordered" : ""}` }, o("slot", null)));
28
- }
29
- get el() {
30
- return d(this);
31
- }
32
- };
33
- c.style = b;
34
- export {
35
- c as mi_tabs
36
- };
37
- //# sourceMappingURL=mi-tabs.entry-cd638ea7.mjs.map
@@ -1,46 +0,0 @@
1
- import { r as e, h as l } from "./reactcomponent-7fbbd9b2.mjs";
2
- import "react";
3
- import "react-dom";
4
- const D = class {
5
- constructor(t) {
6
- e(this, t), this.seconds = void 0, this.translations = void 0, this.translationsData = void 0;
7
- }
8
- setTranslations() {
9
- this.translations ? this.translationsData = JSON.parse(this.translations) : this.translationsData = { days: "d", hours: "h", minutes: "min" };
10
- }
11
- componentWillLoad() {
12
- this.setTranslations();
13
- }
14
- /**
15
- * Get display string in days, hours, and minutes, eg. "1 d 23 h 4 min".
16
- * Minimum display value is 1 minute.
17
- *
18
- * @param {number} seconds Duration in seconds.
19
- * @returns {string}
20
- */
21
- getDurationDisplayString(t) {
22
- const n = Math.floor(t / 86400), a = Math.floor(t % 86400 / 3600), i = Math.floor(t % 86400 % 3600 / 60), r = n > 0 ? `${n} ${this.translationsData.days} ` : "", o = a > 0 ? `${a} ${this.translationsData.hours} ` : "";
23
- let s = i > 0 ? `${i} ${this.translationsData.minutes}` : "";
24
- return !r && !o && !s && (s = "1 min"), `${r}${o}${s}`.trim();
25
- }
26
- render() {
27
- return this.seconds >= 0 && this.translationsData ? this.renderDuration() : null;
28
- }
29
- /**
30
- * Render formatted duration string.
31
- *
32
- * @returns {JSX.Element}
33
- */
34
- renderDuration() {
35
- return l("span", null, this.getDurationDisplayString(this.seconds));
36
- }
37
- static get watchers() {
38
- return {
39
- translations: ["setTranslations"]
40
- };
41
- }
42
- };
43
- export {
44
- D as mi_time
45
- };
46
- //# sourceMappingURL=mi-time.entry-0b02870d.mjs.map
@@ -1,8 +0,0 @@
1
- const s = {
2
- miSDKUrl: "https://app.mapsindoors.com/mapsindoors/js/sdk/3.12.0/mapsindoors-3.12.0.js.gz",
3
- miSDKUrlV4: "https://app.mapsindoors.com/mapsindoors/js/sdk/4.13.0/mapsindoors-4.13.0.js.gz"
4
- };
5
- export {
6
- s as m
7
- };
8
- //# sourceMappingURL=mi-variables-9a6c8d4d-e06eec88.mjs.map
@@ -1,8 +0,0 @@
1
- var n;
2
- (function(i) {
3
- i.Walking = "walking", i.Bicycling = "bicycling", i.Transit = "transit", i.Driving = "driving";
4
- })(n || (n = {}));
5
- export {
6
- n as R
7
- };
8
- //# sourceMappingURL=route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs.map