@depict-ai/ui 2.1.23 → 2.1.24
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 +30 -23
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +30 -23
- package/latest/index.cjs +27 -20
- package/latest/index.d.ts +1 -1
- package/latest/index.js +27 -20
- package/locales/ES10/index.cjs +49 -49
- package/locales/ES10/index.js +49 -49
- package/locales/latest/index.cjs +65 -65
- package/locales/latest/index.js +65 -65
- package/package.json +5 -5
- package/server/ES10/index.cjs +30 -23
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +30 -23
- package/server/latest/index.cjs +27 -20
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +27 -20
- package/locales/require.js +0 -1152
package/ES10/index.cjs
CHANGED
|
@@ -78,25 +78,25 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
78
78
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
79
79
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
80
80
|
/*! Depict.ai search and product listing SDK */
|
|
81
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.
|
|
81
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.24";
|
|
82
82
|
const $a68b73fd7ba0853f$var$fallback_operator = "in";
|
|
83
83
|
const $a68b73fd7ba0853f$var$fallback_token = "";
|
|
84
84
|
const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
|
|
85
85
|
const $a68b73fd7ba0853f$var$operator_map = {
|
|
86
|
-
"eq": "
|
|
87
|
-
"neq": "
|
|
88
|
-
"in": "
|
|
89
|
-
"nin": "
|
|
90
|
-
"leq": "
|
|
91
|
-
"geq": "
|
|
86
|
+
"eq": "\u2261",
|
|
87
|
+
"neq": "\u2260",
|
|
88
|
+
"in": "\u2208",
|
|
89
|
+
"nin": "\u2209",
|
|
90
|
+
"leq": "\u2264",
|
|
91
|
+
"geq": "\u2265",
|
|
92
92
|
"inrange": "\uD83D\uDD22"
|
|
93
93
|
};
|
|
94
94
|
const $a68b73fd7ba0853f$var$ascending_token = "\uD83D\uDCC8";
|
|
95
95
|
const $a68b73fd7ba0853f$var$descending_token = "\uD83D\uDCC9";
|
|
96
96
|
const $a68b73fd7ba0853f$var$range_delimiter = "-";
|
|
97
|
-
const $a68b73fd7ba0853f$var$string_item_delimiter = "
|
|
98
|
-
const $a68b73fd7ba0853f$var$array_item_delimiter = "
|
|
99
|
-
const $a68b73fd7ba0853f$var$empty_item_replacement = "0
|
|
97
|
+
const $a68b73fd7ba0853f$var$string_item_delimiter = "\u201A"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
|
|
98
|
+
const $a68b73fd7ba0853f$var$array_item_delimiter = "\u2023"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
|
|
99
|
+
const $a68b73fd7ba0853f$var$empty_item_replacement = "0\uFE0F\u20E3";
|
|
100
100
|
const $a68b73fd7ba0853f$var$op_to_token = op => {
|
|
101
101
|
if (op === $a68b73fd7ba0853f$var$fallback_operator) return $a68b73fd7ba0853f$var$fallback_token;
|
|
102
102
|
return $a68b73fd7ba0853f$var$operator_map[op];
|
|
@@ -1659,7 +1659,7 @@ function $e2d74bb03cc5252e$export$325f75597868c4f0(stuff) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
const $c5842bdb10e57229$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-all-filters minor">`),
|
|
1661
1661
|
$c5842bdb10e57229$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
|
|
1662
|
-
$c5842bdb10e57229$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/>
|
|
1662
|
+
$c5842bdb10e57229$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> \u{2013} <!$><!/><!$><!/><!$><!/>`),
|
|
1663
1663
|
$c5842bdb10e57229$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span>`);
|
|
1664
1664
|
function $c5842bdb10e57229$export$fecbb157621501bd(_ref) {
|
|
1665
1665
|
let {
|
|
@@ -2898,7 +2898,7 @@ function $99472afa7112c427$var$cut_text(segmented_text) {
|
|
|
2898
2898
|
// identical split point, or split end before split start, can't do anything
|
|
2899
2899
|
split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
|
|
2900
2900
|
const dots_segment = {
|
|
2901
|
-
text_: "
|
|
2901
|
+
text_: " \u2026 ",
|
|
2902
2902
|
highlighted_: false
|
|
2903
2903
|
};
|
|
2904
2904
|
const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
|
|
@@ -2992,7 +2992,7 @@ function $99472afa7112c427$var$cut_start(cut_left_of_index, segmented_text) {
|
|
|
2992
2992
|
if (character === "," || is_space)
|
|
2993
2993
|
// if we cut at a comma or psace, we add a … at the beginning
|
|
2994
2994
|
segmented_text.unshift({
|
|
2995
|
-
text_: "
|
|
2995
|
+
text_: "\u2026 ",
|
|
2996
2996
|
highlighted_: false
|
|
2997
2997
|
});
|
|
2998
2998
|
break outmost_loop;
|
|
@@ -4088,7 +4088,7 @@ function $958981128e559776$export$53c59af873b303c9(_ref) {
|
|
|
4088
4088
|
get price_formatting_() {
|
|
4089
4089
|
return price_formatting_();
|
|
4090
4090
|
}
|
|
4091
|
-
}), $52FdA$solidjsweb.memo(() => price_formatting_().post_), "
|
|
4091
|
+
}), $52FdA$solidjsweb.memo(() => price_formatting_().post_), " \u2013 ", $52FdA$solidjsweb.memo(() => price_formatting_().pre_), $52FdA$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
|
|
4092
4092
|
get price_() {
|
|
4093
4093
|
return selected_filter.data[1];
|
|
4094
4094
|
},
|
|
@@ -5142,7 +5142,7 @@ class $e270e9f953fcbc58$export$e015ed2f2950f2e3 {
|
|
|
5142
5142
|
try {
|
|
5143
5143
|
return await $e270e9f953fcbc58$var$_classPrivateMethodGet(this, $e270e9f953fcbc58$var$_run_url_creator_for_suggest, $e270e9f953fcbc58$var$_run_url_creator_for_suggest2).call(this, input_req.tenant, input_req.market, decoded_json);
|
|
5144
5144
|
} catch (e) {
|
|
5145
|
-
$52FdA$depictaiutilishared.dwarn("
|
|
5145
|
+
$52FdA$depictaiutilishared.dwarn("displayTransformer failed", e);
|
|
5146
5146
|
}
|
|
5147
5147
|
}
|
|
5148
5148
|
return {
|
|
@@ -5193,7 +5193,7 @@ function $e270e9f953fcbc58$var$_get_cache_obj_for_endpoint2(endpoint) {
|
|
|
5193
5193
|
}
|
|
5194
5194
|
function $e270e9f953fcbc58$var$_guard_url_creator_length2(expected, received) {
|
|
5195
5195
|
if (expected.length !== received.length) {
|
|
5196
|
-
const e = new Error("
|
|
5196
|
+
const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
|
|
5197
5197
|
queueMicrotask(() => {
|
|
5198
5198
|
throw e;
|
|
5199
5199
|
});
|
|
@@ -5314,7 +5314,7 @@ async function $e270e9f953fcbc58$var$_cached_post_request2(endpoint, input_req,
|
|
|
5314
5314
|
const unmodified_result = await api_response.json();
|
|
5315
5315
|
result = await $e270e9f953fcbc58$var$_classPrivateMethodGet(this, $e270e9f953fcbc58$var$_run_display_transformers_for_rest, $e270e9f953fcbc58$var$_run_display_transformers_for_rest2).call(this, input_req.tenant, input_req.market, unmodified_result);
|
|
5316
5316
|
} catch (e) {
|
|
5317
|
-
$52FdA$depictaiutilishared.dwarn("
|
|
5317
|
+
$52FdA$depictaiutilishared.dwarn("displayTransformer or json decoding failed", e);
|
|
5318
5318
|
break return_successfully;
|
|
5319
5319
|
}
|
|
5320
5320
|
// Here result actually becomes O
|
|
@@ -5447,7 +5447,7 @@ function $1689794f03ba2554$export$205efb947c7ffd78(handler) {
|
|
|
5447
5447
|
$52FdA$solidjs.onCleanup(() => removeEventListener(event, catchified_handler));
|
|
5448
5448
|
}
|
|
5449
5449
|
}
|
|
5450
|
-
const $e03dec587b6e91e3$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=scroll-status style=display:none><span class=text><b></b>
|
|
5450
|
+
const $e03dec587b6e91e3$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=scroll-status style=display:none><span class=text><b></b> \u{2013} <b></b> <!$><!/> <b>`);
|
|
5451
5451
|
function $e03dec587b6e91e3$export$83fd5de5504a7a67(_ref) {
|
|
5452
5452
|
let {
|
|
5453
5453
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
@@ -9057,7 +9057,7 @@ function $9cbefc32b9dab36d$var$get_shared_properties(depict_category) {
|
|
|
9057
9057
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
9058
9058
|
return shared_properties;
|
|
9059
9059
|
}
|
|
9060
|
-
const $dc0bcefcc3486ebd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=category-title><h1 class=title></h1><span class=explanation>
|
|
9060
|
+
const $dc0bcefcc3486ebd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=category-title><h1 class=title></h1><span class=explanation> \u{2014} <!$><!/>`);
|
|
9061
9061
|
const $dc0bcefcc3486ebd$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
9062
9062
|
const actual_function = _ref => {
|
|
9063
9063
|
let {
|
|
@@ -9466,10 +9466,17 @@ function $c77adcdf5346b187$export$7de92c4c2205ebf3(_ref) {
|
|
|
9466
9466
|
var _recommendations_reso;
|
|
9467
9467
|
return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
|
|
9468
9468
|
});
|
|
9469
|
-
const num_placeholders_ = $52FdA$solidjs.createMemo(() =>
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9469
|
+
const num_placeholders_ = $52FdA$solidjs.createMemo(() => {
|
|
9470
|
+
const possible_num_columns = layout_options_().cols_at_size.map(_ref2 => {
|
|
9471
|
+
let [per_column] = _ref2;
|
|
9472
|
+
return per_column;
|
|
9473
|
+
});
|
|
9474
|
+
if (!possible_num_columns.length)
|
|
9475
|
+
// Empty cols_at_size, for example artilleriet has that
|
|
9476
|
+
// Assume there will be 4 columns
|
|
9477
|
+
possible_num_columns.push(4);
|
|
9478
|
+
return (0, $da887c42f8e8847a$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
|
|
9479
|
+
});
|
|
9473
9480
|
// Don't tear down elements every time one updates the page - don't put them within <Show>
|
|
9474
9481
|
const elements = (() => {
|
|
9475
9482
|
const _el$ = $52FdA$solidjsweb.getNextElement($c77adcdf5346b187$var$_tmpl$),
|
package/ES10/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { LegacyCategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/
|
|
|
7
7
|
import { BaseSearchRequestV2 } from "@depict-ai/types/api/BaseSearchRequestV2";
|
|
8
8
|
import { SearchSuggestionsRequestV2 } from "@depict-ai/types/api/SearchSuggestionsRequestV2";
|
|
9
9
|
import { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
|
|
10
|
-
export const version = "2.1.
|
|
10
|
+
export const version = "2.1.24";
|
|
11
11
|
/**
|
|
12
12
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
13
13
|
*/
|
package/ES10/index.js
CHANGED
|
@@ -9,25 +9,25 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
|
|
|
9
9
|
/*! Depict.ai search and product listing SDK */
|
|
10
10
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
11
11
|
register_es_version("ui", "ES10");
|
|
12
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.
|
|
12
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.24";
|
|
13
13
|
const $2855bffe06ef7a03$var$fallback_operator = "in";
|
|
14
14
|
const $2855bffe06ef7a03$var$fallback_token = "";
|
|
15
15
|
const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
|
|
16
16
|
const $2855bffe06ef7a03$var$operator_map = {
|
|
17
|
-
"eq": "
|
|
18
|
-
"neq": "
|
|
19
|
-
"in": "
|
|
20
|
-
"nin": "
|
|
21
|
-
"leq": "
|
|
22
|
-
"geq": "
|
|
17
|
+
"eq": "\u2261",
|
|
18
|
+
"neq": "\u2260",
|
|
19
|
+
"in": "\u2208",
|
|
20
|
+
"nin": "\u2209",
|
|
21
|
+
"leq": "\u2264",
|
|
22
|
+
"geq": "\u2265",
|
|
23
23
|
"inrange": "\uD83D\uDD22"
|
|
24
24
|
};
|
|
25
25
|
const $2855bffe06ef7a03$var$ascending_token = "\uD83D\uDCC8";
|
|
26
26
|
const $2855bffe06ef7a03$var$descending_token = "\uD83D\uDCC9";
|
|
27
27
|
const $2855bffe06ef7a03$var$range_delimiter = "-";
|
|
28
|
-
const $2855bffe06ef7a03$var$string_item_delimiter = "
|
|
29
|
-
const $2855bffe06ef7a03$var$array_item_delimiter = "
|
|
30
|
-
const $2855bffe06ef7a03$var$empty_item_replacement = "0
|
|
28
|
+
const $2855bffe06ef7a03$var$string_item_delimiter = "\u201A"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
|
|
29
|
+
const $2855bffe06ef7a03$var$array_item_delimiter = "\u2023"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
|
|
30
|
+
const $2855bffe06ef7a03$var$empty_item_replacement = "0\uFE0F\u20E3";
|
|
31
31
|
const $2855bffe06ef7a03$var$op_to_token = op => {
|
|
32
32
|
if (op === $2855bffe06ef7a03$var$fallback_operator) return $2855bffe06ef7a03$var$fallback_token;
|
|
33
33
|
return $2855bffe06ef7a03$var$operator_map[op];
|
|
@@ -1590,7 +1590,7 @@ function $af5d8e0b7d97a7f6$export$325f75597868c4f0(stuff) {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
const $4711a82d08d2021b$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="clear-all-filters minor">`),
|
|
1592
1592
|
$4711a82d08d2021b$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
|
|
1593
|
-
$4711a82d08d2021b$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/>
|
|
1593
|
+
$4711a82d08d2021b$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> \u{2013} <!$><!/><!$><!/><!$><!/>`),
|
|
1594
1594
|
$4711a82d08d2021b$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<button class="clear-filter major"><!$><!/><span>`);
|
|
1595
1595
|
function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
|
|
1596
1596
|
let {
|
|
@@ -2829,7 +2829,7 @@ function $f3a159279dc1a8fb$var$cut_text(segmented_text) {
|
|
|
2829
2829
|
// identical split point, or split end before split start, can't do anything
|
|
2830
2830
|
split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
|
|
2831
2831
|
const dots_segment = {
|
|
2832
|
-
text_: "
|
|
2832
|
+
text_: " \u2026 ",
|
|
2833
2833
|
highlighted_: false
|
|
2834
2834
|
};
|
|
2835
2835
|
const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
|
|
@@ -2923,7 +2923,7 @@ function $f3a159279dc1a8fb$var$cut_start(cut_left_of_index, segmented_text) {
|
|
|
2923
2923
|
if (character === "," || is_space)
|
|
2924
2924
|
// if we cut at a comma or psace, we add a … at the beginning
|
|
2925
2925
|
segmented_text.unshift({
|
|
2926
|
-
text_: "
|
|
2926
|
+
text_: "\u2026 ",
|
|
2927
2927
|
highlighted_: false
|
|
2928
2928
|
});
|
|
2929
2929
|
break outmost_loop;
|
|
@@ -4019,7 +4019,7 @@ function $d0ff304c14f50521$export$53c59af873b303c9(_ref) {
|
|
|
4019
4019
|
get price_formatting_() {
|
|
4020
4020
|
return price_formatting_();
|
|
4021
4021
|
}
|
|
4022
|
-
}), $8tj43$memo(() => price_formatting_().post_), "
|
|
4022
|
+
}), $8tj43$memo(() => price_formatting_().post_), " \u2013 ", $8tj43$memo(() => price_formatting_().pre_), $8tj43$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
|
|
4023
4023
|
get price_() {
|
|
4024
4024
|
return selected_filter.data[1];
|
|
4025
4025
|
},
|
|
@@ -5073,7 +5073,7 @@ class $284849364a6ef73a$export$e015ed2f2950f2e3 {
|
|
|
5073
5073
|
try {
|
|
5074
5074
|
return await $284849364a6ef73a$var$_classPrivateMethodGet(this, $284849364a6ef73a$var$_run_url_creator_for_suggest, $284849364a6ef73a$var$_run_url_creator_for_suggest2).call(this, input_req.tenant, input_req.market, decoded_json);
|
|
5075
5075
|
} catch (e) {
|
|
5076
|
-
$8tj43$dwarn("
|
|
5076
|
+
$8tj43$dwarn("displayTransformer failed", e);
|
|
5077
5077
|
}
|
|
5078
5078
|
}
|
|
5079
5079
|
return {
|
|
@@ -5124,7 +5124,7 @@ function $284849364a6ef73a$var$_get_cache_obj_for_endpoint2(endpoint) {
|
|
|
5124
5124
|
}
|
|
5125
5125
|
function $284849364a6ef73a$var$_guard_url_creator_length2(expected, received) {
|
|
5126
5126
|
if (expected.length !== received.length) {
|
|
5127
|
-
const e = new Error("
|
|
5127
|
+
const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
|
|
5128
5128
|
queueMicrotask(() => {
|
|
5129
5129
|
throw e;
|
|
5130
5130
|
});
|
|
@@ -5245,7 +5245,7 @@ async function $284849364a6ef73a$var$_cached_post_request2(endpoint, input_req,
|
|
|
5245
5245
|
const unmodified_result = await api_response.json();
|
|
5246
5246
|
result = await $284849364a6ef73a$var$_classPrivateMethodGet(this, $284849364a6ef73a$var$_run_display_transformers_for_rest, $284849364a6ef73a$var$_run_display_transformers_for_rest2).call(this, input_req.tenant, input_req.market, unmodified_result);
|
|
5247
5247
|
} catch (e) {
|
|
5248
|
-
$8tj43$dwarn("
|
|
5248
|
+
$8tj43$dwarn("displayTransformer or json decoding failed", e);
|
|
5249
5249
|
break return_successfully;
|
|
5250
5250
|
}
|
|
5251
5251
|
// Here result actually becomes O
|
|
@@ -5378,7 +5378,7 @@ function $33e7d1906c93db7d$export$205efb947c7ffd78(handler) {
|
|
|
5378
5378
|
$8tj43$onCleanup(() => removeEventListener(event, catchified_handler));
|
|
5379
5379
|
}
|
|
5380
5380
|
}
|
|
5381
|
-
const $b69740fc6de9f17e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=scroll-status style=display:none><span class=text><b></b>
|
|
5381
|
+
const $b69740fc6de9f17e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=scroll-status style=display:none><span class=text><b></b> \u{2013} <b></b> <!$><!/> <b>`);
|
|
5382
5382
|
function $b69740fc6de9f17e$export$83fd5de5504a7a67(_ref) {
|
|
5383
5383
|
let {
|
|
5384
5384
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
@@ -8988,7 +8988,7 @@ function $f5f54892fd0c7d9f$var$get_shared_properties(depict_category) {
|
|
|
8988
8988
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
8989
8989
|
return shared_properties;
|
|
8990
8990
|
}
|
|
8991
|
-
const $fa332ea03168857c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=category-title><h1 class=title></h1><span class=explanation>
|
|
8991
|
+
const $fa332ea03168857c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=category-title><h1 class=title></h1><span class=explanation> \u{2014} <!$><!/>`);
|
|
8992
8992
|
const $fa332ea03168857c$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
8993
8993
|
const actual_function = _ref => {
|
|
8994
8994
|
let {
|
|
@@ -9397,10 +9397,17 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
|
|
|
9397
9397
|
var _recommendations_reso;
|
|
9398
9398
|
return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
|
|
9399
9399
|
});
|
|
9400
|
-
const num_placeholders_ = $8tj43$createMemo(() =>
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9400
|
+
const num_placeholders_ = $8tj43$createMemo(() => {
|
|
9401
|
+
const possible_num_columns = layout_options_().cols_at_size.map(_ref2 => {
|
|
9402
|
+
let [per_column] = _ref2;
|
|
9403
|
+
return per_column;
|
|
9404
|
+
});
|
|
9405
|
+
if (!possible_num_columns.length)
|
|
9406
|
+
// Empty cols_at_size, for example artilleriet has that
|
|
9407
|
+
// Assume there will be 4 columns
|
|
9408
|
+
possible_num_columns.push(4);
|
|
9409
|
+
return (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
|
|
9410
|
+
});
|
|
9404
9411
|
// Don't tear down elements every time one updates the page - don't put them within <Show>
|
|
9405
9412
|
const elements = (() => {
|
|
9406
9413
|
const _el$ = $8tj43$getNextElement($8ef6232475d44150$var$_tmpl$),
|
package/latest/index.cjs
CHANGED
|
@@ -72,25 +72,25 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
72
72
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
73
73
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
74
74
|
/*! Depict.ai search and product listing SDK */
|
|
75
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.
|
|
75
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.24";
|
|
76
76
|
const $1ab22f2cd39b3061$var$fallback_operator = "in";
|
|
77
77
|
const $1ab22f2cd39b3061$var$fallback_token = "";
|
|
78
78
|
const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
|
|
79
79
|
const $1ab22f2cd39b3061$var$operator_map = {
|
|
80
|
-
"eq": "
|
|
81
|
-
"neq": "
|
|
82
|
-
"in": "
|
|
83
|
-
"nin": "
|
|
84
|
-
"leq": "
|
|
85
|
-
"geq": "
|
|
80
|
+
"eq": "\u2261",
|
|
81
|
+
"neq": "\u2260",
|
|
82
|
+
"in": "\u2208",
|
|
83
|
+
"nin": "\u2209",
|
|
84
|
+
"leq": "\u2264",
|
|
85
|
+
"geq": "\u2265",
|
|
86
86
|
"inrange": "\uD83D\uDD22"
|
|
87
87
|
};
|
|
88
88
|
const $1ab22f2cd39b3061$var$ascending_token = "\uD83D\uDCC8";
|
|
89
89
|
const $1ab22f2cd39b3061$var$descending_token = "\uD83D\uDCC9";
|
|
90
90
|
const $1ab22f2cd39b3061$var$range_delimiter = "-";
|
|
91
|
-
const $1ab22f2cd39b3061$var$string_item_delimiter = "
|
|
92
|
-
const $1ab22f2cd39b3061$var$array_item_delimiter = "
|
|
93
|
-
const $1ab22f2cd39b3061$var$empty_item_replacement = "0
|
|
91
|
+
const $1ab22f2cd39b3061$var$string_item_delimiter = "\u201A"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
|
|
92
|
+
const $1ab22f2cd39b3061$var$array_item_delimiter = "\u2023"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
|
|
93
|
+
const $1ab22f2cd39b3061$var$empty_item_replacement = "0\uFE0F\u20E3";
|
|
94
94
|
const $1ab22f2cd39b3061$var$op_to_token = op => {
|
|
95
95
|
if (op === $1ab22f2cd39b3061$var$fallback_operator) return $1ab22f2cd39b3061$var$fallback_token;
|
|
96
96
|
return $1ab22f2cd39b3061$var$operator_map[op];
|
|
@@ -1582,7 +1582,7 @@ function $daa394359b026187$export$325f75597868c4f0(stuff) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
const $235a2771a44e28e9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-all-filters minor">`),
|
|
1584
1584
|
$235a2771a44e28e9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
|
|
1585
|
-
$235a2771a44e28e9$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/>
|
|
1585
|
+
$235a2771a44e28e9$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> \u{2013} <!$><!/><!$><!/><!$><!/>`),
|
|
1586
1586
|
$235a2771a44e28e9$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span>`);
|
|
1587
1587
|
function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
1588
1588
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
@@ -2755,7 +2755,7 @@ function $5ea5a82e398f6f44$var$cut_text(segmented_text) {
|
|
|
2755
2755
|
// identical split point, or split end before split start, can't do anything
|
|
2756
2756
|
split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
|
|
2757
2757
|
const dots_segment = {
|
|
2758
|
-
text_: "
|
|
2758
|
+
text_: " \u2026 ",
|
|
2759
2759
|
highlighted_: false
|
|
2760
2760
|
};
|
|
2761
2761
|
const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
|
|
@@ -2847,7 +2847,7 @@ function $5ea5a82e398f6f44$var$cut_start(cut_left_of_index, segmented_text) {
|
|
|
2847
2847
|
if (character === "," || is_space)
|
|
2848
2848
|
// if we cut at a comma or psace, we add a … at the beginning
|
|
2849
2849
|
segmented_text.unshift({
|
|
2850
|
-
text_: "
|
|
2850
|
+
text_: "\u2026 ",
|
|
2851
2851
|
highlighted_: false
|
|
2852
2852
|
});
|
|
2853
2853
|
break outmost_loop;
|
|
@@ -3861,7 +3861,7 @@ function $b064919833b3e80b$export$53c59af873b303c9({
|
|
|
3861
3861
|
get price_formatting_() {
|
|
3862
3862
|
return price_formatting_();
|
|
3863
3863
|
}
|
|
3864
|
-
}), $gVhhF$solidjsweb.memo(() => price_formatting_().post_), "
|
|
3864
|
+
}), $gVhhF$solidjsweb.memo(() => price_formatting_().post_), " \u2013 ", $gVhhF$solidjsweb.memo(() => price_formatting_().pre_), $gVhhF$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
|
|
3865
3865
|
get price_() {
|
|
3866
3866
|
return selected_filter.data[1];
|
|
3867
3867
|
},
|
|
@@ -4776,7 +4776,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
|
|
|
4776
4776
|
#get_session_id;
|
|
4777
4777
|
#guard_url_creator_length(expected, received) {
|
|
4778
4778
|
if (expected.length !== received.length) {
|
|
4779
|
-
const e = new Error("
|
|
4779
|
+
const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
|
|
4780
4780
|
queueMicrotask(() => {
|
|
4781
4781
|
throw e;
|
|
4782
4782
|
});
|
|
@@ -4895,7 +4895,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
|
|
|
4895
4895
|
const unmodified_result = await api_response.json();
|
|
4896
4896
|
result = await this.#run_display_transformers_for_rest(input_req.tenant, input_req.market, unmodified_result);
|
|
4897
4897
|
} catch (e) {
|
|
4898
|
-
$gVhhF$depictaiutilishared.dwarn("
|
|
4898
|
+
$gVhhF$depictaiutilishared.dwarn("displayTransformer or json decoding failed", e);
|
|
4899
4899
|
break return_successfully;
|
|
4900
4900
|
}
|
|
4901
4901
|
// Here result actually becomes O
|
|
@@ -4949,7 +4949,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
|
|
|
4949
4949
|
try {
|
|
4950
4950
|
return await this.#run_url_creator_for_suggest(input_req.tenant, input_req.market, decoded_json);
|
|
4951
4951
|
} catch (e) {
|
|
4952
|
-
$gVhhF$depictaiutilishared.dwarn("
|
|
4952
|
+
$gVhhF$depictaiutilishared.dwarn("displayTransformer failed", e);
|
|
4953
4953
|
}
|
|
4954
4954
|
}
|
|
4955
4955
|
return {
|
|
@@ -5082,7 +5082,7 @@ function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true) {
|
|
|
5082
5082
|
$gVhhF$solidjs.onCleanup(() => removeEventListener(event, catchified_handler));
|
|
5083
5083
|
}
|
|
5084
5084
|
}
|
|
5085
|
-
const $401aee5f33dca9e2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=scroll-status style=display:none><span class=text><b></b>
|
|
5085
|
+
const $401aee5f33dca9e2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=scroll-status style=display:none><span class=text><b></b> \u{2013} <b></b> <!$><!/> <b>`);
|
|
5086
5086
|
function $401aee5f33dca9e2$export$83fd5de5504a7a67({
|
|
5087
5087
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
5088
5088
|
first_result_in_viewport_: [get_first_result_in_viewport],
|
|
@@ -8408,7 +8408,7 @@ function $48567ac5b39bac56$var$get_shared_properties(depict_category) {
|
|
|
8408
8408
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
8409
8409
|
return shared_properties;
|
|
8410
8410
|
}
|
|
8411
|
-
const $0b23bfd073d9a4e8$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=category-title><h1 class=title></h1><span class=explanation>
|
|
8411
|
+
const $0b23bfd073d9a4e8$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=category-title><h1 class=title></h1><span class=explanation> \u{2014} <!$><!/>`);
|
|
8412
8412
|
const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
8413
8413
|
const actual_function = ({
|
|
8414
8414
|
category_title_: category_title_,
|
|
@@ -8805,7 +8805,14 @@ function $fb29c6201c369e39$export$7de92c4c2205ebf3({
|
|
|
8805
8805
|
// only fetch/refetch if all products are loaded
|
|
8806
8806
|
query => query && depict_api_.get_recommended(query).then(r => r.displays));
|
|
8807
8807
|
const should_show = $gVhhF$solidjs.createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
|
|
8808
|
-
const num_placeholders_ = $gVhhF$solidjs.createMemo(() =>
|
|
8808
|
+
const num_placeholders_ = $gVhhF$solidjs.createMemo(() => {
|
|
8809
|
+
const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
|
|
8810
|
+
if (!possible_num_columns.length)
|
|
8811
|
+
// Empty cols_at_size, for example artilleriet has that
|
|
8812
|
+
// Assume there will be 4 columns
|
|
8813
|
+
possible_num_columns.push(4);
|
|
8814
|
+
return (0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
|
|
8815
|
+
});
|
|
8809
8816
|
// Don't tear down elements every time one updates the page - don't put them within <Show>
|
|
8810
8817
|
const elements = (() => {
|
|
8811
8818
|
const _el$ = $gVhhF$solidjsweb.getNextElement($fb29c6201c369e39$var$_tmpl$),
|
package/latest/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { LegacyCategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/
|
|
|
7
7
|
import { BaseSearchRequestV2 } from "@depict-ai/types/api/BaseSearchRequestV2";
|
|
8
8
|
import { SearchSuggestionsRequestV2 } from "@depict-ai/types/api/SearchSuggestionsRequestV2";
|
|
9
9
|
import { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
|
|
10
|
-
export const version = "2.1.
|
|
10
|
+
export const version = "2.1.24";
|
|
11
11
|
/**
|
|
12
12
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
13
13
|
*/
|
package/latest/index.js
CHANGED
|
@@ -6,25 +6,25 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
|
|
|
6
6
|
/*! Depict.ai search and product listing SDK */
|
|
7
7
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
8
8
|
register_es_version("ui", "latest");
|
|
9
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.
|
|
9
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.24";
|
|
10
10
|
const $4147651646da990a$var$fallback_operator = "in";
|
|
11
11
|
const $4147651646da990a$var$fallback_token = "";
|
|
12
12
|
const $4147651646da990a$var$legacy_filter_prefix = "filter_";
|
|
13
13
|
const $4147651646da990a$var$operator_map = {
|
|
14
|
-
"eq": "
|
|
15
|
-
"neq": "
|
|
16
|
-
"in": "
|
|
17
|
-
"nin": "
|
|
18
|
-
"leq": "
|
|
19
|
-
"geq": "
|
|
14
|
+
"eq": "\u2261",
|
|
15
|
+
"neq": "\u2260",
|
|
16
|
+
"in": "\u2208",
|
|
17
|
+
"nin": "\u2209",
|
|
18
|
+
"leq": "\u2264",
|
|
19
|
+
"geq": "\u2265",
|
|
20
20
|
"inrange": "\uD83D\uDD22"
|
|
21
21
|
};
|
|
22
22
|
const $4147651646da990a$var$ascending_token = "\uD83D\uDCC8";
|
|
23
23
|
const $4147651646da990a$var$descending_token = "\uD83D\uDCC9";
|
|
24
24
|
const $4147651646da990a$var$range_delimiter = "-";
|
|
25
|
-
const $4147651646da990a$var$string_item_delimiter = "
|
|
26
|
-
const $4147651646da990a$var$array_item_delimiter = "
|
|
27
|
-
const $4147651646da990a$var$empty_item_replacement = "0
|
|
25
|
+
const $4147651646da990a$var$string_item_delimiter = "\u201A"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
|
|
26
|
+
const $4147651646da990a$var$array_item_delimiter = "\u2023"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
|
|
27
|
+
const $4147651646da990a$var$empty_item_replacement = "0\uFE0F\u20E3";
|
|
28
28
|
const $4147651646da990a$var$op_to_token = op => {
|
|
29
29
|
if (op === $4147651646da990a$var$fallback_operator) return $4147651646da990a$var$fallback_token;
|
|
30
30
|
return $4147651646da990a$var$operator_map[op];
|
|
@@ -1516,7 +1516,7 @@ function $91aa8ee9f431800d$export$325f75597868c4f0(stuff) {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
const $1adfe60f3a14a1d7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="clear-all-filters minor">`),
|
|
1518
1518
|
$1adfe60f3a14a1d7$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
|
|
1519
|
-
$1adfe60f3a14a1d7$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/>
|
|
1519
|
+
$1adfe60f3a14a1d7$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> \u{2013} <!$><!/><!$><!/><!$><!/>`),
|
|
1520
1520
|
$1adfe60f3a14a1d7$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<button class="clear-filter major"><!$><!/><span>`);
|
|
1521
1521
|
function $1adfe60f3a14a1d7$export$fecbb157621501bd({
|
|
1522
1522
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
@@ -2689,7 +2689,7 @@ function $522a690e0e2bd46d$var$cut_text(segmented_text) {
|
|
|
2689
2689
|
// identical split point, or split end before split start, can't do anything
|
|
2690
2690
|
split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
|
|
2691
2691
|
const dots_segment = {
|
|
2692
|
-
text_: "
|
|
2692
|
+
text_: " \u2026 ",
|
|
2693
2693
|
highlighted_: false
|
|
2694
2694
|
};
|
|
2695
2695
|
const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
|
|
@@ -2781,7 +2781,7 @@ function $522a690e0e2bd46d$var$cut_start(cut_left_of_index, segmented_text) {
|
|
|
2781
2781
|
if (character === "," || is_space)
|
|
2782
2782
|
// if we cut at a comma or psace, we add a … at the beginning
|
|
2783
2783
|
segmented_text.unshift({
|
|
2784
|
-
text_: "
|
|
2784
|
+
text_: "\u2026 ",
|
|
2785
2785
|
highlighted_: false
|
|
2786
2786
|
});
|
|
2787
2787
|
break outmost_loop;
|
|
@@ -3795,7 +3795,7 @@ function $a7b58cb3bcffd156$export$53c59af873b303c9({
|
|
|
3795
3795
|
get price_formatting_() {
|
|
3796
3796
|
return price_formatting_();
|
|
3797
3797
|
}
|
|
3798
|
-
}), $9HbP8$memo(() => price_formatting_().post_), "
|
|
3798
|
+
}), $9HbP8$memo(() => price_formatting_().post_), " \u2013 ", $9HbP8$memo(() => price_formatting_().pre_), $9HbP8$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
|
|
3799
3799
|
get price_() {
|
|
3800
3800
|
return selected_filter.data[1];
|
|
3801
3801
|
},
|
|
@@ -4710,7 +4710,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
4710
4710
|
#get_session_id;
|
|
4711
4711
|
#guard_url_creator_length(expected, received) {
|
|
4712
4712
|
if (expected.length !== received.length) {
|
|
4713
|
-
const e = new Error("
|
|
4713
|
+
const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
|
|
4714
4714
|
queueMicrotask(() => {
|
|
4715
4715
|
throw e;
|
|
4716
4716
|
});
|
|
@@ -4829,7 +4829,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
4829
4829
|
const unmodified_result = await api_response.json();
|
|
4830
4830
|
result = await this.#run_display_transformers_for_rest(input_req.tenant, input_req.market, unmodified_result);
|
|
4831
4831
|
} catch (e) {
|
|
4832
|
-
$9HbP8$dwarn("
|
|
4832
|
+
$9HbP8$dwarn("displayTransformer or json decoding failed", e);
|
|
4833
4833
|
break return_successfully;
|
|
4834
4834
|
}
|
|
4835
4835
|
// Here result actually becomes O
|
|
@@ -4883,7 +4883,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
4883
4883
|
try {
|
|
4884
4884
|
return await this.#run_url_creator_for_suggest(input_req.tenant, input_req.market, decoded_json);
|
|
4885
4885
|
} catch (e) {
|
|
4886
|
-
$9HbP8$dwarn("
|
|
4886
|
+
$9HbP8$dwarn("displayTransformer failed", e);
|
|
4887
4887
|
}
|
|
4888
4888
|
}
|
|
4889
4889
|
return {
|
|
@@ -5016,7 +5016,7 @@ function $8f9120a1ca151e6a$export$205efb947c7ffd78(handler, passive = true) {
|
|
|
5016
5016
|
$9HbP8$onCleanup(() => removeEventListener(event, catchified_handler));
|
|
5017
5017
|
}
|
|
5018
5018
|
}
|
|
5019
|
-
const $6db49ca163afa2c3$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=scroll-status style=display:none><span class=text><b></b>
|
|
5019
|
+
const $6db49ca163afa2c3$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=scroll-status style=display:none><span class=text><b></b> \u{2013} <b></b> <!$><!/> <b>`);
|
|
5020
5020
|
function $6db49ca163afa2c3$export$83fd5de5504a7a67({
|
|
5021
5021
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
5022
5022
|
first_result_in_viewport_: [get_first_result_in_viewport],
|
|
@@ -8342,7 +8342,7 @@ function $961b5c64bef4662f$var$get_shared_properties(depict_category) {
|
|
|
8342
8342
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
8343
8343
|
return shared_properties;
|
|
8344
8344
|
}
|
|
8345
|
-
const $e4615ecd1849548f$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=category-title><h1 class=title></h1><span class=explanation>
|
|
8345
|
+
const $e4615ecd1849548f$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=category-title><h1 class=title></h1><span class=explanation> \u{2014} <!$><!/>`);
|
|
8346
8346
|
const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
8347
8347
|
const actual_function = ({
|
|
8348
8348
|
category_title_: category_title_,
|
|
@@ -8739,7 +8739,14 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
|
|
|
8739
8739
|
// only fetch/refetch if all products are loaded
|
|
8740
8740
|
query => query && depict_api_.get_recommended(query).then(r => r.displays));
|
|
8741
8741
|
const should_show = $9HbP8$createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
|
|
8742
|
-
const num_placeholders_ = $9HbP8$createMemo(() =>
|
|
8742
|
+
const num_placeholders_ = $9HbP8$createMemo(() => {
|
|
8743
|
+
const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
|
|
8744
|
+
if (!possible_num_columns.length)
|
|
8745
|
+
// Empty cols_at_size, for example artilleriet has that
|
|
8746
|
+
// Assume there will be 4 columns
|
|
8747
|
+
possible_num_columns.push(4);
|
|
8748
|
+
return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
|
|
8749
|
+
});
|
|
8743
8750
|
// Don't tear down elements every time one updates the page - don't put them within <Show>
|
|
8744
8751
|
const elements = (() => {
|
|
8745
8752
|
const _el$ = $9HbP8$getNextElement($172e1b898d457050$var$_tmpl$),
|