@depict-ai/utilishared 2.0.1 → 2.0.3
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 +319 -302
- package/ES10/index.d.ts +15 -15
- package/ES10/index.js +319 -302
- package/latest/index.cjs +307 -298
- package/latest/index.d.ts +15 -15
- package/latest/index.js +307 -298
- package/package.json +2 -2
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.3";
|
|
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 = $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_: $1683d0164abd7c1d$var$_tmpl$2(),
|
|
4006
|
+
left_: $1683d0164abd7c1d$var$_tmpl$3(),
|
|
4007
|
+
right_: $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$ = $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__*/(() => $c3af1bfb402a8820$var$_tmpl$())();
|
|
5268
|
+
const $c3af1bfb402a8820$export$6038895ac52bd044 = /*@__PURE__*/(() => $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 = $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 = $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 = $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$ = $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 = $1942530ef27e571b$var$_tmpl$();
|
|
5939
|
+
const scroll_container = $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 = $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,25 @@ 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$ = $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
|
+
return _el$;
|
|
7508
|
+
})();
|
|
7525
7509
|
button.classList.add("show-more");
|
|
7526
7510
|
return button;
|
|
7527
7511
|
}
|
|
7512
|
+
const $a7550e9f97f84465$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=slidein-backdrop>`),
|
|
7513
|
+
$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>`),
|
|
7514
|
+
$a7550e9f97f84465$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=depict>`);
|
|
7528
7515
|
async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
7529
7516
|
title_: title_,
|
|
7530
7517
|
children: children,
|
|
@@ -7534,33 +7521,31 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
|
7534
7521
|
let close_;
|
|
7535
7522
|
const open_promise = new Promise(r => close_ = r);
|
|
7536
7523
|
const body = await (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_element("body");
|
|
7537
|
-
const backdrop =
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7524
|
+
const backdrop = (() => {
|
|
7525
|
+
const _el$ = $a7550e9f97f84465$var$_tmpl$();
|
|
7526
|
+
$z0IcO$solidjsweb.addEventListener(_el$, "click", close_, true);
|
|
7527
|
+
return _el$;
|
|
7528
|
+
})();
|
|
7541
7529
|
const [exit_title_iterator, exitable_title_iterator] = $bbe52965151ee7f0$export$927664b47117acb0(title_);
|
|
7542
7530
|
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
|
-
class: "depict",
|
|
7562
|
-
children: [backdrop, slidein]
|
|
7563
|
-
});
|
|
7531
|
+
const slidein = (() => {
|
|
7532
|
+
const _el$2 = $a7550e9f97f84465$var$_tmpl$2(),
|
|
7533
|
+
_el$3 = _el$2.firstChild,
|
|
7534
|
+
_el$4 = _el$3.firstChild,
|
|
7535
|
+
_el$5 = _el$4.nextSibling,
|
|
7536
|
+
_el$6 = _el$3.nextSibling;
|
|
7537
|
+
$z0IcO$solidjsweb.insert(_el$4, () => $374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_title_iterator, false));
|
|
7538
|
+
$z0IcO$solidjsweb.addEventListener(_el$5, "click", close_, true);
|
|
7539
|
+
$z0IcO$solidjsweb.insert(_el$5, CloseIcon);
|
|
7540
|
+
$z0IcO$solidjsweb.insert(_el$6, children);
|
|
7541
|
+
return _el$2;
|
|
7542
|
+
})();
|
|
7543
|
+
const elements_in_container = (() => {
|
|
7544
|
+
const _el$7 = $a7550e9f97f84465$var$_tmpl$3();
|
|
7545
|
+
$z0IcO$solidjsweb.insert(_el$7, backdrop, null);
|
|
7546
|
+
$z0IcO$solidjsweb.insert(_el$7, slidein, null);
|
|
7547
|
+
return _el$7;
|
|
7548
|
+
})();
|
|
7564
7549
|
body.append(elements_in_container);
|
|
7565
7550
|
backdrop.animate({
|
|
7566
7551
|
opacity: [0, 1]
|
|
@@ -7608,6 +7593,10 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
|
7608
7593
|
on_close_: fn => closing_handlers.push(fn)
|
|
7609
7594
|
};
|
|
7610
7595
|
}
|
|
7596
|
+
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
7597
|
+
const $bd0fccdac6624b01$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=option-list>`),
|
|
7598
|
+
$bd0fccdac6624b01$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button type=button><span class=size>`),
|
|
7599
|
+
$bd0fccdac6624b01$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<span class=sold-out>`);
|
|
7611
7600
|
async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
7612
7601
|
title_: title_,
|
|
7613
7602
|
items_: items_,
|
|
@@ -7623,39 +7612,43 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
7623
7612
|
} = await $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
7624
7613
|
CloseIcon: CloseIcon,
|
|
7625
7614
|
title_: title_,
|
|
7626
|
-
children: [
|
|
7627
|
-
|
|
7628
|
-
|
|
7615
|
+
children: [(() => {
|
|
7616
|
+
const _el$ = $bd0fccdac6624b01$var$_tmpl$();
|
|
7617
|
+
$z0IcO$solidjsweb.insert(_el$, () => items_.map(({
|
|
7629
7618
|
size_name_: size_name_,
|
|
7630
7619
|
is_available_: is_available_,
|
|
7631
7620
|
id_: id_
|
|
7632
7621
|
}) => {
|
|
7633
|
-
const button =
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7622
|
+
const button = (() => {
|
|
7623
|
+
const _el$2 = $bd0fccdac6624b01$var$_tmpl$2(),
|
|
7624
|
+
_el$3 = _el$2.firstChild;
|
|
7625
|
+
_el$2.$$click = () => {
|
|
7637
7626
|
size_selected(id_);
|
|
7638
7627
|
close_();
|
|
7639
|
-
}
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
})
|
|
7647
|
-
|
|
7628
|
+
};
|
|
7629
|
+
$z0IcO$solidjsweb.className(_el$2, "option" + (is_available_ ? " available" : ""));
|
|
7630
|
+
$z0IcO$solidjsweb.insert(_el$3, size_name_);
|
|
7631
|
+
$z0IcO$solidjsweb.insert(_el$2, !is_available_ && (() => {
|
|
7632
|
+
const _el$4 = $bd0fccdac6624b01$var$_tmpl$3();
|
|
7633
|
+
$z0IcO$solidjsweb.insert(_el$4, () => $374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_oos_iterator));
|
|
7634
|
+
return _el$4;
|
|
7635
|
+
})(), null);
|
|
7636
|
+
return _el$2;
|
|
7637
|
+
})();
|
|
7648
7638
|
if (!is_available_) button.disabled = true;
|
|
7649
7639
|
return button;
|
|
7650
|
-
})
|
|
7651
|
-
|
|
7640
|
+
}));
|
|
7641
|
+
return _el$;
|
|
7642
|
+
})()]
|
|
7652
7643
|
});
|
|
7653
7644
|
on_close_(size_selected);
|
|
7654
7645
|
on_close_(exit_oos_iterator);
|
|
7655
7646
|
}));
|
|
7656
7647
|
}
|
|
7648
|
+
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
7657
7649
|
var $dcdbfd7a994587c9$exports = {};
|
|
7658
7650
|
$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";
|
|
7651
|
+
const $e587cb3b31b82f43$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
|
|
7659
7652
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
7660
7653
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
7661
7654
|
width: width,
|
|
@@ -7669,50 +7662,40 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
7669
7662
|
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($dcdbfd7a994587c9$exports)));
|
|
7670
7663
|
$e587cb3b31b82f43$var$inserted = true;
|
|
7671
7664
|
}
|
|
7672
|
-
return (
|
|
7673
|
-
|
|
7674
|
-
$
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
);
|
|
7665
|
+
return (() => {
|
|
7666
|
+
const _el$ = $e587cb3b31b82f43$var$_tmpl$();
|
|
7667
|
+
$z0IcO$solidjsweb.className(_el$, `depict-placeholder${extra_classes ? " " + extra_classes : ""}`);
|
|
7668
|
+
$z0IcO$solidjsweb.spread(_el$, attributes, false, false);
|
|
7669
|
+
$z0IcO$solidjsweb.effect(_$p => $z0IcO$solidjsweb.style(_el$, style ? style : `width:${width};height:${height};`, _$p));
|
|
7670
|
+
return _el$;
|
|
7671
|
+
})();
|
|
7680
7672
|
};
|
|
7681
7673
|
const $e587cb3b31b82f43$export$d613f5b6d0a331a8 = ({
|
|
7682
7674
|
aspect_ratio: aspect_ratio,
|
|
7683
7675
|
...attributes
|
|
7684
7676
|
}) => {
|
|
7685
|
-
return $
|
|
7686
|
-
style: `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}
|
|
7687
|
-
|
|
7688
|
-
});
|
|
7677
|
+
return $z0IcO$solidjsweb.createComponent($e587cb3b31b82f43$export$84712d0562a614b8, $z0IcO$solidjsweb.mergeProps({
|
|
7678
|
+
style: `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`
|
|
7679
|
+
}, attributes));
|
|
7689
7680
|
};
|
|
7690
|
-
const $b9c0746e4d18273a$
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
viewBox: "0 0 320 512",
|
|
7709
|
-
children: [$107a74aa4ea5902d$export$34b9dba7ce09269b("desc", {
|
|
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
|
-
|
|
7681
|
+
const $b9c0746e4d18273a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class="depict recommendation_container"><div class=grid>`),
|
|
7682
|
+
$b9c0746e4d18273a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<h4 class=recs_header>`);
|
|
7683
|
+
const $b9c0746e4d18273a$export$97f31f44c68c1d5 = (title, surface_classes = []) => $90e0b983530610e7$export$eb0b9ed911409b57(e => e.classList.add(...surface_classes), (() => {
|
|
7684
|
+
const _el$ = $b9c0746e4d18273a$var$_tmpl$(),
|
|
7685
|
+
_el$2 = _el$.firstChild;
|
|
7686
|
+
$z0IcO$solidjsweb.insert(_el$, title && typeof title === "string" ? (() => {
|
|
7687
|
+
const _el$3 = $b9c0746e4d18273a$var$_tmpl$2();
|
|
7688
|
+
$z0IcO$solidjsweb.insert(_el$3, title);
|
|
7689
|
+
return _el$3;
|
|
7690
|
+
})() : title, _el$2);
|
|
7691
|
+
return _el$;
|
|
7692
|
+
})());
|
|
7693
|
+
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">`),
|
|
7694
|
+
$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">`);
|
|
7695
|
+
const $69accc27bcbd6972$export$32a55d57d151bc5a = () => $69accc27bcbd6972$var$_tmpl$();
|
|
7696
|
+
const $69accc27bcbd6972$export$ddd70fdae1b350e6 = () => $69accc27bcbd6972$var$_tmpl$2();
|
|
7697
|
+
const $af92e61c7dfccf01$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button class=color-circle-container><div class=outer-circle><div class=inner-circle>`),
|
|
7698
|
+
$af92e61c7dfccf01$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=color-picker role=form aria-label="Color picker">`);
|
|
7716
7699
|
/**
|
|
7717
7700
|
* Internal color circle used in ColorPicker
|
|
7718
7701
|
* @see {createColorPicker}
|
|
@@ -7722,19 +7705,26 @@ function $af92e61c7dfccf01$var$ColorCircle({
|
|
|
7722
7705
|
onClick: onClick,
|
|
7723
7706
|
onHoverUpdate: onHoverUpdate
|
|
7724
7707
|
}) {
|
|
7725
|
-
const button =
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7708
|
+
const button = (() => {
|
|
7709
|
+
const _el$ = $af92e61c7dfccf01$var$_tmpl$(),
|
|
7710
|
+
_el$2 = _el$.firstChild,
|
|
7711
|
+
_el$3 = _el$2.firstChild;
|
|
7712
|
+
_el$.$$click = e => onClick(e.currentTarget, color);
|
|
7713
|
+
$z0IcO$solidjsweb.effect(_p$ => {
|
|
7714
|
+
const _v$ = color.label || "",
|
|
7715
|
+
_v$2 = `border-color: ${color.value};`,
|
|
7716
|
+
_v$3 = `background-color: ${color.value};`;
|
|
7717
|
+
_v$ !== _p$._v$ && $z0IcO$solidjsweb.setAttribute(_el$, "title", _p$._v$ = _v$);
|
|
7718
|
+
_p$._v$2 = $z0IcO$solidjsweb.style(_el$2, _v$2, _p$._v$2);
|
|
7719
|
+
_p$._v$3 = $z0IcO$solidjsweb.style(_el$3, _v$3, _p$._v$3);
|
|
7720
|
+
return _p$;
|
|
7721
|
+
}, {
|
|
7722
|
+
_v$: undefined,
|
|
7723
|
+
_v$2: undefined,
|
|
7724
|
+
_v$3: undefined
|
|
7725
|
+
});
|
|
7726
|
+
return _el$;
|
|
7727
|
+
})();
|
|
7738
7728
|
button.addEventListener("mouseenter", $268cbd9e4ade92db$export$b3bbfd758f11cfa9(() => onHoverUpdate(button, color, true)));
|
|
7739
7729
|
button.addEventListener("mouseleave", $268cbd9e4ade92db$export$b3bbfd758f11cfa9(() => onHoverUpdate(button, color, false)));
|
|
7740
7730
|
return button;
|
|
@@ -7789,7 +7779,7 @@ function $af92e61c7dfccf01$export$590326cc34f49e2d({
|
|
|
7789
7779
|
if (selectOnHover) handleSelectOnHover(hovered, color, hovering);
|
|
7790
7780
|
};
|
|
7791
7781
|
// Create the color circles
|
|
7792
|
-
const circles = colors.map(color => $
|
|
7782
|
+
const circles = colors.map(color => $z0IcO$solidjsweb.createComponent($af92e61c7dfccf01$var$ColorCircle, {
|
|
7793
7783
|
color: color,
|
|
7794
7784
|
onClick: handleClick,
|
|
7795
7785
|
onHoverUpdate: handleHoverUpdate
|
|
@@ -7800,15 +7790,17 @@ function $af92e61c7dfccf01$export$590326cc34f49e2d({
|
|
|
7800
7790
|
const initial_index = initialColor == undefined ? -1 : colors.findIndex(c => typeof initialColor === "string" ? c.value === initialColor : c.value === initialColor.value && c.label === initialColor.label);
|
|
7801
7791
|
if (initial_index > -1) setActiveIndex(initial_index);
|
|
7802
7792
|
if (onlyCircles) return circles;
|
|
7803
|
-
return
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
});
|
|
7793
|
+
return (() => {
|
|
7794
|
+
const _el$4 = $af92e61c7dfccf01$var$_tmpl$2();
|
|
7795
|
+
$z0IcO$solidjsweb.insert(_el$4, circles);
|
|
7796
|
+
return _el$4;
|
|
7797
|
+
})();
|
|
7809
7798
|
}
|
|
7810
7799
|
};
|
|
7811
7800
|
}
|
|
7801
|
+
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
7802
|
+
const $b25f388f0fe2f1b3$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`),
|
|
7803
|
+
$b25f388f0fe2f1b3$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div style=overflow:hidden;height:0px;visibility:hidden aria-hidden=true>`);
|
|
7812
7804
|
const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
7813
7805
|
duration = 500,
|
|
7814
7806
|
delay = 0
|
|
@@ -7832,14 +7824,16 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
7832
7824
|
children: children
|
|
7833
7825
|
}) => {
|
|
7834
7826
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
7835
|
-
innerRef =
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7827
|
+
innerRef = (() => {
|
|
7828
|
+
const _el$ = $b25f388f0fe2f1b3$var$_tmpl$();
|
|
7829
|
+
$z0IcO$solidjsweb.insert(_el$, children);
|
|
7830
|
+
return _el$;
|
|
7831
|
+
})();
|
|
7832
|
+
outerRef = (() => {
|
|
7833
|
+
const _el$2 = $b25f388f0fe2f1b3$var$_tmpl$2();
|
|
7834
|
+
$z0IcO$solidjsweb.insert(_el$2, innerRef);
|
|
7835
|
+
return _el$2;
|
|
7836
|
+
})();
|
|
7843
7837
|
return outerRef;
|
|
7844
7838
|
};
|
|
7845
7839
|
const expand = $268cbd9e4ade92db$export$b3bbfd758f11cfa9(async (expanding_delay = delay, time_to_expand = duration) => {
|
|
@@ -7890,6 +7884,9 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
7890
7884
|
};
|
|
7891
7885
|
var $aa123ed8001baa5e$exports = {};
|
|
7892
7886
|
$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";
|
|
7887
|
+
const $ff973b2032639b5f$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img>`),
|
|
7888
|
+
$ff973b2032639b5f$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<source sizes=0px>`),
|
|
7889
|
+
$ff973b2032639b5f$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<picture>`);
|
|
7893
7890
|
const $ff973b2032639b5f$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
7894
7891
|
const $ff973b2032639b5f$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
7895
7892
|
function $ff973b2032639b5f$export$f39a7d0667e924a(what_to_watch, sizes_communicator = $9a42a570de51ea3d$export$e806c6c1615a59ae(), resolution_factor = 1) {
|
|
@@ -7967,9 +7964,11 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({
|
|
|
7967
7964
|
if (!src) {
|
|
7968
7965
|
$e6c6e7929ea385ae$export$de56f1198d121036(image_options, () => {}); // noop function is to allow to get here quickly by "jump to function definition"
|
|
7969
7966
|
$548fd58b14b25a52$export$8048b892d651b310(new Error("no image src provided: " + src));
|
|
7970
|
-
return
|
|
7971
|
-
|
|
7972
|
-
|
|
7967
|
+
return (() => {
|
|
7968
|
+
const _el$ = $ff973b2032639b5f$var$_tmpl$();
|
|
7969
|
+
$z0IcO$solidjsweb.spread(_el$, image_options, false, false);
|
|
7970
|
+
return _el$;
|
|
7971
|
+
})(); // we don't want everything to fail if someone misused this component
|
|
7973
7972
|
}
|
|
7974
7973
|
// Create an array of elements that will get their `sizes` attribute updated when what_to_watch resizes
|
|
7975
7974
|
const sources = [];
|
|
@@ -7978,35 +7977,38 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({
|
|
|
7978
7977
|
// Much faster than .map and this will run kinda often
|
|
7979
7978
|
const format = formats[i];
|
|
7980
7979
|
const srcset = $ff973b2032639b5f$var$make_srcset(src, format, resolutions);
|
|
7981
|
-
sources.push(
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
type: `image/${format}`,
|
|
7986
|
-
...(set_dataset ? {
|
|
7980
|
+
sources.push((() => {
|
|
7981
|
+
const _el$2 = $ff973b2032639b5f$var$_tmpl$2();
|
|
7982
|
+
$z0IcO$solidjsweb.setAttribute(_el$2, "type", `image/${format}`);
|
|
7983
|
+
$z0IcO$solidjsweb.spread(_el$2, set_dataset ? {
|
|
7987
7984
|
"data-srcset": srcset
|
|
7988
7985
|
} : {
|
|
7989
7986
|
srcset: srcset
|
|
7990
|
-
})
|
|
7991
|
-
|
|
7987
|
+
}, false, false);
|
|
7988
|
+
return _el$2;
|
|
7989
|
+
})());
|
|
7992
7990
|
}
|
|
7993
7991
|
const opts_without_src = {
|
|
7994
7992
|
...image_options
|
|
7995
7993
|
}; // Prevents the image from instantly loading the original source
|
|
7996
7994
|
delete opts_without_src["src"];
|
|
7997
7995
|
delete opts_without_src["srcset"];
|
|
7998
|
-
const the_image =
|
|
7999
|
-
|
|
8000
|
-
|
|
7996
|
+
const the_image = (() => {
|
|
7997
|
+
const _el$3 = $ff973b2032639b5f$var$_tmpl$();
|
|
7998
|
+
$z0IcO$solidjsweb.spread(_el$3, opts_without_src, false, false);
|
|
7999
|
+
return _el$3;
|
|
8000
|
+
})(); // create image
|
|
8001
8001
|
sources.push(the_image); // chrome seems to be the dumbest piece of cake that has ever existed and just load the first source?????
|
|
8002
8002
|
what_to_watch ||= the_image;
|
|
8003
8003
|
sizes_setter_ ||= $ff973b2032639b5f$export$f39a7d0667e924a(what_to_watch, sizes_communicator, resolution_factor); // now we can finally create the sizes_setter
|
|
8004
8004
|
// start a sizes_setter for every source (including fallback image)
|
|
8005
8005
|
for (let i = 0; i < sources.length; i++) sizes_setter_(sources[i]).catch((0, $548fd58b14b25a52$export$8048b892d651b310));
|
|
8006
8006
|
// embed all sources into a <picture> so that the browser understands they're "together"
|
|
8007
|
-
const picture =
|
|
8008
|
-
|
|
8009
|
-
|
|
8007
|
+
const picture = (() => {
|
|
8008
|
+
const _el$4 = $ff973b2032639b5f$var$_tmpl$3();
|
|
8009
|
+
$z0IcO$solidjsweb.insert(_el$4, sources);
|
|
8010
|
+
return _el$4;
|
|
8011
|
+
})();
|
|
8010
8012
|
// Create src and srcset for fallback image and set it.
|
|
8011
8013
|
// This is so that the browser doesn't start loading the fallback image for fun (chrome loads very eagerly)
|
|
8012
8014
|
const fallback_src = $ff973b2032639b5f$var$optimized_img_url_generator("png", src, 400);
|
|
@@ -8035,6 +8037,9 @@ function $ff973b2032639b5f$var$optimized_img_url_generator(format, url, width) {
|
|
|
8035
8037
|
// 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
8038
|
return `${$ff973b2032639b5f$export$3d13beba9b52c947}?format=${format}&url=${encodeURIComponent(url)}&width=${width}`;
|
|
8037
8039
|
}
|
|
8040
|
+
const $a312bccd722ac9e4$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`),
|
|
8041
|
+
$a312bccd722ac9e4$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<canvas class=depict-img-filler height=3000>`),
|
|
8042
|
+
$a312bccd722ac9e4$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div style=position:relative><div class=depict-img-cont>`);
|
|
8038
8043
|
const $a312bccd722ac9e4$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
8039
8044
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
8040
8045
|
const $a312bccd722ac9e4$var$add_nolazy_to_placeholder = type => type === "placeholder" ? "nolazy" : "";
|
|
@@ -8063,21 +8068,22 @@ function $a312bccd722ac9e4$var$Image({
|
|
|
8063
8068
|
init_with_placeholder: _,
|
|
8064
8069
|
...image_options
|
|
8065
8070
|
}) {
|
|
8066
|
-
const div =
|
|
8067
|
-
|
|
8068
|
-
|
|
8071
|
+
const div = (() => {
|
|
8072
|
+
const _el$ = $a312bccd722ac9e4$var$_tmpl$();
|
|
8073
|
+
$z0IcO$solidjsweb.effect(_$p => $z0IcO$solidjsweb.style(_el$, `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`, _$p));
|
|
8074
|
+
return _el$;
|
|
8075
|
+
})();
|
|
8069
8076
|
const sourceset_component = $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, div);
|
|
8070
8077
|
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
|
-
}));
|
|
8078
|
+
div.append($z0IcO$solidjsweb.createComponent(IMG_tag, $z0IcO$solidjsweb.mergeProps({
|
|
8079
|
+
alt: alt
|
|
8080
|
+
}, remove_on_error ? {
|
|
8081
|
+
onerror: "this.remove()"
|
|
8082
|
+
} : {}, image_options, {
|
|
8083
|
+
get ["class"]() {
|
|
8084
|
+
return $90e0b983530610e7$export$22a65337c1b43b1f(["depict-img-mod ", image_options.class, $a312bccd722ac9e4$var$add_nolazy_to_placeholder(rendering_options?.type)]);
|
|
8085
|
+
}
|
|
8086
|
+
})));
|
|
8081
8087
|
return div;
|
|
8082
8088
|
}
|
|
8083
8089
|
function $a312bccd722ac9e4$var$CompatibleImage({
|
|
@@ -8088,27 +8094,28 @@ function $a312bccd722ac9e4$var$CompatibleImage({
|
|
|
8088
8094
|
srcset_opts: srcset_opts,
|
|
8089
8095
|
...image_options
|
|
8090
8096
|
}) {
|
|
8091
|
-
const canvas =
|
|
8092
|
-
|
|
8093
|
-
width
|
|
8094
|
-
|
|
8095
|
-
});
|
|
8097
|
+
const canvas = (() => {
|
|
8098
|
+
const _el$2 = $a312bccd722ac9e4$var$_tmpl$2();
|
|
8099
|
+
$z0IcO$solidjsweb.setAttribute(_el$2, "width", 3000 * aspect_ratio);
|
|
8100
|
+
return _el$2;
|
|
8101
|
+
})();
|
|
8096
8102
|
const sourceset_component = $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
8097
8103
|
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
|
-
|
|
8104
|
+
return (() => {
|
|
8105
|
+
const _el$3 = $a312bccd722ac9e4$var$_tmpl$3(),
|
|
8106
|
+
_el$4 = _el$3.firstChild;
|
|
8107
|
+
$z0IcO$solidjsweb.insert(_el$4, $z0IcO$solidjsweb.createComponent(IMG_tag, $z0IcO$solidjsweb.mergeProps({
|
|
8108
|
+
alt: alt
|
|
8109
|
+
}, remove_on_error ? {
|
|
8110
|
+
onerror: "this.remove()"
|
|
8111
|
+
} : {}, image_options, {
|
|
8112
|
+
get ["class"]() {
|
|
8113
|
+
return $90e0b983530610e7$export$22a65337c1b43b1f(["depict-img-comp", image_options.class, $a312bccd722ac9e4$var$add_nolazy_to_placeholder(rendering_options?.type)]);
|
|
8114
|
+
}
|
|
8115
|
+
})));
|
|
8116
|
+
$z0IcO$solidjsweb.insert(_el$3, canvas, null);
|
|
8117
|
+
return _el$3;
|
|
8118
|
+
})();
|
|
8112
8119
|
}
|
|
8113
8120
|
function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts = {}, canvas) {
|
|
8114
8121
|
let sourceset_component;
|
|
@@ -8127,7 +8134,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
8127
8134
|
}
|
|
8128
8135
|
var $db57c943efeaebed$exports = {};
|
|
8129
8136
|
$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
|
-
|
|
8137
|
+
const $a656daa2fa8c279a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=images-container><div class=main-image-container>`),
|
|
8138
|
+
$a656daa2fa8c279a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=second-image-container>`);
|
|
8131
8139
|
// Saving bytez
|
|
8132
8140
|
// Maybe? @Daniel
|
|
8133
8141
|
const $a656daa2fa8c279a$var$TOUCHSTART = "touchstart";
|
|
@@ -8267,16 +8275,17 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
8267
8275
|
srcset_opts: second_srcset_opts || {}
|
|
8268
8276
|
});
|
|
8269
8277
|
const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
|
|
8270
|
-
const images_container =
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8278
|
+
const images_container = (() => {
|
|
8279
|
+
const _el$ = $a656daa2fa8c279a$var$_tmpl$(),
|
|
8280
|
+
_el$2 = _el$.firstChild;
|
|
8281
|
+
$z0IcO$solidjsweb.insert(_el$, !no_second_img && (() => {
|
|
8282
|
+
const _el$3 = $a656daa2fa8c279a$var$_tmpl$2();
|
|
8283
|
+
$z0IcO$solidjsweb.insert(_el$3, second_image);
|
|
8284
|
+
return _el$3;
|
|
8285
|
+
})(), _el$2);
|
|
8286
|
+
$z0IcO$solidjsweb.insert(_el$2, main_image);
|
|
8287
|
+
return _el$;
|
|
8288
|
+
})();
|
|
8280
8289
|
if (no_second_img) return images_container;
|
|
8281
8290
|
const hover_element = images_container;
|
|
8282
8291
|
const event_handler_mouse = ({
|