@depict-ai/ui 2.0.1 → 2.0.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,6 +1,6 @@
1
1
  var $3hooq$depictaiutilishared = require("@depict-ai/utilishared/ES10");
2
- var $3hooq$solidjsweb = require("solid-js/web");
3
2
  var $3hooq$solidjs = require("solid-js");
3
+ var $3hooq$solidjsweb = require("solid-js/web");
4
4
  var $3hooq$babelruntimehelpersclassPrivateFieldSet = require("@babel/runtime/helpers/classPrivateFieldSet");
5
5
  var $3hooq$babelruntimehelpersclassPrivateFieldGet = require("@babel/runtime/helpers/classPrivateFieldGet");
6
6
  var $3hooq$babelruntimehelpersdefineProperty = require("@babel/runtime/helpers/defineProperty");
@@ -16,6 +16,7 @@ function $parcel$export(e, n, v, s) {
16
16
  function $parcel$interopDefault(a) {
17
17
  return a && a.__esModule ? a.default : a;
18
18
  }
19
+ $parcel$export(module.exports, "make_accurate_size_accessor", () => $13671aa5e984acd9$export$9f191182275e9ef);
19
20
  $parcel$export(module.exports, "RecommendationSlider", () => $2badc30d7c6610e1$export$9574e176201e5e8d);
20
21
  $parcel$export(module.exports, "RecommendationGrid", () => $41227f10ad680afd$export$9756467d34d91cdb);
21
22
  $parcel$export(module.exports, "ShopifyResponsiveImg", () => $858fdcf73148519f$export$6e5611bc7e57e477);
@@ -66,7 +67,23 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
66
67
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
67
68
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
68
69
  /*! Depict.ai search and product listing SDK */
69
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.1";
70
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.3";
71
+
72
+ /** @jsxImportSource solid-js */
73
+
74
+ function $13671aa5e984acd9$export$9f191182275e9ef(what_to_watch) {
75
+ const [size, setSize] = $3hooq$solidjs.createSignal();
76
+ const resizeObserver = new ResizeObserver($3hooq$depictaiutilishared.catchify(records => {
77
+ for (let j = 0; j < records.length; j++) {
78
+ var _records$j$borderBoxS, _records$j$borderBoxS2, _records$j$borderBoxS3;
79
+ const width = (_records$j$borderBoxS = (_records$j$borderBoxS2 = records[j].borderBoxSize) === null || _records$j$borderBoxS2 === void 0 ? void 0 : (_records$j$borderBoxS3 = _records$j$borderBoxS2[0]) === null || _records$j$borderBoxS3 === void 0 ? void 0 : _records$j$borderBoxS3.inlineSize) !== null && _records$j$borderBoxS !== void 0 ? _records$j$borderBoxS : what_to_watch.getBoundingClientRect().width;
80
+ setSize(width);
81
+ }
82
+ }));
83
+ resizeObserver.observe(what_to_watch);
84
+ $3hooq$solidjs.onCleanup(() => resizeObserver.disconnect());
85
+ return size;
86
+ }
70
87
  const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
71
88
  const cols_at_size = [];
72
89
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1128,9 +1145,9 @@ function $c5842bdb10e57229$export$fecbb157621501bd(_ref) {
1128
1145
  }));
1129
1146
  return outmost_element;
1130
1147
  }
1131
- const $6b92e147c6e24046$var$_tmpl$ = ["<span", ' class="count">', "</span>"],
1132
- $6b92e147c6e24046$var$_tmpl$2 = ["<label", ' class="', '"', '><div class="left"><input type="checkbox"', "", "", '><span class="custom-indicator"></span><span class="text line-clamp">', "</span></div><!--#-->", "<!--/--></label>"];
1133
- const $6b92e147c6e24046$export$48513f6b9f8ce62d = props => {
1148
+ const $902a0ca2b52f3898$var$_tmpl$ = ["<span", ' class="count">', "</span>"],
1149
+ $902a0ca2b52f3898$var$_tmpl$2 = ["<label", ' class="', '"', '><div class="left"><input type="checkbox"', "", "", '><span class="custom-indicator"></span><span class="text line-clamp">', "</span></div><!--#-->", "<!--/--></label>"];
1150
+ const $902a0ca2b52f3898$export$48513f6b9f8ce62d = props => {
1134
1151
  // 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
1135
1152
  const count = $3hooq$solidjs.createMemo(() => props.count_);
1136
1153
  const label = $3hooq$solidjs.createMemo(() => props.label_);
@@ -1138,12 +1155,12 @@ const $6b92e147c6e24046$export$48513f6b9f8ce62d = props => {
1138
1155
  const value = $3hooq$solidjs.createMemo(() => props.value_);
1139
1156
  const is_count_zero = $3hooq$solidjs.createMemo(() => props.is_count_zero_ || count() === 0);
1140
1157
  const id = $3hooq$depictaiutilishared.make_random_classname();
1141
- return (/* We can't use actual margin because ExpandingContainer gets messed up */$3hooq$solidjsweb.ssr($6b92e147c6e24046$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "input-row ".concat(is_count_zero() ? "count-0" : ""), $3hooq$solidjsweb.ssrAttribute("for", $3hooq$solidjsweb.escape(id, true), false), $3hooq$solidjsweb.ssrAttribute("name", $3hooq$solidjsweb.escape(value(), true), false) + $3hooq$solidjsweb.ssrAttribute("id", $3hooq$solidjsweb.escape(id, true), false), $3hooq$solidjsweb.ssrAttribute("checked", checked(), true), $3hooq$solidjsweb.ssrAttribute("disabled", !checked() && is_count_zero(), true), $3hooq$solidjsweb.escape(label()) || $3hooq$solidjsweb.escape(value()), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1158
+ return (/* We can't use actual margin because ExpandingContainer gets messed up */$3hooq$solidjsweb.ssr($902a0ca2b52f3898$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "input-row ".concat(is_count_zero() ? "count-0" : ""), $3hooq$solidjsweb.ssrAttribute("for", $3hooq$solidjsweb.escape(id, true), false), $3hooq$solidjsweb.ssrAttribute("name", $3hooq$solidjsweb.escape(value(), true), false) + $3hooq$solidjsweb.ssrAttribute("id", $3hooq$solidjsweb.escape(id, true), false), $3hooq$solidjsweb.ssrAttribute("checked", checked(), true), $3hooq$solidjsweb.ssrAttribute("disabled", !checked() && is_count_zero(), true), $3hooq$solidjsweb.escape(label()) || $3hooq$solidjsweb.escape(value()), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1142
1159
  get when() {
1143
1160
  return count() != undefined;
1144
1161
  },
1145
1162
  get children() {
1146
- return $3hooq$solidjsweb.ssr($6b92e147c6e24046$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(count()));
1163
+ return $3hooq$solidjsweb.ssr($902a0ca2b52f3898$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(count()));
1147
1164
  }
1148
1165
  })))
1149
1166
  );
@@ -1202,7 +1219,7 @@ function $9b54b9c5381716eb$export$dd948f91abc3a1c4(_ref) {
1202
1219
  });
1203
1220
  const render_checkbox = checkbox => {
1204
1221
  // Checkbox always calls the getters in props, so we don't wrap these values into memos
1205
- return $3hooq$solidjsweb.createComponent((0, $6b92e147c6e24046$export$48513f6b9f8ce62d), {
1222
+ return $3hooq$solidjsweb.createComponent((0, $902a0ca2b52f3898$export$48513f6b9f8ce62d), {
1206
1223
  get value_() {
1207
1224
  return checkbox().value_;
1208
1225
  },
@@ -1710,7 +1727,7 @@ function $9c1d49181fb3002a$var$render_stuff(data, existing_filter, i18n_) {
1710
1727
  var _value;
1711
1728
  return !!Object.keys(((_value = value()) === null || _value === void 0 ? void 0 : _value.children_) || {}).length;
1712
1729
  });
1713
- return $3hooq$solidjsweb.ssr($9c1d49181fb3002a$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "checkbox-details ".concat(has_expandable() ? "expandable" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $6b92e147c6e24046$export$48513f6b9f8ce62d), {
1730
+ return $3hooq$solidjsweb.ssr($9c1d49181fb3002a$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "checkbox-details ".concat(has_expandable() ? "expandable" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $902a0ca2b52f3898$export$48513f6b9f8ce62d), {
1714
1731
  get value_() {
1715
1732
  var _value2;
1716
1733
  return JSON.stringify((_value2 = value()) === null || _value2 === void 0 ? void 0 : _value2.value_);
@@ -1981,9 +1998,10 @@ function $9c1d49181fb3002a$var$expand_until_choice(data_structure) {
1981
1998
  }
1982
1999
  });
1983
2000
  }
1984
- const $cd0e5524f9476f9b$var$_tmpl$ = ["<div", ' class="checkbox-grid">', "</div>"],
1985
- $cd0e5524f9476f9b$var$_tmpl$2 = ["<span", ' class="count-wrapper"><span class="count">', "</span></span>"],
1986
- $cd0e5524f9476f9b$var$_tmpl$3 = ["<button", "", ' class="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></button>"];
2001
+ const $cd0e5524f9476f9b$var$_tmpl$ = ["<div", ' class="checkbox-grid" style="position:absolute;z-index:-1;pointer-events:none;opacity:0">', "</div>"],
2002
+ $cd0e5524f9476f9b$var$_tmpl$2 = ["<span", ' class="count-wrapper"><span class="count">', "</span></span>"];
2003
+ const $cd0e5524f9476f9b$var$gap_px = 5;
2004
+ const $cd0e5524f9476f9b$var$max_columns = 3;
1987
2005
  const $cd0e5524f9476f9b$export$414f6a19d38e655c = _ref => {
1988
2006
  let {
1989
2007
  filter_: filter_,
@@ -2013,26 +2031,144 @@ const $cd0e5524f9476f9b$export$414f6a19d38e655c = _ref => {
2013
2031
  };
2014
2032
  });
2015
2033
  });
2016
- return $3hooq$solidjsweb.ssr($cd0e5524f9476f9b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Index), {
2017
- get each() {
2018
- return buttons();
2034
+ const [sizes_set, set_sizes_set] = $3hooq$solidjs.createSignal(new Set(), {
2035
+ equals: false
2036
+ });
2037
+ const [cols_at_size, set_cols_at_size] = $3hooq$solidjs.createSignal([[1, "0px", ""]]);
2038
+ const [container, set_container] = $3hooq$solidjs.createSignal();
2039
+ const container_width_accessor = $3hooq$solidjs.createMemo(() => {
2040
+ const element = container();
2041
+ if (!element) return;
2042
+ return $13671aa5e984acd9$export$9f191182275e9ef(element);
2043
+ });
2044
+ const [shadow_children, set_shadow_children] = $3hooq$solidjs.createSignal(new Set(), {
2045
+ equals: false
2046
+ });
2047
+ const shadow_grid = $3hooq$solidjsweb.ssr($cd0e5524f9476f9b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape([...shadow_children()])); // for getting the smallest possible sizes of all the items
2048
+ $3hooq$solidjs.createEffect(() => {
2049
+ var _container_width_acce;
2050
+ const container_width = (_container_width_acce = container_width_accessor()) === null || _container_width_acce === void 0 ? void 0 : _container_width_acce();
2051
+ if (container_width == undefined) return;
2052
+ $cd0e5524f9476f9b$var$adjust_sizes(container_width, sizes_set(), set_cols_at_size);
2053
+ });
2054
+ return [shadow_grid, $3hooq$solidjsweb.createComponent((0, $6c2c739b113a8ddf$export$d21e32dfedac04be), {
2055
+ get cols_at_size() {
2056
+ return cols_at_size();
2019
2057
  },
2020
- children: value => {
2021
- const is_selected = $3hooq$solidjs.createMemo(() => {
2022
- var _existing_filter, _existing_filter$data;
2023
- 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_);
2024
- });
2025
- return $3hooq$solidjsweb.ssr($cd0e5524f9476f9b$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("disabled", value().count_ === 0 && !is_selected(), true), "".concat(!is_selected() ? "minor" : "", " ").concat(is_selected() ? "major" : "", " major-minor-transition"), $3hooq$solidjsweb.escape(value().value_), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
2026
- get when() {
2027
- return value().count_ != undefined;
2058
+ grid_spacing: $cd0e5524f9476f9b$var$gap_px + "px",
2059
+ rows: "all",
2060
+ layout: "grid",
2061
+ element_attributes: {
2062
+ class: "checkbox-grid",
2063
+ ref: el => set_container(el)
2064
+ },
2065
+ get children() {
2066
+ return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Index), {
2067
+ get each() {
2068
+ return buttons();
2028
2069
  },
2029
- get children() {
2030
- return $3hooq$solidjsweb.ssr($cd0e5524f9476f9b$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(value().count_));
2070
+ children: value => {
2071
+ const is_selected = $3hooq$solidjs.createMemo(() => {
2072
+ var _existing_filter, _existing_filter$data;
2073
+ 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_);
2074
+ });
2075
+ const MakeButton = attributes => $3hooq$solidjsweb.ssrElement("button", () => ({
2076
+ ...attributes,
2077
+ "disabled": value().count_ === 0 && !is_selected(),
2078
+ "classList": {
2079
+ minor: !is_selected(),
2080
+ major: is_selected(),
2081
+ "major-minor-transition": true
2082
+ }
2083
+ }), () => ["<!--#-->", $3hooq$solidjsweb.escape(value().value_), "<!--/-->", "<!--#-->", $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
2084
+ get when() {
2085
+ return value().count_ != undefined;
2086
+ },
2087
+ get children() {
2088
+ return $3hooq$solidjsweb.ssr($cd0e5524f9476f9b$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(value().count_));
2089
+ }
2090
+ })), "<!--/-->"], true);
2091
+ const invisible_size_button = $3hooq$solidjsweb.createComponent(MakeButton, {});
2092
+ const smallest_possible_size = $13671aa5e984acd9$export$9f191182275e9ef(invisible_size_button); // create ResizeObserver for the invisible size button where the div hugs its content
2093
+ const sizes_value = $3hooq$solidjs.untrack(sizes_set);
2094
+ const shadow_children_value = $3hooq$solidjs.untrack(shadow_children);
2095
+ sizes_value.add(smallest_possible_size);
2096
+ set_sizes_set(sizes_value);
2097
+ shadow_children_value.add(invisible_size_button);
2098
+ set_shadow_children(shadow_children_value);
2099
+ $3hooq$solidjs.onCleanup(() => {
2100
+ const sizes_value = $3hooq$solidjs.untrack(sizes_set);
2101
+ const shadow_children_value = $3hooq$solidjs.untrack(shadow_children);
2102
+ sizes_value.delete(smallest_possible_size);
2103
+ set_sizes_set(sizes_value);
2104
+ shadow_children_value.delete(invisible_size_button);
2105
+ set_shadow_children(shadow_children_value);
2106
+ });
2107
+ // The actual button that will be visible
2108
+ return $3hooq$solidjsweb.createComponent(MakeButton, {});
2031
2109
  }
2032
- })));
2110
+ });
2033
2111
  }
2034
- })));
2112
+ })];
2035
2113
  };
2114
+ /**
2115
+ * Calculate and apply cols_at_size overrides to fit as many items as possible in a row, evenly spaced
2116
+ */
2117
+ function $cd0e5524f9476f9b$var$adjust_sizes(container_width, sizes, set_cols_at_size) {
2118
+ let current_row_index = 0;
2119
+ let current_row_items = [];
2120
+ const column_to_row_result = {};
2121
+ const check_would_fit_evenly = (min_size_of_item, at_number_of_columnns) => {
2122
+ const would_have_even_size = container_width / at_number_of_columnns - (at_number_of_columnns * 2 - 2) * ($cd0e5524f9476f9b$var$gap_px / 2) / at_number_of_columnns; // What size would our element have (without gaps), given that now every column had the same width (equation from Layout.tsx)
2123
+ return would_have_even_size >= min_size_of_item; // would this item still fit if we added another column? (probably what the caller has done with at_number_of_columns), given that every item has the same size
2124
+ };
2125
+
2126
+ for (const size_item of sizes) {
2127
+ const size = size_item();
2128
+ if (size == undefined) return; // Only do stuff if we know all the sizes
2129
+ const current_row_length = current_row_items.length;
2130
+ const can_add_another_column_initial_val = current_row_length < $cd0e5524f9476f9b$var$max_columns; // allow max 4 items per row
2131
+ let can_add_another_column = can_add_another_column_initial_val;
2132
+ if (can_add_another_column)
2133
+ // can we actually? Since adding another column changes the size of all elements in the row we need to check all of them
2134
+ for (let i = -1; i < current_row_length; i++) {
2135
+ var _ref3;
2136
+ // -1 is for the new item we're adding and every item is guaranteed to exist
2137
+ const size_to_check = (_ref3 = current_row_items[i]) !== null && _ref3 !== void 0 ? _ref3 : size;
2138
+ const would_have_columns = current_row_length + 1; // if we added another column
2139
+ const would_fit_evenly = check_would_fit_evenly(size_to_check, would_have_columns); // see comments in check_would_fit_evenly
2140
+ if (!would_fit_evenly) {
2141
+ can_add_another_column = false;
2142
+ break;
2143
+ }
2144
+ }
2145
+ if (can_add_another_column) current_row_items.push(size);else {
2146
+ column_to_row_result[++current_row_index] = current_row_length || 1; // overrides is indexed by 1 it seems, therefore ++curent_row_index
2147
+ current_row_items = [size]; // save current item for next row
2148
+ }
2149
+ }
2150
+
2151
+ const items_left_to_add = current_row_items.length;
2152
+ if (items_left_to_add) {
2153
+ let num_columns = 1; // We want to have as close to max_columns as possible in the last row
2154
+ let fits = true;
2155
+ do
2156
+ // Check if more columns would fit
2157
+ for (let i = 0; i < items_left_to_add; i++) {
2158
+ const item = current_row_items[i];
2159
+ const would_fit_evenly = check_would_fit_evenly(item, num_columns + 1);
2160
+ if (!would_fit_evenly) {
2161
+ fits = false;
2162
+ break;
2163
+ }
2164
+ } while (fits && ++num_columns < $cd0e5524f9476f9b$var$max_columns);
2165
+ column_to_row_result[++current_row_index] = num_columns; // Add last row that's left after loop finished
2166
+ }
2167
+
2168
+ set_cols_at_size([[1, "0px", "", null, {
2169
+ overrides: column_to_row_result
2170
+ }]]);
2171
+ }
2036
2172
  function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
2037
2173
  const signal = $3hooq$solidjs.createSignal(false);
2038
2174
  $3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
@@ -2091,7 +2227,7 @@ function $476a3dc36afc1938$export$82ed4b28ecb67608(_ref) {
2091
2227
  });
2092
2228
  const rgb_color = $3hooq$solidjs.createMemo(() => $3hooq$depictaiutilishared.hex_to_rgb(hex_color()));
2093
2229
  const black_contrast_better = $3hooq$solidjs.createMemo(() => rgb_color() ? $476a3dc36afc1938$var$does_black_contrast_better(rgb_color()) : false);
2094
- const input_row = $3hooq$solidjsweb.createComponent((0, $6b92e147c6e24046$export$48513f6b9f8ce62d), {
2230
+ const input_row = $3hooq$solidjsweb.createComponent((0, $902a0ca2b52f3898$export$48513f6b9f8ce62d), {
2095
2231
  get value_() {
2096
2232
  return checkbox().value_;
2097
2233
  },
@@ -7,7 +7,11 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "2.0.1";
10
+ export const version = "2.0.3";
11
+ /**
12
+ * Returns accessor with the size of the provided element, including padding and border (I think)
13
+ */
14
+ export function make_accurate_size_accessor(what_to_watch: HTMLElement): import("solid-js").Accessor<number | undefined>;
11
15
  export type SDKGridSpacing = string | {
12
16
  horizontal: string;
13
17
  vertical: string;
@@ -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, 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";
1
+ import { add_to_version_info as $b8hua$add_to_version_info, catchify as $b8hua$catchify, 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, 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
+ import { createSignal as $b8hua$createSignal, onCleanup as $b8hua$onCleanup, createMemo as $b8hua$createMemo, createResource as $b8hua$createResource, Suspense as $b8hua$Suspense, Show as $b8hua$Show, createRenderEffect as $b8hua$createRenderEffect, createRoot as $b8hua$createRoot, 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";
2
3
  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, 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,23 @@ 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 = "2.0.1";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.3";
12
+
13
+ /** @jsxImportSource solid-js */
14
+
15
+ function $0dc044cffe1e825b$export$9f191182275e9ef(what_to_watch) {
16
+ const [size, setSize] = $b8hua$createSignal();
17
+ const resizeObserver = new ResizeObserver($b8hua$catchify(records => {
18
+ for (let j = 0; j < records.length; j++) {
19
+ var _records$j$borderBoxS, _records$j$borderBoxS2, _records$j$borderBoxS3;
20
+ const width = (_records$j$borderBoxS = (_records$j$borderBoxS2 = records[j].borderBoxSize) === null || _records$j$borderBoxS2 === void 0 ? void 0 : (_records$j$borderBoxS3 = _records$j$borderBoxS2[0]) === null || _records$j$borderBoxS3 === void 0 ? void 0 : _records$j$borderBoxS3.inlineSize) !== null && _records$j$borderBoxS !== void 0 ? _records$j$borderBoxS : what_to_watch.getBoundingClientRect().width;
21
+ setSize(width);
22
+ }
23
+ }));
24
+ resizeObserver.observe(what_to_watch);
25
+ $b8hua$onCleanup(() => resizeObserver.disconnect());
26
+ return size;
27
+ }
12
28
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
13
29
  const cols_at_size = [];
14
30
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1070,9 +1086,9 @@ function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
1070
1086
  }));
1071
1087
  return outmost_element;
1072
1088
  }
1073
- const $6b73914551534ea8$var$_tmpl$ = ["<span", ' class="count">', "</span>"],
1074
- $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>"];
1075
- const $6b73914551534ea8$export$48513f6b9f8ce62d = props => {
1089
+ const $19e828709c7723a0$var$_tmpl$ = ["<span", ' class="count">', "</span>"],
1090
+ $19e828709c7723a0$var$_tmpl$2 = ["<label", ' class="', '"', '><div class="left"><input type="checkbox"', "", "", '><span class="custom-indicator"></span><span class="text line-clamp">', "</span></div><!--#-->", "<!--/--></label>"];
1091
+ const $19e828709c7723a0$export$48513f6b9f8ce62d = props => {
1076
1092
  // 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
1077
1093
  const count = $b8hua$createMemo(() => props.count_);
1078
1094
  const label = $b8hua$createMemo(() => props.label_);
@@ -1080,12 +1096,12 @@ const $6b73914551534ea8$export$48513f6b9f8ce62d = props => {
1080
1096
  const value = $b8hua$createMemo(() => props.value_);
1081
1097
  const is_count_zero = $b8hua$createMemo(() => props.is_count_zero_ || count() === 0);
1082
1098
  const id = $b8hua$make_random_classname();
1083
- 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), {
1099
+ return (/* We can't use actual margin because ExpandingContainer gets messed up */$b8hua$ssr($19e828709c7723a0$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), {
1084
1100
  get when() {
1085
1101
  return count() != undefined;
1086
1102
  },
1087
1103
  get children() {
1088
- return $b8hua$ssr($6b73914551534ea8$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(count()));
1104
+ return $b8hua$ssr($19e828709c7723a0$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(count()));
1089
1105
  }
1090
1106
  })))
1091
1107
  );
@@ -1144,7 +1160,7 @@ function $133484ef10e4e954$export$dd948f91abc3a1c4(_ref) {
1144
1160
  });
1145
1161
  const render_checkbox = checkbox => {
1146
1162
  // Checkbox always calls the getters in props, so we don't wrap these values into memos
1147
- return $b8hua$createComponent((0, $6b73914551534ea8$export$48513f6b9f8ce62d), {
1163
+ return $b8hua$createComponent((0, $19e828709c7723a0$export$48513f6b9f8ce62d), {
1148
1164
  get value_() {
1149
1165
  return checkbox().value_;
1150
1166
  },
@@ -1652,7 +1668,7 @@ function $0ae614c5c7babb43$var$render_stuff(data, existing_filter, i18n_) {
1652
1668
  var _value;
1653
1669
  return !!Object.keys(((_value = value()) === null || _value === void 0 ? void 0 : _value.children_) || {}).length;
1654
1670
  });
1655
- return $b8hua$ssr($0ae614c5c7babb43$var$_tmpl$2, $b8hua$ssrHydrationKey(), "checkbox-details ".concat(has_expandable() ? "expandable" : ""), $b8hua$escape($b8hua$createComponent((0, $6b73914551534ea8$export$48513f6b9f8ce62d), {
1671
+ return $b8hua$ssr($0ae614c5c7babb43$var$_tmpl$2, $b8hua$ssrHydrationKey(), "checkbox-details ".concat(has_expandable() ? "expandable" : ""), $b8hua$escape($b8hua$createComponent((0, $19e828709c7723a0$export$48513f6b9f8ce62d), {
1656
1672
  get value_() {
1657
1673
  var _value2;
1658
1674
  return JSON.stringify((_value2 = value()) === null || _value2 === void 0 ? void 0 : _value2.value_);
@@ -1923,9 +1939,10 @@ function $0ae614c5c7babb43$var$expand_until_choice(data_structure) {
1923
1939
  }
1924
1940
  });
1925
1941
  }
1926
- const $830ea8efda59884e$var$_tmpl$ = ["<div", ' class="checkbox-grid">', "</div>"],
1927
- $830ea8efda59884e$var$_tmpl$2 = ["<span", ' class="count-wrapper"><span class="count">', "</span></span>"],
1928
- $830ea8efda59884e$var$_tmpl$3 = ["<button", "", ' class="', '"><!--#-->', "<!--/--><!--#-->", "<!--/--></button>"];
1942
+ const $830ea8efda59884e$var$_tmpl$ = ["<div", ' class="checkbox-grid" style="position:absolute;z-index:-1;pointer-events:none;opacity:0">', "</div>"],
1943
+ $830ea8efda59884e$var$_tmpl$2 = ["<span", ' class="count-wrapper"><span class="count">', "</span></span>"];
1944
+ const $830ea8efda59884e$var$gap_px = 5;
1945
+ const $830ea8efda59884e$var$max_columns = 3;
1929
1946
  const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
1930
1947
  let {
1931
1948
  filter_: filter_,
@@ -1955,26 +1972,144 @@ const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
1955
1972
  };
1956
1973
  });
1957
1974
  });
1958
- return $b8hua$ssr($830ea8efda59884e$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $b8hua$Index), {
1959
- get each() {
1960
- return buttons();
1975
+ const [sizes_set, set_sizes_set] = $b8hua$createSignal(new Set(), {
1976
+ equals: false
1977
+ });
1978
+ const [cols_at_size, set_cols_at_size] = $b8hua$createSignal([[1, "0px", ""]]);
1979
+ const [container, set_container] = $b8hua$createSignal();
1980
+ const container_width_accessor = $b8hua$createMemo(() => {
1981
+ const element = container();
1982
+ if (!element) return;
1983
+ return $0dc044cffe1e825b$export$9f191182275e9ef(element);
1984
+ });
1985
+ const [shadow_children, set_shadow_children] = $b8hua$createSignal(new Set(), {
1986
+ equals: false
1987
+ });
1988
+ const shadow_grid = $b8hua$ssr($830ea8efda59884e$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape([...shadow_children()])); // for getting the smallest possible sizes of all the items
1989
+ $b8hua$createEffect(() => {
1990
+ var _container_width_acce;
1991
+ const container_width = (_container_width_acce = container_width_accessor()) === null || _container_width_acce === void 0 ? void 0 : _container_width_acce();
1992
+ if (container_width == undefined) return;
1993
+ $830ea8efda59884e$var$adjust_sizes(container_width, sizes_set(), set_cols_at_size);
1994
+ });
1995
+ return [shadow_grid, $b8hua$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), {
1996
+ get cols_at_size() {
1997
+ return cols_at_size();
1961
1998
  },
1962
- children: value => {
1963
- const is_selected = $b8hua$createMemo(() => {
1964
- var _existing_filter, _existing_filter$data;
1965
- 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_);
1966
- });
1967
- 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), {
1968
- get when() {
1969
- return value().count_ != undefined;
1999
+ grid_spacing: $830ea8efda59884e$var$gap_px + "px",
2000
+ rows: "all",
2001
+ layout: "grid",
2002
+ element_attributes: {
2003
+ class: "checkbox-grid",
2004
+ ref: el => set_container(el)
2005
+ },
2006
+ get children() {
2007
+ return $b8hua$createComponent((0, $b8hua$Index), {
2008
+ get each() {
2009
+ return buttons();
1970
2010
  },
1971
- get children() {
1972
- return $b8hua$ssr($830ea8efda59884e$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape(value().count_));
2011
+ children: value => {
2012
+ const is_selected = $b8hua$createMemo(() => {
2013
+ var _existing_filter, _existing_filter$data;
2014
+ 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_);
2015
+ });
2016
+ const MakeButton = attributes => $b8hua$ssrElement("button", () => ({
2017
+ ...attributes,
2018
+ "disabled": value().count_ === 0 && !is_selected(),
2019
+ "classList": {
2020
+ minor: !is_selected(),
2021
+ major: is_selected(),
2022
+ "major-minor-transition": true
2023
+ }
2024
+ }), () => ["<!--#-->", $b8hua$escape(value().value_), "<!--/-->", "<!--#-->", $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
2025
+ get when() {
2026
+ return value().count_ != undefined;
2027
+ },
2028
+ get children() {
2029
+ return $b8hua$ssr($830ea8efda59884e$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape(value().count_));
2030
+ }
2031
+ })), "<!--/-->"], true);
2032
+ const invisible_size_button = $b8hua$createComponent(MakeButton, {});
2033
+ const smallest_possible_size = $0dc044cffe1e825b$export$9f191182275e9ef(invisible_size_button); // create ResizeObserver for the invisible size button where the div hugs its content
2034
+ const sizes_value = $b8hua$untrack(sizes_set);
2035
+ const shadow_children_value = $b8hua$untrack(shadow_children);
2036
+ sizes_value.add(smallest_possible_size);
2037
+ set_sizes_set(sizes_value);
2038
+ shadow_children_value.add(invisible_size_button);
2039
+ set_shadow_children(shadow_children_value);
2040
+ $b8hua$onCleanup(() => {
2041
+ const sizes_value = $b8hua$untrack(sizes_set);
2042
+ const shadow_children_value = $b8hua$untrack(shadow_children);
2043
+ sizes_value.delete(smallest_possible_size);
2044
+ set_sizes_set(sizes_value);
2045
+ shadow_children_value.delete(invisible_size_button);
2046
+ set_shadow_children(shadow_children_value);
2047
+ });
2048
+ // The actual button that will be visible
2049
+ return $b8hua$createComponent(MakeButton, {});
1973
2050
  }
1974
- })));
2051
+ });
1975
2052
  }
1976
- })));
2053
+ })];
1977
2054
  };
2055
+ /**
2056
+ * Calculate and apply cols_at_size overrides to fit as many items as possible in a row, evenly spaced
2057
+ */
2058
+ function $830ea8efda59884e$var$adjust_sizes(container_width, sizes, set_cols_at_size) {
2059
+ let current_row_index = 0;
2060
+ let current_row_items = [];
2061
+ const column_to_row_result = {};
2062
+ const check_would_fit_evenly = (min_size_of_item, at_number_of_columnns) => {
2063
+ const would_have_even_size = container_width / at_number_of_columnns - (at_number_of_columnns * 2 - 2) * ($830ea8efda59884e$var$gap_px / 2) / at_number_of_columnns; // What size would our element have (without gaps), given that now every column had the same width (equation from Layout.tsx)
2064
+ return would_have_even_size >= min_size_of_item; // would this item still fit if we added another column? (probably what the caller has done with at_number_of_columns), given that every item has the same size
2065
+ };
2066
+
2067
+ for (const size_item of sizes) {
2068
+ const size = size_item();
2069
+ if (size == undefined) return; // Only do stuff if we know all the sizes
2070
+ const current_row_length = current_row_items.length;
2071
+ const can_add_another_column_initial_val = current_row_length < $830ea8efda59884e$var$max_columns; // allow max 4 items per row
2072
+ let can_add_another_column = can_add_another_column_initial_val;
2073
+ if (can_add_another_column)
2074
+ // can we actually? Since adding another column changes the size of all elements in the row we need to check all of them
2075
+ for (let i = -1; i < current_row_length; i++) {
2076
+ var _ref3;
2077
+ // -1 is for the new item we're adding and every item is guaranteed to exist
2078
+ const size_to_check = (_ref3 = current_row_items[i]) !== null && _ref3 !== void 0 ? _ref3 : size;
2079
+ const would_have_columns = current_row_length + 1; // if we added another column
2080
+ const would_fit_evenly = check_would_fit_evenly(size_to_check, would_have_columns); // see comments in check_would_fit_evenly
2081
+ if (!would_fit_evenly) {
2082
+ can_add_another_column = false;
2083
+ break;
2084
+ }
2085
+ }
2086
+ if (can_add_another_column) current_row_items.push(size);else {
2087
+ column_to_row_result[++current_row_index] = current_row_length || 1; // overrides is indexed by 1 it seems, therefore ++curent_row_index
2088
+ current_row_items = [size]; // save current item for next row
2089
+ }
2090
+ }
2091
+
2092
+ const items_left_to_add = current_row_items.length;
2093
+ if (items_left_to_add) {
2094
+ let num_columns = 1; // We want to have as close to max_columns as possible in the last row
2095
+ let fits = true;
2096
+ do
2097
+ // Check if more columns would fit
2098
+ for (let i = 0; i < items_left_to_add; i++) {
2099
+ const item = current_row_items[i];
2100
+ const would_fit_evenly = check_would_fit_evenly(item, num_columns + 1);
2101
+ if (!would_fit_evenly) {
2102
+ fits = false;
2103
+ break;
2104
+ }
2105
+ } while (fits && ++num_columns < $830ea8efda59884e$var$max_columns);
2106
+ column_to_row_result[++current_row_index] = num_columns; // Add last row that's left after loop finished
2107
+ }
2108
+
2109
+ set_cols_at_size([[1, "0px", "", null, {
2110
+ overrides: column_to_row_result
2111
+ }]]);
2112
+ }
1978
2113
  function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
1979
2114
  const signal = $b8hua$createSignal(false);
1980
2115
  $b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
@@ -2033,7 +2168,7 @@ function $2cb856c297c53e6c$export$82ed4b28ecb67608(_ref) {
2033
2168
  });
2034
2169
  const rgb_color = $b8hua$createMemo(() => $b8hua$hex_to_rgb(hex_color()));
2035
2170
  const black_contrast_better = $b8hua$createMemo(() => rgb_color() ? $2cb856c297c53e6c$var$does_black_contrast_better(rgb_color()) : false);
2036
- const input_row = $b8hua$createComponent((0, $6b73914551534ea8$export$48513f6b9f8ce62d), {
2171
+ const input_row = $b8hua$createComponent((0, $19e828709c7723a0$export$48513f6b9f8ce62d), {
2037
2172
  get value_() {
2038
2173
  return checkbox().value_;
2039
2174
  },
@@ -9529,4 +9664,4 @@ const $d399250dfa491636$export$c3834fa86c616831 = [[4], [3, 1024], [2, 901]];
9529
9664
  const $d399250dfa491636$export$864d304a0bc46829 = "2%";
9530
9665
  const $d399250dfa491636$export$7bf543b9d9be2c22 = (0, $fa332ea03168857c$export$b91cec6bdc6b32a1);
9531
9666
  $b8hua$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
9532
- export { $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $5c5732ef44f05b26$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $96fd967c5b358ead$export$643598a327b5833e as get_categories, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $eb064bc3350276c1$export$316f6f283ae64765 as SearchField, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version };
9667
+ export { $0dc044cffe1e825b$export$9f191182275e9ef as make_accurate_size_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $5c5732ef44f05b26$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $96fd967c5b358ead$export$643598a327b5833e as get_categories, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $eb064bc3350276c1$export$316f6f283ae64765 as SearchField, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version };