ublo-lib 1.41.0 → 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.
- package/es/common/components/breadcrumb.js +14 -2
- package/es/common/components/cookie-consent/cookie-consent.d.ts +2 -1
- package/es/common/components/cookie-consent/cookie-consent.d.ts.map +1 -1
- package/es/common/components/editable-calendar/index.d.ts +2 -1
- package/es/common/components/editable-calendar/index.d.ts.map +1 -1
- package/es/common/components/gesco-contact-form/services/form.d.ts.map +1 -1
- package/es/common/components/image-with-loader/image-with-loader.d.ts +1 -0
- package/es/common/components/image-with-loader/image-with-loader.d.ts.map +1 -1
- package/es/common/utils/file-manager.d.ts +1 -6
- package/es/common/utils/file-manager.d.ts.map +1 -1
- package/es/common/utils/url-parameters.d.ts.map +1 -1
- package/es/esf/components/instant-search/hooks/use-search.d.ts +0 -1
- package/es/esf/components/instant-search/hooks/use-search.d.ts.map +1 -1
- package/es/esf/components/instant-search/links.js +1 -1
- package/es/esf/components/instant-search/products.js +1 -1
- package/es/esf/components/period-picker/popup.d.ts +2 -1
- package/es/esf/components/period-picker/popup.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/services/offers.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/services/url-params.d.ts.map +1 -1
- package/es/future/utils/fetcher.d.ts.map +1 -1
- package/es/future/utils/url-parameters.d.ts.map +1 -1
- package/es/lbm/components/instant-search/faqs.js +1 -1
- package/es/lbm/components/instant-search/google-results.js +1 -1
- package/es/lbm/components/instant-search/hooks/use-google-search.d.ts +0 -1
- package/es/lbm/components/instant-search/hooks/use-google-search.d.ts.map +1 -1
- package/es/lbm/components/instant-search/hooks/use-search.d.ts +0 -1
- package/es/lbm/components/instant-search/hooks/use-search.d.ts.map +1 -1
- package/es/lbm/components/instant-search/links.js +1 -1
- package/es/lbm/components/instant-search/products.js +1 -1
- package/es/lbm/components/instant-search/widgets/components/card.js +1 -1
- package/es/market-place/components/instant-search/google-results.js +1 -1
- package/es/market-place/components/instant-search/hooks/use-google-search.d.ts +0 -1
- package/es/market-place/components/instant-search/hooks/use-google-search.d.ts.map +1 -1
- package/es/market-place/components/instant-search/hooks/use-search.d.ts +0 -1
- package/es/market-place/components/instant-search/hooks/use-search.d.ts.map +1 -1
- package/es/market-place/components/instant-search/links.js +1 -1
- package/es/market-place/components/instant-search/products.js +1 -1
- package/package.json +27 -35
- package/es/common/components/editable-map/cluster.d.ts +0 -5
- package/es/common/components/editable-map/cluster.d.ts.map +0 -1
- package/es/common/components/editable-map/cluster.js +0 -8
- package/es/common/components/editable-map/edit-form.d.ts +0 -7
- package/es/common/components/editable-map/edit-form.d.ts.map +0 -1
- package/es/common/components/editable-map/edit-form.js +0 -30
- package/es/common/components/editable-map/edit-form.module.css +0 -28
- package/es/common/components/editable-map/editable-map.d.ts +0 -6
- package/es/common/components/editable-map/editable-map.d.ts.map +0 -1
- package/es/common/components/editable-map/editable-map.js +0 -65
- package/es/common/components/editable-map/editable-map.module.css +0 -206
- package/es/common/components/editable-map/full-screen-button.d.ts +0 -6
- package/es/common/components/editable-map/full-screen-button.d.ts.map +0 -1
- package/es/common/components/editable-map/full-screen-button.js +0 -71
- package/es/common/components/editable-map/full-screen-button.module.css +0 -11
- package/es/common/components/editable-map/helper.d.ts +0 -2
- package/es/common/components/editable-map/helper.d.ts.map +0 -1
- package/es/common/components/editable-map/helper.js +0 -7
- package/es/common/components/editable-map/helper.module.css +0 -62
- package/es/common/components/editable-map/icon-picker.d.ts +0 -6
- package/es/common/components/editable-map/icon-picker.d.ts.map +0 -1
- package/es/common/components/editable-map/icon-picker.js +0 -31
- package/es/common/components/editable-map/icon-picker.module.css +0 -59
- package/es/common/components/editable-map/icons/esf-pralognan.d.ts +0 -51
- package/es/common/components/editable-map/icons/esf-pralognan.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/esf-pralognan.js +0 -155
- package/es/common/components/editable-map/icons/esf.d.ts +0 -39
- package/es/common/components/editable-map/icons/esf.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/esf.js +0 -119
- package/es/common/components/editable-map/icons/index.d.ts +0 -7
- package/es/common/components/editable-map/icons/index.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/index.js +0 -6
- package/es/common/components/editable-map/icons/lavovelo.d.ts +0 -5
- package/es/common/components/editable-map/icons/lavovelo.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/lavovelo.js +0 -17
- package/es/common/components/editable-map/icons/sata-huez.d.ts +0 -29
- package/es/common/components/editable-map/icons/sata-huez.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/sata-huez.js +0 -89
- package/es/common/components/editable-map/icons/sedev-vars.d.ts +0 -29
- package/es/common/components/editable-map/icons/sedev-vars.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/sedev-vars.js +0 -89
- package/es/common/components/editable-map/icons/viarmonia.d.ts +0 -3
- package/es/common/components/editable-map/icons/viarmonia.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/viarmonia.js +0 -11
- package/es/common/components/editable-map/index.d.ts +0 -5
- package/es/common/components/editable-map/index.d.ts.map +0 -1
- package/es/common/components/editable-map/index.js +0 -67
- package/es/common/components/editable-map/input-marker.d.ts +0 -4
- package/es/common/components/editable-map/input-marker.d.ts.map +0 -1
- package/es/common/components/editable-map/input-marker.js +0 -16
- package/es/common/components/editable-map/input-marker.module.css +0 -17
- package/es/common/components/editable-map/map-events.d.ts +0 -18
- package/es/common/components/editable-map/map-events.d.ts.map +0 -1
- package/es/common/components/editable-map/map-events.js +0 -35
- package/es/common/components/editable-map/marker-list.d.ts +0 -7
- package/es/common/components/editable-map/marker-list.d.ts.map +0 -1
- package/es/common/components/editable-map/marker-list.js +0 -64
- package/es/common/components/editable-map/marker-list.module.css +0 -114
- package/es/common/components/editable-map/markers.d.ts +0 -7
- package/es/common/components/editable-map/markers.d.ts.map +0 -1
- package/es/common/components/editable-map/markers.js +0 -44
- package/es/common/components/editable-map/markers.module.css +0 -26
- package/es/common/components/editable-map/popup-data.d.ts +0 -4
- package/es/common/components/editable-map/popup-data.d.ts.map +0 -1
- package/es/common/components/editable-map/popup-data.js +0 -12
- package/es/common/components/editable-map/popup-data.module.css +0 -26
- package/es/common/components/editable-map/slopes-toggle.d.ts +0 -5
- package/es/common/components/editable-map/slopes-toggle.d.ts.map +0 -1
- package/es/common/components/editable-map/slopes-toggle.js +0 -13
- package/es/common/components/editable-map/slopes-toggle.module.css +0 -14
|
@@ -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,
|
|
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 &&
|
|
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
|
-
}):
|
|
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;;;;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-calendar/index.js"],"names":[],"mappings":"AAOA,
|
|
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
|
|
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
|
|
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 +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
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"
|
|
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
|
-
}):
|
|
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;;;;;;
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"
|
|
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 +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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"
|
|
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.
|
|
3
|
+
"version": "1.42.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"dt-design-system": "^3.10.8",
|
|
6
|
-
"
|
|
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
|
-
"
|
|
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.
|
|
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.
|
|
34
|
-
"@types/react-dom": "18.
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
36
|
-
"@typescript-eslint/parser": "7.
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"eslint": "
|
|
41
|
-
"eslint-plugin-react": "
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"react": "18.
|
|
46
|
-
"
|
|
47
|
-
"
|
|
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": "
|
|
44
|
+
"build": "bun run clean && tsc",
|
|
53
45
|
"postbuild": "cpx 'src/**/*.{json,css,svg,png}' es",
|
|
54
|
-
"prepublishOnly": "
|
|
55
|
-
"watch": "
|
|
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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edit-form.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/edit-form.js"],"names":[],"mappings":"AASA;;;;;4CAoFC"}
|
|
@@ -1,30 +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 IconPicker from "./icon-picker";
|
|
9
|
-
import css from "./edit-form.module.css";
|
|
10
|
-
export default function EditForm({ popupRef, marker, setMarkers, iconSet }) {
|
|
11
|
-
const { id, icon, title, description, url, label, tooltipOpened, important } = marker;
|
|
12
|
-
const removeMarker = (e) => {
|
|
13
|
-
e.stopPropagation();
|
|
14
|
-
setMarkers((currents) => currents.filter((marker) => marker.id !== id));
|
|
15
|
-
};
|
|
16
|
-
const closeMarker = () => {
|
|
17
|
-
popupRef.current.close();
|
|
18
|
-
};
|
|
19
|
-
const updateMarker = (field) => (value) => {
|
|
20
|
-
setMarkers((currents) => {
|
|
21
|
-
return currents.map((marker) => {
|
|
22
|
-
if (marker.id === id) {
|
|
23
|
-
return { ...marker, [field]: value };
|
|
24
|
-
}
|
|
25
|
-
return marker;
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
return (_jsxs("div", { className: css.form, children: [_jsxs("div", { className: css.row, children: [_jsx(IconPicker, { callback: updateMarker("icon"), selectedIcon: icon, iconSet: iconSet }), _jsx(Input, { label: "Titre", value: title, className: css.title, onValueChange: updateMarker("title"), compact: true })] }), _jsx(Textarea, { label: "Description", value: description, className: css.description, onValueChange: updateMarker("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: updateMarker("url"), compact: true }), _jsx(Input, { label: "Libell\u00E9 bouton", value: label, onValueChange: updateMarker("label"), compact: true })] }), _jsx(Checkbox, { label: "Important", checked: important, onCheckedChange: updateMarker("important") }), _jsx(Checkbox, { label: "Tooltip affich\u00E9 par d\u00E9faut", checked: tooltipOpened, onCheckedChange: updateMarker("tooltipOpened") }), _jsxs("div", { className: css.buttons, children: [_jsxs(Button, { variant: "danger", onClick: removeMarker, compact: true, children: [_jsx(Icons.Bin, {}), "Supprimer ce point"] }), _jsxs(Button, { variant: "success", onClick: closeMarker, compact: true, children: ["Valider", _jsx(Icons.Check, {})] })] })] }));
|
|
30
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
.form {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 280px;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 8px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.row {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: flex-end;
|
|
12
|
-
gap: 8px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.title {
|
|
16
|
-
flex: 1 1 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.description textarea {
|
|
20
|
-
height: 80px;
|
|
21
|
-
resize: none !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.buttons {
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
margin-top: 6px;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editable-map.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/editable-map.js"],"names":[],"mappings":"AAmBA;;;;4CA4HC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { AttributionControl, MapContainer, TileLayer } from "react-leaflet";
|
|
4
|
-
import { useUbloContext } from "ublo/with-ublo";
|
|
5
|
-
import Button from "dt-design-system/es/button";
|
|
6
|
-
import * as Icons from "dt-design-system/es/icons";
|
|
7
|
-
import MapEvents, { DEFAULT_MARKER_DATA } from "./map-events";
|
|
8
|
-
import Markers from "./markers";
|
|
9
|
-
import Helper from "./helper";
|
|
10
|
-
import Cluster from "./cluster";
|
|
11
|
-
import InputMarker from "./input-marker";
|
|
12
|
-
import MarkerList from "./marker-list";
|
|
13
|
-
import FullScreenButton from "./full-screen-button";
|
|
14
|
-
import SlopesToggle from "./slopes-toggle";
|
|
15
|
-
import css from "./editable-map.module.css";
|
|
16
|
-
import "leaflet/dist/leaflet.css";
|
|
17
|
-
const FRANCE_CENTER = [46.807934, 3.645097];
|
|
18
|
-
const DEFAULT_ZOOM = 6;
|
|
19
|
-
export default function EditableMap({ format, iconSet, hideSlopes }) {
|
|
20
|
-
const ref = React.useRef();
|
|
21
|
-
const containerRef = React.useRef();
|
|
22
|
-
const { cmsMode } = useUbloContext();
|
|
23
|
-
const [fullScreen, setFullScreen] = React.useState(false);
|
|
24
|
-
const { element, presets, isInDialog } = format;
|
|
25
|
-
const isInZone = element.closest(".cms");
|
|
26
|
-
const isEditing = isInZone && cmsMode === "editing";
|
|
27
|
-
const defaultCenter = presets?.center || FRANCE_CENTER;
|
|
28
|
-
const defaultZoom = presets?.zoom || DEFAULT_ZOOM;
|
|
29
|
-
const [center, setCenter] = React.useState(defaultCenter);
|
|
30
|
-
const [zoom, setZoom] = React.useState(defaultZoom);
|
|
31
|
-
const [markers, setMarkers] = React.useState(presets?.markers || []);
|
|
32
|
-
const [showSlopes, setShowSlopes] = React.useState(presets?.showSlopes || false);
|
|
33
|
-
const scrollWheelZoom = Boolean(cmsMode) || isInDialog || fullScreen;
|
|
34
|
-
const refreshSize = () => {
|
|
35
|
-
ref.current.invalidateSize();
|
|
36
|
-
};
|
|
37
|
-
const resetCenter = () => {
|
|
38
|
-
setCenter(defaultCenter);
|
|
39
|
-
setZoom(defaultZoom);
|
|
40
|
-
ref.current.setView(defaultCenter, defaultZoom, { animate: true });
|
|
41
|
-
};
|
|
42
|
-
React.useEffect(() => {
|
|
43
|
-
if (isInDialog) {
|
|
44
|
-
window.refreshDialogMapSize = refreshSize;
|
|
45
|
-
}
|
|
46
|
-
}, [isInDialog]);
|
|
47
|
-
React.useEffect(() => {
|
|
48
|
-
if (isEditing) {
|
|
49
|
-
const newPresets = { markers, zoom, center, showSlopes };
|
|
50
|
-
element.setAttribute("data-presets", JSON.stringify(newPresets));
|
|
51
|
-
}
|
|
52
|
-
}, [center, element, isEditing, markers, showSlopes, zoom]);
|
|
53
|
-
const addInitialMarker = (position) => {
|
|
54
|
-
const isFocused = Boolean(element.querySelector("cms-section-ui"));
|
|
55
|
-
if (!isEditing || !isFocused)
|
|
56
|
-
return;
|
|
57
|
-
setMarkers([{ id: 1, ...DEFAULT_MARKER_DATA, position }]);
|
|
58
|
-
ref.current.setView(position, 13);
|
|
59
|
-
};
|
|
60
|
-
const attribution = showSlopes
|
|
61
|
-
? '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> & <a href="https://www.opensnowmap.org/">OpenSnowMap</a> contributors'
|
|
62
|
-
: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';
|
|
63
|
-
const showInputMarker = isEditing && !markers.length;
|
|
64
|
-
return (_jsxs("div", { ref: containerRef, className: css.container, "data-cms-remove": "", children: [_jsxs(MapContainer, { ref: ref, center: center, zoom: zoom, scrollWheelZoom: scrollWheelZoom, className: css.map, attributionControl: false, children: [_jsx(TileLayer, { attribution: attribution, url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" }), showSlopes && (_jsx(TileLayer, { url: "https://tiles.opensnowmap.org/pistes/{z}/{x}/{y}.png" })), _jsx(MapEvents, { mapRef: ref, markers: markers, setMarkers: setMarkers, setZoom: setZoom, setCenter: setCenter, isEditing: isEditing, element: element }), _jsx(Cluster, { isEditing: isEditing, children: _jsx(Markers, { markers: markers, setMarkers: setMarkers, iconSet: iconSet, isEditing: isEditing }) }), _jsx(AttributionControl, { position: "bottomright", prefix: "" })] }), !isEditing && (_jsx(FullScreenButton, { fullScreen: fullScreen, setFullScreen: setFullScreen, containerRef: containerRef })), showInputMarker && _jsx(InputMarker, { callback: addInitialMarker }), _jsx(Button, { type: "button", variant: "secondary", className: css.resetCenter, onClick: resetCenter, children: _jsx(Icons.MyLocation, {}) }), !hideSlopes && (_jsx(SlopesToggle, { showSlopes: showSlopes, setShowSlopes: setShowSlopes })), !isEditing && markers.length > 2 && (_jsx(MarkerList, { mapRef: ref, markers: markers, iconSet: iconSet, isInDialog: !fullScreen && isInDialog })), isEditing && _jsx(Helper, {})] }));
|
|
65
|
-
}
|