@depict-ai/ui 1.3.2 → 1.3.3

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.
@@ -43,7 +43,7 @@ $parcel$export(module.exports, "defaultGridSpacing", () => $a3280f0aad997933$exp
43
43
  $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$export$c3834fa86c616831);
44
44
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
45
45
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
46
- /*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.3.2";
46
+ /*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.3.3";
47
47
 
48
48
 
49
49
 
@@ -710,8 +710,6 @@ function $401aee5f33dca9e2$export$83fd5de5504a7a67({ formatted_number_of_results
710
710
 
711
711
 
712
712
 
713
-
714
-
715
713
 
716
714
 
717
715
 
@@ -1326,7 +1324,119 @@ function $ac167f6af6a48fc3$export$a1fd619a4743ca08({ plp_results_: plp_results_
1326
1324
  }
1327
1325
 
1328
1326
 
1329
- const $fe76fb463cc60b89$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="PLP-results"><!#><!/><!#><!/></div>`, 6), $fe76fb463cc60b89$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="cards"></div>`, 2), $fe76fb463cc60b89$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<style></style>`, 2);
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+ const $f48d0fbb00835aaa$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div></div>`, 2), $f48d0fbb00835aaa$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<style type="text/css"></style>`, 2);
1343
+ function $f48d0fbb00835aaa$export$d21e32dfedac04be(props) {
1344
+ return (0, $57o7A$solidjsweb.createComponent)((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
1345
+ get message_ () {
1346
+ return "Failed calculating " + props.layout + " layout";
1347
+ },
1348
+ severity_: "error",
1349
+ get children () {
1350
+ return $f48d0fbb00835aaa$var$ActualSolidLayout(props);
1351
+ }
1352
+ });
1353
+ }
1354
+ function $f48d0fbb00835aaa$var$ActualSolidLayout(props) {
1355
+ // Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
1356
+ const show_all_rows = (0, $57o7A$solidjs.createMemo)(()=>props.rows === "all");
1357
+ const rows_or_empty_object = (0, $57o7A$solidjs.createMemo)(()=>show_all_rows() ? {} : props.rows);
1358
+ const button_elements = (0, $5f7d55c710fd1bc2$export$2f0cbfbb4354bb52)((0, $57o7A$solidjs.createMemo)(()=>rows_or_empty_object().button));
1359
+ const have_a_button = (0, $57o7A$solidjs.createMemo)(()=>{
1360
+ const button = button_elements();
1361
+ return !(!button || Array.isArray(button) && !button.length);
1362
+ });
1363
+ const [get_styling, set_styling] = (0, $57o7A$solidjs.createSignal)();
1364
+ const container_class = (0, $57o7A$depictaiutilishared.make_random_classname)();
1365
+ const selector_beginning = `.depict .${container_class}>`; // class so ppl can have id if needed
1366
+ const container_element = (()=>{
1367
+ const _el$ = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$);
1368
+ (0, $57o7A$solidjsweb.spread)(_el$, (0, $57o7A$solidjsweb.mergeProps)(()=>props.element_attributes), false, true);
1369
+ (0, $57o7A$solidjsweb.insert)(_el$, ()=>props.children);
1370
+ (0, $57o7A$solidjsweb.runHydrationEvents)();
1371
+ return _el$;
1372
+ })();
1373
+ const [get_children_count, set_children_count] = (0, $57o7A$solidjs.createSignal)(0);
1374
+ const update_children_count = ()=>set_children_count(container_element.children.length);
1375
+ const col_styling = (0, $57o7A$solidjs.createMemo)(()=>(0, $57o7A$depictaiutilishared.n_col_styling_with_dist)(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
1376
+ const rows_visible_signal = (0, $57o7A$solidjs.createMemo)(()=>rows_or_empty_object().currently_visible || (0, $57o7A$solidjs.createSignal)(0));
1377
+ const get_rows_visible = (0, $57o7A$solidjs.createMemo)(()=>rows_visible_signal()[0]());
1378
+ const set_rows_visible = (0, $57o7A$solidjs.createMemo)(()=>rows_visible_signal()[1]);
1379
+ const button_class = (0, $57o7A$depictaiutilishared.make_random_classname)();
1380
+ const button_container = (0, $57o7A$solidjs.createMemo)(()=>have_a_button() && (()=>{
1381
+ const _el$2 = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$);
1382
+ (0, $57o7A$solidjsweb.addEventListener)(_el$2, "click", (0, $57o7A$depictaiutilishared.catchify)(()=>set_rows_visible()((prev)=>prev + (rows_or_empty_object().rows_per_click ?? 1))), true);
1383
+ (0, $57o7A$solidjsweb.className)(_el$2, "load-more-container " + button_class);
1384
+ (0, $57o7A$solidjsweb.insert)(_el$2, ()=>rows_or_empty_object().button);
1385
+ (0, $57o7A$solidjsweb.runHydrationEvents)();
1386
+ return _el$2;
1387
+ })());
1388
+ container_element.classList.add(container_class);
1389
+ (0, $57o7A$solidjs.createRenderEffect)(()=>{
1390
+ // Be careful to only read show_all_rows in here (ofc doesn't apply to nested effects)
1391
+ if (show_all_rows()) {
1392
+ // no view more functionality requested
1393
+ set_styling(()=>col_styling);
1394
+ return;
1395
+ }
1396
+ (0, $57o7A$solidjs.untrack)(()=>set_rows_visible()(rows_or_empty_object().start_rows ?? 1));
1397
+ update_children_count();
1398
+ const mutation_observer = new MutationObserver((0, $57o7A$depictaiutilishared.catchify)(update_children_count));
1399
+ mutation_observer.observe(container_element, {
1400
+ childList: true
1401
+ });
1402
+ (0, $57o7A$solidjs.onCleanup)(()=>mutation_observer.disconnect());
1403
+ set_styling(// this is needed because solid will think that the memo-accessor is a setter function otherwise
1404
+ ()=>(0, $57o7A$solidjs.createMemo)(()=>{
1405
+ const { rows_per_click: rows_per_click , max_rows: max_rows = -1 } = rows_or_empty_object();
1406
+ return col_styling() + props.cols_at_size.map((options)=>{
1407
+ const [, min, max] = options;
1408
+ let should_hide_button;
1409
+ let visible_recs;
1410
+ if (props.disable_partial_rows) {
1411
+ visible_recs = (0, $57o7A$depictaiutilishared.layout_get_visible_recs_without_partial_rows)(get_rows_visible(), get_children_count(), options);
1412
+ const visible_recs_next_show_more = (0, $57o7A$depictaiutilishared.layout_get_visible_recs_without_partial_rows)(get_rows_visible() + (rows_per_click || 0), // Should this really be zero when we default rows_per_click to 1?
1413
+ get_children_count(), options);
1414
+ should_hide_button = visible_recs === visible_recs_next_show_more;
1415
+ } else {
1416
+ visible_recs = (0, $57o7A$depictaiutilishared.layout_get_total_rec_amount_for_row)(get_rows_visible(), options);
1417
+ should_hide_button = visible_recs >= get_children_count();
1418
+ }
1419
+ const should_hide_button_final = button_class && (should_hide_button || max_rows !== -1 && get_rows_visible() >= max_rows);
1420
+ return `${(0, $57o7A$depictaiutilishared.layout_media_query_header)(min, max)}{${selector_beginning}:nth-child(n+${visible_recs + 1}){display:none}${props.layout == "slider" ? `${selector_beginning}:nth-child(n+${visible_recs}){margin-right:0}` : ""}${should_hide_button_final ? `.depict .${button_class}{display:none!important}` : ``}}`;
1421
+ }).join("");
1422
+ }));
1423
+ });
1424
+ return [
1425
+ container_element,
1426
+ (0, $57o7A$solidjsweb.memo)(button_container),
1427
+ (()=>{
1428
+ const _el$3 = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$2);
1429
+ (0, $57o7A$solidjsweb.insert)(_el$3, get_styling);
1430
+ return _el$3;
1431
+ })()
1432
+ ];
1433
+ }
1434
+ (0, $57o7A$solidjsweb.delegateEvents)([
1435
+ "click"
1436
+ ]);
1437
+
1438
+
1439
+ const $fe76fb463cc60b89$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="PLP-results"><!#><!/><!#><!/></div>`, 6);
1330
1440
  function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_ , depict_api_: depict_api_ , all_products_loaded_: all_products_loaded_ , min_products_to_fetch_: min_products_to_fetch_ , query_base_: query_base_ , first_result_in_viewport_: first_result_in_viewport_ , last_result_in_viewport_: last_result_in_viewport_ , scroll_restoration_data_: [get_scroll_restoration_data] , no_results_options_: no_results_options_ , desktop_filter_elements_: desktop_filter_elements_ , sort_or_filter_open_: sort_or_filter_open_ , product_card_template_: product_card_template_ , layout_options_: layout_options_ , id_currently_querying_for_: id_currently_querying_for_ }) {
1331
1441
  // The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
1332
1442
  const is_loading_ = (0, $57o7A$solidjs.createMemo)(()=>plp_results_.loading || query_base_.loading);
@@ -1369,9 +1479,6 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_
1369
1479
  let suspense_contents;
1370
1480
  let is_just_after_plp_results_update = false;
1371
1481
  let fallback_is_alive = false;
1372
- const random_id = (0, $57o7A$depictaiutilishared.make_random_classname)();
1373
- const selector_beginning_ = `.depict.plp #${random_id}>`;
1374
- const [get_styling, set_styling_] = (0, $57o7A$solidjs.createSignal)("");
1375
1482
  const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $57o7A$solidjs.createSignal)(true);
1376
1483
  const rendered_placeholders = (0, $57o7A$solidjs.createMemo)(()=>get_should_have_placeholders_rendered() ? (0, $0caf87eaa19079da$export$f33414a4df0afd3f)({
1377
1484
  product_card_template_: product_card_template_,
@@ -1381,64 +1488,22 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_
1381
1488
  })
1382
1489
  }) : undefined);
1383
1490
  const [get_suspense_is_blocked, set_suspense_is_blocked] = (0, $57o7A$solidjs.createSignal)(false);
1491
+ const modified_cols_at_size = $fe76fb463cc60b89$var$make_modified_cols_at_size({
1492
+ layout_options_: layout_options_,
1493
+ sort_or_filter_open_: sort_or_filter_open_
1494
+ });
1384
1495
  (0, $57o7A$solidjs.createComputed)(()=>{
1385
1496
  if (!is_loading_()) return;
1386
1497
  set_should_have_placeholders_rendered(true);
1387
1498
  set_suspense_is_blocked(false);
1388
1499
  is_just_after_plp_results_update = true;
1389
1500
  });
1390
- $fe76fb463cc60b89$var$results_grid_styling_generator({
1391
- layout_options_: layout_options_,
1392
- set_styling_: set_styling_,
1393
- sort_or_filter_open_: sort_or_filter_open_,
1394
- selector_beginning_: selector_beginning_
1395
- });
1396
- const has_at_least_one_display = (0, $57o7A$solidjs.createMemo)(()=>!!plp_results_()?.displays?.length); // Only de-construct below stuff if we get 0 displays. Important that this returns boolean so that below Suspense only gets re-created if it actually changes
1397
1501
  const block_suspense_if_needed = ()=>{
1398
1502
  if (!is_just_after_plp_results_update) return;
1399
1503
  is_just_after_plp_results_update = false;
1400
1504
  fallback_is_alive = false;
1401
1505
  set_suspense_is_blocked(true);
1402
1506
  };
1403
- const non_placeholder_product_cards = (0, $57o7A$solidjs.createMemo)(()=>has_at_least_one_display() && // This suspense ensures that if someone has async templates, we still show placeholders until the product cards actually have finished rendering (automagically since they're createResource's)
1404
- // We're creating it outside the <Show> so that we can benefit from <For>'s optimisation between changing results
1405
- // (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
1406
- // We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
1407
- (0, $57o7A$solidjsweb.createComponent)((0, $57o7A$solidjs.Suspense), {
1408
- get fallback () {
1409
- return (()=>{
1410
- fallback_is_alive = true;
1411
- (0, $57o7A$solidjs.onCleanup)(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
1412
- return (0, $57o7A$solidjs.createMemo)(()=>{
1413
- // We need to be able to block the suspense since when async product cards are *rendering* we want to show the placeholders on initial load but not when loading more
1414
- // In future we could have individual suspense's for each product card, but that's too much for now
1415
- if (get_suspense_is_blocked()) return suspense_contents;
1416
- set_should_have_placeholders_rendered(true); // just in case
1417
- (0, $57o7A$solidjs.onCleanup)(()=>set_should_have_placeholders_rendered(false));
1418
- return rendered_placeholders; // I lifted the placeholders into the memo since we don't want to re-render them when switching from <Show> to <Suspense>
1419
- });
1420
- })();
1421
- },
1422
- get children () {
1423
- return (()=>{
1424
- suspense_contents = (0, $ac167f6af6a48fc3$export$a1fd619a4743ca08)({
1425
- product_card_template_: product_card_template_,
1426
- plp_results_: plp_results_,
1427
- last_result_in_viewport_: last_result_in_viewport_,
1428
- first_result_in_viewport_: first_result_in_viewport_,
1429
- market_: market_,
1430
- merchant_: merchant_,
1431
- all_products_loaded_: all_products_loaded_,
1432
- min_products_to_fetch_: min_products_to_fetch_,
1433
- query_base_: query_base_,
1434
- depict_api_: depict_api_,
1435
- is_loading_: is_loading_
1436
- });
1437
- (0, $57o7A$solidjs.onCleanup)(()=>suspense_contents = undefined);
1438
- return suspense_contents;
1439
- })();
1440
- }
1441
- }));
1442
1507
  (0, $57o7A$solidjs.createEffect)((0, $57o7A$solidjs.on)(plp_results_, ()=>{
1443
1508
  if (!fallback_is_alive) {
1444
1509
  // if all product card rendering functions after the initial rendering are synchronous the suspense boundary will never go into the fallback, so we don't know when they have finished rendering, and we can't block the suspense. Therefore, we're just doing it with this effect
@@ -1450,27 +1515,69 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_
1450
1515
  }));
1451
1516
  return [
1452
1517
  (0, $57o7A$solidjsweb.memo)((0, $fc23d7668ae0011d$export$a2cc176055f8f08)),
1453
- (()=>{
1454
- const _el$6 = (0, $57o7A$solidjsweb.getNextElement)($fe76fb463cc60b89$var$_tmpl$2);
1455
- (0, $57o7A$solidjsweb.setAttribute)(_el$6, "id", random_id);
1456
- (0, $57o7A$solidjsweb.insert)(_el$6, (0, $57o7A$solidjsweb.createComponent)((0, $57o7A$solidjs.Show), {
1457
- get when () {
1458
- return !is_loading_();
1459
- },
1460
- get fallback () {
1461
- return rendered_placeholders();
1462
- },
1463
- get children () {
1464
- return non_placeholder_product_cards();
1465
- }
1466
- }));
1467
- return _el$6;
1468
- })(),
1469
- (()=>{
1470
- const _el$7 = (0, $57o7A$solidjsweb.getNextElement)($fe76fb463cc60b89$var$_tmpl$3);
1471
- (0, $57o7A$solidjsweb.insert)(_el$7, get_styling);
1472
- return _el$7;
1473
- })()
1518
+ (0, $57o7A$solidjsweb.createComponent)((0, $f48d0fbb00835aaa$export$d21e32dfedac04be), {
1519
+ get cols_at_size () {
1520
+ return modified_cols_at_size();
1521
+ },
1522
+ get override_vertical_spacing () {
1523
+ return layout_options_().override_vertical_spacing;
1524
+ },
1525
+ get grid_spacing () {
1526
+ return layout_options_().grid_spacing;
1527
+ },
1528
+ rows: "all",
1529
+ layout: "grid",
1530
+ element_attributes: {
1531
+ class: "cards"
1532
+ },
1533
+ get children () {
1534
+ return (0, $57o7A$solidjsweb.createComponent)((0, $57o7A$solidjs.Show), {
1535
+ get when () {
1536
+ return !is_loading_();
1537
+ },
1538
+ get fallback () {
1539
+ return rendered_placeholders();
1540
+ },
1541
+ get children () {
1542
+ return (0, $57o7A$solidjsweb.createComponent)((0, $57o7A$solidjs.Suspense), {
1543
+ get fallback () {
1544
+ return (()=>{
1545
+ fallback_is_alive = true;
1546
+ (0, $57o7A$solidjs.onCleanup)(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
1547
+ return (0, $57o7A$solidjs.createMemo)(()=>{
1548
+ // We need to be able to block the suspense since when async product cards are *rendering* we want to show the placeholders on initial load but not when loading more
1549
+ // In future we could have individual suspense's for each product card, but that's too much for now
1550
+ if (get_suspense_is_blocked()) return suspense_contents;
1551
+ set_should_have_placeholders_rendered(true); // just in case
1552
+ (0, $57o7A$solidjs.onCleanup)(()=>set_should_have_placeholders_rendered(false));
1553
+ return rendered_placeholders; // I lifted the placeholders into the memo since we don't want to re-render them when switching from <Show> to <Suspense>
1554
+ });
1555
+ })();
1556
+ },
1557
+ get children () {
1558
+ return (()=>{
1559
+ suspense_contents = (0, $ac167f6af6a48fc3$export$a1fd619a4743ca08)({
1560
+ product_card_template_: product_card_template_,
1561
+ plp_results_: plp_results_,
1562
+ last_result_in_viewport_: last_result_in_viewport_,
1563
+ first_result_in_viewport_: first_result_in_viewport_,
1564
+ market_: market_,
1565
+ merchant_: merchant_,
1566
+ all_products_loaded_: all_products_loaded_,
1567
+ min_products_to_fetch_: min_products_to_fetch_,
1568
+ query_base_: query_base_,
1569
+ depict_api_: depict_api_,
1570
+ is_loading_: is_loading_
1571
+ });
1572
+ (0, $57o7A$solidjs.onCleanup)(()=>suspense_contents = undefined);
1573
+ return suspense_contents;
1574
+ })();
1575
+ }
1576
+ });
1577
+ }
1578
+ });
1579
+ }
1580
+ })
1474
1581
  ];
1475
1582
  }
1476
1583
  });
@@ -1482,13 +1589,14 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_
1482
1589
  })();
1483
1590
  }
1484
1591
  /**
1485
- * Sets styling to styling generated by "Layout" (n_col_styling_with_dist) depending on if filters are open or not
1592
+ * Changes cols_at_size depending on if filters are open or not so one card less is shown when the filters are open
1486
1593
  * This function is special to the actual PLPResults.
1487
- */ function $fe76fb463cc60b89$var$results_grid_styling_generator({ layout_options_: layout_options_ , sort_or_filter_open_: sort_or_filter_open_ , set_styling_: set_styling_ , selector_beginning_: selector_beginning_ }) {
1488
- (0, $57o7A$solidjs.createRenderEffect)(()=>{
1594
+ */ function $fe76fb463cc60b89$var$make_modified_cols_at_size({ layout_options_: layout_options_ , sort_or_filter_open_: sort_or_filter_open_ }) {
1595
+ return (0, $57o7A$solidjs.createMemo)(()=>{
1596
+ const layout_options = layout_options_();
1489
1597
  // Add grid styling that changes when filters get opened/closed
1490
- const when_filters_closed_cols = layout_options_.cols_at_size;
1491
- const cols_at_size = sort_or_filter_open_() ? when_filters_closed_cols.map((row)=>{
1598
+ const when_filters_closed_cols = layout_options.cols_at_size;
1599
+ return sort_or_filter_open_() ? when_filters_closed_cols.map((row)=>{
1492
1600
  const [num_cols_default, , , , override_cols] = row;
1493
1601
  const cloned_row = [
1494
1602
  ...row
@@ -1504,8 +1612,6 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_
1504
1612
  };
1505
1613
  return cloned_row;
1506
1614
  }) : when_filters_closed_cols;
1507
- const css = (0, $57o7A$depictaiutilishared.n_col_styling_with_dist)(selector_beginning_, layout_options_.grid_spacing, cols_at_size, "grid", layout_options_.override_vertical_spacing);
1508
- set_styling_(css);
1509
1615
  });
1510
1616
  }
1511
1617
 
@@ -6129,15 +6235,19 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
6129
6235
  });
6130
6236
  }
6131
6237
  }
6132
- function $48567ac5b39bac56$export$e2bf8ce7779e827e({ depict_category: depict_category , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , show_breadcrumbs: show_breadcrumbs = true , show_quicklinks: show_quicklinks = true , category_title: category_title }) {
6238
+ function $48567ac5b39bac56$export$e2bf8ce7779e827e(props) {
6239
+ const { depict_category: depict_category , product_card_template: product_card_template , category_title: category_title } = props;
6133
6240
  const shared_properties = $48567ac5b39bac56$var$get_shared_properties(depict_category);
6134
- const grid_spacing_override = typeof grid_spacing === "string" ? {
6135
- grid_spacing: grid_spacing
6136
- } : {
6137
- override_vertical_spacing: grid_spacing.vertical,
6138
- grid_spacing: grid_spacing.horizontal
6139
- };
6140
6241
  return (0, $95837413165cc2df$export$23fca46f3143581f)(()=>{
6242
+ const grid_spacing_override = (0, $57o7A$solidjs.createMemo)(()=>{
6243
+ const { grid_spacing: grid_spacing } = props; // can be reactive
6244
+ return typeof grid_spacing === "string" ? {
6245
+ grid_spacing: grid_spacing
6246
+ } : {
6247
+ override_vertical_spacing: grid_spacing.vertical,
6248
+ grid_spacing: grid_spacing.horizontal
6249
+ };
6250
+ });
6141
6251
  const { state_: { category_local_filter_cache: local_filter_cache_ , category_filters_open: category_filters_open_ , category_sorting_open: category_sorting_open_ , category_expanded_filters: expanded_filters_ , category_expanded_hierarchical_filters: expanded_hierarchical_filters_ , category_scroll_restoration_data: scroll_restoration_data_ } , current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , reset_history_state_: reset_history_state_ , depict_api_: depict_api_ , i18n_: i18n_ , router_: router_ , breadcrumb_signal_: breadcrumb_signal_ , quicklinks_signal_: quicklinks_signal_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ } = shared_properties;
6142
6252
  (0, $57o7A$solidjs.onCleanup)(reset_history_state_);
6143
6253
  return (0, $840d88a04b2d22a7$export$f7d2f673fc2f091d)({
@@ -6149,9 +6259,9 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e({ depict_category: depict_cat
6149
6259
  query_id_: ()=>depict_category.category_id,
6150
6260
  listing_type_: ()=>depict_category.listing_type,
6151
6261
  i18n_: i18n_,
6152
- show_quicklinks_: show_quicklinks,
6262
+ show_quicklinks_: (0, $57o7A$solidjs.createMemo)(()=>props.show_quicklinks ?? true),
6153
6263
  category_title_: category_title,
6154
- show_breadcrumbs_: show_breadcrumbs,
6264
+ show_breadcrumbs_: (0, $57o7A$solidjs.createMemo)(()=>props.show_breadcrumbs ?? true),
6155
6265
  current_sorting_: current_sorting_,
6156
6266
  router_: router_,
6157
6267
  get_breadcrumb_accessor_: (accessor)=>(0, $57o7A$solidjs.createComputed)(()=>breadcrumb_signal_[1](accessor())),
@@ -6163,10 +6273,10 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e({ depict_category: depict_cat
6163
6273
  selected_filters_: selected_filters_,
6164
6274
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
6165
6275
  scroll_restoration_data_: scroll_restoration_data_,
6166
- layout_options_: {
6167
- cols_at_size: (0, $4e04be41243c3d80$export$6daf8749b65a1b77)(cols_at_size),
6168
- ...grid_spacing_override
6169
- },
6276
+ layout_options_: (0, $57o7A$solidjs.createMemo)(()=>({
6277
+ cols_at_size: (0, $4e04be41243c3d80$export$6daf8749b65a1b77)(props.cols_at_size),
6278
+ ...grid_spacing_override()
6279
+ })),
6170
6280
  product_card_template_: product_card_template
6171
6281
  });
6172
6282
  }, "Entire CategoryPage failed");
@@ -6661,80 +6771,74 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({ search_field_value_: search
6661
6771
 
6662
6772
 
6663
6773
 
6664
- const $fb29c6201c369e39$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="cards"></div>`, 2), $fb29c6201c369e39$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="search-recs"><h3 class="search-recs-title"></h3><!#><!/><!#><!/></div>`, 8), $fb29c6201c369e39$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<button class="show-more major" type="button"></button>`, 2);
6774
+
6775
+ const $fb29c6201c369e39$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="search-recs"><h3 class="search-recs-title"></h3><!#><!/><!#><!/></div>`, 8), $fb29c6201c369e39$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<button class="show-more major" type="button"></button>`, 2);
6665
6776
  const $fb29c6201c369e39$export$1c8c715550dc689d = 2;
6666
6777
  function $fb29c6201c369e39$export$7de92c4c2205ebf3({ depict_api_: depict_api_ , i18n_: i18n_ , search_query_base_: search_query_base_ , product_card_template_: product_card_template_ , showing_recommendation_rows_: showing_recommendation_rows_ , view_more_button_: view_more_button_ = true , layout_options_: layout_options_ }) {
6667
6778
  const [get_showing_recommendation_rows] = showing_recommendation_rows_; // We reset this in after_submit in search.tsx FYI
6668
6779
  const rows_object = view_more_button_ ? $fb29c6201c369e39$var$make_state_saved_rows(showing_recommendation_rows_, i18n_) : "all";
6669
6780
  const [recommendations_resource] = (0, $57o7A$solidjs.createResource)(search_query_base_, (query)=>depict_api_.get_recommended(query).then((r)=>r.displays));
6670
6781
  const is_showing_something = (0, $57o7A$solidjs.createMemo)(()=>recommendations_resource.loading || recommendations_resource()?.length);
6671
- const num_placeholders_ = (0, $57o7A$solidjs.createMemo)(()=>(0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_.cols_at_size.map(([per_column])=>per_column)));
6672
- const cards = (()=>{
6673
- const _el$ = (0, $57o7A$solidjsweb.getNextElement)($fb29c6201c369e39$var$_tmpl$);
6674
- (0, $57o7A$solidjsweb.insert)(_el$, (0, $57o7A$solidjsweb.createComponent)((0, $57o7A$solidjs.Suspense), {
6675
- get fallback () {
6676
- return (0, $0caf87eaa19079da$export$f33414a4df0afd3f)({
6677
- num_placeholders_: num_placeholders_,
6678
- product_card_template_: product_card_template_
6679
- });
6680
- },
6681
- get children () {
6682
- return (()=>{
6683
- // IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
6684
- const displays_by_key_ = (0, $a73063cc642f3e5f$export$7f8bd308237ab5a5)((0, $57o7A$solidjs.createMemo)(()=>recommendations_resource() || []));
6685
- return (0, $a73063cc642f3e5f$export$43f0fb951fcb0c54)({
6686
- displays_by_key_: displays_by_key_,
6687
- merchant_: (0, $57o7A$solidjs.createMemo)(()=>search_query_base_().tenant),
6688
- market_: (0, $57o7A$solidjs.createMemo)(()=>search_query_base_().market),
6689
- product_card_template_: product_card_template_
6690
- });
6691
- })();
6692
- }
6693
- }));
6694
- return _el$;
6695
- })();
6696
- const search_recs_elements = (()=>{
6697
- const _el$2 = (0, $57o7A$solidjsweb.getNextElement)($fb29c6201c369e39$var$_tmpl$2), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, [_el$5, _co$] = (0, $57o7A$solidjsweb.getNextMarker)(_el$4.nextSibling), _el$6 = _el$5.nextSibling, [_el$7, _co$2] = (0, $57o7A$solidjsweb.getNextMarker)(_el$6.nextSibling);
6698
- (0, $57o7A$solidjsweb.insert)(_el$3, ()=>i18n_.search_recs_title_());
6699
- (0, $57o7A$solidjsweb.insert)(_el$2, (0, $fc23d7668ae0011d$export$a2cc176055f8f08), _el$5, _co$);
6700
- (0, $57o7A$solidjsweb.insert)(_el$2, cards, _el$7, _co$2);
6701
- return _el$2;
6702
- })();
6703
- // the cards element must have a parent for Layout to work, therefore we're inserting it into a div above
6704
- (0, $57o7A$depictaiutilishared.Layout)({
6705
- container_element: cards,
6706
- layout: "grid",
6707
- rows: rows_object,
6708
- ...layout_options_
6709
- }).catch((e)=>(0, $57o7A$depictaiutilishared.report)([
6710
- e,
6711
- "Layout failed"
6712
- ], "error"));
6782
+ const num_placeholders_ = (0, $57o7A$solidjs.createMemo)(()=>(0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(([per_column])=>per_column)));
6713
6783
  return (0, $57o7A$solidjsweb.createComponent)((0, $57o7A$solidjs.Show), {
6714
6784
  get when () {
6715
6785
  return is_showing_something();
6716
6786
  },
6717
- children: search_recs_elements
6787
+ get children () {
6788
+ const _el$ = (0, $57o7A$solidjsweb.getNextElement)($fb29c6201c369e39$var$_tmpl$), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, [_el$4, _co$] = (0, $57o7A$solidjsweb.getNextMarker)(_el$3.nextSibling), _el$5 = _el$4.nextSibling, [_el$6, _co$2] = (0, $57o7A$solidjsweb.getNextMarker)(_el$5.nextSibling);
6789
+ (0, $57o7A$solidjsweb.insert)(_el$2, ()=>i18n_.search_recs_title_());
6790
+ (0, $57o7A$solidjsweb.insert)(_el$, (0, $fc23d7668ae0011d$export$a2cc176055f8f08), _el$4, _co$);
6791
+ (0, $57o7A$solidjsweb.insert)(_el$, (0, $57o7A$solidjsweb.createComponent)((0, $f48d0fbb00835aaa$export$d21e32dfedac04be), (0, $57o7A$solidjsweb.mergeProps)({
6792
+ rows: rows_object,
6793
+ layout: "grid",
6794
+ element_attributes: {
6795
+ class: "cards"
6796
+ }
6797
+ }, layout_options_, {
6798
+ get children () {
6799
+ return (0, $57o7A$solidjsweb.createComponent)((0, $57o7A$solidjs.Suspense), {
6800
+ get fallback () {
6801
+ return (0, $0caf87eaa19079da$export$f33414a4df0afd3f)({
6802
+ num_placeholders_: num_placeholders_,
6803
+ product_card_template_: product_card_template_
6804
+ });
6805
+ },
6806
+ get children () {
6807
+ return (()=>{
6808
+ // IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
6809
+ const displays_by_key_ = (0, $a73063cc642f3e5f$export$7f8bd308237ab5a5)((0, $57o7A$solidjs.createMemo)(()=>recommendations_resource() || []));
6810
+ return (0, $a73063cc642f3e5f$export$43f0fb951fcb0c54)({
6811
+ displays_by_key_: displays_by_key_,
6812
+ merchant_: (0, $57o7A$solidjs.createMemo)(()=>search_query_base_().tenant),
6813
+ market_: (0, $57o7A$solidjs.createMemo)(()=>search_query_base_().market),
6814
+ product_card_template_: product_card_template_
6815
+ });
6816
+ })();
6817
+ }
6818
+ });
6819
+ }
6820
+ })), _el$6, _co$2);
6821
+ return _el$;
6822
+ }
6718
6823
  });
6719
6824
  }
6720
6825
  function $fb29c6201c369e39$var$make_state_saved_rows([get_showing_recommendation_rows, set_showing_recommendation_rows], i18n_) {
6721
- const ipns = (0, $57o7A$depictaiutilishared.async_iterable_ipns)();
6826
+ const currently_visible = (0, $57o7A$solidjs.createSignal)(0); // this number shouldn't matter for anything except typing
6827
+ const [get_currently_visible, set_currently_visible] = currently_visible;
6722
6828
  const rows = {
6723
- ipns: ipns,
6829
+ currently_visible: currently_visible,
6724
6830
  start_rows: (0, $57o7A$solidjs.untrack)(get_showing_recommendation_rows) ?? $fb29c6201c369e39$export$1c8c715550dc689d,
6725
6831
  rows_per_click: 3,
6726
6832
  button: (()=>{
6727
- const _el$8 = (0, $57o7A$solidjsweb.getNextElement)($fb29c6201c369e39$var$_tmpl$3);
6728
- (0, $57o7A$solidjsweb.insert)(_el$8, ()=>i18n_.view_more_());
6729
- return _el$8;
6833
+ const _el$7 = (0, $57o7A$solidjsweb.getNextElement)($fb29c6201c369e39$var$_tmpl$2);
6834
+ (0, $57o7A$solidjsweb.insert)(_el$7, ()=>i18n_.view_more_());
6835
+ return _el$7;
6730
6836
  })()
6731
6837
  };
6732
- (0, $57o7A$depictaiutilishared.catchify)(async ()=>{
6733
- for await (const number of ipns)set_showing_recommendation_rows(number);
6734
- })();
6735
- (0, $57o7A$solidjs.createComputed)((0, $57o7A$solidjs.on)(get_showing_recommendation_rows, (new_rows = $fb29c6201c369e39$export$1c8c715550dc689d)=>{
6736
- if (ipns.latest_call_value !== new_rows && ipns.state !== new_rows) ipns(new_rows);
6737
- }, {
6838
+ (0, $57o7A$solidjs.createComputed)((0, $57o7A$solidjs.on)(get_currently_visible, (new_visible)=>set_showing_recommendation_rows(new_visible), {
6839
+ defer: true
6840
+ }));
6841
+ (0, $57o7A$solidjs.createComputed)((0, $57o7A$solidjs.on)(get_showing_recommendation_rows, (new_rows = $fb29c6201c369e39$export$1c8c715550dc689d)=>set_currently_visible(new_rows), {
6738
6842
  defer: true
6739
6843
  }));
6740
6844
  return rows;
@@ -8187,7 +8291,7 @@ function $2005eec80e40088f$export$41b4894022a3580f({ style_props_: style_props_
8187
8291
 
8188
8292
 
8189
8293
  const $f1d7cb69f839a526$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="filter-results-for-one-row"><!#><!/><!#><!/></div>`, 6), $f1d7cb69f839a526$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="depict plp search"><div class="listing-page"><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/></div><!#><!/><!#><!/></div>`, 20);
8190
- function $f1d7cb69f839a526$export$a54ec244c8863715({ depict_api_: depict_api_ , search_field_value_: search_field_value_ , get_search_query_: get_search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , search_recs_view_more_: search_recs_view_more_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ = layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ , modal_body_style_ref_: modal_body_style_ref_ }) {
8294
+ function $f1d7cb69f839a526$export$a54ec244c8863715({ depict_api_: depict_api_ , search_field_value_: search_field_value_ , get_search_query_: get_search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , search_recs_view_more_: search_recs_view_more_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ , modal_body_style_ref_: modal_body_style_ref_ }) {
8191
8295
  const [get_sorting] = current_sorting_;
8192
8296
  const all_products_loaded_ = (0, $57o7A$solidjs.createSignal)(false);
8193
8297
  const [get_all_products_loaded, set_all_products_loaded] = all_products_loaded_;
@@ -8435,7 +8539,9 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({ depict_api_: depict_api_ ,
8435
8539
  depict_api_: depict_api_,
8436
8540
  i18n_: i18n_,
8437
8541
  search_query_base_: search_query_base_,
8438
- layout_options_: recommendations_layout_options_,
8542
+ get layout_options_ () {
8543
+ return (0, $57o7A$solidjs.createMemo)(()=>recommendations_layout_options_?.() ?? layout_options_());
8544
+ },
8439
8545
  showing_recommendation_rows_: showing_recommendation_rows_,
8440
8546
  view_more_button_: search_recs_view_more_,
8441
8547
  product_card_template_: product_card_template_
@@ -8725,16 +8831,19 @@ function $2c61e4cd8229c49a$var$get_shared_properties(depict_search) {
8725
8831
  return shared_properties;
8726
8832
  }
8727
8833
  function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
8728
- const { depict_search: depict_search , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , extra_depict_options: extra_depict_options } = props;
8834
+ const { depict_search: depict_search , product_card_template: product_card_template } = props;
8729
8835
  const shared_properties = $2c61e4cd8229c49a$var$get_shared_properties(depict_search);
8730
- const grid_spacing_override = typeof grid_spacing === "string" ? {
8731
- grid_spacing: grid_spacing
8732
- } : {
8733
- override_vertical_spacing: grid_spacing.vertical,
8734
- grid_spacing: grid_spacing.horizontal
8735
- };
8736
8836
  return (0, $95837413165cc2df$export$23fca46f3143581f)(()=>{
8737
8837
  const { state_: state_ } = shared_properties;
8838
+ const grid_spacing_override = (0, $57o7A$solidjs.createMemo)(()=>{
8839
+ const { grid_spacing: grid_spacing } = props; // can be reactive
8840
+ return typeof grid_spacing === "string" ? {
8841
+ grid_spacing: grid_spacing
8842
+ } : {
8843
+ override_vertical_spacing: grid_spacing.vertical,
8844
+ grid_spacing: grid_spacing.horizontal
8845
+ };
8846
+ });
8738
8847
  (0, $57o7A$solidjs.onCleanup)(shared_properties.reset_history_state_);
8739
8848
  return (0, $f1d7cb69f839a526$export$a54ec244c8863715)({
8740
8849
  input_modal_open_: ()=>!!depict_search.modal_open,
@@ -8780,19 +8889,23 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
8780
8889
  showing_recommendation_rows_: state_.search_showing_recommendation_rows,
8781
8890
  scroll_restoration_data_: state_.search_scroll_restoration_data,
8782
8891
  include_input_field_: ()=>props.include_input_field,
8783
- layout_options_: {
8784
- cols_at_size: (0, $4e04be41243c3d80$export$6daf8749b65a1b77)(cols_at_size),
8785
- ...grid_spacing_override
8786
- },
8787
- recommendations_layout_options_: extra_depict_options?.recommendations_cols_at_size ? {
8788
- cols_at_size: (0, $4e04be41243c3d80$export$6daf8749b65a1b77)(extra_depict_options.recommendations_cols_at_size),
8789
- ...grid_spacing_override
8790
- } : undefined,
8892
+ layout_options_: (0, $57o7A$solidjs.createMemo)(()=>({
8893
+ cols_at_size: (0, $4e04be41243c3d80$export$6daf8749b65a1b77)(props.cols_at_size),
8894
+ ...grid_spacing_override()
8895
+ })),
8896
+ recommendations_layout_options_: (0, $57o7A$solidjs.createMemo)(()=>{
8897
+ const { extra_depict_options: extra_depict_options } = props;
8898
+ return extra_depict_options?.recommendations_cols_at_size ? {
8899
+ cols_at_size: (0, $4e04be41243c3d80$export$6daf8749b65a1b77)(extra_depict_options.recommendations_cols_at_size),
8900
+ ...grid_spacing_override()
8901
+ } : undefined;
8902
+ }),
8791
8903
  product_card_template_: product_card_template
8792
8904
  });
8793
8905
  }, "Entire SearchPage failed");
8794
8906
  }
8795
- function $2c61e4cd8229c49a$export$316f6f283ae64765({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler , aligner_ref: aligner_ref }) {
8907
+ function $2c61e4cd8229c49a$export$316f6f283ae64765(props) {
8908
+ const { depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler } = props;
8796
8909
  const shared_properties = $2c61e4cd8229c49a$var$get_shared_properties(depict_search);
8797
8910
  return (0, $95837413165cc2df$export$23fca46f3143581f)(()=>{
8798
8911
  let input_element;
@@ -8821,7 +8934,7 @@ function $2c61e4cd8229c49a$export$316f6f283ae64765({ depict_search: depict_searc
8821
8934
  input_element.selectionStart,
8822
8935
  input_element.selectionEnd
8823
8936
  ];
8824
- const { cleanup: cleanup } = $2c61e4cd8229c49a$var$align_field_modal(style_props_, search_field, aligner_ref);
8937
+ const { cleanup: cleanup } = $2c61e4cd8229c49a$var$align_field_modal(style_props_, search_field, ()=>props.aligner_ref);
8825
8938
  const complete_modal_dispose_handler = ()=>{
8826
8939
  modal_dispose_handler?.();
8827
8940
  cleanup();
@@ -8849,23 +8962,21 @@ function $2c61e4cd8229c49a$export$316f6f283ae64765({ depict_search: depict_searc
8849
8962
  ];
8850
8963
  }, "SearchField failed");
8851
8964
  }
8852
- function $2c61e4cd8229c49a$var$align_field_modal(style_props_, input, aligner_ref) {
8965
+ function $2c61e4cd8229c49a$var$align_field_modal(style_props_, input, aligner_ref_accessor) {
8853
8966
  return (0, $57o7A$solidjs.createRoot)((dispose)=>{
8854
- if (aligner_ref) {
8967
+ (0, $57o7A$solidjs.createComputed)(()=>{
8968
+ const aligner_ref = aligner_ref_accessor?.();
8969
+ if (!aligner_ref) {
8970
+ (0, $fd463ff0edb29915$export$b3ad617e9036868)(style_props_, input);
8971
+ return;
8972
+ }
8855
8973
  const { cleanup: cleanup } = (0, $d8e94ea381ab57fa$export$828dcdd425fd3231)(aligner_ref);
8974
+ (0, $57o7A$solidjs.onCleanup)(cleanup);
8856
8975
  (0, $fd463ff0edb29915$export$b3ad617e9036868)(style_props_, aligner_ref, undefined, false, "top");
8857
- return {
8858
- cleanup: ()=>{
8859
- cleanup();
8860
- dispose();
8861
- }
8862
- };
8863
- } else {
8864
- (0, $fd463ff0edb29915$export$b3ad617e9036868)(style_props_, input);
8865
- return {
8866
- cleanup: dispose
8867
- };
8868
- }
8976
+ });
8977
+ return {
8978
+ cleanup: dispose
8979
+ };
8869
8980
  });
8870
8981
  }
8871
8982