@depict-ai/ui 1.4.25 → 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,6 +1,6 @@
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, 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";
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";
4
4
  import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
5
5
  import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
6
6
  import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
@@ -8,7 +8,7 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
8
8
  /*! Depict.ai search and product listing SDK */
9
9
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
10
10
  register_es_version("ui", "ES10");
11
- const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.25";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.0";
12
12
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
13
13
  const cols_at_size = [];
14
14
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -82,7 +82,9 @@ function $3f7203368ad0d3ca$export$ff7109b9b2b206ba(sdk_cols_at_size) {
82
82
  }
83
83
  function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
84
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.";
85
- return (0, $b8hua$isServer) ? "<!-- ".concat(text, " -->") : document.createComment(text);
85
+ return (0, $b8hua$isServer) ? {
86
+ t: "<!-- ".concat(text, " -->")
87
+ } : document.createComment(text);
86
88
  }
87
89
  function $cb64b315b25cfc59$export$2f0cbfbb4354bb52(elements) {
88
90
  // FYI this probably doesn't work on hugely deep nestings or large amount of elements
@@ -297,22 +299,34 @@ function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
297
299
  }
298
300
  });
299
301
  }
300
- const $63f1f8dbcd07d3b0$var$_tmpl$ = ["<style", ' type="text/css">', "</style>"],
301
- $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>"];
302
304
  function $63f1f8dbcd07d3b0$export$d21e32dfedac04be(props) {
303
- 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
304
312
  return $b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
305
313
  get message_() {
306
314
  return "Failed calculating " + props.layout + " layout";
307
315
  },
308
316
  severity_: "error",
309
317
  get children() {
310
- return $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element_);
318
+ return $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element_, false, container_class);
311
319
  }
312
320
  });
313
321
  }
314
322
  function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
315
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
+ }
316
330
  // Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
317
331
  const show_all_rows = $b8hua$createMemo(() => props.rows === "all");
318
332
  const rows_or_empty_object = $b8hua$createMemo(() => show_all_rows() ? {} : props.rows);
@@ -327,10 +341,9 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
327
341
  return !(!button || Array.isArray(button) && !button.length);
328
342
  });
329
343
  const [get_styling, set_styling] = $b8hua$createSignal();
330
- const container_class = $b8hua$make_random_classname();
331
344
  const selector_beginning = ".depict .".concat(container_class, ">"); // class so ppl can have id if needed
332
345
  const [get_children_count, set_children_count] = $b8hua$createSignal(0);
333
- 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);
334
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));
335
348
  const default_currently_visible_signal = $b8hua$createSignal($b8hua$untrack(() => {
336
349
  var _rows_or_empty_object;
@@ -339,19 +352,19 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
339
352
  const rows_visible_signal = $b8hua$createMemo(() => rows_or_empty_object().currently_visible || default_currently_visible_signal);
340
353
  const get_rows_visible = $b8hua$createMemo(() => rows_visible_signal()[0]());
341
354
  const set_rows_visible = $b8hua$createMemo(() => rows_visible_signal()[1]);
342
- const view_more_button_class = $b8hua$make_random_classname();
343
- const view_less_button_class = $b8hua$make_random_classname();
344
- const style_element = $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$, $b8hua$ssrHydrationKey(), get_styling);
345
- 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)));
346
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
347
- 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)));
348
- 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("");
349
361
  $b8hua$createComputed(() => {
350
362
  // Make sure we don't have more rows visible than max_rows (this could happen by max_rows being decreased)
351
363
  const rows_visible = get_rows_visible();
352
364
  const max_rows = rows_or_empty_object().max_rows;
353
365
  if (!isNaN(max_rows) && max_rows >= 0 && rows_visible > max_rows) set_rows_visible()(max_rows);
354
366
  });
367
+ $b8hua$createEffect(() => set_force_style_update(" ")); // force style update after hydration due to https://discord.com/channels/722131463138705510/722167424186843267/1151544212517552168
355
368
  $b8hua$createRenderEffect(() => {
356
369
  // Be careful to only read show_all_rows in here (ofc doesn't apply to nested effects)
357
370
  if (show_all_rows()) {
@@ -360,11 +373,13 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
360
373
  return;
361
374
  }
362
375
  update_children_count();
363
- const mutation_observer = new MutationObserver($b8hua$catchify(update_children_count));
364
- mutation_observer.observe(container_element, {
365
- childList: true
366
- });
367
- $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
+ }
368
383
  set_styling(
369
384
  // this is needed because solid will think that the memo-accessor is a setter function otherwise
370
385
  () => $b8hua$createMemo(() => {
@@ -375,7 +390,7 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
375
390
  } = rows_or_empty_object();
376
391
  const rows_visible = get_rows_visible();
377
392
  const children_count = get_children_count();
378
- return col_styling() + props.cols_at_size.map(options => {
393
+ return force_style_update() + col_styling() + props.cols_at_size.map(options => {
379
394
  const [recs_per_row, min, max] = options;
380
395
  let should_hide_view_more_button;
381
396
  let visible_recs;
@@ -396,6 +411,7 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
396
411
  }).join("");
397
412
  }));
398
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
399
415
  if (insert_after_container) container_element.after(style_element);
400
416
  return [container_element, view_more_button_container(), view_less_button_container(), style_element];
401
417
  }
@@ -412,12 +428,20 @@ function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
412
428
  slider_ref_: slider_ref_,
413
429
  faded_opacity_ = 0.7,
414
430
  mutation_plugins_ = [],
415
- disable_fading_: disable_fading_
431
+ disable_fading_: disable_fading_,
432
+ arrow_width_: arrow_width_,
433
+ arrow_height_: arrow_height_
416
434
  } = _ref;
417
435
  const slider = new (0, $b8hua$Amazing_Slider)({
418
436
  button_contents: {
419
- left: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {})))],
420
- 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
+ })))]
421
445
  },
422
446
  constructor_plugins: [$b8hua$slider_snap_css().constructor_plugin],
423
447
  mutation_plugins: [...(disable_fading_ ? [] : [$b8hua$slider_fading_factory({
@@ -444,6 +468,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
444
468
  });
445
469
  const num_placeholders_ = () => 20;
446
470
  const slider = $b8hua$createComponent((0, $002f09d00aac50b2$export$6649caad96ef8870), {
471
+ arrow_height_: 25,
472
+ arrow_width_: 12.5,
447
473
  disable_fading_: true,
448
474
  slider_ref_: slider => {
449
475
  const {
@@ -488,32 +514,64 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
488
514
  children: slider
489
515
  });
490
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
+ }
491
547
  const $d5d7e58c5c9d8db0$var$_tmpl$ = ["<div", ' class="depict recommendations">', "</div>"];
492
548
  function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
493
- const grid_spacing_override = $b8hua$createMemo(() => {
494
- const {
495
- grid_spacing: grid_spacing
496
- } = props; // can be reactive
497
- return typeof grid_spacing === "string" ? {
498
- grid_spacing: grid_spacing
499
- } : {
500
- override_vertical_spacing: grid_spacing.vertical,
501
- grid_spacing: grid_spacing.horizontal
502
- };
503
- });
504
- const [recommendations_resource_] = $b8hua$createResource(() => props.recommendations, recs => recs);
505
- return $b8hua$ssr($d5d7e58c5c9d8db0$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($39ddb986053fb759$export$d41d19e89346fa2({
506
- product_card_template_: function () {
507
- return props.product_card_template(...arguments);
508
- },
509
- recommendations_resource_: recommendations_resource_,
510
- market_: () => props.market,
511
- merchant_: () => props.merchant,
512
- layout_options_: $b8hua$createMemo(() => ({
513
- cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
514
- ...grid_spacing_override()
515
- }))
516
- })));
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");
517
575
  }
518
576
  const $e3efeb558d952696$var$_tmpl$ = ["<div", ' class="recommendation-grid"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"];
519
577
  function $e3efeb558d952696$export$7da560f849543dff(_ref) {
@@ -573,40 +631,43 @@ function $e3efeb558d952696$export$7da560f849543dff(_ref) {
573
631
  const $b432b11321ad4c97$var$_tmpl$ = ["<button", ' class="show-more major" type="button">', "</button>"],
574
632
  $b432b11321ad4c97$var$_tmpl$2 = ["<div", ' class="depict plp recommendations">', "</div>"];
575
633
  function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
576
- const rows_object_ = $b8hua$createMemo(() => {
577
- const view_more_button = props.view_more_button;
578
- if (!view_more_button) return "all";
579
- return {
580
- start_rows: view_more_button.start_rows,
581
- rows_per_click: view_more_button.rows_per_click,
582
- button: $b8hua$ssr($b432b11321ad4c97$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(view_more_button.text))
583
- };
584
- });
585
- const grid_spacing_override = $b8hua$createMemo(() => {
586
- const {
587
- grid_spacing: grid_spacing
588
- } = props; // can be reactive
589
- return typeof grid_spacing === "string" ? {
590
- grid_spacing: grid_spacing
591
- } : {
592
- override_vertical_spacing: grid_spacing.vertical,
593
- grid_spacing: grid_spacing.horizontal
594
- };
595
- });
596
- const [recommendations_resource_] = $b8hua$createResource(() => props.recommendations, recs => recs);
597
- return $b8hua$ssr($b432b11321ad4c97$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($e3efeb558d952696$export$7da560f849543dff({
598
- rows_object_: rows_object_,
599
- product_card_template_: function () {
600
- return props.product_card_template(...arguments);
601
- },
602
- recommendations_resource_: recommendations_resource_,
603
- market_: () => props.market,
604
- merchant_: () => props.merchant,
605
- layout_options_: $b8hua$createMemo(() => ({
606
- cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
607
- ...grid_spacing_override()
608
- }))
609
- })));
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");
610
671
  }
611
672
  function $56047603f9d212b6$export$e6fffe67d4cdd848(whatToWatch) {
612
673
  const [size, setSize] = $b8hua$createSignal(0);
@@ -1001,16 +1062,16 @@ function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
1001
1062
  return outmost_element;
1002
1063
  }
1003
1064
  const $6b73914551534ea8$var$_tmpl$ = ["<span", ' class="count">', "</span>"],
1004
- $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>"];
1005
1066
  const $6b73914551534ea8$export$48513f6b9f8ce62d = props => {
1006
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
1007
1068
  const count = $b8hua$createMemo(() => props.count_);
1008
1069
  const label = $b8hua$createMemo(() => props.label_);
1009
1070
  const checked = $b8hua$createMemo(() => props.checked_);
1010
1071
  const value = $b8hua$createMemo(() => props.value_);
1011
- const is_count_zero = $b8hua$createMemo(() => props.is_count_zero_);
1072
+ const is_count_zero = $b8hua$createMemo(() => props.is_count_zero_ || count() === 0);
1012
1073
  const id = $b8hua$make_random_classname();
1013
- 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), {
1014
1075
  get when() {
1015
1076
  return count() != undefined;
1016
1077
  },
@@ -1421,7 +1482,7 @@ function $457279ff15864cb9$export$e5c2828934226505(_ref) {
1421
1482
  const $0ae614c5c7babb43$var$_tmpl$ = ["<form", ' class="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></form>"],
1422
1483
  $0ae614c5c7babb43$var$_tmpl$2 = ["<div", ' class="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
1423
1484
  $0ae614c5c7babb43$var$_tmpl$3 = ["<details", "></details>"],
1424
- $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>"];
1425
1486
  const $0ae614c5c7babb43$var$max_visible_without_collapsing = 15;
1426
1487
  const $0ae614c5c7babb43$var$show_non_collapsible_when_collapsed = 4;
1427
1488
  function $0ae614c5c7babb43$export$a32086fa6616eafd(_ref) {
@@ -1641,13 +1702,13 @@ function $0ae614c5c7babb43$var$render_stuff(data, existing_filter, i18n_) {
1641
1702
  return $b8hua$ssr($0ae614c5c7babb43$var$_tmpl$3, $b8hua$ssrHydrationKey());
1642
1703
  },
1643
1704
  get summary_() {
1644
- var _value10;
1645
- 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), {
1646
1707
  i18n_: i18n_,
1647
1708
  get expanded_() {
1648
1709
  return $b8hua$createMemo(() => {
1649
- var _value$is_expanded_$u, _value11, _value11$is_expanded_, _value11$is_expanded_2;
1650
- 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;
1651
1712
  });
1652
1713
  }
1653
1714
  })));
@@ -1669,8 +1730,8 @@ function $0ae614c5c7babb43$var$render_stuff(data, existing_filter, i18n_) {
1669
1730
  },
1670
1731
  get children() {
1671
1732
  return $0ae614c5c7babb43$var$render_stuff($b8hua$createMemo(() => {
1672
- var _value12;
1673
- 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_) || {};
1674
1735
  }), existing_filter, i18n_);
1675
1736
  }
1676
1737
  });
@@ -1854,7 +1915,8 @@ function $0ae614c5c7babb43$var$expand_until_choice(data_structure) {
1854
1915
  });
1855
1916
  }
1856
1917
  const $830ea8efda59884e$var$_tmpl$ = ["<div", ' class="checkbox-grid">', "</div>"],
1857
- $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>"];
1858
1920
  const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
1859
1921
  let {
1860
1922
  filter_: filter_,
@@ -1893,7 +1955,14 @@ const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
1893
1955
  var _existing_filter, _existing_filter$data;
1894
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_);
1895
1957
  });
1896
- 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
+ })));
1897
1966
  }
1898
1967
  })));
1899
1968
  };
@@ -5436,35 +5505,6 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
5436
5505
  }
5437
5506
  })))];
5438
5507
  }
5439
- function $83e8cf2c0b87a58a$export$23fca46f3143581f(component, error_message) {
5440
- const component_in_error_boundary = do_with_elements => {
5441
- const error_boundary_wrapped = $74777e8fe65b3dcb$export$b69d0d92862de18b({
5442
- severity_: "error",
5443
- message_: error_message,
5444
- get children() {
5445
- const elements = component();
5446
- do_with_elements === null || do_with_elements === void 0 || do_with_elements(elements);
5447
- return elements;
5448
- }
5449
- });
5450
- // This might return an accessor, in that case we need to "unwrap" it since our SDK consumers expect HTML elements or arrays thereof
5451
- if (typeof error_boundary_wrapped === "function")
5452
- // @ts-ignore
5453
- return error_boundary_wrapped();
5454
- // On the server it returns a string, so we just return that
5455
- return error_boundary_wrapped;
5456
- };
5457
- const owner = $b8hua$getOwner();
5458
- if (owner == null) return $b8hua$createRoot(dispose => {
5459
- // 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
5460
- return component_in_error_boundary(elements => {
5461
- if (!(elements !== null && elements !== void 0 && elements.length)) return;
5462
- (0, $b8hua$observer).onremoved(elements[0], dispose);
5463
- });
5464
- });else
5465
- // we're already in a root so cleanups are handled
5466
- return component_in_error_boundary();
5467
- }
5468
5508
  function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
5469
5509
  var _globalThis$location$, _globalThis$location;
5470
5510
  const router_ = options.router_;
@@ -6905,7 +6945,7 @@ function $3c5e15c6ee4227a9$export$605674723bcc715c() {
6905
6945
  const $40dd3f46f55d62ba$var$_tmpl$ = ["<a", ' class="', '"', ">", "</a>"],
6906
6946
  $40dd3f46f55d62ba$var$_tmpl$2 = ["<div", ' class="search-icon">', "</div>"],
6907
6947
  $40dd3f46f55d62ba$var$_tmpl$3 = ["<span", ' class="type">', "</span>"],
6908
- $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>"],
6909
6949
  $40dd3f46f55d62ba$var$_tmpl$5 = ["<div", ' class="with-icon"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
6910
6950
  $40dd3f46f55d62ba$var$_tmpl$6 = ["<h2", ' class="text">', "</h2>"],
6911
6951
  $40dd3f46f55d62ba$var$_tmpl$7 = ["<div", ' class="suggestion-container query"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
@@ -8083,7 +8123,9 @@ function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
8083
8123
  function $881e8953a9103f10$export$9ff751cd77687edc(_ref) {
8084
8124
  let {
8085
8125
  search_results_: search_results_,
8086
- router_: router_
8126
+ router_: router_,
8127
+ queries_without_content_results_: queries_without_content_results_,
8128
+ get_search_query_: get_search_query_
8087
8129
  } = _ref;
8088
8130
  const content_results = $b8hua$createMemo(() => {
8089
8131
  var _search_results_;
@@ -8099,6 +8141,10 @@ function $881e8953a9103f10$export$9ff751cd77687edc(_ref) {
8099
8141
  }
8100
8142
  return map;
8101
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
+ });
8102
8148
  return $b8hua$createComponent((0, $b8hua$For), {
8103
8149
  get each() {
8104
8150
  return [...content_results_by_page_url().keys()];
@@ -8138,7 +8184,7 @@ function $ad4f3c9872fbeb48$export$4405d077f0a20494(_ref) {
8138
8184
  children: () => $b8hua$createComponent((0, $22470de5f42cc35d$export$f631859cab12b342), {})
8139
8185
  });
8140
8186
  }
8141
- const $d53ebed6f63304e4$var$_tmpl$ = ["<div", ' class="', '" style="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
8187
+ const $d53ebed6f63304e4$var$_tmpl$ = ["<div", ' class="content-results" style="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
8142
8188
  $d53ebed6f63304e4$var$_tmpl$2 = ["<button", ' class="view-more">', "</button>"],
8143
8189
  $d53ebed6f63304e4$var$_tmpl$3 = ["<button", ' class="view-less">', "</button>"];
8144
8190
  const $d53ebed6f63304e4$export$70ceae36059a1036 = 1;
@@ -8166,9 +8212,16 @@ function $d53ebed6f63304e4$export$6d0c9c22f6652669(_ref) {
8166
8212
  number_: num_results,
8167
8213
  i18n_: i18n_
8168
8214
  });
8169
- 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
+ });
8170
8222
  const rows_object = $d53ebed6f63304e4$var$make_state_saved_rows(content_results_rows_, i18n_);
8171
- 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), {
8172
8225
  get_search_query_: get_search_query_,
8173
8226
  i18n_: i18n_,
8174
8227
  formatted_number_of_results_: formatted_number_of_results_,
@@ -8186,21 +8239,19 @@ function $d53ebed6f63304e4$export$6d0c9c22f6652669(_ref) {
8186
8239
  get children() {
8187
8240
  return $b8hua$createComponent((0, $b8hua$Suspense), {
8188
8241
  get fallback() {
8189
- return (() => {
8190
- set_is_showing_placeholders(true);
8191
- $b8hua$onCleanup(() => set_is_showing_placeholders(false));
8192
- return $b8hua$createComponent((0, $ad4f3c9872fbeb48$export$4405d077f0a20494), {
8193
- content_results_rows_: content_results_rows_,
8194
- get cols_at_size_() {
8195
- return $b8hua$createMemo(() => layout_options_().cols_at_size);
8196
- }
8197
- });
8198
- })();
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
+ });
8199
8248
  },
8200
8249
  get children() {
8201
8250
  return $b8hua$createComponent((0, $881e8953a9103f10$export$9ff751cd77687edc), {
8202
8251
  router_: router_,
8203
- 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_
8204
8255
  });
8205
8256
  }
8206
8257
  });
@@ -8642,7 +8693,7 @@ function $eb064bc3350276c1$var$_classApplyDescriptorGet(receiver, descriptor) {
8642
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.
8643
8694
  */
8644
8695
  const $eb064bc3350276c1$var$privately_shared_properties = /*@__PURE__*/new WeakMap();
8645
- const $eb064bc3350276c1$var$content_search_default = false;
8696
+ const $eb064bc3350276c1$var$content_search_default = true;
8646
8697
  const $eb064bc3350276c1$var$min_products_to_fetch_ = 20;
8647
8698
  const $eb064bc3350276c1$export$bde3eb976dfded9 = depict_search => {
8648
8699
  var _privately_shared_pro;