@depict-ai/ui 4.0.3 → 4.0.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.
- package/ES10/index.cjs +677 -600
- package/ES10/index.d.ts +8 -2
- package/ES10/index.js +677 -600
- package/latest/index.cjs +674 -599
- package/latest/index.d.ts +8 -2
- package/latest/index.js +674 -599
- package/package.json +6 -6
- package/server/ES10/index.cjs +206 -137
- package/server/ES10/index.d.ts +8 -2
- package/server/ES10/index.js +206 -137
- package/server/latest/index.cjs +206 -139
- package/server/latest/index.d.ts +8 -2
- package/server/latest/index.js +206 -139
package/latest/index.cjs
CHANGED
|
@@ -86,7 +86,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
|
|
|
86
86
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
87
87
|
$parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
|
|
88
88
|
/*! Depict.ai search and product listing SDK */
|
|
89
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.
|
|
89
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.4";
|
|
90
90
|
function $53df95e470b2f8d2$export$e417c49320921907(dependency, fetcher) {
|
|
91
91
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $gVhhF$solidjs.createSignal();
|
|
92
92
|
const deparallelizedFetcher = $gVhhF$depictaiutilishared.deparallelize_no_drop(async dependencyValue => {
|
|
@@ -168,7 +168,7 @@ function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
|
168
168
|
}) => signal[1](matches)).remove);
|
|
169
169
|
return signal[0];
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
var $6ae613870d3380fc$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class="title line-clamp">`),
|
|
172
172
|
$6ae613870d3380fc$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=brand>`),
|
|
173
173
|
$6ae613870d3380fc$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="tagline line-clamp">`),
|
|
174
174
|
$6ae613870d3380fc$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class="orig price"><!$><!/><!$><!/><!$><!/>`),
|
|
@@ -193,23 +193,23 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
|
|
|
193
193
|
const secondary_image_url = variant.image_urls?.[1] || variant.secondary_image_url || variant.alternative_display_image_url;
|
|
194
194
|
const brandInTagline = selected_index_ && variant.brand;
|
|
195
195
|
const TitleBrandTagline = () => [!selected_index_ && (() => {
|
|
196
|
-
|
|
196
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($6ae613870d3380fc$var$_tmpl$2);
|
|
197
197
|
$gVhhF$solidjsweb.insert(_el$2, () => variant.brand);
|
|
198
198
|
return _el$2;
|
|
199
199
|
})(), (() => {
|
|
200
|
-
|
|
200
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($6ae613870d3380fc$var$_tmpl$);
|
|
201
201
|
$gVhhF$solidjsweb.insert(_el$, () => variant.title);
|
|
202
202
|
return _el$;
|
|
203
203
|
})(), $gVhhF$solidjsweb.memo((() => {
|
|
204
|
-
|
|
204
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => !!(variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline));
|
|
205
205
|
return () => _c$() && (() => {
|
|
206
|
-
|
|
206
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($6ae613870d3380fc$var$_tmpl$3);
|
|
207
207
|
$gVhhF$solidjsweb.insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
208
208
|
return _el$3;
|
|
209
209
|
})();
|
|
210
210
|
})())];
|
|
211
211
|
return (() => {
|
|
212
|
-
|
|
212
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($6ae613870d3380fc$var$_tmpl$5),
|
|
213
213
|
_el$5 = _el$4.firstChild,
|
|
214
214
|
_el$6 = _el$5.firstChild,
|
|
215
215
|
[_el$7, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
@@ -252,14 +252,14 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
|
|
|
252
252
|
}
|
|
253
253
|
}), _el$9, _co$2);
|
|
254
254
|
$gVhhF$solidjsweb.insert(_el$10, selected_index_ ? $gVhhF$solidjsweb.createComponent(TitleBrandTagline, {}) : (() => {
|
|
255
|
-
|
|
255
|
+
var _el$30 = $gVhhF$solidjsweb.getNextElement($6ae613870d3380fc$var$_tmpl$6);
|
|
256
256
|
$gVhhF$solidjsweb.insert(_el$30, $gVhhF$solidjsweb.createComponent(TitleBrandTagline, {}));
|
|
257
257
|
return _el$30;
|
|
258
258
|
})(), _el$29, _co$10);
|
|
259
259
|
$gVhhF$solidjsweb.insert(_el$11, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
260
260
|
when: is_sale,
|
|
261
261
|
get children() {
|
|
262
|
-
|
|
262
|
+
var _el$12 = $gVhhF$solidjsweb.getNextElement($6ae613870d3380fc$var$_tmpl$4),
|
|
263
263
|
_el$13 = _el$12.firstChild,
|
|
264
264
|
[_el$14, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$13.nextSibling),
|
|
265
265
|
_el$15 = _el$14.nextSibling,
|
|
@@ -291,37 +291,37 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
|
|
|
291
291
|
}), _el$23, _co$7);
|
|
292
292
|
$gVhhF$solidjsweb.insert(_el$19, () => i18n_.price_formatting_().post_, _el$25, _co$8);
|
|
293
293
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
294
|
-
|
|
294
|
+
var _v$ = href(),
|
|
295
295
|
_v$2 = display_.search_result_id,
|
|
296
296
|
_v$3 = !!isSelected?.();
|
|
297
|
-
_v$ !== _p$.
|
|
298
|
-
_v$2 !== _p$.
|
|
299
|
-
_v$3 !== _p$.
|
|
297
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$4, "href", _p$.e = _v$);
|
|
298
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$4, "data-search-result-id", _p$.t = _v$2);
|
|
299
|
+
_v$3 !== _p$.a && _el$4.classList.toggle("selected", _p$.a = _v$3);
|
|
300
300
|
return _p$;
|
|
301
301
|
}, {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
e: undefined,
|
|
303
|
+
t: undefined,
|
|
304
|
+
a: undefined
|
|
305
305
|
});
|
|
306
306
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
307
307
|
return _el$4;
|
|
308
308
|
})();
|
|
309
309
|
};
|
|
310
310
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
311
|
-
|
|
311
|
+
var $9fe9883b1d8ecccc$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span>`);
|
|
312
312
|
function $9fe9883b1d8ecccc$export$acb3eaade4b23afd(props) {
|
|
313
313
|
// Work around https://github.com/solidjs/solid/issues/1980
|
|
314
314
|
return (() => {
|
|
315
|
-
|
|
315
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($9fe9883b1d8ecccc$var$_tmpl$);
|
|
316
316
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
317
|
-
|
|
317
|
+
var _v$ = `${props.class || ""} depict-placeholder`,
|
|
318
318
|
_v$2 = props.style;
|
|
319
|
-
_v$ !== _p$.
|
|
320
|
-
_p$.
|
|
319
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.className(_el$, _p$.e = _v$);
|
|
320
|
+
_p$.t = $gVhhF$solidjsweb.style(_el$, _v$2, _p$.t);
|
|
321
321
|
return _p$;
|
|
322
322
|
}, {
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
e: undefined,
|
|
324
|
+
t: undefined
|
|
325
325
|
});
|
|
326
326
|
return _el$;
|
|
327
327
|
})();
|
|
@@ -381,11 +381,11 @@ function $061ff5b4c3d36171$export$89c6019e4baa40b1(props) {
|
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
|
|
384
|
+
var $6f604560873e4f69$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-card><div class=img-part></div><div class=right-part><div class=title-brand-tagline><span class=title></span></div><div class=price-container>`);
|
|
385
385
|
const $6f604560873e4f69$export$8a2234b5b1a5ebd4 = "--image-aspect-ratio";
|
|
386
386
|
function $6f604560873e4f69$export$ee1733d9a8495996() {
|
|
387
387
|
return (() => {
|
|
388
|
-
|
|
388
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($6f604560873e4f69$var$_tmpl$),
|
|
389
389
|
_el$2 = _el$.firstChild,
|
|
390
390
|
_el$3 = _el$2.nextSibling,
|
|
391
391
|
_el$4 = _el$3.firstChild,
|
|
@@ -540,7 +540,7 @@ function $a73063cc642f3e5f$var$deep_equal(obj1, obj2) {
|
|
|
540
540
|
}
|
|
541
541
|
return true;
|
|
542
542
|
}
|
|
543
|
-
|
|
543
|
+
var $6ae556e536054e87$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-results>`);
|
|
544
544
|
function $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
545
545
|
depict_api_: depict_api_,
|
|
546
546
|
search_field_value_: [get_search_field_value],
|
|
@@ -603,7 +603,7 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
|
603
603
|
return sliced_displays()?.length !== 0;
|
|
604
604
|
},
|
|
605
605
|
get children() {
|
|
606
|
-
|
|
606
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($6ae556e536054e87$var$_tmpl$);
|
|
607
607
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
608
608
|
get when() {
|
|
609
609
|
return sliced_displays()?.length;
|
|
@@ -710,7 +710,7 @@ function $036d367ce3058351$export$3340fdd8259bd4fd({
|
|
|
710
710
|
debounce_timeout = setTimeout(send_to_ga, 2000);
|
|
711
711
|
}));
|
|
712
712
|
}
|
|
713
|
-
|
|
713
|
+
var $7b98f0cf558884f7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;>`),
|
|
714
714
|
$7b98f0cf558884f7$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;>`);
|
|
715
715
|
function $7b98f0cf558884f7$export$50b90be27d8502d9(el, [get_style_props, set_style_props], bottom_distance) {
|
|
716
716
|
const overflow_style_beginning = "position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;";
|
|
@@ -759,20 +759,20 @@ function $496cde876b53ce1e$export$91c3b6774e8be0f5({
|
|
|
759
759
|
return u_o.href;
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
|
-
|
|
762
|
+
var $9e30168c4b1661d2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=12 height=13><path d="M6 12.598a5.88 5.88 0 0 1-1.611-.223c-.52-.145-1.008-.352-1.465-.621s-.875-.605-1.254-.996-.693-.83-.955-1.318c-.039-.07-.047-.145-.023-.223s.072-.143.146-.182.145-.047.223-.023.143.072.182.146a5.54 5.54 0 0 0 .861 1.184c.34.352.715.65 1.125.897s.85.435 1.318.568A5.5 5.5 0 0 0 6 12a5.24 5.24 0 0 0 2.098-.422c.656-.285 1.229-.672 1.717-1.16s.879-1.061 1.16-1.717a5.22 5.22 0 0 0 .428-2.104c0-.742-.143-1.441-.428-2.098s-.668-1.229-1.16-1.717a5.42 5.42 0 0 0-1.717-1.154A5.18 5.18 0 0 0 6 1.201c-.496 0-.979.066-1.447.199s-.904.316-1.318.563-.785.539-1.125.891a5.31 5.31 0 0 0-.855 1.172.32.32 0 0 1-.164.141c-.066.023-.135.023-.205 0a.3.3 0 0 1-.158-.135C.691 3.965.682 3.895.697 3.82l.51-2.385c.016-.078.059-.141.129-.187a.28.28 0 0 1 .229-.041c.078.016.141.059.188.129a.28.28 0 0 1 .041.229l-.211.973a5.91 5.91 0 0 1 .926-.814 5.78 5.78 0 0 1 1.066-.609A5.79 5.79 0 0 1 4.746.732C5.156.643 5.574.598 6 .598c.402 0 .795.039 1.178.117s.76.191 1.119.34a5.95 5.95 0 0 1 1.031.551c.328.219.633.469.914.75s.535.592.75.92a5.77 5.77 0 0 1 .551 1.025 5.53 5.53 0 0 1 .34 1.119c.078.387.117.779.117 1.178s-.039.797-.117 1.184-.187.754-.34 1.113a5.96 5.96 0 0 1-.551 1.031 5.56 5.56 0 0 1-.75.914c-.281.285-.586.537-.914.756a5.95 5.95 0 0 1-1.031.551c-.359.148-.732.26-1.119.334s-.775.117-1.178.117zm0-5.695c-.023 0-.049-.004-.076-.012s-.047-.018-.07-.029l-2.701-1.5c-.07-.039-.117-.098-.141-.176a.29.29 0 0 1 .023-.229c.043-.074.104-.123.182-.146s.158-.014.229.029l2.543 1.412 3.152-2.004c.07-.047.145-.061.223-.041a.29.29 0 0 1 .188.135c.047.066.061.141.041.223a.27.27 0 0 1-.129.188L6.158 6.855a.27.27 0 0 1-.076.035c-.027.008-.055.012-.082.012z"fill=#0f0f0f>`);
|
|
763
763
|
function $9e30168c4b1661d2$export$5d2caaa6b530761c() {
|
|
764
764
|
return $gVhhF$solidjsweb.getNextElement($9e30168c4b1661d2$var$_tmpl$);
|
|
765
765
|
}
|
|
766
|
-
|
|
766
|
+
var $c77c68e559a1506c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=21.064 height=21.064 viewBox="0 0 21.064 21.064"><path d="M11.669 10.531l9.156-9.156a.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569A.8.8 0 0 0 20.24 0a.77.77 0 0 0-.569.237l-9.14 9.14-9.14-9.14A.79.79 0 0 0 .807 0a.77.77 0 0 0-.569.237A.78.78 0 0 0 0 .807a.77.77 0 0 0 .237.569l9.156 9.156-9.156 9.14c-.159.157-.237.349-.237.569s.079.412.237.569c.085.085.174.148.268.19a1.095 1.095 0 0 0 .316.048.894.894 0 0 0 .285-.048.84.84 0 0 0 .285-.19l9.139-9.14 9.14 9.14a.894.894 0 0 0 .268.19 1.049 1.049 0 0 0 .301.048.941.941 0 0 0 .301-.048.84.84 0 0 0 .285-.19.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569z">`);
|
|
767
767
|
function $c77c68e559a1506c$export$3b621d86b1566b2(props = {}) {
|
|
768
768
|
return (() => {
|
|
769
|
-
|
|
769
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($c77c68e559a1506c$var$_tmpl$);
|
|
770
770
|
$gVhhF$solidjsweb.spread(_el$, props, true, true);
|
|
771
771
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
772
772
|
return _el$;
|
|
773
773
|
})();
|
|
774
774
|
}
|
|
775
|
-
|
|
775
|
+
var $ce4b5b99c8b2b34e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=previous-searches><h2 class=text></h2><div class=list>`),
|
|
776
776
|
$ce4b5b99c8b2b34e$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=item><div class=left><!$><!/><span class=line-clamp></span></div><button class=delete>`);
|
|
777
777
|
function $ce4b5b99c8b2b34e$export$a146ac6fa8346a25({
|
|
778
778
|
text_: text_,
|
|
@@ -794,7 +794,7 @@ function $ce4b5b99c8b2b34e$export$a146ac6fa8346a25({
|
|
|
794
794
|
return has_entries();
|
|
795
795
|
},
|
|
796
796
|
get children() {
|
|
797
|
-
|
|
797
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($ce4b5b99c8b2b34e$var$_tmpl$),
|
|
798
798
|
_el$2 = _el$.firstChild,
|
|
799
799
|
_el$3 = _el$2.nextSibling;
|
|
800
800
|
$gVhhF$solidjsweb.insert(_el$2, text_);
|
|
@@ -809,7 +809,7 @@ function $ce4b5b99c8b2b34e$export$a146ac6fa8346a25({
|
|
|
809
809
|
url_transformer_: url_transformer_
|
|
810
810
|
});
|
|
811
811
|
return (() => {
|
|
812
|
-
|
|
812
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($ce4b5b99c8b2b34e$var$_tmpl$2),
|
|
813
813
|
_el$5 = _el$4.firstChild,
|
|
814
814
|
_el$7 = _el$5.firstChild,
|
|
815
815
|
[_el$8, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling),
|
|
@@ -844,20 +844,20 @@ function $ce4b5b99c8b2b34e$export$a146ac6fa8346a25({
|
|
|
844
844
|
})), _el$9);
|
|
845
845
|
$gVhhF$solidjsweb.insert(_el$9, $gVhhF$solidjsweb.createComponent((0, $c77c68e559a1506c$export$3b621d86b1566b2), {}));
|
|
846
846
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
847
|
-
|
|
847
|
+
var _v$ = !!$gVhhF$solidjs.createMemo(() => read_selected_index_()?.[0] === 0 && read_selected_index_()?.[1] === index)(),
|
|
848
848
|
_v$2 = href(),
|
|
849
849
|
_v$3 = item(),
|
|
850
850
|
_v$4 = i18n_.previous_searches_delete_entry_from_history_();
|
|
851
|
-
_v$ !== _p$.
|
|
852
|
-
_v$2 !== _p$.
|
|
853
|
-
_v$3 !== _p$.
|
|
854
|
-
_v$4 !== _p$.
|
|
851
|
+
_v$ !== _p$.e && _el$4.classList.toggle("selected", _p$.e = _v$);
|
|
852
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$4, "href", _p$.t = _v$2);
|
|
853
|
+
_v$3 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$6, "title", _p$.a = _v$3);
|
|
854
|
+
_v$4 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$9, "title", _p$.o = _v$4);
|
|
855
855
|
return _p$;
|
|
856
856
|
}, {
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
857
|
+
e: undefined,
|
|
858
|
+
t: undefined,
|
|
859
|
+
a: undefined,
|
|
860
|
+
o: undefined
|
|
861
861
|
});
|
|
862
862
|
return _el$4;
|
|
863
863
|
})();
|
|
@@ -867,7 +867,7 @@ function $ce4b5b99c8b2b34e$export$a146ac6fa8346a25({
|
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
|
|
870
|
+
var $d023ed916c84e75d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=highlighted-part>`),
|
|
871
871
|
$d023ed916c84e75d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span>`);
|
|
872
872
|
function $d023ed916c84e75d$export$ba17c5b7e6dda39f({
|
|
873
873
|
whole_text_to_display_: whole_text_to_display_memo,
|
|
@@ -889,7 +889,7 @@ function $d023ed916c84e75d$export$ba17c5b7e6dda39f({
|
|
|
889
889
|
if (for_black) {
|
|
890
890
|
set_has_highlighted(true);
|
|
891
891
|
output.push((() => {
|
|
892
|
-
|
|
892
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($d023ed916c84e75d$var$_tmpl$);
|
|
893
893
|
$gVhhF$solidjsweb.insert(_el$, for_black);
|
|
894
894
|
return _el$;
|
|
895
895
|
})()); // "black"
|
|
@@ -923,41 +923,41 @@ function $d023ed916c84e75d$export$ba17c5b7e6dda39f({
|
|
|
923
923
|
return output;
|
|
924
924
|
}));
|
|
925
925
|
return (() => {
|
|
926
|
-
|
|
926
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($d023ed916c84e75d$var$_tmpl$2);
|
|
927
927
|
$gVhhF$solidjsweb.className(_el$2, class_);
|
|
928
928
|
$gVhhF$solidjsweb.insert(_el$2, text_itself);
|
|
929
929
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
930
|
-
|
|
930
|
+
var _v$ = !!get_has_highlighted(),
|
|
931
931
|
_v$2 = whole_text_to_display_memo() /* for when line-clamped, users can see full text on hover */;
|
|
932
|
-
_v$ !== _p$.
|
|
933
|
-
_v$2 !== _p$.
|
|
932
|
+
_v$ !== _p$.e && _el$2.classList.toggle("has-match", _p$.e = _v$);
|
|
933
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$2, "title", _p$.t = _v$2);
|
|
934
934
|
return _p$;
|
|
935
935
|
}, {
|
|
936
|
-
|
|
937
|
-
|
|
936
|
+
e: undefined,
|
|
937
|
+
t: undefined
|
|
938
938
|
});
|
|
939
939
|
return _el$2;
|
|
940
940
|
})();
|
|
941
941
|
}
|
|
942
|
-
|
|
942
|
+
var $87d7574e1d89d69b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=20 height=22 viewBox="0 0 20 22"><path d="M19.811 20.174l-6.234-6.809a7.96 7.96 0 0 0 .923-1.179c.274-.424.502-.865.687-1.323a8.04 8.04 0 0 0 .42-1.436 7.88 7.88 0 0 0 .144-1.507c0-.526-.051-1.042-.154-1.548-.096-.506-.243-.995-.441-1.466s-.441-.919-.728-1.343a8.28 8.28 0 0 0-.984-1.21 7.86 7.86 0 0 0-1.2-.984A7.56 7.56 0 0 0 10.89.651C10.418.453 9.929.302 9.423.2S8.401.046 7.875.046 6.833.097 6.327.2 5.332.453 4.86.651a7.56 7.56 0 0 0-1.354.718c-.431.287-.831.615-1.2.984a8.28 8.28 0 0 0-.984 1.21 7.73 7.73 0 0 0-.728 1.343c-.198.472-.349.96-.451 1.466A8.31 8.31 0 0 0 0 7.921a8.31 8.31 0 0 0 .144 1.548c.103.506.253.995.451 1.466a8.08 8.08 0 0 0 .728 1.354 7.86 7.86 0 0 0 .984 1.2 7.54 7.54 0 0 0 1.2.995c.431.287.882.53 1.354.728.472.191.96.338 1.466.441a8.31 8.31 0 0 0 1.548.144c.451 0 .896-.038 1.333-.113a7.83 7.83 0 0 0 1.282-.328 7.55 7.55 0 0 0 1.2-.533 8.08 8.08 0 0 0 1.107-.749l6.245 6.809a.45.45 0 0 0 .174.123.55.55 0 0 0 .205.041.61.61 0 0 0 .195-.031c.061-.021.116-.055.164-.102.109-.096.164-.219.164-.369.007-.144-.038-.267-.133-.369zM1.046 7.921c0-.937.178-1.818.533-2.646.362-.834.851-1.559 1.466-2.174.622-.615 1.347-1.101 2.174-1.456.827-.362 1.712-.543 2.656-.543s1.829.181 2.656.543c.827.355 1.548.841 2.164 1.456.622.615 1.111 1.34 1.466 2.174a6.52 6.52 0 0 1 .543 2.646c0 .943-.181 1.829-.543 2.656a6.89 6.89 0 0 1-1.466 2.174c-.615.615-1.336 1.104-2.164 1.466-.827.356-1.712.533-2.656.533s-1.829-.178-2.656-.533c-.827-.362-1.552-.851-2.174-1.466-.615-.622-1.104-1.347-1.466-2.174-.355-.827-.533-1.712-.533-2.656z">`);
|
|
943
943
|
function $87d7574e1d89d69b$export$82eafebb825fc23f(props = {}) {
|
|
944
944
|
return (() => {
|
|
945
|
-
|
|
945
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($87d7574e1d89d69b$var$_tmpl$);
|
|
946
946
|
$gVhhF$solidjsweb.spread(_el$, props, true, true);
|
|
947
947
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
948
948
|
return _el$;
|
|
949
949
|
})();
|
|
950
950
|
}
|
|
951
|
-
|
|
951
|
+
var $c0125412b4ea0c93$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=32 height=32 viewBox="0 0 256 256"><path d="M56 26.455a13.71 13.71 0 0 0-9.578 3.967A13.71 13.71 0 0 0 42.455 40v176a13.71 13.71 0 0 0 3.967 9.578A13.71 13.71 0 0 0 56 229.545h144A13.71 13.71 0 0 0 213.545 216V88a2.456 2.456 0 0 1 0-.002c.001-1.452-.597-2.895-1.623-3.922l-55.998-55.998a5.61 5.61 0 0 0-3.922-1.623 2.456 2.456 0 0 1-.002 0zm0 11.09h88A2.456 2.456 0 0 1 146.455 40v48c0 2.903 2.642 5.545 5.545 5.545h48A2.456 2.456 0 0 1 202.455 96v120a2.456 2.456 0 0 1-2.455 2.455H56A2.456 2.456 0 0 1 53.545 216V40A2.456 2.456 0 0 1 56 37.545zm103.061 11.498a2.456 2.456 0 0 1 2.676.531l28.689 28.689a2.456 2.456 0 0 1-1.736 4.191H160A2.456 2.456 0 0 1 157.545 80V51.311a2.456 2.456 0 0 1 1.516-2.268zM96 130.455c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545zm0 32c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545z">`);
|
|
952
952
|
function $c0125412b4ea0c93$export$605674723bcc715c(props = {}) {
|
|
953
953
|
return (() => {
|
|
954
|
-
|
|
954
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($c0125412b4ea0c93$var$_tmpl$);
|
|
955
955
|
$gVhhF$solidjsweb.spread(_el$, props, true, true);
|
|
956
956
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
957
957
|
return _el$;
|
|
958
958
|
})();
|
|
959
959
|
}
|
|
960
|
-
|
|
960
|
+
var $1dbed937c406bdf0$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=suggestion>`),
|
|
961
961
|
$1dbed937c406bdf0$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-icon>`),
|
|
962
962
|
$1dbed937c406bdf0$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=type>`),
|
|
963
963
|
$1dbed937c406bdf0$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=with-parent-title><!$><!/><span class="value line-clamp">`),
|
|
@@ -1008,7 +1008,7 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1008
1008
|
return item.ancestors.at(-1)?.title;
|
|
1009
1009
|
});
|
|
1010
1010
|
return (() => {
|
|
1011
|
-
|
|
1011
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$);
|
|
1012
1012
|
$gVhhF$solidjsweb.use(element => element.addEventListener("click", $gVhhF$depictaiutilishared.catchify(ev => {
|
|
1013
1013
|
// Viskan's Oscar Jacobson site requires us to add the event listener normally here. They do too much when this element is clicked. We work around it by blocking the event and just dispatching it non-bubbling on this element.
|
|
1014
1014
|
if (is_query()) {
|
|
@@ -1029,12 +1029,12 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1029
1029
|
$gVhhF$solidjsweb.addEventListener(_el$, "mouseleave", $gVhhF$depictaiutilishared.catchify(() => write_selected_index_(undefined)));
|
|
1030
1030
|
$gVhhF$solidjsweb.addEventListener(_el$, "mouseenter", $gVhhF$depictaiutilishared.catchify(() => write_selected_index_([autocomplete_data_index, index])));
|
|
1031
1031
|
$gVhhF$solidjsweb.insert(_el$, (() => {
|
|
1032
|
-
|
|
1032
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => !!is_query());
|
|
1033
1033
|
return () => _c$() ? [$gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1034
1034
|
when: is_history,
|
|
1035
1035
|
get fallback() {
|
|
1036
1036
|
return (() => {
|
|
1037
|
-
|
|
1037
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$2);
|
|
1038
1038
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $87d7574e1d89d69b$export$82eafebb825fc23f), {}));
|
|
1039
1039
|
return _el$2;
|
|
1040
1040
|
})();
|
|
@@ -1049,9 +1049,9 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1049
1049
|
},
|
|
1050
1050
|
searching_for_value_: searching_for_value_
|
|
1051
1051
|
})] : [$gVhhF$solidjsweb.memo((() => {
|
|
1052
|
-
|
|
1052
|
+
var _c$2 = $gVhhF$solidjsweb.memo(() => !!parent_title_if_exists());
|
|
1053
1053
|
return () => _c$2() ? (() => {
|
|
1054
|
-
|
|
1054
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$4),
|
|
1055
1055
|
_el$6 = _el$4.firstChild,
|
|
1056
1056
|
[_el$7, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
1057
1057
|
_el$5 = _el$7.nextSibling;
|
|
@@ -1065,9 +1065,9 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1065
1065
|
$gVhhF$solidjsweb.insert(_el$5, parent_title_if_exists);
|
|
1066
1066
|
return _el$4;
|
|
1067
1067
|
})() : (() => {
|
|
1068
|
-
|
|
1068
|
+
var _c$3 = $gVhhF$solidjsweb.memo(() => input_obj().type === "content");
|
|
1069
1069
|
return () => _c$3() ? (() => {
|
|
1070
|
-
|
|
1070
|
+
var _el$8 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$5),
|
|
1071
1071
|
_el$9 = _el$8.firstChild,
|
|
1072
1072
|
[_el$10, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$9.nextSibling),
|
|
1073
1073
|
_el$11 = _el$10.nextSibling,
|
|
@@ -1093,7 +1093,7 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1093
1093
|
});
|
|
1094
1094
|
})();
|
|
1095
1095
|
})()), (() => {
|
|
1096
|
-
|
|
1096
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$3);
|
|
1097
1097
|
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjs.createMemo(() => {
|
|
1098
1098
|
if (input_obj().type === "content") return i18n_.content_();
|
|
1099
1099
|
if (input_obj().listing_type === "brand") return i18n_.brand_();
|
|
@@ -1103,18 +1103,18 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1103
1103
|
})()];
|
|
1104
1104
|
})());
|
|
1105
1105
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
1106
|
-
|
|
1106
|
+
var _v$ = {
|
|
1107
1107
|
selected: is_selected(),
|
|
1108
1108
|
history: is_history,
|
|
1109
1109
|
["type-" + input_obj().type]: true
|
|
1110
1110
|
},
|
|
1111
1111
|
_v$2 = href();
|
|
1112
|
-
_p$.
|
|
1113
|
-
_v$2 !== _p$.
|
|
1112
|
+
_p$.e = $gVhhF$solidjsweb.classList(_el$, _v$, _p$.e);
|
|
1113
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$, "href", _p$.t = _v$2);
|
|
1114
1114
|
return _p$;
|
|
1115
1115
|
}, {
|
|
1116
|
-
|
|
1117
|
-
|
|
1116
|
+
e: undefined,
|
|
1117
|
+
t: undefined
|
|
1118
1118
|
});
|
|
1119
1119
|
return _el$;
|
|
1120
1120
|
})();
|
|
@@ -1127,7 +1127,7 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1127
1127
|
return should_show_at_all();
|
|
1128
1128
|
},
|
|
1129
1129
|
get children() {
|
|
1130
|
-
|
|
1130
|
+
var _el$13 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$9),
|
|
1131
1131
|
_el$21 = _el$13.firstChild,
|
|
1132
1132
|
[_el$22, _co$6] = $gVhhF$solidjsweb.getNextMarker(_el$21.nextSibling),
|
|
1133
1133
|
_el$23 = _el$22.nextSibling,
|
|
@@ -1139,7 +1139,7 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1139
1139
|
return on_previous_searches_page_();
|
|
1140
1140
|
},
|
|
1141
1141
|
get children() {
|
|
1142
|
-
|
|
1142
|
+
var _el$14 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$6);
|
|
1143
1143
|
$gVhhF$solidjsweb.insert(_el$14, () => i18n_.suggestions_());
|
|
1144
1144
|
return _el$14;
|
|
1145
1145
|
}
|
|
@@ -1149,7 +1149,7 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1149
1149
|
return should_show_query_part();
|
|
1150
1150
|
},
|
|
1151
1151
|
get children() {
|
|
1152
|
-
|
|
1152
|
+
var _el$15 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$7),
|
|
1153
1153
|
_el$16 = _el$15.firstChild,
|
|
1154
1154
|
[_el$17, _co$4] = $gVhhF$solidjsweb.getNextMarker(_el$16.nextSibling),
|
|
1155
1155
|
_el$18 = _el$17.nextSibling,
|
|
@@ -1201,7 +1201,7 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1201
1201
|
},
|
|
1202
1202
|
keyed: false,
|
|
1203
1203
|
get children() {
|
|
1204
|
-
|
|
1204
|
+
var _el$20 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$8);
|
|
1205
1205
|
$gVhhF$solidjsweb.insert(_el$20, () => {
|
|
1206
1206
|
const index_in_autocomplete = 3;
|
|
1207
1207
|
$f144ea315d9e4caa$export$c2da72ac4e439a0e(set_currently_showing_suggestions_, () => index_in_autocomplete, $gVhhF$solidjs.createMemo(() => not_queries_memo().map(item => ({
|
|
@@ -1223,12 +1223,12 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
1225
1225
|
}
|
|
1226
|
-
|
|
1226
|
+
var $b8700779b3e745de$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a target=_blank>`);
|
|
1227
1227
|
function $b8700779b3e745de$export$1efe1013da60d0e4(e, href) {
|
|
1228
1228
|
if (e.metaKey || e.ctrlKey) {
|
|
1229
1229
|
// Open link in a new tab with cmd/ctrl + enter.
|
|
1230
1230
|
const link = (() => {
|
|
1231
|
-
|
|
1231
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($b8700779b3e745de$var$_tmpl$);
|
|
1232
1232
|
$gVhhF$solidjsweb.setAttribute(_el$, "href", href);
|
|
1233
1233
|
return _el$;
|
|
1234
1234
|
})();
|
|
@@ -1556,13 +1556,13 @@ const $2be658935c4043a9$export$af8311b651139246 = css_properties => {
|
|
|
1556
1556
|
const $2be658935c4043a9$export$1233ca167bf71f9a = styles => {
|
|
1557
1557
|
return Object.entries(styles).map(([selector, css_properties]) => `${selector} { ${$2be658935c4043a9$export$af8311b651139246(css_properties)} }`).join(" ");
|
|
1558
1558
|
};
|
|
1559
|
-
|
|
1559
|
+
var $b776f25acdda22eb$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<style>`);
|
|
1560
1560
|
function $b776f25acdda22eb$export$f021bdedd3ec901a(props) {
|
|
1561
1561
|
const valid_css_string = $gVhhF$solidjs.createMemo(() => {
|
|
1562
1562
|
return $2be658935c4043a9$export$1233ca167bf71f9a(props.styles());
|
|
1563
1563
|
});
|
|
1564
1564
|
return (() => {
|
|
1565
|
-
|
|
1565
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($b776f25acdda22eb$var$_tmpl$);
|
|
1566
1566
|
$gVhhF$solidjsweb.insert(_el$, valid_css_string);
|
|
1567
1567
|
return _el$;
|
|
1568
1568
|
})();
|
|
@@ -1579,7 +1579,7 @@ let $0b6e2070a98de347$export$44dad306455dddf;
|
|
|
1579
1579
|
*/
|
|
1580
1580
|
const $ad1fa088e5509cca$export$1ea76ea778b880dd = Symbol("modalVersion");
|
|
1581
1581
|
const $ad1fa088e5509cca$export$89890212b43f1b60 = Symbol("backIcon");
|
|
1582
|
-
|
|
1582
|
+
var $66b8b9a9613c141d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=back type=button>`),
|
|
1583
1583
|
$66b8b9a9613c141d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-field><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
|
|
1584
1584
|
function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
1585
1585
|
search_field_value_: search_field_value_,
|
|
@@ -1608,7 +1608,7 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
1608
1608
|
const owner_of_field_element = $gVhhF$solidjs.getOwner();
|
|
1609
1609
|
const isNewModal = BackIcon_[(0, $ad1fa088e5509cca$export$1ea76ea778b880dd)] === 2;
|
|
1610
1610
|
return (() => {
|
|
1611
|
-
|
|
1611
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($66b8b9a9613c141d$var$_tmpl$2),
|
|
1612
1612
|
_el$7 = _el$.firstChild,
|
|
1613
1613
|
[_el$8, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling),
|
|
1614
1614
|
_el$3 = _el$8.nextSibling,
|
|
@@ -1618,7 +1618,7 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
1618
1618
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1619
1619
|
when: on_back_,
|
|
1620
1620
|
get children() {
|
|
1621
|
-
|
|
1621
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($66b8b9a9613c141d$var$_tmpl$);
|
|
1622
1622
|
$gVhhF$solidjsweb.addEventListener(_el$2, "click", $gVhhF$depictaiutilishared.catchify(on_back_), true);
|
|
1623
1623
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent(BackIcon_, {}));
|
|
1624
1624
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setAttribute(_el$2, "aria-label", i18n_.back_()));
|
|
@@ -1701,7 +1701,7 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
1701
1701
|
if (!dont_submit) submit_query_();
|
|
1702
1702
|
}
|
|
1703
1703
|
}), true);
|
|
1704
|
-
|
|
1704
|
+
var _ref$ = $gVhhF$depictaiutilishared.catchify(el => {
|
|
1705
1705
|
input_element = el;
|
|
1706
1706
|
input_field_ref_?.(el);
|
|
1707
1707
|
});
|
|
@@ -1713,7 +1713,7 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
1713
1713
|
if (!disabled_) input_element.focus();
|
|
1714
1714
|
}), true);
|
|
1715
1715
|
$gVhhF$solidjsweb.insert(_el$5, $gVhhF$solidjsweb.createComponent((0, $c77c68e559a1506c$export$3b621d86b1566b2), {}));
|
|
1716
|
-
|
|
1716
|
+
var _ref$2 = submit_button_ref_;
|
|
1717
1717
|
typeof _ref$2 === "function" ? $gVhhF$solidjsweb.use(_ref$2, _el$6) : submit_button_ref_ = _el$6;
|
|
1718
1718
|
$gVhhF$solidjsweb.spread(_el$6, $gVhhF$solidjsweb.mergeProps({
|
|
1719
1719
|
get onClick() {
|
|
@@ -1726,20 +1726,20 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
1726
1726
|
}), false, true);
|
|
1727
1727
|
$gVhhF$solidjsweb.insert(_el$6, $gVhhF$solidjsweb.createComponent((0, $87d7574e1d89d69b$export$82eafebb825fc23f), {}));
|
|
1728
1728
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
1729
|
-
|
|
1729
|
+
var _v$ = i18n_.search_field_field_aria_label_(),
|
|
1730
1730
|
_v$2 = i18n_.placeholder_text_(),
|
|
1731
1731
|
_v$3 = i18n_.clear_filters_query_sorting_after_submit_(),
|
|
1732
1732
|
_v$4 = $gVhhF$solidjs.createMemo(() => search_field_value_[0]() ? "" : "display: none")();
|
|
1733
|
-
_v$ !== _p$.
|
|
1734
|
-
_v$2 !== _p$.
|
|
1735
|
-
_v$3 !== _p$.
|
|
1736
|
-
_p$.
|
|
1733
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$4, "aria-label", _p$.e = _v$);
|
|
1734
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$4, "placeholder", _p$.t = _v$2);
|
|
1735
|
+
_v$3 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$5, "title", _p$.a = _v$3);
|
|
1736
|
+
_p$.o = $gVhhF$solidjsweb.style(_el$5, _v$4, _p$.o);
|
|
1737
1737
|
return _p$;
|
|
1738
1738
|
}, {
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1739
|
+
e: undefined,
|
|
1740
|
+
t: undefined,
|
|
1741
|
+
a: undefined,
|
|
1742
|
+
o: undefined
|
|
1743
1743
|
});
|
|
1744
1744
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$4, "value", search_field_value_[0]()));
|
|
1745
1745
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
@@ -1792,7 +1792,7 @@ class $7dd1edb2ee2b43ad$export$aa14a9f43128f61f extends $7dd1edb2ee2b43ad$export
|
|
|
1792
1792
|
});
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
|
-
|
|
1795
|
+
var $edafe91daf3091d7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><!$><!/><!$><!/>`);
|
|
1796
1796
|
function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
|
|
1797
1797
|
return $gVhhF$solidjs.ErrorBoundary({
|
|
1798
1798
|
fallback(err, retry) {
|
|
@@ -1806,7 +1806,7 @@ function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
|
|
|
1806
1806
|
message = `${message}: ${err.message}`;
|
|
1807
1807
|
} else $gVhhF$depictaiutilishared.report([err, message_], severity_);
|
|
1808
1808
|
return (() => {
|
|
1809
|
-
|
|
1809
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($edafe91daf3091d7$var$_tmpl$),
|
|
1810
1810
|
_el$2 = _el$.firstChild,
|
|
1811
1811
|
[_el$3, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$2.nextSibling),
|
|
1812
1812
|
_el$4 = _el$3.nextSibling,
|
|
@@ -1835,7 +1835,7 @@ function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
|
|
|
1835
1835
|
function $84798aaa863a4909$export$8d0c4fdbb05a2f2e() {
|
|
1836
1836
|
return $gVhhF$solidjs.useContext($84798aaa863a4909$var$ListingContext);
|
|
1837
1837
|
}
|
|
1838
|
-
|
|
1838
|
+
var $610b584d4f54699e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=24 height=16><path d="M.773 7.371L7.98.176C8.098.059 8.238 0 8.402 0s.305.059.422.176S9 .434 9 .598s-.059.305-.176.422L2.648 7.195h19.547a.59.59 0 0 1 .609.609c0 .172-.059.305-.176.422s-.262.176-.434.176H2.648l6.176 6.176a.59.59 0 0 1 .176.426c0 .16-.059.301-.176.422-.055.059-.121.109-.199.137s-.148.039-.223.039-.156-.012-.234-.039a.54.54 0 0 1-.187-.137L.773 8.227c-.117-.117-.176-.258-.176-.422a.6.6 0 0 1 .176-.434zm0 0">`);
|
|
1839
1839
|
function $610b584d4f54699e$export$8d8893ffd8aca39a() {
|
|
1840
1840
|
return $gVhhF$solidjsweb.getNextElement($610b584d4f54699e$var$_tmpl$);
|
|
1841
1841
|
}
|
|
@@ -1862,7 +1862,7 @@ function $eb3039a27db40508$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
1862
1862
|
}
|
|
1863
1863
|
})();
|
|
1864
1864
|
}
|
|
1865
|
-
|
|
1865
|
+
var $44f0b2e312a9b710$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
1866
1866
|
$44f0b2e312a9b710$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`),
|
|
1867
1867
|
$44f0b2e312a9b710$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal><div class=body><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
1868
1868
|
$44f0b2e312a9b710$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
@@ -1938,13 +1938,13 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
1938
1938
|
});
|
|
1939
1939
|
const less_than_700_high = $b54e6192d0caa293$export$d9f36cf74e24d595("(max-height:700px)");
|
|
1940
1940
|
const DiscoverMoreSection = () => (() => {
|
|
1941
|
-
|
|
1941
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($44f0b2e312a9b710$var$_tmpl$),
|
|
1942
1942
|
_el$2 = _el$.firstChild;
|
|
1943
1943
|
$gVhhF$solidjsweb.addEventListener(_el$2, "click", $gVhhF$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
1944
1944
|
$gVhhF$solidjsweb.insert(_el$2, (() => {
|
|
1945
|
-
|
|
1945
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => !!get_search_field_value_());
|
|
1946
1946
|
return () => _c$() ? i18n_.modal_view_all_results_()((() => {
|
|
1947
|
-
|
|
1947
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($44f0b2e312a9b710$var$_tmpl$2);
|
|
1948
1948
|
$gVhhF$solidjsweb.insert(_el$3, total_number_of_results);
|
|
1949
1949
|
return _el$3;
|
|
1950
1950
|
})()) : i18n_.modal_discover_more_();
|
|
@@ -1993,7 +1993,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
1993
1993
|
});
|
|
1994
1994
|
search_field.classList.add("in-modal");
|
|
1995
1995
|
const modal_element = (() => {
|
|
1996
|
-
|
|
1996
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($44f0b2e312a9b710$var$_tmpl$3),
|
|
1997
1997
|
_el$5 = _el$4.firstChild,
|
|
1998
1998
|
_el$13 = _el$5.firstChild,
|
|
1999
1999
|
[_el$14, _co$4] = $gVhhF$solidjsweb.getNextMarker(_el$13.nextSibling),
|
|
@@ -2101,21 +2101,21 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
2101
2101
|
return _el$4;
|
|
2102
2102
|
})();
|
|
2103
2103
|
return [(() => {
|
|
2104
|
-
|
|
2104
|
+
var _el$19 = $gVhhF$solidjsweb.getNextElement($44f0b2e312a9b710$var$_tmpl$4),
|
|
2105
2105
|
_el$20 = _el$19.firstChild,
|
|
2106
2106
|
_el$21 = _el$20.nextSibling,
|
|
2107
2107
|
[_el$22, _co$7] = $gVhhF$solidjsweb.getNextMarker(_el$21.nextSibling);
|
|
2108
2108
|
$gVhhF$solidjsweb.addEventListener(_el$20, "click", close_modal_, true);
|
|
2109
2109
|
$gVhhF$solidjsweb.insert(_el$19, modal_element, _el$22, _co$7);
|
|
2110
2110
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
2111
|
-
|
|
2111
|
+
var _v$ = (0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_MODAL,
|
|
2112
2112
|
_v$2 = class_list_?.();
|
|
2113
|
-
_v$ !== _p$.
|
|
2114
|
-
_p$.
|
|
2113
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$19, "id", _p$.e = _v$);
|
|
2114
|
+
_p$.t = $gVhhF$solidjsweb.classList(_el$19, _v$2, _p$.t);
|
|
2115
2115
|
return _p$;
|
|
2116
2116
|
}, {
|
|
2117
|
-
|
|
2118
|
-
|
|
2117
|
+
e: undefined,
|
|
2118
|
+
t: undefined
|
|
2119
2119
|
});
|
|
2120
2120
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
2121
2121
|
return _el$19;
|
|
@@ -2305,7 +2305,7 @@ function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
|
|
|
2305
2305
|
if (was_url_object) return url_object;
|
|
2306
2306
|
return url_object.href;
|
|
2307
2307
|
}
|
|
2308
|
-
|
|
2308
|
+
var $e53b2e7e632ac4cb$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<nav class=crumbs>`),
|
|
2309
2309
|
$e53b2e7e632ac4cb$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=crumb>`),
|
|
2310
2310
|
$e53b2e7e632ac4cb$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=separator>`);
|
|
2311
2311
|
function $e53b2e7e632ac4cb$export$5646050d516e06bc({
|
|
@@ -2321,7 +2321,7 @@ function $e53b2e7e632ac4cb$export$5646050d516e06bc({
|
|
|
2321
2321
|
severity_: "error",
|
|
2322
2322
|
message_: "BreadCrumbs failed",
|
|
2323
2323
|
get children() {
|
|
2324
|
-
|
|
2324
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($e53b2e7e632ac4cb$var$_tmpl$);
|
|
2325
2325
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
2326
2326
|
get each() {
|
|
2327
2327
|
return crumb_data();
|
|
@@ -2345,7 +2345,7 @@ function $e53b2e7e632ac4cb$export$5646050d516e06bc({
|
|
|
2345
2345
|
});
|
|
2346
2346
|
},
|
|
2347
2347
|
get children() {
|
|
2348
|
-
|
|
2348
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($e53b2e7e632ac4cb$var$_tmpl$2);
|
|
2349
2349
|
$gVhhF$solidjsweb.addEventListener(_el$2, "click", $gVhhF$depictaiutilishared.catchify(ev => router_.navigate_.go_to_({
|
|
2350
2350
|
new_url_: href(),
|
|
2351
2351
|
is_replace_: false,
|
|
@@ -2366,7 +2366,7 @@ function $e53b2e7e632ac4cb$export$5646050d516e06bc({
|
|
|
2366
2366
|
return index < crumb_data().length - 1;
|
|
2367
2367
|
},
|
|
2368
2368
|
get children() {
|
|
2369
|
-
|
|
2369
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($e53b2e7e632ac4cb$var$_tmpl$3);
|
|
2370
2370
|
$gVhhF$solidjsweb.insert(_el$3, () => i18n_.breadcrumbs_separator_());
|
|
2371
2371
|
return _el$3;
|
|
2372
2372
|
}
|
|
@@ -2379,23 +2379,23 @@ function $e53b2e7e632ac4cb$export$5646050d516e06bc({
|
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
2381
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
2382
|
-
|
|
2382
|
+
var $93304d59a9747aa6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`);
|
|
2383
2383
|
function $93304d59a9747aa6$export$94026ee33dbabc26(props) {
|
|
2384
2384
|
return (() => {
|
|
2385
|
-
|
|
2385
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($93304d59a9747aa6$var$_tmpl$);
|
|
2386
2386
|
$gVhhF$solidjsweb.classList(_el$, {
|
|
2387
2387
|
["s-image-container"]: true
|
|
2388
2388
|
});
|
|
2389
2389
|
$gVhhF$solidjsweb.insert(_el$, () => props.children);
|
|
2390
2390
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
2391
|
-
|
|
2391
|
+
var _v$ = `padding-bottom:calc(calc(1 / ${props.aspectRatio}) * 100%)`,
|
|
2392
2392
|
_v$2 = props.class;
|
|
2393
|
-
_p$.
|
|
2394
|
-
_v$2 !== _p$.
|
|
2393
|
+
_p$.e = $gVhhF$solidjsweb.style(_el$, _v$, _p$.e);
|
|
2394
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.className(_el$, _p$.t = _v$2);
|
|
2395
2395
|
return _p$;
|
|
2396
2396
|
}, {
|
|
2397
|
-
|
|
2398
|
-
|
|
2397
|
+
e: undefined,
|
|
2398
|
+
t: undefined
|
|
2399
2399
|
});
|
|
2400
2400
|
return _el$;
|
|
2401
2401
|
})();
|
|
@@ -2643,11 +2643,11 @@ function $e8327f98c8ee28d7$export$9d4a4b669b1929ab(props) {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
}));
|
|
2645
2645
|
}
|
|
2646
|
-
|
|
2646
|
+
var $3a1c4fee88fb8672$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=32 height=32 fill=none><path d="M28.061 17.061l-9 9c-.282.282-.664.44-1.062.44a1.5 1.5 0 0 1-1.062-.44c-.282-.282-.44-.664-.44-1.062s.158-.781.44-1.062l6.439-6.436H5A1.5 1.5 0 0 1 3.5 16 1.5 1.5 0 0 1 5 14.5h18.375l-6.436-6.44c-.282-.282-.44-.664-.44-1.063s.158-.781.44-1.062.664-.44 1.063-.44a1.5 1.5 0 0 1 1.063.44l9 9a1.5 1.5 0 0 1 .441 1.064 1.5 1.5 0 0 1-.443 1.063z"fill=#868689>`);
|
|
2647
2647
|
function $3a1c4fee88fb8672$export$9ca09caa9c849d9c() {
|
|
2648
2648
|
return $gVhhF$solidjsweb.getNextElement($3a1c4fee88fb8672$var$_tmpl$);
|
|
2649
2649
|
}
|
|
2650
|
-
|
|
2650
|
+
var $1f3b5fa875714dea$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a>`),
|
|
2651
2651
|
$1f3b5fa875714dea$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
|
|
2652
2652
|
$1f3b5fa875714dea$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=empty-image>`);
|
|
2653
2653
|
const $1f3b5fa875714dea$var$aspectRatioWidthComponent = 402.67;
|
|
@@ -2666,7 +2666,7 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
|
|
|
2666
2666
|
}) {
|
|
2667
2667
|
const href = $gVhhF$solidjs.createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
|
|
2668
2668
|
const LinkToListing = props => (() => {
|
|
2669
|
-
|
|
2669
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$);
|
|
2670
2670
|
$gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
|
|
2671
2671
|
new_url_: href(),
|
|
2672
2672
|
is_replace_: false,
|
|
@@ -2678,14 +2678,14 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
|
|
|
2678
2678
|
})), true);
|
|
2679
2679
|
$gVhhF$solidjsweb.insert(_el$, () => props.children);
|
|
2680
2680
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
2681
|
-
|
|
2681
|
+
var _v$ = props.tabIndex_,
|
|
2682
2682
|
_v$2 = href();
|
|
2683
|
-
_v$ !== _p$.
|
|
2684
|
-
_v$2 !== _p$.
|
|
2683
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "tabindex", _p$.e = _v$);
|
|
2684
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$, "href", _p$.t = _v$2);
|
|
2685
2685
|
return _p$;
|
|
2686
2686
|
}, {
|
|
2687
|
-
|
|
2688
|
-
|
|
2687
|
+
e: undefined,
|
|
2688
|
+
t: undefined
|
|
2689
2689
|
});
|
|
2690
2690
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
2691
2691
|
return _el$;
|
|
@@ -2694,7 +2694,7 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
|
|
|
2694
2694
|
const [isSelected, selectedDueToKeyboardNavigation] = $f144ea315d9e4caa$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
|
|
2695
2695
|
const crumbData = $gVhhF$solidjs.createMemo(() => listing_()?.ancestors);
|
|
2696
2696
|
return (() => {
|
|
2697
|
-
|
|
2697
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$2),
|
|
2698
2698
|
_el$3 = _el$2.firstChild,
|
|
2699
2699
|
_el$5 = _el$3.nextSibling,
|
|
2700
2700
|
[_el$6, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling),
|
|
@@ -2745,14 +2745,14 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
|
|
|
2745
2745
|
}
|
|
2746
2746
|
}));
|
|
2747
2747
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
2748
|
-
|
|
2748
|
+
var _v$3 = !!isSelected(),
|
|
2749
2749
|
_v$4 = `--image-count: ${image_urls()?.length ?? 0}`;
|
|
2750
|
-
_v$3 !== _p$.
|
|
2751
|
-
_p$.
|
|
2750
|
+
_v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
|
|
2751
|
+
_p$.t = $gVhhF$solidjsweb.style(_el$3, _v$4, _p$.t);
|
|
2752
2752
|
return _p$;
|
|
2753
2753
|
}, {
|
|
2754
|
-
|
|
2755
|
-
|
|
2754
|
+
e: undefined,
|
|
2755
|
+
t: undefined
|
|
2756
2756
|
});
|
|
2757
2757
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
2758
2758
|
return _el$2;
|
|
@@ -2796,31 +2796,31 @@ function $1f3b5fa875714dea$export$ea41102db9bd68c3({
|
|
|
2796
2796
|
}
|
|
2797
2797
|
function $1f3b5fa875714dea$var$EmptyImage() {
|
|
2798
2798
|
return (() => {
|
|
2799
|
-
|
|
2799
|
+
var _el$7 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$3);
|
|
2800
2800
|
_el$7.style.setProperty("aspect-ratio", "1.977362011392654");
|
|
2801
2801
|
$gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $3a1c4fee88fb8672$export$9ca09caa9c849d9c), {}));
|
|
2802
2802
|
return _el$7;
|
|
2803
2803
|
})();
|
|
2804
2804
|
}
|
|
2805
2805
|
$gVhhF$solidjsweb.delegateEvents(["click", "mouseover"]);
|
|
2806
|
-
|
|
2806
|
+
var $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
2807
2807
|
function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
2808
2808
|
return (() => {
|
|
2809
|
-
|
|
2809
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($0f313083912e447a$var$_tmpl$);
|
|
2810
2810
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
2811
|
-
|
|
2811
|
+
var _v$ = props.width_ ?? 14,
|
|
2812
2812
|
_v$2 = props.height_ ?? 26;
|
|
2813
|
-
_v$ !== _p$.
|
|
2814
|
-
_v$2 !== _p$.
|
|
2813
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "width", _p$.e = _v$);
|
|
2814
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$, "height", _p$.t = _v$2);
|
|
2815
2815
|
return _p$;
|
|
2816
2816
|
}, {
|
|
2817
|
-
|
|
2818
|
-
|
|
2817
|
+
e: undefined,
|
|
2818
|
+
t: undefined
|
|
2819
2819
|
});
|
|
2820
2820
|
return _el$;
|
|
2821
2821
|
})();
|
|
2822
2822
|
}
|
|
2823
|
-
|
|
2823
|
+
var $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
2824
2824
|
$a0e53f99354809d9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict-slider depict"><button aria-label="Scroll left"class="left d-navbutton"type=button></button><button aria-label="Scroll right"class="right d-navbutton"type=button></button><div class=sliding>`);
|
|
2825
2825
|
function $a0e53f99354809d9$export$6649caad96ef8870({
|
|
2826
2826
|
children: children,
|
|
@@ -2836,7 +2836,7 @@ function $a0e53f99354809d9$export$6649caad96ef8870({
|
|
|
2836
2836
|
const [hasHydrated, setHasHydrated] = $gVhhF$solidjs.createSignal(false);
|
|
2837
2837
|
$gVhhF$solidjs.createEffect(() => setHasHydrated(true));
|
|
2838
2838
|
const MakeButton = () => (() => {
|
|
2839
|
-
|
|
2839
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$);
|
|
2840
2840
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
|
|
2841
2841
|
height_: arrow_height_,
|
|
2842
2842
|
width_: arrow_width_
|
|
@@ -2853,7 +2853,7 @@ function $a0e53f99354809d9$export$6649caad96ef8870({
|
|
|
2853
2853
|
},
|
|
2854
2854
|
get fallback() {
|
|
2855
2855
|
return (() => {
|
|
2856
|
-
|
|
2856
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$2),
|
|
2857
2857
|
_el$3 = _el$2.firstChild,
|
|
2858
2858
|
_el$4 = _el$3.nextSibling,
|
|
2859
2859
|
_el$5 = _el$4.nextSibling;
|
|
@@ -2887,12 +2887,12 @@ function $a0e53f99354809d9$export$6649caad96ef8870({
|
|
|
2887
2887
|
}
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2890
|
+
var $f48d0fbb00835aaa$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
2891
2891
|
$f48d0fbb00835aaa$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<style type=text/css>`);
|
|
2892
2892
|
function $f48d0fbb00835aaa$export$d21e32dfedac04be(props) {
|
|
2893
2893
|
const container_class = "x" + $gVhhF$solidjs.createUniqueId();
|
|
2894
2894
|
const container_element_ = (() => {
|
|
2895
|
-
|
|
2895
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($f48d0fbb00835aaa$var$_tmpl$);
|
|
2896
2896
|
$gVhhF$solidjsweb.spread(_el$, $gVhhF$solidjsweb.mergeProps(() => props.element_attributes, {
|
|
2897
2897
|
"classList": {
|
|
2898
2898
|
[container_class]: true
|
|
@@ -2943,7 +2943,7 @@ function $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, container_element, ins
|
|
|
2943
2943
|
const view_more_button_class = "m" + $gVhhF$solidjs.createUniqueId();
|
|
2944
2944
|
const view_less_button_class = "l" + $gVhhF$solidjs.createUniqueId(); // https://github.com/solidjs/solid-docs/issues/263#issuecomment-1622388079
|
|
2945
2945
|
const view_more_button_container = $gVhhF$solidjs.createMemo(() => have_a_view_more_button() && (() => {
|
|
2946
|
-
|
|
2946
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($f48d0fbb00835aaa$var$_tmpl$);
|
|
2947
2947
|
$gVhhF$solidjsweb.addEventListener(_el$2, "click", $gVhhF$depictaiutilishared.catchify(() => set_rows_visible()(prev => prev + (rows_or_empty_object().rows_per_click ?? 1))), true);
|
|
2948
2948
|
$gVhhF$solidjsweb.className(_el$2, `load-more-container ${view_more_button_class}`);
|
|
2949
2949
|
$gVhhF$solidjsweb.insert(_el$2, () => rows_or_empty_object().button);
|
|
@@ -2952,7 +2952,7 @@ function $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, container_element, ins
|
|
|
2952
2952
|
})());
|
|
2953
2953
|
// We need to have duplicate buttons because which ones is shown depends on the number of rows visible and therefore on the viewport size and therefore on the css media queries
|
|
2954
2954
|
const view_less_button_container = $gVhhF$solidjs.createMemo(() => have_a_view_less_button() && (() => {
|
|
2955
|
-
|
|
2955
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($f48d0fbb00835aaa$var$_tmpl$);
|
|
2956
2956
|
$gVhhF$solidjsweb.addEventListener(_el$3, "click", $gVhhF$depictaiutilishared.catchify(() => set_rows_visible()(() => rows_or_empty_object().start_rows ?? 1)), true);
|
|
2957
2957
|
$gVhhF$solidjsweb.className(_el$3, `load-less-container ${view_less_button_class}`);
|
|
2958
2958
|
$gVhhF$solidjsweb.insert(_el$3, () => rows_or_empty_object().view_less_button);
|
|
@@ -3014,7 +3014,7 @@ function $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, container_element, ins
|
|
|
3014
3014
|
}));
|
|
3015
3015
|
});
|
|
3016
3016
|
const style_element = (() => {
|
|
3017
|
-
|
|
3017
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($f48d0fbb00835aaa$var$_tmpl$2);
|
|
3018
3018
|
$gVhhF$solidjsweb.insert(_el$4, get_styling);
|
|
3019
3019
|
return _el$4;
|
|
3020
3020
|
})(); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
|
|
@@ -3022,7 +3022,7 @@ function $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, container_element, ins
|
|
|
3022
3022
|
return [container_element, $gVhhF$solidjsweb.memo(view_more_button_container), $gVhhF$solidjsweb.memo(view_less_button_container), style_element];
|
|
3023
3023
|
}
|
|
3024
3024
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
3025
|
-
|
|
3025
|
+
var $83e616b38be339e4$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=visual-listing-suggestions><h2></h2><!$><!/>`),
|
|
3026
3026
|
$83e616b38be339e4$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=suggestion-container>`);
|
|
3027
3027
|
function $83e616b38be339e4$export$c8d7e00464029b45({
|
|
3028
3028
|
listing_suggestions_: listing_suggestions_,
|
|
@@ -3065,7 +3065,7 @@ function $83e616b38be339e4$export$c8d7e00464029b45({
|
|
|
3065
3065
|
return listing_suggestions_()?.length;
|
|
3066
3066
|
},
|
|
3067
3067
|
get children() {
|
|
3068
|
-
|
|
3068
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($83e616b38be339e4$var$_tmpl$),
|
|
3069
3069
|
_el$2 = _el$.firstChild,
|
|
3070
3070
|
_el$3 = _el$2.nextSibling,
|
|
3071
3071
|
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling);
|
|
@@ -3076,7 +3076,7 @@ function $83e616b38be339e4$export$c8d7e00464029b45({
|
|
|
3076
3076
|
},
|
|
3077
3077
|
get fallback() {
|
|
3078
3078
|
return (() => {
|
|
3079
|
-
|
|
3079
|
+
var _el$5 = $gVhhF$solidjsweb.getNextElement($83e616b38be339e4$var$_tmpl$2);
|
|
3080
3080
|
$gVhhF$solidjsweb.insert(_el$5, productCards);
|
|
3081
3081
|
return _el$5;
|
|
3082
3082
|
})();
|
|
@@ -3109,7 +3109,7 @@ function $83e616b38be339e4$export$c8d7e00464029b45({
|
|
|
3109
3109
|
}
|
|
3110
3110
|
});
|
|
3111
3111
|
}
|
|
3112
|
-
|
|
3112
|
+
var $a13dbcf80d79229c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class=title-row><h2></h2><!$><!/></div><div class=suggestion-container>`),
|
|
3113
3113
|
$a13dbcf80d79229c$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=suggestion>`);
|
|
3114
3114
|
function $a13dbcf80d79229c$export$d4994a86c6235f72({
|
|
3115
3115
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -3133,7 +3133,7 @@ function $a13dbcf80d79229c$export$d4994a86c6235f72({
|
|
|
3133
3133
|
return itemsToShow_()?.length || showPlaceholders_();
|
|
3134
3134
|
},
|
|
3135
3135
|
get children() {
|
|
3136
|
-
|
|
3136
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($a13dbcf80d79229c$var$_tmpl$),
|
|
3137
3137
|
_el$2 = _el$.firstChild,
|
|
3138
3138
|
_el$3 = _el$2.firstChild,
|
|
3139
3139
|
_el$4 = _el$3.nextSibling,
|
|
@@ -3171,7 +3171,7 @@ function $a13dbcf80d79229c$export$d4994a86c6235f72({
|
|
|
3171
3171
|
});
|
|
3172
3172
|
const [isSelected, selectedDueToKeyboardNavigation] = $f144ea315d9e4caa$export$fb40a80c530e5f2b(read_selected_index_, itemIndex_, () => index);
|
|
3173
3173
|
return (() => {
|
|
3174
|
-
|
|
3174
|
+
var _el$7 = $gVhhF$solidjsweb.getNextElement($a13dbcf80d79229c$var$_tmpl$2);
|
|
3175
3175
|
$gVhhF$solidjsweb.use(element => {
|
|
3176
3176
|
$f144ea315d9e4caa$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation);
|
|
3177
3177
|
element.addEventListener("click", $gVhhF$depictaiutilishared.catchify(ev => {
|
|
@@ -3200,14 +3200,14 @@ function $a13dbcf80d79229c$export$d4994a86c6235f72({
|
|
|
3200
3200
|
searching_for_value_: searching_for_value_
|
|
3201
3201
|
}));
|
|
3202
3202
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
3203
|
-
|
|
3203
|
+
var _v$ = !!isSelected(),
|
|
3204
3204
|
_v$2 = href();
|
|
3205
|
-
_v$ !== _p$.
|
|
3206
|
-
_v$2 !== _p$.
|
|
3205
|
+
_v$ !== _p$.e && _el$7.classList.toggle("selected", _p$.e = _v$);
|
|
3206
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$7, "href", _p$.t = _v$2);
|
|
3207
3207
|
return _p$;
|
|
3208
3208
|
}, {
|
|
3209
|
-
|
|
3210
|
-
|
|
3209
|
+
e: undefined,
|
|
3210
|
+
t: undefined
|
|
3211
3211
|
});
|
|
3212
3212
|
return _el$7;
|
|
3213
3213
|
})();
|
|
@@ -3220,7 +3220,7 @@ function $a13dbcf80d79229c$export$d4994a86c6235f72({
|
|
|
3220
3220
|
}
|
|
3221
3221
|
});
|
|
3222
3222
|
}
|
|
3223
|
-
|
|
3223
|
+
var $76cc2eca42351e01$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=delete type=button>`);
|
|
3224
3224
|
const $76cc2eca42351e01$var$MAX_PREVIOUS = 3;
|
|
3225
3225
|
function $76cc2eca42351e01$export$af1fb307bbba2417({
|
|
3226
3226
|
search_field_value_: search_field_value_,
|
|
@@ -3310,7 +3310,7 @@ function $76cc2eca42351e01$export$af1fb307bbba2417({
|
|
|
3310
3310
|
return itemIndexes_.previousSearchesIndex_;
|
|
3311
3311
|
},
|
|
3312
3312
|
extraTitleRowElements_: () => (() => {
|
|
3313
|
-
|
|
3313
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($76cc2eca42351e01$var$_tmpl$);
|
|
3314
3314
|
$gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(() => set_unfiltered_previous_searches_([])), true);
|
|
3315
3315
|
$gVhhF$solidjsweb.insert(_el$, () => i18n_.clear_all_from_filter_crumbs_());
|
|
3316
3316
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
@@ -3367,7 +3367,7 @@ function $d33c352ba8e07bc2$export$b608d7df125109f1({
|
|
|
3367
3367
|
|
|
3368
3368
|
return suggestionsResource;
|
|
3369
3369
|
}
|
|
3370
|
-
|
|
3370
|
+
var $b8660a70353e03cf$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=20 height=20><path d="M8.089 16.288l-5.625-5.625a.94.94 0 0 1-.276-.664c0-.123.024-.246.072-.36a.94.94 0 0 1 .204-.305L8.089 3.71a.94.94 0 0 1 1.328 0 .94.94 0 0 1 0 1.328L5.393 9.063h11.484a.94.94 0 0 1 .938.937c0 .249-.099.487-.275.663s-.414.275-.663.275H5.393l4.025 4.024a.94.94 0 0 1 0 1.328.94.94 0 0 1-1.328 0v-.002z">`);
|
|
3371
3371
|
function $b8660a70353e03cf$export$3fcbcd8bd3e0290f() {
|
|
3372
3372
|
return $gVhhF$solidjsweb.getNextElement($b8660a70353e03cf$var$_tmpl$);
|
|
3373
3373
|
}
|
|
@@ -3389,11 +3389,14 @@ function $3b9f2020814c7876$export$66d1697a0f27069c(modalLayoutStacked) {
|
|
|
3389
3389
|
instantResultsIndex_: instantResultsIndex_
|
|
3390
3390
|
};
|
|
3391
3391
|
}
|
|
3392
|
-
|
|
3393
|
-
$11597ae03e703a47$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<
|
|
3394
|
-
$11597ae03e703a47$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<
|
|
3395
|
-
$11597ae03e703a47$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
3396
|
-
$11597ae03e703a47$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<
|
|
3392
|
+
var $11597ae03e703a47$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2><!$><!/>`),
|
|
3393
|
+
$11597ae03e703a47$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
3394
|
+
$11597ae03e703a47$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<dialog>`),
|
|
3395
|
+
$11597ae03e703a47$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal-backdrop>`),
|
|
3396
|
+
$11597ae03e703a47$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal><div class=body><!$><!/><div class=padded></div><div class=discover-more><button class=major type=button></button></div></div><!$><!/>`),
|
|
3397
|
+
$11597ae03e703a47$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=left>`),
|
|
3398
|
+
$11597ae03e703a47$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=right>`),
|
|
3399
|
+
$11597ae03e703a47$var$_tmpl$8 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`);
|
|
3397
3400
|
/**
|
|
3398
3401
|
* Second generation search modal - the solid component that gets added to <body> when the search modal is opened
|
|
3399
3402
|
*/
|
|
@@ -3424,7 +3427,8 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
3424
3427
|
content_search_enabled_: content_search_enabled_,
|
|
3425
3428
|
sorting_query_param_: sorting_query_param_,
|
|
3426
3429
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
3427
|
-
setSearchFieldOuterWidth_: setSearchFieldOuterWidth_
|
|
3430
|
+
setSearchFieldOuterWidth_: setSearchFieldOuterWidth_,
|
|
3431
|
+
forceUseDiv_: forceUseDiv_
|
|
3428
3432
|
}) {
|
|
3429
3433
|
let on_enter_in_search_field_function;
|
|
3430
3434
|
// As per feedback from stronger we sometimes want a modal with the search field value disconnected from the one in the rest of the UI, see https://depictaiworkspace.slack.com/archives/C02J16R9XEH/p1679065878487709.
|
|
@@ -3595,7 +3599,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
3595
3599
|
get children() {
|
|
3596
3600
|
return $gVhhF$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
3597
3601
|
get children() {
|
|
3598
|
-
|
|
3602
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$),
|
|
3599
3603
|
_el$2 = _el$.firstChild,
|
|
3600
3604
|
_el$3 = _el$2.nextSibling,
|
|
3601
3605
|
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling);
|
|
@@ -3657,6 +3661,22 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
3657
3661
|
});
|
|
3658
3662
|
}
|
|
3659
3663
|
})]);
|
|
3664
|
+
const DialogElement = props => {
|
|
3665
|
+
if (forceUseDiv_) return (() => {
|
|
3666
|
+
var _el$5 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$2);
|
|
3667
|
+
$gVhhF$solidjsweb.spread(_el$5, props, false, true);
|
|
3668
|
+
$gVhhF$solidjsweb.insert(_el$5, () => props.children);
|
|
3669
|
+
$gVhhF$solidjsweb.runHydrationEvents();
|
|
3670
|
+
return _el$5;
|
|
3671
|
+
})();
|
|
3672
|
+
return (() => {
|
|
3673
|
+
var _el$6 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$3);
|
|
3674
|
+
$gVhhF$solidjsweb.spread(_el$6, props, false, true);
|
|
3675
|
+
$gVhhF$solidjsweb.insert(_el$6, () => props.children);
|
|
3676
|
+
$gVhhF$solidjsweb.runHydrationEvents();
|
|
3677
|
+
return _el$6;
|
|
3678
|
+
})();
|
|
3679
|
+
};
|
|
3660
3680
|
const search_field = $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
3661
3681
|
BackIcon_: () => $gVhhF$solidjsweb.createComponent((0, $b8660a70353e03cf$export$11e9f390c90a537f), {}),
|
|
3662
3682
|
input_field_ref_: element => set_input_field(element),
|
|
@@ -3680,19 +3700,17 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
3680
3700
|
resizeObserver.observe(search_field);
|
|
3681
3701
|
$gVhhF$solidjs.onCleanup(() => resizeObserver.disconnect());
|
|
3682
3702
|
}
|
|
3683
|
-
return [(
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
[_el$15, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$14.nextSibling);
|
|
3695
|
-
$gVhhF$solidjsweb.use(element => {
|
|
3703
|
+
return [$gVhhF$solidjsweb.createComponent(DialogElement, {
|
|
3704
|
+
get id() {
|
|
3705
|
+
return (0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_MODAL;
|
|
3706
|
+
},
|
|
3707
|
+
"class": "depict plp search",
|
|
3708
|
+
get classList() {
|
|
3709
|
+
return class_list_?.();
|
|
3710
|
+
},
|
|
3711
|
+
onClose: close_modal_,
|
|
3712
|
+
ref: element => {
|
|
3713
|
+
if (forceUseDiv_) return;
|
|
3696
3714
|
const disconnect = (0, $gVhhF$depictaiutilishared.observer).onexists(element, ({
|
|
3697
3715
|
element: element,
|
|
3698
3716
|
disconnector: disconnector
|
|
@@ -3701,86 +3719,94 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
3701
3719
|
disconnector();
|
|
3702
3720
|
});
|
|
3703
3721
|
$gVhhF$solidjs.onCleanup(disconnect);
|
|
3704
|
-
},
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
}) => {
|
|
3711
|
-
if (target === currentTarget) close_modal_();
|
|
3712
|
-
}), true);
|
|
3713
|
-
$gVhhF$solidjsweb.use(element => {
|
|
3714
|
-
// We don't have contained queries in JS so use ResizeObserver instead. This is so that the modal automatically assumes a mobile layout when aligning with a short SearchField.
|
|
3715
|
-
const resizeObserver = new ResizeObserver($gVhhF$depictaiutilishared.catchify(records => setModalBodyWidth(records.at(-1).contentRect.width)));
|
|
3716
|
-
resizeObserver.observe(element);
|
|
3717
|
-
$gVhhF$solidjs.onCleanup(() => resizeObserver.disconnect());
|
|
3718
|
-
}, _el$8);
|
|
3719
|
-
$gVhhF$solidjsweb.insert(_el$8, search_field, _el$13, _co$2);
|
|
3720
|
-
$gVhhF$solidjsweb.use(el => {
|
|
3721
|
-
$gVhhF$depictaiutilishared.catchify((0, $7b98f0cf558884f7$export$50b90be27d8502d9))(el, bodyAlignmentSignal, bottom_distance_under_modal_);
|
|
3722
|
-
// Workaround part 2 of https://github.com/solidjs/solid/issues/2030
|
|
3723
|
-
// We can't just re-render the components in the two different <Show> branches because <Show> would infinite loop because it depends on the resource created by the components
|
|
3724
|
-
// We could also lift out the createResource from InstantResults into this component, but this component is already huge.
|
|
3725
|
-
// When no results, also don't show left/right separation
|
|
3726
|
-
const showStackedDOM = $gVhhF$solidjs.createMemo(() => modalLayoutStacked_() || noResults());
|
|
3727
|
-
$gVhhF$solidjs.createEffect(() => {
|
|
3728
|
-
if (showStackedDOM()) {
|
|
3729
|
-
el.replaceChildren(...renderedTextSuggestions(), ...renderedVisualSuggestions());
|
|
3730
|
-
return;
|
|
3731
|
-
}
|
|
3732
|
-
el.replaceChildren(...[(() => {
|
|
3733
|
-
const _el$16 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$3);
|
|
3734
|
-
$gVhhF$solidjsweb.insert(_el$16, renderedTextSuggestions);
|
|
3735
|
-
return _el$16;
|
|
3736
|
-
})(), (() => {
|
|
3737
|
-
const _el$17 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$4);
|
|
3738
|
-
$gVhhF$solidjsweb.insert(_el$17, renderedVisualSuggestions);
|
|
3739
|
-
return _el$17;
|
|
3740
|
-
})()]);
|
|
3741
|
-
});
|
|
3742
|
-
}, _el$9);
|
|
3743
|
-
$gVhhF$solidjsweb.addEventListener(_el$11, "click", $gVhhF$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
3744
|
-
$gVhhF$solidjsweb.insert(_el$11, (() => {
|
|
3745
|
-
const _c$ = $gVhhF$solidjsweb.memo(() => !!get_search_field_value_());
|
|
3746
|
-
return () => _c$() ? i18n_.modal_view_all_results_()((() => {
|
|
3747
|
-
const _el$18 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$5);
|
|
3748
|
-
$gVhhF$solidjsweb.insert(_el$18, formattedTotalNumberResults);
|
|
3749
|
-
return _el$18;
|
|
3750
|
-
})()) : i18n_.modal_discover_more_();
|
|
3751
|
-
})());
|
|
3752
|
-
$gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $b776f25acdda22eb$export$f021bdedd3ec901a), {
|
|
3753
|
-
styles: mergedCssObject
|
|
3754
|
-
}), _el$15, _co$3);
|
|
3755
|
-
$gVhhF$solidjsweb.effect(_p$ => {
|
|
3756
|
-
const _v$ = (0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_MODAL,
|
|
3757
|
-
_v$2 = class_list_?.(),
|
|
3758
|
-
_v$3 = {
|
|
3722
|
+
},
|
|
3723
|
+
get children() {
|
|
3724
|
+
return [(() => {
|
|
3725
|
+
var _el$7 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$4);
|
|
3726
|
+
$gVhhF$solidjsweb.addEventListener(_el$7, "click", close_modal_, true);
|
|
3727
|
+
$gVhhF$solidjsweb.effect(_$p => $gVhhF$solidjsweb.classList(_el$7, {
|
|
3759
3728
|
[backdropRandomClassname]: true
|
|
3760
|
-
},
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3729
|
+
}, _$p));
|
|
3730
|
+
$gVhhF$solidjsweb.runHydrationEvents();
|
|
3731
|
+
return _el$7;
|
|
3732
|
+
})(), (() => {
|
|
3733
|
+
var _el$8 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$5),
|
|
3734
|
+
_el$9 = _el$8.firstChild,
|
|
3735
|
+
_el$13 = _el$9.firstChild,
|
|
3736
|
+
[_el$14, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$13.nextSibling),
|
|
3737
|
+
_el$10 = _el$14.nextSibling,
|
|
3738
|
+
_el$11 = _el$10.nextSibling,
|
|
3739
|
+
_el$12 = _el$11.firstChild,
|
|
3740
|
+
_el$15 = _el$9.nextSibling,
|
|
3741
|
+
[_el$16, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$15.nextSibling);
|
|
3742
|
+
$gVhhF$solidjsweb.addEventListener(_el$8, "click", $gVhhF$depictaiutilishared.catchify(({
|
|
3743
|
+
target: target,
|
|
3744
|
+
currentTarget: currentTarget
|
|
3745
|
+
}) => {
|
|
3746
|
+
if (target === currentTarget) close_modal_();
|
|
3747
|
+
}), true);
|
|
3748
|
+
$gVhhF$solidjsweb.use(element => {
|
|
3749
|
+
// We don't have contained queries in JS so use ResizeObserver instead. This is so that the modal automatically assumes a mobile layout when aligning with a short SearchField.
|
|
3750
|
+
const resizeObserver = new ResizeObserver($gVhhF$depictaiutilishared.catchify(records => setModalBodyWidth(records.at(-1).contentRect.width)));
|
|
3751
|
+
resizeObserver.observe(element);
|
|
3752
|
+
$gVhhF$solidjs.onCleanup(() => resizeObserver.disconnect());
|
|
3753
|
+
}, _el$9);
|
|
3754
|
+
$gVhhF$solidjsweb.insert(_el$9, search_field, _el$14, _co$2);
|
|
3755
|
+
$gVhhF$solidjsweb.use(el => {
|
|
3756
|
+
$gVhhF$depictaiutilishared.catchify((0, $7b98f0cf558884f7$export$50b90be27d8502d9))(el, bodyAlignmentSignal, bottom_distance_under_modal_);
|
|
3757
|
+
// Workaround part 2 of https://github.com/solidjs/solid/issues/2030
|
|
3758
|
+
// We can't just re-render the components in the two different <Show> branches because <Show> would infinite loop because it depends on the resource created by the components
|
|
3759
|
+
// We could also lift out the createResource from InstantResults into this component, but this component is already huge.
|
|
3760
|
+
// When no results, also don't show left/right separation
|
|
3761
|
+
const showStackedDOM = $gVhhF$solidjs.createMemo(() => modalLayoutStacked_() || noResults());
|
|
3762
|
+
$gVhhF$solidjs.createEffect(() => {
|
|
3763
|
+
if (showStackedDOM()) {
|
|
3764
|
+
el.replaceChildren(...renderedTextSuggestions(), ...renderedVisualSuggestions());
|
|
3765
|
+
return;
|
|
3766
|
+
}
|
|
3767
|
+
el.replaceChildren(...[(() => {
|
|
3768
|
+
var _el$17 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$6);
|
|
3769
|
+
$gVhhF$solidjsweb.insert(_el$17, renderedTextSuggestions);
|
|
3770
|
+
return _el$17;
|
|
3771
|
+
})(), (() => {
|
|
3772
|
+
var _el$18 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$7);
|
|
3773
|
+
$gVhhF$solidjsweb.insert(_el$18, renderedVisualSuggestions);
|
|
3774
|
+
return _el$18;
|
|
3775
|
+
})()]);
|
|
3776
|
+
});
|
|
3777
|
+
}, _el$10);
|
|
3778
|
+
$gVhhF$solidjsweb.addEventListener(_el$12, "click", $gVhhF$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
3779
|
+
$gVhhF$solidjsweb.insert(_el$12, (() => {
|
|
3780
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => !!get_search_field_value_());
|
|
3781
|
+
return () => _c$() ? i18n_.modal_view_all_results_()((() => {
|
|
3782
|
+
var _el$19 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$8);
|
|
3783
|
+
$gVhhF$solidjsweb.insert(_el$19, formattedTotalNumberResults);
|
|
3784
|
+
return _el$19;
|
|
3785
|
+
})()) : i18n_.modal_discover_more_();
|
|
3786
|
+
})());
|
|
3787
|
+
$gVhhF$solidjsweb.insert(_el$8, $gVhhF$solidjsweb.createComponent((0, $b776f25acdda22eb$export$f021bdedd3ec901a), {
|
|
3788
|
+
styles: mergedCssObject
|
|
3789
|
+
}), _el$16, _co$3);
|
|
3790
|
+
$gVhhF$solidjsweb.effect(_p$ => {
|
|
3791
|
+
var _v$ = !!modalLayoutStacked_(),
|
|
3792
|
+
_v$2 = {
|
|
3793
|
+
[random_classname_body]: true
|
|
3794
|
+
},
|
|
3795
|
+
_v$3 = !!noResults();
|
|
3796
|
+
_v$ !== _p$.e && _el$8.classList.toggle("stacked", _p$.e = _v$);
|
|
3797
|
+
_p$.t = $gVhhF$solidjsweb.classList(_el$9, _v$2, _p$.t);
|
|
3798
|
+
_v$3 !== _p$.a && _el$10.classList.toggle("no-results", _p$.a = _v$3);
|
|
3799
|
+
return _p$;
|
|
3800
|
+
}, {
|
|
3801
|
+
e: undefined,
|
|
3802
|
+
t: undefined,
|
|
3803
|
+
a: undefined
|
|
3804
|
+
});
|
|
3805
|
+
$gVhhF$solidjsweb.runHydrationEvents();
|
|
3806
|
+
return _el$8;
|
|
3807
|
+
})()];
|
|
3808
|
+
}
|
|
3809
|
+
})];
|
|
3784
3810
|
}
|
|
3785
3811
|
const $11597ae03e703a47$export$b0c55aa2e87c4be7 = /*@__PURE__*/(() => {
|
|
3786
3812
|
$11597ae03e703a47$var$RawSearchModalV2[(0, $ad1fa088e5509cca$export$1ea76ea778b880dd)] = 2;
|
|
@@ -3788,7 +3814,7 @@ const $11597ae03e703a47$export$b0c55aa2e87c4be7 = /*@__PURE__*/(() => {
|
|
|
3788
3814
|
return $11597ae03e703a47$var$RawSearchModalV2;
|
|
3789
3815
|
})();
|
|
3790
3816
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
3791
|
-
|
|
3817
|
+
var $8c38828ae2321937$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<section aria-live=polite role=region class=tabs-body>`),
|
|
3792
3818
|
$8c38828ae2321937$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<nav role=tablist class=tabs-bar>`),
|
|
3793
3819
|
$8c38828ae2321937$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<article role=tabpanel>`);
|
|
3794
3820
|
const $8c38828ae2321937$var$TabsContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
|
|
@@ -3873,16 +3899,16 @@ function $8c38828ae2321937$var$ActualTabs(props) {
|
|
|
3873
3899
|
}
|
|
3874
3900
|
});
|
|
3875
3901
|
return [$gVhhF$solidjsweb.memo(() => (props.wrapTabBar || (v => v))((() => {
|
|
3876
|
-
|
|
3902
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($8c38828ae2321937$var$_tmpl$2);
|
|
3877
3903
|
$gVhhF$solidjsweb.insert(_el$2, (() => {
|
|
3878
|
-
|
|
3904
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => !!props.slidable);
|
|
3879
3905
|
return () => _c$() ? $gVhhF$solidjsweb.createComponent((0, $a0e53f99354809d9$export$6649caad96ef8870), {
|
|
3880
3906
|
children: headerItems
|
|
3881
3907
|
}) : headerItems;
|
|
3882
3908
|
})());
|
|
3883
3909
|
return _el$2;
|
|
3884
3910
|
})())), (() => {
|
|
3885
|
-
|
|
3911
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($8c38828ae2321937$var$_tmpl$);
|
|
3886
3912
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
3887
3913
|
get each() {
|
|
3888
3914
|
return tabsReactive();
|
|
@@ -3900,7 +3926,7 @@ function $8c38828ae2321937$var$ActualTabs(props) {
|
|
|
3900
3926
|
});
|
|
3901
3927
|
$gVhhF$solidjs.onCleanup(() => setTabsVisitedOnce(prev => (prev.delete(item().id), prev)));
|
|
3902
3928
|
return (() => {
|
|
3903
|
-
|
|
3929
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($8c38828ae2321937$var$_tmpl$3);
|
|
3904
3930
|
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
3905
3931
|
get when() {
|
|
3906
3932
|
return tabsVisitedOnce().has(item().id);
|
|
@@ -3910,17 +3936,17 @@ function $8c38828ae2321937$var$ActualTabs(props) {
|
|
|
3910
3936
|
}
|
|
3911
3937
|
}));
|
|
3912
3938
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
3913
|
-
|
|
3939
|
+
var _v$ = item().id,
|
|
3914
3940
|
_v$2 = !!weSelected(),
|
|
3915
3941
|
_v$3 = weSelected() ? "" : "none";
|
|
3916
|
-
_v$ !== _p$.
|
|
3917
|
-
_v$2 !== _p$.
|
|
3918
|
-
_v$3 !== _p$.
|
|
3942
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$3, "id", _p$.e = _v$);
|
|
3943
|
+
_v$2 !== _p$.t && _el$3.classList.toggle("selected", _p$.t = _v$2);
|
|
3944
|
+
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$3.style.setProperty("display", _v$3) : _el$3.style.removeProperty("display"));
|
|
3919
3945
|
return _p$;
|
|
3920
3946
|
}, {
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3947
|
+
e: undefined,
|
|
3948
|
+
t: undefined,
|
|
3949
|
+
a: undefined
|
|
3924
3950
|
});
|
|
3925
3951
|
return _el$3;
|
|
3926
3952
|
})();
|
|
@@ -4189,7 +4215,7 @@ class $e96dd13889871fc0$export$7e1297a3a19f10d8 {
|
|
|
4189
4215
|
this.on_navigation_ = on_navigation;
|
|
4190
4216
|
}
|
|
4191
4217
|
}
|
|
4192
|
-
|
|
4218
|
+
var $bbe694fe824b9c78$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=image-container>`);
|
|
4193
4219
|
function $bbe694fe824b9c78$export$41e1a079d40a0d58(props) {
|
|
4194
4220
|
const [display] = $gVhhF$solidjs.createResource(() => ({
|
|
4195
4221
|
merchant: props.merchant_,
|
|
@@ -4210,7 +4236,7 @@ function $bbe694fe824b9c78$export$41e1a079d40a0d58(props) {
|
|
|
4210
4236
|
}
|
|
4211
4237
|
});
|
|
4212
4238
|
return (() => {
|
|
4213
|
-
|
|
4239
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($bbe694fe824b9c78$var$_tmpl$);
|
|
4214
4240
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
|
|
4215
4241
|
fallback: placeholder,
|
|
4216
4242
|
get children() {
|
|
@@ -4249,14 +4275,14 @@ function $bbe694fe824b9c78$export$41e1a079d40a0d58(props) {
|
|
|
4249
4275
|
})();
|
|
4250
4276
|
}
|
|
4251
4277
|
const $6b502b1b2155a0bc$export$5c28802497c8a83c = /*@__PURE__*/Symbol("category_title_type");
|
|
4252
|
-
|
|
4278
|
+
var $0b23bfd073d9a4e8$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=category-title><h1 class=title></h1><span class=explanation> \u{2014} <!$><!/>`);
|
|
4253
4279
|
const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
4254
4280
|
const actual_function = ({
|
|
4255
4281
|
category_title_: category_title_,
|
|
4256
4282
|
product_count_: product_count_
|
|
4257
4283
|
}) => {
|
|
4258
4284
|
return (() => {
|
|
4259
|
-
|
|
4285
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($0b23bfd073d9a4e8$var$_tmpl$),
|
|
4260
4286
|
_el$2 = _el$.firstChild,
|
|
4261
4287
|
_el$3 = _el$2.nextSibling,
|
|
4262
4288
|
_el$4 = _el$3.firstChild,
|
|
@@ -4378,7 +4404,7 @@ function $0caf87eaa19079da$var$Placeholder({
|
|
|
4378
4404
|
});
|
|
4379
4405
|
}
|
|
4380
4406
|
|
|
4381
|
-
|
|
4407
|
+
var $b8e79813f4f7ebe4$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<h2 class=recs-title>`),
|
|
4382
4408
|
$b8e79813f4f7ebe4$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
|
|
4383
4409
|
function $b8e79813f4f7ebe4$export$7da560f849543dff({
|
|
4384
4410
|
recommendations_resource_: recommendations_resource_,
|
|
@@ -4395,12 +4421,12 @@ function $b8e79813f4f7ebe4$export$7da560f849543dff({
|
|
|
4395
4421
|
return title();
|
|
4396
4422
|
},
|
|
4397
4423
|
get children() {
|
|
4398
|
-
|
|
4424
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($b8e79813f4f7ebe4$var$_tmpl$);
|
|
4399
4425
|
$gVhhF$solidjsweb.insert(_el$, title);
|
|
4400
4426
|
return _el$;
|
|
4401
4427
|
}
|
|
4402
4428
|
}), (() => {
|
|
4403
|
-
|
|
4429
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($b8e79813f4f7ebe4$var$_tmpl$2),
|
|
4404
4430
|
_el$3 = _el$2.firstChild,
|
|
4405
4431
|
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
4406
4432
|
_el$5 = _el$4.nextSibling,
|
|
@@ -4516,7 +4542,7 @@ function $95837413165cc2df$export$23fca46f3143581f(component, error_message) {
|
|
|
4516
4542
|
// we're already in a root so cleanups are handled
|
|
4517
4543
|
return component_in_error_boundary();
|
|
4518
4544
|
}
|
|
4519
|
-
|
|
4545
|
+
var $1f8dbf7e28b3eff2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="show-more major"type=button>`),
|
|
4520
4546
|
$1f8dbf7e28b3eff2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp recommendations">`);
|
|
4521
4547
|
function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
|
|
4522
4548
|
return $95837413165cc2df$export$23fca46f3143581f(() => {
|
|
@@ -4536,7 +4562,7 @@ function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
|
|
|
4536
4562
|
start_rows: view_more_button.start_rows,
|
|
4537
4563
|
rows_per_click: view_more_button.rows_per_click ?? 2,
|
|
4538
4564
|
button: (() => {
|
|
4539
|
-
|
|
4565
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($1f8dbf7e28b3eff2$var$_tmpl$);
|
|
4540
4566
|
$gVhhF$solidjsweb.insert(_el$, () => view_more_button.text);
|
|
4541
4567
|
return _el$;
|
|
4542
4568
|
})()
|
|
@@ -4555,7 +4581,7 @@ function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
|
|
|
4555
4581
|
});
|
|
4556
4582
|
const [recommendations_resource_] = $gVhhF$solidjs.createResource(() => props.recommendations, recs => recs);
|
|
4557
4583
|
return (() => {
|
|
4558
|
-
|
|
4584
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($1f8dbf7e28b3eff2$var$_tmpl$2);
|
|
4559
4585
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
4560
4586
|
get children() {
|
|
4561
4587
|
return $b8e79813f4f7ebe4$export$7da560f849543dff({
|
|
@@ -4574,7 +4600,7 @@ function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
|
|
|
4574
4600
|
})();
|
|
4575
4601
|
}, "RecommendationGrid failed");
|
|
4576
4602
|
}
|
|
4577
|
-
|
|
4603
|
+
var $f55548318724b05c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a>`);
|
|
4578
4604
|
function $f55548318724b05c$export$6b35356958ae5587(props) {
|
|
4579
4605
|
const gridSpacing = (0, $a3280f0aad997933$export$864d304a0bc46829);
|
|
4580
4606
|
const columnsAtSize = [[3], [2, 901]];
|
|
@@ -4611,7 +4637,7 @@ function $f55548318724b05c$export$6b35356958ae5587(props) {
|
|
|
4611
4637
|
get children() {
|
|
4612
4638
|
return $gVhhF$solidjsweb.createComponent((0, $8c38828ae2321937$export$b2539bed5023c21c), {
|
|
4613
4639
|
AnchorComponent: anchorProps => (() => {
|
|
4614
|
-
|
|
4640
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($f55548318724b05c$var$_tmpl$);
|
|
4615
4641
|
_el$.$$click = e => {
|
|
4616
4642
|
const {
|
|
4617
4643
|
href: href
|
|
@@ -4700,7 +4726,7 @@ function $f55548318724b05c$export$6b35356958ae5587(props) {
|
|
|
4700
4726
|
});
|
|
4701
4727
|
}
|
|
4702
4728
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
4703
|
-
|
|
4729
|
+
var $b0ceb08960135d83$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=top-bar><button class=close>`),
|
|
4704
4730
|
$b0ceb08960135d83$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=below-top-bar><h2>Outfit recommendations</h2><div class=image-and-suggestions><!$><!/><div class=tabs>`),
|
|
4705
4731
|
$b0ceb08960135d83$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div id=depict-shop-the-look-modal class="depict shop-the-look"><div class=shop-the-look-backdrop></div><div class=modal-contents>`);
|
|
4706
4732
|
function $b0ceb08960135d83$export$a3cbef418994a664(props) {
|
|
@@ -4711,10 +4737,10 @@ function $b0ceb08960135d83$export$a3cbef418994a664(props) {
|
|
|
4711
4737
|
props.register_closing_animation_(() => Promise.all(closing_animations.map(animation => animation().finished)));
|
|
4712
4738
|
$ca1176b694a6ee2e$export$fe334901e8bebd57();
|
|
4713
4739
|
return [(() => {
|
|
4714
|
-
|
|
4740
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($b0ceb08960135d83$var$_tmpl$3),
|
|
4715
4741
|
_el$2 = _el$.firstChild,
|
|
4716
4742
|
_el$3 = _el$2.nextSibling;
|
|
4717
|
-
|
|
4743
|
+
var _ref$ = $gVhhF$depictaiutilishared.catchify(element => {
|
|
4718
4744
|
const disconnect = (0, $gVhhF$depictaiutilishared.observer).onexists(element, ({
|
|
4719
4745
|
element: element
|
|
4720
4746
|
}) => {
|
|
@@ -4756,7 +4782,7 @@ function $b0ceb08960135d83$export$a3cbef418994a664(props) {
|
|
|
4756
4782
|
severity_: "error",
|
|
4757
4783
|
get children() {
|
|
4758
4784
|
return [(() => {
|
|
4759
|
-
|
|
4785
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($b0ceb08960135d83$var$_tmpl$),
|
|
4760
4786
|
_el$5 = _el$4.firstChild;
|
|
4761
4787
|
$gVhhF$solidjsweb.addEventListener(_el$5, "click", props.actually_close_modal_, true);
|
|
4762
4788
|
$gVhhF$solidjsweb.insert(_el$5, $gVhhF$solidjsweb.createComponent((0, $c77c68e559a1506c$export$3b621d86b1566b2), {
|
|
@@ -4766,7 +4792,7 @@ function $b0ceb08960135d83$export$a3cbef418994a664(props) {
|
|
|
4766
4792
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
4767
4793
|
return _el$4;
|
|
4768
4794
|
})(), (() => {
|
|
4769
|
-
|
|
4795
|
+
var _el$6 = $gVhhF$solidjsweb.getNextElement($b0ceb08960135d83$var$_tmpl$2),
|
|
4770
4796
|
_el$7 = _el$6.firstChild,
|
|
4771
4797
|
_el$8 = _el$7.nextSibling,
|
|
4772
4798
|
_el$10 = _el$8.firstChild,
|
|
@@ -4811,7 +4837,7 @@ function $b0ceb08960135d83$export$a3cbef418994a664(props) {
|
|
|
4811
4837
|
})()];
|
|
4812
4838
|
}
|
|
4813
4839
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
4814
|
-
|
|
4840
|
+
var $a5f3eaa1a24bbc1e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>Failed fetching shop the look recommendations`),
|
|
4815
4841
|
$a5f3eaa1a24bbc1e$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button>`);
|
|
4816
4842
|
const $a5f3eaa1a24bbc1e$var$CANT_FETCH = "Failed fetching shop the look recommendations";
|
|
4817
4843
|
let $a5f3eaa1a24bbc1e$var$setModalShouldBeOpen;
|
|
@@ -4852,7 +4878,7 @@ function $a5f3eaa1a24bbc1e$var$ActualShopTheLookButton(props) {
|
|
|
4852
4878
|
const hasAnythingToShow = $gVhhF$solidjs.createMemo(() => Object.entries(products_to_shop_()?.shop_the_look || {}).length);
|
|
4853
4879
|
const displayStyleValue = $gVhhF$solidjs.createMemo(() => hasAnythingToShow() ? "" : "none");
|
|
4854
4880
|
const button = (() => {
|
|
4855
|
-
|
|
4881
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($a5f3eaa1a24bbc1e$var$_tmpl$2);
|
|
4856
4882
|
$gVhhF$solidjsweb.spread(_el$2, $gVhhF$solidjsweb.mergeProps(() => localProps.buttonAttributes), false, true);
|
|
4857
4883
|
$gVhhF$solidjsweb.insert(_el$2, () => localProps?.buttonAttributes?.children || "Shop the look");
|
|
4858
4884
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
@@ -4932,7 +4958,7 @@ function $f13855d1b951b24a$export$ebdc3711f7e02ccd(what_to_watch) {
|
|
|
4932
4958
|
});
|
|
4933
4959
|
return width;
|
|
4934
4960
|
}
|
|
4935
|
-
|
|
4961
|
+
var $363ce4d1d71041aa$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<h2 class=recs-title>`);
|
|
4936
4962
|
function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
4937
4963
|
recommendations_resource_: recommendations_resource_,
|
|
4938
4964
|
product_card_template_: product_card_template_,
|
|
@@ -4947,7 +4973,7 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
4947
4973
|
return title();
|
|
4948
4974
|
},
|
|
4949
4975
|
get children() {
|
|
4950
|
-
|
|
4976
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($363ce4d1d71041aa$var$_tmpl$);
|
|
4951
4977
|
$gVhhF$solidjsweb.insert(_el$, title);
|
|
4952
4978
|
return _el$;
|
|
4953
4979
|
}
|
|
@@ -4998,7 +5024,7 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
4998
5024
|
children: slider
|
|
4999
5025
|
});
|
|
5000
5026
|
}
|
|
5001
|
-
|
|
5027
|
+
var $72f96c4782db0b1b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict recommendations">`);
|
|
5002
5028
|
function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
|
|
5003
5029
|
return $95837413165cc2df$export$23fca46f3143581f(() => {
|
|
5004
5030
|
const grid_spacing_override = $gVhhF$solidjs.createMemo(() => {
|
|
@@ -5014,7 +5040,7 @@ function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
|
|
|
5014
5040
|
});
|
|
5015
5041
|
const [recommendations_resource_] = $gVhhF$solidjs.createResource(() => props.recommendations, recs => recs);
|
|
5016
5042
|
return (() => {
|
|
5017
|
-
|
|
5043
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($72f96c4782db0b1b$var$_tmpl$);
|
|
5018
5044
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
5019
5045
|
get children() {
|
|
5020
5046
|
return $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
@@ -5144,7 +5170,7 @@ function $0785f4c9947d9b5f$export$f091cbac892643a4(obj) {
|
|
|
5144
5170
|
return Object.fromEntries(mapped_stuff); // FUCK TYPESCRIPT, WHY CAN'T YOU DO THIS CORRECTLY???
|
|
5145
5171
|
}
|
|
5146
5172
|
|
|
5147
|
-
|
|
5173
|
+
var $ee498ec5e7dc2bba$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`);
|
|
5148
5174
|
const $ee498ec5e7dc2bba$var$closing_functions = /*@__PURE__*/new Set();
|
|
5149
5175
|
const $ee498ec5e7dc2bba$export$22970a0140fc759c = /*@__PURE__*/$gVhhF$solidjs.createSignal(false);
|
|
5150
5176
|
function $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
|
|
@@ -5158,7 +5184,7 @@ function $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
|
|
|
5158
5184
|
$gVhhF$depictaiutilishared.catchify(async () => {
|
|
5159
5185
|
const closing_animation_duration = 300; // ms
|
|
5160
5186
|
const element = (() => {
|
|
5161
|
-
|
|
5187
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($ee498ec5e7dc2bba$var$_tmpl$);
|
|
5162
5188
|
$gVhhF$solidjsweb.spread(_el$, more_attributes, false, true);
|
|
5163
5189
|
$gVhhF$solidjsweb.insert(_el$, children);
|
|
5164
5190
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
@@ -5235,7 +5261,7 @@ function $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
|
|
|
5235
5261
|
close_toast_: close_toast_
|
|
5236
5262
|
};
|
|
5237
5263
|
}
|
|
5238
|
-
|
|
5264
|
+
var $47e2cc552c02110c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=statement>`),
|
|
5239
5265
|
$47e2cc552c02110c$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=buttons><button class="restore minor"></button><button class="ok major">`);
|
|
5240
5266
|
function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
5241
5267
|
let previous_sorting;
|
|
@@ -5291,11 +5317,11 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
5291
5317
|
close_after_: 30000,
|
|
5292
5318
|
on_close_: on_toast_hidden,
|
|
5293
5319
|
children: [(() => {
|
|
5294
|
-
|
|
5320
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($47e2cc552c02110c$var$_tmpl$);
|
|
5295
5321
|
$gVhhF$solidjsweb.insert(_el$, statement_accessor);
|
|
5296
5322
|
return _el$;
|
|
5297
5323
|
})(), (() => {
|
|
5298
|
-
|
|
5324
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($47e2cc552c02110c$var$_tmpl$2),
|
|
5299
5325
|
_el$3 = _el$2.firstChild,
|
|
5300
5326
|
_el$4 = _el$3.nextSibling;
|
|
5301
5327
|
$gVhhF$solidjsweb.addEventListener(_el$3, "click", $gVhhF$depictaiutilishared.catchify(() => {
|
|
@@ -5327,7 +5353,7 @@ function $daa394359b026187$export$325f75597868c4f0(stuff) {
|
|
|
5327
5353
|
if (typeof stuff !== "string") return stuff;
|
|
5328
5354
|
return stuff.toLowerCase();
|
|
5329
5355
|
}
|
|
5330
|
-
|
|
5356
|
+
var $235a2771a44e28e9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-all-filters minor">`),
|
|
5331
5357
|
$235a2771a44e28e9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
|
|
5332
5358
|
$235a2771a44e28e9$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> \u{2013} <!$><!/><!$><!/><!$><!/>`),
|
|
5333
5359
|
$235a2771a44e28e9$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span>`);
|
|
@@ -5360,7 +5386,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
|
5360
5386
|
return read_selected_filters().length;
|
|
5361
5387
|
},
|
|
5362
5388
|
get children() {
|
|
5363
|
-
|
|
5389
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($235a2771a44e28e9$var$_tmpl$2),
|
|
5364
5390
|
_el$2 = _el$.firstChild,
|
|
5365
5391
|
_el$4 = _el$2.firstChild,
|
|
5366
5392
|
[_el$5, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$4.nextSibling),
|
|
@@ -5372,7 +5398,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
|
5372
5398
|
slider_ref_: slider => slider.container.classList.add("filter-crumbs"),
|
|
5373
5399
|
get children() {
|
|
5374
5400
|
return [(() => {
|
|
5375
|
-
|
|
5401
|
+
var _el$6 = $gVhhF$solidjsweb.getNextElement($235a2771a44e28e9$var$_tmpl$);
|
|
5376
5402
|
$gVhhF$solidjsweb.addEventListener(_el$6, "click", $gVhhF$depictaiutilishared.catchify(() =>
|
|
5377
5403
|
// click event handlers don't have an owner, carry it over
|
|
5378
5404
|
$gVhhF$solidjs.runWithOwner(owner, () => $47e2cc552c02110c$export$8895d39404bd2bb1({
|
|
@@ -5458,7 +5484,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
|
5458
5484
|
number_of_rendered_selected_filters_items_[1](prev => prev + 1);
|
|
5459
5485
|
$gVhhF$solidjs.onCleanup(() => number_of_rendered_selected_filters_items_[1](prev => prev - 1));
|
|
5460
5486
|
return (() => {
|
|
5461
|
-
|
|
5487
|
+
var _el$9 = $gVhhF$solidjsweb.getNextElement($235a2771a44e28e9$var$_tmpl$3),
|
|
5462
5488
|
_el$24 = _el$9.firstChild,
|
|
5463
5489
|
[_el$25, _co$9] = $gVhhF$solidjsweb.getNextMarker(_el$24.nextSibling),
|
|
5464
5490
|
_el$10 = _el$25.nextSibling,
|
|
@@ -5551,7 +5577,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
|
5551
5577
|
number_of_rendered_selected_filters_items_[1](prev => prev + 1);
|
|
5552
5578
|
$gVhhF$solidjs.onCleanup(() => number_of_rendered_selected_filters_items_[1](prev => prev - 1));
|
|
5553
5579
|
return (() => {
|
|
5554
|
-
|
|
5580
|
+
var _el$26 = $gVhhF$solidjsweb.getNextElement($235a2771a44e28e9$var$_tmpl$4),
|
|
5555
5581
|
_el$28 = _el$26.firstChild,
|
|
5556
5582
|
[_el$29, _co$10] = $gVhhF$solidjsweb.getNextMarker(_el$28.nextSibling),
|
|
5557
5583
|
_el$27 = _el$29.nextSibling;
|
|
@@ -5625,7 +5651,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
|
5625
5651
|
return outmost_element;
|
|
5626
5652
|
}
|
|
5627
5653
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
5628
|
-
|
|
5654
|
+
var $1c63082b2da848ad$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=count>`),
|
|
5629
5655
|
$1c63082b2da848ad$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<label class=input-row><div class=left><input type=checkbox><span class=custom-indicator></span><span class="text line-clamp"></span></div><!$><!/>`);
|
|
5630
5656
|
const $1c63082b2da848ad$export$48513f6b9f8ce62d = props => {
|
|
5631
5657
|
/* don't destructure props, it could have reactive getters */ // It seems like there's no diffing without memos here (since we often just have computations in the getters above that update to the same result often because their dependencies change with unrelated changes often), so put memos here to avoid unneeded DOM changes
|
|
@@ -5636,7 +5662,7 @@ const $1c63082b2da848ad$export$48513f6b9f8ce62d = props => {
|
|
|
5636
5662
|
const is_count_zero = $gVhhF$solidjs.createMemo(() => props.is_count_zero_ || count() === 0);
|
|
5637
5663
|
const id = $gVhhF$depictaiutilishared.make_random_classname();
|
|
5638
5664
|
return (/* We can't use actual margin because ExpandingContainer gets messed up */(() => {
|
|
5639
|
-
|
|
5665
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($1c63082b2da848ad$var$_tmpl$2),
|
|
5640
5666
|
_el$2 = _el$.firstChild,
|
|
5641
5667
|
_el$3 = _el$2.firstChild,
|
|
5642
5668
|
_el$4 = _el$3.nextSibling,
|
|
@@ -5663,33 +5689,33 @@ const $1c63082b2da848ad$export$48513f6b9f8ce62d = props => {
|
|
|
5663
5689
|
return count() != undefined;
|
|
5664
5690
|
},
|
|
5665
5691
|
get children() {
|
|
5666
|
-
|
|
5692
|
+
var _el$6 = $gVhhF$solidjsweb.getNextElement($1c63082b2da848ad$var$_tmpl$);
|
|
5667
5693
|
$gVhhF$solidjsweb.insert(_el$6, count);
|
|
5668
5694
|
return _el$6;
|
|
5669
5695
|
}
|
|
5670
5696
|
}), _el$8, _co$);
|
|
5671
5697
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
5672
|
-
|
|
5698
|
+
var _v$ = !!is_count_zero(),
|
|
5673
5699
|
_v$2 = value(),
|
|
5674
5700
|
_v$3 = !checked() && is_count_zero();
|
|
5675
|
-
_v$ !== _p$.
|
|
5676
|
-
_v$2 !== _p$.
|
|
5677
|
-
_v$3 !== _p$.
|
|
5701
|
+
_v$ !== _p$.e && _el$.classList.toggle("count-0", _p$.e = _v$);
|
|
5702
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$3, "name", _p$.t = _v$2);
|
|
5703
|
+
_v$3 !== _p$.a && $gVhhF$solidjsweb.setProperty(_el$3, "disabled", _p$.a = _v$3);
|
|
5678
5704
|
return _p$;
|
|
5679
5705
|
}, {
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5706
|
+
e: undefined,
|
|
5707
|
+
t: undefined,
|
|
5708
|
+
a: undefined
|
|
5683
5709
|
});
|
|
5684
5710
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$3, "checked", checked()));
|
|
5685
5711
|
return _el$;
|
|
5686
5712
|
})()
|
|
5687
5713
|
);
|
|
5688
5714
|
};
|
|
5689
|
-
|
|
5715
|
+
var $cc43b6428000c4bf$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg><path d="M10.173 5.548H5.5V.875c0-.075-.027-.14-.081-.193S5.301.601 5.226.601s-.14.027-.193.081-.081.118-.081.193v4.673H.274c-.075 0-.14.027-.193.081A.27.27 0 0 0 0 5.827c0 .075.027.14.081.193s.118.081.193.081h4.678v4.673c0 .075.027.14.081.193s.118.081.193.081.14-.027.193-.081.081-.118.081-.193V6.101h4.673a.27.27 0 0 0 .199-.081c.054-.054.08-.118.08-.193a.27.27 0 0 0-.279-.279z"fill=#000>`);
|
|
5690
5716
|
function $cc43b6428000c4bf$export$f21ab0717a89c77f(props) {
|
|
5691
5717
|
return (() => {
|
|
5692
|
-
|
|
5718
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($cc43b6428000c4bf$var$_tmpl$);
|
|
5693
5719
|
$gVhhF$solidjsweb.spread(_el$, $gVhhF$solidjsweb.mergeProps(props, {
|
|
5694
5720
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
5695
5721
|
"width": "11",
|
|
@@ -5699,20 +5725,20 @@ function $cc43b6428000c4bf$export$f21ab0717a89c77f(props) {
|
|
|
5699
5725
|
return _el$;
|
|
5700
5726
|
})();
|
|
5701
5727
|
}
|
|
5702
|
-
|
|
5728
|
+
var $0fe1e7efdf4200d6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button type=button class=expand-filter><!$><!/><span>`);
|
|
5703
5729
|
function $0fe1e7efdf4200d6$export$ca21a16d65b3dd8({
|
|
5704
5730
|
show_extras_: [get_show_extras, set_show_extras],
|
|
5705
5731
|
i18n_: i18n_
|
|
5706
5732
|
}) {
|
|
5707
5733
|
return (() => {
|
|
5708
|
-
|
|
5734
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($0fe1e7efdf4200d6$var$_tmpl$),
|
|
5709
5735
|
_el$3 = _el$.firstChild,
|
|
5710
5736
|
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
5711
5737
|
_el$2 = _el$4.nextSibling;
|
|
5712
5738
|
$gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(() => set_show_extras(p => !p)), true);
|
|
5713
5739
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $cc43b6428000c4bf$export$f21ab0717a89c77f), {}), _el$4, _co$);
|
|
5714
5740
|
$gVhhF$solidjsweb.insert(_el$2, (() => {
|
|
5715
|
-
|
|
5741
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => !!get_show_extras());
|
|
5716
5742
|
return () => _c$() ? i18n_.view_less_() : i18n_.view_more_();
|
|
5717
5743
|
})());
|
|
5718
5744
|
$gVhhF$solidjsweb.effect(() => _el$.classList.toggle("expanded", !!get_show_extras()));
|
|
@@ -5721,7 +5747,7 @@ function $0fe1e7efdf4200d6$export$ca21a16d65b3dd8({
|
|
|
5721
5747
|
})();
|
|
5722
5748
|
}
|
|
5723
5749
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
5724
|
-
|
|
5750
|
+
var $d94869c80e337a3d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=checkboxes><!$><!/><!$><!/>`);
|
|
5725
5751
|
const $d94869c80e337a3d$var$max_visible_without_collapsing = 15;
|
|
5726
5752
|
const $d94869c80e337a3d$var$show_non_collapsible_when_collapsed = 4;
|
|
5727
5753
|
function $d94869c80e337a3d$export$dd948f91abc3a1c4({
|
|
@@ -5830,7 +5856,7 @@ function $d94869c80e337a3d$export$dd948f91abc3a1c4({
|
|
|
5830
5856
|
if (get_show_extras()) await expand();else await collapse();
|
|
5831
5857
|
}));
|
|
5832
5858
|
return (() => {
|
|
5833
|
-
|
|
5859
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($d94869c80e337a3d$var$_tmpl$),
|
|
5834
5860
|
_el$2 = _el$.firstChild,
|
|
5835
5861
|
[_el$3, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$2.nextSibling),
|
|
5836
5862
|
_el$4 = _el$3.nextSibling,
|
|
@@ -5854,7 +5880,7 @@ function $d94869c80e337a3d$export$dd948f91abc3a1c4({
|
|
|
5854
5880
|
if (filter_object.data.length) selected_filters.push(filter_object);
|
|
5855
5881
|
set_selected_filters(selected_filters);
|
|
5856
5882
|
}));
|
|
5857
|
-
|
|
5883
|
+
var _ref$ = form;
|
|
5858
5884
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$) : form = _el$;
|
|
5859
5885
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
5860
5886
|
get each() {
|
|
@@ -5866,7 +5892,7 @@ function $d94869c80e337a3d$export$dd948f91abc3a1c4({
|
|
|
5866
5892
|
return _el$;
|
|
5867
5893
|
})();
|
|
5868
5894
|
}
|
|
5869
|
-
|
|
5895
|
+
var $c1dc1554c1b94233$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=radios>`),
|
|
5870
5896
|
$c1dc1554c1b94233$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=count>`),
|
|
5871
5897
|
$c1dc1554c1b94233$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<label class=input-row><div class=left><input type=radio><span class=custom-indicator></span><!$><!/></div><!$><!/>`);
|
|
5872
5898
|
function $c1dc1554c1b94233$export$430444115f70a734({
|
|
@@ -5886,7 +5912,7 @@ function $c1dc1554c1b94233$export$430444115f70a734({
|
|
|
5886
5912
|
}) => checking_field === field && checking_op === op);
|
|
5887
5913
|
});
|
|
5888
5914
|
return (() => {
|
|
5889
|
-
|
|
5915
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($c1dc1554c1b94233$var$_tmpl$);
|
|
5890
5916
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
5891
5917
|
get each() {
|
|
5892
5918
|
return filter_().meta.values;
|
|
@@ -5901,7 +5927,7 @@ function $c1dc1554c1b94233$export$430444115f70a734({
|
|
|
5901
5927
|
return Array.isArray(v) ? v.join(" - ") : v + "";
|
|
5902
5928
|
});
|
|
5903
5929
|
return (() => {
|
|
5904
|
-
|
|
5930
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($c1dc1554c1b94233$var$_tmpl$3),
|
|
5905
5931
|
_el$3 = _el$2.firstChild,
|
|
5906
5932
|
_el$4 = _el$3.firstChild,
|
|
5907
5933
|
_el$5 = _el$4.nextSibling,
|
|
@@ -5943,7 +5969,7 @@ function $c1dc1554c1b94233$export$430444115f70a734({
|
|
|
5943
5969
|
return count() != undefined;
|
|
5944
5970
|
},
|
|
5945
5971
|
get children() {
|
|
5946
|
-
|
|
5972
|
+
var _el$8 = $gVhhF$solidjsweb.getNextElement($c1dc1554c1b94233$var$_tmpl$2);
|
|
5947
5973
|
$gVhhF$solidjsweb.insert(_el$8, count);
|
|
5948
5974
|
return _el$8;
|
|
5949
5975
|
}
|
|
@@ -5962,7 +5988,7 @@ function $c1dc1554c1b94233$export$430444115f70a734({
|
|
|
5962
5988
|
return _el$;
|
|
5963
5989
|
})();
|
|
5964
5990
|
}
|
|
5965
|
-
|
|
5991
|
+
var $0b7222ba8a8bb72f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=range><div class=input-group><div class=field><input type=number></div><div class=separator>-</div><div class=field><input type=number></div></div><!$><!/><div class=value-text><span class=min><!$><!/><!$><!/><!$><!/></span><span class=max><!$><!/><!$><!/><!$><!/>`),
|
|
5966
5992
|
$0b7222ba8a8bb72f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=slider><div class=progress>`),
|
|
5967
5993
|
$0b7222ba8a8bb72f$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
|
|
5968
5994
|
function $0b7222ba8a8bb72f$export$e0d834a0ad870cda({
|
|
@@ -6051,7 +6077,7 @@ function $0b7222ba8a8bb72f$var$RangeSelector({
|
|
|
6051
6077
|
const post_price = $gVhhF$solidjs.createMemo(() => price_formatting_().post_);
|
|
6052
6078
|
const should_be_disabled_ = $gVhhF$solidjs.createMemo(() => Math.abs(min_() - max_()) < 2);
|
|
6053
6079
|
return (() => {
|
|
6054
|
-
|
|
6080
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($0b7222ba8a8bb72f$var$_tmpl$),
|
|
6055
6081
|
_el$2 = _el$.firstChild,
|
|
6056
6082
|
_el$3 = _el$2.firstChild,
|
|
6057
6083
|
_el$4 = _el$3.firstChild,
|
|
@@ -6075,7 +6101,7 @@ function $0b7222ba8a8bb72f$var$RangeSelector({
|
|
|
6075
6101
|
[_el$20, _co$5] = $gVhhF$solidjsweb.getNextMarker(_el$19.nextSibling),
|
|
6076
6102
|
_el$21 = _el$20.nextSibling,
|
|
6077
6103
|
[_el$22, _co$6] = $gVhhF$solidjsweb.getNextMarker(_el$21.nextSibling);
|
|
6078
|
-
|
|
6104
|
+
var _ref$ = price_input_1;
|
|
6079
6105
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$4) : price_input_1 = _el$4;
|
|
6080
6106
|
$gVhhF$solidjsweb.addEventListener(_el$4, "keydown", $gVhhF$depictaiutilishared.catchify(({
|
|
6081
6107
|
key: key
|
|
@@ -6083,7 +6109,7 @@ function $0b7222ba8a8bb72f$var$RangeSelector({
|
|
|
6083
6109
|
if (key === "Enter") $0b7222ba8a8bb72f$var$set_range_with_sanitation(min_, max_, current_range_, 0, price_input_1);
|
|
6084
6110
|
}), true);
|
|
6085
6111
|
$gVhhF$solidjsweb.addEventListener(_el$4, "blur", $gVhhF$depictaiutilishared.catchify(() => $0b7222ba8a8bb72f$var$set_range_with_sanitation(min_, max_, current_range_, 0, price_input_1)));
|
|
6086
|
-
|
|
6112
|
+
var _ref$2 = price_input_2;
|
|
6087
6113
|
typeof _ref$2 === "function" ? $gVhhF$solidjsweb.use(_ref$2, _el$7) : price_input_2 = _el$7;
|
|
6088
6114
|
$gVhhF$solidjsweb.addEventListener(_el$7, "keydown", $gVhhF$depictaiutilishared.catchify(({
|
|
6089
6115
|
key: key
|
|
@@ -6119,7 +6145,7 @@ function $0b7222ba8a8bb72f$var$RangeSelector({
|
|
|
6119
6145
|
}), _el$20, _co$5);
|
|
6120
6146
|
$gVhhF$solidjsweb.insert(_el$16, post_price, _el$22, _co$6);
|
|
6121
6147
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
6122
|
-
|
|
6148
|
+
var _v$ = !!(min_() === max_()),
|
|
6123
6149
|
_v$2 = should_be_disabled_(),
|
|
6124
6150
|
_v$3 = i18n_.range_filter_low_point_aria_label_(),
|
|
6125
6151
|
_v$4 = min_(),
|
|
@@ -6128,26 +6154,26 @@ function $0b7222ba8a8bb72f$var$RangeSelector({
|
|
|
6128
6154
|
_v$7 = i18n_.range_filter_high_point_aria_label_(),
|
|
6129
6155
|
_v$8 = min_(),
|
|
6130
6156
|
_v$9 = max_();
|
|
6131
|
-
_v$ !== _p$.
|
|
6132
|
-
_v$2 !== _p$.
|
|
6133
|
-
_v$3 !== _p$.
|
|
6134
|
-
_v$4 !== _p$.
|
|
6135
|
-
_v$5 !== _p$.
|
|
6136
|
-
_v$6 !== _p$.
|
|
6137
|
-
_v$7 !== _p$.
|
|
6138
|
-
_v$8 !== _p$.
|
|
6139
|
-
_v$9 !== _p$.
|
|
6157
|
+
_v$ !== _p$.e && _el$.classList.toggle("disabled", _p$.e = _v$);
|
|
6158
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setProperty(_el$4, "disabled", _p$.t = _v$2);
|
|
6159
|
+
_v$3 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$4, "aria-label", _p$.a = _v$3);
|
|
6160
|
+
_v$4 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$4, "min", _p$.o = _v$4);
|
|
6161
|
+
_v$5 !== _p$.i && $gVhhF$solidjsweb.setAttribute(_el$4, "max", _p$.i = _v$5);
|
|
6162
|
+
_v$6 !== _p$.n && $gVhhF$solidjsweb.setProperty(_el$7, "disabled", _p$.n = _v$6);
|
|
6163
|
+
_v$7 !== _p$.s && $gVhhF$solidjsweb.setAttribute(_el$7, "aria-label", _p$.s = _v$7);
|
|
6164
|
+
_v$8 !== _p$.h && $gVhhF$solidjsweb.setAttribute(_el$7, "min", _p$.h = _v$8);
|
|
6165
|
+
_v$9 !== _p$.r && $gVhhF$solidjsweb.setAttribute(_el$7, "max", _p$.r = _v$9);
|
|
6140
6166
|
return _p$;
|
|
6141
6167
|
}, {
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6168
|
+
e: undefined,
|
|
6169
|
+
t: undefined,
|
|
6170
|
+
a: undefined,
|
|
6171
|
+
o: undefined,
|
|
6172
|
+
i: undefined,
|
|
6173
|
+
n: undefined,
|
|
6174
|
+
s: undefined,
|
|
6175
|
+
h: undefined,
|
|
6176
|
+
r: undefined
|
|
6151
6177
|
});
|
|
6152
6178
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$4, "value", get_current_range()[0]));
|
|
6153
6179
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$7, "value", get_current_range()[1]));
|
|
@@ -6228,7 +6254,7 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
6228
6254
|
});
|
|
6229
6255
|
};
|
|
6230
6256
|
return [(() => {
|
|
6231
|
-
|
|
6257
|
+
var _el$25 = $gVhhF$solidjsweb.getNextElement($0b7222ba8a8bb72f$var$_tmpl$2),
|
|
6232
6258
|
_el$26 = _el$25.firstChild;
|
|
6233
6259
|
$gVhhF$solidjsweb.addEventListener(_el$25, "click", $gVhhF$depictaiutilishared.catchify(e => {
|
|
6234
6260
|
const rect = clickable_slider.getBoundingClientRect();
|
|
@@ -6243,13 +6269,13 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
6243
6269
|
const distance_to_upper_point = Math.abs(upper - place_of_click);
|
|
6244
6270
|
if (distance_to_lower_point < distance_to_upper_point) set_current_range([place_of_click, upper]);else set_current_range([lower, place_of_click]);
|
|
6245
6271
|
}), true);
|
|
6246
|
-
|
|
6272
|
+
var _ref$3 = clickable_slider;
|
|
6247
6273
|
typeof _ref$3 === "function" ? $gVhhF$solidjsweb.use(_ref$3, _el$25) : clickable_slider = _el$25;
|
|
6248
6274
|
$gVhhF$solidjsweb.effect(_$p => $gVhhF$solidjsweb.style(_el$26, progress_styling(), _$p));
|
|
6249
6275
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
6250
6276
|
return _el$25;
|
|
6251
6277
|
})(), (() => {
|
|
6252
|
-
|
|
6278
|
+
var _el$27 = $gVhhF$solidjsweb.getNextElement($0b7222ba8a8bb72f$var$_tmpl$3),
|
|
6253
6279
|
_el$28 = _el$27.firstChild,
|
|
6254
6280
|
_el$29 = _el$28.nextSibling;
|
|
6255
6281
|
$gVhhF$solidjsweb.use(el => {
|
|
@@ -6263,7 +6289,7 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
6263
6289
|
}, _el$29);
|
|
6264
6290
|
$gVhhF$solidjsweb.addEventListener(_el$29, "input", $gVhhF$depictaiutilishared.catchify(() => $0b7222ba8a8bb72f$var$set_range_with_sanitation(min_, max_, current_range_, 1, range_input_2, offset_value_calculator_)), true);
|
|
6265
6291
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
6266
|
-
|
|
6292
|
+
var _v$10 = should_be_disabled_(),
|
|
6267
6293
|
_v$11 = i18n_.range_filter_low_point_aria_label_(),
|
|
6268
6294
|
_v$12 = min_(),
|
|
6269
6295
|
_v$13 = max_(),
|
|
@@ -6271,24 +6297,24 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
6271
6297
|
_v$15 = i18n_.range_filter_high_point_aria_label_(),
|
|
6272
6298
|
_v$16 = min_(),
|
|
6273
6299
|
_v$17 = max_();
|
|
6274
|
-
_v$10 !== _p$.
|
|
6275
|
-
_v$11 !== _p$.
|
|
6276
|
-
_v$12 !== _p$.
|
|
6277
|
-
_v$13 !== _p$.
|
|
6278
|
-
_v$14 !== _p$.
|
|
6279
|
-
_v$15 !== _p$.
|
|
6280
|
-
_v$16 !== _p$.
|
|
6281
|
-
_v$17 !== _p$.
|
|
6300
|
+
_v$10 !== _p$.e && $gVhhF$solidjsweb.setProperty(_el$28, "disabled", _p$.e = _v$10);
|
|
6301
|
+
_v$11 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$28, "aria-label", _p$.t = _v$11);
|
|
6302
|
+
_v$12 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$28, "min", _p$.a = _v$12);
|
|
6303
|
+
_v$13 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$28, "max", _p$.o = _v$13);
|
|
6304
|
+
_v$14 !== _p$.i && $gVhhF$solidjsweb.setProperty(_el$29, "disabled", _p$.i = _v$14);
|
|
6305
|
+
_v$15 !== _p$.n && $gVhhF$solidjsweb.setAttribute(_el$29, "aria-label", _p$.n = _v$15);
|
|
6306
|
+
_v$16 !== _p$.s && $gVhhF$solidjsweb.setAttribute(_el$29, "min", _p$.s = _v$16);
|
|
6307
|
+
_v$17 !== _p$.h && $gVhhF$solidjsweb.setAttribute(_el$29, "max", _p$.h = _v$17);
|
|
6282
6308
|
return _p$;
|
|
6283
6309
|
}, {
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6310
|
+
e: undefined,
|
|
6311
|
+
t: undefined,
|
|
6312
|
+
a: undefined,
|
|
6313
|
+
o: undefined,
|
|
6314
|
+
i: undefined,
|
|
6315
|
+
n: undefined,
|
|
6316
|
+
s: undefined,
|
|
6317
|
+
h: undefined
|
|
6292
6318
|
});
|
|
6293
6319
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$28, "value", $gVhhF$solidjs.createMemo(() => {
|
|
6294
6320
|
min_();
|
|
@@ -6315,7 +6341,7 @@ function $0b7222ba8a8bb72f$var$set_range_with_sanitation(min_, max_, current_ran
|
|
|
6315
6341
|
current_range_signal[1](new_value);
|
|
6316
6342
|
}
|
|
6317
6343
|
$gVhhF$solidjsweb.delegateEvents(["keydown", "click", "input"]);
|
|
6318
|
-
|
|
6344
|
+
var $7567511a7c3e4bd7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=morphing-sign role=img><span></span><span>`);
|
|
6319
6345
|
function $7567511a7c3e4bd7$export$e5c2828934226505({
|
|
6320
6346
|
expanded_: expanded_,
|
|
6321
6347
|
i18n_: i18n_
|
|
@@ -6327,12 +6353,12 @@ function $7567511a7c3e4bd7$export$e5c2828934226505({
|
|
|
6327
6353
|
duration: 200
|
|
6328
6354
|
};
|
|
6329
6355
|
const outer_div = (() => {
|
|
6330
|
-
|
|
6356
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($7567511a7c3e4bd7$var$_tmpl$),
|
|
6331
6357
|
_el$2 = _el$.firstChild,
|
|
6332
6358
|
_el$3 = _el$2.nextSibling;
|
|
6333
|
-
|
|
6359
|
+
var _ref$ = first_span;
|
|
6334
6360
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$2) : first_span = _el$2;
|
|
6335
|
-
|
|
6361
|
+
var _ref$2 = second_span;
|
|
6336
6362
|
typeof _ref$2 === "function" ? $gVhhF$solidjsweb.use(_ref$2, _el$3) : second_span = _el$3;
|
|
6337
6363
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setAttribute(_el$, "aria-label", expanded_() ? i18n_.morphing_sign_expanded_aria_label_() : i18n_.morphing_sign_collapsed_aria_label_()));
|
|
6338
6364
|
return _el$;
|
|
@@ -6359,7 +6385,7 @@ function $7567511a7c3e4bd7$export$e5c2828934226505({
|
|
|
6359
6385
|
});
|
|
6360
6386
|
return outer_div;
|
|
6361
6387
|
}
|
|
6362
|
-
|
|
6388
|
+
var $5ea5a82e398f6f44$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=highlighted-part>`);
|
|
6363
6389
|
const $5ea5a82e398f6f44$var$dont_cut_in_between_less_than_characters = 30;
|
|
6364
6390
|
function $5ea5a82e398f6f44$export$e1a98a189fd2c0e7({
|
|
6365
6391
|
content_result_: content_result_,
|
|
@@ -6395,7 +6421,7 @@ function $5ea5a82e398f6f44$export$e1a98a189fd2c0e7({
|
|
|
6395
6421
|
return item().text_;
|
|
6396
6422
|
},
|
|
6397
6423
|
get children() {
|
|
6398
|
-
|
|
6424
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($5ea5a82e398f6f44$var$_tmpl$);
|
|
6399
6425
|
$gVhhF$solidjsweb.insert(_el$, () => item().text_);
|
|
6400
6426
|
return _el$;
|
|
6401
6427
|
}
|
|
@@ -6578,7 +6604,7 @@ function $5ea5a82e398f6f44$export$1b00d74faf266c56(text, matched_strings, loose
|
|
|
6578
6604
|
}
|
|
6579
6605
|
return output;
|
|
6580
6606
|
}
|
|
6581
|
-
|
|
6607
|
+
var $f6efb1605fcb9f39$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span>`),
|
|
6582
6608
|
$f6efb1605fcb9f39$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=highlighted-part>`);
|
|
6583
6609
|
function $f6efb1605fcb9f39$export$8e79c28529dbfa90(props) {
|
|
6584
6610
|
const segmented_text = $gVhhF$solidjs.createMemo(() => {
|
|
@@ -6590,7 +6616,7 @@ function $f6efb1605fcb9f39$export$8e79c28529dbfa90(props) {
|
|
|
6590
6616
|
});
|
|
6591
6617
|
const has_highlights = $gVhhF$solidjs.createMemo(() => segmented_text().some(segment => segment.highlighted_));
|
|
6592
6618
|
return (() => {
|
|
6593
|
-
|
|
6619
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($f6efb1605fcb9f39$var$_tmpl$);
|
|
6594
6620
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
6595
6621
|
get each() {
|
|
6596
6622
|
return segmented_text();
|
|
@@ -6604,7 +6630,7 @@ function $f6efb1605fcb9f39$export$8e79c28529dbfa90(props) {
|
|
|
6604
6630
|
return item().text_;
|
|
6605
6631
|
},
|
|
6606
6632
|
get children() {
|
|
6607
|
-
|
|
6633
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($f6efb1605fcb9f39$var$_tmpl$2);
|
|
6608
6634
|
$gVhhF$solidjsweb.insert(_el$2, () => item().text_);
|
|
6609
6635
|
return _el$2;
|
|
6610
6636
|
}
|
|
@@ -6612,19 +6638,19 @@ function $f6efb1605fcb9f39$export$8e79c28529dbfa90(props) {
|
|
|
6612
6638
|
}
|
|
6613
6639
|
}));
|
|
6614
6640
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
6615
|
-
|
|
6641
|
+
var _v$ = props.text_,
|
|
6616
6642
|
_v$2 = !!has_highlights();
|
|
6617
|
-
_v$ !== _p$.
|
|
6618
|
-
_v$2 !== _p$.
|
|
6643
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "title", _p$.e = _v$);
|
|
6644
|
+
_v$2 !== _p$.t && _el$.classList.toggle("has-match", _p$.t = _v$2);
|
|
6619
6645
|
return _p$;
|
|
6620
6646
|
}, {
|
|
6621
|
-
|
|
6622
|
-
|
|
6647
|
+
e: undefined,
|
|
6648
|
+
t: undefined
|
|
6623
6649
|
});
|
|
6624
6650
|
return _el$;
|
|
6625
6651
|
})();
|
|
6626
6652
|
}
|
|
6627
|
-
|
|
6653
|
+
var $3bdc00a1353c1150$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class="checkboxes hierarchical"><!$><!/><!$><!/>`),
|
|
6628
6654
|
$3bdc00a1353c1150$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=checkbox-details><!$><!/><!$><!/>`),
|
|
6629
6655
|
$3bdc00a1353c1150$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details>`),
|
|
6630
6656
|
$3bdc00a1353c1150$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=category-parent><div class=summary><span class=count></span><!$><!/>`);
|
|
@@ -6769,12 +6795,12 @@ function $3bdc00a1353c1150$export$a32086fa6616eafd({
|
|
|
6769
6795
|
if (show_extras[0]()) await expand();else await collapse();
|
|
6770
6796
|
}));
|
|
6771
6797
|
return (() => {
|
|
6772
|
-
|
|
6798
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($3bdc00a1353c1150$var$_tmpl$),
|
|
6773
6799
|
_el$2 = _el$.firstChild,
|
|
6774
6800
|
[_el$3, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$2.nextSibling),
|
|
6775
6801
|
_el$4 = _el$3.nextSibling,
|
|
6776
6802
|
[_el$5, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$4.nextSibling);
|
|
6777
|
-
|
|
6803
|
+
var _ref$ = form;
|
|
6778
6804
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$) : form = _el$;
|
|
6779
6805
|
$gVhhF$solidjsweb.insert(_el$, () => $3bdc00a1353c1150$var$render_stuff($gVhhF$solidjs.createMemo(() => some_top_level_are_hidden() ? Object.fromEntries(Object.entries(structured_categories()).slice(0, $3bdc00a1353c1150$var$show_non_collapsible_when_collapsed)) : structured_categories()), existing_filter, i18n_, filter_query_), _el$3, _co$);
|
|
6780
6806
|
$gVhhF$solidjsweb.insert(_el$, expanding_container_els, _el$5, _co$2);
|
|
@@ -6800,7 +6826,7 @@ function $3bdc00a1353c1150$var$render_stuff(data, existing_filter, i18n_, filter
|
|
|
6800
6826
|
const value_as_string = $gVhhF$solidjs.createMemo(() => JSON.stringify(value()?.value_));
|
|
6801
6827
|
const label_text = $gVhhF$solidjs.createMemo(() => value()?.name_ || value_as_string());
|
|
6802
6828
|
return (() => {
|
|
6803
|
-
|
|
6829
|
+
var _el$6 = $gVhhF$solidjsweb.getNextElement($3bdc00a1353c1150$var$_tmpl$2),
|
|
6804
6830
|
_el$7 = _el$6.firstChild,
|
|
6805
6831
|
[_el$8, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling),
|
|
6806
6832
|
_el$9 = _el$8.nextSibling,
|
|
@@ -6887,7 +6913,7 @@ function $3bdc00a1353c1150$var$render_stuff(data, existing_filter, i18n_, filter
|
|
|
6887
6913
|
},
|
|
6888
6914
|
get summary_() {
|
|
6889
6915
|
return (() => {
|
|
6890
|
-
|
|
6916
|
+
var _el$12 = $gVhhF$solidjsweb.getNextElement($3bdc00a1353c1150$var$_tmpl$4),
|
|
6891
6917
|
_el$13 = _el$12.firstChild,
|
|
6892
6918
|
_el$14 = _el$13.firstChild,
|
|
6893
6919
|
_el$15 = _el$14.nextSibling,
|
|
@@ -7082,7 +7108,7 @@ function $3bdc00a1353c1150$var$expand_until_choice(data_structure) {
|
|
|
7082
7108
|
}
|
|
7083
7109
|
});
|
|
7084
7110
|
}
|
|
7085
|
-
|
|
7111
|
+
var $0ef1681699140f1a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=checkbox-grid style=position:absolute;z-index:-1;pointer-events:none;opacity:0>`),
|
|
7086
7112
|
$0ef1681699140f1a$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=count-wrapper><span class=count>`),
|
|
7087
7113
|
$0ef1681699140f1a$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button><!$><!/><!$><!/>`);
|
|
7088
7114
|
const $0ef1681699140f1a$var$gap_px = 5;
|
|
@@ -7125,7 +7151,7 @@ const $0ef1681699140f1a$export$414f6a19d38e655c = ({
|
|
|
7125
7151
|
equals: false
|
|
7126
7152
|
});
|
|
7127
7153
|
const shadow_grid = (() => {
|
|
7128
|
-
|
|
7154
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($0ef1681699140f1a$var$_tmpl$);
|
|
7129
7155
|
$gVhhF$solidjsweb.insert(_el$, () => [...shadow_children()]);
|
|
7130
7156
|
return _el$;
|
|
7131
7157
|
})(); // for getting the smallest possible sizes of all the items
|
|
@@ -7160,7 +7186,7 @@ const $0ef1681699140f1a$export$414f6a19d38e655c = ({
|
|
|
7160
7186
|
const label = $gVhhF$solidjs.createMemo(() => value().name_ || value().value_ + "");
|
|
7161
7187
|
const count_zero = $gVhhF$solidjs.createMemo(() => value().count_ === 0);
|
|
7162
7188
|
return (() => {
|
|
7163
|
-
|
|
7189
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($0ef1681699140f1a$var$_tmpl$3),
|
|
7164
7190
|
_el$5 = _el$2.firstChild,
|
|
7165
7191
|
[_el$6, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling),
|
|
7166
7192
|
_el$7 = _el$6.nextSibling,
|
|
@@ -7221,7 +7247,7 @@ const $0ef1681699140f1a$export$414f6a19d38e655c = ({
|
|
|
7221
7247
|
return value().count_ != undefined;
|
|
7222
7248
|
},
|
|
7223
7249
|
get children() {
|
|
7224
|
-
|
|
7250
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($0ef1681699140f1a$var$_tmpl$2),
|
|
7225
7251
|
_el$4 = _el$3.firstChild;
|
|
7226
7252
|
$gVhhF$solidjsweb.insert(_el$4, () => value().count_);
|
|
7227
7253
|
return _el$3;
|
|
@@ -7311,7 +7337,7 @@ function $0ef1681699140f1a$var$adjust_sizes(container_width, sizes, set_cols_at_
|
|
|
7311
7337
|
overrides: column_to_row_result
|
|
7312
7338
|
}]]);
|
|
7313
7339
|
}
|
|
7314
|
-
|
|
7340
|
+
var $b51a2b8b9355e66c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=checkbox-color><!$><!/><!$><!/>`);
|
|
7315
7341
|
const $b51a2b8b9355e66c$var$max_visible_without_collapsing = 30;
|
|
7316
7342
|
const $b51a2b8b9355e66c$var$show_non_collapsible_when_collapsed = 8;
|
|
7317
7343
|
function $b51a2b8b9355e66c$export$82ed4b28ecb67608({
|
|
@@ -7450,7 +7476,7 @@ function $b51a2b8b9355e66c$export$82ed4b28ecb67608({
|
|
|
7450
7476
|
if (get_show_extras()) await expand();else await collapse();
|
|
7451
7477
|
}));
|
|
7452
7478
|
return (() => {
|
|
7453
|
-
|
|
7479
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($b51a2b8b9355e66c$var$_tmpl$),
|
|
7454
7480
|
_el$2 = _el$.firstChild,
|
|
7455
7481
|
[_el$3, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$2.nextSibling),
|
|
7456
7482
|
_el$4 = _el$3.nextSibling,
|
|
@@ -7474,7 +7500,7 @@ function $b51a2b8b9355e66c$export$82ed4b28ecb67608({
|
|
|
7474
7500
|
if (filter_object.data.length) selected_filters.push(filter_object);
|
|
7475
7501
|
set_selected_filters(selected_filters);
|
|
7476
7502
|
}));
|
|
7477
|
-
|
|
7503
|
+
var _ref$ = form;
|
|
7478
7504
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$) : form = _el$;
|
|
7479
7505
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
7480
7506
|
get each() {
|
|
@@ -7508,16 +7534,16 @@ var $a636ca15e3d3570d$export$2e2bcd8739ae039 = {
|
|
|
7508
7534
|
"checkbox-grid": (0, $0ef1681699140f1a$export$414f6a19d38e655c),
|
|
7509
7535
|
"checkbox-color": (0, $b51a2b8b9355e66c$export$82ed4b28ecb67608)
|
|
7510
7536
|
};
|
|
7511
|
-
|
|
7537
|
+
var $0f4656eaf6c22d1d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=16.8 height=14><path d="M4.617 12.738a.48.48 0 0 1-.164-.027c-.051-.023-.094-.055-.129-.098L.125 8.414A.39.39 0 0 1 0 8.117c0-.113.039-.211.125-.293s.18-.125.293-.125.215.043.297.125l3.902 3.902L16.086.262c.082-.082.18-.125.297-.125s.211.043.293.125.125.184.125.301-.043.215-.125.297L4.914 12.613c-.039.043-.086.078-.141.098s-.102.027-.156.027zm0 0">`);
|
|
7512
7538
|
function $0f4656eaf6c22d1d$export$f2ca6fc699ca1fb4(props = {}) {
|
|
7513
7539
|
return (() => {
|
|
7514
|
-
|
|
7540
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($0f4656eaf6c22d1d$var$_tmpl$);
|
|
7515
7541
|
$gVhhF$solidjsweb.spread(_el$, props, true, true);
|
|
7516
7542
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
7517
7543
|
return _el$;
|
|
7518
7544
|
})();
|
|
7519
7545
|
}
|
|
7520
|
-
|
|
7546
|
+
var $b064919833b3e80b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=show-selected aria-hidden=true><span></span><!$><!/>`);
|
|
7521
7547
|
function $b064919833b3e80b$export$53c59af873b303c9({
|
|
7522
7548
|
selected_filters_in_group_: selected_filters_in_group_,
|
|
7523
7549
|
i18n_: {
|
|
@@ -7573,7 +7599,7 @@ function $b064919833b3e80b$export$53c59af873b303c9({
|
|
|
7573
7599
|
return size + "";
|
|
7574
7600
|
}));
|
|
7575
7601
|
return (() => {
|
|
7576
|
-
|
|
7602
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($b064919833b3e80b$var$_tmpl$),
|
|
7577
7603
|
_el$2 = _el$.firstChild,
|
|
7578
7604
|
_el$3 = _el$2.nextSibling,
|
|
7579
7605
|
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling);
|
|
@@ -7637,7 +7663,7 @@ function $8c939a05b87fbbbc$export$ab34afce88557c0e(props) {
|
|
|
7637
7663
|
}));
|
|
7638
7664
|
return is_open;
|
|
7639
7665
|
}
|
|
7640
|
-
|
|
7666
|
+
var $47d8681015b71901$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-in-filters><input type=text class=query><!$><!/><button class=clear-filter-search>`);
|
|
7641
7667
|
const $47d8681015b71901$var$min_items_to_enable_filter_searching = 15; // For checkbox color and checkbox grid we 2x this
|
|
7642
7668
|
function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_) {
|
|
7643
7669
|
const [filter_query_, set_filter_query_] = $gVhhF$solidjs.createSignal();
|
|
@@ -7659,7 +7685,7 @@ function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
7659
7685
|
return enable_searchability();
|
|
7660
7686
|
},
|
|
7661
7687
|
get children() {
|
|
7662
|
-
|
|
7688
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($47d8681015b71901$var$_tmpl$),
|
|
7663
7689
|
_el$2 = _el$.firstChild,
|
|
7664
7690
|
_el$4 = _el$2.nextSibling,
|
|
7665
7691
|
[_el$5, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$4.nextSibling),
|
|
@@ -7676,14 +7702,14 @@ function $47d8681015b71901$export$4b2c5292ffe0c5dd(filter_array_, section, i18n_
|
|
|
7676
7702
|
height: "12"
|
|
7677
7703
|
}));
|
|
7678
7704
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
7679
|
-
|
|
7705
|
+
var _v$ = i18n_.search_a_filter_()(section),
|
|
7680
7706
|
_v$2 = filter_query_() ? "" : "none";
|
|
7681
|
-
_v$ !== _p$.
|
|
7682
|
-
_v$2 !== _p$.
|
|
7707
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$2, "placeholder", _p$.e = _v$);
|
|
7708
|
+
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$3.style.setProperty("display", _v$2) : _el$3.style.removeProperty("display"));
|
|
7683
7709
|
return _p$;
|
|
7684
7710
|
}, {
|
|
7685
|
-
|
|
7686
|
-
|
|
7711
|
+
e: undefined,
|
|
7712
|
+
t: undefined
|
|
7687
7713
|
});
|
|
7688
7714
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$2, "value", filter_query_() || ""));
|
|
7689
7715
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
@@ -7785,7 +7811,7 @@ function $47d8681015b71901$var$find_str_arr_in_str_arr_arr(operation, haystack,
|
|
|
7785
7811
|
return haystack[operation](value => value.length === needle.length && value.every((item, index) => item === needle[index]));
|
|
7786
7812
|
}
|
|
7787
7813
|
$gVhhF$solidjsweb.delegateEvents(["input", "click"]);
|
|
7788
|
-
|
|
7814
|
+
var $aff9a96d30ed3563$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-collapsible>`),
|
|
7789
7815
|
$aff9a96d30ed3563$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=clear-group><!$><!/><span>`),
|
|
7790
7816
|
$aff9a96d30ed3563$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=view-more-clear><!$><!/><!$><!/>`),
|
|
7791
7817
|
$aff9a96d30ed3563$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-collapsible-body><div class=filter-part><!$><!/><!$><!/></div><!$><!/>`),
|
|
@@ -7803,7 +7829,7 @@ function $aff9a96d30ed3563$export$3f1a388cc0d8fed7(props) {
|
|
|
7803
7829
|
return Array.from({
|
|
7804
7830
|
length: 5
|
|
7805
7831
|
}).map(() => (() => {
|
|
7806
|
-
|
|
7832
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$);
|
|
7807
7833
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
7808
7834
|
width: "100%",
|
|
7809
7835
|
height: "50px"
|
|
@@ -7866,7 +7892,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
7866
7892
|
is_open_: is_open,
|
|
7867
7893
|
get details_() {
|
|
7868
7894
|
return (() => {
|
|
7869
|
-
|
|
7895
|
+
var _el$19 = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$5);
|
|
7870
7896
|
$gVhhF$solidjsweb.use(element => set_get_details_width(() => $f13855d1b951b24a$export$ebdc3711f7e02ccd(element)), _el$19);
|
|
7871
7897
|
$gVhhF$solidjsweb.setAttribute(_el$19, "data-group-title", section_);
|
|
7872
7898
|
return _el$19;
|
|
@@ -7874,7 +7900,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
7874
7900
|
},
|
|
7875
7901
|
get summary_() {
|
|
7876
7902
|
return (() => {
|
|
7877
|
-
|
|
7903
|
+
var _el$20 = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$6),
|
|
7878
7904
|
_el$21 = _el$20.firstChild,
|
|
7879
7905
|
_el$22 = _el$21.firstChild,
|
|
7880
7906
|
_el$23 = _el$22.nextSibling,
|
|
@@ -7908,7 +7934,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
7908
7934
|
})();
|
|
7909
7935
|
},
|
|
7910
7936
|
get children() {
|
|
7911
|
-
|
|
7937
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$4),
|
|
7912
7938
|
_el$3 = _el$2.firstChild,
|
|
7913
7939
|
_el$4 = _el$3.firstChild,
|
|
7914
7940
|
[_el$5, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$4.nextSibling),
|
|
@@ -7956,7 +7982,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
7956
7982
|
})();
|
|
7957
7983
|
},
|
|
7958
7984
|
get children() {
|
|
7959
|
-
|
|
7985
|
+
var _el$8 = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$3),
|
|
7960
7986
|
_el$13 = _el$8.firstChild,
|
|
7961
7987
|
[_el$14, _co$4] = $gVhhF$solidjsweb.getNextMarker(_el$13.nextSibling),
|
|
7962
7988
|
_el$15 = _el$14.nextSibling,
|
|
@@ -7967,7 +7993,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
7967
7993
|
return a_filter_is_selected();
|
|
7968
7994
|
},
|
|
7969
7995
|
get children() {
|
|
7970
|
-
|
|
7996
|
+
var _el$9 = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$2),
|
|
7971
7997
|
_el$11 = _el$9.firstChild,
|
|
7972
7998
|
[_el$12, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$11.nextSibling),
|
|
7973
7999
|
_el$10 = _el$12.nextSibling;
|
|
@@ -8003,7 +8029,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
8003
8029
|
return untogglable_filters()?.length;
|
|
8004
8030
|
},
|
|
8005
8031
|
get children() {
|
|
8006
|
-
|
|
8032
|
+
var _el$28 = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$7);
|
|
8007
8033
|
$gVhhF$solidjsweb.insert(_el$28, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
8008
8034
|
get each() {
|
|
8009
8035
|
return untogglable_filters();
|
|
@@ -8036,7 +8062,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
|
|
|
8036
8062
|
return $gVhhF$solidjsweb.memo(() => !!!props.are_in_modal_ /* modal has its own clear button */)() && props.selected_filters_[0]()?.length;
|
|
8037
8063
|
},
|
|
8038
8064
|
get children() {
|
|
8039
|
-
|
|
8065
|
+
var _el$29 = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$8);
|
|
8040
8066
|
$gVhhF$solidjsweb.addEventListener(_el$29, "click", $gVhhF$depictaiutilishared.catchify(() => $47e2cc552c02110c$export$8895d39404bd2bb1({
|
|
8041
8067
|
user_triggered_: true,
|
|
8042
8068
|
selected_filters_: props.selected_filters_,
|
|
@@ -8677,7 +8703,7 @@ function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true, over
|
|
|
8677
8703
|
$gVhhF$solidjs.onCleanup(() => listen_on.removeEventListener(event, catchified_handler));
|
|
8678
8704
|
}
|
|
8679
8705
|
}
|
|
8680
|
-
|
|
8706
|
+
var $401aee5f33dca9e2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=scroll-status style=display:none><span class=text><b></b> \u{2013} <b></b> <!$><!/> <b>`);
|
|
8681
8707
|
function $401aee5f33dca9e2$export$83fd5de5504a7a67({
|
|
8682
8708
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
8683
8709
|
first_result_in_viewport_: [get_first_result_in_viewport],
|
|
@@ -8787,7 +8813,7 @@ function $401aee5f33dca9e2$export$83fd5de5504a7a67({
|
|
|
8787
8813
|
}));
|
|
8788
8814
|
});
|
|
8789
8815
|
return (() => {
|
|
8790
|
-
|
|
8816
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($401aee5f33dca9e2$var$_tmpl$),
|
|
8791
8817
|
_el$2 = _el$.firstChild,
|
|
8792
8818
|
_el$3 = _el$2.firstChild,
|
|
8793
8819
|
_el$4 = _el$3.nextSibling,
|
|
@@ -8797,7 +8823,7 @@ function $401aee5f33dca9e2$export$83fd5de5504a7a67({
|
|
|
8797
8823
|
[_el$12, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$11.nextSibling),
|
|
8798
8824
|
_el$9 = _el$12.nextSibling,
|
|
8799
8825
|
_el$10 = _el$9.nextSibling;
|
|
8800
|
-
|
|
8826
|
+
var _ref$ = element;
|
|
8801
8827
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$) : element = _el$;
|
|
8802
8828
|
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
|
|
8803
8829
|
get price_() {
|
|
@@ -8820,7 +8846,7 @@ function $401aee5f33dca9e2$export$83fd5de5504a7a67({
|
|
|
8820
8846
|
return _el$;
|
|
8821
8847
|
})();
|
|
8822
8848
|
}
|
|
8823
|
-
|
|
8849
|
+
var $0d0b172488865048$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=hint href=javascript:void(0)>`),
|
|
8824
8850
|
$0d0b172488865048$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=no-results><div class=text></div><!$><!/>`);
|
|
8825
8851
|
function $0d0b172488865048$export$ef6006467f04ee41({
|
|
8826
8852
|
i18n_: i18n_,
|
|
@@ -8830,7 +8856,7 @@ function $0d0b172488865048$export$ef6006467f04ee41({
|
|
|
8830
8856
|
}) {
|
|
8831
8857
|
const root = $gVhhF$solidjs.getOwner();
|
|
8832
8858
|
return [(() => {
|
|
8833
|
-
|
|
8859
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($0d0b172488865048$var$_tmpl$2),
|
|
8834
8860
|
_el$2 = _el$.firstChild,
|
|
8835
8861
|
_el$4 = _el$2.nextSibling,
|
|
8836
8862
|
[_el$5, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$4.nextSibling);
|
|
@@ -8840,7 +8866,7 @@ function $0d0b172488865048$export$ef6006467f04ee41({
|
|
|
8840
8866
|
return Object.values(selected_filters_[0]()).length;
|
|
8841
8867
|
},
|
|
8842
8868
|
get children() {
|
|
8843
|
-
|
|
8869
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($0d0b172488865048$var$_tmpl$);
|
|
8844
8870
|
$gVhhF$solidjsweb.addEventListener(_el$3, "click", $gVhhF$depictaiutilishared.catchify(() => $gVhhF$solidjs.runWithOwner(root, () => $47e2cc552c02110c$export$8895d39404bd2bb1({
|
|
8845
8871
|
user_triggered_: true,
|
|
8846
8872
|
selected_filters_: selected_filters_,
|
|
@@ -9042,13 +9068,13 @@ function $ac167f6af6a48fc3$export$a1fd619a4743ca08({
|
|
|
9042
9068
|
})
|
|
9043
9069
|
});
|
|
9044
9070
|
}
|
|
9045
|
-
|
|
9071
|
+
var $75777da1687ba3f6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
9046
9072
|
$75777da1687ba3f6$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<style type=text/css>`);
|
|
9047
9073
|
const $75777da1687ba3f6$export$c500183c31c2b22e = "--spans-columns";
|
|
9048
9074
|
function $75777da1687ba3f6$export$ab6b147eec64fea5(props) {
|
|
9049
9075
|
const container_class = "x" + $gVhhF$solidjs.createUniqueId();
|
|
9050
9076
|
const container_element_ = (() => {
|
|
9051
|
-
|
|
9077
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($75777da1687ba3f6$var$_tmpl$);
|
|
9052
9078
|
$gVhhF$solidjsweb.spread(_el$, $gVhhF$solidjsweb.mergeProps(() => props.element_attributes, {
|
|
9053
9079
|
"classList": {
|
|
9054
9080
|
[container_class]: true
|
|
@@ -9085,7 +9111,7 @@ function $75777da1687ba3f6$export$e2f22da34aaf310a(props, container_element, ins
|
|
|
9085
9111
|
});
|
|
9086
9112
|
const get_styling = $gVhhF$solidjs.createMemo(() => base_styling() + col_styling());
|
|
9087
9113
|
const style_element = (() => {
|
|
9088
|
-
|
|
9114
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($75777da1687ba3f6$var$_tmpl$2);
|
|
9089
9115
|
$gVhhF$solidjsweb.insert(_el$2, get_styling);
|
|
9090
9116
|
return _el$2;
|
|
9091
9117
|
})(); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
|
|
@@ -9174,7 +9200,7 @@ function $055384b985678603$export$a79e666719b3647c(cols_at_size_) {
|
|
|
9174
9200
|
});
|
|
9175
9201
|
return n_cols_currently_showing;
|
|
9176
9202
|
}
|
|
9177
|
-
|
|
9203
|
+
var $d92f338ba8f9da9b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=content-block-wrapper>`);
|
|
9178
9204
|
function $d92f338ba8f9da9b$export$791ef57e62e21c3f({
|
|
9179
9205
|
content_blocks_: incoming_content_blocks,
|
|
9180
9206
|
cols_at_size_: cols_at_size_,
|
|
@@ -9300,26 +9326,26 @@ function $d92f338ba8f9da9b$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
9300
9326
|
return !rendering_delayed();
|
|
9301
9327
|
},
|
|
9302
9328
|
get children() {
|
|
9303
|
-
|
|
9329
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($d92f338ba8f9da9b$var$_tmpl$);
|
|
9304
9330
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent($d92f338ba8f9da9b$var$RenderContent, {
|
|
9305
9331
|
get content() {
|
|
9306
9332
|
return block.content;
|
|
9307
9333
|
}
|
|
9308
9334
|
}));
|
|
9309
9335
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
9310
|
-
|
|
9336
|
+
var _v$ = {
|
|
9311
9337
|
[(0, $75777da1687ba3f6$export$c500183c31c2b22e)]: final_span_columns()
|
|
9312
9338
|
},
|
|
9313
9339
|
_v$2 = `span ${final_span_columns()}`,
|
|
9314
9340
|
_v$3 = `span ${final_span_rows()}`;
|
|
9315
|
-
_p$.
|
|
9316
|
-
_v$2 !== _p$.
|
|
9317
|
-
_v$3 !== _p$.
|
|
9341
|
+
_p$.e = $gVhhF$solidjsweb.style(_el$, _v$, _p$.e);
|
|
9342
|
+
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$.style.setProperty("grid-column", _v$2) : _el$.style.removeProperty("grid-column"));
|
|
9343
|
+
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$.style.setProperty("grid-row", _v$3) : _el$.style.removeProperty("grid-row"));
|
|
9318
9344
|
return _p$;
|
|
9319
9345
|
}, {
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9346
|
+
e: undefined,
|
|
9347
|
+
t: undefined,
|
|
9348
|
+
a: undefined
|
|
9323
9349
|
});
|
|
9324
9350
|
return _el$;
|
|
9325
9351
|
}
|
|
@@ -9364,7 +9390,7 @@ function $d92f338ba8f9da9b$var$RenderContent(props) {
|
|
|
9364
9390
|
children: resource
|
|
9365
9391
|
});
|
|
9366
9392
|
}
|
|
9367
|
-
|
|
9393
|
+
var $fe76fb463cc60b89$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=PLP-results><!$><!/><!$><!/>`);
|
|
9368
9394
|
function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
9369
9395
|
plp_results_: plp_results_,
|
|
9370
9396
|
depict_api_: depict_api_,
|
|
@@ -9396,7 +9422,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
9396
9422
|
if (!is_loading_() && is_at_end) all_products_loaded_[1](true);
|
|
9397
9423
|
});
|
|
9398
9424
|
return (() => {
|
|
9399
|
-
|
|
9425
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($fe76fb463cc60b89$var$_tmpl$),
|
|
9400
9426
|
_el$2 = _el$.firstChild,
|
|
9401
9427
|
[_el$3, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$2.nextSibling),
|
|
9402
9428
|
_el$4 = _el$3.nextSibling,
|
|
@@ -9634,7 +9660,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
9634
9660
|
return _el$;
|
|
9635
9661
|
})();
|
|
9636
9662
|
}
|
|
9637
|
-
|
|
9663
|
+
var $be89be42ce9ea60f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=sorting-attributes>`),
|
|
9638
9664
|
$be89be42ce9ea60f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=sorting-direction>`),
|
|
9639
9665
|
$be89be42ce9ea60f$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`),
|
|
9640
9666
|
$be89be42ce9ea60f$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><label class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`);
|
|
@@ -9651,11 +9677,11 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
9651
9677
|
},
|
|
9652
9678
|
get fallback() {
|
|
9653
9679
|
return (() => {
|
|
9654
|
-
|
|
9680
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($be89be42ce9ea60f$var$_tmpl$);
|
|
9655
9681
|
$gVhhF$solidjsweb.insert(_el$3, () => Array.from({
|
|
9656
9682
|
length: 4
|
|
9657
9683
|
}).map(() => (() => {
|
|
9658
|
-
|
|
9684
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($be89be42ce9ea60f$var$_tmpl$3),
|
|
9659
9685
|
_el$5 = _el$4.firstChild,
|
|
9660
9686
|
_el$6 = _el$5.firstChild,
|
|
9661
9687
|
_el$7 = _el$6.nextSibling,
|
|
@@ -9673,7 +9699,7 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
9673
9699
|
},
|
|
9674
9700
|
get children() {
|
|
9675
9701
|
return [(() => {
|
|
9676
|
-
|
|
9702
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($be89be42ce9ea60f$var$_tmpl$);
|
|
9677
9703
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
9678
9704
|
get each() {
|
|
9679
9705
|
return available_sortings_()?.filter?.(sorting => sorting.meta?.title) || [];
|
|
@@ -9687,7 +9713,7 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
9687
9713
|
return sort.field === item().field && (sort.order === item().order || item().meta.values?.length > 1);
|
|
9688
9714
|
});
|
|
9689
9715
|
return (/* wrapping div for flex gap polyfill scss mixin */(() => {
|
|
9690
|
-
|
|
9716
|
+
var _el$10 = $gVhhF$solidjsweb.getNextElement($be89be42ce9ea60f$var$_tmpl$4),
|
|
9691
9717
|
_el$11 = _el$10.firstChild,
|
|
9692
9718
|
_el$12 = _el$11.firstChild,
|
|
9693
9719
|
_el$13 = _el$12.nextSibling,
|
|
@@ -9708,7 +9734,7 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
9708
9734
|
return meta_of_currently_selected_sorting_()?.values?.length > 1;
|
|
9709
9735
|
},
|
|
9710
9736
|
get children() {
|
|
9711
|
-
|
|
9737
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($be89be42ce9ea60f$var$_tmpl$2);
|
|
9712
9738
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
9713
9739
|
get each() {
|
|
9714
9740
|
return meta_of_currently_selected_sorting_()?.values;
|
|
@@ -9716,7 +9742,7 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
9716
9742
|
children: (order_value, index) => {
|
|
9717
9743
|
const is_checked = $gVhhF$solidjs.createMemo(() => get_current_sorting()?.order === order_value());
|
|
9718
9744
|
return (() => {
|
|
9719
|
-
|
|
9745
|
+
var _el$16 = $gVhhF$solidjsweb.getNextElement($be89be42ce9ea60f$var$_tmpl$4),
|
|
9720
9746
|
_el$17 = _el$16.firstChild,
|
|
9721
9747
|
_el$18 = _el$17.firstChild,
|
|
9722
9748
|
_el$19 = _el$18.nextSibling,
|
|
@@ -9739,25 +9765,25 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
9739
9765
|
}
|
|
9740
9766
|
});
|
|
9741
9767
|
}
|
|
9742
|
-
|
|
9768
|
+
var $f958b5ac0e4a78da$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 class=sort-icon><path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zM9.449 3.5H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h1.398c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-1.051-.699h.703v-.699h-.703zm0 0"></path><path d="M10.852 6.301H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h2.801a.35.35 0 0 1 .348.352v1.398a.35.35 0 0 1-.348.352zm-2.453-.699H10.5v-.703H8.398zm3.851 3.5H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h4.199c.191 0 .352.156.352.352V8.75c0 .191-.16.352-.352.352zm-3.852-.703h3.5V7.7h-3.5zm5.25 3.499H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h5.598a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-5.25-.699H13.3V10.5H8.398zm0 0">`);
|
|
9743
9769
|
function $f958b5ac0e4a78da$export$da32f7add8a22e86(props = {}) {
|
|
9744
9770
|
return (() => {
|
|
9745
|
-
|
|
9771
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($f958b5ac0e4a78da$var$_tmpl$);
|
|
9746
9772
|
$gVhhF$solidjsweb.spread(_el$, props, true, true);
|
|
9747
9773
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
9748
9774
|
return _el$;
|
|
9749
9775
|
})();
|
|
9750
9776
|
}
|
|
9751
|
-
|
|
9777
|
+
var $046db47e0326c715$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 class=sort-icon><path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zm3.25 1.644H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h1.398a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-1.051-.699h.703V10.5h-.703zm2.454-2.097H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h2.801a.35.35 0 0 1 .348.352V8.75c0 .191-.156.352-.348.352zm-2.453-.703H10.5V7.7H8.398zm3.851-2.098H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h4.199c.191 0 .352.156.352.352v1.398c0 .195-.16.352-.352.352zm-3.852-.699h3.5v-.703h-3.5zm5.25-2.102H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h5.598c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-5.25-.699H13.3v-.699H8.398zm0 0">`);
|
|
9752
9778
|
function $046db47e0326c715$export$d10e63059ddb9fd4(props = {}) {
|
|
9753
9779
|
return (() => {
|
|
9754
|
-
|
|
9780
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($046db47e0326c715$var$_tmpl$);
|
|
9755
9781
|
$gVhhF$solidjsweb.spread(_el$, props, true, true);
|
|
9756
9782
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
9757
9783
|
return _el$;
|
|
9758
9784
|
})();
|
|
9759
9785
|
}
|
|
9760
|
-
|
|
9786
|
+
var $02215fefc955d01e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=15 class=filter-icon><path d="M1.75 14.697c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V8.75c0-.096.034-.178.103-.246s.15-.103.246-.103.178.034.246.103.103.15.103.246v5.599c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-9.796c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-3.5c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103.103.153.103.253v3.5c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.796H1.053c-.292 0-.54-.103-.745-.308S0 6.938 0 6.651s.103-.54.308-.745.453-.308.745-.308h1.395c.292 0 .54.103.745.308s.308.453.308.745-.103.533-.308.738-.453.308-.745.308zM1.053 6.303c-.1 0-.185.034-.253.103s-.103.15-.103.246.034.178.103.246S.952 7 1.053 7h1.395c.1 0 .185-.034.253-.103s.103-.15.103-.246-.034-.178-.103-.246-.153-.103-.253-.103H1.053zm5.599 8.395c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-2.796c0-.1.034-.184.103-.253s.15-.102.246-.102.178.034.246.102.103.153.103.253v2.796c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-7c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V1.053c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103S7 .952 7 1.053v6.296c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803H5.947c-.287 0-.533-.102-.738-.308s-.308-.453-.308-.745.103-.533.308-.738.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.451.308.738-.103.54-.308.745-.453.308-.745.308zM5.947 9.099c-.096 0-.178.034-.246.103s-.103.15-.103.246.034.185.103.253.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.103-.153.103-.253-.034-.178-.103-.246-.15-.103-.246-.103H5.947zm5.605 5.599c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246v-7c0-.096.034-.178.102-.246S11.453 7 11.553 7s.178.034.246.103.103.15.103.246v7c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-11.197c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246V1.053c0-.1.034-.185.102-.253s.153-.103.253-.103.178.034.246.103.103.153.103.253v2.099c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803h-1.401c-.287 0-.533-.103-.738-.308s-.308-.453-.308-.745.103-.54.308-.745.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.453.308.745-.102.54-.308.745-.453.308-.745.308zm-1.401-1.401c-.096 0-.178.034-.246.103s-.102.15-.102.246.034.178.102.246.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.102-.15.102-.246-.034-.178-.102-.246-.15-.103-.246-.103h-1.401z">`);
|
|
9761
9787
|
function $02215fefc955d01e$export$28f6150e232898de() {
|
|
9762
9788
|
return $gVhhF$solidjsweb.getNextElement($02215fefc955d01e$var$_tmpl$);
|
|
9763
9789
|
}
|
|
@@ -9769,7 +9795,7 @@ function $02215fefc955d01e$export$28f6150e232898de() {
|
|
|
9769
9795
|
function $7e91f9b0c6d56424$export$50f68cc9882e36a4(args_for_filtering) {
|
|
9770
9796
|
return args_for_filtering.available_filters_()?.length === 0 && !args_for_filtering.selected_filters_[0]()?.length;
|
|
9771
9797
|
}
|
|
9772
|
-
|
|
9798
|
+
var $1872ceb56ede7a52$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear minor">`),
|
|
9773
9799
|
$1872ceb56ede7a52$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp"id=depict-filter-sort-mobile-modal-container><div class=depict-filter-sort-modal-backdrop></div><button class=dismiss-modal></button><div class=filter-sort-modal><div class=body><!$><!/><!$><!/></div><div class=bottom-row><!$><!/><button class="show-results major">`),
|
|
9774
9800
|
$1872ceb56ede7a52$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details class=sorting>`),
|
|
9775
9801
|
$1872ceb56ede7a52$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=sort-filter-summary><div class=summary><div class=left-els><!$><!/><span></span></div><!$><!/>`),
|
|
@@ -9833,7 +9859,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
9833
9859
|
});
|
|
9834
9860
|
$gVhhF$solidjs.onCleanup(resolve_cleanup_promise);
|
|
9835
9861
|
return [(() => {
|
|
9836
|
-
|
|
9862
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($1872ceb56ede7a52$var$_tmpl$2),
|
|
9837
9863
|
_el$2 = _el$.firstChild,
|
|
9838
9864
|
_el$3 = _el$2.nextSibling,
|
|
9839
9865
|
_el$4 = _el$3.nextSibling,
|
|
@@ -9968,7 +9994,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
9968
9994
|
set_modal_style("transform", "translateY(0)");
|
|
9969
9995
|
}));
|
|
9970
9996
|
}, _el$4);
|
|
9971
|
-
|
|
9997
|
+
var _ref$ = modal_body;
|
|
9972
9998
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$5) : modal_body = _el$5;
|
|
9973
9999
|
$gVhhF$solidjsweb.insert(_el$5, $gVhhF$solidjsweb.createComponent((0, $a69e505a12a77874$export$6c6d7a51fa9aa15d), {
|
|
9974
10000
|
is_open_: [sorting_expanded, set_sorting_expanded],
|
|
@@ -9977,7 +10003,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
9977
10003
|
},
|
|
9978
10004
|
get summary_() {
|
|
9979
10005
|
return (() => {
|
|
9980
|
-
|
|
10006
|
+
var _el$16 = $gVhhF$solidjsweb.getNextElement($1872ceb56ede7a52$var$_tmpl$4),
|
|
9981
10007
|
_el$17 = _el$16.firstChild,
|
|
9982
10008
|
_el$18 = _el$17.firstChild,
|
|
9983
10009
|
_el$20 = _el$18.firstChild,
|
|
@@ -9986,7 +10012,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
9986
10012
|
_el$22 = _el$18.nextSibling,
|
|
9987
10013
|
[_el$23, _co$5] = $gVhhF$solidjsweb.getNextMarker(_el$22.nextSibling);
|
|
9988
10014
|
$gVhhF$solidjsweb.insert(_el$18, (() => {
|
|
9989
|
-
|
|
10015
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => args_for_sorting_.current_sorting_[0]()?.order === "asc");
|
|
9990
10016
|
return () => _c$() ? $gVhhF$solidjsweb.createComponent((0, $f958b5ac0e4a78da$export$da32f7add8a22e86), {}) : $gVhhF$solidjsweb.createComponent((0, $046db47e0326c715$export$d10e63059ddb9fd4), {});
|
|
9991
10017
|
})(), _el$21, _co$4);
|
|
9992
10018
|
$gVhhF$solidjsweb.insert(_el$19, () => i18n_.sorting_text_());
|
|
@@ -9999,7 +10025,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
9999
10025
|
},
|
|
10000
10026
|
get children() {
|
|
10001
10027
|
return (() => {
|
|
10002
|
-
|
|
10028
|
+
var _el$24 = $gVhhF$solidjsweb.getNextElement($1872ceb56ede7a52$var$_tmpl$5);
|
|
10003
10029
|
$gVhhF$solidjsweb.insert(_el$24, $gVhhF$solidjsweb.createComponent((0, $be89be42ce9ea60f$export$1f1775a58da589b5), args_for_sorting_));
|
|
10004
10030
|
return _el$24;
|
|
10005
10031
|
})();
|
|
@@ -10017,7 +10043,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
10017
10043
|
},
|
|
10018
10044
|
get summary_() {
|
|
10019
10045
|
return (() => {
|
|
10020
|
-
|
|
10046
|
+
var _el$26 = $gVhhF$solidjsweb.getNextElement($1872ceb56ede7a52$var$_tmpl$4),
|
|
10021
10047
|
_el$27 = _el$26.firstChild,
|
|
10022
10048
|
_el$28 = _el$27.firstChild,
|
|
10023
10049
|
_el$30 = _el$28.firstChild,
|
|
@@ -10036,7 +10062,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
10036
10062
|
},
|
|
10037
10063
|
get children() {
|
|
10038
10064
|
return (() => {
|
|
10039
|
-
|
|
10065
|
+
var _el$34 = $gVhhF$solidjsweb.getNextElement($1872ceb56ede7a52$var$_tmpl$5);
|
|
10040
10066
|
$gVhhF$solidjsweb.insert(_el$34, $gVhhF$solidjsweb.createComponent((0, $aff9a96d30ed3563$export$3f1a388cc0d8fed7), $gVhhF$solidjsweb.mergeProps(args_for_filtering_, {
|
|
10041
10067
|
are_in_modal_: true
|
|
10042
10068
|
})));
|
|
@@ -10051,7 +10077,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
10051
10077
|
return args_for_filtering_.selected_filters_[0]()?.length;
|
|
10052
10078
|
},
|
|
10053
10079
|
get children() {
|
|
10054
|
-
|
|
10080
|
+
var _el$11 = $gVhhF$solidjsweb.getNextElement($1872ceb56ede7a52$var$_tmpl$);
|
|
10055
10081
|
$gVhhF$solidjsweb.addEventListener(_el$11, "click", $gVhhF$depictaiutilishared.catchify(() => {
|
|
10056
10082
|
const show_toast = $47e2cc552c02110c$export$8895d39404bd2bb1({
|
|
10057
10083
|
user_triggered_: true,
|
|
@@ -10071,30 +10097,30 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
10071
10097
|
}), _el$14, _co$3);
|
|
10072
10098
|
$gVhhF$solidjsweb.addEventListener(_el$12, "click", dismiss_modal_, true);
|
|
10073
10099
|
$gVhhF$solidjsweb.insert(_el$12, () => i18n_.show_n_results_()((() => {
|
|
10074
|
-
|
|
10100
|
+
var _el$35 = $gVhhF$solidjsweb.getNextElement($1872ceb56ede7a52$var$_tmpl$7);
|
|
10075
10101
|
$gVhhF$solidjsweb.insert(_el$35, formatted_number_of_results_);
|
|
10076
10102
|
return _el$35;
|
|
10077
10103
|
})()));
|
|
10078
10104
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
10079
|
-
|
|
10105
|
+
var _v$ = i18n_.close_(),
|
|
10080
10106
|
_v$2 = modal_scrolling_prevented[0]() ? "overflow:hidden" : "";
|
|
10081
|
-
_v$ !== _p$.
|
|
10082
|
-
_p$.
|
|
10107
|
+
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$3, "aria-label", _p$.e = _v$);
|
|
10108
|
+
_p$.t = $gVhhF$solidjsweb.style(_el$5, _v$2, _p$.t);
|
|
10083
10109
|
return _p$;
|
|
10084
10110
|
}, {
|
|
10085
|
-
|
|
10086
|
-
|
|
10111
|
+
e: undefined,
|
|
10112
|
+
t: undefined
|
|
10087
10113
|
});
|
|
10088
10114
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
10089
10115
|
return _el$;
|
|
10090
10116
|
})()];
|
|
10091
10117
|
}
|
|
10092
10118
|
$gVhhF$solidjsweb.delegateEvents(["click", "touchstart"]);
|
|
10093
|
-
|
|
10119
|
+
var $f49857214f7675b1$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14><path d="M12.949 7.699H.352A.35.35 0 0 1 0 7.352.35.35 0 0 1 .352 7h12.598a.35.35 0 0 1 .352.352.35.35 0 0 1-.352.348zm0 0">`);
|
|
10094
10120
|
function $f49857214f7675b1$export$cb808a3c41736d8e() {
|
|
10095
10121
|
return $gVhhF$solidjsweb.getNextElement($f49857214f7675b1$var$_tmpl$);
|
|
10096
10122
|
}
|
|
10097
|
-
|
|
10123
|
+
var $f8f64d05c525825b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filters><div class=body>`),
|
|
10098
10124
|
$f8f64d05c525825b$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=sorting><div class=body>`),
|
|
10099
10125
|
$f8f64d05c525825b$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=sort-and-filter-buttons><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`),
|
|
10100
10126
|
$f8f64d05c525825b$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=num-filters>`),
|
|
@@ -10211,13 +10237,13 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
10211
10237
|
return !hide_filters();
|
|
10212
10238
|
},
|
|
10213
10239
|
get children() {
|
|
10214
|
-
|
|
10240
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($f8f64d05c525825b$var$_tmpl$),
|
|
10215
10241
|
_el$2 = _el$.firstChild;
|
|
10216
10242
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $aff9a96d30ed3563$export$3f1a388cc0d8fed7), filter_options));
|
|
10217
10243
|
return _el$;
|
|
10218
10244
|
}
|
|
10219
10245
|
}));else set_extra_els_in_results_container_((() => {
|
|
10220
|
-
|
|
10246
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($f8f64d05c525825b$var$_tmpl$2),
|
|
10221
10247
|
_el$4 = _el$3.firstChild;
|
|
10222
10248
|
$gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent((0, $be89be42ce9ea60f$export$1f1775a58da589b5), sorting_options));
|
|
10223
10249
|
return _el$3;
|
|
@@ -10258,7 +10284,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
10258
10284
|
return !sort_and_filter_disabled_?.();
|
|
10259
10285
|
},
|
|
10260
10286
|
get children() {
|
|
10261
|
-
|
|
10287
|
+
var _el$5 = $gVhhF$solidjsweb.getNextElement($f8f64d05c525825b$var$_tmpl$3),
|
|
10262
10288
|
_el$6 = _el$5.firstChild,
|
|
10263
10289
|
_el$7 = _el$6.firstChild,
|
|
10264
10290
|
_el$8 = _el$7.firstChild,
|
|
@@ -10267,7 +10293,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
10267
10293
|
[_el$11, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$10.nextSibling),
|
|
10268
10294
|
_el$12 = _el$11.nextSibling,
|
|
10269
10295
|
[_el$13, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$12.nextSibling);
|
|
10270
|
-
|
|
10296
|
+
var _ref$ = set_sort_and_filter_element_;
|
|
10271
10297
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$5) : set_sort_and_filter_element_ = _el$5;
|
|
10272
10298
|
$gVhhF$solidjsweb.insert(_el$7, () => make_open_filters_button(true, true), _el$9, _co$);
|
|
10273
10299
|
$gVhhF$solidjsweb.insert(_el$7, () => middle_elements_?.(), _el$11, _co$2);
|
|
@@ -10296,7 +10322,7 @@ function $f8f64d05c525825b$var$OpenFiltersButton({
|
|
|
10296
10322
|
const filters_closed = $gVhhF$solidjs.createMemo(() => !search_filters_open_[0]());
|
|
10297
10323
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
10298
10324
|
return (() => {
|
|
10299
|
-
|
|
10325
|
+
var _el$14 = $gVhhF$solidjsweb.getNextElement($f8f64d05c525825b$var$_tmpl$5),
|
|
10300
10326
|
_el$20 = _el$14.firstChild,
|
|
10301
10327
|
[_el$21, _co$5] = $gVhhF$solidjsweb.getNextMarker(_el$20.nextSibling),
|
|
10302
10328
|
_el$16 = _el$21.nextSibling,
|
|
@@ -10308,7 +10334,7 @@ function $f8f64d05c525825b$var$OpenFiltersButton({
|
|
|
10308
10334
|
return num_selected_filters();
|
|
10309
10335
|
},
|
|
10310
10336
|
get children() {
|
|
10311
|
-
|
|
10337
|
+
var _el$15 = $gVhhF$solidjsweb.getNextElement($f8f64d05c525825b$var$_tmpl$4);
|
|
10312
10338
|
$gVhhF$solidjsweb.insert(_el$15, num_selected_filters);
|
|
10313
10339
|
$gVhhF$solidjsweb.effect(_$p => $gVhhF$solidjsweb.style(_el$15, filters_closed() ? `` : `opacity:0`, _$p));
|
|
10314
10340
|
return _el$15;
|
|
@@ -10337,7 +10363,7 @@ function $f8f64d05c525825b$var$OpenFiltersButton({
|
|
|
10337
10363
|
}), _el$19, _co$4);
|
|
10338
10364
|
$gVhhF$solidjsweb.insert(_el$17, () => i18n_.filter_text_());
|
|
10339
10365
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
10340
|
-
|
|
10366
|
+
var _v$ = hide_button_() ? {
|
|
10341
10367
|
display: "none"
|
|
10342
10368
|
} : {},
|
|
10343
10369
|
_v$2 = !filters_closed(),
|
|
@@ -10346,18 +10372,18 @@ function $f8f64d05c525825b$var$OpenFiltersButton({
|
|
|
10346
10372
|
_v$5 = filter_button_width_?.() ? {
|
|
10347
10373
|
width: filter_button_width_() + "px"
|
|
10348
10374
|
} : {};
|
|
10349
|
-
_p$.
|
|
10350
|
-
_v$2 !== _p$.
|
|
10351
|
-
_v$3 !== _p$.
|
|
10352
|
-
_v$4 !== _p$.
|
|
10353
|
-
_p$.
|
|
10375
|
+
_p$.e = $gVhhF$solidjsweb.style(_el$14, _v$, _p$.e);
|
|
10376
|
+
_v$2 !== _p$.t && _el$16.classList.toggle("major", _p$.t = _v$2);
|
|
10377
|
+
_v$3 !== _p$.a && _el$16.classList.toggle("minor", _p$.a = _v$3);
|
|
10378
|
+
_v$4 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$16, "aria-label", _p$.o = _v$4);
|
|
10379
|
+
_p$.i = $gVhhF$solidjsweb.style(_el$16, _v$5, _p$.i);
|
|
10354
10380
|
return _p$;
|
|
10355
10381
|
}, {
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10382
|
+
e: undefined,
|
|
10383
|
+
t: undefined,
|
|
10384
|
+
a: undefined,
|
|
10385
|
+
o: undefined,
|
|
10386
|
+
i: undefined
|
|
10361
10387
|
});
|
|
10362
10388
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
10363
10389
|
return _el$14;
|
|
@@ -10376,7 +10402,7 @@ function $f8f64d05c525825b$var$OpenSortingButton({
|
|
|
10376
10402
|
const sorting_closed = $gVhhF$solidjs.createMemo(() => !search_sorting_open_[0]());
|
|
10377
10403
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
10378
10404
|
return (() => {
|
|
10379
|
-
|
|
10405
|
+
var _el$22 = $gVhhF$solidjsweb.getNextElement($f8f64d05c525825b$var$_tmpl$6),
|
|
10380
10406
|
_el$23 = _el$22.firstChild,
|
|
10381
10407
|
_el$24 = _el$23.nextSibling,
|
|
10382
10408
|
[_el$25, _co$6] = $gVhhF$solidjsweb.getNextMarker(_el$24.nextSibling);
|
|
@@ -10390,7 +10416,7 @@ function $f8f64d05c525825b$var$OpenSortingButton({
|
|
|
10390
10416
|
})), true);
|
|
10391
10417
|
$gVhhF$solidjsweb.setAttribute(_el$22, "tabindex", tabindex_);
|
|
10392
10418
|
$gVhhF$solidjsweb.insert(_el$23, (() => {
|
|
10393
|
-
|
|
10419
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => !!sorting_closed());
|
|
10394
10420
|
return () =>
|
|
10395
10421
|
// Show the title of the currently selected sorting when the sorting is closed, if there's currently a sorting selected
|
|
10396
10422
|
// This is to balance that both it should be easy to find the sorting and to see what sorting currently is set
|
|
@@ -10409,33 +10435,33 @@ function $f8f64d05c525825b$var$OpenSortingButton({
|
|
|
10409
10435
|
}
|
|
10410
10436
|
}), _el$25, _co$6);
|
|
10411
10437
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
10412
|
-
|
|
10438
|
+
var _v$6 = !sorting_closed(),
|
|
10413
10439
|
_v$7 = !!sorting_closed(),
|
|
10414
10440
|
_v$8 = (sorting_closed() ? i18n_.open_sorting_ : i18n_.close_sorting_)(),
|
|
10415
10441
|
_v$9 = sort_button_width_?.() ? {
|
|
10416
10442
|
width: sort_button_width_() + "px"
|
|
10417
10443
|
} : {};
|
|
10418
|
-
_v$6 !== _p$.
|
|
10419
|
-
_v$7 !== _p$.
|
|
10420
|
-
_v$8 !== _p$.
|
|
10421
|
-
_p$.
|
|
10444
|
+
_v$6 !== _p$.e && _el$22.classList.toggle("major", _p$.e = _v$6);
|
|
10445
|
+
_v$7 !== _p$.t && _el$22.classList.toggle("minor", _p$.t = _v$7);
|
|
10446
|
+
_v$8 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$22, "aria-label", _p$.a = _v$8);
|
|
10447
|
+
_p$.o = $gVhhF$solidjsweb.style(_el$22, _v$9, _p$.o);
|
|
10422
10448
|
return _p$;
|
|
10423
10449
|
}, {
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10450
|
+
e: undefined,
|
|
10451
|
+
t: undefined,
|
|
10452
|
+
a: undefined,
|
|
10453
|
+
o: undefined
|
|
10428
10454
|
});
|
|
10429
10455
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
10430
10456
|
return _el$22;
|
|
10431
10457
|
})();
|
|
10432
10458
|
}
|
|
10433
10459
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
10434
|
-
|
|
10460
|
+
var $084b6a0ee1d481de$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14><path d="M6.402.453L2.203 4.652a.35.35 0 0 0 0 .496c.137.137.359.137.492 0l3.605-3.605v11.406a.35.35 0 0 0 .348.352.35.35 0 0 0 .352-.352V1.543l3.602 3.605a.35.35 0 0 0 .496 0c.066-.07.102-.16.102-.25a.35.35 0 0 0-.102-.246L6.895.453c-.133-.137-.355-.137-.492 0zm0 0">`);
|
|
10435
10461
|
function $084b6a0ee1d481de$export$2624c5890f1bbcf7() {
|
|
10436
10462
|
return $gVhhF$solidjsweb.getNextElement($084b6a0ee1d481de$var$_tmpl$);
|
|
10437
10463
|
}
|
|
10438
|
-
|
|
10464
|
+
var $2fb324fbcc7b4a7b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=floating-buttons><button class=filter><div></div></button><button class=sort><div></div></button><button class=up><div>`);
|
|
10439
10465
|
function $2fb324fbcc7b4a7b$export$b23abd26de154ede(props) {
|
|
10440
10466
|
if (0, $gVhhF$solidjsweb.isServer) return; // won't show in initial render and need scroll position
|
|
10441
10467
|
const [is_small, set_is_small] = $gVhhF$solidjs.createSignal(true);
|
|
@@ -10532,7 +10558,7 @@ function $2fb324fbcc7b4a7b$var$ActualFloatingButtons({
|
|
|
10532
10558
|
is.disconnect();
|
|
10533
10559
|
}));
|
|
10534
10560
|
return (() => {
|
|
10535
|
-
|
|
10561
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($2fb324fbcc7b4a7b$var$_tmpl$),
|
|
10536
10562
|
_el$2 = _el$.firstChild,
|
|
10537
10563
|
_el$3 = _el$2.firstChild,
|
|
10538
10564
|
_el$4 = _el$2.nextSibling,
|
|
@@ -10549,7 +10575,7 @@ function $2fb324fbcc7b4a7b$var$ActualFloatingButtons({
|
|
|
10549
10575
|
set_search_sorting_open_(true);
|
|
10550
10576
|
}), true);
|
|
10551
10577
|
$gVhhF$solidjsweb.insert(_el$5, (() => {
|
|
10552
|
-
|
|
10578
|
+
var _c$ = $gVhhF$solidjsweb.memo(() => current_sorting_[0]()?.order === "asc");
|
|
10553
10579
|
return () => _c$() ? $gVhhF$solidjsweb.createComponent((0, $f958b5ac0e4a78da$export$da32f7add8a22e86), {}) : $gVhhF$solidjsweb.createComponent((0, $046db47e0326c715$export$d10e63059ddb9fd4), {});
|
|
10554
10580
|
})());
|
|
10555
10581
|
$gVhhF$solidjsweb.addEventListener(_el$6, "click", $gVhhF$depictaiutilishared.catchify(() => scrollTo({
|
|
@@ -10558,27 +10584,27 @@ function $2fb324fbcc7b4a7b$var$ActualFloatingButtons({
|
|
|
10558
10584
|
})), true);
|
|
10559
10585
|
$gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $084b6a0ee1d481de$export$2624c5890f1bbcf7), {}));
|
|
10560
10586
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
10561
|
-
|
|
10587
|
+
var _v$ = !!(is_scrolling_upwards() && modal_is_closed() && !regular_buttons_are_in_view() && !get_is_showing_toast()),
|
|
10562
10588
|
_v$2 = i18n_.filter_text_(),
|
|
10563
10589
|
_v$3 = i18n_.sorting_text_(),
|
|
10564
10590
|
_v$4 = i18n_.scroll_to_top_();
|
|
10565
|
-
_v$ !== _p$.
|
|
10566
|
-
_v$2 !== _p$.
|
|
10567
|
-
_v$3 !== _p$.
|
|
10568
|
-
_v$4 !== _p$.
|
|
10591
|
+
_v$ !== _p$.e && _el$.classList.toggle("show-them", _p$.e = _v$);
|
|
10592
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$2, "aria-label", _p$.t = _v$2);
|
|
10593
|
+
_v$3 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$4, "aria-label", _p$.a = _v$3);
|
|
10594
|
+
_v$4 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$6, "aria-label", _p$.o = _v$4);
|
|
10569
10595
|
return _p$;
|
|
10570
10596
|
}, {
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10597
|
+
e: undefined,
|
|
10598
|
+
t: undefined,
|
|
10599
|
+
a: undefined,
|
|
10600
|
+
o: undefined
|
|
10575
10601
|
});
|
|
10576
10602
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
10577
10603
|
return _el$;
|
|
10578
10604
|
})();
|
|
10579
10605
|
}
|
|
10580
10606
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
10581
|
-
|
|
10607
|
+
var $8cceb1d3a967f369$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<nav class=quicklinks>`),
|
|
10582
10608
|
$8cceb1d3a967f369$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>QuickLinks failed`),
|
|
10583
10609
|
$8cceb1d3a967f369$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=quicklink>`);
|
|
10584
10610
|
function $8cceb1d3a967f369$export$466cdc317043f6cb({
|
|
@@ -10638,7 +10664,7 @@ function $8cceb1d3a967f369$export$466cdc317043f6cb({
|
|
|
10638
10664
|
return $gVhhF$solidjsweb.getNextElement($8cceb1d3a967f369$var$_tmpl$2);
|
|
10639
10665
|
},
|
|
10640
10666
|
get children() {
|
|
10641
|
-
|
|
10667
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($8cceb1d3a967f369$var$_tmpl$);
|
|
10642
10668
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $a0e53f99354809d9$export$6649caad96ef8870), {
|
|
10643
10669
|
faded_opacity_: 0.5,
|
|
10644
10670
|
mutation_plugins_: mutation_plugins,
|
|
@@ -10734,7 +10760,7 @@ function $8cceb1d3a967f369$export$466cdc317043f6cb({
|
|
|
10734
10760
|
filter_query_param_prefix_: filter_query_param_prefix_
|
|
10735
10761
|
}));
|
|
10736
10762
|
return (() => {
|
|
10737
|
-
|
|
10763
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($8cceb1d3a967f369$var$_tmpl$3);
|
|
10738
10764
|
$gVhhF$solidjsweb.addEventListener(_el$3, "click", $gVhhF$depictaiutilishared.catchify(ev => {
|
|
10739
10765
|
const url = href();
|
|
10740
10766
|
if (is_selected() && !ev.metaKey && !ev.ctrlKey && !ev.button || !url)
|
|
@@ -10755,14 +10781,14 @@ function $8cceb1d3a967f369$export$466cdc317043f6cb({
|
|
|
10755
10781
|
width: "10ch"
|
|
10756
10782
|
}));
|
|
10757
10783
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
10758
|
-
|
|
10784
|
+
var _v$ = !!is_selected(),
|
|
10759
10785
|
_v$2 = href();
|
|
10760
|
-
_v$ !== _p$.
|
|
10761
|
-
_v$2 !== _p$.
|
|
10786
|
+
_v$ !== _p$.e && _el$3.classList.toggle("selected", _p$.e = _v$);
|
|
10787
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$3, "href", _p$.t = _v$2);
|
|
10762
10788
|
return _p$;
|
|
10763
10789
|
}, {
|
|
10764
|
-
|
|
10765
|
-
|
|
10790
|
+
e: undefined,
|
|
10791
|
+
t: undefined
|
|
10766
10792
|
});
|
|
10767
10793
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
10768
10794
|
return _el$3;
|
|
@@ -10991,7 +11017,7 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
10991
11017
|
});
|
|
10992
11018
|
tracking_function_for_plp_results(plp_results_);
|
|
10993
11019
|
}
|
|
10994
|
-
|
|
11020
|
+
var $bb9760b7a8acdc18$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=statement style=white-space:pre-wrap>No \`id\` specified in \`listingQuery\`, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a listingQuery.`),
|
|
10995
11021
|
$bb9760b7a8acdc18$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=buttons><button class="ok major">`);
|
|
10996
11022
|
function $bb9760b7a8acdc18$export$7af06a63c5a976c9(el, listing_id, i18n_) {
|
|
10997
11023
|
if (!(0, $gVhhF$depictaiutilishared.is_debug)) return; // Just to make sure we don't show this in production
|
|
@@ -11012,7 +11038,7 @@ function $bb9760b7a8acdc18$export$7af06a63c5a976c9(el, listing_id, i18n_) {
|
|
|
11012
11038
|
background: "#ffb830"
|
|
11013
11039
|
},
|
|
11014
11040
|
children: [$gVhhF$solidjsweb.getNextElement($bb9760b7a8acdc18$var$_tmpl$), (() => {
|
|
11015
|
-
|
|
11041
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($bb9760b7a8acdc18$var$_tmpl$2),
|
|
11016
11042
|
_el$3 = _el$2.firstChild;
|
|
11017
11043
|
_el$3.$$click = () => close_toast_() /* We have to wait for close_toast_ to get defined after the call to show_toast */;
|
|
11018
11044
|
$gVhhF$solidjsweb.insert(_el$3, () => i18n_.ok_());
|
|
@@ -11050,7 +11076,7 @@ function $6a8e766e914723d8$export$d31a1a1a83ad9413(plp_results_, [get_selected_f
|
|
|
11050
11076
|
set_selected_filters(new_filters);
|
|
11051
11077
|
});
|
|
11052
11078
|
}
|
|
11053
|
-
|
|
11079
|
+
var $840d88a04b2d22a7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=product-count><!$><!/> <!$><!/>`),
|
|
11054
11080
|
$840d88a04b2d22a7$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
11055
11081
|
$840d88a04b2d22a7$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
11056
11082
|
$840d88a04b2d22a7$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/>`);
|
|
@@ -11182,7 +11208,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
11182
11208
|
}
|
|
11183
11209
|
});
|
|
11184
11210
|
const make_product_count_ = () => (() => {
|
|
11185
|
-
|
|
11211
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($840d88a04b2d22a7$var$_tmpl$),
|
|
11186
11212
|
_el$3 = _el$.firstChild,
|
|
11187
11213
|
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
11188
11214
|
_el$2 = _el$4.nextSibling,
|
|
@@ -11281,7 +11307,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
11281
11307
|
await set_results_filters(); // remove elements, wait one microtask for updates to have been committed to the DOM, otherwise we'd try to do illegal DOM operations
|
|
11282
11308
|
// signals can't be read reactively anymore after the await FYI
|
|
11283
11309
|
$gVhhF$solidjs.runWithOwner(owner, () => set_results_filters(slim ? only_show_filters_opener ? filters_opener : [results_for, filters_opener] : (() => {
|
|
11284
|
-
|
|
11310
|
+
var _el$8 = $gVhhF$solidjsweb.getNextElement($840d88a04b2d22a7$var$_tmpl$3),
|
|
11285
11311
|
_el$9 = _el$8.firstChild,
|
|
11286
11312
|
[_el$10, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$9.nextSibling),
|
|
11287
11313
|
_el$11 = _el$10.nextSibling,
|
|
@@ -11309,7 +11335,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
11309
11335
|
get_breadcrumb_accessor_?.(crumb_data_);
|
|
11310
11336
|
get_quicklinks_accessor_?.(quicklinks_data_);
|
|
11311
11337
|
return [(0, $gVhhF$solidjsweb.isServer) ? "<!-- Category page based on Depict SDK -->" : document.createComment("Category page based on Depict SDK"), (() => {
|
|
11312
|
-
|
|
11338
|
+
var _el$13 = $gVhhF$solidjsweb.getNextElement($840d88a04b2d22a7$var$_tmpl$4),
|
|
11313
11339
|
_el$14 = _el$13.firstChild,
|
|
11314
11340
|
_el$15 = _el$14.firstChild,
|
|
11315
11341
|
[_el$16, _co$5] = $gVhhF$solidjsweb.getNextMarker(_el$15.nextSibling),
|
|
@@ -11584,7 +11610,7 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
|
|
|
11584
11610
|
function $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(searchParams) {
|
|
11585
11611
|
if (searchParams.get((0, $1ab22f2cd39b3061$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $1ab22f2cd39b3061$export$cf5feb2102aec7f2));
|
|
11586
11612
|
}
|
|
11587
|
-
|
|
11613
|
+
var $48567ac5b39bac56$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp category">`);
|
|
11588
11614
|
// We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
|
|
11589
11615
|
/**
|
|
11590
11616
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions.
|
|
@@ -11595,7 +11621,7 @@ const $48567ac5b39bac56$var$privately_shared_properties = /*@__PURE__*/new WeakM
|
|
|
11595
11621
|
const $48567ac5b39bac56$var$InExternalAreaDiv = ({
|
|
11596
11622
|
children: children
|
|
11597
11623
|
}) => (() => {
|
|
11598
|
-
|
|
11624
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($48567ac5b39bac56$var$_tmpl$);
|
|
11599
11625
|
$gVhhF$solidjsweb.insert(_el$, children);
|
|
11600
11626
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setAttribute(_el$, "id", (0, $0b6e2070a98de347$export$44dad306455dddf).PLP_CATEGORY));
|
|
11601
11627
|
return _el$;
|
|
@@ -11865,7 +11891,7 @@ function $48567ac5b39bac56$var$get_shared_properties(depict_category) {
|
|
|
11865
11891
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
11866
11892
|
return shared_properties;
|
|
11867
11893
|
}
|
|
11868
|
-
|
|
11894
|
+
var $85b747260aa175c9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="sort-and-filter-buttons fake"aria-hidden=true style=position:absolute;z-index:-1;pointer-events:none;opacity:0><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`);
|
|
11869
11895
|
const $85b747260aa175c9$export$824dde41348efed1 = /*@__PURE__*/(() => {
|
|
11870
11896
|
const actual_function = ({
|
|
11871
11897
|
make_product_count_: make_product_count_,
|
|
@@ -11891,7 +11917,7 @@ const $85b747260aa175c9$export$824dde41348efed1 = /*@__PURE__*/(() => {
|
|
|
11891
11917
|
const on_filters_constructed_ = () => {
|
|
11892
11918
|
const active_sort_and_filter_element = $gVhhF$solidjs.untrack(sort_and_filter_element_); // We assume that this doesn't change which it currently doesn't after the filters have been constructed
|
|
11893
11919
|
const extra_sort_and_filter_container_ = (() => {
|
|
11894
|
-
|
|
11920
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($85b747260aa175c9$var$_tmpl$),
|
|
11895
11921
|
_el$2 = _el$.firstChild,
|
|
11896
11922
|
_el$3 = _el$2.firstChild,
|
|
11897
11923
|
_el$4 = _el$3.firstChild,
|
|
@@ -12028,7 +12054,7 @@ async function $6382a1b83da39674$var$download_categories(merchant, market, local
|
|
|
12028
12054
|
|
|
12029
12055
|
/* @refresh reload */ /** @jsxImportSource solid-js */
|
|
12030
12056
|
|
|
12031
|
-
|
|
12057
|
+
var $dae23104ba8bb78c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=parent-title>`),
|
|
12032
12058
|
$dae23104ba8bb78c$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=category-suggestion><span class=title></span><!$><!/>`);
|
|
12033
12059
|
function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
12034
12060
|
category_suggestion_: category_suggestion_,
|
|
@@ -12036,7 +12062,7 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
|
12036
12062
|
}) {
|
|
12037
12063
|
const parentTitle = $gVhhF$solidjs.createMemo(() => category_suggestion_().ancestors.at(-1)?.title);
|
|
12038
12064
|
return (() => {
|
|
12039
|
-
|
|
12065
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($dae23104ba8bb78c$var$_tmpl$2),
|
|
12040
12066
|
_el$2 = _el$.firstChild,
|
|
12041
12067
|
_el$4 = _el$2.nextSibling,
|
|
12042
12068
|
[_el$5, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$4.nextSibling);
|
|
@@ -12053,7 +12079,7 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
|
12053
12079
|
return parentTitle();
|
|
12054
12080
|
},
|
|
12055
12081
|
get children() {
|
|
12056
|
-
|
|
12082
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($dae23104ba8bb78c$var$_tmpl$);
|
|
12057
12083
|
$gVhhF$solidjsweb.insert(_el$3, parentTitle);
|
|
12058
12084
|
return _el$3;
|
|
12059
12085
|
}
|
|
@@ -12064,7 +12090,7 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
|
12064
12090
|
})();
|
|
12065
12091
|
}
|
|
12066
12092
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
12067
|
-
|
|
12093
|
+
var $fb29c6201c369e39$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-recs><h3 class=search-recs-title></h3><!$><!/><!$><!/>`),
|
|
12068
12094
|
$fb29c6201c369e39$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="show-more major"type=button>`);
|
|
12069
12095
|
const $fb29c6201c369e39$export$1c8c715550dc689d = 2;
|
|
12070
12096
|
function $fb29c6201c369e39$export$7de92c4c2205ebf3({
|
|
@@ -12092,7 +12118,7 @@ function $fb29c6201c369e39$export$7de92c4c2205ebf3({
|
|
|
12092
12118
|
});
|
|
12093
12119
|
// Don't tear down elements every time one updates the page - don't put them within <Show>
|
|
12094
12120
|
const elements = (() => {
|
|
12095
|
-
|
|
12121
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($fb29c6201c369e39$var$_tmpl$),
|
|
12096
12122
|
_el$2 = _el$.firstChild,
|
|
12097
12123
|
_el$3 = _el$2.nextSibling,
|
|
12098
12124
|
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
@@ -12148,7 +12174,7 @@ function $fb29c6201c369e39$var$make_state_saved_rows([get_showing_recommendation
|
|
|
12148
12174
|
start_rows: $fb29c6201c369e39$export$1c8c715550dc689d,
|
|
12149
12175
|
rows_per_click: 3,
|
|
12150
12176
|
button: (() => {
|
|
12151
|
-
|
|
12177
|
+
var _el$7 = $gVhhF$solidjsweb.getNextElement($fb29c6201c369e39$var$_tmpl$2);
|
|
12152
12178
|
$gVhhF$solidjsweb.insert(_el$7, () => i18n_.view_more_());
|
|
12153
12179
|
return _el$7;
|
|
12154
12180
|
})()
|
|
@@ -12334,7 +12360,7 @@ function $fd463ff0edb29915$export$b3ad617e9036868({
|
|
|
12334
12360
|
}));
|
|
12335
12361
|
return align_position;
|
|
12336
12362
|
}
|
|
12337
|
-
|
|
12363
|
+
var $04048c1bef16c249$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=category-suggestions>`),
|
|
12338
12364
|
$04048c1bef16c249$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=category-suggestion>`);
|
|
12339
12365
|
function $04048c1bef16c249$export$c05a196222ba1302({
|
|
12340
12366
|
suggestions_: suggestions_,
|
|
@@ -12346,7 +12372,7 @@ function $04048c1bef16c249$export$c05a196222ba1302({
|
|
|
12346
12372
|
return category_suggestions_()?.length || suggestions_.loading;
|
|
12347
12373
|
},
|
|
12348
12374
|
get children() {
|
|
12349
|
-
|
|
12375
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($04048c1bef16c249$var$_tmpl$);
|
|
12350
12376
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $a0e53f99354809d9$export$6649caad96ef8870), {
|
|
12351
12377
|
faded_opacity_: 0.7,
|
|
12352
12378
|
get children() {
|
|
@@ -12356,7 +12382,7 @@ function $04048c1bef16c249$export$c05a196222ba1302({
|
|
|
12356
12382
|
},
|
|
12357
12383
|
get fallback() {
|
|
12358
12384
|
return (() => {
|
|
12359
|
-
|
|
12385
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($04048c1bef16c249$var$_tmpl$2);
|
|
12360
12386
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
12361
12387
|
height: "19px",
|
|
12362
12388
|
width: "133px"
|
|
@@ -12379,7 +12405,7 @@ function $04048c1bef16c249$export$c05a196222ba1302({
|
|
|
12379
12405
|
}
|
|
12380
12406
|
});
|
|
12381
12407
|
}
|
|
12382
|
-
|
|
12408
|
+
var $65a0c4b1c2eb5d0b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`),
|
|
12383
12409
|
$65a0c4b1c2eb5d0b$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=results-for>`);
|
|
12384
12410
|
function $65a0c4b1c2eb5d0b$export$9dd50d35b9d94fdf({
|
|
12385
12411
|
get_search_query_: get_search_query_,
|
|
@@ -12391,17 +12417,17 @@ function $65a0c4b1c2eb5d0b$export$9dd50d35b9d94fdf({
|
|
|
12391
12417
|
const contents = $gVhhF$solidjs.createMemo($gVhhF$depictaiutilishared.catchify(() => {
|
|
12392
12418
|
const q = get_search_query_();
|
|
12393
12419
|
return i18n_[type === $65a0c4b1c2eb5d0b$export$2452208c79fe93ea.content ? "get_showing_pages_for_" : "get_showing_results_for_"]()((() => {
|
|
12394
|
-
|
|
12420
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($65a0c4b1c2eb5d0b$var$_tmpl$);
|
|
12395
12421
|
$gVhhF$solidjsweb.insert(_el$, q);
|
|
12396
12422
|
return _el$;
|
|
12397
12423
|
})(), (() => {
|
|
12398
|
-
|
|
12424
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($65a0c4b1c2eb5d0b$var$_tmpl$);
|
|
12399
12425
|
$gVhhF$solidjsweb.insert(_el$2, formatted_number_of_results_);
|
|
12400
12426
|
return _el$2;
|
|
12401
12427
|
})(), !!q, number_of_results_());
|
|
12402
12428
|
}));
|
|
12403
12429
|
return (() => {
|
|
12404
|
-
|
|
12430
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($65a0c4b1c2eb5d0b$var$_tmpl$2);
|
|
12405
12431
|
$gVhhF$solidjsweb.insert(_el$3, contents);
|
|
12406
12432
|
return _el$3;
|
|
12407
12433
|
})();
|
|
@@ -12417,6 +12443,7 @@ function $2005eec80e40088f$export$41b4894022a3580f({
|
|
|
12417
12443
|
alignmentSignals_ = {
|
|
12418
12444
|
body_: $gVhhF$solidjs.createSignal({}),
|
|
12419
12445
|
field_: $gVhhF$solidjs.createSignal({}),
|
|
12446
|
+
backdrop_: $gVhhF$solidjs.createSignal({}),
|
|
12420
12447
|
...alignmentSignals_
|
|
12421
12448
|
};
|
|
12422
12449
|
const [, set_style_props] = alignmentSignals_.body_;
|
|
@@ -12434,7 +12461,7 @@ function $2005eec80e40088f$export$41b4894022a3580f({
|
|
|
12434
12461
|
})));
|
|
12435
12462
|
return alignmentSignals_;
|
|
12436
12463
|
}
|
|
12437
|
-
|
|
12464
|
+
var $76227de40be817e5$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a>`),
|
|
12438
12465
|
$76227de40be817e5$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
12439
12466
|
$76227de40be817e5$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="description line-clamp">`),
|
|
12440
12467
|
$76227de40be817e5$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=content-card><div class=image></div><div class=info><!$><!/><!$><!/>`);
|
|
@@ -12459,14 +12486,14 @@ function $76227de40be817e5$export$f631859cab12b342({
|
|
|
12459
12486
|
...attributes
|
|
12460
12487
|
}) => {
|
|
12461
12488
|
if (content_result_) return (() => {
|
|
12462
|
-
|
|
12489
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($76227de40be817e5$var$_tmpl$);
|
|
12463
12490
|
$gVhhF$solidjsweb.spread(_el$, attributes, false, true);
|
|
12464
12491
|
$gVhhF$solidjsweb.insert(_el$, children);
|
|
12465
12492
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
12466
12493
|
return _el$;
|
|
12467
12494
|
})();
|
|
12468
12495
|
return (() => {
|
|
12469
|
-
|
|
12496
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($76227de40be817e5$var$_tmpl$2);
|
|
12470
12497
|
$gVhhF$solidjsweb.spread(_el$2, attributes, false, true);
|
|
12471
12498
|
$gVhhF$solidjsweb.insert(_el$2, children);
|
|
12472
12499
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
@@ -12474,7 +12501,7 @@ function $76227de40be817e5$export$f631859cab12b342({
|
|
|
12474
12501
|
})();
|
|
12475
12502
|
};
|
|
12476
12503
|
return (() => {
|
|
12477
|
-
|
|
12504
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($76227de40be817e5$var$_tmpl$4),
|
|
12478
12505
|
_el$4 = _el$3.firstChild,
|
|
12479
12506
|
_el$5 = _el$4.nextSibling,
|
|
12480
12507
|
_el$7 = _el$5.firstChild,
|
|
@@ -12512,7 +12539,7 @@ function $76227de40be817e5$export$f631859cab12b342({
|
|
|
12512
12539
|
return content_result_?.().description;
|
|
12513
12540
|
},
|
|
12514
12541
|
get children() {
|
|
12515
|
-
|
|
12542
|
+
var _el$6 = $gVhhF$solidjsweb.getNextElement($76227de40be817e5$var$_tmpl$3);
|
|
12516
12543
|
$gVhhF$solidjsweb.insert(_el$6, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
12517
12544
|
when: content_result_,
|
|
12518
12545
|
get fallback() {
|
|
@@ -12590,7 +12617,7 @@ function $c2f92eb265a14529$export$4405d077f0a20494({
|
|
|
12590
12617
|
children: () => $gVhhF$solidjsweb.createComponent((0, $76227de40be817e5$export$f631859cab12b342), {})
|
|
12591
12618
|
});
|
|
12592
12619
|
}
|
|
12593
|
-
|
|
12620
|
+
var $3716b8caf7f959e2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=content-results><!$><!/><!$><!/>`),
|
|
12594
12621
|
$3716b8caf7f959e2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=view-more>`),
|
|
12595
12622
|
$3716b8caf7f959e2$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=view-less>`);
|
|
12596
12623
|
const $3716b8caf7f959e2$export$70ceae36059a1036 = 1;
|
|
@@ -12620,7 +12647,7 @@ function $3716b8caf7f959e2$export$6d0c9c22f6652669({
|
|
|
12620
12647
|
const rows_object = $3716b8caf7f959e2$var$make_state_saved_rows(content_results_rows_, i18n_);
|
|
12621
12648
|
for (const ev of ["add", "delete"]) queries_without_content_results_.addEventListener(ev, () => set_check_query(prev => !prev));
|
|
12622
12649
|
return (() => {
|
|
12623
|
-
|
|
12650
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($3716b8caf7f959e2$var$_tmpl$),
|
|
12624
12651
|
_el$2 = _el$.firstChild,
|
|
12625
12652
|
[_el$3, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$2.nextSibling),
|
|
12626
12653
|
_el$4 = _el$3.nextSibling,
|
|
@@ -12675,12 +12702,12 @@ function $3716b8caf7f959e2$var$make_state_saved_rows(
|
|
|
12675
12702
|
currently_visible: currently_visible,
|
|
12676
12703
|
start_rows: $3716b8caf7f959e2$export$70ceae36059a1036,
|
|
12677
12704
|
button: (() => {
|
|
12678
|
-
|
|
12705
|
+
var _el$6 = $gVhhF$solidjsweb.getNextElement($3716b8caf7f959e2$var$_tmpl$2);
|
|
12679
12706
|
$gVhhF$solidjsweb.insert(_el$6, () => i18n_.view_more_());
|
|
12680
12707
|
return _el$6;
|
|
12681
12708
|
})(),
|
|
12682
12709
|
view_less_button: (() => {
|
|
12683
|
-
|
|
12710
|
+
var _el$7 = $gVhhF$solidjsweb.getNextElement($3716b8caf7f959e2$var$_tmpl$3);
|
|
12684
12711
|
$gVhhF$solidjsweb.insert(_el$7, () => i18n_.view_less_());
|
|
12685
12712
|
return _el$7;
|
|
12686
12713
|
})(),
|
|
@@ -12694,13 +12721,13 @@ function $3716b8caf7f959e2$var$make_state_saved_rows(
|
|
|
12694
12721
|
}));
|
|
12695
12722
|
return rows;
|
|
12696
12723
|
}
|
|
12697
|
-
|
|
12724
|
+
var $5cbaffcb5602e671$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search">`);
|
|
12698
12725
|
function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
12699
12726
|
actualField_: actualField_,
|
|
12700
12727
|
makeFakeField_: makeFakeField_,
|
|
12701
12728
|
wrap_: wrap_,
|
|
12702
|
-
bodyAlignmentSignal_: [,
|
|
12703
|
-
backdropStyleSignal_: [,
|
|
12729
|
+
bodyAlignmentSignal_: [, setBodyAlignment_],
|
|
12730
|
+
backdropStyleSignal_: [, setBackdropStyle_],
|
|
12704
12731
|
setPollAlignment_: setPollAlignment_,
|
|
12705
12732
|
submitButton_: submitButton_,
|
|
12706
12733
|
modalSearchFieldOuterWidth_: modalSearchFieldOuterWidth_
|
|
@@ -12725,7 +12752,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12725
12752
|
actualField_.replaceWith(fakeField);
|
|
12726
12753
|
// Don't move the wrapped div since that would confuse run_in_root_or_auto_cleanup, but do actually move the field the user clicked around so that all selection stuff etc. is easier
|
|
12727
12754
|
const addedToBody = wrap_ ? (() => {
|
|
12728
|
-
|
|
12755
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($5cbaffcb5602e671$var$_tmpl$);
|
|
12729
12756
|
$gVhhF$solidjsweb.insert(_el$, actualField_);
|
|
12730
12757
|
return _el$;
|
|
12731
12758
|
})() : actualField_;
|
|
@@ -12741,8 +12768,8 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12741
12768
|
} : {})
|
|
12742
12769
|
});
|
|
12743
12770
|
const pxOffCenter = $gVhhF$solidjs.untrack(innerWidthReactive) / 2 - (left + width / 2);
|
|
12744
|
-
const
|
|
12745
|
-
const
|
|
12771
|
+
const openDuration_ = pxOffCenter > 100 ? 250 : 125; // faster animations if little left-right movement
|
|
12772
|
+
const closeDuration_ = pxOffCenter > 100 ? 150 : 100;
|
|
12746
12773
|
setPollAlignment_(true);
|
|
12747
12774
|
// Fade out submit button so there aren't two overlapping buttons for a split second
|
|
12748
12775
|
submitButton_.animate([{
|
|
@@ -12750,7 +12777,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12750
12777
|
}, {
|
|
12751
12778
|
opacity: 0
|
|
12752
12779
|
}], {
|
|
12753
|
-
duration:
|
|
12780
|
+
duration: openDuration_ / 3,
|
|
12754
12781
|
fill: "forwards"
|
|
12755
12782
|
});
|
|
12756
12783
|
$gVhhF$solidjs.createEffect(finished => {
|
|
@@ -12764,7 +12791,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12764
12791
|
left: `${$gVhhF$solidjs.untrack(innerWidthReactive) / 2 - $gVhhF$solidjs.untrack(inModalFieldWidth) / 2}px`,
|
|
12765
12792
|
width: $gVhhF$solidjs.untrack(inModalFieldWidthPx)
|
|
12766
12793
|
}], {
|
|
12767
|
-
duration:
|
|
12794
|
+
duration: openDuration_,
|
|
12768
12795
|
easing: "ease-in"
|
|
12769
12796
|
}).finished.then(() => {
|
|
12770
12797
|
setPollAlignment_(false);
|
|
@@ -12786,25 +12813,16 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12786
12813
|
});
|
|
12787
12814
|
return true;
|
|
12788
12815
|
}, false);
|
|
12789
|
-
|
|
12790
|
-
|
|
12791
|
-
|
|
12792
|
-
|
|
12793
|
-
})
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
...prev,
|
|
12800
|
-
opacity: 0,
|
|
12801
|
-
transition: `opacity ${openDuration}ms ease-in`,
|
|
12802
|
-
"--js-animation-duration": `${openDuration}ms`
|
|
12803
|
-
}));
|
|
12804
|
-
requestAnimationFrame(() => setBodyAlignment(prev => ({
|
|
12805
|
-
...prev,
|
|
12806
|
-
opacity: 1
|
|
12807
|
-
})));
|
|
12816
|
+
$gVhhF$solidjs.onCleanup(() => {
|
|
12817
|
+
// If we get cleaned up, reset the state and cancel the timeout to make sure the timeout doesn't mess with the next animation
|
|
12818
|
+
clearTimeout(disableResizePollingTimeout);
|
|
12819
|
+
setPollAlignment_(false);
|
|
12820
|
+
});
|
|
12821
|
+
$5cbaffcb5602e671$export$e06dee46ebe7faa9({
|
|
12822
|
+
setBackdropStyle_: setBackdropStyle_,
|
|
12823
|
+
setBodyAlignment_: setBodyAlignment_,
|
|
12824
|
+
openDuration_: openDuration_
|
|
12825
|
+
});
|
|
12808
12826
|
$gVhhF$solidjs.onCleanup(() => {
|
|
12809
12827
|
addedToBody.remove();
|
|
12810
12828
|
fakeField.replaceWith(actualField_);
|
|
@@ -12814,16 +12832,11 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12814
12832
|
width: width,
|
|
12815
12833
|
left: left
|
|
12816
12834
|
} = fakeField.getBoundingClientRect();
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
})
|
|
12822
|
-
setBodyAlignment(prev => ({
|
|
12823
|
-
...prev,
|
|
12824
|
-
opacity: 0,
|
|
12825
|
-
transition: `opacity ${closeDuration}ms ease-out`
|
|
12826
|
-
}));
|
|
12835
|
+
$5cbaffcb5602e671$export$23d40cc5971c3acd({
|
|
12836
|
+
setBackdropStyle_: setBackdropStyle_,
|
|
12837
|
+
setBodyAlignment_: setBodyAlignment_,
|
|
12838
|
+
closeDuration_: closeDuration_
|
|
12839
|
+
});
|
|
12827
12840
|
await Promise.all([addedToBody.animate([{
|
|
12828
12841
|
width: $gVhhF$solidjs.untrack(inModalFieldWidthPx),
|
|
12829
12842
|
left: `${$gVhhF$solidjs.untrack(innerWidthReactive) / 2 - $gVhhF$solidjs.untrack(inModalFieldWidth) / 2}px`
|
|
@@ -12831,7 +12844,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12831
12844
|
width: width + "px",
|
|
12832
12845
|
left: left + "px"
|
|
12833
12846
|
}], {
|
|
12834
|
-
duration:
|
|
12847
|
+
duration: closeDuration_,
|
|
12835
12848
|
fill: "forwards",
|
|
12836
12849
|
easing: "ease-out"
|
|
12837
12850
|
}).finished, submitButton_.animate([{
|
|
@@ -12839,8 +12852,8 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12839
12852
|
}, {
|
|
12840
12853
|
opacity: 1
|
|
12841
12854
|
}], {
|
|
12842
|
-
duration:
|
|
12843
|
-
delay:
|
|
12855
|
+
duration: closeDuration_ / 3,
|
|
12856
|
+
delay: closeDuration_ * (2 / 3),
|
|
12844
12857
|
fill: "forwards"
|
|
12845
12858
|
}).finished]);
|
|
12846
12859
|
setPollAlignment_(false);
|
|
@@ -12848,7 +12861,68 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12848
12861
|
};
|
|
12849
12862
|
});
|
|
12850
12863
|
}
|
|
12851
|
-
|
|
12864
|
+
function $5cbaffcb5602e671$export$e06dee46ebe7faa9({
|
|
12865
|
+
setBackdropStyle_: setBackdropStyle_,
|
|
12866
|
+
setBodyAlignment_: setBodyAlignment_,
|
|
12867
|
+
openDuration_: openDuration_
|
|
12868
|
+
}) {
|
|
12869
|
+
setBackdropStyle_(prev => ({
|
|
12870
|
+
...prev,
|
|
12871
|
+
opacity: 0,
|
|
12872
|
+
transition: `opacity ${openDuration_}ms ease-in`
|
|
12873
|
+
}));
|
|
12874
|
+
requestAnimationFrame(() => setBackdropStyle_(prev => ({
|
|
12875
|
+
...prev,
|
|
12876
|
+
opacity: 1
|
|
12877
|
+
})));
|
|
12878
|
+
setBodyAlignment_(prev => ({
|
|
12879
|
+
...prev,
|
|
12880
|
+
opacity: 0,
|
|
12881
|
+
transition: `opacity ${openDuration_}ms ease-in ${openDuration_ / 5}ms`,
|
|
12882
|
+
// Add a slight delay so the brightness of the modal isn't so jarring before the background has gotten darkened
|
|
12883
|
+
"--js-animation-duration": `${openDuration_}ms`
|
|
12884
|
+
}));
|
|
12885
|
+
requestAnimationFrame(() => setBodyAlignment_(prev => ({
|
|
12886
|
+
...prev,
|
|
12887
|
+
opacity: 1
|
|
12888
|
+
})));
|
|
12889
|
+
}
|
|
12890
|
+
function $5cbaffcb5602e671$export$23d40cc5971c3acd({
|
|
12891
|
+
setBackdropStyle_: setBackdropStyle_,
|
|
12892
|
+
setBodyAlignment_: setBodyAlignment_,
|
|
12893
|
+
closeDuration_: closeDuration_
|
|
12894
|
+
}) {
|
|
12895
|
+
setBackdropStyle_(prev => ({
|
|
12896
|
+
...prev,
|
|
12897
|
+
opacity: 0,
|
|
12898
|
+
transition: `opacity ${closeDuration_}ms ease-out`
|
|
12899
|
+
}));
|
|
12900
|
+
setBodyAlignment_(prev => ({
|
|
12901
|
+
...prev,
|
|
12902
|
+
opacity: 0,
|
|
12903
|
+
transition: `opacity ${closeDuration_}ms ease-out`
|
|
12904
|
+
}));
|
|
12905
|
+
}
|
|
12906
|
+
function $5cbaffcb5602e671$export$dab9321f3c157061(alignmentSignals, modalVersion) {
|
|
12907
|
+
const [, setBodyAlignment_] = alignmentSignals.body_;
|
|
12908
|
+
const [, setBackdropStyle_] = alignmentSignals.backdrop_ || $gVhhF$solidjs.createSignal({});
|
|
12909
|
+
// For default centered modal, also run our fading animations if search modal v2
|
|
12910
|
+
modalVersion === 2 && $5cbaffcb5602e671$export$e06dee46ebe7faa9({
|
|
12911
|
+
openDuration_: 125,
|
|
12912
|
+
setBodyAlignment_: setBodyAlignment_,
|
|
12913
|
+
setBackdropStyle_: setBackdropStyle_
|
|
12914
|
+
});
|
|
12915
|
+
const closingAnimation = modalVersion === 2 ? async () => {
|
|
12916
|
+
$5cbaffcb5602e671$export$23d40cc5971c3acd({
|
|
12917
|
+
closeDuration_: 100,
|
|
12918
|
+
setBodyAlignment_: setBodyAlignment_,
|
|
12919
|
+
setBackdropStyle_: setBackdropStyle_
|
|
12920
|
+
});
|
|
12921
|
+
await new Promise(r => setTimeout(r, 100));
|
|
12922
|
+
} : undefined;
|
|
12923
|
+
return closingAnimation;
|
|
12924
|
+
}
|
|
12925
|
+
var $f1d7cb69f839a526$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
12852
12926
|
$f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
12853
12927
|
function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
12854
12928
|
depict_api_: depict_api_,
|
|
@@ -12999,7 +13073,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12999
13073
|
results_filters[1]();
|
|
13000
13074
|
await new Promise(r => queueMicrotask(r));
|
|
13001
13075
|
$gVhhF$solidjs.runWithOwner(owner, () => results_filters[1](matches ? [results_for, filters_opener] : (() => {
|
|
13002
|
-
|
|
13076
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($f1d7cb69f839a526$var$_tmpl$),
|
|
13003
13077
|
_el$2 = _el$.firstChild,
|
|
13004
13078
|
[_el$3, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$2.nextSibling),
|
|
13005
13079
|
_el$4 = _el$3.nextSibling,
|
|
@@ -13095,10 +13169,12 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13095
13169
|
closing_animation_: revert,
|
|
13096
13170
|
setSearchFieldOuterWidth_: setModalSearchFieldOuterWidth_
|
|
13097
13171
|
}, () => {
|
|
13098
|
-
// When modal is closed, reset style signals for next opening
|
|
13172
|
+
// When modal is closed, reset style signals for next opening so all animation related stuff gets reset
|
|
13099
13173
|
setModalBodyStyle({});
|
|
13100
13174
|
setModalFieldStyle({});
|
|
13101
13175
|
setModalBackdropStyle({});
|
|
13176
|
+
// And run the alignment code again so the modal is readily aligned when opened via a search button
|
|
13177
|
+
align_position?.();
|
|
13102
13178
|
input_field_accessor_value?.on_close_?.();
|
|
13103
13179
|
});
|
|
13104
13180
|
input_field_accessor_value?.on_open_?.();
|
|
@@ -13115,7 +13191,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13115
13191
|
});
|
|
13116
13192
|
});
|
|
13117
13193
|
return [(0, $gVhhF$solidjsweb.isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"), (() => {
|
|
13118
|
-
|
|
13194
|
+
var _el$6 = $gVhhF$solidjsweb.getNextElement($f1d7cb69f839a526$var$_tmpl$2),
|
|
13119
13195
|
_el$7 = _el$6.firstChild,
|
|
13120
13196
|
_el$8 = _el$7.firstChild,
|
|
13121
13197
|
[_el$9, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$8.nextSibling),
|
|
@@ -13475,14 +13551,10 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
|
|
|
13475
13551
|
}
|
|
13476
13552
|
if (!open_signal_value[0]?.alignmentSignals_ && search_page_aligned_modal_alignment_signals_) {
|
|
13477
13553
|
// Open modal aligned with search page if no alignment specified and possible to align with search page
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
alignmentSignals_: search_page_aligned_modal_alignment_signals_
|
|
13481
|
-
});
|
|
13482
|
-
return;
|
|
13483
|
-
}
|
|
13484
|
-
const [options_arg, ...rest] = open_signal_value;
|
|
13554
|
+
const [options_arg, ...rest] = open_signal_value === true ? [{}] : open_signal_value;
|
|
13555
|
+
const closingAnimation = $5cbaffcb5602e671$export$dab9321f3c157061(search_page_aligned_modal_alignment_signals_, modalVersion);
|
|
13485
13556
|
open_modal_({
|
|
13557
|
+
closing_animation_: closingAnimation,
|
|
13486
13558
|
...options_arg,
|
|
13487
13559
|
alignmentSignals_: search_page_aligned_modal_alignment_signals_
|
|
13488
13560
|
}, ...rest);
|
|
@@ -13490,16 +13562,19 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
|
|
|
13490
13562
|
}
|
|
13491
13563
|
// Open centered modal
|
|
13492
13564
|
const centeredModalAlignmentSignals = $2005eec80e40088f$export$41b4894022a3580f();
|
|
13565
|
+
const closingAnimation = $5cbaffcb5602e671$export$dab9321f3c157061(centeredModalAlignmentSignals, modalVersion);
|
|
13493
13566
|
if (signal_value_is_options) {
|
|
13494
13567
|
const [options_arg, ...rest] = open_signal_value;
|
|
13495
13568
|
open_modal_({
|
|
13569
|
+
closing_animation_: closingAnimation,
|
|
13496
13570
|
...options_arg,
|
|
13497
13571
|
alignmentSignals_: search_page_aligned_modal_alignment_signals_ || centeredModalAlignmentSignals
|
|
13498
13572
|
}, ...rest);
|
|
13499
13573
|
return;
|
|
13500
13574
|
}
|
|
13501
13575
|
open_modal_({
|
|
13502
|
-
alignmentSignals_: centeredModalAlignmentSignals
|
|
13576
|
+
alignmentSignals_: centeredModalAlignmentSignals,
|
|
13577
|
+
closing_animation_: closingAnimation
|
|
13503
13578
|
});
|
|
13504
13579
|
};
|
|
13505
13580
|
$gVhhF$solidjs.runWithOwner(owner, () => $gVhhF$solidjs.createEffect(modal_opening_effect));
|
|
@@ -13946,7 +14021,7 @@ function $0a6acf31d1eae57c$var$clean_url(url) {
|
|
|
13946
14021
|
url_object.hash = "";
|
|
13947
14022
|
return url_object.href;
|
|
13948
14023
|
}
|
|
13949
|
-
|
|
14024
|
+
var $c0a0659cf97e8eb2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search">`);
|
|
13950
14025
|
function $c0a0659cf97e8eb2$export$316f6f283ae64765(props) {
|
|
13951
14026
|
const {
|
|
13952
14027
|
depict_search: depict_search,
|
|
@@ -14049,7 +14124,7 @@ function $c0a0659cf97e8eb2$export$316f6f283ae64765(props) {
|
|
|
14049
14124
|
});
|
|
14050
14125
|
// We assume this to be an array containing exactly on div in js-ui
|
|
14051
14126
|
return [(() => {
|
|
14052
|
-
|
|
14127
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($c0a0659cf97e8eb2$var$_tmpl$);
|
|
14053
14128
|
$gVhhF$solidjsweb.insert(_el$, search_field);
|
|
14054
14129
|
return _el$;
|
|
14055
14130
|
})()];
|