@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/latest/index.cjs CHANGED
@@ -272,7 +272,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
272
272
  $parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
273
273
  $parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
274
274
  $parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
275
- const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.11";
275
+ const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.15";
276
276
  const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
277
277
  const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
278
278
  let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
@@ -4011,7 +4011,7 @@ function $1da560af170fb839$export$e4741190ccada479(element, selector) {
4011
4011
  }
4012
4012
  return result;
4013
4013
  }
4014
- const $1683d0164abd7c1d$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class="depict-slider depict">`),
4014
+ var $1683d0164abd7c1d$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class="depict-slider depict">`),
4015
4015
  $1683d0164abd7c1d$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=sliding>`),
4016
4016
  $1683d0164abd7c1d$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
4017
4017
  $1683d0164abd7c1d$var$_tmpl$4 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`);
@@ -4989,7 +4989,7 @@ async function $7af744346f17bf99$export$cd12721587f4f16d(t, rendering_options, o
4989
4989
  elements: container ? container : [slider.container]
4990
4990
  };
4991
4991
  }
4992
- const $66a2a93dfa520bc6$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button class=load_more>`);
4992
+ var $66a2a93dfa520bc6$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button class=load_more>`);
4993
4993
  async function $66a2a93dfa520bc6$export$30933c637c977eef({
4994
4994
  t: t,
4995
4995
  recs: recs,
@@ -5130,7 +5130,7 @@ function $66a2a93dfa520bc6$var$setup_load_more(t, root, chunk_size, view_more_te
5130
5130
  } = t,
5131
5131
  load_more_cont = $bf7f12fe044e41b2$export$d3e2a0560cbf4787(`<div class="load-more-container"></div>`),
5132
5132
  load_button = load_more_cont.appendChild((() => {
5133
- const _el$ = $z0IcO$solidjsweb.getNextElement($66a2a93dfa520bc6$var$_tmpl$);
5133
+ var _el$ = $z0IcO$solidjsweb.getNextElement($66a2a93dfa520bc6$var$_tmpl$);
5134
5134
  $z0IcO$solidjsweb.insert(_el$, view_more_text);
5135
5135
  return _el$;
5136
5136
  })());
@@ -5279,7 +5279,7 @@ const $107a74aa4ea5902d$export$ffb0004e005737fa = ({
5279
5279
  $107a74aa4ea5902d$var$appendChild(df, children);
5280
5280
  return df;
5281
5281
  };
5282
- 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">`),
5282
+ var $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">`),
5283
5283
  $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">`);
5284
5284
  const $c3af1bfb402a8820$export$dc84183312f0c201 = /*@__PURE__*/(() => $z0IcO$solidjsweb.getNextElement($c3af1bfb402a8820$var$_tmpl$))();
5285
5285
  const $c3af1bfb402a8820$export$6038895ac52bd044 = /*@__PURE__*/(() => $z0IcO$solidjsweb.getNextElement($c3af1bfb402a8820$var$_tmpl$2))();
@@ -5318,7 +5318,7 @@ function $ef237c2bba47492f$export$f8913c8a18f7ca21(iterables) {
5318
5318
  }))).then($268cbd9e4ade92db$export$b3bbfd758f11cfa9(ourselves.exit));
5319
5319
  return ourselves;
5320
5320
  }
5321
- const $1cc2444a0f1b992e$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<style type=text/css>`),
5321
+ var $1cc2444a0f1b992e$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<style type=text/css>`),
5322
5322
  $1cc2444a0f1b992e$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
5323
5323
  const $1cc2444a0f1b992e$export$717f13d9ba00ca19 = (min, max) => `@media ${min ? `(min-width:${min})` : ``}${min && max ? ` and ` : ``}${max ? `(max-width:${max})` : ``}`;
5324
5324
  async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
@@ -5378,7 +5378,7 @@ async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
5378
5378
  if (button) {
5379
5379
  button_class = $650b64c1b384c895$export$a6db784f019668ba();
5380
5380
  const button_container = (() => {
5381
- const _el$2 = $z0IcO$solidjsweb.getNextElement($1cc2444a0f1b992e$var$_tmpl$2);
5381
+ var _el$2 = $z0IcO$solidjsweb.getNextElement($1cc2444a0f1b992e$var$_tmpl$2);
5382
5382
  $z0IcO$solidjsweb.className(_el$2, "load-more-container " + button_class);
5383
5383
  $z0IcO$solidjsweb.insert(_el$2, () => $90e0b983530610e7$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button));
5384
5384
  return _el$2;
@@ -5678,7 +5678,7 @@ function $a8a0385b88626561$export$80039a49055269fb() {
5678
5678
  };
5679
5679
  return Object.fromEntries(["left", "right"].map(side => [side, [new_arrowimage()]]));
5680
5680
  }
5681
- const $edc9fe0b09e00df6$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img src=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+>`);
5681
+ var $edc9fe0b09e00df6$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img src=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+>`);
5682
5682
  function $edc9fe0b09e00df6$export$af88b4929c2dc86() {
5683
5683
  const img = $z0IcO$solidjsweb.getNextElement($edc9fe0b09e00df6$var$_tmpl$);
5684
5684
  return {
@@ -5686,7 +5686,7 @@ function $edc9fe0b09e00df6$export$af88b4929c2dc86() {
5686
5686
  right: [img.cloneNode()]
5687
5687
  };
5688
5688
  }
5689
- const $158313c0231e6555$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<label class=checkbox_container><input type=radio><span class=checkmark>`);
5689
+ var $158313c0231e6555$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<label class=checkbox_container><input type=radio><span class=checkmark>`);
5690
5690
  function $158313c0231e6555$export$1d17a045bcc711b1({
5691
5691
  t: t,
5692
5692
  navcont_insertion_fn: navcont_insertion_fn,
@@ -5775,7 +5775,7 @@ function $158313c0231e6555$export$1d17a045bcc711b1({
5775
5775
  }
5776
5776
  function $158313c0231e6555$export$a09282b33e69b43f(unique_name) {
5777
5777
  return (() => {
5778
- const _el$ = $z0IcO$solidjsweb.getNextElement($158313c0231e6555$var$_tmpl$),
5778
+ var _el$ = $z0IcO$solidjsweb.getNextElement($158313c0231e6555$var$_tmpl$),
5779
5779
  _el$2 = _el$.firstChild;
5780
5780
  $z0IcO$solidjsweb.setAttribute(_el$2, "name", `radio-${unique_name}`);
5781
5781
  return _el$;
@@ -5968,7 +5968,7 @@ function $91f7baba008bce7d$export$5723caf9a8335aa6(_t, fraction = 1, max_steps,
5968
5968
  mutation_plugin: mutation_plugin
5969
5969
  };
5970
5970
  }
5971
- const $1942530ef27e571b$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=depict_slider_scroll_bar>`),
5971
+ var $1942530ef27e571b$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=depict_slider_scroll_bar>`),
5972
5972
  $1942530ef27e571b$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=depict_slider_scroll_container>`);
5973
5973
  function $1942530ef27e571b$export$93223e488e7ee078(options) {
5974
5974
  function constructor_plugin(_slider_options) {
@@ -6000,7 +6000,7 @@ function $1942530ef27e571b$export$93223e488e7ee078(options) {
6000
6000
  mutation_plugin: mutation_plugin
6001
6001
  };
6002
6002
  }
6003
- 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`);
6003
+ var $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`);
6004
6004
  function $6af20338fcad1911$export$b36d2489a5a16728(_t, {
6005
6005
  snapEvery: snapEvery,
6006
6006
  align: align
@@ -7530,13 +7530,13 @@ const $5185cc9bd668b8f9$var$get_voyado_id = () => {
7530
7530
  const $5185cc9bd668b8f9$export$a739d9a07da7f9ce = /*@__PURE__*/$268cbd9e4ade92db$export$b3bbfd758f11cfa9(() => {
7531
7531
  $e0a87646d12cb987$export$93ae15b1ae509334($5185cc9bd668b8f9$var$get_voyado_id);
7532
7532
  });
7533
- const $dba3e72fb3e5c53d$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button>`);
7533
+ var $dba3e72fb3e5c53d$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button>`);
7534
7534
  function $dba3e72fb3e5c53d$export$4a3043e508dd72f0({
7535
7535
  children: children,
7536
7536
  ...attributes
7537
7537
  }) {
7538
7538
  const button = (() => {
7539
- const _el$ = $z0IcO$solidjsweb.getNextElement($dba3e72fb3e5c53d$var$_tmpl$);
7539
+ var _el$ = $z0IcO$solidjsweb.getNextElement($dba3e72fb3e5c53d$var$_tmpl$);
7540
7540
  $z0IcO$solidjsweb.spread(_el$, $z0IcO$solidjsweb.mergeProps(attributes, {
7541
7541
  "type": "button"
7542
7542
  }), false, true);
@@ -7547,7 +7547,7 @@ function $dba3e72fb3e5c53d$export$4a3043e508dd72f0({
7547
7547
  button.classList.add("show-more");
7548
7548
  return button;
7549
7549
  }
7550
- const $a7550e9f97f84465$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=slidein-backdrop>`),
7550
+ var $a7550e9f97f84465$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=slidein-backdrop>`),
7551
7551
  $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>`),
7552
7552
  $a7550e9f97f84465$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=depict><!$><!/><!$><!/>`);
7553
7553
  async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
@@ -7560,7 +7560,7 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
7560
7560
  const open_promise = new Promise(r => close_ = r);
7561
7561
  const body = await (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_element("body");
7562
7562
  const backdrop = (() => {
7563
- const _el$ = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$);
7563
+ var _el$ = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$);
7564
7564
  $z0IcO$solidjsweb.addEventListener(_el$, "click", close_, true);
7565
7565
  $z0IcO$solidjsweb.runHydrationEvents();
7566
7566
  return _el$;
@@ -7568,7 +7568,7 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
7568
7568
  const [exit_title_iterator, exitable_title_iterator] = $bbe52965151ee7f0$export$927664b47117acb0(title_);
7569
7569
  const closing_handlers = [exit_title_iterator];
7570
7570
  const slidein = (() => {
7571
- const _el$2 = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$2),
7571
+ var _el$2 = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$2),
7572
7572
  _el$3 = _el$2.firstChild,
7573
7573
  _el$4 = _el$3.firstChild,
7574
7574
  _el$5 = _el$4.nextSibling,
@@ -7581,7 +7581,7 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
7581
7581
  return _el$2;
7582
7582
  })();
7583
7583
  const elements_in_container = (() => {
7584
- const _el$7 = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$3),
7584
+ var _el$7 = $z0IcO$solidjsweb.getNextElement($a7550e9f97f84465$var$_tmpl$3),
7585
7585
  _el$8 = _el$7.firstChild,
7586
7586
  [_el$9, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$8.nextSibling),
7587
7587
  _el$10 = _el$9.nextSibling,
@@ -7638,7 +7638,7 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
7638
7638
  };
7639
7639
  }
7640
7640
  $z0IcO$solidjsweb.delegateEvents(["click"]);
7641
- const $bd0fccdac6624b01$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=option-list>`),
7641
+ var $bd0fccdac6624b01$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=option-list>`),
7642
7642
  $bd0fccdac6624b01$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button type=button><span class=size></span><!$><!/>`),
7643
7643
  $bd0fccdac6624b01$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<span class=sold-out>`);
7644
7644
  async function $bd0fccdac6624b01$export$c068ad5361be7646({
@@ -7657,14 +7657,14 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
7657
7657
  CloseIcon: CloseIcon,
7658
7658
  title_: title_,
7659
7659
  children: [(() => {
7660
- const _el$ = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$);
7660
+ var _el$ = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$);
7661
7661
  $z0IcO$solidjsweb.insert(_el$, () => items_.map(({
7662
7662
  size_name_: size_name_,
7663
7663
  is_available_: is_available_,
7664
7664
  id_: id_
7665
7665
  }) => {
7666
7666
  const button = (() => {
7667
- const _el$2 = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$2),
7667
+ var _el$2 = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$2),
7668
7668
  _el$3 = _el$2.firstChild,
7669
7669
  _el$4 = _el$3.nextSibling,
7670
7670
  [_el$5, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$4.nextSibling);
@@ -7675,7 +7675,7 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
7675
7675
  $z0IcO$solidjsweb.className(_el$2, "option" + (is_available_ ? " available" : ""));
7676
7676
  $z0IcO$solidjsweb.insert(_el$3, size_name_);
7677
7677
  $z0IcO$solidjsweb.insert(_el$2, !is_available_ && (() => {
7678
- const _el$6 = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$3);
7678
+ var _el$6 = $z0IcO$solidjsweb.getNextElement($bd0fccdac6624b01$var$_tmpl$3);
7679
7679
  $z0IcO$solidjsweb.insert(_el$6, () => $374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_oos_iterator));
7680
7680
  return _el$6;
7681
7681
  })(), _el$5, _co$);
@@ -7695,7 +7695,7 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
7695
7695
  $z0IcO$solidjsweb.delegateEvents(["click"]);
7696
7696
  var $dcdbfd7a994587c9$exports = {};
7697
7697
  $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";
7698
- const $e587cb3b31b82f43$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
7698
+ var $e587cb3b31b82f43$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
7699
7699
  let $e587cb3b31b82f43$var$inserted = false;
7700
7700
  const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
7701
7701
  width: width,
@@ -7710,7 +7710,7 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
7710
7710
  $e587cb3b31b82f43$var$inserted = true;
7711
7711
  }
7712
7712
  return (() => {
7713
- const _el$ = $z0IcO$solidjsweb.getNextElement($e587cb3b31b82f43$var$_tmpl$);
7713
+ var _el$ = $z0IcO$solidjsweb.getNextElement($e587cb3b31b82f43$var$_tmpl$);
7714
7714
  $z0IcO$solidjsweb.className(_el$, `depict-placeholder${extra_classes ? " " + extra_classes : ""}`);
7715
7715
  $z0IcO$solidjsweb.spread(_el$, attributes, false, false);
7716
7716
  $z0IcO$solidjsweb.effect(_$p => $z0IcO$solidjsweb.style(_el$, style ? style : `width:${width};height:${height};`, _$p));
@@ -7726,25 +7726,25 @@ const $e587cb3b31b82f43$export$d613f5b6d0a331a8 = ({
7726
7726
  style: `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`
7727
7727
  }, attributes));
7728
7728
  };
7729
- const $b9c0746e4d18273a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class="depict recommendation_container"><!$><!/><div class=grid>`),
7729
+ var $b9c0746e4d18273a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class="depict recommendation_container"><!$><!/><div class=grid>`),
7730
7730
  $b9c0746e4d18273a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<h4 class=recs_header>`);
7731
7731
  const $b9c0746e4d18273a$export$97f31f44c68c1d5 = (title, surface_classes = []) => $90e0b983530610e7$export$eb0b9ed911409b57(e => e.classList.add(...surface_classes), (() => {
7732
- const _el$ = $z0IcO$solidjsweb.getNextElement($b9c0746e4d18273a$var$_tmpl$),
7732
+ var _el$ = $z0IcO$solidjsweb.getNextElement($b9c0746e4d18273a$var$_tmpl$),
7733
7733
  _el$3 = _el$.firstChild,
7734
7734
  [_el$4, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$3.nextSibling),
7735
7735
  _el$2 = _el$4.nextSibling;
7736
7736
  $z0IcO$solidjsweb.insert(_el$, title && typeof title === "string" ? (() => {
7737
- const _el$5 = $z0IcO$solidjsweb.getNextElement($b9c0746e4d18273a$var$_tmpl$2);
7737
+ var _el$5 = $z0IcO$solidjsweb.getNextElement($b9c0746e4d18273a$var$_tmpl$2);
7738
7738
  $z0IcO$solidjsweb.insert(_el$5, title);
7739
7739
  return _el$5;
7740
7740
  })() : title, _el$4, _co$);
7741
7741
  return _el$;
7742
7742
  })());
7743
- 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">`),
7743
+ var $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">`),
7744
7744
  $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">`);
7745
7745
  const $69accc27bcbd6972$export$32a55d57d151bc5a = () => $z0IcO$solidjsweb.getNextElement($69accc27bcbd6972$var$_tmpl$);
7746
7746
  const $69accc27bcbd6972$export$ddd70fdae1b350e6 = () => $z0IcO$solidjsweb.getNextElement($69accc27bcbd6972$var$_tmpl$2);
7747
- const $af92e61c7dfccf01$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button class=color-circle-container><div class=outer-circle><div class=inner-circle>`),
7747
+ var $af92e61c7dfccf01$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<button class=color-circle-container><div class=outer-circle><div class=inner-circle>`),
7748
7748
  $af92e61c7dfccf01$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=color-picker role=form aria-label="Color picker">`);
7749
7749
  /**
7750
7750
  * Internal color circle used in ColorPicker
@@ -7756,22 +7756,22 @@ function $af92e61c7dfccf01$var$ColorCircle({
7756
7756
  onHoverUpdate: onHoverUpdate
7757
7757
  }) {
7758
7758
  const button = (() => {
7759
- const _el$ = $z0IcO$solidjsweb.getNextElement($af92e61c7dfccf01$var$_tmpl$),
7759
+ var _el$ = $z0IcO$solidjsweb.getNextElement($af92e61c7dfccf01$var$_tmpl$),
7760
7760
  _el$2 = _el$.firstChild,
7761
7761
  _el$3 = _el$2.firstChild;
7762
7762
  _el$.$$click = e => onClick(e.currentTarget, color);
7763
7763
  $z0IcO$solidjsweb.effect(_p$ => {
7764
- const _v$ = color.label || "",
7764
+ var _v$ = color.label || "",
7765
7765
  _v$2 = `border-color: ${color.value};`,
7766
7766
  _v$3 = `background-color: ${color.value};`;
7767
- _v$ !== _p$._v$ && $z0IcO$solidjsweb.setAttribute(_el$, "title", _p$._v$ = _v$);
7768
- _p$._v$2 = $z0IcO$solidjsweb.style(_el$2, _v$2, _p$._v$2);
7769
- _p$._v$3 = $z0IcO$solidjsweb.style(_el$3, _v$3, _p$._v$3);
7767
+ _v$ !== _p$.e && $z0IcO$solidjsweb.setAttribute(_el$, "title", _p$.e = _v$);
7768
+ _p$.t = $z0IcO$solidjsweb.style(_el$2, _v$2, _p$.t);
7769
+ _p$.a = $z0IcO$solidjsweb.style(_el$3, _v$3, _p$.a);
7770
7770
  return _p$;
7771
7771
  }, {
7772
- _v$: undefined,
7773
- _v$2: undefined,
7774
- _v$3: undefined
7772
+ e: undefined,
7773
+ t: undefined,
7774
+ a: undefined
7775
7775
  });
7776
7776
  $z0IcO$solidjsweb.runHydrationEvents();
7777
7777
  return _el$;
@@ -7842,7 +7842,7 @@ function $af92e61c7dfccf01$export$590326cc34f49e2d({
7842
7842
  if (initial_index > -1) setActiveIndex(initial_index);
7843
7843
  if (onlyCircles) return circles;
7844
7844
  return (() => {
7845
- const _el$4 = $z0IcO$solidjsweb.getNextElement($af92e61c7dfccf01$var$_tmpl$2);
7845
+ var _el$4 = $z0IcO$solidjsweb.getNextElement($af92e61c7dfccf01$var$_tmpl$2);
7846
7846
  $z0IcO$solidjsweb.insert(_el$4, circles);
7847
7847
  return _el$4;
7848
7848
  })();
@@ -7850,7 +7850,7 @@ function $af92e61c7dfccf01$export$590326cc34f49e2d({
7850
7850
  };
7851
7851
  }
7852
7852
  $z0IcO$solidjsweb.delegateEvents(["click"]);
7853
- const $b25f388f0fe2f1b3$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`),
7853
+ var $b25f388f0fe2f1b3$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`),
7854
7854
  $b25f388f0fe2f1b3$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div style=overflow:hidden;height:0px;visibility:hidden aria-hidden=true>`);
7855
7855
  const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
7856
7856
  duration = 500,
@@ -7876,12 +7876,12 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
7876
7876
  }) => {
7877
7877
  if (Array.isArray(children) && children.length === 1) children = children[0];
7878
7878
  innerRef = (() => {
7879
- const _el$ = $z0IcO$solidjsweb.getNextElement($b25f388f0fe2f1b3$var$_tmpl$);
7879
+ var _el$ = $z0IcO$solidjsweb.getNextElement($b25f388f0fe2f1b3$var$_tmpl$);
7880
7880
  $z0IcO$solidjsweb.insert(_el$, children);
7881
7881
  return _el$;
7882
7882
  })();
7883
7883
  outerRef = (() => {
7884
- const _el$2 = $z0IcO$solidjsweb.getNextElement($b25f388f0fe2f1b3$var$_tmpl$2);
7884
+ var _el$2 = $z0IcO$solidjsweb.getNextElement($b25f388f0fe2f1b3$var$_tmpl$2);
7885
7885
  $z0IcO$solidjsweb.insert(_el$2, innerRef);
7886
7886
  return _el$2;
7887
7887
  })();
@@ -7935,7 +7935,7 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
7935
7935
  };
7936
7936
  var $aa123ed8001baa5e$exports = {};
7937
7937
  $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";
7938
- const $ff973b2032639b5f$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img>`),
7938
+ var $ff973b2032639b5f$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img>`),
7939
7939
  $ff973b2032639b5f$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<source sizes=0px>`),
7940
7940
  $ff973b2032639b5f$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<picture>`);
7941
7941
  const $ff973b2032639b5f$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
@@ -8016,7 +8016,7 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({
8016
8016
  $e6c6e7929ea385ae$export$de56f1198d121036(image_options, () => {}); // noop function is to allow to get here quickly by "jump to function definition"
8017
8017
  $548fd58b14b25a52$export$8048b892d651b310(new Error("no image src provided: " + src));
8018
8018
  return (() => {
8019
- const _el$ = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$);
8019
+ var _el$ = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$);
8020
8020
  $z0IcO$solidjsweb.spread(_el$, image_options, false, false);
8021
8021
  $z0IcO$solidjsweb.runHydrationEvents();
8022
8022
  return _el$;
@@ -8030,7 +8030,7 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({
8030
8030
  const format = formats[i];
8031
8031
  const srcset = $ff973b2032639b5f$var$make_srcset(src, format, resolutions);
8032
8032
  sources.push((() => {
8033
- const _el$2 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$2);
8033
+ var _el$2 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$2);
8034
8034
  $z0IcO$solidjsweb.setAttribute(_el$2, "type", `image/${format}`);
8035
8035
  $z0IcO$solidjsweb.spread(_el$2, set_dataset ? {
8036
8036
  "data-srcset": srcset
@@ -8047,7 +8047,7 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({
8047
8047
  delete opts_without_src["src"];
8048
8048
  delete opts_without_src["srcset"];
8049
8049
  const the_image = (() => {
8050
- const _el$3 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$);
8050
+ var _el$3 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$);
8051
8051
  $z0IcO$solidjsweb.spread(_el$3, opts_without_src, false, false);
8052
8052
  $z0IcO$solidjsweb.runHydrationEvents();
8053
8053
  return _el$3;
@@ -8059,7 +8059,7 @@ function $ff973b2032639b5f$export$a62825542f1bfcf5({
8059
8059
  for (let i = 0; i < sources.length; i++) sizes_setter_(sources[i]).catch((0, $548fd58b14b25a52$export$8048b892d651b310));
8060
8060
  // embed all sources into a <picture> so that the browser understands they're "together"
8061
8061
  const picture = (() => {
8062
- const _el$4 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$3);
8062
+ var _el$4 = $z0IcO$solidjsweb.getNextElement($ff973b2032639b5f$var$_tmpl$3);
8063
8063
  $z0IcO$solidjsweb.insert(_el$4, sources);
8064
8064
  return _el$4;
8065
8065
  })();
@@ -8091,7 +8091,7 @@ function $ff973b2032639b5f$var$optimized_img_url_generator(format, url, width) {
8091
8091
  // 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
8092
8092
  return `${$ff973b2032639b5f$export$3d13beba9b52c947}?format=${format}&url=${encodeURIComponent(url)}&width=${width}`;
8093
8093
  }
8094
- const $a312bccd722ac9e4$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`),
8094
+ var $a312bccd722ac9e4$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`),
8095
8095
  $a312bccd722ac9e4$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<canvas class=depict-img-filler height=3000>`),
8096
8096
  $a312bccd722ac9e4$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div style=position:relative><div class=depict-img-cont></div><!$><!/>`);
8097
8097
  const $a312bccd722ac9e4$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
@@ -8123,7 +8123,7 @@ function $a312bccd722ac9e4$var$Image({
8123
8123
  ...image_options
8124
8124
  }) {
8125
8125
  const div = (() => {
8126
- const _el$ = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$);
8126
+ var _el$ = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$);
8127
8127
  $z0IcO$solidjsweb.effect(_$p => $z0IcO$solidjsweb.style(_el$, `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`, _$p));
8128
8128
  return _el$;
8129
8129
  })();
@@ -8149,14 +8149,14 @@ function $a312bccd722ac9e4$var$CompatibleImage({
8149
8149
  ...image_options
8150
8150
  }) {
8151
8151
  const canvas = (() => {
8152
- const _el$2 = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$2);
8152
+ var _el$2 = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$2);
8153
8153
  $z0IcO$solidjsweb.setAttribute(_el$2, "width", 3000 * aspect_ratio);
8154
8154
  return _el$2;
8155
8155
  })();
8156
8156
  const sourceset_component = $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
8157
8157
  const IMG_tag = image_options.src?.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
8158
8158
  return (() => {
8159
- const _el$3 = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$3),
8159
+ var _el$3 = $z0IcO$solidjsweb.getNextElement($a312bccd722ac9e4$var$_tmpl$3),
8160
8160
  _el$4 = _el$3.firstChild,
8161
8161
  _el$5 = _el$4.nextSibling,
8162
8162
  [_el$6, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$5.nextSibling);
@@ -8190,7 +8190,7 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
8190
8190
  }
8191
8191
  var $db57c943efeaebed$exports = {};
8192
8192
  $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";
8193
- const $a656daa2fa8c279a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
8193
+ var $a656daa2fa8c279a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
8194
8194
  $a656daa2fa8c279a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=second-image-container>`);
8195
8195
  // Saving bytez
8196
8196
  // Maybe? @Daniel
@@ -8332,12 +8332,12 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
8332
8332
  });
8333
8333
  const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
8334
8334
  const images_container = (() => {
8335
- const _el$ = $z0IcO$solidjsweb.getNextElement($a656daa2fa8c279a$var$_tmpl$),
8335
+ var _el$ = $z0IcO$solidjsweb.getNextElement($a656daa2fa8c279a$var$_tmpl$),
8336
8336
  _el$3 = _el$.firstChild,
8337
8337
  [_el$4, _co$] = $z0IcO$solidjsweb.getNextMarker(_el$3.nextSibling),
8338
8338
  _el$2 = _el$4.nextSibling;
8339
8339
  $z0IcO$solidjsweb.insert(_el$, !no_second_img && (() => {
8340
- const _el$5 = $z0IcO$solidjsweb.getNextElement($a656daa2fa8c279a$var$_tmpl$2);
8340
+ var _el$5 = $z0IcO$solidjsweb.getNextElement($a656daa2fa8c279a$var$_tmpl$2);
8341
8341
  $z0IcO$solidjsweb.insert(_el$5, second_image);
8342
8342
  return _el$5;
8343
8343
  })(), _el$4, _co$);
package/latest/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JSX, Accessor } from "solid-js";
2
- export const version = "2.0.11";
2
+ export const version = "2.0.15";
3
3
  export const is_debug: boolean;
4
4
  /**
5
5
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.