@depict-ai/ui 4.1.4 → 4.1.6

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.
@@ -12,6 +12,7 @@ function $parcel$export(e, n, v, s) {
12
12
  configurable: true
13
13
  });
14
14
  }
15
+ $parcel$export(module.exports, "promiseSafeStructuredClone", () => $ac946c6b782bb900$export$83bb9af5671e1dbe);
15
16
  $parcel$export(module.exports, "preserve_items_in_history_dot_state", () => $d84fe647b84b5dc5$export$5162a71f252e6122);
16
17
  $parcel$export(module.exports, "prefixes_to_preserve_in_history_dot_state", () => $d84fe647b84b5dc5$export$3064e1e8c6513da3);
17
18
  $parcel$export(module.exports, "allowNativeNavigation", () => $747421cd28dec5b5$export$29d28dadc2d6b631);
@@ -92,7 +93,76 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
92
93
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
93
94
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
94
95
  /*! Depict.ai search and product listing SDK */
95
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.1.4";
96
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.1.6";
97
+
98
+ /**
99
+ * This is a function that will safely clone an object that may contain promises.
100
+ * It will use structuredClone to clone the object and then re-apply (copy) any promises that were in the original object to the cloned object.
101
+ * @param obj Anything to clone
102
+ */
103
+ function $ac946c6b782bb900$export$83bb9af5671e1dbe(obj) {
104
+ if (obj instanceof Promise) return obj;
105
+ // Extract all promises, keep a map of them, and then re-apply them to both the original object and the target object after cloning
106
+ const seen = new Set();
107
+ const keyStack = [[]];
108
+ const valueStack = [obj];
109
+ const promiseLocationStack = [];
110
+ while (valueStack.length) {
111
+ const value = valueStack.pop();
112
+ const keyPath = keyStack.pop();
113
+ // Promises can only be in objects and we don't need to check for objects we've already seen (like in circular references)
114
+ if (typeof value !== "object" || value === null || seen.has(value)) continue;
115
+ seen.add(value);
116
+ if (Array.isArray(value)) {
117
+ for (let i = 0; i < value.length; i++) {
118
+ const ourValue = value[i];
119
+ const valuesKeyPath = [...keyPath, i];
120
+ if (ourValue instanceof Promise) {
121
+ promiseLocationStack.push([valuesKeyPath, ourValue]);
122
+ delete value[i]; // This will leave a hole in the array, but it's fine since we'll put it back soon
123
+ // This way both the indexes will be correct when putting the value back and our for loop doesn't get messed up
124
+ } else {
125
+ keyStack.push(valuesKeyPath);
126
+ valueStack.push(ourValue);
127
+ }
128
+ }
129
+ continue;
130
+ }
131
+ for (const innerKey in value) {
132
+ const ourValue = value[innerKey];
133
+ const valuesKeyPath = [...keyPath, innerKey];
134
+ if (ourValue instanceof Promise) {
135
+ promiseLocationStack.push([valuesKeyPath, ourValue]);
136
+ delete value[innerKey];
137
+ } else {
138
+ keyStack.push(valuesKeyPath);
139
+ valueStack.push(ourValue);
140
+ }
141
+ }
142
+ }
143
+ let structuredClonedObject;
144
+ let error;
145
+ try {
146
+ structuredClonedObject = structuredClone(obj);
147
+ } catch (e) {
148
+ // We still need to put back the promises in the original object, even if we threw an error
149
+ error = e;
150
+ }
151
+ // Put back the promises in both the original object and the cloned object
152
+ while (promiseLocationStack.length) {
153
+ const [keyPath, promise] = promiseLocationStack.pop();
154
+ let targetInClone = structuredClonedObject;
155
+ let targetInOriginal = obj;
156
+ for (let i = 0; i < keyPath.length - 1; i++) {
157
+ if (!error) targetInClone = targetInClone[keyPath[i]];
158
+ targetInOriginal = targetInOriginal[keyPath[i]];
159
+ }
160
+ if (!error) targetInClone[keyPath[keyPath.length - 1]] = promise;
161
+ targetInOriginal[keyPath[keyPath.length - 1]] = promise;
162
+ }
163
+ if (error) throw error;
164
+ return structuredClonedObject;
165
+ }
96
166
  const $d84fe647b84b5dc5$export$3064e1e8c6513da3 = new Set();
97
167
  let $d84fe647b84b5dc5$var$has_ran = false;
98
168
  function $d84fe647b84b5dc5$export$5162a71f252e6122() {
@@ -234,12 +304,42 @@ function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
234
304
  }) => signal[1](matches)).remove);
235
305
  return signal[0];
236
306
  }
307
+ var $9fe9883b1d8ecccc$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
308
+ function $9fe9883b1d8ecccc$export$acb3eaade4b23afd(props) {
309
+ // Work around https://github.com/solidjs/solid/issues/1980
310
+ return $5vyXB$solidjsweb.ssr($9fe9883b1d8ecccc$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `${$5vyXB$solidjsweb.escape(props.class, true) || ""} depict-placeholder`, $5vyXB$solidjsweb.ssrStyle(props.style));
311
+ }
312
+ function $061ff5b4c3d36171$export$89c6019e4baa40b1(props) {
313
+ const style = $5vyXB$solidjs.createMemo(() => {
314
+ const {
315
+ style: style,
316
+ height: height,
317
+ width: width
318
+ } = props;
319
+ return {
320
+ ...(style || {}),
321
+ height: height ?? "1em",
322
+ ...(width && {
323
+ width: width
324
+ })
325
+ };
326
+ });
327
+ return $5vyXB$solidjsweb.createComponent((0, $9fe9883b1d8ecccc$export$acb3eaade4b23afd), {
328
+ get style() {
329
+ return style();
330
+ },
331
+ get ["class"]() {
332
+ return props.class;
333
+ }
334
+ });
335
+ }
237
336
  var $6ae613870d3380fc$var$_tmpl$ = ["<span", ' class="title line-clamp">', "</span>"],
238
337
  $6ae613870d3380fc$var$_tmpl$2 = ["<span", ' class="brand">', "</span>"],
239
338
  $6ae613870d3380fc$var$_tmpl$3 = ["<div", ' class="tagline line-clamp">', "</div>"],
240
339
  $6ae613870d3380fc$var$_tmpl$4 = ["<span", ' class="orig price"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span>"],
241
- $6ae613870d3380fc$var$_tmpl$5 = ["<a", ' class="', '"', '><div class="img-part"><!--$-->', "<!--/--><!--$-->", '<!--/--></div><div class="right-part"><!--$-->', '<!--/--><div class="price-container"><!--$-->', '<!--/--><span class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div></a>"],
242
- $6ae613870d3380fc$var$_tmpl$6 = ["<div", ' class="title-brand-tagline">', "</div>"];
340
+ $6ae613870d3380fc$var$_tmpl$5 = ["<span", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span>"],
341
+ $6ae613870d3380fc$var$_tmpl$6 = ["<a", ' class="', '"', '><div class="img-part"><!--$-->', "<!--/--><!--$-->", '<!--/--></div><div class="right-part"><!--$-->', '<!--/--><div class="price-container"><!--$-->', "<!--/--><!--$-->", "<!--/--></div></div></a>"],
342
+ $6ae613870d3380fc$var$_tmpl$7 = ["<div", ' class="title-brand-tagline">', "</div>"];
243
343
  const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
244
344
  display_: display_,
245
345
  router_: router_,
@@ -253,13 +353,16 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
253
353
  const [get_selected_index_, set_selected_index_] = selected_index_ || [];
254
354
  const variant = display_.variant_displays[display_.variant_index];
255
355
  const href = $5vyXB$solidjs.createMemo(() => variant.page_url); // <- could be made reactive getter in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
256
- const is_sale = variant.sale_price !== variant.original_price;
356
+ // Prices can be promises, for example in our shopify app. Always assume they are (will work the same when they aren't)
357
+ const [salePrice] = $5vyXB$solidjs.createResource(() => variant.sale_price);
358
+ const [originalPrice] = $5vyXB$solidjs.createResource(() => variant.original_price);
359
+ const isOnSale = $5vyXB$solidjs.createMemo(() => salePrice() !== originalPrice());
257
360
  const supports_hover = $b54e6192d0caa293$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
258
361
  const [isSelected, selectedDueToKeyboardNavigation] = selected_index_ ? $f144ea315d9e4caa$export$fb40a80c530e5f2b(get_selected_index_, keyboardNavigationGroupIndex_, index_) : [];
259
362
  const secondary_image_url = variant.image_urls?.[1] || variant.secondary_image_url || variant.alternative_display_image_url;
260
363
  const brandInTagline = selected_index_ && variant.brand;
261
364
  const TitleBrandTagline = () => [!selected_index_ && $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(variant.brand)), $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(variant.title)), (variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline) && $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape([brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | ")))];
262
- return $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$5, $5vyXB$solidjsweb.ssrHydrationKey(), `instant-card ${isSelected?.() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false) + $5vyXB$solidjsweb.ssrAttribute("data-search-result-id", $5vyXB$solidjsweb.escape(display_.search_result_id, true), false), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(InstantCardImageComponent_, {
365
+ return $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$6, $5vyXB$solidjsweb.ssrHydrationKey(), `instant-card ${isSelected?.() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false) + $5vyXB$solidjsweb.ssrAttribute("data-search-result-id", $5vyXB$solidjsweb.escape(display_.search_result_id, true), false), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(InstantCardImageComponent_, {
263
366
  get src_() {
264
367
  return variant.image_urls?.[0] || variant.image_url || variant.display_image_url;
265
368
  }
@@ -272,32 +375,43 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
272
375
  src_: secondary_image_url
273
376
  });
274
377
  }
275
- })), selected_index_ ? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(TitleBrandTagline, {})) : $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$6, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(TitleBrandTagline, {}))), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
276
- when: is_sale,
378
+ })), selected_index_ ? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(TitleBrandTagline, {})) : $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$7, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(TitleBrandTagline, {}))), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
379
+ get when() {
380
+ return isOnSale();
381
+ },
277
382
  get children() {
278
383
  return $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$4, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(i18n_.price_formatting_().pre_), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
279
384
  get price_() {
280
- return variant.original_price;
385
+ return originalPrice();
281
386
  },
282
387
  get price_formatting_() {
283
388
  return i18n_.price_formatting_();
284
389
  }
285
390
  })), $5vyXB$solidjsweb.escape(i18n_.price_formatting_().post_));
286
391
  }
287
- })), `${"price"} ${is_sale ? "sales-price" : ""}`, $5vyXB$solidjsweb.escape(i18n_.price_formatting_().pre_), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
288
- get price_() {
289
- return variant.sale_price;
392
+ })), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
393
+ get when() {
394
+ return !salePrice.loading && salePrice.latest;
290
395
  },
291
- get price_formatting_() {
292
- return i18n_.price_formatting_();
396
+ get fallback() {
397
+ return [$5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
398
+ width: "5ch",
399
+ height: "max(1em, 100%)",
400
+ "class": "price"
401
+ }), "\xa0"];
402
+ },
403
+ get children() {
404
+ return $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$5, $5vyXB$solidjsweb.ssrHydrationKey(), `${"price"} ${isOnSale() ? "sales-price" : ""}`, $5vyXB$solidjsweb.escape(i18n_.price_formatting_().pre_), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
405
+ get price_() {
406
+ return salePrice();
407
+ },
408
+ get price_formatting_() {
409
+ return i18n_.price_formatting_();
410
+ }
411
+ })), $5vyXB$solidjsweb.escape(i18n_.price_formatting_().post_));
293
412
  }
294
- })), $5vyXB$solidjsweb.escape(i18n_.price_formatting_().post_));
413
+ })));
295
414
  };
296
- var $9fe9883b1d8ecccc$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
297
- function $9fe9883b1d8ecccc$export$acb3eaade4b23afd(props) {
298
- // Work around https://github.com/solidjs/solid/issues/1980
299
- return $5vyXB$solidjsweb.ssr($9fe9883b1d8ecccc$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `${$5vyXB$solidjsweb.escape(props.class, true) || ""} depict-placeholder`, $5vyXB$solidjsweb.ssrStyle(props.style));
300
- }
301
415
  function $3bc4a89b971a3af5$export$3f37af283f8fb843(props) {
302
416
  const style = $5vyXB$solidjs.createMemo(() => {
303
417
  const {
@@ -329,30 +443,6 @@ function $3bc4a89b971a3af5$export$3f37af283f8fb843(props) {
329
443
  }
330
444
  });
331
445
  }
332
- function $061ff5b4c3d36171$export$89c6019e4baa40b1(props) {
333
- const style = $5vyXB$solidjs.createMemo(() => {
334
- const {
335
- style: style,
336
- height: height,
337
- width: width
338
- } = props;
339
- return {
340
- ...(style || {}),
341
- height: height ?? "1em",
342
- ...(width && {
343
- width: width
344
- })
345
- };
346
- });
347
- return $5vyXB$solidjsweb.createComponent((0, $9fe9883b1d8ecccc$export$acb3eaade4b23afd), {
348
- get style() {
349
- return style();
350
- },
351
- get ["class"]() {
352
- return props.class;
353
- }
354
- });
355
- }
356
446
  var $6f604560873e4f69$var$_tmpl$ = ["<div", ' class="instant-card"><div class="img-part">', '</div><div class="right-part"><div class="title-brand-tagline"><span class="title">', '</span></div><div class="price-container">', "</div></div></div>"];
357
447
  const $6f604560873e4f69$export$8a2234b5b1a5ebd4 = "--image-aspect-ratio";
358
448
  function $6f604560873e4f69$export$ee1733d9a8495996() {
@@ -450,7 +540,12 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({
450
540
  // We had a case on singular where they popped an image url and due to use caching after some time there was no image
451
541
  // Attempt cloning the displays if possible (99.9% of the cases probably) and if not, just use the original display
452
542
  try {
453
- display = structuredClone(display);
543
+ // Use promiseSafeStructuredClone so that:
544
+ // 1. When fetching for example prices from an API, one can start that API request
545
+ // 2. Add the promise to the display
546
+ // 3. Already render the product card with placeholders for prices while the price loads
547
+ // 4. When the price loads, re-render the display with the new price
548
+ display = $ac946c6b782bb900$export$83bb9af5671e1dbe(display);
454
549
  } catch (e) {
455
550
  if (!$a73063cc642f3e5f$var$printedCloneError) {
456
551
  $a73063cc642f3e5f$var$printedCloneError = true;
@@ -508,7 +603,7 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({
508
603
  // Modified futher to bias towards saying objects are equal non-primitive objects differ
509
604
  function $a73063cc642f3e5f$var$deep_equal(obj1, obj2) {
510
605
  const stack = [[obj1, obj2]];
511
- while (stack.length > 0) {
606
+ while (stack.length) {
512
607
  const [currentObj1, currentObj2] = stack.pop();
513
608
  if (currentObj1 === currentObj2) continue;
514
609
  if (Array.isArray(currentObj1) && Array.isArray(currentObj2)) {
@@ -1985,10 +2080,10 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
1985
2080
  const src_options = $5vyXB$solidjs.createMemo(() => {
1986
2081
  const {
1987
2082
  src: src,
1988
- customGenerateImageUrl_: customGenerateImageUrl_
2083
+ customUrls: customUrls
1989
2084
  } = props;
1990
- const fallback_src = (customGenerateImageUrl_ || $19950faaac026e09$export$1d6267828870adda)(src, 400);
1991
- const srcset = $19950faaac026e09$var$make_srcset(props.src, props.resolutions || [64, 128, 256, 300, 400, 512, 640, 768, 1024, 1280, 1536, 2048, 2560, 3072, 3584, 4096], customGenerateImageUrl_);
2085
+ const fallback_src = (customUrls || $19950faaac026e09$export$1d6267828870adda)(src, 400);
2086
+ const srcset = $19950faaac026e09$var$make_srcset(props.src, props.resolutions || [64, 128, 256, 300, 400, 512, 640, 768, 1024, 1280, 1536, 2048, 2560, 3072, 3584, 4096], customUrls);
1992
2087
  // The order here *might* matter - I've seen mobile safari always start with loading the 400px version when it was reversed
1993
2088
  return {
1994
2089
  srcset: srcset,
@@ -1997,7 +2092,9 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
1997
2092
  });
1998
2093
  // Work around https://github.com/solidjs/solid/issues/1828
1999
2094
  const img = new Image(); // Need to use new Image or browser might not start loading image before it's in the DOM
2000
- const [, otherAttributes] = $5vyXB$solidjs.splitProps(props, ["resolutions", "size", "src", "srcSet", "loading"]);
2095
+ const [, otherAttributes] = $5vyXB$solidjs.splitProps(props, ["resolutions", "size", "src", "srcSet", "loading", "customUrls" // Can't have properties ending on underscore because the property name mangling will get confused by this <-
2096
+ ]);
2097
+
2001
2098
  const [hasSetSize, setHasSetSize] = $5vyXB$solidjs.createSignal(false);
2002
2099
  const [hasDecoded, setHasDecoded] = $5vyXB$solidjs.createSignal(false);
2003
2100
  const productCardIndexAccessor = $129b9b9c010039d0$export$e3faf4d95300054f();
@@ -2193,7 +2290,7 @@ function $e8327f98c8ee28d7$export$9d4a4b669b1929ab(props) {
2193
2290
  get imgProps() {
2194
2291
  return {
2195
2292
  ...props.imgProps,
2196
- customGenerateImageUrl_: (url, width // Apparently don't have to encode url for CF's service
2293
+ customUrls: (url, width // Apparently don't have to encode url for CF's service
2197
2294
  ) => {
2198
2295
  if (url.startsWith("https://cdn.shopify.com"))
2199
2296
  // The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
@@ -10,7 +10,13 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.1.4";
13
+ export const version = "4.1.6";
14
+ /**
15
+ * This is a function that will safely clone an object that may contain promises.
16
+ * It will use structuredClone to clone the object and then re-apply (copy) any promises that were in the original object to the cloned object.
17
+ * @param obj Anything to clone
18
+ */
19
+ export function promiseSafeStructuredClone<T>(obj: T): T;
14
20
  export const prefixes_to_preserve_in_history_dot_state: Set<string>;
15
21
  /**
16
22
  * Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
@@ -436,7 +442,7 @@ export function ShopifyResponsiveImg(props: {
436
442
  size: Accessor<number>;
437
443
  src: string;
438
444
  loading?: "eager" | "lazy" | "force-lazy";
439
- customGenerateImageUrl_?: (url: string, width: number) => string;
445
+ customUrls?: (url: string, width: number) => string;
440
446
  } & Omit<JSX.ImgHTMLAttributes<HTMLImageElement>, "srcset" | "src" | "sizes" | "loading">): JSX.Element;
441
447
  type ImagePlaceholderBaseOptions = {
442
448
  style?: JSX.CSSProperties;
@@ -7,7 +7,76 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.1.4";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.1.6";
11
+
12
+ /**
13
+ * This is a function that will safely clone an object that may contain promises.
14
+ * It will use structuredClone to clone the object and then re-apply (copy) any promises that were in the original object to the cloned object.
15
+ * @param obj Anything to clone
16
+ */
17
+ function $de6ccd37192b5fc2$export$83bb9af5671e1dbe(obj) {
18
+ if (obj instanceof Promise) return obj;
19
+ // Extract all promises, keep a map of them, and then re-apply them to both the original object and the target object after cloning
20
+ const seen = new Set();
21
+ const keyStack = [[]];
22
+ const valueStack = [obj];
23
+ const promiseLocationStack = [];
24
+ while (valueStack.length) {
25
+ const value = valueStack.pop();
26
+ const keyPath = keyStack.pop();
27
+ // Promises can only be in objects and we don't need to check for objects we've already seen (like in circular references)
28
+ if (typeof value !== "object" || value === null || seen.has(value)) continue;
29
+ seen.add(value);
30
+ if (Array.isArray(value)) {
31
+ for (let i = 0; i < value.length; i++) {
32
+ const ourValue = value[i];
33
+ const valuesKeyPath = [...keyPath, i];
34
+ if (ourValue instanceof Promise) {
35
+ promiseLocationStack.push([valuesKeyPath, ourValue]);
36
+ delete value[i]; // This will leave a hole in the array, but it's fine since we'll put it back soon
37
+ // This way both the indexes will be correct when putting the value back and our for loop doesn't get messed up
38
+ } else {
39
+ keyStack.push(valuesKeyPath);
40
+ valueStack.push(ourValue);
41
+ }
42
+ }
43
+ continue;
44
+ }
45
+ for (const innerKey in value) {
46
+ const ourValue = value[innerKey];
47
+ const valuesKeyPath = [...keyPath, innerKey];
48
+ if (ourValue instanceof Promise) {
49
+ promiseLocationStack.push([valuesKeyPath, ourValue]);
50
+ delete value[innerKey];
51
+ } else {
52
+ keyStack.push(valuesKeyPath);
53
+ valueStack.push(ourValue);
54
+ }
55
+ }
56
+ }
57
+ let structuredClonedObject;
58
+ let error;
59
+ try {
60
+ structuredClonedObject = structuredClone(obj);
61
+ } catch (e) {
62
+ // We still need to put back the promises in the original object, even if we threw an error
63
+ error = e;
64
+ }
65
+ // Put back the promises in both the original object and the cloned object
66
+ while (promiseLocationStack.length) {
67
+ const [keyPath, promise] = promiseLocationStack.pop();
68
+ let targetInClone = structuredClonedObject;
69
+ let targetInOriginal = obj;
70
+ for (let i = 0; i < keyPath.length - 1; i++) {
71
+ if (!error) targetInClone = targetInClone[keyPath[i]];
72
+ targetInOriginal = targetInOriginal[keyPath[i]];
73
+ }
74
+ if (!error) targetInClone[keyPath[keyPath.length - 1]] = promise;
75
+ targetInOriginal[keyPath[keyPath.length - 1]] = promise;
76
+ }
77
+ if (error) throw error;
78
+ return structuredClonedObject;
79
+ }
11
80
  const $90980bd87c9960f9$export$3064e1e8c6513da3 = new Set();
12
81
  let $90980bd87c9960f9$var$has_ran = false;
13
82
  function $90980bd87c9960f9$export$5162a71f252e6122() {
@@ -149,12 +218,42 @@ function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
149
218
  }) => signal[1](matches)).remove);
150
219
  return signal[0];
151
220
  }
221
+ var $d20eff0aadc28983$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
222
+ function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
223
+ // Work around https://github.com/solidjs/solid/issues/1980
224
+ return $i7OB2$ssr($d20eff0aadc28983$var$_tmpl$, $i7OB2$ssrHydrationKey(), `${$i7OB2$escape(props.class, true) || ""} depict-placeholder`, $i7OB2$ssrStyle(props.style));
225
+ }
226
+ function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
227
+ const style = $i7OB2$createMemo(() => {
228
+ const {
229
+ style: style,
230
+ height: height,
231
+ width: width
232
+ } = props;
233
+ return {
234
+ ...(style || {}),
235
+ height: height ?? "1em",
236
+ ...(width && {
237
+ width: width
238
+ })
239
+ };
240
+ });
241
+ return $i7OB2$createComponent((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
242
+ get style() {
243
+ return style();
244
+ },
245
+ get ["class"]() {
246
+ return props.class;
247
+ }
248
+ });
249
+ }
152
250
  var $e003be2a50d9e5bc$var$_tmpl$ = ["<span", ' class="title line-clamp">', "</span>"],
153
251
  $e003be2a50d9e5bc$var$_tmpl$2 = ["<span", ' class="brand">', "</span>"],
154
252
  $e003be2a50d9e5bc$var$_tmpl$3 = ["<div", ' class="tagline line-clamp">', "</div>"],
155
253
  $e003be2a50d9e5bc$var$_tmpl$4 = ["<span", ' class="orig price"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span>"],
156
- $e003be2a50d9e5bc$var$_tmpl$5 = ["<a", ' class="', '"', '><div class="img-part"><!--$-->', "<!--/--><!--$-->", '<!--/--></div><div class="right-part"><!--$-->', '<!--/--><div class="price-container"><!--$-->', '<!--/--><span class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div></a>"],
157
- $e003be2a50d9e5bc$var$_tmpl$6 = ["<div", ' class="title-brand-tagline">', "</div>"];
254
+ $e003be2a50d9e5bc$var$_tmpl$5 = ["<span", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span>"],
255
+ $e003be2a50d9e5bc$var$_tmpl$6 = ["<a", ' class="', '"', '><div class="img-part"><!--$-->', "<!--/--><!--$-->", '<!--/--></div><div class="right-part"><!--$-->', '<!--/--><div class="price-container"><!--$-->', "<!--/--><!--$-->", "<!--/--></div></div></a>"],
256
+ $e003be2a50d9e5bc$var$_tmpl$7 = ["<div", ' class="title-brand-tagline">', "</div>"];
158
257
  const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = ({
159
258
  display_: display_,
160
259
  router_: router_,
@@ -168,13 +267,16 @@ const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = ({
168
267
  const [get_selected_index_, set_selected_index_] = selected_index_ || [];
169
268
  const variant = display_.variant_displays[display_.variant_index];
170
269
  const href = $i7OB2$createMemo(() => variant.page_url); // <- could be made reactive getter in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
171
- const is_sale = variant.sale_price !== variant.original_price;
270
+ // Prices can be promises, for example in our shopify app. Always assume they are (will work the same when they aren't)
271
+ const [salePrice] = $i7OB2$createResource(() => variant.sale_price);
272
+ const [originalPrice] = $i7OB2$createResource(() => variant.original_price);
273
+ const isOnSale = $i7OB2$createMemo(() => salePrice() !== originalPrice());
172
274
  const supports_hover = $dc9262ef6f786812$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
173
275
  const [isSelected, selectedDueToKeyboardNavigation] = selected_index_ ? $f4125ce4984deee6$export$fb40a80c530e5f2b(get_selected_index_, keyboardNavigationGroupIndex_, index_) : [];
174
276
  const secondary_image_url = variant.image_urls?.[1] || variant.secondary_image_url || variant.alternative_display_image_url;
175
277
  const brandInTagline = selected_index_ && variant.brand;
176
278
  const TitleBrandTagline = () => [!selected_index_ && $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape(variant.brand)), $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(variant.title)), (variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline) && $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape([brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | ")))];
177
- return $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$5, $i7OB2$ssrHydrationKey(), `instant-card ${isSelected?.() ? "selected" : ""}`, $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false) + $i7OB2$ssrAttribute("data-search-result-id", $i7OB2$escape(display_.search_result_id, true), false), $i7OB2$escape($i7OB2$createComponent(InstantCardImageComponent_, {
279
+ return $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$6, $i7OB2$ssrHydrationKey(), `instant-card ${isSelected?.() ? "selected" : ""}`, $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false) + $i7OB2$ssrAttribute("data-search-result-id", $i7OB2$escape(display_.search_result_id, true), false), $i7OB2$escape($i7OB2$createComponent(InstantCardImageComponent_, {
178
280
  get src_() {
179
281
  return variant.image_urls?.[0] || variant.image_url || variant.display_image_url;
180
282
  }
@@ -187,32 +289,43 @@ const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = ({
187
289
  src_: secondary_image_url
188
290
  });
189
291
  }
190
- })), selected_index_ ? $i7OB2$escape($i7OB2$createComponent(TitleBrandTagline, {})) : $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$6, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(TitleBrandTagline, {}))), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
191
- when: is_sale,
292
+ })), selected_index_ ? $i7OB2$escape($i7OB2$createComponent(TitleBrandTagline, {})) : $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$7, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(TitleBrandTagline, {}))), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
293
+ get when() {
294
+ return isOnSale();
295
+ },
192
296
  get children() {
193
297
  return $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$4, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.price_formatting_().pre_), $i7OB2$escape($i7OB2$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
194
298
  get price_() {
195
- return variant.original_price;
299
+ return originalPrice();
196
300
  },
197
301
  get price_formatting_() {
198
302
  return i18n_.price_formatting_();
199
303
  }
200
304
  })), $i7OB2$escape(i18n_.price_formatting_().post_));
201
305
  }
202
- })), `${"price"} ${is_sale ? "sales-price" : ""}`, $i7OB2$escape(i18n_.price_formatting_().pre_), $i7OB2$escape($i7OB2$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
203
- get price_() {
204
- return variant.sale_price;
306
+ })), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
307
+ get when() {
308
+ return !salePrice.loading && salePrice.latest;
205
309
  },
206
- get price_formatting_() {
207
- return i18n_.price_formatting_();
310
+ get fallback() {
311
+ return [$i7OB2$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
312
+ width: "5ch",
313
+ height: "max(1em, 100%)",
314
+ "class": "price"
315
+ }), "\xa0"];
316
+ },
317
+ get children() {
318
+ return $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$5, $i7OB2$ssrHydrationKey(), `${"price"} ${isOnSale() ? "sales-price" : ""}`, $i7OB2$escape(i18n_.price_formatting_().pre_), $i7OB2$escape($i7OB2$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
319
+ get price_() {
320
+ return salePrice();
321
+ },
322
+ get price_formatting_() {
323
+ return i18n_.price_formatting_();
324
+ }
325
+ })), $i7OB2$escape(i18n_.price_formatting_().post_));
208
326
  }
209
- })), $i7OB2$escape(i18n_.price_formatting_().post_));
327
+ })));
210
328
  };
211
- var $d20eff0aadc28983$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
212
- function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
213
- // Work around https://github.com/solidjs/solid/issues/1980
214
- return $i7OB2$ssr($d20eff0aadc28983$var$_tmpl$, $i7OB2$ssrHydrationKey(), `${$i7OB2$escape(props.class, true) || ""} depict-placeholder`, $i7OB2$ssrStyle(props.style));
215
- }
216
329
  function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
217
330
  const style = $i7OB2$createMemo(() => {
218
331
  const {
@@ -244,30 +357,6 @@ function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
244
357
  }
245
358
  });
246
359
  }
247
- function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
248
- const style = $i7OB2$createMemo(() => {
249
- const {
250
- style: style,
251
- height: height,
252
- width: width
253
- } = props;
254
- return {
255
- ...(style || {}),
256
- height: height ?? "1em",
257
- ...(width && {
258
- width: width
259
- })
260
- };
261
- });
262
- return $i7OB2$createComponent((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
263
- get style() {
264
- return style();
265
- },
266
- get ["class"]() {
267
- return props.class;
268
- }
269
- });
270
- }
271
360
  var $bb15dfb548a7666e$var$_tmpl$ = ["<div", ' class="instant-card"><div class="img-part">', '</div><div class="right-part"><div class="title-brand-tagline"><span class="title">', '</span></div><div class="price-container">', "</div></div></div>"];
272
361
  const $bb15dfb548a7666e$export$8a2234b5b1a5ebd4 = "--image-aspect-ratio";
273
362
  function $bb15dfb548a7666e$export$ee1733d9a8495996() {
@@ -365,7 +454,12 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
365
454
  // We had a case on singular where they popped an image url and due to use caching after some time there was no image
366
455
  // Attempt cloning the displays if possible (99.9% of the cases probably) and if not, just use the original display
367
456
  try {
368
- display = structuredClone(display);
457
+ // Use promiseSafeStructuredClone so that:
458
+ // 1. When fetching for example prices from an API, one can start that API request
459
+ // 2. Add the promise to the display
460
+ // 3. Already render the product card with placeholders for prices while the price loads
461
+ // 4. When the price loads, re-render the display with the new price
462
+ display = $de6ccd37192b5fc2$export$83bb9af5671e1dbe(display);
369
463
  } catch (e) {
370
464
  if (!$29ec7cddbe1d3484$var$printedCloneError) {
371
465
  $29ec7cddbe1d3484$var$printedCloneError = true;
@@ -423,7 +517,7 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
423
517
  // Modified futher to bias towards saying objects are equal non-primitive objects differ
424
518
  function $29ec7cddbe1d3484$var$deep_equal(obj1, obj2) {
425
519
  const stack = [[obj1, obj2]];
426
- while (stack.length > 0) {
520
+ while (stack.length) {
427
521
  const [currentObj1, currentObj2] = stack.pop();
428
522
  if (currentObj1 === currentObj2) continue;
429
523
  if (Array.isArray(currentObj1) && Array.isArray(currentObj2)) {
@@ -1900,10 +1994,10 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
1900
1994
  const src_options = $i7OB2$createMemo(() => {
1901
1995
  const {
1902
1996
  src: src,
1903
- customGenerateImageUrl_: customGenerateImageUrl_
1997
+ customUrls: customUrls
1904
1998
  } = props;
1905
- const fallback_src = (customGenerateImageUrl_ || $e8ffe11ed01df0fe$export$1d6267828870adda)(src, 400);
1906
- const srcset = $e8ffe11ed01df0fe$var$make_srcset(props.src, props.resolutions || [64, 128, 256, 300, 400, 512, 640, 768, 1024, 1280, 1536, 2048, 2560, 3072, 3584, 4096], customGenerateImageUrl_);
1999
+ const fallback_src = (customUrls || $e8ffe11ed01df0fe$export$1d6267828870adda)(src, 400);
2000
+ const srcset = $e8ffe11ed01df0fe$var$make_srcset(props.src, props.resolutions || [64, 128, 256, 300, 400, 512, 640, 768, 1024, 1280, 1536, 2048, 2560, 3072, 3584, 4096], customUrls);
1907
2001
  // The order here *might* matter - I've seen mobile safari always start with loading the 400px version when it was reversed
1908
2002
  return {
1909
2003
  srcset: srcset,
@@ -1912,7 +2006,9 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
1912
2006
  });
1913
2007
  // Work around https://github.com/solidjs/solid/issues/1828
1914
2008
  const img = new Image(); // Need to use new Image or browser might not start loading image before it's in the DOM
1915
- const [, otherAttributes] = $i7OB2$splitProps(props, ["resolutions", "size", "src", "srcSet", "loading"]);
2009
+ const [, otherAttributes] = $i7OB2$splitProps(props, ["resolutions", "size", "src", "srcSet", "loading", "customUrls" // Can't have properties ending on underscore because the property name mangling will get confused by this <-
2010
+ ]);
2011
+
1916
2012
  const [hasSetSize, setHasSetSize] = $i7OB2$createSignal(false);
1917
2013
  const [hasDecoded, setHasDecoded] = $i7OB2$createSignal(false);
1918
2014
  const productCardIndexAccessor = $b6440e72ed83671a$export$e3faf4d95300054f();
@@ -2108,7 +2204,7 @@ function $4f16612bea257571$export$9d4a4b669b1929ab(props) {
2108
2204
  get imgProps() {
2109
2205
  return {
2110
2206
  ...props.imgProps,
2111
- customGenerateImageUrl_: (url, width // Apparently don't have to encode url for CF's service
2207
+ customUrls: (url, width // Apparently don't have to encode url for CF's service
2112
2208
  ) => {
2113
2209
  if (url.startsWith("https://cdn.shopify.com"))
2114
2210
  // The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
@@ -11793,4 +11889,4 @@ function $58b3487626e85ece$var$align_field_modal(alignmentSignals, input, modalV
11793
11889
  });
11794
11890
  }
11795
11891
  $i7OB2$add_to_version_info("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
11796
- export { $90980bd87c9960f9$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $90980bd87c9960f9$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $a281666e5c15c2ec$export$29d28dadc2d6b631 as allowNativeNavigation, $66db7a014e20802e$export$1ea76ea778b880dd as modalVersionSymbol, $136f1d4d6c7ba6ac$export$e417c49320921907 as createDeparallelizedNoDropResource, $d8dbf52fea1773e2$export$f50b88e2a00918b5 as throw_globally, $42912431795f188e$export$9265e66f26f8e383 as ClassicSearchModal, $500a16dd18ee5a71$export$b0c55aa2e87c4be7 as SearchModalV2, $4f16612bea257571$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $024fbc0a2d796fad$export$3e41faf802a29e71 as Tab, $024fbc0a2d796fad$export$b2539bed5023c21c as Tabs, $8560c919ff763930$export$d4973c31938cbfd1 as ShopTheLookButton, $ca6f574bd8772184$export$e183a13865960371 as history_dot_state_to_state, $4147651646da990a$export$916e6850778505f6 as strip_encoded_filter_and_sort, $4147651646da990a$export$58aa3f171519b6d7 as encode_filters, $4147651646da990a$export$f934fa24c3a86811 as decode_filters, $4147651646da990a$export$62acb285a7579555 as encode_sorting, $4147651646da990a$export$766e9676e74997d3 as decode_sorting, $660070e2a394b3c3$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $011607bdf658f807$export$e68cff63f76bd15b as ListingProvider, $011607bdf658f807$export$8d0c4fdbb05a2f2e as useListing, $b6440e72ed83671a$export$11354f017ddc9790 as ProductCardIndexProvider, $b6440e72ed83671a$export$e3faf4d95300054f as useProductCardIndex, $660070e2a394b3c3$export$e4b984597b71e989 as ShopifyContainedImage, $f32e14878e75af51$export$6649caad96ef8870 as SlidableItems, $2449872a62a75a20$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $ee116da074deb002$export$9574e176201e5e8d as RecommendationSlider, $9ea5383493360761$export$9756467d34d91cdb as RecommendationGrid, $e8ffe11ed01df0fe$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $e8ffe11ed01df0fe$export$e6fffe67d4cdd848 as makeSizeAccessor, $f18d425032111270$export$94026ee33dbabc26 as ImageContainer, $b7436a6d1fd64e3b$export$b69d0d92862de18b as SentryErrorBoundary, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d as ExpandingDetails, $c16e74cfe125bb05$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $1adfe60f3a14a1d7$export$fecbb157621501bd as SelectedFilters, $fab07f52c9861732$export$3f1a388cc0d8fed7 as FilterBody, $5efb5894079b220e$export$b288c38ae3fddb56 as create_modified_filters, $c8d5ff4524619fcd$export$d21e32dfedac04be as SolidLayout, $194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $a0f0e923bad68a9b$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $4b2134398dfa83fa$export$c1a6b039e689a58e as get_listings, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b6d5529b253681aa$export$3f238c96c45e6cc6 as ALIGN_TOP, $b6d5529b253681aa$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $b6d5529b253681aa$export$7895aadd1956b1c7 as ALIGN_LEFT, $b6d5529b253681aa$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version, $58b3487626e85ece$export$316f6f283ae64765 as SearchField };
11892
+ export { $de6ccd37192b5fc2$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $90980bd87c9960f9$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $90980bd87c9960f9$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $a281666e5c15c2ec$export$29d28dadc2d6b631 as allowNativeNavigation, $66db7a014e20802e$export$1ea76ea778b880dd as modalVersionSymbol, $136f1d4d6c7ba6ac$export$e417c49320921907 as createDeparallelizedNoDropResource, $d8dbf52fea1773e2$export$f50b88e2a00918b5 as throw_globally, $42912431795f188e$export$9265e66f26f8e383 as ClassicSearchModal, $500a16dd18ee5a71$export$b0c55aa2e87c4be7 as SearchModalV2, $4f16612bea257571$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $024fbc0a2d796fad$export$3e41faf802a29e71 as Tab, $024fbc0a2d796fad$export$b2539bed5023c21c as Tabs, $8560c919ff763930$export$d4973c31938cbfd1 as ShopTheLookButton, $ca6f574bd8772184$export$e183a13865960371 as history_dot_state_to_state, $4147651646da990a$export$916e6850778505f6 as strip_encoded_filter_and_sort, $4147651646da990a$export$58aa3f171519b6d7 as encode_filters, $4147651646da990a$export$f934fa24c3a86811 as decode_filters, $4147651646da990a$export$62acb285a7579555 as encode_sorting, $4147651646da990a$export$766e9676e74997d3 as decode_sorting, $660070e2a394b3c3$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $011607bdf658f807$export$e68cff63f76bd15b as ListingProvider, $011607bdf658f807$export$8d0c4fdbb05a2f2e as useListing, $b6440e72ed83671a$export$11354f017ddc9790 as ProductCardIndexProvider, $b6440e72ed83671a$export$e3faf4d95300054f as useProductCardIndex, $660070e2a394b3c3$export$e4b984597b71e989 as ShopifyContainedImage, $f32e14878e75af51$export$6649caad96ef8870 as SlidableItems, $2449872a62a75a20$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $ee116da074deb002$export$9574e176201e5e8d as RecommendationSlider, $9ea5383493360761$export$9756467d34d91cdb as RecommendationGrid, $e8ffe11ed01df0fe$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $e8ffe11ed01df0fe$export$e6fffe67d4cdd848 as makeSizeAccessor, $f18d425032111270$export$94026ee33dbabc26 as ImageContainer, $b7436a6d1fd64e3b$export$b69d0d92862de18b as SentryErrorBoundary, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d as ExpandingDetails, $c16e74cfe125bb05$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $1adfe60f3a14a1d7$export$fecbb157621501bd as SelectedFilters, $fab07f52c9861732$export$3f1a388cc0d8fed7 as FilterBody, $5efb5894079b220e$export$b288c38ae3fddb56 as create_modified_filters, $c8d5ff4524619fcd$export$d21e32dfedac04be as SolidLayout, $194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $a0f0e923bad68a9b$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $4b2134398dfa83fa$export$c1a6b039e689a58e as get_listings, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b6d5529b253681aa$export$3f238c96c45e6cc6 as ALIGN_TOP, $b6d5529b253681aa$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $b6d5529b253681aa$export$7895aadd1956b1c7 as ALIGN_LEFT, $b6d5529b253681aa$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version, $58b3487626e85ece$export$316f6f283ae64765 as SearchField };