@depict-ai/ui 1.3.1 → 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.
@@ -1,8 +1,8 @@
1
- import {add_to_version_info as $cV3wj$add_to_version_info, observer as $cV3wj$observer, catchify as $cV3wj$catchify, fetch_recs as $cV3wj$fetch_recs, snakeCasifyObject as $cV3wj$snakeCasifyObject, instant_exec_on_suspect_history_change as $cV3wj$instant_exec_on_suspect_history_change, base_url as $cV3wj$base_url, dlog as $cV3wj$dlog, get_depict_id as $cV3wj$get_depict_id, get_user_id as $cV3wj$get_user_id, get_session_id as $cV3wj$get_session_id, sort_obj as $cV3wj$sort_obj, fetch_retry as $cV3wj$fetch_retry, add_version_query_params as $cV3wj$add_version_query_params, dwarn as $cV3wj$dwarn, make_url_with_query_params as $cV3wj$make_url_with_query_params, report as $cV3wj$report, javascript_media_query as $cV3wj$javascript_media_query, standard_price_format as $cV3wj$standard_price_format, make_random_classname as $cV3wj$make_random_classname, n_col_styling_with_dist as $cV3wj$n_col_styling_with_dist, useExpandingContainer as $cV3wj$useExpandingContainer, Amazing_Slider as $cV3wj$Amazing_Slider, slider_snap_css as $cV3wj$slider_snap_css, slider_fading_factory as $cV3wj$slider_fading_factory, hsl_to_rgb as $cV3wj$hsl_to_rgb, relative_luminance_from_rgb as $cV3wj$relative_luminance_from_rgb, base64_encode_unicode as $cV3wj$base64_encode_unicode, base64_decode_unicode as $cV3wj$base64_decode_unicode, queueMacroTask as $cV3wj$queueMacroTask, Layout as $cV3wj$Layout, async_iterable_ipns as $cV3wj$async_iterable_ipns, make_asyncIterable_exiter as $cV3wj$make_asyncIterable_exiter, href_change_ipns as $cV3wj$href_change_ipns, ContainedImage as $cV3wj$ContainedImage, deparallelize_no_drop as $cV3wj$deparallelize_no_drop, insert_surfaces as $cV3wj$insert_surfaces} from "@depict-ai/utilishared";
2
- import {createRoot as $cV3wj$createRoot, createSignal as $cV3wj$createSignal, getOwner as $cV3wj$getOwner, runWithOwner as $cV3wj$runWithOwner, onCleanup as $cV3wj$onCleanup, createComputed as $cV3wj$createComputed, createRenderEffect as $cV3wj$createRenderEffect, createEffect as $cV3wj$createEffect, untrack as $cV3wj$untrack, batch as $cV3wj$batch, createResource as $cV3wj$createResource, createMemo as $cV3wj$createMemo, Show as $cV3wj$Show, createReaction as $cV3wj$createReaction, Suspense as $cV3wj$Suspense, on as $cV3wj$on, ErrorBoundary as $cV3wj$ErrorBoundary, For as $cV3wj$For, Index as $cV3wj$Index} from "solid-js";
1
+ import {add_to_version_info as $cV3wj$add_to_version_info, observer as $cV3wj$observer, catchify as $cV3wj$catchify, fetch_recs as $cV3wj$fetch_recs, snakeCasifyObject as $cV3wj$snakeCasifyObject, instant_exec_on_suspect_history_change as $cV3wj$instant_exec_on_suspect_history_change, base_url as $cV3wj$base_url, dlog as $cV3wj$dlog, get_depict_id as $cV3wj$get_depict_id, get_user_id as $cV3wj$get_user_id, get_session_id as $cV3wj$get_session_id, sort_obj as $cV3wj$sort_obj, fetch_retry as $cV3wj$fetch_retry, add_version_query_params as $cV3wj$add_version_query_params, dwarn as $cV3wj$dwarn, make_url_with_query_params as $cV3wj$make_url_with_query_params, report as $cV3wj$report, javascript_media_query as $cV3wj$javascript_media_query, standard_price_format as $cV3wj$standard_price_format, make_random_classname as $cV3wj$make_random_classname, n_col_styling_with_dist as $cV3wj$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $cV3wj$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $cV3wj$layout_get_total_rec_amount_for_row, layout_media_query_header as $cV3wj$layout_media_query_header, useExpandingContainer as $cV3wj$useExpandingContainer, Amazing_Slider as $cV3wj$Amazing_Slider, slider_snap_css as $cV3wj$slider_snap_css, slider_fading_factory as $cV3wj$slider_fading_factory, hsl_to_rgb as $cV3wj$hsl_to_rgb, relative_luminance_from_rgb as $cV3wj$relative_luminance_from_rgb, base64_encode_unicode as $cV3wj$base64_encode_unicode, base64_decode_unicode as $cV3wj$base64_decode_unicode, queueMacroTask as $cV3wj$queueMacroTask, make_asyncIterable_exiter as $cV3wj$make_asyncIterable_exiter, href_change_ipns as $cV3wj$href_change_ipns, ContainedImage as $cV3wj$ContainedImage, deparallelize_no_drop as $cV3wj$deparallelize_no_drop, insert_surfaces as $cV3wj$insert_surfaces} from "@depict-ai/utilishared";
2
+ import {createRoot as $cV3wj$createRoot, createSignal as $cV3wj$createSignal, getOwner as $cV3wj$getOwner, runWithOwner as $cV3wj$runWithOwner, createMemo as $cV3wj$createMemo, onCleanup as $cV3wj$onCleanup, createComputed as $cV3wj$createComputed, createRenderEffect as $cV3wj$createRenderEffect, createEffect as $cV3wj$createEffect, untrack as $cV3wj$untrack, batch as $cV3wj$batch, createResource as $cV3wj$createResource, Show as $cV3wj$Show, createReaction as $cV3wj$createReaction, on as $cV3wj$on, Suspense as $cV3wj$Suspense, ErrorBoundary as $cV3wj$ErrorBoundary, For as $cV3wj$For, Index as $cV3wj$Index} from "solid-js";
3
3
  import {ssrElement as $cV3wj$ssrElement, ssr as $cV3wj$ssr, ssrHydrationKey as $cV3wj$ssrHydrationKey, ssrAttribute as $cV3wj$ssrAttribute, escape as $cV3wj$escape, isServer as $cV3wj$isServer, createComponent as $cV3wj$createComponent, ssrClassList as $cV3wj$ssrClassList, insert as $cV3wj$insert, ssrStyle as $cV3wj$ssrStyle, Dynamic as $cV3wj$Dynamic, mergeProps as $cV3wj$mergeProps} from "solid-js/web";
4
4
 
5
- /*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.3.1";
5
+ /*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.3.3";
6
6
 
7
7
 
8
8
 
@@ -628,8 +628,6 @@ function $6db49ca163afa2c3$export$83fd5de5504a7a67({ formatted_number_of_results
628
628
 
629
629
 
630
630
 
631
-
632
-
633
631
  const $598245ecfe38f34b$var$_tmpl$ = [
634
632
  "<a",
635
633
  ' class="hint" href="javascript:void(0)">',
@@ -1043,21 +1041,107 @@ function $0449e7d49398c077$export$a1fd619a4743ca08({ plp_results_: plp_results_
1043
1041
  }
1044
1042
 
1045
1043
 
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+ const $c8d5ff4524619fcd$var$_tmpl$ = [
1054
+ "<div",
1055
+ ' class="',
1056
+ '">',
1057
+ "</div>"
1058
+ ], $c8d5ff4524619fcd$var$_tmpl$2 = [
1059
+ "<style",
1060
+ ' type="text/css">',
1061
+ "</style>"
1062
+ ];
1063
+ function $c8d5ff4524619fcd$export$d21e32dfedac04be(props) {
1064
+ return (0, $cV3wj$createComponent)((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
1065
+ get message_ () {
1066
+ return "Failed calculating " + props.layout + " layout";
1067
+ },
1068
+ severity_: "error",
1069
+ get children () {
1070
+ return $c8d5ff4524619fcd$var$ActualSolidLayout(props);
1071
+ }
1072
+ });
1073
+ }
1074
+ function $c8d5ff4524619fcd$var$ActualSolidLayout(props) {
1075
+ // Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
1076
+ const show_all_rows = (0, $cV3wj$createMemo)(()=>props.rows === "all");
1077
+ const rows_or_empty_object = (0, $cV3wj$createMemo)(()=>show_all_rows() ? {} : props.rows);
1078
+ const button_elements = (0, $a52235d12ccf9c88$export$2f0cbfbb4354bb52)((0, $cV3wj$createMemo)(()=>rows_or_empty_object().button));
1079
+ const have_a_button = (0, $cV3wj$createMemo)(()=>{
1080
+ const button = button_elements();
1081
+ return !(!button || Array.isArray(button) && !button.length);
1082
+ });
1083
+ const [get_styling, set_styling] = (0, $cV3wj$createSignal)();
1084
+ const container_class = (0, $cV3wj$make_random_classname)();
1085
+ const selector_beginning = `.depict .${container_class}>`; // class so ppl can have id if needed
1086
+ const container_element = (0, $cV3wj$ssrElement)("div", props.element_attributes, ()=>(0, $cV3wj$escape)(props.children), true);
1087
+ const [get_children_count, set_children_count] = (0, $cV3wj$createSignal)(0);
1088
+ const update_children_count = ()=>set_children_count(container_element.children.length);
1089
+ const col_styling = (0, $cV3wj$createMemo)(()=>(0, $cV3wj$n_col_styling_with_dist)(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
1090
+ const rows_visible_signal = (0, $cV3wj$createMemo)(()=>rows_or_empty_object().currently_visible || (0, $cV3wj$createSignal)(0));
1091
+ const get_rows_visible = (0, $cV3wj$createMemo)(()=>rows_visible_signal()[0]());
1092
+ const set_rows_visible = (0, $cV3wj$createMemo)(()=>rows_visible_signal()[1]);
1093
+ const button_class = (0, $cV3wj$make_random_classname)();
1094
+ const button_container = (0, $cV3wj$createMemo)(()=>have_a_button() && (0, $cV3wj$ssr)($c8d5ff4524619fcd$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), "load-more-container " + (0, $cV3wj$escape)(button_class, true), (0, $cV3wj$escape)(rows_or_empty_object().button)));
1095
+ container_element.classList.add(container_class);
1096
+ (0, $cV3wj$createRenderEffect)(()=>{
1097
+ // Be careful to only read show_all_rows in here (ofc doesn't apply to nested effects)
1098
+ if (show_all_rows()) {
1099
+ // no view more functionality requested
1100
+ set_styling(()=>col_styling);
1101
+ return;
1102
+ }
1103
+ (0, $cV3wj$untrack)(()=>set_rows_visible()(rows_or_empty_object().start_rows ?? 1));
1104
+ update_children_count();
1105
+ const mutation_observer = new MutationObserver((0, $cV3wj$catchify)(update_children_count));
1106
+ mutation_observer.observe(container_element, {
1107
+ childList: true
1108
+ });
1109
+ (0, $cV3wj$onCleanup)(()=>mutation_observer.disconnect());
1110
+ set_styling(// this is needed because solid will think that the memo-accessor is a setter function otherwise
1111
+ ()=>(0, $cV3wj$createMemo)(()=>{
1112
+ const { rows_per_click: rows_per_click , max_rows: max_rows = -1 } = rows_or_empty_object();
1113
+ return col_styling() + props.cols_at_size.map((options)=>{
1114
+ const [, min, max] = options;
1115
+ let should_hide_button;
1116
+ let visible_recs;
1117
+ if (props.disable_partial_rows) {
1118
+ visible_recs = (0, $cV3wj$layout_get_visible_recs_without_partial_rows)(get_rows_visible(), get_children_count(), options);
1119
+ const visible_recs_next_show_more = (0, $cV3wj$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?
1120
+ get_children_count(), options);
1121
+ should_hide_button = visible_recs === visible_recs_next_show_more;
1122
+ } else {
1123
+ visible_recs = (0, $cV3wj$layout_get_total_rec_amount_for_row)(get_rows_visible(), options);
1124
+ should_hide_button = visible_recs >= get_children_count();
1125
+ }
1126
+ const should_hide_button_final = button_class && (should_hide_button || max_rows !== -1 && get_rows_visible() >= max_rows);
1127
+ return `${(0, $cV3wj$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}` : ``}}`;
1128
+ }).join("");
1129
+ }));
1130
+ });
1131
+ return [
1132
+ container_element,
1133
+ button_container(),
1134
+ (0, $cV3wj$ssr)($c8d5ff4524619fcd$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), get_styling)
1135
+ ];
1136
+ }
1137
+
1138
+
1046
1139
  const $2d25e42846eac370$var$_tmpl$ = [
1047
1140
  "<div",
1048
1141
  ' class="',
1049
1142
  '"><!--#-->',
1050
1143
  "<!--/--><!--#-->",
1051
1144
  "<!--/--></div>"
1052
- ], $2d25e42846eac370$var$_tmpl$2 = [
1053
- "<div",
1054
- ' class="cards"',
1055
- ">",
1056
- "</div>"
1057
- ], $2d25e42846eac370$var$_tmpl$3 = [
1058
- "<style",
1059
- ">",
1060
- "</style>"
1061
1145
  ];
1062
1146
  function $2d25e42846eac370$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_ }) {
1063
1147
  // 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
@@ -1099,9 +1183,6 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({ plp_results_: plp_results_
1099
1183
  let suspense_contents;
1100
1184
  let is_just_after_plp_results_update = false;
1101
1185
  let fallback_is_alive = false;
1102
- const random_id = (0, $cV3wj$make_random_classname)();
1103
- const selector_beginning_ = `.depict.plp #${random_id}>`;
1104
- const [get_styling, set_styling_] = (0, $cV3wj$createSignal)("");
1105
1186
  const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $cV3wj$createSignal)(true);
1106
1187
  const rendered_placeholders = (0, $cV3wj$createMemo)(()=>get_should_have_placeholders_rendered() ? (0, $6e41f1fde994db72$export$f33414a4df0afd3f)({
1107
1188
  product_card_template_: product_card_template_,
@@ -1111,64 +1192,22 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({ plp_results_: plp_results_
1111
1192
  })
1112
1193
  }) : undefined);
1113
1194
  const [get_suspense_is_blocked, set_suspense_is_blocked] = (0, $cV3wj$createSignal)(false);
1195
+ const modified_cols_at_size = $2d25e42846eac370$var$make_modified_cols_at_size({
1196
+ layout_options_: layout_options_,
1197
+ sort_or_filter_open_: sort_or_filter_open_
1198
+ });
1114
1199
  (0, $cV3wj$createComputed)(()=>{
1115
1200
  if (!is_loading_()) return;
1116
1201
  set_should_have_placeholders_rendered(true);
1117
1202
  set_suspense_is_blocked(false);
1118
1203
  is_just_after_plp_results_update = true;
1119
1204
  });
1120
- $2d25e42846eac370$var$results_grid_styling_generator({
1121
- layout_options_: layout_options_,
1122
- set_styling_: set_styling_,
1123
- sort_or_filter_open_: sort_or_filter_open_,
1124
- selector_beginning_: selector_beginning_
1125
- });
1126
- const has_at_least_one_display = (0, $cV3wj$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
1127
1205
  const block_suspense_if_needed = ()=>{
1128
1206
  if (!is_just_after_plp_results_update) return;
1129
1207
  is_just_after_plp_results_update = false;
1130
1208
  fallback_is_alive = false;
1131
1209
  set_suspense_is_blocked(true);
1132
1210
  };
1133
- const non_placeholder_product_cards = (0, $cV3wj$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)
1134
- // We're creating it outside the <Show> so that we can benefit from <For>'s optimisation between changing results
1135
- // (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
1136
- // We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
1137
- (0, $cV3wj$createComponent)((0, $cV3wj$Suspense), {
1138
- get fallback () {
1139
- return (()=>{
1140
- fallback_is_alive = true;
1141
- (0, $cV3wj$onCleanup)(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
1142
- return (0, $cV3wj$createMemo)(()=>{
1143
- // 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
1144
- // In future we could have individual suspense's for each product card, but that's too much for now
1145
- if (get_suspense_is_blocked()) return suspense_contents;
1146
- set_should_have_placeholders_rendered(true); // just in case
1147
- (0, $cV3wj$onCleanup)(()=>set_should_have_placeholders_rendered(false));
1148
- 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>
1149
- });
1150
- })();
1151
- },
1152
- get children () {
1153
- return (()=>{
1154
- suspense_contents = (0, $0449e7d49398c077$export$a1fd619a4743ca08)({
1155
- product_card_template_: product_card_template_,
1156
- plp_results_: plp_results_,
1157
- last_result_in_viewport_: last_result_in_viewport_,
1158
- first_result_in_viewport_: first_result_in_viewport_,
1159
- market_: market_,
1160
- merchant_: merchant_,
1161
- all_products_loaded_: all_products_loaded_,
1162
- min_products_to_fetch_: min_products_to_fetch_,
1163
- query_base_: query_base_,
1164
- depict_api_: depict_api_,
1165
- is_loading_: is_loading_
1166
- });
1167
- (0, $cV3wj$onCleanup)(()=>suspense_contents = undefined);
1168
- return suspense_contents;
1169
- })();
1170
- }
1171
- }));
1172
1211
  (0, $cV3wj$createEffect)((0, $cV3wj$on)(plp_results_, ()=>{
1173
1212
  if (!fallback_is_alive) {
1174
1213
  // 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
@@ -1180,18 +1219,69 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({ plp_results_: plp_results_
1180
1219
  }));
1181
1220
  return [
1182
1221
  (0, $a458486f22b22f63$export$a2cc176055f8f08)(),
1183
- (0, $cV3wj$ssr)($2d25e42846eac370$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("id", (0, $cV3wj$escape)(random_id, true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
1184
- get when () {
1185
- return !is_loading_();
1222
+ (0, $cV3wj$createComponent)((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), {
1223
+ get cols_at_size () {
1224
+ return modified_cols_at_size();
1186
1225
  },
1187
- get fallback () {
1188
- return rendered_placeholders();
1226
+ get override_vertical_spacing () {
1227
+ return layout_options_().override_vertical_spacing;
1228
+ },
1229
+ get grid_spacing () {
1230
+ return layout_options_().grid_spacing;
1231
+ },
1232
+ rows: "all",
1233
+ layout: "grid",
1234
+ element_attributes: {
1235
+ class: "cards"
1189
1236
  },
1190
1237
  get children () {
1191
- return non_placeholder_product_cards();
1238
+ return (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
1239
+ get when () {
1240
+ return !is_loading_();
1241
+ },
1242
+ get fallback () {
1243
+ return rendered_placeholders();
1244
+ },
1245
+ get children () {
1246
+ return (0, $cV3wj$createComponent)((0, $cV3wj$Suspense), {
1247
+ get fallback () {
1248
+ return (()=>{
1249
+ fallback_is_alive = true;
1250
+ (0, $cV3wj$onCleanup)(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
1251
+ return (0, $cV3wj$createMemo)(()=>{
1252
+ // 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
1253
+ // In future we could have individual suspense's for each product card, but that's too much for now
1254
+ if (get_suspense_is_blocked()) return suspense_contents;
1255
+ set_should_have_placeholders_rendered(true); // just in case
1256
+ (0, $cV3wj$onCleanup)(()=>set_should_have_placeholders_rendered(false));
1257
+ 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>
1258
+ });
1259
+ })();
1260
+ },
1261
+ get children () {
1262
+ return (()=>{
1263
+ suspense_contents = (0, $0449e7d49398c077$export$a1fd619a4743ca08)({
1264
+ product_card_template_: product_card_template_,
1265
+ plp_results_: plp_results_,
1266
+ last_result_in_viewport_: last_result_in_viewport_,
1267
+ first_result_in_viewport_: first_result_in_viewport_,
1268
+ market_: market_,
1269
+ merchant_: merchant_,
1270
+ all_products_loaded_: all_products_loaded_,
1271
+ min_products_to_fetch_: min_products_to_fetch_,
1272
+ query_base_: query_base_,
1273
+ depict_api_: depict_api_,
1274
+ is_loading_: is_loading_
1275
+ });
1276
+ (0, $cV3wj$onCleanup)(()=>suspense_contents = undefined);
1277
+ return suspense_contents;
1278
+ })();
1279
+ }
1280
+ });
1281
+ }
1282
+ });
1192
1283
  }
1193
- }))),
1194
- (0, $cV3wj$ssr)($2d25e42846eac370$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), get_styling())
1284
+ })
1195
1285
  ];
1196
1286
  }
1197
1287
  });
@@ -1199,13 +1289,14 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({ plp_results_: plp_results_
1199
1289
  })), (0, $cV3wj$escape)(desktop_filter_elements_()));
1200
1290
  }
1201
1291
  /**
1202
- * Sets styling to styling generated by "Layout" (n_col_styling_with_dist) depending on if filters are open or not
1292
+ * Changes cols_at_size depending on if filters are open or not so one card less is shown when the filters are open
1203
1293
  * This function is special to the actual PLPResults.
1204
- */ function $2d25e42846eac370$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_ }) {
1205
- (0, $cV3wj$createRenderEffect)(()=>{
1294
+ */ function $2d25e42846eac370$var$make_modified_cols_at_size({ layout_options_: layout_options_ , sort_or_filter_open_: sort_or_filter_open_ }) {
1295
+ return (0, $cV3wj$createMemo)(()=>{
1296
+ const layout_options = layout_options_();
1206
1297
  // Add grid styling that changes when filters get opened/closed
1207
- const when_filters_closed_cols = layout_options_.cols_at_size;
1208
- const cols_at_size = sort_or_filter_open_() ? when_filters_closed_cols.map((row)=>{
1298
+ const when_filters_closed_cols = layout_options.cols_at_size;
1299
+ return sort_or_filter_open_() ? when_filters_closed_cols.map((row)=>{
1209
1300
  const [num_cols_default, , , , override_cols] = row;
1210
1301
  const cloned_row = [
1211
1302
  ...row
@@ -1221,8 +1312,6 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({ plp_results_: plp_results_
1221
1312
  };
1222
1313
  return cloned_row;
1223
1314
  }) : when_filters_closed_cols;
1224
- const css = (0, $cV3wj$n_col_styling_with_dist)(selector_beginning_, layout_options_.grid_spacing, cols_at_size, "grid", layout_options_.override_vertical_spacing);
1225
- set_styling_(css);
1226
1315
  });
1227
1316
  }
1228
1317
 
@@ -5351,15 +5440,19 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
5351
5440
  });
5352
5441
  }
5353
5442
  }
5354
- function $961b5c64bef4662f$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 }) {
5443
+ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
5444
+ const { depict_category: depict_category , product_card_template: product_card_template , category_title: category_title } = props;
5355
5445
  const shared_properties = $961b5c64bef4662f$var$get_shared_properties(depict_category);
5356
- const grid_spacing_override = typeof grid_spacing === "string" ? {
5357
- grid_spacing: grid_spacing
5358
- } : {
5359
- override_vertical_spacing: grid_spacing.vertical,
5360
- grid_spacing: grid_spacing.horizontal
5361
- };
5362
5446
  return (0, $16b52438165aafe2$export$23fca46f3143581f)(()=>{
5447
+ const grid_spacing_override = (0, $cV3wj$createMemo)(()=>{
5448
+ const { grid_spacing: grid_spacing } = props; // can be reactive
5449
+ return typeof grid_spacing === "string" ? {
5450
+ grid_spacing: grid_spacing
5451
+ } : {
5452
+ override_vertical_spacing: grid_spacing.vertical,
5453
+ grid_spacing: grid_spacing.horizontal
5454
+ };
5455
+ });
5363
5456
  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;
5364
5457
  (0, $cV3wj$onCleanup)(reset_history_state_);
5365
5458
  return (0, $df5d81d0fe61ff21$export$f7d2f673fc2f091d)({
@@ -5371,9 +5464,9 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e({ depict_category: depict_cat
5371
5464
  query_id_: ()=>depict_category.category_id,
5372
5465
  listing_type_: ()=>depict_category.listing_type,
5373
5466
  i18n_: i18n_,
5374
- show_quicklinks_: show_quicklinks,
5467
+ show_quicklinks_: (0, $cV3wj$createMemo)(()=>props.show_quicklinks ?? true),
5375
5468
  category_title_: category_title,
5376
- show_breadcrumbs_: show_breadcrumbs,
5469
+ show_breadcrumbs_: (0, $cV3wj$createMemo)(()=>props.show_breadcrumbs ?? true),
5377
5470
  current_sorting_: current_sorting_,
5378
5471
  router_: router_,
5379
5472
  get_breadcrumb_accessor_: (accessor)=>(0, $cV3wj$createComputed)(()=>breadcrumb_signal_[1](accessor())),
@@ -5385,10 +5478,10 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e({ depict_category: depict_cat
5385
5478
  selected_filters_: selected_filters_,
5386
5479
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
5387
5480
  scroll_restoration_data_: scroll_restoration_data_,
5388
- layout_options_: {
5389
- cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(cols_at_size),
5390
- ...grid_spacing_override
5391
- },
5481
+ layout_options_: (0, $cV3wj$createMemo)(()=>({
5482
+ cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(props.cols_at_size),
5483
+ ...grid_spacing_override()
5484
+ })),
5392
5485
  product_card_template_: product_card_template
5393
5486
  });
5394
5487
  }, "Entire CategoryPage failed");
@@ -5785,17 +5878,14 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({ search_field_value_: search
5785
5878
 
5786
5879
 
5787
5880
 
5881
+
5788
5882
  const $172e1b898d457050$var$_tmpl$ = [
5789
- "<div",
5790
- ' class="cards">',
5791
- "</div>"
5792
- ], $172e1b898d457050$var$_tmpl$2 = [
5793
5883
  "<div",
5794
5884
  ' class="search-recs"><h3 class="search-recs-title">',
5795
5885
  "</h3><!--#-->",
5796
5886
  "<!--/--><!--#-->",
5797
5887
  "<!--/--></div>"
5798
- ], $172e1b898d457050$var$_tmpl$3 = [
5888
+ ], $172e1b898d457050$var$_tmpl$2 = [
5799
5889
  "<button",
5800
5890
  ' class="show-more major" type="button">',
5801
5891
  "</button>"
@@ -5806,59 +5896,58 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({ depict_api_: depict_api_ ,
5806
5896
  const rows_object = view_more_button_ ? $172e1b898d457050$var$make_state_saved_rows(showing_recommendation_rows_, i18n_) : "all";
5807
5897
  const [recommendations_resource] = (0, $cV3wj$createResource)(search_query_base_, (query)=>depict_api_.get_recommended(query).then((r)=>r.displays));
5808
5898
  const is_showing_something = (0, $cV3wj$createMemo)(()=>recommendations_resource.loading || recommendations_resource()?.length);
5809
- const num_placeholders_ = (0, $cV3wj$createMemo)(()=>(0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_.cols_at_size.map(([per_column])=>per_column)));
5810
- const cards = (0, $cV3wj$ssr)($172e1b898d457050$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Suspense), {
5811
- get fallback () {
5812
- return (0, $6e41f1fde994db72$export$f33414a4df0afd3f)({
5813
- num_placeholders_: num_placeholders_,
5814
- product_card_template_: product_card_template_
5815
- });
5816
- },
5817
- get children () {
5818
- return (()=>{
5819
- // IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
5820
- const displays_by_key_ = (0, $29ec7cddbe1d3484$export$7f8bd308237ab5a5)((0, $cV3wj$createMemo)(()=>recommendations_resource() || []));
5821
- return (0, $29ec7cddbe1d3484$export$43f0fb951fcb0c54)({
5822
- displays_by_key_: displays_by_key_,
5823
- merchant_: (0, $cV3wj$createMemo)(()=>search_query_base_().tenant),
5824
- market_: (0, $cV3wj$createMemo)(()=>search_query_base_().market),
5825
- product_card_template_: product_card_template_
5826
- });
5827
- })();
5828
- }
5829
- })));
5830
- const search_recs_elements = (0, $cV3wj$ssr)($172e1b898d457050$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(i18n_.search_recs_title_()), (0, $cV3wj$escape)((0, $a458486f22b22f63$export$a2cc176055f8f08)()), (0, $cV3wj$escape)(cards));
5831
- // the cards element must have a parent for Layout to work, therefore we're inserting it into a div above
5832
- (0, $cV3wj$Layout)({
5833
- container_element: cards,
5834
- layout: "grid",
5835
- rows: rows_object,
5836
- ...layout_options_
5837
- }).catch((e)=>(0, $cV3wj$report)([
5838
- e,
5839
- "Layout failed"
5840
- ], "error"));
5899
+ const num_placeholders_ = (0, $cV3wj$createMemo)(()=>(0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(([per_column])=>per_column)));
5841
5900
  return (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
5842
5901
  get when () {
5843
5902
  return is_showing_something();
5844
5903
  },
5845
- children: search_recs_elements
5904
+ get children () {
5905
+ return (0, $cV3wj$ssr)($172e1b898d457050$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(i18n_.search_recs_title_()), (0, $cV3wj$escape)((0, $a458486f22b22f63$export$a2cc176055f8f08)()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), (0, $cV3wj$mergeProps)({
5906
+ rows: rows_object,
5907
+ layout: "grid",
5908
+ element_attributes: {
5909
+ class: "cards"
5910
+ }
5911
+ }, layout_options_, {
5912
+ get children () {
5913
+ return (0, $cV3wj$createComponent)((0, $cV3wj$Suspense), {
5914
+ get fallback () {
5915
+ return (0, $6e41f1fde994db72$export$f33414a4df0afd3f)({
5916
+ num_placeholders_: num_placeholders_,
5917
+ product_card_template_: product_card_template_
5918
+ });
5919
+ },
5920
+ get children () {
5921
+ return (()=>{
5922
+ // IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
5923
+ const displays_by_key_ = (0, $29ec7cddbe1d3484$export$7f8bd308237ab5a5)((0, $cV3wj$createMemo)(()=>recommendations_resource() || []));
5924
+ return (0, $29ec7cddbe1d3484$export$43f0fb951fcb0c54)({
5925
+ displays_by_key_: displays_by_key_,
5926
+ merchant_: (0, $cV3wj$createMemo)(()=>search_query_base_().tenant),
5927
+ market_: (0, $cV3wj$createMemo)(()=>search_query_base_().market),
5928
+ product_card_template_: product_card_template_
5929
+ });
5930
+ })();
5931
+ }
5932
+ });
5933
+ }
5934
+ }))));
5935
+ }
5846
5936
  });
5847
5937
  }
5848
5938
  function $172e1b898d457050$var$make_state_saved_rows([get_showing_recommendation_rows, set_showing_recommendation_rows], i18n_) {
5849
- const ipns = (0, $cV3wj$async_iterable_ipns)();
5939
+ const currently_visible = (0, $cV3wj$createSignal)(0); // this number shouldn't matter for anything except typing
5940
+ const [get_currently_visible, set_currently_visible] = currently_visible;
5850
5941
  const rows = {
5851
- ipns: ipns,
5942
+ currently_visible: currently_visible,
5852
5943
  start_rows: (0, $cV3wj$untrack)(get_showing_recommendation_rows) ?? $172e1b898d457050$export$1c8c715550dc689d,
5853
5944
  rows_per_click: 3,
5854
- button: (0, $cV3wj$ssr)($172e1b898d457050$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(i18n_.view_more_()))
5945
+ button: (0, $cV3wj$ssr)($172e1b898d457050$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(i18n_.view_more_()))
5855
5946
  };
5856
- (0, $cV3wj$catchify)(async ()=>{
5857
- for await (const number of ipns)set_showing_recommendation_rows(number);
5858
- })();
5859
- (0, $cV3wj$createComputed)((0, $cV3wj$on)(get_showing_recommendation_rows, (new_rows = $172e1b898d457050$export$1c8c715550dc689d)=>{
5860
- if (ipns.latest_call_value !== new_rows && ipns.state !== new_rows) ipns(new_rows);
5861
- }, {
5947
+ (0, $cV3wj$createComputed)((0, $cV3wj$on)(get_currently_visible, (new_visible)=>set_showing_recommendation_rows(new_visible), {
5948
+ defer: true
5949
+ }));
5950
+ (0, $cV3wj$createComputed)((0, $cV3wj$on)(get_showing_recommendation_rows, (new_rows = $172e1b898d457050$export$1c8c715550dc689d)=>set_currently_visible(new_rows), {
5862
5951
  defer: true
5863
5952
  }));
5864
5953
  return rows;
@@ -7158,7 +7247,7 @@ const $7097477c78a89208$var$_tmpl$ = [
7158
7247
  "<!--/--><!--#-->",
7159
7248
  "<!--/--></div>"
7160
7249
  ];
7161
- function $7097477c78a89208$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_ }) {
7250
+ function $7097477c78a89208$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_ }) {
7162
7251
  const [get_sorting] = current_sorting_;
7163
7252
  const all_products_loaded_ = (0, $cV3wj$createSignal)(false);
7164
7253
  const [get_all_products_loaded, set_all_products_loaded] = all_products_loaded_;
@@ -7394,7 +7483,9 @@ function $7097477c78a89208$export$a54ec244c8863715({ depict_api_: depict_api_ ,
7394
7483
  depict_api_: depict_api_,
7395
7484
  i18n_: i18n_,
7396
7485
  search_query_base_: search_query_base_,
7397
- layout_options_: recommendations_layout_options_,
7486
+ get layout_options_ () {
7487
+ return (0, $cV3wj$createMemo)(()=>recommendations_layout_options_?.() ?? layout_options_());
7488
+ },
7398
7489
  showing_recommendation_rows_: showing_recommendation_rows_,
7399
7490
  view_more_button_: search_recs_view_more_,
7400
7491
  product_card_template_: product_card_template_
@@ -7683,16 +7774,19 @@ function $806c97b931758897$var$get_shared_properties(depict_search) {
7683
7774
  return shared_properties;
7684
7775
  }
7685
7776
  function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
7686
- 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;
7777
+ const { depict_search: depict_search , product_card_template: product_card_template } = props;
7687
7778
  const shared_properties = $806c97b931758897$var$get_shared_properties(depict_search);
7688
- const grid_spacing_override = typeof grid_spacing === "string" ? {
7689
- grid_spacing: grid_spacing
7690
- } : {
7691
- override_vertical_spacing: grid_spacing.vertical,
7692
- grid_spacing: grid_spacing.horizontal
7693
- };
7694
7779
  return (0, $16b52438165aafe2$export$23fca46f3143581f)(()=>{
7695
7780
  const { state_: state_ } = shared_properties;
7781
+ const grid_spacing_override = (0, $cV3wj$createMemo)(()=>{
7782
+ const { grid_spacing: grid_spacing } = props; // can be reactive
7783
+ return typeof grid_spacing === "string" ? {
7784
+ grid_spacing: grid_spacing
7785
+ } : {
7786
+ override_vertical_spacing: grid_spacing.vertical,
7787
+ grid_spacing: grid_spacing.horizontal
7788
+ };
7789
+ });
7696
7790
  (0, $cV3wj$onCleanup)(shared_properties.reset_history_state_);
7697
7791
  return (0, $7097477c78a89208$export$a54ec244c8863715)({
7698
7792
  input_modal_open_: ()=>!!depict_search.modal_open,
@@ -7738,19 +7832,23 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
7738
7832
  showing_recommendation_rows_: state_.search_showing_recommendation_rows,
7739
7833
  scroll_restoration_data_: state_.search_scroll_restoration_data,
7740
7834
  include_input_field_: ()=>props.include_input_field,
7741
- layout_options_: {
7742
- cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(cols_at_size),
7743
- ...grid_spacing_override
7744
- },
7745
- recommendations_layout_options_: extra_depict_options?.recommendations_cols_at_size ? {
7746
- cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(extra_depict_options.recommendations_cols_at_size),
7747
- ...grid_spacing_override
7748
- } : undefined,
7835
+ layout_options_: (0, $cV3wj$createMemo)(()=>({
7836
+ cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(props.cols_at_size),
7837
+ ...grid_spacing_override()
7838
+ })),
7839
+ recommendations_layout_options_: (0, $cV3wj$createMemo)(()=>{
7840
+ const { extra_depict_options: extra_depict_options } = props;
7841
+ return extra_depict_options?.recommendations_cols_at_size ? {
7842
+ cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(extra_depict_options.recommendations_cols_at_size),
7843
+ ...grid_spacing_override()
7844
+ } : undefined;
7845
+ }),
7749
7846
  product_card_template_: product_card_template
7750
7847
  });
7751
7848
  }, "Entire SearchPage failed");
7752
7849
  }
7753
- function $806c97b931758897$export$316f6f283ae64765({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler , aligner_ref: aligner_ref }) {
7850
+ function $806c97b931758897$export$316f6f283ae64765(props) {
7851
+ const { depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler } = props;
7754
7852
  const shared_properties = $806c97b931758897$var$get_shared_properties(depict_search);
7755
7853
  return (0, $16b52438165aafe2$export$23fca46f3143581f)(()=>{
7756
7854
  let input_element;
@@ -7779,7 +7877,7 @@ function $806c97b931758897$export$316f6f283ae64765({ depict_search: depict_searc
7779
7877
  input_element.selectionStart,
7780
7878
  input_element.selectionEnd
7781
7879
  ];
7782
- const { cleanup: cleanup } = $806c97b931758897$var$align_field_modal(style_props_, search_field, aligner_ref);
7880
+ const { cleanup: cleanup } = $806c97b931758897$var$align_field_modal(style_props_, search_field, ()=>props.aligner_ref);
7783
7881
  const complete_modal_dispose_handler = ()=>{
7784
7882
  modal_dispose_handler?.();
7785
7883
  cleanup();
@@ -7803,23 +7901,21 @@ function $806c97b931758897$export$316f6f283ae64765({ depict_search: depict_searc
7803
7901
  ];
7804
7902
  }, "SearchField failed");
7805
7903
  }
7806
- function $806c97b931758897$var$align_field_modal(style_props_, input, aligner_ref) {
7904
+ function $806c97b931758897$var$align_field_modal(style_props_, input, aligner_ref_accessor) {
7807
7905
  return (0, $cV3wj$createRoot)((dispose)=>{
7808
- if (aligner_ref) {
7906
+ (0, $cV3wj$createComputed)(()=>{
7907
+ const aligner_ref = aligner_ref_accessor?.();
7908
+ if (!aligner_ref) {
7909
+ (0, $b6d5529b253681aa$export$b3ad617e9036868)(style_props_, input);
7910
+ return;
7911
+ }
7809
7912
  const { cleanup: cleanup } = (0, $4ca91518c9a35379$export$828dcdd425fd3231)(aligner_ref);
7913
+ (0, $cV3wj$onCleanup)(cleanup);
7810
7914
  (0, $b6d5529b253681aa$export$b3ad617e9036868)(style_props_, aligner_ref, undefined, false, "top");
7811
- return {
7812
- cleanup: ()=>{
7813
- cleanup();
7814
- dispose();
7815
- }
7816
- };
7817
- } else {
7818
- (0, $b6d5529b253681aa$export$b3ad617e9036868)(style_props_, input);
7819
- return {
7820
- cleanup: dispose
7821
- };
7822
- }
7915
+ });
7916
+ return {
7917
+ cleanup: dispose
7918
+ };
7823
7919
  });
7824
7920
  }
7825
7921