@depict-ai/utilishared 0.0.7 → 0.0.9

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,10 +1,5 @@
1
1
  /// <reference path="../jsx.d.ts" />
2
- /// <reference path="../jsx.d.ts" />
3
2
  import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
4
- /**
5
- * @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
6
- */
7
- export function cache_args(fn: any, ...args: any[]): (...unimportant_args: any[]) => any;
8
3
  export const is_debug: boolean;
9
4
  /**
10
5
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
@@ -13,6 +8,10 @@ export const set_browser_prefix: (str: any) => void;
13
8
  export function dlog(...args: any[]): void;
14
9
  export function dwarn(...args: any[]): void;
15
10
  export function derror(...args: any[]): void;
11
+ /**
12
+ * @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
13
+ */
14
+ export function cache_args(fn: any, ...args: any[]): (...unimportant_args: any[]) => any;
16
15
  /**
17
16
  * Class containing state that an IPNS operates on. It's only exported for type info and in case that you want to use it for instanceof checks.
18
17
  * subscribers is an array of functions that get called every time push_value is called with a new value AND all previous subscribers are done
@@ -1292,7 +1291,6 @@ export interface Pro_Slider_Options {
1292
1291
  * @deprecated please use RecommendationSlider instead
1293
1292
  */
1294
1293
  export function Pro_Slider(t: Tenant, rendering_options: Extended_RR_Options, options_for_us?: Pro_Slider_Options, slider_options?: Slider_Options): ReturnType<typeof Rec_Renderer>;
1295
- export const wpff: (dlog: any, error_log?: any[] | undefined) => (url: RequestInfo, body: BodyInit, headers?: HeadersInit | undefined, decode_json?: boolean | undefined, fetch_options?: RequestInit | undefined, attempt?: number | undefined) => any;
1296
1294
  /**
1297
1295
  * @deprecated Please use recommendation renderer instead
1298
1296
  */
@@ -1321,7 +1319,6 @@ interface TemplateToolOptions {
1321
1319
  min_items?: number;
1322
1320
  DNT?: boolean;
1323
1321
  debug?: boolean;
1324
- waitForSelectors?: string[];
1325
1322
  type?: string;
1326
1323
  product_id?: Function | ((url?: string) => string);
1327
1324
  sendGa?: boolean;
@@ -1395,6 +1392,7 @@ chunk_size_for_load_more, insertion_promise, }: {
1395
1392
  }): Promise<ChildNode[] | void>;
1396
1393
  export function default_pre_processor(_t: any, d: any, i: number, with_loadmore: boolean, with_slider: boolean, infinite_scroll: boolean): any;
1397
1394
  export function default_post_processor(_t: any, itms: HTMLCollection, d: any, slider: Deprecated_Amazing_Slider | null): HTMLCollection;
1395
+ export const wpff: (dlog: any, error_log?: any[] | undefined) => (url: RequestInfo, body: BodyInit, headers?: HeadersInit | undefined, decode_json?: boolean | undefined, fetch_options?: RequestInit | undefined, attempt?: number | undefined) => any;
1398
1396
  export const use_element: <E extends HTMLOrSVGElement = HTMLElement>(callback: (element: E) => void, element: E) => E;
1399
1397
  export const use_listener: <E extends HTMLElement = HTMLElement>(event: string, handler: EventListener, element: E) => E;
1400
1398
  export const classlist: (classes: (string | undefined)[]) => string;
@@ -2196,3 +2194,4 @@ export function SearchIcon(props?: JSX.SvgSVGAttributes<SVGSVGElement>): HTMLEle
2196
2194
  export function SortIconAsc(props?: JSX.SvgSVGAttributes<SVGSVGElement>): SVGElement;
2197
2195
  export function SortIconDesc(props?: JSX.SvgSVGAttributes<SVGSVGElement>): HTMLElement;
2198
2196
  export function TickIcon(props?: JSX.SvgSVGAttributes<SVGSVGElement>): HTMLElement;
2197
+ export const version = "0.0.9";
package/dist/main.js CHANGED
@@ -27,24 +27,7 @@ function $parcel$interopDefault(a) {
27
27
  $parcel$export(module.exports, "simplified_template_tool", () => $52d3be7ce5146924$export$2e2bcd8739ae039);
28
28
  $parcel$export(module.exports, "wpff", () => $c413c7798924612a$export$2e2bcd8739ae039);
29
29
  $parcel$export(module.exports, "base_url", () => $4c6861fbcd3a0611$export$362abebb4b313340);
30
- var $ee1d22bd1fcdd4e1$exports = {};
31
-
32
- $parcel$export($ee1d22bd1fcdd4e1$exports, "cache_args", () => $ee1d22bd1fcdd4e1$export$6e7454c733fa1fb2);
33
- /**
34
- * @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
35
- */ function $ee1d22bd1fcdd4e1$export$6e7454c733fa1fb2(fn, ...args) {
36
- return function(...unimportant_args) {
37
- return fn.apply(this, [
38
- ...args,
39
- ...unimportant_args
40
- ]);
41
- };
42
- }
43
-
44
-
45
- var $eee5951374097b61$exports = {};
46
-
47
- $parcel$export($eee5951374097b61$exports, "check_displays", () => $eee5951374097b61$export$8582cf3716962dc2);
30
+ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fbfd8236492);
48
31
  var $e6c6e7929ea385ae$exports = {};
49
32
 
50
33
  $parcel$export($e6c6e7929ea385ae$exports, "set_browser_prefix", () => $e6c6e7929ea385ae$export$2dd75a6b038dc8cb);
@@ -81,6 +64,25 @@ function $e6c6e7929ea385ae$export$997143d41f6a0c9b(...args) {
81
64
  }
82
65
 
83
66
 
67
+ var $ee1d22bd1fcdd4e1$exports = {};
68
+
69
+ $parcel$export($ee1d22bd1fcdd4e1$exports, "cache_args", () => $ee1d22bd1fcdd4e1$export$6e7454c733fa1fb2);
70
+ /**
71
+ * @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
72
+ */ function $ee1d22bd1fcdd4e1$export$6e7454c733fa1fb2(fn, ...args) {
73
+ return function(...unimportant_args) {
74
+ return fn.apply(this, [
75
+ ...args,
76
+ ...unimportant_args
77
+ ]);
78
+ };
79
+ }
80
+
81
+
82
+ var $eee5951374097b61$exports = {};
83
+
84
+ $parcel$export($eee5951374097b61$exports, "check_displays", () => $eee5951374097b61$export$8582cf3716962dc2);
85
+
84
86
  var $268cbd9e4ade92db$exports = {};
85
87
 
86
88
  $parcel$export($268cbd9e4ade92db$exports, "catchify", () => $268cbd9e4ade92db$export$b3bbfd758f11cfa9);
@@ -618,7 +620,7 @@ async function $0cf2ab65d8901485$var$load_sentry(TENANT, more_options = {}, extr
618
620
 
619
621
 
620
622
 
621
- const $61a34358bf0d3d8b$export$af2e17a20c2ea3c5 = !(process.env.SENTRY === "true") && (process.env.SENTRY === "false" || (0, $7b5e577a60b81e60$export$55fe61489d2c7417)) ? /*@__PURE__*/ $61a34358bf0d3d8b$var$fakesentry() : /*@__PURE__*/ (0, $0cf2ab65d8901485$export$2e2bcd8739ae039)(process.env.TENANT || "unknown", undefined, (0, $e6c6e7929ea385ae$export$de56f1198d121036));
623
+ const $61a34358bf0d3d8b$export$af2e17a20c2ea3c5 = !(process.env.SENTRY === "true" || process.env.DEPICT_ERROR_REPORTING === "true" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "true") && (process.env.SENTRY === "false" || process.env.DEPICT_ERROR_REPORTING === "false" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "false" || (0, $7b5e577a60b81e60$export$55fe61489d2c7417)) ? /*@__PURE__*/ $61a34358bf0d3d8b$var$fakesentry() : /*@__PURE__*/ (0, $0cf2ab65d8901485$export$2e2bcd8739ae039)(process.env.TENANT || "unknown", undefined, (0, $e6c6e7929ea385ae$export$de56f1198d121036));
622
624
  function $61a34358bf0d3d8b$var$fakesentry() {
623
625
  // // source: https://docs.sentry.io/platforms/javascript/troubleshooting/#dealing-with-ad-blockers
624
626
  // const handler = {
@@ -3491,7 +3493,7 @@ async function $e5479d0db39d328b$export$c83d8da642b5104a(t, options, GWVM_opts)
3491
3493
  return rendering_results;
3492
3494
  }
3493
3495
  root.append(...rendered_elements);
3494
- const load_more_cont = (0, $bf7f12fe044e41b2$export$d3e2a0560cbf4787)(`<div class="load_more_container"></div>`);
3496
+ const load_more_cont = (0, $bf7f12fe044e41b2$export$d3e2a0560cbf4787)(`<div class="load-more-container"></div>`);
3495
3497
  const button_element = button instanceof Element ? button : (0, $bf7f12fe044e41b2$export$d3e2a0560cbf4787)(`<button class="load_more">${button || "Visa mer"}</button>`);
3496
3498
  button_element.addEventListener("click", load_more);
3497
3499
  load_more_cont.append(button_element);
@@ -4183,7 +4185,7 @@ class $1da560af170fb839$export$3be7054c61590ee3 {
4183
4185
  constructor({ container: container , lazyfinder: lazyfinder , selector: selector = [
4184
4186
  `img`,
4185
4187
  `source`
4186
- ].map((t)=>`:not(.d_navbutton) > ${t}:not(.filler):not(.nolazy)`).join(", ") , wait_for_dominsertion: wait_for_dominsertion = true , only_load_intersecting: only_load_intersecting = false , ignore_data_urls: ignore_data_urls = false , verbose: verbose }){
4188
+ ].map((t)=>`:not(.d-navbutton) > ${t}:not(.filler):not(.nolazy)`).join(", ") , wait_for_dominsertion: wait_for_dominsertion = true , only_load_intersecting: only_load_intersecting = false , ignore_data_urls: ignore_data_urls = false , verbose: verbose }){
4187
4189
  // store options in class so class instances can be looked at and their options are transparent
4188
4190
  this.container = container;
4189
4191
  this.selector = selector;
@@ -4298,7 +4300,7 @@ const $107a74aa4ea5902d$export$ffb0004e005737fa = ({ children: children }, _unk
4298
4300
  class $1683d0164abd7c1d$export$692b27c28639e5b9 {
4299
4301
  // this is just here because it's often needed together with the slider
4300
4302
  container = (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("div", {
4301
- class: "depict_slider depict"
4303
+ class: "depict-slider depict"
4302
4304
  });
4303
4305
  #elements = {
4304
4306
  sliding_el_: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("div", {
@@ -4306,12 +4308,12 @@ class $1683d0164abd7c1d$export$692b27c28639e5b9 {
4306
4308
  }),
4307
4309
  left_: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("button", {
4308
4310
  "aria-label": "Scroll left",
4309
- class: "left d_navbutton",
4311
+ class: "left d-navbutton",
4310
4312
  type: "button"
4311
4313
  }),
4312
4314
  right_: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("button", {
4313
4315
  "aria-label": "Scroll right",
4314
- class: "right d_navbutton",
4316
+ class: "right d-navbutton",
4315
4317
  type: "button"
4316
4318
  })
4317
4319
  };
@@ -4974,77 +4976,12 @@ $parcel$export($0b6a8303b64cced1$exports, "Depict", () => $0b6a8303b64cced1$expo
4974
4976
 
4975
4977
 
4976
4978
 
4977
-
4978
-
4979
-
4980
-
4981
- var /**
4982
- * @deprecated please use `fetch_retry()` instead
4983
- *
4984
- * Windows proof fetch factory: windows proof fetch is a utility which retries fetch requests 10 times when they fail. Reason for this is a certain windows 10 build where the network stack randomly breaks 20% of https connections
4985
- * (Note: this thing really should be rewritten with exponential backoff and a better API)
4986
- * @param dlog logging function to use
4987
- * @param error_log an array to which errors will be pushed
4988
- * @return a windows proof fetch function
4989
- */ $c413c7798924612a$export$2e2bcd8739ae039 = (dlog, error_log)=>{
4990
- // https://sentry.io/organizations/depictai-0o/issues/2025371462/?project=5476183&query=is%3Aunresolved
4991
- // https://stackoverflow.com/a/52947884
4992
- const windows_proof_fetch = async function(url, body, headers, decode_json, fetch_options, attempt) {
4993
- attempt ||= 1;
4994
- decode_json ??= true;
4995
- const { stack: stack } = new Error();
4996
- const elog = (...args)=>{
4997
- if (Array.isArray(error_log)) error_log.push(args);
4998
- return dlog(...args);
4999
- };
5000
- return await fetch(url, {
5001
- ...body ? {
5002
- body: body
5003
- } : {},
5004
- "method": "POST",
5005
- ...fetch_options ? fetch_options : {},
5006
- ...headers ? {
5007
- headers: headers
5008
- } : {}
5009
- }).then(async (response)=>{
5010
- if (!response || !response.ok || response.status !== 200) {
5011
- if (response.status === 422) (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)($c413c7798924612a$var$send_sentry_422)(response, body, stack);
5012
- elog("Response not ok", response);
5013
- return false;
5014
- } else return await response[decode_json ? "json" : "text"]().catch((e)=>elog("error while decoding json", e));
5015
- }).catch((e)=>{
5016
- elog("Error while fetching", e, url, body);
5017
- if ((e.name == "TypeError" || e.message == "Failed to fetch" || e.message == "Network request failed") && !e.message.includes("CORS") && !e.name.includes("CORS") && ++attempt < 10) return windows_proof_fetch(url, body, headers, decode_json, fetch_options, attempt);
5018
- return false;
5019
- });
5020
- };
5021
- return windows_proof_fetch;
5022
- };
5023
- async function $c413c7798924612a$var$send_sentry_422(response, body, stack) {
5024
- const msg = `Validation error: got 422 from API`;
5025
- const text = await response.text();
5026
- (0, $e6c6e7929ea385ae$export$de56f1198d121036)(msg, "body", body, "response", response, "text", text, "stack", stack);
5027
- (0, $61a34358bf0d3d8b$export$af2e17a20c2ea3c5).withScope(function(scope) {
5028
- scope.setExtra("stack", stack);
5029
- scope.setExtra("request_body", body);
5030
- scope.setExtra("response", response);
5031
- scope.setExtra("serialized_response", (0, $45e05ec4fd7f1ee7$export$39d526a1194b6499)(response));
5032
- scope.setExtra("response_text", text);
5033
- scope.setLevel("error");
5034
- this.captureException(new Error(msg));
5035
- });
5036
- }
5037
-
5038
-
5039
4979
  const $0b6a8303b64cced1$var$discountMatcher = /{DISCOUNT{([\s\S]+?)}}/g;
5040
4980
  const $0b6a8303b64cced1$var$noDiscountMatcher = /{NODISCOUNT{([\s\S]+?)}}/g;
5041
- const $0b6a8303b64cced1$var$APICreateEvent = (0, $4c6861fbcd3a0611$export$362abebb4b313340) + "/create-events";
5042
- const $0b6a8303b64cced1$var$APIRecommend = (0, $4c6861fbcd3a0611$export$362abebb4b313340) + "/recommend";
5043
- let $0b6a8303b64cced1$var$pageview_sent = false, $0b6a8303b64cced1$var$windows_proof_fetch;
4981
+ let $0b6a8303b64cced1$var$pageview_sent = false;
5044
4982
  class $0b6a8303b64cced1$export$1a8782481a9af507 {
5045
4983
  constructor(settings){
5046
4984
  this.settings = settings;
5047
- $0b6a8303b64cced1$var$windows_proof_fetch = (0, $c413c7798924612a$export$2e2bcd8739ae039)(settings.debug ? console.log.bind(console) : ()=>{});
5048
4985
  }
5049
4986
  #dispatched_recs_inserted = false;
5050
4987
  init(callback, existingDisplays) {
@@ -5056,17 +4993,16 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
5056
4993
  }
5057
4994
  }
5058
4995
  loadRecommendations(callback) {
5059
- const { tenant: tenant , product_id: product_id , market: market , type: type , gaid: gaid } = this.settings;
5060
- $0b6a8303b64cced1$var$windows_proof_fetch($0b6a8303b64cced1$var$APIRecommend, JSON.stringify({
4996
+ const { tenant: tenant , product_id: product_id , type: type , market: market } = this.settings;
4997
+ (0, $94edfb6d9c42a288$export$1bc0df10745d5412)(// @ts-ignore - Quick workaround, as we don't have a tenant object here
4998
+ {
5061
4999
  tenant: tenant,
5062
- market: market,
5063
- product_id: product_id(),
5064
- dsid: (0, $e0a87646d12cb987$export$6399bdb2291895e0)(),
5065
- user_id: (0, $e0a87646d12cb987$export$6399bdb2291895e0)(),
5066
- type: type
5067
- })).then((data)=>{
5068
- this.data = data?.displays;
5069
- if (!this.data) this.data = [];
5000
+ market: market
5001
+ }, {
5002
+ type: type,
5003
+ product_id: product_id()
5004
+ }).then((recs)=>{
5005
+ this.data = recs;
5070
5006
  (0, $eee5951374097b61$export$8582cf3716962dc2)({
5071
5007
  ...this.settings,
5072
5008
  recs: this.data,
@@ -5074,25 +5010,7 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
5074
5010
  });
5075
5011
  }).catch((e)=>{
5076
5012
  if (this.settings.debug) console.warn("template-tool: error fetching: ", e);
5077
- this.data = [];
5078
- }).finally(()=>{
5079
- if (this.settings.waitForSelectors !== undefined) {
5080
- const SLEEP_TIME_MS = 50;
5081
- let MAX_RETRY = Math.round(10000 / SLEEP_TIME_MS);
5082
- const tick = setInterval(()=>{
5083
- let allLoaded = true;
5084
- for (const selector of this.settings.waitForSelectors)if (document.querySelector(selector) == null) {
5085
- allLoaded = false;
5086
- break;
5087
- }
5088
- if (MAX_RETRY === 0 || allLoaded) {
5089
- clearInterval(tick);
5090
- callback();
5091
- }
5092
- MAX_RETRY--;
5093
- }, SLEEP_TIME_MS);
5094
- } else callback();
5095
- });
5013
+ }).finally(()=>callback());
5096
5014
  }
5097
5015
  trackGAEvent(action, index, product_id, ga_product_ids) {
5098
5016
  if (this.settings.sendGa === false) return;
@@ -5291,7 +5209,7 @@ $parcel$export($e090b20cef3f0516$exports, "Deprecated_Amazing_Slider", () => $e0
5291
5209
  $parcel$export($e090b20cef3f0516$exports, "insert_styling_into_slider", () => $e090b20cef3f0516$export$f1b8b9fd75ddcab1);
5292
5210
  // @ts-ignore
5293
5211
  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";
5212
+ $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";
5295
5213
 
5296
5214
 
5297
5215
 
@@ -5518,7 +5436,7 @@ function $765ddca135d7ab33$var$load_more_elements(root, chunk_size = 4) {
5518
5436
  return has_more;
5519
5437
  }
5520
5438
  function $765ddca135d7ab33$var$setup_load_more(t, root, chunk_size) {
5521
- const { catchify: catchify } = t, load_more_cont = (0, $bf7f12fe044e41b2$export$d3e2a0560cbf4787)(`<div class="load_more_container"></div>`), load_button = load_more_cont.appendChild((0, $bf7f12fe044e41b2$export$d3e2a0560cbf4787)(`<button class="load_more">Visa mer</button>`));
5439
+ const { catchify: catchify } = t, load_more_cont = (0, $bf7f12fe044e41b2$export$d3e2a0560cbf4787)(`<div class="load-more-container"></div>`), load_button = load_more_cont.appendChild((0, $bf7f12fe044e41b2$export$d3e2a0560cbf4787)(`<button class="load_more">Visa mer</button>`));
5522
5440
  load_button.addEventListener("click", catchify(load_more_recs_and_hide_button_if_needed));
5523
5441
  root.after(load_more_cont);
5524
5442
  load_more_recs_and_hide_button_if_needed();
@@ -5554,6 +5472,67 @@ function $765ddca135d7ab33$export$c410ce1205e5118a(_t, itms, d, slider) {
5554
5472
 
5555
5473
 
5556
5474
 
5475
+ var /**
5476
+ * @deprecated please use `fetch_retry()` instead
5477
+ *
5478
+ * Windows proof fetch factory: windows proof fetch is a utility which retries fetch requests 10 times when they fail. Reason for this is a certain windows 10 build where the network stack randomly breaks 20% of https connections
5479
+ * (Note: this thing really should be rewritten with exponential backoff and a better API)
5480
+ * @param dlog logging function to use
5481
+ * @param error_log an array to which errors will be pushed
5482
+ * @return a windows proof fetch function
5483
+ */ $c413c7798924612a$export$2e2bcd8739ae039 = (dlog, error_log)=>{
5484
+ // https://sentry.io/organizations/depictai-0o/issues/2025371462/?project=5476183&query=is%3Aunresolved
5485
+ // https://stackoverflow.com/a/52947884
5486
+ const windows_proof_fetch = async function(url, body, headers, decode_json, fetch_options, attempt) {
5487
+ attempt ||= 1;
5488
+ decode_json ??= true;
5489
+ const { stack: stack } = new Error();
5490
+ const elog = (...args)=>{
5491
+ if (Array.isArray(error_log)) error_log.push(args);
5492
+ return dlog(...args);
5493
+ };
5494
+ return await fetch(url, {
5495
+ ...body ? {
5496
+ body: body
5497
+ } : {},
5498
+ "method": "POST",
5499
+ ...fetch_options ? fetch_options : {},
5500
+ ...headers ? {
5501
+ headers: headers
5502
+ } : {}
5503
+ }).then(async (response)=>{
5504
+ if (!response || !response.ok || response.status !== 200) {
5505
+ if (response.status === 422) (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)($c413c7798924612a$var$send_sentry_422)(response, body, stack);
5506
+ elog("Response not ok", response);
5507
+ return false;
5508
+ } else return await response[decode_json ? "json" : "text"]().catch((e)=>elog("error while decoding json", e));
5509
+ }).catch((e)=>{
5510
+ elog("Error while fetching", e, url, body);
5511
+ if ((e.name == "TypeError" || e.message == "Failed to fetch" || e.message == "Network request failed") && !e.message.includes("CORS") && !e.name.includes("CORS") && ++attempt < 10) return windows_proof_fetch(url, body, headers, decode_json, fetch_options, attempt);
5512
+ return false;
5513
+ });
5514
+ };
5515
+ return windows_proof_fetch;
5516
+ };
5517
+ async function $c413c7798924612a$var$send_sentry_422(response, body, stack) {
5518
+ const msg = `Validation error: got 422 from API`;
5519
+ const text = await response.text();
5520
+ (0, $e6c6e7929ea385ae$export$de56f1198d121036)(msg, "body", body, "response", response, "text", text, "stack", stack);
5521
+ (0, $61a34358bf0d3d8b$export$af2e17a20c2ea3c5).withScope(function(scope) {
5522
+ scope.setExtra("stack", stack);
5523
+ scope.setExtra("request_body", body);
5524
+ scope.setExtra("response", response);
5525
+ scope.setExtra("serialized_response", (0, $45e05ec4fd7f1ee7$export$39d526a1194b6499)(response));
5526
+ scope.setExtra("response_text", text);
5527
+ scope.setLevel("error");
5528
+ this.captureException(new Error(msg));
5529
+ });
5530
+ }
5531
+
5532
+
5533
+
5534
+
5535
+
5557
5536
 
5558
5537
 
5559
5538
 
@@ -5696,7 +5675,7 @@ async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({ rows: rows , container
5696
5675
  if (button) {
5697
5676
  button_class = (0, $650b64c1b384c895$export$a6db784f019668ba)();
5698
5677
  const button_container = (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("div", {
5699
- class: "load_more_container " + button_class,
5678
+ class: "load-more-container " + button_class,
5700
5679
  children: (0, $90e0b983530610e7$export$f63fcc839cb0f734)("click", ()=>ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)
5701
5680
  });
5702
5681
  container_element.after(button_container);
@@ -5926,7 +5905,7 @@ var $79804e8d76404ae4$exports = {};
5926
5905
  $parcel$export($79804e8d76404ae4$exports, "RecommendationSlider", () => $79804e8d76404ae4$export$82cfdc85a4d15688);
5927
5906
  // @ts-ignore
5928
5907
  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";
5908
+ $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";
5930
5909
 
5931
5910
 
5932
5911
 
@@ -8195,7 +8174,7 @@ function $dba3e72fb3e5c53d$export$4a3043e508dd72f0({ children: children , ...att
8195
8174
  type: "button",
8196
8175
  children: children
8197
8176
  });
8198
- button.classList.add("show_more");
8177
+ button.classList.add("show-more");
8199
8178
  return button;
8200
8179
  }
8201
8180
 
@@ -8644,7 +8623,7 @@ var $a312bccd722ac9e4$exports = {};
8644
8623
 
8645
8624
  $parcel$export($a312bccd722ac9e4$exports, "ContainedImage", () => $a312bccd722ac9e4$export$788756b42446dc2d);
8646
8625
  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";
8626
+ $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";
8648
8627
 
8649
8628
 
8650
8629
  var $ff973b2032639b5f$exports = {};
@@ -8834,7 +8813,7 @@ function $a312bccd722ac9e4$var$Image({ aspect_ratio: aspect_ratio , alt: alt , r
8834
8813
  } : {},
8835
8814
  ...image_options,
8836
8815
  class: (0, $90e0b983530610e7$export$22a65337c1b43b1f)([
8837
- "depict_img_mod ",
8816
+ "depict-img-mod ",
8838
8817
  image_options.class,
8839
8818
  $a312bccd722ac9e4$var$add_nolazy_to_placeholder(rendering_options?.type)
8840
8819
  ])
@@ -8843,7 +8822,7 @@ function $a312bccd722ac9e4$var$Image({ aspect_ratio: aspect_ratio , alt: alt , r
8843
8822
  }
8844
8823
  function $a312bccd722ac9e4$var$CompatibleImage({ aspect_ratio: aspect_ratio , alt: alt , remove_on_error: remove_on_error , rendering_options: rendering_options , srcset_opts: srcset_opts , ...image_options }) {
8845
8824
  const canvas = (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("canvas", {
8846
- class: "depict_img_filler",
8825
+ class: "depict-img-filler",
8847
8826
  width: 3000 * aspect_ratio,
8848
8827
  height: 3000
8849
8828
  });
@@ -8853,7 +8832,7 @@ function $a312bccd722ac9e4$var$CompatibleImage({ aspect_ratio: aspect_ratio , al
8853
8832
  style: "position:relative",
8854
8833
  children: [
8855
8834
  (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("div", {
8856
- class: "depict_img_cont",
8835
+ class: "depict-img-cont",
8857
8836
  children: (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)(IMG_tag, {
8858
8837
  alt: alt,
8859
8838
  ...remove_on_error ? {
@@ -8861,7 +8840,7 @@ function $a312bccd722ac9e4$var$CompatibleImage({ aspect_ratio: aspect_ratio , al
8861
8840
  } : {},
8862
8841
  ...image_options,
8863
8842
  class: (0, $90e0b983530610e7$export$22a65337c1b43b1f)([
8864
- "depict_img_comp",
8843
+ "depict-img-comp",
8865
8844
  image_options.class,
8866
8845
  $a312bccd722ac9e4$var$add_nolazy_to_placeholder(rendering_options?.type)
8867
8846
  ])
@@ -8889,7 +8868,7 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
8889
8868
 
8890
8869
 
8891
8870
  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";
8871
+ $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";
8893
8872
 
8894
8873
 
8895
8874
 
@@ -8905,8 +8884,8 @@ const $a656daa2fa8c279a$var$TOUCHCANCEL = "touchcancel";
8905
8884
  const $a656daa2fa8c279a$var$MOUSEOVER = "mouseover";
8906
8885
  const $a656daa2fa8c279a$var$MOUSELEAVE = "mouseleave";
8907
8886
  const $a656daa2fa8c279a$var$HOVER_CLASS = "hovering";
8908
- /** This number represents how many elements are in front of div.images_container
8909
- * Here are the elements: img.depict_img_mod, div, img.depict_img_mod, div, div.second_image_container, div.main_image_container, div.images_container
8887
+ /** This number represents how many elements are in front of div.images-container
8888
+ * Here are the elements: img.depict-img-mod, div, img.depict-img-mod, div, div.second-image-container, div.main-image-container, div.images-container
8910
8889
  * This number is not very dynamic but much more performant than iterating
8911
8890
  */ const $a656daa2fa8c279a$var$HOVER_IMAGE_DEPTH = 7;
8912
8891
  const $a656daa2fa8c279a$var$MAX_COLLISION_DETECTION_RATE = 70; // ms
@@ -9010,14 +8989,14 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({ second_src: second_src , se
9010
8989
  });
9011
8990
  const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
9012
8991
  const images_container = (0, $107a74aa4ea5902d$export$25062201e9e25d76)("div", {
9013
- class: "images_container",
8992
+ class: "images-container",
9014
8993
  children: [
9015
8994
  !no_second_img && (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("div", {
9016
- class: "second_image_container",
8995
+ class: "second-image-container",
9017
8996
  children: second_image
9018
8997
  }),
9019
8998
  (0, $107a74aa4ea5902d$export$34b9dba7ce09269b)("div", {
9020
- class: "main_image_container",
8999
+ class: "main-image-container",
9021
9000
  children: main_image
9022
9001
  })
9023
9002
  ]
@@ -9239,6 +9218,10 @@ function $12c29616944c2fb7$export$f2ca6fc699ca1fb4(props = {}) {
9239
9218
 
9240
9219
 
9241
9220
 
9221
+ const $815f67c61b4c0a42$export$83d89fbfd8236492 = "0.0.9";
9222
+
9223
+
9224
+ (0, $e6c6e7929ea385ae$export$de56f1198d121036)("@depict-ai/utilishared version", (0, $815f67c61b4c0a42$export$83d89fbfd8236492));
9242
9225
  $parcel$exportWildcard(module.exports, $ee1d22bd1fcdd4e1$exports);
9243
9226
  $parcel$exportWildcard(module.exports, $eee5951374097b61$exports);
9244
9227
  $parcel$exportWildcard(module.exports, $548fd58b14b25a52$exports);
package/dist/module.js CHANGED
@@ -7,24 +7,6 @@ function $parcel$defineInteropFlag(a) {
7
7
  function $parcel$interopDefault(a) {
8
8
  return a && a.__esModule ? a.default : a;
9
9
  }
10
- var $a1c80794e6bf4cc2$exports = {};
11
-
12
- $parcel$export($a1c80794e6bf4cc2$exports, "cache_args", () => $a1c80794e6bf4cc2$export$6e7454c733fa1fb2);
13
- /**
14
- * @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
15
- */ function $a1c80794e6bf4cc2$export$6e7454c733fa1fb2(fn, ...args) {
16
- return function(...unimportant_args) {
17
- return fn.apply(this, [
18
- ...args,
19
- ...unimportant_args
20
- ]);
21
- };
22
- }
23
-
24
-
25
- var $66b898e9bfcef532$exports = {};
26
-
27
- $parcel$export($66b898e9bfcef532$exports, "check_displays", () => $66b898e9bfcef532$export$8582cf3716962dc2);
28
10
  var $649f456f663da9fc$exports = {};
29
11
 
30
12
  $parcel$export($649f456f663da9fc$exports, "set_browser_prefix", () => $649f456f663da9fc$export$2dd75a6b038dc8cb);
@@ -61,6 +43,25 @@ function $649f456f663da9fc$export$997143d41f6a0c9b(...args) {
61
43
  }
62
44
 
63
45
 
46
+ var $a1c80794e6bf4cc2$exports = {};
47
+
48
+ $parcel$export($a1c80794e6bf4cc2$exports, "cache_args", () => $a1c80794e6bf4cc2$export$6e7454c733fa1fb2);
49
+ /**
50
+ * @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
51
+ */ function $a1c80794e6bf4cc2$export$6e7454c733fa1fb2(fn, ...args) {
52
+ return function(...unimportant_args) {
53
+ return fn.apply(this, [
54
+ ...args,
55
+ ...unimportant_args
56
+ ]);
57
+ };
58
+ }
59
+
60
+
61
+ var $66b898e9bfcef532$exports = {};
62
+
63
+ $parcel$export($66b898e9bfcef532$exports, "check_displays", () => $66b898e9bfcef532$export$8582cf3716962dc2);
64
+
64
65
  var $b04e44fad5ea42c7$exports = {};
65
66
 
66
67
  $parcel$export($b04e44fad5ea42c7$exports, "catchify", () => $b04e44fad5ea42c7$export$b3bbfd758f11cfa9);
@@ -598,7 +599,7 @@ async function $a035d75d336cf506$var$load_sentry(TENANT, more_options = {}, extr
598
599
 
599
600
 
600
601
 
601
- const $eba382943196079c$export$af2e17a20c2ea3c5 = !(process.env.SENTRY === "true") && (process.env.SENTRY === "false" || (0, $571bce04eb920cd8$export$55fe61489d2c7417)) ? /*@__PURE__*/ $eba382943196079c$var$fakesentry() : /*@__PURE__*/ (0, $a035d75d336cf506$export$2e2bcd8739ae039)(process.env.TENANT || "unknown", undefined, (0, $649f456f663da9fc$export$de56f1198d121036));
602
+ const $eba382943196079c$export$af2e17a20c2ea3c5 = !(process.env.SENTRY === "true" || process.env.DEPICT_ERROR_REPORTING === "true" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "true") && (process.env.SENTRY === "false" || process.env.DEPICT_ERROR_REPORTING === "false" || process.env.NEXT_PUBLIC_DEPICT_ERROR_REPORTING === "false" || (0, $571bce04eb920cd8$export$55fe61489d2c7417)) ? /*@__PURE__*/ $eba382943196079c$var$fakesentry() : /*@__PURE__*/ (0, $a035d75d336cf506$export$2e2bcd8739ae039)(process.env.TENANT || "unknown", undefined, (0, $649f456f663da9fc$export$de56f1198d121036));
602
603
  function $eba382943196079c$var$fakesentry() {
603
604
  // // source: https://docs.sentry.io/platforms/javascript/troubleshooting/#dealing-with-ad-blockers
604
605
  // const handler = {
@@ -3471,7 +3472,7 @@ async function $f1396aa84761fbe5$export$c83d8da642b5104a(t, options, GWVM_opts)
3471
3472
  return rendering_results;
3472
3473
  }
3473
3474
  root.append(...rendered_elements);
3474
- const load_more_cont = (0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<div class="load_more_container"></div>`);
3475
+ const load_more_cont = (0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<div class="load-more-container"></div>`);
3475
3476
  const button_element = button instanceof Element ? button : (0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<button class="load_more">${button || "Visa mer"}</button>`);
3476
3477
  button_element.addEventListener("click", load_more);
3477
3478
  load_more_cont.append(button_element);
@@ -4163,7 +4164,7 @@ class $b83068cbd26dcc41$export$3be7054c61590ee3 {
4163
4164
  constructor({ container: container , lazyfinder: lazyfinder , selector: selector = [
4164
4165
  `img`,
4165
4166
  `source`
4166
- ].map((t)=>`:not(.d_navbutton) > ${t}:not(.filler):not(.nolazy)`).join(", ") , wait_for_dominsertion: wait_for_dominsertion = true , only_load_intersecting: only_load_intersecting = false , ignore_data_urls: ignore_data_urls = false , verbose: verbose }){
4167
+ ].map((t)=>`:not(.d-navbutton) > ${t}:not(.filler):not(.nolazy)`).join(", ") , wait_for_dominsertion: wait_for_dominsertion = true , only_load_intersecting: only_load_intersecting = false , ignore_data_urls: ignore_data_urls = false , verbose: verbose }){
4167
4168
  // store options in class so class instances can be looked at and their options are transparent
4168
4169
  this.container = container;
4169
4170
  this.selector = selector;
@@ -4278,7 +4279,7 @@ const $63cbb5de51d11596$export$ffb0004e005737fa = ({ children: children }, _unk
4278
4279
  class $ef9394fafebd5eab$export$692b27c28639e5b9 {
4279
4280
  // this is just here because it's often needed together with the slider
4280
4281
  container = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
4281
- class: "depict_slider depict"
4282
+ class: "depict-slider depict"
4282
4283
  });
4283
4284
  #elements = {
4284
4285
  sliding_el_: (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
@@ -4286,12 +4287,12 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
4286
4287
  }),
4287
4288
  left_: (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("button", {
4288
4289
  "aria-label": "Scroll left",
4289
- class: "left d_navbutton",
4290
+ class: "left d-navbutton",
4290
4291
  type: "button"
4291
4292
  }),
4292
4293
  right_: (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("button", {
4293
4294
  "aria-label": "Scroll right",
4294
- class: "right d_navbutton",
4295
+ class: "right d-navbutton",
4295
4296
  type: "button"
4296
4297
  })
4297
4298
  };
@@ -4954,77 +4955,12 @@ $parcel$export($366fff12da348e66$exports, "Depict", () => $366fff12da348e66$expo
4954
4955
 
4955
4956
 
4956
4957
 
4957
-
4958
-
4959
-
4960
-
4961
- var /**
4962
- * @deprecated please use `fetch_retry()` instead
4963
- *
4964
- * Windows proof fetch factory: windows proof fetch is a utility which retries fetch requests 10 times when they fail. Reason for this is a certain windows 10 build where the network stack randomly breaks 20% of https connections
4965
- * (Note: this thing really should be rewritten with exponential backoff and a better API)
4966
- * @param dlog logging function to use
4967
- * @param error_log an array to which errors will be pushed
4968
- * @return a windows proof fetch function
4969
- */ $acf11540344875ed$export$2e2bcd8739ae039 = (dlog, error_log)=>{
4970
- // https://sentry.io/organizations/depictai-0o/issues/2025371462/?project=5476183&query=is%3Aunresolved
4971
- // https://stackoverflow.com/a/52947884
4972
- const windows_proof_fetch = async function(url, body, headers, decode_json, fetch_options, attempt) {
4973
- attempt ||= 1;
4974
- decode_json ??= true;
4975
- const { stack: stack } = new Error();
4976
- const elog = (...args)=>{
4977
- if (Array.isArray(error_log)) error_log.push(args);
4978
- return dlog(...args);
4979
- };
4980
- return await fetch(url, {
4981
- ...body ? {
4982
- body: body
4983
- } : {},
4984
- "method": "POST",
4985
- ...fetch_options ? fetch_options : {},
4986
- ...headers ? {
4987
- headers: headers
4988
- } : {}
4989
- }).then(async (response)=>{
4990
- if (!response || !response.ok || response.status !== 200) {
4991
- if (response.status === 422) (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)($acf11540344875ed$var$send_sentry_422)(response, body, stack);
4992
- elog("Response not ok", response);
4993
- return false;
4994
- } else return await response[decode_json ? "json" : "text"]().catch((e)=>elog("error while decoding json", e));
4995
- }).catch((e)=>{
4996
- elog("Error while fetching", e, url, body);
4997
- if ((e.name == "TypeError" || e.message == "Failed to fetch" || e.message == "Network request failed") && !e.message.includes("CORS") && !e.name.includes("CORS") && ++attempt < 10) return windows_proof_fetch(url, body, headers, decode_json, fetch_options, attempt);
4998
- return false;
4999
- });
5000
- };
5001
- return windows_proof_fetch;
5002
- };
5003
- async function $acf11540344875ed$var$send_sentry_422(response, body, stack) {
5004
- const msg = `Validation error: got 422 from API`;
5005
- const text = await response.text();
5006
- (0, $649f456f663da9fc$export$de56f1198d121036)(msg, "body", body, "response", response, "text", text, "stack", stack);
5007
- (0, $eba382943196079c$export$af2e17a20c2ea3c5).withScope(function(scope) {
5008
- scope.setExtra("stack", stack);
5009
- scope.setExtra("request_body", body);
5010
- scope.setExtra("response", response);
5011
- scope.setExtra("serialized_response", (0, $5c4afc453f904a1f$export$39d526a1194b6499)(response));
5012
- scope.setExtra("response_text", text);
5013
- scope.setLevel("error");
5014
- this.captureException(new Error(msg));
5015
- });
5016
- }
5017
-
5018
-
5019
4958
  const $366fff12da348e66$var$discountMatcher = /{DISCOUNT{([\s\S]+?)}}/g;
5020
4959
  const $366fff12da348e66$var$noDiscountMatcher = /{NODISCOUNT{([\s\S]+?)}}/g;
5021
- const $366fff12da348e66$var$APICreateEvent = (0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/create-events";
5022
- const $366fff12da348e66$var$APIRecommend = (0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/recommend";
5023
- let $366fff12da348e66$var$pageview_sent = false, $366fff12da348e66$var$windows_proof_fetch;
4960
+ let $366fff12da348e66$var$pageview_sent = false;
5024
4961
  class $366fff12da348e66$export$1a8782481a9af507 {
5025
4962
  constructor(settings){
5026
4963
  this.settings = settings;
5027
- $366fff12da348e66$var$windows_proof_fetch = (0, $acf11540344875ed$export$2e2bcd8739ae039)(settings.debug ? console.log.bind(console) : ()=>{});
5028
4964
  }
5029
4965
  #dispatched_recs_inserted = false;
5030
4966
  init(callback, existingDisplays) {
@@ -5036,17 +4972,16 @@ class $366fff12da348e66$export$1a8782481a9af507 {
5036
4972
  }
5037
4973
  }
5038
4974
  loadRecommendations(callback) {
5039
- const { tenant: tenant , product_id: product_id , market: market , type: type , gaid: gaid } = this.settings;
5040
- $366fff12da348e66$var$windows_proof_fetch($366fff12da348e66$var$APIRecommend, JSON.stringify({
4975
+ const { tenant: tenant , product_id: product_id , type: type , market: market } = this.settings;
4976
+ (0, $2d47b009af5bc0a4$export$1bc0df10745d5412)(// @ts-ignore - Quick workaround, as we don't have a tenant object here
4977
+ {
5041
4978
  tenant: tenant,
5042
- market: market,
5043
- product_id: product_id(),
5044
- dsid: (0, $43683b1103edab15$export$6399bdb2291895e0)(),
5045
- user_id: (0, $43683b1103edab15$export$6399bdb2291895e0)(),
5046
- type: type
5047
- })).then((data)=>{
5048
- this.data = data?.displays;
5049
- if (!this.data) this.data = [];
4979
+ market: market
4980
+ }, {
4981
+ type: type,
4982
+ product_id: product_id()
4983
+ }).then((recs)=>{
4984
+ this.data = recs;
5050
4985
  (0, $66b898e9bfcef532$export$8582cf3716962dc2)({
5051
4986
  ...this.settings,
5052
4987
  recs: this.data,
@@ -5054,25 +4989,7 @@ class $366fff12da348e66$export$1a8782481a9af507 {
5054
4989
  });
5055
4990
  }).catch((e)=>{
5056
4991
  if (this.settings.debug) console.warn("template-tool: error fetching: ", e);
5057
- this.data = [];
5058
- }).finally(()=>{
5059
- if (this.settings.waitForSelectors !== undefined) {
5060
- const SLEEP_TIME_MS = 50;
5061
- let MAX_RETRY = Math.round(10000 / SLEEP_TIME_MS);
5062
- const tick = setInterval(()=>{
5063
- let allLoaded = true;
5064
- for (const selector of this.settings.waitForSelectors)if (document.querySelector(selector) == null) {
5065
- allLoaded = false;
5066
- break;
5067
- }
5068
- if (MAX_RETRY === 0 || allLoaded) {
5069
- clearInterval(tick);
5070
- callback();
5071
- }
5072
- MAX_RETRY--;
5073
- }, SLEEP_TIME_MS);
5074
- } else callback();
5075
- });
4992
+ }).finally(()=>callback());
5076
4993
  }
5077
4994
  trackGAEvent(action, index, product_id, ga_product_ids) {
5078
4995
  if (this.settings.sendGa === false) return;
@@ -5271,7 +5188,7 @@ $parcel$export($762a881271a51d1b$exports, "Deprecated_Amazing_Slider", () => $76
5271
5188
  $parcel$export($762a881271a51d1b$exports, "insert_styling_into_slider", () => $762a881271a51d1b$export$f1b8b9fd75ddcab1);
5272
5189
  // @ts-ignore
5273
5190
  var $ac3cf338239e4e17$exports = {};
5274
- $ac3cf338239e4e17$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";
5191
+ $ac3cf338239e4e17$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";
5275
5192
 
5276
5193
 
5277
5194
 
@@ -5498,7 +5415,7 @@ function $f494377581cfb2b4$var$load_more_elements(root, chunk_size = 4) {
5498
5415
  return has_more;
5499
5416
  }
5500
5417
  function $f494377581cfb2b4$var$setup_load_more(t, root, chunk_size) {
5501
- const { catchify: catchify } = t, load_more_cont = (0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<div class="load_more_container"></div>`), load_button = load_more_cont.appendChild((0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<button class="load_more">Visa mer</button>`));
5418
+ const { catchify: catchify } = t, load_more_cont = (0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<div class="load-more-container"></div>`), load_button = load_more_cont.appendChild((0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<button class="load_more">Visa mer</button>`));
5502
5419
  load_button.addEventListener("click", catchify(load_more_recs_and_hide_button_if_needed));
5503
5420
  root.after(load_more_cont);
5504
5421
  load_more_recs_and_hide_button_if_needed();
@@ -5534,6 +5451,67 @@ function $f494377581cfb2b4$export$c410ce1205e5118a(_t, itms, d, slider) {
5534
5451
 
5535
5452
 
5536
5453
 
5454
+ var /**
5455
+ * @deprecated please use `fetch_retry()` instead
5456
+ *
5457
+ * Windows proof fetch factory: windows proof fetch is a utility which retries fetch requests 10 times when they fail. Reason for this is a certain windows 10 build where the network stack randomly breaks 20% of https connections
5458
+ * (Note: this thing really should be rewritten with exponential backoff and a better API)
5459
+ * @param dlog logging function to use
5460
+ * @param error_log an array to which errors will be pushed
5461
+ * @return a windows proof fetch function
5462
+ */ $acf11540344875ed$export$2e2bcd8739ae039 = (dlog, error_log)=>{
5463
+ // https://sentry.io/organizations/depictai-0o/issues/2025371462/?project=5476183&query=is%3Aunresolved
5464
+ // https://stackoverflow.com/a/52947884
5465
+ const windows_proof_fetch = async function(url, body, headers, decode_json, fetch_options, attempt) {
5466
+ attempt ||= 1;
5467
+ decode_json ??= true;
5468
+ const { stack: stack } = new Error();
5469
+ const elog = (...args)=>{
5470
+ if (Array.isArray(error_log)) error_log.push(args);
5471
+ return dlog(...args);
5472
+ };
5473
+ return await fetch(url, {
5474
+ ...body ? {
5475
+ body: body
5476
+ } : {},
5477
+ "method": "POST",
5478
+ ...fetch_options ? fetch_options : {},
5479
+ ...headers ? {
5480
+ headers: headers
5481
+ } : {}
5482
+ }).then(async (response)=>{
5483
+ if (!response || !response.ok || response.status !== 200) {
5484
+ if (response.status === 422) (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)($acf11540344875ed$var$send_sentry_422)(response, body, stack);
5485
+ elog("Response not ok", response);
5486
+ return false;
5487
+ } else return await response[decode_json ? "json" : "text"]().catch((e)=>elog("error while decoding json", e));
5488
+ }).catch((e)=>{
5489
+ elog("Error while fetching", e, url, body);
5490
+ if ((e.name == "TypeError" || e.message == "Failed to fetch" || e.message == "Network request failed") && !e.message.includes("CORS") && !e.name.includes("CORS") && ++attempt < 10) return windows_proof_fetch(url, body, headers, decode_json, fetch_options, attempt);
5491
+ return false;
5492
+ });
5493
+ };
5494
+ return windows_proof_fetch;
5495
+ };
5496
+ async function $acf11540344875ed$var$send_sentry_422(response, body, stack) {
5497
+ const msg = `Validation error: got 422 from API`;
5498
+ const text = await response.text();
5499
+ (0, $649f456f663da9fc$export$de56f1198d121036)(msg, "body", body, "response", response, "text", text, "stack", stack);
5500
+ (0, $eba382943196079c$export$af2e17a20c2ea3c5).withScope(function(scope) {
5501
+ scope.setExtra("stack", stack);
5502
+ scope.setExtra("request_body", body);
5503
+ scope.setExtra("response", response);
5504
+ scope.setExtra("serialized_response", (0, $5c4afc453f904a1f$export$39d526a1194b6499)(response));
5505
+ scope.setExtra("response_text", text);
5506
+ scope.setLevel("error");
5507
+ this.captureException(new Error(msg));
5508
+ });
5509
+ }
5510
+
5511
+
5512
+
5513
+
5514
+
5537
5515
 
5538
5516
 
5539
5517
 
@@ -5676,7 +5654,7 @@ async function $30e801eaa3dc319e$export$c84671f46d6a1ca({ rows: rows , container
5676
5654
  if (button) {
5677
5655
  button_class = (0, $460df8550f9d084d$export$a6db784f019668ba)();
5678
5656
  const button_container = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
5679
- class: "load_more_container " + button_class,
5657
+ class: "load-more-container " + button_class,
5680
5658
  children: (0, $b9b0dba897847b2a$export$f63fcc839cb0f734)("click", ()=>ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)
5681
5659
  });
5682
5660
  container_element.after(button_container);
@@ -5906,7 +5884,7 @@ var $30f78542ed78cd31$exports = {};
5906
5884
  $parcel$export($30f78542ed78cd31$exports, "RecommendationSlider", () => $30f78542ed78cd31$export$82cfdc85a4d15688);
5907
5885
  // @ts-ignore
5908
5886
  var $218c5c21f160bf78$exports = {};
5909
- $218c5c21f160bf78$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";
5887
+ $218c5c21f160bf78$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";
5910
5888
 
5911
5889
 
5912
5890
 
@@ -8175,7 +8153,7 @@ function $769ce417b39aa7d3$export$4a3043e508dd72f0({ children: children , ...att
8175
8153
  type: "button",
8176
8154
  children: children
8177
8155
  });
8178
- button.classList.add("show_more");
8156
+ button.classList.add("show-more");
8179
8157
  return button;
8180
8158
  }
8181
8159
 
@@ -8624,7 +8602,7 @@ var $914971fb43986a16$exports = {};
8624
8602
 
8625
8603
  $parcel$export($914971fb43986a16$exports, "ContainedImage", () => $914971fb43986a16$export$788756b42446dc2d);
8626
8604
  var $0f5d218f8055f715$exports = {};
8627
- $0f5d218f8055f715$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";
8605
+ $0f5d218f8055f715$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";
8628
8606
 
8629
8607
 
8630
8608
  var $45af9e834781a9bc$exports = {};
@@ -8814,7 +8792,7 @@ function $914971fb43986a16$var$Image({ aspect_ratio: aspect_ratio , alt: alt , r
8814
8792
  } : {},
8815
8793
  ...image_options,
8816
8794
  class: (0, $b9b0dba897847b2a$export$22a65337c1b43b1f)([
8817
- "depict_img_mod ",
8795
+ "depict-img-mod ",
8818
8796
  image_options.class,
8819
8797
  $914971fb43986a16$var$add_nolazy_to_placeholder(rendering_options?.type)
8820
8798
  ])
@@ -8823,7 +8801,7 @@ function $914971fb43986a16$var$Image({ aspect_ratio: aspect_ratio , alt: alt , r
8823
8801
  }
8824
8802
  function $914971fb43986a16$var$CompatibleImage({ aspect_ratio: aspect_ratio , alt: alt , remove_on_error: remove_on_error , rendering_options: rendering_options , srcset_opts: srcset_opts , ...image_options }) {
8825
8803
  const canvas = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("canvas", {
8826
- class: "depict_img_filler",
8804
+ class: "depict-img-filler",
8827
8805
  width: 3000 * aspect_ratio,
8828
8806
  height: 3000
8829
8807
  });
@@ -8833,7 +8811,7 @@ function $914971fb43986a16$var$CompatibleImage({ aspect_ratio: aspect_ratio , al
8833
8811
  style: "position:relative",
8834
8812
  children: [
8835
8813
  (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
8836
- class: "depict_img_cont",
8814
+ class: "depict-img-cont",
8837
8815
  children: (0, $63cbb5de51d11596$export$34b9dba7ce09269b)(IMG_tag, {
8838
8816
  alt: alt,
8839
8817
  ...remove_on_error ? {
@@ -8841,7 +8819,7 @@ function $914971fb43986a16$var$CompatibleImage({ aspect_ratio: aspect_ratio , al
8841
8819
  } : {},
8842
8820
  ...image_options,
8843
8821
  class: (0, $b9b0dba897847b2a$export$22a65337c1b43b1f)([
8844
- "depict_img_comp",
8822
+ "depict-img-comp",
8845
8823
  image_options.class,
8846
8824
  $914971fb43986a16$var$add_nolazy_to_placeholder(rendering_options?.type)
8847
8825
  ])
@@ -8869,7 +8847,7 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
8869
8847
 
8870
8848
 
8871
8849
  var $6261de93c2135467$exports = {};
8872
- $6261de93c2135467$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";
8850
+ $6261de93c2135467$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";
8873
8851
 
8874
8852
 
8875
8853
 
@@ -8885,8 +8863,8 @@ const $8483d1d9fcee52ec$var$TOUCHCANCEL = "touchcancel";
8885
8863
  const $8483d1d9fcee52ec$var$MOUSEOVER = "mouseover";
8886
8864
  const $8483d1d9fcee52ec$var$MOUSELEAVE = "mouseleave";
8887
8865
  const $8483d1d9fcee52ec$var$HOVER_CLASS = "hovering";
8888
- /** This number represents how many elements are in front of div.images_container
8889
- * Here are the elements: img.depict_img_mod, div, img.depict_img_mod, div, div.second_image_container, div.main_image_container, div.images_container
8866
+ /** This number represents how many elements are in front of div.images-container
8867
+ * Here are the elements: img.depict-img-mod, div, img.depict-img-mod, div, div.second-image-container, div.main-image-container, div.images-container
8890
8868
  * This number is not very dynamic but much more performant than iterating
8891
8869
  */ const $8483d1d9fcee52ec$var$HOVER_IMAGE_DEPTH = 7;
8892
8870
  const $8483d1d9fcee52ec$var$MAX_COLLISION_DETECTION_RATE = 70; // ms
@@ -8990,14 +8968,14 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({ second_src: second_src , se
8990
8968
  });
8991
8969
  const no_second_img = !second_src && !second_srcset && !second_srcset_opts;
8992
8970
  const images_container = (0, $63cbb5de51d11596$export$25062201e9e25d76)("div", {
8993
- class: "images_container",
8971
+ class: "images-container",
8994
8972
  children: [
8995
8973
  !no_second_img && (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
8996
- class: "second_image_container",
8974
+ class: "second-image-container",
8997
8975
  children: second_image
8998
8976
  }),
8999
8977
  (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
9000
- class: "main_image_container",
8978
+ class: "main-image-container",
9001
8979
  children: main_image
9002
8980
  })
9003
8981
  ]
@@ -9219,6 +9197,10 @@ function $f5ca01afd4680bdd$export$f2ca6fc699ca1fb4(props = {}) {
9219
9197
 
9220
9198
 
9221
9199
 
9200
+ const $0766c85d387a9765$export$83d89fbfd8236492 = "0.0.9";
9201
+
9202
+
9203
+ (0, $649f456f663da9fc$export$de56f1198d121036)("@depict-ai/utilishared version", (0, $0766c85d387a9765$export$83d89fbfd8236492));
9222
9204
 
9223
9205
 
9224
- export {$51bbc74e39f5e5c6$export$2e2bcd8739ae039 as simplified_template_tool, $acf11540344875ed$export$2e2bcd8739ae039 as wpff, $6c2b49f3f564b0d1$export$362abebb4b313340 as base_url, $a1c80794e6bf4cc2$export$6e7454c733fa1fb2 as cache_args, $66b898e9bfcef532$export$8582cf3716962dc2 as check_displays, $7547e32486a3abc0$export$8048b892d651b310 as err, $b55a70757989faf4$export$16d7c76794a38a4 as require_event_listener, $ea554f5a28904975$export$41de2959a8dd405d as Auto_GWVM, $f1396aa84761fbe5$export$c83d8da642b5104a as GWVM_Renderer, $92b7ea2cf75c4aec$export$55621c1ce3cd536b as infinite_promise_creator, $09ff985c7c424fb3$export$32ccf3a614c84258 as infinite_promise_no_skip, $075589a94064cf2e$export$c0a4d29bc45a38c6 as infinite_renderer, $efda45906c6cbac7$export$9eae832ae57fbf as deprecated_insert_styling, $a40013fcba50c9ee$export$3db8c5834c5aa726 as Market, $a40013fcba50c9ee$export$d4f428a61c37ddfa as Locale, $a40013fcba50c9ee$export$ebe860a2db7990ad as CURRENCY, $a40013fcba50c9ee$export$6eea148df5c7117c as MARKET_MAP, $a40013fcba50c9ee$export$47340c0b196bc0f8 as get_market_locale, $a40013fcba50c9ee$export$c5b68ecd5c37aa6c as get_market_currency, $e867e2f1fb3bcc09$export$c7187bbd1a7a9244 as placeholder, $7e2d59b061c2c528$export$cab8bc58c64c2013 as Pro_Slider, $762a881271a51d1b$export$4d41c6499d53639c as Deprecated_Amazing_Slider, $762a881271a51d1b$export$f1b8b9fd75ddcab1 as insert_styling_into_slider, $e61f371a9bcdeb2f$export$cd12721587f4f16d as RR_Slider, $366fff12da348e66$export$1a8782481a9af507 as Depict, $f494377581cfb2b4$export$30933c637c977eef as get_recs_with_template, $f494377581cfb2b4$export$4f39078bdc72ecd0 as default_pre_processor, $f494377581cfb2b4$export$c410ce1205e5118a as default_post_processor, $0b48ba2f40ce6067$export$b6ae1bc530f4c149 as observer, $cdca9fea6eb103e5$export$12e07a2a9f87578a as ElementObserver, $cb50cd7a49e824ee$export$ea60432919e69303 as ElementObserverEvent, $63cbb5de51d11596$export$34b9dba7ce09269b as jsx, $63cbb5de51d11596$export$25062201e9e25d76 as jsxs, $63cbb5de51d11596$export$ffb0004e005737fa as Fragment, $b9b0dba897847b2a$export$eb0b9ed911409b57 as use_element, $b9b0dba897847b2a$export$f63fcc839cb0f734 as use_listener, $b9b0dba897847b2a$export$22a65337c1b43b1f as classlist, $649f456f663da9fc$export$2dd75a6b038dc8cb as set_browser_prefix, $649f456f663da9fc$export$de56f1198d121036 as dlog, $649f456f663da9fc$export$c2363754d4758444 as dwarn, $649f456f663da9fc$export$997143d41f6a0c9b as derror, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9 as catchify, $b04e44fad5ea42c7$export$f18d5b0af29128b7 as report, $571bce04eb920cd8$export$55fe61489d2c7417 as is_debug, $eba382943196079c$export$af2e17a20c2ea3c5 as Sentry, $ca66c9553e84df02$export$dc84183312f0c201 as chevronRight, $ca66c9553e84df02$export$6038895ac52bd044 as chevronLeft, $9a744f57ab06c32e$export$68c017fd93791405 as expandingContainer, $b83068cbd26dcc41$export$3be7054c61590ee3 as Lazyfier, $b83068cbd26dcc41$export$e4741190ccada479 as find_siblings, $b83068cbd26dcc41$export$b87d7e0da8b5cbe3 as test_array_proxy_support, $ef9394fafebd5eab$export$692b27c28639e5b9 as Amazing_Slider, $893f9af5dbae6bc8$export$deca40f48c0569f8 as should_colorizeLogics, $893f9af5dbae6bc8$export$16501883f477737a as colorize_elements, $6be99244fa573db5$export$50ce83ace0cdd87e as default_rr, $2d47b009af5bc0a4$export$1bc0df10745d5412 as fetch_recs, $2d47b009af5bc0a4$export$d40679eb4cf32f09 as fetch_recs_whole_response, $5cbe24d064a033ed$export$a9fc160c5ed83bd7 as Rec_Renderer, $5cbe24d064a033ed$export$c42139a43c877ecd as clone_deep, $5cbe24d064a033ed$export$c22e610107c5a15a as pre_processor_pipeline, $5cbe24d064a033ed$export$da854280fb61cd32 as InfoForProcessing, $5cbe24d064a033ed$export$cf7cbc6b76039101 as post_process, $5cbe24d064a033ed$export$e0009e7da572f99b as regex_templating, $30e801eaa3dc319e$export$5c4e09968d6eab33 as media_query_header, $30e801eaa3dc319e$export$c84671f46d6a1ca as Layout, $30e801eaa3dc319e$export$17c3166a7ebd4688 as n_col_styling_with_dist, $090b8182afa1b2a6$export$b0a773486c1c2312 as RecommendationGrid, $30f78542ed78cd31$export$82cfdc85a4d15688 as RecommendationSlider, $c1503704e45e6a15$export$f37c58ab3d3e3b75 as default_view_tracking, $c1503704e45e6a15$export$1bffac19f9f0d6fc as gtag_view_post_processor, $c1503704e45e6a15$export$9e1caada6901f552 as depict_page_view, $c1503704e45e6a15$export$fb9afe9f540ae069 as recs_inserted_tracking, $c1503704e45e6a15$export$6830ae1fbe21e589 as default_click_tracking, $c1503704e45e6a15$export$8d72437623fef90c as gtag_click_post_processor, $c1503704e45e6a15$export$e9106d6e723510d2 as depict_click_tracking_post_processor, $c1503704e45e6a15$export$dd32cb565eae0a1f as ga_click, $c1503704e45e6a15$export$32eb5dd18e963410 as add_to_localstorage, $c1503704e45e6a15$export$ed8a68dacd075983 as tracking_function_map, $c1503704e45e6a15$export$4b50a4de9c6bbe09 as rro_inserted_event_sent, $c1503704e45e6a15$export$3777a14dd8c2363d as gtag_view_sent, $be40b7bf11a47cc4$export$8cbd8aa1c70f9a13 as slider_autoscroll_factory, $d31b48b85102c1ec$export$80039a49055269fb as make_button1, $a75adf1478c4522f$export$af88b4929c2dc86 as make_button2, $2436f68ea927d4a8$export$1d17a045bcc711b1 as slider_dots_factory, $2436f68ea927d4a8$export$a09282b33e69b43f as navdot, $9bb2400c4e2e9335$export$411b0f20794697ce as slider_draggable_factory, $1ce2ae6f640f393f$export$5129719c04a52f8c as slider_fading_factory, $52292921bc0fc31f$export$5723caf9a8335aa6 as slider_fractional_factory, $f78bc6a06402a6cf$export$93223e488e7ee078 as slider_show_scroll, $06fe260f91efff62$export$b36d2489a5a16728 as slider_snap_css, $06fe260f91efff62$export$49b950309ab787ad as can_use_snapping_and_still_scroll, $40bfd400d76a6ec1$export$dac64fd35a4805a4 as slider_snapping_factory, $c33c6faf8acc7442$export$68babfc5be0de5da as Amazing_Lazy_Slider, $556d9c321900f1d4$export$53306504b987cbf7 as slider_wraparound_factory, $159237486410355f$export$417ef0ab13d8b984 as surface_mixer, $159237486410355f$export$419f84efad7d9fe as sizes_to_surface, $159237486410355f$export$be95cb0e8cfd099e as promise_until_next_navigation, $eb214beed0934fa9$export$29a6094e0bd8bc5f as AIO, $eb214beed0934fa9$export$6ebd242c09192cec as paint_red, $91b2e49f92ed636c$export$82a685f2da2fb027 as bind_tracking_to_link, $91b2e49f92ed636c$export$2c34560c3749dc63 as bind_to_a2c_button, $155540b3b8aca771$export$fce59460a1699957 as cookiebot_get_consent, $155540b3b8aca771$export$56c2e8be65fb14ae as cookiebot_wait_for_consent, $155540b3b8aca771$export$8827362e5e938d26 as cookiebot_get_cookie_ipns, $155540b3b8aca771$export$abec7fd9f0b9cc22 as init_cookiebot_tracking, $43683b1103edab15$export$6399bdb2291895e0 as get_depict_id, $43683b1103edab15$export$adc61a405a4cabed as get_user_id, $43683b1103edab15$export$61e7e1f11e96692f as get_session_id, $43683b1103edab15$export$336e7ad40bae0652 as set_depict_id_fn, $43683b1103edab15$export$8a96793bf9f87d90 as set_user_id_fn, $43683b1103edab15$export$93ae15b1ae509334 as set_session_id_fn, $43683b1103edab15$export$8c6f26a5b6921b95 as get_tracking_event_context_data, $43683b1103edab15$export$82badda1f9923310 as depict_prefilled, $43683b1103edab15$export$15f8a0cd5a8c0ebb as depict_click, $43683b1103edab15$export$9028351cb994757e as depict_add_to_cart, $43683b1103edab15$export$622991c71a1f52b3 as get_cookie, $cafa1ff1049985c2$export$72036d950e1fae95 as filter_depict_payload, $cafa1ff1049985c2$export$aa26019042811d4f as send_websocket, $cafa1ff1049985c2$export$608478473a3304a0 as send_depict_unfiltered, $cafa1ff1049985c2$export$cc3b6ddf805f6156 as foolproof_send_beacon, $cafa1ff1049985c2$export$28cacbd9b4306ffc as send_depict, $42bbbba8196bd057$export$edfedd0557ca5a2d as make_tracker_send_to_depict, $42bbbba8196bd057$export$674d8cd8b6868154 as create_ga_queue, $3abef00489070e23$export$1ff14fec60ed5697 as ga_to_transaction_api, $0263af58e2304a2b$export$f3354ec2ce95ebd9 as load_gtag, $0263af58e2304a2b$export$d031e55ccd4c52dc as setup_gtag, $0263af58e2304a2b$export$7babcd5d4056b2ca as gtag_view, $0263af58e2304a2b$export$f522672c9379e339 as gtag_click, $0263af58e2304a2b$export$f75172d2e289cd02 as send_ga, $0263af58e2304a2b$export$ac7296527cb52311 as setup_ga, $0263af58e2304a2b$export$127751e82111fcf as ga_rec_click, $0263af58e2304a2b$export$bf205937e5e012cb as ga_purchase_click, $ccf918da074d7243$export$135da44d0ba958bc as impression_threshold, $ccf918da074d7243$export$c543ee4cdb0d0964 as set_impression_threshold, $ccf918da074d7243$export$ca8321ea61dc2544 as has_to_be_intersecting_for, $ccf918da074d7243$export$4205dc6835bc0d9f as send_impression_event, $405969d60b37fdac$export$d0efd8ed14f5c33 as impression_tracking_post_processor, $21285393646b9849$export$37125ccc5dd98050 as impression_track_element, $61b3c9e5f2cf8171$export$836f70a28c317905 as broadcast_product_id, $61b3c9e5f2cf8171$export$58c56fe2313fdbe3 as add_new_tab_listener, $61b3c9e5f2cf8171$export$8f66c4c7fb96eda2 as contextmenu_callback, $5dbacdc6a3feeb15$export$1dd9ce50e201eff1 as optanon_get_consent, $5dbacdc6a3feeb15$export$7a6d436e0782c6ed as optanon_wait_for_consent, $5dbacdc6a3feeb15$export$7e4427e80d5fc619 as optanon_get_cookie_ipns, $5dbacdc6a3feeb15$export$f0f6c846d96fdbec as init_optanon_tracking, $847e4a06ea6767c0$export$3ebd86018b39d9d2 as orderpage_transaction_id_extractor, $847e4a06ea6767c0$export$1ac466d53a6636ac as send_transaction_id_to_depict, $847e4a06ea6767c0$export$b11248fa13a8a86c as datalayer_transaction_id_extractor, $847e4a06ea6767c0$export$ff8673d5dea82bd4 as url_transaction_id_extractor, $54793663e06a1437$export$d63b08f4f29ddba5 as send_product_unavailable_to_depict, $aa0140679dc70b7a$export$eee4c4d924348b05 as send_page_view_if_needed, $aa0140679dc70b7a$export$f7cb1bd47199ec38 as send_page_view_on_navigation, $4ce764ddfee055ef$export$1b28bc5c68cc4d77 as AutoReconnectingWS, $4ce764ddfee055ef$export$1d9c6fddbff3441f as DepictAPIWS, $2030306bed68a8c7$export$74108888f38788f3 as ListenableSet, $511123bb28a7b6f7$export$535946eb77c946dd as deparallelize, $511123bb28a7b6f7$export$f241be8e610f5c77 as deparallelize_no_drop, $9ab9ecb74920f343$export$f8ea2e7b15b5d129 as buildThresholdList, $1ce9aeebfbcb93f9$export$d9fdc6ce2907f95b as chaotic_closest, $0bdb8dbcf1bc7f34$export$925772df9b4d16e5 as ensure_parameter_in_url, $0bdb8dbcf1bc7f34$export$785f04709990c4ec as querySelectorUpwards, $0bdb8dbcf1bc7f34$export$44951404cb8d0583 as html2elems, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787 as html2elem, $0bdb8dbcf1bc7f34$export$d4bd03f19260ef1c as relativify, $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0 as querySelectorAllElements, $0bdb8dbcf1bc7f34$export$cfef5d5c9ac09253 as standard_price_format, $0bdb8dbcf1bc7f34$export$f124e3ee16e6b45d as intl_number_format_with_fallback, $0bdb8dbcf1bc7f34$export$9590700a594aef08 as ensure_object_path, $d832040ef2097a0e$export$6b75200e58bc97d0 as deduplicate, $d832040ef2097a0e$export$9426572bd5645bc1 as dedup_products, $ead1f6ae93c69da9$export$82539d9817116aff as navigate_with_next_router, $802201ed0a316c43$export$ab0f802c05dd969b as intercept, $802201ed0a316c43$export$774bc87373c4fc6c as add_item, $802201ed0a316c43$export$337197b94b3bd680 as get_items_in_cart, $802201ed0a316c43$export$783ef16647773b3d as get_shopify_analytics_meta_product, $b6f5b218b1a73900$export$85be83e1935d93c2 as fetch_replacer, $b6f5b218b1a73900$export$f8da66bc4f1d059e as FakeResponse, $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313 as fetch_retry, $1813f33dd0fc7e1d$export$b404e20f3c4a490e as get_optimize_variant, $0d2acf276472ebf7$export$20e9533e68ee72e7 as stateless_href_change_ipns, $0d2acf276472ebf7$export$a9d39e43ae273d26 as href_change_ipns, $0d2acf276472ebf7$export$baccefee4a395d8f as history_replacer, $0d2acf276472ebf7$export$1cd22bab0d2c3b0b as on_next_navigation, $607fc90221d440a6$export$e806c6c1615a59ae as async_iterable_ipns, $607fc90221d440a6$export$90740b5bc9c2b3b7 as make_ipns_stateless, $607fc90221d440a6$export$10c3e52ef388b81b as make_ipns_stateful, $ec58be30798d6e95$export$e2c811ae0eb35313 as RawObservableInformation, $ec58be30798d6e95$export$3e42f5078e3abfc0 as make_simple_async_iterable, $4f24151f2cddad7b$export$2c2f50b30b7b2576 as iterable_to_attribute, $8c97019b5f7b0d0e$export$7c081fdbc65b6a2a as iterable_to_elems, $b8270fcf290bb3af$export$927664b47117acb0 as make_asyncIterable_exiter, $693e2a1517bef984$export$f8913c8a18f7ca21 as zip_async_iterables, $8bed543774ca0dd4$export$b8d1e1d07a3f3776 as prevent_infinite_loop, $8bed543774ca0dd4$export$f811d2ce0aa6019b as insert_surfaces, $8bed543774ca0dd4$export$e3f70ef7e3d00501 as revertable_remove, $0a581f1dfa083522$export$59ba1eb2c083f0cd as insert_styling, $0a581f1dfa083522$export$a96c18473f2af463 as track_a2c, $0a581f1dfa083522$export$a4f97b27a0592e6c as normal_get_product_id, $0a581f1dfa083522$export$692b606677218a16 as depict_init, $0a581f1dfa083522$export$328e81c44cddf3c0 as depict_init_with_market_logic, $29407d8301dc2f23$export$515c3ea4d599b05a as javascript_media_query, $39ef887981612535$export$33f937d741e49339 as patched_querySelectorAll, $78270f2ea7ca229f$export$3b75288f46cadd96 as random_text_placeholder, $78270f2ea7ca229f$export$a4eccf92efefa04d as placeholder_svg, $78270f2ea7ca229f$export$2dd69958012e3e49 as make_placeholder_rr, $bb3252f70898acd6$export$947a20746936143d as Promise_Any, $9e268c1aeeb86b34$export$c50e1901e8ed0615 as queueMacroTask, $d89638655e64f324$export$bb0a9c36cf454ea0 as rand, $460df8550f9d084d$export$656831b7e9c341c3 as random_string, $460df8550f9d084d$export$a6db784f019668ba as make_random_classname, $49c4fa2e27e642fa$export$3d04c40e7acc1a32 as reactive_template, $a79c7168700020ff$export$8ec5c86406f333ff as removeChild_error_swallowing_factory, $1dd4146ad893cfb2$export$38e89c688f9d553a as replace_promise_with_native_if_exists_and_enforce, $1dd4146ad893cfb2$export$e647444ed9403635 as get_iframe_promise, $bbb9f33eb5feb86a$export$83ec13b10b391f13 as default_rp_fixes, $bbb9f33eb5feb86a$export$2a1cc61cffa1f36f as rp_relativify_fetch, $bbb9f33eb5feb86a$export$2a38b176ce969e2c as rp_relativify_xhr, $bbb9f33eb5feb86a$export$f14a775632a826c4 as rp_relativify_history, $5c4afc453f904a1f$export$39d526a1194b6499 as serialize_object, $8d4dfadc5e12c7fb$export$12b4c6cbc6b8b4e4 as sort_obj, $eda086e0899e75b0$export$a422d714c8cb1a5d as standard_get_market, $e72f2f1d48dc3a53$export$3427ec8268623f1 as listenToLocalStorage, $26eaaddf434c84f1$export$8d42ce4827f43582 as Tenant, $55698e6e298abcb0$export$cd1adfb8059b5fcd as timeout_promise, $d0e7629fb3179e02$export$2fc1a072736ae2f6 as is_available_in, $d0e7629fb3179e02$export$d5062f468a0454f3 as find_descriptor, $d0e7629fb3179e02$export$79f910a98828378d as variable_setter_to_ipns, $690d8897acf7a743$export$a739d9a07da7f9ce as use_voyado_id, $2cbe7e0ca2ce5438$export$5c069c93d2b7493f as wait, $4a6ab5f7377729b1$export$33d1643df63073a8 as xhr_replace, $4a6ab5f7377729b1$export$f314addd5f976083 as xhr_load, $4a6ab5f7377729b1$export$c74578d2cd47a84a as xhr_send_interceptor, $4a6ab5f7377729b1$export$8e16c51fd2b6507 as xhr_read_interceptor, $769ce417b39aa7d3$export$4a3043e508dd72f0 as DefaultViewMoreButton, $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90 as GeneralSideSlidein, $72d170fd5c7cb3fe$export$c068ad5361be7646 as GeneralSizeSelector, $ad592d9ddbcffe72$export$84712d0562a614b8 as Placeholder, $ad592d9ddbcffe72$export$d613f5b6d0a331a8 as ContainedPlaceholderImage, $fbe64cf2cf408e4f$export$97f31f44c68c1d5 as RecommendationContainer, $7693290d077384da$export$32a55d57d151bc5a as RightChevron, $7693290d077384da$export$ddd70fdae1b350e6 as LeftChevron, $6f1582c15e13f2f0$export$590326cc34f49e2d as createColorPicker, $7f57d546b5d5b3d6$export$237455ad7e59d4e5 as useExpandingContainer, $8483d1d9fcee52ec$export$2369f6fc1c911576 as ContainedHoverImage, $914971fb43986a16$export$788756b42446dc2d as ContainedImage, $45af9e834781a9bc$export$3d13beba9b52c947 as resize_base_url, $45af9e834781a9bc$export$a98fc8a2c818d3d8 as is_safari, $45af9e834781a9bc$export$f39a7d0667e924a as make_sizes_setter, $45af9e834781a9bc$export$a62825542f1bfcf5 as make_sourceset_component, $45af9e834781a9bc$export$f7c915448031deac as make_url_with_query_params, $ec750a6d2c6eaa57$export$2624c5890f1bbcf7 as ArrowUp, $7ef13b49cbcd4a08$export$1c641004b5485fed as BackIcon, $ec770301d57afdae$export$3b621d86b1566b2 as CrossIcon, $655593feacb9828c$export$28f6150e232898de as FilterIcon, $62fd1a9c2195af77$export$8be2714ec7f169ee as GenericSliderArrowButton, $e29993023c5b77a4$export$cb808a3c41736d8e as MinusIcon, $7f7db0445af6c4b0$export$f21ab0717a89c77f as PlusIcon, $bac8989b3f4c29b2$export$5d2caaa6b530761c as PreviousSearchIcon, $26bcec40c802fcbf$export$82eafebb825fc23f as SearchIcon, $84b9f4594b6e2b53$export$da32f7add8a22e86 as SortIconAsc, $d2fe3fd446d52b45$export$d10e63059ddb9fd4 as SortIconDesc, $f5ca01afd4680bdd$export$f2ca6fc699ca1fb4 as TickIcon};
9206
+ export {$51bbc74e39f5e5c6$export$2e2bcd8739ae039 as simplified_template_tool, $acf11540344875ed$export$2e2bcd8739ae039 as wpff, $6c2b49f3f564b0d1$export$362abebb4b313340 as base_url, $0766c85d387a9765$export$83d89fbfd8236492 as version, $a1c80794e6bf4cc2$export$6e7454c733fa1fb2 as cache_args, $66b898e9bfcef532$export$8582cf3716962dc2 as check_displays, $7547e32486a3abc0$export$8048b892d651b310 as err, $b55a70757989faf4$export$16d7c76794a38a4 as require_event_listener, $ea554f5a28904975$export$41de2959a8dd405d as Auto_GWVM, $f1396aa84761fbe5$export$c83d8da642b5104a as GWVM_Renderer, $92b7ea2cf75c4aec$export$55621c1ce3cd536b as infinite_promise_creator, $09ff985c7c424fb3$export$32ccf3a614c84258 as infinite_promise_no_skip, $075589a94064cf2e$export$c0a4d29bc45a38c6 as infinite_renderer, $efda45906c6cbac7$export$9eae832ae57fbf as deprecated_insert_styling, $a40013fcba50c9ee$export$3db8c5834c5aa726 as Market, $a40013fcba50c9ee$export$d4f428a61c37ddfa as Locale, $a40013fcba50c9ee$export$ebe860a2db7990ad as CURRENCY, $a40013fcba50c9ee$export$6eea148df5c7117c as MARKET_MAP, $a40013fcba50c9ee$export$47340c0b196bc0f8 as get_market_locale, $a40013fcba50c9ee$export$c5b68ecd5c37aa6c as get_market_currency, $e867e2f1fb3bcc09$export$c7187bbd1a7a9244 as placeholder, $7e2d59b061c2c528$export$cab8bc58c64c2013 as Pro_Slider, $762a881271a51d1b$export$4d41c6499d53639c as Deprecated_Amazing_Slider, $762a881271a51d1b$export$f1b8b9fd75ddcab1 as insert_styling_into_slider, $e61f371a9bcdeb2f$export$cd12721587f4f16d as RR_Slider, $366fff12da348e66$export$1a8782481a9af507 as Depict, $f494377581cfb2b4$export$30933c637c977eef as get_recs_with_template, $f494377581cfb2b4$export$4f39078bdc72ecd0 as default_pre_processor, $f494377581cfb2b4$export$c410ce1205e5118a as default_post_processor, $0b48ba2f40ce6067$export$b6ae1bc530f4c149 as observer, $cdca9fea6eb103e5$export$12e07a2a9f87578a as ElementObserver, $cb50cd7a49e824ee$export$ea60432919e69303 as ElementObserverEvent, $63cbb5de51d11596$export$34b9dba7ce09269b as jsx, $63cbb5de51d11596$export$25062201e9e25d76 as jsxs, $63cbb5de51d11596$export$ffb0004e005737fa as Fragment, $b9b0dba897847b2a$export$eb0b9ed911409b57 as use_element, $b9b0dba897847b2a$export$f63fcc839cb0f734 as use_listener, $b9b0dba897847b2a$export$22a65337c1b43b1f as classlist, $649f456f663da9fc$export$2dd75a6b038dc8cb as set_browser_prefix, $649f456f663da9fc$export$de56f1198d121036 as dlog, $649f456f663da9fc$export$c2363754d4758444 as dwarn, $649f456f663da9fc$export$997143d41f6a0c9b as derror, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9 as catchify, $b04e44fad5ea42c7$export$f18d5b0af29128b7 as report, $571bce04eb920cd8$export$55fe61489d2c7417 as is_debug, $eba382943196079c$export$af2e17a20c2ea3c5 as Sentry, $ca66c9553e84df02$export$dc84183312f0c201 as chevronRight, $ca66c9553e84df02$export$6038895ac52bd044 as chevronLeft, $9a744f57ab06c32e$export$68c017fd93791405 as expandingContainer, $b83068cbd26dcc41$export$3be7054c61590ee3 as Lazyfier, $b83068cbd26dcc41$export$e4741190ccada479 as find_siblings, $b83068cbd26dcc41$export$b87d7e0da8b5cbe3 as test_array_proxy_support, $ef9394fafebd5eab$export$692b27c28639e5b9 as Amazing_Slider, $893f9af5dbae6bc8$export$deca40f48c0569f8 as should_colorizeLogics, $893f9af5dbae6bc8$export$16501883f477737a as colorize_elements, $6be99244fa573db5$export$50ce83ace0cdd87e as default_rr, $2d47b009af5bc0a4$export$1bc0df10745d5412 as fetch_recs, $2d47b009af5bc0a4$export$d40679eb4cf32f09 as fetch_recs_whole_response, $5cbe24d064a033ed$export$a9fc160c5ed83bd7 as Rec_Renderer, $5cbe24d064a033ed$export$c42139a43c877ecd as clone_deep, $5cbe24d064a033ed$export$c22e610107c5a15a as pre_processor_pipeline, $5cbe24d064a033ed$export$da854280fb61cd32 as InfoForProcessing, $5cbe24d064a033ed$export$cf7cbc6b76039101 as post_process, $5cbe24d064a033ed$export$e0009e7da572f99b as regex_templating, $30e801eaa3dc319e$export$5c4e09968d6eab33 as media_query_header, $30e801eaa3dc319e$export$c84671f46d6a1ca as Layout, $30e801eaa3dc319e$export$17c3166a7ebd4688 as n_col_styling_with_dist, $090b8182afa1b2a6$export$b0a773486c1c2312 as RecommendationGrid, $30f78542ed78cd31$export$82cfdc85a4d15688 as RecommendationSlider, $c1503704e45e6a15$export$f37c58ab3d3e3b75 as default_view_tracking, $c1503704e45e6a15$export$1bffac19f9f0d6fc as gtag_view_post_processor, $c1503704e45e6a15$export$9e1caada6901f552 as depict_page_view, $c1503704e45e6a15$export$fb9afe9f540ae069 as recs_inserted_tracking, $c1503704e45e6a15$export$6830ae1fbe21e589 as default_click_tracking, $c1503704e45e6a15$export$8d72437623fef90c as gtag_click_post_processor, $c1503704e45e6a15$export$e9106d6e723510d2 as depict_click_tracking_post_processor, $c1503704e45e6a15$export$dd32cb565eae0a1f as ga_click, $c1503704e45e6a15$export$32eb5dd18e963410 as add_to_localstorage, $c1503704e45e6a15$export$ed8a68dacd075983 as tracking_function_map, $c1503704e45e6a15$export$4b50a4de9c6bbe09 as rro_inserted_event_sent, $c1503704e45e6a15$export$3777a14dd8c2363d as gtag_view_sent, $be40b7bf11a47cc4$export$8cbd8aa1c70f9a13 as slider_autoscroll_factory, $d31b48b85102c1ec$export$80039a49055269fb as make_button1, $a75adf1478c4522f$export$af88b4929c2dc86 as make_button2, $2436f68ea927d4a8$export$1d17a045bcc711b1 as slider_dots_factory, $2436f68ea927d4a8$export$a09282b33e69b43f as navdot, $9bb2400c4e2e9335$export$411b0f20794697ce as slider_draggable_factory, $1ce2ae6f640f393f$export$5129719c04a52f8c as slider_fading_factory, $52292921bc0fc31f$export$5723caf9a8335aa6 as slider_fractional_factory, $f78bc6a06402a6cf$export$93223e488e7ee078 as slider_show_scroll, $06fe260f91efff62$export$b36d2489a5a16728 as slider_snap_css, $06fe260f91efff62$export$49b950309ab787ad as can_use_snapping_and_still_scroll, $40bfd400d76a6ec1$export$dac64fd35a4805a4 as slider_snapping_factory, $c33c6faf8acc7442$export$68babfc5be0de5da as Amazing_Lazy_Slider, $556d9c321900f1d4$export$53306504b987cbf7 as slider_wraparound_factory, $159237486410355f$export$417ef0ab13d8b984 as surface_mixer, $159237486410355f$export$419f84efad7d9fe as sizes_to_surface, $159237486410355f$export$be95cb0e8cfd099e as promise_until_next_navigation, $eb214beed0934fa9$export$29a6094e0bd8bc5f as AIO, $eb214beed0934fa9$export$6ebd242c09192cec as paint_red, $91b2e49f92ed636c$export$82a685f2da2fb027 as bind_tracking_to_link, $91b2e49f92ed636c$export$2c34560c3749dc63 as bind_to_a2c_button, $155540b3b8aca771$export$fce59460a1699957 as cookiebot_get_consent, $155540b3b8aca771$export$56c2e8be65fb14ae as cookiebot_wait_for_consent, $155540b3b8aca771$export$8827362e5e938d26 as cookiebot_get_cookie_ipns, $155540b3b8aca771$export$abec7fd9f0b9cc22 as init_cookiebot_tracking, $43683b1103edab15$export$6399bdb2291895e0 as get_depict_id, $43683b1103edab15$export$adc61a405a4cabed as get_user_id, $43683b1103edab15$export$61e7e1f11e96692f as get_session_id, $43683b1103edab15$export$336e7ad40bae0652 as set_depict_id_fn, $43683b1103edab15$export$8a96793bf9f87d90 as set_user_id_fn, $43683b1103edab15$export$93ae15b1ae509334 as set_session_id_fn, $43683b1103edab15$export$8c6f26a5b6921b95 as get_tracking_event_context_data, $43683b1103edab15$export$82badda1f9923310 as depict_prefilled, $43683b1103edab15$export$15f8a0cd5a8c0ebb as depict_click, $43683b1103edab15$export$9028351cb994757e as depict_add_to_cart, $43683b1103edab15$export$622991c71a1f52b3 as get_cookie, $cafa1ff1049985c2$export$72036d950e1fae95 as filter_depict_payload, $cafa1ff1049985c2$export$aa26019042811d4f as send_websocket, $cafa1ff1049985c2$export$608478473a3304a0 as send_depict_unfiltered, $cafa1ff1049985c2$export$cc3b6ddf805f6156 as foolproof_send_beacon, $cafa1ff1049985c2$export$28cacbd9b4306ffc as send_depict, $42bbbba8196bd057$export$edfedd0557ca5a2d as make_tracker_send_to_depict, $42bbbba8196bd057$export$674d8cd8b6868154 as create_ga_queue, $3abef00489070e23$export$1ff14fec60ed5697 as ga_to_transaction_api, $0263af58e2304a2b$export$f3354ec2ce95ebd9 as load_gtag, $0263af58e2304a2b$export$d031e55ccd4c52dc as setup_gtag, $0263af58e2304a2b$export$7babcd5d4056b2ca as gtag_view, $0263af58e2304a2b$export$f522672c9379e339 as gtag_click, $0263af58e2304a2b$export$f75172d2e289cd02 as send_ga, $0263af58e2304a2b$export$ac7296527cb52311 as setup_ga, $0263af58e2304a2b$export$127751e82111fcf as ga_rec_click, $0263af58e2304a2b$export$bf205937e5e012cb as ga_purchase_click, $ccf918da074d7243$export$135da44d0ba958bc as impression_threshold, $ccf918da074d7243$export$c543ee4cdb0d0964 as set_impression_threshold, $ccf918da074d7243$export$ca8321ea61dc2544 as has_to_be_intersecting_for, $ccf918da074d7243$export$4205dc6835bc0d9f as send_impression_event, $405969d60b37fdac$export$d0efd8ed14f5c33 as impression_tracking_post_processor, $21285393646b9849$export$37125ccc5dd98050 as impression_track_element, $61b3c9e5f2cf8171$export$836f70a28c317905 as broadcast_product_id, $61b3c9e5f2cf8171$export$58c56fe2313fdbe3 as add_new_tab_listener, $61b3c9e5f2cf8171$export$8f66c4c7fb96eda2 as contextmenu_callback, $5dbacdc6a3feeb15$export$1dd9ce50e201eff1 as optanon_get_consent, $5dbacdc6a3feeb15$export$7a6d436e0782c6ed as optanon_wait_for_consent, $5dbacdc6a3feeb15$export$7e4427e80d5fc619 as optanon_get_cookie_ipns, $5dbacdc6a3feeb15$export$f0f6c846d96fdbec as init_optanon_tracking, $847e4a06ea6767c0$export$3ebd86018b39d9d2 as orderpage_transaction_id_extractor, $847e4a06ea6767c0$export$1ac466d53a6636ac as send_transaction_id_to_depict, $847e4a06ea6767c0$export$b11248fa13a8a86c as datalayer_transaction_id_extractor, $847e4a06ea6767c0$export$ff8673d5dea82bd4 as url_transaction_id_extractor, $54793663e06a1437$export$d63b08f4f29ddba5 as send_product_unavailable_to_depict, $aa0140679dc70b7a$export$eee4c4d924348b05 as send_page_view_if_needed, $aa0140679dc70b7a$export$f7cb1bd47199ec38 as send_page_view_on_navigation, $4ce764ddfee055ef$export$1b28bc5c68cc4d77 as AutoReconnectingWS, $4ce764ddfee055ef$export$1d9c6fddbff3441f as DepictAPIWS, $2030306bed68a8c7$export$74108888f38788f3 as ListenableSet, $511123bb28a7b6f7$export$535946eb77c946dd as deparallelize, $511123bb28a7b6f7$export$f241be8e610f5c77 as deparallelize_no_drop, $9ab9ecb74920f343$export$f8ea2e7b15b5d129 as buildThresholdList, $1ce9aeebfbcb93f9$export$d9fdc6ce2907f95b as chaotic_closest, $0bdb8dbcf1bc7f34$export$925772df9b4d16e5 as ensure_parameter_in_url, $0bdb8dbcf1bc7f34$export$785f04709990c4ec as querySelectorUpwards, $0bdb8dbcf1bc7f34$export$44951404cb8d0583 as html2elems, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787 as html2elem, $0bdb8dbcf1bc7f34$export$d4bd03f19260ef1c as relativify, $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0 as querySelectorAllElements, $0bdb8dbcf1bc7f34$export$cfef5d5c9ac09253 as standard_price_format, $0bdb8dbcf1bc7f34$export$f124e3ee16e6b45d as intl_number_format_with_fallback, $0bdb8dbcf1bc7f34$export$9590700a594aef08 as ensure_object_path, $d832040ef2097a0e$export$6b75200e58bc97d0 as deduplicate, $d832040ef2097a0e$export$9426572bd5645bc1 as dedup_products, $ead1f6ae93c69da9$export$82539d9817116aff as navigate_with_next_router, $802201ed0a316c43$export$ab0f802c05dd969b as intercept, $802201ed0a316c43$export$774bc87373c4fc6c as add_item, $802201ed0a316c43$export$337197b94b3bd680 as get_items_in_cart, $802201ed0a316c43$export$783ef16647773b3d as get_shopify_analytics_meta_product, $b6f5b218b1a73900$export$85be83e1935d93c2 as fetch_replacer, $b6f5b218b1a73900$export$f8da66bc4f1d059e as FakeResponse, $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313 as fetch_retry, $1813f33dd0fc7e1d$export$b404e20f3c4a490e as get_optimize_variant, $0d2acf276472ebf7$export$20e9533e68ee72e7 as stateless_href_change_ipns, $0d2acf276472ebf7$export$a9d39e43ae273d26 as href_change_ipns, $0d2acf276472ebf7$export$baccefee4a395d8f as history_replacer, $0d2acf276472ebf7$export$1cd22bab0d2c3b0b as on_next_navigation, $607fc90221d440a6$export$e806c6c1615a59ae as async_iterable_ipns, $607fc90221d440a6$export$90740b5bc9c2b3b7 as make_ipns_stateless, $607fc90221d440a6$export$10c3e52ef388b81b as make_ipns_stateful, $ec58be30798d6e95$export$e2c811ae0eb35313 as RawObservableInformation, $ec58be30798d6e95$export$3e42f5078e3abfc0 as make_simple_async_iterable, $4f24151f2cddad7b$export$2c2f50b30b7b2576 as iterable_to_attribute, $8c97019b5f7b0d0e$export$7c081fdbc65b6a2a as iterable_to_elems, $b8270fcf290bb3af$export$927664b47117acb0 as make_asyncIterable_exiter, $693e2a1517bef984$export$f8913c8a18f7ca21 as zip_async_iterables, $8bed543774ca0dd4$export$b8d1e1d07a3f3776 as prevent_infinite_loop, $8bed543774ca0dd4$export$f811d2ce0aa6019b as insert_surfaces, $8bed543774ca0dd4$export$e3f70ef7e3d00501 as revertable_remove, $0a581f1dfa083522$export$59ba1eb2c083f0cd as insert_styling, $0a581f1dfa083522$export$a96c18473f2af463 as track_a2c, $0a581f1dfa083522$export$a4f97b27a0592e6c as normal_get_product_id, $0a581f1dfa083522$export$692b606677218a16 as depict_init, $0a581f1dfa083522$export$328e81c44cddf3c0 as depict_init_with_market_logic, $29407d8301dc2f23$export$515c3ea4d599b05a as javascript_media_query, $39ef887981612535$export$33f937d741e49339 as patched_querySelectorAll, $78270f2ea7ca229f$export$3b75288f46cadd96 as random_text_placeholder, $78270f2ea7ca229f$export$a4eccf92efefa04d as placeholder_svg, $78270f2ea7ca229f$export$2dd69958012e3e49 as make_placeholder_rr, $bb3252f70898acd6$export$947a20746936143d as Promise_Any, $9e268c1aeeb86b34$export$c50e1901e8ed0615 as queueMacroTask, $d89638655e64f324$export$bb0a9c36cf454ea0 as rand, $460df8550f9d084d$export$656831b7e9c341c3 as random_string, $460df8550f9d084d$export$a6db784f019668ba as make_random_classname, $49c4fa2e27e642fa$export$3d04c40e7acc1a32 as reactive_template, $a79c7168700020ff$export$8ec5c86406f333ff as removeChild_error_swallowing_factory, $1dd4146ad893cfb2$export$38e89c688f9d553a as replace_promise_with_native_if_exists_and_enforce, $1dd4146ad893cfb2$export$e647444ed9403635 as get_iframe_promise, $bbb9f33eb5feb86a$export$83ec13b10b391f13 as default_rp_fixes, $bbb9f33eb5feb86a$export$2a1cc61cffa1f36f as rp_relativify_fetch, $bbb9f33eb5feb86a$export$2a38b176ce969e2c as rp_relativify_xhr, $bbb9f33eb5feb86a$export$f14a775632a826c4 as rp_relativify_history, $5c4afc453f904a1f$export$39d526a1194b6499 as serialize_object, $8d4dfadc5e12c7fb$export$12b4c6cbc6b8b4e4 as sort_obj, $eda086e0899e75b0$export$a422d714c8cb1a5d as standard_get_market, $e72f2f1d48dc3a53$export$3427ec8268623f1 as listenToLocalStorage, $26eaaddf434c84f1$export$8d42ce4827f43582 as Tenant, $55698e6e298abcb0$export$cd1adfb8059b5fcd as timeout_promise, $d0e7629fb3179e02$export$2fc1a072736ae2f6 as is_available_in, $d0e7629fb3179e02$export$d5062f468a0454f3 as find_descriptor, $d0e7629fb3179e02$export$79f910a98828378d as variable_setter_to_ipns, $690d8897acf7a743$export$a739d9a07da7f9ce as use_voyado_id, $2cbe7e0ca2ce5438$export$5c069c93d2b7493f as wait, $4a6ab5f7377729b1$export$33d1643df63073a8 as xhr_replace, $4a6ab5f7377729b1$export$f314addd5f976083 as xhr_load, $4a6ab5f7377729b1$export$c74578d2cd47a84a as xhr_send_interceptor, $4a6ab5f7377729b1$export$8e16c51fd2b6507 as xhr_read_interceptor, $769ce417b39aa7d3$export$4a3043e508dd72f0 as DefaultViewMoreButton, $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90 as GeneralSideSlidein, $72d170fd5c7cb3fe$export$c068ad5361be7646 as GeneralSizeSelector, $ad592d9ddbcffe72$export$84712d0562a614b8 as Placeholder, $ad592d9ddbcffe72$export$d613f5b6d0a331a8 as ContainedPlaceholderImage, $fbe64cf2cf408e4f$export$97f31f44c68c1d5 as RecommendationContainer, $7693290d077384da$export$32a55d57d151bc5a as RightChevron, $7693290d077384da$export$ddd70fdae1b350e6 as LeftChevron, $6f1582c15e13f2f0$export$590326cc34f49e2d as createColorPicker, $7f57d546b5d5b3d6$export$237455ad7e59d4e5 as useExpandingContainer, $8483d1d9fcee52ec$export$2369f6fc1c911576 as ContainedHoverImage, $914971fb43986a16$export$788756b42446dc2d as ContainedImage, $45af9e834781a9bc$export$3d13beba9b52c947 as resize_base_url, $45af9e834781a9bc$export$a98fc8a2c818d3d8 as is_safari, $45af9e834781a9bc$export$f39a7d0667e924a as make_sizes_setter, $45af9e834781a9bc$export$a62825542f1bfcf5 as make_sourceset_component, $45af9e834781a9bc$export$f7c915448031deac as make_url_with_query_params, $ec750a6d2c6eaa57$export$2624c5890f1bbcf7 as ArrowUp, $7ef13b49cbcd4a08$export$1c641004b5485fed as BackIcon, $ec770301d57afdae$export$3b621d86b1566b2 as CrossIcon, $655593feacb9828c$export$28f6150e232898de as FilterIcon, $62fd1a9c2195af77$export$8be2714ec7f169ee as GenericSliderArrowButton, $e29993023c5b77a4$export$cb808a3c41736d8e as MinusIcon, $7f7db0445af6c4b0$export$f21ab0717a89c77f as PlusIcon, $bac8989b3f4c29b2$export$5d2caaa6b530761c as PreviousSearchIcon, $26bcec40c802fcbf$export$82eafebb825fc23f as SearchIcon, $84b9f4594b6e2b53$export$da32f7add8a22e86 as SortIconAsc, $d2fe3fd446d52b45$export$d10e63059ddb9fd4 as SortIconDesc, $f5ca01afd4680bdd$export$f2ca6fc699ca1fb4 as TickIcon};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/utilishared",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -14,7 +14,8 @@
14
14
  "build": "./scripts/build",
15
15
  "publish": "yarn build && yarn npm publish",
16
16
  "print-included-package-files": "yarn pack --dry-run",
17
- "typecheck": "yarn g:tsc --build tsconfig.json"
17
+ "typecheck": "yarn g:tsc --build tsconfig.json",
18
+ "test": "jest"
18
19
  },
19
20
  "targets": {
20
21
  "module": {
@@ -45,8 +46,11 @@
45
46
  "@parcel/resolver-default": "^2.8.0",
46
47
  "@sentry/cli": "latest",
47
48
  "@sentry/types": "^7.13.0",
49
+ "@types/jest": "^29.2.5",
48
50
  "@types/node": "^18.11.9",
49
- "parcel": "latest"
51
+ "jest": "^29.3.1",
52
+ "parcel": "latest",
53
+ "ts-jest": "^29.0.3"
50
54
  },
51
55
  "dependencies": {
52
56
  "@sentry/browser": "^7.23.0",