@depict-ai/ui 1.3.3 → 1.3.4

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.
@@ -1,11 +1,12 @@
1
1
  var $57o7A$depictaiutilishared = require("@depict-ai/utilishared");
2
- var $57o7A$solidjs = require("solid-js");
3
2
  var $57o7A$solidjsweb = require("solid-js/web");
3
+ var $57o7A$solidjs = require("solid-js");
4
4
 
5
5
  function $parcel$export(e, n, v, s) {
6
6
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
7
7
  }
8
8
 
9
+ $parcel$export(module.exports, "SolidLayout", () => $f48d0fbb00835aaa$export$d21e32dfedac04be);
9
10
  $parcel$export(module.exports, "general_modal_abstraction", () => $9abb0a35d4b60ed3$export$79b1565500412d9b);
10
11
  $parcel$export(module.exports, "CrossIcon", () => $c77c68e559a1506c$export$3b621d86b1566b2);
11
12
  $parcel$export(module.exports, "GenericSliderArrowButton", () => $0f313083912e447a$export$8be2714ec7f169ee);
@@ -43,9 +44,195 @@ $parcel$export(module.exports, "defaultGridSpacing", () => $a3280f0aad997933$exp
43
44
  $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$export$c3834fa86c616831);
44
45
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
45
46
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
46
- /*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.3.3";
47
+ /*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.3.4";
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ function $5f7d55c710fd1bc2$export$2f0cbfbb4354bb52(elements) {
66
+ // FYI this probably doesn't work on hugely deep nestings or large amount of elements
67
+ return (0, $57o7A$solidjs.createMemo)(()=>$5f7d55c710fd1bc2$var$unwrapping_helper(elements));
68
+ }
69
+ function $5f7d55c710fd1bc2$var$unwrapping_helper(elements) {
70
+ const result = [];
71
+ if (Array.isArray(elements)) for(let i = 0; i < elements.length; i++){
72
+ const element = elements[i];
73
+ result.push(...$5f7d55c710fd1bc2$var$unwrapping_helper(element));
74
+ }
75
+ else if (typeof elements == "function") result.push(...$5f7d55c710fd1bc2$var$unwrapping_helper(elements()));
76
+ else if (elements != undefined && typeof elements != "boolean") result.push(elements);
77
+ return result;
78
+ }
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+ // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
89
+ class $7dd1edb2ee2b43ad$export$e1d52e4f0c7557a1 extends Error {
90
+ }
91
+ class $7dd1edb2ee2b43ad$export$aa14a9f43128f61f extends $7dd1edb2ee2b43ad$export$e1d52e4f0c7557a1 {
92
+ constructor(templateError){
93
+ super("Uncaught error in product card template", {
94
+ cause: templateError
95
+ });
96
+ }
97
+ }
47
98
 
48
99
 
100
+ const $edafe91daf3091d7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div></div>`, 2);
101
+ function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
102
+ return (0, $57o7A$solidjs.ErrorBoundary)({
103
+ fallback (err, retry) {
104
+ const { message_: message_ , severity_: severity_ } = props;
105
+ let message = message_;
106
+ if (err instanceof (0, $7dd1edb2ee2b43ad$export$aa14a9f43128f61f)) {
107
+ console.error(err.cause);
108
+ message = `${message}: ${err.message}`;
109
+ } else (0, $57o7A$depictaiutilishared.report)([
110
+ err,
111
+ message_
112
+ ], severity_);
113
+ props.on_error_?.(retry);
114
+ return (()=>{
115
+ const _el$ = (0, $57o7A$solidjsweb.getNextElement)($edafe91daf3091d7$var$_tmpl$);
116
+ (0, $57o7A$solidjsweb.insert)(_el$, message);
117
+ (0, $57o7A$solidjsweb.effect)((_$p)=>(0, $57o7A$solidjsweb.classList)(_el$, Object.fromEntries(props.class_list_?.map((c)=>[
118
+ c,
119
+ true
120
+ ]) || []), _$p));
121
+ return _el$;
122
+ })();
123
+ },
124
+ get children () {
125
+ return props.children;
126
+ }
127
+ });
128
+ }
129
+
130
+
131
+ const $f48d0fbb00835aaa$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div></div>`, 2), $f48d0fbb00835aaa$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<style type="text/css"></style>`, 2);
132
+ function $f48d0fbb00835aaa$export$d21e32dfedac04be(props) {
133
+ return (0, $57o7A$solidjsweb.createComponent)((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
134
+ get message_ () {
135
+ return "Failed calculating " + props.layout + " layout";
136
+ },
137
+ severity_: "error",
138
+ get children () {
139
+ return $f48d0fbb00835aaa$var$ActualSolidLayout(props);
140
+ }
141
+ });
142
+ }
143
+ function $f48d0fbb00835aaa$var$ActualSolidLayout(props) {
144
+ // Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
145
+ const show_all_rows = (0, $57o7A$solidjs.createMemo)(()=>props.rows === "all");
146
+ const rows_or_empty_object = (0, $57o7A$solidjs.createMemo)(()=>show_all_rows() ? {} : props.rows);
147
+ const button_elements = (0, $5f7d55c710fd1bc2$export$2f0cbfbb4354bb52)((0, $57o7A$solidjs.createMemo)(()=>rows_or_empty_object().button));
148
+ const have_a_button = (0, $57o7A$solidjs.createMemo)(()=>{
149
+ const button = button_elements();
150
+ return !(!button || Array.isArray(button) && !button.length);
151
+ });
152
+ const [get_styling, set_styling] = (0, $57o7A$solidjs.createSignal)();
153
+ const container_class = (0, $57o7A$depictaiutilishared.make_random_classname)();
154
+ const selector_beginning = `.depict .${container_class}>`; // class so ppl can have id if needed
155
+ const container_element = (()=>{
156
+ const _el$ = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$);
157
+ (0, $57o7A$solidjsweb.spread)(_el$, (0, $57o7A$solidjsweb.mergeProps)(()=>props.element_attributes), false, true);
158
+ (0, $57o7A$solidjsweb.insert)(_el$, ()=>props.children);
159
+ (0, $57o7A$solidjsweb.runHydrationEvents)();
160
+ return _el$;
161
+ })();
162
+ const [get_children_count, set_children_count] = (0, $57o7A$solidjs.createSignal)(0);
163
+ const update_children_count = ()=>set_children_count(container_element.children.length);
164
+ const col_styling = (0, $57o7A$solidjs.createMemo)(()=>(0, $57o7A$depictaiutilishared.n_col_styling_with_dist)(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
165
+ const default_currently_visible_signal = (0, $57o7A$solidjs.createSignal)(0); // Keep this signal here so it doesn't change when rows_or_empty_object and I think it's to be expected that the "internal default signal" stays the same
166
+ const rows_visible_signal = (0, $57o7A$solidjs.createMemo)(()=>rows_or_empty_object().currently_visible || default_currently_visible_signal);
167
+ const get_rows_visible = (0, $57o7A$solidjs.createMemo)(()=>rows_visible_signal()[0]());
168
+ const set_rows_visible = (0, $57o7A$solidjs.createMemo)(()=>rows_visible_signal()[1]);
169
+ const button_class = (0, $57o7A$depictaiutilishared.make_random_classname)();
170
+ const button_container = (0, $57o7A$solidjs.createMemo)(()=>have_a_button() && (()=>{
171
+ const _el$2 = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$);
172
+ (0, $57o7A$solidjsweb.addEventListener)(_el$2, "click", (0, $57o7A$depictaiutilishared.catchify)(()=>set_rows_visible()((prev)=>prev + (rows_or_empty_object().rows_per_click ?? 1))), true);
173
+ (0, $57o7A$solidjsweb.className)(_el$2, "load-more-container " + button_class);
174
+ (0, $57o7A$solidjsweb.insert)(_el$2, ()=>rows_or_empty_object().button);
175
+ (0, $57o7A$solidjsweb.runHydrationEvents)();
176
+ return _el$2;
177
+ })());
178
+ container_element.classList.add(container_class);
179
+ (0, $57o7A$solidjs.createComputed)(()=>{
180
+ // Make sure we don't have more rows visible than max_rows (this could happen by max_rows being decreased)
181
+ const rows_visible = get_rows_visible();
182
+ const max_rows = rows_or_empty_object().max_rows;
183
+ if (!isNaN(max_rows) && max_rows >= 0 && rows_visible > max_rows) set_rows_visible()(max_rows);
184
+ });
185
+ (0, $57o7A$solidjs.createRenderEffect)(()=>{
186
+ // Be careful to only read show_all_rows in here (ofc doesn't apply to nested effects)
187
+ if (show_all_rows()) {
188
+ // no view more functionality requested
189
+ set_styling(()=>col_styling);
190
+ return;
191
+ }
192
+ (0, $57o7A$solidjs.untrack)(()=>set_rows_visible()(rows_or_empty_object().start_rows ?? 1));
193
+ update_children_count();
194
+ const mutation_observer = new MutationObserver((0, $57o7A$depictaiutilishared.catchify)(update_children_count));
195
+ mutation_observer.observe(container_element, {
196
+ childList: true
197
+ });
198
+ (0, $57o7A$solidjs.onCleanup)(()=>mutation_observer.disconnect());
199
+ set_styling(// this is needed because solid will think that the memo-accessor is a setter function otherwise
200
+ ()=>(0, $57o7A$solidjs.createMemo)(()=>{
201
+ const { rows_per_click: rows_per_click , max_rows: max_rows = -1 } = rows_or_empty_object();
202
+ const rows_visible = get_rows_visible();
203
+ const children_count = get_children_count();
204
+ return col_styling() + props.cols_at_size.map((options)=>{
205
+ const [, min, max] = options;
206
+ let should_hide_button;
207
+ let visible_recs;
208
+ if (props.disable_partial_rows) {
209
+ visible_recs = (0, $57o7A$depictaiutilishared.layout_get_visible_recs_without_partial_rows)(rows_visible, children_count, options);
210
+ const visible_recs_next_show_more = (0, $57o7A$depictaiutilishared.layout_get_visible_recs_without_partial_rows)(rows_visible + (rows_per_click || 0), // Should this really be zero when we default rows_per_click to 1?
211
+ children_count, options);
212
+ should_hide_button = visible_recs === visible_recs_next_show_more;
213
+ } else {
214
+ visible_recs = (0, $57o7A$depictaiutilishared.layout_get_total_rec_amount_for_row)(rows_visible, options);
215
+ should_hide_button = visible_recs >= children_count;
216
+ }
217
+ const should_hide_button_final = button_class && (should_hide_button || max_rows !== -1 && rows_visible >= max_rows);
218
+ return `${(0, $57o7A$depictaiutilishared.layout_media_query_header)(min, max)}{${selector_beginning}:nth-child(n+${visible_recs + 1}){display:none}${props.layout == "slider" ? `${selector_beginning}:nth-child(n+${visible_recs}){margin-right:0}` : ""}${should_hide_button_final ? `.depict .${button_class}{display:none!important}` : ``}}`;
219
+ }).join("");
220
+ }));
221
+ });
222
+ return [
223
+ container_element,
224
+ (0, $57o7A$solidjsweb.memo)(button_container),
225
+ (()=>{
226
+ const _el$3 = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$2);
227
+ (0, $57o7A$solidjsweb.insert)(_el$3, get_styling);
228
+ return _el$3;
229
+ })()
230
+ ];
231
+ }
232
+ (0, $57o7A$solidjsweb.delegateEvents)([
233
+ "click"
234
+ ]);
235
+
49
236
 
50
237
 
51
238
 
@@ -946,71 +1133,6 @@ function $fc23d7668ae0011d$export$a2cc176055f8f08() {
946
1133
 
947
1134
 
948
1135
 
949
-
950
-
951
-
952
- // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
953
- class $7dd1edb2ee2b43ad$export$e1d52e4f0c7557a1 extends Error {
954
- }
955
- class $7dd1edb2ee2b43ad$export$aa14a9f43128f61f extends $7dd1edb2ee2b43ad$export$e1d52e4f0c7557a1 {
956
- constructor(templateError){
957
- super("Uncaught error in product card template", {
958
- cause: templateError
959
- });
960
- }
961
- }
962
-
963
-
964
- const $edafe91daf3091d7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div></div>`, 2);
965
- function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
966
- return (0, $57o7A$solidjs.ErrorBoundary)({
967
- fallback (err, retry) {
968
- const { message_: message_ , severity_: severity_ } = props;
969
- let message = message_;
970
- if (err instanceof (0, $7dd1edb2ee2b43ad$export$aa14a9f43128f61f)) {
971
- console.error(err.cause);
972
- message = `${message}: ${err.message}`;
973
- } else (0, $57o7A$depictaiutilishared.report)([
974
- err,
975
- message_
976
- ], severity_);
977
- props.on_error_?.(retry);
978
- return (()=>{
979
- const _el$ = (0, $57o7A$solidjsweb.getNextElement)($edafe91daf3091d7$var$_tmpl$);
980
- (0, $57o7A$solidjsweb.insert)(_el$, message);
981
- (0, $57o7A$solidjsweb.effect)((_$p)=>(0, $57o7A$solidjsweb.classList)(_el$, Object.fromEntries(props.class_list_?.map((c)=>[
982
- c,
983
- true
984
- ]) || []), _$p));
985
- return _el$;
986
- })();
987
- },
988
- get children () {
989
- return props.children;
990
- }
991
- });
992
- }
993
-
994
-
995
-
996
-
997
- function $5f7d55c710fd1bc2$export$2f0cbfbb4354bb52(elements) {
998
- // FYI this probably doesn't work on hugely deep nestings or large amount of elements
999
- return (0, $57o7A$solidjs.createMemo)(()=>$5f7d55c710fd1bc2$var$unwrapping_helper(elements));
1000
- }
1001
- function $5f7d55c710fd1bc2$var$unwrapping_helper(elements) {
1002
- const result = [];
1003
- if (Array.isArray(elements)) for(let i = 0; i < elements.length; i++){
1004
- const element = elements[i];
1005
- result.push(...$5f7d55c710fd1bc2$var$unwrapping_helper(element));
1006
- }
1007
- else if (typeof elements == "function") result.push(...$5f7d55c710fd1bc2$var$unwrapping_helper(elements()));
1008
- else if (elements != undefined && typeof elements != "boolean") result.push(elements);
1009
- return result;
1010
- }
1011
-
1012
-
1013
-
1014
1136
  let $0caf87eaa19079da$var$cached_placeholder_element;
1015
1137
  let $0caf87eaa19079da$var$rendering_cached_placeholder_element;
1016
1138
  function $0caf87eaa19079da$export$f33414a4df0afd3f({ product_card_template_: product_card_template_ , num_placeholders_: num_placeholders_ }) {
@@ -1325,117 +1447,6 @@ function $ac167f6af6a48fc3$export$a1fd619a4743ca08({ plp_results_: plp_results_
1325
1447
 
1326
1448
 
1327
1449
 
1328
-
1329
-
1330
-
1331
-
1332
-
1333
-
1334
-
1335
-
1336
-
1337
-
1338
-
1339
-
1340
-
1341
-
1342
- const $f48d0fbb00835aaa$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div></div>`, 2), $f48d0fbb00835aaa$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<style type="text/css"></style>`, 2);
1343
- function $f48d0fbb00835aaa$export$d21e32dfedac04be(props) {
1344
- return (0, $57o7A$solidjsweb.createComponent)((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
1345
- get message_ () {
1346
- return "Failed calculating " + props.layout + " layout";
1347
- },
1348
- severity_: "error",
1349
- get children () {
1350
- return $f48d0fbb00835aaa$var$ActualSolidLayout(props);
1351
- }
1352
- });
1353
- }
1354
- function $f48d0fbb00835aaa$var$ActualSolidLayout(props) {
1355
- // Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
1356
- const show_all_rows = (0, $57o7A$solidjs.createMemo)(()=>props.rows === "all");
1357
- const rows_or_empty_object = (0, $57o7A$solidjs.createMemo)(()=>show_all_rows() ? {} : props.rows);
1358
- const button_elements = (0, $5f7d55c710fd1bc2$export$2f0cbfbb4354bb52)((0, $57o7A$solidjs.createMemo)(()=>rows_or_empty_object().button));
1359
- const have_a_button = (0, $57o7A$solidjs.createMemo)(()=>{
1360
- const button = button_elements();
1361
- return !(!button || Array.isArray(button) && !button.length);
1362
- });
1363
- const [get_styling, set_styling] = (0, $57o7A$solidjs.createSignal)();
1364
- const container_class = (0, $57o7A$depictaiutilishared.make_random_classname)();
1365
- const selector_beginning = `.depict .${container_class}>`; // class so ppl can have id if needed
1366
- const container_element = (()=>{
1367
- const _el$ = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$);
1368
- (0, $57o7A$solidjsweb.spread)(_el$, (0, $57o7A$solidjsweb.mergeProps)(()=>props.element_attributes), false, true);
1369
- (0, $57o7A$solidjsweb.insert)(_el$, ()=>props.children);
1370
- (0, $57o7A$solidjsweb.runHydrationEvents)();
1371
- return _el$;
1372
- })();
1373
- const [get_children_count, set_children_count] = (0, $57o7A$solidjs.createSignal)(0);
1374
- const update_children_count = ()=>set_children_count(container_element.children.length);
1375
- const col_styling = (0, $57o7A$solidjs.createMemo)(()=>(0, $57o7A$depictaiutilishared.n_col_styling_with_dist)(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
1376
- const rows_visible_signal = (0, $57o7A$solidjs.createMemo)(()=>rows_or_empty_object().currently_visible || (0, $57o7A$solidjs.createSignal)(0));
1377
- const get_rows_visible = (0, $57o7A$solidjs.createMemo)(()=>rows_visible_signal()[0]());
1378
- const set_rows_visible = (0, $57o7A$solidjs.createMemo)(()=>rows_visible_signal()[1]);
1379
- const button_class = (0, $57o7A$depictaiutilishared.make_random_classname)();
1380
- const button_container = (0, $57o7A$solidjs.createMemo)(()=>have_a_button() && (()=>{
1381
- const _el$2 = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$);
1382
- (0, $57o7A$solidjsweb.addEventListener)(_el$2, "click", (0, $57o7A$depictaiutilishared.catchify)(()=>set_rows_visible()((prev)=>prev + (rows_or_empty_object().rows_per_click ?? 1))), true);
1383
- (0, $57o7A$solidjsweb.className)(_el$2, "load-more-container " + button_class);
1384
- (0, $57o7A$solidjsweb.insert)(_el$2, ()=>rows_or_empty_object().button);
1385
- (0, $57o7A$solidjsweb.runHydrationEvents)();
1386
- return _el$2;
1387
- })());
1388
- container_element.classList.add(container_class);
1389
- (0, $57o7A$solidjs.createRenderEffect)(()=>{
1390
- // Be careful to only read show_all_rows in here (ofc doesn't apply to nested effects)
1391
- if (show_all_rows()) {
1392
- // no view more functionality requested
1393
- set_styling(()=>col_styling);
1394
- return;
1395
- }
1396
- (0, $57o7A$solidjs.untrack)(()=>set_rows_visible()(rows_or_empty_object().start_rows ?? 1));
1397
- update_children_count();
1398
- const mutation_observer = new MutationObserver((0, $57o7A$depictaiutilishared.catchify)(update_children_count));
1399
- mutation_observer.observe(container_element, {
1400
- childList: true
1401
- });
1402
- (0, $57o7A$solidjs.onCleanup)(()=>mutation_observer.disconnect());
1403
- set_styling(// this is needed because solid will think that the memo-accessor is a setter function otherwise
1404
- ()=>(0, $57o7A$solidjs.createMemo)(()=>{
1405
- const { rows_per_click: rows_per_click , max_rows: max_rows = -1 } = rows_or_empty_object();
1406
- return col_styling() + props.cols_at_size.map((options)=>{
1407
- const [, min, max] = options;
1408
- let should_hide_button;
1409
- let visible_recs;
1410
- if (props.disable_partial_rows) {
1411
- visible_recs = (0, $57o7A$depictaiutilishared.layout_get_visible_recs_without_partial_rows)(get_rows_visible(), get_children_count(), options);
1412
- const visible_recs_next_show_more = (0, $57o7A$depictaiutilishared.layout_get_visible_recs_without_partial_rows)(get_rows_visible() + (rows_per_click || 0), // Should this really be zero when we default rows_per_click to 1?
1413
- get_children_count(), options);
1414
- should_hide_button = visible_recs === visible_recs_next_show_more;
1415
- } else {
1416
- visible_recs = (0, $57o7A$depictaiutilishared.layout_get_total_rec_amount_for_row)(get_rows_visible(), options);
1417
- should_hide_button = visible_recs >= get_children_count();
1418
- }
1419
- const should_hide_button_final = button_class && (should_hide_button || max_rows !== -1 && get_rows_visible() >= max_rows);
1420
- return `${(0, $57o7A$depictaiutilishared.layout_media_query_header)(min, max)}{${selector_beginning}:nth-child(n+${visible_recs + 1}){display:none}${props.layout == "slider" ? `${selector_beginning}:nth-child(n+${visible_recs}){margin-right:0}` : ""}${should_hide_button_final ? `.depict .${button_class}{display:none!important}` : ``}}`;
1421
- }).join("");
1422
- }));
1423
- });
1424
- return [
1425
- container_element,
1426
- (0, $57o7A$solidjsweb.memo)(button_container),
1427
- (()=>{
1428
- const _el$3 = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$2);
1429
- (0, $57o7A$solidjsweb.insert)(_el$3, get_styling);
1430
- return _el$3;
1431
- })()
1432
- ];
1433
- }
1434
- (0, $57o7A$solidjsweb.delegateEvents)([
1435
- "click"
1436
- ]);
1437
-
1438
-
1439
1450
  const $fe76fb463cc60b89$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="PLP-results"><!#><!/><!#><!/></div>`, 6);
1440
1451
  function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_ , depict_api_: depict_api_ , all_products_loaded_: all_products_loaded_ , min_products_to_fetch_: min_products_to_fetch_ , query_base_: query_base_ , first_result_in_viewport_: first_result_in_viewport_ , last_result_in_viewport_: last_result_in_viewport_ , scroll_restoration_data_: [get_scroll_restoration_data] , no_results_options_: no_results_options_ , desktop_filter_elements_: desktop_filter_elements_ , sort_or_filter_open_: sort_or_filter_open_ , product_card_template_: product_card_template_ , layout_options_: layout_options_ , id_currently_querying_for_: id_currently_querying_for_ }) {
1441
1452
  // The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement