@depict-ai/utilishared 2.0.11 → 2.0.14

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.js CHANGED
@@ -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.11";
19
+ const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.14";
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]";
@@ -4157,7 +4157,7 @@ function $5f31622ffb78bc10$export$e4741190ccada479(element, selector) {
4157
4157
  }
4158
4158
  return result;
4159
4159
  }
4160
- const $be288a83d9eabf2a$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class="depict-slider depict">`),
4160
+ var $be288a83d9eabf2a$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class="depict-slider depict">`),
4161
4161
  $be288a83d9eabf2a$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=sliding>`),
4162
4162
  $be288a83d9eabf2a$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
4163
4163
  $be288a83d9eabf2a$var$_tmpl$4 = /*#__PURE__*/$76EG6$template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`);
@@ -5222,7 +5222,7 @@ async function $b7b39b38d6e695e9$export$cd12721587f4f16d(t, rendering_options, o
5222
5222
  elements: container ? container : [slider.container]
5223
5223
  };
5224
5224
  }
5225
- const $193ee64f5599f8a8$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<button class=load_more>`);
5225
+ var $193ee64f5599f8a8$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<button class=load_more>`);
5226
5226
  async function $193ee64f5599f8a8$export$30933c637c977eef(_ref) {
5227
5227
  var _template_tool$data;
5228
5228
  let {
@@ -5367,7 +5367,7 @@ function $193ee64f5599f8a8$var$setup_load_more(t, root, chunk_size) {
5367
5367
  } = t,
5368
5368
  load_more_cont = $652300c6621d5500$export$d3e2a0560cbf4787('<div class="load-more-container"></div>'),
5369
5369
  load_button = load_more_cont.appendChild((() => {
5370
- const _el$ = $76EG6$getNextElement($193ee64f5599f8a8$var$_tmpl$);
5370
+ var _el$ = $76EG6$getNextElement($193ee64f5599f8a8$var$_tmpl$);
5371
5371
  $76EG6$insert(_el$, view_more_text);
5372
5372
  return _el$;
5373
5373
  })());
@@ -5521,7 +5521,7 @@ const $0f650018c3cbc373$export$ffb0004e005737fa = (_ref2, _unknown) => {
5521
5521
  $0f650018c3cbc373$var$appendChild(df, children);
5522
5522
  return df;
5523
5523
  };
5524
- 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">`),
5524
+ var $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">`),
5525
5525
  $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">`);
5526
5526
  const $c755e2b0d4b18501$export$dc84183312f0c201 = /*@__PURE__*/(() => $76EG6$getNextElement($c755e2b0d4b18501$var$_tmpl$))();
5527
5527
  const $c755e2b0d4b18501$export$6038895ac52bd044 = /*@__PURE__*/(() => $76EG6$getNextElement($c755e2b0d4b18501$var$_tmpl$2))();
@@ -5562,7 +5562,7 @@ function $07beada135e5f5e8$export$f8913c8a18f7ca21(iterables) {
5562
5562
  return ourselves;
5563
5563
  }
5564
5564
  let $df6d080cba513381$var$_Symbol$iterator, $df6d080cba513381$var$_Symbol$toPrimitive;
5565
- const $df6d080cba513381$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<style type=text/css>`),
5565
+ var $df6d080cba513381$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<style type=text/css>`),
5566
5566
  $df6d080cba513381$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div>`);
5567
5567
  const $df6d080cba513381$export$717f13d9ba00ca19 = (min, max) => "@media ".concat(min ? "(min-width:".concat(min, ")") : "").concat(min && max ? " and " : "").concat(max ? "(max-width:".concat(max, ")") : "");
5568
5568
  async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
@@ -5625,7 +5625,7 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
5625
5625
  if (button) {
5626
5626
  button_class = $6cb4d83127e468ea$export$a6db784f019668ba();
5627
5627
  const button_container = (() => {
5628
- const _el$2 = $76EG6$getNextElement($df6d080cba513381$var$_tmpl$2);
5628
+ var _el$2 = $76EG6$getNextElement($df6d080cba513381$var$_tmpl$2);
5629
5629
  $76EG6$className(_el$2, "load-more-container " + button_class);
5630
5630
  $76EG6$insert(_el$2, () => $a285401a927e4306$export$f63fcc839cb0f734("click", () => {
5631
5631
  var _rows_or_empty_object;
@@ -5933,7 +5933,7 @@ function $090af64928922937$export$80039a49055269fb() {
5933
5933
  };
5934
5934
  return Object.fromEntries(["left", "right"].map(side => [side, [new_arrowimage()]]));
5935
5935
  }
5936
- const $66c5b496f7887c00$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<img src=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+>`);
5936
+ var $66c5b496f7887c00$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<img src=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJkaXNwbGF5OiBpbmxpbmUtYmxvY2s7IHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgOCAxNSI+PHBhdGggc3R5bGU9ImZpbGw6IHJnYigwLCAwLCAwKTsiIGQ9Ik0uNjI5LjAwMWMuMTUuMDA4LjI5My4wNzIuMzk4LjE4bDYuNzkyIDYuODlhLjYwMS42MDEgMCAwIDEgMCAuODZsLTYuNzkyIDYuODg4YS41ODYuNTg2IDAgMCAxLS44NDYgMCAuNjAxLjYwMSAwIDAgMSAwLS44Nkw2LjU1NCA3LjUuMjExIDEuMDAxYS42MDEuNjAxIDAgMCAxIDAtLjg2Yy4xMTUtLjEuMjY2LS4xNS40MTgtLjE0Ij48L3BhdGg+PC9zdmc+>`);
5937
5937
  function $66c5b496f7887c00$export$af88b4929c2dc86() {
5938
5938
  const img = $76EG6$getNextElement($66c5b496f7887c00$var$_tmpl$);
5939
5939
  return {
@@ -5941,7 +5941,7 @@ function $66c5b496f7887c00$export$af88b4929c2dc86() {
5941
5941
  right: [img.cloneNode()]
5942
5942
  };
5943
5943
  }
5944
- const $d3c54fdf1bfb087a$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<label class=checkbox_container><input type=radio><span class=checkmark>`);
5944
+ var $d3c54fdf1bfb087a$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<label class=checkbox_container><input type=radio><span class=checkmark>`);
5945
5945
  function $d3c54fdf1bfb087a$export$1d17a045bcc711b1(_ref) {
5946
5946
  let {
5947
5947
  t: t,
@@ -6035,7 +6035,7 @@ function $d3c54fdf1bfb087a$export$1d17a045bcc711b1(_ref) {
6035
6035
  }
6036
6036
  function $d3c54fdf1bfb087a$export$a09282b33e69b43f(unique_name) {
6037
6037
  return (() => {
6038
- const _el$ = $76EG6$getNextElement($d3c54fdf1bfb087a$var$_tmpl$),
6038
+ var _el$ = $76EG6$getNextElement($d3c54fdf1bfb087a$var$_tmpl$),
6039
6039
  _el$2 = _el$.firstChild;
6040
6040
  $76EG6$setAttribute(_el$2, "name", "radio-".concat(unique_name));
6041
6041
  return _el$;
@@ -6233,7 +6233,7 @@ function $0cbf24ae3e670238$export$5723caf9a8335aa6(_t) {
6233
6233
  mutation_plugin: mutation_plugin
6234
6234
  };
6235
6235
  }
6236
- const $4837ebe61ecec421$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=depict_slider_scroll_bar>`),
6236
+ var $4837ebe61ecec421$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=depict_slider_scroll_bar>`),
6237
6237
  $4837ebe61ecec421$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=depict_slider_scroll_container>`);
6238
6238
  function $4837ebe61ecec421$export$93223e488e7ee078(options) {
6239
6239
  function constructor_plugin(_slider_options) {
@@ -6266,7 +6266,7 @@ function $4837ebe61ecec421$export$93223e488e7ee078(options) {
6266
6266
  mutation_plugin: mutation_plugin
6267
6267
  };
6268
6268
  }
6269
- const $ff905d87817a07f4$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div style="position:absolute;width:1em;overflow:scroll;scroll-snap-type:x mandatory;"><div style=scroll-snap-align:start;color:transparent;>test`);
6269
+ var $ff905d87817a07f4$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div style="position:absolute;width:1em;overflow:scroll;scroll-snap-type:x mandatory;"><div style=scroll-snap-align:start;color:transparent;>test`);
6270
6270
  function $ff905d87817a07f4$export$b36d2489a5a16728(_t) {
6271
6271
  let {
6272
6272
  snapEvery: snapEvery,
@@ -7864,14 +7864,14 @@ const $8a812fa4638e2832$var$get_voyado_id = () => {
7864
7864
  const $8a812fa4638e2832$export$a739d9a07da7f9ce = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
7865
7865
  $d5f7352b58e0d737$export$93ae15b1ae509334($8a812fa4638e2832$var$get_voyado_id);
7866
7866
  });
7867
- const $c40fc6dc2c22b3c4$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<button>`);
7867
+ var $c40fc6dc2c22b3c4$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<button>`);
7868
7868
  function $c40fc6dc2c22b3c4$export$4a3043e508dd72f0(_ref) {
7869
7869
  let {
7870
7870
  children: children,
7871
7871
  ...attributes
7872
7872
  } = _ref;
7873
7873
  const button = (() => {
7874
- const _el$ = $76EG6$getNextElement($c40fc6dc2c22b3c4$var$_tmpl$);
7874
+ var _el$ = $76EG6$getNextElement($c40fc6dc2c22b3c4$var$_tmpl$);
7875
7875
  $76EG6$spread(_el$, $76EG6$mergeProps(attributes, {
7876
7876
  "type": "button"
7877
7877
  }), false, true);
@@ -7882,7 +7882,7 @@ function $c40fc6dc2c22b3c4$export$4a3043e508dd72f0(_ref) {
7882
7882
  button.classList.add("show-more");
7883
7883
  return button;
7884
7884
  }
7885
- const $a59cde169150d10b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=slidein-backdrop>`),
7885
+ var $a59cde169150d10b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=slidein-backdrop>`),
7886
7886
  $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>`),
7887
7887
  $a59cde169150d10b$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<div class=depict><!$><!/><!$><!/>`);
7888
7888
  async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
@@ -7896,7 +7896,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
7896
7896
  const open_promise = new Promise(r => close_ = r);
7897
7897
  const body = await (0, $90fa633a9564f115$export$b6ae1bc530f4c149).wait_for_element("body");
7898
7898
  const backdrop = (() => {
7899
- const _el$ = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$);
7899
+ var _el$ = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$);
7900
7900
  $76EG6$addEventListener(_el$, "click", close_, true);
7901
7901
  $76EG6$runHydrationEvents();
7902
7902
  return _el$;
@@ -7904,7 +7904,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
7904
7904
  const [exit_title_iterator, exitable_title_iterator] = $fee212025270d5b9$export$927664b47117acb0(title_);
7905
7905
  const closing_handlers = [exit_title_iterator];
7906
7906
  const slidein = (() => {
7907
- const _el$2 = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$2),
7907
+ var _el$2 = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$2),
7908
7908
  _el$3 = _el$2.firstChild,
7909
7909
  _el$4 = _el$3.firstChild,
7910
7910
  _el$5 = _el$4.nextSibling,
@@ -7917,7 +7917,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
7917
7917
  return _el$2;
7918
7918
  })();
7919
7919
  const elements_in_container = (() => {
7920
- const _el$7 = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$3),
7920
+ var _el$7 = $76EG6$getNextElement($a59cde169150d10b$var$_tmpl$3),
7921
7921
  _el$8 = _el$7.firstChild,
7922
7922
  [_el$9, _co$] = $76EG6$getNextMarker(_el$8.nextSibling),
7923
7923
  _el$10 = _el$9.nextSibling,
@@ -7975,7 +7975,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
7975
7975
  };
7976
7976
  }
7977
7977
  $76EG6$delegateEvents(["click"]);
7978
- const $24f3fd73864991c0$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=option-list>`),
7978
+ var $24f3fd73864991c0$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=option-list>`),
7979
7979
  $24f3fd73864991c0$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<button type=button><span class=size></span><!$><!/>`),
7980
7980
  $24f3fd73864991c0$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<span class=sold-out>`);
7981
7981
  async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
@@ -7995,7 +7995,7 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
7995
7995
  CloseIcon: CloseIcon,
7996
7996
  title_: title_,
7997
7997
  children: [(() => {
7998
- const _el$ = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$);
7998
+ var _el$ = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$);
7999
7999
  $76EG6$insert(_el$, () => items_.map(_ref2 => {
8000
8000
  let {
8001
8001
  size_name_: size_name_,
@@ -8003,7 +8003,7 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
8003
8003
  id_: id_
8004
8004
  } = _ref2;
8005
8005
  const button = (() => {
8006
- const _el$2 = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$2),
8006
+ var _el$2 = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$2),
8007
8007
  _el$3 = _el$2.firstChild,
8008
8008
  _el$4 = _el$3.nextSibling,
8009
8009
  [_el$5, _co$] = $76EG6$getNextMarker(_el$4.nextSibling);
@@ -8014,7 +8014,7 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
8014
8014
  $76EG6$className(_el$2, "option" + (is_available_ ? " available" : ""));
8015
8015
  $76EG6$insert(_el$3, size_name_);
8016
8016
  $76EG6$insert(_el$2, !is_available_ && (() => {
8017
- const _el$6 = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$3);
8017
+ var _el$6 = $76EG6$getNextElement($24f3fd73864991c0$var$_tmpl$3);
8018
8018
  $76EG6$insert(_el$6, () => $332ef338faf216a4$export$7c081fdbc65b6a2a(exitable_oos_iterator));
8019
8019
  return _el$6;
8020
8020
  })(), _el$5, _co$);
@@ -8034,7 +8034,7 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
8034
8034
  $76EG6$delegateEvents(["click"]);
8035
8035
  var $aae9878972b17321$exports = {};
8036
8036
  $aae9878972b17321$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";
8037
- const $adc0bb548fdb574f$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`);
8037
+ var $adc0bb548fdb574f$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`);
8038
8038
  let $adc0bb548fdb574f$var$inserted = false;
8039
8039
  const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
8040
8040
  let {
@@ -8050,7 +8050,7 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
8050
8050
  $adc0bb548fdb574f$var$inserted = true;
8051
8051
  }
8052
8052
  return (() => {
8053
- const _el$ = $76EG6$getNextElement($adc0bb548fdb574f$var$_tmpl$);
8053
+ var _el$ = $76EG6$getNextElement($adc0bb548fdb574f$var$_tmpl$);
8054
8054
  $76EG6$className(_el$, "depict-placeholder".concat(extra_classes ? " " + extra_classes : ""));
8055
8055
  $76EG6$spread(_el$, attributes, false, false);
8056
8056
  $76EG6$effect(_$p => $76EG6$style(_el$, style ? style : "width:".concat(width, ";height:").concat(height, ";"), _$p));
@@ -8067,28 +8067,28 @@ const $adc0bb548fdb574f$export$d613f5b6d0a331a8 = _ref2 => {
8067
8067
  style: "position:relative;width:100%;padding-bottom:".concat(1 / aspect_ratio * 100, "%")
8068
8068
  }, attributes));
8069
8069
  };
8070
- const $2e6ca552eb0e0b2b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class="depict recommendation_container"><!$><!/><div class=grid>`),
8070
+ var $2e6ca552eb0e0b2b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class="depict recommendation_container"><!$><!/><div class=grid>`),
8071
8071
  $2e6ca552eb0e0b2b$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<h4 class=recs_header>`);
8072
8072
  const $2e6ca552eb0e0b2b$export$97f31f44c68c1d5 = function (title) {
8073
8073
  let surface_classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
8074
8074
  return $a285401a927e4306$export$eb0b9ed911409b57(e => e.classList.add(...surface_classes), (() => {
8075
- const _el$ = $76EG6$getNextElement($2e6ca552eb0e0b2b$var$_tmpl$),
8075
+ var _el$ = $76EG6$getNextElement($2e6ca552eb0e0b2b$var$_tmpl$),
8076
8076
  _el$3 = _el$.firstChild,
8077
8077
  [_el$4, _co$] = $76EG6$getNextMarker(_el$3.nextSibling),
8078
8078
  _el$2 = _el$4.nextSibling;
8079
8079
  $76EG6$insert(_el$, title && typeof title === "string" ? (() => {
8080
- const _el$5 = $76EG6$getNextElement($2e6ca552eb0e0b2b$var$_tmpl$2);
8080
+ var _el$5 = $76EG6$getNextElement($2e6ca552eb0e0b2b$var$_tmpl$2);
8081
8081
  $76EG6$insert(_el$5, title);
8082
8082
  return _el$5;
8083
8083
  })() : title, _el$4, _co$);
8084
8084
  return _el$;
8085
8085
  })());
8086
8086
  };
8087
- 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">`),
8087
+ var $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">`),
8088
8088
  $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">`);
8089
8089
  const $ad0b2591dac160be$export$32a55d57d151bc5a = () => $76EG6$getNextElement($ad0b2591dac160be$var$_tmpl$);
8090
8090
  const $ad0b2591dac160be$export$ddd70fdae1b350e6 = () => $76EG6$getNextElement($ad0b2591dac160be$var$_tmpl$2);
8091
- const $9a74c17d1ef21fdf$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<button class=color-circle-container><div class=outer-circle><div class=inner-circle>`),
8091
+ var $9a74c17d1ef21fdf$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<button class=color-circle-container><div class=outer-circle><div class=inner-circle>`),
8092
8092
  $9a74c17d1ef21fdf$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=color-picker role=form aria-label="Color picker">`);
8093
8093
  /**
8094
8094
  * Internal color circle used in ColorPicker
@@ -8101,22 +8101,22 @@ function $9a74c17d1ef21fdf$var$ColorCircle(_ref) {
8101
8101
  onHoverUpdate: onHoverUpdate
8102
8102
  } = _ref;
8103
8103
  const button = (() => {
8104
- const _el$ = $76EG6$getNextElement($9a74c17d1ef21fdf$var$_tmpl$),
8104
+ var _el$ = $76EG6$getNextElement($9a74c17d1ef21fdf$var$_tmpl$),
8105
8105
  _el$2 = _el$.firstChild,
8106
8106
  _el$3 = _el$2.firstChild;
8107
8107
  _el$.$$click = e => onClick(e.currentTarget, color);
8108
8108
  $76EG6$effect(_p$ => {
8109
- const _v$ = color.label || "",
8109
+ var _v$ = color.label || "",
8110
8110
  _v$2 = "border-color: ".concat(color.value, ";"),
8111
8111
  _v$3 = "background-color: ".concat(color.value, ";");
8112
- _v$ !== _p$._v$ && $76EG6$setAttribute(_el$, "title", _p$._v$ = _v$);
8113
- _p$._v$2 = $76EG6$style(_el$2, _v$2, _p$._v$2);
8114
- _p$._v$3 = $76EG6$style(_el$3, _v$3, _p$._v$3);
8112
+ _v$ !== _p$.e && $76EG6$setAttribute(_el$, "title", _p$.e = _v$);
8113
+ _p$.t = $76EG6$style(_el$2, _v$2, _p$.t);
8114
+ _p$.a = $76EG6$style(_el$3, _v$3, _p$.a);
8115
8115
  return _p$;
8116
8116
  }, {
8117
- _v$: undefined,
8118
- _v$2: undefined,
8119
- _v$3: undefined
8117
+ e: undefined,
8118
+ t: undefined,
8119
+ a: undefined
8120
8120
  });
8121
8121
  $76EG6$runHydrationEvents();
8122
8122
  return _el$;
@@ -8191,7 +8191,7 @@ function $9a74c17d1ef21fdf$export$590326cc34f49e2d(_ref2) {
8191
8191
  if (initial_index > -1) setActiveIndex(initial_index);
8192
8192
  if (onlyCircles) return circles;
8193
8193
  return (() => {
8194
- const _el$4 = $76EG6$getNextElement($9a74c17d1ef21fdf$var$_tmpl$2);
8194
+ var _el$4 = $76EG6$getNextElement($9a74c17d1ef21fdf$var$_tmpl$2);
8195
8195
  $76EG6$insert(_el$4, circles);
8196
8196
  return _el$4;
8197
8197
  })();
@@ -8199,7 +8199,7 @@ function $9a74c17d1ef21fdf$export$590326cc34f49e2d(_ref2) {
8199
8199
  };
8200
8200
  }
8201
8201
  $76EG6$delegateEvents(["click"]);
8202
- const $0f55c2bc0a7b363b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`),
8202
+ var $0f55c2bc0a7b363b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`),
8203
8203
  $0f55c2bc0a7b363b$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div style=overflow:hidden;height:0px;visibility:hidden aria-hidden=true>`);
8204
8204
  const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
8205
8205
  let {
@@ -8227,12 +8227,12 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
8227
8227
  } = _ref;
8228
8228
  if (Array.isArray(children) && children.length === 1) children = children[0];
8229
8229
  innerRef = (() => {
8230
- const _el$ = $76EG6$getNextElement($0f55c2bc0a7b363b$var$_tmpl$);
8230
+ var _el$ = $76EG6$getNextElement($0f55c2bc0a7b363b$var$_tmpl$);
8231
8231
  $76EG6$insert(_el$, children);
8232
8232
  return _el$;
8233
8233
  })();
8234
8234
  outerRef = (() => {
8235
- const _el$2 = $76EG6$getNextElement($0f55c2bc0a7b363b$var$_tmpl$2);
8235
+ var _el$2 = $76EG6$getNextElement($0f55c2bc0a7b363b$var$_tmpl$2);
8236
8236
  $76EG6$insert(_el$2, innerRef);
8237
8237
  return _el$2;
8238
8238
  })();
@@ -8292,7 +8292,7 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
8292
8292
  };
8293
8293
  var $5305cfbbfffd9dc8$exports = {};
8294
8294
  $5305cfbbfffd9dc8$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";
8295
- const $9ef5ce4804a3b61b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<img>`),
8295
+ var $9ef5ce4804a3b61b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<img>`),
8296
8296
  $9ef5ce4804a3b61b$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<source sizes=0px>`),
8297
8297
  $9ef5ce4804a3b61b$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<picture>`);
8298
8298
  const $9ef5ce4804a3b61b$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
@@ -8378,7 +8378,7 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
8378
8378
  $241f2f02cc612a49$export$de56f1198d121036(image_options, () => {}); // noop function is to allow to get here quickly by "jump to function definition"
8379
8379
  $b000f5ef6ce456d9$export$8048b892d651b310(new Error("no image src provided: " + src));
8380
8380
  return (() => {
8381
- const _el$ = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$);
8381
+ var _el$ = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$);
8382
8382
  $76EG6$spread(_el$, image_options, false, false);
8383
8383
  $76EG6$runHydrationEvents();
8384
8384
  return _el$;
@@ -8392,7 +8392,7 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
8392
8392
  const format = formats[i];
8393
8393
  const srcset = $9ef5ce4804a3b61b$var$make_srcset(src, format, resolutions);
8394
8394
  sources.push((() => {
8395
- const _el$2 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$2);
8395
+ var _el$2 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$2);
8396
8396
  $76EG6$setAttribute(_el$2, "type", "image/".concat(format));
8397
8397
  $76EG6$spread(_el$2, set_dataset ? {
8398
8398
  "data-srcset": srcset
@@ -8409,7 +8409,7 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
8409
8409
  delete opts_without_src["src"];
8410
8410
  delete opts_without_src["srcset"];
8411
8411
  const the_image = (() => {
8412
- const _el$3 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$);
8412
+ var _el$3 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$);
8413
8413
  $76EG6$spread(_el$3, opts_without_src, false, false);
8414
8414
  $76EG6$runHydrationEvents();
8415
8415
  return _el$3;
@@ -8421,7 +8421,7 @@ function $9ef5ce4804a3b61b$export$a62825542f1bfcf5() {
8421
8421
  for (let i = 0; i < sources.length; i++) sizes_setter_(sources[i]).catch((0, $b000f5ef6ce456d9$export$8048b892d651b310));
8422
8422
  // embed all sources into a <picture> so that the browser understands they're "together"
8423
8423
  const picture = (() => {
8424
- const _el$4 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$3);
8424
+ var _el$4 = $76EG6$getNextElement($9ef5ce4804a3b61b$var$_tmpl$3);
8425
8425
  $76EG6$insert(_el$4, sources);
8426
8426
  return _el$4;
8427
8427
  })();
@@ -8454,7 +8454,7 @@ function $9ef5ce4804a3b61b$var$optimized_img_url_generator(format, url, width) {
8454
8454
  // 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
8455
8455
  return "".concat($9ef5ce4804a3b61b$export$3d13beba9b52c947, "?format=").concat(format, "&url=").concat(encodeURIComponent(url), "&width=").concat(width);
8456
8456
  }
8457
- const $c987460cedc0d7ec$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`),
8457
+ var $c987460cedc0d7ec$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`),
8458
8458
  $c987460cedc0d7ec$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<canvas class=depict-img-filler height=3000>`),
8459
8459
  $c987460cedc0d7ec$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<div style=position:relative><div class=depict-img-cont></div><!$><!/>`);
8460
8460
  const $c987460cedc0d7ec$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
@@ -8489,7 +8489,7 @@ function $c987460cedc0d7ec$var$Image(_ref2) {
8489
8489
  ...image_options
8490
8490
  } = _ref2;
8491
8491
  const div = (() => {
8492
- const _el$ = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$);
8492
+ var _el$ = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$);
8493
8493
  $76EG6$effect(_$p => $76EG6$style(_el$, "position:relative;width:100%;padding-bottom:".concat(1 / aspect_ratio * 100, "%"), _$p));
8494
8494
  return _el$;
8495
8495
  })();
@@ -8517,14 +8517,14 @@ function $c987460cedc0d7ec$var$CompatibleImage(_ref3) {
8517
8517
  ...image_options
8518
8518
  } = _ref3;
8519
8519
  const canvas = (() => {
8520
- const _el$2 = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$2);
8520
+ var _el$2 = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$2);
8521
8521
  $76EG6$setAttribute(_el$2, "width", 3000 * aspect_ratio);
8522
8522
  return _el$2;
8523
8523
  })();
8524
8524
  const sourceset_component = $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
8525
8525
  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;
8526
8526
  return (() => {
8527
- const _el$3 = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$3),
8527
+ var _el$3 = $76EG6$getNextElement($c987460cedc0d7ec$var$_tmpl$3),
8528
8528
  _el$4 = _el$3.firstChild,
8529
8529
  _el$5 = _el$4.nextSibling,
8530
8530
  [_el$6, _co$] = $76EG6$getNextMarker(_el$5.nextSibling);
@@ -8561,7 +8561,7 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
8561
8561
  }
8562
8562
  var $8254bab8001eaa15$exports = {};
8563
8563
  $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";
8564
- const $73f0a7e385687d5d$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
8564
+ var $73f0a7e385687d5d$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
8565
8565
  $73f0a7e385687d5d$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=second-image-container>`);
8566
8566
  // Saving bytez
8567
8567
  // Maybe? @Daniel
@@ -8709,12 +8709,12 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
8709
8709
  });
8710
8710
  const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
8711
8711
  const images_container = (() => {
8712
- const _el$ = $76EG6$getNextElement($73f0a7e385687d5d$var$_tmpl$),
8712
+ var _el$ = $76EG6$getNextElement($73f0a7e385687d5d$var$_tmpl$),
8713
8713
  _el$3 = _el$.firstChild,
8714
8714
  [_el$4, _co$] = $76EG6$getNextMarker(_el$3.nextSibling),
8715
8715
  _el$2 = _el$4.nextSibling;
8716
8716
  $76EG6$insert(_el$, !no_second_img && (() => {
8717
- const _el$5 = $76EG6$getNextElement($73f0a7e385687d5d$var$_tmpl$2);
8717
+ var _el$5 = $76EG6$getNextElement($73f0a7e385687d5d$var$_tmpl$2);
8718
8718
  $76EG6$insert(_el$5, second_image);
8719
8719
  return _el$5;
8720
8720
  })(), _el$4, _co$);