@depict-ai/utilishared 2.3.1 → 2.4.1
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 +19 -16
- package/ES10/index.d.ts +10 -3
- package/ES10/index.js +19 -16
- package/latest/index.cjs +19 -16
- package/latest/index.d.ts +10 -3
- package/latest/index.js +19 -16
- package/package.json +2 -2
- package/server/ES10/index.cjs +19 -16
- package/server/ES10/index.d.ts +10 -3
- package/server/ES10/index.js +19 -16
- package/server/latest/index.cjs +19 -16
- package/server/latest/index.d.ts +10 -3
- package/server/latest/index.js +19 -16
package/ES10/index.cjs
CHANGED
|
@@ -207,7 +207,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
207
207
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
208
208
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
209
209
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
210
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.
|
|
210
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.4.1";
|
|
211
211
|
const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
212
212
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
213
213
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -1567,8 +1567,8 @@ function $628cae9fd43bb48b$var$switch_elements(from, to) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
1569
|
// @ts-ignore
|
|
1570
|
-
var $
|
|
1571
|
-
$
|
|
1570
|
+
var $d64ae53fcd29bba1$exports = {};
|
|
1571
|
+
$d64ae53fcd29bba1$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1572
1572
|
let $5e0fc3a8b68f26c7$var$has_queued_microtask = false;
|
|
1573
1573
|
const $5e0fc3a8b68f26c7$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1574
1574
|
const $5e0fc3a8b68f26c7$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$3b52ccc10510b32a$export$b3bbfd758f11cfa9($5e0fc3a8b68f26c7$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -3186,7 +3186,7 @@ class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$ex
|
|
|
3186
3186
|
function $3f49f9b73bfc2a38$export$f1b8b9fd75ddcab1(slider) {
|
|
3187
3187
|
const style_elem = document.createElement("style");
|
|
3188
3188
|
style_elem.type = "text/css";
|
|
3189
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
3189
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($d64ae53fcd29bba1$exports)));
|
|
3190
3190
|
slider.container.appendChild(style_elem);
|
|
3191
3191
|
}
|
|
3192
3192
|
|
|
@@ -4908,7 +4908,10 @@ const $675e948221f082fe$export$783ef16647773b3d = /*@__PURE__*/$9cefb304a1734a6b
|
|
|
4908
4908
|
const $1a15d4d13e0d0cf9$export$5c069c93d2b7493f = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
4909
4909
|
async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
|
|
4910
4910
|
let max_retries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
4911
|
-
let
|
|
4911
|
+
let {
|
|
4912
|
+
useFetch_ = fetch,
|
|
4913
|
+
initialRetryDuration_ = 100
|
|
4914
|
+
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
4912
4915
|
const ONE_MINUTE = 60000;
|
|
4913
4916
|
const max_backoff_ms = ONE_MINUTE;
|
|
4914
4917
|
const {
|
|
@@ -4919,11 +4922,11 @@ async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
|
|
|
4919
4922
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
4920
4923
|
return delay;
|
|
4921
4924
|
};
|
|
4922
|
-
let try_again_in_ms =
|
|
4925
|
+
let try_again_in_ms = initialRetryDuration_;
|
|
4923
4926
|
let has_succeeded = false;
|
|
4924
4927
|
let result = false;
|
|
4925
4928
|
while (max_retries && !has_succeeded) try {
|
|
4926
|
-
const response = await
|
|
4929
|
+
const response = await useFetch_(url, options);
|
|
4927
4930
|
const {
|
|
4928
4931
|
status: status,
|
|
4929
4932
|
ok: ok
|
|
@@ -5833,8 +5836,8 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
5833
5836
|
}));
|
|
5834
5837
|
}
|
|
5835
5838
|
$bBfCy$solidjsweb.delegateEvents(["click"]);
|
|
5836
|
-
var $
|
|
5837
|
-
$
|
|
5839
|
+
var $6c1103c313edcc81$exports = {};
|
|
5840
|
+
$6c1103c313edcc81$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5838
5841
|
var $ba9b4cd7e24de87e$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div>`);
|
|
5839
5842
|
let $ba9b4cd7e24de87e$var$inserted = false;
|
|
5840
5843
|
const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
@@ -5847,7 +5850,7 @@ const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
|
5847
5850
|
} = _ref;
|
|
5848
5851
|
if (!$ba9b4cd7e24de87e$var$inserted) {
|
|
5849
5852
|
// Insert styling on first import
|
|
5850
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5853
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($6c1103c313edcc81$exports)));
|
|
5851
5854
|
$ba9b4cd7e24de87e$var$inserted = true;
|
|
5852
5855
|
}
|
|
5853
5856
|
return (() => {
|
|
@@ -6091,8 +6094,8 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
6091
6094
|
collapse: collapse
|
|
6092
6095
|
};
|
|
6093
6096
|
};
|
|
6094
|
-
var $
|
|
6095
|
-
$
|
|
6097
|
+
var $4f104a7ebe4cdc54$exports = {};
|
|
6098
|
+
$4f104a7ebe4cdc54$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
6096
6099
|
var $b42b9f62e8b6cb2d$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<img>`),
|
|
6097
6100
|
$b42b9f62e8b6cb2d$var$_tmpl$2 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<source sizes=0px>`),
|
|
6098
6101
|
$b42b9f62e8b6cb2d$var$_tmpl$3 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<picture>`);
|
|
@@ -6273,7 +6276,7 @@ const $dfce76a4aeb41067$export$788756b42446dc2d = _ref => {
|
|
|
6273
6276
|
} = _ref;
|
|
6274
6277
|
if (!$dfce76a4aeb41067$var$inserted) {
|
|
6275
6278
|
// Insert styling on first import
|
|
6276
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6279
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($4f104a7ebe4cdc54$exports)));
|
|
6277
6280
|
$dfce76a4aeb41067$var$inserted = true;
|
|
6278
6281
|
}
|
|
6279
6282
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $dfce76a4aeb41067$var$Image(options) : $dfce76a4aeb41067$var$CompatibleImage(options);
|
|
@@ -6364,8 +6367,8 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
6364
6367
|
}
|
|
6365
6368
|
return sourceset_component;
|
|
6366
6369
|
}
|
|
6367
|
-
var $
|
|
6368
|
-
$
|
|
6370
|
+
var $be5deeed4683b89f$exports = {};
|
|
6371
|
+
$be5deeed4683b89f$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
6369
6372
|
var $8928a1027461fba4$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
6370
6373
|
$8928a1027461fba4$var$_tmpl$2 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div class=second-image-container>`);
|
|
6371
6374
|
// Saving bytez
|
|
@@ -6500,7 +6503,7 @@ const $8928a1027461fba4$export$2369f6fc1c911576 = _ref => {
|
|
|
6500
6503
|
...options
|
|
6501
6504
|
} = _ref;
|
|
6502
6505
|
if (!$8928a1027461fba4$var$styling_inserted) {
|
|
6503
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6506
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($be5deeed4683b89f$exports)));
|
|
6504
6507
|
$8928a1027461fba4$var$styling_inserted = true;
|
|
6505
6508
|
}
|
|
6506
6509
|
const main_image = $dfce76a4aeb41067$export$788756b42446dc2d({
|
package/ES10/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Accessor } from "solid-js";
|
|
2
|
-
export const version = "2.
|
|
2
|
+
export const version = "2.4.0";
|
|
3
3
|
export const is_debug: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -1360,10 +1360,17 @@ export const wait: (delay: number) => Promise<unknown>;
|
|
|
1360
1360
|
* @param url Url to perform fetch towards
|
|
1361
1361
|
* @param options Fetch options
|
|
1362
1362
|
* @param max_retries Max number of retries, defaults to 10
|
|
1363
|
-
* @param
|
|
1363
|
+
* @param useFetch_ The fetch function to use, defaults to the global fetch
|
|
1364
|
+
* @param initialRetryDuration_ The start duration for the first retry, defaults to 100ms
|
|
1364
1365
|
* @returns The fetch response
|
|
1365
1366
|
*/
|
|
1366
|
-
export function fetch_retry(url: RequestInfo | URL, options?: RequestInit, max_retries?: number,
|
|
1367
|
+
export function fetch_retry(url: RequestInfo | URL, options?: RequestInit, max_retries?: number, {
|
|
1368
|
+
useFetch_,
|
|
1369
|
+
initialRetryDuration_
|
|
1370
|
+
}?: {
|
|
1371
|
+
useFetch_?: typeof fetch;
|
|
1372
|
+
initialRetryDuration_?: number;
|
|
1373
|
+
}): Promise<false | Response>;
|
|
1367
1374
|
/**
|
|
1368
1375
|
* Ensures that the attribute value of an element is what an AsyncIterable resolves with
|
|
1369
1376
|
* @param el Element to set attribute on
|
package/ES10/index.js
CHANGED
|
@@ -8,7 +8,7 @@ register_es_version("utilishared", "ES10");
|
|
|
8
8
|
function $parcel$interopDefault(a) {
|
|
9
9
|
return a && a.__esModule ? a.default : a;
|
|
10
10
|
}
|
|
11
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.
|
|
11
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.4.1";
|
|
12
12
|
const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
13
13
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
14
14
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -1368,8 +1368,8 @@ function $e64690bc3a7de2b1$var$switch_elements(from, to) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
// @ts-ignore
|
|
1371
|
-
var $
|
|
1372
|
-
$
|
|
1371
|
+
var $d58f55a8abd5e8fe$exports = {};
|
|
1372
|
+
$d58f55a8abd5e8fe$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1373
1373
|
let $2c3b8e0102339cd6$var$has_queued_microtask = false;
|
|
1374
1374
|
const $2c3b8e0102339cd6$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1375
1375
|
const $2c3b8e0102339cd6$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9($2c3b8e0102339cd6$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2987,7 +2987,7 @@ class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$ex
|
|
|
2987
2987
|
function $0342f59060b8a196$export$f1b8b9fd75ddcab1(slider) {
|
|
2988
2988
|
const style_elem = document.createElement("style");
|
|
2989
2989
|
style_elem.type = "text/css";
|
|
2990
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2990
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($d58f55a8abd5e8fe$exports)));
|
|
2991
2991
|
slider.container.appendChild(style_elem);
|
|
2992
2992
|
}
|
|
2993
2993
|
|
|
@@ -4709,7 +4709,10 @@ const $f69445e469425bcb$export$783ef16647773b3d = /*@__PURE__*/$9c44a7238815fa47
|
|
|
4709
4709
|
const $57642e3bf93ac1e7$export$5c069c93d2b7493f = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
4710
4710
|
async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
|
|
4711
4711
|
let max_retries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
4712
|
-
let
|
|
4712
|
+
let {
|
|
4713
|
+
useFetch_ = fetch,
|
|
4714
|
+
initialRetryDuration_ = 100
|
|
4715
|
+
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
4713
4716
|
const ONE_MINUTE = 60000;
|
|
4714
4717
|
const max_backoff_ms = ONE_MINUTE;
|
|
4715
4718
|
const {
|
|
@@ -4720,11 +4723,11 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
|
|
|
4720
4723
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
4721
4724
|
return delay;
|
|
4722
4725
|
};
|
|
4723
|
-
let try_again_in_ms =
|
|
4726
|
+
let try_again_in_ms = initialRetryDuration_;
|
|
4724
4727
|
let has_succeeded = false;
|
|
4725
4728
|
let result = false;
|
|
4726
4729
|
while (max_retries && !has_succeeded) try {
|
|
4727
|
-
const response = await
|
|
4730
|
+
const response = await useFetch_(url, options);
|
|
4728
4731
|
const {
|
|
4729
4732
|
status: status,
|
|
4730
4733
|
ok: ok
|
|
@@ -5634,8 +5637,8 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
5634
5637
|
}));
|
|
5635
5638
|
}
|
|
5636
5639
|
$76EG6$delegateEvents(["click"]);
|
|
5637
|
-
var $
|
|
5638
|
-
$
|
|
5640
|
+
var $aae9878972b17321$exports = {};
|
|
5641
|
+
$aae9878972b17321$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5639
5642
|
var $adc0bb548fdb574f$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`);
|
|
5640
5643
|
let $adc0bb548fdb574f$var$inserted = false;
|
|
5641
5644
|
const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
@@ -5648,7 +5651,7 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
|
5648
5651
|
} = _ref;
|
|
5649
5652
|
if (!$adc0bb548fdb574f$var$inserted) {
|
|
5650
5653
|
// Insert styling on first import
|
|
5651
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5654
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($aae9878972b17321$exports)));
|
|
5652
5655
|
$adc0bb548fdb574f$var$inserted = true;
|
|
5653
5656
|
}
|
|
5654
5657
|
return (() => {
|
|
@@ -5892,8 +5895,8 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5892
5895
|
collapse: collapse
|
|
5893
5896
|
};
|
|
5894
5897
|
};
|
|
5895
|
-
var $
|
|
5896
|
-
$
|
|
5898
|
+
var $5305cfbbfffd9dc8$exports = {};
|
|
5899
|
+
$5305cfbbfffd9dc8$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
5897
5900
|
var $9ef5ce4804a3b61b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<img>`),
|
|
5898
5901
|
$9ef5ce4804a3b61b$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<source sizes=0px>`),
|
|
5899
5902
|
$9ef5ce4804a3b61b$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<picture>`);
|
|
@@ -6074,7 +6077,7 @@ const $c987460cedc0d7ec$export$788756b42446dc2d = _ref => {
|
|
|
6074
6077
|
} = _ref;
|
|
6075
6078
|
if (!$c987460cedc0d7ec$var$inserted) {
|
|
6076
6079
|
// Insert styling on first import
|
|
6077
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6080
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5305cfbbfffd9dc8$exports)));
|
|
6078
6081
|
$c987460cedc0d7ec$var$inserted = true;
|
|
6079
6082
|
}
|
|
6080
6083
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $c987460cedc0d7ec$var$Image(options) : $c987460cedc0d7ec$var$CompatibleImage(options);
|
|
@@ -6165,8 +6168,8 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
6165
6168
|
}
|
|
6166
6169
|
return sourceset_component;
|
|
6167
6170
|
}
|
|
6168
|
-
var $
|
|
6169
|
-
$
|
|
6171
|
+
var $8254bab8001eaa15$exports = {};
|
|
6172
|
+
$8254bab8001eaa15$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
6170
6173
|
var $73f0a7e385687d5d$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
6171
6174
|
$73f0a7e385687d5d$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=second-image-container>`);
|
|
6172
6175
|
// Saving bytez
|
|
@@ -6301,7 +6304,7 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
|
|
|
6301
6304
|
...options
|
|
6302
6305
|
} = _ref;
|
|
6303
6306
|
if (!$73f0a7e385687d5d$var$styling_inserted) {
|
|
6304
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6307
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($8254bab8001eaa15$exports)));
|
|
6305
6308
|
$73f0a7e385687d5d$var$styling_inserted = true;
|
|
6306
6309
|
}
|
|
6307
6310
|
const main_image = $c987460cedc0d7ec$export$788756b42446dc2d({
|
package/latest/index.cjs
CHANGED
|
@@ -204,7 +204,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
204
204
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
205
205
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
206
206
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
207
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.
|
|
207
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.4.1";
|
|
208
208
|
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"))();
|
|
209
209
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
210
210
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -1402,8 +1402,8 @@ function $807b852d8decb547$var$switch_elements(from, to) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
1404
|
// @ts-ignore
|
|
1405
|
-
var $
|
|
1406
|
-
$
|
|
1405
|
+
var $1c4a3b6d660e3905$exports = {};
|
|
1406
|
+
$1c4a3b6d660e3905$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1407
1407
|
let $55595fc7bb226f61$var$has_queued_microtask = false;
|
|
1408
1408
|
const $55595fc7bb226f61$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1409
1409
|
const $55595fc7bb226f61$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$268cbd9e4ade92db$export$b3bbfd758f11cfa9($55595fc7bb226f61$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2795,7 +2795,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
|
|
|
2795
2795
|
function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
|
|
2796
2796
|
const style_elem = document.createElement("style");
|
|
2797
2797
|
style_elem.type = "text/css";
|
|
2798
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2798
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($1c4a3b6d660e3905$exports)));
|
|
2799
2799
|
slider.container.appendChild(style_elem);
|
|
2800
2800
|
}
|
|
2801
2801
|
|
|
@@ -4443,7 +4443,10 @@ const $23d6393391c08860$export$783ef16647773b3d = /*@__PURE__*/$41f528c04cc8a8da
|
|
|
4443
4443
|
return meta?.product;
|
|
4444
4444
|
}));
|
|
4445
4445
|
const $55769f63ea4d8da4$export$5c069c93d2b7493f = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
4446
|
-
async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retries = 10,
|
|
4446
|
+
async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retries = 10, {
|
|
4447
|
+
useFetch_ = fetch,
|
|
4448
|
+
initialRetryDuration_ = 100
|
|
4449
|
+
} = {}) {
|
|
4447
4450
|
const ONE_MINUTE = 60000;
|
|
4448
4451
|
const max_backoff_ms = ONE_MINUTE;
|
|
4449
4452
|
const {
|
|
@@ -4454,11 +4457,11 @@ async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
4454
4457
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
4455
4458
|
return delay;
|
|
4456
4459
|
};
|
|
4457
|
-
let try_again_in_ms =
|
|
4460
|
+
let try_again_in_ms = initialRetryDuration_;
|
|
4458
4461
|
let has_succeeded = false;
|
|
4459
4462
|
let result = false;
|
|
4460
4463
|
while (max_retries && !has_succeeded) try {
|
|
4461
|
-
const response = await
|
|
4464
|
+
const response = await useFetch_(url, options);
|
|
4462
4465
|
const {
|
|
4463
4466
|
status: status,
|
|
4464
4467
|
ok: ok
|
|
@@ -5336,8 +5339,8 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
5336
5339
|
}));
|
|
5337
5340
|
}
|
|
5338
5341
|
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
5339
|
-
var $
|
|
5340
|
-
$
|
|
5342
|
+
var $dcdbfd7a994587c9$exports = {};
|
|
5343
|
+
$dcdbfd7a994587c9$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5341
5344
|
var $e587cb3b31b82f43$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
|
|
5342
5345
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
5343
5346
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
@@ -5349,7 +5352,7 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
5349
5352
|
}) => {
|
|
5350
5353
|
if (!$e587cb3b31b82f43$var$inserted) {
|
|
5351
5354
|
// Insert styling on first import
|
|
5352
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5355
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($dcdbfd7a994587c9$exports)));
|
|
5353
5356
|
$e587cb3b31b82f43$var$inserted = true;
|
|
5354
5357
|
}
|
|
5355
5358
|
return (() => {
|
|
@@ -5576,8 +5579,8 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
5576
5579
|
collapse: collapse
|
|
5577
5580
|
};
|
|
5578
5581
|
};
|
|
5579
|
-
var $
|
|
5580
|
-
$
|
|
5582
|
+
var $aa123ed8001baa5e$exports = {};
|
|
5583
|
+
$aa123ed8001baa5e$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
5581
5584
|
var $ff973b2032639b5f$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img>`),
|
|
5582
5585
|
$ff973b2032639b5f$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<source sizes=0px>`),
|
|
5583
5586
|
$ff973b2032639b5f$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<picture>`);
|
|
@@ -5748,7 +5751,7 @@ const $a312bccd722ac9e4$export$788756b42446dc2d = ({
|
|
|
5748
5751
|
}) => {
|
|
5749
5752
|
if (!$a312bccd722ac9e4$var$inserted) {
|
|
5750
5753
|
// Insert styling on first import
|
|
5751
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5754
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($aa123ed8001baa5e$exports)));
|
|
5752
5755
|
$a312bccd722ac9e4$var$inserted = true;
|
|
5753
5756
|
}
|
|
5754
5757
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
|
|
@@ -5832,8 +5835,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
5832
5835
|
}
|
|
5833
5836
|
return sourceset_component;
|
|
5834
5837
|
}
|
|
5835
|
-
var $
|
|
5836
|
-
$
|
|
5838
|
+
var $db57c943efeaebed$exports = {};
|
|
5839
|
+
$db57c943efeaebed$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
5837
5840
|
var $a656daa2fa8c279a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
5838
5841
|
$a656daa2fa8c279a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=second-image-container>`);
|
|
5839
5842
|
// Saving bytez
|
|
@@ -5962,7 +5965,7 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
5962
5965
|
...options
|
|
5963
5966
|
}) => {
|
|
5964
5967
|
if (!$a656daa2fa8c279a$var$styling_inserted) {
|
|
5965
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5968
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($db57c943efeaebed$exports)));
|
|
5966
5969
|
$a656daa2fa8c279a$var$styling_inserted = true;
|
|
5967
5970
|
}
|
|
5968
5971
|
const main_image = $a312bccd722ac9e4$export$788756b42446dc2d({
|
package/latest/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Accessor } from "solid-js";
|
|
2
|
-
export const version = "2.
|
|
2
|
+
export const version = "2.4.0";
|
|
3
3
|
export const is_debug: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -1360,10 +1360,17 @@ export const wait: (delay: number) => Promise<unknown>;
|
|
|
1360
1360
|
* @param url Url to perform fetch towards
|
|
1361
1361
|
* @param options Fetch options
|
|
1362
1362
|
* @param max_retries Max number of retries, defaults to 10
|
|
1363
|
-
* @param
|
|
1363
|
+
* @param useFetch_ The fetch function to use, defaults to the global fetch
|
|
1364
|
+
* @param initialRetryDuration_ The start duration for the first retry, defaults to 100ms
|
|
1364
1365
|
* @returns The fetch response
|
|
1365
1366
|
*/
|
|
1366
|
-
export function fetch_retry(url: RequestInfo | URL, options?: RequestInit, max_retries?: number,
|
|
1367
|
+
export function fetch_retry(url: RequestInfo | URL, options?: RequestInit, max_retries?: number, {
|
|
1368
|
+
useFetch_,
|
|
1369
|
+
initialRetryDuration_
|
|
1370
|
+
}?: {
|
|
1371
|
+
useFetch_?: typeof fetch;
|
|
1372
|
+
initialRetryDuration_?: number;
|
|
1373
|
+
}): Promise<false | Response>;
|
|
1367
1374
|
/**
|
|
1368
1375
|
* Ensures that the attribute value of an element is what an AsyncIterable resolves with
|
|
1369
1376
|
* @param el Element to set attribute on
|
package/latest/index.js
CHANGED
|
@@ -5,7 +5,7 @@ register_es_version("utilishared", "latest");
|
|
|
5
5
|
function $parcel$interopDefault(a) {
|
|
6
6
|
return a && a.__esModule ? a.default : a;
|
|
7
7
|
}
|
|
8
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.
|
|
8
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.4.1";
|
|
9
9
|
const $571bce04eb920cd8$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"))();
|
|
10
10
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
11
11
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -1203,8 +1203,8 @@ function $e867e2f1fb3bcc09$var$switch_elements(from, to) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
// @ts-ignore
|
|
1206
|
-
var $
|
|
1207
|
-
$
|
|
1206
|
+
var $413613e86d0ffb68$exports = {};
|
|
1207
|
+
$413613e86d0ffb68$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1208
1208
|
let $8be08add28592faf$var$has_queued_microtask = false;
|
|
1209
1209
|
const $8be08add28592faf$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1210
1210
|
const $8be08add28592faf$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9($8be08add28592faf$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2596,7 +2596,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
2596
2596
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
2597
2597
|
const style_elem = document.createElement("style");
|
|
2598
2598
|
style_elem.type = "text/css";
|
|
2599
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2599
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($413613e86d0ffb68$exports)));
|
|
2600
2600
|
slider.container.appendChild(style_elem);
|
|
2601
2601
|
}
|
|
2602
2602
|
|
|
@@ -4244,7 +4244,10 @@ const $802201ed0a316c43$export$783ef16647773b3d = /*@__PURE__*/$511123bb28a7b6f7
|
|
|
4244
4244
|
return meta?.product;
|
|
4245
4245
|
}));
|
|
4246
4246
|
const $2cbe7e0ca2ce5438$export$5c069c93d2b7493f = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
4247
|
-
async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retries = 10,
|
|
4247
|
+
async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retries = 10, {
|
|
4248
|
+
useFetch_ = fetch,
|
|
4249
|
+
initialRetryDuration_ = 100
|
|
4250
|
+
} = {}) {
|
|
4248
4251
|
const ONE_MINUTE = 60000;
|
|
4249
4252
|
const max_backoff_ms = ONE_MINUTE;
|
|
4250
4253
|
const {
|
|
@@ -4255,11 +4258,11 @@ async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
4255
4258
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
4256
4259
|
return delay;
|
|
4257
4260
|
};
|
|
4258
|
-
let try_again_in_ms =
|
|
4261
|
+
let try_again_in_ms = initialRetryDuration_;
|
|
4259
4262
|
let has_succeeded = false;
|
|
4260
4263
|
let result = false;
|
|
4261
4264
|
while (max_retries && !has_succeeded) try {
|
|
4262
|
-
const response = await
|
|
4265
|
+
const response = await useFetch_(url, options);
|
|
4263
4266
|
const {
|
|
4264
4267
|
status: status,
|
|
4265
4268
|
ok: ok
|
|
@@ -5137,8 +5140,8 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
5137
5140
|
}));
|
|
5138
5141
|
}
|
|
5139
5142
|
$qgKv4$delegateEvents(["click"]);
|
|
5140
|
-
var $
|
|
5141
|
-
$
|
|
5143
|
+
var $895e8df2e6c8982e$exports = {};
|
|
5144
|
+
$895e8df2e6c8982e$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5142
5145
|
var $ad592d9ddbcffe72$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div>`);
|
|
5143
5146
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
5144
5147
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
@@ -5150,7 +5153,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
5150
5153
|
}) => {
|
|
5151
5154
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
5152
5155
|
// Insert styling on first import
|
|
5153
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5156
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($895e8df2e6c8982e$exports)));
|
|
5154
5157
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
5155
5158
|
}
|
|
5156
5159
|
return (() => {
|
|
@@ -5377,8 +5380,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
5377
5380
|
collapse: collapse
|
|
5378
5381
|
};
|
|
5379
5382
|
};
|
|
5380
|
-
var $
|
|
5381
|
-
$
|
|
5383
|
+
var $0ffb759867ae20fc$exports = {};
|
|
5384
|
+
$0ffb759867ae20fc$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
5382
5385
|
var $45af9e834781a9bc$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<img>`),
|
|
5383
5386
|
$45af9e834781a9bc$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<source sizes=0px>`),
|
|
5384
5387
|
$45af9e834781a9bc$var$_tmpl$3 = /*#__PURE__*/$qgKv4$template(`<picture>`);
|
|
@@ -5549,7 +5552,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({
|
|
|
5549
5552
|
}) => {
|
|
5550
5553
|
if (!$914971fb43986a16$var$inserted) {
|
|
5551
5554
|
// Insert styling on first import
|
|
5552
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5555
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($0ffb759867ae20fc$exports)));
|
|
5553
5556
|
$914971fb43986a16$var$inserted = true;
|
|
5554
5557
|
}
|
|
5555
5558
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -5633,8 +5636,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
5633
5636
|
}
|
|
5634
5637
|
return sourceset_component;
|
|
5635
5638
|
}
|
|
5636
|
-
var $
|
|
5637
|
-
$
|
|
5639
|
+
var $504e2aac6aea7baf$exports = {};
|
|
5640
|
+
$504e2aac6aea7baf$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
5638
5641
|
var $8483d1d9fcee52ec$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
5639
5642
|
$8483d1d9fcee52ec$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div class=second-image-container>`);
|
|
5640
5643
|
// Saving bytez
|
|
@@ -5763,7 +5766,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
5763
5766
|
...options
|
|
5764
5767
|
}) => {
|
|
5765
5768
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
5766
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5769
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($504e2aac6aea7baf$exports)));
|
|
5767
5770
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
5768
5771
|
}
|
|
5769
5772
|
const main_image = $914971fb43986a16$export$788756b42446dc2d({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/utilishared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
],
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@babel/core": "latest",
|
|
142
|
-
"@depict-ai/types": "^5.
|
|
142
|
+
"@depict-ai/types": "^5.4.0",
|
|
143
143
|
"@parcel/resolver-default": "^2.10.3",
|
|
144
144
|
"@sentry/cli": "^2.21.2",
|
|
145
145
|
"@sentry/types": "^7.75.1",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -207,7 +207,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
207
207
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
208
208
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
209
209
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
210
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.
|
|
210
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.4.1";
|
|
211
211
|
const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
212
212
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
213
213
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -1567,8 +1567,8 @@ function $628cae9fd43bb48b$var$switch_elements(from, to) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
1569
|
// @ts-ignore
|
|
1570
|
-
var $
|
|
1571
|
-
$
|
|
1570
|
+
var $d64ae53fcd29bba1$exports = {};
|
|
1571
|
+
$d64ae53fcd29bba1$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1572
1572
|
let $5e0fc3a8b68f26c7$var$has_queued_microtask = false;
|
|
1573
1573
|
const $5e0fc3a8b68f26c7$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1574
1574
|
const $5e0fc3a8b68f26c7$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$3b52ccc10510b32a$export$b3bbfd758f11cfa9($5e0fc3a8b68f26c7$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -3186,7 +3186,7 @@ class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$ex
|
|
|
3186
3186
|
function $3f49f9b73bfc2a38$export$f1b8b9fd75ddcab1(slider) {
|
|
3187
3187
|
const style_elem = document.createElement("style");
|
|
3188
3188
|
style_elem.type = "text/css";
|
|
3189
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
3189
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($d64ae53fcd29bba1$exports)));
|
|
3190
3190
|
slider.container.appendChild(style_elem);
|
|
3191
3191
|
}
|
|
3192
3192
|
|
|
@@ -4898,7 +4898,10 @@ const $675e948221f082fe$export$783ef16647773b3d = /*@__PURE__*/$9cefb304a1734a6b
|
|
|
4898
4898
|
const $1a15d4d13e0d0cf9$export$5c069c93d2b7493f = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
4899
4899
|
async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
|
|
4900
4900
|
let max_retries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
4901
|
-
let
|
|
4901
|
+
let {
|
|
4902
|
+
useFetch_ = fetch,
|
|
4903
|
+
initialRetryDuration_ = 100
|
|
4904
|
+
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
4902
4905
|
const ONE_MINUTE = 60000;
|
|
4903
4906
|
const max_backoff_ms = ONE_MINUTE;
|
|
4904
4907
|
const {
|
|
@@ -4909,11 +4912,11 @@ async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
|
|
|
4909
4912
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
4910
4913
|
return delay;
|
|
4911
4914
|
};
|
|
4912
|
-
let try_again_in_ms =
|
|
4915
|
+
let try_again_in_ms = initialRetryDuration_;
|
|
4913
4916
|
let has_succeeded = false;
|
|
4914
4917
|
let result = false;
|
|
4915
4918
|
while (max_retries && !has_succeeded) try {
|
|
4916
|
-
const response = await
|
|
4919
|
+
const response = await useFetch_(url, options);
|
|
4917
4920
|
const {
|
|
4918
4921
|
status: status,
|
|
4919
4922
|
ok: ok
|
|
@@ -5766,8 +5769,8 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
5766
5769
|
on_close_(exit_oos_iterator);
|
|
5767
5770
|
}));
|
|
5768
5771
|
}
|
|
5769
|
-
var $
|
|
5770
|
-
$
|
|
5772
|
+
var $6c1103c313edcc81$exports = {};
|
|
5773
|
+
$6c1103c313edcc81$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5771
5774
|
let $ba9b4cd7e24de87e$var$inserted = false;
|
|
5772
5775
|
const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
5773
5776
|
let {
|
|
@@ -5779,7 +5782,7 @@ const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
|
5779
5782
|
} = _ref;
|
|
5780
5783
|
if (!$ba9b4cd7e24de87e$var$inserted) {
|
|
5781
5784
|
// Insert styling on first import
|
|
5782
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5785
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($6c1103c313edcc81$exports)));
|
|
5783
5786
|
$ba9b4cd7e24de87e$var$inserted = true;
|
|
5784
5787
|
}
|
|
5785
5788
|
return $lMD39$solidjsweb.ssrElement("div", $lMD39$solidjsweb.mergeProps({
|
|
@@ -5975,8 +5978,8 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
5975
5978
|
collapse: collapse
|
|
5976
5979
|
};
|
|
5977
5980
|
};
|
|
5978
|
-
var $
|
|
5979
|
-
$
|
|
5981
|
+
var $4f104a7ebe4cdc54$exports = {};
|
|
5982
|
+
$4f104a7ebe4cdc54$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
5980
5983
|
var $b42b9f62e8b6cb2d$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
5981
5984
|
const $b42b9f62e8b6cb2d$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
5982
5985
|
const $b42b9f62e8b6cb2d$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -6138,7 +6141,7 @@ const $dfce76a4aeb41067$export$788756b42446dc2d = _ref => {
|
|
|
6138
6141
|
} = _ref;
|
|
6139
6142
|
if (!$dfce76a4aeb41067$var$inserted) {
|
|
6140
6143
|
// Insert styling on first import
|
|
6141
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6144
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($4f104a7ebe4cdc54$exports)));
|
|
6142
6145
|
$dfce76a4aeb41067$var$inserted = true;
|
|
6143
6146
|
}
|
|
6144
6147
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $dfce76a4aeb41067$var$Image(options) : $dfce76a4aeb41067$var$CompatibleImage(options);
|
|
@@ -6213,8 +6216,8 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
6213
6216
|
}
|
|
6214
6217
|
return sourceset_component;
|
|
6215
6218
|
}
|
|
6216
|
-
var $
|
|
6217
|
-
$
|
|
6219
|
+
var $be5deeed4683b89f$exports = {};
|
|
6220
|
+
$be5deeed4683b89f$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
6218
6221
|
var $8928a1027461fba4$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
6219
6222
|
$8928a1027461fba4$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
6220
6223
|
// Saving bytez
|
|
@@ -6349,7 +6352,7 @@ const $8928a1027461fba4$export$2369f6fc1c911576 = _ref => {
|
|
|
6349
6352
|
...options
|
|
6350
6353
|
} = _ref;
|
|
6351
6354
|
if (!$8928a1027461fba4$var$styling_inserted) {
|
|
6352
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6355
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($be5deeed4683b89f$exports)));
|
|
6353
6356
|
$8928a1027461fba4$var$styling_inserted = true;
|
|
6354
6357
|
}
|
|
6355
6358
|
const main_image = $dfce76a4aeb41067$export$788756b42446dc2d({
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Accessor } from "solid-js";
|
|
2
|
-
export const version = "2.
|
|
2
|
+
export const version = "2.4.0";
|
|
3
3
|
export const is_debug: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -1360,10 +1360,17 @@ export const wait: (delay: number) => Promise<unknown>;
|
|
|
1360
1360
|
* @param url Url to perform fetch towards
|
|
1361
1361
|
* @param options Fetch options
|
|
1362
1362
|
* @param max_retries Max number of retries, defaults to 10
|
|
1363
|
-
* @param
|
|
1363
|
+
* @param useFetch_ The fetch function to use, defaults to the global fetch
|
|
1364
|
+
* @param initialRetryDuration_ The start duration for the first retry, defaults to 100ms
|
|
1364
1365
|
* @returns The fetch response
|
|
1365
1366
|
*/
|
|
1366
|
-
export function fetch_retry(url: RequestInfo | URL, options?: RequestInit, max_retries?: number,
|
|
1367
|
+
export function fetch_retry(url: RequestInfo | URL, options?: RequestInit, max_retries?: number, {
|
|
1368
|
+
useFetch_,
|
|
1369
|
+
initialRetryDuration_
|
|
1370
|
+
}?: {
|
|
1371
|
+
useFetch_?: typeof fetch;
|
|
1372
|
+
initialRetryDuration_?: number;
|
|
1373
|
+
}): Promise<false | Response>;
|
|
1367
1374
|
/**
|
|
1368
1375
|
* Ensures that the attribute value of an element is what an AsyncIterable resolves with
|
|
1369
1376
|
* @param el Element to set attribute on
|
package/server/ES10/index.js
CHANGED
|
@@ -8,7 +8,7 @@ register_es_version("utilishared", "ES10");
|
|
|
8
8
|
function $parcel$interopDefault(a) {
|
|
9
9
|
return a && a.__esModule ? a.default : a;
|
|
10
10
|
}
|
|
11
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.
|
|
11
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.4.1";
|
|
12
12
|
const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
13
13
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
14
14
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -1368,8 +1368,8 @@ function $e64690bc3a7de2b1$var$switch_elements(from, to) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
// @ts-ignore
|
|
1371
|
-
var $
|
|
1372
|
-
$
|
|
1371
|
+
var $d58f55a8abd5e8fe$exports = {};
|
|
1372
|
+
$d58f55a8abd5e8fe$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1373
1373
|
let $2c3b8e0102339cd6$var$has_queued_microtask = false;
|
|
1374
1374
|
const $2c3b8e0102339cd6$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1375
1375
|
const $2c3b8e0102339cd6$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9($2c3b8e0102339cd6$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2987,7 +2987,7 @@ class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$ex
|
|
|
2987
2987
|
function $0342f59060b8a196$export$f1b8b9fd75ddcab1(slider) {
|
|
2988
2988
|
const style_elem = document.createElement("style");
|
|
2989
2989
|
style_elem.type = "text/css";
|
|
2990
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2990
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($d58f55a8abd5e8fe$exports)));
|
|
2991
2991
|
slider.container.appendChild(style_elem);
|
|
2992
2992
|
}
|
|
2993
2993
|
|
|
@@ -4699,7 +4699,10 @@ const $f69445e469425bcb$export$783ef16647773b3d = /*@__PURE__*/$9c44a7238815fa47
|
|
|
4699
4699
|
const $57642e3bf93ac1e7$export$5c069c93d2b7493f = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
4700
4700
|
async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
|
|
4701
4701
|
let max_retries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
4702
|
-
let
|
|
4702
|
+
let {
|
|
4703
|
+
useFetch_ = fetch,
|
|
4704
|
+
initialRetryDuration_ = 100
|
|
4705
|
+
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
4703
4706
|
const ONE_MINUTE = 60000;
|
|
4704
4707
|
const max_backoff_ms = ONE_MINUTE;
|
|
4705
4708
|
const {
|
|
@@ -4710,11 +4713,11 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
|
|
|
4710
4713
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
4711
4714
|
return delay;
|
|
4712
4715
|
};
|
|
4713
|
-
let try_again_in_ms =
|
|
4716
|
+
let try_again_in_ms = initialRetryDuration_;
|
|
4714
4717
|
let has_succeeded = false;
|
|
4715
4718
|
let result = false;
|
|
4716
4719
|
while (max_retries && !has_succeeded) try {
|
|
4717
|
-
const response = await
|
|
4720
|
+
const response = await useFetch_(url, options);
|
|
4718
4721
|
const {
|
|
4719
4722
|
status: status,
|
|
4720
4723
|
ok: ok
|
|
@@ -5567,8 +5570,8 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
5567
5570
|
on_close_(exit_oos_iterator);
|
|
5568
5571
|
}));
|
|
5569
5572
|
}
|
|
5570
|
-
var $
|
|
5571
|
-
$
|
|
5573
|
+
var $aae9878972b17321$exports = {};
|
|
5574
|
+
$aae9878972b17321$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5572
5575
|
let $adc0bb548fdb574f$var$inserted = false;
|
|
5573
5576
|
const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
5574
5577
|
let {
|
|
@@ -5580,7 +5583,7 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
|
5580
5583
|
} = _ref;
|
|
5581
5584
|
if (!$adc0bb548fdb574f$var$inserted) {
|
|
5582
5585
|
// Insert styling on first import
|
|
5583
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5586
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($aae9878972b17321$exports)));
|
|
5584
5587
|
$adc0bb548fdb574f$var$inserted = true;
|
|
5585
5588
|
}
|
|
5586
5589
|
return $hrhbO$ssrElement("div", $hrhbO$mergeProps({
|
|
@@ -5776,8 +5779,8 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5776
5779
|
collapse: collapse
|
|
5777
5780
|
};
|
|
5778
5781
|
};
|
|
5779
|
-
var $
|
|
5780
|
-
$
|
|
5782
|
+
var $5305cfbbfffd9dc8$exports = {};
|
|
5783
|
+
$5305cfbbfffd9dc8$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
5781
5784
|
var $9ef5ce4804a3b61b$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
5782
5785
|
const $9ef5ce4804a3b61b$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
5783
5786
|
const $9ef5ce4804a3b61b$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -5939,7 +5942,7 @@ const $c987460cedc0d7ec$export$788756b42446dc2d = _ref => {
|
|
|
5939
5942
|
} = _ref;
|
|
5940
5943
|
if (!$c987460cedc0d7ec$var$inserted) {
|
|
5941
5944
|
// Insert styling on first import
|
|
5942
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5945
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5305cfbbfffd9dc8$exports)));
|
|
5943
5946
|
$c987460cedc0d7ec$var$inserted = true;
|
|
5944
5947
|
}
|
|
5945
5948
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $c987460cedc0d7ec$var$Image(options) : $c987460cedc0d7ec$var$CompatibleImage(options);
|
|
@@ -6014,8 +6017,8 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
6014
6017
|
}
|
|
6015
6018
|
return sourceset_component;
|
|
6016
6019
|
}
|
|
6017
|
-
var $
|
|
6018
|
-
$
|
|
6020
|
+
var $8254bab8001eaa15$exports = {};
|
|
6021
|
+
$8254bab8001eaa15$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
6019
6022
|
var $73f0a7e385687d5d$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
6020
6023
|
$73f0a7e385687d5d$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
6021
6024
|
// Saving bytez
|
|
@@ -6150,7 +6153,7 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
|
|
|
6150
6153
|
...options
|
|
6151
6154
|
} = _ref;
|
|
6152
6155
|
if (!$73f0a7e385687d5d$var$styling_inserted) {
|
|
6153
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6156
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($8254bab8001eaa15$exports)));
|
|
6154
6157
|
$73f0a7e385687d5d$var$styling_inserted = true;
|
|
6155
6158
|
}
|
|
6156
6159
|
const main_image = $c987460cedc0d7ec$export$788756b42446dc2d({
|
package/server/latest/index.cjs
CHANGED
|
@@ -204,7 +204,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
204
204
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
205
205
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
206
206
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
207
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.
|
|
207
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.4.1";
|
|
208
208
|
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"))();
|
|
209
209
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
210
210
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -1402,8 +1402,8 @@ function $807b852d8decb547$var$switch_elements(from, to) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
1404
|
// @ts-ignore
|
|
1405
|
-
var $
|
|
1406
|
-
$
|
|
1405
|
+
var $1c4a3b6d660e3905$exports = {};
|
|
1406
|
+
$1c4a3b6d660e3905$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1407
1407
|
let $55595fc7bb226f61$var$has_queued_microtask = false;
|
|
1408
1408
|
const $55595fc7bb226f61$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1409
1409
|
const $55595fc7bb226f61$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$268cbd9e4ade92db$export$b3bbfd758f11cfa9($55595fc7bb226f61$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2795,7 +2795,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
|
|
|
2795
2795
|
function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
|
|
2796
2796
|
const style_elem = document.createElement("style");
|
|
2797
2797
|
style_elem.type = "text/css";
|
|
2798
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2798
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($1c4a3b6d660e3905$exports)));
|
|
2799
2799
|
slider.container.appendChild(style_elem);
|
|
2800
2800
|
}
|
|
2801
2801
|
|
|
@@ -4433,7 +4433,10 @@ const $23d6393391c08860$export$783ef16647773b3d = /*@__PURE__*/$41f528c04cc8a8da
|
|
|
4433
4433
|
return meta?.product;
|
|
4434
4434
|
}));
|
|
4435
4435
|
const $55769f63ea4d8da4$export$5c069c93d2b7493f = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
4436
|
-
async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retries = 10,
|
|
4436
|
+
async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retries = 10, {
|
|
4437
|
+
useFetch_ = fetch,
|
|
4438
|
+
initialRetryDuration_ = 100
|
|
4439
|
+
} = {}) {
|
|
4437
4440
|
const ONE_MINUTE = 60000;
|
|
4438
4441
|
const max_backoff_ms = ONE_MINUTE;
|
|
4439
4442
|
const {
|
|
@@ -4444,11 +4447,11 @@ async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
4444
4447
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
4445
4448
|
return delay;
|
|
4446
4449
|
};
|
|
4447
|
-
let try_again_in_ms =
|
|
4450
|
+
let try_again_in_ms = initialRetryDuration_;
|
|
4448
4451
|
let has_succeeded = false;
|
|
4449
4452
|
let result = false;
|
|
4450
4453
|
while (max_retries && !has_succeeded) try {
|
|
4451
|
-
const response = await
|
|
4454
|
+
const response = await useFetch_(url, options);
|
|
4452
4455
|
const {
|
|
4453
4456
|
status: status,
|
|
4454
4457
|
ok: ok
|
|
@@ -5269,8 +5272,8 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
5269
5272
|
on_close_(exit_oos_iterator);
|
|
5270
5273
|
}));
|
|
5271
5274
|
}
|
|
5272
|
-
var $
|
|
5273
|
-
$
|
|
5275
|
+
var $dcdbfd7a994587c9$exports = {};
|
|
5276
|
+
$dcdbfd7a994587c9$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5274
5277
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
5275
5278
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
5276
5279
|
width: width,
|
|
@@ -5281,7 +5284,7 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
5281
5284
|
}) => {
|
|
5282
5285
|
if (!$e587cb3b31b82f43$var$inserted) {
|
|
5283
5286
|
// Insert styling on first import
|
|
5284
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5287
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($dcdbfd7a994587c9$exports)));
|
|
5285
5288
|
$e587cb3b31b82f43$var$inserted = true;
|
|
5286
5289
|
}
|
|
5287
5290
|
return $jVDDb$solidjsweb.ssrElement("div", $jVDDb$solidjsweb.mergeProps({
|
|
@@ -5460,8 +5463,8 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
5460
5463
|
collapse: collapse
|
|
5461
5464
|
};
|
|
5462
5465
|
};
|
|
5463
|
-
var $
|
|
5464
|
-
$
|
|
5466
|
+
var $aa123ed8001baa5e$exports = {};
|
|
5467
|
+
$aa123ed8001baa5e$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
5465
5468
|
var $ff973b2032639b5f$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
5466
5469
|
const $ff973b2032639b5f$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
5467
5470
|
const $ff973b2032639b5f$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -5613,7 +5616,7 @@ const $a312bccd722ac9e4$export$788756b42446dc2d = ({
|
|
|
5613
5616
|
}) => {
|
|
5614
5617
|
if (!$a312bccd722ac9e4$var$inserted) {
|
|
5615
5618
|
// Insert styling on first import
|
|
5616
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5619
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($aa123ed8001baa5e$exports)));
|
|
5617
5620
|
$a312bccd722ac9e4$var$inserted = true;
|
|
5618
5621
|
}
|
|
5619
5622
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
|
|
@@ -5681,8 +5684,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
5681
5684
|
}
|
|
5682
5685
|
return sourceset_component;
|
|
5683
5686
|
}
|
|
5684
|
-
var $
|
|
5685
|
-
$
|
|
5687
|
+
var $db57c943efeaebed$exports = {};
|
|
5688
|
+
$db57c943efeaebed$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
5686
5689
|
var $a656daa2fa8c279a$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
5687
5690
|
$a656daa2fa8c279a$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
5688
5691
|
// Saving bytez
|
|
@@ -5811,7 +5814,7 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
5811
5814
|
...options
|
|
5812
5815
|
}) => {
|
|
5813
5816
|
if (!$a656daa2fa8c279a$var$styling_inserted) {
|
|
5814
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5817
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($db57c943efeaebed$exports)));
|
|
5815
5818
|
$a656daa2fa8c279a$var$styling_inserted = true;
|
|
5816
5819
|
}
|
|
5817
5820
|
const main_image = $a312bccd722ac9e4$export$788756b42446dc2d({
|
package/server/latest/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Accessor } from "solid-js";
|
|
2
|
-
export const version = "2.
|
|
2
|
+
export const version = "2.4.0";
|
|
3
3
|
export const is_debug: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -1360,10 +1360,17 @@ export const wait: (delay: number) => Promise<unknown>;
|
|
|
1360
1360
|
* @param url Url to perform fetch towards
|
|
1361
1361
|
* @param options Fetch options
|
|
1362
1362
|
* @param max_retries Max number of retries, defaults to 10
|
|
1363
|
-
* @param
|
|
1363
|
+
* @param useFetch_ The fetch function to use, defaults to the global fetch
|
|
1364
|
+
* @param initialRetryDuration_ The start duration for the first retry, defaults to 100ms
|
|
1364
1365
|
* @returns The fetch response
|
|
1365
1366
|
*/
|
|
1366
|
-
export function fetch_retry(url: RequestInfo | URL, options?: RequestInit, max_retries?: number,
|
|
1367
|
+
export function fetch_retry(url: RequestInfo | URL, options?: RequestInit, max_retries?: number, {
|
|
1368
|
+
useFetch_,
|
|
1369
|
+
initialRetryDuration_
|
|
1370
|
+
}?: {
|
|
1371
|
+
useFetch_?: typeof fetch;
|
|
1372
|
+
initialRetryDuration_?: number;
|
|
1373
|
+
}): Promise<false | Response>;
|
|
1367
1374
|
/**
|
|
1368
1375
|
* Ensures that the attribute value of an element is what an AsyncIterable resolves with
|
|
1369
1376
|
* @param el Element to set attribute on
|
package/server/latest/index.js
CHANGED
|
@@ -5,7 +5,7 @@ register_es_version("utilishared", "latest");
|
|
|
5
5
|
function $parcel$interopDefault(a) {
|
|
6
6
|
return a && a.__esModule ? a.default : a;
|
|
7
7
|
}
|
|
8
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.
|
|
8
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.4.1";
|
|
9
9
|
const $571bce04eb920cd8$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"))();
|
|
10
10
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
11
11
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -1203,8 +1203,8 @@ function $e867e2f1fb3bcc09$var$switch_elements(from, to) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
// @ts-ignore
|
|
1206
|
-
var $
|
|
1207
|
-
$
|
|
1206
|
+
var $413613e86d0ffb68$exports = {};
|
|
1207
|
+
$413613e86d0ffb68$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1208
1208
|
let $8be08add28592faf$var$has_queued_microtask = false;
|
|
1209
1209
|
const $8be08add28592faf$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1210
1210
|
const $8be08add28592faf$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9($8be08add28592faf$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2596,7 +2596,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
2596
2596
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
2597
2597
|
const style_elem = document.createElement("style");
|
|
2598
2598
|
style_elem.type = "text/css";
|
|
2599
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2599
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($413613e86d0ffb68$exports)));
|
|
2600
2600
|
slider.container.appendChild(style_elem);
|
|
2601
2601
|
}
|
|
2602
2602
|
|
|
@@ -4234,7 +4234,10 @@ const $802201ed0a316c43$export$783ef16647773b3d = /*@__PURE__*/$511123bb28a7b6f7
|
|
|
4234
4234
|
return meta?.product;
|
|
4235
4235
|
}));
|
|
4236
4236
|
const $2cbe7e0ca2ce5438$export$5c069c93d2b7493f = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
4237
|
-
async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retries = 10,
|
|
4237
|
+
async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retries = 10, {
|
|
4238
|
+
useFetch_ = fetch,
|
|
4239
|
+
initialRetryDuration_ = 100
|
|
4240
|
+
} = {}) {
|
|
4238
4241
|
const ONE_MINUTE = 60000;
|
|
4239
4242
|
const max_backoff_ms = ONE_MINUTE;
|
|
4240
4243
|
const {
|
|
@@ -4245,11 +4248,11 @@ async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
4245
4248
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
4246
4249
|
return delay;
|
|
4247
4250
|
};
|
|
4248
|
-
let try_again_in_ms =
|
|
4251
|
+
let try_again_in_ms = initialRetryDuration_;
|
|
4249
4252
|
let has_succeeded = false;
|
|
4250
4253
|
let result = false;
|
|
4251
4254
|
while (max_retries && !has_succeeded) try {
|
|
4252
|
-
const response = await
|
|
4255
|
+
const response = await useFetch_(url, options);
|
|
4253
4256
|
const {
|
|
4254
4257
|
status: status,
|
|
4255
4258
|
ok: ok
|
|
@@ -5070,8 +5073,8 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
5070
5073
|
on_close_(exit_oos_iterator);
|
|
5071
5074
|
}));
|
|
5072
5075
|
}
|
|
5073
|
-
var $
|
|
5074
|
-
$
|
|
5076
|
+
var $895e8df2e6c8982e$exports = {};
|
|
5077
|
+
$895e8df2e6c8982e$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5075
5078
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
5076
5079
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
5077
5080
|
width: width,
|
|
@@ -5082,7 +5085,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
5082
5085
|
}) => {
|
|
5083
5086
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
5084
5087
|
// Insert styling on first import
|
|
5085
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5088
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($895e8df2e6c8982e$exports)));
|
|
5086
5089
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
5087
5090
|
}
|
|
5088
5091
|
return $f3g9l$ssrElement("div", $f3g9l$mergeProps({
|
|
@@ -5261,8 +5264,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
5261
5264
|
collapse: collapse
|
|
5262
5265
|
};
|
|
5263
5266
|
};
|
|
5264
|
-
var $
|
|
5265
|
-
$
|
|
5267
|
+
var $0ffb759867ae20fc$exports = {};
|
|
5268
|
+
$0ffb759867ae20fc$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
5266
5269
|
var $45af9e834781a9bc$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
5267
5270
|
const $45af9e834781a9bc$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
5268
5271
|
const $45af9e834781a9bc$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -5414,7 +5417,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({
|
|
|
5414
5417
|
}) => {
|
|
5415
5418
|
if (!$914971fb43986a16$var$inserted) {
|
|
5416
5419
|
// Insert styling on first import
|
|
5417
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5420
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($0ffb759867ae20fc$exports)));
|
|
5418
5421
|
$914971fb43986a16$var$inserted = true;
|
|
5419
5422
|
}
|
|
5420
5423
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -5482,8 +5485,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
5482
5485
|
}
|
|
5483
5486
|
return sourceset_component;
|
|
5484
5487
|
}
|
|
5485
|
-
var $
|
|
5486
|
-
$
|
|
5488
|
+
var $504e2aac6aea7baf$exports = {};
|
|
5489
|
+
$504e2aac6aea7baf$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
5487
5490
|
var $8483d1d9fcee52ec$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
5488
5491
|
$8483d1d9fcee52ec$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
5489
5492
|
// Saving bytez
|
|
@@ -5612,7 +5615,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
5612
5615
|
...options
|
|
5613
5616
|
}) => {
|
|
5614
5617
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
5615
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5618
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($504e2aac6aea7baf$exports)));
|
|
5616
5619
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
5617
5620
|
}
|
|
5618
5621
|
const main_image = $914971fb43986a16$export$788756b42446dc2d({
|