@depict-ai/ui 1.4.24 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
- import { add_to_version_info as $b8hua$add_to_version_info, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, catchify as $b8hua$catchify, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, slider_fading_factory as $b8hua$slider_fading_factory, is_safari as $b8hua$is_safari, observer as $b8hua$observer, useExpandingContainer as $b8hua$useExpandingContainer, standard_price_format as $b8hua$standard_price_format, dlog as $b8hua$dlog, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, javascript_media_query as $b8hua$javascript_media_query, fetch_recs as $b8hua$fetch_recs, snakeCasifyObject as $b8hua$snakeCasifyObject, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, base_url as $b8hua$base_url, get_depict_id as $b8hua$get_depict_id, get_user_id as $b8hua$get_user_id, get_session_id as $b8hua$get_session_id, make_url_with_query_params as $b8hua$make_url_with_query_params, fetch_retry as $b8hua$fetch_retry, add_version_query_params as $b8hua$add_version_query_params, dwarn as $b8hua$dwarn, sort_obj as $b8hua$sort_obj, edit_current_page_meta_tags as $b8hua$edit_current_page_meta_tags, use_href_accessor as $b8hua$use_href_accessor, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, queueMacroTask as $b8hua$queueMacroTask, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, ContainedImage as $b8hua$ContainedImage, deparallelize_no_drop as $b8hua$deparallelize_no_drop, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
1
+ import { add_to_version_info as $b8hua$add_to_version_info, slider_fractional_factory as $b8hua$slider_fractional_factory, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, catchify as $b8hua$catchify, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, slider_fading_factory as $b8hua$slider_fading_factory, observer as $b8hua$observer, is_safari as $b8hua$is_safari, useExpandingContainer as $b8hua$useExpandingContainer, standard_price_format as $b8hua$standard_price_format, dlog as $b8hua$dlog, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, javascript_media_query as $b8hua$javascript_media_query, fetch_recs as $b8hua$fetch_recs, snakeCasifyObject as $b8hua$snakeCasifyObject, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, base_url as $b8hua$base_url, get_depict_id as $b8hua$get_depict_id, get_user_id as $b8hua$get_user_id, get_session_id as $b8hua$get_session_id, make_url_with_query_params as $b8hua$make_url_with_query_params, fetch_retry as $b8hua$fetch_retry, add_version_query_params as $b8hua$add_version_query_params, dwarn as $b8hua$dwarn, sort_obj as $b8hua$sort_obj, edit_current_page_meta_tags as $b8hua$edit_current_page_meta_tags, use_href_accessor as $b8hua$use_href_accessor, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, queueMacroTask as $b8hua$queueMacroTask, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, ContainedImage as $b8hua$ContainedImage, deparallelize_no_drop as $b8hua$deparallelize_no_drop, ListenableSet as $b8hua$ListenableSet, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
2
  import { ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, createComponent as $b8hua$createComponent, mergeProps as $b8hua$mergeProps, isServer as $b8hua$isServer, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, insert as $b8hua$insert, ssrAttribute as $b8hua$ssrAttribute, ssrStyle as $b8hua$ssrStyle, Dynamic as $b8hua$Dynamic } from "solid-js/web";
3
- import { createMemo as $b8hua$createMemo, createResource as $b8hua$createResource, Suspense as $b8hua$Suspense, Show as $b8hua$Show, createSignal as $b8hua$createSignal, createRenderEffect as $b8hua$createRenderEffect, createRoot as $b8hua$createRoot, onCleanup as $b8hua$onCleanup, For as $b8hua$For, getOwner as $b8hua$getOwner, runWithOwner as $b8hua$runWithOwner, createEffect as $b8hua$createEffect, untrack as $b8hua$untrack, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, Index as $b8hua$Index, on as $b8hua$on, batch as $b8hua$batch, createReaction as $b8hua$createReaction } from "solid-js";
4
- import { slider_fractional_factory as $b8hua$slider_fractional_factory } from "@depict-ai/utilishared/latest/ES10";
3
+ import { createMemo as $b8hua$createMemo, createResource as $b8hua$createResource, Suspense as $b8hua$Suspense, Show as $b8hua$Show, createSignal as $b8hua$createSignal, createRenderEffect as $b8hua$createRenderEffect, createRoot as $b8hua$createRoot, onCleanup as $b8hua$onCleanup, For as $b8hua$For, getOwner as $b8hua$getOwner, runWithOwner as $b8hua$runWithOwner, createEffect as $b8hua$createEffect, untrack as $b8hua$untrack, createUniqueId as $b8hua$createUniqueId, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, Index as $b8hua$Index, on as $b8hua$on, batch as $b8hua$batch, createReaction as $b8hua$createReaction } from "solid-js";
5
4
  import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
6
5
  import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
7
6
  import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
@@ -9,7 +8,7 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
9
8
  /*! Depict.ai search and product listing SDK */
10
9
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
11
10
  register_es_version("ui", "ES10");
12
- const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.24";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.0";
13
12
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
14
13
  const cols_at_size = [];
15
14
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -83,7 +82,9 @@ function $3f7203368ad0d3ca$export$ff7109b9b2b206ba(sdk_cols_at_size) {
83
82
  }
84
83
  function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
85
84
  const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
86
- return (0, $b8hua$isServer) ? "<!-- ".concat(text, " -->") : document.createComment(text);
85
+ return (0, $b8hua$isServer) ? {
86
+ t: "<!-- ".concat(text, " -->")
87
+ } : document.createComment(text);
87
88
  }
88
89
  function $cb64b315b25cfc59$export$2f0cbfbb4354bb52(elements) {
89
90
  // FYI this probably doesn't work on hugely deep nestings or large amount of elements
@@ -298,22 +299,34 @@ function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
298
299
  }
299
300
  });
300
301
  }
301
- const $63f1f8dbcd07d3b0$var$_tmpl$ = ["<style", ' type="text/css">', "</style>"],
302
- $63f1f8dbcd07d3b0$var$_tmpl$2 = ["<div", ' class="', '">', "</div>"];
302
+ const $63f1f8dbcd07d3b0$var$_tmpl$ = ["<div", ' class="', '">', "</div>"],
303
+ $63f1f8dbcd07d3b0$var$_tmpl$2 = ["<style", ' type="text/css">', "</style>"];
303
304
  function $63f1f8dbcd07d3b0$export$d21e32dfedac04be(props) {
304
- const container_element_ = $b8hua$ssrElement("div", props.element_attributes, () => $b8hua$escape(props.children), true); // Don't want this in the error boundary below, it should only be for the actual layouting
305
+ const container_class = "x" + $b8hua$createUniqueId();
306
+ const container_element_ = $b8hua$ssrElement("div", () => ({
307
+ ...props.element_attributes,
308
+ "classList": {
309
+ [container_class]: true
310
+ }
311
+ }), () => $b8hua$escape(props.children), true); // Don't want this in the error boundary below, it should only be for the actual layouting
305
312
  return $b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
306
313
  get message_() {
307
314
  return "Failed calculating " + props.layout + " layout";
308
315
  },
309
316
  severity_: "error",
310
317
  get children() {
311
- return $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element_);
318
+ return $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element_, false, container_class);
312
319
  }
313
320
  });
314
321
  }
315
322
  function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
316
323
  let insert_after_container = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
324
+ let container_class = arguments.length > 3 ? arguments[3] : undefined;
325
+ if (!container_class) {
326
+ // only try to add if it wasn't provided, so that we have a code path without classList when doing SSR
327
+ container_class = $b8hua$make_random_classname();
328
+ container_element.classList.add(container_class);
329
+ }
317
330
  // Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
318
331
  const show_all_rows = $b8hua$createMemo(() => props.rows === "all");
319
332
  const rows_or_empty_object = $b8hua$createMemo(() => show_all_rows() ? {} : props.rows);
@@ -328,10 +341,9 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
328
341
  return !(!button || Array.isArray(button) && !button.length);
329
342
  });
330
343
  const [get_styling, set_styling] = $b8hua$createSignal();
331
- const container_class = $b8hua$make_random_classname();
332
344
  const selector_beginning = ".depict .".concat(container_class, ">"); // class so ppl can have id if needed
333
345
  const [get_children_count, set_children_count] = $b8hua$createSignal(0);
334
- const update_children_count = () => set_children_count(container_element.children.length);
346
+ const update_children_count = () => (0, $b8hua$isServer) ? 20 : set_children_count(container_element.children.length);
335
347
  const col_styling = $b8hua$createMemo(() => $b8hua$n_col_styling_with_dist(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
336
348
  const default_currently_visible_signal = $b8hua$createSignal($b8hua$untrack(() => {
337
349
  var _rows_or_empty_object;
@@ -340,19 +352,19 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
340
352
  const rows_visible_signal = $b8hua$createMemo(() => rows_or_empty_object().currently_visible || default_currently_visible_signal);
341
353
  const get_rows_visible = $b8hua$createMemo(() => rows_visible_signal()[0]());
342
354
  const set_rows_visible = $b8hua$createMemo(() => rows_visible_signal()[1]);
343
- const view_more_button_class = $b8hua$make_random_classname();
344
- const view_less_button_class = $b8hua$make_random_classname();
345
- const style_element = $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$, $b8hua$ssrHydrationKey(), get_styling);
346
- const view_more_button_container = $b8hua$createMemo(() => have_a_view_more_button() && $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$2, $b8hua$ssrHydrationKey(), "load-more-container ".concat($b8hua$escape(view_more_button_class, true)), $b8hua$escape(rows_or_empty_object().button)));
355
+ const view_more_button_class = "m" + $b8hua$createUniqueId();
356
+ const view_less_button_class = "l" + $b8hua$createUniqueId(); // https://github.com/solidjs/solid-docs/issues/263#issuecomment-1622388079
357
+ const view_more_button_container = $b8hua$createMemo(() => have_a_view_more_button() && $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$, $b8hua$ssrHydrationKey(), "load-more-container ".concat($b8hua$escape(view_more_button_class, true)), $b8hua$escape(rows_or_empty_object().button)));
347
358
  // 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
348
- const view_less_button_container = $b8hua$createMemo(() => have_a_view_less_button() && $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$2, $b8hua$ssrHydrationKey(), "load-less-container ".concat($b8hua$escape(view_less_button_class, true)), $b8hua$escape(rows_or_empty_object().view_less_button)));
349
- container_element.classList.add(container_class);
359
+ const view_less_button_container = $b8hua$createMemo(() => have_a_view_less_button() && $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$, $b8hua$ssrHydrationKey(), "load-less-container ".concat($b8hua$escape(view_less_button_class, true)), $b8hua$escape(rows_or_empty_object().view_less_button)));
360
+ const [force_style_update, set_force_style_update] = $b8hua$createSignal("");
350
361
  $b8hua$createComputed(() => {
351
362
  // Make sure we don't have more rows visible than max_rows (this could happen by max_rows being decreased)
352
363
  const rows_visible = get_rows_visible();
353
364
  const max_rows = rows_or_empty_object().max_rows;
354
365
  if (!isNaN(max_rows) && max_rows >= 0 && rows_visible > max_rows) set_rows_visible()(max_rows);
355
366
  });
367
+ $b8hua$createEffect(() => set_force_style_update(" ")); // force style update after hydration due to https://discord.com/channels/722131463138705510/722167424186843267/1151544212517552168
356
368
  $b8hua$createRenderEffect(() => {
357
369
  // Be careful to only read show_all_rows in here (ofc doesn't apply to nested effects)
358
370
  if (show_all_rows()) {
@@ -361,11 +373,13 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
361
373
  return;
362
374
  }
363
375
  update_children_count();
364
- const mutation_observer = new MutationObserver($b8hua$catchify(update_children_count));
365
- mutation_observer.observe(container_element, {
366
- childList: true
367
- });
368
- $b8hua$onCleanup(() => mutation_observer.disconnect());
376
+ if (!(0, $b8hua$isServer)) {
377
+ const mutation_observer = new MutationObserver($b8hua$catchify(update_children_count));
378
+ mutation_observer.observe(container_element, {
379
+ childList: true
380
+ });
381
+ $b8hua$onCleanup(() => mutation_observer.disconnect());
382
+ }
369
383
  set_styling(
370
384
  // this is needed because solid will think that the memo-accessor is a setter function otherwise
371
385
  () => $b8hua$createMemo(() => {
@@ -376,7 +390,7 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
376
390
  } = rows_or_empty_object();
377
391
  const rows_visible = get_rows_visible();
378
392
  const children_count = get_children_count();
379
- return col_styling() + props.cols_at_size.map(options => {
393
+ return force_style_update() + col_styling() + props.cols_at_size.map(options => {
380
394
  const [recs_per_row, min, max] = options;
381
395
  let should_hide_view_more_button;
382
396
  let visible_recs;
@@ -397,6 +411,7 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
397
411
  }).join("");
398
412
  }));
399
413
  });
414
+ const style_element = $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$2, $b8hua$ssrHydrationKey(), get_styling); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
400
415
  if (insert_after_container) container_element.after(style_element);
401
416
  return [container_element, view_more_button_container(), view_less_button_container(), style_element];
402
417
  }
@@ -413,12 +428,20 @@ function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
413
428
  slider_ref_: slider_ref_,
414
429
  faded_opacity_ = 0.7,
415
430
  mutation_plugins_ = [],
416
- disable_fading_: disable_fading_
431
+ disable_fading_: disable_fading_,
432
+ arrow_width_: arrow_width_,
433
+ arrow_height_: arrow_height_
417
434
  } = _ref;
418
435
  const slider = new (0, $b8hua$Amazing_Slider)({
419
436
  button_contents: {
420
- left: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {})))],
421
- right: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {})))]
437
+ left: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
438
+ height_: arrow_height_,
439
+ width_: arrow_width_
440
+ })))],
441
+ right: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
442
+ height_: arrow_height_,
443
+ width_: arrow_width_
444
+ })))]
422
445
  },
423
446
  constructor_plugins: [$b8hua$slider_snap_css().constructor_plugin],
424
447
  mutation_plugins: [...(disable_fading_ ? [] : [$b8hua$slider_fading_factory({
@@ -445,6 +468,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
445
468
  });
446
469
  const num_placeholders_ = () => 20;
447
470
  const slider = $b8hua$createComponent((0, $002f09d00aac50b2$export$6649caad96ef8870), {
471
+ arrow_height_: 25,
472
+ arrow_width_: 12.5,
448
473
  disable_fading_: true,
449
474
  slider_ref_: slider => {
450
475
  const {
@@ -489,32 +514,64 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
489
514
  children: slider
490
515
  });
491
516
  }
517
+ function $83e8cf2c0b87a58a$export$23fca46f3143581f(component, error_message) {
518
+ const component_in_error_boundary = do_with_elements => {
519
+ const error_boundary_wrapped = $74777e8fe65b3dcb$export$b69d0d92862de18b({
520
+ severity_: "error",
521
+ message_: error_message,
522
+ get children() {
523
+ const elements = component();
524
+ do_with_elements === null || do_with_elements === void 0 || do_with_elements(elements);
525
+ return elements;
526
+ }
527
+ });
528
+ // This might return an accessor, in that case we need to "unwrap" it since our SDK consumers expect HTML elements or arrays thereof
529
+ if (typeof error_boundary_wrapped === "function")
530
+ // @ts-ignore
531
+ return error_boundary_wrapped();
532
+ // On the server it returns a string, so we just return that
533
+ return error_boundary_wrapped;
534
+ };
535
+ const owner = $b8hua$getOwner();
536
+ if (owner == null) return $b8hua$createRoot(dispose => {
537
+ // if we're not already run in a root, create a root and automatically dispose it when the first returned element is removed from the DOM
538
+ return component_in_error_boundary(elements => {
539
+ const have_multiple = Array.isArray(elements);
540
+ if (have_multiple ? !(elements !== null && elements !== void 0 && elements.length) : !elements) return;
541
+ (0, $b8hua$observer).onremoved(have_multiple ? elements[0] : elements, dispose);
542
+ });
543
+ });else
544
+ // we're already in a root so cleanups are handled
545
+ return component_in_error_boundary();
546
+ }
492
547
  const $d5d7e58c5c9d8db0$var$_tmpl$ = ["<div", ' class="depict recommendations">', "</div>"];
493
548
  function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
494
- const grid_spacing_override = $b8hua$createMemo(() => {
495
- const {
496
- grid_spacing: grid_spacing
497
- } = props; // can be reactive
498
- return typeof grid_spacing === "string" ? {
499
- grid_spacing: grid_spacing
500
- } : {
501
- override_vertical_spacing: grid_spacing.vertical,
502
- grid_spacing: grid_spacing.horizontal
503
- };
504
- });
505
- const [recommendations_resource_] = $b8hua$createResource(() => props.recommendations, recs => recs);
506
- return $b8hua$ssr($d5d7e58c5c9d8db0$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($39ddb986053fb759$export$d41d19e89346fa2({
507
- product_card_template_: function () {
508
- return props.product_card_template(...arguments);
509
- },
510
- recommendations_resource_: recommendations_resource_,
511
- market_: () => props.market,
512
- merchant_: () => props.merchant,
513
- layout_options_: $b8hua$createMemo(() => ({
514
- cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
515
- ...grid_spacing_override()
516
- }))
517
- })));
549
+ return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
550
+ const grid_spacing_override = $b8hua$createMemo(() => {
551
+ const {
552
+ grid_spacing: grid_spacing
553
+ } = props; // can be reactive
554
+ return typeof grid_spacing === "string" ? {
555
+ grid_spacing: grid_spacing
556
+ } : {
557
+ override_vertical_spacing: grid_spacing.vertical,
558
+ grid_spacing: grid_spacing.horizontal
559
+ };
560
+ });
561
+ const [recommendations_resource_] = $b8hua$createResource(() => props.recommendations, recs => recs);
562
+ return $b8hua$ssr($d5d7e58c5c9d8db0$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($39ddb986053fb759$export$d41d19e89346fa2({
563
+ product_card_template_: function () {
564
+ return props.product_card_template(...arguments);
565
+ },
566
+ recommendations_resource_: recommendations_resource_,
567
+ market_: () => props.market,
568
+ merchant_: () => props.merchant,
569
+ layout_options_: $b8hua$createMemo(() => ({
570
+ cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
571
+ ...grid_spacing_override()
572
+ }))
573
+ })));
574
+ }, "RecommendationSlider failed");
518
575
  }
519
576
  const $e3efeb558d952696$var$_tmpl$ = ["<div", ' class="recommendation-grid"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"];
520
577
  function $e3efeb558d952696$export$7da560f849543dff(_ref) {
@@ -574,40 +631,43 @@ function $e3efeb558d952696$export$7da560f849543dff(_ref) {
574
631
  const $b432b11321ad4c97$var$_tmpl$ = ["<button", ' class="show-more major" type="button">', "</button>"],
575
632
  $b432b11321ad4c97$var$_tmpl$2 = ["<div", ' class="depict plp recommendations">', "</div>"];
576
633
  function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
577
- const rows_object_ = $b8hua$createMemo(() => {
578
- const view_more_button = props.view_more_button;
579
- if (!view_more_button) return "all";
580
- return {
581
- start_rows: view_more_button.start_rows,
582
- rows_per_click: view_more_button.rows_per_click,
583
- button: $b8hua$ssr($b432b11321ad4c97$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(view_more_button.text))
584
- };
585
- });
586
- const grid_spacing_override = $b8hua$createMemo(() => {
587
- const {
588
- grid_spacing: grid_spacing
589
- } = props; // can be reactive
590
- return typeof grid_spacing === "string" ? {
591
- grid_spacing: grid_spacing
592
- } : {
593
- override_vertical_spacing: grid_spacing.vertical,
594
- grid_spacing: grid_spacing.horizontal
595
- };
596
- });
597
- const [recommendations_resource_] = $b8hua$createResource(() => props.recommendations, recs => recs);
598
- return $b8hua$ssr($b432b11321ad4c97$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($e3efeb558d952696$export$7da560f849543dff({
599
- rows_object_: rows_object_,
600
- product_card_template_: function () {
601
- return props.product_card_template(...arguments);
602
- },
603
- recommendations_resource_: recommendations_resource_,
604
- market_: () => props.market,
605
- merchant_: () => props.merchant,
606
- layout_options_: $b8hua$createMemo(() => ({
607
- cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
608
- ...grid_spacing_override()
609
- }))
610
- })));
634
+ return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
635
+ const rows_object_ = $b8hua$createMemo(() => {
636
+ var _view_more_button$row;
637
+ const view_more_button = props.view_more_button;
638
+ if (!view_more_button) return "all";
639
+ return {
640
+ start_rows: view_more_button.start_rows,
641
+ rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
642
+ button: $b8hua$ssr($b432b11321ad4c97$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(view_more_button.text))
643
+ };
644
+ });
645
+ const grid_spacing_override = $b8hua$createMemo(() => {
646
+ const {
647
+ grid_spacing: grid_spacing
648
+ } = props; // can be reactive
649
+ return typeof grid_spacing === "string" ? {
650
+ grid_spacing: grid_spacing
651
+ } : {
652
+ override_vertical_spacing: grid_spacing.vertical,
653
+ grid_spacing: grid_spacing.horizontal
654
+ };
655
+ });
656
+ const [recommendations_resource_] = $b8hua$createResource(() => props.recommendations, recs => recs);
657
+ return $b8hua$ssr($b432b11321ad4c97$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($e3efeb558d952696$export$7da560f849543dff({
658
+ rows_object_: rows_object_,
659
+ product_card_template_: function () {
660
+ return props.product_card_template(...arguments);
661
+ },
662
+ recommendations_resource_: recommendations_resource_,
663
+ market_: () => props.market,
664
+ merchant_: () => props.merchant,
665
+ layout_options_: $b8hua$createMemo(() => ({
666
+ cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
667
+ ...grid_spacing_override()
668
+ }))
669
+ })));
670
+ }, "RecommendationGrid failed");
611
671
  }
612
672
  function $56047603f9d212b6$export$e6fffe67d4cdd848(whatToWatch) {
613
673
  const [size, setSize] = $b8hua$createSignal(0);
@@ -1002,16 +1062,16 @@ function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
1002
1062
  return outmost_element;
1003
1063
  }
1004
1064
  const $6b73914551534ea8$var$_tmpl$ = ["<span", ' class="count">', "</span>"],
1005
- $6b73914551534ea8$var$_tmpl$2 = ["<label", ' class="', '"', '><div class="left"><input type="checkbox"', "", '><span class="custom-indicator"></span><span class="text line-clamp">', "</span></div><!--#-->", "<!--/--></label>"];
1065
+ $6b73914551534ea8$var$_tmpl$2 = ["<label", ' class="', '"', '><div class="left"><input type="checkbox"', "", "", '><span class="custom-indicator"></span><span class="text line-clamp">', "</span></div><!--#-->", "<!--/--></label>"];
1006
1066
  const $6b73914551534ea8$export$48513f6b9f8ce62d = props => {
1007
1067
  // 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
1008
1068
  const count = $b8hua$createMemo(() => props.count_);
1009
1069
  const label = $b8hua$createMemo(() => props.label_);
1010
1070
  const checked = $b8hua$createMemo(() => props.checked_);
1011
1071
  const value = $b8hua$createMemo(() => props.value_);
1012
- const is_count_zero = $b8hua$createMemo(() => props.is_count_zero_);
1072
+ const is_count_zero = $b8hua$createMemo(() => props.is_count_zero_ || count() === 0);
1013
1073
  const id = $b8hua$make_random_classname();
1014
- return (/* We can't use actual margin because ExpandingContainer gets messed up */$b8hua$ssr($6b73914551534ea8$var$_tmpl$2, $b8hua$ssrHydrationKey(), "input-row ".concat(is_count_zero() || count() === 0 ? "count-0" : ""), $b8hua$ssrAttribute("for", $b8hua$escape(id, true), false), $b8hua$ssrAttribute("name", $b8hua$escape(value(), true), false) + $b8hua$ssrAttribute("id", $b8hua$escape(id, true), false), $b8hua$ssrAttribute("checked", checked(), true), $b8hua$escape(label()) || $b8hua$escape(value()), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
1074
+ return (/* We can't use actual margin because ExpandingContainer gets messed up */$b8hua$ssr($6b73914551534ea8$var$_tmpl$2, $b8hua$ssrHydrationKey(), "input-row ".concat(is_count_zero() ? "count-0" : ""), $b8hua$ssrAttribute("for", $b8hua$escape(id, true), false), $b8hua$ssrAttribute("name", $b8hua$escape(value(), true), false) + $b8hua$ssrAttribute("id", $b8hua$escape(id, true), false), $b8hua$ssrAttribute("checked", checked(), true), $b8hua$ssrAttribute("disabled", !checked() && is_count_zero(), true), $b8hua$escape(label()) || $b8hua$escape(value()), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
1015
1075
  get when() {
1016
1076
  return count() != undefined;
1017
1077
  },
@@ -1422,7 +1482,7 @@ function $457279ff15864cb9$export$e5c2828934226505(_ref) {
1422
1482
  const $0ae614c5c7babb43$var$_tmpl$ = ["<form", ' class="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></form>"],
1423
1483
  $0ae614c5c7babb43$var$_tmpl$2 = ["<div", ' class="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
1424
1484
  $0ae614c5c7babb43$var$_tmpl$3 = ["<details", "></details>"],
1425
- $0ae614c5c7babb43$var$_tmpl$4 = ["<summary", ' class="category-parent"><div class="summary"><span class="count">', "</span><!--#-->", "<!--/--></div></summary>"];
1485
+ $0ae614c5c7babb43$var$_tmpl$4 = ["<summary", ' class="category-parent"><div class="summary"><span class="', '">', "</span><!--#-->", "<!--/--></div></summary>"];
1426
1486
  const $0ae614c5c7babb43$var$max_visible_without_collapsing = 15;
1427
1487
  const $0ae614c5c7babb43$var$show_non_collapsible_when_collapsed = 4;
1428
1488
  function $0ae614c5c7babb43$export$a32086fa6616eafd(_ref) {
@@ -1642,13 +1702,13 @@ function $0ae614c5c7babb43$var$render_stuff(data, existing_filter, i18n_) {
1642
1702
  return $b8hua$ssr($0ae614c5c7babb43$var$_tmpl$3, $b8hua$ssrHydrationKey());
1643
1703
  },
1644
1704
  get summary_() {
1645
- var _value10;
1646
- return $b8hua$ssr($0ae614c5c7babb43$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$escape((_value10 = value()) === null || _value10 === void 0 ? void 0 : _value10.count_), $b8hua$escape($b8hua$createComponent((0, $457279ff15864cb9$export$e5c2828934226505), {
1705
+ var _value10, _value11;
1706
+ return $b8hua$ssr($0ae614c5c7babb43$var$_tmpl$4, $b8hua$ssrHydrationKey(), "count ".concat(((_value10 = value()) === null || _value10 === void 0 ? void 0 : _value10.count_) === 0 ? "count-0" : ""), $b8hua$escape((_value11 = value()) === null || _value11 === void 0 ? void 0 : _value11.count_), $b8hua$escape($b8hua$createComponent((0, $457279ff15864cb9$export$e5c2828934226505), {
1647
1707
  i18n_: i18n_,
1648
1708
  get expanded_() {
1649
1709
  return $b8hua$createMemo(() => {
1650
- var _value$is_expanded_$u, _value11, _value11$is_expanded_, _value11$is_expanded_2;
1651
- return (_value$is_expanded_$u = (_value11 = value()) === null || _value11 === void 0 ? void 0 : (_value11$is_expanded_ = _value11.is_expanded_) === null || _value11$is_expanded_ === void 0 ? void 0 : (_value11$is_expanded_2 = _value11$is_expanded_.ui_should_show_expanded_) === null || _value11$is_expanded_2 === void 0 ? void 0 : _value11$is_expanded_2.call(_value11$is_expanded_)) !== null && _value$is_expanded_$u !== void 0 ? _value$is_expanded_$u : false;
1710
+ var _value$is_expanded_$u, _value12, _value12$is_expanded_, _value12$is_expanded_2;
1711
+ return (_value$is_expanded_$u = (_value12 = value()) === null || _value12 === void 0 ? void 0 : (_value12$is_expanded_ = _value12.is_expanded_) === null || _value12$is_expanded_ === void 0 ? void 0 : (_value12$is_expanded_2 = _value12$is_expanded_.ui_should_show_expanded_) === null || _value12$is_expanded_2 === void 0 ? void 0 : _value12$is_expanded_2.call(_value12$is_expanded_)) !== null && _value$is_expanded_$u !== void 0 ? _value$is_expanded_$u : false;
1652
1712
  });
1653
1713
  }
1654
1714
  })));
@@ -1670,8 +1730,8 @@ function $0ae614c5c7babb43$var$render_stuff(data, existing_filter, i18n_) {
1670
1730
  },
1671
1731
  get children() {
1672
1732
  return $0ae614c5c7babb43$var$render_stuff($b8hua$createMemo(() => {
1673
- var _value12;
1674
- return ((_value12 = value()) === null || _value12 === void 0 ? void 0 : _value12.children_) || {};
1733
+ var _value13;
1734
+ return ((_value13 = value()) === null || _value13 === void 0 ? void 0 : _value13.children_) || {};
1675
1735
  }), existing_filter, i18n_);
1676
1736
  }
1677
1737
  });
@@ -1855,7 +1915,8 @@ function $0ae614c5c7babb43$var$expand_until_choice(data_structure) {
1855
1915
  });
1856
1916
  }
1857
1917
  const $830ea8efda59884e$var$_tmpl$ = ["<div", ' class="checkbox-grid">', "</div>"],
1858
- $830ea8efda59884e$var$_tmpl$2 = ["<button", ' class="', '">', "</button>"];
1918
+ $830ea8efda59884e$var$_tmpl$2 = ["<span", ' class="count-wrapper"><span class="count">', "</span></span>"],
1919
+ $830ea8efda59884e$var$_tmpl$3 = ["<button", "", ' class="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></button>"];
1859
1920
  const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
1860
1921
  let {
1861
1922
  filter_: filter_,
@@ -1894,7 +1955,14 @@ const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
1894
1955
  var _existing_filter, _existing_filter$data;
1895
1956
  return (_existing_filter = existing_filter()) === null || _existing_filter === void 0 ? void 0 : (_existing_filter$data = _existing_filter.data) === null || _existing_filter$data === void 0 ? void 0 : _existing_filter$data.includes(value().value_);
1896
1957
  });
1897
- return $b8hua$ssr($830ea8efda59884e$var$_tmpl$2, $b8hua$ssrHydrationKey(), "".concat(!is_selected() ? "minor" : "", " ").concat(is_selected() ? "major" : "", " major-minor-transition"), $b8hua$escape(value().value_));
1958
+ return $b8hua$ssr($830ea8efda59884e$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("disabled", value().count_ === 0 && !is_selected(), true), "".concat(!is_selected() ? "minor" : "", " ").concat(is_selected() ? "major" : "", " major-minor-transition"), $b8hua$escape(value().value_), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
1959
+ get when() {
1960
+ return value().count_ != undefined;
1961
+ },
1962
+ get children() {
1963
+ return $b8hua$ssr($830ea8efda59884e$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape(value().count_));
1964
+ }
1965
+ })));
1898
1966
  }
1899
1967
  })));
1900
1968
  };
@@ -5437,35 +5505,6 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
5437
5505
  }
5438
5506
  })))];
5439
5507
  }
5440
- function $83e8cf2c0b87a58a$export$23fca46f3143581f(component, error_message) {
5441
- const component_in_error_boundary = do_with_elements => {
5442
- const error_boundary_wrapped = $74777e8fe65b3dcb$export$b69d0d92862de18b({
5443
- severity_: "error",
5444
- message_: error_message,
5445
- get children() {
5446
- const elements = component();
5447
- do_with_elements === null || do_with_elements === void 0 || do_with_elements(elements);
5448
- return elements;
5449
- }
5450
- });
5451
- // This might return an accessor, in that case we need to "unwrap" it since our SDK consumers expect HTML elements or arrays thereof
5452
- if (typeof error_boundary_wrapped === "function")
5453
- // @ts-ignore
5454
- return error_boundary_wrapped();
5455
- // On the server it returns a string, so we just return that
5456
- return error_boundary_wrapped;
5457
- };
5458
- const owner = $b8hua$getOwner();
5459
- if (owner == null) return $b8hua$createRoot(dispose => {
5460
- // if we're not already run in a root, create a root and automatically dispose it when the first returned element is removed from the DOM
5461
- return component_in_error_boundary(elements => {
5462
- if (!(elements !== null && elements !== void 0 && elements.length)) return;
5463
- (0, $b8hua$observer).onremoved(elements[0], dispose);
5464
- });
5465
- });else
5466
- // we're already in a root so cleanups are handled
5467
- return component_in_error_boundary();
5468
- }
5469
5508
  function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
5470
5509
  var _globalThis$location$, _globalThis$location;
5471
5510
  const router_ = options.router_;
@@ -6906,7 +6945,7 @@ function $3c5e15c6ee4227a9$export$605674723bcc715c() {
6906
6945
  const $40dd3f46f55d62ba$var$_tmpl$ = ["<a", ' class="', '"', ">", "</a>"],
6907
6946
  $40dd3f46f55d62ba$var$_tmpl$2 = ["<div", ' class="search-icon">', "</div>"],
6908
6947
  $40dd3f46f55d62ba$var$_tmpl$3 = ["<span", ' class="type">', "</span>"],
6909
- $40dd3f46f55d62ba$var$_tmpl$4 = ["<div", "><!--#-->", '<!--/--><span class="value">', "</span></div>"],
6948
+ $40dd3f46f55d62ba$var$_tmpl$4 = ["<div", ' class="with-parent-title"><!--#-->', '<!--/--><span class="value line-clamp">', "</span></div>"],
6910
6949
  $40dd3f46f55d62ba$var$_tmpl$5 = ["<div", ' class="with-icon"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
6911
6950
  $40dd3f46f55d62ba$var$_tmpl$6 = ["<h2", ' class="text">', "</h2>"],
6912
6951
  $40dd3f46f55d62ba$var$_tmpl$7 = ["<div", ' class="suggestion-container query"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
@@ -8084,7 +8123,9 @@ function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
8084
8123
  function $881e8953a9103f10$export$9ff751cd77687edc(_ref) {
8085
8124
  let {
8086
8125
  search_results_: search_results_,
8087
- router_: router_
8126
+ router_: router_,
8127
+ queries_without_content_results_: queries_without_content_results_,
8128
+ get_search_query_: get_search_query_
8088
8129
  } = _ref;
8089
8130
  const content_results = $b8hua$createMemo(() => {
8090
8131
  var _search_results_;
@@ -8100,6 +8141,10 @@ function $881e8953a9103f10$export$9ff751cd77687edc(_ref) {
8100
8141
  }
8101
8142
  return map;
8102
8143
  });
8144
+ $b8hua$createEffect(() => {
8145
+ const results = content_results();
8146
+ if (Array.isArray(results) && results.length === 0) queries_without_content_results_.add($b8hua$untrack(get_search_query_));
8147
+ });
8103
8148
  return $b8hua$createComponent((0, $b8hua$For), {
8104
8149
  get each() {
8105
8150
  return [...content_results_by_page_url().keys()];
@@ -8139,7 +8184,7 @@ function $ad4f3c9872fbeb48$export$4405d077f0a20494(_ref) {
8139
8184
  children: () => $b8hua$createComponent((0, $22470de5f42cc35d$export$f631859cab12b342), {})
8140
8185
  });
8141
8186
  }
8142
- const $d53ebed6f63304e4$var$_tmpl$ = ["<div", ' class="', '" style="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
8187
+ const $d53ebed6f63304e4$var$_tmpl$ = ["<div", ' class="content-results" style="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
8143
8188
  $d53ebed6f63304e4$var$_tmpl$2 = ["<button", ' class="view-more">', "</button>"],
8144
8189
  $d53ebed6f63304e4$var$_tmpl$3 = ["<button", ' class="view-less">', "</button>"];
8145
8190
  const $d53ebed6f63304e4$export$70ceae36059a1036 = 1;
@@ -8167,9 +8212,16 @@ function $d53ebed6f63304e4$export$6d0c9c22f6652669(_ref) {
8167
8212
  number_: num_results,
8168
8213
  i18n_: i18n_
8169
8214
  });
8170
- const [is_showing_placeholders, set_is_showing_placeholders] = $b8hua$createSignal(false);
8215
+ const queries_without_content_results_ = new (0, $b8hua$ListenableSet)();
8216
+ const [check_query, set_check_query] = $b8hua$createSignal(false);
8217
+ const placeholders_enabled = $b8hua$createMemo(() => {
8218
+ // don't show placeholders when the user toggles filters
8219
+ check_query();
8220
+ return !queries_without_content_results_.has(get_search_query_());
8221
+ });
8171
8222
  const rows_object = $d53ebed6f63304e4$var$make_state_saved_rows(content_results_rows_, i18n_);
8172
- return $b8hua$ssr($d53ebed6f63304e4$var$_tmpl$, $b8hua$ssrHydrationKey(), "content-results ".concat(is_showing_placeholders() ? "loading" : ""), "display:" + (is_loading_() || ((_content_results2 = content_results()) === null || _content_results2 === void 0 ? void 0 : _content_results2.length) > 0 ? "" : "none"), $b8hua$escape($b8hua$createComponent((0, $69602b3d8fd54c38$export$9dd50d35b9d94fdf), {
8223
+ for (const ev of ["add", "delete"]) queries_without_content_results_.addEventListener(ev, () => set_check_query(prev => !prev));
8224
+ return $b8hua$ssr($d53ebed6f63304e4$var$_tmpl$, $b8hua$ssrHydrationKey(), "display:" + (is_loading_() && placeholders_enabled() || ((_content_results2 = content_results()) === null || _content_results2 === void 0 ? void 0 : _content_results2.length) > 0 ? "" : "none"), $b8hua$escape($b8hua$createComponent((0, $69602b3d8fd54c38$export$9dd50d35b9d94fdf), {
8173
8225
  get_search_query_: get_search_query_,
8174
8226
  i18n_: i18n_,
8175
8227
  formatted_number_of_results_: formatted_number_of_results_,
@@ -8187,21 +8239,19 @@ function $d53ebed6f63304e4$export$6d0c9c22f6652669(_ref) {
8187
8239
  get children() {
8188
8240
  return $b8hua$createComponent((0, $b8hua$Suspense), {
8189
8241
  get fallback() {
8190
- return (() => {
8191
- set_is_showing_placeholders(true);
8192
- $b8hua$onCleanup(() => set_is_showing_placeholders(false));
8193
- return $b8hua$createComponent((0, $ad4f3c9872fbeb48$export$4405d077f0a20494), {
8194
- content_results_rows_: content_results_rows_,
8195
- get cols_at_size_() {
8196
- return $b8hua$createMemo(() => layout_options_().cols_at_size);
8197
- }
8198
- });
8199
- })();
8242
+ return $b8hua$createComponent((0, $ad4f3c9872fbeb48$export$4405d077f0a20494), {
8243
+ content_results_rows_: content_results_rows_,
8244
+ get cols_at_size_() {
8245
+ return $b8hua$createMemo(() => layout_options_().cols_at_size);
8246
+ }
8247
+ });
8200
8248
  },
8201
8249
  get children() {
8202
8250
  return $b8hua$createComponent((0, $881e8953a9103f10$export$9ff751cd77687edc), {
8203
8251
  router_: router_,
8204
- search_results_: search_results_
8252
+ search_results_: search_results_,
8253
+ queries_without_content_results_: queries_without_content_results_,
8254
+ get_search_query_: get_search_query_
8205
8255
  });
8206
8256
  }
8207
8257
  });
@@ -8643,7 +8693,7 @@ function $eb064bc3350276c1$var$_classApplyDescriptorGet(receiver, descriptor) {
8643
8693
  * Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
8644
8694
  */
8645
8695
  const $eb064bc3350276c1$var$privately_shared_properties = /*@__PURE__*/new WeakMap();
8646
- const $eb064bc3350276c1$var$content_search_default = false;
8696
+ const $eb064bc3350276c1$var$content_search_default = true;
8647
8697
  const $eb064bc3350276c1$var$min_products_to_fetch_ = 20;
8648
8698
  const $eb064bc3350276c1$export$bde3eb976dfded9 = depict_search => {
8649
8699
  var _privately_shared_pro;