@depict-ai/utilishared 2.1.3 → 2.1.4
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 +16 -16
- package/ES10/index.d.ts +1 -5
- package/ES10/index.js +16 -16
- package/latest/index.cjs +16 -16
- package/latest/index.d.ts +1 -5
- package/latest/index.js +16 -16
- package/package.json +2 -2
- package/server/ES10/index.cjs +16 -16
- package/server/ES10/index.d.ts +1 -5
- package/server/ES10/index.js +16 -16
- package/server/latest/index.cjs +16 -16
- package/server/latest/index.d.ts +1 -5
- package/server/latest/index.js +16 -16
package/ES10/index.cjs
CHANGED
|
@@ -275,7 +275,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
275
275
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
276
276
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
277
277
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
278
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.1.
|
|
278
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.1.4";
|
|
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]";
|
|
@@ -5401,8 +5401,8 @@ $ebe64dbcfb106f16$export$2e2bcd8739ae039 = async options => {
|
|
|
5401
5401
|
};
|
|
5402
5402
|
|
|
5403
5403
|
// @ts-ignore
|
|
5404
|
-
var $
|
|
5405
|
-
$
|
|
5404
|
+
var $22c667835a3196a9$exports = {};
|
|
5405
|
+
$22c667835a3196a9$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";
|
|
5406
5406
|
const $3f49f9b73bfc2a38$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
5407
5407
|
class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$export$68babfc5be0de5da) {
|
|
5408
5408
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -5434,7 +5434,7 @@ class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$ex
|
|
|
5434
5434
|
function $3f49f9b73bfc2a38$export$f1b8b9fd75ddcab1(slider) {
|
|
5435
5435
|
const style_elem = document.createElement("style");
|
|
5436
5436
|
style_elem.type = "text/css";
|
|
5437
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5437
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($22c667835a3196a9$exports)));
|
|
5438
5438
|
slider.container.appendChild(style_elem);
|
|
5439
5439
|
}
|
|
5440
5440
|
async function $bbf8331c74194de9$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -6112,8 +6112,8 @@ async function $79e67f88d50f1879$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
6112
6112
|
}
|
|
6113
6113
|
|
|
6114
6114
|
// @ts-ignore
|
|
6115
|
-
var $
|
|
6116
|
-
$
|
|
6115
|
+
var $a395aeaeccd7ae3d$exports = {};
|
|
6116
|
+
$a395aeaeccd7ae3d$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";
|
|
6117
6117
|
let $87dd73b8c244f3d2$var$slider_styling_was_inserted = false;
|
|
6118
6118
|
async function $87dd73b8c244f3d2$export$82cfdc85a4d15688(t, recommendation_renderer_options, _ref) {
|
|
6119
6119
|
let {
|
|
@@ -6137,7 +6137,7 @@ async function $87dd73b8c244f3d2$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
6137
6137
|
if (!elements) return rendering_result;
|
|
6138
6138
|
if (!$87dd73b8c244f3d2$var$slider_styling_was_inserted) {
|
|
6139
6139
|
$87dd73b8c244f3d2$var$slider_styling_was_inserted = true;
|
|
6140
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6140
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a395aeaeccd7ae3d$exports)));
|
|
6141
6141
|
}
|
|
6142
6142
|
insertion_point.replaceWith(slider.container);
|
|
6143
6143
|
slider.insert_here.append(...elements);
|
|
@@ -8292,8 +8292,8 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
8292
8292
|
}));
|
|
8293
8293
|
}
|
|
8294
8294
|
$bBfCy$solidjsweb.delegateEvents(["click"]);
|
|
8295
|
-
var $
|
|
8296
|
-
$
|
|
8295
|
+
var $46b697935d651c75$exports = {};
|
|
8296
|
+
$46b697935d651c75$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";
|
|
8297
8297
|
var $ba9b4cd7e24de87e$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div>`);
|
|
8298
8298
|
let $ba9b4cd7e24de87e$var$inserted = false;
|
|
8299
8299
|
const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
@@ -8306,7 +8306,7 @@ const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
|
8306
8306
|
} = _ref;
|
|
8307
8307
|
if (!$ba9b4cd7e24de87e$var$inserted) {
|
|
8308
8308
|
// Insert styling on first import
|
|
8309
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8309
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($46b697935d651c75$exports)));
|
|
8310
8310
|
$ba9b4cd7e24de87e$var$inserted = true;
|
|
8311
8311
|
}
|
|
8312
8312
|
return (() => {
|
|
@@ -8550,8 +8550,8 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
8550
8550
|
collapse: collapse
|
|
8551
8551
|
};
|
|
8552
8552
|
};
|
|
8553
|
-
var $
|
|
8554
|
-
$
|
|
8553
|
+
var $40bc83c42fbfc3cd$exports = {};
|
|
8554
|
+
$40bc83c42fbfc3cd$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";
|
|
8555
8555
|
var $b42b9f62e8b6cb2d$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<img>`),
|
|
8556
8556
|
$b42b9f62e8b6cb2d$var$_tmpl$2 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<source sizes=0px>`),
|
|
8557
8557
|
$b42b9f62e8b6cb2d$var$_tmpl$3 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<picture>`);
|
|
@@ -8728,7 +8728,7 @@ const $dfce76a4aeb41067$export$788756b42446dc2d = _ref => {
|
|
|
8728
8728
|
} = _ref;
|
|
8729
8729
|
if (!$dfce76a4aeb41067$var$inserted) {
|
|
8730
8730
|
// Insert styling on first import
|
|
8731
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8731
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($40bc83c42fbfc3cd$exports)));
|
|
8732
8732
|
$dfce76a4aeb41067$var$inserted = true;
|
|
8733
8733
|
}
|
|
8734
8734
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $dfce76a4aeb41067$var$Image(options) : $dfce76a4aeb41067$var$CompatibleImage(options);
|
|
@@ -8819,8 +8819,8 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
8819
8819
|
}
|
|
8820
8820
|
return sourceset_component;
|
|
8821
8821
|
}
|
|
8822
|
-
var $
|
|
8823
|
-
$
|
|
8822
|
+
var $f90bbaa8a24d72ca$exports = {};
|
|
8823
|
+
$f90bbaa8a24d72ca$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";
|
|
8824
8824
|
var $8928a1027461fba4$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
8825
8825
|
$8928a1027461fba4$var$_tmpl$2 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div class=second-image-container>`);
|
|
8826
8826
|
// Saving bytez
|
|
@@ -8955,7 +8955,7 @@ const $8928a1027461fba4$export$2369f6fc1c911576 = _ref => {
|
|
|
8955
8955
|
...options
|
|
8956
8956
|
} = _ref;
|
|
8957
8957
|
if (!$8928a1027461fba4$var$styling_inserted) {
|
|
8958
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8958
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($f90bbaa8a24d72ca$exports)));
|
|
8959
8959
|
$8928a1027461fba4$var$styling_inserted = true;
|
|
8960
8960
|
}
|
|
8961
8961
|
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.1.
|
|
2
|
+
export const version = "2.1.4";
|
|
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]`.
|
|
@@ -1107,10 +1107,6 @@ interface ModernDisplay {
|
|
|
1107
1107
|
* All variant displays (eg. different colors, sizes) of the product.
|
|
1108
1108
|
*/
|
|
1109
1109
|
variant_displays: any[];
|
|
1110
|
-
/** SKUs of the different variants */
|
|
1111
|
-
variant_skus: string[];
|
|
1112
|
-
/** Product of the different variants */
|
|
1113
|
-
variant_product_ids: string[];
|
|
1114
1110
|
/** Unique recommendation result ID used by Depict */
|
|
1115
1111
|
recommendation_id?: string;
|
|
1116
1112
|
/** Unique search result ID used by Depict */
|
package/ES10/index.js
CHANGED
|
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
16
16
|
function $parcel$interopDefault(a) {
|
|
17
17
|
return a && a.__esModule ? a.default : a;
|
|
18
18
|
}
|
|
19
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.1.
|
|
19
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.1.4";
|
|
20
20
|
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"))();
|
|
21
21
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
22
22
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -5142,8 +5142,8 @@ $48b0f027b215b8ad$export$2e2bcd8739ae039 = async options => {
|
|
|
5142
5142
|
};
|
|
5143
5143
|
|
|
5144
5144
|
// @ts-ignore
|
|
5145
|
-
var $
|
|
5146
|
-
$
|
|
5145
|
+
var $bb2bb8f189a68651$exports = {};
|
|
5146
|
+
$bb2bb8f189a68651$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";
|
|
5147
5147
|
const $0342f59060b8a196$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
5148
5148
|
class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$export$68babfc5be0de5da) {
|
|
5149
5149
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -5175,7 +5175,7 @@ class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$ex
|
|
|
5175
5175
|
function $0342f59060b8a196$export$f1b8b9fd75ddcab1(slider) {
|
|
5176
5176
|
const style_elem = document.createElement("style");
|
|
5177
5177
|
style_elem.type = "text/css";
|
|
5178
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5178
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($bb2bb8f189a68651$exports)));
|
|
5179
5179
|
slider.container.appendChild(style_elem);
|
|
5180
5180
|
}
|
|
5181
5181
|
async function $b7b39b38d6e695e9$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5853,8 +5853,8 @@ async function $297a08bac2d81fab$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5853
5853
|
}
|
|
5854
5854
|
|
|
5855
5855
|
// @ts-ignore
|
|
5856
|
-
var $
|
|
5857
|
-
$
|
|
5856
|
+
var $9aec7f71245b3f70$exports = {};
|
|
5857
|
+
$9aec7f71245b3f70$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";
|
|
5858
5858
|
let $d89e3aaeb9270095$var$slider_styling_was_inserted = false;
|
|
5859
5859
|
async function $d89e3aaeb9270095$export$82cfdc85a4d15688(t, recommendation_renderer_options, _ref) {
|
|
5860
5860
|
let {
|
|
@@ -5878,7 +5878,7 @@ async function $d89e3aaeb9270095$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5878
5878
|
if (!elements) return rendering_result;
|
|
5879
5879
|
if (!$d89e3aaeb9270095$var$slider_styling_was_inserted) {
|
|
5880
5880
|
$d89e3aaeb9270095$var$slider_styling_was_inserted = true;
|
|
5881
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5881
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($9aec7f71245b3f70$exports)));
|
|
5882
5882
|
}
|
|
5883
5883
|
insertion_point.replaceWith(slider.container);
|
|
5884
5884
|
slider.insert_here.append(...elements);
|
|
@@ -8033,8 +8033,8 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
8033
8033
|
}));
|
|
8034
8034
|
}
|
|
8035
8035
|
$76EG6$delegateEvents(["click"]);
|
|
8036
|
-
var $
|
|
8037
|
-
$
|
|
8036
|
+
var $5304b1a97f5cc360$exports = {};
|
|
8037
|
+
$5304b1a97f5cc360$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";
|
|
8038
8038
|
var $adc0bb548fdb574f$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`);
|
|
8039
8039
|
let $adc0bb548fdb574f$var$inserted = false;
|
|
8040
8040
|
const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
@@ -8047,7 +8047,7 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
|
8047
8047
|
} = _ref;
|
|
8048
8048
|
if (!$adc0bb548fdb574f$var$inserted) {
|
|
8049
8049
|
// Insert styling on first import
|
|
8050
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8050
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5304b1a97f5cc360$exports)));
|
|
8051
8051
|
$adc0bb548fdb574f$var$inserted = true;
|
|
8052
8052
|
}
|
|
8053
8053
|
return (() => {
|
|
@@ -8291,8 +8291,8 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
8291
8291
|
collapse: collapse
|
|
8292
8292
|
};
|
|
8293
8293
|
};
|
|
8294
|
-
var $
|
|
8295
|
-
$
|
|
8294
|
+
var $3acba1df0fdbf811$exports = {};
|
|
8295
|
+
$3acba1df0fdbf811$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";
|
|
8296
8296
|
var $9ef5ce4804a3b61b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<img>`),
|
|
8297
8297
|
$9ef5ce4804a3b61b$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<source sizes=0px>`),
|
|
8298
8298
|
$9ef5ce4804a3b61b$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<picture>`);
|
|
@@ -8469,7 +8469,7 @@ const $c987460cedc0d7ec$export$788756b42446dc2d = _ref => {
|
|
|
8469
8469
|
} = _ref;
|
|
8470
8470
|
if (!$c987460cedc0d7ec$var$inserted) {
|
|
8471
8471
|
// Insert styling on first import
|
|
8472
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8472
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($3acba1df0fdbf811$exports)));
|
|
8473
8473
|
$c987460cedc0d7ec$var$inserted = true;
|
|
8474
8474
|
}
|
|
8475
8475
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $c987460cedc0d7ec$var$Image(options) : $c987460cedc0d7ec$var$CompatibleImage(options);
|
|
@@ -8560,8 +8560,8 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
8560
8560
|
}
|
|
8561
8561
|
return sourceset_component;
|
|
8562
8562
|
}
|
|
8563
|
-
var $
|
|
8564
|
-
$
|
|
8563
|
+
var $2dbcf35ce5cd16e6$exports = {};
|
|
8564
|
+
$2dbcf35ce5cd16e6$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";
|
|
8565
8565
|
var $73f0a7e385687d5d$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
8566
8566
|
$73f0a7e385687d5d$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=second-image-container>`);
|
|
8567
8567
|
// Saving bytez
|
|
@@ -8696,7 +8696,7 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
|
|
|
8696
8696
|
...options
|
|
8697
8697
|
} = _ref;
|
|
8698
8698
|
if (!$73f0a7e385687d5d$var$styling_inserted) {
|
|
8699
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8699
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($2dbcf35ce5cd16e6$exports)));
|
|
8700
8700
|
$73f0a7e385687d5d$var$styling_inserted = true;
|
|
8701
8701
|
}
|
|
8702
8702
|
const main_image = $c987460cedc0d7ec$export$788756b42446dc2d({
|
package/latest/index.cjs
CHANGED
|
@@ -272,7 +272,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
272
272
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
273
273
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
274
274
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
275
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.1.
|
|
275
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.1.4";
|
|
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]";
|
|
@@ -4909,8 +4909,8 @@ $52d3be7ce5146924$export$2e2bcd8739ae039 = async options => {
|
|
|
4909
4909
|
};
|
|
4910
4910
|
|
|
4911
4911
|
// @ts-ignore
|
|
4912
|
-
var $
|
|
4913
|
-
$
|
|
4912
|
+
var $1286e6ce2079bdeb$exports = {};
|
|
4913
|
+
$1286e6ce2079bdeb$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";
|
|
4914
4914
|
const $e090b20cef3f0516$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
4915
4915
|
class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$export$68babfc5be0de5da) {
|
|
4916
4916
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -4941,7 +4941,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
|
|
|
4941
4941
|
function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
|
|
4942
4942
|
const style_elem = document.createElement("style");
|
|
4943
4943
|
style_elem.type = "text/css";
|
|
4944
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
4944
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($1286e6ce2079bdeb$exports)));
|
|
4945
4945
|
slider.container.appendChild(style_elem);
|
|
4946
4946
|
}
|
|
4947
4947
|
async function $7af744346f17bf99$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5599,8 +5599,8 @@ async function $a7315720bf2a1638$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5599
5599
|
}
|
|
5600
5600
|
|
|
5601
5601
|
// @ts-ignore
|
|
5602
|
-
var $
|
|
5603
|
-
$
|
|
5602
|
+
var $b666601c05dee9b7$exports = {};
|
|
5603
|
+
$b666601c05dee9b7$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";
|
|
5604
5604
|
let $79804e8d76404ae4$var$slider_styling_was_inserted = false;
|
|
5605
5605
|
async function $79804e8d76404ae4$export$82cfdc85a4d15688(t, recommendation_renderer_options, {
|
|
5606
5606
|
container_elements: container_elements,
|
|
@@ -5623,7 +5623,7 @@ async function $79804e8d76404ae4$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5623
5623
|
if (!elements) return rendering_result;
|
|
5624
5624
|
if (!$79804e8d76404ae4$var$slider_styling_was_inserted) {
|
|
5625
5625
|
$79804e8d76404ae4$var$slider_styling_was_inserted = true;
|
|
5626
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5626
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($b666601c05dee9b7$exports)));
|
|
5627
5627
|
}
|
|
5628
5628
|
insertion_point.replaceWith(slider.container);
|
|
5629
5629
|
slider.insert_here.append(...elements);
|
|
@@ -7693,8 +7693,8 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
7693
7693
|
}));
|
|
7694
7694
|
}
|
|
7695
7695
|
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
7696
|
-
var $
|
|
7697
|
-
$
|
|
7696
|
+
var $adc99c8c4278ad03$exports = {};
|
|
7697
|
+
$adc99c8c4278ad03$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";
|
|
7698
7698
|
var $e587cb3b31b82f43$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
|
|
7699
7699
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
7700
7700
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
@@ -7706,7 +7706,7 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
7706
7706
|
}) => {
|
|
7707
7707
|
if (!$e587cb3b31b82f43$var$inserted) {
|
|
7708
7708
|
// Insert styling on first import
|
|
7709
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7709
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($adc99c8c4278ad03$exports)));
|
|
7710
7710
|
$e587cb3b31b82f43$var$inserted = true;
|
|
7711
7711
|
}
|
|
7712
7712
|
return (() => {
|
|
@@ -7933,8 +7933,8 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
7933
7933
|
collapse: collapse
|
|
7934
7934
|
};
|
|
7935
7935
|
};
|
|
7936
|
-
var $
|
|
7937
|
-
$
|
|
7936
|
+
var $9b2faeca6842dc4b$exports = {};
|
|
7937
|
+
$9b2faeca6842dc4b$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";
|
|
7938
7938
|
var $ff973b2032639b5f$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img>`),
|
|
7939
7939
|
$ff973b2032639b5f$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<source sizes=0px>`),
|
|
7940
7940
|
$ff973b2032639b5f$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<picture>`);
|
|
@@ -8104,7 +8104,7 @@ const $a312bccd722ac9e4$export$788756b42446dc2d = ({
|
|
|
8104
8104
|
}) => {
|
|
8105
8105
|
if (!$a312bccd722ac9e4$var$inserted) {
|
|
8106
8106
|
// Insert styling on first import
|
|
8107
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8107
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($9b2faeca6842dc4b$exports)));
|
|
8108
8108
|
$a312bccd722ac9e4$var$inserted = true;
|
|
8109
8109
|
}
|
|
8110
8110
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
|
|
@@ -8188,8 +8188,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
8188
8188
|
}
|
|
8189
8189
|
return sourceset_component;
|
|
8190
8190
|
}
|
|
8191
|
-
var $
|
|
8192
|
-
$
|
|
8191
|
+
var $da6327fdb5e3fda6$exports = {};
|
|
8192
|
+
$da6327fdb5e3fda6$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";
|
|
8193
8193
|
var $a656daa2fa8c279a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
8194
8194
|
$a656daa2fa8c279a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=second-image-container>`);
|
|
8195
8195
|
// Saving bytez
|
|
@@ -8318,7 +8318,7 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
8318
8318
|
...options
|
|
8319
8319
|
}) => {
|
|
8320
8320
|
if (!$a656daa2fa8c279a$var$styling_inserted) {
|
|
8321
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8321
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($da6327fdb5e3fda6$exports)));
|
|
8322
8322
|
$a656daa2fa8c279a$var$styling_inserted = true;
|
|
8323
8323
|
}
|
|
8324
8324
|
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.1.
|
|
2
|
+
export const version = "2.1.4";
|
|
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]`.
|
|
@@ -1107,10 +1107,6 @@ interface ModernDisplay {
|
|
|
1107
1107
|
* All variant displays (eg. different colors, sizes) of the product.
|
|
1108
1108
|
*/
|
|
1109
1109
|
variant_displays: any[];
|
|
1110
|
-
/** SKUs of the different variants */
|
|
1111
|
-
variant_skus: string[];
|
|
1112
|
-
/** Product of the different variants */
|
|
1113
|
-
variant_product_ids: string[];
|
|
1114
1110
|
/** Unique recommendation result ID used by Depict */
|
|
1115
1111
|
recommendation_id?: string;
|
|
1116
1112
|
/** Unique search result ID used by Depict */
|
package/latest/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
13
13
|
function $parcel$interopDefault(a) {
|
|
14
14
|
return a && a.__esModule ? a.default : a;
|
|
15
15
|
}
|
|
16
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.1.
|
|
16
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.1.4";
|
|
17
17
|
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"))();
|
|
18
18
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
19
19
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -4650,8 +4650,8 @@ $51bbc74e39f5e5c6$export$2e2bcd8739ae039 = async options => {
|
|
|
4650
4650
|
};
|
|
4651
4651
|
|
|
4652
4652
|
// @ts-ignore
|
|
4653
|
-
var $
|
|
4654
|
-
$
|
|
4653
|
+
var $a1c62fc52d40cabb$exports = {};
|
|
4654
|
+
$a1c62fc52d40cabb$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";
|
|
4655
4655
|
const $762a881271a51d1b$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
4656
4656
|
class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$export$68babfc5be0de5da) {
|
|
4657
4657
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -4682,7 +4682,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
4682
4682
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
4683
4683
|
const style_elem = document.createElement("style");
|
|
4684
4684
|
style_elem.type = "text/css";
|
|
4685
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
4685
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($a1c62fc52d40cabb$exports)));
|
|
4686
4686
|
slider.container.appendChild(style_elem);
|
|
4687
4687
|
}
|
|
4688
4688
|
async function $e61f371a9bcdeb2f$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5340,8 +5340,8 @@ async function $090b8182afa1b2a6$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5340
5340
|
}
|
|
5341
5341
|
|
|
5342
5342
|
// @ts-ignore
|
|
5343
|
-
var $
|
|
5344
|
-
$
|
|
5343
|
+
var $a263a1eebfe78087$exports = {};
|
|
5344
|
+
$a263a1eebfe78087$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";
|
|
5345
5345
|
let $30f78542ed78cd31$var$slider_styling_was_inserted = false;
|
|
5346
5346
|
async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_renderer_options, {
|
|
5347
5347
|
container_elements: container_elements,
|
|
@@ -5364,7 +5364,7 @@ async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5364
5364
|
if (!elements) return rendering_result;
|
|
5365
5365
|
if (!$30f78542ed78cd31$var$slider_styling_was_inserted) {
|
|
5366
5366
|
$30f78542ed78cd31$var$slider_styling_was_inserted = true;
|
|
5367
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5367
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a263a1eebfe78087$exports)));
|
|
5368
5368
|
}
|
|
5369
5369
|
insertion_point.replaceWith(slider.container);
|
|
5370
5370
|
slider.insert_here.append(...elements);
|
|
@@ -7434,8 +7434,8 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7434
7434
|
}));
|
|
7435
7435
|
}
|
|
7436
7436
|
$qgKv4$delegateEvents(["click"]);
|
|
7437
|
-
var $
|
|
7438
|
-
$
|
|
7437
|
+
var $97e49e6362cc0f5e$exports = {};
|
|
7438
|
+
$97e49e6362cc0f5e$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";
|
|
7439
7439
|
var $ad592d9ddbcffe72$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div>`);
|
|
7440
7440
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
7441
7441
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
@@ -7447,7 +7447,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
7447
7447
|
}) => {
|
|
7448
7448
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
7449
7449
|
// Insert styling on first import
|
|
7450
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7450
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($97e49e6362cc0f5e$exports)));
|
|
7451
7451
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
7452
7452
|
}
|
|
7453
7453
|
return (() => {
|
|
@@ -7674,8 +7674,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
7674
7674
|
collapse: collapse
|
|
7675
7675
|
};
|
|
7676
7676
|
};
|
|
7677
|
-
var $
|
|
7678
|
-
$
|
|
7677
|
+
var $8dc995f9c379e0e7$exports = {};
|
|
7678
|
+
$8dc995f9c379e0e7$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";
|
|
7679
7679
|
var $45af9e834781a9bc$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<img>`),
|
|
7680
7680
|
$45af9e834781a9bc$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<source sizes=0px>`),
|
|
7681
7681
|
$45af9e834781a9bc$var$_tmpl$3 = /*#__PURE__*/$qgKv4$template(`<picture>`);
|
|
@@ -7845,7 +7845,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({
|
|
|
7845
7845
|
}) => {
|
|
7846
7846
|
if (!$914971fb43986a16$var$inserted) {
|
|
7847
7847
|
// Insert styling on first import
|
|
7848
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7848
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($8dc995f9c379e0e7$exports)));
|
|
7849
7849
|
$914971fb43986a16$var$inserted = true;
|
|
7850
7850
|
}
|
|
7851
7851
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -7929,8 +7929,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
7929
7929
|
}
|
|
7930
7930
|
return sourceset_component;
|
|
7931
7931
|
}
|
|
7932
|
-
var $
|
|
7933
|
-
$
|
|
7932
|
+
var $534c383471d24ff6$exports = {};
|
|
7933
|
+
$534c383471d24ff6$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";
|
|
7934
7934
|
var $8483d1d9fcee52ec$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
7935
7935
|
$8483d1d9fcee52ec$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div class=second-image-container>`);
|
|
7936
7936
|
// Saving bytez
|
|
@@ -8059,7 +8059,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
8059
8059
|
...options
|
|
8060
8060
|
}) => {
|
|
8061
8061
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
8062
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8062
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($534c383471d24ff6$exports)));
|
|
8063
8063
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
8064
8064
|
}
|
|
8065
8065
|
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.1.
|
|
3
|
+
"version": "2.1.4",
|
|
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.1.
|
|
142
|
+
"@depict-ai/types": "^5.1.4",
|
|
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
|
@@ -275,7 +275,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
275
275
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
276
276
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
277
277
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
278
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.1.
|
|
278
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.1.4";
|
|
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]";
|
|
@@ -5401,8 +5401,8 @@ $ebe64dbcfb106f16$export$2e2bcd8739ae039 = async options => {
|
|
|
5401
5401
|
};
|
|
5402
5402
|
|
|
5403
5403
|
// @ts-ignore
|
|
5404
|
-
var $
|
|
5405
|
-
$
|
|
5404
|
+
var $22c667835a3196a9$exports = {};
|
|
5405
|
+
$22c667835a3196a9$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";
|
|
5406
5406
|
const $3f49f9b73bfc2a38$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
5407
5407
|
class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$export$68babfc5be0de5da) {
|
|
5408
5408
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -5434,7 +5434,7 @@ class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$ex
|
|
|
5434
5434
|
function $3f49f9b73bfc2a38$export$f1b8b9fd75ddcab1(slider) {
|
|
5435
5435
|
const style_elem = document.createElement("style");
|
|
5436
5436
|
style_elem.type = "text/css";
|
|
5437
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5437
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($22c667835a3196a9$exports)));
|
|
5438
5438
|
slider.container.appendChild(style_elem);
|
|
5439
5439
|
}
|
|
5440
5440
|
async function $bbf8331c74194de9$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -6103,8 +6103,8 @@ async function $79e67f88d50f1879$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
6103
6103
|
}
|
|
6104
6104
|
|
|
6105
6105
|
// @ts-ignore
|
|
6106
|
-
var $
|
|
6107
|
-
$
|
|
6106
|
+
var $a395aeaeccd7ae3d$exports = {};
|
|
6107
|
+
$a395aeaeccd7ae3d$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";
|
|
6108
6108
|
let $87dd73b8c244f3d2$var$slider_styling_was_inserted = false;
|
|
6109
6109
|
async function $87dd73b8c244f3d2$export$82cfdc85a4d15688(t, recommendation_renderer_options, _ref) {
|
|
6110
6110
|
let {
|
|
@@ -6128,7 +6128,7 @@ async function $87dd73b8c244f3d2$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
6128
6128
|
if (!elements) return rendering_result;
|
|
6129
6129
|
if (!$87dd73b8c244f3d2$var$slider_styling_was_inserted) {
|
|
6130
6130
|
$87dd73b8c244f3d2$var$slider_styling_was_inserted = true;
|
|
6131
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6131
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a395aeaeccd7ae3d$exports)));
|
|
6132
6132
|
}
|
|
6133
6133
|
insertion_point.replaceWith(slider.container);
|
|
6134
6134
|
slider.insert_here.append(...elements);
|
|
@@ -8221,8 +8221,8 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
8221
8221
|
on_close_(exit_oos_iterator);
|
|
8222
8222
|
}));
|
|
8223
8223
|
}
|
|
8224
|
-
var $
|
|
8225
|
-
$
|
|
8224
|
+
var $46b697935d651c75$exports = {};
|
|
8225
|
+
$46b697935d651c75$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
8226
|
let $ba9b4cd7e24de87e$var$inserted = false;
|
|
8227
8227
|
const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
8228
8228
|
let {
|
|
@@ -8234,7 +8234,7 @@ const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
|
8234
8234
|
} = _ref;
|
|
8235
8235
|
if (!$ba9b4cd7e24de87e$var$inserted) {
|
|
8236
8236
|
// Insert styling on first import
|
|
8237
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8237
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($46b697935d651c75$exports)));
|
|
8238
8238
|
$ba9b4cd7e24de87e$var$inserted = true;
|
|
8239
8239
|
}
|
|
8240
8240
|
return $lMD39$solidjsweb.ssrElement("div", $lMD39$solidjsweb.mergeProps({
|
|
@@ -8430,8 +8430,8 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
8430
8430
|
collapse: collapse
|
|
8431
8431
|
};
|
|
8432
8432
|
};
|
|
8433
|
-
var $
|
|
8434
|
-
$
|
|
8433
|
+
var $40bc83c42fbfc3cd$exports = {};
|
|
8434
|
+
$40bc83c42fbfc3cd$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";
|
|
8435
8435
|
var $b42b9f62e8b6cb2d$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
8436
8436
|
const $b42b9f62e8b6cb2d$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
8437
8437
|
const $b42b9f62e8b6cb2d$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -8589,7 +8589,7 @@ const $dfce76a4aeb41067$export$788756b42446dc2d = _ref => {
|
|
|
8589
8589
|
} = _ref;
|
|
8590
8590
|
if (!$dfce76a4aeb41067$var$inserted) {
|
|
8591
8591
|
// Insert styling on first import
|
|
8592
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8592
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($40bc83c42fbfc3cd$exports)));
|
|
8593
8593
|
$dfce76a4aeb41067$var$inserted = true;
|
|
8594
8594
|
}
|
|
8595
8595
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $dfce76a4aeb41067$var$Image(options) : $dfce76a4aeb41067$var$CompatibleImage(options);
|
|
@@ -8664,8 +8664,8 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
8664
8664
|
}
|
|
8665
8665
|
return sourceset_component;
|
|
8666
8666
|
}
|
|
8667
|
-
var $
|
|
8668
|
-
$
|
|
8667
|
+
var $f90bbaa8a24d72ca$exports = {};
|
|
8668
|
+
$f90bbaa8a24d72ca$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";
|
|
8669
8669
|
var $8928a1027461fba4$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
8670
8670
|
$8928a1027461fba4$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
8671
8671
|
// Saving bytez
|
|
@@ -8800,7 +8800,7 @@ const $8928a1027461fba4$export$2369f6fc1c911576 = _ref => {
|
|
|
8800
8800
|
...options
|
|
8801
8801
|
} = _ref;
|
|
8802
8802
|
if (!$8928a1027461fba4$var$styling_inserted) {
|
|
8803
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8803
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($f90bbaa8a24d72ca$exports)));
|
|
8804
8804
|
$8928a1027461fba4$var$styling_inserted = true;
|
|
8805
8805
|
}
|
|
8806
8806
|
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.1.
|
|
2
|
+
export const version = "2.1.4";
|
|
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]`.
|
|
@@ -1107,10 +1107,6 @@ interface ModernDisplay {
|
|
|
1107
1107
|
* All variant displays (eg. different colors, sizes) of the product.
|
|
1108
1108
|
*/
|
|
1109
1109
|
variant_displays: any[];
|
|
1110
|
-
/** SKUs of the different variants */
|
|
1111
|
-
variant_skus: string[];
|
|
1112
|
-
/** Product of the different variants */
|
|
1113
|
-
variant_product_ids: string[];
|
|
1114
1110
|
/** Unique recommendation result ID used by Depict */
|
|
1115
1111
|
recommendation_id?: string;
|
|
1116
1112
|
/** Unique search result ID used by Depict */
|
package/server/ES10/index.js
CHANGED
|
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
16
16
|
function $parcel$interopDefault(a) {
|
|
17
17
|
return a && a.__esModule ? a.default : a;
|
|
18
18
|
}
|
|
19
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.1.
|
|
19
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.1.4";
|
|
20
20
|
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"))();
|
|
21
21
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
22
22
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -5142,8 +5142,8 @@ $48b0f027b215b8ad$export$2e2bcd8739ae039 = async options => {
|
|
|
5142
5142
|
};
|
|
5143
5143
|
|
|
5144
5144
|
// @ts-ignore
|
|
5145
|
-
var $
|
|
5146
|
-
$
|
|
5145
|
+
var $bb2bb8f189a68651$exports = {};
|
|
5146
|
+
$bb2bb8f189a68651$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";
|
|
5147
5147
|
const $0342f59060b8a196$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
5148
5148
|
class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$export$68babfc5be0de5da) {
|
|
5149
5149
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -5175,7 +5175,7 @@ class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$ex
|
|
|
5175
5175
|
function $0342f59060b8a196$export$f1b8b9fd75ddcab1(slider) {
|
|
5176
5176
|
const style_elem = document.createElement("style");
|
|
5177
5177
|
style_elem.type = "text/css";
|
|
5178
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5178
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($bb2bb8f189a68651$exports)));
|
|
5179
5179
|
slider.container.appendChild(style_elem);
|
|
5180
5180
|
}
|
|
5181
5181
|
async function $b7b39b38d6e695e9$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5844,8 +5844,8 @@ async function $297a08bac2d81fab$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5844
5844
|
}
|
|
5845
5845
|
|
|
5846
5846
|
// @ts-ignore
|
|
5847
|
-
var $
|
|
5848
|
-
$
|
|
5847
|
+
var $9aec7f71245b3f70$exports = {};
|
|
5848
|
+
$9aec7f71245b3f70$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";
|
|
5849
5849
|
let $d89e3aaeb9270095$var$slider_styling_was_inserted = false;
|
|
5850
5850
|
async function $d89e3aaeb9270095$export$82cfdc85a4d15688(t, recommendation_renderer_options, _ref) {
|
|
5851
5851
|
let {
|
|
@@ -5869,7 +5869,7 @@ async function $d89e3aaeb9270095$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5869
5869
|
if (!elements) return rendering_result;
|
|
5870
5870
|
if (!$d89e3aaeb9270095$var$slider_styling_was_inserted) {
|
|
5871
5871
|
$d89e3aaeb9270095$var$slider_styling_was_inserted = true;
|
|
5872
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5872
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($9aec7f71245b3f70$exports)));
|
|
5873
5873
|
}
|
|
5874
5874
|
insertion_point.replaceWith(slider.container);
|
|
5875
5875
|
slider.insert_here.append(...elements);
|
|
@@ -7962,8 +7962,8 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
7962
7962
|
on_close_(exit_oos_iterator);
|
|
7963
7963
|
}));
|
|
7964
7964
|
}
|
|
7965
|
-
var $
|
|
7966
|
-
$
|
|
7965
|
+
var $5304b1a97f5cc360$exports = {};
|
|
7966
|
+
$5304b1a97f5cc360$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";
|
|
7967
7967
|
let $adc0bb548fdb574f$var$inserted = false;
|
|
7968
7968
|
const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
7969
7969
|
let {
|
|
@@ -7975,7 +7975,7 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
|
7975
7975
|
} = _ref;
|
|
7976
7976
|
if (!$adc0bb548fdb574f$var$inserted) {
|
|
7977
7977
|
// Insert styling on first import
|
|
7978
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7978
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5304b1a97f5cc360$exports)));
|
|
7979
7979
|
$adc0bb548fdb574f$var$inserted = true;
|
|
7980
7980
|
}
|
|
7981
7981
|
return $hrhbO$ssrElement("div", $hrhbO$mergeProps({
|
|
@@ -8171,8 +8171,8 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
8171
8171
|
collapse: collapse
|
|
8172
8172
|
};
|
|
8173
8173
|
};
|
|
8174
|
-
var $
|
|
8175
|
-
$
|
|
8174
|
+
var $3acba1df0fdbf811$exports = {};
|
|
8175
|
+
$3acba1df0fdbf811$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";
|
|
8176
8176
|
var $9ef5ce4804a3b61b$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
8177
8177
|
const $9ef5ce4804a3b61b$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
8178
8178
|
const $9ef5ce4804a3b61b$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -8330,7 +8330,7 @@ const $c987460cedc0d7ec$export$788756b42446dc2d = _ref => {
|
|
|
8330
8330
|
} = _ref;
|
|
8331
8331
|
if (!$c987460cedc0d7ec$var$inserted) {
|
|
8332
8332
|
// Insert styling on first import
|
|
8333
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8333
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($3acba1df0fdbf811$exports)));
|
|
8334
8334
|
$c987460cedc0d7ec$var$inserted = true;
|
|
8335
8335
|
}
|
|
8336
8336
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $c987460cedc0d7ec$var$Image(options) : $c987460cedc0d7ec$var$CompatibleImage(options);
|
|
@@ -8405,8 +8405,8 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
8405
8405
|
}
|
|
8406
8406
|
return sourceset_component;
|
|
8407
8407
|
}
|
|
8408
|
-
var $
|
|
8409
|
-
$
|
|
8408
|
+
var $2dbcf35ce5cd16e6$exports = {};
|
|
8409
|
+
$2dbcf35ce5cd16e6$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";
|
|
8410
8410
|
var $73f0a7e385687d5d$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
8411
8411
|
$73f0a7e385687d5d$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
8412
8412
|
// Saving bytez
|
|
@@ -8541,7 +8541,7 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
|
|
|
8541
8541
|
...options
|
|
8542
8542
|
} = _ref;
|
|
8543
8543
|
if (!$73f0a7e385687d5d$var$styling_inserted) {
|
|
8544
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8544
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($2dbcf35ce5cd16e6$exports)));
|
|
8545
8545
|
$73f0a7e385687d5d$var$styling_inserted = true;
|
|
8546
8546
|
}
|
|
8547
8547
|
const main_image = $c987460cedc0d7ec$export$788756b42446dc2d({
|
package/server/latest/index.cjs
CHANGED
|
@@ -272,7 +272,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
272
272
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
273
273
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
274
274
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
275
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.1.
|
|
275
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.1.4";
|
|
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]";
|
|
@@ -4909,8 +4909,8 @@ $52d3be7ce5146924$export$2e2bcd8739ae039 = async options => {
|
|
|
4909
4909
|
};
|
|
4910
4910
|
|
|
4911
4911
|
// @ts-ignore
|
|
4912
|
-
var $
|
|
4913
|
-
$
|
|
4912
|
+
var $1286e6ce2079bdeb$exports = {};
|
|
4913
|
+
$1286e6ce2079bdeb$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";
|
|
4914
4914
|
const $e090b20cef3f0516$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
4915
4915
|
class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$export$68babfc5be0de5da) {
|
|
4916
4916
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -4941,7 +4941,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
|
|
|
4941
4941
|
function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
|
|
4942
4942
|
const style_elem = document.createElement("style");
|
|
4943
4943
|
style_elem.type = "text/css";
|
|
4944
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
4944
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($1286e6ce2079bdeb$exports)));
|
|
4945
4945
|
slider.container.appendChild(style_elem);
|
|
4946
4946
|
}
|
|
4947
4947
|
async function $7af744346f17bf99$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5590,8 +5590,8 @@ async function $a7315720bf2a1638$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5590
5590
|
}
|
|
5591
5591
|
|
|
5592
5592
|
// @ts-ignore
|
|
5593
|
-
var $
|
|
5594
|
-
$
|
|
5593
|
+
var $b666601c05dee9b7$exports = {};
|
|
5594
|
+
$b666601c05dee9b7$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";
|
|
5595
5595
|
let $79804e8d76404ae4$var$slider_styling_was_inserted = false;
|
|
5596
5596
|
async function $79804e8d76404ae4$export$82cfdc85a4d15688(t, recommendation_renderer_options, {
|
|
5597
5597
|
container_elements: container_elements,
|
|
@@ -5614,7 +5614,7 @@ async function $79804e8d76404ae4$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5614
5614
|
if (!elements) return rendering_result;
|
|
5615
5615
|
if (!$79804e8d76404ae4$var$slider_styling_was_inserted) {
|
|
5616
5616
|
$79804e8d76404ae4$var$slider_styling_was_inserted = true;
|
|
5617
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5617
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($b666601c05dee9b7$exports)));
|
|
5618
5618
|
}
|
|
5619
5619
|
insertion_point.replaceWith(slider.container);
|
|
5620
5620
|
slider.insert_here.append(...elements);
|
|
@@ -7622,8 +7622,8 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
7622
7622
|
on_close_(exit_oos_iterator);
|
|
7623
7623
|
}));
|
|
7624
7624
|
}
|
|
7625
|
-
var $
|
|
7626
|
-
$
|
|
7625
|
+
var $adc99c8c4278ad03$exports = {};
|
|
7626
|
+
$adc99c8c4278ad03$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";
|
|
7627
7627
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
7628
7628
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
7629
7629
|
width: width,
|
|
@@ -7634,7 +7634,7 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
7634
7634
|
}) => {
|
|
7635
7635
|
if (!$e587cb3b31b82f43$var$inserted) {
|
|
7636
7636
|
// Insert styling on first import
|
|
7637
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7637
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($adc99c8c4278ad03$exports)));
|
|
7638
7638
|
$e587cb3b31b82f43$var$inserted = true;
|
|
7639
7639
|
}
|
|
7640
7640
|
return $jVDDb$solidjsweb.ssrElement("div", $jVDDb$solidjsweb.mergeProps({
|
|
@@ -7813,8 +7813,8 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
7813
7813
|
collapse: collapse
|
|
7814
7814
|
};
|
|
7815
7815
|
};
|
|
7816
|
-
var $
|
|
7817
|
-
$
|
|
7816
|
+
var $9b2faeca6842dc4b$exports = {};
|
|
7817
|
+
$9b2faeca6842dc4b$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";
|
|
7818
7818
|
var $ff973b2032639b5f$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
7819
7819
|
const $ff973b2032639b5f$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
7820
7820
|
const $ff973b2032639b5f$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -7965,7 +7965,7 @@ const $a312bccd722ac9e4$export$788756b42446dc2d = ({
|
|
|
7965
7965
|
}) => {
|
|
7966
7966
|
if (!$a312bccd722ac9e4$var$inserted) {
|
|
7967
7967
|
// Insert styling on first import
|
|
7968
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7968
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($9b2faeca6842dc4b$exports)));
|
|
7969
7969
|
$a312bccd722ac9e4$var$inserted = true;
|
|
7970
7970
|
}
|
|
7971
7971
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
|
|
@@ -8033,8 +8033,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
8033
8033
|
}
|
|
8034
8034
|
return sourceset_component;
|
|
8035
8035
|
}
|
|
8036
|
-
var $
|
|
8037
|
-
$
|
|
8036
|
+
var $da6327fdb5e3fda6$exports = {};
|
|
8037
|
+
$da6327fdb5e3fda6$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";
|
|
8038
8038
|
var $a656daa2fa8c279a$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
8039
8039
|
$a656daa2fa8c279a$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
8040
8040
|
// Saving bytez
|
|
@@ -8163,7 +8163,7 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
8163
8163
|
...options
|
|
8164
8164
|
}) => {
|
|
8165
8165
|
if (!$a656daa2fa8c279a$var$styling_inserted) {
|
|
8166
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
8166
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($da6327fdb5e3fda6$exports)));
|
|
8167
8167
|
$a656daa2fa8c279a$var$styling_inserted = true;
|
|
8168
8168
|
}
|
|
8169
8169
|
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.1.
|
|
2
|
+
export const version = "2.1.4";
|
|
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]`.
|
|
@@ -1107,10 +1107,6 @@ interface ModernDisplay {
|
|
|
1107
1107
|
* All variant displays (eg. different colors, sizes) of the product.
|
|
1108
1108
|
*/
|
|
1109
1109
|
variant_displays: any[];
|
|
1110
|
-
/** SKUs of the different variants */
|
|
1111
|
-
variant_skus: string[];
|
|
1112
|
-
/** Product of the different variants */
|
|
1113
|
-
variant_product_ids: string[];
|
|
1114
1110
|
/** Unique recommendation result ID used by Depict */
|
|
1115
1111
|
recommendation_id?: string;
|
|
1116
1112
|
/** Unique search result ID used by Depict */
|
package/server/latest/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
13
13
|
function $parcel$interopDefault(a) {
|
|
14
14
|
return a && a.__esModule ? a.default : a;
|
|
15
15
|
}
|
|
16
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.1.
|
|
16
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.1.4";
|
|
17
17
|
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"))();
|
|
18
18
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
19
19
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -4650,8 +4650,8 @@ $51bbc74e39f5e5c6$export$2e2bcd8739ae039 = async options => {
|
|
|
4650
4650
|
};
|
|
4651
4651
|
|
|
4652
4652
|
// @ts-ignore
|
|
4653
|
-
var $
|
|
4654
|
-
$
|
|
4653
|
+
var $a1c62fc52d40cabb$exports = {};
|
|
4654
|
+
$a1c62fc52d40cabb$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";
|
|
4655
4655
|
const $762a881271a51d1b$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
4656
4656
|
class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$export$68babfc5be0de5da) {
|
|
4657
4657
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -4682,7 +4682,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
4682
4682
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
4683
4683
|
const style_elem = document.createElement("style");
|
|
4684
4684
|
style_elem.type = "text/css";
|
|
4685
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
4685
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($a1c62fc52d40cabb$exports)));
|
|
4686
4686
|
slider.container.appendChild(style_elem);
|
|
4687
4687
|
}
|
|
4688
4688
|
async function $e61f371a9bcdeb2f$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -5331,8 +5331,8 @@ async function $090b8182afa1b2a6$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5331
5331
|
}
|
|
5332
5332
|
|
|
5333
5333
|
// @ts-ignore
|
|
5334
|
-
var $
|
|
5335
|
-
$
|
|
5334
|
+
var $a263a1eebfe78087$exports = {};
|
|
5335
|
+
$a263a1eebfe78087$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";
|
|
5336
5336
|
let $30f78542ed78cd31$var$slider_styling_was_inserted = false;
|
|
5337
5337
|
async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_renderer_options, {
|
|
5338
5338
|
container_elements: container_elements,
|
|
@@ -5355,7 +5355,7 @@ async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5355
5355
|
if (!elements) return rendering_result;
|
|
5356
5356
|
if (!$30f78542ed78cd31$var$slider_styling_was_inserted) {
|
|
5357
5357
|
$30f78542ed78cd31$var$slider_styling_was_inserted = true;
|
|
5358
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5358
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a263a1eebfe78087$exports)));
|
|
5359
5359
|
}
|
|
5360
5360
|
insertion_point.replaceWith(slider.container);
|
|
5361
5361
|
slider.insert_here.append(...elements);
|
|
@@ -7363,8 +7363,8 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7363
7363
|
on_close_(exit_oos_iterator);
|
|
7364
7364
|
}));
|
|
7365
7365
|
}
|
|
7366
|
-
var $
|
|
7367
|
-
$
|
|
7366
|
+
var $97e49e6362cc0f5e$exports = {};
|
|
7367
|
+
$97e49e6362cc0f5e$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";
|
|
7368
7368
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
7369
7369
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
7370
7370
|
width: width,
|
|
@@ -7375,7 +7375,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
7375
7375
|
}) => {
|
|
7376
7376
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
7377
7377
|
// Insert styling on first import
|
|
7378
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7378
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($97e49e6362cc0f5e$exports)));
|
|
7379
7379
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
7380
7380
|
}
|
|
7381
7381
|
return $f3g9l$ssrElement("div", $f3g9l$mergeProps({
|
|
@@ -7554,8 +7554,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
7554
7554
|
collapse: collapse
|
|
7555
7555
|
};
|
|
7556
7556
|
};
|
|
7557
|
-
var $
|
|
7558
|
-
$
|
|
7557
|
+
var $8dc995f9c379e0e7$exports = {};
|
|
7558
|
+
$8dc995f9c379e0e7$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";
|
|
7559
7559
|
var $45af9e834781a9bc$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
7560
7560
|
const $45af9e834781a9bc$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
7561
7561
|
const $45af9e834781a9bc$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -7706,7 +7706,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({
|
|
|
7706
7706
|
}) => {
|
|
7707
7707
|
if (!$914971fb43986a16$var$inserted) {
|
|
7708
7708
|
// Insert styling on first import
|
|
7709
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7709
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($8dc995f9c379e0e7$exports)));
|
|
7710
7710
|
$914971fb43986a16$var$inserted = true;
|
|
7711
7711
|
}
|
|
7712
7712
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -7774,8 +7774,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
7774
7774
|
}
|
|
7775
7775
|
return sourceset_component;
|
|
7776
7776
|
}
|
|
7777
|
-
var $
|
|
7778
|
-
$
|
|
7777
|
+
var $534c383471d24ff6$exports = {};
|
|
7778
|
+
$534c383471d24ff6$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";
|
|
7779
7779
|
var $8483d1d9fcee52ec$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
7780
7780
|
$8483d1d9fcee52ec$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
7781
7781
|
// Saving bytez
|
|
@@ -7904,7 +7904,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
7904
7904
|
...options
|
|
7905
7905
|
}) => {
|
|
7906
7906
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
7907
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7907
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($534c383471d24ff6$exports)));
|
|
7908
7908
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
7909
7909
|
}
|
|
7910
7910
|
const main_image = $914971fb43986a16$export$788756b42446dc2d({
|