@depict-ai/utilishared 2.0.2 → 2.0.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 +340 -302
- package/ES10/index.d.ts +15 -16
- package/ES10/index.js +340 -302
- package/latest/index.cjs +328 -298
- package/latest/index.d.ts +15 -16
- package/latest/index.js +328 -298
- package/package.json +66 -7
package/latest/index.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
var $z0IcO$solidjs = require("solid-js");
|
|
2
|
+
var $z0IcO$solidjsweb = require("solid-js/web");
|
|
2
3
|
require("../multi_import_deduplicator.cjs").register_es_version("utilishared", "latest");
|
|
3
4
|
function $parcel$exportWildcard(dest, source) {
|
|
4
5
|
Object.keys(source).forEach(function (key) {
|
|
@@ -270,7 +271,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
270
271
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
271
272
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
272
273
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
273
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.
|
|
274
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.4";
|
|
274
275
|
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"))();
|
|
275
276
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
276
277
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -3993,76 +3994,17 @@ function $1da560af170fb839$export$e4741190ccada479(element, selector) {
|
|
|
3993
3994
|
}
|
|
3994
3995
|
return result;
|
|
3995
3996
|
}
|
|
3996
|
-
const $
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
}
|
|
4001
|
-
const $90e0b983530610e7$export$22a65337c1b43b1f = /* @PURE */classes => classes.filter(c => c !== undefined).join(" ");
|
|
4002
|
-
const $107a74aa4ea5902d$var$appendChild = (parent, child) => {
|
|
4003
|
-
if (!child) return; // null, undefined, false, "", etc should not create nodes
|
|
4004
|
-
if (!(child instanceof Node || typeof child === "string") && typeof child[Symbol.iterator] === "function") {
|
|
4005
|
-
if (child.length !== undefined)
|
|
4006
|
-
// it's array-like enough to be iterated with a normal for loop (for-of is 20% of that speed)
|
|
4007
|
-
for (let i = 0; i < child.length; i++) $107a74aa4ea5902d$var$appendChild(parent, child[i]);else
|
|
4008
|
-
// fallback for things only implementing iterator interface
|
|
4009
|
-
for (const more_kids of child) $107a74aa4ea5902d$var$appendChild(parent, more_kids);
|
|
4010
|
-
return;
|
|
4011
|
-
}
|
|
4012
|
-
parent.append(child);
|
|
4013
|
-
};
|
|
4014
|
-
const $107a74aa4ea5902d$export$34b9dba7ce09269b = (tag, {
|
|
4015
|
-
children: children,
|
|
4016
|
-
...props
|
|
4017
|
-
}, _unknown) => {
|
|
4018
|
-
if (typeof tag === "function") return tag({
|
|
4019
|
-
children: children,
|
|
4020
|
-
...props
|
|
4021
|
-
}, _unknown);
|
|
4022
|
-
// For partial SVG support
|
|
4023
|
-
// Exhaustive list (I think) for these checks should be ["svg","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","switch","symbol","text","textPath","tspan","use","view"]
|
|
4024
|
-
const is_svg = props?.xmlns || tag == "defs" || tag == "filter" || tag == "fecolormatrix" || tag == "g" || tag == "circle" || tag == "circle" || tag == "svg" || tag == "path" || tag == "polygon";
|
|
4025
|
-
if (is_svg) var namespace = props?.xmlns || "http://www.w3.org/2000/svg";
|
|
4026
|
-
if (typeof document === "undefined") return {};
|
|
4027
|
-
const element = is_svg ? document.createElementNS(namespace, tag) : document.createElement(tag);
|
|
4028
|
-
for (const key in props) {
|
|
4029
|
-
const value = props[key];
|
|
4030
|
-
if (key === "onClick") element.addEventListener("click", $268cbd9e4ade92db$export$b3bbfd758f11cfa9(value));else if (key.startsWith("xlink:"))
|
|
4031
|
-
// https://stackoverflow.com/a/23142447
|
|
4032
|
-
// https://developer.mozilla.org/en-US/docs/Web/SVG/Namespaces_Crash_Course
|
|
4033
|
-
element.setAttributeNS("http://www.w3.org/1999/xlink", key, value);else if (key == "xmlns" || key.startsWith("xmlns:")) element.setAttributeNS("http://www.w3.org/2000/xmlns/", key, value);else if (key.startsWith("xml:")) element.setAttributeNS("http://www.w3.org/XML/1998/namespace", key, value);else element.setAttribute(key, props[key]);
|
|
4034
|
-
}
|
|
4035
|
-
$107a74aa4ea5902d$var$appendChild(element, children);
|
|
4036
|
-
return element;
|
|
4037
|
-
};
|
|
4038
|
-
const $107a74aa4ea5902d$export$25062201e9e25d76 = $107a74aa4ea5902d$export$34b9dba7ce09269b;
|
|
4039
|
-
const $107a74aa4ea5902d$export$ffb0004e005737fa = ({
|
|
4040
|
-
children: children
|
|
4041
|
-
}, _unknown) => {
|
|
4042
|
-
if (typeof document === "undefined") return {};
|
|
4043
|
-
const df = document.createDocumentFragment();
|
|
4044
|
-
$107a74aa4ea5902d$var$appendChild(df, children);
|
|
4045
|
-
return df;
|
|
4046
|
-
};
|
|
3997
|
+
const $1683d0164abd7c1d$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class="depict-slider depict">`),
|
|
3998
|
+
$1683d0164abd7c1d$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=sliding>`),
|
|
3999
|
+
$1683d0164abd7c1d$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
|
|
4000
|
+
$1683d0164abd7c1d$var$_tmpl$4 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`);
|
|
4047
4001
|
class $1683d0164abd7c1d$export$692b27c28639e5b9 {
|
|
4048
4002
|
// this is just here because it's often needed together with the slider
|
|
4049
|
-
container = $
|
|
4050
|
-
class: "depict-slider depict"
|
|
4051
|
-
});
|
|
4003
|
+
container = $z0IcO$solidjsweb.getNextElement($1683d0164abd7c1d$var$_tmpl$);
|
|
4052
4004
|
#elements = {
|
|
4053
|
-
sliding_el_: $
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
left_: $107a74aa4ea5902d$export$34b9dba7ce09269b("button", {
|
|
4057
|
-
"aria-label": "Scroll left",
|
|
4058
|
-
class: "left d-navbutton",
|
|
4059
|
-
type: "button"
|
|
4060
|
-
}),
|
|
4061
|
-
right_: $107a74aa4ea5902d$export$34b9dba7ce09269b("button", {
|
|
4062
|
-
"aria-label": "Scroll right",
|
|
4063
|
-
class: "right d-navbutton",
|
|
4064
|
-
type: "button"
|
|
4065
|
-
})
|
|
4005
|
+
sliding_el_: $z0IcO$solidjsweb.getNextElement($1683d0164abd7c1d$var$_tmpl$2),
|
|
4006
|
+
left_: $z0IcO$solidjsweb.getNextElement($1683d0164abd7c1d$var$_tmpl$3),
|
|
4007
|
+
right_: $z0IcO$solidjsweb.getNextElement($1683d0164abd7c1d$var$_tmpl$4)
|
|
4066
4008
|
};
|
|
4067
4009
|
insert_here = this.#elements.sliding_el_;
|
|
4068
4010
|
intersecting_items_object = {};
|
|
@@ -4747,6 +4689,7 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
|
4747
4689
|
}
|
|
4748
4690
|
trackGAEvent(action, index, product_id, ga_product_ids) {
|
|
4749
4691
|
if (this.settings.sendGa === false) return;
|
|
4692
|
+
// @ts-ignore
|
|
4750
4693
|
if (typeof ga !== "function") {
|
|
4751
4694
|
console.log("Could not send", action, "to GA. analytics.js not loaded.");
|
|
4752
4695
|
return;
|
|
@@ -4759,7 +4702,9 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
|
4759
4702
|
list_name: "depict_" + this.settings.type
|
|
4760
4703
|
});
|
|
4761
4704
|
}
|
|
4762
|
-
if (this.tracker === undefined)
|
|
4705
|
+
if (this.tracker === undefined)
|
|
4706
|
+
// @ts-ignore
|
|
4707
|
+
this.tracker = ga("create", this.settings.gaid, "auto", "depict");
|
|
4763
4708
|
$d3d8549954e0318e$export$f75172d2e289cd02(action);
|
|
4764
4709
|
}
|
|
4765
4710
|
trackPageView() {
|
|
@@ -5027,6 +4972,7 @@ async function $7af744346f17bf99$export$cd12721587f4f16d(t, rendering_options, o
|
|
|
5027
4972
|
elements: container ? container : [slider.container]
|
|
5028
4973
|
};
|
|
5029
4974
|
}
|
|
4975
|
+
const $66a2a93dfa520bc6$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button class=load_more>`);
|
|
5030
4976
|
async function $66a2a93dfa520bc6$export$30933c637c977eef({
|
|
5031
4977
|
t: t,
|
|
5032
4978
|
recs: recs,
|
|
@@ -5166,10 +5112,11 @@ function $66a2a93dfa520bc6$var$setup_load_more(t, root, chunk_size, view_more_te
|
|
|
5166
5112
|
catchify: catchify
|
|
5167
5113
|
} = t,
|
|
5168
5114
|
load_more_cont = $bf7f12fe044e41b2$export$d3e2a0560cbf4787(`<div class="load-more-container"></div>`),
|
|
5169
|
-
load_button = load_more_cont.appendChild(
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5115
|
+
load_button = load_more_cont.appendChild((() => {
|
|
5116
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($66a2a93dfa520bc6$var$_tmpl$);
|
|
5117
|
+
$z0IcO$solidjsweb.insert(_el$, view_more_text);
|
|
5118
|
+
return _el$;
|
|
5119
|
+
})());
|
|
5173
5120
|
load_button.addEventListener("click", catchify(load_more_recs_and_hide_button_if_needed));
|
|
5174
5121
|
root.after(load_more_cont);
|
|
5175
5122
|
load_more_recs_and_hide_button_if_needed();
|
|
@@ -5264,24 +5211,61 @@ async function $c413c7798924612a$var$send_sentry_422(response, body, stack) {
|
|
|
5264
5211
|
this.captureException(new Error(msg));
|
|
5265
5212
|
});
|
|
5266
5213
|
}
|
|
5267
|
-
const $
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
}
|
|
5214
|
+
const $90e0b983530610e7$export$eb0b9ed911409b57 = (callback, element) => ($268cbd9e4ade92db$export$b3bbfd758f11cfa9(callback)(element), element);
|
|
5215
|
+
function $90e0b983530610e7$export$f63fcc839cb0f734(event, handler, element) {
|
|
5216
|
+
element.addEventListener(event, $268cbd9e4ade92db$export$b3bbfd758f11cfa9(handler));
|
|
5217
|
+
return element;
|
|
5218
|
+
}
|
|
5219
|
+
const $90e0b983530610e7$export$22a65337c1b43b1f = /* @PURE */classes => classes.filter(c => c !== undefined).join(" ");
|
|
5220
|
+
const $107a74aa4ea5902d$var$appendChild = (parent, child) => {
|
|
5221
|
+
if (!child) return; // null, undefined, false, "", etc should not create nodes
|
|
5222
|
+
if (!(child instanceof Node || typeof child === "string") && typeof child[Symbol.iterator] === "function") {
|
|
5223
|
+
if (child.length !== undefined)
|
|
5224
|
+
// it's array-like enough to be iterated with a normal for loop (for-of is 20% of that speed)
|
|
5225
|
+
for (let i = 0; i < child.length; i++) $107a74aa4ea5902d$var$appendChild(parent, child[i]);else
|
|
5226
|
+
// fallback for things only implementing iterator interface
|
|
5227
|
+
for (const more_kids of child) $107a74aa4ea5902d$var$appendChild(parent, more_kids);
|
|
5228
|
+
return;
|
|
5229
|
+
}
|
|
5230
|
+
parent.append(child);
|
|
5231
|
+
};
|
|
5232
|
+
const $107a74aa4ea5902d$export$34b9dba7ce09269b = (tag, {
|
|
5233
|
+
children: children,
|
|
5234
|
+
...props
|
|
5235
|
+
}, _unknown) => {
|
|
5236
|
+
if (typeof tag === "function") return tag({
|
|
5237
|
+
children: children,
|
|
5238
|
+
...props
|
|
5239
|
+
}, _unknown);
|
|
5240
|
+
// For partial SVG support
|
|
5241
|
+
// Exhaustive list (I think) for these checks should be ["svg","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","switch","symbol","text","textPath","tspan","use","view"]
|
|
5242
|
+
const is_svg = props?.xmlns || tag == "defs" || tag == "filter" || tag == "fecolormatrix" || tag == "g" || tag == "circle" || tag == "circle" || tag == "svg" || tag == "path" || tag == "polygon";
|
|
5243
|
+
if (is_svg) var namespace = props?.xmlns || "http://www.w3.org/2000/svg";
|
|
5244
|
+
if (typeof document === "undefined") return {};
|
|
5245
|
+
const element = is_svg ? document.createElementNS(namespace, tag) : document.createElement(tag);
|
|
5246
|
+
for (const key in props) {
|
|
5247
|
+
const value = props[key];
|
|
5248
|
+
if (key === "onClick") element.addEventListener("click", $268cbd9e4ade92db$export$b3bbfd758f11cfa9(value));else if (key.startsWith("xlink:"))
|
|
5249
|
+
// https://stackoverflow.com/a/23142447
|
|
5250
|
+
// https://developer.mozilla.org/en-US/docs/Web/SVG/Namespaces_Crash_Course
|
|
5251
|
+
element.setAttributeNS("http://www.w3.org/1999/xlink", key, value);else if (key == "xmlns" || key.startsWith("xmlns:")) element.setAttributeNS("http://www.w3.org/2000/xmlns/", key, value);else if (key.startsWith("xml:")) element.setAttributeNS("http://www.w3.org/XML/1998/namespace", key, value);else element.setAttribute(key, props[key]);
|
|
5252
|
+
}
|
|
5253
|
+
$107a74aa4ea5902d$var$appendChild(element, children);
|
|
5254
|
+
return element;
|
|
5255
|
+
};
|
|
5256
|
+
const $107a74aa4ea5902d$export$25062201e9e25d76 = $107a74aa4ea5902d$export$34b9dba7ce09269b;
|
|
5257
|
+
const $107a74aa4ea5902d$export$ffb0004e005737fa = ({
|
|
5258
|
+
children: children
|
|
5259
|
+
}, _unknown) => {
|
|
5260
|
+
if (typeof document === "undefined") return {};
|
|
5261
|
+
const df = document.createDocumentFragment();
|
|
5262
|
+
$107a74aa4ea5902d$var$appendChild(df, children);
|
|
5263
|
+
return df;
|
|
5264
|
+
};
|
|
5265
|
+
const $c3af1bfb402a8820$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 320 512"><desc>Right arrow</desc><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z">`),
|
|
5266
|
+
$c3af1bfb402a8820$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 320 512"><desc>Left arrow</desc><path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z">`);
|
|
5267
|
+
const $c3af1bfb402a8820$export$dc84183312f0c201 = /*@__PURE__*/(() => $z0IcO$solidjsweb.getNextElement($c3af1bfb402a8820$var$_tmpl$))();
|
|
5268
|
+
const $c3af1bfb402a8820$export$6038895ac52bd044 = /*@__PURE__*/(() => $z0IcO$solidjsweb.getNextElement($c3af1bfb402a8820$var$_tmpl$2))();
|
|
5285
5269
|
const $febdc40c8da5c25e$export$68c017fd93791405 = ({
|
|
5286
5270
|
duration = 500
|
|
5287
5271
|
} = {
|
|
@@ -5317,6 +5301,8 @@ function $ef237c2bba47492f$export$f8913c8a18f7ca21(iterables) {
|
|
|
5317
5301
|
}))).then($268cbd9e4ade92db$export$b3bbfd758f11cfa9(ourselves.exit));
|
|
5318
5302
|
return ourselves;
|
|
5319
5303
|
}
|
|
5304
|
+
const $1cc2444a0f1b992e$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<style type=text/css>`),
|
|
5305
|
+
$1cc2444a0f1b992e$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
|
|
5320
5306
|
const $1cc2444a0f1b992e$export$717f13d9ba00ca19 = (min, max) => `@media ${min ? `(min-width:${min})` : ``}${min && max ? ` and ` : ``}${max ? `(max-width:${max})` : ``}`;
|
|
5321
5307
|
async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
|
|
5322
5308
|
rows: rows,
|
|
@@ -5337,9 +5323,7 @@ async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
|
|
|
5337
5323
|
ipns: ipns
|
|
5338
5324
|
} = rows_or_empty_object;
|
|
5339
5325
|
const is_static = !ipns && !button;
|
|
5340
|
-
const our_style_el = $
|
|
5341
|
-
type: "text/css"
|
|
5342
|
-
});
|
|
5326
|
+
const our_style_el = $z0IcO$solidjsweb.getNextElement($1cc2444a0f1b992e$var$_tmpl$);
|
|
5343
5327
|
const container_class = $650b64c1b384c895$export$a6db784f019668ba();
|
|
5344
5328
|
const selector_beginning = `.depict .${container_class}>`;
|
|
5345
5329
|
const el_count_ipns = $9a42a570de51ea3d$export$e806c6c1615a59ae();
|
|
@@ -5376,10 +5360,12 @@ async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
|
|
|
5376
5360
|
});
|
|
5377
5361
|
if (button) {
|
|
5378
5362
|
button_class = $650b64c1b384c895$export$a6db784f019668ba();
|
|
5379
|
-
const button_container =
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5363
|
+
const button_container = (() => {
|
|
5364
|
+
const _el$2 = $z0IcO$solidjsweb.getNextElement($1cc2444a0f1b992e$var$_tmpl$2);
|
|
5365
|
+
$z0IcO$solidjsweb.className(_el$2, "load-more-container " + button_class);
|
|
5366
|
+
$z0IcO$solidjsweb.insert(_el$2, () => $90e0b983530610e7$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button));
|
|
5367
|
+
return _el$2;
|
|
5368
|
+
})();
|
|
5383
5369
|
container_element.after(button_container);
|
|
5384
5370
|
}
|
|
5385
5371
|
(0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).oncreation(container_element, async () => {
|
|
@@ -5675,15 +5661,15 @@ function $a8a0385b88626561$export$80039a49055269fb() {
|
|
|
5675
5661
|
};
|
|
5676
5662
|
return Object.fromEntries(["left", "right"].map(side => [side, [new_arrowimage()]]));
|
|
5677
5663
|
}
|
|
5664
|
+
const $edc9fe0b09e00df6$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img src=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+>`);
|
|
5678
5665
|
function $edc9fe0b09e00df6$export$af88b4929c2dc86() {
|
|
5679
|
-
const img = $
|
|
5680
|
-
src: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+"
|
|
5681
|
-
});
|
|
5666
|
+
const img = $z0IcO$solidjsweb.getNextElement($edc9fe0b09e00df6$var$_tmpl$);
|
|
5682
5667
|
return {
|
|
5683
5668
|
left: [img],
|
|
5684
5669
|
right: [img.cloneNode()]
|
|
5685
5670
|
};
|
|
5686
5671
|
}
|
|
5672
|
+
const $158313c0231e6555$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<label class=checkbox_container><input type=radio><span class=checkmark>`);
|
|
5687
5673
|
function $158313c0231e6555$export$1d17a045bcc711b1({
|
|
5688
5674
|
t: t,
|
|
5689
5675
|
navcont_insertion_fn: navcont_insertion_fn,
|
|
@@ -5771,15 +5757,12 @@ function $158313c0231e6555$export$1d17a045bcc711b1({
|
|
|
5771
5757
|
};
|
|
5772
5758
|
}
|
|
5773
5759
|
function $158313c0231e6555$export$a09282b33e69b43f(unique_name) {
|
|
5774
|
-
return
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
class: "checkmark"
|
|
5781
|
-
})]
|
|
5782
|
-
});
|
|
5760
|
+
return (() => {
|
|
5761
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($158313c0231e6555$var$_tmpl$),
|
|
5762
|
+
_el$2 = _el$.firstChild;
|
|
5763
|
+
$z0IcO$solidjsweb.setAttribute(_el$2, "name", `radio-${unique_name}`);
|
|
5764
|
+
return _el$;
|
|
5765
|
+
})();
|
|
5783
5766
|
}
|
|
5784
5767
|
|
|
5785
5768
|
// // You need to do this on all elements you insert into the slider before you insert them:
|
|
@@ -5948,14 +5931,12 @@ function $91f7baba008bce7d$export$5723caf9a8335aa6(_t, fraction = 1, max_steps,
|
|
|
5948
5931
|
mutation_plugin: mutation_plugin
|
|
5949
5932
|
};
|
|
5950
5933
|
}
|
|
5934
|
+
const $1942530ef27e571b$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=depict_slider_scroll_bar>`),
|
|
5935
|
+
$1942530ef27e571b$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=depict_slider_scroll_container>`);
|
|
5951
5936
|
function $1942530ef27e571b$export$93223e488e7ee078(options) {
|
|
5952
5937
|
function constructor_plugin(_slider_options) {
|
|
5953
|
-
const scroll_bar = $
|
|
5954
|
-
|
|
5955
|
-
});
|
|
5956
|
-
const scroll_container = $107a74aa4ea5902d$export$34b9dba7ce09269b("div", {
|
|
5957
|
-
class: "depict_slider_scroll_container"
|
|
5958
|
-
});
|
|
5938
|
+
const scroll_bar = $z0IcO$solidjsweb.getNextElement($1942530ef27e571b$var$_tmpl$);
|
|
5939
|
+
const scroll_container = $z0IcO$solidjsweb.getNextElement($1942530ef27e571b$var$_tmpl$2);
|
|
5959
5940
|
if (options.scroll_bar_classes?.length) scroll_bar.classList.add(...options.scroll_bar_classes);
|
|
5960
5941
|
if (options.scroll_container_classes?.length) scroll_container.classList.add(...options.scroll_container_classes);
|
|
5961
5942
|
// Default styles always present
|
|
@@ -5982,6 +5963,7 @@ function $1942530ef27e571b$export$93223e488e7ee078(options) {
|
|
|
5982
5963
|
mutation_plugin: mutation_plugin
|
|
5983
5964
|
};
|
|
5984
5965
|
}
|
|
5966
|
+
const $6af20338fcad1911$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div style="position:absolute;width:1em;overflow:scroll;scroll-snap-type:x mandatory;"><div style=scroll-snap-align:start;color:transparent;>test`);
|
|
5985
5967
|
function $6af20338fcad1911$export$b36d2489a5a16728(_t, {
|
|
5986
5968
|
snapEvery: snapEvery,
|
|
5987
5969
|
align: align
|
|
@@ -6011,13 +5993,7 @@ function $6af20338fcad1911$export$b36d2489a5a16728(_t, {
|
|
|
6011
5993
|
}
|
|
6012
5994
|
async function $6af20338fcad1911$export$49b950309ab787ad() {
|
|
6013
5995
|
if ("scrollBehavior" in document.documentElement.style) return true;
|
|
6014
|
-
const test_div = $
|
|
6015
|
-
style: "position: absolute; width: 1em; overflow: scroll; scroll-snap-type: x mandatory;",
|
|
6016
|
-
children: $107a74aa4ea5902d$export$34b9dba7ce09269b("div", {
|
|
6017
|
-
style: "scroll-snap-align: start; color: transparent;",
|
|
6018
|
-
children: "test"
|
|
6019
|
-
})
|
|
6020
|
-
});
|
|
5996
|
+
const test_div = $z0IcO$solidjsweb.getNextElement($6af20338fcad1911$var$_tmpl$);
|
|
6021
5997
|
const body = await (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_element("body");
|
|
6022
5998
|
body.append(test_div);
|
|
6023
5999
|
test_div.scrollLeft = 1;
|
|
@@ -6564,9 +6540,11 @@ function $0c9d834f187cc4ff$export$1ac466d53a6636ac(t, input_id, session_id = $e0
|
|
|
6564
6540
|
function $5a44db2d2c8361b9$export$1ff14fec60ed5697(t, filter) {
|
|
6565
6541
|
try {
|
|
6566
6542
|
$c18ce8dadd041cdd$export$674d8cd8b6868154();
|
|
6543
|
+
// @ts-ignore
|
|
6567
6544
|
ga($268cbd9e4ade92db$export$b3bbfd758f11cfa9(async function (tracker) {
|
|
6568
6545
|
let get_all_function = window?.ga?.getAll; // https://sentry.io/organizations/depictai-0o/issues/3621911835/?project=5476183&referrer=slack
|
|
6569
6546
|
if (typeof get_all_function !== "function") get_all_function = await $e6d67ef355abb2dc$export$2fc1a072736ae2f6(window, "ga", "getAll");
|
|
6547
|
+
// @ts-ignore
|
|
6570
6548
|
const all_trackers = get_all_function.call(ga);
|
|
6571
6549
|
$e6c6e7929ea385ae$export$de56f1198d121036("we have trackers", all_trackers);
|
|
6572
6550
|
// @ts-ignore
|
|
@@ -6591,7 +6569,9 @@ function $5a44db2d2c8361b9$export$1ff14fec60ed5697(t, filter) {
|
|
|
6591
6569
|
$268cbd9e4ade92db$export$f18d5b0af29128b7(error, "error");
|
|
6592
6570
|
}
|
|
6593
6571
|
}
|
|
6594
|
-
function $5a44db2d2c8361b9$var$make_tracker_send_to_depict(
|
|
6572
|
+
function $5a44db2d2c8361b9$var$make_tracker_send_to_depict(
|
|
6573
|
+
// @ts-ignore
|
|
6574
|
+
ga_tracker, t, filter) {
|
|
6595
6575
|
// Docs for analytics.js Tasks:
|
|
6596
6576
|
// https://developers.google.com/analytics/devguides/collection/analyticsjs/tasks
|
|
6597
6577
|
const sendHitTask = "sendHitTask";
|
|
@@ -7513,18 +7493,26 @@ const $5185cc9bd668b8f9$var$get_voyado_id = () => {
|
|
|
7513
7493
|
const $5185cc9bd668b8f9$export$a739d9a07da7f9ce = /*@__PURE__*/$268cbd9e4ade92db$export$b3bbfd758f11cfa9(() => {
|
|
7514
7494
|
$e0a87646d12cb987$export$93ae15b1ae509334($5185cc9bd668b8f9$var$get_voyado_id);
|
|
7515
7495
|
});
|
|
7496
|
+
const $dba3e72fb3e5c53d$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button>`);
|
|
7516
7497
|
function $dba3e72fb3e5c53d$export$4a3043e508dd72f0({
|
|
7517
7498
|
children: children,
|
|
7518
7499
|
...attributes
|
|
7519
7500
|
}) {
|
|
7520
|
-
const button =
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7501
|
+
const button = (() => {
|
|
7502
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($dba3e72fb3e5c53d$var$_tmpl$);
|
|
7503
|
+
$z0IcO$solidjsweb.spread(_el$, $z0IcO$solidjsweb.mergeProps(attributes, {
|
|
7504
|
+
"type": "button"
|
|
7505
|
+
}), false, true);
|
|
7506
|
+
$z0IcO$solidjsweb.insert(_el$, children);
|
|
7507
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
7508
|
+
return _el$;
|
|
7509
|
+
})();
|
|
7525
7510
|
button.classList.add("show-more");
|
|
7526
7511
|
return button;
|
|
7527
7512
|
}
|
|
7513
|
+
const $a7550e9f97f84465$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=slidein-backdrop>`),
|
|
7514
|
+
$a7550e9f97f84465$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=slidein><div class=header><span class=title></span><button class=close></button></div><div class=body>`),
|
|
7515
|
+
$a7550e9f97f84465$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=depict><!$><!/><!$><!/>`);
|
|
7528
7516
|
async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
7529
7517
|
title_: title_,
|
|
7530
7518
|
children: children,
|
|
@@ -7534,33 +7522,37 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
|
7534
7522
|
let close_;
|
|
7535
7523
|
const open_promise = new Promise(r => close_ = r);
|
|
7536
7524
|
const body = await (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_element("body");
|
|
7537
|
-
const backdrop =
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7525
|
+
const backdrop = (() => {
|
|
7526
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$);
|
|
7527
|
+
$z0IcO$solidjsweb.addEventListener(_el$, "click", close_, true);
|
|
7528
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
7529
|
+
return _el$;
|
|
7530
|
+
})();
|
|
7541
7531
|
const [exit_title_iterator, exitable_title_iterator] = $bbe52965151ee7f0$export$927664b47117acb0(title_);
|
|
7542
7532
|
const closing_handlers = [exit_title_iterator];
|
|
7543
|
-
const slidein =
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7533
|
+
const slidein = (() => {
|
|
7534
|
+
const _el$2 = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$2),
|
|
7535
|
+
_el$3 = _el$2.firstChild,
|
|
7536
|
+
_el$4 = _el$3.firstChild,
|
|
7537
|
+
_el$5 = _el$4.nextSibling,
|
|
7538
|
+
_el$6 = _el$3.nextSibling;
|
|
7539
|
+
$z0IcO$solidjsweb.insert(_el$4, () => $374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_title_iterator, false));
|
|
7540
|
+
$z0IcO$solidjsweb.addEventListener(_el$5, "click", close_, true);
|
|
7541
|
+
$z0IcO$solidjsweb.insert(_el$5, CloseIcon);
|
|
7542
|
+
$z0IcO$solidjsweb.insert(_el$6, children);
|
|
7543
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
7544
|
+
return _el$2;
|
|
7545
|
+
})();
|
|
7546
|
+
const elements_in_container = (() => {
|
|
7547
|
+
const _el$7 = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$3),
|
|
7548
|
+
_el$8 = _el$7.firstChild,
|
|
7549
|
+
[_el$9, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$8.nextSibling),
|
|
7550
|
+
_el$10 = _el$9.nextSibling,
|
|
7551
|
+
[_el$11, _co$2] = $z0IcO$solidjsweb.getNextMarker(_el$10.nextSibling);
|
|
7552
|
+
$z0IcO$solidjsweb.insert(_el$7, backdrop, _el$9, _co$);
|
|
7553
|
+
$z0IcO$solidjsweb.insert(_el$7, slidein, _el$11, _co$2);
|
|
7554
|
+
return _el$7;
|
|
7555
|
+
})();
|
|
7564
7556
|
body.append(elements_in_container);
|
|
7565
7557
|
backdrop.animate({
|
|
7566
7558
|
opacity: [0, 1]
|
|
@@ -7608,6 +7600,10 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
|
7608
7600
|
on_close_: fn => closing_handlers.push(fn)
|
|
7609
7601
|
};
|
|
7610
7602
|
}
|
|
7603
|
+
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
7604
|
+
const $bd0fccdac6624b01$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=option-list>`),
|
|
7605
|
+
$bd0fccdac6624b01$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button type=button><span class=size></span><!$><!/>`),
|
|
7606
|
+
$bd0fccdac6624b01$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<span class=sold-out>`);
|
|
7611
7607
|
async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
7612
7608
|
title_: title_,
|
|
7613
7609
|
items_: items_,
|
|
@@ -7623,39 +7619,46 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
7623
7619
|
} = await $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
7624
7620
|
CloseIcon: CloseIcon,
|
|
7625
7621
|
title_: title_,
|
|
7626
|
-
children: [
|
|
7627
|
-
|
|
7628
|
-
|
|
7622
|
+
children: [(() => {
|
|
7623
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$);
|
|
7624
|
+
$z0IcO$solidjsweb.insert(_el$, () => items_.map(({
|
|
7629
7625
|
size_name_: size_name_,
|
|
7630
7626
|
is_available_: is_available_,
|
|
7631
7627
|
id_: id_
|
|
7632
7628
|
}) => {
|
|
7633
|
-
const button =
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7629
|
+
const button = (() => {
|
|
7630
|
+
const _el$2 = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$2),
|
|
7631
|
+
_el$3 = _el$2.firstChild,
|
|
7632
|
+
_el$4 = _el$3.nextSibling,
|
|
7633
|
+
[_el$5, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$4.nextSibling);
|
|
7634
|
+
_el$2.$$click = () => {
|
|
7637
7635
|
size_selected(id_);
|
|
7638
7636
|
close_();
|
|
7639
|
-
}
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
})
|
|
7647
|
-
|
|
7637
|
+
};
|
|
7638
|
+
$z0IcO$solidjsweb.className(_el$2, "option" + (is_available_ ? " available" : ""));
|
|
7639
|
+
$z0IcO$solidjsweb.insert(_el$3, size_name_);
|
|
7640
|
+
$z0IcO$solidjsweb.insert(_el$2, !is_available_ && (() => {
|
|
7641
|
+
const _el$6 = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$3);
|
|
7642
|
+
$z0IcO$solidjsweb.insert(_el$6, () => $374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_oos_iterator));
|
|
7643
|
+
return _el$6;
|
|
7644
|
+
})(), _el$5, _co$);
|
|
7645
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
7646
|
+
return _el$2;
|
|
7647
|
+
})();
|
|
7648
7648
|
if (!is_available_) button.disabled = true;
|
|
7649
7649
|
return button;
|
|
7650
|
-
})
|
|
7651
|
-
|
|
7650
|
+
}));
|
|
7651
|
+
return _el$;
|
|
7652
|
+
})()]
|
|
7652
7653
|
});
|
|
7653
7654
|
on_close_(size_selected);
|
|
7654
7655
|
on_close_(exit_oos_iterator);
|
|
7655
7656
|
}));
|
|
7656
7657
|
}
|
|
7658
|
+
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
7657
7659
|
var $dcdbfd7a994587c9$exports = {};
|
|
7658
7660
|
$dcdbfd7a994587c9$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
7661
|
+
const $e587cb3b31b82f43$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
|
|
7659
7662
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
7660
7663
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
7661
7664
|
width: width,
|
|
@@ -7669,50 +7672,43 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
7669
7672
|
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($dcdbfd7a994587c9$exports)));
|
|
7670
7673
|
$e587cb3b31b82f43$var$inserted = true;
|
|
7671
7674
|
}
|
|
7672
|
-
return (
|
|
7673
|
-
|
|
7674
|
-
$
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
);
|
|
7675
|
+
return (() => {
|
|
7676
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($e587cb3b31b82f43$var$_tmpl$);
|
|
7677
|
+
$z0IcO$solidjsweb.className(_el$, `depict-placeholder${extra_classes ? " " + extra_classes : ""}`);
|
|
7678
|
+
$z0IcO$solidjsweb.spread(_el$, attributes, false, false);
|
|
7679
|
+
$z0IcO$solidjsweb.effect(_$p => $z0IcO$solidjsweb.style(_el$, style ? style : `width:${width};height:${height};`, _$p));
|
|
7680
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
7681
|
+
return _el$;
|
|
7682
|
+
})();
|
|
7680
7683
|
};
|
|
7681
7684
|
const $e587cb3b31b82f43$export$d613f5b6d0a331a8 = ({
|
|
7682
7685
|
aspect_ratio: aspect_ratio,
|
|
7683
7686
|
...attributes
|
|
7684
7687
|
}) => {
|
|
7685
|
-
return $
|
|
7686
|
-
style: `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}
|
|
7687
|
-
|
|
7688
|
-
});
|
|
7688
|
+
return $z0IcO$solidjsweb.createComponent($e587cb3b31b82f43$export$84712d0562a614b8, $z0IcO$solidjsweb.mergeProps({
|
|
7689
|
+
style: `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`
|
|
7690
|
+
}, attributes));
|
|
7689
7691
|
};
|
|
7690
|
-
const $b9c0746e4d18273a$
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
const $69accc27bcbd6972$export$ddd70fdae1b350e6 = () => $
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
children: "Left arrow"
|
|
7711
|
-
}), $107a74aa4ea5902d$export$34b9dba7ce09269b("path", {
|
|
7712
|
-
d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"
|
|
7713
|
-
})]
|
|
7714
|
-
});
|
|
7715
|
-
|
|
7692
|
+
const $b9c0746e4d18273a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class="depict recommendation_container"><!$><!/><div class=grid>`),
|
|
7693
|
+
$b9c0746e4d18273a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<h4 class=recs_header>`);
|
|
7694
|
+
const $b9c0746e4d18273a$export$97f31f44c68c1d5 = (title, surface_classes = []) => $90e0b983530610e7$export$eb0b9ed911409b57(e => e.classList.add(...surface_classes), (() => {
|
|
7695
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($b9c0746e4d18273a$var$_tmpl$),
|
|
7696
|
+
_el$3 = _el$.firstChild,
|
|
7697
|
+
[_el$4, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
7698
|
+
_el$2 = _el$4.nextSibling;
|
|
7699
|
+
$z0IcO$solidjsweb.insert(_el$, title && typeof title === "string" ? (() => {
|
|
7700
|
+
const _el$5 = $z0IcO$solidjsweb.getNextElement($b9c0746e4d18273a$var$_tmpl$2);
|
|
7701
|
+
$z0IcO$solidjsweb.insert(_el$5, title);
|
|
7702
|
+
return _el$5;
|
|
7703
|
+
})() : title, _el$4, _co$);
|
|
7704
|
+
return _el$;
|
|
7705
|
+
})());
|
|
7706
|
+
const $69accc27bcbd6972$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<svg viewBox="0 0 320 512"><desc>Right arrow</desc><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z">`),
|
|
7707
|
+
$69accc27bcbd6972$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<svg viewBox="0 0 320 512"><desc>Left arrow</desc><path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z">`);
|
|
7708
|
+
const $69accc27bcbd6972$export$32a55d57d151bc5a = () => $z0IcO$solidjsweb.getNextElement($69accc27bcbd6972$var$_tmpl$);
|
|
7709
|
+
const $69accc27bcbd6972$export$ddd70fdae1b350e6 = () => $z0IcO$solidjsweb.getNextElement($69accc27bcbd6972$var$_tmpl$2);
|
|
7710
|
+
const $af92e61c7dfccf01$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button class=color-circle-container><div class=outer-circle><div class=inner-circle>`),
|
|
7711
|
+
$af92e61c7dfccf01$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=color-picker role=form aria-label="Color picker">`);
|
|
7716
7712
|
/**
|
|
7717
7713
|
* Internal color circle used in ColorPicker
|
|
7718
7714
|
* @see {createColorPicker}
|
|
@@ -7722,19 +7718,27 @@ function $af92e61c7dfccf01$var$ColorCircle({
|
|
|
7722
7718
|
onClick: onClick,
|
|
7723
7719
|
onHoverUpdate: onHoverUpdate
|
|
7724
7720
|
}) {
|
|
7725
|
-
const button =
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7721
|
+
const button = (() => {
|
|
7722
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($af92e61c7dfccf01$var$_tmpl$),
|
|
7723
|
+
_el$2 = _el$.firstChild,
|
|
7724
|
+
_el$3 = _el$2.firstChild;
|
|
7725
|
+
_el$.$$click = e => onClick(e.currentTarget, color);
|
|
7726
|
+
$z0IcO$solidjsweb.effect(_p$ => {
|
|
7727
|
+
const _v$ = color.label || "",
|
|
7728
|
+
_v$2 = `border-color: ${color.value};`,
|
|
7729
|
+
_v$3 = `background-color: ${color.value};`;
|
|
7730
|
+
_v$ !== _p$._v$ && $z0IcO$solidjsweb.setAttribute(_el$, "title", _p$._v$ = _v$);
|
|
7731
|
+
_p$._v$2 = $z0IcO$solidjsweb.style(_el$2, _v$2, _p$._v$2);
|
|
7732
|
+
_p$._v$3 = $z0IcO$solidjsweb.style(_el$3, _v$3, _p$._v$3);
|
|
7733
|
+
return _p$;
|
|
7734
|
+
}, {
|
|
7735
|
+
_v$: undefined,
|
|
7736
|
+
_v$2: undefined,
|
|
7737
|
+
_v$3: undefined
|
|
7738
|
+
});
|
|
7739
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
7740
|
+
return _el$;
|
|
7741
|
+
})();
|
|
7738
7742
|
button.addEventListener("mouseenter", $268cbd9e4ade92db$export$b3bbfd758f11cfa9(() => onHoverUpdate(button, color, true)));
|
|
7739
7743
|
button.addEventListener("mouseleave", $268cbd9e4ade92db$export$b3bbfd758f11cfa9(() => onHoverUpdate(button, color, false)));
|
|
7740
7744
|
return button;
|
|
@@ -7789,7 +7793,7 @@ function $af92e61c7dfccf01$export$590326cc34f49e2d({
|
|
|
7789
7793
|
if (selectOnHover) handleSelectOnHover(hovered, color, hovering);
|
|
7790
7794
|
};
|
|
7791
7795
|
// Create the color circles
|
|
7792
|
-
const circles = colors.map(color => $
|
|
7796
|
+
const circles = colors.map(color => $z0IcO$solidjsweb.createComponent($af92e61c7dfccf01$var$ColorCircle, {
|
|
7793
7797
|
color: color,
|
|
7794
7798
|
onClick: handleClick,
|
|
7795
7799
|
onHoverUpdate: handleHoverUpdate
|
|
@@ -7800,15 +7804,17 @@ function $af92e61c7dfccf01$export$590326cc34f49e2d({
|
|
|
7800
7804
|
const initial_index = initialColor == undefined ? -1 : colors.findIndex(c => typeof initialColor === "string" ? c.value === initialColor : c.value === initialColor.value && c.label === initialColor.label);
|
|
7801
7805
|
if (initial_index > -1) setActiveIndex(initial_index);
|
|
7802
7806
|
if (onlyCircles) return circles;
|
|
7803
|
-
return
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
});
|
|
7807
|
+
return (() => {
|
|
7808
|
+
const _el$4 = $z0IcO$solidjsweb.getNextElement($af92e61c7dfccf01$var$_tmpl$2);
|
|
7809
|
+
$z0IcO$solidjsweb.insert(_el$4, circles);
|
|
7810
|
+
return _el$4;
|
|
7811
|
+
})();
|
|
7809
7812
|
}
|
|
7810
7813
|
};
|
|
7811
7814
|
}
|
|
7815
|
+
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
7816
|
+
const $b25f388f0fe2f1b3$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`),
|
|
7817
|
+
$b25f388f0fe2f1b3$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div style=overflow:hidden;height:0px;visibility:hidden aria-hidden=true>`);
|
|
7812
7818
|
const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
7813
7819
|
duration = 500,
|
|
7814
7820
|
delay = 0
|
|
@@ -7832,14 +7838,16 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
7832
7838
|
children: children
|
|
7833
7839
|
}) => {
|
|
7834
7840
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
7835
|
-
innerRef =
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7841
|
+
innerRef = (() => {
|
|
7842
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($b25f388f0fe2f1b3$var$_tmpl$);
|
|
7843
|
+
$z0IcO$solidjsweb.insert(_el$, children);
|
|
7844
|
+
return _el$;
|
|
7845
|
+
})();
|
|
7846
|
+
outerRef = (() => {
|
|
7847
|
+
const _el$2 = $z0IcO$solidjsweb.getNextElement($b25f388f0fe2f1b3$var$_tmpl$2);
|
|
7848
|
+
$z0IcO$solidjsweb.insert(_el$2, innerRef);
|
|
7849
|
+
return _el$2;
|
|
7850
|
+
})();
|
|
7843
7851
|
return outerRef;
|
|
7844
7852
|
};
|
|
7845
7853
|
const expand = $268cbd9e4ade92db$export$b3bbfd758f11cfa9(async (expanding_delay = delay, time_to_expand = duration) => {
|
|
@@ -7890,6 +7898,9 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
7890
7898
|
};
|
|
7891
7899
|
var $aa123ed8001baa5e$exports = {};
|
|
7892
7900
|
$aa123ed8001baa5e$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
7901
|
+
const $ff973b2032639b5f$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img>`),
|
|
7902
|
+
$ff973b2032639b5f$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<source sizes=0px>`),
|
|
7903
|
+
$ff973b2032639b5f$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<picture>`);
|
|
7893
7904
|
const $ff973b2032639b5f$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
7894
7905
|
const $ff973b2032639b5f$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
7895
7906
|
function $ff973b2032639b5f$export$f39a7d0667e924a(what_to_watch, sizes_communicator = $9a42a570de51ea3d$export$e806c6c1615a59ae(), resolution_factor = 1) {
|
|
@@ -7967,9 +7978,12 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({
|
|
|
7967
7978
|
if (!src) {
|
|
7968
7979
|
$e6c6e7929ea385ae$export$de56f1198d121036(image_options, () => {}); // noop function is to allow to get here quickly by "jump to function definition"
|
|
7969
7980
|
$548fd58b14b25a52$export$8048b892d651b310(new Error("no image src provided: " + src));
|
|
7970
|
-
return
|
|
7971
|
-
|
|
7972
|
-
|
|
7981
|
+
return (() => {
|
|
7982
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$);
|
|
7983
|
+
$z0IcO$solidjsweb.spread(_el$, image_options, false, false);
|
|
7984
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
7985
|
+
return _el$;
|
|
7986
|
+
})(); // we don't want everything to fail if someone misused this component
|
|
7973
7987
|
}
|
|
7974
7988
|
// Create an array of elements that will get their `sizes` attribute updated when what_to_watch resizes
|
|
7975
7989
|
const sources = [];
|
|
@@ -7978,35 +7992,40 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({
|
|
|
7978
7992
|
// Much faster than .map and this will run kinda often
|
|
7979
7993
|
const format = formats[i];
|
|
7980
7994
|
const srcset = $ff973b2032639b5f$var$make_srcset(src, format, resolutions);
|
|
7981
|
-
sources.push(
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
type: `image/${format}`,
|
|
7986
|
-
...(set_dataset ? {
|
|
7995
|
+
sources.push((() => {
|
|
7996
|
+
const _el$2 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$2);
|
|
7997
|
+
$z0IcO$solidjsweb.setAttribute(_el$2, "type", `image/${format}`);
|
|
7998
|
+
$z0IcO$solidjsweb.spread(_el$2, set_dataset ? {
|
|
7987
7999
|
"data-srcset": srcset
|
|
7988
8000
|
} : {
|
|
7989
8001
|
srcset: srcset
|
|
7990
|
-
})
|
|
7991
|
-
|
|
8002
|
+
}, false, false);
|
|
8003
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
8004
|
+
return _el$2;
|
|
8005
|
+
})());
|
|
7992
8006
|
}
|
|
7993
8007
|
const opts_without_src = {
|
|
7994
8008
|
...image_options
|
|
7995
8009
|
}; // Prevents the image from instantly loading the original source
|
|
7996
8010
|
delete opts_without_src["src"];
|
|
7997
8011
|
delete opts_without_src["srcset"];
|
|
7998
|
-
const the_image =
|
|
7999
|
-
|
|
8000
|
-
|
|
8012
|
+
const the_image = (() => {
|
|
8013
|
+
const _el$3 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$);
|
|
8014
|
+
$z0IcO$solidjsweb.spread(_el$3, opts_without_src, false, false);
|
|
8015
|
+
$z0IcO$solidjsweb.runHydrationEvents();
|
|
8016
|
+
return _el$3;
|
|
8017
|
+
})(); // create image
|
|
8001
8018
|
sources.push(the_image); // chrome seems to be the dumbest piece of cake that has ever existed and just load the first source?????
|
|
8002
8019
|
what_to_watch ||= the_image;
|
|
8003
8020
|
sizes_setter_ ||= $ff973b2032639b5f$export$f39a7d0667e924a(what_to_watch, sizes_communicator, resolution_factor); // now we can finally create the sizes_setter
|
|
8004
8021
|
// start a sizes_setter for every source (including fallback image)
|
|
8005
8022
|
for (let i = 0; i < sources.length; i++) sizes_setter_(sources[i]).catch((0, $548fd58b14b25a52$export$8048b892d651b310));
|
|
8006
8023
|
// embed all sources into a <picture> so that the browser understands they're "together"
|
|
8007
|
-
const picture =
|
|
8008
|
-
|
|
8009
|
-
|
|
8024
|
+
const picture = (() => {
|
|
8025
|
+
const _el$4 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$3);
|
|
8026
|
+
$z0IcO$solidjsweb.insert(_el$4, sources);
|
|
8027
|
+
return _el$4;
|
|
8028
|
+
})();
|
|
8010
8029
|
// Create src and srcset for fallback image and set it.
|
|
8011
8030
|
// This is so that the browser doesn't start loading the fallback image for fun (chrome loads very eagerly)
|
|
8012
8031
|
const fallback_src = $ff973b2032639b5f$var$optimized_img_url_generator("png", src, 400);
|
|
@@ -8035,6 +8054,9 @@ function $ff973b2032639b5f$var$optimized_img_url_generator(format, url, width) {
|
|
|
8035
8054
|
// using make_url_with_query_params takes ~100ms on CDON with 2 surfaces and hover images, we can't afford that when it could be essentially free
|
|
8036
8055
|
return `${$ff973b2032639b5f$export$3d13beba9b52c947}?format=${format}&url=${encodeURIComponent(url)}&width=${width}`;
|
|
8037
8056
|
}
|
|
8057
|
+
const $a312bccd722ac9e4$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`),
|
|
8058
|
+
$a312bccd722ac9e4$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<canvas class=depict-img-filler height=3000>`),
|
|
8059
|
+
$a312bccd722ac9e4$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div style=position:relative><div class=depict-img-cont></div><!$><!/>`);
|
|
8038
8060
|
const $a312bccd722ac9e4$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
8039
8061
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
8040
8062
|
const $a312bccd722ac9e4$var$add_nolazy_to_placeholder = type => type === "placeholder" ? "nolazy" : "";
|
|
@@ -8063,21 +8085,22 @@ function $a312bccd722ac9e4$var$Image({
|
|
|
8063
8085
|
init_with_placeholder: _,
|
|
8064
8086
|
...image_options
|
|
8065
8087
|
}) {
|
|
8066
|
-
const div =
|
|
8067
|
-
|
|
8068
|
-
|
|
8088
|
+
const div = (() => {
|
|
8089
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$);
|
|
8090
|
+
$z0IcO$solidjsweb.effect(_$p => $z0IcO$solidjsweb.style(_el$, `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`, _$p));
|
|
8091
|
+
return _el$;
|
|
8092
|
+
})();
|
|
8069
8093
|
const sourceset_component = $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, div);
|
|
8070
8094
|
const IMG_tag = image_options.src?.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
8071
|
-
div.append(
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
}));
|
|
8095
|
+
div.append($z0IcO$solidjsweb.createComponent(IMG_tag, $z0IcO$solidjsweb.mergeProps({
|
|
8096
|
+
alt: alt
|
|
8097
|
+
}, remove_on_error ? {
|
|
8098
|
+
onerror: "this.remove()"
|
|
8099
|
+
} : {}, image_options, {
|
|
8100
|
+
get ["class"]() {
|
|
8101
|
+
return $90e0b983530610e7$export$22a65337c1b43b1f(["depict-img-mod ", image_options.class, $a312bccd722ac9e4$var$add_nolazy_to_placeholder(rendering_options?.type)]);
|
|
8102
|
+
}
|
|
8103
|
+
})));
|
|
8081
8104
|
return div;
|
|
8082
8105
|
}
|
|
8083
8106
|
function $a312bccd722ac9e4$var$CompatibleImage({
|
|
@@ -8088,27 +8111,30 @@ function $a312bccd722ac9e4$var$CompatibleImage({
|
|
|
8088
8111
|
srcset_opts: srcset_opts,
|
|
8089
8112
|
...image_options
|
|
8090
8113
|
}) {
|
|
8091
|
-
const canvas =
|
|
8092
|
-
|
|
8093
|
-
width
|
|
8094
|
-
|
|
8095
|
-
});
|
|
8114
|
+
const canvas = (() => {
|
|
8115
|
+
const _el$2 = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$2);
|
|
8116
|
+
$z0IcO$solidjsweb.setAttribute(_el$2, "width", 3000 * aspect_ratio);
|
|
8117
|
+
return _el$2;
|
|
8118
|
+
})();
|
|
8096
8119
|
const sourceset_component = $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
8097
8120
|
const IMG_tag = image_options.src?.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
8098
|
-
return
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8121
|
+
return (() => {
|
|
8122
|
+
const _el$3 = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$3),
|
|
8123
|
+
_el$4 = _el$3.firstChild,
|
|
8124
|
+
_el$5 = _el$4.nextSibling,
|
|
8125
|
+
[_el$6, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$5.nextSibling);
|
|
8126
|
+
$z0IcO$solidjsweb.insert(_el$4, $z0IcO$solidjsweb.createComponent(IMG_tag, $z0IcO$solidjsweb.mergeProps({
|
|
8127
|
+
alt: alt
|
|
8128
|
+
}, remove_on_error ? {
|
|
8129
|
+
onerror: "this.remove()"
|
|
8130
|
+
} : {}, image_options, {
|
|
8131
|
+
get ["class"]() {
|
|
8132
|
+
return $90e0b983530610e7$export$22a65337c1b43b1f(["depict-img-comp", image_options.class, $a312bccd722ac9e4$var$add_nolazy_to_placeholder(rendering_options?.type)]);
|
|
8133
|
+
}
|
|
8134
|
+
})));
|
|
8135
|
+
$z0IcO$solidjsweb.insert(_el$3, canvas, _el$6, _co$);
|
|
8136
|
+
return _el$3;
|
|
8137
|
+
})();
|
|
8112
8138
|
}
|
|
8113
8139
|
function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts = {}, canvas) {
|
|
8114
8140
|
let sourceset_component;
|
|
@@ -8127,7 +8153,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
8127
8153
|
}
|
|
8128
8154
|
var $db57c943efeaebed$exports = {};
|
|
8129
8155
|
$db57c943efeaebed$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
8130
|
-
|
|
8156
|
+
const $a656daa2fa8c279a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
8157
|
+
$a656daa2fa8c279a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=second-image-container>`);
|
|
8131
8158
|
// Saving bytez
|
|
8132
8159
|
// Maybe? @Daniel
|
|
8133
8160
|
const $a656daa2fa8c279a$var$TOUCHSTART = "touchstart";
|
|
@@ -8267,16 +8294,19 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
8267
8294
|
srcset_opts: second_srcset_opts || {}
|
|
8268
8295
|
});
|
|
8269
8296
|
const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
|
|
8270
|
-
const images_container =
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8297
|
+
const images_container = (() => {
|
|
8298
|
+
const _el$ = $z0IcO$solidjsweb.getNextElement($a656daa2fa8c279a$var$_tmpl$),
|
|
8299
|
+
_el$3 = _el$.firstChild,
|
|
8300
|
+
[_el$4, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
8301
|
+
_el$2 = _el$4.nextSibling;
|
|
8302
|
+
$z0IcO$solidjsweb.insert(_el$, !no_second_img && (() => {
|
|
8303
|
+
const _el$5 = $z0IcO$solidjsweb.getNextElement($a656daa2fa8c279a$var$_tmpl$2);
|
|
8304
|
+
$z0IcO$solidjsweb.insert(_el$5, second_image);
|
|
8305
|
+
return _el$5;
|
|
8306
|
+
})(), _el$4, _co$);
|
|
8307
|
+
$z0IcO$solidjsweb.insert(_el$2, main_image);
|
|
8308
|
+
return _el$;
|
|
8309
|
+
})();
|
|
8280
8310
|
if (no_second_img) return images_container;
|
|
8281
8311
|
const hover_element = images_container;
|
|
8282
8312
|
const event_handler_mouse = ({
|