@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.
@@ -9,25 +9,25 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$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.23";
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 = "‚"; // 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 = "‣"; // FIXME: decide on a character. Could theoretically be a double string 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];
@@ -1308,7 +1308,7 @@ function $af5d8e0b7d97a7f6$export$325f75597868c4f0(stuff) {
1308
1308
  }
1309
1309
  const $4711a82d08d2021b$var$_tmpl$ = ["<button", ' class="clear-all-filters minor">', "</button>"],
1310
1310
  $4711a82d08d2021b$var$_tmpl$2 = ["<div", ' class="inner"><span class="title"><!--$-->', "<!--/-->: </span><!--$-->", "<!--/--></div>"],
1311
- $4711a82d08d2021b$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> – <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
1311
+ $4711a82d08d2021b$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> \u2013 <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
1312
1312
  $4711a82d08d2021b$var$_tmpl$4 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span>", "</span></button>"];
1313
1313
  function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
1314
1314
  let {
@@ -2131,7 +2131,7 @@ function $f3a159279dc1a8fb$var$cut_text(segmented_text) {
2131
2131
  // identical split point, or split end before split start, can't do anything
2132
2132
  split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
2133
2133
  const dots_segment = {
2134
- text_: " … ",
2134
+ text_: " \u2026 ",
2135
2135
  highlighted_: false
2136
2136
  };
2137
2137
  const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
@@ -2225,7 +2225,7 @@ function $f3a159279dc1a8fb$var$cut_start(cut_left_of_index, segmented_text) {
2225
2225
  if (character === "," || is_space)
2226
2226
  // if we cut at a comma or psace, we add a … at the beginning
2227
2227
  segmented_text.unshift({
2228
- text_: "… ",
2228
+ text_: "\u2026 ",
2229
2229
  highlighted_: false
2230
2230
  });
2231
2231
  break outmost_loop;
@@ -3187,7 +3187,7 @@ function $d0ff304c14f50521$export$53c59af873b303c9(_ref) {
3187
3187
  get price_formatting_() {
3188
3188
  return price_formatting_();
3189
3189
  }
3190
- }), price_formatting_().post_, " – ", price_formatting_().pre_, $b8hua$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
3190
+ }), price_formatting_().post_, " \u2013 ", price_formatting_().pre_, $b8hua$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
3191
3191
  get price_() {
3192
3192
  return selected_filter.data[1];
3193
3193
  },
@@ -4123,7 +4123,7 @@ class $284849364a6ef73a$export$e015ed2f2950f2e3 {
4123
4123
  try {
4124
4124
  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);
4125
4125
  } catch (e) {
4126
- $b8hua$dwarn("URL creator failed", e);
4126
+ $b8hua$dwarn("displayTransformer failed", e);
4127
4127
  }
4128
4128
  }
4129
4129
  return {
@@ -4174,7 +4174,7 @@ function $284849364a6ef73a$var$_get_cache_obj_for_endpoint2(endpoint) {
4174
4174
  }
4175
4175
  function $284849364a6ef73a$var$_guard_url_creator_length2(expected, received) {
4176
4176
  if (expected.length !== received.length) {
4177
- const e = new Error("Page URL creator returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
4177
+ const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
4178
4178
  queueMicrotask(() => {
4179
4179
  throw e;
4180
4180
  });
@@ -4295,7 +4295,7 @@ async function $284849364a6ef73a$var$_cached_post_request2(endpoint, input_req,
4295
4295
  const unmodified_result = await api_response.json();
4296
4296
  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);
4297
4297
  } catch (e) {
4298
- $b8hua$dwarn("URL creator or json decoding failed", e);
4298
+ $b8hua$dwarn("displayTransformer or json decoding failed", e);
4299
4299
  break return_successfully;
4300
4300
  }
4301
4301
  // Here result actually becomes O
@@ -4428,7 +4428,7 @@ function $33e7d1906c93db7d$export$205efb947c7ffd78(handler) {
4428
4428
  $b8hua$onCleanup(() => removeEventListener(event, catchified_handler));
4429
4429
  }
4430
4430
  }
4431
- const $b69740fc6de9f17e$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> – <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
4431
+ const $b69740fc6de9f17e$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> \u2013 <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
4432
4432
  function $b69740fc6de9f17e$export$83fd5de5504a7a67(_ref) {
4433
4433
  let {
4434
4434
  formatted_number_of_results_: formatted_number_of_results_,
@@ -7539,7 +7539,7 @@ function $f5f54892fd0c7d9f$var$get_shared_properties(depict_category) {
7539
7539
  if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
7540
7540
  return shared_properties;
7541
7541
  }
7542
- const $fa332ea03168857c$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> — <!--$-->', "<!--/--></span></div>"];
7542
+ const $fa332ea03168857c$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> \u2014 <!--$-->', "<!--/--></span></div>"];
7543
7543
  const $fa332ea03168857c$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
7544
7544
  const actual_function = _ref => {
7545
7545
  let {
@@ -7791,10 +7791,17 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
7791
7791
  var _recommendations_reso;
7792
7792
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
7793
7793
  });
7794
- const num_placeholders_ = $b8hua$createMemo(() => (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
7795
- let [per_column] = _ref2;
7796
- return per_column;
7797
- })));
7794
+ const num_placeholders_ = $b8hua$createMemo(() => {
7795
+ const possible_num_columns = layout_options_().cols_at_size.map(_ref2 => {
7796
+ let [per_column] = _ref2;
7797
+ return per_column;
7798
+ });
7799
+ if (!possible_num_columns.length)
7800
+ // Empty cols_at_size, for example artilleriet has that
7801
+ // Assume there will be 4 columns
7802
+ possible_num_columns.push(4);
7803
+ return (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
7804
+ });
7798
7805
  // Don't tear down elements every time one updates the page - don't put them within <Show>
7799
7806
  const elements = $b8hua$ssr($8ef6232475d44150$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(i18n_.search_recs_title_()), $b8hua$escape($ca55612a53dbbdd2$export$a2cc176055f8f08()), $b8hua$escape($b8hua$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $b8hua$mergeProps1({
7800
7807
  rows: rows_object,
@@ -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.23";
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 = "‚"; // 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 = "‣"; // FIXME: decide on a character. Could theoretically be a double string 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];
@@ -1313,7 +1313,7 @@ function $daa394359b026187$export$325f75597868c4f0(stuff) {
1313
1313
  }
1314
1314
  const $235a2771a44e28e9$var$_tmpl$ = ["<button", ' class="clear-all-filters minor">', "</button>"],
1315
1315
  $235a2771a44e28e9$var$_tmpl$2 = ["<div", ' class="inner"><span class="title"><!--$-->', "<!--/-->: </span><!--$-->", "<!--/--></div>"],
1316
- $235a2771a44e28e9$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> – <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
1316
+ $235a2771a44e28e9$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> \u2013 <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
1317
1317
  $235a2771a44e28e9$var$_tmpl$4 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span>", "</span></button>"];
1318
1318
  function $235a2771a44e28e9$export$fecbb157621501bd({
1319
1319
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -2082,7 +2082,7 @@ function $5ea5a82e398f6f44$var$cut_text(segmented_text) {
2082
2082
  // identical split point, or split end before split start, can't do anything
2083
2083
  split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
2084
2084
  const dots_segment = {
2085
- text_: " … ",
2085
+ text_: " \u2026 ",
2086
2086
  highlighted_: false
2087
2087
  };
2088
2088
  const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
@@ -2174,7 +2174,7 @@ function $5ea5a82e398f6f44$var$cut_start(cut_left_of_index, segmented_text) {
2174
2174
  if (character === "," || is_space)
2175
2175
  // if we cut at a comma or psace, we add a … at the beginning
2176
2176
  segmented_text.unshift({
2177
- text_: "… ",
2177
+ text_: "\u2026 ",
2178
2178
  highlighted_: false
2179
2179
  });
2180
2180
  break outmost_loop;
@@ -3065,7 +3065,7 @@ function $b064919833b3e80b$export$53c59af873b303c9({
3065
3065
  get price_formatting_() {
3066
3066
  return price_formatting_();
3067
3067
  }
3068
- }), price_formatting_().post_, " – ", price_formatting_().pre_, $5vyXB$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
3068
+ }), price_formatting_().post_, " \u2013 ", price_formatting_().pre_, $5vyXB$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
3069
3069
  get price_() {
3070
3070
  return selected_filter.data[1];
3071
3071
  },
@@ -3865,7 +3865,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
3865
3865
  #get_session_id;
3866
3866
  #guard_url_creator_length(expected, received) {
3867
3867
  if (expected.length !== received.length) {
3868
- const e = new Error("Page URL creator returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
3868
+ const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
3869
3869
  queueMicrotask(() => {
3870
3870
  throw e;
3871
3871
  });
@@ -3984,7 +3984,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
3984
3984
  const unmodified_result = await api_response.json();
3985
3985
  result = await this.#run_display_transformers_for_rest(input_req.tenant, input_req.market, unmodified_result);
3986
3986
  } catch (e) {
3987
- $5vyXB$depictaiutilishared.dwarn("URL creator or json decoding failed", e);
3987
+ $5vyXB$depictaiutilishared.dwarn("displayTransformer or json decoding failed", e);
3988
3988
  break return_successfully;
3989
3989
  }
3990
3990
  // Here result actually becomes O
@@ -4038,7 +4038,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
4038
4038
  try {
4039
4039
  return await this.#run_url_creator_for_suggest(input_req.tenant, input_req.market, decoded_json);
4040
4040
  } catch (e) {
4041
- $5vyXB$depictaiutilishared.dwarn("URL creator failed", e);
4041
+ $5vyXB$depictaiutilishared.dwarn("displayTransformer failed", e);
4042
4042
  }
4043
4043
  }
4044
4044
  return {
@@ -4171,7 +4171,7 @@ function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true) {
4171
4171
  $5vyXB$solidjs.onCleanup(() => removeEventListener(event, catchified_handler));
4172
4172
  }
4173
4173
  }
4174
- const $401aee5f33dca9e2$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> – <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
4174
+ const $401aee5f33dca9e2$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> \u2013 <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
4175
4175
  function $401aee5f33dca9e2$export$83fd5de5504a7a67({
4176
4176
  formatted_number_of_results_: formatted_number_of_results_,
4177
4177
  first_result_in_viewport_: [get_first_result_in_viewport],
@@ -7019,7 +7019,7 @@ function $48567ac5b39bac56$var$get_shared_properties(depict_category) {
7019
7019
  if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
7020
7020
  return shared_properties;
7021
7021
  }
7022
- const $0b23bfd073d9a4e8$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> — <!--$-->', "<!--/--></span></div>"];
7022
+ const $0b23bfd073d9a4e8$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> \u2014 <!--$-->', "<!--/--></span></div>"];
7023
7023
  const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
7024
7024
  const actual_function = ({
7025
7025
  category_title_: category_title_,
@@ -7261,7 +7261,14 @@ function $fb29c6201c369e39$export$7de92c4c2205ebf3({
7261
7261
  // only fetch/refetch if all products are loaded
7262
7262
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
7263
7263
  const should_show = $5vyXB$solidjs.createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
7264
- const num_placeholders_ = $5vyXB$solidjs.createMemo(() => (0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(([per_column]) => per_column)));
7264
+ const num_placeholders_ = $5vyXB$solidjs.createMemo(() => {
7265
+ const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
7266
+ if (!possible_num_columns.length)
7267
+ // Empty cols_at_size, for example artilleriet has that
7268
+ // Assume there will be 4 columns
7269
+ possible_num_columns.push(4);
7270
+ return (0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
7271
+ });
7265
7272
  // Don't tear down elements every time one updates the page - don't put them within <Show>
7266
7273
  const elements = $5vyXB$solidjsweb.ssr($fb29c6201c369e39$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(i18n_.search_recs_title_()), $5vyXB$solidjsweb.escape($fc23d7668ae0011d$export$a2cc176055f8f08()), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $f48d0fbb00835aaa$export$d21e32dfedac04be), $5vyXB$solidjsweb.mergeProps({
7267
7274
  rows: rows_object,
@@ -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.23";
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
  */
@@ -6,25 +6,25 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$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.23";
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 = "‚"; // 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 = "‣"; // FIXME: decide on a character. Could theoretically be a double string 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];
@@ -1247,7 +1247,7 @@ function $91aa8ee9f431800d$export$325f75597868c4f0(stuff) {
1247
1247
  }
1248
1248
  const $1adfe60f3a14a1d7$var$_tmpl$ = ["<button", ' class="clear-all-filters minor">', "</button>"],
1249
1249
  $1adfe60f3a14a1d7$var$_tmpl$2 = ["<div", ' class="inner"><span class="title"><!--$-->', "<!--/-->: </span><!--$-->", "<!--/--></div>"],
1250
- $1adfe60f3a14a1d7$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> – <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
1250
+ $1adfe60f3a14a1d7$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> \u2013 <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
1251
1251
  $1adfe60f3a14a1d7$var$_tmpl$4 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span>", "</span></button>"];
1252
1252
  function $1adfe60f3a14a1d7$export$fecbb157621501bd({
1253
1253
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -2016,7 +2016,7 @@ function $522a690e0e2bd46d$var$cut_text(segmented_text) {
2016
2016
  // identical split point, or split end before split start, can't do anything
2017
2017
  split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
2018
2018
  const dots_segment = {
2019
- text_: " … ",
2019
+ text_: " \u2026 ",
2020
2020
  highlighted_: false
2021
2021
  };
2022
2022
  const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
@@ -2108,7 +2108,7 @@ function $522a690e0e2bd46d$var$cut_start(cut_left_of_index, segmented_text) {
2108
2108
  if (character === "," || is_space)
2109
2109
  // if we cut at a comma or psace, we add a … at the beginning
2110
2110
  segmented_text.unshift({
2111
- text_: "… ",
2111
+ text_: "\u2026 ",
2112
2112
  highlighted_: false
2113
2113
  });
2114
2114
  break outmost_loop;
@@ -2999,7 +2999,7 @@ function $a7b58cb3bcffd156$export$53c59af873b303c9({
2999
2999
  get price_formatting_() {
3000
3000
  return price_formatting_();
3001
3001
  }
3002
- }), price_formatting_().post_, " – ", price_formatting_().pre_, $i7OB2$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
3002
+ }), price_formatting_().post_, " \u2013 ", price_formatting_().pre_, $i7OB2$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
3003
3003
  get price_() {
3004
3004
  return selected_filter.data[1];
3005
3005
  },
@@ -3799,7 +3799,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
3799
3799
  #get_session_id;
3800
3800
  #guard_url_creator_length(expected, received) {
3801
3801
  if (expected.length !== received.length) {
3802
- const e = new Error("Page URL creator returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
3802
+ const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
3803
3803
  queueMicrotask(() => {
3804
3804
  throw e;
3805
3805
  });
@@ -3918,7 +3918,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
3918
3918
  const unmodified_result = await api_response.json();
3919
3919
  result = await this.#run_display_transformers_for_rest(input_req.tenant, input_req.market, unmodified_result);
3920
3920
  } catch (e) {
3921
- $i7OB2$dwarn("URL creator or json decoding failed", e);
3921
+ $i7OB2$dwarn("displayTransformer or json decoding failed", e);
3922
3922
  break return_successfully;
3923
3923
  }
3924
3924
  // Here result actually becomes O
@@ -3972,7 +3972,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
3972
3972
  try {
3973
3973
  return await this.#run_url_creator_for_suggest(input_req.tenant, input_req.market, decoded_json);
3974
3974
  } catch (e) {
3975
- $i7OB2$dwarn("URL creator failed", e);
3975
+ $i7OB2$dwarn("displayTransformer failed", e);
3976
3976
  }
3977
3977
  }
3978
3978
  return {
@@ -4105,7 +4105,7 @@ function $8f9120a1ca151e6a$export$205efb947c7ffd78(handler, passive = true) {
4105
4105
  $i7OB2$onCleanup(() => removeEventListener(event, catchified_handler));
4106
4106
  }
4107
4107
  }
4108
- const $6db49ca163afa2c3$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> – <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
4108
+ const $6db49ca163afa2c3$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> \u2013 <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
4109
4109
  function $6db49ca163afa2c3$export$83fd5de5504a7a67({
4110
4110
  formatted_number_of_results_: formatted_number_of_results_,
4111
4111
  first_result_in_viewport_: [get_first_result_in_viewport],
@@ -6953,7 +6953,7 @@ function $961b5c64bef4662f$var$get_shared_properties(depict_category) {
6953
6953
  if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
6954
6954
  return shared_properties;
6955
6955
  }
6956
- const $e4615ecd1849548f$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> — <!--$-->', "<!--/--></span></div>"];
6956
+ const $e4615ecd1849548f$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> \u2014 <!--$-->', "<!--/--></span></div>"];
6957
6957
  const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
6958
6958
  const actual_function = ({
6959
6959
  category_title_: category_title_,
@@ -7195,7 +7195,14 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
7195
7195
  // only fetch/refetch if all products are loaded
7196
7196
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
7197
7197
  const should_show = $i7OB2$createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
7198
- const num_placeholders_ = $i7OB2$createMemo(() => (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(([per_column]) => per_column)));
7198
+ const num_placeholders_ = $i7OB2$createMemo(() => {
7199
+ const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
7200
+ if (!possible_num_columns.length)
7201
+ // Empty cols_at_size, for example artilleriet has that
7202
+ // Assume there will be 4 columns
7203
+ possible_num_columns.push(4);
7204
+ return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
7205
+ });
7199
7206
  // Don't tear down elements every time one updates the page - don't put them within <Show>
7200
7207
  const elements = $i7OB2$ssr($172e1b898d457050$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.search_recs_title_()), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps1({
7201
7208
  rows: rows_object,