ublo-lib 1.45.8 → 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.
Files changed (109) hide show
  1. package/es/common/components/breadcrumb.d.ts.map +1 -1
  2. package/es/common/components/breadcrumb.js +0 -2
  3. package/es/common/components/carousel.d.ts.map +1 -1
  4. package/es/common/components/carousel.js +3 -2
  5. package/es/common/components/cart-dialog/cart-dialog-inner.js +2 -2
  6. package/es/common/components/collapsible/collapsible.d.ts.map +1 -1
  7. package/es/common/components/collapsible/collapsible.js +4 -3
  8. package/es/common/components/cross-selling-editor/editor.js +2 -2
  9. package/es/common/components/cross-selling-editor/esf/step-2.js +2 -2
  10. package/es/common/components/cross-selling-editor/override-trigger-form.js +2 -2
  11. package/es/common/components/cross-selling-editor/override.d.ts.map +1 -1
  12. package/es/common/components/cross-selling-editor/override.js +5 -2
  13. package/es/common/components/cross-selling-editor/overrides-list.d.ts.map +1 -1
  14. package/es/common/components/cross-selling-editor/overrides-list.js +6 -5
  15. package/es/common/components/cross-selling-editor/rules.js +2 -2
  16. package/es/common/components/cross-selling-editor/tester/tester.js +2 -2
  17. package/es/common/components/cross-selling-editor/tester/tunnel-offer.js +2 -2
  18. package/es/common/components/custom-contact-form/custom-contact-form.js +2 -2
  19. package/es/common/components/date-picker/calendar.d.ts.map +1 -1
  20. package/es/common/components/date-picker/calendar.js +4 -2
  21. package/es/common/components/editable-calendar/calendar-editor.js +2 -2
  22. package/es/common/components/editable-calendar/calendar-header.d.ts.map +1 -1
  23. package/es/common/components/editable-calendar/calendar-header.js +3 -2
  24. package/es/common/components/gesco-contact-form/gesco-contact-form.d.ts.map +1 -1
  25. package/es/common/components/gesco-contact-form/gesco-contact-form.js +3 -6
  26. package/es/common/components/image-with-loader/image-with-loader.d.ts +1 -1
  27. package/es/common/components/information/information.d.ts.map +1 -1
  28. package/es/common/components/information/information.js +5 -2
  29. package/es/common/components/plausible/plausible.d.ts.map +1 -1
  30. package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts.map +1 -1
  31. package/es/common/components/scrolling-carousel/scrolling-carousel.js +3 -2
  32. package/es/common/components/search-bar/search-bar.js +4 -3
  33. package/es/common/components/week-selector/week-selector.d.ts.map +1 -1
  34. package/es/common/components/week-selector/week-selector.js +9 -5
  35. package/es/esf/components/account-button/account-button.js +2 -2
  36. package/es/esf/components/booking-form/lesson.js +2 -2
  37. package/es/esf/components/booking-form/lessons.d.ts.map +1 -1
  38. package/es/esf/components/booking-form/lessons.js +4 -2
  39. package/es/esf/components/booking-form/personal-data.d.ts.map +1 -1
  40. package/es/esf/components/booking-form/personal-data.js +3 -2
  41. package/es/esf/components/booking-form/summary.d.ts.map +1 -1
  42. package/es/esf/components/booking-form/summary.js +4 -2
  43. package/es/esf/components/espace-prive/admin/config.js +2 -2
  44. package/es/esf/components/espace-prive/admin/link-row.d.ts.map +1 -1
  45. package/es/esf/components/espace-prive/admin/link-row.js +4 -2
  46. package/es/esf/components/espace-prive/cart-link.js +3 -3
  47. package/es/esf/components/instant-search/input.js +2 -2
  48. package/es/esf/components/instant-search/instant-search.js +2 -2
  49. package/es/esf/components/instant-search/links.d.ts.map +1 -1
  50. package/es/esf/components/instant-search/links.js +5 -1
  51. package/es/esf/components/instant-search/no-product.d.ts.map +1 -1
  52. package/es/esf/components/instant-search/products.js +2 -2
  53. package/es/esf/components/instant-search/results.js +2 -2
  54. package/es/esf/components/instructors-book/instructor.d.ts.map +1 -1
  55. package/es/esf/components/instructors-book/instructor.js +3 -2
  56. package/es/esf/components/instructors-book/sheet.d.ts.map +1 -1
  57. package/es/esf/components/instructors-book/sheet.js +6 -3
  58. package/es/esf/components/instructors-book/suggestions.js +2 -2
  59. package/es/esf/components/loyal-customers/components/customer-form.js +2 -2
  60. package/es/esf/components/loyal-customers/components/student-form.js +3 -3
  61. package/es/esf/components/loyal-customers/loyal-customers.js +2 -2
  62. package/es/esf/components/magic-box/booking.js +2 -2
  63. package/es/esf/components/magic-box/magic-box.d.ts.map +1 -1
  64. package/es/esf/components/magic-box/magic-box.js +3 -2
  65. package/es/esf/components/period-picker/controls.d.ts.map +1 -1
  66. package/es/esf/components/period-picker/controls.js +3 -2
  67. package/es/esf/components/period-picker/period-picker.js +2 -2
  68. package/es/future/components/msem-preset-editor/components/form.d.ts.map +1 -1
  69. package/es/future/components/msem-preset-editor/components/form.js +3 -2
  70. package/es/future/components/msem-preset-editor/components/widget-list-item.d.ts.map +1 -1
  71. package/es/future/components/msem-preset-editor/components/widget-list-item.js +7 -4
  72. package/es/future/components/msem-preset-editor/msem-preset-editor.js +2 -2
  73. package/es/future/components/plausible/plausible.d.ts.map +1 -1
  74. package/es/lbm/components/instant-search/facet-switch.d.ts.map +1 -1
  75. package/es/lbm/components/instant-search/faqs.d.ts.map +1 -1
  76. package/es/lbm/components/instant-search/faqs.js +3 -2
  77. package/es/lbm/components/instant-search/google-results.d.ts.map +1 -1
  78. package/es/lbm/components/instant-search/google-results.js +3 -2
  79. package/es/lbm/components/instant-search/links.d.ts.map +1 -1
  80. package/es/lbm/components/instant-search/links.js +8 -2
  81. package/es/lbm/components/instant-search/no-product.d.ts.map +1 -1
  82. package/es/lbm/components/instant-search/products.js +2 -2
  83. package/es/lbm/components/instant-search/search-input.js +2 -2
  84. package/es/lbm/components/instant-search/widgets/msem-widget.d.ts.map +1 -1
  85. package/es/lbm/components/instant-search/widgets/webcam.d.ts.map +1 -1
  86. package/es/lbm/components/instant-search/widgets/webcam.js +2 -2
  87. package/es/lbm/components/instant-search/widgets.d.ts.map +1 -1
  88. package/es/lbm/components/lumiplan/domain.js +2 -2
  89. package/es/lbm/components/lumiplan/i18n/translations.d.ts.map +1 -1
  90. package/es/lbm/components/lumiplan/opening.d.ts.map +1 -1
  91. package/es/lbm/components/lumiplan/opening.js +3 -2
  92. package/es/lbm/components/lumiplan/pois.js +2 -2
  93. package/es/lbm/components/lumiplan/print-button.d.ts.map +1 -1
  94. package/es/lbm/components/lumiplan/toolbar.d.ts.map +1 -1
  95. package/es/lbm/components/lumiplan/toolbar.js +2 -2
  96. package/es/lbm/components/lumiplan/weather/avalanche-risk.d.ts.map +1 -1
  97. package/es/lbm/components/lumiplan/weather/snow-data.d.ts.map +1 -1
  98. package/es/lbm/components/lumiplan/weather/weather-data.d.ts.map +1 -1
  99. package/es/lbm/components/lumiplan/weather/weather-icon.d.ts.map +1 -1
  100. package/es/lbm/components/lumiplan/weather/weather.d.ts.map +1 -1
  101. package/es/lbm/components/lumiplan/weather/weather.js +3 -2
  102. package/es/market-place/components/instant-search/google-results.d.ts.map +1 -1
  103. package/es/market-place/components/instant-search/google-results.js +3 -2
  104. package/es/market-place/components/instant-search/links.d.ts.map +1 -1
  105. package/es/market-place/components/instant-search/links.js +5 -1
  106. package/es/market-place/components/instant-search/products.d.ts.map +1 -1
  107. package/es/market-place/components/instant-search/products.js +7 -5
  108. package/es/market-place/components/instant-search/search-input.js +2 -2
  109. package/package.json +9 -9
@@ -6,7 +6,11 @@ import getConfig from "next/config";
6
6
  import Tooltip from "dt-design-system/es/tooltip";
7
7
  import Button from "dt-design-system/es/button";
8
8
  import Select from "dt-design-system/es/select";
9
- import * as Icons from "dt-design-system/es/icons";
9
+ import CalendarIcon from "dt-design-system/es/icons/calendar";
10
+ import MinusSquareIcon from "dt-design-system/es/icons/minus-square";
11
+ import DragHandleIcon from "dt-design-system/es/icons/drag-handle";
12
+ import ChevronsLeftIcon from "dt-design-system/es/icons/chevrons-left";
13
+ import ChevronsRightIcon from "dt-design-system/es/icons/chevrons-right";
10
14
  import * as Weeks from "./services/weeks";
11
15
  import styles from "./week-selector.module.css";
12
16
  const { publicRuntimeConfig } = getConfig();
@@ -92,7 +96,7 @@ export default function WeekSelector({ displayDate, setDisplayDate, cmsMode, })
92
96
  [styles.dragging]: dragging,
93
97
  });
94
98
  if (minimized) {
95
- return (_jsx(Tooltip, { content: "Afficher le s\u00E9lecteur de date", contentProps: { side: "right" }, children: _jsx(Button, { className: styles.minimizedButton, onClick: maximize, children: _jsx(Icons.Calendar, {}) }) }));
99
+ return (_jsx(Tooltip, { content: "Afficher le s\u00E9lecteur de date", contentProps: { side: "right" }, children: _jsx(Button, { className: styles.minimizedButton, onClick: maximize, children: _jsx(CalendarIcon, {}) }) }));
96
100
  }
97
101
  return (_jsx("div", { ref: constraintsRef, className: classes, children: _jsxs(motion.div, { animate: {
98
102
  boxShadow: "var(--ds-shadow-200, 0 5px 10px rgba(0, 0, 0, 0.12))",
@@ -100,11 +104,11 @@ export default function WeekSelector({ displayDate, setDisplayDate, cmsMode, })
100
104
  cursor: "grabbing",
101
105
  scale: 1.02,
102
106
  boxShadow: "var(--ds-shadow-400, 0 30px 60px rgba(0, 0, 0, 0.12))",
103
- }, onDragStart: startDragging, onDragEnd: stopDragging, children: [_jsxs("div", { className: styles.header, children: [_jsx(Button, { variant: "link", className: styles.dragHandle, onMouseEnter: enableDrag, onMouseMove: enableDrag, onMouseLeave: disableDrag, children: _jsx(Icons.DragHandle, {}) }), _jsx("div", { className: styles.title, children: "Pr\u00E9visualisation au" }), _jsx("div", { className: styles.selectedDate, children: Weeks.weekToDate(displayDate, end, yearOffset).toLocaleDateString("fr-FR", {
107
+ }, onDragStart: startDragging, onDragEnd: stopDragging, children: [_jsxs("div", { className: styles.header, children: [_jsx(Button, { variant: "link", className: styles.dragHandle, onMouseEnter: enableDrag, onMouseMove: enableDrag, onMouseLeave: disableDrag, children: _jsx(DragHandleIcon, {}) }), _jsx("div", { className: styles.title, children: "Pr\u00E9visualisation au" }), _jsx("div", { className: styles.selectedDate, children: Weeks.weekToDate(displayDate, end, yearOffset).toLocaleDateString("fr-FR", {
104
108
  day: "2-digit",
105
109
  month: "2-digit",
106
110
  year: "numeric",
107
- }) }), _jsx(Select, { className: styles.seasonSelect, label: "Saison", options: seasons, value: yearOffset, onValueChange: (value) => setYearOffset(Number(value)), compact: true }), _jsx(Tooltip, { content: "R\u00E9duire", children: _jsx(Button, { variant: "transparent", onClick: minimize, children: _jsx(Icons.MinusSquare, {}) }) })] }), _jsxs("div", { className: styles.inner, children: [_jsx("div", { ref: scrollingAreaRef, className: styles.items, children: weeks.map((week) => {
111
+ }) }), _jsx(Select, { className: styles.seasonSelect, label: "Saison", options: seasons, value: yearOffset, onValueChange: (value) => setYearOffset(Number(value)), compact: true }), _jsx(Tooltip, { content: "R\u00E9duire", children: _jsx(Button, { variant: "transparent", onClick: minimize, children: _jsx(MinusSquareIcon, {}) }) })] }), _jsxs("div", { className: styles.inner, children: [_jsx("div", { ref: scrollingAreaRef, className: styles.items, children: weeks.map((week) => {
108
112
  const prevDate = Weeks.weekToDate(week - 1, end, yearOffset);
109
113
  const currDate = Weeks.weekToDate(week, end, yearOffset);
110
114
  const nextDate = Weeks.weekToDate(week + 1, end, yearOffset);
@@ -130,5 +134,5 @@ export default function WeekSelector({ displayDate, setDisplayDate, cmsMode, })
130
134
  setDisplayDate(week);
131
135
  };
132
136
  return (_jsxs("div", { className: weekClasses, children: [_jsx(Button, { className: styles.itemButton, onClick: selectWeek }), _jsxs("div", { className: styles.itemDate, children: [_jsx("div", { className: styles.itemDateFrom, children: Weeks.formatShort(currDate) }), isLast && (_jsx("div", { className: styles.itemDateTo, children: Weeks.formatShort(nextDate) }))] }), showMonth && (_jsxs("span", { className: styles.itemMonth, children: [formattedMonth, " ", showYear && (_jsx("b", { className: styles.itemYear, children: currYear }))] }))] }, week));
133
- }) }), _jsxs("div", { className: styles.controls, children: [_jsx(Button, { className: styles.control, variant: "secondary", "data-direction": "prev", onClick: scrollLeft, children: _jsx(Icons.ChevronsLeft, {}) }), _jsx(Button, { className: styles.control, variant: "secondary", "data-direction": "next", onClick: scrollRight, children: _jsx(Icons.ChevronsRight, {}) })] })] })] }) }));
137
+ }) }), _jsxs("div", { className: styles.controls, children: [_jsx(Button, { className: styles.control, variant: "secondary", "data-direction": "prev", onClick: scrollLeft, children: _jsx(ChevronsLeftIcon, {}) }), _jsx(Button, { className: styles.control, variant: "secondary", "data-direction": "next", onClick: scrollRight, children: _jsx(ChevronsRightIcon, {}) })] })] })] }) }));
134
138
  }
@@ -3,13 +3,13 @@ import * as React from "react";
3
3
  import classNames from "classnames";
4
4
  import Link from "ublo/link";
5
5
  import Button from "dt-design-system/es/button";
6
- import * as Icons from "dt-design-system/es/icons";
6
+ import UserIcon from "dt-design-system/es/icons/user";
7
7
  import styles from "./account-button.module.css";
8
8
  const AccountButton = React.forwardRef(({ item, className, showLabel, compact, ...props }, ref) => {
9
9
  const { name, path, shortTitle, title } = item;
10
10
  const classes = classNames(styles.button, className, {
11
11
  [styles.compact]: compact,
12
12
  });
13
- return (_jsxs(Button, { href: path, tag: Link, variant: "transparent", className: classes, "aria-label": shortTitle || title, compact: compact, ref: ref, ...props, children: [_jsx(Icons.User, { className: styles.icon }), showLabel && (_jsx("span", { className: styles.label, dangerouslySetInnerHTML: { __html: shortTitle || title } }))] }, name));
13
+ return (_jsxs(Button, { href: path, tag: Link, variant: "transparent", className: classes, "aria-label": shortTitle || title, compact: compact, ref: ref, ...props, children: [_jsx(UserIcon, { className: styles.icon }), showLabel && (_jsx("span", { className: styles.label, dangerouslySetInnerHTML: { __html: shortTitle || title } }))] }, name));
14
14
  });
15
15
  export default AccountButton;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import classNames from "classnames";
4
4
  import Button from "dt-design-system/es/button";
5
- import * as Icons from "dt-design-system/es/icons";
5
+ import BinIcon from "dt-design-system/es/icons/bin";
6
6
  import Field from "./field";
7
7
  import { message } from "./messages";
8
8
  import css from "./lesson.module.css";
@@ -21,6 +21,6 @@ const Lesson = ({ lang, index, fields, lessons, setLessons }) => {
21
21
  const classes = classNames(css.root, {
22
22
  [css.rootRemoving]: removing,
23
23
  });
24
- return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.title, children: [message(lang, "lesson"), " n\u00B0", index + 1, _jsxs(Button, { onClick: removeLesson, children: [message(lang, "remove"), _jsx(Icons.Bin, {})] })] }), _jsx("div", { className: css.inner, children: Object.keys(groupLessons).map((key, i) => (_jsxs(React.Fragment, { children: [_jsx(Field, { lang: lang, index: index, name: key, field: groupLessons[key], data: lessons, setData: setLessons }, `${key}-${index}`), key === "birthDate" && _jsx("hr", {})] }, i))) })] }));
24
+ return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.title, children: [message(lang, "lesson"), " n\u00B0", index + 1, _jsxs(Button, { onClick: removeLesson, children: [message(lang, "remove"), _jsx(BinIcon, {})] })] }), _jsx("div", { className: css.inner, children: Object.keys(groupLessons).map((key, i) => (_jsxs(React.Fragment, { children: [_jsx(Field, { lang: lang, index: index, name: key, field: groupLessons[key], data: lessons, setData: setLessons }, `${key}-${index}`), key === "birthDate" && _jsx("hr", {})] }, i))) })] }));
25
25
  };
26
26
  export default Lesson;
@@ -1 +1 @@
1
- {"version":3,"file":"lessons.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/booking-form/lessons.js"],"names":[],"mappings":";AASA;;;;;;;;;4CAiFC"}
1
+ {"version":3,"file":"lessons.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/booking-form/lessons.js"],"names":[],"mappings":";AAWA;;;;;;;;;4CAiFC"}
@@ -1,7 +1,9 @@
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 * as Icons from "dt-design-system/es/icons";
4
+ import InfoIcon from "dt-design-system/es/icons/info";
5
+ import PlusIcon from "dt-design-system/es/icons/plus";
6
+ import ChevronRightIcon from "dt-design-system/es/icons/chevron-right";
5
7
  import Lesson from "./lesson";
6
8
  import { message } from "./messages";
7
9
  import { validate } from "./utils";
@@ -45,6 +47,6 @@ const Lessons = ({ lang, fields, lessons, setLessons, setStep, personalData, set
45
47
  const title = `${lessons.length} ${lessons.length === 1
46
48
  ? message(lang, "your-lesson")
47
49
  : message(lang, "your-lessons")}`;
48
- return (_jsxs("div", { className: css.root, children: [lessons.length === 0 && (_jsxs("div", { className: css.placeholder, children: [_jsx(Icons.Info, {}), message(lang, "lessons-placeholder")] })), lessons.length !== 0 && _jsx("div", { className: css.title, children: title }), lessons.map((lesson, i) => (_jsx(Lesson, { index: i, lang: lang, fields: fields, lesson: lesson, lessons: lessons, setLessons: setLessons }, i))), _jsxs("div", { className: css.buttons, children: [_jsxs(Button, { onClick: addLesson, children: [_jsx(Icons.Plus, {}), message(lang, "add-lesson")] }), _jsxs(Button, { disabled: step1Valid ? undefined : true, onClick: nextStep, children: [message(lang, "next-step"), _jsx(Icons.ChevronRight, {})] })] })] }));
50
+ return (_jsxs("div", { className: css.root, children: [lessons.length === 0 && (_jsxs("div", { className: css.placeholder, children: [_jsx(InfoIcon, {}), message(lang, "lessons-placeholder")] })), lessons.length !== 0 && _jsx("div", { className: css.title, children: title }), lessons.map((lesson, i) => (_jsx(Lesson, { index: i, lang: lang, fields: fields, lesson: lesson, lessons: lessons, setLessons: setLessons }, i))), _jsxs("div", { className: css.buttons, children: [_jsxs(Button, { onClick: addLesson, children: [_jsx(PlusIcon, {}), message(lang, "add-lesson")] }), _jsxs(Button, { disabled: step1Valid ? undefined : true, onClick: nextStep, children: [message(lang, "next-step"), _jsx(ChevronRightIcon, {})] })] })] }));
49
51
  };
50
52
  export default Lessons;
@@ -1 +1 @@
1
- {"version":3,"file":"personal-data.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/booking-form/personal-data.js"],"names":[],"mappings":";AASA;;;;;;;4CAoDC"}
1
+ {"version":3,"file":"personal-data.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/booking-form/personal-data.js"],"names":[],"mappings":";AAUA;;;;;;;4CAoDC"}
@@ -2,7 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import Field from "./field";
4
4
  import Button from "dt-design-system/es/button";
5
- import * as Icons from "dt-design-system/es/icons";
5
+ import ChevronLeftIcon from "dt-design-system/es/chevron-left";
6
+ import ChevronRightIcon from "dt-design-system/es/chevron-right";
6
7
  import { message } from "./messages";
7
8
  import useStay from "./hooks/use-stay";
8
9
  import { STEPS } from "./data";
@@ -21,6 +22,6 @@ const PersonalData = ({ lang, fields, personalData, setPersonalData, setStep, st
21
22
  return;
22
23
  setPersonalData({ ...personalData, stayFrom: stay.from, stayTo: stay.to });
23
24
  }, [personalData, setPersonalData, stay]);
24
- return (_jsxs("div", { className: css.root, children: [_jsx("div", { className: css.title, children: message(lang, "personal-data") }), _jsx("div", { className: css.inner, children: Object.keys(data).map((key) => (_jsx(Field, { lang: lang, index: "step-2", name: key, field: data[key], data: personalData, setData: setPersonalData }, `${key}`))) }), _jsxs("div", { className: css.buttons, children: [_jsxs(Button, { onClick: previousStep, children: [_jsx(Icons.ChevronLeft, {}), message(lang, "previous-step")] }), _jsxs(Button, { disabled: step2Valid ? undefined : true, onClick: nextStep, children: [message(lang, "next-step"), _jsx(Icons.ChevronRight, {})] })] })] }));
25
+ return (_jsxs("div", { className: css.root, children: [_jsx("div", { className: css.title, children: message(lang, "personal-data") }), _jsx("div", { className: css.inner, children: Object.keys(data).map((key) => (_jsx(Field, { lang: lang, index: "step-2", name: key, field: data[key], data: personalData, setData: setPersonalData }, `${key}`))) }), _jsxs("div", { className: css.buttons, children: [_jsxs(Button, { onClick: previousStep, children: [_jsx(ChevronLeftIcon, {}), message(lang, "previous-step")] }), _jsxs(Button, { disabled: step2Valid ? undefined : true, onClick: nextStep, children: [message(lang, "next-step"), _jsx(ChevronRightIcon, {})] })] })] }));
25
26
  };
26
27
  export default PersonalData;
@@ -1 +1 @@
1
- {"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/booking-form/summary.js"],"names":[],"mappings":";AA+BA;;;;;;;;4CAuHC"}
1
+ {"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/booking-form/summary.js"],"names":[],"mappings":";AAiCA;;;;;;;;4CAuHC"}
@@ -3,7 +3,9 @@ import * as React from "react";
3
3
  import classNames from "classnames";
4
4
  import { useSnackbar } from "dt-design-system/es/snackbar";
5
5
  import Button from "dt-design-system/es/button";
6
- import * as Icons from "dt-design-system/es/icons";
6
+ import ChevronLeftIcon from "dt-design-system/es/icons/chevron-left";
7
+ import ChevronsLeftIcon from "dt-design-system/es/icons/chevrons-left";
8
+ import MailIcon from "dt-design-system/es/icons/mail";
7
9
  import { message } from "./messages";
8
10
  import { send, calculateAge, formatDate } from "./utils";
9
11
  import { gescoFields, STEPS } from "./data";
@@ -67,6 +69,6 @@ const Summary = ({ lang, fields, lessons, personalData, setStep, config, clearFo
67
69
  };
68
70
  return _jsx(Tag, { ...props }, key);
69
71
  })] }, i));
70
- })] }), _jsxs("div", { className: css.buttons, children: [_jsxs(Button, { onClick: previousStep, children: [_jsx(Icons.ChevronLeft, {}), message(lang, "previous-step")] }), _jsxs(Button, { onClick: goToStep1, children: [_jsx(Icons.ChevronsLeft, {}), message(lang, "add-lesson")] }), _jsxs(Button, { onClick: submit, children: [_jsx(Icons.Mail, {}), message(lang, "send")] })] })] }));
72
+ })] }), _jsxs("div", { className: css.buttons, children: [_jsxs(Button, { onClick: previousStep, children: [_jsx(ChevronLeftIcon, {}), message(lang, "previous-step")] }), _jsxs(Button, { onClick: goToStep1, children: [_jsx(ChevronsLeftIcon, {}), message(lang, "add-lesson")] }), _jsxs(Button, { onClick: submit, children: [_jsx(MailIcon, {}), message(lang, "send")] })] })] }));
71
73
  };
72
74
  export default Summary;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import * as React from "react";
3
3
  import Button from "dt-design-system/es/button";
4
4
  import Tooltip from "dt-design-system/es/tooltip";
5
- import * as Icons from "dt-design-system/es/icons";
5
+ import ChevronDownIcon from "dt-design-system/es/icons/chevron-down";
6
6
  import ConfigField from "./config-field";
7
7
  import MailTemplate from "./mail-template";
8
8
  import Message from "../message";
@@ -13,5 +13,5 @@ export default function Config() {
13
13
  setIsOpened((prev) => !prev);
14
14
  };
15
15
  const message = isOpened ? "hide-config" : "show-config";
16
- return (_jsxs("div", { className: styles.config, "data-opened": isOpened, children: [_jsx("div", { className: styles.head, children: _jsx(Tooltip, { content: _jsx(Message, { id: message }), children: _jsxs(Button, { className: styles.button, variant: "transparent", onClick: toggleOpened, children: [_jsx("h1", { className: styles.title, children: "Configuration" }), _jsx(Icons.ChevronDown, {})] }) }) }), isOpened && (_jsxs(_Fragment, { children: [_jsx(ConfigField, {}), _jsx("div", { className: styles.divider }), _jsx(ConfigField, { isReplyTo: true }), _jsx("div", { className: styles.divider }), _jsx(MailTemplate, {})] }))] }));
16
+ return (_jsxs("div", { className: styles.config, "data-opened": isOpened, children: [_jsx("div", { className: styles.head, children: _jsx(Tooltip, { content: _jsx(Message, { id: message }), children: _jsxs(Button, { className: styles.button, variant: "transparent", onClick: toggleOpened, children: [_jsx("h1", { className: styles.title, children: "Configuration" }), _jsx(ChevronDownIcon, {})] }) }) }), isOpened && (_jsxs(_Fragment, { children: [_jsx(ConfigField, {}), _jsx("div", { className: styles.divider }), _jsx(ConfigField, { isReplyTo: true }), _jsx("div", { className: styles.divider }), _jsx(MailTemplate, {})] }))] }));
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"link-row.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/espace-prive/admin/link-row.js"],"names":[],"mappings":"AAUA;;;;;4CAqEC"}
1
+ {"version":3,"file":"link-row.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/espace-prive/admin/link-row.js"],"names":[],"mappings":"AAYA;;;;;4CAqEC"}
@@ -4,7 +4,9 @@ import { useUbloContext } from "ublo/with-ublo";
4
4
  import Tooltip from "dt-design-system/es/tooltip";
5
5
  import Button from "dt-design-system/es/button";
6
6
  import Dialog from "dt-design-system/es/dialog";
7
- import * as Icons from "dt-design-system/es/icons";
7
+ import CheckIcon from "dt-design-system/es/icons/check";
8
+ import CopyIcon from "dt-design-system/es/icons/copy";
9
+ import TrashIcon from "dt-design-system/es/icons/trash";
8
10
  import Message, { message } from "../message";
9
11
  import { constructLink } from "../utils/construct-link";
10
12
  import styles from "./link-row.module.css";
@@ -25,5 +27,5 @@ export default function LinkRow({ path, email, hash, onDelete }) {
25
27
  await onDelete();
26
28
  toggleDialog();
27
29
  };
28
- return (_jsxs("tr", { className: styles.row, children: [_jsx("th", { className: styles.cell, scope: "row", children: email }), _jsx("td", { className: styles.cell, children: _jsxs("div", { className: styles.linkWrapper, children: [_jsx("span", { className: styles.linkText, children: link }), _jsx(Tooltip, { content: message(lang, "hover-copy-button"), children: _jsx(Button, { variant: copySuccess ? "success" : "transparent", onClick: copyLink, children: copySuccess ? _jsx(Icons.Check, {}) : _jsx(Icons.Copy, {}) }) })] }) }), _jsx("td", { className: styles.cell, children: _jsx(Tooltip, { content: message(lang, "delete-button"), children: _jsx(Button, { className: styles.button, variant: "danger", onClick: toggleDialog, children: _jsx(Icons.Trash, {}) }) }) }), _jsxs(Dialog, { className: styles.dialog, isOpened: isDialogOpen, close: toggleDialog, showCloseButton: false, showAsModal: false, children: [_jsx(Message, { id: "confirm-delete-link" }), _jsxs("div", { className: styles.buttons, children: [_jsx(Button, { variant: "secondary", onClick: toggleDialog, children: _jsx(Message, { id: "cancel-button" }) }), _jsx(Button, { variant: "danger", onClick: confirmDelete, children: _jsx(Message, { id: "delete-button" }) })] })] })] }));
30
+ return (_jsxs("tr", { className: styles.row, children: [_jsx("th", { className: styles.cell, scope: "row", children: email }), _jsx("td", { className: styles.cell, children: _jsxs("div", { className: styles.linkWrapper, children: [_jsx("span", { className: styles.linkText, children: link }), _jsx(Tooltip, { content: message(lang, "hover-copy-button"), children: _jsx(Button, { variant: copySuccess ? "success" : "transparent", onClick: copyLink, children: copySuccess ? _jsx(CheckIcon, {}) : _jsx(CopyIcon, {}) }) })] }) }), _jsx("td", { className: styles.cell, children: _jsx(Tooltip, { content: message(lang, "delete-button"), children: _jsx(Button, { className: styles.button, variant: "danger", onClick: toggleDialog, children: _jsx(TrashIcon, {}) }) }) }), _jsxs(Dialog, { className: styles.dialog, isOpened: isDialogOpen, close: toggleDialog, showCloseButton: false, showAsModal: false, children: [_jsx(Message, { id: "confirm-delete-link" }), _jsxs("div", { className: styles.buttons, children: [_jsx(Button, { variant: "secondary", onClick: toggleDialog, children: _jsx(Message, { id: "cancel-button" }) }), _jsx(Button, { variant: "danger", onClick: confirmDelete, children: _jsx(Message, { id: "delete-button" }) })] })] })] }));
29
31
  }
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import Link from "ublo/link";
3
- import * as Icons from "dt-design-system/es/icons";
4
- import Tooltip from "dt-design-system/es/tooltip";
5
3
  import { useUbloContext } from "ublo/with-ublo";
4
+ import Tooltip from "dt-design-system/es/tooltip";
5
+ import ShoppingCartIcon from "dt-design-system/es/icons/shopping-cart";
6
6
  import { message } from "./message";
7
7
  import { useContext } from "./context";
8
8
  import styles from "./cart-link.module.css";
@@ -10,5 +10,5 @@ export default function CartLink() {
10
10
  const { lang } = useUbloContext();
11
11
  const { partnerID } = useContext();
12
12
  const href = `/espace-prive/${partnerID}/panier`;
13
- return (_jsx(Tooltip, { content: message(lang, "go-to-cart"), children: _jsx(Link, { href: href, className: styles.link, children: _jsx(Icons.ShoppingCart, {}) }) }));
13
+ return (_jsx(Tooltip, { content: message(lang, "go-to-cart"), children: _jsx(Link, { href: href, className: styles.link, children: _jsx(ShoppingCartIcon, {}) }) }));
14
14
  }
@@ -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 * as Icons from "dt-design-system/es/icons";
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 "./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(Icons.Cross, {}) })] }));
48
+ }) })] })), _jsx(Button, { variant: "transparent", className: css.close, onClick: () => closeSearch(), children: _jsx(CrossIcon, {}) })] }));
49
49
  }
50
50
  function getSuggestions(suggestions = {}) {
51
51
  return {
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import classNames from "classnames";
4
4
  import Router from "next/router";
5
5
  import Button from "dt-design-system/es/button";
6
- import * as Icons from "dt-design-system/es/icons";
6
+ import SearchIcon from "dt-design-system/es/icons/search";
7
7
  import Dialog from "dt-design-system/es/dialog";
8
8
  import PeriodPicker from "../period-picker";
9
9
  import Input from "./input";
@@ -83,5 +83,5 @@ export default function InstantSearch({ lang, suggestions, className, ubloContex
83
83
  window.removeEventListener("keydown", handleKeyPresses);
84
84
  };
85
85
  }, [handleKeyPresses]);
86
- return (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "transparent", className: classes, onClick: openSearch, children: _jsx(Icons.Search, { className: css.searchIcon }) }), _jsxs(Dialog, { className: css.dialog, isOpened: opened, showCloseButton: false, close: () => closeSearch(), container: "body", children: [_jsx(Input, { lang: lang, text: text, setText: setText, closeSearch: closeSearch, loading: search.loading === true, suggestions: suggestions }), _jsx(Results, { lang: lang, text: text, results: search.result, weekNumber: weekNumber, openPeriodPicker: openPeriodPicker, loading: search.loading === true && search.result === undefined, sendPlausibleGoal: sendPlausibleGoal })] }), _jsx(Dialog, { isOpened: periodPickerOpened, close: closePeriodPicker, container: "body", children: _jsx(PeriodPicker, { onChange: updateWeek, ubloContext: ubloContext }) })] }));
86
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "transparent", className: classes, onClick: openSearch, children: _jsx(SearchIcon, { className: css.searchIcon }) }), _jsxs(Dialog, { className: css.dialog, isOpened: opened, showCloseButton: false, close: () => closeSearch(), container: "body", children: [_jsx(Input, { lang: lang, text: text, setText: setText, closeSearch: closeSearch, loading: search.loading === true, suggestions: suggestions }), _jsx(Results, { lang: lang, text: text, results: search.result, weekNumber: weekNumber, openPeriodPicker: openPeriodPicker, loading: search.loading === true && search.result === undefined, sendPlausibleGoal: sendPlausibleGoal })] }), _jsx(Dialog, { isOpened: periodPickerOpened, close: closePeriodPicker, container: "body", children: _jsx(PeriodPicker, { onChange: updateWeek, ubloContext: ubloContext }) })] }));
87
87
  }
@@ -1 +1 @@
1
- {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instant-search/links.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,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;IACjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,IAAI,EACJ,UAAU,EACV,KAAK,EACL,gBAAgB,EAChB,OAAO,EACP,iBAAiB,GAClB,EAAE,KAAK,2CAmEP"}
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instant-search/links.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,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;IACjB,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,2CAmEP"}
@@ -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";
4
+ import FileText from "dt-design-system/es/icons/file-text";
5
+ import Info from "dt-design-system/es/icons/info";
6
+ import Question from "dt-design-system/es/icons/question";
7
+ import User from "dt-design-system/es/icons/user";
5
8
  import * as Ripple from "dt-design-system/es/ripple";
6
9
  import * as Utils from "./services/utils";
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":"no-product.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instant-search/no-product.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,KAAK,2CA2FrD"}
1
+ {"version":3,"file":"no-product.d.ts","sourceRoot":"","sources":["../../../../src/esf/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"}
@@ -3,7 +3,7 @@ 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 * as Icons from "dt-design-system/es/icons";
6
+ import ArrowDownIcon from "dt-design-system/es/icons/arrow-down";
7
7
  import * as Ripple from "dt-design-system/es/ripple";
8
8
  import * as Utils from "./services/utils";
9
9
  import message from "./services/messages";
@@ -38,5 +38,5 @@ export default function Products({ lang, products, weekNumber, loading, sendPlau
38
38
  const showPrice = price !== undefined && weekNumber !== null;
39
39
  const imagePlaceholderStategy = imagePlaceholder ? "blur" : "empty";
40
40
  return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, 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));
41
- }), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})] }) }))] }));
41
+ }), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(ArrowDownIcon, {})] }) }))] }));
42
42
  }
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import * as React from "react";
3
3
  import getConfig from "next/config";
4
4
  import Button from "dt-design-system/es/button";
5
- import * as Icons from "dt-design-system/es/icons";
5
+ import CalendarIcon from "dt-design-system/es/icons/calendar";
6
6
  import Links from "./links";
7
7
  import Products from "./products";
8
8
  import * as Dates from "./services/dates";
@@ -37,5 +37,5 @@ export default function Results({ lang, text, results, weekNumber, openPeriodPic
37
37
  instructors.length ||
38
38
  filteredFaqs.length ||
39
39
  information.length);
40
- return (_jsx("div", { className: css.results, children: (loading || text.length > 0) && (_jsxs("div", { className: css.inner, children: [_jsxs("div", { ref: ref, className: css.left, children: [_jsx(Links, { linksTitle: message(lang, "pages"), icon: "FileText", links: pages, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "instructors"), icon: "User", links: instructors, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "faqs"), icon: "Question", links: filteredFaqs, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "information"), icon: "Info", links: information, loading: loading, sendPlausibleGoal: sendPlausibleGoal, pageTitleAsTitle: true })] }), _jsxs("div", { className: css.right, children: [!loading && products.length > 0 && weekSystemEnabled && (_jsx(_Fragment, { children: showProductsTitle ? (_jsxs("div", { className: css.resultsWithWeekTitle, children: [message(lang, "productTitleWithWeek"), Dates.weekToLongDate(weekNumber, season.end, season.forceSeasonSwitch), _jsxs(Button, { onClick: openPeriodPicker, children: [_jsx(Icons.Calendar, {}), message(lang, "updateWeek")] })] })) : (_jsxs("div", { className: css.resultsWithoutWeekTitle, children: [message(lang, "productTitleWithoutWeek"), _jsxs(Button, { onClick: openPeriodPicker, children: [_jsx(Icons.Calendar, {}), message(lang, "chooseWeek")] })] })) })), _jsx(Products, { lang: lang, products: products, weekNumber: weekNumber, loading: loading, sendPlausibleGoal: sendPlausibleGoal, otherResultsRef: ref, isOtherResultsEmpty: isOtherResultsEmpty })] })] })) }));
40
+ return (_jsx("div", { className: css.results, children: (loading || text.length > 0) && (_jsxs("div", { className: css.inner, children: [_jsxs("div", { ref: ref, className: css.left, children: [_jsx(Links, { linksTitle: message(lang, "pages"), icon: "FileText", links: pages, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "instructors"), icon: "User", links: instructors, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "faqs"), icon: "Question", links: filteredFaqs, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "information"), icon: "Info", links: information, loading: loading, sendPlausibleGoal: sendPlausibleGoal, pageTitleAsTitle: true })] }), _jsxs("div", { className: css.right, children: [!loading && products.length > 0 && weekSystemEnabled && (_jsx(_Fragment, { children: showProductsTitle ? (_jsxs("div", { className: css.resultsWithWeekTitle, children: [message(lang, "productTitleWithWeek"), Dates.weekToLongDate(weekNumber, season.end, season.forceSeasonSwitch), _jsxs(Button, { onClick: openPeriodPicker, children: [_jsx(CalendarIcon, {}), message(lang, "updateWeek")] })] })) : (_jsxs("div", { className: css.resultsWithoutWeekTitle, children: [message(lang, "productTitleWithoutWeek"), _jsxs(Button, { onClick: openPeriodPicker, children: [_jsx(CalendarIcon, {}), message(lang, "chooseWeek")] })] })) })), _jsx(Products, { lang: lang, products: products, weekNumber: weekNumber, loading: loading, sendPlausibleGoal: sendPlausibleGoal, otherResultsRef: ref, isOtherResultsEmpty: isOtherResultsEmpty })] })] })) }));
41
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"instructor.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/instructor.js"],"names":[],"mappings":"AAWA;;;;;;4CA2FC"}
1
+ {"version":3,"file":"instructor.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/instructor.js"],"names":[],"mappings":"AAYA;;;;;;4CA2FC"}
@@ -4,7 +4,8 @@ import Image from "next/image";
4
4
  import Link from "ublo/link";
5
5
  import { useUbloContext } from "ublo/with-ublo";
6
6
  import Dialog from "dt-design-system/es/dialog";
7
- import * as Icons from "dt-design-system/es/icons";
7
+ import LoaderIcon from "dt-design-system/es/icons/loader2";
8
+ import UserIcon from "dt-design-system/es/icons/user";
8
9
  import Sheet from "./sheet";
9
10
  import * as Utils from "./utils";
10
11
  import prefixes from "./prefixes";
@@ -40,5 +41,5 @@ export default function Instructor({ instructor, formFields, formSendFunction, t
40
41
  stopLoading();
41
42
  currentTarget.onerror = null;
42
43
  };
43
- return (_jsxs(_Fragment, { children: [_jsxs(Tag, { className: css.card, ...props, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(Icons.Loader2, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: "170", height: "220" })] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(Icons.User, { className: css.imagePlaceholderIcon }) })) }), _jsx("div", { className: css.information, children: _jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [Utils.formatNames(prenom), " "] }), _jsx("span", { className: css.lastName, children: Utils.formatNames(nom) })] }) })] }), _jsx(Dialog, { isOpened: popupOpened, close: closePopup, onClose: closePopup, showAsModal: false, children: _jsx("div", { className: css.dialogContent, children: _jsx(Sheet, { instructor: instructor, formFields: formFields, formSendFunction: formSendFunction, popup: true }) }) })] }));
44
+ return (_jsxs(_Fragment, { children: [_jsxs(Tag, { className: css.card, ...props, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(LoaderIcon, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: "170", height: "220" })] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(UserIcon, { className: css.imagePlaceholderIcon }) })) }), _jsx("div", { className: css.information, children: _jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [Utils.formatNames(prenom), " "] }), _jsx("span", { className: css.lastName, children: Utils.formatNames(nom) })] }) })] }), _jsx(Dialog, { isOpened: popupOpened, close: closePopup, onClose: closePopup, showAsModal: false, children: _jsx("div", { className: css.dialogContent, children: _jsx(Sheet, { instructor: instructor, formFields: formFields, formSendFunction: formSendFunction, popup: true }) }) })] }));
44
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAaA;;;;;;4CA2KC"}
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAgBA;;;;;;4CA2KC"}
@@ -4,8 +4,11 @@ import Image from "next/image";
4
4
  import classNames from "classnames";
5
5
  import Link from "ublo/link";
6
6
  import { useUbloContext } from "ublo/with-ublo";
7
+ import ChevronLeftIcon from "dt-design-system/es/icons/chevron-left";
8
+ import ChevronRightIcon from "dt-design-system/es/icons/chevron-right";
9
+ import LoaderIcon from "dt-design-system/es/icons/loader2";
10
+ import UserIcon from "dt-design-system/es/icons/user";
7
11
  import CustomContactForm from "../../../common/components/custom-contact-form";
8
- import * as Icons from "dt-design-system/es/icons";
9
12
  import * as Utils from "./utils";
10
13
  import prefixes from "./prefixes";
11
14
  import { message } from "./messages";
@@ -31,7 +34,7 @@ export default function Sheet({ instructor, popup, formFields, formSendFunction,
31
34
  const formattedFirstname = Utils.formatNames(prenom);
32
35
  const formattedLastname = Utils.formatNames(nom);
33
36
  const key = `${lang}-${path}${prenom}-${nom}`;
34
- return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.content, children: [!popup && bookUrl && (_jsxs(Link, { href: bookUrl, className: classNames(buttonCss.button, buttonCss.link), children: [_jsx(Icons.ChevronLeft, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(Icons.Loader2, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: "200", height: "280" }, uri)] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(Icons.User, { className: css.imagePlaceholderIcon }) })) }), _jsxs("div", { className: css.information, children: [_jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [formattedFirstname, " "] }), _jsx("span", { className: css.lastName, children: formattedLastname })] }), disciplines && (_jsxs("div", { className: css.activities, children: [_jsx("div", { className: css.activitiesTitle, children: message(lang, "activities") }), _jsx("div", { className: css.activitiesList, children: disciplines.map((discipline, i) => {
37
+ return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.content, children: [!popup && bookUrl && (_jsxs(Link, { href: bookUrl, className: classNames(buttonCss.button, buttonCss.link), children: [_jsx(ChevronLeftIcon, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(LoaderIcon, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: "200", height: "280" }, uri)] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(UserIcon, { className: css.imagePlaceholderIcon }) })) }), _jsxs("div", { className: css.information, children: [_jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [formattedFirstname, " "] }), _jsx("span", { className: css.lastName, children: formattedLastname })] }), disciplines && (_jsxs("div", { className: css.activities, children: [_jsx("div", { className: css.activitiesTitle, children: message(lang, "activities") }), _jsx("div", { className: css.activitiesList, children: disciplines.map((discipline, i) => {
35
38
  const { code, label } = discipline;
36
39
  const length = disciplines.length;
37
40
  return (_jsxs("span", { className: css.activity, children: [_jsx("span", { children: label }), i < length - 2
@@ -47,5 +50,5 @@ export default function Sheet({ instructor, popup, formFields, formSendFunction,
47
50
  __html: popup
48
51
  ? Utils.truncate(Utils.sanitizeHTML(description))
49
52
  : description,
50
- } }), popup && (_jsxs(Link, { href: `${prefixes[prefixLang]}/${uri}`, className: classNames(buttonCss.button, buttonCss.secondary), target: "_blank", children: [message(lang, "see-more"), _jsx(Icons.ChevronRight, {})] }))] }))] }), formFields && formSendFunction && (_jsxs("div", { className: css.aside, children: [_jsxs("div", { className: css.formTitle, children: [message(lang, "contact"), " ", formattedFirstname, " ", formattedLastname, message(lang, "question-mark")] }), _jsx(CustomContactForm, { fields: formFields, className: css.form, innerClassName: css.formInner, customSend: formSendFunction(prenom, nom) })] }))] }, key));
53
+ } }), popup && (_jsxs(Link, { href: `${prefixes[prefixLang]}/${uri}`, className: classNames(buttonCss.button, buttonCss.secondary), target: "_blank", children: [message(lang, "see-more"), _jsx(ChevronRightIcon, {})] }))] }))] }), formFields && formSendFunction && (_jsxs("div", { className: css.aside, children: [_jsxs("div", { className: css.formTitle, children: [message(lang, "contact"), " ", formattedFirstname, " ", formattedLastname, message(lang, "question-mark")] }), _jsx(CustomContactForm, { fields: formFields, className: css.form, innerClassName: css.formInner, customSend: formSendFunction(prenom, nom) })] }))] }, key));
51
54
  }
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { useUbloContext } from "ublo/with-ublo";
4
4
  import Button from "dt-design-system/es/button";
5
- import * as Icons from "dt-design-system/es/icons";
5
+ import ArrowRightIcon from "dt-design-system/es/icons/arrow-right";
6
6
  import List from "./list";
7
7
  import * as API from "./api";
8
8
  import css from "./suggestions.module.css";
@@ -32,5 +32,5 @@ export default function Suggestions({ bookUrl, popup, formFields, formSendFuncti
32
32
  if (!instructors || !Array.isArray(instructors) || instructors.length === 0) {
33
33
  return null;
34
34
  }
35
- return (_jsxs("div", { className: css.suggestions, children: [_jsxs("div", { className: css.header, children: [_jsx("div", { className: css.headerTitle, children: message(lang, "suggestions-title") }), bookUrl && (_jsxs(Button, { tag: "a", href: bookUrl, className: css.headerButton, children: [message(lang, "suggestions-button"), " ", _jsx(Icons.ArrowRight, {})] }))] }), _jsx(List, { instructors: instructors, popup: popup, formFields: formFields, formSendFunction: formSendFunction, fromSuggestions: true })] }));
35
+ return (_jsxs("div", { className: css.suggestions, children: [_jsxs("div", { className: css.header, children: [_jsx("div", { className: css.headerTitle, children: message(lang, "suggestions-title") }), bookUrl && (_jsxs(Button, { tag: "a", href: bookUrl, className: css.headerButton, children: [message(lang, "suggestions-button"), " ", _jsx(ArrowRightIcon, {})] }))] }), _jsx(List, { instructors: instructors, popup: popup, formFields: formFields, formSendFunction: formSendFunction, fromSuggestions: true })] }));
36
36
  }
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import Dialog from "dt-design-system/es/dialog";
4
4
  import Button from "dt-design-system/es/button";
5
- import * as DTIcons from "dt-design-system/es/icons";
5
+ import CheckIcon from "dt-design-system/es/icons/check";
6
6
  import Field from "./field";
7
7
  import * as Messages from "../messages";
8
8
  import * as Utils from "../utils";
@@ -39,6 +39,6 @@ const CustomerForm = ({ lang, formTitle, close, open, rows, setRows, voucher, se
39
39
  setVoucher("");
40
40
  setResponse(RESPONSE.OK);
41
41
  };
42
- return (_jsx(Dialog, { className: styles.popup, close: close, isOpened: open, title: Messages.get(lang, "customer-information"), children: _jsxs("div", { className: styles.inner, children: [_jsx("div", { className: styles.title, children: Messages.get(lang, "customer-information") }), _jsx(Stay, { lang: lang }), _jsx("div", { className: styles.form, children: Object.keys(fields).map((key) => (_jsx(Field, { lang: lang, name: key, field: fields[key], data: customerData, setData: setCustomerData }, key))) }), _jsxs("div", { className: styles.footer, children: [_jsxs(Button, { className: styles.confirm, disabled: !isFormValid || response === RESPONSE.LOADING, onClick: onSubmit, children: [Messages.get(lang, "send-request"), _jsx(DTIcons.Check, {})] }), response === RESPONSE.ERROR && (_jsx("div", { className: styles.error, children: Messages.get(lang, "form-error") })), response === RESPONSE.OK && (_jsx("div", { className: styles.sent, children: Messages.get(lang, "form-sent") }))] })] }) }));
42
+ return (_jsx(Dialog, { className: styles.popup, close: close, isOpened: open, title: Messages.get(lang, "customer-information"), children: _jsxs("div", { className: styles.inner, children: [_jsx("div", { className: styles.title, children: Messages.get(lang, "customer-information") }), _jsx(Stay, { lang: lang }), _jsx("div", { className: styles.form, children: Object.keys(fields).map((key) => (_jsx(Field, { lang: lang, name: key, field: fields[key], data: customerData, setData: setCustomerData }, key))) }), _jsxs("div", { className: styles.footer, children: [_jsxs(Button, { className: styles.confirm, disabled: !isFormValid || response === RESPONSE.LOADING, onClick: onSubmit, children: [Messages.get(lang, "send-request"), _jsx(CheckIcon, {})] }), response === RESPONSE.ERROR && (_jsx("div", { className: styles.error, children: Messages.get(lang, "form-error") })), response === RESPONSE.OK && (_jsx("div", { className: styles.sent, children: Messages.get(lang, "form-sent") }))] })] }) }));
43
43
  };
44
44
  export default CustomerForm;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import Dialog from "dt-design-system/es/dialog";
4
- import Field from "./field";
5
4
  import Button from "dt-design-system/es/button";
6
- import * as DTIcons from "dt-design-system/es/icons";
5
+ import CheckIcon from "dt-design-system/es/icons/check";
6
+ import Field from "./field";
7
7
  import * as Messages from "../messages";
8
8
  import * as Data from "../data";
9
9
  import styles from "./student-form.module.css";
@@ -33,6 +33,6 @@ const StudentForm = ({ lang, close, studentData, levels, setRows, recapFormRef,
33
33
  }
34
34
  };
35
35
  const { details, price, selectedOption, title } = studentData;
36
- return (_jsx(Dialog, { className: styles.popup, close: onClose, isOpened: Boolean(dataKeys.length), title: Messages.get(lang, "student-information"), showCloseButton: true, children: _jsxs("div", { className: styles.inner, children: [_jsx("div", { className: styles.title, children: Messages.get(lang, "student-information") }), _jsxs("div", { className: styles.header, children: [_jsx("div", { className: styles.title, children: _jsx("b", { children: title }) }), _jsx("div", { className: styles.price, children: _jsxs("b", { children: [price, " \u20AC"] }) }), details && (_jsxs("div", { className: styles.details, children: [Messages.get(lang, "student-form-details"), " ", _jsx("span", { children: details })] })), selectedOption && (_jsxs("div", { className: styles.option, children: [Messages.get(lang, "student-form-option"), " ", _jsx("span", { children: selectedOption })] }))] }), _jsx("div", { className: styles.instructions, children: Messages.get(lang, "student-form-popup-instructions") }), _jsx("div", { className: styles.form, children: Object.keys(fields).map((key) => (_jsx(Field, { lang: lang, name: key, field: fields[key], data: formData, setData: setFormData }, key))) }), _jsx("div", { className: styles.footer, children: _jsxs(Button, { className: styles.confirm, disabled: !isFormValid, onClick: onSubmit, children: [Messages.get(lang, "confirm"), _jsx(DTIcons.Check, {})] }) })] }) }));
36
+ return (_jsx(Dialog, { className: styles.popup, close: onClose, isOpened: Boolean(dataKeys.length), title: Messages.get(lang, "student-information"), showCloseButton: true, children: _jsxs("div", { className: styles.inner, children: [_jsx("div", { className: styles.title, children: Messages.get(lang, "student-information") }), _jsxs("div", { className: styles.header, children: [_jsx("div", { className: styles.title, children: _jsx("b", { children: title }) }), _jsx("div", { className: styles.price, children: _jsxs("b", { children: [price, " \u20AC"] }) }), details && (_jsxs("div", { className: styles.details, children: [Messages.get(lang, "student-form-details"), " ", _jsx("span", { children: details })] })), selectedOption && (_jsxs("div", { className: styles.option, children: [Messages.get(lang, "student-form-option"), " ", _jsx("span", { children: selectedOption })] }))] }), _jsx("div", { className: styles.instructions, children: Messages.get(lang, "student-form-popup-instructions") }), _jsx("div", { className: styles.form, children: Object.keys(fields).map((key) => (_jsx(Field, { lang: lang, name: key, field: fields[key], data: formData, setData: setFormData }, key))) }), _jsx("div", { className: styles.footer, children: _jsxs(Button, { className: styles.confirm, disabled: !isFormValid, onClick: onSubmit, children: [Messages.get(lang, "confirm"), _jsx(CheckIcon, {})] }) })] }) }));
37
37
  };
38
38
  export default StudentForm;
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import classNames from "classnames";
4
+ import CheckIcon from "dt-design-system/es/icons/check";
4
5
  import Rows from "./components/rows";
5
6
  import Voucher from "./components/voucher";
6
7
  import StudentForm from "./components/student-form";
@@ -8,7 +9,6 @@ import CustomerForm from "./components/customer-form";
8
9
  import * as Messages from "./messages";
9
10
  import * as Content from "./content";
10
11
  import Button from "dt-design-system/es/button";
11
- import * as DTIcons from "dt-design-system/es/icons";
12
12
  import useStoredRows from "./hooks/use-stored-rows";
13
13
  import styles from "./loyal-customers.module.css";
14
14
  export default function LoyalCustomers({ lang, cmsMode, selectors, levels, className, convertTableToSelect, handleVariants, manualStay, channel = "ESF", merchant, resort, disableVoucher, integration, categoryCode, formTitle = "Clients fidèles", }) {
@@ -57,5 +57,5 @@ export default function LoyalCustomers({ lang, cmsMode, selectors, levels, class
57
57
  }
58
58
  }, [cleanup, cmsMode, init, selectors]);
59
59
  const classes = classNames(styles.index, className);
60
- return (_jsxs("div", { ref: ref, className: classes, children: [_jsx("div", { className: styles.title, children: Messages.get(lang, "title") }), _jsx(Rows, { lang: lang, rows: rows, setRows: setRows, openedRow: openedRow, setOpenedRow: setOpenedRow }), !disableVoucher && (_jsx(Voucher, { lang: lang, voucher: voucher, setVoucher: setVoucher })), _jsxs("div", { className: styles.overview, children: [_jsx("div", { className: styles.overviewTitle, children: Messages.get(lang, "total") }), _jsxs("div", { className: styles.overviewTotal, children: [total, " \u20AC"] })] }), _jsxs(Button, { className: styles.orderButton, disabled: !rows.length, onClick: openCustomerForm, children: [Messages.get(lang, "order"), _jsx(DTIcons.Check, {})] }), _jsx(StudentForm, { lang: lang, close: closeStudentForm, studentData: studentData, levels: levels, setRows: setRows, recapFormRef: ref }), _jsx(CustomerForm, { lang: lang, formTitle: formTitle, close: closeCustomerForm, open: customerFormOpen, rows: rows, setRows: setRows, voucher: voucher, setVoucher: setVoucher, disableVoucher: disableVoucher, manualStay: manualStay, channel: channel, merchant: merchant, resort: resort, integration: integration, categoryCode: categoryCode })] }));
60
+ return (_jsxs("div", { ref: ref, className: classes, children: [_jsx("div", { className: styles.title, children: Messages.get(lang, "title") }), _jsx(Rows, { lang: lang, rows: rows, setRows: setRows, openedRow: openedRow, setOpenedRow: setOpenedRow }), !disableVoucher && (_jsx(Voucher, { lang: lang, voucher: voucher, setVoucher: setVoucher })), _jsxs("div", { className: styles.overview, children: [_jsx("div", { className: styles.overviewTitle, children: Messages.get(lang, "total") }), _jsxs("div", { className: styles.overviewTotal, children: [total, " \u20AC"] })] }), _jsxs(Button, { className: styles.orderButton, disabled: !rows.length, onClick: openCustomerForm, children: [Messages.get(lang, "order"), _jsx(CheckIcon, {})] }), _jsx(StudentForm, { lang: lang, close: closeStudentForm, studentData: studentData, levels: levels, setRows: setRows, recapFormRef: ref }), _jsx(CustomerForm, { lang: lang, formTitle: formTitle, close: closeCustomerForm, open: customerFormOpen, rows: rows, setRows: setRows, voucher: voucher, setVoucher: setVoucher, disableVoucher: disableVoucher, manualStay: manualStay, channel: channel, merchant: merchant, resort: resort, integration: integration, categoryCode: categoryCode })] }));
61
61
  }
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { useUbloContext } from "ublo/with-ublo";
4
4
  import Button from "dt-design-system/es/button";
5
- import * as Icons from "dt-design-system/es/icons";
5
+ import ArrowLeftIcon from "dt-design-system/es/icons/arrow-left";
6
6
  import { message } from "./messages";
7
7
  import { loadWidgetMseM } from "./services/widgets";
8
8
  import * as Plausible from "../../../future/components/plausible";
@@ -91,6 +91,6 @@ const Booking = ({ stay, cartUrl, channel, values, maxCPDuration, setCurrentStep
91
91
  stay.from,
92
92
  stay.to,
93
93
  ]);
94
- return (_jsxs("div", { className: css.root, children: [_jsxs(Button, { onClick: goBack, children: [_jsx(Icons.ArrowLeft, {}), message(lang, "go-back")] }), _jsx("div", { id: "msem-magic-box" })] }));
94
+ return (_jsxs("div", { className: css.root, children: [_jsxs(Button, { onClick: goBack, children: [_jsx(ArrowLeftIcon, {}), message(lang, "go-back")] }), _jsx("div", { id: "msem-magic-box" })] }));
95
95
  };
96
96
  export default Booking;
@@ -1 +1 @@
1
- {"version":3,"file":"magic-box.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/magic-box/magic-box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,KAAK,cAAc,GACf,0BAA0B,GAC1B,sCAAsC,GACtC,8BAA8B,CAAC;AACnC,KAAK,WAAW,GACZ,oCAAoC,GACpC,gDAAgD,GAChD,wCAAwC,CAAC;AAC7C,KAAK,aAAa,GACd,oDAAoD,GACpD,gEAAgE,GAChE,wDAAwD,CAAC;AAE7D,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE;QACb,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,kBAAkB,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH,CAAC;;AAIF,wBAAoC;AAEpC,iBAAS,QAAQ,CAAC,EAChB,IAAI,EACJ,OAAO,EACP,OAAe,EACf,SAAS,EACT,YAAY,EACZ,aAAa,EACb,OAAW,EACX,OAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,cAA2C,EAC3C,WAAkD,EAClD,aAAoE,EACpE,YAAY,EACZ,QAAQ,GACT,EAAE,KAAK,2CAoPP"}
1
+ {"version":3,"file":"magic-box.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/magic-box/magic-box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,KAAK,cAAc,GACf,0BAA0B,GAC1B,sCAAsC,GACtC,8BAA8B,CAAC;AACnC,KAAK,WAAW,GACZ,oCAAoC,GACpC,gDAAgD,GAChD,wCAAwC,CAAC;AAC7C,KAAK,aAAa,GACd,oDAAoD,GACpD,gEAAgE,GAChE,wDAAwD,CAAC;AAE7D,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE;QACb,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,kBAAkB,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH,CAAC;;AAIF,wBAAoC;AAEpC,iBAAS,QAAQ,CAAC,EAChB,IAAI,EACJ,OAAO,EACP,OAAe,EACf,SAAS,EACT,YAAY,EACZ,aAAa,EACb,OAAW,EACX,OAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,cAA2C,EAC3C,WAAkD,EAClD,aAAoE,EACpE,YAAY,EACZ,QAAQ,GACT,EAAE,KAAK,2CAoPP"}
@@ -5,8 +5,9 @@ import Router from "next/router";
5
5
  import { useUbloContext } from "ublo/with-ublo";
6
6
  import Button from "dt-design-system/es/button";
7
7
  import Information from "dt-design-system/es/information";
8
- import * as Icons from "dt-design-system/es/icons";
9
8
  import Dialog from "dt-design-system/es/dialog";
9
+ import ArrowRightIcon from "dt-design-system/es/icons/arrow-right";
10
+ import SearchIcon from "dt-design-system/es/icons/search";
10
11
  import Filters from "./filters";
11
12
  import Booking from "./booking";
12
13
  import GescoContactForm from "../../../common/components/gesco-contact-form";
@@ -151,7 +152,7 @@ function MagicBox({ stay, cartUrl, channel = "ESF", className, alignContent, max
151
152
  setContactDialogOpened(false);
152
153
  };
153
154
  const showFilter = stay && filters && values;
154
- const SubmitIcon = customSubmitChecked ? Icons.ArrowRight : Icons.Search;
155
+ const SubmitIcon = customSubmitChecked ? ArrowRightIcon : SearchIcon;
155
156
  const classes = classNames(css.root, className);
156
157
  return (_jsxs("div", { className: classes, "data-align": alignContent, children: [_jsxs("div", { className: css.top, children: [children, VELClosed && !jmoins && (_jsxs(Information, { type: "error", className: css.errorMessage, children: [message(lang, "vel-closed"), _jsx(Button, { className: css.contact, onClick: openContactDialog, children: message(lang, "contact-us") })] })), jmoins && (_jsxs(Information, { type: "warning", className: css.errorMessage, children: [message(lang, "booking-block-day-minus-start"), " ", jmoins, message(lang, "booking-block-day-minus-end")] })), !VELClosed && currentStep === 0 && (_jsxs(_Fragment, { children: [!filters && _jsx("div", { className: css.loader }), showFilter && (_jsx(Filters, { filters: filters, values: values, setValues: setValues, customSubmit: customSubmit, customSubmitChecked: customSubmitChecked, setCustomSubmitChecked: setCustomSubmitChecked }))] })), _jsxs(Button, { className: css.confirm, onClick: submit, disabled: VELClosed || !isValid, children: [message(lang, customSubmitChecked ? "proceed" : "confirm"), _jsx(SubmitIcon, {})] }), currentStep === 1 && (_jsx(Booking, { stay: stay, cartUrl: cartUrl, channel: channel, values: values, maxCPDuration: maxCPDuration, setCurrentStep: setCurrentStep, msemWidgetHost: msemWidgetHost }))] }), _jsx(Dialog, { className: css.dialog, isOpened: contactDialogOpened, close: closeContactDialog, children: _jsx("div", { className: css.dialogInner, children: _jsx(GescoContactForm, { lang: lang, channel: channel, resort: resort, merchant: merchant }) }) })] }));
157
158
  }
@@ -1 +1 @@
1
- {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/controls.js"],"names":[],"mappings":"AAQA;;;4CAmCC"}
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/controls.js"],"names":[],"mappings":"AASA;;;4CAmCC"}
@@ -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 * as Icons from "dt-design-system/es/icons";
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(Icons.ArrowLeft, { className: css.icon }) }), _jsx(Button, { variant: "transparent", className: css.control, onClick: scrollTo(RIGHT), "aria-label": "Next", "data-control": "next", children: _jsx(Icons.ArrowRight, { className: css.icon }) })] }));
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
  }