ublo-lib 1.41.1 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/es/common/components/breadcrumb.js +14 -2
  2. package/es/common/components/cookie-consent/cookie-consent.d.ts +2 -1
  3. package/es/common/components/cookie-consent/cookie-consent.d.ts.map +1 -1
  4. package/es/common/components/editable-calendar/index.d.ts +2 -1
  5. package/es/common/components/editable-calendar/index.d.ts.map +1 -1
  6. package/es/common/components/gesco-contact-form/services/form.d.ts.map +1 -1
  7. package/es/common/components/image-with-loader/image-with-loader.d.ts +1 -0
  8. package/es/common/components/image-with-loader/image-with-loader.d.ts.map +1 -1
  9. package/es/common/utils/file-manager.d.ts +1 -7
  10. package/es/common/utils/file-manager.d.ts.map +1 -1
  11. package/es/common/utils/url-parameters.d.ts.map +1 -1
  12. package/es/esf/components/instant-search/hooks/use-search.d.ts +0 -1
  13. package/es/esf/components/instant-search/hooks/use-search.d.ts.map +1 -1
  14. package/es/esf/components/instant-search/links.js +1 -1
  15. package/es/esf/components/instant-search/products.js +1 -1
  16. package/es/esf/components/period-picker/popup.d.ts +2 -1
  17. package/es/esf/components/period-picker/popup.d.ts.map +1 -1
  18. package/es/future/components/msem-preset-editor/services/offers.d.ts.map +1 -1
  19. package/es/future/components/msem-preset-editor/services/url-params.d.ts.map +1 -1
  20. package/es/future/utils/fetcher.d.ts.map +1 -1
  21. package/es/future/utils/url-parameters.d.ts.map +1 -1
  22. package/es/lbm/components/instant-search/faqs.js +1 -1
  23. package/es/lbm/components/instant-search/google-results.js +1 -1
  24. package/es/lbm/components/instant-search/hooks/use-google-search.d.ts +0 -1
  25. package/es/lbm/components/instant-search/hooks/use-google-search.d.ts.map +1 -1
  26. package/es/lbm/components/instant-search/hooks/use-search.d.ts +0 -1
  27. package/es/lbm/components/instant-search/hooks/use-search.d.ts.map +1 -1
  28. package/es/lbm/components/instant-search/links.js +1 -1
  29. package/es/lbm/components/instant-search/products.js +1 -1
  30. package/es/lbm/components/instant-search/widgets/components/card.js +1 -1
  31. package/es/market-place/components/instant-search/google-results.js +1 -1
  32. package/es/market-place/components/instant-search/hooks/use-google-search.d.ts +0 -1
  33. package/es/market-place/components/instant-search/hooks/use-google-search.d.ts.map +1 -1
  34. package/es/market-place/components/instant-search/hooks/use-search.d.ts +0 -1
  35. package/es/market-place/components/instant-search/hooks/use-search.d.ts.map +1 -1
  36. package/es/market-place/components/instant-search/links.js +1 -1
  37. package/es/market-place/components/instant-search/products.js +1 -1
  38. package/package.json +27 -35
  39. package/es/common/components/editable-map/cluster.d.ts +0 -5
  40. package/es/common/components/editable-map/cluster.d.ts.map +0 -1
  41. package/es/common/components/editable-map/cluster.js +0 -8
  42. package/es/common/components/editable-map/color-picker.d.ts +0 -6
  43. package/es/common/components/editable-map/color-picker.d.ts.map +0 -1
  44. package/es/common/components/editable-map/color-picker.js +0 -27
  45. package/es/common/components/editable-map/color-picker.module.css +0 -66
  46. package/es/common/components/editable-map/edit-form.d.ts +0 -7
  47. package/es/common/components/editable-map/edit-form.d.ts.map +0 -1
  48. package/es/common/components/editable-map/edit-form.js +0 -35
  49. package/es/common/components/editable-map/edit-form.module.css +0 -64
  50. package/es/common/components/editable-map/editable-map.d.ts +0 -6
  51. package/es/common/components/editable-map/editable-map.d.ts.map +0 -1
  52. package/es/common/components/editable-map/editable-map.js +0 -184
  53. package/es/common/components/editable-map/editable-map.module.css +0 -251
  54. package/es/common/components/editable-map/full-screen-button.d.ts +0 -7
  55. package/es/common/components/editable-map/full-screen-button.d.ts.map +0 -1
  56. package/es/common/components/editable-map/full-screen-button.js +0 -75
  57. package/es/common/components/editable-map/full-screen-button.module.css +0 -15
  58. package/es/common/components/editable-map/geoman.d.ts +0 -8
  59. package/es/common/components/editable-map/geoman.d.ts.map +0 -1
  60. package/es/common/components/editable-map/geoman.js +0 -181
  61. package/es/common/components/editable-map/icon-picker.d.ts +0 -6
  62. package/es/common/components/editable-map/icon-picker.d.ts.map +0 -1
  63. package/es/common/components/editable-map/icon-picker.js +0 -31
  64. package/es/common/components/editable-map/icon-picker.module.css +0 -64
  65. package/es/common/components/editable-map/icons/esf-pralognan.d.ts +0 -51
  66. package/es/common/components/editable-map/icons/esf-pralognan.d.ts.map +0 -1
  67. package/es/common/components/editable-map/icons/esf-pralognan.js +0 -155
  68. package/es/common/components/editable-map/icons/esf.d.ts +0 -39
  69. package/es/common/components/editable-map/icons/esf.d.ts.map +0 -1
  70. package/es/common/components/editable-map/icons/esf.js +0 -119
  71. package/es/common/components/editable-map/icons/index.d.ts +0 -7
  72. package/es/common/components/editable-map/icons/index.d.ts.map +0 -1
  73. package/es/common/components/editable-map/icons/index.js +0 -6
  74. package/es/common/components/editable-map/icons/lavovelo.d.ts +0 -5
  75. package/es/common/components/editable-map/icons/lavovelo.d.ts.map +0 -1
  76. package/es/common/components/editable-map/icons/lavovelo.js +0 -17
  77. package/es/common/components/editable-map/icons/sata-huez.d.ts +0 -29
  78. package/es/common/components/editable-map/icons/sata-huez.d.ts.map +0 -1
  79. package/es/common/components/editable-map/icons/sata-huez.js +0 -89
  80. package/es/common/components/editable-map/icons/sedev-vars.d.ts +0 -29
  81. package/es/common/components/editable-map/icons/sedev-vars.d.ts.map +0 -1
  82. package/es/common/components/editable-map/icons/sedev-vars.js +0 -89
  83. package/es/common/components/editable-map/icons/ui.d.ts +0 -2
  84. package/es/common/components/editable-map/icons/ui.d.ts.map +0 -1
  85. package/es/common/components/editable-map/icons/ui.js +0 -7
  86. package/es/common/components/editable-map/icons/viarmonia.d.ts +0 -3
  87. package/es/common/components/editable-map/icons/viarmonia.d.ts.map +0 -1
  88. package/es/common/components/editable-map/icons/viarmonia.js +0 -11
  89. package/es/common/components/editable-map/index.d.ts +0 -5
  90. package/es/common/components/editable-map/index.d.ts.map +0 -1
  91. package/es/common/components/editable-map/index.js +0 -67
  92. package/es/common/components/editable-map/initial-marker-form.d.ts +0 -4
  93. package/es/common/components/editable-map/initial-marker-form.d.ts.map +0 -1
  94. package/es/common/components/editable-map/initial-marker-form.js +0 -17
  95. package/es/common/components/editable-map/initial-marker-form.module.css +0 -25
  96. package/es/common/components/editable-map/map-events.d.ts +0 -5
  97. package/es/common/components/editable-map/map-events.d.ts.map +0 -1
  98. package/es/common/components/editable-map/map-events.js +0 -12
  99. package/es/common/components/editable-map/marker-list.d.ts +0 -13
  100. package/es/common/components/editable-map/marker-list.d.ts.map +0 -1
  101. package/es/common/components/editable-map/marker-list.js +0 -86
  102. package/es/common/components/editable-map/marker-list.module.css +0 -122
  103. package/es/common/components/editable-map/markers.d.ts +0 -7
  104. package/es/common/components/editable-map/markers.d.ts.map +0 -1
  105. package/es/common/components/editable-map/markers.js +0 -27
  106. package/es/common/components/editable-map/markers.module.css +0 -26
  107. package/es/common/components/editable-map/popup-data.d.ts +0 -4
  108. package/es/common/components/editable-map/popup-data.d.ts.map +0 -1
  109. package/es/common/components/editable-map/popup-data.js +0 -12
  110. package/es/common/components/editable-map/popup-data.module.css +0 -41
  111. package/es/common/components/editable-map/slopes-toggle.d.ts +0 -5
  112. package/es/common/components/editable-map/slopes-toggle.d.ts.map +0 -1
  113. package/es/common/components/editable-map/slopes-toggle.js +0 -13
  114. package/es/common/components/editable-map/slopes-toggle.module.css +0 -15
  115. package/es/common/components/editable-map/utils/file-manager.d.ts +0 -2
  116. package/es/common/components/editable-map/utils/file-manager.d.ts.map +0 -1
  117. package/es/common/components/editable-map/utils/file-manager.js +0 -29
@@ -19,9 +19,21 @@ function Item({ name, page, path, itemTitle, nextItem, isCurrent, exclusions, })
19
19
  const noHref = isCurrent || !hasTemplate;
20
20
  const isExcluded = !isCurrent && exclusions.includes(name);
21
21
  const Tag = isExternalUrl ? "a" : noHref ? "span" : Link;
22
- const linkProps = { title: itemTitle, page, as: path };
22
+ const linkProps = { title: itemTitle, page, href: path };
23
23
  const spanProps = { dangerouslySetInnerHTML: { __html: itemTitle } };
24
24
  const anchorProps = { ...spanProps, href: path };
25
25
  const props = isExternalUrl ? anchorProps : noHref ? spanProps : linkProps;
26
- return (_jsxs(_Fragment, { children: [!isExcluded && _jsx(Tag, { className: "breadcrumb__item", ...props }), nextItem] }));
26
+ return (_jsxs(_Fragment, { children: [!isExcluded &&
27
+ renderItem(isExternalUrl, noHref, anchorProps, spanProps, linkProps), nextItem] }));
28
+ }
29
+ function renderItem(isExternalUrl, noHref, anchorProps, spanProps, linkProps) {
30
+ if (isExternalUrl) {
31
+ return _jsx("a", { className: "breadcrumb__item", ...anchorProps });
32
+ }
33
+ else if (noHref) {
34
+ return _jsx("span", { className: "breadcrumb__item", ...spanProps });
35
+ }
36
+ else {
37
+ return _jsx(Link, { className: "breadcrumb__item", ...linkProps });
38
+ }
27
39
  }
@@ -4,5 +4,6 @@ declare function CookieConsent({ lang, consent, updateConsent }: {
4
4
  lang: any;
5
5
  consent: any;
6
6
  updateConsent: any;
7
- }): import("react-dom/node_modules/@types/react").ReactPortal;
7
+ }): React.ReactPortal;
8
+ import * as React from "react";
8
9
  //# sourceMappingURL=cookie-consent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookie-consent.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cookie-consent/cookie-consent.js"],"names":[],"mappings":"AAsGO,0CA6BN;;AArHD;;;;8DAsFC"}
1
+ {"version":3,"file":"cookie-consent.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cookie-consent/cookie-consent.js"],"names":[],"mappings":"AAsGO,0CA6BN;;AArHD;;;;sBAsFC;uBApGsB,OAAO"}
@@ -1,2 +1,3 @@
1
- export default function EditableCalendar(): import("react-dom/node_modules/@types/react").ReactPortal[];
1
+ export default function EditableCalendar(): React.ReactPortal[];
2
+ import * as React from "react";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-calendar/index.js"],"names":[],"mappings":"AAOA,wGAiDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-calendar/index.js"],"names":[],"mappings":"AAOA,gEAiDC;uBAxDsB,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/services/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,0BAA0B,cAuBjE;AAED,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;EAG9D"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/services/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,0BAA0B,cAuBjE;AAED,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;UAPvD,IAAI,GAAG,IAAI;aACR,MAAM;aACN,MAAM;eACJ,MAAM;WACV,QAAQ,GAAG,QAAQ;EAM3B"}
@@ -12,6 +12,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLP
12
12
  placeholder?: import("next/dist/shared/lib/get-img-props").PlaceholderValue;
13
13
  blurDataURL?: string;
14
14
  unoptimized?: boolean;
15
+ overrideSrc?: string;
15
16
  onLoadingComplete?: import("next/dist/shared/lib/get-img-props").OnLoadingComplete;
16
17
  layout?: string;
17
18
  objectFit?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"image-with-loader.d.ts","sourceRoot":"","sources":["../../../../src/common/components/image-with-loader/image-with-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;AAK/B,wBAAiD"}
1
+ {"version":3,"file":"image-with-loader.d.ts","sourceRoot":"","sources":["../../../../src/common/components/image-with-loader/image-with-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;AAK/B,wBAAiD"}
@@ -1,12 +1,6 @@
1
1
  declare global {
2
2
  interface Window {
3
- CmsConfig: {
4
- cdn: string;
5
- filemanager: {
6
- url: string;
7
- token: string;
8
- };
9
- };
3
+ CmsConfig: any;
10
4
  openFileManager: any;
11
5
  }
12
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"file-manager.d.ts","sourceRoot":"","sources":["../../../src/common/utils/file-manager.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,EAAE;YACT,GAAG,EAAE,MAAM,CAAC;YACZ,WAAW,EAAE;gBACX,GAAG,EAAE,MAAM,CAAC;gBACZ,KAAK,EAAE,MAAM,CAAC;aACf,CAAC;SACH,CAAC;QACF,eAAe,EAAE,GAAG,CAAC;KACtB;CACF;AAED,eAAO,MAAM,eAAe,gBAAsB,OAAO,kBASxD,CAAC"}
1
+ {"version":3,"file":"file-manager.d.ts","sourceRoot":"","sources":["../../../src/common/utils/file-manager.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,EAAE,GAAG,CAAC;QACf,eAAe,EAAE,GAAG,CAAC;KACtB;CACF;AAED,eAAO,MAAM,eAAe,gBAAsB,OAAO,kBASxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"url-parameters.d.ts","sourceRoot":"","sources":["../../../src/common/utils/url-parameters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kBAAmB,MAAM,EAAE,WAO5D,CAAC;AAEF,eAAO,MAAM,KAAK,WAAY,OAAO,MAAM,EAAE,GAAG,CAAC,WAWhD,CAAC"}
1
+ {"version":3,"file":"url-parameters.d.ts","sourceRoot":"","sources":["../../../src/common/utils/url-parameters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kBAAmB,MAAM,EAAE,WAO5D,CAAC;AAEF,eAAO,MAAM,KAAK,WAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WAWhD,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type SearchOptions = {
3
2
  groupLimit?: number;
4
3
  page?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/esf/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;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAY1E"}
1
+ {"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/esf/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;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAY1E"}
@@ -25,6 +25,6 @@ export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loadi
25
25
  const linkTitle = Utils.getHighlight(titleProperty, link.highlight) ||
26
26
  link.document[titleProperty];
27
27
  const linkText = Utils.getHighlight("text", link.highlight, true) || text;
28
- return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
28
+ return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
29
29
  })] })] }));
30
30
  }
@@ -37,6 +37,6 @@ export default function Products({ lang, products, weekNumber, loading, sendPlau
37
37
  const productText = Utils.getHighlight("text", product.highlight) || text;
38
38
  const showPrice = price !== undefined && weekNumber !== null;
39
39
  const imagePlaceholderStategy = imagePlaceholder ? "blur" : "empty";
40
- return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
40
+ return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
41
41
  }), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})] }) }))] }));
42
42
  }
@@ -4,5 +4,6 @@ export default function Popup({ mustFilterSections, showDialog, opened, onChange
4
4
  opened: any;
5
5
  onChange: any;
6
6
  selectAndClose: any;
7
- }): import("react-dom/node_modules/@types/react").ReactPortal;
7
+ }): React.ReactPortal;
8
+ import * as React from "react";
8
9
  //# sourceMappingURL=popup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popup.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/popup.js"],"names":[],"mappings":"AAOA;;;;;;8DAuCC"}
1
+ {"version":3,"file":"popup.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/popup.js"],"names":[],"mappings":"AAOA;;;;;;sBAuCC;uBA9CsB,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/services/offers.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAsB,GAAG,CACvB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,KAAK,EAAE,MAAM;;;;;;;;;;;MAqDd"}
1
+ {"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/services/offers.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAsB,GAAG,CACvB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,KAAK,EAAE,MAAM;;UA3BP,MAAM;cACF,MAAM;WACT,MAAM;UACP,MAAM;UACN,MAAM;aACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACpB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;aAClB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACpB,MAAM;MAwEf"}
@@ -1 +1 @@
1
- {"version":3,"file":"url-params.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/services/url-params.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,yBAWjB,CAAC;AAEF,eAAO,MAAM,YAAY,SACjB,MAAM,UACJ,OAAO,MAAM,EAAE,GAAG,CAAC,WAClB,MAAM,WAahB,CAAC"}
1
+ {"version":3,"file":"url-params.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/services/url-params.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,yBAWjB,CAAC;AAEF,eAAO,MAAM,YAAY,SACjB,MAAM,UACJ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WAClB,MAAM,WAahB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/future/utils/fetcher.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cAG9B;AACD,eAAO,MAAM,GAAG,kBAUN,MAAM,SACL,OAAO,MAAM,EAAE,GAAG,CAAC,2CAXG,CAAC;AAClC,eAAO,MAAM,IAAI,kBASP,MAAM,SACL,OAAO,MAAM,EAAE,GAAG,CAAC,2CAVK,CAAC;AACpC,eAAO,MAAM,OAAO,kBAQV,MAAM,SACL,OAAO,MAAM,EAAE,GAAG,CAAC,2CATU,CAAC"}
1
+ {"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/future/utils/fetcher.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cAG9B;AACD,eAAO,MAAM,GAAG,GASA,CAAC,cACP,MAAM,SACL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,2CAXG,CAAC;AAClC,eAAO,MAAM,IAAI,GAQD,CAAC,cACP,MAAM,SACL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,2CAVK,CAAC;AACpC,eAAO,MAAM,OAAO,GAOJ,CAAC,cACP,MAAM,SACL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,2CATU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"url-parameters.d.ts","sourceRoot":"","sources":["../../../src/future/utils/url-parameters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kBAAmB,MAAM,EAAE,WAO5D,CAAC;AAEF,eAAO,MAAM,KAAK,WAAY,OAAO,MAAM,EAAE,GAAG,CAAC,WAWhD,CAAC"}
1
+ {"version":3,"file":"url-parameters.d.ts","sourceRoot":"","sources":["../../../src/future/utils/url-parameters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kBAAmB,MAAM,EAAE,WAO5D,CAAC;AAEF,eAAO,MAAM,KAAK,WAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WAWhD,CAAC"}
@@ -43,5 +43,5 @@ function Faq({ faq, sendPlausibleGoal }) {
43
43
  const createRipple = (e) => {
44
44
  Ripple.create(e);
45
45
  };
46
- return (_jsxs(Link, { className: styles.faq, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx("div", { className: styles.faqTitle, dangerouslySetInnerHTML: { __html: faqTitle } }), _jsx("div", { className: styles.faqText, dangerouslySetInnerHTML: { __html: faqText } })] }));
46
+ return (_jsxs(Link, { className: styles.faq, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx("div", { className: styles.faqTitle, dangerouslySetInnerHTML: { __html: faqTitle } }), _jsx("div", { className: styles.faqText, dangerouslySetInnerHTML: { __html: faqText } })] }));
47
47
  }
@@ -21,6 +21,6 @@ export default function OTLinks({ products, loading, sendPlausibleGoal, faqsMaxi
21
21
  const productTitle = htmlTitle
22
22
  .replaceAll("b>", "mark>")
23
23
  .toLowerCase();
24
- return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
24
+ return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: () => sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
25
25
  })] })] }));
26
26
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export default function useGoogleSearch(lang: string): {
3
2
  text: string;
4
3
  setText: import("react").Dispatch<import("react").SetStateAction<string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":";AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,EAAE,MAAM;;;;;;EAInD"}
1
+ {"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,EAAE,MAAM;;;;;;EAInD"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type SearchOptions = {
3
2
  groupLimit?: number;
4
3
  page?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/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,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;;;EAa1E"}
1
+ {"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/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,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;;;EAa1E"}
@@ -28,6 +28,6 @@ export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loadi
28
28
  const linkTitle = Utils.getHighlight(titleProperty, link.highlight) ||
29
29
  link.document[titleProperty].trim();
30
30
  const linkText = Utils.getHighlight("text", link.highlight, true) || text?.trim();
31
- return (_jsxs(Link, { href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", className: css.link, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), site !== docSite && (_jsx(Icons.ExternalLink, { className: css.linkIcon }))] }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
31
+ return (_jsxs(Link, { href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", className: css.link, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), site !== docSite && (_jsx(Icons.ExternalLink, { className: css.linkIcon }))] }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
32
32
  })] })] }));
33
33
  }
@@ -45,6 +45,6 @@ export default function Products({ lang, products, loading, sendPlausibleGoal, o
45
45
  const productText = Utils.getHighlight("text", product.highlight) || text;
46
46
  const showPrice = Boolean(price?.trim().length > 0);
47
47
  const imagePlaceholderStrategy = imagePlaceholder ? "blur" : "empty";
48
- return (_jsxs(Link, { className: css.product, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStrategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
48
+ return (_jsxs(Link, { className: css.product, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStrategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
49
49
  }), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})] }) }))] }));
50
50
  }
@@ -11,5 +11,5 @@ export default function Card({ doc, overlayTitle, sendPlausibleGoal, children, }
11
11
  const { document: { title: _title, target, path }, highlight, } = doc;
12
12
  const decodedPath = decodeURIComponent(target || path);
13
13
  const title = Utils.getHighlight("title", highlight) || _title;
14
- return (_jsxs(Link, { className: css.card, href: decodedPath, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx("div", { dangerouslySetInnerHTML: { __html: title }, className: classNames(css.title, { [css.overlay]: overlayTitle }) }), children] }));
14
+ return (_jsxs(Link, { className: css.card, href: decodedPath, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx("div", { dangerouslySetInnerHTML: { __html: title }, className: classNames(css.title, { [css.overlay]: overlayTitle }) }), children] }));
15
15
  }
@@ -19,6 +19,6 @@ export default function OTLinks({ links, loading, sendPlausibleGoal }) {
19
19
  links.map((product, i) => {
20
20
  const { htmlTitle, link } = product;
21
21
  const productTitle = htmlTitle.toLowerCase();
22
- return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
22
+ return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: () => sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
23
23
  })] })] }));
24
24
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export default function useGoogleSearch(lang: string): {
3
2
  text: string;
4
3
  setText: import("react").Dispatch<import("react").SetStateAction<string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":";AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,EAAE,MAAM;;;;EAInD"}
1
+ {"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,EAAE,MAAM;;;;EAInD"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type SearchOptions = {
3
2
  groupLimit?: number;
4
3
  page?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/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;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAY1E"}
1
+ {"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/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;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAY1E"}
@@ -26,6 +26,6 @@ export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loadi
26
26
  link.document[titleProperty];
27
27
  const linkText = Utils.getHighlight("text", link.highlight, true) ||
28
28
  Utils.sliceText(text);
29
- return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
29
+ return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
30
30
  })] })] }));
31
31
  }
@@ -40,7 +40,7 @@ export default function Products({ lang, products, weekNumber, loading, sendPlau
40
40
  const showPrice = price !== undefined;
41
41
  const imagePlaceholderStategy = imagePlaceholder ? "blur" : "empty";
42
42
  const showImage = Boolean(image);
43
- return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [showImage ? (_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder })) : (_jsx(Placeholder, { lang: lang, type: type })), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productSubtitle, dangerouslySetInnerHTML: { __html: productSubTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
43
+ return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [showImage ? (_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder })) : (_jsx(Placeholder, { lang: lang, type: type })), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productSubtitle, dangerouslySetInnerHTML: { __html: productSubTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
44
44
  }), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})] }) }))] }));
45
45
  }
46
46
  function Placeholder({ type }) {
package/package.json CHANGED
@@ -1,58 +1,50 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.41.1",
3
+ "version": "1.42.0",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.10.8",
6
- "leaflet": "^1.9.1",
6
+ "framer-motion": "^11.11.9",
7
7
  "next": "^12.0.0 || ^13.0.0 || ^14.0.0",
8
8
  "react": "^18.2.0",
9
9
  "react-dom": "^18.2.0",
10
- "react-leaflet": "^4.1.0",
11
- "react-leaflet-cluster": "^2.1.0",
12
10
  "ublo": "^2.0.0 || ^3.0.0"
13
11
  },
14
12
  "peerDependenciesMeta": {
15
- "leaflet": {
16
- "optional": true
17
- },
18
- "react-leaflet": {
19
- "optional": true
20
- },
21
- "react-leaflet-cluster": {
13
+ "framer-motion": {
22
14
  "optional": true
23
15
  }
24
16
  },
25
17
  "dependencies": {
26
- "awesome-debounce-promise": "2.1.0",
27
- "classnames": "2.5.1",
28
- "framer-motion": "11.0.28",
29
- "react-async-hook": "4.0.0"
18
+ "awesome-debounce-promise": "^2.1.0",
19
+ "classnames": "^2.5.1",
20
+ "framer-motion": "^11.11.9",
21
+ "react-async-hook": "^4.0.0",
22
+ "react-player": "^2.16.0"
30
23
  },
31
24
  "devDependencies": {
32
- "@types/css-modules": "1.0.5",
33
- "@types/react": "18.2.77",
34
- "@types/react-dom": "18.2.25",
35
- "@typescript-eslint/eslint-plugin": "7.6.0",
36
- "@typescript-eslint/parser": "7.6.0",
37
- "classnames": "2.5.1",
38
- "cpx2": "7.0.1",
39
- "dt-design-system": "3.10.8",
40
- "eslint": "8.57.0",
41
- "eslint-plugin-react": "7.34.1",
42
- "eslint-plugin-react-hooks": "4.6.0",
43
- "mv": "2.1.1",
44
- "next": "14.1.0",
45
- "react": "18.2.0",
46
- "react-dom": "18.2.0",
47
- "typescript": "5.4.5",
48
- "ublo": "3.18.0"
25
+ "@types/css-modules": "^1.0.5",
26
+ "@types/react": "^18.3.12",
27
+ "@types/react-dom": "^18.3.1",
28
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
29
+ "@typescript-eslint/parser": "^7.18.0",
30
+ "cpx2": "^7.0.2",
31
+ "dt-design-system": "^3.11.2",
32
+ "eslint": "^8.57.1",
33
+ "eslint-plugin-react": "^7.37.2",
34
+ "eslint-plugin-react-hooks": "^4.6.2",
35
+ "mv": "^2.1.1",
36
+ "next": "^14.2.16",
37
+ "react": "^18.3.1",
38
+ "react-dom": "^18.3.1",
39
+ "typescript": "^5.6.3",
40
+ "ublo": "^3.20.7"
49
41
  },
50
42
  "scripts": {
51
43
  "clean": "rm -rf es",
52
- "build": "yarn clean && tsc",
44
+ "build": "bun run clean && tsc",
53
45
  "postbuild": "cpx 'src/**/*.{json,css,svg,png}' es",
54
- "prepublishOnly": "yarn build",
55
- "watch": "yarn clean && tsc --watch & cpx './src/**/*.{json,css,svg}' es -w",
46
+ "prepublishOnly": "bun run build",
47
+ "watch": "bun run clean && tsc --watch & cpx './src/**/*.{json,css,svg}' es -w",
56
48
  "lint": "eslint --ext .ts,.tsx src/"
57
49
  },
58
50
  "packageManager": "yarn@1.22.18",
@@ -1,5 +0,0 @@
1
- export default function Cluster({ isEditing, children }: {
2
- isEditing: any;
3
- children: any;
4
- }): any;
5
- //# sourceMappingURL=cluster.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/cluster.js"],"names":[],"mappings":"AAGA;;;QAQC"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import MarkerClusterGroup from "react-leaflet-cluster";
4
- export default function Cluster({ isEditing, children }) {
5
- if (isEditing)
6
- return children;
7
- return (_jsx(MarkerClusterGroup, { maxClusterRadius: 20, chunkedLoading: true, children: children }));
8
- }
@@ -1,6 +0,0 @@
1
- export default function ColorPicker({ showMarkerList, color, setColor }: {
2
- showMarkerList: any;
3
- color: any;
4
- setColor: any;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=color-picker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-picker.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/color-picker.js"],"names":[],"mappings":"AAkBA;;;;4CAiCC"}
@@ -1,27 +0,0 @@
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 Popover from "dt-design-system/es/popover";
5
- import Button from "dt-design-system/es/button";
6
- import * as Icons from "./icons/ui";
7
- import styles from "./color-picker.module.css";
8
- const COLORS_SET = [
9
- {
10
- label: "Marron",
11
- value: "#4c3228",
12
- },
13
- {
14
- label: "Prune",
15
- value: "#ca7aca",
16
- },
17
- ];
18
- export default function ColorPicker({ showMarkerList, color, setColor }) {
19
- const classes = classNames(styles.button, {
20
- [styles.alignedToRight]: !showMarkerList,
21
- });
22
- return (_jsxs(Popover, { className: styles.popover, contentProps: {
23
- side: "bottom",
24
- align: "end",
25
- alignOffset: -10,
26
- }, trigger: _jsx(Button, { className: classes, children: _jsx(Icons.ColorPalette, {}) }), children: [_jsx("div", { className: styles.title, children: "Couleur des trac\u00E9s" }), COLORS_SET.map(({ value, label }) => (_jsxs("div", { className: styles.choice, onClick: () => setColor(value), "data-checked": color === value, children: [_jsx("span", { className: styles.tag, "data-color": value }), _jsx("div", { children: label })] }, value)))] }));
27
- }
@@ -1,66 +0,0 @@
1
- .button {
2
- --ds-button-background: var(--ds-grey-000, #fff);
3
- --ds-button-hover-background: var(--ds-grey-000, #f8f8f8);
4
- --ds-button-shadow: var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12));
5
-
6
- position: absolute;
7
- top: 10px;
8
- right: 270px;
9
- color: var(--ds-grey-800, #000);
10
- z-index: 1000;
11
- }
12
-
13
- .alignedToRight {
14
- right: 10px;
15
- }
16
-
17
- .popover {
18
- display: flex;
19
- flex-direction: column;
20
- gap: 10px;
21
- min-width: 140px;
22
- }
23
-
24
- .title {
25
- font-weight: 700;
26
- font-size: 15px;
27
- }
28
-
29
- .choice {
30
- display: flex;
31
- align-items: center;
32
- gap: 10px;
33
- cursor: pointer;
34
- }
35
-
36
- span.tag {
37
- position: relative;
38
- width: 15px;
39
- height: 15px;
40
- border-radius: 50%;
41
- }
42
-
43
- span.tag[data-color="#4c3228"] {
44
- background: #4c3228;
45
- }
46
- span.tag[data-color="#ca7aca"] {
47
- background-color: #ca7aca;
48
- }
49
-
50
- .choice[data-checked="true"] span.tag::after {
51
- content: "";
52
- position: absolute;
53
- top: 0;
54
- left: 0;
55
- width: 100%;
56
- height: 100%;
57
- transform: scale(1.5);
58
- border-radius: 50%;
59
- }
60
-
61
- .choice[data-checked="true"] span.tag[data-color="#4c3228"]::after {
62
- border: 1px solid #4c3228;
63
- }
64
- .choice[data-checked="true"] span.tag[data-color="#ca7aca"]::after {
65
- border: 1px solid #ca7aca;
66
- }
@@ -1,7 +0,0 @@
1
- export default function EditForm({ popupRef, marker, setMarkers, iconSet }: {
2
- popupRef: any;
3
- marker: any;
4
- setMarkers: any;
5
- iconSet: any;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- //# sourceMappingURL=edit-form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edit-form.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/edit-form.js"],"names":[],"mappings":"AAUA;;;;;4CAkHC"}
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import Input from "dt-design-system/es/input";
4
- import Textarea from "dt-design-system/es/textarea";
5
- import Button from "dt-design-system/es/button";
6
- import Checkbox from "dt-design-system/es/checkbox";
7
- import * as Icons from "dt-design-system/es/icons";
8
- import * as FileManager from "./utils/file-manager";
9
- import IconPicker from "./icon-picker";
10
- import css from "./edit-form.module.css";
11
- export default function EditForm({ popupRef, marker, setMarkers, iconSet }) {
12
- const [editingMarker, setEditingMarker] = React.useState(marker || {});
13
- const { id, icon, image, title, description, url, label, tooltipOpened, important, } = editingMarker;
14
- const updateMarker = () => {
15
- setMarkers((currents) => {
16
- return currents.map((marker) => {
17
- if (marker.id === id) {
18
- return editingMarker;
19
- }
20
- return marker;
21
- });
22
- });
23
- popupRef.current.close();
24
- };
25
- const updateEditingMarker = (field) => (value) => {
26
- setEditingMarker({ ...editingMarker, [field]: value });
27
- };
28
- const updateImage = (path) => {
29
- updateEditingMarker("image")(path);
30
- };
31
- return (_jsxs("div", { className: css.form, children: [_jsxs("div", { className: css.row, children: [_jsx(IconPicker, { callback: updateEditingMarker("icon"), selectedIcon: icon, iconSet: iconSet }), _jsxs("div", { className: css.imageContainer, children: [_jsx(Button, { className: css.image, variant: "transparent", onClick: () => FileManager.load(updateImage, 320, 200), children: image ? _jsx("img", { src: image, alt: "" }) : _jsx(Icons.Image, {}) }), image && (_jsx(Button, { onClick: (e) => {
32
- e.stopPropagation();
33
- updateImage(undefined);
34
- }, variant: "danger", className: css.removeImage, compact: true, children: _jsx(Icons.Bin, {}) }))] }), _jsx(Input, { label: "Titre", value: title, className: css.title, onValueChange: updateEditingMarker("title"), compact: true })] }), _jsx(Textarea, { label: "Description", value: description, className: css.description, onValueChange: updateEditingMarker("description"), placeholder: "Description du point d'int\u00E9r\u00EAt", compact: true }), _jsxs("div", { className: css.row, children: [_jsx(Input, { label: "Lien bouton", value: url, onValueChange: updateEditingMarker("url"), compact: true }), _jsx(Input, { label: "Libell\u00E9 bouton", value: label, onValueChange: updateEditingMarker("label"), compact: true })] }), _jsx(Checkbox, { label: "Important", checked: important, onCheckedChange: updateEditingMarker("important") }), _jsx(Checkbox, { label: "Tooltip affich\u00E9 par d\u00E9faut", checked: tooltipOpened, onCheckedChange: updateEditingMarker("tooltipOpened") }), _jsx("div", { className: css.buttons, children: _jsxs(Button, { variant: "success", onClick: updateMarker, compact: true, children: ["Valider", _jsx(Icons.Check, {})] }) })] }));
35
- }