@depict-ai/utilishared 2.0.11 → 2.0.15
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 +53 -53
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +53 -53
- package/latest/index.cjs +53 -53
- package/latest/index.d.ts +1 -1
- package/latest/index.js +53 -53
- package/package.json +3 -3
- package/server/ES10/index.cjs +18 -18
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +18 -18
- package/server/latest/index.cjs +18 -18
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +18 -18
package/latest/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
13
13
|
function $parcel$interopDefault(a) {
|
|
14
14
|
return a && a.__esModule ? a.default : a;
|
|
15
15
|
}
|
|
16
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.
|
|
16
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.15";
|
|
17
17
|
const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
18
18
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
19
19
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -3752,7 +3752,7 @@ function $b83068cbd26dcc41$export$e4741190ccada479(element, selector) {
|
|
|
3752
3752
|
}
|
|
3753
3753
|
return result;
|
|
3754
3754
|
}
|
|
3755
|
-
|
|
3755
|
+
var $ef9394fafebd5eab$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class="depict-slider depict">`),
|
|
3756
3756
|
$ef9394fafebd5eab$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div class=sliding>`),
|
|
3757
3757
|
$ef9394fafebd5eab$var$_tmpl$3 = /*#__PURE__*/$qgKv4$template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
|
|
3758
3758
|
$ef9394fafebd5eab$var$_tmpl$4 = /*#__PURE__*/$qgKv4$template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`);
|
|
@@ -4730,7 +4730,7 @@ async function $e61f371a9bcdeb2f$export$cd12721587f4f16d(t, rendering_options, o
|
|
|
4730
4730
|
elements: container ? container : [slider.container]
|
|
4731
4731
|
};
|
|
4732
4732
|
}
|
|
4733
|
-
|
|
4733
|
+
var $d352a8202024de5c$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<button class=load_more>`);
|
|
4734
4734
|
async function $d352a8202024de5c$export$30933c637c977eef({
|
|
4735
4735
|
t: t,
|
|
4736
4736
|
recs: recs,
|
|
@@ -4871,7 +4871,7 @@ function $d352a8202024de5c$var$setup_load_more(t, root, chunk_size, view_more_te
|
|
|
4871
4871
|
} = t,
|
|
4872
4872
|
load_more_cont = $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787(`<div class="load-more-container"></div>`),
|
|
4873
4873
|
load_button = load_more_cont.appendChild((() => {
|
|
4874
|
-
|
|
4874
|
+
var _el$ = $qgKv4$getNextElement($d352a8202024de5c$var$_tmpl$);
|
|
4875
4875
|
$qgKv4$insert(_el$, view_more_text);
|
|
4876
4876
|
return _el$;
|
|
4877
4877
|
})());
|
|
@@ -5020,7 +5020,7 @@ const $63cbb5de51d11596$export$ffb0004e005737fa = ({
|
|
|
5020
5020
|
$63cbb5de51d11596$var$appendChild(df, children);
|
|
5021
5021
|
return df;
|
|
5022
5022
|
};
|
|
5023
|
-
|
|
5023
|
+
var $ca66c9553e84df02$var$_tmpl$ = /*#__PURE__*/$qgKv4$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">`),
|
|
5024
5024
|
$ca66c9553e84df02$var$_tmpl$2 = /*#__PURE__*/$qgKv4$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">`);
|
|
5025
5025
|
const $ca66c9553e84df02$export$dc84183312f0c201 = /*@__PURE__*/(() => $qgKv4$getNextElement($ca66c9553e84df02$var$_tmpl$))();
|
|
5026
5026
|
const $ca66c9553e84df02$export$6038895ac52bd044 = /*@__PURE__*/(() => $qgKv4$getNextElement($ca66c9553e84df02$var$_tmpl$2))();
|
|
@@ -5059,7 +5059,7 @@ function $693e2a1517bef984$export$f8913c8a18f7ca21(iterables) {
|
|
|
5059
5059
|
}))).then($b04e44fad5ea42c7$export$b3bbfd758f11cfa9(ourselves.exit));
|
|
5060
5060
|
return ourselves;
|
|
5061
5061
|
}
|
|
5062
|
-
|
|
5062
|
+
var $30e801eaa3dc319e$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<style type=text/css>`),
|
|
5063
5063
|
$30e801eaa3dc319e$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div>`);
|
|
5064
5064
|
const $30e801eaa3dc319e$export$717f13d9ba00ca19 = (min, max) => `@media ${min ? `(min-width:${min})` : ``}${min && max ? ` and ` : ``}${max ? `(max-width:${max})` : ``}`;
|
|
5065
5065
|
async function $30e801eaa3dc319e$export$c84671f46d6a1ca({
|
|
@@ -5119,7 +5119,7 @@ async function $30e801eaa3dc319e$export$c84671f46d6a1ca({
|
|
|
5119
5119
|
if (button) {
|
|
5120
5120
|
button_class = $460df8550f9d084d$export$a6db784f019668ba();
|
|
5121
5121
|
const button_container = (() => {
|
|
5122
|
-
|
|
5122
|
+
var _el$2 = $qgKv4$getNextElement($30e801eaa3dc319e$var$_tmpl$2);
|
|
5123
5123
|
$qgKv4$className(_el$2, "load-more-container " + button_class);
|
|
5124
5124
|
$qgKv4$insert(_el$2, () => $b9b0dba897847b2a$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button));
|
|
5125
5125
|
return _el$2;
|
|
@@ -5419,7 +5419,7 @@ function $d31b48b85102c1ec$export$80039a49055269fb() {
|
|
|
5419
5419
|
};
|
|
5420
5420
|
return Object.fromEntries(["left", "right"].map(side => [side, [new_arrowimage()]]));
|
|
5421
5421
|
}
|
|
5422
|
-
|
|
5422
|
+
var $a75adf1478c4522f$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<img src=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+>`);
|
|
5423
5423
|
function $a75adf1478c4522f$export$af88b4929c2dc86() {
|
|
5424
5424
|
const img = $qgKv4$getNextElement($a75adf1478c4522f$var$_tmpl$);
|
|
5425
5425
|
return {
|
|
@@ -5427,7 +5427,7 @@ function $a75adf1478c4522f$export$af88b4929c2dc86() {
|
|
|
5427
5427
|
right: [img.cloneNode()]
|
|
5428
5428
|
};
|
|
5429
5429
|
}
|
|
5430
|
-
|
|
5430
|
+
var $2436f68ea927d4a8$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<label class=checkbox_container><input type=radio><span class=checkmark>`);
|
|
5431
5431
|
function $2436f68ea927d4a8$export$1d17a045bcc711b1({
|
|
5432
5432
|
t: t,
|
|
5433
5433
|
navcont_insertion_fn: navcont_insertion_fn,
|
|
@@ -5516,7 +5516,7 @@ function $2436f68ea927d4a8$export$1d17a045bcc711b1({
|
|
|
5516
5516
|
}
|
|
5517
5517
|
function $2436f68ea927d4a8$export$a09282b33e69b43f(unique_name) {
|
|
5518
5518
|
return (() => {
|
|
5519
|
-
|
|
5519
|
+
var _el$ = $qgKv4$getNextElement($2436f68ea927d4a8$var$_tmpl$),
|
|
5520
5520
|
_el$2 = _el$.firstChild;
|
|
5521
5521
|
$qgKv4$setAttribute(_el$2, "name", `radio-${unique_name}`);
|
|
5522
5522
|
return _el$;
|
|
@@ -5709,7 +5709,7 @@ function $52292921bc0fc31f$export$5723caf9a8335aa6(_t, fraction = 1, max_steps,
|
|
|
5709
5709
|
mutation_plugin: mutation_plugin
|
|
5710
5710
|
};
|
|
5711
5711
|
}
|
|
5712
|
-
|
|
5712
|
+
var $f78bc6a06402a6cf$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class=depict_slider_scroll_bar>`),
|
|
5713
5713
|
$f78bc6a06402a6cf$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div class=depict_slider_scroll_container>`);
|
|
5714
5714
|
function $f78bc6a06402a6cf$export$93223e488e7ee078(options) {
|
|
5715
5715
|
function constructor_plugin(_slider_options) {
|
|
@@ -5741,7 +5741,7 @@ function $f78bc6a06402a6cf$export$93223e488e7ee078(options) {
|
|
|
5741
5741
|
mutation_plugin: mutation_plugin
|
|
5742
5742
|
};
|
|
5743
5743
|
}
|
|
5744
|
-
|
|
5744
|
+
var $06fe260f91efff62$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div style="position:absolute;width:1em;overflow:scroll;scroll-snap-type:x mandatory;"><div style=scroll-snap-align:start;color:transparent;>test`);
|
|
5745
5745
|
function $06fe260f91efff62$export$b36d2489a5a16728(_t, {
|
|
5746
5746
|
snapEvery: snapEvery,
|
|
5747
5747
|
align: align
|
|
@@ -7271,13 +7271,13 @@ const $690d8897acf7a743$var$get_voyado_id = () => {
|
|
|
7271
7271
|
const $690d8897acf7a743$export$a739d9a07da7f9ce = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9(() => {
|
|
7272
7272
|
$43683b1103edab15$export$93ae15b1ae509334($690d8897acf7a743$var$get_voyado_id);
|
|
7273
7273
|
});
|
|
7274
|
-
|
|
7274
|
+
var $769ce417b39aa7d3$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<button>`);
|
|
7275
7275
|
function $769ce417b39aa7d3$export$4a3043e508dd72f0({
|
|
7276
7276
|
children: children,
|
|
7277
7277
|
...attributes
|
|
7278
7278
|
}) {
|
|
7279
7279
|
const button = (() => {
|
|
7280
|
-
|
|
7280
|
+
var _el$ = $qgKv4$getNextElement($769ce417b39aa7d3$var$_tmpl$);
|
|
7281
7281
|
$qgKv4$spread(_el$, $qgKv4$mergeProps(attributes, {
|
|
7282
7282
|
"type": "button"
|
|
7283
7283
|
}), false, true);
|
|
@@ -7288,7 +7288,7 @@ function $769ce417b39aa7d3$export$4a3043e508dd72f0({
|
|
|
7288
7288
|
button.classList.add("show-more");
|
|
7289
7289
|
return button;
|
|
7290
7290
|
}
|
|
7291
|
-
|
|
7291
|
+
var $cf7ca80454d7b4c0$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class=slidein-backdrop>`),
|
|
7292
7292
|
$cf7ca80454d7b4c0$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div class=slidein><div class=header><span class=title></span><button class=close></button></div><div class=body>`),
|
|
7293
7293
|
$cf7ca80454d7b4c0$var$_tmpl$3 = /*#__PURE__*/$qgKv4$template(`<div class=depict><!$><!/><!$><!/>`);
|
|
7294
7294
|
async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({
|
|
@@ -7301,7 +7301,7 @@ async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({
|
|
|
7301
7301
|
const open_promise = new Promise(r => close_ = r);
|
|
7302
7302
|
const body = await (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).wait_for_element("body");
|
|
7303
7303
|
const backdrop = (() => {
|
|
7304
|
-
|
|
7304
|
+
var _el$ = $qgKv4$getNextElement($cf7ca80454d7b4c0$var$_tmpl$);
|
|
7305
7305
|
$qgKv4$addEventListener(_el$, "click", close_, true);
|
|
7306
7306
|
$qgKv4$runHydrationEvents();
|
|
7307
7307
|
return _el$;
|
|
@@ -7309,7 +7309,7 @@ async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({
|
|
|
7309
7309
|
const [exit_title_iterator, exitable_title_iterator] = $b8270fcf290bb3af$export$927664b47117acb0(title_);
|
|
7310
7310
|
const closing_handlers = [exit_title_iterator];
|
|
7311
7311
|
const slidein = (() => {
|
|
7312
|
-
|
|
7312
|
+
var _el$2 = $qgKv4$getNextElement($cf7ca80454d7b4c0$var$_tmpl$2),
|
|
7313
7313
|
_el$3 = _el$2.firstChild,
|
|
7314
7314
|
_el$4 = _el$3.firstChild,
|
|
7315
7315
|
_el$5 = _el$4.nextSibling,
|
|
@@ -7322,7 +7322,7 @@ async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({
|
|
|
7322
7322
|
return _el$2;
|
|
7323
7323
|
})();
|
|
7324
7324
|
const elements_in_container = (() => {
|
|
7325
|
-
|
|
7325
|
+
var _el$7 = $qgKv4$getNextElement($cf7ca80454d7b4c0$var$_tmpl$3),
|
|
7326
7326
|
_el$8 = _el$7.firstChild,
|
|
7327
7327
|
[_el$9, _co$] = $qgKv4$getNextMarker(_el$8.nextSibling),
|
|
7328
7328
|
_el$10 = _el$9.nextSibling,
|
|
@@ -7379,7 +7379,7 @@ async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({
|
|
|
7379
7379
|
};
|
|
7380
7380
|
}
|
|
7381
7381
|
$qgKv4$delegateEvents(["click"]);
|
|
7382
|
-
|
|
7382
|
+
var $72d170fd5c7cb3fe$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class=option-list>`),
|
|
7383
7383
|
$72d170fd5c7cb3fe$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<button type=button><span class=size></span><!$><!/>`),
|
|
7384
7384
|
$72d170fd5c7cb3fe$var$_tmpl$3 = /*#__PURE__*/$qgKv4$template(`<span class=sold-out>`);
|
|
7385
7385
|
async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
@@ -7398,14 +7398,14 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7398
7398
|
CloseIcon: CloseIcon,
|
|
7399
7399
|
title_: title_,
|
|
7400
7400
|
children: [(() => {
|
|
7401
|
-
|
|
7401
|
+
var _el$ = $qgKv4$getNextElement($72d170fd5c7cb3fe$var$_tmpl$);
|
|
7402
7402
|
$qgKv4$insert(_el$, () => items_.map(({
|
|
7403
7403
|
size_name_: size_name_,
|
|
7404
7404
|
is_available_: is_available_,
|
|
7405
7405
|
id_: id_
|
|
7406
7406
|
}) => {
|
|
7407
7407
|
const button = (() => {
|
|
7408
|
-
|
|
7408
|
+
var _el$2 = $qgKv4$getNextElement($72d170fd5c7cb3fe$var$_tmpl$2),
|
|
7409
7409
|
_el$3 = _el$2.firstChild,
|
|
7410
7410
|
_el$4 = _el$3.nextSibling,
|
|
7411
7411
|
[_el$5, _co$] = $qgKv4$getNextMarker(_el$4.nextSibling);
|
|
@@ -7416,7 +7416,7 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7416
7416
|
$qgKv4$className(_el$2, "option" + (is_available_ ? " available" : ""));
|
|
7417
7417
|
$qgKv4$insert(_el$3, size_name_);
|
|
7418
7418
|
$qgKv4$insert(_el$2, !is_available_ && (() => {
|
|
7419
|
-
|
|
7419
|
+
var _el$6 = $qgKv4$getNextElement($72d170fd5c7cb3fe$var$_tmpl$3);
|
|
7420
7420
|
$qgKv4$insert(_el$6, () => $8c97019b5f7b0d0e$export$7c081fdbc65b6a2a(exitable_oos_iterator));
|
|
7421
7421
|
return _el$6;
|
|
7422
7422
|
})(), _el$5, _co$);
|
|
@@ -7436,7 +7436,7 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7436
7436
|
$qgKv4$delegateEvents(["click"]);
|
|
7437
7437
|
var $895e8df2e6c8982e$exports = {};
|
|
7438
7438
|
$895e8df2e6c8982e$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
7439
|
-
|
|
7439
|
+
var $ad592d9ddbcffe72$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div>`);
|
|
7440
7440
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
7441
7441
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
7442
7442
|
width: width,
|
|
@@ -7451,7 +7451,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
7451
7451
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
7452
7452
|
}
|
|
7453
7453
|
return (() => {
|
|
7454
|
-
|
|
7454
|
+
var _el$ = $qgKv4$getNextElement($ad592d9ddbcffe72$var$_tmpl$);
|
|
7455
7455
|
$qgKv4$className(_el$, `depict-placeholder${extra_classes ? " " + extra_classes : ""}`);
|
|
7456
7456
|
$qgKv4$spread(_el$, attributes, false, false);
|
|
7457
7457
|
$qgKv4$effect(_$p => $qgKv4$style(_el$, style ? style : `width:${width};height:${height};`, _$p));
|
|
@@ -7467,25 +7467,25 @@ const $ad592d9ddbcffe72$export$d613f5b6d0a331a8 = ({
|
|
|
7467
7467
|
style: `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`
|
|
7468
7468
|
}, attributes));
|
|
7469
7469
|
};
|
|
7470
|
-
|
|
7470
|
+
var $fbe64cf2cf408e4f$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class="depict recommendation_container"><!$><!/><div class=grid>`),
|
|
7471
7471
|
$fbe64cf2cf408e4f$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<h4 class=recs_header>`);
|
|
7472
7472
|
const $fbe64cf2cf408e4f$export$97f31f44c68c1d5 = (title, surface_classes = []) => $b9b0dba897847b2a$export$eb0b9ed911409b57(e => e.classList.add(...surface_classes), (() => {
|
|
7473
|
-
|
|
7473
|
+
var _el$ = $qgKv4$getNextElement($fbe64cf2cf408e4f$var$_tmpl$),
|
|
7474
7474
|
_el$3 = _el$.firstChild,
|
|
7475
7475
|
[_el$4, _co$] = $qgKv4$getNextMarker(_el$3.nextSibling),
|
|
7476
7476
|
_el$2 = _el$4.nextSibling;
|
|
7477
7477
|
$qgKv4$insert(_el$, title && typeof title === "string" ? (() => {
|
|
7478
|
-
|
|
7478
|
+
var _el$5 = $qgKv4$getNextElement($fbe64cf2cf408e4f$var$_tmpl$2);
|
|
7479
7479
|
$qgKv4$insert(_el$5, title);
|
|
7480
7480
|
return _el$5;
|
|
7481
7481
|
})() : title, _el$4, _co$);
|
|
7482
7482
|
return _el$;
|
|
7483
7483
|
})());
|
|
7484
|
-
|
|
7484
|
+
var $7693290d077384da$var$_tmpl$ = /*#__PURE__*/$qgKv4$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">`),
|
|
7485
7485
|
$7693290d077384da$var$_tmpl$2 = /*#__PURE__*/$qgKv4$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">`);
|
|
7486
7486
|
const $7693290d077384da$export$32a55d57d151bc5a = () => $qgKv4$getNextElement($7693290d077384da$var$_tmpl$);
|
|
7487
7487
|
const $7693290d077384da$export$ddd70fdae1b350e6 = () => $qgKv4$getNextElement($7693290d077384da$var$_tmpl$2);
|
|
7488
|
-
|
|
7488
|
+
var $6f1582c15e13f2f0$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<button class=color-circle-container><div class=outer-circle><div class=inner-circle>`),
|
|
7489
7489
|
$6f1582c15e13f2f0$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div class=color-picker role=form aria-label="Color picker">`);
|
|
7490
7490
|
/**
|
|
7491
7491
|
* Internal color circle used in ColorPicker
|
|
@@ -7497,22 +7497,22 @@ function $6f1582c15e13f2f0$var$ColorCircle({
|
|
|
7497
7497
|
onHoverUpdate: onHoverUpdate
|
|
7498
7498
|
}) {
|
|
7499
7499
|
const button = (() => {
|
|
7500
|
-
|
|
7500
|
+
var _el$ = $qgKv4$getNextElement($6f1582c15e13f2f0$var$_tmpl$),
|
|
7501
7501
|
_el$2 = _el$.firstChild,
|
|
7502
7502
|
_el$3 = _el$2.firstChild;
|
|
7503
7503
|
_el$.$$click = e => onClick(e.currentTarget, color);
|
|
7504
7504
|
$qgKv4$effect(_p$ => {
|
|
7505
|
-
|
|
7505
|
+
var _v$ = color.label || "",
|
|
7506
7506
|
_v$2 = `border-color: ${color.value};`,
|
|
7507
7507
|
_v$3 = `background-color: ${color.value};`;
|
|
7508
|
-
_v$ !== _p$.
|
|
7509
|
-
_p$.
|
|
7510
|
-
_p$.
|
|
7508
|
+
_v$ !== _p$.e && $qgKv4$setAttribute(_el$, "title", _p$.e = _v$);
|
|
7509
|
+
_p$.t = $qgKv4$style(_el$2, _v$2, _p$.t);
|
|
7510
|
+
_p$.a = $qgKv4$style(_el$3, _v$3, _p$.a);
|
|
7511
7511
|
return _p$;
|
|
7512
7512
|
}, {
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7513
|
+
e: undefined,
|
|
7514
|
+
t: undefined,
|
|
7515
|
+
a: undefined
|
|
7516
7516
|
});
|
|
7517
7517
|
$qgKv4$runHydrationEvents();
|
|
7518
7518
|
return _el$;
|
|
@@ -7583,7 +7583,7 @@ function $6f1582c15e13f2f0$export$590326cc34f49e2d({
|
|
|
7583
7583
|
if (initial_index > -1) setActiveIndex(initial_index);
|
|
7584
7584
|
if (onlyCircles) return circles;
|
|
7585
7585
|
return (() => {
|
|
7586
|
-
|
|
7586
|
+
var _el$4 = $qgKv4$getNextElement($6f1582c15e13f2f0$var$_tmpl$2);
|
|
7587
7587
|
$qgKv4$insert(_el$4, circles);
|
|
7588
7588
|
return _el$4;
|
|
7589
7589
|
})();
|
|
@@ -7591,7 +7591,7 @@ function $6f1582c15e13f2f0$export$590326cc34f49e2d({
|
|
|
7591
7591
|
};
|
|
7592
7592
|
}
|
|
7593
7593
|
$qgKv4$delegateEvents(["click"]);
|
|
7594
|
-
|
|
7594
|
+
var $7f57d546b5d5b3d6$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div>`),
|
|
7595
7595
|
$7f57d546b5d5b3d6$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div style=overflow:hidden;height:0px;visibility:hidden aria-hidden=true>`);
|
|
7596
7596
|
const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
7597
7597
|
duration = 500,
|
|
@@ -7617,12 +7617,12 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
7617
7617
|
}) => {
|
|
7618
7618
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
7619
7619
|
innerRef = (() => {
|
|
7620
|
-
|
|
7620
|
+
var _el$ = $qgKv4$getNextElement($7f57d546b5d5b3d6$var$_tmpl$);
|
|
7621
7621
|
$qgKv4$insert(_el$, children);
|
|
7622
7622
|
return _el$;
|
|
7623
7623
|
})();
|
|
7624
7624
|
outerRef = (() => {
|
|
7625
|
-
|
|
7625
|
+
var _el$2 = $qgKv4$getNextElement($7f57d546b5d5b3d6$var$_tmpl$2);
|
|
7626
7626
|
$qgKv4$insert(_el$2, innerRef);
|
|
7627
7627
|
return _el$2;
|
|
7628
7628
|
})();
|
|
@@ -7676,7 +7676,7 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
7676
7676
|
};
|
|
7677
7677
|
var $0ffb759867ae20fc$exports = {};
|
|
7678
7678
|
$0ffb759867ae20fc$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
7679
|
-
|
|
7679
|
+
var $45af9e834781a9bc$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<img>`),
|
|
7680
7680
|
$45af9e834781a9bc$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<source sizes=0px>`),
|
|
7681
7681
|
$45af9e834781a9bc$var$_tmpl$3 = /*#__PURE__*/$qgKv4$template(`<picture>`);
|
|
7682
7682
|
const $45af9e834781a9bc$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
@@ -7757,7 +7757,7 @@ function $45af9e834781a9bc$export$a62825542f1bfcf5({
|
|
|
7757
7757
|
$649f456f663da9fc$export$de56f1198d121036(image_options, () => {}); // noop function is to allow to get here quickly by "jump to function definition"
|
|
7758
7758
|
$7547e32486a3abc0$export$8048b892d651b310(new Error("no image src provided: " + src));
|
|
7759
7759
|
return (() => {
|
|
7760
|
-
|
|
7760
|
+
var _el$ = $qgKv4$getNextElement($45af9e834781a9bc$var$_tmpl$);
|
|
7761
7761
|
$qgKv4$spread(_el$, image_options, false, false);
|
|
7762
7762
|
$qgKv4$runHydrationEvents();
|
|
7763
7763
|
return _el$;
|
|
@@ -7771,7 +7771,7 @@ function $45af9e834781a9bc$export$a62825542f1bfcf5({
|
|
|
7771
7771
|
const format = formats[i];
|
|
7772
7772
|
const srcset = $45af9e834781a9bc$var$make_srcset(src, format, resolutions);
|
|
7773
7773
|
sources.push((() => {
|
|
7774
|
-
|
|
7774
|
+
var _el$2 = $qgKv4$getNextElement($45af9e834781a9bc$var$_tmpl$2);
|
|
7775
7775
|
$qgKv4$setAttribute(_el$2, "type", `image/${format}`);
|
|
7776
7776
|
$qgKv4$spread(_el$2, set_dataset ? {
|
|
7777
7777
|
"data-srcset": srcset
|
|
@@ -7788,7 +7788,7 @@ function $45af9e834781a9bc$export$a62825542f1bfcf5({
|
|
|
7788
7788
|
delete opts_without_src["src"];
|
|
7789
7789
|
delete opts_without_src["srcset"];
|
|
7790
7790
|
const the_image = (() => {
|
|
7791
|
-
|
|
7791
|
+
var _el$3 = $qgKv4$getNextElement($45af9e834781a9bc$var$_tmpl$);
|
|
7792
7792
|
$qgKv4$spread(_el$3, opts_without_src, false, false);
|
|
7793
7793
|
$qgKv4$runHydrationEvents();
|
|
7794
7794
|
return _el$3;
|
|
@@ -7800,7 +7800,7 @@ function $45af9e834781a9bc$export$a62825542f1bfcf5({
|
|
|
7800
7800
|
for (let i = 0; i < sources.length; i++) sizes_setter_(sources[i]).catch((0, $7547e32486a3abc0$export$8048b892d651b310));
|
|
7801
7801
|
// embed all sources into a <picture> so that the browser understands they're "together"
|
|
7802
7802
|
const picture = (() => {
|
|
7803
|
-
|
|
7803
|
+
var _el$4 = $qgKv4$getNextElement($45af9e834781a9bc$var$_tmpl$3);
|
|
7804
7804
|
$qgKv4$insert(_el$4, sources);
|
|
7805
7805
|
return _el$4;
|
|
7806
7806
|
})();
|
|
@@ -7832,7 +7832,7 @@ function $45af9e834781a9bc$var$optimized_img_url_generator(format, url, width) {
|
|
|
7832
7832
|
// 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
|
|
7833
7833
|
return `${$45af9e834781a9bc$export$3d13beba9b52c947}?format=${format}&url=${encodeURIComponent(url)}&width=${width}`;
|
|
7834
7834
|
}
|
|
7835
|
-
|
|
7835
|
+
var $914971fb43986a16$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div>`),
|
|
7836
7836
|
$914971fb43986a16$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<canvas class=depict-img-filler height=3000>`),
|
|
7837
7837
|
$914971fb43986a16$var$_tmpl$3 = /*#__PURE__*/$qgKv4$template(`<div style=position:relative><div class=depict-img-cont></div><!$><!/>`);
|
|
7838
7838
|
const $914971fb43986a16$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
@@ -7864,7 +7864,7 @@ function $914971fb43986a16$var$Image({
|
|
|
7864
7864
|
...image_options
|
|
7865
7865
|
}) {
|
|
7866
7866
|
const div = (() => {
|
|
7867
|
-
|
|
7867
|
+
var _el$ = $qgKv4$getNextElement($914971fb43986a16$var$_tmpl$);
|
|
7868
7868
|
$qgKv4$effect(_$p => $qgKv4$style(_el$, `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`, _$p));
|
|
7869
7869
|
return _el$;
|
|
7870
7870
|
})();
|
|
@@ -7890,14 +7890,14 @@ function $914971fb43986a16$var$CompatibleImage({
|
|
|
7890
7890
|
...image_options
|
|
7891
7891
|
}) {
|
|
7892
7892
|
const canvas = (() => {
|
|
7893
|
-
|
|
7893
|
+
var _el$2 = $qgKv4$getNextElement($914971fb43986a16$var$_tmpl$2);
|
|
7894
7894
|
$qgKv4$setAttribute(_el$2, "width", 3000 * aspect_ratio);
|
|
7895
7895
|
return _el$2;
|
|
7896
7896
|
})();
|
|
7897
7897
|
const sourceset_component = $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
7898
7898
|
const IMG_tag = image_options.src?.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
7899
7899
|
return (() => {
|
|
7900
|
-
|
|
7900
|
+
var _el$3 = $qgKv4$getNextElement($914971fb43986a16$var$_tmpl$3),
|
|
7901
7901
|
_el$4 = _el$3.firstChild,
|
|
7902
7902
|
_el$5 = _el$4.nextSibling,
|
|
7903
7903
|
[_el$6, _co$] = $qgKv4$getNextMarker(_el$5.nextSibling);
|
|
@@ -7931,7 +7931,7 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
7931
7931
|
}
|
|
7932
7932
|
var $504e2aac6aea7baf$exports = {};
|
|
7933
7933
|
$504e2aac6aea7baf$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
7934
|
-
|
|
7934
|
+
var $8483d1d9fcee52ec$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
7935
7935
|
$8483d1d9fcee52ec$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div class=second-image-container>`);
|
|
7936
7936
|
// Saving bytez
|
|
7937
7937
|
// Maybe? @Daniel
|
|
@@ -8073,12 +8073,12 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
8073
8073
|
});
|
|
8074
8074
|
const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
|
|
8075
8075
|
const images_container = (() => {
|
|
8076
|
-
|
|
8076
|
+
var _el$ = $qgKv4$getNextElement($8483d1d9fcee52ec$var$_tmpl$),
|
|
8077
8077
|
_el$3 = _el$.firstChild,
|
|
8078
8078
|
[_el$4, _co$] = $qgKv4$getNextMarker(_el$3.nextSibling),
|
|
8079
8079
|
_el$2 = _el$4.nextSibling;
|
|
8080
8080
|
$qgKv4$insert(_el$, !no_second_img && (() => {
|
|
8081
|
-
|
|
8081
|
+
var _el$5 = $qgKv4$getNextElement($8483d1d9fcee52ec$var$_tmpl$2);
|
|
8082
8082
|
$qgKv4$insert(_el$5, second_image);
|
|
8083
8083
|
return _el$5;
|
|
8084
8084
|
})(), _el$4, _co$);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/utilishared",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
],
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@babel/core": "latest",
|
|
142
|
-
"@depict-ai/types": "^5.0.
|
|
142
|
+
"@depict-ai/types": "^5.0.5",
|
|
143
143
|
"@parcel/resolver-default": "^2.10.3",
|
|
144
144
|
"@sentry/cli": "^2.21.2",
|
|
145
145
|
"@sentry/types": "^7.75.1",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@babel/runtime": "latest",
|
|
155
155
|
"@babel/runtime-corejs3": "latest",
|
|
156
156
|
"@sentry/browser": "^7.75.1",
|
|
157
|
-
"solid-js": "^1.8.
|
|
157
|
+
"solid-js": "^1.8.12"
|
|
158
158
|
},
|
|
159
159
|
"type": "module",
|
|
160
160
|
"main": "ES10/index.cjs",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -275,7 +275,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
275
275
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
276
276
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
277
277
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
278
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.
|
|
278
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.15";
|
|
279
279
|
const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
280
280
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
281
281
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -4416,7 +4416,7 @@ function $bc463df3122a418b$export$e4741190ccada479(element, selector) {
|
|
|
4416
4416
|
}
|
|
4417
4417
|
return result;
|
|
4418
4418
|
}
|
|
4419
|
-
|
|
4419
|
+
var $08a94efe56c2b35f$var$_tmpl$ = ["<div", ' class="depict-slider depict"></div>'],
|
|
4420
4420
|
$08a94efe56c2b35f$var$_tmpl$2 = ["<div", ' class="sliding"></div>'],
|
|
4421
4421
|
$08a94efe56c2b35f$var$_tmpl$3 = ["<button", ' aria-label="Scroll left" class="left d-navbutton" type="button"></button>'],
|
|
4422
4422
|
$08a94efe56c2b35f$var$_tmpl$4 = ["<button", ' aria-label="Scroll right" class="right d-navbutton" type="button"></button>'];
|
|
@@ -5481,7 +5481,7 @@ async function $bbf8331c74194de9$export$cd12721587f4f16d(t, rendering_options, o
|
|
|
5481
5481
|
elements: container ? container : [slider.container]
|
|
5482
5482
|
};
|
|
5483
5483
|
}
|
|
5484
|
-
|
|
5484
|
+
var $14c1124272475590$var$_tmpl$ = ["<button", ' class="load_more">', "</button>"];
|
|
5485
5485
|
async function $14c1124272475590$export$30933c637c977eef(_ref) {
|
|
5486
5486
|
var _template_tool$data;
|
|
5487
5487
|
let {
|
|
@@ -5776,7 +5776,7 @@ const $f0d9ae7bf9bd697d$export$ffb0004e005737fa = (_ref2, _unknown) => {
|
|
|
5776
5776
|
$f0d9ae7bf9bd697d$var$appendChild(df, children);
|
|
5777
5777
|
return df;
|
|
5778
5778
|
};
|
|
5779
|
-
|
|
5779
|
+
var $5638de1dd37b2d4d$var$_tmpl$ = ["<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"></path></svg>'],
|
|
5780
5780
|
$5638de1dd37b2d4d$var$_tmpl$2 = ["<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"></path></svg>'];
|
|
5781
5781
|
const $5638de1dd37b2d4d$export$dc84183312f0c201 = /*@__PURE__*/(() => $lMD39$solidjsweb.ssr($5638de1dd37b2d4d$var$_tmpl$, $lMD39$solidjsweb.ssrHydrationKey()))();
|
|
5782
5782
|
const $5638de1dd37b2d4d$export$6038895ac52bd044 = /*@__PURE__*/(() => $lMD39$solidjsweb.ssr($5638de1dd37b2d4d$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey()))();
|
|
@@ -5817,7 +5817,7 @@ function $12a8c4258d1dd80f$export$f8913c8a18f7ca21(iterables) {
|
|
|
5817
5817
|
return ourselves;
|
|
5818
5818
|
}
|
|
5819
5819
|
let $0c2e69f971c62390$var$_Symbol$iterator, $0c2e69f971c62390$var$_Symbol$toPrimitive;
|
|
5820
|
-
|
|
5820
|
+
var $0c2e69f971c62390$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5821
5821
|
$0c2e69f971c62390$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5822
5822
|
const $0c2e69f971c62390$export$717f13d9ba00ca19 = (min, max) => "@media ".concat(min ? "(min-width:".concat(min, ")") : "").concat(min && max ? " and " : "").concat(max ? "(max-width:".concat(max, ")") : "");
|
|
5823
5823
|
async function $0c2e69f971c62390$export$c84671f46d6a1ca(_ref) {
|
|
@@ -6183,7 +6183,7 @@ function $554d31c9eaabf6ae$export$80039a49055269fb() {
|
|
|
6183
6183
|
};
|
|
6184
6184
|
return Object.fromEntries(["left", "right"].map(side => [side, [new_arrowimage()]]));
|
|
6185
6185
|
}
|
|
6186
|
-
|
|
6186
|
+
var $e193cbc89f3a1c6f$var$_tmpl$ = ["<img", ' src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+">'];
|
|
6187
6187
|
function $e193cbc89f3a1c6f$export$af88b4929c2dc86() {
|
|
6188
6188
|
const img = $lMD39$solidjsweb.ssr($e193cbc89f3a1c6f$var$_tmpl$, $lMD39$solidjsweb.ssrHydrationKey());
|
|
6189
6189
|
return {
|
|
@@ -6191,7 +6191,7 @@ function $e193cbc89f3a1c6f$export$af88b4929c2dc86() {
|
|
|
6191
6191
|
right: [img.cloneNode()]
|
|
6192
6192
|
};
|
|
6193
6193
|
}
|
|
6194
|
-
|
|
6194
|
+
var $6f926ca76dc3b69a$var$_tmpl$ = ["<label", ' class="checkbox_container"><input type="radio" name="', '"><span class="checkmark"></span></label>'];
|
|
6195
6195
|
function $6f926ca76dc3b69a$export$1d17a045bcc711b1(_ref) {
|
|
6196
6196
|
let {
|
|
6197
6197
|
t: t,
|
|
@@ -6478,7 +6478,7 @@ function $e243e127ad19fbf8$export$5723caf9a8335aa6(_t) {
|
|
|
6478
6478
|
mutation_plugin: mutation_plugin
|
|
6479
6479
|
};
|
|
6480
6480
|
}
|
|
6481
|
-
|
|
6481
|
+
var $c051348670fb93e1$var$_tmpl$ = ["<div", ' class="depict_slider_scroll_bar"></div>'],
|
|
6482
6482
|
$c051348670fb93e1$var$_tmpl$2 = ["<div", ' class="depict_slider_scroll_container"></div>'];
|
|
6483
6483
|
function $c051348670fb93e1$export$93223e488e7ee078(options) {
|
|
6484
6484
|
function constructor_plugin(_slider_options) {
|
|
@@ -6511,7 +6511,7 @@ function $c051348670fb93e1$export$93223e488e7ee078(options) {
|
|
|
6511
6511
|
mutation_plugin: mutation_plugin
|
|
6512
6512
|
};
|
|
6513
6513
|
}
|
|
6514
|
-
|
|
6514
|
+
var $d46a5140a5630463$var$_tmpl$ = ["<div", ' style="position:absolute;width:1em;overflow:scroll;scroll-snap-type:x mandatory;"><div style="scroll-snap-align:start;color:transparent;">test</div></div>'];
|
|
6515
6515
|
function $d46a5140a5630463$export$b36d2489a5a16728(_t) {
|
|
6516
6516
|
let {
|
|
6517
6517
|
snapEvery: snapEvery,
|
|
@@ -8120,7 +8120,7 @@ function $102c3c26150518b7$export$4a3043e508dd72f0(_ref) {
|
|
|
8120
8120
|
button.classList.add("show-more");
|
|
8121
8121
|
return button;
|
|
8122
8122
|
}
|
|
8123
|
-
|
|
8123
|
+
var $b99c603a5341f0ae$var$_tmpl$ = ["<div", ' class="slidein-backdrop"></div>'],
|
|
8124
8124
|
$b99c603a5341f0ae$var$_tmpl$2 = ["<div", ' class="slidein"><div class="header"><span class="title">', '</span><button class="close">', '</button></div><div class="body">', "</div></div>"],
|
|
8125
8125
|
$b99c603a5341f0ae$var$_tmpl$3 = ["<div", ' class="depict"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
|
|
8126
8126
|
async function $b99c603a5341f0ae$export$8a0e4d6f6abf7e90(_ref) {
|
|
@@ -8186,7 +8186,7 @@ async function $b99c603a5341f0ae$export$8a0e4d6f6abf7e90(_ref) {
|
|
|
8186
8186
|
on_close_: fn => closing_handlers.push(fn)
|
|
8187
8187
|
};
|
|
8188
8188
|
}
|
|
8189
|
-
|
|
8189
|
+
var $468dbae10b24d59f$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
8190
8190
|
$468dbae10b24d59f$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
8191
8191
|
$468dbae10b24d59f$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
8192
8192
|
async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
@@ -8250,17 +8250,17 @@ const $ba9b4cd7e24de87e$export$d613f5b6d0a331a8 = _ref2 => {
|
|
|
8250
8250
|
style: "position:relative;width:100%;padding-bottom:".concat(1 / aspect_ratio * 100, "%")
|
|
8251
8251
|
}, attributes));
|
|
8252
8252
|
};
|
|
8253
|
-
|
|
8253
|
+
var $d500491aef2925c7$var$_tmpl$ = ["<div", ' class="depict recommendation_container"><!--$-->', '<!--/--><div class="grid"></div></div>'],
|
|
8254
8254
|
$d500491aef2925c7$var$_tmpl$2 = ["<h4", ' class="recs_header">', "</h4>"];
|
|
8255
8255
|
const $d500491aef2925c7$export$97f31f44c68c1d5 = function (title) {
|
|
8256
8256
|
let surface_classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
8257
8257
|
return $51b78ec2cb40f07e$export$eb0b9ed911409b57(e => e.classList.add(...surface_classes), $lMD39$solidjsweb.ssr($d500491aef2925c7$var$_tmpl$, $lMD39$solidjsweb.ssrHydrationKey(), title && typeof title === "string" ? $lMD39$solidjsweb.ssr($d500491aef2925c7$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.escape(title)) : $lMD39$solidjsweb.escape(title)));
|
|
8258
8258
|
};
|
|
8259
|
-
|
|
8259
|
+
var $98ca99ff2fa5a542$var$_tmpl$ = ["<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"></path></svg>'],
|
|
8260
8260
|
$98ca99ff2fa5a542$var$_tmpl$2 = ["<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"></path></svg>'];
|
|
8261
8261
|
const $98ca99ff2fa5a542$export$32a55d57d151bc5a = () => $lMD39$solidjsweb.ssr($98ca99ff2fa5a542$var$_tmpl$, $lMD39$solidjsweb.ssrHydrationKey());
|
|
8262
8262
|
const $98ca99ff2fa5a542$export$ddd70fdae1b350e6 = () => $lMD39$solidjsweb.ssr($98ca99ff2fa5a542$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey());
|
|
8263
|
-
|
|
8263
|
+
var $57a111eb846a8d6a$var$_tmpl$ = ["<button", ' class="color-circle-container"', '><div class="outer-circle" style="', '"><div class="inner-circle" style="', '"></div></div></button>'],
|
|
8264
8264
|
$57a111eb846a8d6a$var$_tmpl$2 = ["<div", ' class="color-picker" role="form" aria-label="Color picker">', "</div>"];
|
|
8265
8265
|
/**
|
|
8266
8266
|
* Internal color circle used in ColorPicker
|
|
@@ -8346,7 +8346,7 @@ function $57a111eb846a8d6a$export$590326cc34f49e2d(_ref2) {
|
|
|
8346
8346
|
}
|
|
8347
8347
|
};
|
|
8348
8348
|
}
|
|
8349
|
-
|
|
8349
|
+
var $151f8676c5d42e80$var$_tmpl$ = ["<div", ">", "</div>"],
|
|
8350
8350
|
$151f8676c5d42e80$var$_tmpl$2 = ["<div", ' style="', '" aria-hidden="true">', "</div>"];
|
|
8351
8351
|
const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
8352
8352
|
let {
|
|
@@ -8431,7 +8431,7 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
8431
8431
|
};
|
|
8432
8432
|
var $4f104a7ebe4cdc54$exports = {};
|
|
8433
8433
|
$4f104a7ebe4cdc54$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
8434
|
-
|
|
8434
|
+
var $b42b9f62e8b6cb2d$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
8435
8435
|
const $b42b9f62e8b6cb2d$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
8436
8436
|
const $b42b9f62e8b6cb2d$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
8437
8437
|
function $b42b9f62e8b6cb2d$export$f39a7d0667e924a(what_to_watch) {
|
|
@@ -8574,7 +8574,7 @@ function $b42b9f62e8b6cb2d$var$optimized_img_url_generator(format, url, width) {
|
|
|
8574
8574
|
// 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
|
|
8575
8575
|
return "".concat($b42b9f62e8b6cb2d$export$3d13beba9b52c947, "?format=").concat(format, "&url=").concat(encodeURIComponent(url), "&width=").concat(width);
|
|
8576
8576
|
}
|
|
8577
|
-
|
|
8577
|
+
var $dfce76a4aeb41067$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
8578
8578
|
$dfce76a4aeb41067$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
8579
8579
|
$dfce76a4aeb41067$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
8580
8580
|
const $dfce76a4aeb41067$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
@@ -8665,7 +8665,7 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
8665
8665
|
}
|
|
8666
8666
|
var $be5deeed4683b89f$exports = {};
|
|
8667
8667
|
$be5deeed4683b89f$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";
|
|
8668
|
-
|
|
8668
|
+
var $8928a1027461fba4$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
8669
8669
|
$8928a1027461fba4$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
8670
8670
|
// Saving bytez
|
|
8671
8671
|
// Maybe? @Daniel
|
package/server/ES10/index.d.ts
CHANGED