@depict-ai/utilishared 1.0.34 → 1.0.35
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 +1 -1
- package/ES10/index.js +19 -16
- package/latest/index.cjs +19 -16
- package/latest/index.d.ts +1 -1
- package/latest/index.js +19 -16
- package/package.json +1 -1
package/ES10/index.cjs
CHANGED
|
@@ -275,7 +275,7 @@ $parcel$export(module.exports, "hex_to_rgb", () => $b5388c1e3ff41e88$export$ca30
|
|
|
275
275
|
$parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fbfd8236492);
|
|
276
276
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
277
277
|
$parcel$export(module.exports, "edit_current_page_meta_tags", () => $0126fdc29a9f7f2d$export$ef73ea4f975745ba);
|
|
278
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "1.0.
|
|
278
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "1.0.35";
|
|
279
279
|
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"))();
|
|
280
280
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
281
281
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -2273,6 +2273,9 @@ function $8b27923e1d1e6b99$export$cfef5d5c9ac09253(price) {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
}
|
|
2275
2275
|
if (places_after_comma == "auto") places_after_comma = price % 1 ? 2 : 0;
|
|
2276
|
+
// Generalized rounding for any value of places_after_comma.
|
|
2277
|
+
const multiplier = Math.pow(10, places_after_comma);
|
|
2278
|
+
price = Math.round(price * multiplier) / multiplier;
|
|
2276
2279
|
const fixed = places_after_comma < 0 ? price.toString().split(".") : price.toFixed(places_after_comma).split("."),
|
|
2277
2280
|
[...chars] = fixed[0],
|
|
2278
2281
|
reversed = chars.reverse();
|
|
@@ -5407,8 +5410,8 @@ $ebe64dbcfb106f16$export$2e2bcd8739ae039 = async options => {
|
|
|
5407
5410
|
};
|
|
5408
5411
|
|
|
5409
5412
|
// @ts-ignore
|
|
5410
|
-
var $
|
|
5411
|
-
$
|
|
5413
|
+
var $ecd63cbf537aeb75$exports = {};
|
|
5414
|
+
$ecd63cbf537aeb75$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";
|
|
5412
5415
|
const $3f49f9b73bfc2a38$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
5413
5416
|
class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$export$68babfc5be0de5da) {
|
|
5414
5417
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -5440,7 +5443,7 @@ class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$ex
|
|
|
5440
5443
|
function $3f49f9b73bfc2a38$export$f1b8b9fd75ddcab1(slider) {
|
|
5441
5444
|
const style_elem = document.createElement("style");
|
|
5442
5445
|
style_elem.type = "text/css";
|
|
5443
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5446
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($ecd63cbf537aeb75$exports)));
|
|
5444
5447
|
slider.container.appendChild(style_elem);
|
|
5445
5448
|
}
|
|
5446
5449
|
async function $bbf8331c74194de9$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -6067,8 +6070,8 @@ async function $79e67f88d50f1879$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
6067
6070
|
}
|
|
6068
6071
|
|
|
6069
6072
|
// @ts-ignore
|
|
6070
|
-
var $
|
|
6071
|
-
$
|
|
6073
|
+
var $260179121984179c$exports = {};
|
|
6074
|
+
$260179121984179c$exports = ".depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
|
|
6072
6075
|
let $87dd73b8c244f3d2$var$slider_styling_was_inserted = false;
|
|
6073
6076
|
async function $87dd73b8c244f3d2$export$82cfdc85a4d15688(t, recommendation_renderer_options, _ref) {
|
|
6074
6077
|
let {
|
|
@@ -6092,7 +6095,7 @@ async function $87dd73b8c244f3d2$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
6092
6095
|
if (!elements) return rendering_result;
|
|
6093
6096
|
if (!$87dd73b8c244f3d2$var$slider_styling_was_inserted) {
|
|
6094
6097
|
$87dd73b8c244f3d2$var$slider_styling_was_inserted = true;
|
|
6095
|
-
(0, $e45474c7d6e21cfa$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6098
|
+
(0, $e45474c7d6e21cfa$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($260179121984179c$exports)));
|
|
6096
6099
|
}
|
|
6097
6100
|
insertion_point.replaceWith(slider.container);
|
|
6098
6101
|
slider.insert_here.append(...elements);
|
|
@@ -8221,8 +8224,8 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
8221
8224
|
on_close_(exit_oos_iterator);
|
|
8222
8225
|
}));
|
|
8223
8226
|
}
|
|
8224
|
-
var $
|
|
8225
|
-
$
|
|
8227
|
+
var $8b5f3bb1185264e0$exports = {};
|
|
8228
|
+
$8b5f3bb1185264e0$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";
|
|
8226
8229
|
let $ba9b4cd7e24de87e$var$inserted = false;
|
|
8227
8230
|
const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
8228
8231
|
let {
|
|
@@ -8234,7 +8237,7 @@ const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
|
8234
8237
|
} = _ref;
|
|
8235
8238
|
if (!$ba9b4cd7e24de87e$var$inserted) {
|
|
8236
8239
|
// Insert styling on first import
|
|
8237
|
-
(0, $e45474c7d6e21cfa$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8240
|
+
(0, $e45474c7d6e21cfa$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($8b5f3bb1185264e0$exports)));
|
|
8238
8241
|
$ba9b4cd7e24de87e$var$inserted = true;
|
|
8239
8242
|
}
|
|
8240
8243
|
return (
|
|
@@ -8473,8 +8476,8 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
8473
8476
|
collapse: collapse
|
|
8474
8477
|
};
|
|
8475
8478
|
};
|
|
8476
|
-
var $
|
|
8477
|
-
$
|
|
8479
|
+
var $69f5592a9d3b3d0b$exports = {};
|
|
8480
|
+
$69f5592a9d3b3d0b$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";
|
|
8478
8481
|
const $b42b9f62e8b6cb2d$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
8479
8482
|
const $b42b9f62e8b6cb2d$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
8480
8483
|
function $b42b9f62e8b6cb2d$export$f39a7d0667e924a(what_to_watch) {
|
|
@@ -8637,7 +8640,7 @@ const $dfce76a4aeb41067$export$788756b42446dc2d = _ref => {
|
|
|
8637
8640
|
} = _ref;
|
|
8638
8641
|
if (!$dfce76a4aeb41067$var$inserted) {
|
|
8639
8642
|
// Insert styling on first import
|
|
8640
|
-
(0, $e45474c7d6e21cfa$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8643
|
+
(0, $e45474c7d6e21cfa$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($69f5592a9d3b3d0b$exports)));
|
|
8641
8644
|
$dfce76a4aeb41067$var$inserted = true;
|
|
8642
8645
|
}
|
|
8643
8646
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $dfce76a4aeb41067$var$Image(options) : $dfce76a4aeb41067$var$CompatibleImage(options);
|
|
@@ -8724,8 +8727,8 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
8724
8727
|
}
|
|
8725
8728
|
return sourceset_component;
|
|
8726
8729
|
}
|
|
8727
|
-
var $
|
|
8728
|
-
$
|
|
8730
|
+
var $5ab0a60ded6a2bd2$exports = {};
|
|
8731
|
+
$5ab0a60ded6a2bd2$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";
|
|
8729
8732
|
|
|
8730
8733
|
// Saving bytez
|
|
8731
8734
|
// Maybe? @Daniel
|
|
@@ -8859,7 +8862,7 @@ const $8928a1027461fba4$export$2369f6fc1c911576 = _ref => {
|
|
|
8859
8862
|
...options
|
|
8860
8863
|
} = _ref;
|
|
8861
8864
|
if (!$8928a1027461fba4$var$styling_inserted) {
|
|
8862
|
-
(0, $e45474c7d6e21cfa$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8865
|
+
(0, $e45474c7d6e21cfa$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($5ab0a60ded6a2bd2$exports)));
|
|
8863
8866
|
$8928a1027461fba4$var$styling_inserted = true;
|
|
8864
8867
|
}
|
|
8865
8868
|
const main_image = (0, $dfce76a4aeb41067$export$788756b42446dc2d)({
|
package/ES10/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../jsx.d.ts" />
|
|
2
2
|
import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
|
|
3
3
|
import { Accessor } from "solid-js";
|
|
4
|
-
export const version = "1.0.
|
|
4
|
+
export const version = "1.0.35";
|
|
5
5
|
export const is_debug: boolean;
|
|
6
6
|
/**
|
|
7
7
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
package/ES10/index.js
CHANGED
|
@@ -15,7 +15,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
15
15
|
function $parcel$interopDefault(a) {
|
|
16
16
|
return a && a.__esModule ? a.default : a;
|
|
17
17
|
}
|
|
18
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "1.0.
|
|
18
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "1.0.35";
|
|
19
19
|
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"))();
|
|
20
20
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
21
21
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -2013,6 +2013,9 @@ function $652300c6621d5500$export$cfef5d5c9ac09253(price) {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
2015
|
if (places_after_comma == "auto") places_after_comma = price % 1 ? 2 : 0;
|
|
2016
|
+
// Generalized rounding for any value of places_after_comma.
|
|
2017
|
+
const multiplier = Math.pow(10, places_after_comma);
|
|
2018
|
+
price = Math.round(price * multiplier) / multiplier;
|
|
2016
2019
|
const fixed = places_after_comma < 0 ? price.toString().split(".") : price.toFixed(places_after_comma).split("."),
|
|
2017
2020
|
[...chars] = fixed[0],
|
|
2018
2021
|
reversed = chars.reverse();
|
|
@@ -5147,8 +5150,8 @@ $48b0f027b215b8ad$export$2e2bcd8739ae039 = async options => {
|
|
|
5147
5150
|
};
|
|
5148
5151
|
|
|
5149
5152
|
// @ts-ignore
|
|
5150
|
-
var $
|
|
5151
|
-
$
|
|
5153
|
+
var $9c3f55fbde559b71$exports = {};
|
|
5154
|
+
$9c3f55fbde559b71$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";
|
|
5152
5155
|
const $0342f59060b8a196$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
5153
5156
|
class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$export$68babfc5be0de5da) {
|
|
5154
5157
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -5180,7 +5183,7 @@ class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$ex
|
|
|
5180
5183
|
function $0342f59060b8a196$export$f1b8b9fd75ddcab1(slider) {
|
|
5181
5184
|
const style_elem = document.createElement("style");
|
|
5182
5185
|
style_elem.type = "text/css";
|
|
5183
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5186
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($9c3f55fbde559b71$exports)));
|
|
5184
5187
|
slider.container.appendChild(style_elem);
|
|
5185
5188
|
}
|
|
5186
5189
|
async function $b7b39b38d6e695e9$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5807,8 +5810,8 @@ async function $297a08bac2d81fab$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5807
5810
|
}
|
|
5808
5811
|
|
|
5809
5812
|
// @ts-ignore
|
|
5810
|
-
var $
|
|
5811
|
-
$
|
|
5813
|
+
var $9f7f2b36a558e2bd$exports = {};
|
|
5814
|
+
$9f7f2b36a558e2bd$exports = ".depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
|
|
5812
5815
|
let $d89e3aaeb9270095$var$slider_styling_was_inserted = false;
|
|
5813
5816
|
async function $d89e3aaeb9270095$export$82cfdc85a4d15688(t, recommendation_renderer_options, _ref) {
|
|
5814
5817
|
let {
|
|
@@ -5832,7 +5835,7 @@ async function $d89e3aaeb9270095$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5832
5835
|
if (!elements) return rendering_result;
|
|
5833
5836
|
if (!$d89e3aaeb9270095$var$slider_styling_was_inserted) {
|
|
5834
5837
|
$d89e3aaeb9270095$var$slider_styling_was_inserted = true;
|
|
5835
|
-
(0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5838
|
+
(0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($9f7f2b36a558e2bd$exports)));
|
|
5836
5839
|
}
|
|
5837
5840
|
insertion_point.replaceWith(slider.container);
|
|
5838
5841
|
slider.insert_here.append(...elements);
|
|
@@ -7961,8 +7964,8 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
7961
7964
|
on_close_(exit_oos_iterator);
|
|
7962
7965
|
}));
|
|
7963
7966
|
}
|
|
7964
|
-
var $
|
|
7965
|
-
$
|
|
7967
|
+
var $4ef779af61421f56$exports = {};
|
|
7968
|
+
$4ef779af61421f56$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";
|
|
7966
7969
|
let $adc0bb548fdb574f$var$inserted = false;
|
|
7967
7970
|
const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
7968
7971
|
let {
|
|
@@ -7974,7 +7977,7 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
|
7974
7977
|
} = _ref;
|
|
7975
7978
|
if (!$adc0bb548fdb574f$var$inserted) {
|
|
7976
7979
|
// Insert styling on first import
|
|
7977
|
-
(0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7980
|
+
(0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($4ef779af61421f56$exports)));
|
|
7978
7981
|
$adc0bb548fdb574f$var$inserted = true;
|
|
7979
7982
|
}
|
|
7980
7983
|
return (
|
|
@@ -8213,8 +8216,8 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
8213
8216
|
collapse: collapse
|
|
8214
8217
|
};
|
|
8215
8218
|
};
|
|
8216
|
-
var $
|
|
8217
|
-
$
|
|
8219
|
+
var $bb22ceba3718f8e9$exports = {};
|
|
8220
|
+
$bb22ceba3718f8e9$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";
|
|
8218
8221
|
const $9ef5ce4804a3b61b$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
8219
8222
|
const $9ef5ce4804a3b61b$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
8220
8223
|
function $9ef5ce4804a3b61b$export$f39a7d0667e924a(what_to_watch) {
|
|
@@ -8377,7 +8380,7 @@ const $c987460cedc0d7ec$export$788756b42446dc2d = _ref => {
|
|
|
8377
8380
|
} = _ref;
|
|
8378
8381
|
if (!$c987460cedc0d7ec$var$inserted) {
|
|
8379
8382
|
// Insert styling on first import
|
|
8380
|
-
(0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8383
|
+
(0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($bb22ceba3718f8e9$exports)));
|
|
8381
8384
|
$c987460cedc0d7ec$var$inserted = true;
|
|
8382
8385
|
}
|
|
8383
8386
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $c987460cedc0d7ec$var$Image(options) : $c987460cedc0d7ec$var$CompatibleImage(options);
|
|
@@ -8464,8 +8467,8 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
8464
8467
|
}
|
|
8465
8468
|
return sourceset_component;
|
|
8466
8469
|
}
|
|
8467
|
-
var $
|
|
8468
|
-
$
|
|
8470
|
+
var $9dac835b40ad5f94$exports = {};
|
|
8471
|
+
$9dac835b40ad5f94$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";
|
|
8469
8472
|
|
|
8470
8473
|
// Saving bytez
|
|
8471
8474
|
// Maybe? @Daniel
|
|
@@ -8599,7 +8602,7 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
|
|
|
8599
8602
|
...options
|
|
8600
8603
|
} = _ref;
|
|
8601
8604
|
if (!$73f0a7e385687d5d$var$styling_inserted) {
|
|
8602
|
-
(0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8605
|
+
(0, $1013f2e568f87406$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($9dac835b40ad5f94$exports)));
|
|
8603
8606
|
$73f0a7e385687d5d$var$styling_inserted = true;
|
|
8604
8607
|
}
|
|
8605
8608
|
const main_image = (0, $c987460cedc0d7ec$export$788756b42446dc2d)({
|
package/latest/index.cjs
CHANGED
|
@@ -272,7 +272,7 @@ $parcel$export(module.exports, "hex_to_rgb", () => $d73746ee466f09ca$export$ca30
|
|
|
272
272
|
$parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fbfd8236492);
|
|
273
273
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
274
274
|
$parcel$export(module.exports, "edit_current_page_meta_tags", () => $8838e3e61b748a8b$export$ef73ea4f975745ba);
|
|
275
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "1.0.
|
|
275
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "1.0.35";
|
|
276
276
|
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"))();
|
|
277
277
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
278
278
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -2012,6 +2012,9 @@ function $bf7f12fe044e41b2$export$cfef5d5c9ac09253(price, places_after_comma = 2
|
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
2014
|
if (places_after_comma == "auto") places_after_comma = price % 1 ? 2 : 0;
|
|
2015
|
+
// Generalized rounding for any value of places_after_comma.
|
|
2016
|
+
const multiplier = Math.pow(10, places_after_comma);
|
|
2017
|
+
price = Math.round(price * multiplier) / multiplier;
|
|
2015
2018
|
const fixed = places_after_comma < 0 ? price.toString().split(".") : price.toFixed(places_after_comma).split("."),
|
|
2016
2019
|
[...chars] = fixed[0],
|
|
2017
2020
|
reversed = chars.reverse();
|
|
@@ -4924,8 +4927,8 @@ $52d3be7ce5146924$export$2e2bcd8739ae039 = async options => {
|
|
|
4924
4927
|
};
|
|
4925
4928
|
|
|
4926
4929
|
// @ts-ignore
|
|
4927
|
-
var $
|
|
4928
|
-
$
|
|
4930
|
+
var $0bdfc1d6f84716d9$exports = {};
|
|
4931
|
+
$0bdfc1d6f84716d9$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";
|
|
4929
4932
|
const $e090b20cef3f0516$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
4930
4933
|
class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$export$68babfc5be0de5da) {
|
|
4931
4934
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -4956,7 +4959,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
|
|
|
4956
4959
|
function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
|
|
4957
4960
|
const style_elem = document.createElement("style");
|
|
4958
4961
|
style_elem.type = "text/css";
|
|
4959
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
4962
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($0bdfc1d6f84716d9$exports)));
|
|
4960
4963
|
slider.container.appendChild(style_elem);
|
|
4961
4964
|
}
|
|
4962
4965
|
async function $7af744346f17bf99$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5566,8 +5569,8 @@ async function $a7315720bf2a1638$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5566
5569
|
}
|
|
5567
5570
|
|
|
5568
5571
|
// @ts-ignore
|
|
5569
|
-
var $
|
|
5570
|
-
$
|
|
5572
|
+
var $6f9658642611ab01$exports = {};
|
|
5573
|
+
$6f9658642611ab01$exports = ".depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
|
|
5571
5574
|
let $79804e8d76404ae4$var$slider_styling_was_inserted = false;
|
|
5572
5575
|
async function $79804e8d76404ae4$export$82cfdc85a4d15688(t, recommendation_renderer_options, {
|
|
5573
5576
|
container_elements: container_elements,
|
|
@@ -5590,7 +5593,7 @@ async function $79804e8d76404ae4$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5590
5593
|
if (!elements) return rendering_result;
|
|
5591
5594
|
if (!$79804e8d76404ae4$var$slider_styling_was_inserted) {
|
|
5592
5595
|
$79804e8d76404ae4$var$slider_styling_was_inserted = true;
|
|
5593
|
-
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5596
|
+
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($6f9658642611ab01$exports)));
|
|
5594
5597
|
}
|
|
5595
5598
|
insertion_point.replaceWith(slider.container);
|
|
5596
5599
|
slider.insert_here.append(...elements);
|
|
@@ -7635,8 +7638,8 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
7635
7638
|
on_close_(exit_oos_iterator);
|
|
7636
7639
|
}));
|
|
7637
7640
|
}
|
|
7638
|
-
var $
|
|
7639
|
-
$
|
|
7641
|
+
var $05427557ffc98539$exports = {};
|
|
7642
|
+
$05427557ffc98539$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";
|
|
7640
7643
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
7641
7644
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
7642
7645
|
width: width,
|
|
@@ -7647,7 +7650,7 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
7647
7650
|
}) => {
|
|
7648
7651
|
if (!$e587cb3b31b82f43$var$inserted) {
|
|
7649
7652
|
// Insert styling on first import
|
|
7650
|
-
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7653
|
+
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($05427557ffc98539$exports)));
|
|
7651
7654
|
$e587cb3b31b82f43$var$inserted = true;
|
|
7652
7655
|
}
|
|
7653
7656
|
return (
|
|
@@ -7869,8 +7872,8 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
7869
7872
|
collapse: collapse
|
|
7870
7873
|
};
|
|
7871
7874
|
};
|
|
7872
|
-
var $
|
|
7873
|
-
$
|
|
7875
|
+
var $278195e5c6164616$exports = {};
|
|
7876
|
+
$278195e5c6164616$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";
|
|
7874
7877
|
const $ff973b2032639b5f$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
7875
7878
|
const $ff973b2032639b5f$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
7876
7879
|
function $ff973b2032639b5f$export$f39a7d0667e924a(what_to_watch, sizes_communicator = (0, $9a42a570de51ea3d$export$e806c6c1615a59ae)(), resolution_factor = 1) {
|
|
@@ -8026,7 +8029,7 @@ const $a312bccd722ac9e4$export$788756b42446dc2d = ({
|
|
|
8026
8029
|
}) => {
|
|
8027
8030
|
if (!$a312bccd722ac9e4$var$inserted) {
|
|
8028
8031
|
// Insert styling on first import
|
|
8029
|
-
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8032
|
+
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($278195e5c6164616$exports)));
|
|
8030
8033
|
$a312bccd722ac9e4$var$inserted = true;
|
|
8031
8034
|
}
|
|
8032
8035
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
|
|
@@ -8106,8 +8109,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
8106
8109
|
}
|
|
8107
8110
|
return sourceset_component;
|
|
8108
8111
|
}
|
|
8109
|
-
var $
|
|
8110
|
-
$
|
|
8112
|
+
var $63f2002626a07875$exports = {};
|
|
8113
|
+
$63f2002626a07875$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";
|
|
8111
8114
|
|
|
8112
8115
|
// Saving bytez
|
|
8113
8116
|
// Maybe? @Daniel
|
|
@@ -8235,7 +8238,7 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
8235
8238
|
...options
|
|
8236
8239
|
}) => {
|
|
8237
8240
|
if (!$a656daa2fa8c279a$var$styling_inserted) {
|
|
8238
|
-
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8241
|
+
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($63f2002626a07875$exports)));
|
|
8239
8242
|
$a656daa2fa8c279a$var$styling_inserted = true;
|
|
8240
8243
|
}
|
|
8241
8244
|
const main_image = (0, $a312bccd722ac9e4$export$788756b42446dc2d)({
|
package/latest/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../jsx.d.ts" />
|
|
2
2
|
import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
|
|
3
3
|
import { Accessor } from "solid-js";
|
|
4
|
-
export const version = "1.0.
|
|
4
|
+
export const version = "1.0.35";
|
|
5
5
|
export const is_debug: boolean;
|
|
6
6
|
/**
|
|
7
7
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
package/latest/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
12
12
|
function $parcel$interopDefault(a) {
|
|
13
13
|
return a && a.__esModule ? a.default : a;
|
|
14
14
|
}
|
|
15
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "1.0.
|
|
15
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "1.0.35";
|
|
16
16
|
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"))();
|
|
17
17
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
18
18
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -1752,6 +1752,9 @@ function $0bdb8dbcf1bc7f34$export$cfef5d5c9ac09253(price, places_after_comma = 2
|
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
1754
|
if (places_after_comma == "auto") places_after_comma = price % 1 ? 2 : 0;
|
|
1755
|
+
// Generalized rounding for any value of places_after_comma.
|
|
1756
|
+
const multiplier = Math.pow(10, places_after_comma);
|
|
1757
|
+
price = Math.round(price * multiplier) / multiplier;
|
|
1755
1758
|
const fixed = places_after_comma < 0 ? price.toString().split(".") : price.toFixed(places_after_comma).split("."),
|
|
1756
1759
|
[...chars] = fixed[0],
|
|
1757
1760
|
reversed = chars.reverse();
|
|
@@ -4664,8 +4667,8 @@ $51bbc74e39f5e5c6$export$2e2bcd8739ae039 = async options => {
|
|
|
4664
4667
|
};
|
|
4665
4668
|
|
|
4666
4669
|
// @ts-ignore
|
|
4667
|
-
var $
|
|
4668
|
-
$
|
|
4670
|
+
var $ac367c225b9acf18$exports = {};
|
|
4671
|
+
$ac367c225b9acf18$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";
|
|
4669
4672
|
const $762a881271a51d1b$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
4670
4673
|
class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$export$68babfc5be0de5da) {
|
|
4671
4674
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -4696,7 +4699,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
4696
4699
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
4697
4700
|
const style_elem = document.createElement("style");
|
|
4698
4701
|
style_elem.type = "text/css";
|
|
4699
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
4702
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($ac367c225b9acf18$exports)));
|
|
4700
4703
|
slider.container.appendChild(style_elem);
|
|
4701
4704
|
}
|
|
4702
4705
|
async function $e61f371a9bcdeb2f$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5306,8 +5309,8 @@ async function $090b8182afa1b2a6$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5306
5309
|
}
|
|
5307
5310
|
|
|
5308
5311
|
// @ts-ignore
|
|
5309
|
-
var $
|
|
5310
|
-
$
|
|
5312
|
+
var $f2bd9116db2dd7da$exports = {};
|
|
5313
|
+
$f2bd9116db2dd7da$exports = ".depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
|
|
5311
5314
|
let $30f78542ed78cd31$var$slider_styling_was_inserted = false;
|
|
5312
5315
|
async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_renderer_options, {
|
|
5313
5316
|
container_elements: container_elements,
|
|
@@ -5330,7 +5333,7 @@ async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5330
5333
|
if (!elements) return rendering_result;
|
|
5331
5334
|
if (!$30f78542ed78cd31$var$slider_styling_was_inserted) {
|
|
5332
5335
|
$30f78542ed78cd31$var$slider_styling_was_inserted = true;
|
|
5333
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5336
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($f2bd9116db2dd7da$exports)));
|
|
5334
5337
|
}
|
|
5335
5338
|
insertion_point.replaceWith(slider.container);
|
|
5336
5339
|
slider.insert_here.append(...elements);
|
|
@@ -7375,8 +7378,8 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7375
7378
|
on_close_(exit_oos_iterator);
|
|
7376
7379
|
}));
|
|
7377
7380
|
}
|
|
7378
|
-
var $
|
|
7379
|
-
$
|
|
7381
|
+
var $88c888c4d16ccbd4$exports = {};
|
|
7382
|
+
$88c888c4d16ccbd4$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";
|
|
7380
7383
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
7381
7384
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
7382
7385
|
width: width,
|
|
@@ -7387,7 +7390,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
7387
7390
|
}) => {
|
|
7388
7391
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
7389
7392
|
// Insert styling on first import
|
|
7390
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7393
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($88c888c4d16ccbd4$exports)));
|
|
7391
7394
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
7392
7395
|
}
|
|
7393
7396
|
return (
|
|
@@ -7609,8 +7612,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
7609
7612
|
collapse: collapse
|
|
7610
7613
|
};
|
|
7611
7614
|
};
|
|
7612
|
-
var $
|
|
7613
|
-
$
|
|
7615
|
+
var $3e5c76df45929e80$exports = {};
|
|
7616
|
+
$3e5c76df45929e80$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";
|
|
7614
7617
|
const $45af9e834781a9bc$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
7615
7618
|
const $45af9e834781a9bc$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
7616
7619
|
function $45af9e834781a9bc$export$f39a7d0667e924a(what_to_watch, sizes_communicator = (0, $607fc90221d440a6$export$e806c6c1615a59ae)(), resolution_factor = 1) {
|
|
@@ -7766,7 +7769,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({
|
|
|
7766
7769
|
}) => {
|
|
7767
7770
|
if (!$914971fb43986a16$var$inserted) {
|
|
7768
7771
|
// Insert styling on first import
|
|
7769
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7772
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($3e5c76df45929e80$exports)));
|
|
7770
7773
|
$914971fb43986a16$var$inserted = true;
|
|
7771
7774
|
}
|
|
7772
7775
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -7846,8 +7849,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
7846
7849
|
}
|
|
7847
7850
|
return sourceset_component;
|
|
7848
7851
|
}
|
|
7849
|
-
var $
|
|
7850
|
-
$
|
|
7852
|
+
var $e54f50426e7d0ab9$exports = {};
|
|
7853
|
+
$e54f50426e7d0ab9$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";
|
|
7851
7854
|
|
|
7852
7855
|
// Saving bytez
|
|
7853
7856
|
// Maybe? @Daniel
|
|
@@ -7975,7 +7978,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
7975
7978
|
...options
|
|
7976
7979
|
}) => {
|
|
7977
7980
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
7978
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7981
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, /*@__PURE__*/$parcel$interopDefault($e54f50426e7d0ab9$exports)));
|
|
7979
7982
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
7980
7983
|
}
|
|
7981
7984
|
const main_image = (0, $914971fb43986a16$export$788756b42446dc2d)({
|