@depict-ai/ui 4.7.31 → 4.7.33
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/ES10/index.cjs +134 -102
- package/ES10/index.d.ts +64 -57
- package/ES10/index.js +133 -103
- package/latest/index.cjs +123 -94
- package/latest/index.d.ts +64 -57
- package/latest/index.js +122 -95
- package/package.json +1 -1
- package/server/ES10/index.cjs +107 -44
- package/server/ES10/index.d.ts +64 -57
- package/server/ES10/index.js +106 -45
- package/server/latest/index.cjs +96 -36
- package/server/latest/index.d.ts +64 -57
- package/server/latest/index.js +95 -37
package/latest/index.js
CHANGED
|
@@ -7,7 +7,14 @@ import { dlog as $9HbP8$dlog, catchify as $9HbP8$catchify, ListenableSet as $9Hb
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.33";
|
|
11
|
+
|
|
12
|
+
// Value first so shopify merchants can set (extra) display transformers in the shopify app
|
|
13
|
+
// Calling these functions normally doesn't do anything, but our shopify app respects them
|
|
14
|
+
// Them being here is value first too because this can be easily imported in the product card editor
|
|
15
|
+
let $a63fa9cb46ed211b$var$extraDisplayTransformers;
|
|
16
|
+
const $a63fa9cb46ed211b$export$b2d94be4f02525b2 = () => $a63fa9cb46ed211b$var$extraDisplayTransformers;
|
|
17
|
+
const $a63fa9cb46ed211b$export$f98b8d5ea7207a1 = displayTransformers => $a63fa9cb46ed211b$var$extraDisplayTransformers = displayTransformers;
|
|
11
18
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
19
|
const signal = $9HbP8$createSignal(false);
|
|
13
20
|
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
@@ -356,19 +363,22 @@ function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
356
363
|
}
|
|
357
364
|
}));
|
|
358
365
|
$9HbP8$effect(_p$ => {
|
|
359
|
-
var _v$ =
|
|
366
|
+
var _v$ = !!(final_span_columns() === max_span_columns()),
|
|
367
|
+
_v$2 = {
|
|
360
368
|
[(0, $6dee9211e57ac31a$export$c500183c31c2b22e)]: final_span_columns()
|
|
361
369
|
},
|
|
362
|
-
_v$
|
|
363
|
-
_v$
|
|
364
|
-
_p$.e
|
|
365
|
-
|
|
366
|
-
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$.style.setProperty("grid-
|
|
370
|
+
_v$3 = `span ${final_span_columns()}`,
|
|
371
|
+
_v$4 = `span ${final_span_rows()}`;
|
|
372
|
+
_v$ !== _p$.e && _el$.classList.toggle("spans-whole-row", _p$.e = _v$);
|
|
373
|
+
_p$.t = $9HbP8$style(_el$, _v$2, _p$.t);
|
|
374
|
+
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$.style.setProperty("grid-column", _v$3) : _el$.style.removeProperty("grid-column"));
|
|
375
|
+
_v$4 !== _p$.o && ((_p$.o = _v$4) != null ? _el$.style.setProperty("grid-row", _v$4) : _el$.style.removeProperty("grid-row"));
|
|
367
376
|
return _p$;
|
|
368
377
|
}, {
|
|
369
378
|
e: undefined,
|
|
370
379
|
t: undefined,
|
|
371
|
-
a: undefined
|
|
380
|
+
a: undefined,
|
|
381
|
+
o: undefined
|
|
372
382
|
});
|
|
373
383
|
return _el$;
|
|
374
384
|
}
|
|
@@ -1669,24 +1679,29 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
|
|
|
1669
1679
|
})));
|
|
1670
1680
|
return container;
|
|
1671
1681
|
}
|
|
1682
|
+
const $70bb27cc6be01fc7$var$customUrls = (url, width) => {
|
|
1683
|
+
if (url?.startsWith?.("https://cdn.shopify.com"))
|
|
1684
|
+
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1685
|
+
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1686
|
+
return $e8ffe11ed01df0fe$export$1d6267828870adda(url, width);
|
|
1687
|
+
// Use cloudflare image resizer instead of img.depict.ai because it's a lot faster (and also auto-chooses other formats if webp is not supported)
|
|
1688
|
+
return `https://app.depict.ai/cdn-cgi/image/width=${width},format=auto/${url}`;
|
|
1689
|
+
};
|
|
1672
1690
|
function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
1673
1691
|
return $9HbP8$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $9HbP8$mergeProps1(props, {
|
|
1674
1692
|
get imgProps() {
|
|
1675
1693
|
return {
|
|
1676
1694
|
...props.imgProps,
|
|
1677
|
-
customUrls:
|
|
1678
|
-
) => {
|
|
1679
|
-
if (url?.startsWith?.("https://cdn.shopify.com"))
|
|
1680
|
-
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1681
|
-
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1682
|
-
return $e8ffe11ed01df0fe$export$1d6267828870adda(url, width);
|
|
1683
|
-
// Use cloudflare image resizer instead of img.depict.ai because it's a lot faster (and also auto-chooses other formats if webp is not supported)
|
|
1684
|
-
return `https://app.depict.ai/cdn-cgi/image/width=${width},format=auto/${url}`;
|
|
1685
|
-
}
|
|
1695
|
+
customUrls: $70bb27cc6be01fc7$var$customUrls
|
|
1686
1696
|
};
|
|
1687
1697
|
}
|
|
1688
1698
|
}));
|
|
1689
1699
|
}
|
|
1700
|
+
function $70bb27cc6be01fc7$export$140423fa4bfb6d63(props) {
|
|
1701
|
+
return $9HbP8$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $9HbP8$mergeProps1(props, {
|
|
1702
|
+
customUrls: $70bb27cc6be01fc7$var$customUrls
|
|
1703
|
+
}));
|
|
1704
|
+
}
|
|
1690
1705
|
function $8c0f86cb3e266eeb$export$a71e92cfbb498adc(props) {
|
|
1691
1706
|
return $9HbP8$createMemo(() => {
|
|
1692
1707
|
const price_formatting = props.price_formatting_;
|
|
@@ -10396,7 +10411,8 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
10396
10411
|
// Please make sure that the signal created by below line always updates AFTER selected_filters_ updates on a "popstate" event. If the filter cache is popped before the selected filters are the code in create_modified_filters() is going to re-calculate search_local_filter_cache without knowing the real value of search_selected_filters, and we'll end up with too few filters in search_local_filter_cache in some cases
|
|
10397
10412
|
local_filter_cache: [],
|
|
10398
10413
|
expanded_hierarchical_filters: [],
|
|
10399
|
-
scroll_restoration_data: []
|
|
10414
|
+
scroll_restoration_data: [],
|
|
10415
|
+
history_content_blocks: []
|
|
10400
10416
|
}),
|
|
10401
10417
|
router_: this.#router,
|
|
10402
10418
|
prefix_: "category" + unique_instance_key_for_state + "_"
|
|
@@ -14789,70 +14805,94 @@ function $cc6f5b69378cd164$export$7af06a63c5a976c9(el, listing_id, i18n_) {
|
|
|
14789
14805
|
$9HbP8$onCleanup(disconnect);
|
|
14790
14806
|
}
|
|
14791
14807
|
$9HbP8$delegateEvents(["click"]);
|
|
14792
|
-
var $f916989c4b1be9f7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a><
|
|
14793
|
-
$f916989c4b1be9f7$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a><video loop>`);
|
|
14808
|
+
var $f916989c4b1be9f7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a class=d-standard-content-wrapper><video loop class=d-standard-content>`);
|
|
14794
14809
|
function $f916989c4b1be9f7$export$780a853d15174484({
|
|
14795
|
-
|
|
14810
|
+
contentBlock_: {
|
|
14811
|
+
content: {
|
|
14812
|
+
link: link,
|
|
14813
|
+
type: type,
|
|
14814
|
+
url: mediaUrl
|
|
14815
|
+
}
|
|
14816
|
+
},
|
|
14796
14817
|
router_: router_
|
|
14797
14818
|
}) {
|
|
14798
|
-
if (
|
|
14799
|
-
|
|
14800
|
-
|
|
14801
|
-
|
|
14802
|
-
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14808
|
-
|
|
14809
|
-
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
14813
|
-
_v$2 = contentBlock.content.url;
|
|
14814
|
-
_v$ !== _p$.e && $9HbP8$setAttribute(_el$, "href", _p$.e = _v$);
|
|
14815
|
-
_v$2 !== _p$.t && $9HbP8$setAttribute(_el$2, "src", _p$.t = _v$2);
|
|
14816
|
-
return _p$;
|
|
14817
|
-
}, {
|
|
14818
|
-
e: undefined,
|
|
14819
|
-
t: undefined
|
|
14820
|
-
});
|
|
14821
|
-
$9HbP8$runHydrationEvents();
|
|
14822
|
-
return _el$;
|
|
14823
|
-
})();
|
|
14824
|
-
if (contentBlock.content.type === "video") return () => (() => {
|
|
14825
|
-
var _el$3 = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$2),
|
|
14826
|
-
_el$4 = _el$3.firstChild;
|
|
14827
|
-
$9HbP8$addEventListener(_el$3, "click", $9HbP8$catchify(ev => router_.navigate_.go_to_({
|
|
14828
|
-
new_url_: contentBlock.content.link,
|
|
14829
|
-
is_replace_: false,
|
|
14830
|
-
event_: ev
|
|
14831
|
-
})), true);
|
|
14832
|
-
$9HbP8$setProperty(_el$4, "controls", false);
|
|
14833
|
-
$9HbP8$setProperty(_el$4, "muted", true);
|
|
14834
|
-
$9HbP8$setProperty(_el$4, "autoplay", true);
|
|
14835
|
-
$9HbP8$setProperty(_el$4, "playsinline", true);
|
|
14836
|
-
_el$4.style.setProperty("width", "100%");
|
|
14837
|
-
_el$4.style.setProperty("height", "100%");
|
|
14838
|
-
_el$4.style.setProperty("object-fit", "cover");
|
|
14839
|
-
_el$4.style.setProperty("position", "absolute");
|
|
14840
|
-
_el$4.style.setProperty("inset", "0");
|
|
14841
|
-
$9HbP8$effect(_p$ => {
|
|
14842
|
-
var _v$3 = contentBlock.content.link,
|
|
14843
|
-
_v$4 = contentBlock.content.url;
|
|
14844
|
-
_v$3 !== _p$.e && $9HbP8$setAttribute(_el$3, "href", _p$.e = _v$3);
|
|
14845
|
-
_v$4 !== _p$.t && $9HbP8$setAttribute(_el$4, "src", _p$.t = _v$4);
|
|
14846
|
-
return _p$;
|
|
14819
|
+
if (type === "image") {
|
|
14820
|
+
const [wrapperSize, setWrapperSize] = $9HbP8$createSignal();
|
|
14821
|
+
return $9HbP8$createComponent((0, $9HbP8$Dynamic), $9HbP8$mergeProps1({
|
|
14822
|
+
component: link ? "a" : "div",
|
|
14823
|
+
"class": "d-standard-content-wrapper",
|
|
14824
|
+
ref: el => setWrapperSize(() => $e8ffe11ed01df0fe$export$e6fffe67d4cdd848(el)),
|
|
14825
|
+
get onClick() {
|
|
14826
|
+
return $9HbP8$catchify(ev => link && router_.navigate_.go_to_({
|
|
14827
|
+
new_url_: link,
|
|
14828
|
+
is_replace_: false,
|
|
14829
|
+
event_: ev
|
|
14830
|
+
}));
|
|
14831
|
+
}
|
|
14832
|
+
}, link && {
|
|
14833
|
+
href: link
|
|
14847
14834
|
}, {
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14835
|
+
get children() {
|
|
14836
|
+
return $9HbP8$createComponent((0, $70bb27cc6be01fc7$export$140423fa4bfb6d63), {
|
|
14837
|
+
get size() {
|
|
14838
|
+
return $9HbP8$createMemo(() => wrapperSize()?.() || 0);
|
|
14839
|
+
},
|
|
14840
|
+
src: mediaUrl,
|
|
14841
|
+
"class": "d-standard-content"
|
|
14842
|
+
});
|
|
14843
|
+
}
|
|
14844
|
+
}));
|
|
14845
|
+
}
|
|
14846
|
+
if (type === "video") {
|
|
14847
|
+
const pageVisible = $5e3d278ef4c80cd7$export$54299a3c81f5425();
|
|
14848
|
+
return (() => {
|
|
14849
|
+
var _el$ = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$),
|
|
14850
|
+
_el$2 = _el$.firstChild;
|
|
14851
|
+
$9HbP8$addEventListener(_el$, "click", $9HbP8$catchify(ev => router_.navigate_.go_to_({
|
|
14852
|
+
new_url_: link,
|
|
14853
|
+
is_replace_: false,
|
|
14854
|
+
event_: ev
|
|
14855
|
+
})), true);
|
|
14856
|
+
$9HbP8$setAttribute(_el$, "href", link);
|
|
14857
|
+
$9HbP8$use(element => $9HbP8$createEffect(() => {
|
|
14858
|
+
if (pageVisible()) element.play().catch(e => $9HbP8$dlog1("Failed to play", e));else element.pause();
|
|
14859
|
+
}), _el$2);
|
|
14860
|
+
$9HbP8$setAttribute(_el$2, "src", mediaUrl);
|
|
14861
|
+
$9HbP8$setProperty(_el$2, "controls", false);
|
|
14862
|
+
$9HbP8$setProperty(_el$2, "muted", true);
|
|
14863
|
+
$9HbP8$setProperty(_el$2, "autoplay", true);
|
|
14864
|
+
$9HbP8$setProperty(_el$2, "playsinline", true);
|
|
14865
|
+
$9HbP8$runHydrationEvents();
|
|
14866
|
+
return _el$;
|
|
14867
|
+
})();
|
|
14868
|
+
}
|
|
14854
14869
|
}
|
|
14855
14870
|
$9HbP8$delegateEvents(["click"]);
|
|
14871
|
+
function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_) {
|
|
14872
|
+
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
14873
|
+
$9HbP8$createEffect(() => {
|
|
14874
|
+
const serverContentBlock = plp_meta()?.content_blocks;
|
|
14875
|
+
if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
|
|
14876
|
+
});
|
|
14877
|
+
const contentBlocksByRow = $9HbP8$createMemo(() => {
|
|
14878
|
+
if (content_blocks_by_row_()) return content_blocks_by_row_();
|
|
14879
|
+
const content = [];
|
|
14880
|
+
historyContentBlocks().forEach(row => {
|
|
14881
|
+
const contentBlock = {
|
|
14882
|
+
span_columns: row.span_columns,
|
|
14883
|
+
span_rows: row.span_rows,
|
|
14884
|
+
position: row.position,
|
|
14885
|
+
content: () => $9HbP8$createComponent((0, $f916989c4b1be9f7$export$780a853d15174484), {
|
|
14886
|
+
contentBlock_: row,
|
|
14887
|
+
router_: router_
|
|
14888
|
+
})
|
|
14889
|
+
};
|
|
14890
|
+
content[row.row] = contentBlock;
|
|
14891
|
+
});
|
|
14892
|
+
return content;
|
|
14893
|
+
});
|
|
14894
|
+
return contentBlocksByRow;
|
|
14895
|
+
}
|
|
14856
14896
|
var $df5d81d0fe61ff21$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=product-count><!$><!/> <!$><!/>`),
|
|
14857
14897
|
$df5d81d0fe61ff21$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div>`),
|
|
14858
14898
|
$df5d81d0fe61ff21$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
@@ -14880,6 +14920,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
14880
14920
|
show_breadcrumbs_: show_breadcrumbs_,
|
|
14881
14921
|
layout_options_: layout_options_,
|
|
14882
14922
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
14923
|
+
history_content_blocks_: history_content_blocks_,
|
|
14883
14924
|
product_card_template_: product_card_template_,
|
|
14884
14925
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14885
14926
|
sorting_query_param_: sorting_query_param_,
|
|
@@ -14948,23 +14989,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
14948
14989
|
}));
|
|
14949
14990
|
// Make "Get Listing" request to get quicklinks, breadcrumbs, title, etc
|
|
14950
14991
|
const [plp_meta] = $9HbP8$createResource(meta_query_base, $9HbP8$catchify(query => depict_api_.get_listing(query)));
|
|
14951
|
-
const contentBlocksByRow = $
|
|
14952
|
-
if (content_blocks_by_row_()) return content_blocks_by_row_();
|
|
14953
|
-
const content = [];
|
|
14954
|
-
plp_meta()?.content_blocks?.forEach(row => {
|
|
14955
|
-
const contentBlock = {
|
|
14956
|
-
span_columns: row.span_columns,
|
|
14957
|
-
span_rows: row.span_rows,
|
|
14958
|
-
position: row.position,
|
|
14959
|
-
content: $f916989c4b1be9f7$export$780a853d15174484({
|
|
14960
|
-
contentBlock: row,
|
|
14961
|
-
router_: router_
|
|
14962
|
-
})
|
|
14963
|
-
};
|
|
14964
|
-
content[row.row] = contentBlock;
|
|
14965
|
-
});
|
|
14966
|
-
return content;
|
|
14967
|
-
});
|
|
14992
|
+
const contentBlocksByRow = $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_);
|
|
14968
14993
|
const available_sortings_ = $9HbP8$createMemo(() => plp_products_()?.sorts?.map(sort => ({
|
|
14969
14994
|
...sort,
|
|
14970
14995
|
order: sort.order ?? "desc"
|
|
@@ -15319,7 +15344,8 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
15319
15344
|
sorting_open: category_sorting_open_,
|
|
15320
15345
|
expanded_filters: expanded_filters_,
|
|
15321
15346
|
expanded_hierarchical_filters: expanded_hierarchical_filters_,
|
|
15322
|
-
scroll_restoration_data: scroll_restoration_data_
|
|
15347
|
+
scroll_restoration_data: scroll_restoration_data_,
|
|
15348
|
+
history_content_blocks: history_content_blocks_
|
|
15323
15349
|
} = depict_category.historyStateSignals_;
|
|
15324
15350
|
const {
|
|
15325
15351
|
current_sorting_: current_sorting_,
|
|
@@ -15365,6 +15391,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
15365
15391
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15366
15392
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
15367
15393
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
15394
|
+
history_content_blocks_: history_content_blocks_,
|
|
15368
15395
|
layout_options_: $9HbP8$createMemo(() => ({
|
|
15369
15396
|
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.cols_at_size),
|
|
15370
15397
|
...grid_spacing_override(),
|
|
@@ -15377,4 +15404,4 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
15377
15404
|
}, "Entire CategoryPage failed");
|
|
15378
15405
|
}
|
|
15379
15406
|
$9HbP8$add_to_version_info("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
|
|
15380
|
-
export { $e7a7eb102ddc0c79$export$92aa5d691d588f3f as remap_blocks_to_index, $4eb0a704f8f30273$export$d4d96868197be50e as useMobileHover, $5e3d278ef4c80cd7$export$54299a3c81f5425 as useVisibilityState, $f32e14878e75af51$export$eaa625fb39439e37 as useSlidableInformation, $f091294da861020c$export$80bb7300ce6a8be3 as useProductCardIsVisible, $f091294da861020c$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $24e27fab9c821b86$export$5bad61ecde080b1f as useExpandingContainerReactive, $07ef910e8ef6b783$export$2c9f9bf2092486aa as LooksSliderOrGrid, $e9d1d09be9e6471e$export$44809a8a3e867e30 as LookCard, $4fd2ba03703a7d92$export$7e1297a3a19f10d8 as PseudoRouter, $de6ccd37192b5fc2$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $90980bd87c9960f9$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $90980bd87c9960f9$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $a281666e5c15c2ec$export$29d28dadc2d6b631 as allowNativeNavigation, $66db7a014e20802e$export$1ea76ea778b880dd as modalVersionSymbol, $136f1d4d6c7ba6ac$export$e417c49320921907 as createDeparallelizedNoDropResource, $d8dbf52fea1773e2$export$f50b88e2a00918b5 as throw_globally, $42912431795f188e$export$9265e66f26f8e383 as ClassicSearchModal, $500a16dd18ee5a71$export$b0c55aa2e87c4be7 as SearchModalV2, $70bb27cc6be01fc7$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $024fbc0a2d796fad$export$3e41faf802a29e71 as Tab, $024fbc0a2d796fad$export$b2539bed5023c21c as Tabs, $8560c919ff763930$export$d4973c31938cbfd1 as ShopTheLookButton, $ca6f574bd8772184$export$e183a13865960371 as history_dot_state_to_state, $4147651646da990a$export$916e6850778505f6 as strip_encoded_filter_and_sort, $4147651646da990a$export$58aa3f171519b6d7 as encode_filters, $4147651646da990a$export$f934fa24c3a86811 as decode_filters, $4147651646da990a$export$62acb285a7579555 as encode_sorting, $4147651646da990a$export$766e9676e74997d3 as decode_sorting, $660070e2a394b3c3$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $011607bdf658f807$export$e68cff63f76bd15b as ListingProvider, $011607bdf658f807$export$8d0c4fdbb05a2f2e as useListing, $b6440e72ed83671a$export$11354f017ddc9790 as ProductCardIndexProvider, $b6440e72ed83671a$export$e3faf4d95300054f as useProductCardIndex, $660070e2a394b3c3$export$e4b984597b71e989 as ShopifyContainedImage, $f32e14878e75af51$export$6649caad96ef8870 as SlidableItems, $2449872a62a75a20$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $ee116da074deb002$export$9574e176201e5e8d as RecommendationSlider, $9ea5383493360761$export$9756467d34d91cdb as RecommendationGrid, $e8ffe11ed01df0fe$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $e8ffe11ed01df0fe$export$e6fffe67d4cdd848 as makeSizeAccessor, $f18d425032111270$export$94026ee33dbabc26 as ImageContainer, $b7436a6d1fd64e3b$export$b69d0d92862de18b as SentryErrorBoundary, $b7436a6d1fd64e3b$export$240ecf5363d76c0f as ExtraSentryContextProvider, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d as ExpandingDetails, $c16e74cfe125bb05$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $1adfe60f3a14a1d7$export$fecbb157621501bd as SelectedFilters, $fab07f52c9861732$export$3f1a388cc0d8fed7 as FilterBody, $5efb5894079b220e$export$b288c38ae3fddb56 as create_modified_filters, $c8d5ff4524619fcd$export$d21e32dfedac04be as SolidLayout, $c8d5ff4524619fcd$export$445d8d3f5f706a40 as SolidLayoutWithProvidedElement, $194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $a0f0e923bad68a9b$export$58e808b1db15d3bc as fetchDepictRecommendations, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $4b2134398dfa83fa$export$c1a6b039e689a58e as get_listings, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b6d5529b253681aa$export$3f238c96c45e6cc6 as ALIGN_TOP, $b6d5529b253681aa$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $b6d5529b253681aa$export$7895aadd1956b1c7 as ALIGN_LEFT, $b6d5529b253681aa$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version, $58b3487626e85ece$export$316f6f283ae64765 as SearchField, $feffae76d8dc0135$export$5b7c3ce0ebe51f86 as BreadCrumbs, $feffae76d8dc0135$export$de035477d6fef996 as QuickLinks, $442f32a4d80abbde$export$e2bf8ce7779e827e as CategoryPage };
|
|
15407
|
+
export { $a63fa9cb46ed211b$export$f98b8d5ea7207a1 as setExtraDisplayTransformers, $a63fa9cb46ed211b$export$b2d94be4f02525b2 as getExtraDisplayTransformers, $e7a7eb102ddc0c79$export$92aa5d691d588f3f as remap_blocks_to_index, $4eb0a704f8f30273$export$d4d96868197be50e as useMobileHover, $5e3d278ef4c80cd7$export$54299a3c81f5425 as useVisibilityState, $f32e14878e75af51$export$eaa625fb39439e37 as useSlidableInformation, $f091294da861020c$export$80bb7300ce6a8be3 as useProductCardIsVisible, $f091294da861020c$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $24e27fab9c821b86$export$5bad61ecde080b1f as useExpandingContainerReactive, $07ef910e8ef6b783$export$2c9f9bf2092486aa as LooksSliderOrGrid, $e9d1d09be9e6471e$export$44809a8a3e867e30 as LookCard, $4fd2ba03703a7d92$export$7e1297a3a19f10d8 as PseudoRouter, $de6ccd37192b5fc2$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $90980bd87c9960f9$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $90980bd87c9960f9$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $a281666e5c15c2ec$export$29d28dadc2d6b631 as allowNativeNavigation, $66db7a014e20802e$export$1ea76ea778b880dd as modalVersionSymbol, $136f1d4d6c7ba6ac$export$e417c49320921907 as createDeparallelizedNoDropResource, $d8dbf52fea1773e2$export$f50b88e2a00918b5 as throw_globally, $42912431795f188e$export$9265e66f26f8e383 as ClassicSearchModal, $500a16dd18ee5a71$export$b0c55aa2e87c4be7 as SearchModalV2, $70bb27cc6be01fc7$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $024fbc0a2d796fad$export$3e41faf802a29e71 as Tab, $024fbc0a2d796fad$export$b2539bed5023c21c as Tabs, $8560c919ff763930$export$d4973c31938cbfd1 as ShopTheLookButton, $ca6f574bd8772184$export$e183a13865960371 as history_dot_state_to_state, $4147651646da990a$export$916e6850778505f6 as strip_encoded_filter_and_sort, $4147651646da990a$export$58aa3f171519b6d7 as encode_filters, $4147651646da990a$export$f934fa24c3a86811 as decode_filters, $4147651646da990a$export$62acb285a7579555 as encode_sorting, $4147651646da990a$export$766e9676e74997d3 as decode_sorting, $660070e2a394b3c3$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $011607bdf658f807$export$e68cff63f76bd15b as ListingProvider, $011607bdf658f807$export$8d0c4fdbb05a2f2e as useListing, $b6440e72ed83671a$export$11354f017ddc9790 as ProductCardIndexProvider, $b6440e72ed83671a$export$e3faf4d95300054f as useProductCardIndex, $660070e2a394b3c3$export$e4b984597b71e989 as ShopifyContainedImage, $f32e14878e75af51$export$6649caad96ef8870 as SlidableItems, $2449872a62a75a20$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $ee116da074deb002$export$9574e176201e5e8d as RecommendationSlider, $9ea5383493360761$export$9756467d34d91cdb as RecommendationGrid, $e8ffe11ed01df0fe$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $e8ffe11ed01df0fe$export$e6fffe67d4cdd848 as makeSizeAccessor, $f18d425032111270$export$94026ee33dbabc26 as ImageContainer, $b7436a6d1fd64e3b$export$b69d0d92862de18b as SentryErrorBoundary, $b7436a6d1fd64e3b$export$240ecf5363d76c0f as ExtraSentryContextProvider, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d as ExpandingDetails, $c16e74cfe125bb05$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $1adfe60f3a14a1d7$export$fecbb157621501bd as SelectedFilters, $fab07f52c9861732$export$3f1a388cc0d8fed7 as FilterBody, $5efb5894079b220e$export$b288c38ae3fddb56 as create_modified_filters, $c8d5ff4524619fcd$export$d21e32dfedac04be as SolidLayout, $c8d5ff4524619fcd$export$445d8d3f5f706a40 as SolidLayoutWithProvidedElement, $194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $a0f0e923bad68a9b$export$58e808b1db15d3bc as fetchDepictRecommendations, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $4b2134398dfa83fa$export$c1a6b039e689a58e as get_listings, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b6d5529b253681aa$export$3f238c96c45e6cc6 as ALIGN_TOP, $b6d5529b253681aa$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $b6d5529b253681aa$export$7895aadd1956b1c7 as ALIGN_LEFT, $b6d5529b253681aa$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version, $58b3487626e85ece$export$316f6f283ae64765 as SearchField, $feffae76d8dc0135$export$5b7c3ce0ebe51f86 as BreadCrumbs, $feffae76d8dc0135$export$de035477d6fef996 as QuickLinks, $442f32a4d80abbde$export$e2bf8ce7779e827e as CategoryPage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.33",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -18,6 +18,8 @@ function $parcel$export(e, n, v, s) {
|
|
|
18
18
|
function $parcel$interopDefault(a) {
|
|
19
19
|
return a && a.__esModule ? a.default : a;
|
|
20
20
|
}
|
|
21
|
+
$parcel$export(module.exports, "setExtraDisplayTransformers", () => $cc9aacef898ccc9a$export$f98b8d5ea7207a1);
|
|
22
|
+
$parcel$export(module.exports, "getExtraDisplayTransformers", () => $cc9aacef898ccc9a$export$b2d94be4f02525b2);
|
|
21
23
|
$parcel$export(module.exports, "remap_blocks_to_index", () => $f8f375d6245ffff2$export$92aa5d691d588f3f);
|
|
22
24
|
$parcel$export(module.exports, "useMobileHover", () => $0deb6ff75e3d67c6$export$d4d96868197be50e);
|
|
23
25
|
$parcel$export(module.exports, "useVisibilityState", () => $e7a7d2fe8a8217d8$export$54299a3c81f5425);
|
|
@@ -111,7 +113,14 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
111
113
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
112
114
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
113
115
|
/*! Depict.ai search and product listing SDK */
|
|
114
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.
|
|
116
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.33";
|
|
117
|
+
|
|
118
|
+
// Value first so shopify merchants can set (extra) display transformers in the shopify app
|
|
119
|
+
// Calling these functions normally doesn't do anything, but our shopify app respects them
|
|
120
|
+
// Them being here is value first too because this can be easily imported in the product card editor
|
|
121
|
+
let $cc9aacef898ccc9a$var$extraDisplayTransformers;
|
|
122
|
+
const $cc9aacef898ccc9a$export$b2d94be4f02525b2 = () => $cc9aacef898ccc9a$var$extraDisplayTransformers;
|
|
123
|
+
const $cc9aacef898ccc9a$export$f98b8d5ea7207a1 = displayTransformers => $cc9aacef898ccc9a$var$extraDisplayTransformers = displayTransformers;
|
|
115
124
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
116
125
|
const signal = $3hooq$solidjs.createSignal(false);
|
|
117
126
|
$3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -179,7 +188,7 @@ function $b8a8d61b3ec5f5ac$export$3f37af283f8fb843(props) {
|
|
|
179
188
|
}
|
|
180
189
|
});
|
|
181
190
|
}
|
|
182
|
-
var $f8f375d6245ffff2$var$_tmpl$ = ["<div", ' class="
|
|
191
|
+
var $f8f375d6245ffff2$var$_tmpl$ = ["<div", ' class="', '" style="', '">', "</div>"];
|
|
183
192
|
function $f8f375d6245ffff2$export$791ef57e62e21c3f(_ref) {
|
|
184
193
|
let {
|
|
185
194
|
content_blocks_: incoming_content_blocks,
|
|
@@ -311,7 +320,7 @@ function $f8f375d6245ffff2$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
311
320
|
return !rendering_delayed();
|
|
312
321
|
},
|
|
313
322
|
get children() {
|
|
314
|
-
return $3hooq$solidjsweb.ssr($f8f375d6245ffff2$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "grid-column:" + "span ".concat($3hooq$solidjsweb.escape(final_span_columns(), true)) + (";grid-row:" + "span ".concat($3hooq$solidjsweb.escape(final_span_rows(), true))) + (";spans_columns_variable_name:" + $3hooq$solidjsweb.escape(final_span_columns(), true)), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent($f8f375d6245ffff2$var$RenderContent, {
|
|
323
|
+
return $3hooq$solidjsweb.ssr($f8f375d6245ffff2$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "content-block-wrapper ".concat(final_span_columns() === max_span_columns() ? "spans-whole-row" : ""), "grid-column:" + "span ".concat($3hooq$solidjsweb.escape(final_span_columns(), true)) + (";grid-row:" + "span ".concat($3hooq$solidjsweb.escape(final_span_rows(), true))) + (";spans_columns_variable_name:" + $3hooq$solidjsweb.escape(final_span_columns(), true)), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent($f8f375d6245ffff2$var$RenderContent, {
|
|
315
324
|
get content() {
|
|
316
325
|
return block.content;
|
|
317
326
|
}
|
|
@@ -1619,25 +1628,30 @@ function $28535bb7671c63d1$export$e4b984597b71e989(props) {
|
|
|
1619
1628
|
})));
|
|
1620
1629
|
return container;
|
|
1621
1630
|
}
|
|
1631
|
+
const $f3db423dc84bc35d$var$customUrls = (url, width) => {
|
|
1632
|
+
var _url$startsWith;
|
|
1633
|
+
if (url !== null && url !== void 0 && (_url$startsWith = url.startsWith) !== null && _url$startsWith !== void 0 && _url$startsWith.call(url, "https://cdn.shopify.com"))
|
|
1634
|
+
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1635
|
+
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1636
|
+
return $858fdcf73148519f$export$1d6267828870adda(url, width);
|
|
1637
|
+
// Use cloudflare image resizer instead of img.depict.ai because it's a lot faster (and also auto-chooses other formats if webp is not supported)
|
|
1638
|
+
return "https://app.depict.ai/cdn-cgi/image/width=".concat(width, ",format=auto/").concat(url);
|
|
1639
|
+
};
|
|
1622
1640
|
function $f3db423dc84bc35d$export$9d4a4b669b1929ab(props) {
|
|
1623
1641
|
return $3hooq$solidjsweb.createComponent((0, $28535bb7671c63d1$export$e4b984597b71e989), $3hooq$solidjsweb.mergeProps(props, {
|
|
1624
1642
|
get imgProps() {
|
|
1625
1643
|
return {
|
|
1626
1644
|
...props.imgProps,
|
|
1627
|
-
customUrls:
|
|
1628
|
-
) => {
|
|
1629
|
-
var _url$startsWith;
|
|
1630
|
-
if (url !== null && url !== void 0 && (_url$startsWith = url.startsWith) !== null && _url$startsWith !== void 0 && _url$startsWith.call(url, "https://cdn.shopify.com"))
|
|
1631
|
-
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
1632
|
-
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
1633
|
-
return $858fdcf73148519f$export$1d6267828870adda(url, width);
|
|
1634
|
-
// Use cloudflare image resizer instead of img.depict.ai because it's a lot faster (and also auto-chooses other formats if webp is not supported)
|
|
1635
|
-
return "https://app.depict.ai/cdn-cgi/image/width=".concat(width, ",format=auto/").concat(url);
|
|
1636
|
-
}
|
|
1645
|
+
customUrls: $f3db423dc84bc35d$var$customUrls
|
|
1637
1646
|
};
|
|
1638
1647
|
}
|
|
1639
1648
|
}));
|
|
1640
1649
|
}
|
|
1650
|
+
function $f3db423dc84bc35d$export$140423fa4bfb6d63(props) {
|
|
1651
|
+
return $3hooq$solidjsweb.createComponent((0, $858fdcf73148519f$export$6e5611bc7e57e477), $3hooq$solidjsweb.mergeProps(props, {
|
|
1652
|
+
customUrls: $f3db423dc84bc35d$var$customUrls
|
|
1653
|
+
}));
|
|
1654
|
+
}
|
|
1641
1655
|
function $f38f2e64ebe2da86$export$a71e92cfbb498adc(props) {
|
|
1642
1656
|
return $3hooq$solidjs.createMemo(() => {
|
|
1643
1657
|
const price_formatting = props.price_formatting_;
|
|
@@ -8977,7 +8991,8 @@ class $9cbefc32b9dab36d$export$f34314aa9505732e {
|
|
|
8977
8991
|
// Please make sure that the signal created by below line always updates AFTER selected_filters_ updates on a "popstate" event. If the filter cache is popped before the selected filters are the code in create_modified_filters() is going to re-calculate search_local_filter_cache without knowing the real value of search_selected_filters, and we'll end up with too few filters in search_local_filter_cache in some cases
|
|
8978
8992
|
local_filter_cache: [],
|
|
8979
8993
|
expanded_hierarchical_filters: [],
|
|
8980
|
-
scroll_restoration_data: []
|
|
8994
|
+
scroll_restoration_data: [],
|
|
8995
|
+
history_content_blocks: []
|
|
8981
8996
|
}),
|
|
8982
8997
|
router_: $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet)(this, $9cbefc32b9dab36d$var$_router),
|
|
8983
8998
|
prefix_: "category" + unique_instance_key_for_state + "_"
|
|
@@ -13296,15 +13311,77 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
13296
13311
|
});
|
|
13297
13312
|
tracking_function_for_plp_results(plp_results_);
|
|
13298
13313
|
}
|
|
13299
|
-
var $c19709057a32b2e7$var$_tmpl$ = ["<a", "><
|
|
13300
|
-
$c19709057a32b2e7$var$_tmpl$2 = ["<a", "><video", ' muted="" autoplay="" playsinline="" loop style="', '"></video></a>'];
|
|
13314
|
+
var $c19709057a32b2e7$var$_tmpl$ = ["<a", ' class="d-standard-content-wrapper"', "><video", ' muted="" autoplay="" playsinline="" loop class="d-standard-content"></video></a>'];
|
|
13301
13315
|
function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
13302
13316
|
let {
|
|
13303
|
-
|
|
13317
|
+
contentBlock_: {
|
|
13318
|
+
content: {
|
|
13319
|
+
link: link,
|
|
13320
|
+
type: type,
|
|
13321
|
+
url: mediaUrl
|
|
13322
|
+
}
|
|
13323
|
+
},
|
|
13304
13324
|
router_: router_
|
|
13305
13325
|
} = _ref;
|
|
13306
|
-
if (
|
|
13307
|
-
|
|
13326
|
+
if (type === "image") {
|
|
13327
|
+
const [wrapperSize, setWrapperSize] = $3hooq$solidjs.createSignal();
|
|
13328
|
+
return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjsweb.Dynamic), $3hooq$solidjsweb.mergeProps({
|
|
13329
|
+
component: link ? "a" : "div",
|
|
13330
|
+
"class": "d-standard-content-wrapper",
|
|
13331
|
+
get onClick() {
|
|
13332
|
+
return $3hooq$depictaiutilisharedlatest.catchify(ev => link && router_.navigate_.go_to_({
|
|
13333
|
+
new_url_: link,
|
|
13334
|
+
is_replace_: false,
|
|
13335
|
+
event_: ev
|
|
13336
|
+
}));
|
|
13337
|
+
}
|
|
13338
|
+
}, link && {
|
|
13339
|
+
href: link
|
|
13340
|
+
}, {
|
|
13341
|
+
get children() {
|
|
13342
|
+
return $3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$140423fa4bfb6d63), {
|
|
13343
|
+
get size() {
|
|
13344
|
+
return $3hooq$solidjs.createMemo(() => {
|
|
13345
|
+
var _wrapperSize;
|
|
13346
|
+
return ((_wrapperSize = wrapperSize()) === null || _wrapperSize === void 0 ? void 0 : _wrapperSize()) || 0;
|
|
13347
|
+
});
|
|
13348
|
+
},
|
|
13349
|
+
src: mediaUrl,
|
|
13350
|
+
"class": "d-standard-content"
|
|
13351
|
+
});
|
|
13352
|
+
}
|
|
13353
|
+
}));
|
|
13354
|
+
}
|
|
13355
|
+
if (type === "video") {
|
|
13356
|
+
const pageVisible = $e7a7d2fe8a8217d8$export$54299a3c81f5425();
|
|
13357
|
+
return $3hooq$solidjsweb.ssr($c19709057a32b2e7$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(link, true), false), $3hooq$solidjsweb.ssrAttribute("src", $3hooq$solidjsweb.escape(mediaUrl, true), false));
|
|
13358
|
+
}
|
|
13359
|
+
}
|
|
13360
|
+
function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_) {
|
|
13361
|
+
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
13362
|
+
$3hooq$solidjs.createEffect(() => {
|
|
13363
|
+
var _plp_meta;
|
|
13364
|
+
const serverContentBlock = (_plp_meta = plp_meta()) === null || _plp_meta === void 0 ? void 0 : _plp_meta.content_blocks;
|
|
13365
|
+
if (serverContentBlock && JSON.stringify(serverContentBlock) !== JSON.stringify(historyContentBlocks())) setHistoryContentBlocks(serverContentBlock);
|
|
13366
|
+
});
|
|
13367
|
+
const contentBlocksByRow = $3hooq$solidjs.createMemo(() => {
|
|
13368
|
+
if (content_blocks_by_row_()) return content_blocks_by_row_();
|
|
13369
|
+
const content = [];
|
|
13370
|
+
historyContentBlocks().forEach(row => {
|
|
13371
|
+
const contentBlock = {
|
|
13372
|
+
span_columns: row.span_columns,
|
|
13373
|
+
span_rows: row.span_rows,
|
|
13374
|
+
position: row.position,
|
|
13375
|
+
content: () => $3hooq$solidjsweb.createComponent((0, $c19709057a32b2e7$export$780a853d15174484), {
|
|
13376
|
+
contentBlock_: row,
|
|
13377
|
+
router_: router_
|
|
13378
|
+
})
|
|
13379
|
+
};
|
|
13380
|
+
content[row.row] = contentBlock;
|
|
13381
|
+
});
|
|
13382
|
+
return content;
|
|
13383
|
+
});
|
|
13384
|
+
return contentBlocksByRow;
|
|
13308
13385
|
}
|
|
13309
13386
|
var $ede6c70ecdca46fe$var$_tmpl$ = ["<div", ' class="product-count"><!--$-->', "<!--/--> <!--$-->", "<!--/--></div>"],
|
|
13310
13387
|
$ede6c70ecdca46fe$var$_tmpl$2 = ["<div", "></div>"],
|
|
@@ -13334,6 +13411,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13334
13411
|
show_breadcrumbs_: show_breadcrumbs_,
|
|
13335
13412
|
layout_options_: layout_options_,
|
|
13336
13413
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13414
|
+
history_content_blocks_: history_content_blocks_,
|
|
13337
13415
|
product_card_template_: product_card_template_,
|
|
13338
13416
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13339
13417
|
sorting_query_param_: sorting_query_param_,
|
|
@@ -13402,24 +13480,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13402
13480
|
}));
|
|
13403
13481
|
// Make "Get Listing" request to get quicklinks, breadcrumbs, title, etc
|
|
13404
13482
|
const [plp_meta] = $3hooq$solidjs.createResource(meta_query_base, $3hooq$depictaiutilisharedlatest.catchify(query => depict_api_.get_listing(query)));
|
|
13405
|
-
const contentBlocksByRow = $
|
|
13406
|
-
var _plp_meta, _plp_meta$content_blo;
|
|
13407
|
-
if (content_blocks_by_row_()) return content_blocks_by_row_();
|
|
13408
|
-
const content = [];
|
|
13409
|
-
(_plp_meta = plp_meta()) === null || _plp_meta === void 0 || (_plp_meta$content_blo = _plp_meta.content_blocks) === null || _plp_meta$content_blo === void 0 || _plp_meta$content_blo.forEach(row => {
|
|
13410
|
-
const contentBlock = {
|
|
13411
|
-
span_columns: row.span_columns,
|
|
13412
|
-
span_rows: row.span_rows,
|
|
13413
|
-
position: row.position,
|
|
13414
|
-
content: $c19709057a32b2e7$export$780a853d15174484({
|
|
13415
|
-
contentBlock: row,
|
|
13416
|
-
router_: router_
|
|
13417
|
-
})
|
|
13418
|
-
};
|
|
13419
|
-
content[row.row] = contentBlock;
|
|
13420
|
-
});
|
|
13421
|
-
return content;
|
|
13422
|
-
});
|
|
13483
|
+
const contentBlocksByRow = $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_);
|
|
13423
13484
|
const available_sortings_ = $3hooq$solidjs.createMemo(() => {
|
|
13424
13485
|
var _plp_products_, _plp_products_$sorts;
|
|
13425
13486
|
return (_plp_products_ = plp_products_()) === null || _plp_products_ === void 0 ? void 0 : (_plp_products_$sorts = _plp_products_.sorts) === null || _plp_products_$sorts === void 0 ? void 0 : _plp_products_$sorts.map(sort => {
|
|
@@ -13435,13 +13496,13 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13435
13496
|
return (_plp_products_2 = plp_products_()) === null || _plp_products_2 === void 0 ? void 0 : _plp_products_2.filters;
|
|
13436
13497
|
});
|
|
13437
13498
|
const title = $3hooq$solidjs.createMemo(() => {
|
|
13438
|
-
var
|
|
13439
|
-
return (
|
|
13499
|
+
var _plp_meta;
|
|
13500
|
+
return (_plp_meta = plp_meta()) === null || _plp_meta === void 0 ? void 0 : _plp_meta.title;
|
|
13440
13501
|
});
|
|
13441
13502
|
const crumb_data_ = $ede6c70ecdca46fe$var$add_us_to_crumbs(plp_meta);
|
|
13442
13503
|
const quicklinks_data_ = $3hooq$solidjs.createMemo(() => {
|
|
13443
|
-
var
|
|
13444
|
-
return (
|
|
13504
|
+
var _plp_meta2;
|
|
13505
|
+
return (_plp_meta2 = plp_meta()) === null || _plp_meta2 === void 0 ? void 0 : _plp_meta2.quick_links;
|
|
13445
13506
|
});
|
|
13446
13507
|
const [sort_or_filter_open_, set_sort_or_filter_open_] = $3hooq$solidjs.createSignal(false);
|
|
13447
13508
|
const [desktop_filter_elements_, set_desktop_filter_elements] = $3hooq$solidjs.createSignal();
|
|
@@ -13707,8 +13768,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13707
13768
|
function $ede6c70ecdca46fe$var$add_us_to_crumbs(plp_meta) {
|
|
13708
13769
|
const href_accessor = $3hooq$depictaiutilisharedlatest.use_href_accessor();
|
|
13709
13770
|
return $3hooq$solidjs.createMemo(() => {
|
|
13710
|
-
var
|
|
13711
|
-
const api_value = (
|
|
13771
|
+
var _plp_meta3;
|
|
13772
|
+
const api_value = (_plp_meta3 = plp_meta()) === null || _plp_meta3 === void 0 ? void 0 : _plp_meta3.breadcrumbs;
|
|
13712
13773
|
if (!api_value) return api_value;
|
|
13713
13774
|
return [...api_value, $3hooq$solidjs.mergeProps(plp_meta(), {
|
|
13714
13775
|
get page_url() {
|
|
@@ -13758,7 +13819,8 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
13758
13819
|
sorting_open: category_sorting_open_,
|
|
13759
13820
|
expanded_filters: expanded_filters_,
|
|
13760
13821
|
expanded_hierarchical_filters: expanded_hierarchical_filters_,
|
|
13761
|
-
scroll_restoration_data: scroll_restoration_data_
|
|
13822
|
+
scroll_restoration_data: scroll_restoration_data_,
|
|
13823
|
+
history_content_blocks: history_content_blocks_
|
|
13762
13824
|
} = depict_category.historyStateSignals_;
|
|
13763
13825
|
const {
|
|
13764
13826
|
current_sorting_: current_sorting_,
|
|
@@ -13810,6 +13872,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
13810
13872
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13811
13873
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
13812
13874
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13875
|
+
history_content_blocks_: history_content_blocks_,
|
|
13813
13876
|
layout_options_: $3hooq$solidjs.createMemo(() => ({
|
|
13814
13877
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.cols_at_size),
|
|
13815
13878
|
...grid_spacing_override(),
|