ublo-lib 1.45.8 → 1.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/common/components/breadcrumb.tsx"],"names":[],"mappings":"AAGA,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,UAAU,EACV,UAAe,GAChB,EAAE,eAAe,2CAMjB"}
1
+ {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/common/components/breadcrumb.tsx"],"names":[],"mappings":"AAEA,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,UAAU,EACV,UAAe,GAChB,EAAE,eAAe,2CAMjB"}
@@ -18,11 +18,9 @@ function Item({ name, page, path, itemTitle, nextItem, isCurrent, exclusions, })
18
18
  const isExternalUrl = /^((http|https):\/\/)/.test(path);
19
19
  const noHref = isCurrent || !hasTemplate;
20
20
  const isExcluded = !isCurrent && exclusions.includes(name);
21
- const Tag = isExternalUrl ? "a" : noHref ? "span" : Link;
22
21
  const linkProps = { title: itemTitle, page, href: path };
23
22
  const spanProps = { dangerouslySetInnerHTML: { __html: itemTitle } };
24
23
  const anchorProps = { ...spanProps, href: path };
25
- const props = isExternalUrl ? anchorProps : noHref ? spanProps : linkProps;
26
24
  return (_jsxs(_Fragment, { children: [!isExcluded &&
27
25
  renderItem(isExternalUrl, noHref, anchorProps, spanProps, linkProps), nextItem] }));
28
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/common/components/carousel.js"],"names":[],"mappings":";;AAUA;;;;;;;;;;;4CAmTC;uBA7TsB,OAAO"}
1
+ {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/common/components/carousel.js"],"names":[],"mappings":";;AAWA;;;;;;;;;;;4CAmTC;uBA9TsB,OAAO"}
@@ -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 classNames from "classnames";
4
4
  import { useUbloContext } from "ublo/with-ublo";
5
- import * as Icons from "dt-design-system/es/icons";
5
+ import ArrowRightIcon from "dt-design-system/es/icons/arrow-right";
6
+ import ArrowLeftIcon from "dt-design-system/es/icons/arrow-left";
6
7
  const TARGETS = "section[data-class]";
7
8
  const UNDRAGGABLE_TAGS = "img, a, button";
8
9
  export default React.memo(Carousel);
@@ -223,7 +224,7 @@ function Carousel({ delay = 4000, fade = false, controls, dots, thumbnails, alwa
223
224
  onTouchEnd,
224
225
  onMouseLeave: onTouchEnd,
225
226
  };
226
- return (_jsxs("div", { ref: carouselRef, className: classes, ...eventHandlers, children: [children, (editing || (controls && showPrevArrow) || alwaysShowControls) && (_jsx("button", { className: "carousel--prev", onClick: prev, disabled: alwaysShowControls && !showPrevArrow, "aria-label": "Pr\u00E9cedent / Previous", children: _jsx(Icons.ArrowLeft, { className: "carousel--icon" }) })), (editing || (controls && showNextArrow) || alwaysShowControls) && (_jsx("button", { className: "carousel--next", onClick: next, disabled: alwaysShowControls && !showNextArrow, "aria-label": "Suivant / Next", children: _jsx(Icons.ArrowRight, { className: "carousel--icon" }) })), dots && (_jsx(Dots, { count: count, current: current, setCurrent: setCurrent, sections: sections })), thumbnails && count > 1 && (_jsx(Thumbnails, { carouselRef: carouselRef, count: count, current: current, setCurrent: setCurrent, sections: sections }))] }));
227
+ return (_jsxs("div", { ref: carouselRef, className: classes, ...eventHandlers, children: [children, (editing || (controls && showPrevArrow) || alwaysShowControls) && (_jsx("button", { className: "carousel--prev", onClick: prev, disabled: alwaysShowControls && !showPrevArrow, "aria-label": "Pr\u00E9cedent / Previous", children: _jsx(ArrowLeftIcon, { className: "carousel--icon" }) })), (editing || (controls && showNextArrow) || alwaysShowControls) && (_jsx("button", { className: "carousel--next", onClick: next, disabled: alwaysShowControls && !showNextArrow, "aria-label": "Suivant / Next", children: _jsx(ArrowRightIcon, { className: "carousel--icon" }) })), dots && (_jsx(Dots, { count: count, current: current, setCurrent: setCurrent, sections: sections })), thumbnails && count > 1 && (_jsx(Thumbnails, { carouselRef: carouselRef, count: count, current: current, setCurrent: setCurrent, sections: sections }))] }));
227
228
  }
228
229
  function Dots({ count, current, setCurrent }) {
229
230
  const length = [...new Array(count)];
@@ -5,9 +5,9 @@ import Link from "ublo/link";
5
5
  import { useUbloContext } from "ublo/with-ublo";
6
6
  import Button from "dt-design-system/es/button";
7
7
  import classNames from "classnames";
8
- import * as Icons from "dt-design-system/es/icons";
9
8
  import { message } from "./message";
10
9
  import CrossSellingOffers from "./cross-selling-offers";
10
+ import CheckCircleIcon from "dt-design-system/es/icons/check-circle";
11
11
  import styles from "./cart-dialog-inner.module.css";
12
12
  const CartDialogInner = ({ kind, title, image, thumbnail, price, label, contentTitle, paxPlan, closeDialog, goToCart, cart, zoneId, zonePath, hideSkiPassesStay, }) => {
13
13
  const [stay, setStay] = React.useState({ from: "", to: "" });
@@ -21,6 +21,6 @@ const CartDialogInner = ({ kind, title, image, thumbnail, price, label, contentT
21
21
  const formattedStayFrom = stay?.from && new Date(stay.from).toLocaleDateString(lang, formatOptions);
22
22
  const formattedStayTo = stay?.to && new Date(stay.to).toLocaleDateString(lang, formatOptions);
23
23
  const buttonClasses = classNames(styles.contentButton, styles.contentButtonContinue);
24
- return (_jsxs("div", { className: styles.inner, children: [_jsxs("div", { className: styles.title, children: [_jsx(Icons.CheckCircle, { className: styles.titleIcon }), _jsx("div", { className: styles.titleText, children: title })] }), _jsxs("div", { className: styles.content, children: [image && (_jsx("div", { className: styles.contentLeft, children: _jsx(Image, { className: styles.productImage, src: image, width: 320, height: 200, placeholder: thumbnail ? "blur" : undefined, blurDataURL: thumbnail, alt: "" }) })), _jsxs("div", { className: styles.contentRight, children: [_jsxs("div", { className: styles.wrapper, children: [label && (_jsx("div", { className: styles.contentLabel, dangerouslySetInnerHTML: { __html: label } })), price && price > 0 ? (_jsxs("div", { className: styles.price, children: [parseFloat(price).toFixed(2), " \u20AC"] })) : null, price === 0 && (_jsx("div", { className: styles.price, children: message(lang, "free") }))] }), contentTitle && (_jsx("div", { className: styles.contentTitle, children: contentTitle })), !hideSkiPassesStay && formattedStayFrom && formattedStayTo && (_jsxs("div", { className: styles.stay, children: [formattedStayFrom, " \uA537 ", formattedStayTo] })), paxPlan && _jsx("div", { className: styles.paxPlan, children: paxPlan }), _jsxs("div", { className: styles.contentButtons, children: [_jsx(Button, { tag: Link, href: hasLangPrefix ? `/${lang}/` : "/", className: buttonClasses, variant: "secondary", onClick: closeDialog, children: message(lang, "cart-dialog-continue") }), _jsx(Button, { className: styles.contentButton, onClick: goToCart, children: message(lang, "cart-dialog-go-to-cart") })] })] })] }), kind && (_jsx(CrossSellingOffers, { kind: kind, cart: cart, closeDialog: closeDialog, zoneId: zoneId, zonePath: zonePath }))] }));
24
+ return (_jsxs("div", { className: styles.inner, children: [_jsxs("div", { className: styles.title, children: [_jsx(CheckCircleIcon, { className: styles.titleIcon }), _jsx("div", { className: styles.titleText, children: title })] }), _jsxs("div", { className: styles.content, children: [image && (_jsx("div", { className: styles.contentLeft, children: _jsx(Image, { className: styles.productImage, src: image, width: 320, height: 200, placeholder: thumbnail ? "blur" : undefined, blurDataURL: thumbnail, alt: "" }) })), _jsxs("div", { className: styles.contentRight, children: [_jsxs("div", { className: styles.wrapper, children: [label && (_jsx("div", { className: styles.contentLabel, dangerouslySetInnerHTML: { __html: label } })), price && price > 0 ? (_jsxs("div", { className: styles.price, children: [parseFloat(price).toFixed(2), " \u20AC"] })) : null, price === 0 && (_jsx("div", { className: styles.price, children: message(lang, "free") }))] }), contentTitle && (_jsx("div", { className: styles.contentTitle, children: contentTitle })), !hideSkiPassesStay && formattedStayFrom && formattedStayTo && (_jsxs("div", { className: styles.stay, children: [formattedStayFrom, " \uA537 ", formattedStayTo] })), paxPlan && _jsx("div", { className: styles.paxPlan, children: paxPlan }), _jsxs("div", { className: styles.contentButtons, children: [_jsx(Button, { tag: Link, href: hasLangPrefix ? `/${lang}/` : "/", className: buttonClasses, variant: "secondary", onClick: closeDialog, children: message(lang, "cart-dialog-continue") }), _jsx(Button, { className: styles.contentButton, onClick: goToCart, children: message(lang, "cart-dialog-go-to-cart") })] })] })] }), kind && (_jsx(CrossSellingOffers, { kind: kind, cart: cart, closeDialog: closeDialog, zoneId: zoneId, zonePath: zonePath }))] }));
25
25
  };
26
26
  export default CartDialogInner;
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAqBF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,aAAsB,EACtB,MAAY,EACZ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE,KAAK,2CAsEP"}
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAqBF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,aAAsB,EACtB,MAAY,EACZ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE,KAAK,2CAsEP"}
@@ -1,8 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import Button from "dt-design-system/es/button";
4
- import * as Icons from "dt-design-system/es/icons";
5
3
  import classnames from "classnames";
4
+ import Button from "dt-design-system/es/button";
5
+ import ChevronUpIcon from "dt-design-system/es/icons/chevron-up";
6
+ import ChevronDownIcon from "dt-design-system/es/icons/chevron-down";
6
7
  import * as Cms from "../../utils/cms";
7
8
  import styles from "./collapsible.module.css";
8
9
  const i18n = {
@@ -39,7 +40,7 @@ export default function Collapsible({ gradientColor = "#fff", height = 150, lang
39
40
  };
40
41
  const messages = i18n[lang] || i18n.en;
41
42
  const message = opened ? messages.close : messages.open;
42
- const Icon = opened ? Icons.ChevronUp : Icons.ChevronDown;
43
+ const Icon = opened ? ChevronUpIcon : ChevronDownIcon;
43
44
  React.useEffect(() => {
44
45
  const parentHeight = parentRef.current?.offsetHeight;
45
46
  const childrenHeight = childrenRef.current?.offsetHeight;
@@ -3,7 +3,7 @@ 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
5
  import Tooltip from "dt-design-system/es/tooltip";
6
- import * as Icons from "dt-design-system/es/icons";
6
+ import SettingsIcon from "dt-design-system/es/icons/settings";
7
7
  import Rules from "./rules";
8
8
  import Tester from "./tester";
9
9
  import * as Utils from "./services/utils";
@@ -36,7 +36,7 @@ export default function Editor({ zoneRef, durations, tunnelOffersOrder, displaye
36
36
  const closeDialog = () => {
37
37
  setDialogOpened(false);
38
38
  };
39
- return (_jsxs(_Fragment, { children: [_jsx(Tooltip, { content: "Param\u00E9trer les offres crois\u00E9es", children: _jsx(Button, { className: styles.button, onClick: openDialog, children: _jsx(Icons.Settings, {}) }) }), _jsx(Dialog, { className: styles.dialog, isOpened: dialogOpened, close: closeDialog, showAsModal: false, children: _jsxs("div", { className: styles.dialogInner, children: [_jsx(Rules, { container: zoneContainer, config: config, setConfig: setConfig, durations: durations, tunnelOffersOrder: tunnelOffersOrder, displayedTunnelOffers: displayedTunnelOffers }), _jsx(Tester, { container: zoneContainer, config: config, durations: durations, tunnelOffersOrder: tunnelOffersOrder, displayedTunnelOffers: displayedTunnelOffers })] }) })] }));
39
+ return (_jsxs(_Fragment, { children: [_jsx(Tooltip, { content: "Param\u00E9trer les offres crois\u00E9es", children: _jsx(Button, { className: styles.button, onClick: openDialog, children: _jsx(SettingsIcon, {}) }) }), _jsx(Dialog, { className: styles.dialog, isOpened: dialogOpened, close: closeDialog, showAsModal: false, children: _jsxs("div", { className: styles.dialogInner, children: [_jsx(Rules, { container: zoneContainer, config: config, setConfig: setConfig, durations: durations, tunnelOffersOrder: tunnelOffersOrder, displayedTunnelOffers: displayedTunnelOffers }), _jsx(Tester, { container: zoneContainer, config: config, durations: durations, tunnelOffersOrder: tunnelOffersOrder, displayedTunnelOffers: displayedTunnelOffers })] }) })] }));
40
40
  }
41
41
  function init(zoneContainer, setConfig) {
42
42
  let configContainer = zoneContainer?.querySelector(`#${Utils.CONFIG_ID}`);
@@ -5,7 +5,7 @@ import MultipleSelect from "dt-design-system/es/multiple-select";
5
5
  import Button from "dt-design-system/es/button";
6
6
  import Loader from "dt-design-system/es/loader";
7
7
  import Popover from "dt-design-system/es/popover";
8
- import * as Icons from "dt-design-system/es/icons";
8
+ import ShoppingBagIcon from "dt-design-system/es/icons/shopping-bag";
9
9
  import useFetch from "../hooks/use-fetch";
10
10
  import * as API from "../services/api";
11
11
  import * as Utils from "../services/utils";
@@ -110,7 +110,7 @@ export default function Step2({ goToStep, currentOffer, override, setConfig, clo
110
110
  e.stopPropagation();
111
111
  closeModal();
112
112
  };
113
- return (_jsxs("form", { className: styles.form, onSubmit: submitForm, children: [_jsx("div", { className: styles.title, children: "R\u00E8gles" }), _jsx(Select, { label: "Type de produit", placeholder: "Choisissez un type", options: kindOptions, loading: isKindsLoading, value: selectedKinds, onValueChange: updateEsfRules("kinds") }), _jsx(MultipleSelect, { label: "Activit\u00E9s", placeholder: "Choisissez une ou plusieurs activit\u00E9s", options: activityOptions, loading: isActivitiesLoading, values: activityValues, onChange: updateEsfRules("activities"), disabled: !selectedKinds || !Boolean(activityOptions?.length) }), _jsx(MultipleSelect, { label: "Niveaux", placeholder: "Choisissez un ou plusieurs niveaux", options: levelOptions, loading: isLevelsLoading, values: levelValues, onChange: updateEsfRules("levels"), disabled: !selectedKinds || !Boolean(levelOptions?.length) }), _jsx(MultipleSelect, { label: "Lieux de rendez-vous", placeholder: "Choisissez un ou plusieurs RDV", options: meetingOptions, loading: isMeetingsLoading, values: meetingValues, onChange: updateEsfRules("meetings"), disabled: !selectedKinds || !Boolean(meetingOptions?.length) }), _jsxs("div", { className: styles.actions, children: [_jsx(Popover, { className: styles.popover, trigger: _jsx(Button, { className: styles.products, variant: "transparent", disabled: !isProductsLoading && !formattedProducts.length, children: isProductsLoading ? (_jsxs(_Fragment, { children: [_jsx(Loader, { className: styles.loader }), " R\u00E9cup\u00E9ration des produits..."] })) : (_jsxs(_Fragment, { children: [_jsx(Icons.ShoppingBag, {}), formattedProducts.length, " produit", formattedProducts.length > 1 && "s", " correspondant", formattedProducts.length > 1 && "s"] })) }), children: _jsx("div", { className: styles.popoverItems, children: formattedProducts.map((product) => {
113
+ return (_jsxs("form", { className: styles.form, onSubmit: submitForm, children: [_jsx("div", { className: styles.title, children: "R\u00E8gles" }), _jsx(Select, { label: "Type de produit", placeholder: "Choisissez un type", options: kindOptions, loading: isKindsLoading, value: selectedKinds, onValueChange: updateEsfRules("kinds") }), _jsx(MultipleSelect, { label: "Activit\u00E9s", placeholder: "Choisissez une ou plusieurs activit\u00E9s", options: activityOptions, loading: isActivitiesLoading, values: activityValues, onChange: updateEsfRules("activities"), disabled: !selectedKinds || !Boolean(activityOptions?.length) }), _jsx(MultipleSelect, { label: "Niveaux", placeholder: "Choisissez un ou plusieurs niveaux", options: levelOptions, loading: isLevelsLoading, values: levelValues, onChange: updateEsfRules("levels"), disabled: !selectedKinds || !Boolean(levelOptions?.length) }), _jsx(MultipleSelect, { label: "Lieux de rendez-vous", placeholder: "Choisissez un ou plusieurs RDV", options: meetingOptions, loading: isMeetingsLoading, values: meetingValues, onChange: updateEsfRules("meetings"), disabled: !selectedKinds || !Boolean(meetingOptions?.length) }), _jsxs("div", { className: styles.actions, children: [_jsx(Popover, { className: styles.popover, trigger: _jsx(Button, { className: styles.products, variant: "transparent", disabled: !isProductsLoading && !formattedProducts.length, children: isProductsLoading ? (_jsxs(_Fragment, { children: [_jsx(Loader, { className: styles.loader }), " R\u00E9cup\u00E9ration des produits..."] })) : (_jsxs(_Fragment, { children: [_jsx(ShoppingBagIcon, {}), formattedProducts.length, " produit", formattedProducts.length > 1 && "s", " correspondant", formattedProducts.length > 1 && "s"] })) }), children: _jsx("div", { className: styles.popoverItems, children: formattedProducts.map((product) => {
114
114
  const { code, name } = product;
115
115
  return (_jsx("div", { className: styles.popoverItem, children: name }, code));
116
116
  }) }) }), _jsx(Button, { className: styles.Action, variant: "transparent", onClick: () => goToStep(1), children: "Retour" }), _jsx(Button, { type: "submit", variant: "success", className: styles.action, disabled: isDisabled, children: "Valider" })] })] }));
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Input from "dt-design-system/es/input";
3
- import * as Icons from "dt-design-system/es/icons";
3
+ import InfoIcon from "dt-design-system/es/icons/info";
4
4
  import styles from "./override-trigger-form.module.css";
5
5
  import Select from "dt-design-system/es/select";
6
6
  import Tooltip from "dt-design-system/es/tooltip";
@@ -52,5 +52,5 @@ export default function OverrideTriggerForm({ currentOffer, override, setConfig,
52
52
  { value: "<=", label: "Inférieur ou égal à" },
53
53
  { value: "=", label: "Égal à" },
54
54
  ];
55
- return (_jsxs("form", { className: styles.form, onSubmit: submitForm, onClick: stopPropagation, children: [_jsx("div", { className: styles.title, children: "D\u00E9clencheur(s)" }), _jsx("div", { className: styles.subTitle, children: "S\u00E9jour" }), _jsx(Input, { className: styles.input, type: "date", label: "Inclu entre", value: stayFrom || "", onValueChange: (value) => updateEntry("stayFrom", value), compact: true }), _jsx(Input, { className: styles.input, type: "date", label: "et", value: stayTo || "", onValueChange: (value) => updateEntry("stayTo", value), compact: true }), _jsx(NumberPicker, { label: _jsxs(_Fragment, { children: ["Nombre de jour(s)", _jsx(Tooltip, { content: "S\u00E9jour d'une dur\u00E9e sup\u00E9rieur ou \u00E9gal \u00E0...", children: _jsx("span", { className: styles.labelIconContainer, children: _jsx(Icons.Info, { className: styles.labelIcon }) }) })] }), min: 0, max: 40, value: stayDuration || 0, onChange: (value) => updateEntry("stayDuration", value), withInput: true, compact: true }), _jsx("div", { className: styles.subTitle, children: "G\u00E9n\u00E9ral" }), _jsx(Input, { className: styles.input, label: _jsxs(_Fragment, { children: ["Code(s) marchand(s)", _jsx(Tooltip, { content: "Si plusieurs codes marchands, les s\u00E9parer par une virgule", children: _jsx("span", { className: styles.labelIconContainer, children: _jsx(Icons.Info, { className: styles.labelIcon }) }) })] }), value: merchant || "", onValueChange: (value) => updateEntry("merchant", value), compact: true }), isSkiPasses && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.subTitle, children: "Forfaits" }), _jsx(NumberPicker, { className: styles.input, label: "Dur\u00E9e", min: 0, max: 40, value: skiPassDuration || 0, onChange: (value) => updateEntry("skiPassDuration", value), withInput: true, compact: true }), _jsx(Select, { className: styles.input, label: "Op\u00E9rateur de comparaison", options: operatorOptions, value: skiPassDurationOperator || ">", onValueChange: (value) => updateEntry("skiPassDurationOperator", value), compact: true }), durations && (_jsx(Select, { className: styles.input, label: durations?.title, placeholder: " ", options: durations?.tags, value: durationTag || "", onValueChange: (value) => updateEntry("durationTag", value), compact: true }))] })), isOtherProducts && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.subTitle, children: "Activit\u00E9s Elloha" }), _jsx(Input, { className: styles.input, label: "Groupe", value: ellohaGroup || "", onValueChange: (value) => updateEntry("ellohaGroup", value), compact: true })] }))] }));
55
+ return (_jsxs("form", { className: styles.form, onSubmit: submitForm, onClick: stopPropagation, children: [_jsx("div", { className: styles.title, children: "D\u00E9clencheur(s)" }), _jsx("div", { className: styles.subTitle, children: "S\u00E9jour" }), _jsx(Input, { className: styles.input, type: "date", label: "Inclu entre", value: stayFrom || "", onValueChange: (value) => updateEntry("stayFrom", value), compact: true }), _jsx(Input, { className: styles.input, type: "date", label: "et", value: stayTo || "", onValueChange: (value) => updateEntry("stayTo", value), compact: true }), _jsx(NumberPicker, { label: _jsxs(_Fragment, { children: ["Nombre de jour(s)", _jsx(Tooltip, { content: "S\u00E9jour d'une dur\u00E9e sup\u00E9rieur ou \u00E9gal \u00E0...", children: _jsx("span", { className: styles.labelIconContainer, children: _jsx(InfoIcon, { className: styles.labelIcon }) }) })] }), min: 0, max: 40, value: stayDuration || 0, onChange: (value) => updateEntry("stayDuration", value), withInput: true, compact: true }), _jsx("div", { className: styles.subTitle, children: "G\u00E9n\u00E9ral" }), _jsx(Input, { className: styles.input, label: _jsxs(_Fragment, { children: ["Code(s) marchand(s)", _jsx(Tooltip, { content: "Si plusieurs codes marchands, les s\u00E9parer par une virgule", children: _jsx("span", { className: styles.labelIconContainer, children: _jsx(InfoIcon, { className: styles.labelIcon }) }) })] }), value: merchant || "", onValueChange: (value) => updateEntry("merchant", value), compact: true }), isSkiPasses && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.subTitle, children: "Forfaits" }), _jsx(NumberPicker, { className: styles.input, label: "Dur\u00E9e", min: 0, max: 40, value: skiPassDuration || 0, onChange: (value) => updateEntry("skiPassDuration", value), withInput: true, compact: true }), _jsx(Select, { className: styles.input, label: "Op\u00E9rateur de comparaison", options: operatorOptions, value: skiPassDurationOperator || ">", onValueChange: (value) => updateEntry("skiPassDurationOperator", value), compact: true }), durations && (_jsx(Select, { className: styles.input, label: durations?.title, placeholder: " ", options: durations?.tags, value: durationTag || "", onValueChange: (value) => updateEntry("durationTag", value), compact: true }))] })), isOtherProducts && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.subTitle, children: "Activit\u00E9s Elloha" }), _jsx(Input, { className: styles.input, label: "Groupe", value: ellohaGroup || "", onValueChange: (value) => updateEntry("ellohaGroup", value), compact: true })] }))] }));
56
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cross-selling-editor/override.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,QAAQ,IAAI,YAAY,EACzB,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,QAAQ,EAAE,YAAY,CAAC;IACvB,eAAe,EAAE,YAAY,CAAC;IAC9B,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,KAAK,EACL,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,KAAK,GACN,EAAE,KAAK,2CAyLP"}
1
+ {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cross-selling-editor/override.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,QAAQ,IAAI,YAAY,EACzB,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,QAAQ,EAAE,YAAY,CAAC;IACvB,eAAe,EAAE,YAAY,CAAC;IAC9B,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,KAAK,EACL,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,KAAK,GACN,EAAE,KAAK,2CAyLP"}
@@ -5,7 +5,10 @@ import Popover from "dt-design-system/es/popover";
5
5
  import Button from "dt-design-system/es/button";
6
6
  import Input from "dt-design-system/es/input";
7
7
  import Tooltip from "dt-design-system/es/tooltip";
8
- import * as Icons from "dt-design-system/es/icons";
8
+ import ChevronUpIcon from "dt-design-system/es/icons/chevron-up";
9
+ import ChevronDownIcon from "dt-design-system/es/icons/chevron-down";
10
+ import TuneIcon from "dt-design-system/es/icons/tune";
11
+ import BinIcon from "dt-design-system/es/icons/bin";
9
12
  import OverrideTriggerForm from "./override-trigger-form";
10
13
  import ESFSpecialRuleForm from "./esf/special-rule-form";
11
14
  import styles from "./override.module.css";
@@ -103,5 +106,5 @@ export default function Override({ index, currentOffer, overrides, override, cur
103
106
  const classes = classNames(styles.override, {
104
107
  [styles.current]: currentOverride && override.id === currentOverride.id,
105
108
  });
106
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: classes, onClick: updateCurrentOverride, children: [_jsxs("div", { className: styles.sortControls, children: [_jsx(Button, { variant: "transparent", className: styles.sortControl, disabled: isFirst, onClick: sort("up"), compact: true, children: _jsx(Icons.ChevronUp, {}) }), _jsx(Button, { variant: "transparent", className: styles.sortControl, disabled: isLast, onClick: sort("down"), compact: true, children: _jsx(Icons.ChevronDown, {}) })] }), _jsx(Input, { className: styles.input, value: override.name, onChange: updateOverrideName, onClick: (e) => e.stopPropagation(), onBlur: updateOverrideName, compact: true }), isEsf ? (_jsx(Button, { className: styles.edit, compact: true, onClick: openEsfDialog, children: _jsx(Icons.Tune, {}) })) : (_jsx(Popover, { trigger: _jsx(Button, { className: styles.edit, compact: true, onClick: toggleFormOpen, children: _jsx(Icons.Tune, {}) }), open: formOpen, onOpenChange: updateFormOpen, children: _jsx(OverrideTriggerForm, { currentOffer: currentOffer, override: override, setConfig: setConfig, durations: durations }) })), _jsx(Tooltip, { content: "Supprimer", children: _jsx(Button, { className: styles.delete, variant: "danger", compact: true, onClick: removeOverride, children: _jsx(Icons.Bin, {}) }) })] }), isEsf && (_jsx(ESFSpecialRuleForm, { open: esfDialogOpen, close: closeEsfDialog, currentOffer: currentOffer, override: override, setConfig: setConfig }))] }));
109
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: classes, onClick: updateCurrentOverride, children: [_jsxs("div", { className: styles.sortControls, children: [_jsx(Button, { variant: "transparent", className: styles.sortControl, disabled: isFirst, onClick: sort("up"), compact: true, children: _jsx(ChevronUpIcon, {}) }), _jsx(Button, { variant: "transparent", className: styles.sortControl, disabled: isLast, onClick: sort("down"), compact: true, children: _jsx(ChevronDownIcon, {}) })] }), _jsx(Input, { className: styles.input, value: override.name, onChange: updateOverrideName, onClick: (e) => e.stopPropagation(), onBlur: updateOverrideName, compact: true }), isEsf ? (_jsx(Button, { className: styles.edit, compact: true, onClick: openEsfDialog, children: _jsx(TuneIcon, {}) })) : (_jsx(Popover, { trigger: _jsx(Button, { className: styles.edit, compact: true, onClick: toggleFormOpen, children: _jsx(TuneIcon, {}) }), open: formOpen, onOpenChange: updateFormOpen, children: _jsx(OverrideTriggerForm, { currentOffer: currentOffer, override: override, setConfig: setConfig, durations: durations }) })), _jsx(Tooltip, { content: "Supprimer", children: _jsx(Button, { className: styles.delete, variant: "danger", compact: true, onClick: removeOverride, children: _jsx(BinIcon, {}) }) })] }), isEsf && (_jsx(ESFSpecialRuleForm, { open: esfDialogOpen, close: closeEsfDialog, currentOffer: currentOffer, override: override, setConfig: setConfig }))] }));
107
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"overrides-list.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cross-selling-editor/overrides-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,QAAQ,IAAI,YAAY,EACzB,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,YAAY,CAAC;IAC9B,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,YAAY,EACZ,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,SAAS,EACT,SAAS,GACV,EAAE,KAAK,2CA2IP"}
1
+ {"version":3,"file":"overrides-list.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cross-selling-editor/overrides-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,QAAQ,IAAI,YAAY,EACzB,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,YAAY,CAAC;IAC9B,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,YAAY,EACZ,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,SAAS,EACT,SAAS,GACV,EAAE,KAAK,2CA2IP"}
@@ -1,10 +1,11 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import Button from "dt-design-system/es/button";
4
4
  import Collapsible from "dt-design-system/es/collapsible";
5
5
  import Popover from "dt-design-system/es/popover";
6
6
  import Input from "dt-design-system/es/input";
7
- import * as Icons from "dt-design-system/es/icons";
7
+ import InfoIcon from "dt-design-system/es/icons/info";
8
+ import PlusIcon from "dt-design-system/es/icons/plus";
8
9
  import Override from "./override";
9
10
  import styles from "./overrides-list.module.css";
10
11
  export default function OverridesList({ currentOffer, overrides, currentOverride, setCurrentOverride, config, setConfig, durations, }) {
@@ -51,8 +52,8 @@ export default function OverridesList({ currentOffer, overrides, currentOverride
51
52
  const isEsf = currentOffer === "ESF";
52
53
  const labelPlural = isEsf ? "règles" : "surcharges";
53
54
  const labelSingular = isEsf ? "règle" : "surcharge";
54
- const title = (_jsxs("span", { className: styles.title, children: [overrides.length, " ", overrides.length === 1 ? labelSingular : labelPlural, _jsxs(Popover, { className: styles.titlePopover, trigger: _jsx(Button, { variant: "transparent", compact: true, children: _jsx(Icons.Info, {}) }), children: [_jsxs("b", { children: ["Si plusieurs ", labelPlural] }), " correspondent au contenu du panier,", " ", _jsx("b", { children: "seule la premi\u00E8re est appliqu\u00E9e" }), ".", _jsx("br", {}), "Vous pouvez changer l'ordre des ", labelPlural, " \u00E0 l'aide des fl\u00E8ches visible \u00E0 gauche de chaque ", labelSingular, " au survol de ces derni\u00E8res."] })] }));
55
- return (_jsxs("div", { className: styles.overrides, children: [hasOverrides ? (_jsx(Collapsible, { title: title, className: styles.collapsible, compact: true, open: opened, toggleTooltip: `Afficher toutes les ${labelPlural}`, onOpenChange: setOpened, hiddenContent: overrides.map((override, index) => {
55
+ const title = (_jsxs("span", { className: styles.title, children: [overrides.length, " ", overrides.length === 1 ? labelSingular : labelPlural, _jsxs(Popover, { className: styles.titlePopover, trigger: _jsx(Button, { variant: "transparent", compact: true, children: _jsx(InfoIcon, {}) }), children: [_jsxs("b", { children: ["Si plusieurs ", labelPlural] }), " correspondent au contenu du panier,", " ", _jsx("b", { children: "seule la premi\u00E8re est appliqu\u00E9e" }), ".", _jsx("br", {}), "Vous pouvez changer l'ordre des ", labelPlural, " \u00E0 l'aide des fl\u00E8ches visible \u00E0 gauche de chaque ", labelSingular, " au survol de ces derni\u00E8res."] })] }));
56
+ return (_jsxs("div", { className: styles.overrides, children: [hasOverrides ? (_jsx(Collapsible, { title: title, className: styles.collapsible, compact: true, open: opened, toggleTooltip: _jsxs(_Fragment, { children: ["Afficher toutes les ", labelPlural] }), onOpenChange: setOpened, hiddenContent: overrides.map((override, index) => {
56
57
  return (_jsx(Override, { index: index, currentOffer: currentOffer, overrides: overrides, override: override, currentOverride: currentOverride, setCurrentOverride: setCurrentOverride, config: config, setConfig: setConfig, closeCreationForm: closeCreationForm, durations: durations, isEsf: isEsf }, override.id));
57
- }) })) : null, _jsx(Popover, { className: styles.popover, trigger: _jsxs(Button, { className: styles.addOverride, onClick: toggleCreationForm, variant: "transparent", compact: true, children: ["Ajouter une ", labelSingular, " ", _jsx(Icons.Plus, {})] }), open: creationFormOpened, children: _jsxs("form", { className: styles.createForm, onSubmit: createOverride, children: [_jsx(Input, { placeholder: "Nom", value: newOverride, onValueChange: setNewOverride, error: error, compact: true, autoFocus: true }), _jsx(Button, { className: styles.createSubmit, type: "submit", disabled: newOverrideIsInvalid, children: "Ajouter" })] }) })] }));
58
+ }) })) : null, _jsx(Popover, { className: styles.popover, trigger: _jsxs(Button, { className: styles.addOverride, onClick: toggleCreationForm, variant: "transparent", compact: true, children: ["Ajouter une ", labelSingular, " ", _jsx(PlusIcon, {})] }), open: creationFormOpened, children: _jsxs("form", { className: styles.createForm, onSubmit: createOverride, children: [_jsx(Input, { placeholder: "Nom", value: newOverride, onValueChange: setNewOverride, error: error, compact: true, autoFocus: true }), _jsx(Button, { className: styles.createSubmit, type: "submit", disabled: newOverrideIsInvalid, children: "Ajouter" })] }) })] }));
58
59
  }
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import Select from "dt-design-system/es/select";
4
4
  import Popover from "dt-design-system/es/popover";
5
5
  import Button from "dt-design-system/es/button";
6
- import * as Icons from "dt-design-system/es/icons";
6
+ import InfoIcon from "dt-design-system/es/icons/info";
7
7
  import Rule from "./rule";
8
8
  import OverridesList from "./overrides-list";
9
9
  import * as Utils from "./services/utils";
@@ -34,7 +34,7 @@ export default function Rules({ container, config, setConfig, durations, tunnelO
34
34
  setCurrentOffer(newCurrentOffer);
35
35
  setCurrentOverride(null);
36
36
  };
37
- return (_jsxs("div", { className: styles.container, children: [_jsxs("div", { className: styles.title, children: ["Configuration", _jsx(Popover, { className: styles.popover, trigger: _jsx(Button, { variant: "transparent", children: _jsx(Icons.Info, {}) }), children: "La configuration vous permet de personnaliser l'ordre d'affichage des produits sugg\u00E9r\u00E9s dans le panier en fonction des produits pr\u00E9sents dans le panier de l'utilisateur." })] }), _jsx("div", { className: styles.explanation, children: "Configurez les suggestions de produit en fonction du contenu du panier" }), _jsx(Select, { className: styles.select, label: "Produit ajout\u00E9 au panier", placeholder: "S\u00E9lectionnez un produit", value: currentOffer, options: tunnelOptions, onValueChange: updateCurrentOffer, disabled: tunnelOptions.length <= 1 }), showOverrides && (_jsx(OverridesList, { currentOffer: currentOffer, overrides: overrides, currentOverride: currentOverride, setCurrentOverride: setCurrentOverride, config: config, setConfig: setConfig, durations: durations })), currentOffer && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.subTitle, children: "Priorisation par types de produit" }), sections.map((section) => {
37
+ return (_jsxs("div", { className: styles.container, children: [_jsxs("div", { className: styles.title, children: ["Configuration", _jsx(Popover, { className: styles.popover, trigger: _jsx(Button, { variant: "transparent", children: _jsx(InfoIcon, {}) }), children: "La configuration vous permet de personnaliser l'ordre d'affichage des produits sugg\u00E9r\u00E9s dans le panier en fonction des produits pr\u00E9sents dans le panier de l'utilisateur." })] }), _jsx("div", { className: styles.explanation, children: "Configurez les suggestions de produit en fonction du contenu du panier" }), _jsx(Select, { className: styles.select, label: "Produit ajout\u00E9 au panier", placeholder: "S\u00E9lectionnez un produit", value: currentOffer, options: tunnelOptions, onValueChange: updateCurrentOffer, disabled: tunnelOptions.length <= 1 }), showOverrides && (_jsx(OverridesList, { currentOffer: currentOffer, overrides: overrides, currentOverride: currentOverride, setCurrentOverride: setCurrentOverride, config: config, setConfig: setConfig, durations: durations })), currentOffer && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.subTitle, children: "Priorisation par types de produit" }), sections.map((section) => {
38
38
  const uuid = section.getAttribute("data-uuid");
39
39
  const title = section.querySelector(".tunnel-offer__title").textContent;
40
40
  return (_jsx(Rule, { uuid: uuid, uuids: uuids, title: title, currentOffer: currentOffer, currentOverride: currentOverride, config: config, setConfig: setConfig }, title));
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import Input from "dt-design-system/es/input";
4
4
  import Popover from "dt-design-system/es/popover";
5
5
  import Button from "dt-design-system/es/button";
6
- import * as Icons from "dt-design-system/es/icons";
6
+ import InfoIcon from "dt-design-system/es/icons/info";
7
7
  import TesterTunnelOffer from "./tunnel-offer";
8
8
  import * as Utils from "../services/utils";
9
9
  import styles from "./tester.module.css";
@@ -130,7 +130,7 @@ export default function Tester({ container, config, durations, tunnelOffersOrder
130
130
  return 0;
131
131
  return (tunnelOffersOrder.indexOf(a.value) - tunnelOffersOrder.indexOf(b.value));
132
132
  });
133
- return (_jsx("div", { className: styles.tester, children: _jsxs("div", { className: styles.content, children: [_jsxs("div", { className: styles.title, children: ["Pr\u00E9visualisation", _jsxs(Popover, { className: styles.popover, trigger: _jsx(Button, { variant: "transparent", children: _jsx(Icons.Info, {}) }), children: ["Vous pouvez tester les r\u00E8gles de suggestions en modifiant le contenu du panier ci-dessous.", _jsx("br", {}), "Les suggestions de produits s'afficheront dessous en temps r\u00E9el."] })] }), _jsxs("div", { className: styles.header, children: [_jsx("div", { className: styles.headerTitle, children: "Simulez un contenu de panier" }), _jsxs("div", { className: styles.stay, children: [_jsx(Input, { className: styles.input, type: "date", label: "Date de d\u00E9but de s\u00E9jour", value: stayFrom || "", onValueChange: updateStayFrom, compact: true }), _jsx(Input, { className: styles.input, type: "date", label: "Date de fin de s\u00E9jour", value: stayTo || "", onValueChange: updateStayTo, compact: true })] }), _jsx("div", { ref: ref, className: styles.tunnelOffers, children: tunnelOptions.map(({ key, value, label }) => {
133
+ return (_jsx("div", { className: styles.tester, children: _jsxs("div", { className: styles.content, children: [_jsxs("div", { className: styles.title, children: ["Pr\u00E9visualisation", _jsxs(Popover, { className: styles.popover, trigger: _jsx(Button, { variant: "transparent", children: _jsx(InfoIcon, {}) }), children: ["Vous pouvez tester les r\u00E8gles de suggestions en modifiant le contenu du panier ci-dessous.", _jsx("br", {}), "Les suggestions de produits s'afficheront dessous en temps r\u00E9el."] })] }), _jsxs("div", { className: styles.header, children: [_jsx("div", { className: styles.headerTitle, children: "Simulez un contenu de panier" }), _jsxs("div", { className: styles.stay, children: [_jsx(Input, { className: styles.input, type: "date", label: "Date de d\u00E9but de s\u00E9jour", value: stayFrom || "", onValueChange: updateStayFrom, compact: true }), _jsx(Input, { className: styles.input, type: "date", label: "Date de fin de s\u00E9jour", value: stayTo || "", onValueChange: updateStayTo, compact: true })] }), _jsx("div", { ref: ref, className: styles.tunnelOffers, children: tunnelOptions.map(({ key, value, label }) => {
134
134
  return (_jsx(TesterTunnelOffer, { kind: key, value: value, label: label, cartOffers: cartOffers, updateCartOffers: updateCartOffers, refreshCartContent: refreshCartContent, durations: durations, config: config }, key.concat(label)));
135
135
  }) })] }), _jsxs("div", { className: styles.activeOverrides, children: [_jsxs("span", { className: styles.activeOverridesTitle, children: ["Surcharges et r\u00E8gles actives :", " "] }), hasActiveOverride ? (activeOverridesKeys.map((key) => {
136
136
  const values = allOverrides[key];
@@ -5,7 +5,7 @@ import Input from "dt-design-system/es/input";
5
5
  import Select from "dt-design-system/es/select";
6
6
  import Popover from "dt-design-system/es/popover";
7
7
  import Button from "dt-design-system/es/button";
8
- import * as Icons from "dt-design-system/es/icons";
8
+ import SettingsIcon from "dt-design-system/es/icons/settings";
9
9
  import * as Utils from "../services/utils";
10
10
  import styles from "./tunnel-offer.module.css";
11
11
  import Checkbox from "dt-design-system/es/checkbox";
@@ -31,7 +31,7 @@ export default function TesterTunnelOffer({ kind, value, label, cartOffers, upda
31
31
  }
32
32
  window.requestAnimationFrame(refreshCartContent);
33
33
  };
34
- return (_jsxs("div", { className: styles.item, "data-item-state": JSON.stringify(state), children: [overrideAllowed && items.length > 0 && (_jsxs(Popover, { className: styles.popover, trigger: _jsx(Button, { children: _jsx(Icons.Settings, {}) }), children: [isEsf && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.esfRulesTitle, children: "R\u00E8gle(s) \u00E0 appliquer" }), !esfOverrides.length && "Aucune de règle spéciale", esfOverrides.map((override) => {
34
+ return (_jsxs("div", { className: styles.item, "data-item-state": JSON.stringify(state), children: [overrideAllowed && items.length > 0 && (_jsxs(Popover, { className: styles.popover, trigger: _jsx(Button, { children: _jsx(SettingsIcon, {}) }), children: [isEsf && (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.esfRulesTitle, children: "R\u00E8gle(s) \u00E0 appliquer" }), !esfOverrides.length && "Aucune de règle spéciale", esfOverrides.map((override) => {
35
35
  const { id, name } = override;
36
36
  return (_jsx(Checkbox, { label: name, checked: state.esfRules?.includes(name) || false, onCheckedChange: updateAppliedEsfRules(name) }, id));
37
37
  })] })), overrideAllowed &&
@@ -7,7 +7,7 @@ import { SnackbarProvider, useSnackbar } from "dt-design-system/es/snackbar";
7
7
  import Button from "dt-design-system/es/button";
8
8
  import * as Messages from "./messages";
9
9
  import * as Icons from "./icons";
10
- import * as DTIcons from "dt-design-system/es/icons";
10
+ import MailIcon from "dt-design-system/es/icons/mail";
11
11
  import * as Plausible from "../plausible";
12
12
  import { getInitialFormState, getSettings, send } from "./utils";
13
13
  import css from "./custom-contact-form.module.css";
@@ -87,5 +87,5 @@ function CustomContactForm({ site, kind, title, fields, presets, className, inne
87
87
  return (_jsx("div", { className: css.root, children: Messages.get(lang, "NO_SETTINGS_FOUND") }));
88
88
  }
89
89
  const formKey = presets ? JSON.stringify(presets.values) : undefined;
90
- return (_jsxs("div", { className: classes, children: [title && _jsx("div", { className: css.title, children: title }), _jsx("div", { className: innerClasses, children: Object.keys(fields).map((key) => (_jsx(Field, { target: target, kind: kind, name: key, field: fields[key], data: data, setData: setData, settings: settings, presets: presets }, key))) }), _jsxs("div", { className: css.bottom, children: [presets?.allowReset && (_jsx(Button, { className: css.resetButton, disabled: sending, onClick: resetForm, children: Messages.get(lang, "reset") })), _jsxs(Button, { className: css.submitButton, disabled: !isFormValid || sending, onClick: sendForm, onPointerEnter: blurForm, children: [sendButtonText || Messages.get(lang, "send"), _jsx(DTIcons.Mail, {})] })] }), showSendingOverlay && (_jsxs("div", { className: css.sendingOverlay, children: [_jsx(Icons.Spinner, { className: css.sendingIcon }), _jsx("span", { className: css.sendingMessage, children: Messages.get(lang, "sending") })] }))] }, formKey));
90
+ return (_jsxs("div", { className: classes, children: [title && _jsx("div", { className: css.title, children: title }), _jsx("div", { className: innerClasses, children: Object.keys(fields).map((key) => (_jsx(Field, { target: target, kind: kind, name: key, field: fields[key], data: data, setData: setData, settings: settings, presets: presets }, key))) }), _jsxs("div", { className: css.bottom, children: [presets?.allowReset && (_jsx(Button, { className: css.resetButton, disabled: sending, onClick: resetForm, children: Messages.get(lang, "reset") })), _jsxs(Button, { className: css.submitButton, disabled: !isFormValid || sending, onClick: sendForm, onPointerEnter: blurForm, children: [sendButtonText || Messages.get(lang, "send"), _jsx(MailIcon, {})] })] }), showSendingOverlay && (_jsxs("div", { className: css.sendingOverlay, children: [_jsx(Icons.Spinner, { className: css.sendingIcon }), _jsx("span", { className: css.sendingMessage, children: Messages.get(lang, "sending") })] }))] }, formKey));
91
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../src/common/components/date-picker/calendar.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;4CAwQC"}
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../src/common/components/date-picker/calendar.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;4CAwQC"}
@@ -4,7 +4,9 @@ import classNames from "classnames";
4
4
  import { useUbloContext } from "ublo/with-ublo";
5
5
  import Dialog from "dt-design-system/es/dialog";
6
6
  import Button from "dt-design-system/es/button";
7
- import * as Icons from "dt-design-system/es/icons";
7
+ import ChevronLeftIcon from "dt-design-system/es/icons/chevron-left";
8
+ import ChevronRightIcon from "dt-design-system/es/icons/chevron-right";
9
+ import CheckIcon from "dt-design-system/es/icons/check";
8
10
  import Month from "./month";
9
11
  import Helper from "./helper";
10
12
  import * as Messages from "./messages";
@@ -117,7 +119,7 @@ export default function Calendar({ display, stayDates = [], min, max, onSubmit,
117
119
  [styles.calendarTouch]: hide2ndMonth,
118
120
  [styles.calendarLoading]: isLoading,
119
121
  });
120
- return (_jsxs("div", { className: classes, "data-calendar": "", children: [!singleDate && (_jsx(Helper, { lang: lang, selecting: selecting, selectedDates: selectedDates, availabilities: availabilities, isLoading: isLoading, error: error })), _jsxs("div", { className: styles.months, children: [_jsxs("div", { className: styles.controls, "data-controls": "", children: [_jsx(Button, { variant: "transparent", className: styles.control, onClick: gotoPreviousMonth, disabled: isPast, children: _jsx(Icons.ChevronLeft, {}) }), _jsx(Button, { variant: "transparent", className: styles.control, onClick: gotoNextMonth, children: _jsx(Icons.ChevronRight, {}) })] }), _jsx(Month, { display: display, month: month, year: year, min: min, max: max, selecting: selecting, setSelecting: setSelecting, selectedDates: selectedDates, setSelectedDates: setSelectedDates, firstSelectedDate: firstSelectedDate, setFirstSelectedDate: setFirstSelectedDate, lastSelectedDate: lastSelectedDate, setLastSelectedDate: setLastSelectedDate, singleDate: singleDate, submitOnSelectionEnd: submitOnSelectionEnd, onSubmit: submit, stays: stays, matchingStays: matchingStays, allMatchingStaysEnd: allMatchingStaysEnd }), !hide2ndMonth && (_jsx(Month, { display: display, month: monthAlt, year: yearAlt, min: min, max: max, selecting: selecting, setSelecting: setSelecting, selectedDates: selectedDates, setSelectedDates: setSelectedDates, firstSelectedDate: firstSelectedDate, setFirstSelectedDate: setFirstSelectedDate, lastSelectedDate: lastSelectedDate, setLastSelectedDate: setLastSelectedDate, singleDate: singleDate, submitOnSelectionEnd: submitOnSelectionEnd, onSubmit: submit, stays: stays, matchingStays: matchingStays, allMatchingStaysEnd: allMatchingStaysEnd }))] }), _jsxs("div", { className: styles.buttons, children: [_jsx(Button, { variant: "transparent", className: styles.close, onClick: close, children: Messages.get(lang, "close") }), showReset && (_jsx(Button, { variant: "link", className: styles.reset, onClick: reset, children: Messages.get(lang, "reset") })), _jsxs(Button, { className: styles.submit, onClick: () => submit(selectedDates), disabled: !submitEnabled, children: [_jsx(Icons.Check, {}), Messages.get(lang, "submit")] })] }), _jsxs(Dialog, { isOpened: showPopup, className: styles.confirmDateChange, close: () => setShowPopup(false), children: [_jsx("div", { className: styles.confirmDateChangeTitle, children: Messages.get(lang, "warning-date-change-title") }), _jsx("div", { className: styles.confirmDateChangeMessage, children: Messages.get(lang, "warning-date-change-text") }), _jsxs("div", { className: styles.confirmDateChangeButtons, children: [_jsx("button", { className: classNames(styles.confirmDateChangeButton, styles.confirmDateChangeButtonCancel), onClick: () => setShowPopup(false), children: Messages.get(lang, "warning-date-change-cancel") }), _jsx("button", { className: classNames(styles.confirmDateChangeButton, styles.confirmDateChangeButtonConfirm), onClick: () => {
122
+ return (_jsxs("div", { className: classes, "data-calendar": "", children: [!singleDate && (_jsx(Helper, { lang: lang, selecting: selecting, selectedDates: selectedDates, availabilities: availabilities, isLoading: isLoading, error: error })), _jsxs("div", { className: styles.months, children: [_jsxs("div", { className: styles.controls, "data-controls": "", children: [_jsx(Button, { variant: "transparent", className: styles.control, onClick: gotoPreviousMonth, disabled: isPast, children: _jsx(ChevronLeftIcon, {}) }), _jsx(Button, { variant: "transparent", className: styles.control, onClick: gotoNextMonth, children: _jsx(ChevronRightIcon, {}) })] }), _jsx(Month, { display: display, month: month, year: year, min: min, max: max, selecting: selecting, setSelecting: setSelecting, selectedDates: selectedDates, setSelectedDates: setSelectedDates, firstSelectedDate: firstSelectedDate, setFirstSelectedDate: setFirstSelectedDate, lastSelectedDate: lastSelectedDate, setLastSelectedDate: setLastSelectedDate, singleDate: singleDate, submitOnSelectionEnd: submitOnSelectionEnd, onSubmit: submit, stays: stays, matchingStays: matchingStays, allMatchingStaysEnd: allMatchingStaysEnd }), !hide2ndMonth && (_jsx(Month, { display: display, month: monthAlt, year: yearAlt, min: min, max: max, selecting: selecting, setSelecting: setSelecting, selectedDates: selectedDates, setSelectedDates: setSelectedDates, firstSelectedDate: firstSelectedDate, setFirstSelectedDate: setFirstSelectedDate, lastSelectedDate: lastSelectedDate, setLastSelectedDate: setLastSelectedDate, singleDate: singleDate, submitOnSelectionEnd: submitOnSelectionEnd, onSubmit: submit, stays: stays, matchingStays: matchingStays, allMatchingStaysEnd: allMatchingStaysEnd }))] }), _jsxs("div", { className: styles.buttons, children: [_jsx(Button, { variant: "transparent", className: styles.close, onClick: close, children: Messages.get(lang, "close") }), showReset && (_jsx(Button, { variant: "link", className: styles.reset, onClick: reset, children: Messages.get(lang, "reset") })), _jsxs(Button, { className: styles.submit, onClick: () => submit(selectedDates), disabled: !submitEnabled, children: [_jsx(CheckIcon, {}), Messages.get(lang, "submit")] })] }), _jsxs(Dialog, { isOpened: showPopup, className: styles.confirmDateChange, close: () => setShowPopup(false), children: [_jsx("div", { className: styles.confirmDateChangeTitle, children: Messages.get(lang, "warning-date-change-title") }), _jsx("div", { className: styles.confirmDateChangeMessage, children: Messages.get(lang, "warning-date-change-text") }), _jsxs("div", { className: styles.confirmDateChangeButtons, children: [_jsx("button", { className: classNames(styles.confirmDateChangeButton, styles.confirmDateChangeButtonCancel), onClick: () => setShowPopup(false), children: Messages.get(lang, "warning-date-change-cancel") }), _jsx("button", { className: classNames(styles.confirmDateChangeButton, styles.confirmDateChangeButtonConfirm), onClick: () => {
121
123
  window.sessionStorage.removeItem("cartId");
122
124
  submit(selectedDates);
123
125
  setShowPopup(false);
@@ -1,7 +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 Button from "dt-design-system/es/button";
4
- import * as Icons from "dt-design-system/es/icons";
4
+ import CrossIcon from "dt-design-system/es/icons/cross";
5
5
  import css from "./calendar-editor.module.css";
6
6
  import * as Utils from "./utils";
7
7
  export default function CalendarEditor({ presets, setPresets, hoveredDates, closeEditor, }) {
@@ -35,7 +35,7 @@ export default function CalendarEditor({ presets, setPresets, hoveredDates, clos
35
35
  });
36
36
  closeEditor();
37
37
  };
38
- return (_jsxs("div", { className: css.editor, children: [_jsx(Button, { variant: "transparent", className: css.close, onClick: closeEditor, children: _jsx(Icons.Cross, {}) }), _jsxs("div", { className: css.inner, children: [_jsx(Button, { variant: "transparent", className: css.cleanup, onClick: updateDates(), children: "Aucun" }), Object.keys(colors).map((key) => {
38
+ return (_jsxs("div", { className: css.editor, children: [_jsx(Button, { variant: "transparent", className: css.close, onClick: closeEditor, children: _jsx(CrossIcon, {}) }), _jsxs("div", { className: css.inner, children: [_jsx(Button, { variant: "transparent", className: css.cleanup, onClick: updateDates(), children: "Aucun" }), Object.keys(colors).map((key) => {
39
39
  const { text, backgroundColor, textColor } = colors[key];
40
40
  if (!text)
41
41
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-header.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-calendar/calendar-header.js"],"names":[],"mappings":"AAKA;;;;;;4CAwBC"}
1
+ {"version":3,"file":"calendar-header.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-calendar/calendar-header.js"],"names":[],"mappings":"AAMA;;;;;;4CAwBC"}
@@ -1,8 +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 ChevronLeftIcon from "dt-design-system/es/icons/chevron-left";
5
+ import ChevronRightIcon from "dt-design-system/es/icons/chevron-right";
5
6
  import css from "./calendar-header.module.css";
6
7
  export default function Header({ goToPreviousMonth, goToNextMonth, monthName, year, pastMonthDisabled, }) {
7
- return (_jsxs("div", { className: css.header, children: [_jsx(Button, { className: css.control, onClick: goToPreviousMonth, disabled: !!pastMonthDisabled, children: _jsx(Icons.ChevronLeft, {}) }), _jsxs("div", { className: css.title, children: [monthName, " ", year] }), _jsx(Button, { className: css.control, onClick: goToNextMonth, children: _jsx(Icons.ChevronRight, {}) })] }));
8
+ return (_jsxs("div", { className: css.header, children: [_jsx(Button, { className: css.control, onClick: goToPreviousMonth, disabled: !!pastMonthDisabled, children: _jsx(ChevronLeftIcon, {}) }), _jsxs("div", { className: css.title, children: [monthName, " ", year] }), _jsx(Button, { className: css.control, onClick: goToNextMonth, children: _jsx(ChevronRightIcon, {}) })] }));
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gesco-contact-form.d.ts","sourceRoot":"","sources":["../../../../src/common/components/gesco-contact-form/gesco-contact-form.tsx"],"names":[],"mappings":"AAoBA,KAAK,KAAK,GACN,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,OAAO,GACP,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,SAAS,CAAC;AAEd,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,IAAI,CAAC,EACD,0CAA0C,GAC1C,sDAAsD,GACtD,8CAA8C,CAAC;IACnD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,CAAC;IACvE,iBAAiB,CAAC,EAAE;QAClB,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC5B,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC7B,CAAC;IACF,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAW,EACX,OAAe,EACf,MAAM,EACN,QAAQ,EACR,UAAU,EACV,OAAO,EACP,KAAgB,EAChB,IAAiD,EACjD,QAAQ,EACR,iBAAsB,EACtB,sBAAsB,EACtB,YAAiB,EACjB,iBAAiB,GAClB,EAAE,KAAK,2CAkSP"}
1
+ {"version":3,"file":"gesco-contact-form.d.ts","sourceRoot":"","sources":["../../../../src/common/components/gesco-contact-form/gesco-contact-form.tsx"],"names":[],"mappings":"AAgBA,KAAK,KAAK,GACN,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,OAAO,GACP,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,SAAS,CAAC;AAEd,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,IAAI,CAAC,EACD,0CAA0C,GAC1C,sDAAsD,GACtD,8CAA8C,CAAC;IACnD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,CAAC;IACvE,iBAAiB,CAAC,EAAE;QAClB,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC5B,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC7B,CAAC;IACF,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAW,EACX,OAAe,EACf,MAAM,EACN,QAAQ,EACR,UAAU,EACV,OAAO,EACP,KAAgB,EAChB,IAAiD,EACjD,QAAQ,EACR,iBAAsB,EACtB,sBAAsB,EACtB,YAAiB,EACjB,iBAAiB,GAClB,EAAE,KAAK,2CAkSP"}
@@ -1,22 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import dynamic from "next/dynamic";
4
3
  import Select, { formatOptions } from "dt-design-system/es/select";
5
4
  import Input from "dt-design-system/es/input";
6
5
  import Textarea from "dt-design-system/es/textarea";
7
6
  import Button from "dt-design-system/es/button";
8
7
  import Loader from "dt-design-system/es/loader";
9
8
  import Information from "dt-design-system/es/information";
10
- import * as Icons from "dt-design-system/es/icons";
9
+ import PlaneIcon from "dt-design-system/es/icons/plane";
10
+ import PhoneCodeSelect from "./phone-code-select";
11
11
  import useParams from "./hooks/use-params";
12
12
  import * as Messages from "./services/messages";
13
13
  import * as Form from "./services/form";
14
14
  import * as API from "./services/api";
15
15
  import * as Plausible from "./services/plausible";
16
16
  import styles from "./gesco-contact-form.module.css";
17
- const PhoneCodeSelect = dynamic(() => import("./phone-code-select"), {
18
- ssr: false,
19
- });
20
17
  export default function GescoContactForm({ lang = "fr", channel = "ESF", resort, merchant, categories, subject, facet = "WINTER", host = "https://admin.mon-sejour-en-montagne.com", onSubmit, messagesOverrides = {}, hideOptionalStayFields, hiddenFields = [], forceOptionalStay, }) {
21
18
  const _lang = lang === "fr" ? "fr" : "en";
22
19
  const { params, error } = useParams({
@@ -117,5 +114,5 @@ export default function GescoContactForm({ lang = "fr", channel = "ESF", resort,
117
114
  label: messages.stayFrom,
118
115
  }), required: stayNeeded && !forceOptionalStay, extended: true })), !isHidden("stayTo") && (_jsx(Input, { name: "stayTo", className: styles.stayField, type: "date", label: messages.stayToDate, placeholder: messages.dateFormat, onValueChange: updateStayFromMax, hint: stayToMin, min: stayToMin || stayMin, disabled: Boolean(error) || loading, patternError: Messages.format(messages.mandatoryError, {
119
116
  label: messages.stayTo,
120
- }), required: stayNeeded && !forceOptionalStay, extended: true }))] })), !isHidden("message") && (_jsx(Textarea, { name: "message", className: styles.fullWidthField, label: messages.message, disabled: Boolean(error) || loading, required: true, autoSizing: true })), _jsx("div", { className: styles.send, children: _jsxs(Button, { type: "submit", disabled: Boolean(error) || loading || submiting, children: [submiting ? _jsx(Loader, { className: styles.loader }) : _jsx(Icons.Plane, {}), messages.submit] }) }), sendSuccess && (_jsx(Information, { className: styles.response, type: "success", close: hideSuccess, children: messages.sendSucesss })), sendError && (_jsx(Information, { className: styles.response, type: "error", close: hideError, children: messages.sendError })), error && (_jsx(Information, { className: styles.error, type: "warning", children: messages.parametersError }))] }, formKey));
117
+ }), required: stayNeeded && !forceOptionalStay, extended: true }))] })), !isHidden("message") && (_jsx(Textarea, { name: "message", className: styles.fullWidthField, label: messages.message, disabled: Boolean(error) || loading, required: true, autoSizing: true })), _jsx("div", { className: styles.send, children: _jsxs(Button, { type: "submit", disabled: Boolean(error) || loading || submiting, children: [submiting ? _jsx(Loader, { className: styles.loader }) : _jsx(PlaneIcon, {}), messages.submit] }) }), sendSuccess && (_jsx(Information, { className: styles.response, type: "success", close: hideSuccess, children: messages.sendSucesss })), sendError && (_jsx(Information, { className: styles.response, type: "error", close: hideError, children: messages.sendError })), error && (_jsx(Information, { className: styles.error, type: "warning", children: messages.parametersError }))] }, formKey));
121
118
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "alt" | "src" | "height" | "loading" | "width" | "srcSet"> & {
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "alt" | "src" | "height" | "width" | "loading" | "srcSet"> & {
3
3
  src: string | import("next/dist/shared/lib/get-img-props").StaticImport;
4
4
  alt: string;
5
5
  width?: number | `${number}`;
@@ -1 +1 @@
1
- {"version":3,"file":"information.d.ts","sourceRoot":"","sources":["../../../../src/common/components/information/information.tsx"],"names":[],"mappings":"AAeA,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAiB,EACjB,IAAgB,EAChB,cAAc,EACd,IAAc,EACd,SAAS,EACT,eAAe,GAChB,EAAE,KAAK,2CAmKP"}
1
+ {"version":3,"file":"information.d.ts","sourceRoot":"","sources":["../../../../src/common/components/information/information.tsx"],"names":[],"mappings":"AAkBA,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAiB,EACjB,IAAgB,EAChB,cAAc,EACd,IAAc,EACd,SAAS,EACT,eAAe,GAChB,EAAE,KAAK,2CAmKP"}
@@ -8,7 +8,10 @@ import Portal from "dt-design-system/es/portal";
8
8
  import Dialog from "dt-design-system/es/dialog";
9
9
  import Tooltip from "dt-design-system/es/tooltip";
10
10
  import Button from "dt-design-system/es/button";
11
- import * as Icons from "dt-design-system/es/icons";
11
+ import BellIcon from "dt-design-system/es/icons/bell";
12
+ import ArrowDownIcon from "dt-design-system/es/icons/arrow-down";
13
+ import ArrowUpIcon from "dt-design-system/es/icons/arrow-up";
14
+ import CrossIcon from "dt-design-system/es/icons/cross";
12
15
  import i18n from "./i18n.json";
13
16
  import styles from "./information.module.css";
14
17
  const STORAGE_KEY = "information_viewed";
@@ -104,5 +107,5 @@ export default function Information({ source = "/popup", zone = "content", preve
104
107
  });
105
108
  const buttonClasses = classNames(styles.informationButton, buttonClassName);
106
109
  const messages = i18n[lang];
107
- return (_jsxs(_Fragment, { children: [isPopin && minimized && (_jsx(Portal, { asChild: true, children: _jsx(Tooltip, { content: messages.showInformation, children: _jsx(Button, { className: buttonClasses, onClick: unminimize, "data-information-popup-button": "", children: _jsx(Icons.Bell, {}) }) }) })), _jsxs(Dialog, { className: classes, close: isPopin ? minimize : close, isOpened: isOpened, showAsModal: !isPopin, showCloseButton: !isPopin, disableBackdrop: isPopin, title: messages.showInformation, children: [isPopin && (_jsxs("div", { className: styles.controls, children: [maximized && (_jsx(Tooltip, { content: messages.minimize, children: _jsx(Button, { variant: "secondary", onClick: unmaximize, children: _jsx(Icons.ArrowDown, {}) }) })), !maximized && hasOverflow && (_jsx(Tooltip, { content: messages.maximize, children: _jsx(Button, { variant: "secondary", onClick: maximize, children: _jsx(Icons.ArrowUp, {}) }) })), _jsx(Tooltip, { content: messages.close, children: _jsx(Button, { onClick: minimize, children: _jsx(Icons.Cross, {}) }) })] })), _jsx("div", { ref: ref, className: styles.inner, dangerouslySetInnerHTML: { __html: content }, "data-information-popup": "" })] })] }));
110
+ return (_jsxs(_Fragment, { children: [isPopin && minimized && (_jsx(Portal, { asChild: true, children: _jsx(Tooltip, { content: messages.showInformation, children: _jsx(Button, { className: buttonClasses, onClick: unminimize, "data-information-popup-button": "", children: _jsx(BellIcon, {}) }) }) })), _jsxs(Dialog, { className: classes, close: isPopin ? minimize : close, isOpened: isOpened, showAsModal: !isPopin, showCloseButton: !isPopin, disableBackdrop: isPopin, title: messages.showInformation, children: [isPopin && (_jsxs("div", { className: styles.controls, children: [maximized && (_jsx(Tooltip, { content: messages.minimize, children: _jsx(Button, { variant: "secondary", onClick: unmaximize, children: _jsx(ArrowDownIcon, {}) }) })), !maximized && hasOverflow && (_jsx(Tooltip, { content: messages.maximize, children: _jsx(Button, { variant: "secondary", onClick: maximize, children: _jsx(ArrowUpIcon, {}) }) })), _jsx(Tooltip, { content: messages.close, children: _jsx(Button, { onClick: minimize, children: _jsx(CrossIcon, {}) }) })] })), _jsx("div", { ref: ref, className: styles.inner, dangerouslySetInnerHTML: { __html: content }, "data-information-popup": "" })] })] }));
108
111
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plausible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/plausible/plausible.tsx"],"names":[],"mappings":"AAOA,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
+ {"version":3,"file":"plausible.d.ts","sourceRoot":"","sources":["../../../../src/common/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":"scrolling-carousel.d.ts","sourceRoot":"","sources":["../../../../src/common/components/scrolling-carousel/scrolling-carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAKF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA6HvE"}
1
+ {"version":3,"file":"scrolling-carousel.d.ts","sourceRoot":"","sources":["../../../../src/common/components/scrolling-carousel/scrolling-carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAKF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA6HvE"}
@@ -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 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 ChevronRightIcon from "dt-design-system/es/icons/chevron-right";
7
8
  import useWindowSizes from "../../hooks/use-window-sizes";
8
9
  import css from "./scrolling-carousel.module.css";
9
10
  const PREV = 0;
@@ -81,5 +82,5 @@ export default function ScrollingCarousel({ className, children }) {
81
82
  resetScroll();
82
83
  }, [width]);
83
84
  const classes = classNames(css.carousel, className);
84
- return (_jsxs("div", { className: classes, children: [overflow && (_jsxs("div", { className: css.controls, "data-controls": "", children: [_jsx(Button, { className: css.control, variant: "link", onClick: slideTo(PREV), disabled: controls.prevDisabled, "data-control": "prev", children: _jsx(Icons.ChevronLeft, { className: css.controlIcon }) }), _jsx(Button, { className: css.control, variant: "link", onClick: slideTo(NEXT), disabled: controls.nextDisabled, "data-control": "next", children: _jsx(Icons.ChevronRight, { className: css.controlIcon }) })] })), _jsx("div", { className: css.inner, ref: ref, onScroll: refreshControls, "data-inner": "", children: React.cloneElement(children, { ref: zoneRef }) })] }));
85
+ return (_jsxs("div", { className: classes, children: [overflow && (_jsxs("div", { className: css.controls, "data-controls": "", children: [_jsx(Button, { className: css.control, variant: "link", onClick: slideTo(PREV), disabled: controls.prevDisabled, "data-control": "prev", children: _jsx(ChevronLeftIcon, { className: css.controlIcon }) }), _jsx(Button, { className: css.control, variant: "link", onClick: slideTo(NEXT), disabled: controls.nextDisabled, "data-control": "next", children: _jsx(ChevronRightIcon, { className: css.controlIcon }) })] })), _jsx("div", { className: css.inner, ref: ref, onScroll: refreshControls, "data-inner": "", children: React.cloneElement(children, { ref: zoneRef }) })] }));
85
86
  }
@@ -5,7 +5,8 @@ import Router from "next/router";
5
5
  import getConfig from "next/config";
6
6
  import Link from "ublo/link";
7
7
  import { useUbloContext } from "ublo/with-ublo";
8
- import * as DSIcons from "dt-design-system/es/icons";
8
+ import SearchIcon from "dt-design-system/es/icons/search";
9
+ import LoaderIcon from "dt-design-system/es/icons/loader2";
9
10
  import * as Plausible from "../plausible";
10
11
  import useSearch from "./hooks/use-search";
11
12
  import * as KeyboardKeys from "./utils/keyboard-keys";
@@ -25,8 +26,8 @@ const SearchBar = ({ lang, resultFormatter, backdrop, OverrideIcons = {}, messag
25
26
  exclude,
26
27
  });
27
28
  const DefaultIcons = {
28
- SearchIcon: DSIcons.Search,
29
- LoadIcon: DSIcons.Loader2,
29
+ SearchIcon: SearchIcon,
30
+ LoadIcon: LoaderIcon,
30
31
  };
31
32
  const Icons = Object.assign({}, DefaultIcons, OverrideIcons);
32
33
  const close = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"week-selector.d.ts","sourceRoot":"","sources":["../../../../src/common/components/week-selector/week-selector.tsx"],"names":[],"mappings":"AAWA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;CAC3C,CAAC;AAOF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,cAAc,EACd,OAAO,GACR,EAAE,KAAK,2CAqPP"}
1
+ {"version":3,"file":"week-selector.d.ts","sourceRoot":"","sources":["../../../../src/common/components/week-selector/week-selector.tsx"],"names":[],"mappings":"AAeA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;CAC3C,CAAC;AAOF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,cAAc,EACd,OAAO,GACR,EAAE,KAAK,2CAqPP"}