@depict-ai/ui 4.8.25 → 4.8.26

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.25";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.26";
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 => {
@@ -7652,11 +7652,12 @@ function $4692443b324db9ee$export$566cd7e46bad5c2d(callback) {
7652
7652
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
7653
7653
  */
7654
7654
  function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
7655
- const start = performance.now();
7655
+ var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
7656
7656
  const maxDips = 3;
7657
7657
  const noDipsBelow = 20;
7658
7658
  const fpsOverTime = [];
7659
7659
  let dipsLeft = maxDips;
7660
+ let start = performance.now();
7660
7661
  let cleanedUp = false;
7661
7662
  let lastTime;
7662
7663
  const check = () => requestAnimationFrame($52FdA$depictaiutilishared.catchify(time => {
@@ -7675,7 +7676,17 @@ function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
7675
7676
  runWhenNoDips();
7676
7677
  }
7677
7678
  }));
7678
- check();
7679
+ // If page hasn't loaded yet, wait for it to load before starting the check
7680
+ // This is because the first few frames until the load event are usually slower
7681
+ const page_hasnt_loaded =
7682
+ // @ts-ignore
7683
+ (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;
7684
+ if (page_hasnt_loaded) addEventListener("load", () => {
7685
+ start = performance.now();
7686
+ check();
7687
+ }, {
7688
+ once: true
7689
+ });else check();
7679
7690
  return () => cleanedUp = true;
7680
7691
  }
7681
7692
  const $858fdcf73148519f$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
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.25";
14
+ export const version = "4.8.26";
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.25";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.26";
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 => {
@@ -7547,11 +7547,12 @@ function $29b3cf99ce390e3b$export$566cd7e46bad5c2d(callback) {
7547
7547
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
7548
7548
  */
7549
7549
  function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
7550
- const start = performance.now();
7550
+ var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
7551
7551
  const maxDips = 3;
7552
7552
  const noDipsBelow = 20;
7553
7553
  const fpsOverTime = [];
7554
7554
  let dipsLeft = maxDips;
7555
+ let start = performance.now();
7555
7556
  let cleanedUp = false;
7556
7557
  let lastTime;
7557
7558
  const check = () => requestAnimationFrame($8tj43$catchify1(time => {
@@ -7570,7 +7571,17 @@ function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
7570
7571
  runWhenNoDips();
7571
7572
  }
7572
7573
  }));
7573
- check();
7574
+ // If page hasn't loaded yet, wait for it to load before starting the check
7575
+ // This is because the first few frames until the load event are usually slower
7576
+ const page_hasnt_loaded =
7577
+ // @ts-ignore
7578
+ (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;
7579
+ if (page_hasnt_loaded) addEventListener("load", () => {
7580
+ start = performance.now();
7581
+ check();
7582
+ }, {
7583
+ once: true
7584
+ });else check();
7574
7585
  return () => cleanedUp = true;
7575
7586
  }
7576
7587
  const $56047603f9d212b6$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
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.25";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.26";
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, ({
@@ -7236,11 +7236,11 @@ function $7ea61486b66872b6$export$566cd7e46bad5c2d(callback) {
7236
7236
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
7237
7237
  */
7238
7238
  function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
7239
- const start = performance.now();
7240
7239
  const maxDips = 3;
7241
7240
  const noDipsBelow = 20;
7242
7241
  const fpsOverTime = [];
7243
7242
  let dipsLeft = maxDips;
7243
+ let start = performance.now();
7244
7244
  let cleanedUp = false;
7245
7245
  let lastTime;
7246
7246
  const check = () => requestAnimationFrame($gVhhF$depictaiutilishared.catchify(time => {
@@ -7259,7 +7259,17 @@ function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
7259
7259
  runWhenNoDips();
7260
7260
  }
7261
7261
  }));
7262
- check();
7262
+ // If page hasn't loaded yet, wait for it to load before starting the check
7263
+ // This is because the first few frames until the load event are usually slower
7264
+ const page_hasnt_loaded =
7265
+ // @ts-ignore
7266
+ globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
7267
+ if (page_hasnt_loaded) addEventListener("load", () => {
7268
+ start = performance.now();
7269
+ check();
7270
+ }, {
7271
+ once: true
7272
+ });else check();
7263
7273
  return () => cleanedUp = true;
7264
7274
  }
7265
7275
  const $19950faaac026e09$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
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.25";
14
+ export const version = "4.8.26";
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.25";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.26";
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, ({
@@ -7134,11 +7134,11 @@ function $f71681eb5d5aae0a$export$566cd7e46bad5c2d(callback) {
7134
7134
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
7135
7135
  */
7136
7136
  function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
7137
- const start = performance.now();
7138
7137
  const maxDips = 3;
7139
7138
  const noDipsBelow = 20;
7140
7139
  const fpsOverTime = [];
7141
7140
  let dipsLeft = maxDips;
7141
+ let start = performance.now();
7142
7142
  let cleanedUp = false;
7143
7143
  let lastTime;
7144
7144
  const check = () => requestAnimationFrame($9HbP8$catchify1(time => {
@@ -7157,7 +7157,17 @@ function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
7157
7157
  runWhenNoDips();
7158
7158
  }
7159
7159
  }));
7160
- check();
7160
+ // If page hasn't loaded yet, wait for it to load before starting the check
7161
+ // This is because the first few frames until the load event are usually slower
7162
+ const page_hasnt_loaded =
7163
+ // @ts-ignore
7164
+ globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
7165
+ if (page_hasnt_loaded) addEventListener("load", () => {
7166
+ start = performance.now();
7167
+ check();
7168
+ }, {
7169
+ once: true
7170
+ });else check();
7161
7171
  return () => cleanedUp = true;
7162
7172
  }
7163
7173
  const $e8ffe11ed01df0fe$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.8.25",
3
+ "version": "4.8.26",
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.25";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.26";
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 => {
@@ -6237,11 +6237,12 @@ function $4692443b324db9ee$export$566cd7e46bad5c2d(callback) {
6237
6237
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
6238
6238
  */
6239
6239
  function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
6240
- const start = performance.now();
6240
+ var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
6241
6241
  const maxDips = 3;
6242
6242
  const noDipsBelow = 20;
6243
6243
  const fpsOverTime = [];
6244
6244
  let dipsLeft = maxDips;
6245
+ let start = performance.now();
6245
6246
  let cleanedUp = false;
6246
6247
  let lastTime;
6247
6248
  const check = () => requestAnimationFrame($3hooq$depictaiutilishared.catchify(time => {
@@ -6260,7 +6261,17 @@ function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
6260
6261
  runWhenNoDips();
6261
6262
  }
6262
6263
  }));
6263
- check();
6264
+ // If page hasn't loaded yet, wait for it to load before starting the check
6265
+ // This is because the first few frames until the load event are usually slower
6266
+ const page_hasnt_loaded =
6267
+ // @ts-ignore
6268
+ (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;
6269
+ if (page_hasnt_loaded) addEventListener("load", () => {
6270
+ start = performance.now();
6271
+ check();
6272
+ }, {
6273
+ once: true
6274
+ });else check();
6264
6275
  return () => cleanedUp = true;
6265
6276
  }
6266
6277
  const $858fdcf73148519f$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
@@ -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.25";
14
+ export const version = "4.8.26";
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.25";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.26";
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 => {
@@ -6132,11 +6132,12 @@ function $29b3cf99ce390e3b$export$566cd7e46bad5c2d(callback) {
6132
6132
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
6133
6133
  */
6134
6134
  function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
6135
- const start = performance.now();
6135
+ var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
6136
6136
  const maxDips = 3;
6137
6137
  const noDipsBelow = 20;
6138
6138
  const fpsOverTime = [];
6139
6139
  let dipsLeft = maxDips;
6140
+ let start = performance.now();
6140
6141
  let cleanedUp = false;
6141
6142
  let lastTime;
6142
6143
  const check = () => requestAnimationFrame($b8hua$catchify1(time => {
@@ -6155,7 +6156,17 @@ function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
6155
6156
  runWhenNoDips();
6156
6157
  }
6157
6158
  }));
6158
- check();
6159
+ // If page hasn't loaded yet, wait for it to load before starting the check
6160
+ // This is because the first few frames until the load event are usually slower
6161
+ const page_hasnt_loaded =
6162
+ // @ts-ignore
6163
+ (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;
6164
+ if (page_hasnt_loaded) addEventListener("load", () => {
6165
+ start = performance.now();
6166
+ check();
6167
+ }, {
6168
+ once: true
6169
+ });else check();
6159
6170
  return () => cleanedUp = true;
6160
6171
  }
6161
6172
  const $56047603f9d212b6$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
@@ -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.25";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.26";
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, ({
@@ -5874,11 +5874,11 @@ function $7ea61486b66872b6$export$566cd7e46bad5c2d(callback) {
5874
5874
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
5875
5875
  */
5876
5876
  function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
5877
- const start = performance.now();
5878
5877
  const maxDips = 3;
5879
5878
  const noDipsBelow = 20;
5880
5879
  const fpsOverTime = [];
5881
5880
  let dipsLeft = maxDips;
5881
+ let start = performance.now();
5882
5882
  let cleanedUp = false;
5883
5883
  let lastTime;
5884
5884
  const check = () => requestAnimationFrame($5vyXB$depictaiutilishared.catchify(time => {
@@ -5897,7 +5897,17 @@ function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
5897
5897
  runWhenNoDips();
5898
5898
  }
5899
5899
  }));
5900
- check();
5900
+ // If page hasn't loaded yet, wait for it to load before starting the check
5901
+ // This is because the first few frames until the load event are usually slower
5902
+ const page_hasnt_loaded =
5903
+ // @ts-ignore
5904
+ globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
5905
+ if (page_hasnt_loaded) addEventListener("load", () => {
5906
+ start = performance.now();
5907
+ check();
5908
+ }, {
5909
+ once: true
5910
+ });else check();
5901
5911
  return () => cleanedUp = true;
5902
5912
  }
5903
5913
  const $19950faaac026e09$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
@@ -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.25";
14
+ export const version = "4.8.26";
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.25";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.26";
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, ({
@@ -5772,11 +5772,11 @@ function $f71681eb5d5aae0a$export$566cd7e46bad5c2d(callback) {
5772
5772
  * Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
5773
5773
  */
5774
5774
  function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
5775
- const start = performance.now();
5776
5775
  const maxDips = 3;
5777
5776
  const noDipsBelow = 20;
5778
5777
  const fpsOverTime = [];
5779
5778
  let dipsLeft = maxDips;
5779
+ let start = performance.now();
5780
5780
  let cleanedUp = false;
5781
5781
  let lastTime;
5782
5782
  const check = () => requestAnimationFrame($i7OB2$catchify1(time => {
@@ -5795,7 +5795,17 @@ function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDi
5795
5795
  runWhenNoDips();
5796
5796
  }
5797
5797
  }));
5798
- check();
5798
+ // If page hasn't loaded yet, wait for it to load before starting the check
5799
+ // This is because the first few frames until the load event are usually slower
5800
+ const page_hasnt_loaded =
5801
+ // @ts-ignore
5802
+ globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
5803
+ if (page_hasnt_loaded) addEventListener("load", () => {
5804
+ start = performance.now();
5805
+ check();
5806
+ }, {
5807
+ once: true
5808
+ });else check();
5799
5809
  return () => cleanedUp = true;
5800
5810
  }
5801
5811
  const $e8ffe11ed01df0fe$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");