ublo-lib 1.21.9 → 1.21.10
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/es/lbm/components/lumiplan/opening.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/opening.js +6 -6
- package/es/lbm/components/lumiplan/opening.module.css +56 -27
- package/es/lbm/components/lumiplan/pois.js +1 -1
- package/es/lbm/components/lumiplan/resort-selector.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/resort-selector.js +33 -9
- package/es/lbm/components/lumiplan/resort-selector.module.css +55 -4
- package/es/lbm/components/lumiplan/road-condition.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/road-condition.js +1 -1
- package/es/lbm/components/lumiplan/weather/snow-data.module.css +2 -0
- package/es/lbm/components/lumiplan/weather/weather-data.module.css +2 -0
- package/es/lbm/components/lumiplan/weather/weather-days.module.css +1 -1
- package/es/lbm/components/lumiplan/weather/weather-zones.module.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opening.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/opening.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,aAAa,EAAO,MAAM,SAAS,CAAC;AAGlD,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"opening.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/opening.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,aAAa,EAAO,MAAM,SAAS,CAAC;AAGlD,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,OAAO,8EAwEZ,CAAC;AAqCF,eAAe,OAAO,CAAC"}
|
|
@@ -21,15 +21,15 @@ const Opening = React.forwardRef(({ resortOpening, showOpening }, ref) => {
|
|
|
21
21
|
const dayIndex = new Date().getDay() - 1;
|
|
22
22
|
const orderedDays = reorganizeDays(dawnSkiingDays, dayIndex);
|
|
23
23
|
const orderedNights = reorganizeDays(nightSkiingDays, dayIndex);
|
|
24
|
-
return (_jsx("div", { ref: ref, className: css.opening, "data-tags": t(lang, "opening.navigation-title"), children: _jsx("div", { className: css.tableOuter, children: _jsxs("table", { className: css.table, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", {}), orderedDays.map((day, i) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
return (_jsx("div", { ref: ref, className: css.opening, "data-tags": t(lang, "opening.navigation-title"), children: _jsx("div", { className: css.tableOuter, children: _jsx("div", { className: css.tableInner, children: _jsxs("table", { className: css.table, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", {}), orderedDays.map((day, i) => {
|
|
25
|
+
const dayNumber = new Date();
|
|
26
|
+
dayNumber.setDate(dayNumber.getDate() + i);
|
|
27
|
+
return (_jsx("th", { className: css.heading, children: _jsxs("div", { className: css.headingInner, children: [_jsx(T, { id: `opening.days.${day.dayType}` }), " ", dayNumber.getDate()] }) }, day.dayType));
|
|
28
|
+
})] }) }), _jsxs("tbody", { children: [showOpening?.includes("dawn") && (_jsx("tr", { children: _jsx(Rows, { kind: "dawn", rows: orderedDays }) })), showOpening?.includes("night") && (_jsx("tr", { children: _jsx(Rows, { kind: "night", rows: orderedNights }) }))] })] }) }) }) }));
|
|
29
29
|
});
|
|
30
30
|
function Rows({ kind, rows }) {
|
|
31
31
|
const Icon = kind === "dawn" ? DawnIcon : NightIcon;
|
|
32
|
-
return (_jsxs(_Fragment, { children: [_jsx("td", { className: css.heading, children: _jsxs("span", { className: css.
|
|
32
|
+
return (_jsxs(_Fragment, { children: [_jsx("td", { className: css.heading, children: _jsxs("span", { className: css.rowHeadingInner, children: [_jsx(Icon, {}), _jsx(T, { id: `opening.${kind}` })] }) }), rows.map(({ dayType, open }) => {
|
|
33
33
|
const code = open ? "opening.available" : "opening.unavailable";
|
|
34
34
|
const classes = classNames(css.cell, {
|
|
35
35
|
[css.cellAvailable]: open,
|
|
@@ -26,21 +26,37 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.tableOuter {
|
|
29
|
-
|
|
29
|
+
position: relative;
|
|
30
30
|
border: 2px solid hsl(var(--primary));
|
|
31
31
|
border-radius: calc(var(--radius-400) * 2);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0)),
|
|
35
|
-
linear-gradient(to left, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0));
|
|
36
|
-
background-position: left center, right center, left center, right center;
|
|
37
|
-
background-repeat: no-repeat;
|
|
38
|
-
background-color: white;
|
|
39
|
-
background-size: 40px 100%, 40px 100%, 20px 100%, 20px 100%;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
40
34
|
|
|
41
|
-
|
|
35
|
+
.tableOuter::before,
|
|
36
|
+
.tableOuter::after {
|
|
37
|
+
content: "";
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
width: 50px;
|
|
41
|
+
height: 100%;
|
|
42
|
+
background: linear-gradient(
|
|
43
|
+
to right,
|
|
44
|
+
#fff,
|
|
45
|
+
rgba(255, 255, 255, 0.8),
|
|
46
|
+
transparent
|
|
47
|
+
);
|
|
48
|
+
z-index: 1;
|
|
49
|
+
transition: opacity 320ms var(--transition-easing);
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
}
|
|
42
52
|
|
|
43
|
-
|
|
53
|
+
.tableOuter::before {
|
|
54
|
+
left: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tableOuter::after {
|
|
58
|
+
right: 0;
|
|
59
|
+
transform: rotate(0.5turn);
|
|
44
60
|
}
|
|
45
61
|
|
|
46
62
|
@media (min-width: 580px) {
|
|
@@ -49,6 +65,11 @@
|
|
|
49
65
|
}
|
|
50
66
|
}
|
|
51
67
|
|
|
68
|
+
.tableInner {
|
|
69
|
+
padding: 20px 30px;
|
|
70
|
+
overflow: auto;
|
|
71
|
+
}
|
|
72
|
+
|
|
52
73
|
.table {
|
|
53
74
|
color: hsl(var(--primary));
|
|
54
75
|
}
|
|
@@ -59,39 +80,47 @@
|
|
|
59
80
|
}
|
|
60
81
|
|
|
61
82
|
.heading {
|
|
62
|
-
width: fit-content;
|
|
63
|
-
min-width: 120px;
|
|
64
83
|
text-align: center;
|
|
65
84
|
margin-top: 40px;
|
|
66
85
|
padding-right: 10px;
|
|
67
86
|
}
|
|
68
87
|
|
|
69
|
-
.
|
|
88
|
+
.headingInner {
|
|
89
|
+
width: fit-content;
|
|
90
|
+
min-width: 120px;
|
|
70
91
|
display: flex;
|
|
71
|
-
|
|
72
|
-
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
text-align: center;
|
|
94
|
+
gap: 10px;
|
|
95
|
+
margin: 20px 0;
|
|
96
|
+
background-color: hsla(var(--secondary), 10%);
|
|
73
97
|
white-space: nowrap;
|
|
74
|
-
min-width: 60px;
|
|
75
98
|
}
|
|
76
99
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.headingInner {
|
|
84
|
-
height: 18px;
|
|
100
|
+
.rowHeadingInner {
|
|
101
|
+
width: fit-content;
|
|
102
|
+
min-width: 90px;
|
|
85
103
|
display: flex;
|
|
86
|
-
|
|
87
|
-
justify-content: center;
|
|
104
|
+
flex-direction: column;
|
|
88
105
|
text-align: center;
|
|
89
106
|
gap: 10px;
|
|
107
|
+
padding: 0 10px;
|
|
90
108
|
margin: 20px 0;
|
|
109
|
+
text-align: left;
|
|
91
110
|
background-color: hsla(var(--secondary), 10%);
|
|
92
111
|
white-space: nowrap;
|
|
93
112
|
}
|
|
94
113
|
|
|
114
|
+
@media (min-width: 700px) {
|
|
115
|
+
.rowHeadingInner {
|
|
116
|
+
min-width: 120px;
|
|
117
|
+
height: 18px;
|
|
118
|
+
align-items: flex-end;
|
|
119
|
+
flex-direction: row;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
95
124
|
.headingInner > svg {
|
|
96
125
|
min-width: 30px;
|
|
97
126
|
width: 30px;
|
|
@@ -133,7 +133,7 @@ const Pois = React.forwardRef(({ pois }, ref) => {
|
|
|
133
133
|
const Icon = isLift
|
|
134
134
|
? LIFT_ICONS[liftType] || LIFT_ICONS.DEFAULT
|
|
135
135
|
: TRAIL_ICONS[trailType] || TRAIL_ICONS.DEFAULT;
|
|
136
|
-
return (_jsxs("div", { className: classes, children: [_jsx("div", { className: css.poiIcon, children: specialTrail ? (_jsx(Image, { src: SPECIAL_TRAILS[specialTrail], width: 50, height: 50, alt: specialTrail })) : (_jsx(Icon, {})) }), _jsxs("div", { className: css.poiInfo, children: [_jsxs("div", { className: css.poiHeader, children: [_jsx("span", { className: css.poiName, children: name }), _jsx("span", { className: css.poiStatus, children: _jsx(T, { id: statusCode }) })] }), _jsxs("div", { className: css.poiDetail, children: [_jsxs("div", { className: css.poiDetailHeader, children: [_jsx("b", { children: sectorName }), " | ", _jsx(T, { id: translationCode }), " ", trailLevelLabel] }), !isLift && (_jsxs("div", { className: css.poiTrailDetail, children: [hasGroomingStatus && (_jsx("div", { className: css.poiTrailDetailItem, children: _jsx(T, { id: `snow.grooming.states.${groomingStatus}` }) })), hasSnowQuality && (_jsxs("div", { className: css.poiTrailDetailItem, children: [_jsx(T, { id: "snow.snow-quality.title" }), " :", " ", _jsx(T, { id: `snow.snow-quality.states.${snowQuality}` })] }))] })), openingTimesReal && (_jsxs("div", { className: css.poiOpeningTimes, children: [openingTimesReal.beginTime, " -", " ", openingTimesReal.endTime] }))] })] }), _jsx("div", { className: css.poiMessage, children: message && (_jsx(Tooltip, { content: message.data, children: _jsx(Button, { variant: "transparent", children: _jsx(Icons.Info, {}) }) })) })] }, id));
|
|
136
|
+
return (_jsxs("div", { className: classes, children: [_jsx("div", { className: css.poiIcon, children: specialTrail ? (_jsx(Image, { src: SPECIAL_TRAILS[specialTrail], width: 50, height: 50, alt: specialTrail })) : (_jsx(Icon, {})) }), _jsxs("div", { className: css.poiInfo, children: [_jsxs("div", { className: css.poiHeader, children: [_jsx("span", { className: css.poiName, children: name }), _jsx("span", { className: css.poiStatus, children: _jsx(T, { id: statusCode }) })] }), _jsxs("div", { className: css.poiDetail, children: [_jsxs("div", { className: css.poiDetailHeader, children: [_jsx("b", { children: sectorName }), " | ", _jsx(T, { id: translationCode }), " ", trailLevelLabel] }), !isLift && (_jsxs("div", { className: css.poiTrailDetail, children: [hasGroomingStatus && (_jsx("div", { className: css.poiTrailDetailItem, children: _jsx(T, { id: `snow.grooming.states.${groomingStatus}` }) })), hasSnowQuality && (_jsxs("div", { className: css.poiTrailDetailItem, children: [_jsx(T, { id: "snow.snow-quality.title" }), " :", " ", _jsx(T, { id: `snow.snow-quality.states.${snowQuality}` })] }))] })), openingTimesReal && (_jsxs("div", { className: css.poiOpeningTimes, children: [openingTimesReal.beginTime, " -", " ", openingTimesReal.endTime] }))] })] }), _jsx("div", { className: css.poiMessage, children: message?.data && (_jsx(Tooltip, { content: message.data, children: _jsx(Button, { variant: "transparent", children: _jsx(Icons.Info, {}) }) })) })] }, id));
|
|
137
137
|
}) }), _jsx(Tooltip, { content: t(lang, expanded ? "see-less" : "see-more"), children: _jsx(Button, { className: css.expandButton, variant: "transparent", onClick: toggleExpanded, children: _jsx(ExpandIcon, {}) }) })] }) }));
|
|
138
138
|
});
|
|
139
139
|
Pois.displayName = "Pois";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resort-selector.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/resort-selector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resort-selector.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/resort-selector.tsx"],"names":[],"mappings":"AAOA,KAAK,MAAM,GAAG;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IAExB,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,eAAe,EACf,kBAAkB,GACnB,EAAE,KAAK,kDAqDP"}
|
|
@@ -1,18 +1,42 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
2
3
|
import classNames from "classnames";
|
|
4
|
+
// import useWindowSizes from "ublo-lib/es/common/hooks/use-window-sizes";
|
|
5
|
+
import useWindowSizes from "../../../common/hooks/use-window-sizes";
|
|
3
6
|
import Button from "dt-design-system/es/button";
|
|
4
7
|
import css from "./resort-selector.module.css";
|
|
5
8
|
export default function ResortSelector({ resorts, currentResortId, setCurrentResortId, }) {
|
|
9
|
+
const [showLeftShadow, setShowLeftShadow] = React.useState(false);
|
|
10
|
+
const [showRightShadow, setShowRightShadow] = React.useState(false);
|
|
11
|
+
const containerRef = React.useRef(null);
|
|
12
|
+
const scrollerRef = React.useRef(null);
|
|
13
|
+
const { width, height } = useWindowSizes();
|
|
14
|
+
const refreshShadows = React.useCallback(() => {
|
|
15
|
+
const container = containerRef.current;
|
|
16
|
+
const scroller = scrollerRef.current;
|
|
17
|
+
if (container && scroller) {
|
|
18
|
+
setShowLeftShadow(scroller.scrollLeft > 50);
|
|
19
|
+
const maxScroll = Math.round(scroller.scrollWidth) - Math.round(scroller.clientWidth);
|
|
20
|
+
setShowRightShadow(scroller.scrollLeft < maxScroll - 50);
|
|
21
|
+
}
|
|
22
|
+
}, []);
|
|
23
|
+
React.useEffect(() => {
|
|
24
|
+
refreshShadows();
|
|
25
|
+
}, [refreshShadows, width, height]);
|
|
6
26
|
if (!resorts || resorts.length < 2) {
|
|
7
27
|
return null;
|
|
8
28
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
const classes = classNames(css.selector, {
|
|
30
|
+
[css.leftShadow]: showLeftShadow,
|
|
31
|
+
[css.rightShadow]: showRightShadow,
|
|
32
|
+
});
|
|
33
|
+
return (_jsx("div", { ref: containerRef, className: classes, children: _jsx("div", { ref: scrollerRef, onScroll: refreshShadows, className: css.content, children: resorts.map(({ id, label }) => {
|
|
34
|
+
const classes = classNames(css.button, {
|
|
35
|
+
[css.selected]: id === currentResortId,
|
|
36
|
+
});
|
|
37
|
+
const updateCurrentResort = () => {
|
|
38
|
+
setCurrentResortId(id);
|
|
39
|
+
};
|
|
40
|
+
return (_jsx(Button, { className: classes, onClick: updateCurrentResort, children: label }, id));
|
|
41
|
+
}) }) }));
|
|
18
42
|
}
|
|
@@ -1,11 +1,51 @@
|
|
|
1
1
|
.selector {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
gap: 20px;
|
|
2
|
+
position: relative;
|
|
3
|
+
padding: 0 10px;
|
|
6
4
|
margin-bottom: 10px;
|
|
7
5
|
}
|
|
8
6
|
|
|
7
|
+
.selector::before,
|
|
8
|
+
.selector::after {
|
|
9
|
+
content: "";
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
width: 40px;
|
|
13
|
+
height: 100%;
|
|
14
|
+
background: linear-gradient(
|
|
15
|
+
to right,
|
|
16
|
+
#fff,
|
|
17
|
+
rgba(255, 255, 255, 0.6),
|
|
18
|
+
transparent
|
|
19
|
+
);
|
|
20
|
+
z-index: 1;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transition: opacity 320ms var(--transition-easing);
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.selector::before {
|
|
27
|
+
left: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.selector::after {
|
|
31
|
+
right: 0;
|
|
32
|
+
transform: rotate(0.5turn);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.leftShadow::before,
|
|
36
|
+
.rightShadow::after {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.content {
|
|
41
|
+
width: 100%;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 10px;
|
|
45
|
+
overflow: auto;
|
|
46
|
+
scroll-snap-type: x proximity;
|
|
47
|
+
}
|
|
48
|
+
|
|
9
49
|
button.button {
|
|
10
50
|
--ds-button-padding: 14px;
|
|
11
51
|
--ds-button-font-size: 19px;
|
|
@@ -17,7 +57,18 @@ button.button {
|
|
|
17
57
|
--ds-button-text-transform: uppercase;
|
|
18
58
|
--ds-button-font-weight: 700;
|
|
19
59
|
|
|
60
|
+
width: fit-content;
|
|
20
61
|
display: block;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
scroll-snap-align: start;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
button.button:first-child {
|
|
67
|
+
margin-left: auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
button.button:last-child {
|
|
71
|
+
margin-right: auto;
|
|
21
72
|
}
|
|
22
73
|
|
|
23
74
|
button.selected {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"road-condition.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/road-condition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"road-condition.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/road-condition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,aAAa,8EA6FlB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -20,7 +20,7 @@ const RoadCondition = React.forwardRef(({ resortAccess }, ref) => {
|
|
|
20
20
|
return language === _lang;
|
|
21
21
|
});
|
|
22
22
|
const hasValidNumber = !isNaN(parseInt(number, 10)) && number !== "0";
|
|
23
|
-
return (_jsxs("div", { className: css.condition, children: [_jsx(RoadConditionIcon, { className: css.icon }), _jsxs("div", { className: css.right, children: [_jsxs("div", { className: css.status, children: [_jsx(T, { id: "road-conditions.road" }), " ", _jsx(T, { id: `road-conditions.status.${status ? "OPENED" : "CLOSED"}` })] }), _jsxs("div", { className: css.top, children: [name?.trim() && (_jsxs("div", { className: css.name, children: [name, " ", hasValidNumber && _jsxs(_Fragment, { children: ["n\u00B0", number] })] })), _jsxs("div", { className: css.surface, children: [_jsx("b", { children: _jsx(T, { id: "road-conditions.surface.title" }) }), _jsx(T, { id: `road-conditions.surface.states.${surface}` }), "."] }), _jsxs("div", { className: css.equipment, children: [_jsx("b", { children: _jsx(T, { id: "road-conditions.equipment.title" }) }), _jsx(T, { id: `road-conditions.equipment.states.${equipment}` })] })] }), roadInfoData && (_jsx("div", { className: css.bottom, dangerouslySetInnerHTML: { __html: roadInfoData.data } }))] })] }, id));
|
|
23
|
+
return (_jsxs("div", { className: css.condition, children: [_jsx(RoadConditionIcon, { className: css.icon }), _jsxs("div", { className: css.right, children: [_jsxs("div", { className: css.status, children: [_jsx(T, { id: "road-conditions.road" }), " ", _jsx(T, { id: `road-conditions.status.${status ? "OPENED" : "CLOSED"}` })] }), _jsxs("div", { className: css.top, children: [name?.trim() && (_jsxs("div", { className: css.name, children: [name, " ", hasValidNumber && _jsxs(_Fragment, { children: ["n\u00B0", number] })] })), surface && surface !== "UNDEF" && (_jsxs("div", { className: css.surface, children: [_jsx("b", { children: _jsx(T, { id: "road-conditions.surface.title" }) }), _jsx(T, { id: `road-conditions.surface.states.${surface}` }), "."] })), equipment && equipment !== "UNDEF" && (_jsxs("div", { className: css.equipment, children: [_jsx("b", { children: _jsx(T, { id: "road-conditions.equipment.title" }) }), _jsx(T, { id: `road-conditions.equipment.states.${equipment}` })] }))] }), roadInfoData && (_jsx("div", { className: css.bottom, dangerouslySetInnerHTML: { __html: roadInfoData.data } }))] })] }, id));
|
|
24
24
|
})] }));
|
|
25
25
|
});
|
|
26
26
|
RoadCondition.displayName = "RoadCondition";
|