@mapsindoors/map-template 1.8.2 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{combo-box-item.entry-51ec0deb.mjs → combo-box-item.entry-9e62943b.mjs} +1 -1
- package/dist/{combo-box-item.entry-89372d9b.mjs → combo-box-item.entry-d9b94049.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +2 -2
- package/dist/mapsindoors-react.umd.js +79 -79
- package/dist/mapsindoors-webcomponent.es.js +2 -2
- package/dist/mapsindoors-webcomponent.umd.js +51 -51
- package/dist/{mi-card_2.entry-fa326ba5.mjs → mi-card_2.entry-a5603b1c.mjs} +1 -1
- package/dist/{mi-card_2.entry-80d405d2.mjs → mi-card_2.entry-e047f2cf.mjs} +1 -1
- package/dist/{mi-chip.entry-515d007c.mjs → mi-chip.entry-f3d09224.mjs} +1 -1
- package/dist/{mi-chip.entry-b4a69e78.mjs → mi-chip.entry-fa747f05.mjs} +1 -1
- package/dist/{mi-column.entry-68b11fe5.mjs → mi-column.entry-bce1d20c.mjs} +1 -1
- package/dist/{mi-column.entry-1aca0c78.mjs → mi-column.entry-e4e3f4eb.mjs} +1 -1
- package/dist/{mi-combo-box.entry-998196cc.mjs → mi-combo-box.entry-76a1b4eb.mjs} +1 -1
- package/dist/{mi-combo-box.entry-dedfa99d.mjs → mi-combo-box.entry-b2118645.mjs} +1 -1
- package/dist/{mi-data-table.entry-73086bfd.mjs → mi-data-table.entry-6189ab32.mjs} +1 -1
- package/dist/{mi-data-table.entry-3718fe61.mjs → mi-data-table.entry-b84bb4d2.mjs} +1 -1
- package/dist/{mi-distance_2.entry-7a7254cc.mjs → mi-distance_2.entry-1df5f0d6.mjs} +4 -4
- package/dist/{mi-distance_2.entry-1a7d85cc.mjs → mi-distance_2.entry-5ad8c200.mjs} +4 -4
- package/dist/{mi-dropdown-item.entry-19c32445.mjs → mi-dropdown-item.entry-7f653b0e.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-45636ef7.mjs → mi-dropdown-item.entry-e5b0f8ba.mjs} +1 -1
- package/dist/{mi-dropdown.entry-aef74a0e.mjs → mi-dropdown.entry-1b1869cd.mjs} +1 -1
- package/dist/{mi-dropdown.entry-69b9e67c.mjs → mi-dropdown.entry-fc4bb885.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-2fad6805.mjs → mi-floor-selector.entry-756488ed.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-67ea5b4e.mjs → mi-floor-selector.entry-d80e1e57.mjs} +1 -1
- package/dist/{mi-keyboard.entry-cf1e9ac1.mjs → mi-keyboard.entry-33924f91.mjs} +1 -1
- package/dist/{mi-keyboard.entry-b6619db9.mjs → mi-keyboard.entry-9c22b1e4.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-da0adc83.mjs → mi-list-item-category.entry-24f4b218.mjs} +1 -1
- package/dist/{mi-list-item-category.entry-61bb2ad3.mjs → mi-list-item-category.entry-3fad96a8.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-2f53e749.mjs → mi-list-item-location.entry-76b8a8b0.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-ff46036b.mjs → mi-list-item-location.entry-dfcdcdd3.mjs} +1 -1
- package/dist/{mi-list.entry-7daf35fb.mjs → mi-list.entry-2e2f75b8.mjs} +1 -1
- package/dist/{mi-list.entry-5aff4202.mjs → mi-list.entry-707bcad3.mjs} +1 -1
- package/dist/{mi-location-booking.entry-24f4144f.mjs → mi-location-booking.entry-7e59a39c.mjs} +1 -1
- package/dist/{mi-location-booking.entry-b48195cd.mjs → mi-location-booking.entry-9943023f.mjs} +1 -1
- package/dist/{mi-location-info.entry-7c441d75.mjs → mi-location-info.entry-1cde0275.mjs} +1 -1
- package/dist/{mi-location-info.entry-959ac6d9.mjs → mi-location-info.entry-4702a982.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-fa4ec7eb.mjs → mi-map-googlemaps.entry-6e1f7b6d.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-1b35a901.mjs → mi-map-googlemaps.entry-be5672cd.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-977fd311.mjs → mi-map-mapbox.entry-3e218097.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-7aa23da3.mjs → mi-map-mapbox.entry-a8bd309f.mjs} +1 -1
- package/dist/{mi-metric-card.entry-cd042b09.mjs → mi-metric-card.entry-392ce36e.mjs} +1 -1
- package/dist/{mi-metric-card.entry-f7e657ea.mjs → mi-metric-card.entry-4197bda1.mjs} +1 -1
- package/dist/{mi-my-position.entry-e51c2125.mjs → mi-my-position.entry-44bfee0e.mjs} +1 -1
- package/dist/{mi-my-position.entry-a20cffb4.mjs → mi-my-position.entry-68d60ee2.mjs} +1 -1
- package/dist/{mi-notification.entry-d762eceb.mjs → mi-notification.entry-67d16b2c.mjs} +1 -1
- package/dist/{mi-notification.entry-9133e431.mjs → mi-notification.entry-ce45097f.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-db862537.mjs → mi-route-instructions-heading.entry-3785996b.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-788bfaf2.mjs → mi-route-instructions-heading.entry-d5f124ee.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver_2.entry-2b201d3f.mjs → mi-route-instructions-maneuver-legacy.entry-c652b454.mjs} +8 -48
- package/dist/{mi-route-instructions-maneuver_2.entry-3e9106ed.mjs → mi-route-instructions-maneuver-legacy.entry-f29e89cd.mjs} +8 -48
- package/dist/mi-route-instructions-maneuver.entry-4e0d06e9.mjs +73 -0
- package/dist/mi-route-instructions-maneuver.entry-5a08ca16.mjs +75 -0
- package/dist/{mi-route-instructions-step-legacy.entry-5e9c3869.mjs → mi-route-instructions-step-legacy.entry-53711277.mjs} +2 -2
- package/dist/{mi-route-instructions-step-legacy.entry-3b111960.mjs → mi-route-instructions-step-legacy.entry-bd8122ab.mjs} +2 -2
- package/dist/{mi-route-instructions-step.entry-9b5783de.mjs → mi-route-instructions-step.entry-437db405.mjs} +39 -17
- package/dist/{mi-route-instructions-step.entry-527d8816.mjs → mi-route-instructions-step.entry-7ec7064e.mjs} +39 -17
- package/dist/{mi-route-instructions.entry-a1c07e37.mjs → mi-route-instructions.entry-3ba5d027.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-863fdf04.mjs → mi-route-instructions.entry-e5bec1e9.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-a24ce4b9.mjs → mi-scroll-buttons.entry-084db9cf.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-8dd35ab8.mjs → mi-scroll-buttons.entry-e0630e16.mjs} +1 -1
- package/dist/{mi-search.entry-34f6d81b.mjs → mi-search.entry-01317850.mjs} +1 -1
- package/dist/{mi-search.entry-413f35c9.mjs → mi-search.entry-379ccb95.mjs} +1 -1
- package/dist/{mi-share-sms.entry-05347a69.mjs → mi-share-sms.entry-8ed7d053.mjs} +1 -1
- package/dist/{mi-share-sms.entry-87d0cc49.mjs → mi-share-sms.entry-e35f196f.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-a35d3b34.mjs → mi-step-switcher.entry-827d5c1a.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-12abf62a.mjs → mi-step-switcher.entry-f4cab297.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-e2b46da4.mjs → mi-tab-panel.entry-226e745f.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-10746cef.mjs → mi-tab-panel.entry-e240def9.mjs} +1 -1
- package/dist/{mi-tab.entry-6c72fc7a.mjs → mi-tab.entry-285c2799.mjs} +1 -1
- package/dist/{mi-tab.entry-90e1c929.mjs → mi-tab.entry-7374bb0f.mjs} +1 -1
- package/dist/{mi-tabs.entry-dbc6bd81.mjs → mi-tabs.entry-19fd0f57.mjs} +1 -1
- package/dist/{mi-tabs.entry-713b336a.mjs → mi-tabs.entry-f9b0d094.mjs} +1 -1
- package/dist/mi-time.entry-2ac1d333.mjs +45 -0
- package/dist/mi-time.entry-af23f897.mjs +43 -0
- package/dist/{reactcomponent-6ee301d4.mjs → reactcomponent-12565689.mjs} +7165 -7110
- package/dist/{webcomponent-11ee81df.mjs → webcomponent-7854dce6.mjs} +6502 -6447
- package/package.json +1 -1
|
@@ -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-7854dce6.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 {
|
|
@@ -96,7 +96,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
96
96
|
* @returns {JSX.Element}
|
|
97
97
|
*/
|
|
98
98
|
renderSubsteps() {
|
|
99
|
-
return this.substepsAreOpen === !0 ? e("div", { class: "step__substeps" }, this.stepData.steps.map((t, s) => e("mi-route-instructions-maneuver", {
|
|
99
|
+
return this.substepsAreOpen === !0 ? e("div", { class: "step__substeps" }, this.stepData.steps.map((t, s) => e("mi-route-instructions-maneuver-legacy", {
|
|
100
100
|
"data-maneuver-index": s,
|
|
101
101
|
maneuver: JSON.stringify(t),
|
|
102
102
|
translations: this.translations,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r, c as
|
|
2
|
-
import { U as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
1
|
+
import { r as o, c as a, h as e } from "./webcomponent-7854dce6.mjs";
|
|
2
|
+
import { U as n } from "./unit-system.enum-eaefb53e-0f424da4.mjs";
|
|
3
|
+
import { c as p } from "./utils-ae714467-b07fc3be.mjs";
|
|
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 {
|
|
5
5
|
constructor(t) {
|
|
6
|
-
|
|
6
|
+
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.destinationLocation = void 0, this.unit = navigator.language === "en-US" ? n.Imperial : n.Metric, this.translations = void 0, this.translationsData = void 0, this.substepsAreOpen = !1;
|
|
7
7
|
}
|
|
8
8
|
parseStepProp() {
|
|
9
9
|
this.step && (this.stepData = JSON.parse(this.step));
|
|
@@ -11,6 +11,18 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
11
11
|
parseTranslationsProp() {
|
|
12
12
|
this.translations && (this.translationsData = JSON.parse(this.translations));
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Programmatically open the substeps.
|
|
16
|
+
*/
|
|
17
|
+
openSubsteps() {
|
|
18
|
+
this.substepsAreOpen = !0;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Programmatically close the substeps.
|
|
22
|
+
*/
|
|
23
|
+
closeSubsteps() {
|
|
24
|
+
this.substepsAreOpen = !1;
|
|
25
|
+
}
|
|
14
26
|
componentWillLoad() {
|
|
15
27
|
this.parseStepProp(), this.parseTranslationsProp();
|
|
16
28
|
}
|
|
@@ -87,13 +99,13 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
87
99
|
getTransitVehicleIconName() {
|
|
88
100
|
var t, s;
|
|
89
101
|
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();
|
|
90
|
-
return i && ["boat", "bus", "railway", "train", "subway"].some((
|
|
102
|
+
return i && ["boat", "bus", "railway", "train", "subway"].some((r) => r === i) ? i : "transit";
|
|
91
103
|
}
|
|
92
104
|
/**
|
|
93
105
|
* Toggles visibility of sub steps (steps in steps)
|
|
94
106
|
*/
|
|
95
107
|
toggleSubsteps() {
|
|
96
|
-
this.substepsAreOpen = !this.substepsAreOpen;
|
|
108
|
+
this.substepsToggled.emit(), this.substepsAreOpen = !this.substepsAreOpen;
|
|
97
109
|
}
|
|
98
110
|
/**
|
|
99
111
|
* Render substeps if they should be visible.
|
|
@@ -101,9 +113,10 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
101
113
|
* @returns {JSX.Element}
|
|
102
114
|
*/
|
|
103
115
|
renderSubsteps() {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
maneuver:
|
|
116
|
+
var t;
|
|
117
|
+
return this.substepsAreOpen === !0 ? e("div", { class: "step__substeps" }, (t = this.stepData.steps) === null || t === void 0 ? void 0 : t.map((s, i) => e("mi-route-instructions-maneuver", {
|
|
118
|
+
"data-maneuver-index": i,
|
|
119
|
+
maneuver: JSON.stringify(s),
|
|
107
120
|
translations: this.translations,
|
|
108
121
|
unit: this.unit,
|
|
109
122
|
// @ts-ignore
|
|
@@ -120,7 +133,8 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
120
133
|
* @returns {JSX.Element}
|
|
121
134
|
*/
|
|
122
135
|
renderToggleButton() {
|
|
123
|
-
|
|
136
|
+
var t;
|
|
137
|
+
return ((t = this.stepData.steps) === null || t === void 0 ? void 0 : t.length) <= 0 ? null : e("span", { class: "step__toggle", onClick: () => this.toggleSubsteps() }, this.substepsAreOpen ? e("mi-icon", { part: "step-toggle", "icon-name": "minimize" }) : e("mi-icon", { part: "step-toggle", "icon-name": "maximize" }));
|
|
124
138
|
}
|
|
125
139
|
/**
|
|
126
140
|
* Render distance part.
|
|
@@ -130,13 +144,21 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
130
144
|
renderDistance() {
|
|
131
145
|
return e("span", { part: "step-info", class: "step__distance-duration" }, e("mi-distance", { meters: this.stepData.distance.value, unit: this.unit }), e("br", null));
|
|
132
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Render toggle and substeps.
|
|
149
|
+
*
|
|
150
|
+
* @returns {JSX.Element}
|
|
151
|
+
*/
|
|
152
|
+
renderToggleAndSubsteps() {
|
|
153
|
+
return e("div", { class: "step__details" }, this.renderToggleButton(), this.renderSubsteps());
|
|
154
|
+
}
|
|
133
155
|
/**
|
|
134
156
|
* Render a driving step.
|
|
135
157
|
*
|
|
136
158
|
* @returns {JSX.Element}
|
|
137
159
|
*/
|
|
138
160
|
renderDrivingStep() {
|
|
139
|
-
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "car" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())));
|
|
161
|
+
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "car" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())), this.renderToggleAndSubsteps());
|
|
140
162
|
}
|
|
141
163
|
/**
|
|
142
164
|
* Get display heading.
|
|
@@ -160,7 +182,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
160
182
|
*/
|
|
161
183
|
renderWalkingStep() {
|
|
162
184
|
let t, s;
|
|
163
|
-
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) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: `step__action-icon ${s !== "circle" ? "step__action-icon--circled" : ""}` }, e("mi-icon", { "icon-name": s })), e("div", { part: "step-heading", class: "step__heading" }, t)));
|
|
185
|
+
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) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: `step__action-icon ${s !== "circle" ? "step__action-icon--circled" : ""}` }, e("mi-icon", { "icon-name": s })), e("div", { part: "step-heading", class: "step__heading" }, t)), this.renderToggleAndSubsteps());
|
|
164
186
|
}
|
|
165
187
|
/**
|
|
166
188
|
* Add building or venue name to the step heading
|
|
@@ -177,7 +199,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
177
199
|
* @returns {JSX.Element}
|
|
178
200
|
*/
|
|
179
201
|
renderBicyclingStep() {
|
|
180
|
-
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "bike" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())));
|
|
202
|
+
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "bike" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())), this.renderToggleAndSubsteps());
|
|
181
203
|
}
|
|
182
204
|
/**
|
|
183
205
|
* Render the destination step.
|
|
@@ -185,7 +207,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
185
207
|
* @returns {JSX.Element}
|
|
186
208
|
*/
|
|
187
209
|
renderDestinationStep() {
|
|
188
|
-
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { class: "step__info destination" }, e("div", { class: "step__destination" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "logo" })), e("div", { part: "step-heading", class: "step__heading" }, this.translationsData.destination)), e("div", { part: "step-location", class: "step__location" }, this.destinationLocation)));
|
|
210
|
+
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { class: "step__info destination" }, e("div", { class: "step__destination" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "logo" })), e("div", { part: "step-heading", class: "step__heading" }, this.translationsData.destination)), e("div", { part: "step-location", class: "step__location" }, this.destinationLocation)), this.renderToggleAndSubsteps());
|
|
189
211
|
}
|
|
190
212
|
/**
|
|
191
213
|
* Render a transit step.
|
|
@@ -197,7 +219,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
197
219
|
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: {
|
|
198
220
|
backgroundColor: !((t = this.stepData.transit_information.line) === null || t === void 0) && t.color ? this.stepData.transit_information.line.color : null,
|
|
199
221
|
color: !((s = this.stepData.transit_information.line) === null || s === void 0) && s.text_color ? this.stepData.transit_information.line.text_color : null
|
|
200
|
-
} }, 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.
|
|
222
|
+
} }, 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.renderToggleAndSubsteps());
|
|
201
223
|
}
|
|
202
224
|
static get watchers() {
|
|
203
225
|
return {
|
|
@@ -206,7 +228,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
206
228
|
};
|
|
207
229
|
}
|
|
208
230
|
};
|
|
209
|
-
d.style =
|
|
231
|
+
d.style = l;
|
|
210
232
|
export {
|
|
211
233
|
d as mi_route_instructions_step
|
|
212
234
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r, c as
|
|
2
|
-
import { U as
|
|
3
|
-
import { c as
|
|
1
|
+
import { r as o, c as a, h as e } from "./reactcomponent-12565689.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
|
-
const
|
|
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: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 {
|
|
7
7
|
constructor(t) {
|
|
8
|
-
|
|
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.destinationLocation = void 0, this.unit = navigator.language === "en-US" ? n.Imperial : n.Metric, this.translations = void 0, this.translationsData = void 0, this.substepsAreOpen = !1;
|
|
9
9
|
}
|
|
10
10
|
parseStepProp() {
|
|
11
11
|
this.step && (this.stepData = JSON.parse(this.step));
|
|
@@ -13,6 +13,18 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
13
13
|
parseTranslationsProp() {
|
|
14
14
|
this.translations && (this.translationsData = JSON.parse(this.translations));
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Programmatically open the substeps.
|
|
18
|
+
*/
|
|
19
|
+
openSubsteps() {
|
|
20
|
+
this.substepsAreOpen = !0;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Programmatically close the substeps.
|
|
24
|
+
*/
|
|
25
|
+
closeSubsteps() {
|
|
26
|
+
this.substepsAreOpen = !1;
|
|
27
|
+
}
|
|
16
28
|
componentWillLoad() {
|
|
17
29
|
this.parseStepProp(), this.parseTranslationsProp();
|
|
18
30
|
}
|
|
@@ -89,13 +101,13 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
89
101
|
getTransitVehicleIconName() {
|
|
90
102
|
var t, s;
|
|
91
103
|
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();
|
|
92
|
-
return i && ["boat", "bus", "railway", "train", "subway"].some((
|
|
104
|
+
return i && ["boat", "bus", "railway", "train", "subway"].some((r) => r === i) ? i : "transit";
|
|
93
105
|
}
|
|
94
106
|
/**
|
|
95
107
|
* Toggles visibility of sub steps (steps in steps)
|
|
96
108
|
*/
|
|
97
109
|
toggleSubsteps() {
|
|
98
|
-
this.substepsAreOpen = !this.substepsAreOpen;
|
|
110
|
+
this.substepsToggled.emit(), this.substepsAreOpen = !this.substepsAreOpen;
|
|
99
111
|
}
|
|
100
112
|
/**
|
|
101
113
|
* Render substeps if they should be visible.
|
|
@@ -103,9 +115,10 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
103
115
|
* @returns {JSX.Element}
|
|
104
116
|
*/
|
|
105
117
|
renderSubsteps() {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
maneuver:
|
|
118
|
+
var t;
|
|
119
|
+
return this.substepsAreOpen === !0 ? e("div", { class: "step__substeps" }, (t = this.stepData.steps) === null || t === void 0 ? void 0 : t.map((s, i) => e("mi-route-instructions-maneuver", {
|
|
120
|
+
"data-maneuver-index": i,
|
|
121
|
+
maneuver: JSON.stringify(s),
|
|
109
122
|
translations: this.translations,
|
|
110
123
|
unit: this.unit,
|
|
111
124
|
// @ts-ignore
|
|
@@ -122,7 +135,8 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
122
135
|
* @returns {JSX.Element}
|
|
123
136
|
*/
|
|
124
137
|
renderToggleButton() {
|
|
125
|
-
|
|
138
|
+
var t;
|
|
139
|
+
return ((t = this.stepData.steps) === null || t === void 0 ? void 0 : t.length) <= 0 ? null : e("span", { class: "step__toggle", onClick: () => this.toggleSubsteps() }, this.substepsAreOpen ? e("mi-icon", { part: "step-toggle", "icon-name": "minimize" }) : e("mi-icon", { part: "step-toggle", "icon-name": "maximize" }));
|
|
126
140
|
}
|
|
127
141
|
/**
|
|
128
142
|
* Render distance part.
|
|
@@ -132,13 +146,21 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
132
146
|
renderDistance() {
|
|
133
147
|
return e("span", { part: "step-info", class: "step__distance-duration" }, e("mi-distance", { meters: this.stepData.distance.value, unit: this.unit }), e("br", null));
|
|
134
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Render toggle and substeps.
|
|
151
|
+
*
|
|
152
|
+
* @returns {JSX.Element}
|
|
153
|
+
*/
|
|
154
|
+
renderToggleAndSubsteps() {
|
|
155
|
+
return e("div", { class: "step__details" }, this.renderToggleButton(), this.renderSubsteps());
|
|
156
|
+
}
|
|
135
157
|
/**
|
|
136
158
|
* Render a driving step.
|
|
137
159
|
*
|
|
138
160
|
* @returns {JSX.Element}
|
|
139
161
|
*/
|
|
140
162
|
renderDrivingStep() {
|
|
141
|
-
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "car" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())));
|
|
163
|
+
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "car" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())), this.renderToggleAndSubsteps());
|
|
142
164
|
}
|
|
143
165
|
/**
|
|
144
166
|
* Get display heading.
|
|
@@ -162,7 +184,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
162
184
|
*/
|
|
163
185
|
renderWalkingStep() {
|
|
164
186
|
let t, s;
|
|
165
|
-
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) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: `step__action-icon ${s !== "circle" ? "step__action-icon--circled" : ""}` }, e("mi-icon", { "icon-name": s })), e("div", { part: "step-heading", class: "step__heading" }, t)));
|
|
187
|
+
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) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: `step__action-icon ${s !== "circle" ? "step__action-icon--circled" : ""}` }, e("mi-icon", { "icon-name": s })), e("div", { part: "step-heading", class: "step__heading" }, t)), this.renderToggleAndSubsteps());
|
|
166
188
|
}
|
|
167
189
|
/**
|
|
168
190
|
* Add building or venue name to the step heading
|
|
@@ -179,7 +201,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
179
201
|
* @returns {JSX.Element}
|
|
180
202
|
*/
|
|
181
203
|
renderBicyclingStep() {
|
|
182
|
-
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "bike" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())));
|
|
204
|
+
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { part: "step-description", class: "step__description" }, this.renderDistance()), e("div", { class: "step__info" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "bike" })), e("div", { part: "step-heading", class: "step__heading" }, this.getStepHeading())), this.renderToggleAndSubsteps());
|
|
183
205
|
}
|
|
184
206
|
/**
|
|
185
207
|
* Render the destination step.
|
|
@@ -187,7 +209,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
187
209
|
* @returns {JSX.Element}
|
|
188
210
|
*/
|
|
189
211
|
renderDestinationStep() {
|
|
190
|
-
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { class: "step__info destination" }, e("div", { class: "step__destination" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "logo" })), e("div", { part: "step-heading", class: "step__heading" }, this.translationsData.destination)), e("div", { part: "step-location", class: "step__location" }, this.destinationLocation)));
|
|
212
|
+
return e("div", { class: "step", onClick: (t) => this.stepClickHandler(t) }, e("div", { class: "step__info destination" }, e("div", { class: "step__destination" }, this.isInternetExplorer ? null : e("span", { class: "step__action-icon step__action-icon--circled" }, e("mi-icon", { "icon-name": "logo" })), e("div", { part: "step-heading", class: "step__heading" }, this.translationsData.destination)), e("div", { part: "step-location", class: "step__location" }, this.destinationLocation)), this.renderToggleAndSubsteps());
|
|
191
213
|
}
|
|
192
214
|
/**
|
|
193
215
|
* Render a transit step.
|
|
@@ -199,7 +221,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
199
221
|
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: {
|
|
200
222
|
backgroundColor: !((t = this.stepData.transit_information.line) === null || t === void 0) && t.color ? this.stepData.transit_information.line.color : null,
|
|
201
223
|
color: !((s = this.stepData.transit_information.line) === null || s === void 0) && s.text_color ? this.stepData.transit_information.line.text_color : null
|
|
202
|
-
} }, 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.
|
|
224
|
+
} }, 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.renderToggleAndSubsteps());
|
|
203
225
|
}
|
|
204
226
|
static get watchers() {
|
|
205
227
|
return {
|
|
@@ -208,7 +230,7 @@ const p = ':host{display:block;font-family:Figtree, -apple-system, BlinkMacSyste
|
|
|
208
230
|
};
|
|
209
231
|
}
|
|
210
232
|
};
|
|
211
|
-
d.style =
|
|
233
|
+
d.style = l;
|
|
212
234
|
export {
|
|
213
235
|
d as mi_route_instructions_step
|
|
214
236
|
};
|
package/dist/{mi-route-instructions.entry-a1c07e37.mjs → mi-route-instructions.entry-3ba5d027.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-12565689.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-863fdf04.mjs → mi-route-instructions.entry-e5bec1e9.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-7854dce6.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-12565689.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-7854dce6.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,4 +1,4 @@
|
|
|
1
|
-
import { r as v, c as m, h as d, H as M } from "./webcomponent-
|
|
1
|
+
import { r as v, c as m, h as d, H as M } from "./webcomponent-7854dce6.mjs";
|
|
2
2
|
import { c as f, g as D } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
|
|
3
3
|
var g = f(function(e, t) {
|
|
4
4
|
Object.defineProperty(t, "__esModule", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as v, c as m, h as d, H as M } from "./reactcomponent-
|
|
1
|
+
import { r as v, c as m, h as d, H as M } from "./reactcomponent-12565689.mjs";
|
|
2
2
|
import { c as f, g as D } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as i, h as e } from "./webcomponent-
|
|
1
|
+
import { r as a, c as i, h as e } from "./webcomponent-7854dce6.mjs";
|
|
2
2
|
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 {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
a(this, t), this.successfullySent = i(this, "successfullySent", 7), this.unsuccessfullySent = i(this, "unsuccessfullySent", 7), this.submitFormHandler = (n) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, c as i, h as e } from "./reactcomponent-
|
|
1
|
+
import { r as a, c as i, h as e } from "./reactcomponent-12565689.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as d, h as t, H as p } from "./reactcomponent-
|
|
1
|
+
import { r as n, c as d, h as t, H as p } from "./reactcomponent-12565689.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, c as d, h as t, H as p } from "./webcomponent-
|
|
1
|
+
import { r as n, c as d, h as t, H as p } from "./webcomponent-7854dce6.mjs";
|
|
2
2
|
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 {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
n(this, e), this.stepIndexChanged = d(this, "stepIndexChanged", 7), this.heading = void 0, this.steps = [], this.stepIndex = 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as i, h as s } from "./reactcomponent-
|
|
1
|
+
import { r as i, h as s } from "./reactcomponent-12565689.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as i, h as s } from "./webcomponent-
|
|
1
|
+
import { r as i, h as s } from "./webcomponent-7854dce6.mjs";
|
|
2
2
|
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 {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
i(this, e), this.isActive = !1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, h as o, H as l, g as d } from "./webcomponent-
|
|
1
|
+
import { r as a, h as o, H as l, g as d } from "./webcomponent-7854dce6.mjs";
|
|
2
2
|
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 {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
a(this, e), this.active = 0, this.bordered = !1, this.tabs = void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, h as o, H as l, g as d } from "./reactcomponent-
|
|
1
|
+
import { r as a, h as o, H as l, g as d } from "./reactcomponent-12565689.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
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 {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { r as e, h as l } from "./reactcomponent-12565689.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
|
+
};
|