@depict-ai/utilishared 0.0.3 → 0.0.6

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/dist/index.d.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  /// <reference path="../jsx.d.ts" />
2
- import { EUnavailabilityType } from "../../../lib/api_schema/TrackV2Request";
2
+ /// <reference path="../jsx.d.ts" />
3
+ /// <reference path="../jsx.d.ts" />
4
+ /// <reference path="../jsx.d.ts" />
5
+ /// <reference path="../jsx.d.ts" />
6
+ /// <reference path="../jsx.d.ts" />
7
+ import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
3
8
  /**
4
9
  * @deprecated this was a stupid idea, it's much easier to read if one just does a quick arrow function that provides the wanted arguments
5
10
  */
@@ -132,6 +137,7 @@ export function report(msg: Error | [Error, string], severity: Severity, input_d
132
137
  [key: string]: any;
133
138
  stack?: never;
134
139
  }): void;
140
+ export const base_url: string;
135
141
  /**
136
142
  * Gives a random number between min and max (potentially including min and max).
137
143
  * @param min The minimum number.
@@ -1926,49 +1932,6 @@ export function make_placeholder_rr({ override_rec_renderer, image_width, image_
1926
1932
  * @param callback callback function that gets queued as a task
1927
1933
  */
1928
1934
  export function queueMacroTask(callback: VoidFunction): void;
1929
- export type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T;
1930
- type rec_renderer_result = ReturnType<typeof default_rr> | ReturnType<typeof infinite_renderer> | ReturnType<typeof Auto_GWVM>;
1931
- /**
1932
- * react_surface: this was meant to be a one-stop shop for modify scripts for single page applications, however the caching contains a huge mistake which wasn't discovered due to a memory leak in GWVM. Due to the caching error (which can lead to recommendations being inserted twice) I recommend rewriting or fixing this before use.
1933
- * If it has to be used, consider also checking in the `is_product_page` function if `document.querySelector(`[data-recs_for_product_id='${product_id}']`)` and put data attributes with the product id on all your containers. The bug is that there's a WeakRef holding the rendering result of render_recs, assuming it won't get garbage collected while the recommendations are actually in the DOM. This is a false assumption, as the `result.elements` won't get garbage collected, but the element holding a reference to them can.
1934
- * @param {navigation_ipo An `infinite_promise_no_skip` that resolves every time the page navigates
1935
- * @param element_ipo An `infinite_promise_no_skip` that resolves with an element to attempt insertion into every time such an element is discovered
1936
- * @param get_product_id A function to get the product id of the current page or a provided product URL if applicable
1937
- * @param get_recs A function returning displays
1938
- * @param render_recs A function doing recommendation rendering and returning a RecRendererResult
1939
- * @param insertion_verb The function to use to insert the recommendations returned by `render_recs` into the elements provided by `element_ipo`
1940
- * @param is_product_page A function returning true if something should be done (one is on a page that desires recommendations)
1941
- */
1942
- export class react_surface {
1943
- #private;
1944
- elements_on_page_stash: WeakRef<HTMLElement>[];
1945
- rendered_recs_stash: {
1946
- [key: string]: Promise<WeakRef<Awaited<rec_renderer_result>>>;
1947
- };
1948
- display_stash: {
1949
- [key: string]: Promise<Display[]>;
1950
- };
1951
- navigation_ipo: infinite_promise_no_skip<any>;
1952
- element_ipo: infinite_promise_no_skip<HTMLElement>;
1953
- ensure_fetched_recs(product_id: string): Promise<Display[]>;
1954
- ensure_rendered_and_fetched_recs(product_id: string): Promise<RecRendererResult | {
1955
- elements?: Node_Array | undefined;
1956
- load_more?: ((num?: number | Event | undefined) => void) | undefined;
1957
- displays?: Display[] | undefined;
1958
- }>;
1959
- deduped_ensure_recs_on_page: () => Promise<void>;
1960
- constructor({ navigation_ipo, element_ipo, get_product_id, get_recs, render_recs, insertion_verb, is_product_page, empty_before_insertion, no_container_error_handler, }: {
1961
- navigation_ipo: infinite_promise_no_skip<any>;
1962
- element_ipo: infinite_promise_no_skip<HTMLElement>;
1963
- get_product_id: (url?: string) => string | Promise<string>;
1964
- render_recs: (d: Display[], product_id: string) => rec_renderer_result;
1965
- get_recs: (product_id: string) => Promise<Display[]>;
1966
- insertion_verb?: "replaceWith" | "append" | "prepend" | "before" | "after";
1967
- is_product_page?: () => boolean | Promise<boolean>;
1968
- empty_before_insertion?: boolean;
1969
- no_container_error_handler?: (elements_on_page_stash: WeakRef<HTMLElement>[]) => any;
1970
- });
1971
- }
1972
1935
  /**
1973
1936
  * Makes Node.prototype.removeChild not throw and emulate correct removal when a node is being removed by React's VDOM diffing that we have already removed before
1974
1937
  * @return a WeakSet to add nodes to which you remove and want to ignore removal errors for
package/dist/main.js CHANGED
@@ -1,6 +1,3 @@
1
- function $parcel$export(e, n, v, s) {
2
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
3
- }
4
1
  function $parcel$exportWildcard(dest, source) {
5
2
  Object.keys(source).forEach(function(key) {
6
3
  if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
@@ -17,6 +14,9 @@ function $parcel$exportWildcard(dest, source) {
17
14
 
18
15
  return dest;
19
16
  }
17
+ function $parcel$export(e, n, v, s) {
18
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
19
+ }
20
20
  function $parcel$defineInteropFlag(a) {
21
21
  Object.defineProperty(a, '__esModule', {value: true, configurable: true});
22
22
  }
@@ -26,6 +26,7 @@ function $parcel$interopDefault(a) {
26
26
 
27
27
  $parcel$export(module.exports, "simplified_template_tool", () => $52d3be7ce5146924$export$2e2bcd8739ae039);
28
28
  $parcel$export(module.exports, "wpff", () => $c413c7798924612a$export$2e2bcd8739ae039);
29
+ $parcel$export(module.exports, "base_url", () => $4c6861fbcd3a0611$export$362abebb4b313340);
29
30
  var $ee1d22bd1fcdd4e1$exports = {};
30
31
 
31
32
  $parcel$export($ee1d22bd1fcdd4e1$exports, "cache_args", () => $ee1d22bd1fcdd4e1$export$6e7454c733fa1fb2);
@@ -1495,7 +1496,7 @@ var $94edfb6d9c42a288$exports = {};
1495
1496
 
1496
1497
  $parcel$export($94edfb6d9c42a288$exports, "fetch_recs", () => $94edfb6d9c42a288$export$1bc0df10745d5412);
1497
1498
  $parcel$export($94edfb6d9c42a288$exports, "fetch_recs_whole_response", () => $94edfb6d9c42a288$export$d40679eb4cf32f09);
1498
- const $4c6861fbcd3a0611$export$362abebb4b313340 = "https://api.depict.ai";
1499
+ const $4c6861fbcd3a0611$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
1499
1500
 
1500
1501
 
1501
1502
 
@@ -5289,8 +5290,8 @@ var $e090b20cef3f0516$exports = {};
5289
5290
  $parcel$export($e090b20cef3f0516$exports, "Deprecated_Amazing_Slider", () => $e090b20cef3f0516$export$4d41c6499d53639c);
5290
5291
  $parcel$export($e090b20cef3f0516$exports, "insert_styling_into_slider", () => $e090b20cef3f0516$export$f1b8b9fd75ddcab1);
5291
5292
  // @ts-ignore
5292
- var $4b49eb7589d1388f$exports = {};
5293
- $4b49eb7589d1388f$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict_slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict_slider {\n width: 100%;\n position: relative;\n}\n\n.depict_slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict_slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict_slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict_slider button.right {\n right: 0;\n}\n\n.depict_slider button.left, .depict_slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict_slider button.left.hidden, .depict_slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict_slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict_slider button.left img, .depict_slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict_slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
5293
+ var $7a8d2de82c53f514$exports = {};
5294
+ $7a8d2de82c53f514$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict_slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict_slider {\n width: 100%;\n position: relative;\n}\n\n.depict_slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict_slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict_slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict_slider button.right {\n right: 0;\n}\n\n.depict_slider button.left, .depict_slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict_slider button.left.hidden, .depict_slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict_slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict_slider button.left img, .depict_slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict_slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
5294
5295
 
5295
5296
 
5296
5297
 
@@ -5333,7 +5334,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
5333
5334
  function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
5334
5335
  const style_elem = document.createElement("style");
5335
5336
  style_elem.type = "text/css";
5336
- style_elem.append((0, (/*@__PURE__*/$parcel$interopDefault($4b49eb7589d1388f$exports))));
5337
+ style_elem.append((0, (/*@__PURE__*/$parcel$interopDefault($7a8d2de82c53f514$exports))));
5337
5338
  slider.container.appendChild(style_elem);
5338
5339
  }
5339
5340
 
@@ -5924,8 +5925,8 @@ var $79804e8d76404ae4$exports = {};
5924
5925
 
5925
5926
  $parcel$export($79804e8d76404ae4$exports, "RecommendationSlider", () => $79804e8d76404ae4$export$82cfdc85a4d15688);
5926
5927
  // @ts-ignore
5927
- var $a5562ca4a6ff664b$exports = {};
5928
- $a5562ca4a6ff664b$exports = ".depict_slider {\n width: 100%;\n position: relative;\n}\n\n.depict_slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict_slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict_slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
5928
+ var $98b42e2bc60f50eb$exports = {};
5929
+ $98b42e2bc60f50eb$exports = ".depict_slider {\n width: 100%;\n position: relative;\n}\n\n.depict_slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict_slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict_slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
5929
5930
 
5930
5931
 
5931
5932
 
@@ -5944,7 +5945,7 @@ async function $79804e8d76404ae4$export$82cfdc85a4d15688(t, recommendation_rende
5944
5945
  if (!elements) return rendering_result;
5945
5946
  if (!$79804e8d76404ae4$var$slider_styling_was_inserted) {
5946
5947
  $79804e8d76404ae4$var$slider_styling_was_inserted = true;
5947
- (0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($a5562ca4a6ff664b$exports))));
5948
+ (0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($98b42e2bc60f50eb$exports))));
5948
5949
  }
5949
5950
  insertion_point.replaceWith(slider.container);
5950
5951
  slider.insert_here.append(...elements);
@@ -7827,189 +7828,6 @@ function $13a446968e3581c0$export$c50e1901e8ed0615(callback) {
7827
7828
 
7828
7829
 
7829
7830
 
7830
- var $3edd459240922873$exports = {};
7831
-
7832
- $parcel$export($3edd459240922873$exports, "react_surface", () => $3edd459240922873$export$bce0bfbc3cdd53e5);
7833
-
7834
- // // This was removed from NPM for some reason - Daniel
7835
- // // I modified it to use globalThis as we already have a polyfill for that
7836
- // // Below is the old project's Readme.MD
7837
- //# Simple WeakRef polyfill
7838
- // Polyfils for WeakRef. Supports natively chrome 36, firefox 6, Edge 12, IE 11, Opera 23, Safari 8. With additional polyfills support can go back futher.
7839
- //
7840
- // # npm / yarn
7841
- // Installation
7842
- // `npm i weakref-polyfill`
7843
- // `yarn add weakref-polyfill`
7844
- //
7845
- // Usage
7846
- // ```javascript
7847
- // require('weakref-polyfill');
7848
- // ```
7849
- //
7850
- // ```typescript
7851
- // import 'weakref-polyfill'
7852
- // ```
7853
- //
7854
- // // this was the package.json:
7855
- // {
7856
- // "name": "weakref-pollyfill",
7857
- // "version": "1.0.0",
7858
- // "description": "weakref polyfill",
7859
- // "main": "src/index.js",
7860
- // "repository": {
7861
- // "type": "git",
7862
- // "url": "git+https://github.com/jaenster/weakref-polyfill.git"
7863
- // },
7864
- // "files": [
7865
- // "/src"
7866
- // ],
7867
- // "keywords": [
7868
- // "Polyfill",
7869
- // "WeakRef",
7870
- // "WeakMap",
7871
- // "No dependencies",
7872
- // "MIT",
7873
- // "standalone",
7874
- // "Garbage collector"
7875
- // ],
7876
- // "author": "jaenster",
7877
- // "license": "MIT"
7878
- // }
7879
- /**
7880
- * @description Simple polyfill for WeakRef
7881
- * @author Jaenster
7882
- */ function $15125e3a32315e54$export$3bfe7bc404017560() {
7883
- // @ts-ignore
7884
- globalThis.WeakRef ||= function(wm) {
7885
- function WeakRef(target) {
7886
- wm.set(this, target);
7887
- }
7888
- WeakRef.prototype.deref = function() {
7889
- return wm.get(this);
7890
- };
7891
- return WeakRef;
7892
- }(new WeakMap());
7893
- }
7894
-
7895
-
7896
-
7897
-
7898
-
7899
-
7900
- (0, $15125e3a32315e54$export$3bfe7bc404017560)();
7901
- class $3edd459240922873$export$bce0bfbc3cdd53e5 {
7902
- elements_on_page_stash = [];
7903
- rendered_recs_stash = {};
7904
- display_stash = {};
7905
- #get_product_id;
7906
- #render_recs;
7907
- #get_recs;
7908
- #body_el;
7909
- #insertion_verb;
7910
- #empty_before_insertion = false;
7911
- #is_product_page;
7912
- #no_container_error_handler;
7913
- async ensure_fetched_recs(product_id) {
7914
- const { display_stash: display_stash } = this;
7915
- const already_fetched_recs = await display_stash[product_id];
7916
- if (!already_fetched_recs) {
7917
- (0, $e6c6e7929ea385ae$export$de56f1198d121036)("Fetching displays for", product_id);
7918
- return display_stash[product_id] = this.#get_recs(product_id);
7919
- }
7920
- return already_fetched_recs;
7921
- }
7922
- async ensure_rendered_and_fetched_recs(product_id) {
7923
- const { rendered_recs_stash: rendered_recs_stash } = this;
7924
- const prerendered_recs = (await rendered_recs_stash[product_id])?.deref?.();
7925
- if (prerendered_recs) return prerendered_recs;
7926
- let rendered_recs;
7927
- await (rendered_recs_stash[product_id] = (async ()=>{
7928
- const recs = await this.ensure_fetched_recs(product_id).catch((0, $548fd58b14b25a52$export$8048b892d651b310));
7929
- // @ts-ignore
7930
- rendered_recs = await this.#render_recs(recs, product_id).catch((0, $548fd58b14b25a52$export$8048b892d651b310));
7931
- return new WeakRef(rendered_recs); // if this line throws the whole thing crashes and burns (it gets stuck, I think). I figured that hoping it doesn't throw is still the best solution tho.
7932
- })());
7933
- return rendered_recs;
7934
- }
7935
- deduped_ensure_recs_on_page = (0, $41f528c04cc8a8da$export$535946eb77c946dd)((0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(async ()=>{
7936
- // all erros get caught here and everything gets retried when this is called the next time
7937
- if (!await this.#is_product_page()) {
7938
- (0, $e6c6e7929ea385ae$export$de56f1198d121036)("Not a product page, not doing anything");
7939
- return;
7940
- }
7941
- const product_id = await this.#get_product_id();
7942
- const rendered_recs = await this.ensure_rendered_and_fetched_recs(product_id);
7943
- const { elements: elements } = rendered_recs;
7944
- if (elements) {
7945
- const body = this.#body_el ||= await (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_element("body", 1000);
7946
- if (body) {
7947
- let already_on_page = true;
7948
- for(let i = 0; i < elements.length; i++)if (!body.contains(elements[i])) {
7949
- already_on_page = false;
7950
- break;
7951
- }
7952
- if (already_on_page) {
7953
- (0, $e6c6e7929ea385ae$export$de56f1198d121036)("Elements", elements, "are already on page, not reinserting");
7954
- return;
7955
- }
7956
- }
7957
- // try inserting into container
7958
- const container = await this.#find_existing_container(this.elements_on_page_stash);
7959
- if (!container) {
7960
- if (typeof this.#no_container_error_handler === "function") (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(this.#no_container_error_handler)(this.elements_on_page_stash);
7961
- else {
7962
- (0, $548fd58b14b25a52$export$8048b892d651b310)(new Error("Could not find container to insert into"));
7963
- (0, $e6c6e7929ea385ae$export$de56f1198d121036)(this.elements_on_page_stash);
7964
- }
7965
- return;
7966
- }
7967
- (0, $e6c6e7929ea385ae$export$de56f1198d121036)("Inserting", elements, "into", container);
7968
- if (this.#empty_before_insertion) container.innerHTML = "";
7969
- container[this.#insertion_verb](...elements);
7970
- (async ()=>{
7971
- while(true){
7972
- const navigation = await this.navigation_ipo.promise;
7973
- if (await this.#get_product_id() != product_id) {
7974
- (0, $e6c6e7929ea385ae$export$de56f1198d121036)(navigation, "Navigation away from", product_id, "occured, cleaning up", elements);
7975
- for(let i = 0; i < elements.length; i++)elements[i].remove();
7976
- return;
7977
- }
7978
- }
7979
- })().catch((0, $548fd58b14b25a52$export$8048b892d651b310));
7980
- }
7981
- }));
7982
- async #find_existing_container(elements_on_page_stash) {
7983
- for(let i = elements_on_page_stash.length - 1; i > -1; i--){
7984
- const the_container = elements_on_page_stash[i].deref();
7985
- if (the_container && (this.#body_el ||= await (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_element("body")).contains(the_container)) return the_container;
7986
- }
7987
- }
7988
- constructor({ navigation_ipo: navigation_ipo , element_ipo: element_ipo , get_product_id: get_product_id , get_recs: get_recs , render_recs: render_recs , insertion_verb: insertion_verb = "append" , is_product_page: is_product_page = ()=>true , empty_before_insertion: empty_before_insertion , no_container_error_handler: no_container_error_handler }){
7989
- this.navigation_ipo = navigation_ipo;
7990
- this.element_ipo = element_ipo;
7991
- this.#get_product_id = get_product_id;
7992
- this.#render_recs = (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(render_recs);
7993
- this.#get_recs = (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(get_recs);
7994
- this.#insertion_verb = insertion_verb;
7995
- this.#is_product_page = is_product_page;
7996
- this.#no_container_error_handler = no_container_error_handler;
7997
- if (empty_before_insertion) this.#empty_before_insertion = true;
7998
- (async ()=>{
7999
- while(await navigation_ipo.promise, 1)this.deduped_ensure_recs_on_page();
8000
- })().catch((0, $548fd58b14b25a52$export$8048b892d651b310));
8001
- (async ()=>{
8002
- let element;
8003
- while(element = await element_ipo.promise, 1){
8004
- if (element) this.elements_on_page_stash.push(new WeakRef(element));
8005
- else (0, $e6c6e7929ea385ae$export$de56f1198d121036)("Warning: element ipo resolved with falsey value", element);
8006
- this.deduped_ensure_recs_on_page();
8007
- }
8008
- })().catch((0, $548fd58b14b25a52$export$8048b892d651b310));
8009
- }
8010
- }
8011
-
8012
-
8013
7831
 
8014
7832
  var $d91a08ea384e6cd4$exports = {};
8015
7833
 
@@ -8568,8 +8386,8 @@ var $e587cb3b31b82f43$exports = {};
8568
8386
 
8569
8387
  $parcel$export($e587cb3b31b82f43$exports, "Placeholder", () => $e587cb3b31b82f43$export$84712d0562a614b8);
8570
8388
  $parcel$export($e587cb3b31b82f43$exports, "ContainedPlaceholderImage", () => $e587cb3b31b82f43$export$d613f5b6d0a331a8);
8571
- var $3685a077d883fe74$exports = {};
8572
- $3685a077d883fe74$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";
8389
+ var $b40933d15f93760b$exports = {};
8390
+ $b40933d15f93760b$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";
8573
8391
 
8574
8392
 
8575
8393
 
@@ -8578,7 +8396,7 @@ let $e587cb3b31b82f43$var$inserted = false;
8578
8396
  const $e587cb3b31b82f43$export$84712d0562a614b8 = ({ width: width , height: height = "1em" , class: extra_classes , style: style = "" , ...attributes })=>{
8579
8397
  if (!$e587cb3b31b82f43$var$inserted) {
8580
8398
  // Insert styling on first import
8581
- (0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($3685a077d883fe74$exports))));
8399
+ (0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($b40933d15f93760b$exports))));
8582
8400
  $e587cb3b31b82f43$var$inserted = true;
8583
8401
  }
8584
8402
  return(// @ts-ignore
@@ -8825,8 +8643,8 @@ $parcel$export($a656daa2fa8c279a$exports, "ContainedHoverImage", () => $a656daa2
8825
8643
  var $a312bccd722ac9e4$exports = {};
8826
8644
 
8827
8645
  $parcel$export($a312bccd722ac9e4$exports, "ContainedImage", () => $a312bccd722ac9e4$export$788756b42446dc2d);
8828
- var $75fcccb5637b22e3$exports = {};
8829
- $75fcccb5637b22e3$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";
8646
+ var $ff8966e9502eb828$exports = {};
8647
+ $ff8966e9502eb828$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";
8830
8648
 
8831
8649
 
8832
8650
  var $ff973b2032639b5f$exports = {};
@@ -8994,7 +8812,7 @@ let $a312bccd722ac9e4$var$inserted = false;
8994
8812
  const $a312bccd722ac9e4$export$788756b42446dc2d = ({ init_with_placeholder: init_with_placeholder , ...options })=>{
8995
8813
  if (!$a312bccd722ac9e4$var$inserted) {
8996
8814
  // Insert styling on first import
8997
- (0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($75fcccb5637b22e3$exports))));
8815
+ (0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($ff8966e9502eb828$exports))));
8998
8816
  $a312bccd722ac9e4$var$inserted = true;
8999
8817
  }
9000
8818
  const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
@@ -9070,8 +8888,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
9070
8888
  }
9071
8889
 
9072
8890
 
9073
- var $877ab3b86c09dece$exports = {};
9074
- $877ab3b86c09dece$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";
8891
+ var $9e51291371c564f0$exports = {};
8892
+ $9e51291371c564f0$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";
9075
8893
 
9076
8894
 
9077
8895
 
@@ -9178,7 +8996,7 @@ function $a656daa2fa8c279a$var$start_checking_for_touch_hover() {
9178
8996
  let $a656daa2fa8c279a$var$styling_inserted = false;
9179
8997
  const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({ second_src: second_src , second_srcset: second_srcset , second_srcset_opts: second_srcset_opts , fade_length_seconds: fade_length_seconds , mobile_touch_hover: mobile_touch_hover , navigation_minimum_ms: navigation_minimum_ms = 100 , ...options })=>{
9180
8998
  if (!$a656daa2fa8c279a$var$styling_inserted) {
9181
- (0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($877ab3b86c09dece$exports))));
8999
+ (0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($9e51291371c564f0$exports))));
9182
9000
  $a656daa2fa8c279a$var$styling_inserted = true;
9183
9001
  }
9184
9002
  const main_image = (0, $a312bccd722ac9e4$export$788756b42446dc2d)({
@@ -9420,6 +9238,7 @@ function $12c29616944c2fb7$export$f2ca6fc699ca1fb4(props = {}) {
9420
9238
  }
9421
9239
 
9422
9240
 
9241
+
9423
9242
  $parcel$exportWildcard(module.exports, $ee1d22bd1fcdd4e1$exports);
9424
9243
  $parcel$exportWildcard(module.exports, $eee5951374097b61$exports);
9425
9244
  $parcel$exportWildcard(module.exports, $548fd58b14b25a52$exports);
@@ -9513,7 +9332,6 @@ $parcel$exportWildcard(module.exports, $2fafbbbf345dcde0$exports);
9513
9332
  $parcel$exportWildcard(module.exports, $13a446968e3581c0$exports);
9514
9333
  $parcel$exportWildcard(module.exports, $3f34dc07544c5857$exports);
9515
9334
  $parcel$exportWildcard(module.exports, $650b64c1b384c895$exports);
9516
- $parcel$exportWildcard(module.exports, $3edd459240922873$exports);
9517
9335
  $parcel$exportWildcard(module.exports, $3721a5ccba25c247$exports);
9518
9336
  $parcel$exportWildcard(module.exports, $d91a08ea384e6cd4$exports);
9519
9337
  $parcel$exportWildcard(module.exports, $6d0c26cd36f5eeff$exports);