@mapsindoors/map-template 1.15.1 → 1.17.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.
- package/dist/{combo-box-item.entry-9686ec52.mjs → combo-box-item.entry-1661239b.mjs} +1 -1
- package/dist/{combo-box-item.entry-a6d999d3.mjs → combo-box-item.entry-3bdf398c.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +2 -2
- package/dist/mapsindoors-react.umd.js +60 -60
- package/dist/mapsindoors-webcomponent.es.js +2 -2
- package/dist/mapsindoors-webcomponent.umd.js +83 -83
- package/dist/{mi-card_2.entry-ec616f3a.mjs → mi-card_2.entry-03b59654.mjs} +1 -1
- package/dist/{mi-card_2.entry-96d644ef.mjs → mi-card_2.entry-40da4c22.mjs} +1 -1
- package/dist/{mi-chip.entry-26377ff5.mjs → mi-chip.entry-73240ce7.mjs} +1 -1
- package/dist/{mi-chip.entry-a2bc194c.mjs → mi-chip.entry-8361080b.mjs} +1 -1
- package/dist/{mi-column.entry-54287a05.mjs → mi-column.entry-1a4d1bd7.mjs} +1 -1
- package/dist/{mi-column.entry-387dbece.mjs → mi-column.entry-ecdc4b58.mjs} +1 -1
- package/dist/{mi-combo-box.entry-bb1033ff.mjs → mi-combo-box.entry-0125ca72.mjs} +1 -1
- package/dist/{mi-combo-box.entry-a8a92ba9.mjs → mi-combo-box.entry-3512ddbe.mjs} +1 -1
- package/dist/{mi-data-table.entry-60d52664.mjs → mi-data-table.entry-1295e9c8.mjs} +1 -1
- package/dist/{mi-data-table.entry-589b7067.mjs → mi-data-table.entry-3220f2be.mjs} +1 -1
- package/dist/{mi-distance_2.entry-3726573c.mjs → mi-distance_2.entry-57fa711a.mjs} +1 -1
- package/dist/{mi-distance_2.entry-fa619d36.mjs → mi-distance_2.entry-dcbb24c5.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-3e3944df.mjs → mi-dropdown-item.entry-280ba4ce.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-60c33990.mjs → mi-dropdown-item.entry-97e6700c.mjs} +1 -1
- package/dist/{mi-dropdown.entry-18f323a0.mjs → mi-dropdown.entry-46e42f89.mjs} +1 -1
- package/dist/{mi-dropdown.entry-c5c30e69.mjs → mi-dropdown.entry-6c8f21d6.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-29d566aa.mjs → mi-floor-selector.entry-5305d533.mjs} +13 -9
- package/dist/{mi-floor-selector.entry-5df3a7da.mjs → mi-floor-selector.entry-bcff4715.mjs} +5 -5
- package/dist/{mi-keyboard.entry-b7a62837.mjs → mi-keyboard.entry-39a7abc7.mjs} +1 -1
- package/dist/{mi-keyboard.entry-ae1b6d5d.mjs → mi-keyboard.entry-fcd58e0d.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-a197b61b.mjs → mi-list-item-category.entry-01d06afa.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-4a2ba074.mjs → mi-list-item-category.entry-c44ff712.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-9cc562ab.mjs → mi-list-item-location.entry-71cad82b.mjs} +9 -9
- package/dist/{mi-list-item-location.entry-559214d9.mjs → mi-list-item-location.entry-c555ad05.mjs} +2 -2
- package/dist/{mi-list.entry-580f169e.mjs → mi-list.entry-6b662039.mjs} +1 -1
- package/dist/{mi-list.entry-b114e38e.mjs → mi-list.entry-f43c3984.mjs} +1 -1
- package/dist/{mi-location-booking.entry-bfb5f894.mjs → mi-location-booking.entry-3ede4961.mjs} +1 -1
- package/dist/{mi-location-booking.entry-c453c6d2.mjs → mi-location-booking.entry-b5d22929.mjs} +1 -1
- package/dist/{mi-location-info.entry-b09dc991.mjs → mi-location-info.entry-845e1d9f.mjs} +1 -1
- package/dist/{mi-location-info.entry-ad60036c.mjs → mi-location-info.entry-bc94c6aa.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-ad43dcfc.mjs → mi-map-googlemaps.entry-92d13571.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-dca36014.mjs → mi-map-googlemaps.entry-9d22da25.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-8db0127f.mjs → mi-map-mapbox.entry-793e7606.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-b2158668.mjs → mi-map-mapbox.entry-c0d1d1ca.mjs} +1 -1
- package/dist/{mi-metric-card.entry-587c09d7.mjs → mi-metric-card.entry-43337ef9.mjs} +1 -1
- package/dist/{mi-metric-card.entry-ba18ac09.mjs → mi-metric-card.entry-517557b8.mjs} +1 -1
- package/dist/{mi-my-position.entry-2d94b362.mjs → mi-my-position.entry-1341862b.mjs} +1 -1
- package/dist/{mi-my-position.entry-b93c8904.mjs → mi-my-position.entry-f10f3919.mjs} +1 -1
- package/dist/{mi-notification.entry-15272513.mjs → mi-notification.entry-3fafed6e.mjs} +1 -1
- package/dist/{mi-notification.entry-cefac880.mjs → mi-notification.entry-cc765c3c.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-d916c84e.mjs → mi-route-instructions-heading.entry-4d3417ae.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-27041d50.mjs → mi-route-instructions-heading.entry-e394444b.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver-legacy.entry-88049f5e.mjs → mi-route-instructions-maneuver-legacy.entry-ba040c96.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver-legacy.entry-90158ca0.mjs → mi-route-instructions-maneuver-legacy.entry-ff7e6758.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver.entry-e787acaf.mjs → mi-route-instructions-maneuver.entry-5d1bf1ef.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver.entry-e72ca313.mjs → mi-route-instructions-maneuver.entry-b2c0e3bd.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-d4a87ddc.mjs → mi-route-instructions-step-legacy.entry-9c75f214.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-300d19fb.mjs → mi-route-instructions-step-legacy.entry-e89095a2.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-eee4dae9.mjs → mi-route-instructions-step.entry-00eda3a5.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-3ad6208a.mjs → mi-route-instructions-step.entry-b5588bd5.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-7ef1eff3.mjs → mi-route-instructions.entry-71ff4605.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-15cc5e08.mjs → mi-route-instructions.entry-e9ddc518.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-50adcd64.mjs → mi-scroll-buttons.entry-312b45dd.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-2dc60b75.mjs → mi-scroll-buttons.entry-a8217dd5.mjs} +1 -1
- package/dist/{mi-search.entry-243766ab.mjs → mi-search.entry-7fe3b1c4.mjs} +84 -51
- package/dist/{mi-search.entry-476071a5.mjs → mi-search.entry-a7b3ccc6.mjs} +85 -52
- package/dist/{mi-share-sms.entry-a9829a30.mjs → mi-share-sms.entry-673aa041.mjs} +1 -1
- package/dist/{mi-share-sms.entry-2be2d3a8.mjs → mi-share-sms.entry-89c98479.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-11019c5c.mjs → mi-step-switcher.entry-9569c012.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-52b1f264.mjs → mi-step-switcher.entry-a5889eaf.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-c234ee2b.mjs → mi-tab-panel.entry-065b3497.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-f3c3b9e7.mjs → mi-tab-panel.entry-97268db9.mjs} +1 -1
- package/dist/{mi-tab.entry-7cdee344.mjs → mi-tab.entry-44ba1f0f.mjs} +1 -1
- package/dist/{mi-tab.entry-efbf4ca2.mjs → mi-tab.entry-95ac3515.mjs} +1 -1
- package/dist/{mi-tabs.entry-b0109b71.mjs → mi-tabs.entry-200621d5.mjs} +1 -1
- package/dist/{mi-tabs.entry-e824ddf4.mjs → mi-tabs.entry-9b0f103f.mjs} +1 -1
- package/dist/{mi-time.entry-62847c73.mjs → mi-time.entry-312b124d.mjs} +1 -1
- package/dist/{mi-time.entry-b2fad557.mjs → mi-time.entry-591fe0bd.mjs} +1 -1
- package/dist/{reactcomponent-5bd36a86.mjs → reactcomponent-2fa842c6.mjs} +11358 -11094
- package/dist/{webcomponent-81e2b4bf.mjs → webcomponent-7931b9da.mjs} +12857 -12593
- package/package.json +6 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as i, H as o } from "./webcomponent-
|
|
1
|
+
import { r as e, h as i, H as o } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
import { a as s, f as n } from "./utils-ae714467-b07fc3be.mjs";
|
|
3
3
|
const r = ':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 mi-card{position:relative;overflow:hidden;min-width:312px}:host mi-card .content h1{display:inline-flex;cursor:default;align-items:center;text-transform:uppercase;white-space:nowrap;margin:0;font-size:1rem;font-weight:600;color:#6b7280;margin-bottom:8px}:host mi-card .content h1 svg{fill:#9ca3af;width:16px;height:16px;margin-left:8px}:host mi-card .content section{position:relative}:host mi-card .content section p{margin:0;font-size:3rem;line-height:3rem;font-weight:500;color:#1c1917}:host mi-card .content section p.error{font-size:1rem;font-weight:500;color:#6b7280}:host mi-card .content section p.hidden{visibility:hidden}:host mi-card .content section p.tool-tip{box-sizing:border-box;visibility:hidden;overflow:hidden;position:absolute;top:0px;right:0px;bottom:0px;left:0px;opacity:0;transition:all 100ms;z-index:700;background-color:#ffffff;font-size:0.875rem;font-weight:400;line-height:1rem;margin:0}:host mi-card .content section p.tool-tip.visible{opacity:1;visibility:visible}:host mi-card .content section mi-spinner{display:inline-block;vertical-align:middle;width:100%}', l = class {
|
|
4
4
|
constructor(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ji, c as di, h as V, H as Ai } from "./webcomponent-
|
|
1
|
+
import { r as ji, c as di, h as V, H as Ai } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
import { c as zi, a as xi } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
|
|
3
3
|
var Si = zi(function(o, s) {
|
|
4
4
|
(function(M, g) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ji, c as di, h as V, H as Ai } from "./reactcomponent-
|
|
1
|
+
import { r as ji, c as di, h as V, H as Ai } from "./reactcomponent-2fa842c6.mjs";
|
|
2
2
|
import { c as zi, a as xi } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as c, f as r, h as i, H as f, g as d } from "./webcomponent-
|
|
1
|
+
import { r as c, f as r, h as i, H as f, g as d } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
var l;
|
|
3
3
|
(function(t) {
|
|
4
4
|
t.TOP_LEFT = "top-left", t.TOP_CENTER = "top-center", t.TOP_RIGHT = "top-right", t.BOTTOM_CENTER = "bottom-center", t.BOTTOM_LEFT = "bottom-left", t.BOTTOM_RIGHT = "bottom-right";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as i } from "./reactcomponent-
|
|
1
|
+
import { r as s, h as i } from "./reactcomponent-2fa842c6.mjs";
|
|
2
2
|
import { R as t } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
|
|
3
3
|
import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as i } from "./webcomponent-
|
|
1
|
+
import { r as s, h as i } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
import { R as t } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
|
|
3
3
|
import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
4
4
|
const a = '.directions{border-bottom:1px solid #d1d5db;color:#1c1917;font-size:1rem;font-weight:400;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"}.directions-way-points{padding-top:24px;padding-bottom:24px;padding-left:16px;padding-right:16px;border-bottom:1px solid #f3f4f6}.directions-way-points span{display:block}.directions-way-points span:first-child{font-size:1.25rem;font-weight:500;line-height:1.5rem}.directions-way-points span:last-child{color:#6b7280}.directions-way-points span:last-child a{color:#3b82f6;text-decoration:none}.directions-details{padding:16px;display:flex;flex-direction:row;justify-content:space-between}.directions-details-numbers mi-time{font-weight:500}.directions-details-numbers-distance{color:#6b7280;font-size:0.875rem;font-weight:400;text-transform:lowercase}.directions-details-travel-mode-selector{display:flex;align-items:center;color:#3b82f6;text-decoration:none}.directions-details-travel-mode-selector mi-icon{width:24px;height:24px;margin-left:8px;background-color:#3b82f6}', r = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as i, H as r } from "./webcomponent-
|
|
1
|
+
import { r as s, h as i, H as r } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
3
3
|
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 {
|
|
4
4
|
constructor(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as n, H as e } from "./webcomponent-
|
|
1
|
+
import { r, h as n, H as e } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
3
3
|
const h = ":host{display:grid;gap:24px;grid-auto-flow:column;align-items:center;grid-template-columns:24px 1fr}.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 {
|
|
4
4
|
constructor(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as r, h as e } from "./reactcomponent-
|
|
1
|
+
import { r as n, c as r, h as e } from "./reactcomponent-2fa842c6.mjs";
|
|
2
2
|
import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
3
3
|
import { c as l } from "./utils-ae714467-b07fc3be.mjs";
|
|
4
4
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as r, h as e } from "./webcomponent-
|
|
1
|
+
import { r as n, c as r, h as e } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
import { U as o } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
3
3
|
import { c as l } from "./utils-ae714467-b07fc3be.mjs";
|
|
4
4
|
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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, c as a, h as e } from "./webcomponent-
|
|
1
|
+
import { r as o, c as a, h as e } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
3
3
|
import { c as p } from "./utils-ae714467-b07fc3be.mjs";
|
|
4
4
|
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:8px;justify-items:center}.step__info{display:grid;grid-auto-flow:column;gap:8px;align-items:center}.step__info.destination{grid-auto-flow:row;justify-items:center}.step__destination{display:grid;gap:8px;align-items:center;justify-content:center;grid-auto-flow:column}.step__action-icon--circled{position:relative}.step__action-icon mi-icon{display:block;width:40px;height:40px}.step__heading{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__substeps{display:grid;gap:32px}.step__details{display:grid;gap:24px;width:100%}', d = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, c as a, h as e } from "./reactcomponent-
|
|
1
|
+
import { r as o, c as a, h as e } from "./reactcomponent-2fa842c6.mjs";
|
|
2
2
|
import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
3
3
|
import { c as p } from "./utils-ae714467-b07fc3be.mjs";
|
|
4
4
|
import "react";
|
package/dist/{mi-route-instructions.entry-7ef1eff3.mjs → mi-route-instructions.entry-71ff4605.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as u, c as g, h as o, H as m } from "./reactcomponent-
|
|
1
|
+
import { r as u, c as g, h as o, H as m } from "./reactcomponent-2fa842c6.mjs";
|
|
2
2
|
import { R as v } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
|
|
3
3
|
import { U as f } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
4
4
|
import { c as S } from "./utils-ae714467-b07fc3be.mjs";
|
package/dist/{mi-route-instructions.entry-15cc5e08.mjs → mi-route-instructions.entry-e9ddc518.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as u, c as g, h as s, H as v } from "./webcomponent-
|
|
1
|
+
import { r as u, c as g, h as s, H as v } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
import { R as m } from "./route-travel-mode.enum-7f4ce9c7-a9c95a83.mjs";
|
|
3
3
|
import { U as f } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
4
4
|
import { c as S } from "./utils-ae714467-b07fc3be.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, h as e } from "./reactcomponent-
|
|
1
|
+
import { r as o, h as e } from "./reactcomponent-2fa842c6.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const n = '@charset "UTF-8";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;background-color:#f9fafb;border-left:solid;border-color:#e5e7eb;border-width:1px;display:flex;flex-direction:column;align-items:center;justify-content:center}.scroll-buttons .btn{margin:8px}.scroll-buttons .btn-up::after{content:"↑"}.scroll-buttons .btn-down::after{content:"↓"}', r = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, h as e } from "./webcomponent-
|
|
1
|
+
import { r as o, h as e } from "./webcomponent-7931b9da.mjs";
|
|
2
2
|
const n = '@charset "UTF-8";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;background-color:#f9fafb;border-left:solid;border-color:#e5e7eb;border-width:1px;display:flex;flex-direction:column;align-items:center;justify-content:center}.scroll-buttons .btn{margin:8px}.scroll-buttons .btn-up::after{content:"↑"}.scroll-buttons .btn-down::after{content:"↓"}', r = class {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
o(this, t), this.scrollContainerElementRef = void 0, this.scrollLength = 100;
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { r as v, c as d, h as p, H as M } from "./webcomponent-
|
|
2
|
-
import { c as f, g as
|
|
1
|
+
import { r as v, c as d, h as p, H as M } from "./webcomponent-7931b9da.mjs";
|
|
2
|
+
import { c as f, g as x } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
|
|
3
3
|
var g = f(function(e, t) {
|
|
4
4
|
Object.defineProperty(t, "__esModule", {
|
|
5
5
|
value: !0
|
|
6
|
-
}), t.default =
|
|
7
|
-
var
|
|
8
|
-
t.DEFAULT_DEBOUNCE_DURATION =
|
|
9
|
-
function
|
|
10
|
-
return function(
|
|
6
|
+
}), t.default = r, t.debounce = o;
|
|
7
|
+
var s = 500;
|
|
8
|
+
t.DEFAULT_DEBOUNCE_DURATION = s;
|
|
9
|
+
function r(i) {
|
|
10
|
+
return function(a, u, l) {
|
|
11
11
|
return {
|
|
12
12
|
configurable: !0,
|
|
13
13
|
enumerable: l.enumerable,
|
|
14
14
|
get: function() {
|
|
15
|
-
return Object.defineProperty(this,
|
|
15
|
+
return Object.defineProperty(this, u, {
|
|
16
16
|
configurable: !0,
|
|
17
17
|
enumerable: l.enumerable,
|
|
18
|
-
value:
|
|
19
|
-
}), this[
|
|
18
|
+
value: o(l.value, i)
|
|
19
|
+
}), this[u];
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
var
|
|
26
|
-
function
|
|
24
|
+
function o(i) {
|
|
25
|
+
var n = arguments.length <= 1 || arguments[1] === void 0 ? s : arguments[1], a = void 0;
|
|
26
|
+
function u() {
|
|
27
27
|
for (var l = this, c = arguments.length, h = Array(c), m = 0; m < c; m++)
|
|
28
28
|
h[m] = arguments[m];
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
29
|
+
u.clear(), a = setTimeout(function() {
|
|
30
|
+
a = null, i.apply(l, h);
|
|
31
|
+
}, n);
|
|
32
32
|
}
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
},
|
|
33
|
+
return u.clear = function() {
|
|
34
|
+
a && (clearTimeout(a), a = null);
|
|
35
|
+
}, u;
|
|
36
36
|
}
|
|
37
37
|
}), I = f(function(e, t) {
|
|
38
38
|
Object.defineProperty(t, "__esModule", {
|
|
39
39
|
value: !0
|
|
40
40
|
});
|
|
41
|
-
function n
|
|
42
|
-
var
|
|
43
|
-
return delete
|
|
44
|
-
}
|
|
45
|
-
function
|
|
46
|
-
for (var
|
|
47
|
-
var c =
|
|
48
|
-
h && h.configurable &&
|
|
41
|
+
function s(n, a) {
|
|
42
|
+
var u = a({}, n);
|
|
43
|
+
return delete u.default, u;
|
|
44
|
+
}
|
|
45
|
+
function r(n, a) {
|
|
46
|
+
for (var u = Object.getOwnPropertyNames(a), l = 0; l < u.length; l++) {
|
|
47
|
+
var c = u[l], h = Object.getOwnPropertyDescriptor(a, c);
|
|
48
|
+
h && h.configurable && n[c] === void 0 && Object.defineProperty(n, c, h);
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return n;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
52
|
+
function o(n) {
|
|
53
|
+
return n && n.__esModule ? n : { default: n };
|
|
54
54
|
}
|
|
55
|
-
var i =
|
|
56
|
-
t.default = i.default,
|
|
55
|
+
var i = o(g);
|
|
56
|
+
t.default = i.default, r(t, s(g, r));
|
|
57
57
|
});
|
|
58
|
-
const
|
|
59
|
-
var
|
|
60
|
-
var
|
|
58
|
+
const D = /* @__PURE__ */ x(I), 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}';
|
|
59
|
+
var A = function(e, t, s, r) {
|
|
60
|
+
var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, s) : r, n;
|
|
61
61
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
62
|
-
i = Reflect.decorate(e, t,
|
|
62
|
+
i = Reflect.decorate(e, t, s, r);
|
|
63
63
|
else
|
|
64
|
-
for (var
|
|
65
|
-
(
|
|
66
|
-
return
|
|
64
|
+
for (var a = e.length - 1; a >= 0; a--)
|
|
65
|
+
(n = e[a]) && (i = (o < 3 ? n(i) : o > 3 ? n(t, s, i) : n(t, s)) || i);
|
|
66
|
+
return o > 3 && i && Object.defineProperty(t, s, i), i;
|
|
67
67
|
};
|
|
68
68
|
const b = class {
|
|
69
69
|
constructor(e) {
|
|
70
|
-
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.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;
|
|
70
|
+
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.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;
|
|
71
71
|
}
|
|
72
72
|
valueChange(e) {
|
|
73
73
|
!e || !this.inputElement || e !== this.inputElement.value && (this.inputElement.value = e, this.preventSearch || this.inputChanged());
|
|
@@ -106,9 +106,10 @@ const b = class {
|
|
|
106
106
|
search(e) {
|
|
107
107
|
Promise.all([
|
|
108
108
|
this.makeMapsIndoorsQuery(e),
|
|
109
|
-
this.makeGooglePlacesQuery(e)
|
|
109
|
+
this.makeGooglePlacesQuery(e),
|
|
110
|
+
this.getMapboxSearchResults(e)
|
|
110
111
|
]).then((t) => {
|
|
111
|
-
this.lastRequested = e, this.pushResults(t[0].concat(t[1]));
|
|
112
|
+
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]);
|
|
112
113
|
});
|
|
113
114
|
}
|
|
114
115
|
/**
|
|
@@ -142,8 +143,8 @@ const b = class {
|
|
|
142
143
|
return Promise.resolve([]);
|
|
143
144
|
let t;
|
|
144
145
|
if (this.miNear && (t = this.miNear, /^(-?\d+(\.\d+)?),\s*(-?\d+(\.\d+)?)$/.test(this.miNear))) {
|
|
145
|
-
const
|
|
146
|
-
t = { lat: parseFloat(
|
|
146
|
+
const s = this.miNear.split(",");
|
|
147
|
+
t = { lat: parseFloat(s[0]), lng: parseFloat(s[1]) };
|
|
147
148
|
}
|
|
148
149
|
return mapsindoors.services.LocationsService.getLocations({
|
|
149
150
|
q: e.trim(),
|
|
@@ -158,16 +159,17 @@ const b = class {
|
|
|
158
159
|
}
|
|
159
160
|
/**
|
|
160
161
|
* Make Google Places autocomplete suggestion request.
|
|
162
|
+
*
|
|
161
163
|
* @param {string} query
|
|
162
164
|
* @return {Promise<any>}
|
|
163
165
|
*/
|
|
164
166
|
makeGooglePlacesQuery(e) {
|
|
165
167
|
return this.google ? this.googleAutocompleteService || (this.googleAutocompleteService = new google.maps.places.AutocompleteService()) : this.googleAutocompleteService = null, this.googleAutocompleteService ? new Promise((t) => {
|
|
166
|
-
const
|
|
168
|
+
const s = {
|
|
167
169
|
input: e
|
|
168
170
|
};
|
|
169
|
-
this.gmCountryCode && (
|
|
170
|
-
const
|
|
171
|
+
this.gmCountryCode && (s.componentRestrictions = { country: this.gmCountryCode }), this.googleAutocompleteService.getPlacePredictions(s, (r) => {
|
|
172
|
+
const o = (r || []).map((i) => ({
|
|
171
173
|
id: i.place_id,
|
|
172
174
|
type: "Feature",
|
|
173
175
|
properties: {
|
|
@@ -178,10 +180,41 @@ const b = class {
|
|
|
178
180
|
floor: 0
|
|
179
181
|
}
|
|
180
182
|
}));
|
|
181
|
-
t(
|
|
183
|
+
t(o);
|
|
182
184
|
});
|
|
183
185
|
}) : Promise.resolve([]);
|
|
184
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Get Mapbox Places results.
|
|
189
|
+
*
|
|
190
|
+
* @param {string} query
|
|
191
|
+
* @return {Promise<any>}
|
|
192
|
+
*/
|
|
193
|
+
getMapboxSearchResults(e) {
|
|
194
|
+
if (this.mapbox && mapboxgl.accessToken) {
|
|
195
|
+
if (e)
|
|
196
|
+
return new Promise((t) => {
|
|
197
|
+
let s = `https://api.mapbox.com/search/searchbox/v1/suggest?q=${e}&session_token=${this.sessionToken}&access_token=${mapboxgl.accessToken}`;
|
|
198
|
+
this.userPosition && (s = s.concat(`&proximity=${this.userPosition}`)), fetch(s).then((r) => r.json()).then((r) => {
|
|
199
|
+
const o = r.suggestions.map((i) => ({
|
|
200
|
+
id: i.mapbox_id,
|
|
201
|
+
type: "Feature",
|
|
202
|
+
properties: {
|
|
203
|
+
type: "mapbox_places",
|
|
204
|
+
placeId: i.mapbox_id,
|
|
205
|
+
name: i.name,
|
|
206
|
+
subtitle: i.place_formatted || "",
|
|
207
|
+
floor: 0
|
|
208
|
+
}
|
|
209
|
+
}));
|
|
210
|
+
t(o);
|
|
211
|
+
}).catch(() => {
|
|
212
|
+
t([]);
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
} else
|
|
216
|
+
return Promise.resolve([]);
|
|
217
|
+
}
|
|
185
218
|
componentDidRender() {
|
|
186
219
|
if (this.dataAttributes)
|
|
187
220
|
for (const e in this.dataAttributes)
|
|
@@ -198,10 +231,10 @@ const b = class {
|
|
|
198
231
|
};
|
|
199
232
|
}
|
|
200
233
|
};
|
|
201
|
-
|
|
202
|
-
|
|
234
|
+
A([
|
|
235
|
+
D(500)
|
|
203
236
|
], b.prototype, "inputChanged", null);
|
|
204
|
-
b.style =
|
|
237
|
+
b.style = E;
|
|
205
238
|
export {
|
|
206
239
|
b as mi_search
|
|
207
240
|
};
|