@depict-ai/ui 4.8.28 → 4.8.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ES10/index.cjs CHANGED
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
115
115
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
116
116
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
117
117
  /*! Depict.ai search and product listing SDK */
118
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.28";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.29";
119
119
  function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
120
120
  const signal = $52FdA$solidjs.createSignal(false);
121
121
  $52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
@@ -7633,26 +7633,31 @@ function $e4e98e5080f4386e$export$2972b890694ced75(callback, _ref) {
7633
7633
  return cancel;
7634
7634
  }
7635
7635
  function $4692443b324db9ee$export$566cd7e46bad5c2d(callback) {
7636
- const worstCaseIdleDeadline = 15000;
7636
+ var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
7637
+ const page_hasnt_loaded =
7638
+ // @ts-ignore
7639
+ (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
7637
7640
  const cancelFrameCheck = $4692443b324db9ee$var$checkForFrameDipsUntil(2000, () => {
7638
7641
  cancelIdleCallback();
7642
+ // Allow a long time of loading images since otherwise it takes even longer to erroneously load images later
7639
7643
  callback({
7640
7644
  didTimeout: false,
7641
7645
  timeRemaining: () => 1000
7642
7646
  });
7643
- });
7647
+ }, page_hasnt_loaded);
7644
7648
  const cancelIdleCallback = $e4e98e5080f4386e$export$2972b890694ced75(deadline => {
7645
7649
  cancelFrameCheck();
7646
7650
  callback(deadline);
7647
- }, {
7648
- timeout: worstCaseIdleDeadline
7651
+ },
7652
+ // If page hasn't loaded yet, it's more likely we run into the chrome bug than need to delay image loading to not lock up the browser, so only give rIC a 4s timeout
7653
+ {
7654
+ timeout: page_hasnt_loaded ? 4000 : 15000
7649
7655
  });
7650
7656
  }
7651
7657
  /**
7652
7658
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
7653
7659
  */
7654
- function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
7655
- var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
7660
+ function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips, pageHasntLoaded) {
7656
7661
  const maxDips = 3;
7657
7662
  const noDipsBelow = 20;
7658
7663
  const fpsOverTime = [];
@@ -7682,10 +7687,7 @@ function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
7682
7687
  }));
7683
7688
  // If page hasn't loaded yet, wait for it to load before starting the check
7684
7689
  // This is because the first few frames until the load event are usually slower
7685
- const page_hasnt_loaded =
7686
- // @ts-ignore
7687
- (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
7688
- if (page_hasnt_loaded) addEventListener("load", () => {
7690
+ if (pageHasntLoaded) addEventListener("load", () => {
7689
7691
  start = performance.now();
7690
7692
  check();
7691
7693
  }, {
package/ES10/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.8.28";
14
+ export const version = "4.8.29";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
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.8.28";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.29";
14
14
  function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
15
15
  const signal = $8tj43$createSignal(false);
16
16
  $8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
@@ -7528,26 +7528,31 @@ function $6db93f70c2db1486$export$2972b890694ced75(callback, _ref) {
7528
7528
  return cancel;
7529
7529
  }
7530
7530
  function $29b3cf99ce390e3b$export$566cd7e46bad5c2d(callback) {
7531
- const worstCaseIdleDeadline = 15000;
7531
+ var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
7532
+ const page_hasnt_loaded =
7533
+ // @ts-ignore
7534
+ (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
7532
7535
  const cancelFrameCheck = $29b3cf99ce390e3b$var$checkForFrameDipsUntil(2000, () => {
7533
7536
  cancelIdleCallback();
7537
+ // Allow a long time of loading images since otherwise it takes even longer to erroneously load images later
7534
7538
  callback({
7535
7539
  didTimeout: false,
7536
7540
  timeRemaining: () => 1000
7537
7541
  });
7538
- });
7542
+ }, page_hasnt_loaded);
7539
7543
  const cancelIdleCallback = $6db93f70c2db1486$export$2972b890694ced75(deadline => {
7540
7544
  cancelFrameCheck();
7541
7545
  callback(deadline);
7542
- }, {
7543
- timeout: worstCaseIdleDeadline
7546
+ },
7547
+ // If page hasn't loaded yet, it's more likely we run into the chrome bug than need to delay image loading to not lock up the browser, so only give rIC a 4s timeout
7548
+ {
7549
+ timeout: page_hasnt_loaded ? 4000 : 15000
7544
7550
  });
7545
7551
  }
7546
7552
  /**
7547
7553
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
7548
7554
  */
7549
- function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
7550
- var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
7555
+ function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips, pageHasntLoaded) {
7551
7556
  const maxDips = 3;
7552
7557
  const noDipsBelow = 20;
7553
7558
  const fpsOverTime = [];
@@ -7577,10 +7582,7 @@ function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
7577
7582
  }));
7578
7583
  // If page hasn't loaded yet, wait for it to load before starting the check
7579
7584
  // This is because the first few frames until the load event are usually slower
7580
- const page_hasnt_loaded =
7581
- // @ts-ignore
7582
- (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
7583
- if (page_hasnt_loaded) addEventListener("load", () => {
7585
+ if (pageHasntLoaded) addEventListener("load", () => {
7584
7586
  start = performance.now();
7585
7587
  check();
7586
7588
  }, {
package/latest/index.cjs CHANGED
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.28";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.29";
113
113
  function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
114
114
  const signal = $gVhhF$solidjs.createSignal(false);
115
115
  $gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
@@ -7217,25 +7217,30 @@ function $3ea8e0af95b5b7d2$export$2972b890694ced75(callback, {
7217
7217
  return cancel;
7218
7218
  }
7219
7219
  function $7ea61486b66872b6$export$566cd7e46bad5c2d(callback) {
7220
- const worstCaseIdleDeadline = 15000;
7220
+ const page_hasnt_loaded =
7221
+ // @ts-ignore
7222
+ globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
7221
7223
  const cancelFrameCheck = $7ea61486b66872b6$var$checkForFrameDipsUntil(2000, () => {
7222
7224
  cancelIdleCallback();
7225
+ // Allow a long time of loading images since otherwise it takes even longer to erroneously load images later
7223
7226
  callback({
7224
7227
  didTimeout: false,
7225
7228
  timeRemaining: () => 1000
7226
7229
  });
7227
- });
7230
+ }, page_hasnt_loaded);
7228
7231
  const cancelIdleCallback = $3ea8e0af95b5b7d2$export$2972b890694ced75(deadline => {
7229
7232
  cancelFrameCheck();
7230
7233
  callback(deadline);
7231
- }, {
7232
- timeout: worstCaseIdleDeadline
7234
+ },
7235
+ // If page hasn't loaded yet, it's more likely we run into the chrome bug than need to delay image loading to not lock up the browser, so only give rIC a 4s timeout
7236
+ {
7237
+ timeout: page_hasnt_loaded ? 4000 : 15000
7233
7238
  });
7234
7239
  }
7235
7240
  /**
7236
7241
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
7237
7242
  */
7238
- function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
7243
+ function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips, pageHasntLoaded) {
7239
7244
  const maxDips = 3;
7240
7245
  const noDipsBelow = 20;
7241
7246
  const fpsOverTime = [];
@@ -7265,10 +7270,7 @@ function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
7265
7270
  }));
7266
7271
  // If page hasn't loaded yet, wait for it to load before starting the check
7267
7272
  // This is because the first few frames until the load event are usually slower
7268
- const page_hasnt_loaded =
7269
- // @ts-ignore
7270
- globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
7271
- if (page_hasnt_loaded) addEventListener("load", () => {
7273
+ if (pageHasntLoaded) addEventListener("load", () => {
7272
7274
  start = performance.now();
7273
7275
  check();
7274
7276
  }, {
package/latest/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.8.28";
14
+ export const version = "4.8.29";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
package/latest/index.js CHANGED
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$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.8.28";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.29";
11
11
  function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
12
12
  const signal = $9HbP8$createSignal(false);
13
13
  $9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
@@ -7115,25 +7115,30 @@ function $4ea56971d92eb0cd$export$2972b890694ced75(callback, {
7115
7115
  return cancel;
7116
7116
  }
7117
7117
  function $f71681eb5d5aae0a$export$566cd7e46bad5c2d(callback) {
7118
- const worstCaseIdleDeadline = 15000;
7118
+ const page_hasnt_loaded =
7119
+ // @ts-ignore
7120
+ globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
7119
7121
  const cancelFrameCheck = $f71681eb5d5aae0a$var$checkForFrameDipsUntil(2000, () => {
7120
7122
  cancelIdleCallback();
7123
+ // Allow a long time of loading images since otherwise it takes even longer to erroneously load images later
7121
7124
  callback({
7122
7125
  didTimeout: false,
7123
7126
  timeRemaining: () => 1000
7124
7127
  });
7125
- });
7128
+ }, page_hasnt_loaded);
7126
7129
  const cancelIdleCallback = $4ea56971d92eb0cd$export$2972b890694ced75(deadline => {
7127
7130
  cancelFrameCheck();
7128
7131
  callback(deadline);
7129
- }, {
7130
- timeout: worstCaseIdleDeadline
7132
+ },
7133
+ // If page hasn't loaded yet, it's more likely we run into the chrome bug than need to delay image loading to not lock up the browser, so only give rIC a 4s timeout
7134
+ {
7135
+ timeout: page_hasnt_loaded ? 4000 : 15000
7131
7136
  });
7132
7137
  }
7133
7138
  /**
7134
7139
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
7135
7140
  */
7136
- function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
7141
+ function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips, pageHasntLoaded) {
7137
7142
  const maxDips = 3;
7138
7143
  const noDipsBelow = 20;
7139
7144
  const fpsOverTime = [];
@@ -7163,10 +7168,7 @@ function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
7163
7168
  }));
7164
7169
  // If page hasn't loaded yet, wait for it to load before starting the check
7165
7170
  // This is because the first few frames until the load event are usually slower
7166
- const page_hasnt_loaded =
7167
- // @ts-ignore
7168
- globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
7169
- if (page_hasnt_loaded) addEventListener("load", () => {
7171
+ if (pageHasntLoaded) addEventListener("load", () => {
7170
7172
  start = performance.now();
7171
7173
  check();
7172
7174
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.8.28",
3
+ "version": "4.8.29",
4
4
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
5
5
  "packageManager": "yarn@3.2.2",
6
6
  "sass": "styles.scss",
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
115
115
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
116
116
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
117
117
  /*! Depict.ai search and product listing SDK */
118
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.28";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.29";
119
119
  function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
120
120
  const signal = $3hooq$solidjs.createSignal(false);
121
121
  $3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
@@ -6218,26 +6218,31 @@ function $e4e98e5080f4386e$export$2972b890694ced75(callback, _ref) {
6218
6218
  return cancel;
6219
6219
  }
6220
6220
  function $4692443b324db9ee$export$566cd7e46bad5c2d(callback) {
6221
- const worstCaseIdleDeadline = 15000;
6221
+ var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
6222
+ const page_hasnt_loaded =
6223
+ // @ts-ignore
6224
+ (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
6222
6225
  const cancelFrameCheck = $4692443b324db9ee$var$checkForFrameDipsUntil(2000, () => {
6223
6226
  cancelIdleCallback();
6227
+ // Allow a long time of loading images since otherwise it takes even longer to erroneously load images later
6224
6228
  callback({
6225
6229
  didTimeout: false,
6226
6230
  timeRemaining: () => 1000
6227
6231
  });
6228
- });
6232
+ }, page_hasnt_loaded);
6229
6233
  const cancelIdleCallback = $e4e98e5080f4386e$export$2972b890694ced75(deadline => {
6230
6234
  cancelFrameCheck();
6231
6235
  callback(deadline);
6232
- }, {
6233
- timeout: worstCaseIdleDeadline
6236
+ },
6237
+ // If page hasn't loaded yet, it's more likely we run into the chrome bug than need to delay image loading to not lock up the browser, so only give rIC a 4s timeout
6238
+ {
6239
+ timeout: page_hasnt_loaded ? 4000 : 15000
6234
6240
  });
6235
6241
  }
6236
6242
  /**
6237
6243
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
6238
6244
  */
6239
- function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
6240
- var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
6245
+ function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips, pageHasntLoaded) {
6241
6246
  const maxDips = 3;
6242
6247
  const noDipsBelow = 20;
6243
6248
  const fpsOverTime = [];
@@ -6267,10 +6272,7 @@ function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
6267
6272
  }));
6268
6273
  // If page hasn't loaded yet, wait for it to load before starting the check
6269
6274
  // This is because the first few frames until the load event are usually slower
6270
- const page_hasnt_loaded =
6271
- // @ts-ignore
6272
- (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
6273
- if (page_hasnt_loaded) addEventListener("load", () => {
6275
+ if (pageHasntLoaded) addEventListener("load", () => {
6274
6276
  start = performance.now();
6275
6277
  check();
6276
6278
  }, {
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.8.28";
14
+ export const version = "4.8.29";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
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.8.28";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.29";
14
14
  function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
15
15
  const signal = $b8hua$createSignal(false);
16
16
  $b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
@@ -6113,26 +6113,31 @@ function $6db93f70c2db1486$export$2972b890694ced75(callback, _ref) {
6113
6113
  return cancel;
6114
6114
  }
6115
6115
  function $29b3cf99ce390e3b$export$566cd7e46bad5c2d(callback) {
6116
- const worstCaseIdleDeadline = 15000;
6116
+ var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
6117
+ const page_hasnt_loaded =
6118
+ // @ts-ignore
6119
+ (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
6117
6120
  const cancelFrameCheck = $29b3cf99ce390e3b$var$checkForFrameDipsUntil(2000, () => {
6118
6121
  cancelIdleCallback();
6122
+ // Allow a long time of loading images since otherwise it takes even longer to erroneously load images later
6119
6123
  callback({
6120
6124
  didTimeout: false,
6121
6125
  timeRemaining: () => 1000
6122
6126
  });
6123
- });
6127
+ }, page_hasnt_loaded);
6124
6128
  const cancelIdleCallback = $6db93f70c2db1486$export$2972b890694ced75(deadline => {
6125
6129
  cancelFrameCheck();
6126
6130
  callback(deadline);
6127
- }, {
6128
- timeout: worstCaseIdleDeadline
6131
+ },
6132
+ // If page hasn't loaded yet, it's more likely we run into the chrome bug than need to delay image loading to not lock up the browser, so only give rIC a 4s timeout
6133
+ {
6134
+ timeout: page_hasnt_loaded ? 4000 : 15000
6129
6135
  });
6130
6136
  }
6131
6137
  /**
6132
6138
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
6133
6139
  */
6134
- function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
6135
- var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
6140
+ function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips, pageHasntLoaded) {
6136
6141
  const maxDips = 3;
6137
6142
  const noDipsBelow = 20;
6138
6143
  const fpsOverTime = [];
@@ -6162,10 +6167,7 @@ function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
6162
6167
  }));
6163
6168
  // If page hasn't loaded yet, wait for it to load before starting the check
6164
6169
  // This is because the first few frames until the load event are usually slower
6165
- const page_hasnt_loaded =
6166
- // @ts-ignore
6167
- (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
6168
- if (page_hasnt_loaded) addEventListener("load", () => {
6170
+ if (pageHasntLoaded) addEventListener("load", () => {
6169
6171
  start = performance.now();
6170
6172
  check();
6171
6173
  }, {
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.28";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.29";
113
113
  function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
114
114
  const signal = $5vyXB$solidjs.createSignal(false);
115
115
  $5vyXB$solidjs.onCleanup($5vyXB$depictaiutilishared.javascript_media_query(media_query, ({
@@ -5855,25 +5855,30 @@ function $3ea8e0af95b5b7d2$export$2972b890694ced75(callback, {
5855
5855
  return cancel;
5856
5856
  }
5857
5857
  function $7ea61486b66872b6$export$566cd7e46bad5c2d(callback) {
5858
- const worstCaseIdleDeadline = 15000;
5858
+ const page_hasnt_loaded =
5859
+ // @ts-ignore
5860
+ globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
5859
5861
  const cancelFrameCheck = $7ea61486b66872b6$var$checkForFrameDipsUntil(2000, () => {
5860
5862
  cancelIdleCallback();
5863
+ // Allow a long time of loading images since otherwise it takes even longer to erroneously load images later
5861
5864
  callback({
5862
5865
  didTimeout: false,
5863
5866
  timeRemaining: () => 1000
5864
5867
  });
5865
- });
5868
+ }, page_hasnt_loaded);
5866
5869
  const cancelIdleCallback = $3ea8e0af95b5b7d2$export$2972b890694ced75(deadline => {
5867
5870
  cancelFrameCheck();
5868
5871
  callback(deadline);
5869
- }, {
5870
- timeout: worstCaseIdleDeadline
5872
+ },
5873
+ // If page hasn't loaded yet, it's more likely we run into the chrome bug than need to delay image loading to not lock up the browser, so only give rIC a 4s timeout
5874
+ {
5875
+ timeout: page_hasnt_loaded ? 4000 : 15000
5871
5876
  });
5872
5877
  }
5873
5878
  /**
5874
5879
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
5875
5880
  */
5876
- function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
5881
+ function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips, pageHasntLoaded) {
5877
5882
  const maxDips = 3;
5878
5883
  const noDipsBelow = 20;
5879
5884
  const fpsOverTime = [];
@@ -5903,10 +5908,7 @@ function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
5903
5908
  }));
5904
5909
  // If page hasn't loaded yet, wait for it to load before starting the check
5905
5910
  // This is because the first few frames until the load event are usually slower
5906
- const page_hasnt_loaded =
5907
- // @ts-ignore
5908
- globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
5909
- if (page_hasnt_loaded) addEventListener("load", () => {
5911
+ if (pageHasntLoaded) addEventListener("load", () => {
5910
5912
  start = performance.now();
5911
5913
  check();
5912
5914
  }, {
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.8.28";
14
+ export const version = "4.8.29";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -7,7 +7,7 @@ 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.8.28";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.29";
11
11
  function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
12
12
  const signal = $i7OB2$createSignal(false);
13
13
  $i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
@@ -5753,25 +5753,30 @@ function $4ea56971d92eb0cd$export$2972b890694ced75(callback, {
5753
5753
  return cancel;
5754
5754
  }
5755
5755
  function $f71681eb5d5aae0a$export$566cd7e46bad5c2d(callback) {
5756
- const worstCaseIdleDeadline = 15000;
5756
+ const page_hasnt_loaded =
5757
+ // @ts-ignore
5758
+ globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
5757
5759
  const cancelFrameCheck = $f71681eb5d5aae0a$var$checkForFrameDipsUntil(2000, () => {
5758
5760
  cancelIdleCallback();
5761
+ // Allow a long time of loading images since otherwise it takes even longer to erroneously load images later
5759
5762
  callback({
5760
5763
  didTimeout: false,
5761
5764
  timeRemaining: () => 1000
5762
5765
  });
5763
- });
5766
+ }, page_hasnt_loaded);
5764
5767
  const cancelIdleCallback = $4ea56971d92eb0cd$export$2972b890694ced75(deadline => {
5765
5768
  cancelFrameCheck();
5766
5769
  callback(deadline);
5767
- }, {
5768
- timeout: worstCaseIdleDeadline
5770
+ },
5771
+ // If page hasn't loaded yet, it's more likely we run into the chrome bug than need to delay image loading to not lock up the browser, so only give rIC a 4s timeout
5772
+ {
5773
+ timeout: page_hasnt_loaded ? 4000 : 15000
5769
5774
  });
5770
5775
  }
5771
5776
  /**
5772
5777
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
5773
5778
  */
5774
- function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
5779
+ function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips, pageHasntLoaded) {
5775
5780
  const maxDips = 3;
5776
5781
  const noDipsBelow = 20;
5777
5782
  const fpsOverTime = [];
@@ -5801,10 +5806,7 @@ function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
5801
5806
  }));
5802
5807
  // If page hasn't loaded yet, wait for it to load before starting the check
5803
5808
  // This is because the first few frames until the load event are usually slower
5804
- const page_hasnt_loaded =
5805
- // @ts-ignore
5806
- globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
5807
- if (page_hasnt_loaded) addEventListener("load", () => {
5809
+ if (pageHasntLoaded) addEventListener("load", () => {
5808
5810
  start = performance.now();
5809
5811
  check();
5810
5812
  }, {