ublo-lib 1.45.7 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common/components/breadcrumb.d.ts.map +1 -1
- package/es/common/components/breadcrumb.js +0 -2
- package/es/common/components/carousel.d.ts.map +1 -1
- package/es/common/components/carousel.js +3 -2
- package/es/common/components/cart-dialog/cart-dialog-inner.js +2 -2
- package/es/common/components/collapsible/collapsible.d.ts.map +1 -1
- package/es/common/components/collapsible/collapsible.js +4 -3
- package/es/common/components/cross-selling-editor/editor.js +2 -2
- package/es/common/components/cross-selling-editor/esf/step-2.js +2 -2
- package/es/common/components/cross-selling-editor/override-trigger-form.js +2 -2
- package/es/common/components/cross-selling-editor/override.d.ts.map +1 -1
- package/es/common/components/cross-selling-editor/override.js +5 -2
- package/es/common/components/cross-selling-editor/overrides-list.d.ts.map +1 -1
- package/es/common/components/cross-selling-editor/overrides-list.js +6 -5
- package/es/common/components/cross-selling-editor/rules.js +2 -2
- package/es/common/components/cross-selling-editor/tester/tester.js +2 -2
- package/es/common/components/cross-selling-editor/tester/tunnel-offer.js +2 -2
- package/es/common/components/custom-contact-form/custom-contact-form.js +2 -2
- package/es/common/components/date-picker/calendar.d.ts.map +1 -1
- package/es/common/components/date-picker/calendar.js +4 -2
- package/es/common/components/editable-calendar/calendar-editor.js +2 -2
- package/es/common/components/editable-calendar/calendar-header.d.ts.map +1 -1
- package/es/common/components/editable-calendar/calendar-header.js +3 -2
- package/es/common/components/gesco-contact-form/gesco-contact-form.js +2 -2
- package/es/common/components/image-with-loader/image-with-loader.d.ts +1 -1
- package/es/common/components/information/information.d.ts.map +1 -1
- package/es/common/components/information/information.js +5 -2
- package/es/common/components/plausible/plausible.d.ts.map +1 -1
- package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts.map +1 -1
- package/es/common/components/scrolling-carousel/scrolling-carousel.js +3 -2
- package/es/common/components/search-bar/search-bar.js +4 -3
- package/es/common/components/week-selector/week-selector.d.ts.map +1 -1
- package/es/common/components/week-selector/week-selector.js +9 -5
- package/es/esf/components/account-button/account-button.js +2 -2
- package/es/esf/components/booking-form/lesson.js +2 -2
- package/es/esf/components/booking-form/lessons.d.ts.map +1 -1
- package/es/esf/components/booking-form/lessons.js +4 -2
- package/es/esf/components/booking-form/personal-data.d.ts.map +1 -1
- package/es/esf/components/booking-form/personal-data.js +3 -2
- package/es/esf/components/booking-form/summary.d.ts.map +1 -1
- package/es/esf/components/booking-form/summary.js +4 -2
- package/es/esf/components/espace-prive/admin/config.js +2 -2
- package/es/esf/components/espace-prive/admin/link-row.d.ts.map +1 -1
- package/es/esf/components/espace-prive/admin/link-row.js +4 -2
- package/es/esf/components/espace-prive/cart-link.js +3 -3
- package/es/esf/components/instant-search/input.js +2 -2
- package/es/esf/components/instant-search/instant-search.js +2 -2
- package/es/esf/components/instant-search/links.d.ts.map +1 -1
- package/es/esf/components/instant-search/links.js +5 -1
- package/es/esf/components/instant-search/no-product.d.ts.map +1 -1
- package/es/esf/components/instant-search/products.js +2 -2
- package/es/esf/components/instant-search/results.js +2 -2
- package/es/esf/components/instructors-book/instructor.d.ts.map +1 -1
- package/es/esf/components/instructors-book/instructor.js +3 -2
- package/es/esf/components/instructors-book/sheet.d.ts.map +1 -1
- package/es/esf/components/instructors-book/sheet.js +6 -3
- package/es/esf/components/instructors-book/suggestions.js +2 -2
- package/es/esf/components/loyal-customers/components/customer-form.js +2 -2
- package/es/esf/components/loyal-customers/components/student-form.js +3 -3
- package/es/esf/components/loyal-customers/loyal-customers.js +2 -2
- package/es/esf/components/magic-box/booking.js +2 -2
- package/es/esf/components/magic-box/magic-box.d.ts.map +1 -1
- package/es/esf/components/magic-box/magic-box.js +4 -3
- package/es/esf/components/period-picker/controls.d.ts.map +1 -1
- package/es/esf/components/period-picker/controls.js +3 -2
- package/es/esf/components/period-picker/period-picker.js +2 -2
- package/es/future/components/msem-preset-editor/components/form.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/components/form.js +3 -2
- package/es/future/components/msem-preset-editor/components/widget-list-item.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/components/widget-list-item.js +7 -4
- package/es/future/components/msem-preset-editor/msem-preset-editor.js +2 -2
- package/es/future/components/plausible/plausible.d.ts.map +1 -1
- package/es/lbm/components/instant-search/facet-switch.d.ts.map +1 -1
- package/es/lbm/components/instant-search/faqs.d.ts.map +1 -1
- package/es/lbm/components/instant-search/faqs.js +3 -2
- package/es/lbm/components/instant-search/google-results.d.ts.map +1 -1
- package/es/lbm/components/instant-search/google-results.js +3 -2
- package/es/lbm/components/instant-search/links.d.ts.map +1 -1
- package/es/lbm/components/instant-search/links.js +8 -2
- package/es/lbm/components/instant-search/no-product.d.ts.map +1 -1
- package/es/lbm/components/instant-search/products.js +2 -2
- package/es/lbm/components/instant-search/search-input.js +2 -2
- package/es/lbm/components/instant-search/widgets/msem-widget.d.ts.map +1 -1
- package/es/lbm/components/instant-search/widgets/webcam.d.ts.map +1 -1
- package/es/lbm/components/instant-search/widgets/webcam.js +2 -2
- package/es/lbm/components/instant-search/widgets.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/domain.js +2 -2
- package/es/lbm/components/lumiplan/i18n/translations.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/opening.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/opening.js +3 -2
- package/es/lbm/components/lumiplan/pois.js +2 -2
- package/es/lbm/components/lumiplan/print-button.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/toolbar.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/toolbar.js +2 -2
- package/es/lbm/components/lumiplan/weather/avalanche-risk.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/weather/snow-data.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/weather/weather-data.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/weather/weather-icon.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/weather/weather.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/weather/weather.js +3 -2
- package/es/market-place/components/instant-search/google-results.d.ts.map +1 -1
- package/es/market-place/components/instant-search/google-results.js +3 -2
- package/es/market-place/components/instant-search/links.d.ts.map +1 -1
- package/es/market-place/components/instant-search/links.js +5 -1
- package/es/market-place/components/instant-search/products.d.ts.map +1 -1
- package/es/market-place/components/instant-search/products.js +7 -5
- package/es/market-place/components/instant-search/search-input.js +2 -2
- package/package.json +9 -9
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import Button from "dt-design-system/es/button";
|
|
4
|
-
import
|
|
4
|
+
import ArrowLeftIcon from "dt-design-system/es/icons/arrow-left";
|
|
5
|
+
import ArrowRightIcon from "dt-design-system/es/icons/arrow-right";
|
|
5
6
|
import css from "./controls.module.css";
|
|
6
7
|
const LEFT = 0;
|
|
7
8
|
const RIGHT = 1;
|
|
@@ -18,5 +19,5 @@ export default function Controls({ barRef, distance }) {
|
|
|
18
19
|
bar.scrollLeft = currentScroll + distance;
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
|
-
return (_jsxs("div", { className: css.controls, "data-controls": "", children: [_jsx(Button, { variant: "transparent", className: css.control, onClick: scrollTo(LEFT), "aria-label": "Previous", "data-control": "prev", children: _jsx(
|
|
22
|
+
return (_jsxs("div", { className: css.controls, "data-controls": "", children: [_jsx(Button, { variant: "transparent", className: css.control, onClick: scrollTo(LEFT), "aria-label": "Previous", "data-control": "prev", children: _jsx(ArrowLeftIcon, { className: css.icon }) }), _jsx(Button, { variant: "transparent", className: css.control, onClick: scrollTo(RIGHT), "aria-label": "Next", "data-control": "next", children: _jsx(ArrowRightIcon, { className: css.icon }) })] }));
|
|
22
23
|
}
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import getConfig from "next/config";
|
|
5
5
|
import { useUbloContext } from "ublo/with-ublo";
|
|
6
|
-
import
|
|
6
|
+
import CalendarIcon from "dt-design-system/es/icons/calendar";
|
|
7
7
|
import Title from "./title";
|
|
8
8
|
import Controls from "./controls";
|
|
9
9
|
import Weeks from "./weeks";
|
|
@@ -135,5 +135,5 @@ export default function PeriodPicker({ className = undefined, setClosed = undefi
|
|
|
135
135
|
setExtendedOpened(false);
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { className: pickerClasses, onMouseEnter: hideExtendedPickerIfHasCart, children: _jsxs("div", { className: css.inner, children: [_jsxs("div", { className: css.header, children: [_jsx("div", { className: css.iconContainer, children: _jsx(
|
|
138
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: pickerClasses, onMouseEnter: hideExtendedPickerIfHasCart, children: _jsxs("div", { className: css.inner, children: [_jsxs("div", { className: css.header, children: [_jsx("div", { className: css.iconContainer, children: _jsx(CalendarIcon, { className: css.icon }) }), _jsx(Title, { lang: lang, stay: stay }), _jsx(Controls, { barRef: ref, distance: 200 })] }), _jsx(Weeks, { ref: ref, lang: lang, weeks: weeks, beginWeek: beginWeek, endWeek: endWeek, selected: selected, select: select, forceSeasonSwitch: forceSeasonSwitch, openExtendedPicker: openExtendedPicker, hidePastDates: hidePastDates }), _jsx(ExtendedStayPicker, { lang: lang, stay: stay, extend: extend, week: selected, endWeek: endWeek, forceSeasonSwitch: forceSeasonSwitch, opened: extendedOpened, setExtendedOpened: setExtendedOpened, onChange: onChange }), _jsx(Warning, { lang: lang, warn: warn, setWarn: setWarn, selectWeek: selectWeek, chosenWeek: chosenWeek, setExtendedOpened: setExtendedOpened, extendedTimeout: extendedTimeout })] }) }), _jsx(Popup, { className: className, mustFilterSections: mustFilterSections, showDialog: showDialog, opened: opened, selectAndClose: selectAndClose, onChange: onChange, hidePastDates: hidePastDates })] }));
|
|
139
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/form.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,QAAQ,GACT;;;;;;CAAA,2CA0CA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Button from "dt-design-system/es/button";
|
|
3
3
|
import Tooltip from "dt-design-system/es/tooltip";
|
|
4
|
-
import
|
|
4
|
+
import OpenInBrowserIcon from "dt-design-system/es/icons/open-in-browser";
|
|
5
|
+
import TuneIcon from "dt-design-system/es/icons/tune";
|
|
5
6
|
import css from "./form.module.css";
|
|
6
7
|
export default function Form({ title, width, preset, buttonsActions, children, }) {
|
|
7
8
|
const { testPreset, cancelPreset, confirmPreset } = buttonsActions;
|
|
8
|
-
return (_jsxs("div", { className: css.form, style: { width }, children: [_jsxs("div", { className: css.title, children: [_jsx(
|
|
9
|
+
return (_jsxs("div", { className: css.form, style: { width }, children: [_jsxs("div", { className: css.title, children: [_jsx(TuneIcon, {}), title] }), _jsx("div", { className: css.content, children: _jsx("div", { className: css.inner, children: children }) }), _jsxs("div", { className: css.buttons, children: [_jsx(Tooltip, { content: "Tester dans le widget MseM", children: _jsx(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, children: _jsx(OpenInBrowserIcon, {}) }) }), _jsx(Button, { type: "submit", variant: "secondary", className: css.button, onClick: cancelPreset, children: "Annuler" }), _jsx(Button, { type: "submit", variant: "primary", className: css.button, onClick: confirmPreset, disabled: !confirmPreset, children: "Confirmer" })] })] }));
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-list-item.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/widget-list-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"widget-list-item.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/widget-list-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGhD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACvD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACpE,CAAC;AAYF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,mBAAmB,GACpB,EAAE,KAAK,2CAuKP"}
|
|
@@ -4,7 +4,10 @@ import classNames from "classnames";
|
|
|
4
4
|
import Button from "dt-design-system/es/button";
|
|
5
5
|
import Tooltip from "dt-design-system/es/tooltip";
|
|
6
6
|
import Dropdown from "dt-design-system/es/dropdown";
|
|
7
|
-
import
|
|
7
|
+
import ChevronDownIcon from "dt-design-system/es/icons/chevron-down";
|
|
8
|
+
import ChevronUpIcon from "dt-design-system/es/icons/chevron-up";
|
|
9
|
+
import EditIcon from "dt-design-system/es/icons/edit";
|
|
10
|
+
import TrashIcon from "dt-design-system/es/icons/trash";
|
|
8
11
|
import css from "./widget-list-item.module.css";
|
|
9
12
|
const ALLOW_PRESETS_ON_WIDGETS = [
|
|
10
13
|
"lodging",
|
|
@@ -20,7 +23,7 @@ export default function WidgetListItem({ item, preset, updatePreset, removePrese
|
|
|
20
23
|
const isSelected = preset?.name === name && preset?.widget === widget;
|
|
21
24
|
const hasSubsSelected = subs?.some((sub) => preset?.name === sub.name && preset?.widget === sub.widget) || false;
|
|
22
25
|
const [opened, setOpened] = React.useState(isSelected);
|
|
23
|
-
const ToggleIcon = opened ?
|
|
26
|
+
const ToggleIcon = opened ? ChevronUpIcon : ChevronDownIcon;
|
|
24
27
|
const hasSubs = subs && subs.length > 0;
|
|
25
28
|
const allowAdvancedPresets = ALLOW_PRESETS_ON_WIDGETS.includes(widget);
|
|
26
29
|
const showEditButton = isSelected && allowAdvancedPresets;
|
|
@@ -43,7 +46,7 @@ export default function WidgetListItem({ item, preset, updatePreset, removePrese
|
|
|
43
46
|
updatePreset(item);
|
|
44
47
|
}
|
|
45
48
|
};
|
|
46
|
-
return (_jsxs("div", { className: classes, children: [_jsxs(Button, { variant: "transparent", className: css.button, onClick: handleItemClick, disabled: !widget, children: [_jsx("div", { className: css.logo, children: _jsx("img", { src: logo, alt: name }) }), _jsx("div", { className: css.name, children: name })] }), (hasSubs || showEditButton || showRemoveButton) && (_jsxs("div", { className: css.actions, children: [showEditButton && (_jsx(Tooltip, { content: "Affiner le preset", children: _jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), compact: true, children: _jsx(
|
|
49
|
+
return (_jsxs("div", { className: classes, children: [_jsxs(Button, { variant: "transparent", className: css.button, onClick: handleItemClick, disabled: !widget, children: [_jsx("div", { className: css.logo, children: _jsx("img", { src: logo, alt: name }) }), _jsx("div", { className: css.name, children: name })] }), (hasSubs || showEditButton || showRemoveButton) && (_jsxs("div", { className: css.actions, children: [showEditButton && (_jsx(Tooltip, { content: "Affiner le preset", children: _jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), compact: true, children: _jsx(EditIcon, {}) }) })), showRemoveButton && (_jsx(Tooltip, { content: "Supprimer le preset", children: _jsx(Button, { variant: "danger", className: css.action, onClick: removePreset, compact: true, children: _jsx(TrashIcon, {}) }) })), hasSubs && (_jsx(Dropdown, { breakpoint: 600, onClose: closeDropdown, open: opened, className: css.dropdown, title: "Marchands", content: _jsx("div", { className: css.list, children: subs.map((sub) => {
|
|
47
50
|
const isSelected = preset?.name === sub.name;
|
|
48
51
|
const allowedWidgets = [
|
|
49
52
|
"otherProducts",
|
|
@@ -61,6 +64,6 @@ export default function WidgetListItem({ item, preset, updatePreset, removePrese
|
|
|
61
64
|
updatePreset(item, sub);
|
|
62
65
|
}
|
|
63
66
|
};
|
|
64
|
-
return (_jsxs("div", { className: classes, children: [_jsx(Button, { variant: "transparent", className: css.subButton, onClick: handleSubClick, autoFocus: isSelected ? true : undefined, children: sub.name }), showButtons && (_jsxs("div", { className: css.subActions, children: [showEditButton && (_jsx(Tooltip, { content: "Affiner le preset", children: _jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), compact: true, children: _jsx(
|
|
67
|
+
return (_jsxs("div", { className: classes, children: [_jsx(Button, { variant: "transparent", className: css.subButton, onClick: handleSubClick, autoFocus: isSelected ? true : undefined, children: sub.name }), showButtons && (_jsxs("div", { className: css.subActions, children: [showEditButton && (_jsx(Tooltip, { content: "Affiner le preset", children: _jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), compact: true, children: _jsx(EditIcon, {}) }) })), isSelected && (_jsx(Tooltip, { content: "Supprimer le preset", children: _jsx(Button, { variant: "danger", className: css.action, onClick: removePreset, compact: true, children: _jsx(TrashIcon, {}) }) }))] }))] }, sub.name));
|
|
65
68
|
}) }), children: _jsxs(Button, { variant: "secondary", className: css.action, onClick: openDropdown, compact: true, children: [_jsx(ToggleIcon, {}), hasSubsSelected && _jsx("div", { className: css.actionPill })] }) }))] }))] }));
|
|
66
69
|
}
|
|
@@ -5,7 +5,7 @@ import Button from "dt-design-system/es/button";
|
|
|
5
5
|
import Dialog from "dt-design-system/es/dialog";
|
|
6
6
|
import Input from "dt-design-system/es/input";
|
|
7
7
|
import Tooltip from "dt-design-system/es/tooltip";
|
|
8
|
-
import
|
|
8
|
+
import OpenInBrowserIcon from "dt-design-system/es/icons/open-in-browser";
|
|
9
9
|
import * as MseM from "../../components/msem/utils";
|
|
10
10
|
import ResortSelector from "./components/resort-selector";
|
|
11
11
|
import FacetSelector from "./components/facet-selector";
|
|
@@ -110,7 +110,7 @@ export default function MseMPresetEditor({ lang, channel, resort, msemServicesUr
|
|
|
110
110
|
const footerClasses = classNames(css.footer, {
|
|
111
111
|
[css.footerButtonOnly]: !showPresetUrl,
|
|
112
112
|
});
|
|
113
|
-
return (_jsxs("div", { className: css.editor, children: [resorts && (_jsx(ResortSelector, { resorts: resorts, resort: selectedResort, setResort: setSelectedResort, removePreset: removePreset })), showFacetSelector && (_jsx(FacetSelector, { facet: selectedFacet, setFacet: setSelectedFacet, setPreset: setPreset })), !hideStay && _jsx(StayPicker, { stay: stay, setStay: setStay, isLBM: isLBM }), showWidgetList && (_jsx(WidgetList, { lang: lang, msemServicesUrl: msemServicesUrl, resort: selectedResort, channel: channel, facet: selectedFacet, preset: preset, updatePreset: updatePreset, removePreset: removePreset, error: error, setError: setError, setShowPresetDialog: setShowPresetDialog })), error && _jsx("div", { className: css.error, children: error }), _jsxs("div", { className: footerClasses, children: [showPresetUrl ? (_jsx(Tooltip, { content: "Tester dans le widget MseM", children: _jsx(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, children: _jsx(
|
|
113
|
+
return (_jsxs("div", { className: css.editor, children: [resorts && (_jsx(ResortSelector, { resorts: resorts, resort: selectedResort, setResort: setSelectedResort, removePreset: removePreset })), showFacetSelector && (_jsx(FacetSelector, { facet: selectedFacet, setFacet: setSelectedFacet, setPreset: setPreset })), !hideStay && _jsx(StayPicker, { stay: stay, setStay: setStay, isLBM: isLBM }), showWidgetList && (_jsx(WidgetList, { lang: lang, msemServicesUrl: msemServicesUrl, resort: selectedResort, channel: channel, facet: selectedFacet, preset: preset, updatePreset: updatePreset, removePreset: removePreset, error: error, setError: setError, setShowPresetDialog: setShowPresetDialog })), error && _jsx("div", { className: css.error, children: error }), _jsxs("div", { className: footerClasses, children: [showPresetUrl ? (_jsx(Tooltip, { content: "Tester dans le widget MseM", children: _jsx(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, children: _jsx(OpenInBrowserIcon, {}) }) })) : (_jsxs(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, children: [_jsx(OpenInBrowserIcon, {}), "Tester dans le widget MseM"] })), showPresetUrl && (_jsx(Input, { type: "text", className: css.url, value: presetUrl, onClick: copyUrl, placeholder: !preset
|
|
114
114
|
? "Aucun preset sélectionné"
|
|
115
115
|
: "Preset incompatible au format URL", readOnly: true }))] }), _jsx(Dialog, { isOpened: showPresetDialog, close: () => setShowPresetDialog(false), closeButtonVariant: "transparent", showAsModal: false, children: showPresetDialog && (_jsx(CurrentEditor, { lang: lang, msemServicesUrl: msemServicesUrl, stay: stay, facet: selectedFacet, preset: preset, setPreset: setPreset, setShowPresetDialog: setShowPresetDialog, testPreset: testPreset, onChange: onChange, urlOverride: urlOverride })) })] }));
|
|
116
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plausible.d.ts","sourceRoot":"","sources":["../../../../src/future/components/plausible/plausible.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plausible.d.ts","sourceRoot":"","sources":["../../../../src/future/components/plausible/plausible.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAKF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAI,EACJ,MAAuB,GACxB,EAAE,KAAK,2CAeP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facet-switch.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/facet-switch.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"facet-switch.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/facet-switch.tsx"],"names":[],"mappings":"AAcA,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAsBnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faqs.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/faqs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"faqs.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/faqs.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAQrC,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IAEjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,SAAS,EAAE,OAAO,CAAC;IAEnB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,iBAAiB,EACjB,SAAS,EACT,YAAY,GACb,EAAE,KAAK,2CA4DP"}
|
|
@@ -3,8 +3,9 @@ import classNames from "classnames";
|
|
|
3
3
|
import Link from "ublo/link";
|
|
4
4
|
import Loader from "dt-design-system/es/loader";
|
|
5
5
|
import Button from "dt-design-system/es/button";
|
|
6
|
-
import * as Icons from "dt-design-system/es/icons";
|
|
7
6
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
7
|
+
import ChevronsUpIcon from "dt-design-system/es/icons/chevrons-up";
|
|
8
|
+
import ChevronsDownIcon from "dt-design-system/es/icons/chevrons-down";
|
|
8
9
|
import message from "./services/messages";
|
|
9
10
|
import * as Utils from "./services/utils";
|
|
10
11
|
import getConfig from "next/config";
|
|
@@ -20,7 +21,7 @@ export default function Faqs({ lang, faqs, loading, sendPlausibleGoal, maximized
|
|
|
20
21
|
setMaximized(!maximized);
|
|
21
22
|
};
|
|
22
23
|
const hasMultipleFaqs = faqs.length > 1;
|
|
23
|
-
const ButtonIcon =
|
|
24
|
+
const ButtonIcon = maximized ? ChevronsDownIcon : ChevronsUpIcon;
|
|
24
25
|
const buttonLabel = message(lang, maximized ? "hideAllFAQs" : "showAllFAQs");
|
|
25
26
|
const firstFaq = faqs?.[0];
|
|
26
27
|
const otherFaqs = faqs.slice(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-results.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/google-results.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"google-results.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/google-results.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IAEjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,GACd,EAAE,KAAK,2CA6DP"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Link from "ublo/link";
|
|
3
|
-
import
|
|
3
|
+
import GlobeIcon from "dt-design-system/es/icons/globe";
|
|
4
|
+
import ExternalLinkIcon from "dt-design-system/es/icons/external-link";
|
|
4
5
|
import Loader from "dt-design-system/es/loader";
|
|
5
6
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
6
7
|
import css from "./google-results.module.css";
|
|
@@ -21,6 +22,6 @@ export default function OTLinks({ products, loading, sendPlausibleGoal, faqsMaxi
|
|
|
21
22
|
const productTitle = htmlTitle
|
|
22
23
|
.replaceAll("b>", "mark>")
|
|
23
24
|
.toLowerCase();
|
|
24
|
-
return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: () => sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(
|
|
25
|
+
return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: () => sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(GlobeIcon, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(ExternalLinkIcon, { className: css.linkIcon })] }) })] }, i));
|
|
25
26
|
})] })] }));
|
|
26
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/links.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/links.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAOrC,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;IACzD,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IAEjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAMF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,IAAI,EACJ,UAAU,EACV,KAAK,EACL,gBAAgB,EAChB,OAAO,EACP,iBAAiB,GAClB,EAAE,KAAK,2CAgFP"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Link from "ublo/link";
|
|
3
3
|
import Loader from "dt-design-system/es/loader";
|
|
4
|
-
import
|
|
4
|
+
import ExternalLinkIcon from "dt-design-system/es/icons/external-link";
|
|
5
|
+
import FileText from "dt-design-system/es/icons/file-text";
|
|
6
|
+
import Info from "dt-design-system/es/icons/info";
|
|
7
|
+
import Question from "dt-design-system/es/icons/question";
|
|
8
|
+
import User from "dt-design-system/es/icons/user";
|
|
9
|
+
import File from "dt-design-system/es/icons/file";
|
|
5
10
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
6
11
|
import * as Utils from "./services/utils";
|
|
7
12
|
import getConfig from "next/config";
|
|
@@ -9,6 +14,7 @@ import css from "./links.module.css";
|
|
|
9
14
|
const { publicRuntimeConfig } = getConfig();
|
|
10
15
|
const { site, portalUrl } = publicRuntimeConfig;
|
|
11
16
|
const PLACEHOLDERS = [...new Array(3)];
|
|
17
|
+
const Icons = { FileText, Info, Question, User, File };
|
|
12
18
|
export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loading, sendPlausibleGoal, }) {
|
|
13
19
|
const Icon = Icons[icon];
|
|
14
20
|
const noResult = !loading && !links.length;
|
|
@@ -28,6 +34,6 @@ export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loadi
|
|
|
28
34
|
const linkTitle = Utils.getHighlight(titleProperty, link.highlight) ||
|
|
29
35
|
link.document[titleProperty].trim();
|
|
30
36
|
const linkText = Utils.getHighlight("text", link.highlight, true) || text?.trim();
|
|
31
|
-
return (_jsxs(Link, { href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", className: css.link, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), site !== docSite && (_jsx(
|
|
37
|
+
return (_jsxs(Link, { href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", className: css.link, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), site !== docSite && (_jsx(ExternalLinkIcon, { className: css.linkIcon }))] }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
|
|
32
38
|
})] })] }));
|
|
33
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-product.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/no-product.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"no-product.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/no-product.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,KAAK,2CA2FrD"}
|
|
@@ -4,7 +4,7 @@ import Image from "next/image";
|
|
|
4
4
|
import Link from "ublo/link";
|
|
5
5
|
import Loader from "dt-design-system/es/loader";
|
|
6
6
|
import Button from "dt-design-system/es/button";
|
|
7
|
-
import
|
|
7
|
+
import ArrowDownIcon from "dt-design-system/es/icons/arrow-down";
|
|
8
8
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
9
9
|
import * as Utils from "./services/utils";
|
|
10
10
|
import message from "./services/messages";
|
|
@@ -46,5 +46,5 @@ export default function Products({ lang, products, loading, sendPlausibleGoal, o
|
|
|
46
46
|
const showPrice = Boolean(price?.trim().length > 0);
|
|
47
47
|
const imagePlaceholderStrategy = imagePlaceholder ? "blur" : "empty";
|
|
48
48
|
return (_jsxs(Link, { className: css.product, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStrategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
49
|
-
}), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(
|
|
49
|
+
}), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(ArrowDownIcon, {})] }) }))] }));
|
|
50
50
|
}
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Input from "dt-design-system/es/input";
|
|
5
5
|
import Button from "dt-design-system/es/button";
|
|
6
|
-
import
|
|
6
|
+
import CrossIcon from "dt-design-system/es/icons/cross";
|
|
7
7
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
8
8
|
import message from "./services/messages";
|
|
9
9
|
import css from "./search-input.module.css";
|
|
@@ -45,7 +45,7 @@ export default function SearchInput({ lang, text, setText, closeSearch, loading,
|
|
|
45
45
|
[css.buttonPrev]: isPrev,
|
|
46
46
|
});
|
|
47
47
|
return (_jsxs("button", { className: classes, onClick: updateText(suggestion), onMouseDown: createRipple, children: ["\u00AB ", suggestion, " \u00BB"] }, suggestion));
|
|
48
|
-
}) })] })), _jsx(Button, { variant: "transparent", className: css.close, onClick: closeSearch, children: _jsx(
|
|
48
|
+
}) })] })), _jsx(Button, { variant: "transparent", className: css.close, onClick: closeSearch, children: _jsx(CrossIcon, {}) })] }));
|
|
49
49
|
}
|
|
50
50
|
function getSuggestions(suggestions = {}) {
|
|
51
51
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msem-widget.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/widgets/msem-widget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"msem-widget.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/widgets/msem-widget.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAuDjC,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,GAAG,CAAC;IAET,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,GAAG,EAAE,EAAE,KAAK,2CA4BhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webcam.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/widgets/webcam.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webcam.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/widgets/webcam.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGtC,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,GAAG,CAAC;IAET,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AACF,QAAA,MAAM,MAAM,sBAAuB,KAAK,4CAUvC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import PlayCircleIcon from "dt-design-system/es/icons/play-circle";
|
|
3
3
|
import Card from "./components/card";
|
|
4
4
|
import css from "./webcam.module.css";
|
|
5
5
|
const Webcam = ({ doc, ...props }) => {
|
|
6
6
|
const { document: { image, text }, } = doc;
|
|
7
|
-
return (_jsxs(Card, { doc: doc, ...props, overlayTitle: true, children: [_jsx(
|
|
7
|
+
return (_jsxs(Card, { doc: doc, ...props, overlayTitle: true, children: [_jsx(PlayCircleIcon, { className: css.icon }), _jsx("img", { src: image, alt: text, className: css.webcam })] }));
|
|
8
8
|
};
|
|
9
9
|
export default Webcam;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgets.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/widgets.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"widgets.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/widgets.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAkBrC,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IAEjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,OAAO,EACP,OAAO,EACP,aAAa,EACb,GAAG,KAAK,EACT,EAAE,KAAK,2CA+DP"}
|
|
@@ -5,7 +5,7 @@ import { useUbloContext } from "ublo/with-ublo";
|
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import Loader from "dt-design-system/es/loader";
|
|
7
7
|
import Button from "dt-design-system/es/button";
|
|
8
|
-
import
|
|
8
|
+
import MapIcon from "dt-design-system/es/icons/map";
|
|
9
9
|
import TelesiegeIcon from "./icons/lifts/telesiege";
|
|
10
10
|
import SlopesIcon from "./icons/slopes";
|
|
11
11
|
import T, { t } from "./i18n/translations";
|
|
@@ -28,7 +28,7 @@ const Domain = React.forwardRef(({ domain }, ref) => {
|
|
|
28
28
|
[css[key]]: key,
|
|
29
29
|
});
|
|
30
30
|
return (_jsxs("div", { className: classes, children: [_jsx("div", { className: css.slopePill }), _jsx("div", { className: css.slopeKind, children: _jsx(T, { id: `domain.slopes.${key}` }) }), _jsxs("div", { className: css.slopeCount, children: [_jsx("b", { children: open }), " / ", total] })] }, key));
|
|
31
|
-
}) }), slopeMapPath && (_jsxs(Button, { tag: Link, className: css.mapButton, href: slopeMapPath, children: [_jsx(
|
|
31
|
+
}) }), slopeMapPath && (_jsxs(Button, { tag: Link, className: css.mapButton, href: slopeMapPath, children: [_jsx(MapIcon, {}), t(lang, "domain.map")] }))] }) }));
|
|
32
32
|
});
|
|
33
33
|
Domain.displayName = "Domain";
|
|
34
34
|
export default Domain;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/i18n/translations.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/i18n/translations.tsx"],"names":[],"mappings":"AAMA,wBAAgB,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,OAQ5C;AAED,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,2CAGtC"}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"opening.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/opening.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/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,8EAoFZ,CAAC;AA0CF,eAAe,OAAO,CAAC"}
|
|
@@ -3,7 +3,8 @@ import * as React from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { useUbloContext } from "ublo/with-ublo";
|
|
5
5
|
import Loader from "dt-design-system/es/loader";
|
|
6
|
-
import
|
|
6
|
+
import CrossIcon from "dt-design-system/es/icons/cross";
|
|
7
|
+
import CheckIcon from "dt-design-system/es/icons/check";
|
|
7
8
|
import NightIcon from "./icons/night";
|
|
8
9
|
import DawnIcon from "./icons/dawn";
|
|
9
10
|
import T, { t } from "./i18n/translations";
|
|
@@ -41,7 +42,7 @@ function Rows({ kind, rows }) {
|
|
|
41
42
|
const classes = classNames(css.cell, {
|
|
42
43
|
[css.cellAvailable]: open,
|
|
43
44
|
});
|
|
44
|
-
return (_jsx("td", { className: classes, children: _jsxs("span", { className: css.cellInner, children: [_jsx("span", { className: css.hiddenPrint, children: _jsx(T, { id: code }) }), !open && _jsx(
|
|
45
|
+
return (_jsx("td", { className: classes, children: _jsxs("span", { className: css.cellInner, children: [_jsx("span", { className: css.hiddenPrint, children: _jsx(T, { id: code }) }), !open && _jsx(CrossIcon, {}), open && _jsx(CheckIcon, { className: css.showPrint })] }) }, `${dayType}-${kind}`));
|
|
45
46
|
})] }));
|
|
46
47
|
}
|
|
47
48
|
Opening.displayName = "Opening";
|
|
@@ -8,7 +8,7 @@ import Button from "dt-design-system/es/button";
|
|
|
8
8
|
import Tooltip from "dt-design-system/es/tooltip";
|
|
9
9
|
import Popover from "dt-design-system/es/popover";
|
|
10
10
|
import Loader from "dt-design-system/es/loader";
|
|
11
|
-
import
|
|
11
|
+
import InfoIcon from "dt-design-system/es/icons/info";
|
|
12
12
|
import useWindowSizes from "../../../common/hooks/use-window-sizes";
|
|
13
13
|
import * as LiftsIcons from "./icons/lifts";
|
|
14
14
|
import * as TrailIcons from "./icons/trails";
|
|
@@ -176,7 +176,7 @@ const Pois = React.forwardRef(({ pois }, ref) => {
|
|
|
176
176
|
const isClosed = status === "CLOSED";
|
|
177
177
|
const showOpeningTimes = !isClosed && openingTimes && openingTimes?.length > 0;
|
|
178
178
|
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 }), _jsxs("span", { className: css.poiStatus, children: [_jsx(T, { id: statusCode }), showOpeningTimes && (_jsxs("div", { className: css.poiOpeningTimes, children: [openingTimes[0].beginTime, " -", " ", openingTimes[0].endTime] }))] })] }), _jsxs("div", { className: css.poiDetail, children: [isInterconnection && (_jsx("div", { className: css.poiDetailHeader, children: _jsx("b", { children: _jsx(T, { id: "interconnection" }) }) })), trailType !== "FUN_ZONE" &&
|
|
179
|
-
activityType !== "FUN_ZONE" && (_jsxs("div", { className: css.poiDetailKind, children: [_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}` })] }))] }))] }), message?.data && (_jsx("b", { className: css.printedMessage, children: message.data }))] }), _jsx("div", { className: css.poiMessage, children: message?.data && (_jsx(_Fragment, { children: isMobile ? (_jsx(Popover, { innerClassName: css.poiPopover, trigger: _jsx(Button, { variant: "transparent", children: _jsx(
|
|
179
|
+
activityType !== "FUN_ZONE" && (_jsxs("div", { className: css.poiDetailKind, children: [_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}` })] }))] }))] }), message?.data && (_jsx("b", { className: css.printedMessage, children: message.data }))] }), _jsx("div", { className: css.poiMessage, children: message?.data && (_jsx(_Fragment, { children: isMobile ? (_jsx(Popover, { innerClassName: css.poiPopover, trigger: _jsx(Button, { variant: "transparent", children: _jsx(InfoIcon, {}) }), children: message.data })) : (_jsx(Tooltip, { content: message.data, children: _jsx(Button, { variant: "transparent", children: _jsx(InfoIcon, {}) }) })) })) })] }, id));
|
|
180
180
|
}) })] }, name));
|
|
181
181
|
}) }) }));
|
|
182
182
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print-button.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/print-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"print-button.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/print-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,2CAgBzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/toolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/toolbar.tsx"],"names":[],"mappings":"AAKA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,KAAK,IAAI,CAAC;IAC9C,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,2CAmB/D"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import DownloadIcon from "dt-design-system/es/icons/download";
|
|
3
3
|
import PrintButton from "./print-button";
|
|
4
4
|
import T from "./i18n/translations";
|
|
5
5
|
import styles from "./toolbar.module.css";
|
|
6
6
|
export default function Toolbar({ setMode, fetchAllData }) {
|
|
7
|
-
return (_jsx("div", { className: styles.toolbar, children: _jsxs("div", { className: styles.inner, children: [_jsx(
|
|
7
|
+
return (_jsx("div", { className: styles.toolbar, children: _jsxs("div", { className: styles.inner, children: [_jsx(DownloadIcon, { className: styles.icon }), _jsx(T, { id: "print.label" }), _jsx(PrintButton, { fetchAllData: fetchAllData, mode: "weather", setMode: setMode }), _jsx(PrintButton, { fetchAllData: fetchAllData, mode: "trails", setMode: setMode })] }) }));
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avalanche-risk.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/avalanche-risk.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avalanche-risk.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/avalanche-risk.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,aAAa,EAAE;;CAAA,2CAqBtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snow-data.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/snow-data.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"snow-data.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/snow-data.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA6DzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weather-data.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/weather-data.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"weather-data.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/weather-data.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAyHlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weather-icon.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/weather-icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"weather-icon.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/weather-icon.tsx"],"names":[],"mappings":"AAaA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,GAAG,EAAE,EAAE,KAAK,2CAGjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weather.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/weather.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"weather.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/weather.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,eAAe,EAAY,MAAM,UAAU,CAAC;AAK1D,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,OAAO,8EA+GZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
|
|
@@ -5,7 +5,8 @@ import { useUbloContext } from "ublo/with-ublo";
|
|
|
5
5
|
import Button from "dt-design-system/es/button";
|
|
6
6
|
import Tooltip from "dt-design-system/es/tooltip";
|
|
7
7
|
import Loader from "dt-design-system/es/loader";
|
|
8
|
-
import
|
|
8
|
+
import MinusCircleIcon from "dt-design-system/es/icons/minus-circle";
|
|
9
|
+
import PlusCircleIcon from "dt-design-system/es/icons/plus-circle";
|
|
9
10
|
import AvalancheRisk from "./avalanche-risk";
|
|
10
11
|
import SnowData from "./snow-data";
|
|
11
12
|
import WeatherData from "./weather-data";
|
|
@@ -44,7 +45,7 @@ const Weather = React.forwardRef(({ weather }, ref) => {
|
|
|
44
45
|
[css.infoHidden]: currentZoneIndex !== i,
|
|
45
46
|
});
|
|
46
47
|
const snowData = snowZones[i] || {};
|
|
47
|
-
const ExpandIcon = expanded ?
|
|
48
|
+
const ExpandIcon = expanded ? MinusCircleIcon : PlusCircleIcon;
|
|
48
49
|
const toggleExpanded = () => {
|
|
49
50
|
setExpanded(!expanded);
|
|
50
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-results.d.ts","sourceRoot":"","sources":["../../../../src/market-place/components/instant-search/google-results.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"google-results.d.ts","sourceRoot":"","sources":["../../../../src/market-place/components/instant-search/google-results.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IAEjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,KAAK,2CAoD3E"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Link from "ublo/link";
|
|
3
|
-
import
|
|
3
|
+
import GlobeIcon from "dt-design-system/es/icons/globe";
|
|
4
|
+
import ExternalLinkIcon from "dt-design-system/es/icons/external-link";
|
|
4
5
|
import Loader from "dt-design-system/es/loader";
|
|
5
6
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
6
7
|
import css from "./google-results.module.css";
|
|
@@ -19,6 +20,6 @@ export default function OTLinks({ links, loading, sendPlausibleGoal }) {
|
|
|
19
20
|
links.map((product, i) => {
|
|
20
21
|
const { htmlTitle, link } = product;
|
|
21
22
|
const productTitle = htmlTitle.toLowerCase();
|
|
22
|
-
return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: () => sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(
|
|
23
|
+
return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: () => sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(GlobeIcon, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(ExternalLinkIcon, { className: css.linkIcon })] }) })] }, i));
|
|
23
24
|
})] })] }));
|
|
24
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/market-place/components/instant-search/links.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/market-place/components/instant-search/links.tsx"],"names":[],"mappings":"AAWA,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;IAChD,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IAEjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAMF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,IAAI,EACJ,UAAU,EACV,KAAK,EACL,gBAAgB,EAChB,OAAO,EACP,iBAAiB,GAClB,EAAE,KAAK,2CAoEP"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Link from "ublo/link";
|
|
3
3
|
import Loader from "dt-design-system/es/loader";
|
|
4
|
-
import * as Icons from "dt-design-system/es/icons";
|
|
5
4
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
6
5
|
import * as Utils from "./services/utils";
|
|
6
|
+
import FileText from "dt-design-system/es/icons/file-text";
|
|
7
|
+
import Info from "dt-design-system/es/icons/info";
|
|
8
|
+
import Question from "dt-design-system/es/icons/question";
|
|
9
|
+
import User from "dt-design-system/es/icons/user";
|
|
7
10
|
import css from "./links.module.css";
|
|
8
11
|
const PLACEHOLDERS = [...new Array(3)];
|
|
12
|
+
const Icons = { FileText, Info, Question, User };
|
|
9
13
|
export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loading, sendPlausibleGoal, }) {
|
|
10
14
|
const Icon = Icons[icon];
|
|
11
15
|
const noResult = !loading && !links.length;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../src/market-place/components/instant-search/products.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../src/market-place/components/instant-search/products.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IAEjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACjD,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AASF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,EAAE,KAAK,2CAoIP"}
|
|
@@ -3,7 +3,9 @@ import Image from "next/image";
|
|
|
3
3
|
import Link from "ublo/link";
|
|
4
4
|
import Loader from "dt-design-system/es/loader";
|
|
5
5
|
import Button from "dt-design-system/es/button";
|
|
6
|
-
import
|
|
6
|
+
import ArrowDownIcon from "dt-design-system/es/icons/arrow-down";
|
|
7
|
+
import HomeIcon from "dt-design-system/es/icons/home";
|
|
8
|
+
import FileIcon from "dt-design-system/es/icons/file";
|
|
7
9
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
8
10
|
import * as Utils from "./services/utils";
|
|
9
11
|
import message from "./services/messages";
|
|
@@ -41,14 +43,14 @@ export default function Products({ lang, products, weekNumber, loading, sendPlau
|
|
|
41
43
|
const imagePlaceholderStategy = imagePlaceholder ? "blur" : "empty";
|
|
42
44
|
const showImage = Boolean(image);
|
|
43
45
|
return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [showImage ? (_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder })) : (_jsx(Placeholder, { lang: lang, type: type })), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productSubtitle, dangerouslySetInnerHTML: { __html: productSubTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
44
|
-
}), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(
|
|
46
|
+
}), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(ArrowDownIcon, {})] }) }))] }));
|
|
45
47
|
}
|
|
46
48
|
function Placeholder({ type }) {
|
|
47
49
|
const icons = {
|
|
48
|
-
lodging:
|
|
49
|
-
page:
|
|
50
|
+
lodging: HomeIcon,
|
|
51
|
+
page: FileIcon,
|
|
50
52
|
};
|
|
51
|
-
const Icon =
|
|
53
|
+
const Icon = icons[type];
|
|
52
54
|
const image = type === "lodging" ? lodgingPlaceholder : pagePlaceholder;
|
|
53
55
|
return (_jsxs("div", { className: css.placeholder, children: [_jsx(Image, { className: css.productImage, src: image, width: 220, height: 180, alt: "placeholder" }), _jsx(Icon, { className: css.icon })] }));
|
|
54
56
|
}
|