@depict-ai/utilishared 1.0.12 → 1.0.13
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/README.md +130 -130
- package/dist/index.d.ts +2423 -2429
- package/dist/main.js +147 -336
- package/dist/module.js +148 -325
- package/package.json +9 -3
package/dist/main.js
CHANGED
|
@@ -258,18 +258,6 @@ $parcel$export(module.exports, "make_sourceset_component", () => $ff973b2032639b
|
|
|
258
258
|
$parcel$export(module.exports, "is_safari", () => $ff973b2032639b5f$export$a98fc8a2c818d3d8);
|
|
259
259
|
$parcel$export(module.exports, "make_url_with_query_params", () => $ff973b2032639b5f$export$f7c915448031deac);
|
|
260
260
|
$parcel$export(module.exports, "resize_base_url", () => $ff973b2032639b5f$export$3d13beba9b52c947);
|
|
261
|
-
$parcel$export(module.exports, "ArrowUp", () => $983f812fb0f7ba17$export$2624c5890f1bbcf7);
|
|
262
|
-
$parcel$export(module.exports, "BackIcon", () => $db78bec282960988$export$1c641004b5485fed);
|
|
263
|
-
$parcel$export(module.exports, "CrossIcon", () => $1d51c6ae7410ca13$export$3b621d86b1566b2);
|
|
264
|
-
$parcel$export(module.exports, "FilterIcon", () => $6e524afc8cda32bf$export$28f6150e232898de);
|
|
265
|
-
$parcel$export(module.exports, "GenericSliderArrowButton", () => $6914dea95c0b72da$export$8be2714ec7f169ee);
|
|
266
|
-
$parcel$export(module.exports, "MinusIcon", () => $e81a4c33240250ba$export$cb808a3c41736d8e);
|
|
267
|
-
$parcel$export(module.exports, "PlusIcon", () => $9e42a2957bc7cf37$export$f21ab0717a89c77f);
|
|
268
|
-
$parcel$export(module.exports, "PreviousSearchIcon", () => $fb0a553e810a8f26$export$5d2caaa6b530761c);
|
|
269
|
-
$parcel$export(module.exports, "SearchIcon", () => $8cf3e614b4850542$export$82eafebb825fc23f);
|
|
270
|
-
$parcel$export(module.exports, "SortIconAsc", () => $928fe3094e21cac6$export$da32f7add8a22e86);
|
|
271
|
-
$parcel$export(module.exports, "SortIconDesc", () => $555d3d1fe3f8cf5b$export$d10e63059ddb9fd4);
|
|
272
|
-
$parcel$export(module.exports, "TickIcon", () => $12c29616944c2fb7$export$f2ca6fc699ca1fb4);
|
|
273
261
|
$parcel$export(module.exports, "base_url", () => $4c6861fbcd3a0611$export$362abebb4b313340);
|
|
274
262
|
$parcel$export(module.exports, "Sentry", () => $61a34358bf0d3d8b$export$af2e17a20c2ea3c5);
|
|
275
263
|
$parcel$export(module.exports, "camelCasifyObject", () => $89758b55120b0cbd$export$9dc8f3a0aa3efc85);
|
|
@@ -280,7 +268,7 @@ $parcel$export(module.exports, "relative_luminance_from_rgb", () => $d73746ee466
|
|
|
280
268
|
$parcel$export(module.exports, "hsb_to_rgb", () => $d73746ee466f09ca$export$486b165479b9284f);
|
|
281
269
|
$parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fbfd8236492);
|
|
282
270
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
283
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "1.0.
|
|
271
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "1.0.13";
|
|
284
272
|
|
|
285
273
|
|
|
286
274
|
const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/ (()=>process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
@@ -324,8 +312,8 @@ function $e4a18bf12ad092d9$export$fe609f0216e4ebef(url) {
|
|
|
324
312
|
|
|
325
313
|
|
|
326
314
|
// Source: https://stackoverflow.com/a/30106551
|
|
327
|
-
/**
|
|
328
|
-
* Encoding UTF8 ⇢ base64
|
|
315
|
+
/**
|
|
316
|
+
* Encoding UTF8 ⇢ base64
|
|
329
317
|
*/ function $ff7c981d968fe09a$export$a1893782a2a6be0d(str) {
|
|
330
318
|
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
|
|
331
319
|
return String.fromCharCode(parseInt(p1, 16));
|
|
@@ -340,13 +328,13 @@ function $ff7c981d968fe09a$export$a7e53ec3b3fdd030(str) {
|
|
|
340
328
|
|
|
341
329
|
|
|
342
330
|
|
|
343
|
-
/**
|
|
344
|
-
* Class containing state that an IPNS operates on. It's only exported for type info and in case that you want to use it for instanceof checks.
|
|
345
|
-
* subscribers is an array of functions that get called every time push_value is called with a new value AND all previous subscribers are done
|
|
346
|
-
* queue is the queue of values that subscribers gets called with
|
|
347
|
-
* last_processed_value is the last value that the subscribers were called with
|
|
348
|
-
* push_value adds a new value to the queue and triggers the calling of the subscribers if they're done
|
|
349
|
-
* subscriber_done decrements the number of subscribers we are waiting for, if this isn't called call_subscribers will get stuck. It also triggers a new call to call_subscribers
|
|
331
|
+
/**
|
|
332
|
+
* Class containing state that an IPNS operates on. It's only exported for type info and in case that you want to use it for instanceof checks.
|
|
333
|
+
* subscribers is an array of functions that get called every time push_value is called with a new value AND all previous subscribers are done
|
|
334
|
+
* queue is the queue of values that subscribers gets called with
|
|
335
|
+
* last_processed_value is the last value that the subscribers were called with
|
|
336
|
+
* push_value adds a new value to the queue and triggers the calling of the subscribers if they're done
|
|
337
|
+
* subscriber_done decrements the number of subscribers we are waiting for, if this isn't called call_subscribers will get stuck. It also triggers a new call to call_subscribers
|
|
350
338
|
*/ class $5a591e8156b1128c$export$e2c811ae0eb35313 {
|
|
351
339
|
subscribers_ = [];
|
|
352
340
|
waiting_for_update_ = 0;
|
|
@@ -422,10 +410,10 @@ function $5a591e8156b1128c$export$3e42f5078e3abfc0(state) {
|
|
|
422
410
|
}
|
|
423
411
|
|
|
424
412
|
|
|
425
|
-
/**
|
|
426
|
-
* You know how you can write `break` inside of a `for await` loop to exit it? Well, this lets you break the loop from outside. Pass any async iterable that never throws and you will get back a function and a specially proxied async iterable. Whenever you call the function all for await loops iterating the returned iterable will break. Note: This will add some extra ticks because awaiting thenable objects takes more ticks than awaiting promises.
|
|
427
|
-
* @param async_iterable The async iterable you want to make exitable
|
|
428
|
-
* @return An array containing a function, the exit function, and a wrapped async iterable
|
|
413
|
+
/**
|
|
414
|
+
* You know how you can write `break` inside of a `for await` loop to exit it? Well, this lets you break the loop from outside. Pass any async iterable that never throws and you will get back a function and a specially proxied async iterable. Whenever you call the function all for await loops iterating the returned iterable will break. Note: This will add some extra ticks because awaiting thenable objects takes more ticks than awaiting promises.
|
|
415
|
+
* @param async_iterable The async iterable you want to make exitable
|
|
416
|
+
* @return An array containing a function, the exit function, and a wrapped async iterable
|
|
429
417
|
*/ function $bbe52965151ee7f0$export$927664b47117acb0(async_iterable) {
|
|
430
418
|
const promise_result_setting_functions = new Map();
|
|
431
419
|
const exit_function = ()=>{
|
|
@@ -906,11 +894,11 @@ function $268cbd9e4ade92db$export$f18d5b0af29128b7(msg, severity, input_data = {
|
|
|
906
894
|
}
|
|
907
895
|
|
|
908
896
|
|
|
909
|
-
/**
|
|
910
|
-
* Gives a random number between min and max (potentially including min and max).
|
|
911
|
-
* @param min The minimum number.
|
|
912
|
-
* @param max The maximum number.
|
|
913
|
-
* @returns a random number
|
|
897
|
+
/**
|
|
898
|
+
* Gives a random number between min and max (potentially including min and max).
|
|
899
|
+
* @param min The minimum number.
|
|
900
|
+
* @param max The maximum number.
|
|
901
|
+
* @returns a random number
|
|
914
902
|
*/ function $3f34dc07544c5857$export$bb0a9c36cf454ea0(min, max) {
|
|
915
903
|
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
916
904
|
}
|
|
@@ -1233,9 +1221,9 @@ class $d10801050840d92b$export$1d9c6fddbff3441f extends $d10801050840d92b$export
|
|
|
1233
1221
|
}
|
|
1234
1222
|
|
|
1235
1223
|
|
|
1236
|
-
/**
|
|
1237
|
-
* Returns a random string
|
|
1238
|
-
* @return A random string, containing a-z, 0-9 and occasionally a dot (`.`)
|
|
1224
|
+
/**
|
|
1225
|
+
* Returns a random string
|
|
1226
|
+
* @return A random string, containing a-z, 0-9 and occasionally a dot (`.`)
|
|
1239
1227
|
*/ function $650b64c1b384c895$export$656831b7e9c341c3() {
|
|
1240
1228
|
return (Math.random() * 2e17).toString(36);
|
|
1241
1229
|
}
|
|
@@ -1487,8 +1475,8 @@ function $dba5a9c0f6fb4324$export$6f051469dd676a8b(tenant, market, type) {
|
|
|
1487
1475
|
|
|
1488
1476
|
|
|
1489
1477
|
|
|
1490
|
-
/**
|
|
1491
|
-
* @deprecated this was a stupid idea, it's much easier to read if one just does a quick arrow function that provides the wanted arguments
|
|
1478
|
+
/**
|
|
1479
|
+
* @deprecated this was a stupid idea, it's much easier to read if one just does a quick arrow function that provides the wanted arguments
|
|
1492
1480
|
*/ function $ee1d22bd1fcdd4e1$export$6e7454c733fa1fb2(fn, ...args) {
|
|
1493
1481
|
return function(...unimportant_args) {
|
|
1494
1482
|
return fn.apply(this, [
|
|
@@ -1978,6 +1966,8 @@ class $9043c64496e3375f$export$12e07a2a9f87578a {
|
|
|
1978
1966
|
// called when observer.onsomethinglistener() is called, somethinglistener being something in this.#listeners
|
|
1979
1967
|
const the_class = this;
|
|
1980
1968
|
const function_for_listener = (selector, callback)=>{
|
|
1969
|
+
if (typeof Node !== "function") // We are probably running on the server where we can't do anything anyway so we might just return
|
|
1970
|
+
return;
|
|
1981
1971
|
if (!listener || !selector || !callback) {
|
|
1982
1972
|
(0, $e6c6e7929ea385ae$export$de56f1198d121036)("listener, selector or callback is falsey", {
|
|
1983
1973
|
listener: listener,
|
|
@@ -2281,10 +2271,10 @@ async function $44909e19109bf973$export$8f66c4c7fb96eda2(e, product_id) {
|
|
|
2281
2271
|
|
|
2282
2272
|
|
|
2283
2273
|
|
|
2284
|
-
/**
|
|
2285
|
-
* Useful for the `thresholds` option of IntersectionObserver - if you want to be notified at a 10% change, call this and set num_steps to 10. Pls see https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/thresholds
|
|
2286
|
-
* @param numSteps How many steps (notifications) there should be between 0 and 100% intersection
|
|
2287
|
-
* @return Stuff to give to IntersectionObserver
|
|
2274
|
+
/**
|
|
2275
|
+
* Useful for the `thresholds` option of IntersectionObserver - if you want to be notified at a 10% change, call this and set num_steps to 10. Pls see https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/thresholds
|
|
2276
|
+
* @param numSteps How many steps (notifications) there should be between 0 and 100% intersection
|
|
2277
|
+
* @return Stuff to give to IntersectionObserver
|
|
2288
2278
|
*/ function $0da0cad4f39e8f32$export$f8ea2e7b15b5d129(numSteps) {
|
|
2289
2279
|
const thresholds = [];
|
|
2290
2280
|
for(let i = 1.0; i <= numSteps; i++){
|
|
@@ -2296,12 +2286,12 @@ async function $44909e19109bf973$export$8f66c4c7fb96eda2(e, product_id) {
|
|
|
2296
2286
|
}
|
|
2297
2287
|
|
|
2298
2288
|
|
|
2299
|
-
/**
|
|
2300
|
-
* Elements currently intersecting with the viewport.
|
|
2301
|
-
* If they are intersecting for the `has_to_be_intersecting_for` duration, we count it as an impression, and call the callback.
|
|
2289
|
+
/**
|
|
2290
|
+
* Elements currently intersecting with the viewport.
|
|
2291
|
+
* If they are intersecting for the `has_to_be_intersecting_for` duration, we count it as an impression, and call the callback.
|
|
2302
2292
|
*/ const $72ed530554068e4f$var$current_intersections = /*@__PURE__*/ new WeakMap();
|
|
2303
|
-
/**
|
|
2304
|
-
* Currently watched elements by the intersection observer with their respective callback
|
|
2293
|
+
/**
|
|
2294
|
+
* Currently watched elements by the intersection observer with their respective callback
|
|
2305
2295
|
* */ const $72ed530554068e4f$var$watched_elements = /*@__PURE__*/ new WeakMap();
|
|
2306
2296
|
const $72ed530554068e4f$var$unwatch_element = (element)=>{
|
|
2307
2297
|
$72ed530554068e4f$var$intersection_observer?.unobserve(element);
|
|
@@ -2366,9 +2356,9 @@ const $72ed530554068e4f$var$intersection_observer_callback = (entries)=>{
|
|
|
2366
2356
|
}
|
|
2367
2357
|
}
|
|
2368
2358
|
};
|
|
2369
|
-
/**
|
|
2370
|
-
* Global IntersectionObserver used for all impression tracking.
|
|
2371
|
-
* It's faster to use one observer for all elements than to create a new one for each element.
|
|
2359
|
+
/**
|
|
2360
|
+
* Global IntersectionObserver used for all impression tracking.
|
|
2361
|
+
* It's faster to use one observer for all elements than to create a new one for each element.
|
|
2372
2362
|
*/ const $72ed530554068e4f$var$intersection_observer = typeof window === "object" ? /*@__PURE__*/ new IntersectionObserver((0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)($72ed530554068e4f$var$intersection_observer_callback), {
|
|
2373
2363
|
threshold: /*@__PURE__*/ (0, /*@__PURE__*/$0da0cad4f39e8f32$export$f8ea2e7b15b5d129)(8)
|
|
2374
2364
|
}) : undefined;
|
|
@@ -2712,17 +2702,17 @@ const $28e42b0009d694b2$export$abec7fd9f0b9cc22 = /*@__PURE__*/ (0, /*@__PURE__*
|
|
|
2712
2702
|
|
|
2713
2703
|
|
|
2714
2704
|
const $2026711c6c2d6204$var$required_consent_level = process.env.DEPICT_TRACKING_CONSENT_LEVEL;
|
|
2715
|
-
/*
|
|
2716
|
-
The Optanon cookie format can vary slightly between integrations. To figure out the key values used for a particular customer,
|
|
2717
|
-
visit their web, finish the consent dialog, then run
|
|
2718
|
-
new URLSearchParams(document.cookie.match("(^|;)\\s*OptanonConsent\\s*=\\s*([^;]+)")?.pop()).get("groups")
|
|
2719
|
-
in the console. You should see something like
|
|
2720
|
-
'NECES:1,ANALY:1,PERON:1,MARKE:1'
|
|
2721
|
-
Which tells you what the key values for each consent level is. Enter them in the correct order, comma separated,
|
|
2722
|
-
as OPTANON_KEYS in the tenants .env file. For the cookie output above, the .env entry would be
|
|
2723
|
-
OPTANON_KEYS="NECES,ANALY,PERON,MARKE"
|
|
2724
|
-
If it's not obvious which consent level each key represents, open the consent dialog again and start de-selecting consent options,
|
|
2725
|
-
then check the cookie value again.
|
|
2705
|
+
/*
|
|
2706
|
+
The Optanon cookie format can vary slightly between integrations. To figure out the key values used for a particular customer,
|
|
2707
|
+
visit their web, finish the consent dialog, then run
|
|
2708
|
+
new URLSearchParams(document.cookie.match("(^|;)\\s*OptanonConsent\\s*=\\s*([^;]+)")?.pop()).get("groups")
|
|
2709
|
+
in the console. You should see something like
|
|
2710
|
+
'NECES:1,ANALY:1,PERON:1,MARKE:1'
|
|
2711
|
+
Which tells you what the key values for each consent level is. Enter them in the correct order, comma separated,
|
|
2712
|
+
as OPTANON_KEYS in the tenants .env file. For the cookie output above, the .env entry would be
|
|
2713
|
+
OPTANON_KEYS="NECES,ANALY,PERON,MARKE"
|
|
2714
|
+
If it's not obvious which consent level each key represents, open the consent dialog again and start de-selecting consent options,
|
|
2715
|
+
then check the cookie value again.
|
|
2726
2716
|
*/ const $2026711c6c2d6204$var$KEY_ORDER = [
|
|
2727
2717
|
"necessary",
|
|
2728
2718
|
"statistics",
|
|
@@ -3083,8 +3073,8 @@ class $16f3a26cfac77a4c$export$8d42ce4827f43582 {
|
|
|
3083
3073
|
});
|
|
3084
3074
|
})();
|
|
3085
3075
|
}
|
|
3086
|
-
} /**
|
|
3087
|
-
* This is a list of alpha-2 country codes plus some two letter combinations commonly used to describe markets
|
|
3076
|
+
} /**
|
|
3077
|
+
* This is a list of alpha-2 country codes plus some two letter combinations commonly used to describe markets
|
|
3088
3078
|
*/ // albania
|
|
3089
3079
|
|
|
3090
3080
|
|
|
@@ -3307,11 +3297,11 @@ const $fbb09973782881cb$export$6ebd242c09192cec = /*@__PURE__*/ (0, /*@__PURE__*
|
|
|
3307
3297
|
|
|
3308
3298
|
|
|
3309
3299
|
// not ideal but can help when debugging via sentry
|
|
3310
|
-
/**
|
|
3311
|
-
* A function that attempts to "serialize" an object to a text representation that helps with debugging when using sentry
|
|
3312
|
-
* @param anything Something to try to serialize - this function is crappy and your mileage may vary
|
|
3313
|
-
* @param depth How deep to go when recursing
|
|
3314
|
-
* @return An object that is somehow closer to text (better serializable by sentry) or text
|
|
3300
|
+
/**
|
|
3301
|
+
* A function that attempts to "serialize" an object to a text representation that helps with debugging when using sentry
|
|
3302
|
+
* @param anything Something to try to serialize - this function is crappy and your mileage may vary
|
|
3303
|
+
* @param depth How deep to go when recursing
|
|
3304
|
+
* @return An object that is somehow closer to text (better serializable by sentry) or text
|
|
3315
3305
|
*/ function $45e05ec4fd7f1ee7$export$39d526a1194b6499(anything, depth) {
|
|
3316
3306
|
depth ??= 0;
|
|
3317
3307
|
depth++;
|
|
@@ -3797,8 +3787,8 @@ function $d1ef5fbddf08305d$var$find_last_visible(items) {
|
|
|
3797
3787
|
|
|
3798
3788
|
|
|
3799
3789
|
|
|
3800
|
-
/**
|
|
3801
|
-
* @deprecated use async_iterable_ipns instead. This can skip values which yields unexpected results.
|
|
3790
|
+
/**
|
|
3791
|
+
* @deprecated use async_iterable_ipns instead. This can skip values which yields unexpected results.
|
|
3802
3792
|
*/ function $7198207999c01453$export$55621c1ce3cd536b() {
|
|
3803
3793
|
// the idea is to have a new promise available immediately before one resolves, so to say an infinite promise
|
|
3804
3794
|
let internal_resolve; // copy and pasted from iconbeauty
|
|
@@ -3910,12 +3900,12 @@ async function $8686e45614d71607$export$9eae832ae57fbf(t, css, extra_html) {
|
|
|
3910
3900
|
|
|
3911
3901
|
// TODO: Move ArrayElement<> to better util place
|
|
3912
3902
|
// All the supported markets of all the Tenants (all possible markets).
|
|
3913
|
-
/**
|
|
3914
|
-
* @deprecated please use TwoLetterMarket / readonly arrays/objects instead
|
|
3903
|
+
/**
|
|
3904
|
+
* @deprecated please use TwoLetterMarket / readonly arrays/objects instead
|
|
3915
3905
|
*/ let $e86d825ce508e342$export$3db8c5834c5aa726;
|
|
3916
3906
|
// All the known locales (add more)
|
|
3917
|
-
/**
|
|
3918
|
-
* @deprecated please use TwoLetterMarket / readonly arrays/objects instead
|
|
3907
|
+
/**
|
|
3908
|
+
* @deprecated please use TwoLetterMarket / readonly arrays/objects instead
|
|
3919
3909
|
*/ (function(Market) {
|
|
3920
3910
|
Market["dk"] = "dk";
|
|
3921
3911
|
Market["uk"] = "uk";
|
|
@@ -4028,8 +4018,8 @@ function $e86d825ce508e342$export$47340c0b196bc0f8(market) {
|
|
|
4028
4018
|
}
|
|
4029
4019
|
function $e86d825ce508e342$export$c5b68ecd5c37aa6c(market) {
|
|
4030
4020
|
return $e86d825ce508e342$export$6eea148df5c7117c[market].currency;
|
|
4031
|
-
} /**
|
|
4032
|
-
* @deprecated please use TwoLetterMarket / readonly arrays/objects instead
|
|
4021
|
+
} /**
|
|
4022
|
+
* @deprecated please use TwoLetterMarket / readonly arrays/objects instead
|
|
4033
4023
|
*/
|
|
4034
4024
|
|
|
4035
4025
|
|
|
@@ -5272,8 +5262,8 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
|
5272
5262
|
}
|
|
5273
5263
|
|
|
5274
5264
|
|
|
5275
|
-
var /**
|
|
5276
|
-
* @deprecated Please use RecommendationRenderer instead
|
|
5265
|
+
var /**
|
|
5266
|
+
* @deprecated Please use RecommendationRenderer instead
|
|
5277
5267
|
*/ $52d3be7ce5146924$export$2e2bcd8739ae039 = async (options)=>{
|
|
5278
5268
|
const depict = new (0, $0b6a8303b64cced1$export$1a8782481a9af507)(options.options), done = new Promise((itsdone)=>{
|
|
5279
5269
|
document._depict_modify = true;
|
|
@@ -5549,14 +5539,14 @@ function $765ddca135d7ab33$export$c410ce1205e5118a(_t, itms, d, slider) {
|
|
|
5549
5539
|
|
|
5550
5540
|
|
|
5551
5541
|
|
|
5552
|
-
var /**
|
|
5553
|
-
* @deprecated please use `fetch_retry()` instead
|
|
5554
|
-
*
|
|
5555
|
-
* Windows proof fetch factory: windows proof fetch is a utility which retries fetch requests 10 times when they fail. Reason for this is a certain windows 10 build where the network stack randomly breaks 20% of https connections
|
|
5556
|
-
* (Note: this thing really should be rewritten with exponential backoff and a better API)
|
|
5557
|
-
* @param dlog logging function to use
|
|
5558
|
-
* @param error_log an array to which errors will be pushed
|
|
5559
|
-
* @return a windows proof fetch function
|
|
5542
|
+
var /**
|
|
5543
|
+
* @deprecated please use `fetch_retry()` instead
|
|
5544
|
+
*
|
|
5545
|
+
* Windows proof fetch factory: windows proof fetch is a utility which retries fetch requests 10 times when they fail. Reason for this is a certain windows 10 build where the network stack randomly breaks 20% of https connections
|
|
5546
|
+
* (Note: this thing really should be rewritten with exponential backoff and a better API)
|
|
5547
|
+
* @param dlog logging function to use
|
|
5548
|
+
* @param error_log an array to which errors will be pushed
|
|
5549
|
+
* @return a windows proof fetch function
|
|
5560
5550
|
*/ $c413c7798924612a$export$2e2bcd8739ae039 = (dlog, error_log)=>{
|
|
5561
5551
|
// https://sentry.io/organizations/depictai-0o/issues/2025371462/?project=5476183&query=is%3Aunresolved
|
|
5562
5552
|
// https://stackoverflow.com/a/52947884
|
|
@@ -5768,10 +5758,10 @@ async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({ rows: rows , container
|
|
|
5768
5758
|
}
|
|
5769
5759
|
});
|
|
5770
5760
|
}
|
|
5771
|
-
/** Getting how many recs should be displayed for a certain row (while taking override rules into account)
|
|
5772
|
-
* This returns number of recs for this row and all the previous ones
|
|
5773
|
-
* @param row The "index" of the row (counting from the top). Starts at 1.
|
|
5774
|
-
* @param options Your cols_at_size layout option
|
|
5761
|
+
/** Getting how many recs should be displayed for a certain row (while taking override rules into account)
|
|
5762
|
+
* This returns number of recs for this row and all the previous ones
|
|
5763
|
+
* @param row The "index" of the row (counting from the top). Starts at 1.
|
|
5764
|
+
* @param options Your cols_at_size layout option
|
|
5775
5765
|
*/ function $1cc2444a0f1b992e$var$get_total_rec_amount_for_row(row, options) {
|
|
5776
5766
|
const [default_cols, , , , override_obj] = options;
|
|
5777
5767
|
const overrides = override_obj?.overrides || {};
|
|
@@ -5782,8 +5772,8 @@ async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({ rows: rows , container
|
|
|
5782
5772
|
}
|
|
5783
5773
|
return total;
|
|
5784
5774
|
}
|
|
5785
|
-
/**
|
|
5786
|
-
* Same as `get_total_rec_amount_for_row` but caps the result to never exceed @param max_recs
|
|
5775
|
+
/**
|
|
5776
|
+
* Same as `get_total_rec_amount_for_row` but caps the result to never exceed @param max_recs
|
|
5787
5777
|
*/ function $1cc2444a0f1b992e$var$get_visible_recs_without_partial_rows(rows, max_recs, options) {
|
|
5788
5778
|
let visible_recs;
|
|
5789
5779
|
while((visible_recs = $1cc2444a0f1b992e$var$get_total_rec_amount_for_row(rows--, options)) > max_recs);
|
|
@@ -5822,13 +5812,13 @@ function $1cc2444a0f1b992e$export$17c3166a7ebd4688(selector_beginning, default_g
|
|
|
5822
5812
|
const overrides = override?.overrides || {};
|
|
5823
5813
|
const sorted = Object.keys(overrides).sort((r1, r2)=>parseInt(r1) - parseInt(r2));
|
|
5824
5814
|
const last_override_row = sorted.at(-1);
|
|
5825
|
-
/** We run this loop up until the last override rule + 1.
|
|
5826
|
-
* The last iteration will create styling rules that apply to every row that comes after it.
|
|
5827
|
-
* Let's say we have one override rule for row 2.
|
|
5828
|
-
* We:
|
|
5829
|
-
* 1. Create styling for row 1
|
|
5830
|
-
* 2. Create styling for row 2
|
|
5831
|
-
* 3. Create styling for row 3 which will apply to the rest of the rows. Every row will be the same from now on.
|
|
5815
|
+
/** We run this loop up until the last override rule + 1.
|
|
5816
|
+
* The last iteration will create styling rules that apply to every row that comes after it.
|
|
5817
|
+
* Let's say we have one override rule for row 2.
|
|
5818
|
+
* We:
|
|
5819
|
+
* 1. Create styling for row 1
|
|
5820
|
+
* 2. Create styling for row 2
|
|
5821
|
+
* 3. Create styling for row 3 which will apply to the rest of the rows. Every row will be the same from now on.
|
|
5832
5822
|
*/ const max_row = last_override_row ? parseInt(last_override_row) + 1 : 1;
|
|
5833
5823
|
for(let row = 1; row <= max_row; row++){
|
|
5834
5824
|
const real_n_cols = overrides[row] || n_cols;
|
|
@@ -6781,15 +6771,12 @@ function $3721a5ccba25c247$export$3d04c40e7acc1a32(initial_value) {
|
|
|
6781
6771
|
|
|
6782
6772
|
|
|
6783
6773
|
|
|
6784
|
-
|
|
6785
|
-
* A wrapper around window.matchMedia, basically cross browser compatibly adds an event listener to a media query that triggers when it changes
|
|
6786
|
-
* @param query The media query (without `@media`)
|
|
6787
|
-
* @param catchified_handler The function to execute
|
|
6788
|
-
* @param initial_call If the handler should be called instantly with the current state of the media query
|
|
6789
|
-
* @return An object containing `remove`, a function which removes the event listener again
|
|
6790
|
-
*/
|
|
6774
|
+
|
|
6791
6775
|
function $93c499898a1702c7$export$515c3ea4d599b05a(// inspired by code in houdinisportswear modify script
|
|
6792
6776
|
query, handler, initial_call = true) {
|
|
6777
|
+
if (typeof window !== "object") return {
|
|
6778
|
+
remove () {}
|
|
6779
|
+
}; // Don't run on the server
|
|
6793
6780
|
const catchified_handler = (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(handler, "Error in media query listener callback");
|
|
6794
6781
|
const media_query = window?.matchMedia?.(query);
|
|
6795
6782
|
if (initial_call && media_query) catchified_handler(media_query);
|
|
@@ -7056,9 +7043,9 @@ async function $8594d423459ba80c$export$d63b08f4f29ddba5(t, unavailability_type)
|
|
|
7056
7043
|
|
|
7057
7044
|
|
|
7058
7045
|
|
|
7059
|
-
/**
|
|
7060
|
-
* Set but you can listen for values being added or removed
|
|
7061
|
-
* i.e. my_set.addEventListener("add", ({detail}) => console.log(detail, "was added to", my_set));
|
|
7046
|
+
/**
|
|
7047
|
+
* Set but you can listen for values being added or removed
|
|
7048
|
+
* i.e. my_set.addEventListener("add", ({detail}) => console.log(detail, "was added to", my_set));
|
|
7062
7049
|
*/ class $d343f609f5a6614f$export$74108888f38788f3 extends Set {
|
|
7063
7050
|
#et = new EventTarget();
|
|
7064
7051
|
addEventListener(event, callback, options) {
|
|
@@ -7086,12 +7073,12 @@ async function $8594d423459ba80c$export$d63b08f4f29ddba5(t, unavailability_type)
|
|
|
7086
7073
|
|
|
7087
7074
|
|
|
7088
7075
|
|
|
7089
|
-
/**
|
|
7090
|
-
* This does what you'd think Element.closest does. It finds the closest node in the DOM tree matching a selector. So it starts out with the siblings and then goes upwards in the DOM and checks the siblings and their children of the parent until there's no parent anymore.
|
|
7091
|
-
* @param element Element to start out at
|
|
7092
|
-
* @param selector Selector to search for
|
|
7093
|
-
* @param start_right=true In what direction to start: true = right, false = left
|
|
7094
|
-
* @return The found element or undefined
|
|
7076
|
+
/**
|
|
7077
|
+
* This does what you'd think Element.closest does. It finds the closest node in the DOM tree matching a selector. So it starts out with the siblings and then goes upwards in the DOM and checks the siblings and their children of the parent until there's no parent anymore.
|
|
7078
|
+
* @param element Element to start out at
|
|
7079
|
+
* @param selector Selector to search for
|
|
7080
|
+
* @param start_right=true In what direction to start: true = right, false = left
|
|
7081
|
+
* @return The found element or undefined
|
|
7095
7082
|
*/ function $14d244e5a13fa0df$export$d9fdc6ce2907f95b(element, selector, start_right = true) {
|
|
7096
7083
|
for(; element; element = element.parentNode){
|
|
7097
7084
|
if (element?.matches?.(selector)) return element;
|
|
@@ -7144,10 +7131,10 @@ function $1e9d51e365c02476$export$82539d9817116aff(e, url) {
|
|
|
7144
7131
|
}
|
|
7145
7132
|
|
|
7146
7133
|
|
|
7147
|
-
/**
|
|
7148
|
-
* This module contains utillities for working with ecom sites using shoppify.
|
|
7149
|
-
*
|
|
7150
|
-
* Shopify cart API reference: https://shopify.dev/api/ajax/reference/cart
|
|
7134
|
+
/**
|
|
7135
|
+
* This module contains utillities for working with ecom sites using shoppify.
|
|
7136
|
+
*
|
|
7137
|
+
* Shopify cart API reference: https://shopify.dev/api/ajax/reference/cart
|
|
7151
7138
|
*/
|
|
7152
7139
|
|
|
7153
7140
|
async function $7ccebf01cfe4f824$export$85be83e1935d93c2(fetch_proxy_handler, // we assume fetch is actually fetch, therefore proxy handler is typed like this
|
|
@@ -7881,8 +7868,8 @@ function $2780129735dc272e$export$2a38b176ce969e2c(orig_url_with_trailing_slash)
|
|
|
7881
7868
|
|
|
7882
7869
|
|
|
7883
7870
|
|
|
7884
|
-
/**
|
|
7885
|
-
* Recursively sorts the keys in an object (NOT in-place, returns a new object). Do not provide objects containing anything other than primitives or other objects. Do not provide objects that have cyclical values.
|
|
7871
|
+
/**
|
|
7872
|
+
* Recursively sorts the keys in an object (NOT in-place, returns a new object). Do not provide objects containing anything other than primitives or other objects. Do not provide objects that have cyclical values.
|
|
7886
7873
|
*/ function $24daf6f6e6529b9f$export$12b4c6cbc6b8b4e4(maybe_obj) {
|
|
7887
7874
|
if (!maybe_obj) return maybe_obj;
|
|
7888
7875
|
if (typeof maybe_obj != "object") return maybe_obj;
|
|
@@ -7901,18 +7888,18 @@ function $2780129735dc272e$export$2a38b176ce969e2c(orig_url_with_trailing_slash)
|
|
|
7901
7888
|
}
|
|
7902
7889
|
|
|
7903
7890
|
|
|
7904
|
-
/**
|
|
7905
|
-
* Tries to figure out the tenant's market (`TwoLetterMarket` for new integrations) through various means.
|
|
7906
|
-
*
|
|
7907
|
-
* 1. Checks if there is a market in one of the url segments (www.tentant.se/foo/se/bar)
|
|
7908
|
-
* 2. Checks if the market is specified in the tenant's domain name (www.tenant-se.com)
|
|
7909
|
-
* 3. Checks the toplevel domain (www.tenant.se/foo/bar)
|
|
7910
|
-
*
|
|
7911
|
-
* @param allowed_markets An array the possible markets for the tenant.
|
|
7912
|
-
* Dont forget to specify the allowed market as const (`["se", "en"] as const`) to get the best typing
|
|
7913
|
-
* @param url Specify this to overide the url to check, defaults to the current url
|
|
7914
|
-
* @param tenant The tenant's name
|
|
7915
|
-
* @returns If a market specified in `allowed_markets`was found that is returned, `undefined` otherwise
|
|
7891
|
+
/**
|
|
7892
|
+
* Tries to figure out the tenant's market (`TwoLetterMarket` for new integrations) through various means.
|
|
7893
|
+
*
|
|
7894
|
+
* 1. Checks if there is a market in one of the url segments (www.tentant.se/foo/se/bar)
|
|
7895
|
+
* 2. Checks if the market is specified in the tenant's domain name (www.tenant-se.com)
|
|
7896
|
+
* 3. Checks the toplevel domain (www.tenant.se/foo/bar)
|
|
7897
|
+
*
|
|
7898
|
+
* @param allowed_markets An array the possible markets for the tenant.
|
|
7899
|
+
* Dont forget to specify the allowed market as const (`["se", "en"] as const`) to get the best typing
|
|
7900
|
+
* @param url Specify this to overide the url to check, defaults to the current url
|
|
7901
|
+
* @param tenant The tenant's name
|
|
7902
|
+
* @returns If a market specified in `allowed_markets`was found that is returned, `undefined` otherwise
|
|
7916
7903
|
*/ function $02a3425594231893$export$a422d714c8cb1a5d(allowed_markets, url, tenant = process.env.TENANT) {
|
|
7917
7904
|
const u_o = url ? new URL(url) : location;
|
|
7918
7905
|
const { hostname: hostname } = u_o;
|
|
@@ -8029,9 +8016,9 @@ function $05802e6cb0fdbdcd$export$3427ec8268623f1(listener) {
|
|
|
8029
8016
|
|
|
8030
8017
|
|
|
8031
8018
|
|
|
8032
|
-
/**
|
|
8033
|
-
* Timeout a promise after `ms` milliseconds.
|
|
8034
|
-
* If the promise is timed out this function will return `undefined` and not throw.
|
|
8019
|
+
/**
|
|
8020
|
+
* Timeout a promise after `ms` milliseconds.
|
|
8021
|
+
* If the promise is timed out this function will return `undefined` and not throw.
|
|
8035
8022
|
*/ function $9ed7c4b0fbf9ccd8$export$cd1adfb8059b5fcd(promise, ms) {
|
|
8036
8023
|
const timeout = new Promise((res)=>setTimeout(res, ms));
|
|
8037
8024
|
return Promise.race([
|
|
@@ -8073,23 +8060,8 @@ function $dba3e72fb3e5c53d$export$4a3043e508dd72f0({ children: children , ...att
|
|
|
8073
8060
|
|
|
8074
8061
|
|
|
8075
8062
|
|
|
8076
|
-
function $1d51c6ae7410ca13$export$3b621d86b1566b2(props = {}) {
|
|
8077
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8078
|
-
...props,
|
|
8079
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8080
|
-
width: "21.064",
|
|
8081
|
-
height: "21.047",
|
|
8082
|
-
viewBox: "0 0 21.064 21.064",
|
|
8083
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8084
|
-
d: "M11.669 10.531l9.156-9.156a.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569A.8.8 0 0 0 20.24 0a.77.77 0 0 0-.569.237l-9.14 9.14-9.14-9.14A.79.79 0 0 0 .807 0a.77.77 0 0 0-.569.237A.78.78 0 0 0 0 .807a.77.77 0 0 0 .237.569l9.156 9.156-9.156 9.14c-.159.157-.237.349-.237.569s.079.412.237.569c.085.085.174.148.268.19a1.095 1.095 0 0 0 .316.048.894.894 0 0 0 .285-.048.84.84 0 0 0 .285-.19l9.139-9.14 9.14 9.14a.894.894 0 0 0 .268.19 1.049 1.049 0 0 0 .301.048.941.941 0 0 0 .301-.048.84.84 0 0 0 .285-.19.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569z"
|
|
8085
|
-
})
|
|
8086
|
-
});
|
|
8087
|
-
}
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
8063
|
|
|
8092
|
-
async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({ title_: title_ , children: children }) {
|
|
8064
|
+
async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({ title_: title_ , children: children , CloseIcon: CloseIcon }) {
|
|
8093
8065
|
// TODO: make so once can't accidentally have multiple at once
|
|
8094
8066
|
let close_;
|
|
8095
8067
|
const closing_handlers = [];
|
|
@@ -8113,7 +8085,7 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({ title_: title_ , chil
|
|
|
8113
8085
|
(0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("button", {
|
|
8114
8086
|
class: "close",
|
|
8115
8087
|
onClick: close_,
|
|
8116
|
-
children: (
|
|
8088
|
+
children: CloseIcon()
|
|
8117
8089
|
})
|
|
8118
8090
|
]
|
|
8119
8091
|
}),
|
|
@@ -8201,11 +8173,12 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({ title_: title_ , chil
|
|
|
8201
8173
|
|
|
8202
8174
|
|
|
8203
8175
|
|
|
8204
|
-
async function $bd0fccdac6624b01$export$c068ad5361be7646({ title_: title_ , items_: items_ , out_of_stock_text_: out_of_stock_text_ }) {
|
|
8176
|
+
async function $bd0fccdac6624b01$export$c068ad5361be7646({ title_: title_ , items_: items_ , out_of_stock_text_: out_of_stock_text_ , CloseIcon: CloseIcon }) {
|
|
8205
8177
|
const [exit_oos_iterator, exitable_oos_iterator] = (0, $bbe52965151ee7f0$export$927664b47117acb0)(out_of_stock_text_);
|
|
8206
8178
|
// eslint-disable-line no-async-promise-executor
|
|
8207
8179
|
return new Promise((0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(async (size_selected)=>{
|
|
8208
8180
|
const { close_: close_ , on_close_: on_close_ } = await (0, $a7550e9f97f84465$export$8a0e4d6f6abf7e90)({
|
|
8181
|
+
CloseIcon: CloseIcon,
|
|
8209
8182
|
title_: title_,
|
|
8210
8183
|
children: [
|
|
8211
8184
|
(0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("div", {
|
|
@@ -8314,9 +8287,9 @@ const $69accc27bcbd6972$export$ddd70fdae1b350e6 = ()=>(0, $107a74aa4ea5902d$expo
|
|
|
8314
8287
|
|
|
8315
8288
|
|
|
8316
8289
|
|
|
8317
|
-
/**
|
|
8318
|
-
* Internal color circle used in ColorPicker
|
|
8319
|
-
* @see {createColorPicker}
|
|
8290
|
+
/**
|
|
8291
|
+
* Internal color circle used in ColorPicker
|
|
8292
|
+
* @see {createColorPicker}
|
|
8320
8293
|
*/ function $af92e61c7dfccf01$var$ColorCircle({ color: color , onClick: onClick , onHoverUpdate: onHoverUpdate }) {
|
|
8321
8294
|
const button = (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("button", {
|
|
8322
8295
|
class: "color-circle-container",
|
|
@@ -8343,9 +8316,9 @@ function $af92e61c7dfccf01$export$590326cc34f49e2d({ colors: colors , initialCol
|
|
|
8343
8316
|
ColorPicker () {
|
|
8344
8317
|
/** The currently active ColorCircle */ let activeCircle = null;
|
|
8345
8318
|
/** The currently active color object */ let activeColor = null;
|
|
8346
|
-
/**
|
|
8347
|
-
* Update the currently active color object and HTMLElement
|
|
8348
|
-
* Toggles the active class.
|
|
8319
|
+
/**
|
|
8320
|
+
* Update the currently active color object and HTMLElement
|
|
8321
|
+
* Toggles the active class.
|
|
8349
8322
|
*/ const setActive = (e, color)=>{
|
|
8350
8323
|
if (e !== activeCircle) {
|
|
8351
8324
|
if (activeCircle) activeCircle.classList.remove("active");
|
|
@@ -8358,8 +8331,8 @@ function $af92e61c7dfccf01$export$590326cc34f49e2d({ colors: colors , initialCol
|
|
|
8358
8331
|
if (!dontSetActiveOnClick) setActive(clicked, color);
|
|
8359
8332
|
onSelect(color);
|
|
8360
8333
|
};
|
|
8361
|
-
/**
|
|
8362
|
-
* Handles the preview logic.
|
|
8334
|
+
/**
|
|
8335
|
+
* Handles the preview logic.
|
|
8363
8336
|
*/ const handleSelectOnHover = (hovered, color, hovering)=>{
|
|
8364
8337
|
// Don't do any selection if the hovered circle is already selected
|
|
8365
8338
|
if (hovered === activeCircle) return;
|
|
@@ -8552,9 +8525,9 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({ what_to_watch: what_to_watc
|
|
|
8552
8525
|
2048,
|
|
8553
8526
|
4096
|
|
8554
8527
|
] , sizes_communicator: sizes_communicator , resolution_factor: resolution_factor , market_: market_ , sizes_setter_: sizes_setter_ } = {}) {
|
|
8555
|
-
/**
|
|
8556
|
-
* We support what_to_watch being optional, meaning we will take the first image we get.
|
|
8557
|
-
* For that we need to have created the image before being able to create the sizes setter.
|
|
8528
|
+
/**
|
|
8529
|
+
* We support what_to_watch being optional, meaning we will take the first image we get.
|
|
8530
|
+
* For that we need to have created the image before being able to create the sizes setter.
|
|
8558
8531
|
*/ const local_base_url = market_ ? $ff973b2032639b5f$export$3d13beba9b52c947 + "/" + market_ : $ff973b2032639b5f$export$3d13beba9b52c947;
|
|
8559
8532
|
return (image_options)=>{
|
|
8560
8533
|
const raw_src = image_options?.src || image_options?.["data-src"]; // get wanted src
|
|
@@ -8736,9 +8709,9 @@ const $a656daa2fa8c279a$var$TOUCHCANCEL = "touchcancel";
|
|
|
8736
8709
|
const $a656daa2fa8c279a$var$MOUSEOVER = "mouseover";
|
|
8737
8710
|
const $a656daa2fa8c279a$var$MOUSELEAVE = "mouseleave";
|
|
8738
8711
|
const $a656daa2fa8c279a$var$HOVER_CLASS = "hovering";
|
|
8739
|
-
/** This number represents how many elements are in front of div.images-container
|
|
8740
|
-
* Here are the elements: img.depict-img-mod, div, img.depict-img-mod, div, div.second-image-container, div.main-image-container, div.images-container
|
|
8741
|
-
* This number is not very dynamic but much more performant than iterating
|
|
8712
|
+
/** This number represents how many elements are in front of div.images-container
|
|
8713
|
+
* Here are the elements: img.depict-img-mod, div, img.depict-img-mod, div, div.second-image-container, div.main-image-container, div.images-container
|
|
8714
|
+
* This number is not very dynamic but much more performant than iterating
|
|
8742
8715
|
*/ const $a656daa2fa8c279a$var$HOVER_IMAGE_DEPTH = 7;
|
|
8743
8716
|
const $a656daa2fa8c279a$var$MAX_COLLISION_DETECTION_RATE = 70; // ms
|
|
8744
8717
|
const $a656daa2fa8c279a$var$touch_hover_elements = /*@__PURE__*/ new WeakMap();
|
|
@@ -8875,174 +8848,12 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({ second_src: second_src , se
|
|
|
8875
8848
|
|
|
8876
8849
|
|
|
8877
8850
|
|
|
8878
|
-
function $983f812fb0f7ba17$export$2624c5890f1bbcf7() {
|
|
8879
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8880
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8881
|
-
width: "14",
|
|
8882
|
-
height: "14",
|
|
8883
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8884
|
-
d: "M6.402.453L2.203 4.652a.35.35 0 0 0 0 .496c.137.137.359.137.492 0l3.605-3.605v11.406a.35.35 0 0 0 .348.352.35.35 0 0 0 .352-.352V1.543l3.602 3.605a.35.35 0 0 0 .496 0c.066-.07.102-.16.102-.25a.35.35 0 0 0-.102-.246L6.895.453c-.133-.137-.355-.137-.492 0zm0 0"
|
|
8885
|
-
})
|
|
8886
|
-
});
|
|
8887
|
-
}
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
function $db78bec282960988$export$1c641004b5485fed() {
|
|
8892
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8893
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8894
|
-
width: "24",
|
|
8895
|
-
height: "16",
|
|
8896
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8897
|
-
d: "M.773 7.371L7.98.176C8.098.059 8.238 0 8.402 0s.305.059.422.176S9 .434 9 .598s-.059.305-.176.422L2.648 7.195h19.547a.59.59 0 0 1 .609.609c0 .172-.059.305-.176.422s-.262.176-.434.176H2.648l6.176 6.176a.59.59 0 0 1 .176.426c0 .16-.059.301-.176.422-.055.059-.121.109-.199.137s-.148.039-.223.039-.156-.012-.234-.039a.54.54 0 0 1-.187-.137L.773 8.227c-.117-.117-.176-.258-.176-.422a.6.6 0 0 1 .176-.434zm0 0"
|
|
8898
|
-
})
|
|
8899
|
-
});
|
|
8900
|
-
}
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
function $6e524afc8cda32bf$export$28f6150e232898de() {
|
|
8906
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8907
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8908
|
-
width: "14",
|
|
8909
|
-
height: "15",
|
|
8910
|
-
class: "filter-icon",
|
|
8911
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8912
|
-
d: "M1.75 14.697c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V8.75c0-.096.034-.178.103-.246s.15-.103.246-.103.178.034.246.103.103.15.103.246v5.599c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-9.796c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-3.5c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103.103.153.103.253v3.5c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.796H1.053c-.292 0-.54-.103-.745-.308S0 6.938 0 6.651s.103-.54.308-.745.453-.308.745-.308h1.395c.292 0 .54.103.745.308s.308.453.308.745-.103.533-.308.738-.453.308-.745.308zM1.053 6.303c-.1 0-.185.034-.253.103s-.103.15-.103.246.034.178.103.246S.952 7 1.053 7h1.395c.1 0 .185-.034.253-.103s.103-.15.103-.246-.034-.178-.103-.246-.153-.103-.253-.103H1.053zm5.599 8.395c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-2.796c0-.1.034-.184.103-.253s.15-.102.246-.102.178.034.246.102.103.153.103.253v2.796c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-7c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V1.053c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103S7 .952 7 1.053v6.296c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803H5.947c-.287 0-.533-.102-.738-.308s-.308-.453-.308-.745.103-.533.308-.738.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.451.308.738-.103.54-.308.745-.453.308-.745.308zM5.947 9.099c-.096 0-.178.034-.246.103s-.103.15-.103.246.034.185.103.253.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.103-.153.103-.253-.034-.178-.103-.246-.15-.103-.246-.103H5.947zm5.605 5.599c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246v-7c0-.096.034-.178.102-.246S11.453 7 11.553 7s.178.034.246.103.103.15.103.246v7c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-11.197c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246V1.053c0-.1.034-.185.102-.253s.153-.103.253-.103.178.034.246.103.103.153.103.253v2.099c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803h-1.401c-.287 0-.533-.103-.738-.308s-.308-.453-.308-.745.103-.54.308-.745.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.453.308.745-.102.54-.308.745-.453.308-.745.308zm-1.401-1.401c-.096 0-.178.034-.246.103s-.102.15-.102.246.034.178.102.246.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.102-.15.102-.246-.034-.178-.102-.246-.15-.103-.246-.103h-1.401z"
|
|
8913
|
-
})
|
|
8914
|
-
});
|
|
8915
|
-
}
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
function $6914dea95c0b72da$export$8be2714ec7f169ee({ width_: width_ = 14 , height_: height_ = 26 } = {}) {
|
|
8920
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8921
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8922
|
-
width: width_,
|
|
8923
|
-
height: height_,
|
|
8924
|
-
viewBox: "0 0 14 26",
|
|
8925
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8926
|
-
d: "M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0",
|
|
8927
|
-
fill: "#0f0f0f"
|
|
8928
|
-
})
|
|
8929
|
-
});
|
|
8930
|
-
}
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
function $e81a4c33240250ba$export$cb808a3c41736d8e() {
|
|
8935
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8936
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8937
|
-
width: "14",
|
|
8938
|
-
height: "14",
|
|
8939
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8940
|
-
d: "M12.949 7.699H.352A.35.35 0 0 1 0 7.352.35.35 0 0 1 .352 7h12.598a.35.35 0 0 1 .352.352.35.35 0 0 1-.352.348zm0 0"
|
|
8941
|
-
})
|
|
8942
|
-
});
|
|
8943
|
-
}
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
function $9e42a2957bc7cf37$export$f21ab0717a89c77f(props) {
|
|
8948
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8949
|
-
...props,
|
|
8950
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8951
|
-
width: "11",
|
|
8952
|
-
height: "12",
|
|
8953
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8954
|
-
d: "M10.173 5.548H5.5V.875c0-.075-.027-.14-.081-.193S5.301.601 5.226.601s-.14.027-.193.081-.081.118-.081.193v4.673H.274c-.075 0-.14.027-.193.081A.27.27 0 0 0 0 5.827c0 .075.027.14.081.193s.118.081.193.081h4.678v4.673c0 .075.027.14.081.193s.118.081.193.081.14-.027.193-.081.081-.118.081-.193V6.101h4.673a.27.27 0 0 0 .199-.081c.054-.054.08-.118.08-.193a.27.27 0 0 0-.279-.279z",
|
|
8955
|
-
fill: "#000"
|
|
8956
|
-
})
|
|
8957
|
-
});
|
|
8958
|
-
}
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
function $fb0a553e810a8f26$export$5d2caaa6b530761c() {
|
|
8963
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8964
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8965
|
-
width: "12",
|
|
8966
|
-
height: "13",
|
|
8967
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8968
|
-
d: "M6 12.598a5.88 5.88 0 0 1-1.611-.223c-.52-.145-1.008-.352-1.465-.621s-.875-.605-1.254-.996-.693-.83-.955-1.318c-.039-.07-.047-.145-.023-.223s.072-.143.146-.182.145-.047.223-.023.143.072.182.146a5.54 5.54 0 0 0 .861 1.184c.34.352.715.65 1.125.897s.85.435 1.318.568A5.5 5.5 0 0 0 6 12a5.24 5.24 0 0 0 2.098-.422c.656-.285 1.229-.672 1.717-1.16s.879-1.061 1.16-1.717a5.22 5.22 0 0 0 .428-2.104c0-.742-.143-1.441-.428-2.098s-.668-1.229-1.16-1.717a5.42 5.42 0 0 0-1.717-1.154A5.18 5.18 0 0 0 6 1.201c-.496 0-.979.066-1.447.199s-.904.316-1.318.563-.785.539-1.125.891a5.31 5.31 0 0 0-.855 1.172.32.32 0 0 1-.164.141c-.066.023-.135.023-.205 0a.3.3 0 0 1-.158-.135C.691 3.965.682 3.895.697 3.82l.51-2.385c.016-.078.059-.141.129-.187a.28.28 0 0 1 .229-.041c.078.016.141.059.188.129a.28.28 0 0 1 .041.229l-.211.973a5.91 5.91 0 0 1 .926-.814 5.78 5.78 0 0 1 1.066-.609A5.79 5.79 0 0 1 4.746.732C5.156.643 5.574.598 6 .598c.402 0 .795.039 1.178.117s.76.191 1.119.34a5.95 5.95 0 0 1 1.031.551c.328.219.633.469.914.75s.535.592.75.92a5.77 5.77 0 0 1 .551 1.025 5.53 5.53 0 0 1 .34 1.119c.078.387.117.779.117 1.178s-.039.797-.117 1.184-.187.754-.34 1.113a5.96 5.96 0 0 1-.551 1.031 5.56 5.56 0 0 1-.75.914c-.281.285-.586.537-.914.756a5.95 5.95 0 0 1-1.031.551c-.359.148-.732.26-1.119.334s-.775.117-1.178.117zm0-5.695c-.023 0-.049-.004-.076-.012s-.047-.018-.07-.029l-2.701-1.5c-.07-.039-.117-.098-.141-.176a.29.29 0 0 1 .023-.229c.043-.074.104-.123.182-.146s.158-.014.229.029l2.543 1.412 3.152-2.004c.07-.047.145-.061.223-.041a.29.29 0 0 1 .188.135c.047.066.061.141.041.223a.27.27 0 0 1-.129.188L6.158 6.855a.27.27 0 0 1-.076.035c-.027.008-.055.012-.082.012z",
|
|
8969
|
-
fill: "#0f0f0f"
|
|
8970
|
-
})
|
|
8971
|
-
});
|
|
8972
|
-
}
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
function $8cf3e614b4850542$export$82eafebb825fc23f(props = {}) {
|
|
8977
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
8978
|
-
...props,
|
|
8979
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8980
|
-
width: "20",
|
|
8981
|
-
height: "22",
|
|
8982
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
8983
|
-
d: "M19.811 20.174l-6.234-6.809a7.96 7.96 0 0 0 .923-1.179c.274-.424.502-.865.687-1.323a8.04 8.04 0 0 0 .42-1.436 7.88 7.88 0 0 0 .144-1.507c0-.526-.051-1.042-.154-1.548-.096-.506-.243-.995-.441-1.466s-.441-.919-.728-1.343a8.28 8.28 0 0 0-.984-1.21 7.86 7.86 0 0 0-1.2-.984A7.56 7.56 0 0 0 10.89.651C10.418.453 9.929.302 9.423.2S8.401.046 7.875.046 6.833.097 6.327.2 5.332.453 4.86.651a7.56 7.56 0 0 0-1.354.718c-.431.287-.831.615-1.2.984a8.28 8.28 0 0 0-.984 1.21 7.73 7.73 0 0 0-.728 1.343c-.198.472-.349.96-.451 1.466A8.31 8.31 0 0 0 0 7.921a8.31 8.31 0 0 0 .144 1.548c.103.506.253.995.451 1.466a8.08 8.08 0 0 0 .728 1.354 7.86 7.86 0 0 0 .984 1.2 7.54 7.54 0 0 0 1.2.995c.431.287.882.53 1.354.728.472.191.96.338 1.466.441a8.31 8.31 0 0 0 1.548.144c.451 0 .896-.038 1.333-.113a7.83 7.83 0 0 0 1.282-.328 7.55 7.55 0 0 0 1.2-.533 8.08 8.08 0 0 0 1.107-.749l6.245 6.809a.45.45 0 0 0 .174.123.55.55 0 0 0 .205.041.61.61 0 0 0 .195-.031c.061-.021.116-.055.164-.102.109-.096.164-.219.164-.369.007-.144-.038-.267-.133-.369zM1.046 7.921c0-.937.178-1.818.533-2.646.362-.834.851-1.559 1.466-2.174.622-.615 1.347-1.101 2.174-1.456.827-.362 1.712-.543 2.656-.543s1.829.181 2.656.543c.827.355 1.548.841 2.164 1.456.622.615 1.111 1.34 1.466 2.174a6.52 6.52 0 0 1 .543 2.646c0 .943-.181 1.829-.543 2.656a6.89 6.89 0 0 1-1.466 2.174c-.615.615-1.336 1.104-2.164 1.466-.827.356-1.712.533-2.656.533s-1.829-.178-2.656-.533c-.827-.362-1.552-.851-2.174-1.466-.615-.622-1.104-1.347-1.466-2.174-.355-.827-.533-1.712-.533-2.656z"
|
|
8984
|
-
})
|
|
8985
|
-
});
|
|
8986
|
-
}
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
function $928fe3094e21cac6$export$da32f7add8a22e86(props = {}) {
|
|
8992
|
-
return (0, $107a74aa4ea5902d$export$25062201e9e25d76)("svg", {
|
|
8993
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8994
|
-
width: "14",
|
|
8995
|
-
height: "14",
|
|
8996
|
-
class: "sort-icon",
|
|
8997
|
-
...props,
|
|
8998
|
-
children: [
|
|
8999
|
-
(0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
9000
|
-
d: "M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zM9.449 3.5H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h1.398c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-1.051-.699h.703v-.699h-.703zm0 0"
|
|
9001
|
-
}),
|
|
9002
|
-
(0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
9003
|
-
d: "M10.852 6.301H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h2.801a.35.35 0 0 1 .348.352v1.398a.35.35 0 0 1-.348.352zm-2.453-.699H10.5v-.703H8.398zm3.851 3.5H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h4.199c.191 0 .352.156.352.352V8.75c0 .191-.16.352-.352.352zm-3.852-.703h3.5V7.7h-3.5zm5.25 3.499H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h5.598a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-5.25-.699H13.3V10.5H8.398zm0 0"
|
|
9004
|
-
})
|
|
9005
|
-
]
|
|
9006
|
-
});
|
|
9007
|
-
}
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
function $555d3d1fe3f8cf5b$export$d10e63059ddb9fd4(props = {}) {
|
|
9012
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
9013
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9014
|
-
width: "14",
|
|
9015
|
-
height: "14",
|
|
9016
|
-
class: "sort-icon",
|
|
9017
|
-
...props,
|
|
9018
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
9019
|
-
d: "M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zm3.25 1.644H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h1.398a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-1.051-.699h.703V10.5h-.703zm2.454-2.097H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h2.801a.35.35 0 0 1 .348.352V8.75c0 .191-.156.352-.348.352zm-2.453-.703H10.5V7.7H8.398zm3.851-2.098H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h4.199c.191 0 .352.156.352.352v1.398c0 .195-.16.352-.352.352zm-3.852-.699h3.5v-.703h-3.5zm5.25-2.102H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h5.598c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-5.25-.699H13.3v-.699H8.398zm0 0"
|
|
9020
|
-
})
|
|
9021
|
-
});
|
|
9022
|
-
}
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
function $12c29616944c2fb7$export$f2ca6fc699ca1fb4(props = {}) {
|
|
9027
|
-
return (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("svg", {
|
|
9028
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9029
|
-
width: "16.8",
|
|
9030
|
-
height: "14",
|
|
9031
|
-
...props,
|
|
9032
|
-
children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("path", {
|
|
9033
|
-
d: "M4.617 12.738a.48.48 0 0 1-.164-.027c-.051-.023-.094-.055-.129-.098L.125 8.414A.39.39 0 0 1 0 8.117c0-.113.039-.211.125-.293s.18-.125.293-.125.215.043.297.125l3.902 3.902L16.086.262c.082-.082.18-.125.297-.125s.211.043.293.125.125.184.125.301-.043.215-.125.297L4.914 12.613c-.039.043-.086.078-.141.098s-.102.027-.156.027zm0 0"
|
|
9034
|
-
})
|
|
9035
|
-
});
|
|
9036
|
-
}
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
8851
|
|
|
9041
|
-
/**
|
|
9042
|
-
* Shallowly converts all keys in an object from snake_case to camelCase.
|
|
9043
|
-
* Does not support symbol keys.
|
|
9044
|
-
*
|
|
9045
|
-
* @param obj the object. It will be cloned and not modified in-place.
|
|
8852
|
+
/**
|
|
8853
|
+
* Shallowly converts all keys in an object from snake_case to camelCase.
|
|
8854
|
+
* Does not support symbol keys.
|
|
8855
|
+
*
|
|
8856
|
+
* @param obj the object. It will be cloned and not modified in-place.
|
|
9046
8857
|
*/ function $89758b55120b0cbd$export$9dc8f3a0aa3efc85(obj) {
|
|
9047
8858
|
return Object.fromEntries(Object.entries(obj).map(([key, value])=>[
|
|
9048
8859
|
key.split("_").map((part, index)=>index ? part[0].toUpperCase() + part.slice(1) : part).join(""),
|
|
@@ -9057,9 +8868,9 @@ function $89758b55120b0cbd$export$b481488de1caa85(obj) {
|
|
|
9057
8868
|
}
|
|
9058
8869
|
|
|
9059
8870
|
|
|
9060
|
-
/**
|
|
9061
|
-
* Converts RGB to HSL
|
|
9062
|
-
* Source of function: https://www.30secondsofcode.org/js/s/rgb-to-hsl
|
|
8871
|
+
/**
|
|
8872
|
+
* Converts RGB to HSL
|
|
8873
|
+
* Source of function: https://www.30secondsofcode.org/js/s/rgb-to-hsl
|
|
9063
8874
|
*/ function $d73746ee466f09ca$export$499ef00a6a3417f8(r, g, b) {
|
|
9064
8875
|
r /= 255;
|
|
9065
8876
|
g /= 255;
|