@depict-ai/utilishared 2.0.3 → 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 +82 -61
- package/ES10/index.d.ts +1 -2
- package/ES10/index.js +83 -62
- package/latest/index.cjs +82 -61
- package/latest/index.d.ts +1 -2
- package/latest/index.js +83 -62
- package/package.json +66 -7
package/ES10/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { onCleanup as $76EG6$onCleanup, createEffect as $76EG6$createEffect, cre
|
|
|
2
2
|
import $76EG6$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import $76EG6$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
4
4
|
import $76EG6$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
5
|
-
import { template as $76EG6$template, insert as $76EG6$insert, className as $76EG6$className, setAttribute as $76EG6$setAttribute, spread as $76EG6$spread, mergeProps as $76EG6$mergeProps, addEventListener as $76EG6$addEventListener, delegateEvents as $76EG6$delegateEvents, effect as $76EG6$effect, style as $76EG6$style, createComponent as $76EG6$createComponent } from "solid-js/web";
|
|
5
|
+
import { template as $76EG6$template, getNextElement as $76EG6$getNextElement, insert as $76EG6$insert, className as $76EG6$className, setAttribute as $76EG6$setAttribute, spread as $76EG6$spread, mergeProps as $76EG6$mergeProps, runHydrationEvents as $76EG6$runHydrationEvents, addEventListener as $76EG6$addEventListener, getNextMarker as $76EG6$getNextMarker, delegateEvents as $76EG6$delegateEvents, effect as $76EG6$effect, style as $76EG6$style, createComponent as $76EG6$createComponent } from "solid-js/web";
|
|
6
6
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
7
7
|
register_es_version("utilishared", "ES10");
|
|
8
8
|
function $parcel$export(e, n, v, s) {
|
|
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
16
16
|
function $parcel$interopDefault(a) {
|
|
17
17
|
return a && a.__esModule ? a.default : a;
|
|
18
18
|
}
|
|
19
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.
|
|
19
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.4";
|
|
20
20
|
const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
21
21
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
22
22
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -4339,13 +4339,13 @@ class $be288a83d9eabf2a$export$692b27c28639e5b9 {
|
|
|
4339
4339
|
$be288a83d9eabf2a$var$_classPrivateMethodInitSpec(this, $be288a83d9eabf2a$var$_hide_buttons_if_needed);
|
|
4340
4340
|
$be288a83d9eabf2a$var$_classPrivateMethodInitSpec(this, $be288a83d9eabf2a$var$_observer_callback);
|
|
4341
4341
|
$be288a83d9eabf2a$var$_classPrivateMethodInitSpec(this, $be288a83d9eabf2a$var$_observe_element);
|
|
4342
|
-
$76EG6$babelruntimehelpersdefineProperty(this, "container", $be288a83d9eabf2a$var$_tmpl$
|
|
4342
|
+
$76EG6$babelruntimehelpersdefineProperty(this, "container", $76EG6$getNextElement($be288a83d9eabf2a$var$_tmpl$));
|
|
4343
4343
|
$be288a83d9eabf2a$var$_classPrivateFieldInitSpec(this, $be288a83d9eabf2a$var$_elements, {
|
|
4344
4344
|
writable: true,
|
|
4345
4345
|
value: {
|
|
4346
|
-
sliding_el_: $be288a83d9eabf2a$var$_tmpl$2
|
|
4347
|
-
left_: $be288a83d9eabf2a$var$_tmpl$3
|
|
4348
|
-
right_: $be288a83d9eabf2a$var$_tmpl$4
|
|
4346
|
+
sliding_el_: $76EG6$getNextElement($be288a83d9eabf2a$var$_tmpl$2),
|
|
4347
|
+
left_: $76EG6$getNextElement($be288a83d9eabf2a$var$_tmpl$3),
|
|
4348
|
+
right_: $76EG6$getNextElement($be288a83d9eabf2a$var$_tmpl$4)
|
|
4349
4349
|
}
|
|
4350
4350
|
});
|
|
4351
4351
|
$76EG6$babelruntimehelpersdefineProperty(this, "insert_here", $76EG6$babelruntimehelpersclassPrivateFieldGet(this, $be288a83d9eabf2a$var$_elements).sliding_el_);
|
|
@@ -5351,7 +5351,7 @@ function $193ee64f5599f8a8$var$setup_load_more(t, root, chunk_size) {
|
|
|
5351
5351
|
} = t,
|
|
5352
5352
|
load_more_cont = $652300c6621d5500$export$d3e2a0560cbf4787('<div class="load-more-container"></div>'),
|
|
5353
5353
|
load_button = load_more_cont.appendChild((() => {
|
|
5354
|
-
const _el$ = $193ee64f5599f8a8$var$_tmpl$
|
|
5354
|
+
const _el$ = $76EG6$getNextElement($193ee64f5599f8a8$var$_tmpl$);
|
|
5355
5355
|
$76EG6$insert(_el$, view_more_text);
|
|
5356
5356
|
return _el$;
|
|
5357
5357
|
})());
|
|
@@ -5507,8 +5507,8 @@ const $0f650018c3cbc373$export$ffb0004e005737fa = (_ref2, _unknown) => {
|
|
|
5507
5507
|
};
|
|
5508
5508
|
const $c755e2b0d4b18501$var$_tmpl$ = /*#__PURE__*/$76EG6$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">`),
|
|
5509
5509
|
$c755e2b0d4b18501$var$_tmpl$2 = /*#__PURE__*/$76EG6$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">`);
|
|
5510
|
-
const $c755e2b0d4b18501$export$dc84183312f0c201 = /*@__PURE__*/(() => $c755e2b0d4b18501$var$_tmpl$
|
|
5511
|
-
const $c755e2b0d4b18501$export$6038895ac52bd044 = /*@__PURE__*/(() => $c755e2b0d4b18501$var$_tmpl$2
|
|
5510
|
+
const $c755e2b0d4b18501$export$dc84183312f0c201 = /*@__PURE__*/(() => $76EG6$getNextElement($c755e2b0d4b18501$var$_tmpl$))();
|
|
5511
|
+
const $c755e2b0d4b18501$export$6038895ac52bd044 = /*@__PURE__*/(() => $76EG6$getNextElement($c755e2b0d4b18501$var$_tmpl$2))();
|
|
5512
5512
|
const $0fe3923936d40f55$export$68c017fd93791405 = function () {
|
|
5513
5513
|
let {
|
|
5514
5514
|
duration = 500
|
|
@@ -5569,7 +5569,7 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
|
|
|
5569
5569
|
ipns: ipns
|
|
5570
5570
|
} = rows_or_empty_object;
|
|
5571
5571
|
const is_static = !ipns && !button;
|
|
5572
|
-
const our_style_el = $df6d080cba513381$var$_tmpl$
|
|
5572
|
+
const our_style_el = $76EG6$getNextElement($df6d080cba513381$var$_tmpl$);
|
|
5573
5573
|
const container_class = $6cb4d83127e468ea$export$a6db784f019668ba();
|
|
5574
5574
|
const selector_beginning = ".depict .".concat(container_class, ">");
|
|
5575
5575
|
const el_count_ipns = $7ca6fdc721083788$export$e806c6c1615a59ae();
|
|
@@ -5609,7 +5609,7 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
|
|
|
5609
5609
|
if (button) {
|
|
5610
5610
|
button_class = $6cb4d83127e468ea$export$a6db784f019668ba();
|
|
5611
5611
|
const button_container = (() => {
|
|
5612
|
-
const _el$2 = $df6d080cba513381$var$_tmpl$2
|
|
5612
|
+
const _el$2 = $76EG6$getNextElement($df6d080cba513381$var$_tmpl$2);
|
|
5613
5613
|
$76EG6$className(_el$2, "load-more-container " + button_class);
|
|
5614
5614
|
$76EG6$insert(_el$2, () => $a285401a927e4306$export$f63fcc839cb0f734("click", () => {
|
|
5615
5615
|
var _rows_or_empty_object;
|
|
@@ -5919,7 +5919,7 @@ function $090af64928922937$export$80039a49055269fb() {
|
|
|
5919
5919
|
}
|
|
5920
5920
|
const $66c5b496f7887c00$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<img src=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+>`);
|
|
5921
5921
|
function $66c5b496f7887c00$export$af88b4929c2dc86() {
|
|
5922
|
-
const img = $66c5b496f7887c00$var$_tmpl$
|
|
5922
|
+
const img = $76EG6$getNextElement($66c5b496f7887c00$var$_tmpl$);
|
|
5923
5923
|
return {
|
|
5924
5924
|
left: [img],
|
|
5925
5925
|
right: [img.cloneNode()]
|
|
@@ -6019,7 +6019,7 @@ function $d3c54fdf1bfb087a$export$1d17a045bcc711b1(_ref) {
|
|
|
6019
6019
|
}
|
|
6020
6020
|
function $d3c54fdf1bfb087a$export$a09282b33e69b43f(unique_name) {
|
|
6021
6021
|
return (() => {
|
|
6022
|
-
const _el$ = $d3c54fdf1bfb087a$var$_tmpl$
|
|
6022
|
+
const _el$ = $76EG6$getNextElement($d3c54fdf1bfb087a$var$_tmpl$),
|
|
6023
6023
|
_el$2 = _el$.firstChild;
|
|
6024
6024
|
$76EG6$setAttribute(_el$2, "name", "radio-".concat(unique_name));
|
|
6025
6025
|
return _el$;
|
|
@@ -6202,8 +6202,8 @@ const $4837ebe61ecec421$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=de
|
|
|
6202
6202
|
function $4837ebe61ecec421$export$93223e488e7ee078(options) {
|
|
6203
6203
|
function constructor_plugin(_slider_options) {
|
|
6204
6204
|
var _options$scroll_bar_c, _options$scroll_conta;
|
|
6205
|
-
const scroll_bar = $4837ebe61ecec421$var$_tmpl$
|
|
6206
|
-
const scroll_container = $4837ebe61ecec421$var$_tmpl$2
|
|
6205
|
+
const scroll_bar = $76EG6$getNextElement($4837ebe61ecec421$var$_tmpl$);
|
|
6206
|
+
const scroll_container = $76EG6$getNextElement($4837ebe61ecec421$var$_tmpl$2);
|
|
6207
6207
|
if ((_options$scroll_bar_c = options.scroll_bar_classes) !== null && _options$scroll_bar_c !== void 0 && _options$scroll_bar_c.length) scroll_bar.classList.add(...options.scroll_bar_classes);
|
|
6208
6208
|
if ((_options$scroll_conta = options.scroll_container_classes) !== null && _options$scroll_conta !== void 0 && _options$scroll_conta.length) scroll_container.classList.add(...options.scroll_container_classes);
|
|
6209
6209
|
// Default styles always present
|
|
@@ -6261,7 +6261,7 @@ function $ff905d87817a07f4$export$b36d2489a5a16728(_t) {
|
|
|
6261
6261
|
}
|
|
6262
6262
|
async function $ff905d87817a07f4$export$49b950309ab787ad() {
|
|
6263
6263
|
if ("scrollBehavior" in document.documentElement.style) return true;
|
|
6264
|
-
const test_div = $ff905d87817a07f4$var$_tmpl$
|
|
6264
|
+
const test_div = $76EG6$getNextElement($ff905d87817a07f4$var$_tmpl$);
|
|
6265
6265
|
const body = await (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element("body");
|
|
6266
6266
|
body.append(test_div);
|
|
6267
6267
|
test_div.scrollLeft = 1;
|
|
@@ -7835,11 +7835,12 @@ function $c40fc6dc2c22b3c4$export$4a3043e508dd72f0(_ref) {
|
|
|
7835
7835
|
...attributes
|
|
7836
7836
|
} = _ref;
|
|
7837
7837
|
const button = (() => {
|
|
7838
|
-
const _el$ = $c40fc6dc2c22b3c4$var$_tmpl$
|
|
7838
|
+
const _el$ = $76EG6$getNextElement($c40fc6dc2c22b3c4$var$_tmpl$);
|
|
7839
7839
|
$76EG6$spread(_el$, $76EG6$mergeProps(attributes, {
|
|
7840
7840
|
"type": "button"
|
|
7841
7841
|
}), false, true);
|
|
7842
7842
|
$76EG6$insert(_el$, children);
|
|
7843
|
+
$76EG6$runHydrationEvents();
|
|
7843
7844
|
return _el$;
|
|
7844
7845
|
})();
|
|
7845
7846
|
button.classList.add("show-more");
|
|
@@ -7847,7 +7848,7 @@ function $c40fc6dc2c22b3c4$export$4a3043e508dd72f0(_ref) {
|
|
|
7847
7848
|
}
|
|
7848
7849
|
const $a59cde169150d10b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=slidein-backdrop>`),
|
|
7849
7850
|
$a59cde169150d10b$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=slidein><div class=header><span class=title></span><button class=close></button></div><div class=body>`),
|
|
7850
|
-
$a59cde169150d10b$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<div class=depict
|
|
7851
|
+
$a59cde169150d10b$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<div class=depict><!$><!/><!$><!/>`);
|
|
7851
7852
|
async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
|
|
7852
7853
|
let {
|
|
7853
7854
|
title_: title_,
|
|
@@ -7859,14 +7860,15 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
|
|
|
7859
7860
|
const open_promise = new Promise(r => close_ = r);
|
|
7860
7861
|
const body = await (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element("body");
|
|
7861
7862
|
const backdrop = (() => {
|
|
7862
|
-
const _el$ = $a59cde169150d10b$var$_tmpl$
|
|
7863
|
+
const _el$ = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$);
|
|
7863
7864
|
$76EG6$addEventListener(_el$, "click", close_, true);
|
|
7865
|
+
$76EG6$runHydrationEvents();
|
|
7864
7866
|
return _el$;
|
|
7865
7867
|
})();
|
|
7866
7868
|
const [exit_title_iterator, exitable_title_iterator] = $fee212025270d5b9$export$927664b47117acb0(title_);
|
|
7867
7869
|
const closing_handlers = [exit_title_iterator];
|
|
7868
7870
|
const slidein = (() => {
|
|
7869
|
-
const _el$2 = $a59cde169150d10b$var$_tmpl$2
|
|
7871
|
+
const _el$2 = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$2),
|
|
7870
7872
|
_el$3 = _el$2.firstChild,
|
|
7871
7873
|
_el$4 = _el$3.firstChild,
|
|
7872
7874
|
_el$5 = _el$4.nextSibling,
|
|
@@ -7875,12 +7877,17 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
|
|
|
7875
7877
|
$76EG6$addEventListener(_el$5, "click", close_, true);
|
|
7876
7878
|
$76EG6$insert(_el$5, CloseIcon);
|
|
7877
7879
|
$76EG6$insert(_el$6, children);
|
|
7880
|
+
$76EG6$runHydrationEvents();
|
|
7878
7881
|
return _el$2;
|
|
7879
7882
|
})();
|
|
7880
7883
|
const elements_in_container = (() => {
|
|
7881
|
-
const _el$7 = $a59cde169150d10b$var$_tmpl$3
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
+
const _el$7 = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$3),
|
|
7885
|
+
_el$8 = _el$7.firstChild,
|
|
7886
|
+
[_el$9, _co$] = $76EG6$getNextMarker(_el$8.nextSibling),
|
|
7887
|
+
_el$10 = _el$9.nextSibling,
|
|
7888
|
+
[_el$11, _co$2] = $76EG6$getNextMarker(_el$10.nextSibling);
|
|
7889
|
+
$76EG6$insert(_el$7, backdrop, _el$9, _co$);
|
|
7890
|
+
$76EG6$insert(_el$7, slidein, _el$11, _co$2);
|
|
7884
7891
|
return _el$7;
|
|
7885
7892
|
})();
|
|
7886
7893
|
body.append(elements_in_container);
|
|
@@ -7933,7 +7940,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
|
|
|
7933
7940
|
}
|
|
7934
7941
|
$76EG6$delegateEvents(["click"]);
|
|
7935
7942
|
const $24f3fd73864991c0$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=option-list>`),
|
|
7936
|
-
$24f3fd73864991c0$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<button type=button><span class=size
|
|
7943
|
+
$24f3fd73864991c0$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<button type=button><span class=size></span><!$><!/>`),
|
|
7937
7944
|
$24f3fd73864991c0$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<span class=sold-out>`);
|
|
7938
7945
|
async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
7939
7946
|
let {
|
|
@@ -7952,7 +7959,7 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
7952
7959
|
CloseIcon: CloseIcon,
|
|
7953
7960
|
title_: title_,
|
|
7954
7961
|
children: [(() => {
|
|
7955
|
-
const _el$ = $24f3fd73864991c0$var$_tmpl$
|
|
7962
|
+
const _el$ = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$);
|
|
7956
7963
|
$76EG6$insert(_el$, () => items_.map(_ref2 => {
|
|
7957
7964
|
let {
|
|
7958
7965
|
size_name_: size_name_,
|
|
@@ -7960,8 +7967,10 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
7960
7967
|
id_: id_
|
|
7961
7968
|
} = _ref2;
|
|
7962
7969
|
const button = (() => {
|
|
7963
|
-
const _el$2 = $24f3fd73864991c0$var$_tmpl$2
|
|
7964
|
-
_el$3 = _el$2.firstChild
|
|
7970
|
+
const _el$2 = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$2),
|
|
7971
|
+
_el$3 = _el$2.firstChild,
|
|
7972
|
+
_el$4 = _el$3.nextSibling,
|
|
7973
|
+
[_el$5, _co$] = $76EG6$getNextMarker(_el$4.nextSibling);
|
|
7965
7974
|
_el$2.$$click = () => {
|
|
7966
7975
|
size_selected(id_);
|
|
7967
7976
|
close_();
|
|
@@ -7969,10 +7978,11 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
7969
7978
|
$76EG6$className(_el$2, "option" + (is_available_ ? " available" : ""));
|
|
7970
7979
|
$76EG6$insert(_el$3, size_name_);
|
|
7971
7980
|
$76EG6$insert(_el$2, !is_available_ && (() => {
|
|
7972
|
-
const _el$
|
|
7973
|
-
$76EG6$insert(_el$
|
|
7974
|
-
return _el$
|
|
7975
|
-
})(),
|
|
7981
|
+
const _el$6 = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$3);
|
|
7982
|
+
$76EG6$insert(_el$6, () => $332ef338faf216a4$export$7c081fdbc65b6a2a(exitable_oos_iterator));
|
|
7983
|
+
return _el$6;
|
|
7984
|
+
})(), _el$5, _co$);
|
|
7985
|
+
$76EG6$runHydrationEvents();
|
|
7976
7986
|
return _el$2;
|
|
7977
7987
|
})();
|
|
7978
7988
|
if (!is_available_) button.disabled = true;
|
|
@@ -8004,10 +8014,11 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
|
8004
8014
|
$adc0bb548fdb574f$var$inserted = true;
|
|
8005
8015
|
}
|
|
8006
8016
|
return (() => {
|
|
8007
|
-
const _el$ = $adc0bb548fdb574f$var$_tmpl$
|
|
8017
|
+
const _el$ = $76EG6$getNextElement($adc0bb548fdb574f$var$_tmpl$);
|
|
8008
8018
|
$76EG6$className(_el$, "depict-placeholder".concat(extra_classes ? " " + extra_classes : ""));
|
|
8009
8019
|
$76EG6$spread(_el$, attributes, false, false);
|
|
8010
8020
|
$76EG6$effect(_$p => $76EG6$style(_el$, style ? style : "width:".concat(width, ";height:").concat(height, ";"), _$p));
|
|
8021
|
+
$76EG6$runHydrationEvents();
|
|
8011
8022
|
return _el$;
|
|
8012
8023
|
})();
|
|
8013
8024
|
};
|
|
@@ -8020,25 +8031,27 @@ const $adc0bb548fdb574f$export$d613f5b6d0a331a8 = _ref2 => {
|
|
|
8020
8031
|
style: "position:relative;width:100%;padding-bottom:".concat(1 / aspect_ratio * 100, "%")
|
|
8021
8032
|
}, attributes));
|
|
8022
8033
|
};
|
|
8023
|
-
const $2e6ca552eb0e0b2b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class="depict recommendation_container"
|
|
8034
|
+
const $2e6ca552eb0e0b2b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class="depict recommendation_container"><!$><!/><div class=grid>`),
|
|
8024
8035
|
$2e6ca552eb0e0b2b$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<h4 class=recs_header>`);
|
|
8025
8036
|
const $2e6ca552eb0e0b2b$export$97f31f44c68c1d5 = function (title) {
|
|
8026
8037
|
let surface_classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
8027
8038
|
return $a285401a927e4306$export$eb0b9ed911409b57(e => e.classList.add(...surface_classes), (() => {
|
|
8028
|
-
const _el$ = $2e6ca552eb0e0b2b$var$_tmpl$
|
|
8029
|
-
_el$
|
|
8039
|
+
const _el$ = $76EG6$getNextElement($2e6ca552eb0e0b2b$var$_tmpl$),
|
|
8040
|
+
_el$3 = _el$.firstChild,
|
|
8041
|
+
[_el$4, _co$] = $76EG6$getNextMarker(_el$3.nextSibling),
|
|
8042
|
+
_el$2 = _el$4.nextSibling;
|
|
8030
8043
|
$76EG6$insert(_el$, title && typeof title === "string" ? (() => {
|
|
8031
|
-
const _el$
|
|
8032
|
-
$76EG6$insert(_el$
|
|
8033
|
-
return _el$
|
|
8034
|
-
})() : title, _el$
|
|
8044
|
+
const _el$5 = $76EG6$getNextElement($2e6ca552eb0e0b2b$var$_tmpl$2);
|
|
8045
|
+
$76EG6$insert(_el$5, title);
|
|
8046
|
+
return _el$5;
|
|
8047
|
+
})() : title, _el$4, _co$);
|
|
8035
8048
|
return _el$;
|
|
8036
8049
|
})());
|
|
8037
8050
|
};
|
|
8038
8051
|
const $ad0b2591dac160be$var$_tmpl$ = /*#__PURE__*/$76EG6$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">`),
|
|
8039
8052
|
$ad0b2591dac160be$var$_tmpl$2 = /*#__PURE__*/$76EG6$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">`);
|
|
8040
|
-
const $ad0b2591dac160be$export$32a55d57d151bc5a = () => $ad0b2591dac160be$var$_tmpl$
|
|
8041
|
-
const $ad0b2591dac160be$export$ddd70fdae1b350e6 = () => $ad0b2591dac160be$var$_tmpl$2
|
|
8053
|
+
const $ad0b2591dac160be$export$32a55d57d151bc5a = () => $76EG6$getNextElement($ad0b2591dac160be$var$_tmpl$);
|
|
8054
|
+
const $ad0b2591dac160be$export$ddd70fdae1b350e6 = () => $76EG6$getNextElement($ad0b2591dac160be$var$_tmpl$2);
|
|
8042
8055
|
const $9a74c17d1ef21fdf$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<button class=color-circle-container><div class=outer-circle><div class=inner-circle>`),
|
|
8043
8056
|
$9a74c17d1ef21fdf$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=color-picker role=form aria-label="Color picker">`);
|
|
8044
8057
|
/**
|
|
@@ -8052,7 +8065,7 @@ function $9a74c17d1ef21fdf$var$ColorCircle(_ref) {
|
|
|
8052
8065
|
onHoverUpdate: onHoverUpdate
|
|
8053
8066
|
} = _ref;
|
|
8054
8067
|
const button = (() => {
|
|
8055
|
-
const _el$ = $9a74c17d1ef21fdf$var$_tmpl$
|
|
8068
|
+
const _el$ = $76EG6$getNextElement($9a74c17d1ef21fdf$var$_tmpl$),
|
|
8056
8069
|
_el$2 = _el$.firstChild,
|
|
8057
8070
|
_el$3 = _el$2.firstChild;
|
|
8058
8071
|
_el$.$$click = e => onClick(e.currentTarget, color);
|
|
@@ -8069,6 +8082,7 @@ function $9a74c17d1ef21fdf$var$ColorCircle(_ref) {
|
|
|
8069
8082
|
_v$2: undefined,
|
|
8070
8083
|
_v$3: undefined
|
|
8071
8084
|
});
|
|
8085
|
+
$76EG6$runHydrationEvents();
|
|
8072
8086
|
return _el$;
|
|
8073
8087
|
})();
|
|
8074
8088
|
button.addEventListener("mouseenter", $5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => onHoverUpdate(button, color, true)));
|
|
@@ -8141,7 +8155,7 @@ function $9a74c17d1ef21fdf$export$590326cc34f49e2d(_ref2) {
|
|
|
8141
8155
|
if (initial_index > -1) setActiveIndex(initial_index);
|
|
8142
8156
|
if (onlyCircles) return circles;
|
|
8143
8157
|
return (() => {
|
|
8144
|
-
const _el$4 = $9a74c17d1ef21fdf$var$_tmpl$2
|
|
8158
|
+
const _el$4 = $76EG6$getNextElement($9a74c17d1ef21fdf$var$_tmpl$2);
|
|
8145
8159
|
$76EG6$insert(_el$4, circles);
|
|
8146
8160
|
return _el$4;
|
|
8147
8161
|
})();
|
|
@@ -8177,12 +8191,12 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
8177
8191
|
} = _ref;
|
|
8178
8192
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
8179
8193
|
innerRef = (() => {
|
|
8180
|
-
const _el$ = $0f55c2bc0a7b363b$var$_tmpl$
|
|
8194
|
+
const _el$ = $76EG6$getNextElement($0f55c2bc0a7b363b$var$_tmpl$);
|
|
8181
8195
|
$76EG6$insert(_el$, children);
|
|
8182
8196
|
return _el$;
|
|
8183
8197
|
})();
|
|
8184
8198
|
outerRef = (() => {
|
|
8185
|
-
const _el$2 = $0f55c2bc0a7b363b$var$_tmpl$2
|
|
8199
|
+
const _el$2 = $76EG6$getNextElement($0f55c2bc0a7b363b$var$_tmpl$2);
|
|
8186
8200
|
$76EG6$insert(_el$2, innerRef);
|
|
8187
8201
|
return _el$2;
|
|
8188
8202
|
})();
|
|
@@ -8328,8 +8342,9 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
|
|
|
8328
8342
|
$241f2f02cc612a49$export$de56f1198d121036(image_options, () => {}); // noop function is to allow to get here quickly by "jump to function definition"
|
|
8329
8343
|
$b000f5ef6ce456d9$export$8048b892d651b310(new Error("no image src provided: " + src));
|
|
8330
8344
|
return (() => {
|
|
8331
|
-
const _el$ = $9ef5ce4804a3b61b$var$_tmpl$
|
|
8345
|
+
const _el$ = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$);
|
|
8332
8346
|
$76EG6$spread(_el$, image_options, false, false);
|
|
8347
|
+
$76EG6$runHydrationEvents();
|
|
8333
8348
|
return _el$;
|
|
8334
8349
|
})(); // we don't want everything to fail if someone misused this component
|
|
8335
8350
|
}
|
|
@@ -8341,13 +8356,14 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
|
|
|
8341
8356
|
const format = formats[i];
|
|
8342
8357
|
const srcset = $9ef5ce4804a3b61b$var$make_srcset(src, format, resolutions);
|
|
8343
8358
|
sources.push((() => {
|
|
8344
|
-
const _el$2 = $9ef5ce4804a3b61b$var$_tmpl$2
|
|
8359
|
+
const _el$2 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$2);
|
|
8345
8360
|
$76EG6$setAttribute(_el$2, "type", "image/".concat(format));
|
|
8346
8361
|
$76EG6$spread(_el$2, set_dataset ? {
|
|
8347
8362
|
"data-srcset": srcset
|
|
8348
8363
|
} : {
|
|
8349
8364
|
srcset: srcset
|
|
8350
8365
|
}, false, false);
|
|
8366
|
+
$76EG6$runHydrationEvents();
|
|
8351
8367
|
return _el$2;
|
|
8352
8368
|
})());
|
|
8353
8369
|
}
|
|
@@ -8357,8 +8373,9 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
|
|
|
8357
8373
|
delete opts_without_src["src"];
|
|
8358
8374
|
delete opts_without_src["srcset"];
|
|
8359
8375
|
const the_image = (() => {
|
|
8360
|
-
const _el$3 = $9ef5ce4804a3b61b$var$_tmpl$
|
|
8376
|
+
const _el$3 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$);
|
|
8361
8377
|
$76EG6$spread(_el$3, opts_without_src, false, false);
|
|
8378
|
+
$76EG6$runHydrationEvents();
|
|
8362
8379
|
return _el$3;
|
|
8363
8380
|
})(); // create image
|
|
8364
8381
|
sources.push(the_image); // chrome seems to be the dumbest piece of cake that has ever existed and just load the first source?????
|
|
@@ -8368,7 +8385,7 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
|
|
|
8368
8385
|
for (let i = 0; i < sources.length; i++) sizes_setter_(sources[i]).catch((0, $b000f5ef6ce456d9$export$8048b892d651b310));
|
|
8369
8386
|
// embed all sources into a <picture> so that the browser understands they're "together"
|
|
8370
8387
|
const picture = (() => {
|
|
8371
|
-
const _el$4 = $9ef5ce4804a3b61b$var$_tmpl$3
|
|
8388
|
+
const _el$4 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$3);
|
|
8372
8389
|
$76EG6$insert(_el$4, sources);
|
|
8373
8390
|
return _el$4;
|
|
8374
8391
|
})();
|
|
@@ -8403,7 +8420,7 @@ function $9ef5ce4804a3b61b$var$optimized_img_url_generator(format, url, width) {
|
|
|
8403
8420
|
}
|
|
8404
8421
|
const $c987460cedc0d7ec$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`),
|
|
8405
8422
|
$c987460cedc0d7ec$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<canvas class=depict-img-filler height=3000>`),
|
|
8406
|
-
$c987460cedc0d7ec$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<div style=position:relative><div class=depict-img-cont
|
|
8423
|
+
$c987460cedc0d7ec$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<div style=position:relative><div class=depict-img-cont></div><!$><!/>`);
|
|
8407
8424
|
const $c987460cedc0d7ec$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
8408
8425
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
8409
8426
|
const $c987460cedc0d7ec$var$add_nolazy_to_placeholder = type => type === "placeholder" ? "nolazy" : "";
|
|
@@ -8436,7 +8453,7 @@ function $c987460cedc0d7ec$var$Image(_ref2) {
|
|
|
8436
8453
|
...image_options
|
|
8437
8454
|
} = _ref2;
|
|
8438
8455
|
const div = (() => {
|
|
8439
|
-
const _el$ = $c987460cedc0d7ec$var$_tmpl$
|
|
8456
|
+
const _el$ = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$);
|
|
8440
8457
|
$76EG6$effect(_$p => $76EG6$style(_el$, "position:relative;width:100%;padding-bottom:".concat(1 / aspect_ratio * 100, "%"), _$p));
|
|
8441
8458
|
return _el$;
|
|
8442
8459
|
})();
|
|
@@ -8464,15 +8481,17 @@ function $c987460cedc0d7ec$var$CompatibleImage(_ref3) {
|
|
|
8464
8481
|
...image_options
|
|
8465
8482
|
} = _ref3;
|
|
8466
8483
|
const canvas = (() => {
|
|
8467
|
-
const _el$2 = $c987460cedc0d7ec$var$_tmpl$2
|
|
8484
|
+
const _el$2 = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$2);
|
|
8468
8485
|
$76EG6$setAttribute(_el$2, "width", 3000 * aspect_ratio);
|
|
8469
8486
|
return _el$2;
|
|
8470
8487
|
})();
|
|
8471
8488
|
const sourceset_component = $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
8472
8489
|
const IMG_tag = (_image_options$src2 = image_options.src) !== null && _image_options$src2 !== void 0 && _image_options$src2.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
8473
8490
|
return (() => {
|
|
8474
|
-
const _el$3 = $c987460cedc0d7ec$var$_tmpl$3
|
|
8475
|
-
_el$4 = _el$3.firstChild
|
|
8491
|
+
const _el$3 = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$3),
|
|
8492
|
+
_el$4 = _el$3.firstChild,
|
|
8493
|
+
_el$5 = _el$4.nextSibling,
|
|
8494
|
+
[_el$6, _co$] = $76EG6$getNextMarker(_el$5.nextSibling);
|
|
8476
8495
|
$76EG6$insert(_el$4, $76EG6$createComponent(IMG_tag, $76EG6$mergeProps({
|
|
8477
8496
|
alt: alt
|
|
8478
8497
|
}, remove_on_error ? {
|
|
@@ -8482,7 +8501,7 @@ function $c987460cedc0d7ec$var$CompatibleImage(_ref3) {
|
|
|
8482
8501
|
return $a285401a927e4306$export$22a65337c1b43b1f(["depict-img-comp", image_options.class, $c987460cedc0d7ec$var$add_nolazy_to_placeholder(rendering_options === null || rendering_options === void 0 ? void 0 : rendering_options.type)]);
|
|
8483
8502
|
}
|
|
8484
8503
|
})));
|
|
8485
|
-
$76EG6$insert(_el$3, canvas,
|
|
8504
|
+
$76EG6$insert(_el$3, canvas, _el$6, _co$);
|
|
8486
8505
|
return _el$3;
|
|
8487
8506
|
})();
|
|
8488
8507
|
}
|
|
@@ -8506,7 +8525,7 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
8506
8525
|
}
|
|
8507
8526
|
var $8254bab8001eaa15$exports = {};
|
|
8508
8527
|
$8254bab8001eaa15$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
8509
|
-
const $73f0a7e385687d5d$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=images-container
|
|
8528
|
+
const $73f0a7e385687d5d$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
8510
8529
|
$73f0a7e385687d5d$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=second-image-container>`);
|
|
8511
8530
|
// Saving bytez
|
|
8512
8531
|
// Maybe? @Daniel
|
|
@@ -8654,13 +8673,15 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
|
|
|
8654
8673
|
});
|
|
8655
8674
|
const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
|
|
8656
8675
|
const images_container = (() => {
|
|
8657
|
-
const _el$ = $73f0a7e385687d5d$var$_tmpl$
|
|
8658
|
-
_el$
|
|
8676
|
+
const _el$ = $76EG6$getNextElement($73f0a7e385687d5d$var$_tmpl$),
|
|
8677
|
+
_el$3 = _el$.firstChild,
|
|
8678
|
+
[_el$4, _co$] = $76EG6$getNextMarker(_el$3.nextSibling),
|
|
8679
|
+
_el$2 = _el$4.nextSibling;
|
|
8659
8680
|
$76EG6$insert(_el$, !no_second_img && (() => {
|
|
8660
|
-
const _el$
|
|
8661
|
-
$76EG6$insert(_el$
|
|
8662
|
-
return _el$
|
|
8663
|
-
})(), _el$
|
|
8681
|
+
const _el$5 = $76EG6$getNextElement($73f0a7e385687d5d$var$_tmpl$2);
|
|
8682
|
+
$76EG6$insert(_el$5, second_image);
|
|
8683
|
+
return _el$5;
|
|
8684
|
+
})(), _el$4, _co$);
|
|
8664
8685
|
$76EG6$insert(_el$2, main_image);
|
|
8665
8686
|
return _el$;
|
|
8666
8687
|
})();
|