@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.
@@ -18,6 +18,7 @@ function $parcel$export(e, n, v, s) {
18
18
  function $parcel$interopDefault(a) {
19
19
  return a && a.__esModule ? a.default : a;
20
20
  }
21
+ $parcel$export(module.exports, "promiseSafeStructuredClone", () => $400d96565bbbfe07$export$83bb9af5671e1dbe);
21
22
  $parcel$export(module.exports, "preserve_items_in_history_dot_state", () => $cfcd56242923775d$export$5162a71f252e6122);
22
23
  $parcel$export(module.exports, "prefixes_to_preserve_in_history_dot_state", () => $cfcd56242923775d$export$3064e1e8c6513da3);
23
24
  $parcel$export(module.exports, "allowNativeNavigation", () => $9ca08bcacbc598ce$export$29d28dadc2d6b631);
@@ -98,7 +99,76 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
98
99
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
99
100
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
100
101
  /*! Depict.ai search and product listing SDK */
101
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.1.4";
102
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.1.6";
103
+
104
+ /**
105
+ * This is a function that will safely clone an object that may contain promises.
106
+ * 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.
107
+ * @param obj Anything to clone
108
+ */
109
+ function $400d96565bbbfe07$export$83bb9af5671e1dbe(obj) {
110
+ if (obj instanceof Promise) return obj;
111
+ // Extract all promises, keep a map of them, and then re-apply them to both the original object and the target object after cloning
112
+ const seen = new Set();
113
+ const keyStack = [[]];
114
+ const valueStack = [obj];
115
+ const promiseLocationStack = [];
116
+ while (valueStack.length) {
117
+ const value = valueStack.pop();
118
+ const keyPath = keyStack.pop();
119
+ // Promises can only be in objects and we don't need to check for objects we've already seen (like in circular references)
120
+ if (typeof value !== "object" || value === null || seen.has(value)) continue;
121
+ seen.add(value);
122
+ if (Array.isArray(value)) {
123
+ for (let i = 0; i < value.length; i++) {
124
+ const ourValue = value[i];
125
+ const valuesKeyPath = [...keyPath, i];
126
+ if (ourValue instanceof Promise) {
127
+ promiseLocationStack.push([valuesKeyPath, ourValue]);
128
+ delete value[i]; // This will leave a hole in the array, but it's fine since we'll put it back soon
129
+ // This way both the indexes will be correct when putting the value back and our for loop doesn't get messed up
130
+ } else {
131
+ keyStack.push(valuesKeyPath);
132
+ valueStack.push(ourValue);
133
+ }
134
+ }
135
+ continue;
136
+ }
137
+ for (const innerKey in value) {
138
+ const ourValue = value[innerKey];
139
+ const valuesKeyPath = [...keyPath, innerKey];
140
+ if (ourValue instanceof Promise) {
141
+ promiseLocationStack.push([valuesKeyPath, ourValue]);
142
+ delete value[innerKey];
143
+ } else {
144
+ keyStack.push(valuesKeyPath);
145
+ valueStack.push(ourValue);
146
+ }
147
+ }
148
+ }
149
+ let structuredClonedObject;
150
+ let error;
151
+ try {
152
+ structuredClonedObject = structuredClone(obj);
153
+ } catch (e) {
154
+ // We still need to put back the promises in the original object, even if we threw an error
155
+ error = e;
156
+ }
157
+ // Put back the promises in both the original object and the cloned object
158
+ while (promiseLocationStack.length) {
159
+ const [keyPath, promise] = promiseLocationStack.pop();
160
+ let targetInClone = structuredClonedObject;
161
+ let targetInOriginal = obj;
162
+ for (let i = 0; i < keyPath.length - 1; i++) {
163
+ if (!error) targetInClone = targetInClone[keyPath[i]];
164
+ targetInOriginal = targetInOriginal[keyPath[i]];
165
+ }
166
+ if (!error) targetInClone[keyPath[keyPath.length - 1]] = promise;
167
+ targetInOriginal[keyPath[keyPath.length - 1]] = promise;
168
+ }
169
+ if (error) throw error;
170
+ return structuredClonedObject;
171
+ }
102
172
  const $cfcd56242923775d$export$3064e1e8c6513da3 = new Set();
103
173
  let $cfcd56242923775d$var$has_ran = false;
104
174
  function $cfcd56242923775d$export$5162a71f252e6122() {
@@ -245,12 +315,42 @@ function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
245
315
  }).remove);
246
316
  return signal[0];
247
317
  }
318
+ var $e3d733f899558f40$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
319
+ function $e3d733f899558f40$export$acb3eaade4b23afd(props) {
320
+ // Work around https://github.com/solidjs/solid/issues/1980
321
+ return $3hooq$solidjsweb.ssr($e3d733f899558f40$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "".concat($3hooq$solidjsweb.escape(props.class, true) || "", " depict-placeholder"), $3hooq$solidjsweb.ssrStyle(props.style));
322
+ }
323
+ function $a7f7d416e6f61504$export$89c6019e4baa40b1(props) {
324
+ const style = $3hooq$solidjs.createMemo(() => {
325
+ const {
326
+ style: style,
327
+ height: height,
328
+ width: width
329
+ } = props;
330
+ return {
331
+ ...(style || {}),
332
+ height: height !== null && height !== void 0 ? height : "1em",
333
+ ...(width && {
334
+ width: width
335
+ })
336
+ };
337
+ });
338
+ return $3hooq$solidjsweb.createComponent((0, $e3d733f899558f40$export$acb3eaade4b23afd), {
339
+ get style() {
340
+ return style();
341
+ },
342
+ get ["class"]() {
343
+ return props.class;
344
+ }
345
+ });
346
+ }
248
347
  var $82d079b68975fbf7$var$_tmpl$ = ["<span", ' class="title line-clamp">', "</span>"],
249
348
  $82d079b68975fbf7$var$_tmpl$2 = ["<span", ' class="brand">', "</span>"],
250
349
  $82d079b68975fbf7$var$_tmpl$3 = ["<div", ' class="tagline line-clamp">', "</div>"],
251
350
  $82d079b68975fbf7$var$_tmpl$4 = ["<span", ' class="orig price"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span>"],
252
- $82d079b68975fbf7$var$_tmpl$5 = ["<a", ' class="', '"', '><div class="img-part"><!--$-->', "<!--/--><!--$-->", '<!--/--></div><div class="right-part"><!--$-->', '<!--/--><div class="price-container"><!--$-->', '<!--/--><span class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div></a>"],
253
- $82d079b68975fbf7$var$_tmpl$6 = ["<div", ' class="title-brand-tagline">', "</div>"];
351
+ $82d079b68975fbf7$var$_tmpl$5 = ["<span", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span>"],
352
+ $82d079b68975fbf7$var$_tmpl$6 = ["<a", ' class="', '"', '><div class="img-part"><!--$-->', "<!--/--><!--$-->", '<!--/--></div><div class="right-part"><!--$-->', '<!--/--><div class="price-container"><!--$-->', "<!--/--><!--$-->", "<!--/--></div></div></a>"],
353
+ $82d079b68975fbf7$var$_tmpl$7 = ["<div", ' class="title-brand-tagline">', "</div>"];
254
354
  const $82d079b68975fbf7$export$b05c0ae390cf3e06 = _ref => {
255
355
  var _variant$image_urls;
256
356
  let {
@@ -266,13 +366,16 @@ const $82d079b68975fbf7$export$b05c0ae390cf3e06 = _ref => {
266
366
  const [get_selected_index_, set_selected_index_] = selected_index_ || [];
267
367
  const variant = display_.variant_displays[display_.variant_index];
268
368
  const href = $3hooq$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
269
- const is_sale = variant.sale_price !== variant.original_price;
369
+ // Prices can be promises, for example in our shopify app. Always assume they are (will work the same when they aren't)
370
+ const [salePrice] = $3hooq$solidjs.createResource(() => variant.sale_price);
371
+ const [originalPrice] = $3hooq$solidjs.createResource(() => variant.original_price);
372
+ const isOnSale = $3hooq$solidjs.createMemo(() => salePrice() !== originalPrice());
270
373
  const supports_hover = $3e17e871e9d0911d$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
271
374
  const [isSelected, selectedDueToKeyboardNavigation] = selected_index_ ? $b0f8d9f49e018db9$export$fb40a80c530e5f2b(get_selected_index_, keyboardNavigationGroupIndex_, index_) : [];
272
375
  const secondary_image_url = ((_variant$image_urls = variant.image_urls) === null || _variant$image_urls === void 0 ? void 0 : _variant$image_urls[1]) || variant.secondary_image_url || variant.alternative_display_image_url;
273
376
  const brandInTagline = selected_index_ && variant.brand;
274
377
  const TitleBrandTagline = () => [!selected_index_ && $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(variant.brand)), $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(variant.title)), (variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline) && $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape([brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | ")))];
275
- return $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$5, $3hooq$solidjsweb.ssrHydrationKey(), "instant-card ".concat(isSelected !== null && isSelected !== void 0 && isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false) + $3hooq$solidjsweb.ssrAttribute("data-search-result-id", $3hooq$solidjsweb.escape(display_.search_result_id, true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(InstantCardImageComponent_, {
378
+ return $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), "instant-card ".concat(isSelected !== null && isSelected !== void 0 && isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false) + $3hooq$solidjsweb.ssrAttribute("data-search-result-id", $3hooq$solidjsweb.escape(display_.search_result_id, true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(InstantCardImageComponent_, {
276
379
  get src_() {
277
380
  var _variant$image_urls2;
278
381
  return ((_variant$image_urls2 = variant.image_urls) === null || _variant$image_urls2 === void 0 ? void 0 : _variant$image_urls2[0]) || variant.image_url || variant.display_image_url;
@@ -286,32 +389,43 @@ const $82d079b68975fbf7$export$b05c0ae390cf3e06 = _ref => {
286
389
  src_: secondary_image_url
287
390
  });
288
391
  }
289
- })), selected_index_ ? $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(TitleBrandTagline, {})) : $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(TitleBrandTagline, {}))), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
290
- when: is_sale,
392
+ })), selected_index_ ? $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(TitleBrandTagline, {})) : $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$7, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(TitleBrandTagline, {}))), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
393
+ get when() {
394
+ return isOnSale();
395
+ },
291
396
  get children() {
292
397
  return $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$4, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(i18n_.price_formatting_().pre_), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
293
398
  get price_() {
294
- return variant.original_price;
399
+ return originalPrice();
295
400
  },
296
401
  get price_formatting_() {
297
402
  return i18n_.price_formatting_();
298
403
  }
299
404
  })), $3hooq$solidjsweb.escape(i18n_.price_formatting_().post_));
300
405
  }
301
- })), "".concat("price", " ").concat(is_sale ? "sales-price" : ""), $3hooq$solidjsweb.escape(i18n_.price_formatting_().pre_), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
302
- get price_() {
303
- return variant.sale_price;
406
+ })), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
407
+ get when() {
408
+ return !salePrice.loading && salePrice.latest;
304
409
  },
305
- get price_formatting_() {
306
- return i18n_.price_formatting_();
410
+ get fallback() {
411
+ return [$3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
412
+ width: "5ch",
413
+ height: "max(1em, 100%)",
414
+ "class": "price"
415
+ }), "\xa0"];
416
+ },
417
+ get children() {
418
+ return $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$5, $3hooq$solidjsweb.ssrHydrationKey(), "".concat("price", " ").concat(isOnSale() ? "sales-price" : ""), $3hooq$solidjsweb.escape(i18n_.price_formatting_().pre_), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
419
+ get price_() {
420
+ return salePrice();
421
+ },
422
+ get price_formatting_() {
423
+ return i18n_.price_formatting_();
424
+ }
425
+ })), $3hooq$solidjsweb.escape(i18n_.price_formatting_().post_));
307
426
  }
308
- })), $3hooq$solidjsweb.escape(i18n_.price_formatting_().post_));
427
+ })));
309
428
  };
310
- var $e3d733f899558f40$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
311
- function $e3d733f899558f40$export$acb3eaade4b23afd(props) {
312
- // Work around https://github.com/solidjs/solid/issues/1980
313
- return $3hooq$solidjsweb.ssr($e3d733f899558f40$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "".concat($3hooq$solidjsweb.escape(props.class, true) || "", " depict-placeholder"), $3hooq$solidjsweb.ssrStyle(props.style));
314
- }
315
429
  function $b8a8d61b3ec5f5ac$export$3f37af283f8fb843(props) {
316
430
  const style = $3hooq$solidjs.createMemo(() => {
317
431
  const {
@@ -343,30 +457,6 @@ function $b8a8d61b3ec5f5ac$export$3f37af283f8fb843(props) {
343
457
  }
344
458
  });
345
459
  }
346
- function $a7f7d416e6f61504$export$89c6019e4baa40b1(props) {
347
- const style = $3hooq$solidjs.createMemo(() => {
348
- const {
349
- style: style,
350
- height: height,
351
- width: width
352
- } = props;
353
- return {
354
- ...(style || {}),
355
- height: height !== null && height !== void 0 ? height : "1em",
356
- ...(width && {
357
- width: width
358
- })
359
- };
360
- });
361
- return $3hooq$solidjsweb.createComponent((0, $e3d733f899558f40$export$acb3eaade4b23afd), {
362
- get style() {
363
- return style();
364
- },
365
- get ["class"]() {
366
- return props.class;
367
- }
368
- });
369
- }
370
460
  var $c0cf6af094336798$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>"];
371
461
  const $c0cf6af094336798$export$8a2234b5b1a5ebd4 = "--image-aspect-ratio";
372
462
  function $c0cf6af094336798$export$ee1733d9a8495996() {
@@ -468,7 +558,12 @@ function $76012c4468a53d1f$export$43f0fb951fcb0c54(_ref) {
468
558
  // We had a case on singular where they popped an image url and due to use caching after some time there was no image
469
559
  // Attempt cloning the displays if possible (99.9% of the cases probably) and if not, just use the original display
470
560
  try {
471
- display = structuredClone(display);
561
+ // Use promiseSafeStructuredClone so that:
562
+ // 1. When fetching for example prices from an API, one can start that API request
563
+ // 2. Add the promise to the display
564
+ // 3. Already render the product card with placeholders for prices while the price loads
565
+ // 4. When the price loads, re-render the display with the new price
566
+ display = $400d96565bbbfe07$export$83bb9af5671e1dbe(display);
472
567
  } catch (e) {
473
568
  if (!$76012c4468a53d1f$var$printedCloneError) {
474
569
  $76012c4468a53d1f$var$printedCloneError = true;
@@ -526,7 +621,7 @@ function $76012c4468a53d1f$export$43f0fb951fcb0c54(_ref) {
526
621
  // Modified futher to bias towards saying objects are equal non-primitive objects differ
527
622
  function $76012c4468a53d1f$var$deep_equal(obj1, obj2) {
528
623
  const stack = [[obj1, obj2]];
529
- while (stack.length > 0) {
624
+ while (stack.length) {
530
625
  const [currentObj1, currentObj2] = stack.pop();
531
626
  if (currentObj1 === currentObj2) continue;
532
627
  if (Array.isArray(currentObj1) && Array.isArray(currentObj2)) {
@@ -2077,10 +2172,10 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
2077
2172
  const src_options = $3hooq$solidjs.createMemo(() => {
2078
2173
  const {
2079
2174
  src: src,
2080
- customGenerateImageUrl_: customGenerateImageUrl_
2175
+ customUrls: customUrls
2081
2176
  } = props;
2082
- const fallback_src = (customGenerateImageUrl_ || $858fdcf73148519f$export$1d6267828870adda)(src, 400);
2083
- const srcset = $858fdcf73148519f$var$make_srcset(props.src, props.resolutions || [64, 128, 256, 300, 400, 512, 640, 768, 1024, 1280, 1536, 2048, 2560, 3072, 3584, 4096], customGenerateImageUrl_);
2177
+ const fallback_src = (customUrls || $858fdcf73148519f$export$1d6267828870adda)(src, 400);
2178
+ const srcset = $858fdcf73148519f$var$make_srcset(props.src, props.resolutions || [64, 128, 256, 300, 400, 512, 640, 768, 1024, 1280, 1536, 2048, 2560, 3072, 3584, 4096], customUrls);
2084
2179
  // The order here *might* matter - I've seen mobile safari always start with loading the 400px version when it was reversed
2085
2180
  return {
2086
2181
  srcset: srcset,
@@ -2089,7 +2184,9 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
2089
2184
  });
2090
2185
  // Work around https://github.com/solidjs/solid/issues/1828
2091
2186
  const img = new Image(); // Need to use new Image or browser might not start loading image before it's in the DOM
2092
- const [, otherAttributes] = $3hooq$solidjs.splitProps(props, ["resolutions", "size", "src", "srcSet", "loading"]);
2187
+ const [, otherAttributes] = $3hooq$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 <-
2188
+ ]);
2189
+
2093
2190
  const [hasSetSize, setHasSetSize] = $3hooq$solidjs.createSignal(false);
2094
2191
  const [hasDecoded, setHasDecoded] = $3hooq$solidjs.createSignal(false);
2095
2192
  const productCardIndexAccessor = $b54645378dfc7280$export$e3faf4d95300054f();
@@ -2290,7 +2387,7 @@ function $9e470232a6b789a3$export$9d4a4b669b1929ab(props) {
2290
2387
  get imgProps() {
2291
2388
  return {
2292
2389
  ...props.imgProps,
2293
- customGenerateImageUrl_: (url, width // Apparently don't have to encode url for CF's service
2390
+ customUrls: (url, width // Apparently don't have to encode url for CF's service
2294
2391
  ) => {
2295
2392
  if (url.startsWith("https://cdn.shopify.com"))
2296
2393
  // 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;
@@ -10,7 +10,76 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.1.4";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.1.6";
14
+
15
+ /**
16
+ * This is a function that will safely clone an object that may contain promises.
17
+ * 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.
18
+ * @param obj Anything to clone
19
+ */
20
+ function $6d75ec14f537c37f$export$83bb9af5671e1dbe(obj) {
21
+ if (obj instanceof Promise) return obj;
22
+ // Extract all promises, keep a map of them, and then re-apply them to both the original object and the target object after cloning
23
+ const seen = new Set();
24
+ const keyStack = [[]];
25
+ const valueStack = [obj];
26
+ const promiseLocationStack = [];
27
+ while (valueStack.length) {
28
+ const value = valueStack.pop();
29
+ const keyPath = keyStack.pop();
30
+ // Promises can only be in objects and we don't need to check for objects we've already seen (like in circular references)
31
+ if (typeof value !== "object" || value === null || seen.has(value)) continue;
32
+ seen.add(value);
33
+ if (Array.isArray(value)) {
34
+ for (let i = 0; i < value.length; i++) {
35
+ const ourValue = value[i];
36
+ const valuesKeyPath = [...keyPath, i];
37
+ if (ourValue instanceof Promise) {
38
+ promiseLocationStack.push([valuesKeyPath, ourValue]);
39
+ delete value[i]; // This will leave a hole in the array, but it's fine since we'll put it back soon
40
+ // This way both the indexes will be correct when putting the value back and our for loop doesn't get messed up
41
+ } else {
42
+ keyStack.push(valuesKeyPath);
43
+ valueStack.push(ourValue);
44
+ }
45
+ }
46
+ continue;
47
+ }
48
+ for (const innerKey in value) {
49
+ const ourValue = value[innerKey];
50
+ const valuesKeyPath = [...keyPath, innerKey];
51
+ if (ourValue instanceof Promise) {
52
+ promiseLocationStack.push([valuesKeyPath, ourValue]);
53
+ delete value[innerKey];
54
+ } else {
55
+ keyStack.push(valuesKeyPath);
56
+ valueStack.push(ourValue);
57
+ }
58
+ }
59
+ }
60
+ let structuredClonedObject;
61
+ let error;
62
+ try {
63
+ structuredClonedObject = structuredClone(obj);
64
+ } catch (e) {
65
+ // We still need to put back the promises in the original object, even if we threw an error
66
+ error = e;
67
+ }
68
+ // Put back the promises in both the original object and the cloned object
69
+ while (promiseLocationStack.length) {
70
+ const [keyPath, promise] = promiseLocationStack.pop();
71
+ let targetInClone = structuredClonedObject;
72
+ let targetInOriginal = obj;
73
+ for (let i = 0; i < keyPath.length - 1; i++) {
74
+ if (!error) targetInClone = targetInClone[keyPath[i]];
75
+ targetInOriginal = targetInOriginal[keyPath[i]];
76
+ }
77
+ if (!error) targetInClone[keyPath[keyPath.length - 1]] = promise;
78
+ targetInOriginal[keyPath[keyPath.length - 1]] = promise;
79
+ }
80
+ if (error) throw error;
81
+ return structuredClonedObject;
82
+ }
14
83
  const $68e6625c8d51f847$export$3064e1e8c6513da3 = new Set();
15
84
  let $68e6625c8d51f847$var$has_ran = false;
16
85
  function $68e6625c8d51f847$export$5162a71f252e6122() {
@@ -157,12 +226,42 @@ function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
157
226
  }).remove);
158
227
  return signal[0];
159
228
  }
229
+ var $bc2337c9a05ecd18$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
230
+ function $bc2337c9a05ecd18$export$acb3eaade4b23afd(props) {
231
+ // Work around https://github.com/solidjs/solid/issues/1980
232
+ return $b8hua$ssr($bc2337c9a05ecd18$var$_tmpl$, $b8hua$ssrHydrationKey(), "".concat($b8hua$escape(props.class, true) || "", " depict-placeholder"), $b8hua$ssrStyle(props.style));
233
+ }
234
+ function $ceafb6fb91c6f394$export$89c6019e4baa40b1(props) {
235
+ const style = $b8hua$createMemo(() => {
236
+ const {
237
+ style: style,
238
+ height: height,
239
+ width: width
240
+ } = props;
241
+ return {
242
+ ...(style || {}),
243
+ height: height !== null && height !== void 0 ? height : "1em",
244
+ ...(width && {
245
+ width: width
246
+ })
247
+ };
248
+ });
249
+ return $b8hua$createComponent((0, $bc2337c9a05ecd18$export$acb3eaade4b23afd), {
250
+ get style() {
251
+ return style();
252
+ },
253
+ get ["class"]() {
254
+ return props.class;
255
+ }
256
+ });
257
+ }
160
258
  var $9a693c7e832d3f18$var$_tmpl$ = ["<span", ' class="title line-clamp">', "</span>"],
161
259
  $9a693c7e832d3f18$var$_tmpl$2 = ["<span", ' class="brand">', "</span>"],
162
260
  $9a693c7e832d3f18$var$_tmpl$3 = ["<div", ' class="tagline line-clamp">', "</div>"],
163
261
  $9a693c7e832d3f18$var$_tmpl$4 = ["<span", ' class="orig price"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span>"],
164
- $9a693c7e832d3f18$var$_tmpl$5 = ["<a", ' class="', '"', '><div class="img-part"><!--$-->', "<!--/--><!--$-->", '<!--/--></div><div class="right-part"><!--$-->', '<!--/--><div class="price-container"><!--$-->', '<!--/--><span class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div></a>"],
165
- $9a693c7e832d3f18$var$_tmpl$6 = ["<div", ' class="title-brand-tagline">', "</div>"];
262
+ $9a693c7e832d3f18$var$_tmpl$5 = ["<span", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span>"],
263
+ $9a693c7e832d3f18$var$_tmpl$6 = ["<a", ' class="', '"', '><div class="img-part"><!--$-->', "<!--/--><!--$-->", '<!--/--></div><div class="right-part"><!--$-->', '<!--/--><div class="price-container"><!--$-->', "<!--/--><!--$-->", "<!--/--></div></div></a>"],
264
+ $9a693c7e832d3f18$var$_tmpl$7 = ["<div", ' class="title-brand-tagline">', "</div>"];
166
265
  const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = _ref => {
167
266
  var _variant$image_urls;
168
267
  let {
@@ -178,13 +277,16 @@ const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = _ref => {
178
277
  const [get_selected_index_, set_selected_index_] = selected_index_ || [];
179
278
  const variant = display_.variant_displays[display_.variant_index];
180
279
  const href = $b8hua$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
181
- const is_sale = variant.sale_price !== variant.original_price;
280
+ // Prices can be promises, for example in our shopify app. Always assume they are (will work the same when they aren't)
281
+ const [salePrice] = $b8hua$createResource(() => variant.sale_price);
282
+ const [originalPrice] = $b8hua$createResource(() => variant.original_price);
283
+ const isOnSale = $b8hua$createMemo(() => salePrice() !== originalPrice());
182
284
  const supports_hover = $00a5b94f0c11efbb$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
183
285
  const [isSelected, selectedDueToKeyboardNavigation] = selected_index_ ? $d0883254246d3eb6$export$fb40a80c530e5f2b(get_selected_index_, keyboardNavigationGroupIndex_, index_) : [];
184
286
  const secondary_image_url = ((_variant$image_urls = variant.image_urls) === null || _variant$image_urls === void 0 ? void 0 : _variant$image_urls[1]) || variant.secondary_image_url || variant.alternative_display_image_url;
185
287
  const brandInTagline = selected_index_ && variant.brand;
186
288
  const TitleBrandTagline = () => [!selected_index_ && $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape(variant.brand)), $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(variant.title)), (variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline) && $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$escape([brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | ")))];
187
- return $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$5, $b8hua$ssrHydrationKey(), "instant-card ".concat(isSelected !== null && isSelected !== void 0 && isSelected() ? "selected" : ""), $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false) + $b8hua$ssrAttribute("data-search-result-id", $b8hua$escape(display_.search_result_id, true), false), $b8hua$escape($b8hua$createComponent(InstantCardImageComponent_, {
289
+ return $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$6, $b8hua$ssrHydrationKey(), "instant-card ".concat(isSelected !== null && isSelected !== void 0 && isSelected() ? "selected" : ""), $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false) + $b8hua$ssrAttribute("data-search-result-id", $b8hua$escape(display_.search_result_id, true), false), $b8hua$escape($b8hua$createComponent(InstantCardImageComponent_, {
188
290
  get src_() {
189
291
  var _variant$image_urls2;
190
292
  return ((_variant$image_urls2 = variant.image_urls) === null || _variant$image_urls2 === void 0 ? void 0 : _variant$image_urls2[0]) || variant.image_url || variant.display_image_url;
@@ -198,32 +300,43 @@ const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = _ref => {
198
300
  src_: secondary_image_url
199
301
  });
200
302
  }
201
- })), selected_index_ ? $b8hua$escape($b8hua$createComponent(TitleBrandTagline, {})) : $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$6, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(TitleBrandTagline, {}))), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
202
- when: is_sale,
303
+ })), selected_index_ ? $b8hua$escape($b8hua$createComponent(TitleBrandTagline, {})) : $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$7, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(TitleBrandTagline, {}))), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
304
+ get when() {
305
+ return isOnSale();
306
+ },
203
307
  get children() {
204
308
  return $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$escape(i18n_.price_formatting_().pre_), $b8hua$escape($b8hua$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
205
309
  get price_() {
206
- return variant.original_price;
310
+ return originalPrice();
207
311
  },
208
312
  get price_formatting_() {
209
313
  return i18n_.price_formatting_();
210
314
  }
211
315
  })), $b8hua$escape(i18n_.price_formatting_().post_));
212
316
  }
213
- })), "".concat("price", " ").concat(is_sale ? "sales-price" : ""), $b8hua$escape(i18n_.price_formatting_().pre_), $b8hua$escape($b8hua$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
214
- get price_() {
215
- return variant.sale_price;
317
+ })), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
318
+ get when() {
319
+ return !salePrice.loading && salePrice.latest;
216
320
  },
217
- get price_formatting_() {
218
- return i18n_.price_formatting_();
321
+ get fallback() {
322
+ return [$b8hua$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
323
+ width: "5ch",
324
+ height: "max(1em, 100%)",
325
+ "class": "price"
326
+ }), "\xa0"];
327
+ },
328
+ get children() {
329
+ return $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$5, $b8hua$ssrHydrationKey(), "".concat("price", " ").concat(isOnSale() ? "sales-price" : ""), $b8hua$escape(i18n_.price_formatting_().pre_), $b8hua$escape($b8hua$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
330
+ get price_() {
331
+ return salePrice();
332
+ },
333
+ get price_formatting_() {
334
+ return i18n_.price_formatting_();
335
+ }
336
+ })), $b8hua$escape(i18n_.price_formatting_().post_));
219
337
  }
220
- })), $b8hua$escape(i18n_.price_formatting_().post_));
338
+ })));
221
339
  };
222
- var $bc2337c9a05ecd18$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
223
- function $bc2337c9a05ecd18$export$acb3eaade4b23afd(props) {
224
- // Work around https://github.com/solidjs/solid/issues/1980
225
- return $b8hua$ssr($bc2337c9a05ecd18$var$_tmpl$, $b8hua$ssrHydrationKey(), "".concat($b8hua$escape(props.class, true) || "", " depict-placeholder"), $b8hua$ssrStyle(props.style));
226
- }
227
340
  function $3ab4aa97880fb88d$export$3f37af283f8fb843(props) {
228
341
  const style = $b8hua$createMemo(() => {
229
342
  const {
@@ -255,30 +368,6 @@ function $3ab4aa97880fb88d$export$3f37af283f8fb843(props) {
255
368
  }
256
369
  });
257
370
  }
258
- function $ceafb6fb91c6f394$export$89c6019e4baa40b1(props) {
259
- const style = $b8hua$createMemo(() => {
260
- const {
261
- style: style,
262
- height: height,
263
- width: width
264
- } = props;
265
- return {
266
- ...(style || {}),
267
- height: height !== null && height !== void 0 ? height : "1em",
268
- ...(width && {
269
- width: width
270
- })
271
- };
272
- });
273
- return $b8hua$createComponent((0, $bc2337c9a05ecd18$export$acb3eaade4b23afd), {
274
- get style() {
275
- return style();
276
- },
277
- get ["class"]() {
278
- return props.class;
279
- }
280
- });
281
- }
282
371
  var $5eaa00b951637e96$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>"];
283
372
  const $5eaa00b951637e96$export$8a2234b5b1a5ebd4 = "--image-aspect-ratio";
284
373
  function $5eaa00b951637e96$export$ee1733d9a8495996() {
@@ -380,7 +469,12 @@ function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
380
469
  // We had a case on singular where they popped an image url and due to use caching after some time there was no image
381
470
  // Attempt cloning the displays if possible (99.9% of the cases probably) and if not, just use the original display
382
471
  try {
383
- display = structuredClone(display);
472
+ // Use promiseSafeStructuredClone so that:
473
+ // 1. When fetching for example prices from an API, one can start that API request
474
+ // 2. Add the promise to the display
475
+ // 3. Already render the product card with placeholders for prices while the price loads
476
+ // 4. When the price loads, re-render the display with the new price
477
+ display = $6d75ec14f537c37f$export$83bb9af5671e1dbe(display);
384
478
  } catch (e) {
385
479
  if (!$2d7bad8684bc7f44$var$printedCloneError) {
386
480
  $2d7bad8684bc7f44$var$printedCloneError = true;
@@ -438,7 +532,7 @@ function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
438
532
  // Modified futher to bias towards saying objects are equal non-primitive objects differ
439
533
  function $2d7bad8684bc7f44$var$deep_equal(obj1, obj2) {
440
534
  const stack = [[obj1, obj2]];
441
- while (stack.length > 0) {
535
+ while (stack.length) {
442
536
  const [currentObj1, currentObj2] = stack.pop();
443
537
  if (currentObj1 === currentObj2) continue;
444
538
  if (Array.isArray(currentObj1) && Array.isArray(currentObj2)) {
@@ -1989,10 +2083,10 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
1989
2083
  const src_options = $b8hua$createMemo(() => {
1990
2084
  const {
1991
2085
  src: src,
1992
- customGenerateImageUrl_: customGenerateImageUrl_
2086
+ customUrls: customUrls
1993
2087
  } = props;
1994
- const fallback_src = (customGenerateImageUrl_ || $56047603f9d212b6$export$1d6267828870adda)(src, 400);
1995
- const srcset = $56047603f9d212b6$var$make_srcset(props.src, props.resolutions || [64, 128, 256, 300, 400, 512, 640, 768, 1024, 1280, 1536, 2048, 2560, 3072, 3584, 4096], customGenerateImageUrl_);
2088
+ const fallback_src = (customUrls || $56047603f9d212b6$export$1d6267828870adda)(src, 400);
2089
+ const srcset = $56047603f9d212b6$var$make_srcset(props.src, props.resolutions || [64, 128, 256, 300, 400, 512, 640, 768, 1024, 1280, 1536, 2048, 2560, 3072, 3584, 4096], customUrls);
1996
2090
  // The order here *might* matter - I've seen mobile safari always start with loading the 400px version when it was reversed
1997
2091
  return {
1998
2092
  srcset: srcset,
@@ -2001,7 +2095,9 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
2001
2095
  });
2002
2096
  // Work around https://github.com/solidjs/solid/issues/1828
2003
2097
  const img = new Image(); // Need to use new Image or browser might not start loading image before it's in the DOM
2004
- const [, otherAttributes] = $b8hua$splitProps(props, ["resolutions", "size", "src", "srcSet", "loading"]);
2098
+ const [, otherAttributes] = $b8hua$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 <-
2099
+ ]);
2100
+
2005
2101
  const [hasSetSize, setHasSetSize] = $b8hua$createSignal(false);
2006
2102
  const [hasDecoded, setHasDecoded] = $b8hua$createSignal(false);
2007
2103
  const productCardIndexAccessor = $1e69163caedaab4e$export$e3faf4d95300054f();
@@ -2202,7 +2298,7 @@ function $7fbaab3d3dafb4f5$export$9d4a4b669b1929ab(props) {
2202
2298
  get imgProps() {
2203
2299
  return {
2204
2300
  ...props.imgProps,
2205
- customGenerateImageUrl_: (url, width // Apparently don't have to encode url for CF's service
2301
+ customUrls: (url, width // Apparently don't have to encode url for CF's service
2206
2302
  ) => {
2207
2303
  if (url.startsWith("https://cdn.shopify.com"))
2208
2304
  // 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,
@@ -12745,4 +12841,4 @@ function $a3026fb727bc7550$var$align_field_modal(alignmentSignals, input, modalV
12745
12841
  });
12746
12842
  }
12747
12843
  $b8hua$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
12748
- export { $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $7fbaab3d3dafb4f5$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField };
12844
+ export { $6d75ec14f537c37f$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $7fbaab3d3dafb4f5$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField };