ublo-lib 1.16.5 → 1.17.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 (137) hide show
  1. package/es/common/components/admin-links/admin-links.d.ts +3 -4
  2. package/es/common/components/admin-links/admin-links.d.ts.map +1 -1
  3. package/es/common/components/breadcrumb.d.ts +3 -4
  4. package/es/common/components/breadcrumb.d.ts.map +1 -1
  5. package/es/common/components/editable-map/icons/esf.js +0 -5
  6. package/es/common/components/editable-map/icons/sata-huez.js +0 -4
  7. package/es/common/components/editable-map/index.js +0 -1
  8. package/es/common/components/editable-map/marker-list.js +0 -1
  9. package/es/common/components/instant-search/hooks/use-search.d.ts +1 -1
  10. package/es/common/components/instant-search/hooks/use-search.d.ts.map +1 -1
  11. package/es/common/components/instant-search/input.d.ts +3 -4
  12. package/es/common/components/instant-search/input.d.ts.map +1 -1
  13. package/es/common/components/instant-search/instant-search.d.ts +2 -3
  14. package/es/common/components/instant-search/instant-search.d.ts.map +1 -1
  15. package/es/common/components/instant-search/links.d.ts +2 -3
  16. package/es/common/components/instant-search/links.d.ts.map +1 -1
  17. package/es/common/components/instant-search/no-product.d.ts +2 -3
  18. package/es/common/components/instant-search/no-product.d.ts.map +1 -1
  19. package/es/common/components/instant-search/products.d.ts +2 -2
  20. package/es/common/components/instant-search/products.d.ts.map +1 -1
  21. package/es/common/components/instant-search/results.d.ts +10 -11
  22. package/es/common/components/instant-search/results.d.ts.map +1 -1
  23. package/es/common/components/instant-search/services/dates.js +0 -1
  24. package/es/common/components/msem-preset-editor/components/facet-selector.d.ts +6 -0
  25. package/es/common/components/msem-preset-editor/components/facet-selector.d.ts.map +1 -0
  26. package/es/common/components/msem-preset-editor/components/facet-selector.js +23 -0
  27. package/es/common/components/msem-preset-editor/components/form.d.ts +8 -0
  28. package/es/common/components/msem-preset-editor/components/form.d.ts.map +1 -0
  29. package/es/common/components/msem-preset-editor/components/form.js +8 -0
  30. package/es/common/components/msem-preset-editor/components/form.module.css +39 -0
  31. package/es/common/components/msem-preset-editor/components/stay-picker.d.ts +14 -0
  32. package/es/common/components/msem-preset-editor/components/stay-picker.d.ts.map +1 -0
  33. package/es/common/components/msem-preset-editor/components/stay-picker.js +35 -0
  34. package/es/common/components/msem-preset-editor/components/stay-picker.module.css +5 -0
  35. package/es/common/components/msem-preset-editor/components/widget-list-item.d.ts +12 -0
  36. package/es/common/components/msem-preset-editor/components/widget-list-item.d.ts.map +1 -0
  37. package/es/common/components/msem-preset-editor/components/widget-list-item.js +48 -0
  38. package/es/common/components/msem-preset-editor/components/widget-list-item.module.css +115 -0
  39. package/es/common/components/msem-preset-editor/components/widget-list.d.ts +17 -0
  40. package/es/common/components/msem-preset-editor/components/widget-list.d.ts.map +1 -0
  41. package/es/common/components/msem-preset-editor/components/widget-list.js +34 -0
  42. package/es/common/components/msem-preset-editor/components/widget-list.module.css +12 -0
  43. package/es/common/components/msem-preset-editor/editor-dialog.d.ts +29 -0
  44. package/es/common/components/msem-preset-editor/editor-dialog.d.ts.map +1 -0
  45. package/es/common/components/msem-preset-editor/editor-dialog.js +16 -0
  46. package/es/common/components/msem-preset-editor/editor-dialog.module.css +31 -0
  47. package/es/common/components/msem-preset-editor/editors/elloha.d.ts +14 -0
  48. package/es/common/components/msem-preset-editor/editors/elloha.d.ts.map +1 -0
  49. package/es/common/components/msem-preset-editor/editors/elloha.js +69 -0
  50. package/es/common/components/msem-preset-editor/editors/elloha.module.css +8 -0
  51. package/es/common/components/msem-preset-editor/editors/index.d.ts +14 -0
  52. package/es/common/components/msem-preset-editor/editors/index.d.ts.map +1 -0
  53. package/es/common/components/msem-preset-editor/editors/index.js +13 -0
  54. package/es/common/components/msem-preset-editor/editors/lodgings.d.ts +16 -0
  55. package/es/common/components/msem-preset-editor/editors/lodgings.d.ts.map +1 -0
  56. package/es/common/components/msem-preset-editor/editors/lodgings.js +199 -0
  57. package/es/common/components/msem-preset-editor/editors/lodgings.module.css +21 -0
  58. package/es/common/components/msem-preset-editor/editors/ski-passes.d.ts +15 -0
  59. package/es/common/components/msem-preset-editor/editors/ski-passes.d.ts.map +1 -0
  60. package/es/common/components/msem-preset-editor/editors/ski-passes.js +196 -0
  61. package/es/common/components/msem-preset-editor/editors/ski-passes.module.css +25 -0
  62. package/es/common/components/msem-preset-editor/editors/standard-products.d.ts +15 -0
  63. package/es/common/components/msem-preset-editor/editors/standard-products.d.ts.map +1 -0
  64. package/es/common/components/msem-preset-editor/editors/standard-products.js +64 -0
  65. package/es/common/components/msem-preset-editor/editors/vakario.d.ts +14 -0
  66. package/es/common/components/msem-preset-editor/editors/vakario.d.ts.map +1 -0
  67. package/es/common/components/msem-preset-editor/editors/vakario.js +181 -0
  68. package/es/common/components/msem-preset-editor/index.js +2 -0
  69. package/es/common/components/msem-preset-editor/msem-preset-editor.d.ts +27 -0
  70. package/es/common/components/msem-preset-editor/msem-preset-editor.d.ts.map +1 -0
  71. package/es/common/components/msem-preset-editor/msem-preset-editor.js +130 -0
  72. package/es/common/components/msem-preset-editor/msem-preset-editor.module.css +49 -0
  73. package/es/common/components/msem-preset-editor/services/api.d.ts +15 -0
  74. package/es/common/components/msem-preset-editor/services/api.d.ts.map +1 -0
  75. package/es/common/components/msem-preset-editor/services/api.js +74 -0
  76. package/es/common/components/msem-preset-editor/services/offers.d.ts +47 -0
  77. package/es/common/components/msem-preset-editor/services/offers.d.ts.map +1 -0
  78. package/es/common/components/msem-preset-editor/services/offers.js +39 -0
  79. package/es/common/components/msem-preset-editor/services/preset.d.ts +40 -0
  80. package/es/common/components/msem-preset-editor/services/preset.d.ts.map +1 -0
  81. package/es/common/components/msem-preset-editor/services/preset.js +15 -0
  82. package/es/common/components/msem-preset-editor/services/url-params.d.ts +3 -0
  83. package/es/common/components/msem-preset-editor/services/url-params.d.ts.map +1 -0
  84. package/es/common/components/msem-preset-editor/services/url-params.js +26 -0
  85. package/es/common/components/msem-preset-linker/components/actions.d.ts +11 -0
  86. package/es/common/components/msem-preset-linker/components/actions.d.ts.map +1 -0
  87. package/es/common/components/msem-preset-linker/components/actions.js +43 -0
  88. package/es/common/components/msem-preset-linker/components/actions.module.css +66 -0
  89. package/es/common/components/msem-preset-linker/components/overlays.d.ts +8 -0
  90. package/es/common/components/msem-preset-linker/components/overlays.d.ts.map +1 -0
  91. package/es/common/components/msem-preset-linker/components/overlays.js +47 -0
  92. package/es/common/components/msem-preset-linker/components/overlays.module.css +64 -0
  93. package/es/common/components/msem-preset-linker/components/resort-selector.d.ts +6 -0
  94. package/es/common/components/msem-preset-linker/components/resort-selector.d.ts.map +1 -0
  95. package/es/common/components/msem-preset-linker/components/resort-selector.js +12 -0
  96. package/es/common/components/msem-preset-linker/hooks/use-msem-presets.d.ts +4 -0
  97. package/es/common/components/msem-preset-linker/hooks/use-msem-presets.d.ts.map +1 -0
  98. package/es/common/components/msem-preset-linker/hooks/use-msem-presets.js +36 -0
  99. package/es/common/components/msem-preset-linker/index.d.ts +3 -0
  100. package/es/common/components/msem-preset-linker/index.d.ts.map +1 -0
  101. package/es/common/components/msem-preset-linker/index.js +2 -0
  102. package/es/common/components/msem-preset-linker/msem-preset-linker.d.ts +29 -0
  103. package/es/common/components/msem-preset-linker/msem-preset-linker.d.ts.map +1 -0
  104. package/es/common/components/msem-preset-linker/msem-preset-linker.js +54 -0
  105. package/es/common/components/msem-preset-linker/msem-preset-linker.module.css +23 -0
  106. package/es/common/components/msem-preset-linker/services/url-params.d.ts +2 -0
  107. package/es/common/components/msem-preset-linker/services/url-params.d.ts.map +1 -0
  108. package/es/common/components/msem-preset-linker/services/url-params.js +13 -0
  109. package/es/common/components/plausible/services/callback.js +0 -1
  110. package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts +2 -2
  111. package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts.map +1 -1
  112. package/es/common/components/tabbed-zones.d.ts +3 -4
  113. package/es/common/components/tabbed-zones.d.ts.map +1 -1
  114. package/es/common/hooks/use-in-view.d.ts +1 -1
  115. package/es/common/hooks/use-in-view.d.ts.map +1 -1
  116. package/es/common/hooks/use-scroll-direction.d.ts +2 -2
  117. package/es/common/hooks/use-scroll-direction.d.ts.map +1 -1
  118. package/es/common/hooks/use-tunnel.d.ts +1 -1
  119. package/es/common/hooks/use-tunnel.d.ts.map +1 -1
  120. package/es/common/hooks/use-window-sizes.d.ts +1 -1
  121. package/es/common/hooks/use-window-sizes.d.ts.map +1 -1
  122. package/es/common/utils/fetcher.js +0 -1
  123. package/es/common/utils/msem-widget.d.ts +3 -4
  124. package/es/common/utils/msem-widget.d.ts.map +1 -1
  125. package/es/esf/components/covid-link/index.js +0 -6
  126. package/es/esf/components/cp-form.js +0 -1
  127. package/es/esf/components/magic-box/magic-box.d.ts +3 -3
  128. package/es/esf/components/magic-box/magic-box.d.ts.map +1 -1
  129. package/es/esf/components/parcours-esf/parcours-esf.d.ts +2 -3
  130. package/es/esf/components/parcours-esf/parcours-esf.d.ts.map +1 -1
  131. package/es/esf/components/period-picker/services/dates.js +0 -1
  132. package/es/esf/components/village-maps/utils.js +0 -1
  133. package/es/esf/components/week-picker/index.js +1 -2
  134. package/es/esf/components/week-picker/utils.js +0 -1
  135. package/es/esf/components/week-picker-2/index.js +1 -2
  136. package/es/esf/components/week-picker-2/utils.js +0 -1
  137. package/package.json +34 -30
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- declare type Link = {
1
+ type Link = {
3
2
  name: string;
4
3
  onClick: string | (() => void);
5
4
  target?: string;
6
5
  };
7
- declare type Props = {
6
+ type Props = {
8
7
  customLinks?: Record<string, Link>;
9
8
  };
10
- declare const AdminLinks: ({ customLinks }: Props) => JSX.Element;
9
+ declare const AdminLinks: ({ customLinks }: Props) => import("react/jsx-runtime").JSX.Element;
11
10
  export default AdminLinks;
12
11
  //# sourceMappingURL=admin-links.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-links.d.ts","sourceRoot":"","sources":["../../../../src/common/components/admin-links/admin-links.tsx"],"names":[],"mappings":";AAMA,aAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,aAAK,KAAK,GAAG;IACX,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CACpC,CAAC;AAeF,QAAA,MAAM,UAAU,oBAAqB,KAAK,gBA8EzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"admin-links.d.ts","sourceRoot":"","sources":["../../../../src/common/components/admin-links/admin-links.tsx"],"names":[],"mappings":"AAMA,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CACpC,CAAC;AAeF,QAAA,MAAM,UAAU,oBAAqB,KAAK,4CA8EzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- declare type ItemProps = {
1
+ type ItemProps = {
3
2
  title: string;
4
3
  shortTitle?: string;
5
4
  name: string;
@@ -8,10 +7,10 @@ declare type ItemProps = {
8
7
  subs?: ItemProps[];
9
8
  exclusions: string[];
10
9
  };
11
- declare type BreadcrumbProps = {
10
+ type BreadcrumbProps = {
12
11
  breadcrumb: ItemProps;
13
12
  exclusions: string[];
14
13
  };
15
- declare const Breadcrumb: ({ breadcrumb, exclusions }: BreadcrumbProps) => JSX.Element;
14
+ declare const Breadcrumb: ({ breadcrumb, exclusions }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
16
15
  export default Breadcrumb;
17
16
  //# sourceMappingURL=breadcrumb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/common/components/breadcrumb.tsx"],"names":[],"mappings":";AAGA,aAAK,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,aAAK,eAAe,GAAG;IACrB,UAAU,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAqDF,QAAA,MAAM,UAAU,+BAAqC,eAAe,gBAInE,CAAC;AAEF,eAAe,UAAU,CAAC"}
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;AAqDF,QAAA,MAAM,UAAU,+BAAqC,eAAe,4CAInE,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -57,7 +57,6 @@ export function Location4(props) {
57
57
  })]
58
58
  }, "4");
59
59
  }
60
-
61
60
  export function ESFOffice(props) {
62
61
  return _jsxs(Icon, {
63
62
  ...props,
@@ -323,7 +322,6 @@ export function ClubPiouPiou(props) {
323
322
  })]
324
323
  }, "11");
325
324
  }
326
-
327
325
  export function Chairlift(props) {
328
326
  return _jsxs(Icon, {
329
327
  ...props,
@@ -518,7 +516,6 @@ export function PiouPiouMat(props) {
518
516
  })]
519
517
  }, "21");
520
518
  }
521
-
522
519
  export function Cabin(props) {
523
520
  return _jsxs(Icon, {
524
521
  ...props,
@@ -683,7 +680,6 @@ export function Bus(props) {
683
680
  })]
684
681
  }, "30");
685
682
  }
686
-
687
683
  export function EastDirection(props) {
688
684
  return _jsxs(Icon, {
689
685
  ...props,
@@ -820,7 +816,6 @@ export function SouthEastDirection(props) {
820
816
  })]
821
817
  }, "38");
822
818
  }
823
-
824
819
  function Icon({
825
820
  width = 24,
826
821
  height = 24,
@@ -14,7 +14,6 @@ export function Location(props) {
14
14
  })]
15
15
  }, "1");
16
16
  }
17
-
18
17
  export function Chairlift(props) {
19
18
  return _jsxs(Icon, {
20
19
  ...props,
@@ -209,7 +208,6 @@ export function PiouPiouMat(props) {
209
208
  })]
210
209
  }, "21");
211
210
  }
212
-
213
211
  export function Cabin(props) {
214
212
  return _jsxs(Icon, {
215
213
  ...props,
@@ -374,7 +372,6 @@ export function Bus(props) {
374
372
  })]
375
373
  }, "30");
376
374
  }
377
-
378
375
  export function EastDirection(props) {
379
376
  return _jsxs(Icon, {
380
377
  ...props,
@@ -511,7 +508,6 @@ export function SouthEastDirection(props) {
511
508
  })]
512
509
  }, "38");
513
510
  }
514
-
515
511
  function Icon({
516
512
  width = 24,
517
513
  height = 24,
@@ -17,7 +17,6 @@ export default function EditableMap({
17
17
  } = useUbloContext();
18
18
  const [formats, setFormats] = React.useState([]);
19
19
  const [refreshKey, setRefreshKey] = React.useState(0);
20
-
21
20
  const refreshEditableMap = e => {
22
21
  setRefreshKey(key => key + 1);
23
22
  };
@@ -8,7 +8,6 @@ import * as Icons from "./icons";
8
8
  import useWindowSizes from "../../hooks/use-window-sizes";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
-
12
11
  export default function MarkerList({
13
12
  isInDialog,
14
13
  markers,
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type SearchOptions = {
2
+ export type SearchOptions = {
3
3
  groupLimit?: number;
4
4
  page?: number;
5
5
  perPage?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":";AAOA,oBAAY,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAW1E"}
1
+ {"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":";AAOA,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAW1E"}
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
- declare type Suggestions = {
1
+ type Suggestions = {
3
2
  fr?: string[];
4
3
  en?: string[];
5
4
  };
6
- declare type Props = {
5
+ type Props = {
7
6
  lang: string;
8
7
  text: string;
9
8
  setText: (value: string) => void;
@@ -11,6 +10,6 @@ declare type Props = {
11
10
  closeSearch: () => void;
12
11
  suggestions?: Suggestions;
13
12
  };
14
- export default function SearchInput({ lang, text, setText, closeSearch, loading, suggestions, }: Props): JSX.Element;
13
+ export default function SearchInput({ lang, text, setText, closeSearch, loading, suggestions, }: Props): import("react/jsx-runtime").JSX.Element;
15
14
  export {};
16
15
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/input.tsx"],"names":[],"mappings":";AASA,aAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AAEF,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,WAAW,EACX,OAAO,EACP,WAAW,GACZ,EAAE,KAAK,eA8EP"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/input.tsx"],"names":[],"mappings":"AASA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,WAAW,EACX,OAAO,EACP,WAAW,GACZ,EAAE,KAAK,2CA8EP"}
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { SearchOptions } from "./hooks/use-search";
3
- declare type Props = {
2
+ type Props = {
4
3
  lang: string;
5
4
  className?: string;
6
5
  ubloContext: any;
@@ -10,6 +9,6 @@ declare type Props = {
10
9
  };
11
10
  options?: SearchOptions;
12
11
  };
13
- export default function InstantSearch({ lang, suggestions, className, ubloContext, options, }: Props): JSX.Element;
12
+ export default function InstantSearch({ lang, suggestions, className, ubloContext, options, }: Props): import("react/jsx-runtime").JSX.Element;
14
13
  export {};
15
14
  //# sourceMappingURL=instant-search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instant-search.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/instant-search.tsx"],"names":[],"mappings":";AAUA,OAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAK9D,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,WAAW,CAAC,EAAE;QACZ,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;KACf,CAAC;IACF,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,WAAW,EACX,SAAS,EACT,WAAW,EACX,OAAY,GACb,EAAE,KAAK,eAsIP"}
1
+ {"version":3,"file":"instant-search.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/instant-search.tsx"],"names":[],"mappings":"AAUA,OAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAK9D,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,WAAW,CAAC,EAAE;QACZ,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;KACf,CAAC;IACF,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,WAAW,EACX,SAAS,EACT,WAAW,EACX,OAAY,GACb,EAAE,KAAK,2CAsIP"}
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import type { Hit } from "./results";
3
- declare type Props = {
2
+ type Props = {
4
3
  linksTitle: string;
5
4
  icon: "FileText" | "Info" | "Question" | "User";
6
5
  links: Hit[];
@@ -8,6 +7,6 @@ declare type Props = {
8
7
  loading: boolean;
9
8
  sendPlausibleGoal: (path: string) => void;
10
9
  };
11
- export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loading, sendPlausibleGoal, }: Props): JSX.Element | null;
10
+ export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loading, sendPlausibleGoal, }: Props): import("react/jsx-runtime").JSX.Element | null;
12
11
  export {};
13
12
  //# sourceMappingURL=links.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/links.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,aAAK,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,sBAmEP"}
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/common/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,kDAmEP"}
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
- declare type Props = {
1
+ type Props = {
3
2
  className?: string;
4
3
  };
5
- export default function NoProduct({ className }: Props): JSX.Element;
4
+ export default function NoProduct({ className }: Props): import("react/jsx-runtime").JSX.Element;
6
5
  export {};
7
6
  //# sourceMappingURL=no-product.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-product.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/no-product.tsx"],"names":[],"mappings":";AAEA,aAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,KAAK,eA2FrD"}
1
+ {"version":3,"file":"no-product.d.ts","sourceRoot":"","sources":["../../../../src/common/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,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import type { Hit } from "./results";
3
- declare type Props = {
3
+ type Props = {
4
4
  lang: string;
5
5
  products: Hit[];
6
6
  weekNumber: number | null;
@@ -9,6 +9,6 @@ declare type Props = {
9
9
  otherResultsRef: React.RefObject<HTMLDivElement>;
10
10
  isOtherResultsEmpty: boolean;
11
11
  };
12
- export default function Products({ lang, products, weekNumber, loading, sendPlausibleGoal, otherResultsRef, isOtherResultsEmpty, }: Props): JSX.Element;
12
+ export default function Products({ lang, products, weekNumber, loading, sendPlausibleGoal, otherResultsRef, isOtherResultsEmpty, }: Props): import("react/jsx-runtime").JSX.Element;
13
13
  export {};
14
14
  //# sourceMappingURL=products.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/products.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACjD,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,EAAE,KAAK,eA4HP"}
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/products.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACjD,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,EAAE,KAAK,2CA4HP"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- declare type Document = {
1
+ type Document = {
3
2
  id: string;
4
3
  image?: string;
5
4
  imagePlaceholder?: string;
@@ -18,43 +17,43 @@ declare type Document = {
18
17
  seoKeywords?: string[];
19
18
  seoTitle?: string;
20
19
  };
21
- declare type Text = {
20
+ type Text = {
22
21
  matched_tokens: string[];
23
22
  snippet: string;
24
23
  };
25
- export declare type PurpleHighlight = {
24
+ export type PurpleHighlight = {
26
25
  text?: Text;
27
26
  title?: Text;
28
27
  };
29
- declare type HighlightElement = {
28
+ type HighlightElement = {
30
29
  field: string;
31
30
  matched_tokens: string[];
32
31
  snippet: string;
33
32
  };
34
- declare type TextMatchInfo = {
33
+ type TextMatchInfo = {
35
34
  best_field_score: string;
36
35
  best_field_weight: number;
37
36
  fields_matched: number;
38
37
  score: string;
39
38
  tokens_matched: number;
40
39
  };
41
- export declare type Hit = {
40
+ export type Hit = {
42
41
  document: Document;
43
42
  highlight: PurpleHighlight;
44
43
  highlights: HighlightElement[];
45
44
  text_match: number;
46
45
  text_match_info: TextMatchInfo;
47
46
  };
48
- declare type GroupedHit = {
47
+ type GroupedHit = {
49
48
  group_key: string[];
50
49
  hits: Hit[];
51
50
  };
52
- declare type RequestParams = {
51
+ type RequestParams = {
53
52
  collection_name: string;
54
53
  per_page: number;
55
54
  q: string;
56
55
  };
57
- declare type Props = {
56
+ type Props = {
58
57
  lang: string;
59
58
  text: string;
60
59
  results: {
@@ -72,6 +71,6 @@ declare type Props = {
72
71
  sendPlausibleGoal: (path: string) => void;
73
72
  loading: boolean;
74
73
  };
75
- export default function Results({ lang, text, results, weekNumber, openPeriodPicker, loading, sendPlausibleGoal, }: Props): JSX.Element;
74
+ export default function Results({ lang, text, results, weekNumber, openPeriodPicker, loading, sendPlausibleGoal, }: Props): import("react/jsx-runtime").JSX.Element;
76
75
  export {};
77
76
  //# sourceMappingURL=results.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/results.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/results.tsx"],"names":[],"mappings":"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"}
@@ -25,7 +25,6 @@ function addDays(date, days) {
25
25
  clone.setDate(clone.getDate() + days);
26
26
  return clone;
27
27
  }
28
-
29
28
  function christmasWeek(endWeek, forceSeasonSwitch) {
30
29
  const now = createDate();
31
30
  const year = now.getFullYear();
@@ -0,0 +1,6 @@
1
+ export default function FacetSelector({ facet, setFacet, setPreset }: {
2
+ facet: any;
3
+ setFacet: any;
4
+ setPreset: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=facet-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facet-selector.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/msem-preset-editor/components/facet-selector.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE;;;;CAAA,2CA2BnE"}
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Select from "dt-design-system/es/select";
3
+ export default function FacetSelector({ facet, setFacet, setPreset }) {
4
+ const updateFacet = (newValue) => {
5
+ setPreset((current) => {
6
+ if (!newValue) {
7
+ return null;
8
+ }
9
+ else {
10
+ return {
11
+ ...current,
12
+ options: { ...(current?.options || {}), facet: Number(newValue) },
13
+ };
14
+ }
15
+ });
16
+ setFacet(newValue);
17
+ };
18
+ return (_jsx(Select, { value: facet, onValueChange: updateFacet, label: "Facette", options: [
19
+ { label: "Sélectionnez une facette pour continuer", value: "" },
20
+ { label: "Hiver", value: "0" },
21
+ { label: "Eté", value: "1" },
22
+ ] }));
23
+ }
@@ -0,0 +1,8 @@
1
+ export default function Form({ title, width, preset, buttonsActions, children, }: {
2
+ title: any;
3
+ width: any;
4
+ preset: any;
5
+ buttonsActions: any;
6
+ children: any;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/msem-preset-editor/components/form.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,QAAQ,GACT;;;;;;CAAA,2CAuCA"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Button from "dt-design-system/es/button";
3
+ import * as Icons from "dt-design-system/es/icons";
4
+ import css from "./form.module.css";
5
+ export default function Form({ title, width, preset, buttonsActions, children, }) {
6
+ const { testPreset, cancelPreset, confirmPreset } = buttonsActions;
7
+ return (_jsxs("div", { className: css.form, style: { width }, children: [_jsxs("div", { className: css.title, children: [_jsx(Icons.MdTune, {}), title] }), _jsx("div", { className: css.inner, children: children }), _jsxs("div", { className: css.buttons, children: [_jsx(Button, { variant: "secondary", disabled: !preset?.widget, className: css.testButton, onClick: testPreset, "data-tooltip": "Tester dans le widget MseM", children: _jsx(Icons.MdOpenInBrowser, {}) }), _jsx(Button, { type: "submit", variant: "secondary", className: css.button, onClick: cancelPreset, children: "Annuler" }), _jsx(Button, { type: "submit", variant: "primary", className: css.button, onClick: confirmPreset, disabled: !confirmPreset, children: "Confirmer" })] })] }));
8
+ }
@@ -0,0 +1,39 @@
1
+ .form {
2
+ max-width: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 12px;
6
+ padding: 20px;
7
+ }
8
+
9
+ .title {
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ gap: 8px;
14
+ font-size: 22px;
15
+ font-weight: 700;
16
+ text-align: center;
17
+ }
18
+
19
+ .title > svg {
20
+ width: 22px;
21
+ height: 22px;
22
+ fill: currentColor;
23
+ }
24
+
25
+ .inner {
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: 8px;
29
+ }
30
+
31
+ .buttons {
32
+ display: flex;
33
+ justify-content: flex-end;
34
+ gap: 12px;
35
+ }
36
+
37
+ .testButton {
38
+ margin-right: auto;
39
+ }
@@ -0,0 +1,14 @@
1
+ type Props = {
2
+ stay: {
3
+ from: string;
4
+ to: string;
5
+ };
6
+ setStay: (stay: {
7
+ from: string;
8
+ to: string;
9
+ }) => void;
10
+ setPreset: (preset: Record<string, any>) => void;
11
+ };
12
+ export default function StayPicker({ stay, setStay }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=stay-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stay-picker.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/msem-preset-editor/components/stay-picker.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACtD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,2CAiD1D"}
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Input from "dt-design-system/es/input";
3
+ import css from "./stay-picker.module.css";
4
+ export default function StayPicker({ stay, setStay }) {
5
+ const updateStay = (key) => (value) => {
6
+ const isFrom = key === "from";
7
+ const isTo = key === "to";
8
+ if (isFrom) {
9
+ if (!stay.to && !value) {
10
+ window.sessionStorage.removeItem("stay");
11
+ return setStay({ from: "", to: "" });
12
+ }
13
+ const from = new Date(value);
14
+ const to = new Date(stay.to);
15
+ if (from > to || !stay.to) {
16
+ return setStay({ from: value, to: value });
17
+ }
18
+ return setStay({ ...stay, [key]: value });
19
+ }
20
+ if (isTo) {
21
+ if (!stay.from && !value) {
22
+ window.sessionStorage.removeItem("stay");
23
+ return setStay({ from: "", to: "" });
24
+ }
25
+ const from = new Date(stay.from);
26
+ const to = new Date(value);
27
+ if (from > to || !stay.from) {
28
+ return setStay({ to: value, from: value });
29
+ }
30
+ return setStay({ ...stay, [key]: value });
31
+ }
32
+ setStay({ ...stay, [key]: value });
33
+ };
34
+ return (_jsxs("div", { className: css.picker, children: [_jsx(Input, { type: "date", label: "Date de d\u00E9but", value: stay.from, onValueChange: updateStay("from") }), _jsx(Input, { type: "date", label: "Date de fin", value: stay.to, onValueChange: updateStay("to") })] }));
35
+ }
@@ -0,0 +1,5 @@
1
+ .picker {
2
+ display: flex;
3
+ gap: 12px;
4
+ margin-bottom: 4px;
5
+ }
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import type { Offer } from "../services/offers";
3
+ type Props = {
4
+ item: Offer;
5
+ preset: Record<string, any> | null;
6
+ updatePreset: (item: Offer, subPreset?: Offer) => void;
7
+ removePreset: () => void;
8
+ setShowPresetDialog: React.Dispatch<React.SetStateAction<boolean>>;
9
+ };
10
+ export default function WidgetListItem({ item, preset, updatePreset, removePreset, setShowPresetDialog, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=widget-list-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-list-item.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/msem-preset-editor/components/widget-list-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGhD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACvD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACpE,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,mBAAmB,GACpB,EAAE,KAAK,2CA6IP"}
@@ -0,0 +1,48 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import classNames from "classnames";
4
+ import Button from "dt-design-system/es/button";
5
+ import * as Icons from "dt-design-system/es/icons";
6
+ import css from "./widget-list-item.module.css";
7
+ const ALLOW_PRESETS_ON_WIDGETS = ["lodging", "skiPass", "elloha", "vakario"];
8
+ export default function WidgetListItem({ item, preset, updatePreset, removePreset, setShowPresetDialog, }) {
9
+ const [opened, setOpened] = React.useState(false);
10
+ const { widget, logo, name, items: subs } = item;
11
+ const toggleItem = () => {
12
+ setOpened(!opened);
13
+ };
14
+ const ToggleIcon = opened ? Icons.ChevronUp : Icons.ChevronDown;
15
+ const isSelected = preset?.name === name && preset?.widget === widget;
16
+ const hasSubs = subs && subs.length > 0;
17
+ const allowAdvancedPresets = ALLOW_PRESETS_ON_WIDGETS.includes(widget);
18
+ const showEditButton = isSelected && allowAdvancedPresets;
19
+ const showRemoveButton = isSelected;
20
+ const classes = classNames(css.item, {
21
+ [css.selected]: isSelected,
22
+ [css.opened]: opened,
23
+ });
24
+ const handleItemClick = () => {
25
+ if (!isSelected) {
26
+ updatePreset(item);
27
+ }
28
+ };
29
+ return (_jsxs("div", { className: classes, children: [_jsxs(Button, { variant: "transparent", className: css.button, onClick: handleItemClick, children: [_jsx("div", { className: css.logo, children: _jsx("img", { src: logo, alt: name }) }), _jsx("div", { className: css.name, children: name })] }), (hasSubs || showEditButton || showRemoveButton) && (_jsxs("div", { className: css.actions, children: [showEditButton && (_jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), "data-tooltip": "Modifier", compact: true, children: _jsx(Icons.Edit, {}) })), showRemoveButton && (_jsx(Button, { variant: "danger", className: css.action, onClick: removePreset, "data-tooltip": "Supprimer", compact: true, children: _jsx(Icons.Trash, {}) })), hasSubs && (_jsx(Button, { variant: "secondary", className: css.action, onClick: toggleItem, "data-tooltip": "Afficher les sous-marchands", compact: true, children: _jsx(ToggleIcon, {}) }))] })), opened && subs && (_jsx("div", { className: css.list, children: subs.map((sub) => {
30
+ const isSelected = preset?.name === sub.name;
31
+ const allowedWidgets = [
32
+ "otherProducts",
33
+ ...ALLOW_PRESETS_ON_WIDGETS,
34
+ ];
35
+ const allowAdvancedPresets = allowedWidgets.includes(sub.widget);
36
+ const showEditButton = isSelected && allowAdvancedPresets;
37
+ const showButtons = showEditButton || isSelected;
38
+ const classes = classNames(css.subButton, {
39
+ [css.subButtonSelected]: isSelected,
40
+ });
41
+ const handleSubClick = () => {
42
+ if (!isSelected) {
43
+ updatePreset(item, sub);
44
+ }
45
+ };
46
+ return (_jsxs("div", { className: css.sub, children: [_jsx(Button, { variant: "transparent", className: classes, onClick: handleSubClick, children: sub.name }), showButtons && (_jsxs("div", { className: css.subActions, children: [showEditButton && (_jsx(Button, { variant: "primary", className: css.action, onClick: () => setShowPresetDialog(true), "data-tooltip": "Modifier", compact: true, children: _jsx(Icons.Edit, {}) })), isSelected && (_jsx(Button, { variant: "danger", className: css.action, onClick: removePreset, "data-tooltip": "Supprimer", compact: true, children: _jsx(Icons.Trash, {}) }))] }))] }, sub.name));
47
+ }) }))] }));
48
+ }