@depict-ai/react-ui 1.5.17 → 1.5.18

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.
package/ES10/index.js CHANGED
@@ -13,25 +13,25 @@ import { DPC as $jb2Oo$DPC } from "@depict-ai/dpc/ES10";
13
13
  // Note, if you add an export here, also add one in src-server/main.ts
14
14
  import { register_es_version } from "../multi_import_deduplicator.mjs";
15
15
  register_es_version("react-ui", "ES10");
16
- const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "1.5.17";
16
+ const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "1.5.18";
17
17
  const $8c691d7f86317052$export$8e769ad4338a911e = {
18
- usedLocale: (0, $jb2Oo$createSignal)((0, $jb2Oo$defaultLocale)),
18
+ usedLocale: $jb2Oo$createSignal((0, $jb2Oo$defaultLocale)),
19
19
  search_instances: new Map(),
20
20
  category_instances: new Map(),
21
21
  api: null,
22
22
  dpc: null,
23
- merchant: (0, $jb2Oo$createSignal)(),
24
- market: (0, $jb2Oo$createSignal)(),
25
- userId: (0, $jb2Oo$createSignal)(),
26
- sessionId: (0, $jb2Oo$createSignal)(),
23
+ merchant: $jb2Oo$createSignal(),
24
+ market: $jb2Oo$createSignal(),
25
+ userId: $jb2Oo$createSignal(),
26
+ sessionId: $jb2Oo$createSignal(),
27
27
  known_category_paths: new Set(),
28
- search_page_path_: (0, $jb2Oo$createSignal)(),
29
- search_page_in_dom: (0, $jb2Oo$createSignal)(false),
30
- category_page_in_dom: (0, $jb2Oo$createSignal)(false),
31
- provider_is_updating: (0, $jb2Oo$createSignal)(false),
32
- enable_content_search: (0, $jb2Oo$createSignal)(),
33
- category_meta_title_suffix: (0, $jb2Oo$createSignal)(),
34
- disable_override_query_id: (0, $jb2Oo$createSignal)()
28
+ search_page_path_: $jb2Oo$createSignal(),
29
+ search_page_in_dom: $jb2Oo$createSignal(false),
30
+ category_page_in_dom: $jb2Oo$createSignal(false),
31
+ provider_is_updating: $jb2Oo$createSignal(false),
32
+ enable_content_search: $jb2Oo$createSignal(),
33
+ category_meta_title_suffix: $jb2Oo$createSignal(),
34
+ disable_override_query_id: $jb2Oo$createSignal()
35
35
  };
36
36
  class $88d93ed7309e90d1$export$d0f82e3ef89b1f22 extends (0, $jb2Oo$Component) {
37
37
  constructor(props) {
@@ -52,7 +52,7 @@ class $88d93ed7309e90d1$export$d0f82e3ef89b1f22 extends (0, $jb2Oo$Component) {
52
52
  render() {
53
53
  if (this.state.hasError)
54
54
  // You can render any custom fallback UI
55
- return (0, $jb2Oo$createElement)("div", {
55
+ return $jb2Oo$createElement("div", {
56
56
  children: "Component failed"
57
57
  });
58
58
  return this.props.children;
@@ -63,7 +63,7 @@ let $0dd9d9a9c7da4c1d$var$old_href = location.href;
63
63
  function $0dd9d9a9c7da4c1d$export$74f3924c5027fe1d(cb) {
64
64
  $0dd9d9a9c7da4c1d$var$run_on_href_change = cb;
65
65
  }
66
- (0, $jb2Oo$instant_exec_on_suspect_history_change).add((0, $jb2Oo$catchify)(() => {
66
+ (0, $jb2Oo$instant_exec_on_suspect_history_change).add($jb2Oo$catchify(() => {
67
67
  const {
68
68
  href: href
69
69
  } = location;
@@ -72,7 +72,7 @@ function $0dd9d9a9c7da4c1d$export$74f3924c5027fe1d(cb) {
72
72
  }));
73
73
  const $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52 = function () {
74
74
  let url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : location;
75
- return url.pathname == (0, $jb2Oo$untrack)((0, $8c691d7f86317052$export$8e769ad4338a911e).search_page_path_[0]);
75
+ return url.pathname == $jb2Oo$untrack((0, $8c691d7f86317052$export$8e769ad4338a911e).search_page_path_[0]);
76
76
  }; // might have changed therefore get it from globalState
77
77
  const $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4 = function () {
78
78
  let url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : location;
@@ -86,12 +86,12 @@ function $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef(_ref) {
86
86
  wrapper_style = {},
87
87
  hydrate_function_when_ssr: hydrate_function_when_ssr
88
88
  } = _ref;
89
- const [portals, set_portals] = (0, $jb2Oo$useState)([]);
90
- const wrapper_element_ref = (0, $jb2Oo$useRef)();
91
- const [[store, write_store]] = (0, $jb2Oo$useState)(() => (0, $jb2Oo$createStore)(props));
89
+ const [portals, set_portals] = $jb2Oo$useState([]);
90
+ const wrapper_element_ref = $jb2Oo$useRef();
91
+ const [[store, write_store]] = $jb2Oo$useState(() => $jb2Oo$createStore(props));
92
92
  // Update store when props change
93
- write_store((0, $jb2Oo$reconcile)(props));
94
- (0, $jb2Oo$useEffect)(() => {
93
+ write_store($jb2Oo$reconcile(props));
94
+ $jb2Oo$useEffect(() => {
95
95
  const wrapper_element = wrapper_element_ref.current;
96
96
  // If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
97
97
  // This can happen for HMR or when SSR capable components are only rendered on the client
@@ -99,7 +99,7 @@ function $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef(_ref) {
99
99
  const dispose = render_function(() => solid_component(store, set_portals), wrapper_element);
100
100
  return dispose;
101
101
  }, []);
102
- return (0, $jb2Oo$createElement)((0, $jb2Oo$Fragment), null, (0, $jb2Oo$createElement)(wrapper_type, {
102
+ return $jb2Oo$createElement((0, $jb2Oo$Fragment), null, $jb2Oo$createElement(wrapper_type, {
103
103
  ref: wrapper_element_ref,
104
104
  style: wrapper_style,
105
105
  ...(hydrate_function_when_ssr ? {
@@ -114,8 +114,8 @@ function $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef(_ref) {
114
114
  function $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035(component, is_set) {
115
115
  return function () {
116
116
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
117
- const default_is_set = (0, $jb2Oo$createMemo)(() => !!((0, $8c691d7f86317052$export$8e769ad4338a911e).merchant[0]() && (0, $8c691d7f86317052$export$8e769ad4338a911e).market[0]())); // Apparently Show re-renders kids otherwise even if the falsiness of the condition doesn't change
118
- const should_show = (0, $jb2Oo$createMemo)(prev => {
117
+ const default_is_set = $jb2Oo$createMemo(() => !!((0, $8c691d7f86317052$export$8e769ad4338a911e).merchant[0]() && (0, $8c691d7f86317052$export$8e769ad4338a911e).market[0]())); // Apparently Show re-renders kids otherwise even if the falsiness of the condition doesn't change
118
+ const should_show = $jb2Oo$createMemo(prev => {
119
119
  if (!prev && (0, $8c691d7f86317052$export$8e769ad4338a911e).provider_is_updating[0]())
120
120
  // Why `!prev`? See https://gitlab.com/depict-ai/depict.ai/-/merge_requests/7854#note_1495776987
121
121
  // If we weren't showing the component and the DepictProvider is currently updating, wait for it to have finished updating before showing the component
@@ -124,7 +124,7 @@ function $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035(component, is_set) {
124
124
  return (is_set || default_is_set)();
125
125
  });
126
126
  // @ts-ignore
127
- return (0, $jb2Oo$createComponent)((0, $jb2Oo$Show), {
127
+ return $jb2Oo$createComponent((0, $jb2Oo$Show), {
128
128
  get when() {
129
129
  return should_show();
130
130
  },
@@ -145,17 +145,17 @@ async function $0dd9d9a9c7da4c1d$export$79c79419c1ef0081(_ref2) {
145
145
  let was_cleaned_up = false;
146
146
  const react_has_ran_hooks = new Promise(r => set_react_has_ran_hooks = r);
147
147
  const solid_container = document.createElement("div");
148
- const owner = (0, $jb2Oo$getOwner)();
149
- const reactProductCard = (0, $jb2Oo$jsx)(props => {
148
+ const owner = $jb2Oo$getOwner();
149
+ const reactProductCard = $jb2Oo$jsx(props => {
150
150
  // Sneak in a hook into their product card component to know once react has finished rendering and running hooks
151
- (0, $jb2Oo$useEffect)(set_react_has_ran_hooks, []);
151
+ $jb2Oo$useEffect(set_react_has_ran_hooks, []);
152
152
  return react_template(props);
153
153
  }, {
154
154
  display: display
155
155
  });
156
- const reactProductCardInErrorBoundary = (0, $jb2Oo$jsx)((0, $88d93ed7309e90d1$export$d0f82e3ef89b1f22), {
156
+ const reactProductCardInErrorBoundary = $jb2Oo$jsx((0, $88d93ed7309e90d1$export$d0f82e3ef89b1f22), {
157
157
  children: reactProductCard,
158
- on_error: error => (0, $jb2Oo$runWithOwner)(owner, () => {
158
+ on_error: error => $jb2Oo$runWithOwner(owner, () => {
159
159
  if (was_cleaned_up) return; // Would infinite loop if we'd throw after we've already been cleaned up. That is because the `ErrorBoundary` won't be "registered" with the cleaned-up owner anymore so react would hear about the throw and attempt to re-render the error boundary or something which would throw again, etc.
160
160
  throw new (0, $jb2Oo$ProductCardError)(error);
161
161
  })
@@ -163,7 +163,7 @@ async function $0dd9d9a9c7da4c1d$export$79c79419c1ef0081(_ref2) {
163
163
  const portal = $jb2Oo$createPortal(reactProductCardInErrorBoundary, solid_container);
164
164
  component_portals.add(portal);
165
165
  set_portals([...component_portals]);
166
- (0, $jb2Oo$onCleanup)(() => {
166
+ $jb2Oo$onCleanup(() => {
167
167
  was_cleaned_up = true;
168
168
  // this will stop working after any await so be careful to not await before this, or you'll have to carry the owner over with getOwner and runWithOwner
169
169
  component_portals.delete(portal);
@@ -177,7 +177,7 @@ let $64144f6d578fd8ac$var$set = false;
177
177
  let $64144f6d578fd8ac$var$padding_animation;
178
178
  function $64144f6d578fd8ac$export$6453cbc34515a94d() {
179
179
  var _window, _window$next, _window$next$router, _window$next$router$e;
180
- const are_on_search_or_category_page = () => (0, $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52)() || (0, $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4)();
180
+ const are_on_search_or_category_page = () => $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52() || $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4();
181
181
  if ($64144f6d578fd8ac$var$set) return; // Just being safe
182
182
  $64144f6d578fd8ac$var$set = true;
183
183
  // We used to initialise this variable with false which in some cases (scroll to top button in FloatingButtons) would cause the scroll to be blocked when it shouldn't (see https://depictaiworkspace.slack.com/archives/C058KQ3MU8Z/p1686141321127089?thread_ts=1686134246.109689&cid=C058KQ3MU8Z)
@@ -193,7 +193,7 @@ function $64144f6d578fd8ac$export$6453cbc34515a94d() {
193
193
  } else should_use_old_scroll = true;
194
194
  };
195
195
  // When popping state, add padding in the same event as the "popstate" event (required) and then remove it once our stuff is in the DOM
196
- addEventListener("popstate", (0, $jb2Oo$catchify)(() => {
196
+ addEventListener("popstate", $jb2Oo$catchify(() => {
197
197
  if (!are_on_search_or_category_page()) {
198
198
  $64144f6d578fd8ac$var$removeLotsOfPadding(); // Just making sure
199
199
  return;
@@ -201,10 +201,10 @@ function $64144f6d578fd8ac$export$6453cbc34515a94d() {
201
201
  should_use_old_scroll = false;
202
202
  const [get_search_page_in_dom] = (0, $8c691d7f86317052$export$8e769ad4338a911e).search_page_in_dom;
203
203
  const [get_category_page_in_dom] = (0, $8c691d7f86317052$export$8e769ad4338a911e).category_page_in_dom;
204
- const search_page_in_dom = (0, $jb2Oo$untrack)(get_search_page_in_dom);
205
- const category_page_in_dom = (0, $jb2Oo$untrack)(get_category_page_in_dom);
206
- const new_is_search = (0, $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52)();
207
- const new_is_category = (0, $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4)();
204
+ const search_page_in_dom = $jb2Oo$untrack(get_search_page_in_dom);
205
+ const category_page_in_dom = $jb2Oo$untrack(get_category_page_in_dom);
206
+ const new_is_search = $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52();
207
+ const new_is_category = $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4();
208
208
  let accessor_to_wait_for;
209
209
  if (search_page_in_dom && new_is_search || category_page_in_dom && new_is_category) {
210
210
  // Already on the page we're going to
@@ -213,7 +213,7 @@ function $64144f6d578fd8ac$export$6453cbc34515a94d() {
213
213
  }
214
214
  $64144f6d578fd8ac$var$addLotsOfPadding();
215
215
  if (new_is_search && category_page_in_dom) accessor_to_wait_for = get_search_page_in_dom;else if (new_is_category && search_page_in_dom) accessor_to_wait_for = get_category_page_in_dom;else accessor_to_wait_for = new_is_search ? get_search_page_in_dom : get_category_page_in_dom;
216
- (0, $jb2Oo$createRoot)(dispose => (0, $jb2Oo$createEffect)(() => {
216
+ $jb2Oo$createRoot(dispose => $jb2Oo$createEffect(() => {
217
217
  if (accessor_to_wait_for()) {
218
218
  $64144f6d578fd8ac$var$removeLotsOfPadding();
219
219
  dispose();
@@ -222,7 +222,7 @@ function $64144f6d578fd8ac$export$6453cbc34515a94d() {
222
222
  }));
223
223
  (_window = window) === null || _window === void 0 || (_window$next = _window.next) === null || _window$next === void 0 || (_window$next$router = _window$next.router) === null || _window$next$router === void 0 || (_window$next$router$e = _window$next$router.events) === null || _window$next$router$e === void 0 || _window$next$router$e.on(
224
224
  // We have to use the actual next router here, if we'd use next_router_event_target for this window.event wouldn't be the popstate anymore
225
- "routeChangeStart", (0, $jb2Oo$catchify)(() => {
225
+ "routeChangeStart", $jb2Oo$catchify(() => {
226
226
  // this is for when we navigate to a new page (replaceState or pushState)
227
227
  // We need to ensure that the page doesn't get shorter before the new history entry has been pushed
228
228
  // There is beforeHistoryChange which fires literally the line of code before the history API is called, so we make the page long until a task after that
@@ -231,7 +231,7 @@ function $64144f6d578fd8ac$export$6453cbc34515a94d() {
231
231
  // This is catchified, so we should see in sentry when it starts failing if browsers ever remove it???
232
232
  if (window.event instanceof PopStateEvent) return;
233
233
  $64144f6d578fd8ac$var$addLotsOfPadding();
234
- next_router_event_target.addEventListener("beforeHistoryChange", (0, $jb2Oo$catchify)(() => (0, $jb2Oo$queueMacroTask)($64144f6d578fd8ac$var$removeLotsOfPadding)), {
234
+ next_router_event_target.addEventListener("beforeHistoryChange", $jb2Oo$catchify(() => $jb2Oo$queueMacroTask($64144f6d578fd8ac$var$removeLotsOfPadding)), {
235
235
  once: true
236
236
  });
237
237
  }));
@@ -268,9 +268,9 @@ const $7abe9e29758fa0eb$export$599d4515591ef232 = (relativeUrl, isReplace, scrol
268
268
  Page[Page["SEARCH"] = 1] = "SEARCH";
269
269
  Page[Page["CATEGORY"] = 2] = "CATEGORY";
270
270
  })(Page || (Page = {}));
271
- const current_page = (0, $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52)() ? Page.SEARCH : (0, $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4)() ? Page.CATEGORY : Page.OTHER;
271
+ const current_page = $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52() ? Page.SEARCH : $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4() ? Page.CATEGORY : Page.OTHER;
272
272
  const target_u_o = new URL(relativeUrl, location.origin);
273
- const target_page = (0, $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52)(target_u_o) ? Page.SEARCH : (0, $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4)(target_u_o) ? Page.CATEGORY : Page.OTHER;
273
+ const target_page = $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52(target_u_o) ? Page.SEARCH : $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4(target_u_o) ? Page.CATEGORY : Page.OTHER;
274
274
  window.next.router[isReplace ? "replace" : "push"](relativeUrl, undefined, {
275
275
  shallow: current_page === target_page && target_page !== Page.OTHER,
276
276
  scroll:
@@ -318,27 +318,27 @@ function $bef9f58602be2478$export$bae2769a30719c48(disposable, stateKey) {
318
318
  const instance = new (0, $jb2Oo$DepictSearch)({
319
319
  api: (0, $8c691d7f86317052$export$8e769ad4338a911e).api,
320
320
  search_query_url_param_name: search_query_url_param_name,
321
- market: (0, $jb2Oo$untrack)(get_market),
321
+ market: $jb2Oo$untrack(get_market),
322
322
  // TODO: check if we can do this
323
- merchant: (0, $jb2Oo$untrack)(get_merchant),
323
+ merchant: $jb2Oo$untrack(get_merchant),
324
324
  enable_category_suggestions: (_globalState$enableCa = (0, $8c691d7f86317052$export$8e769ad4338a911e).enableCategorySuggestions) !== null && _globalState$enableCa !== void 0 ? _globalState$enableCa : false,
325
325
  // default category suggestions to false for @depict-ai/react-ui (https://linear.app/depictai/issue/FRO-401/default-enablecategorysuggestions-to-false)
326
- localization: (0, $jb2Oo$untrack)(get_locale),
327
- url_transformer: url => url.pathname = (0, $jb2Oo$untrack)(get_search_page_path),
326
+ localization: $jb2Oo$untrack(get_locale),
327
+ url_transformer: url => url.pathname = $jb2Oo$untrack(get_search_page_path),
328
328
  on_navigation: (0, $8c691d7f86317052$export$8e769ad4338a911e).on_navigation,
329
329
  unique_instance_key_for_state: stateKey,
330
- enable_content_search: (0, $jb2Oo$untrack)(get_enable_content_search)
330
+ enable_content_search: $jb2Oo$untrack(get_enable_content_search)
331
331
  });
332
- (0, $jb2Oo$createComputed)(() => {
332
+ $jb2Oo$createComputed(() => {
333
333
  const new_merchant = get_merchant();
334
334
  if (new_merchant) instance.merchant = new_merchant;
335
335
  });
336
- (0, $jb2Oo$createComputed)(() => {
336
+ $jb2Oo$createComputed(() => {
337
337
  const new_market = get_market();
338
338
  if (new_market) instance.market = new_market;
339
339
  });
340
- (0, $jb2Oo$createComputed)(() => instance.localization = get_locale());
341
- (0, $jb2Oo$createComputed)(() => instance.enable_content_search = get_enable_content_search());
340
+ $jb2Oo$createComputed(() => instance.localization = get_locale());
341
+ $jb2Oo$createComputed(() => instance.enable_content_search = get_enable_content_search());
342
342
  return {
343
343
  instance: instance,
344
344
  dispose: dispose,
@@ -347,7 +347,7 @@ function $bef9f58602be2478$export$bae2769a30719c48(disposable, stateKey) {
347
347
  };
348
348
  const function_length_0 = () => actual_function();
349
349
  const function_length_1 = dispose => actual_function(dispose);
350
- return (0, $jb2Oo$createRoot)(disposable ? function_length_1 : function_length_0); // solid-js creates roots differently based on if it can detect a dispose argument, with function.length. That's why this is written like this
350
+ return $jb2Oo$createRoot(disposable ? function_length_1 : function_length_0); // solid-js creates roots differently based on if it can detect a dispose argument, with function.length. That's why this is written like this
351
351
  }
352
352
 
353
353
  function $b1c85026e863c95b$export$248b95d5073d5bab(disposable, stateKey) {
@@ -361,24 +361,24 @@ function $b1c85026e863c95b$export$248b95d5073d5bab(disposable, stateKey) {
361
361
  } = (0, $8c691d7f86317052$export$8e769ad4338a911e);
362
362
  const instance = new (0, $jb2Oo$DepictCategory)({
363
363
  api: (0, $8c691d7f86317052$export$8e769ad4338a911e).api,
364
- market: (0, $jb2Oo$untrack)(get_market),
364
+ market: $jb2Oo$untrack(get_market),
365
365
  // TODO: check if we can do this
366
- merchant: (0, $jb2Oo$untrack)(get_merchant),
367
- localization: (0, $jb2Oo$untrack)(get_locale),
366
+ merchant: $jb2Oo$untrack(get_merchant),
367
+ localization: $jb2Oo$untrack(get_locale),
368
368
  on_navigation: (0, $8c691d7f86317052$export$8e769ad4338a911e).on_navigation,
369
369
  unique_instance_key_for_state: stateKey
370
370
  });
371
- (0, $jb2Oo$createComputed)(() => {
371
+ $jb2Oo$createComputed(() => {
372
372
  const new_merchant = get_merchant();
373
373
  if (new_merchant) instance.merchant = new_merchant;
374
374
  });
375
- (0, $jb2Oo$createComputed)(() => {
375
+ $jb2Oo$createComputed(() => {
376
376
  const new_market = get_market();
377
377
  if (new_market) instance.market = new_market;
378
378
  });
379
- (0, $jb2Oo$createComputed)(() => instance.localization = get_locale());
380
- (0, $jb2Oo$createComputed)(() => instance.meta_title_suffix = get_category_meta_title_suffix());
381
- (0, $jb2Oo$createComputed)(() => instance.disable_override_query_id = get_disable_override_query_id());
379
+ $jb2Oo$createComputed(() => instance.localization = get_locale());
380
+ $jb2Oo$createComputed(() => instance.meta_title_suffix = get_category_meta_title_suffix());
381
+ $jb2Oo$createComputed(() => instance.disable_override_query_id = get_disable_override_query_id());
382
382
  return {
383
383
  instance: instance,
384
384
  dispose: dispose,
@@ -387,7 +387,7 @@ function $b1c85026e863c95b$export$248b95d5073d5bab(disposable, stateKey) {
387
387
  };
388
388
  const function_length_0 = () => actual_function();
389
389
  const function_length_1 = dispose => actual_function(dispose);
390
- return (0, $jb2Oo$createRoot)(disposable ? function_length_1 : function_length_0); // solid-js creates roots differently based on if it can detect a dispose argument, with function.length. That's why this is written like this
390
+ return $jb2Oo$createRoot(disposable ? function_length_1 : function_length_0); // solid-js creates roots differently based on if it can detect a dispose argument, with function.length. That's why this is written like this
391
391
  }
392
392
 
393
393
  let $18e5b9f66c7ade8e$var$provider_instances = 0;
@@ -429,11 +429,11 @@ function $18e5b9f66c7ade8e$var$ActualDepictProvider(props) {
429
429
  (0, $8c691d7f86317052$export$8e769ad4338a911e).enableCategorySuggestions = enableCategorySuggestions;
430
430
  (0, $8c691d7f86317052$export$8e769ad4338a911e).category_meta_title_suffix[1]((_props$category = props.category) === null || _props$category === void 0 ? void 0 : _props$category.metaTitleSuffix);
431
431
  (0, $8c691d7f86317052$export$8e769ad4338a911e).disable_override_query_id[1]((_props$category2 = props.category) === null || _props$category2 === void 0 ? void 0 : _props$category2.disableOverrideQueryId);
432
- (0, $b34796f5ebe3470e$export$47e064413edabf36)(merchant, market, userId, sessionId);
433
- if (!market || !merchant) return (0, $jb2Oo$createElement)((0, $jb2Oo$Fragment), null, children);
432
+ $b34796f5ebe3470e$export$47e064413edabf36(merchant, market, userId, sessionId);
433
+ if (!market || !merchant) return $jb2Oo$createElement((0, $jb2Oo$Fragment), null, children);
434
434
  (0, $8c691d7f86317052$export$8e769ad4338a911e).market[1](market);
435
435
  (0, $8c691d7f86317052$export$8e769ad4338a911e).merchant[1](merchant);
436
- (0, $64144f6d578fd8ac$export$6453cbc34515a94d)();
436
+ $64144f6d578fd8ac$export$6453cbc34515a94d();
437
437
  try {
438
438
  var _window, _window$next;
439
439
  const {
@@ -452,13 +452,13 @@ function $18e5b9f66c7ade8e$var$ActualDepictProvider(props) {
452
452
  if (navigateFunction) navigateFunction(new_relative_url, {
453
453
  replace: is_replace,
454
454
  scroll: scroll
455
- });else (0, $7abe9e29758fa0eb$export$599d4515591ef232)(new_relative_url, is_replace, scroll);
455
+ });else $7abe9e29758fa0eb$export$599d4515591ef232(new_relative_url, is_replace, scroll);
456
456
  };
457
457
  (0, $8c691d7f86317052$export$8e769ad4338a911e).on_navigation = on_navigation;
458
458
  (0, $8c691d7f86317052$export$8e769ad4338a911e).api || ((0, $8c691d7f86317052$export$8e769ad4338a911e).api = new (0, $jb2Oo$DepictAPI)({
459
459
  get_metadata: async () => (0, $8c691d7f86317052$export$8e769ad4338a911e).metaData,
460
- get_user_id: () => (0, $jb2Oo$untrack)((0, $8c691d7f86317052$export$8e769ad4338a911e).userId[0]),
461
- get_session_id: () => (0, $jb2Oo$untrack)((0, $8c691d7f86317052$export$8e769ad4338a911e).sessionId[0])
460
+ get_user_id: () => $jb2Oo$untrack((0, $8c691d7f86317052$export$8e769ad4338a911e).userId[0]),
461
+ get_session_id: () => $jb2Oo$untrack((0, $8c691d7f86317052$export$8e769ad4338a911e).sessionId[0])
462
462
  }));
463
463
  (0, $8c691d7f86317052$export$8e769ad4338a911e).api.page_url_creator = props.pageURLCreator;
464
464
  (0, $8c691d7f86317052$export$8e769ad4338a911e).api.display_transformers = props.displayTransformers;
@@ -466,11 +466,11 @@ function $18e5b9f66c7ade8e$var$ActualDepictProvider(props) {
466
466
  if (!search_instances.get(undefined)) {
467
467
  // Create initial search instance which always exists. It i.e. gards against the state getting deleted from history.state by someone pushing to it with an empty object, which commonly people copy from code snippets.
468
468
  // Also, it emulates the behavior pre-supporting multiple "depict blocks" on the same page
469
- const instance = (0, $bef9f58602be2478$export$bae2769a30719c48)(false);
469
+ const instance = $bef9f58602be2478$export$bae2769a30719c48(false);
470
470
  search_instances.set(undefined, instance);
471
471
  }
472
472
  if (!category_instances.get(undefined)) {
473
- const instance = (0, $b1c85026e863c95b$export$248b95d5073d5bab)(false);
473
+ const instance = $b1c85026e863c95b$export$248b95d5073d5bab(false);
474
474
  category_instances.set(undefined, instance);
475
475
  }
476
476
  } catch (e) {
@@ -479,7 +479,7 @@ function $18e5b9f66c7ade8e$var$ActualDepictProvider(props) {
479
479
  throw e;
480
480
  });
481
481
  }
482
- return (0, $jb2Oo$createElement)((0, $jb2Oo$Fragment), null, children);
482
+ return $jb2Oo$createElement((0, $jb2Oo$Fragment), null, children);
483
483
  }
484
484
  function $18e5b9f66c7ade8e$var$ensure_correct_formatting(path) {
485
485
  // Make sure the path starts with a slash as it always will and is_page will fail otherwise
@@ -487,7 +487,7 @@ function $18e5b9f66c7ade8e$var$ensure_correct_formatting(path) {
487
487
  return path;
488
488
  }
489
489
  function $18e5b9f66c7ade8e$var$multiple_depictprovider_guard() {
490
- (0, $jb2Oo$useEffect)(() => {
490
+ $jb2Oo$useEffect(() => {
491
491
  $18e5b9f66c7ade8e$var$provider_instances++;
492
492
  if ($18e5b9f66c7ade8e$var$provider_instances > 1) throw new Error("You are using multiple DepictProviders. This is not supported and will lead to unexpected behavior. You can create multiple SearchPage and CategoryPage components, but only one DepictProvider.");
493
493
  return () => {
@@ -495,8 +495,8 @@ function $18e5b9f66c7ade8e$var$multiple_depictprovider_guard() {
495
495
  };
496
496
  }, []);
497
497
  }
498
- const $f6a205a95e4fdee3$export$80e99ee6b29cadd2 = /*#__PURE__*/(0, $jb2Oo$forwardRef)((_, ref) => {
499
- return /*#__PURE__*/(0, $jb2Oo$createElement)("div", {
498
+ const $f6a205a95e4fdee3$export$80e99ee6b29cadd2 = /*#__PURE__*/$jb2Oo$forwardRef((_, ref) => {
499
+ return /*#__PURE__*/$jb2Oo$createElement("div", {
500
500
  className: "depict aligner",
501
501
  style: {
502
502
  height: "100%"
@@ -509,11 +509,11 @@ function $fda7a7820477f957$export$f4d89133c6985668(type, stateKey, componentName
509
509
  if (!instances.get(undefined)) throw Error("".concat(componentName, ": State not set up. Did you forget to wrap your app in DepictProvider? Also make sure you've provided a merchant and a market."));
510
510
  let instance = instances.get(stateKey);
511
511
  if (!instance) {
512
- instance = type === "search" ? (0, $bef9f58602be2478$export$bae2769a30719c48)(true, stateKey) : (0, $b1c85026e863c95b$export$248b95d5073d5bab)(true, stateKey);
512
+ instance = type === "search" ? $bef9f58602be2478$export$bae2769a30719c48(true, stateKey) : $b1c85026e863c95b$export$248b95d5073d5bab(true, stateKey);
513
513
  instances.set(stateKey, instance);
514
514
  }
515
515
  instance.users++;
516
- (0, $jb2Oo$onCleanup)(() => {
516
+ $jb2Oo$onCleanup(() => {
517
517
  var _instance;
518
518
  instance.users--;
519
519
  if (!instance.users && (_instance = instance) !== null && _instance !== void 0 && _instance.dispose) {
@@ -526,24 +526,24 @@ function $fda7a7820477f957$export$f4d89133c6985668(type, stateKey, componentName
526
526
  }
527
527
  const $d059770e7af9e2dc$var$rendered_components_with_state_key = new Set();
528
528
  function $d059770e7af9e2dc$export$a54ec244c8863715(props) {
529
- return (0, $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef)({
530
- solid_component: (0, $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035)($d059770e7af9e2dc$var$SolidSearchPage),
529
+ return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
530
+ solid_component: $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035($d059770e7af9e2dc$var$SolidSearchPage),
531
531
  props: props
532
532
  });
533
533
  }
534
534
  function $d059770e7af9e2dc$var$SolidSearchPage(props, set_portals) {
535
- const depict_search = (0, $jb2Oo$createMemo)(() => {
536
- const instance = (0, $fda7a7820477f957$export$f4d89133c6985668)("search", props.stateKey, "SearchPage");
537
- (0, $jb2Oo$onCleanup)(() => {
535
+ const depict_search = $jb2Oo$createMemo(() => {
536
+ const instance = $fda7a7820477f957$export$f4d89133c6985668("search", props.stateKey, "SearchPage");
537
+ $jb2Oo$onCleanup(() => {
538
538
  var _get_search_query_upd;
539
539
  // Make sure we don't block the search query updating signal when we switch to a new provider instance
540
- (_get_search_query_upd = (0, $jb2Oo$get_search_query_updating_blocked_signal)(instance)) === null || _get_search_query_upd === void 0 || _get_search_query_upd[1](false);
540
+ (_get_search_query_upd = $jb2Oo$get_search_query_updating_blocked_signal(instance)) === null || _get_search_query_upd === void 0 || _get_search_query_upd[1](false);
541
541
  });
542
542
  return instance;
543
543
  });
544
544
  const update_updating_blocked_signal = () => {
545
545
  // if search instances changes, also re-check for good measure (otherwise would have untrack around depict_search)
546
- const signal = (0, $jb2Oo$get_search_query_updating_blocked_signal)(depict_search());
546
+ const signal = $jb2Oo$get_search_query_updating_blocked_signal(depict_search());
547
547
  if (!signal) throw Error("No search_query_updating_blocked_signal when rendering SearchPage");
548
548
  const [, write_signal] = signal;
549
549
  // This causes a bug. To reproduce:
@@ -555,26 +555,26 @@ function $d059770e7af9e2dc$var$SolidSearchPage(props, set_portals) {
555
555
  // This is because on the front page the search_query updating is blocked because it's not the search page, and that means that `filtered_previous_searches` in Autocomplete.tsx doesn't filter out the current search query
556
556
  // Because it's so minor and would be quite hard to fix (one would need a second "actual search query" signal just for this purpose) it's wontfix for now
557
557
  // EDIT: now that we're resetting this in the onCleanup of the memo above this might no longer be the case
558
- write_signal(!(0, $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52)(location));
558
+ write_signal(!$0dd9d9a9c7da4c1d$export$775e6b3892b5ad52(location));
559
559
  };
560
560
  const [, set_search_page_in_dom] = (0, $8c691d7f86317052$export$8e769ad4338a911e).search_page_in_dom;
561
561
  const component_portals = new Set();
562
562
  // We should only get here once react already has a DOM node which means we should be in the DOM
563
563
  set_search_page_in_dom(true);
564
- (0, $jb2Oo$onCleanup)(() => set_search_page_in_dom(false));
564
+ $jb2Oo$onCleanup(() => set_search_page_in_dom(false));
565
565
  // react is really slow with disposing components, we want to avoid a flash of another search query when you click on a product and navigate away
566
- (0, $0dd9d9a9c7da4c1d$export$74f3924c5027fe1d)(update_updating_blocked_signal); // if we navigate, re-check
567
- (0, $jb2Oo$createComputed)(() => {
566
+ $0dd9d9a9c7da4c1d$export$74f3924c5027fe1d(update_updating_blocked_signal); // if we navigate, re-check
567
+ $jb2Oo$createComputed(() => {
568
568
  (0, $8c691d7f86317052$export$8e769ad4338a911e).search_page_path_[0](); // if react defined path changes, re-check
569
569
  update_updating_blocked_signal();
570
570
  });
571
571
  $d059770e7af9e2dc$var$search_page_path_checker();
572
- return (0, $jb2Oo$createMemo)(() => {
573
- const stateKey = (0, $jb2Oo$untrack)(() => props.stateKey);
572
+ return $jb2Oo$createMemo(() => {
573
+ const stateKey = $jb2Oo$untrack(() => props.stateKey);
574
574
  if ($d059770e7af9e2dc$var$rendered_components_with_state_key.has(stateKey)) throw new Error("You have multiple SearchPage components with the same stateKey: ".concat(stateKey, ". Each SearchPage component must have a unique stateKey."));
575
575
  $d059770e7af9e2dc$var$rendered_components_with_state_key.add(stateKey);
576
- (0, $jb2Oo$onCleanup)(() => $d059770e7af9e2dc$var$rendered_components_with_state_key.delete(stateKey));
577
- return (0, $jb2Oo$SearchPage)({
576
+ $jb2Oo$onCleanup(() => $d059770e7af9e2dc$var$rendered_components_with_state_key.delete(stateKey));
577
+ return $jb2Oo$SearchPage({
578
578
  // Default config goes here
579
579
  get include_input_field() {
580
580
  return props.includeInputField;
@@ -588,9 +588,9 @@ function $d059770e7af9e2dc$var$SolidSearchPage(props, set_portals) {
588
588
  return (_props$gridSpacing = props.gridSpacing) !== null && _props$gridSpacing !== void 0 ? _props$gridSpacing : (0, $jb2Oo$defaultGridSpacing);
589
589
  },
590
590
  depict_search: depict_search(),
591
- product_card_template: display => (0, $0dd9d9a9c7da4c1d$export$79c79419c1ef0081)({
591
+ product_card_template: display => $0dd9d9a9c7da4c1d$export$79c79419c1ef0081({
592
592
  display: display,
593
- react_template: (0, $jb2Oo$untrack)(() => props.productCard),
593
+ react_template: $jb2Oo$untrack(() => props.productCard),
594
594
  component_portals: component_portals,
595
595
  set_portals: set_portals
596
596
  })
@@ -602,7 +602,7 @@ function $d059770e7af9e2dc$var$SolidSearchPage(props, set_portals) {
602
602
  */
603
603
  function $d059770e7af9e2dc$var$search_page_path_checker() {
604
604
  let has_warned = false;
605
- (0, $jb2Oo$createEffect)(() => {
605
+ $jb2Oo$createEffect(() => {
606
606
  if (has_warned) return;
607
607
  const should_be_path = (0, $8c691d7f86317052$export$8e769ad4338a911e).search_page_path_[0]();
608
608
  const {
@@ -611,32 +611,32 @@ function $d059770e7af9e2dc$var$search_page_path_checker() {
611
611
  if (
612
612
  // allow some variability just to be sure
613
613
  should_be_path !== pathname && should_be_path + "/" !== pathname && should_be_path !== pathname + "/") {
614
- (0, $jb2Oo$derror)("searchPagePath is set to", should_be_path, "but the SearchPage is rendered at", pathname, ". Please double-check your searchPagePath is where the SearchPage component ends up being rendered, after all redirects, unless you're sure this is intentional.");
614
+ $jb2Oo$derror("searchPagePath is set to", should_be_path, "but the SearchPage is rendered at", pathname, ". Please double-check your searchPagePath is where the SearchPage component ends up being rendered, after all redirects, unless you're sure this is intentional.");
615
615
  has_warned = true;
616
616
  }
617
617
  });
618
618
  }
619
619
  const $e86a296a07b17ad5$var$rendered_components_with_state_key = new Set();
620
620
  function $e86a296a07b17ad5$export$f7d2f673fc2f091d(props) {
621
- return (0, $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef)({
621
+ return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
622
622
  // @ts-ignore
623
- solid_component: (0, $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035)($e86a296a07b17ad5$var$SolidCategoryPage),
623
+ solid_component: $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035($e86a296a07b17ad5$var$SolidCategoryPage),
624
624
  props: props,
625
625
  wrapper_type: "div",
626
626
  wrapper_style: {}
627
627
  });
628
628
  }
629
629
  function $e86a296a07b17ad5$var$SolidCategoryPage(props, set_portals) {
630
- const depict_category = (0, $jb2Oo$createMemo)(() => (0, $fda7a7820477f957$export$f4d89133c6985668)("category", props.stateKey, "CategoryPage") // stateKey can change
630
+ const depict_category = $jb2Oo$createMemo(() => $fda7a7820477f957$export$f4d89133c6985668("category", props.stateKey, "CategoryPage") // stateKey can change
631
631
  );
632
632
 
633
- const [category_state_set, set_category_state_set] = (0, $jb2Oo$createSignal)(false);
633
+ const [category_state_set, set_category_state_set] = $jb2Oo$createSignal(false);
634
634
  const component_portals = new Set();
635
635
  const [, set_category_page_in_dom] = (0, $8c691d7f86317052$export$8e769ad4338a911e).category_page_in_dom;
636
636
  // We should only get here once react already has a DOM node which means we should be in the DOM
637
637
  set_category_page_in_dom(true);
638
- (0, $jb2Oo$onCleanup)(() => set_category_page_in_dom(false));
639
- (0, $jb2Oo$createComputed)(() => {
638
+ $jb2Oo$onCleanup(() => set_category_page_in_dom(false));
639
+ $jb2Oo$createComputed(() => {
640
640
  const {
641
641
  categoryId: categoryId
642
642
  } = props;
@@ -646,13 +646,13 @@ function $e86a296a07b17ad5$var$SolidCategoryPage(props, set_portals) {
646
646
  (0, $8c691d7f86317052$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
647
647
  }
648
648
  });
649
- (0, $jb2Oo$createComputed)(() => depict_category().listing_type = props.listingType);
650
- const category = () => (0, $jb2Oo$createMemo)(() => {
651
- const stateKey = (0, $jb2Oo$untrack)(() => props.stateKey);
649
+ $jb2Oo$createComputed(() => depict_category().listing_type = props.listingType);
650
+ const category = () => $jb2Oo$createMemo(() => {
651
+ const stateKey = $jb2Oo$untrack(() => props.stateKey);
652
652
  if ($e86a296a07b17ad5$var$rendered_components_with_state_key.has(stateKey)) throw new Error("You have multiple CategoryPage components with the same stateKey: ".concat(stateKey, ". Each CategoryPage component must have a unique stateKey."));
653
653
  $e86a296a07b17ad5$var$rendered_components_with_state_key.add(stateKey);
654
- (0, $jb2Oo$onCleanup)(() => $e86a296a07b17ad5$var$rendered_components_with_state_key.delete(stateKey));
655
- return (0, $jb2Oo$CategoryPage)({
654
+ $jb2Oo$onCleanup(() => $e86a296a07b17ad5$var$rendered_components_with_state_key.delete(stateKey));
655
+ return $jb2Oo$CategoryPage({
656
656
  depict_category: depict_category(),
657
657
  get cols_at_size() {
658
658
  var _props$columnsAtSize;
@@ -662,50 +662,50 @@ function $e86a296a07b17ad5$var$SolidCategoryPage(props, set_portals) {
662
662
  var _props$gridSpacing;
663
663
  return (_props$gridSpacing = props.gridSpacing) !== null && _props$gridSpacing !== void 0 ? _props$gridSpacing : (0, $jb2Oo$defaultGridSpacing);
664
664
  },
665
- category_title: (0, $jb2Oo$untrack)(() => props.categoryTitlePlugin) || (0, $jb2Oo$defaultCategoryTitlePlugin),
665
+ category_title: $jb2Oo$untrack(() => props.categoryTitlePlugin) || (0, $jb2Oo$defaultCategoryTitlePlugin),
666
666
  get show_breadcrumbs() {
667
667
  return props.showBreadcrumbs;
668
668
  },
669
669
  get show_quicklinks() {
670
670
  return props.showQuicklinks;
671
671
  },
672
- product_card_template: display => (0, $0dd9d9a9c7da4c1d$export$79c79419c1ef0081)({
672
+ product_card_template: display => $0dd9d9a9c7da4c1d$export$79c79419c1ef0081({
673
673
  display: display,
674
- react_template: (0, $jb2Oo$untrack)(() => props.productCard),
674
+ react_template: $jb2Oo$untrack(() => props.productCard),
675
675
  component_portals: component_portals,
676
676
  set_portals: set_portals
677
677
  })
678
678
  });
679
679
  });
680
- return (0, $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035)(category, category_state_set);
680
+ return $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035(category, category_state_set);
681
681
  }
682
682
  function $ec632214ac078e79$export$5646050d516e06bc(react_props) {
683
- return (0, $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef)({
684
- solid_component: (0, $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035)($ec632214ac078e79$var$vanilla_breadcrumbs),
683
+ return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
684
+ solid_component: $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035($ec632214ac078e79$var$vanilla_breadcrumbs),
685
685
  props: react_props
686
686
  });
687
687
  }
688
688
  function $ec632214ac078e79$var$vanilla_breadcrumbs(props) {
689
689
  // memo so stateKey can be dynamically changed
690
- return (0, $jb2Oo$createMemo)(() => {
691
- const depict_category = (0, $fda7a7820477f957$export$f4d89133c6985668)("category", props.stateKey, "BreadCrumbs");
692
- return (0, $jb2Oo$BreadCrumbs)({
690
+ return $jb2Oo$createMemo(() => {
691
+ const depict_category = $fda7a7820477f957$export$f4d89133c6985668("category", props.stateKey, "BreadCrumbs");
692
+ return $jb2Oo$BreadCrumbs({
693
693
  depict_category: depict_category
694
694
  });
695
695
  });
696
696
  }
697
697
  function $c61814cfb91ead09$export$466cdc317043f6cb() {
698
698
  let react_props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
699
- return (0, $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef)({
700
- solid_component: (0, $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035)($c61814cfb91ead09$var$vanilla_quick_links),
699
+ return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
700
+ solid_component: $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035($c61814cfb91ead09$var$vanilla_quick_links),
701
701
  props: react_props
702
702
  });
703
703
  }
704
704
  function $c61814cfb91ead09$var$vanilla_quick_links(props) {
705
705
  // memo so stateKey can be dynamically changed
706
- return (0, $jb2Oo$createMemo)(() => {
707
- const depict_category = (0, $fda7a7820477f957$export$f4d89133c6985668)("category", props.stateKey, "QuickLinks");
708
- return (0, $jb2Oo$QuickLinks)({
706
+ return $jb2Oo$createMemo(() => {
707
+ const depict_category = $fda7a7820477f957$export$f4d89133c6985668("category", props.stateKey, "QuickLinks");
708
+ return $jb2Oo$QuickLinks({
709
709
  depict_category: depict_category
710
710
  });
711
711
  });
@@ -715,8 +715,8 @@ const $6406849926c3f794$export$3f37af283f8fb843 = raw_react_props => {
715
715
  class: raw_react_props.className,
716
716
  ...raw_react_props
717
717
  };
718
- return (0, $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef)({
719
- solid_component: props_store => (0, $jb2Oo$ImagePlaceholder)(props_store),
718
+ return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
719
+ solid_component: props_store => $jb2Oo$ImagePlaceholder(props_store),
720
720
  props: react_props,
721
721
  wrapper_type: "span",
722
722
  hydrate_function_when_ssr: (0, $jb2Oo$hydrate)
@@ -727,8 +727,8 @@ const $2c7738b65cbcac1c$export$89c6019e4baa40b1 = raw_react_props => {
727
727
  class: raw_react_props.className,
728
728
  ...raw_react_props
729
729
  };
730
- return (0, $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef)({
731
- solid_component: props_store => (0, $jb2Oo$TextPlaceholder)(props_store),
730
+ return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
731
+ solid_component: props_store => $jb2Oo$TextPlaceholder(props_store),
732
732
  props: react_props,
733
733
  wrapper_type: "span",
734
734
  hydrate_function_when_ssr: (0, $jb2Oo$hydrate),
@@ -743,9 +743,9 @@ const $1283ca5a3f4a4617$export$d69d8daa20eae175 = createOpenModalParams => {
743
743
  alignerRef: alignerRef,
744
744
  stateKey: stateKey
745
745
  } = createOpenModalParams;
746
- let [deduped_variable, set_deduped_variable] = (0, $jb2Oo$useState)();
746
+ let [deduped_variable, set_deduped_variable] = $jb2Oo$useState();
747
747
  // When component using this hook unmounts, "untrack" our component and dispose the search instance if needed
748
- (0, $jb2Oo$useEffect)(() => {
748
+ $jb2Oo$useEffect(() => {
749
749
  var _deduped_variable, _deduped_variable$;
750
750
  return (_deduped_variable = deduped_variable) === null || _deduped_variable === void 0 ? void 0 : (_deduped_variable$ = _deduped_variable[1]) === null || _deduped_variable$ === void 0 ? void 0 : _deduped_variable$.call(_deduped_variable);
751
751
  }, []);
@@ -753,15 +753,15 @@ const $1283ca5a3f4a4617$export$d69d8daa20eae175 = createOpenModalParams => {
753
753
  // Get the search instance and track this component, but only once (basically work around re-rendering)
754
754
  // We have to do this in the openModal function since people might call this hook before creating DepictProvider
755
755
  if (!deduped_variable) {
756
- deduped_variable = (0, $jb2Oo$createRoot)(dispose => [(0, $fda7a7820477f957$export$f4d89133c6985668)("search", stateKey, "useSearchModal"), dispose]);
756
+ deduped_variable = $jb2Oo$createRoot(dispose => [$fda7a7820477f957$export$f4d89133c6985668("search", stateKey, "useSearchModal"), dispose]);
757
757
  set_deduped_variable(deduped_variable);
758
758
  }
759
759
  const [search] = deduped_variable;
760
- if (location === "aligned" && alignerRef !== null && alignerRef !== void 0 && alignerRef.current) (0, $jb2Oo$open_modal_with_alignment)({
760
+ if (location === "aligned" && alignerRef !== null && alignerRef !== void 0 && alignerRef.current) $jb2Oo$open_modal_with_alignment({
761
761
  "element": alignerRef.current,
762
762
  "location": location,
763
763
  "search": search
764
- });else (0, $jb2Oo$open_modal_with_alignment)({
764
+ });else $jb2Oo$open_modal_with_alignment({
765
765
  "location": "centered",
766
766
  "search": search
767
767
  });
@@ -770,7 +770,7 @@ const $1283ca5a3f4a4617$export$d69d8daa20eae175 = createOpenModalParams => {
770
770
  };
771
771
  function $356d18d3ed66814e$export$912994940e660d32() {
772
772
  let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
773
- const open = (0, $1283ca5a3f4a4617$export$d69d8daa20eae175)({
773
+ const open = $1283ca5a3f4a4617$export$d69d8daa20eae175({
774
774
  globalState: $8c691d7f86317052$export$8e769ad4338a911e,
775
775
  ...params
776
776
  });
@@ -782,15 +782,15 @@ const $4c71282d292aac6d$export$9bb30bbe003b82e0 = function () {
782
782
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
783
783
  // We should just export a plain SearchField component here, not a weird hook thing, but I don't want to make a breaking change. Just fixing the re-rendering issue for now.
784
784
  // Create signal that persists across renders
785
- const [[get_aligner_signal_value, set_aligner_signal_value]] = (0, $jb2Oo$useState)((0, $jb2Oo$createSignal)());
785
+ const [[get_aligner_signal_value, set_aligner_signal_value]] = $jb2Oo$useState($jb2Oo$createSignal());
786
786
  // Update signal value when alignerRef changes
787
787
  set_aligner_signal_value(props === null || props === void 0 ? void 0 : props.alignerRef);
788
788
  // Make sure react never re-renders the actual SearchField component
789
- const componentFunction = (0, $jb2Oo$useCallback)(() => (0, $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef)({
790
- solid_component: (0, $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035)(() => {
791
- return (0, $jb2Oo$createMemo)(() => {
792
- const depict_search = (0, $fda7a7820477f957$export$f4d89133c6985668)("search", props.stateKey, "useSearchField");
793
- return (0, $jb2Oo$SearchField)({
789
+ const componentFunction = $jb2Oo$useCallback(() => $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
790
+ solid_component: $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035(() => {
791
+ return $jb2Oo$createMemo(() => {
792
+ const depict_search = $fda7a7820477f957$export$f4d89133c6985668("search", props.stateKey, "useSearchField");
793
+ return $jb2Oo$SearchField({
794
794
  depict_search: depict_search,
795
795
  get aligner_ref() {
796
796
  var _get_aligner_signal_v;
@@ -818,14 +818,14 @@ function $1895644749ca8d8a$var$fetchRecommendations(opts) {
818
818
  userId: [get_userId],
819
819
  sessionId: [get_sessionId]
820
820
  } = (0, $8c691d7f86317052$export$8e769ad4338a911e);
821
- const merchant = (0, $jb2Oo$untrack)(get_merchant);
822
- const market = (0, $jb2Oo$untrack)(get_market);
821
+ const merchant = $jb2Oo$untrack(get_merchant);
822
+ const market = $jb2Oo$untrack(get_market);
823
823
  if (!merchant || !market) throw new Error("Depict recommendations are not configured. Wrap your app in a DepictProvider.");
824
- return (0, $jb2Oo$fetchDepictRecommendations)({
824
+ return $jb2Oo$fetchDepictRecommendations({
825
825
  merchant: merchant,
826
826
  market: market,
827
- userId: (0, $jb2Oo$untrack)(get_userId),
828
- sessionId: (0, $jb2Oo$untrack)(get_sessionId),
827
+ userId: $jb2Oo$untrack(get_userId),
828
+ sessionId: $jb2Oo$untrack(get_sessionId),
829
829
  ...opts
830
830
  });
831
831
  }
@@ -840,9 +840,9 @@ const $05726fa9c7eda0a1$export$804fac5697cfbe35 = router => (relativeUrl, _ref)
840
840
  Page[Page["SEARCH"] = 1] = "SEARCH";
841
841
  Page[Page["CATEGORY"] = 2] = "CATEGORY";
842
842
  })(Page || (Page = {}));
843
- const current_page = (0, $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52)() ? Page.SEARCH : (0, $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4)() ? Page.CATEGORY : Page.OTHER;
843
+ const current_page = $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52() ? Page.SEARCH : $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4() ? Page.CATEGORY : Page.OTHER;
844
844
  const target_u_o = new URL(relativeUrl, location.origin);
845
- const target_page = (0, $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52)(target_u_o) ? Page.SEARCH : (0, $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4)(target_u_o) ? Page.CATEGORY : Page.OTHER;
845
+ const target_page = $0dd9d9a9c7da4c1d$export$775e6b3892b5ad52(target_u_o) ? Page.SEARCH : $0dd9d9a9c7da4c1d$export$30c8a12df09be0e4(target_u_o) ? Page.CATEGORY : Page.OTHER;
846
846
  router[replace ? "replace" : "push"](relativeUrl, undefined, {
847
847
  shallow: current_page === target_page && target_page !== Page.OTHER,
848
848
  scroll:
@@ -853,5 +853,5 @@ const $05726fa9c7eda0a1$export$804fac5697cfbe35 = router => (relativeUrl, _ref)
853
853
  const $a7dfdd84298ae791$export$b8a61e5c71402559 = {
854
854
  nextRouterNavigation: $05726fa9c7eda0a1$export$804fac5697cfbe35
855
855
  };
856
- (0, $jb2Oo$add_to_version_info)("react-ui", (0, $9bd9bb8700ab2ada$export$83d89fbfd8236492));
856
+ $jb2Oo$add_to_version_info("react-ui", (0, $9bd9bb8700ab2ada$export$83d89fbfd8236492));
857
857
  export { $c61814cfb91ead09$export$466cdc317043f6cb as QuickLinks, $ec632214ac078e79$export$5646050d516e06bc as BreadCrumbs, $f6a205a95e4fdee3$export$80e99ee6b29cadd2 as ComponentAligner, $18e5b9f66c7ade8e$export$9fac37a9c21c2f3b as DepictProvider, $e86a296a07b17ad5$export$f7d2f673fc2f091d as CategoryPage, $d059770e7af9e2dc$export$a54ec244c8863715 as SearchPage, $6406849926c3f794$export$3f37af283f8fb843 as ImagePlaceholder, $2c7738b65cbcac1c$export$89c6019e4baa40b1 as TextPlaceholder, $356d18d3ed66814e$export$912994940e660d32 as useSearchModal, $4c71282d292aac6d$export$9bb30bbe003b82e0 as useSearchField, $1895644749ca8d8a$export$6501da23a2770fc as useFetchRecommendations, $b34796f5ebe3470e$export$38b98fae14bd1f64 as usePerformanceClient, $383b6fd56bf151bd$re_export$CategoryTitle as CategoryTitle, $383b6fd56bf151bd$re_export$EmbeddedNumProducts as EmbeddedNumProducts, $9bd9bb8700ab2ada$export$83d89fbfd8236492 as version, $a7dfdd84298ae791$export$b8a61e5c71402559 as Navigation };