@depict-ai/utilishared 0.0.2 → 0.0.5
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 +55 -96
- package/dist/main.js +47 -221
- package/dist/module.js +44 -218
- package/jsx.d.ts +1 -1
- package/package.json +2 -1
- package/tsconfig.json +1 -7
- package/types.d.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference path="../jsx.d.ts" />
|
|
2
|
-
|
|
2
|
+
/// <reference path="../jsx.d.ts" />
|
|
3
|
+
import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
|
|
3
4
|
/**
|
|
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
|
|
5
6
|
*/
|
|
@@ -132,6 +133,7 @@ export function report(msg: Error | [Error, string], severity: Severity, input_d
|
|
|
132
133
|
[key: string]: any;
|
|
133
134
|
stack?: never;
|
|
134
135
|
}): void;
|
|
136
|
+
export const base_url: string;
|
|
135
137
|
/**
|
|
136
138
|
* Gives a random number between min and max (potentially including min and max).
|
|
137
139
|
* @param min The minimum number.
|
|
@@ -680,58 +682,6 @@ export const send_ga: (action: string) => any;
|
|
|
680
682
|
export const setup_ga: (GAID: string) => void;
|
|
681
683
|
export const ga_rec_click: () => any;
|
|
682
684
|
export const ga_purchase_click: () => any;
|
|
683
|
-
type ImpressionTrackOptions = {
|
|
684
|
-
t?: Tenant;
|
|
685
|
-
impression_tracking?: false;
|
|
686
|
-
} | {
|
|
687
|
-
impression_tracking: true;
|
|
688
|
-
t: Tenant;
|
|
689
|
-
};
|
|
690
|
-
type TenantSpecificationOptions = {
|
|
691
|
-
t?: Tenant;
|
|
692
|
-
tenant: string;
|
|
693
|
-
market: string;
|
|
694
|
-
get_product_id: (url?: string) => string | Promise<string>;
|
|
695
|
-
} | {
|
|
696
|
-
t: Tenant;
|
|
697
|
-
tenant?: string;
|
|
698
|
-
market?: string;
|
|
699
|
-
get_product_id?: (url?: string) => string | Promise<string>;
|
|
700
|
-
};
|
|
701
|
-
type ElementDiscoveryOptions = {
|
|
702
|
-
product_selector: string;
|
|
703
|
-
product_elements?: null | void | undefined;
|
|
704
|
-
} | {
|
|
705
|
-
product_selector?: null | void | undefined;
|
|
706
|
-
product_elements: HTMLElement[];
|
|
707
|
-
};
|
|
708
|
-
type A2CButtonDiscoveryOptions = {
|
|
709
|
-
a2c_selector: string;
|
|
710
|
-
a2c_elements?: null | void | undefined;
|
|
711
|
-
} | {
|
|
712
|
-
a2c_selector?: null | void | undefined;
|
|
713
|
-
a2c_elements: HTMLElement[];
|
|
714
|
-
};
|
|
715
|
-
export const AIO: (options: {
|
|
716
|
-
attempt_gtag_view_tracking?: boolean | undefined;
|
|
717
|
-
no_gtag?: boolean | undefined;
|
|
718
|
-
shade?: boolean | undefined;
|
|
719
|
-
always_track_a2c?: boolean | undefined;
|
|
720
|
-
get_rec_id?: ((elem: HTMLElement) => string | undefined) | undefined;
|
|
721
|
-
get_prod_id?: ((elem: HTMLElement) => (string | undefined) | Promise<string | undefined>) | undefined;
|
|
722
|
-
get_ga_prod_id?: ((elem: HTMLElement) => string | undefined | Promise<string | undefined>) | undefined;
|
|
723
|
-
click_location_prefix?: ((elem: HTMLElement) => string | undefined) | undefined;
|
|
724
|
-
rec_a2c_selector?: string | undefined;
|
|
725
|
-
rec_a2c_unbubbled?: boolean | undefined;
|
|
726
|
-
get_display?: ((elem: HTMLElement) => Partial<Display> | undefined) | undefined;
|
|
727
|
-
} & ImpressionTrackOptions & TenantSpecificationOptions & ElementDiscoveryOptions & A2CButtonDiscoveryOptions, gtag_options?: {
|
|
728
|
-
[key: string]: any;
|
|
729
|
-
list_name?: string | undefined;
|
|
730
|
-
} | undefined) => Promise<{
|
|
731
|
-
add_a2c_element: (element: HTMLElement) => void;
|
|
732
|
-
add_product_element: (element: HTMLElement) => Promise<void>;
|
|
733
|
-
}>;
|
|
734
|
-
export const paint_red: (element: HTMLElement) => void;
|
|
735
685
|
export const insert_styling: (css: string) => Promise<void>;
|
|
736
686
|
/**
|
|
737
687
|
* A function meant to use to track the main add to cart button on the product page of an integration.
|
|
@@ -838,6 +788,58 @@ export class Tenant<ProductId extends IdType = IdType> {
|
|
|
838
788
|
* This is a list of alpha-2 country codes plus some two letter combinations commonly used to describe markets
|
|
839
789
|
*/
|
|
840
790
|
export type TwoLetterMarket = "af" | "al" | "dz" | "as" | "ad" | "ao" | "ai" | "aq" | "ag" | "ar" | "am" | "aw" | "au" | "at" | "az" | "bs" | "bh" | "bd" | "bb" | "by" | "be" | "bz" | "bj" | "bm" | "bt" | "bo" | "bq" | "ba" | "bw" | "bv" | "br" | "io" | "bn" | "bg" | "bf" | "bi" | "cv" | "kh" | "cm" | "ca" | "ky" | "cf" | "td" | "cl" | "cn" | "cx" | "cc" | "co" | "km" | "cd" | "cg" | "ck" | "cr" | "hr" | "cu" | "cw" | "cy" | "cz" | "ci" | "dk" | "dj" | "dm" | "do" | "ec" | "eg" | "sv" | "gq" | "er" | "ee" | "sz" | "et" | "fk" | "fo" | "fj" | "fi" | "fr" | "gf" | "pf" | "tf" | "ga" | "gm" | "ge" | "de" | "gh" | "gi" | "gr" | "gl" | "gd" | "gp" | "gu" | "gt" | "gg" | "gn" | "gw" | "gy" | "ht" | "hm" | "va" | "hn" | "hk" | "hu" | "is" | "in" | "id" | "ir" | "iq" | "ie" | "im" | "il" | "it" | "jm" | "jp" | "je" | "jo" | "kz" | "ke" | "ki" | "kp" | "kr" | "kw" | "kg" | "la" | "lv" | "lb" | "ls" | "lr" | "ly" | "li" | "lt" | "lu" | "mo" | "mg" | "mw" | "my" | "mv" | "ml" | "mt" | "mh" | "mq" | "mr" | "mu" | "yt" | "mx" | "fm" | "md" | "mc" | "mn" | "me" | "ms" | "ma" | "mz" | "mm" | "na" | "nr" | "np" | "nl" | "nc" | "nz" | "ni" | "ne" | "ng" | "nu" | "nf" | "mp" | "no" | "om" | "pk" | "pw" | "ps" | "pa" | "pg" | "py" | "pe" | "ph" | "pn" | "pl" | "pt" | "pr" | "qa" | "mk" | "ro" | "ru" | "rw" | "re" | "bl" | "sh" | "kn" | "lc" | "mf" | "pm" | "vc" | "ws" | "sm" | "st" | "sa" | "sn" | "rs" | "sc" | "sl" | "sg" | "sx" | "sk" | "si" | "sb" | "so" | "za" | "gs" | "ss" | "es" | "lk" | "sd" | "sr" | "sj" | "se" | "ch" | "sy" | "tw" | "tj" | "tz" | "th" | "tl" | "tg" | "tk" | "to" | "tt" | "tn" | "tr" | "tm" | "tc" | "tv" | "ug" | "ua" | "ae" | "gb" | "um" | "us" | "uy" | "uz" | "vu" | "ve" | "vn" | "vg" | "vi" | "wf" | "eh" | "ye" | "zm" | "zw" | "ax" | "uk" | "en" | "da" | "eu" | "sv" | "oc" | "nb" | "sq";
|
|
791
|
+
type ImpressionTrackOptions = {
|
|
792
|
+
t?: Tenant;
|
|
793
|
+
impression_tracking?: false;
|
|
794
|
+
} | {
|
|
795
|
+
impression_tracking: true;
|
|
796
|
+
t: Tenant;
|
|
797
|
+
};
|
|
798
|
+
type TenantSpecificationOptions = {
|
|
799
|
+
t?: Tenant;
|
|
800
|
+
tenant: string;
|
|
801
|
+
market: string;
|
|
802
|
+
get_product_id: (url?: string) => string | Promise<string>;
|
|
803
|
+
} | {
|
|
804
|
+
t: Tenant;
|
|
805
|
+
tenant?: string;
|
|
806
|
+
market?: string;
|
|
807
|
+
get_product_id?: (url?: string) => string | Promise<string>;
|
|
808
|
+
};
|
|
809
|
+
type ElementDiscoveryOptions = {
|
|
810
|
+
product_selector: string;
|
|
811
|
+
product_elements?: null | void | undefined;
|
|
812
|
+
} | {
|
|
813
|
+
product_selector?: null | void | undefined;
|
|
814
|
+
product_elements: HTMLElement[];
|
|
815
|
+
};
|
|
816
|
+
type A2CButtonDiscoveryOptions = {
|
|
817
|
+
a2c_selector: string;
|
|
818
|
+
a2c_elements?: null | void | undefined;
|
|
819
|
+
} | {
|
|
820
|
+
a2c_selector?: null | void | undefined;
|
|
821
|
+
a2c_elements: HTMLElement[];
|
|
822
|
+
};
|
|
823
|
+
export const AIO: (options: {
|
|
824
|
+
attempt_gtag_view_tracking?: boolean | undefined;
|
|
825
|
+
no_gtag?: boolean | undefined;
|
|
826
|
+
shade?: boolean | undefined;
|
|
827
|
+
always_track_a2c?: boolean | undefined;
|
|
828
|
+
get_rec_id?: ((elem: HTMLElement) => string | undefined) | undefined;
|
|
829
|
+
get_prod_id?: ((elem: HTMLElement) => (string | undefined) | Promise<string | undefined>) | undefined;
|
|
830
|
+
get_ga_prod_id?: ((elem: HTMLElement) => string | undefined | Promise<string | undefined>) | undefined;
|
|
831
|
+
click_location_prefix?: ((elem: HTMLElement) => string | undefined) | undefined;
|
|
832
|
+
rec_a2c_selector?: string | undefined;
|
|
833
|
+
rec_a2c_unbubbled?: boolean | undefined;
|
|
834
|
+
get_display?: ((elem: HTMLElement) => Partial<Display> | undefined) | undefined;
|
|
835
|
+
} & ImpressionTrackOptions & TenantSpecificationOptions & ElementDiscoveryOptions & A2CButtonDiscoveryOptions, gtag_options?: {
|
|
836
|
+
[key: string]: any;
|
|
837
|
+
list_name?: string | undefined;
|
|
838
|
+
} | undefined) => Promise<{
|
|
839
|
+
add_a2c_element: (element: HTMLElement) => void;
|
|
840
|
+
add_product_element: (element: HTMLElement) => Promise<void>;
|
|
841
|
+
}>;
|
|
842
|
+
export const paint_red: (element: HTMLElement) => void;
|
|
841
843
|
/**
|
|
842
844
|
* A function that attempts to "serialize" an object to a text representation that helps with debugging when using sentry
|
|
843
845
|
* @param anything Something to try to serialize - this function is crappy and your mileage may vary
|
|
@@ -1926,49 +1928,6 @@ export function make_placeholder_rr({ override_rec_renderer, image_width, image_
|
|
|
1926
1928
|
* @param callback callback function that gets queued as a task
|
|
1927
1929
|
*/
|
|
1928
1930
|
export function queueMacroTask(callback: VoidFunction): void;
|
|
1929
|
-
export type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T;
|
|
1930
|
-
type rec_renderer_result = ReturnType<typeof default_rr> | ReturnType<typeof infinite_renderer> | ReturnType<typeof Auto_GWVM>;
|
|
1931
|
-
/**
|
|
1932
|
-
* react_surface: this was meant to be a one-stop shop for modify scripts for single page applications, however the caching contains a huge mistake which wasn't discovered due to a memory leak in GWVM. Due to the caching error (which can lead to recommendations being inserted twice) I recommend rewriting or fixing this before use.
|
|
1933
|
-
* If it has to be used, consider also checking in the `is_product_page` function if `document.querySelector(`[data-recs_for_product_id='${product_id}']`)` and put data attributes with the product id on all your containers. The bug is that there's a WeakRef holding the rendering result of render_recs, assuming it won't get garbage collected while the recommendations are actually in the DOM. This is a false assumption, as the `result.elements` won't get garbage collected, but the element holding a reference to them can.
|
|
1934
|
-
* @param {navigation_ipo An `infinite_promise_no_skip` that resolves every time the page navigates
|
|
1935
|
-
* @param element_ipo An `infinite_promise_no_skip` that resolves with an element to attempt insertion into every time such an element is discovered
|
|
1936
|
-
* @param get_product_id A function to get the product id of the current page or a provided product URL if applicable
|
|
1937
|
-
* @param get_recs A function returning displays
|
|
1938
|
-
* @param render_recs A function doing recommendation rendering and returning a RecRendererResult
|
|
1939
|
-
* @param insertion_verb The function to use to insert the recommendations returned by `render_recs` into the elements provided by `element_ipo`
|
|
1940
|
-
* @param is_product_page A function returning true if something should be done (one is on a page that desires recommendations)
|
|
1941
|
-
*/
|
|
1942
|
-
export class react_surface {
|
|
1943
|
-
#private;
|
|
1944
|
-
elements_on_page_stash: WeakRef<HTMLElement>[];
|
|
1945
|
-
rendered_recs_stash: {
|
|
1946
|
-
[key: string]: Promise<WeakRef<Awaited<rec_renderer_result>>>;
|
|
1947
|
-
};
|
|
1948
|
-
display_stash: {
|
|
1949
|
-
[key: string]: Promise<Display[]>;
|
|
1950
|
-
};
|
|
1951
|
-
navigation_ipo: infinite_promise_no_skip<any>;
|
|
1952
|
-
element_ipo: infinite_promise_no_skip<HTMLElement>;
|
|
1953
|
-
ensure_fetched_recs(product_id: string): Promise<Display[]>;
|
|
1954
|
-
ensure_rendered_and_fetched_recs(product_id: string): Promise<RecRendererResult | {
|
|
1955
|
-
elements?: Node_Array | undefined;
|
|
1956
|
-
load_more?: ((num?: number | Event | undefined) => void) | undefined;
|
|
1957
|
-
displays?: Display[] | undefined;
|
|
1958
|
-
}>;
|
|
1959
|
-
deduped_ensure_recs_on_page: () => Promise<void>;
|
|
1960
|
-
constructor({ navigation_ipo, element_ipo, get_product_id, get_recs, render_recs, insertion_verb, is_product_page, empty_before_insertion, no_container_error_handler, }: {
|
|
1961
|
-
navigation_ipo: infinite_promise_no_skip<any>;
|
|
1962
|
-
element_ipo: infinite_promise_no_skip<HTMLElement>;
|
|
1963
|
-
get_product_id: (url?: string) => string | Promise<string>;
|
|
1964
|
-
render_recs: (d: Display[], product_id: string) => rec_renderer_result;
|
|
1965
|
-
get_recs: (product_id: string) => Promise<Display[]>;
|
|
1966
|
-
insertion_verb?: "replaceWith" | "append" | "prepend" | "before" | "after";
|
|
1967
|
-
is_product_page?: () => boolean | Promise<boolean>;
|
|
1968
|
-
empty_before_insertion?: boolean;
|
|
1969
|
-
no_container_error_handler?: (elements_on_page_stash: WeakRef<HTMLElement>[]) => any;
|
|
1970
|
-
});
|
|
1971
|
-
}
|
|
1972
1931
|
/**
|
|
1973
1932
|
* Makes Node.prototype.removeChild not throw and emulate correct removal when a node is being removed by React's VDOM diffing that we have already removed before
|
|
1974
1933
|
* @return a WeakSet to add nodes to which you remove and want to ignore removal errors for
|
package/dist/main.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
function $parcel$export(e, n, v, s) {
|
|
2
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
3
|
-
}
|
|
4
1
|
function $parcel$exportWildcard(dest, source) {
|
|
5
2
|
Object.keys(source).forEach(function(key) {
|
|
6
3
|
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
@@ -17,6 +14,9 @@ function $parcel$exportWildcard(dest, source) {
|
|
|
17
14
|
|
|
18
15
|
return dest;
|
|
19
16
|
}
|
|
17
|
+
function $parcel$export(e, n, v, s) {
|
|
18
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
19
|
+
}
|
|
20
20
|
function $parcel$defineInteropFlag(a) {
|
|
21
21
|
Object.defineProperty(a, '__esModule', {value: true, configurable: true});
|
|
22
22
|
}
|
|
@@ -26,6 +26,7 @@ function $parcel$interopDefault(a) {
|
|
|
26
26
|
|
|
27
27
|
$parcel$export(module.exports, "simplified_template_tool", () => $52d3be7ce5146924$export$2e2bcd8739ae039);
|
|
28
28
|
$parcel$export(module.exports, "wpff", () => $c413c7798924612a$export$2e2bcd8739ae039);
|
|
29
|
+
$parcel$export(module.exports, "base_url", () => $4c6861fbcd3a0611$export$362abebb4b313340);
|
|
29
30
|
var $ee1d22bd1fcdd4e1$exports = {};
|
|
30
31
|
|
|
31
32
|
$parcel$export($ee1d22bd1fcdd4e1$exports, "cache_args", () => $ee1d22bd1fcdd4e1$export$6e7454c733fa1fb2);
|
|
@@ -1495,6 +1496,10 @@ var $94edfb6d9c42a288$exports = {};
|
|
|
1495
1496
|
|
|
1496
1497
|
$parcel$export($94edfb6d9c42a288$exports, "fetch_recs", () => $94edfb6d9c42a288$export$1bc0df10745d5412);
|
|
1497
1498
|
$parcel$export($94edfb6d9c42a288$exports, "fetch_recs_whole_response", () => $94edfb6d9c42a288$export$d40679eb4cf32f09);
|
|
1499
|
+
const $4c6861fbcd3a0611$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
|
|
1498
1503
|
var $e0a87646d12cb987$exports = {};
|
|
1499
1504
|
|
|
1500
1505
|
$parcel$export($e0a87646d12cb987$exports, "get_depict_id", () => $e0a87646d12cb987$export$6399bdb2291895e0);
|
|
@@ -1798,6 +1803,7 @@ function $650b64c1b384c895$export$a6db784f019668ba() {
|
|
|
1798
1803
|
|
|
1799
1804
|
|
|
1800
1805
|
|
|
1806
|
+
|
|
1801
1807
|
const $0c84f8e99aac5765$var$c = (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9);
|
|
1802
1808
|
const $0c84f8e99aac5765$var$ws_instance = /*@__PURE__*/ $0c84f8e99aac5765$var$c(()=>new (0, $d10801050840d92b$export$1d9c6fddbff3441f)("wss://ws.depict.ai/ws/create-events"))();
|
|
1803
1809
|
const $0c84f8e99aac5765$var$allowed_keys = [
|
|
@@ -1846,7 +1852,7 @@ const $0c84f8e99aac5765$export$608478473a3304a0 = /*@__PURE__*/ $0c84f8e99aac576
|
|
|
1846
1852
|
(0, $e6c6e7929ea385ae$export$de56f1198d121036)("Sending to depict (ws)", payload);
|
|
1847
1853
|
return $0c84f8e99aac5765$export$aa26019042811d4f(payload);
|
|
1848
1854
|
}
|
|
1849
|
-
const url =
|
|
1855
|
+
const url = (0, $4c6861fbcd3a0611$export$362abebb4b313340) + "/create-events";
|
|
1850
1856
|
return $0c84f8e99aac5765$export$cc3b6ddf805f6156(url, payload);
|
|
1851
1857
|
});
|
|
1852
1858
|
const $0c84f8e99aac5765$export$cc3b6ddf805f6156 = /*@__PURE__*/ $0c84f8e99aac5765$var$c((url, payload)=>{
|
|
@@ -2429,6 +2435,7 @@ var $c18ce8dadd041cdd$exports = {};
|
|
|
2429
2435
|
|
|
2430
2436
|
$parcel$export($c18ce8dadd041cdd$exports, "make_tracker_send_to_depict", () => $c18ce8dadd041cdd$export$edfedd0557ca5a2d);
|
|
2431
2437
|
$parcel$export($c18ce8dadd041cdd$exports, "create_ga_queue", () => $c18ce8dadd041cdd$export$674d8cd8b6868154);
|
|
2438
|
+
|
|
2432
2439
|
function $c18ce8dadd041cdd$export$edfedd0557ca5a2d(ga_tracker, append_to_url) {
|
|
2433
2440
|
if (!ga_tracker) return;
|
|
2434
2441
|
// Docs for analytics.js Tasks:
|
|
@@ -2440,7 +2447,7 @@ function $c18ce8dadd041cdd$export$edfedd0557ca5a2d(ga_tracker, append_to_url) {
|
|
|
2440
2447
|
// console.log('Sent original hit, now sending to depict');
|
|
2441
2448
|
try {
|
|
2442
2449
|
const payLoad = model.get("hitPayload");
|
|
2443
|
-
const path =
|
|
2450
|
+
const path = (0, $4c6861fbcd3a0611$export$362abebb4b313340) + "/collect-ga";
|
|
2444
2451
|
let url = path + "?" + payLoad;
|
|
2445
2452
|
if (append_to_url) url += append_to_url;
|
|
2446
2453
|
const n = navigator;
|
|
@@ -3241,7 +3248,6 @@ async function $d2fc3fb450961938$var$send_sentry_422(response, body, stack) {
|
|
|
3241
3248
|
}
|
|
3242
3249
|
|
|
3243
3250
|
|
|
3244
|
-
|
|
3245
3251
|
async function $94edfb6d9c42a288$export$1bc0df10745d5412(t, options, headers, get_url = $94edfb6d9c42a288$var$default_get_fetch_url) {
|
|
3246
3252
|
const res = await $94edfb6d9c42a288$export$d40679eb4cf32f09(t, options, headers, get_url);
|
|
3247
3253
|
return res?.displays || [];
|
|
@@ -3269,7 +3275,7 @@ async function $94edfb6d9c42a288$export$d40679eb4cf32f09(t, options, headers, ge
|
|
|
3269
3275
|
.then((r)=>r.json()).catch((e)=>(0, $e6c6e7929ea385ae$export$de56f1198d121036)("fetch_retry threw", e));
|
|
3270
3276
|
}
|
|
3271
3277
|
function $94edfb6d9c42a288$var$default_get_fetch_url(type) {
|
|
3272
|
-
return `${
|
|
3278
|
+
return `${0, $4c6861fbcd3a0611$export$362abebb4b313340}/v2/recommend/products/${type}`;
|
|
3273
3279
|
}
|
|
3274
3280
|
function $94edfb6d9c42a288$var$get_fetch_endpoint_from_options(options) {
|
|
3275
3281
|
if (options["category_id"] !== undefined) return "category";
|
|
@@ -4968,6 +4974,10 @@ $parcel$export($0b6a8303b64cced1$exports, "Depict", () => $0b6a8303b64cced1$expo
|
|
|
4968
4974
|
|
|
4969
4975
|
|
|
4970
4976
|
|
|
4977
|
+
|
|
4978
|
+
|
|
4979
|
+
|
|
4980
|
+
|
|
4971
4981
|
var /**
|
|
4972
4982
|
* @deprecated please use `fetch_retry()` instead
|
|
4973
4983
|
*
|
|
@@ -5026,13 +5036,10 @@ async function $c413c7798924612a$var$send_sentry_422(response, body, stack) {
|
|
|
5026
5036
|
}
|
|
5027
5037
|
|
|
5028
5038
|
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
5039
|
const $0b6a8303b64cced1$var$discountMatcher = /{DISCOUNT{([\s\S]+?)}}/g;
|
|
5033
5040
|
const $0b6a8303b64cced1$var$noDiscountMatcher = /{NODISCOUNT{([\s\S]+?)}}/g;
|
|
5034
|
-
const $0b6a8303b64cced1$var$APICreateEvent =
|
|
5035
|
-
const $0b6a8303b64cced1$var$APIRecommend =
|
|
5041
|
+
const $0b6a8303b64cced1$var$APICreateEvent = (0, $4c6861fbcd3a0611$export$362abebb4b313340) + "/create-events";
|
|
5042
|
+
const $0b6a8303b64cced1$var$APIRecommend = (0, $4c6861fbcd3a0611$export$362abebb4b313340) + "/recommend";
|
|
5036
5043
|
let $0b6a8303b64cced1$var$pageview_sent = false, $0b6a8303b64cced1$var$windows_proof_fetch;
|
|
5037
5044
|
class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
5038
5045
|
constructor(settings){
|
|
@@ -5072,7 +5079,7 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
|
5072
5079
|
if (this.settings.waitForSelectors !== undefined) {
|
|
5073
5080
|
const SLEEP_TIME_MS = 50;
|
|
5074
5081
|
let MAX_RETRY = Math.round(10000 / SLEEP_TIME_MS);
|
|
5075
|
-
|
|
5082
|
+
const tick = setInterval(()=>{
|
|
5076
5083
|
let allLoaded = true;
|
|
5077
5084
|
for (const selector of this.settings.waitForSelectors)if (document.querySelector(selector) == null) {
|
|
5078
5085
|
allLoaded = false;
|
|
@@ -5131,7 +5138,7 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
|
5131
5138
|
}
|
|
5132
5139
|
createContainer(root, container, prepend = false) {
|
|
5133
5140
|
function htmlToElements(html) {
|
|
5134
|
-
|
|
5141
|
+
const template = document.createElement("template");
|
|
5135
5142
|
template.innerHTML = html;
|
|
5136
5143
|
return template.content.childNodes;
|
|
5137
5144
|
}
|
|
@@ -5170,8 +5177,8 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
|
5170
5177
|
};
|
|
5171
5178
|
const elementsFromHTML = (html)=>new DOMParser().parseFromString(html, "text/html").body.children;
|
|
5172
5179
|
const getContent = ()=>{
|
|
5173
|
-
|
|
5174
|
-
|
|
5180
|
+
const recsArray = [];
|
|
5181
|
+
const resultingElements = [];
|
|
5175
5182
|
this.data.forEach((item, rec_index)=>{
|
|
5176
5183
|
if (typeof itemPreprocessor === "function") {
|
|
5177
5184
|
item = itemPreprocessor(item, rec_index);
|
|
@@ -5232,8 +5239,8 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
|
5232
5239
|
if (this.settings.loadHack === true) {
|
|
5233
5240
|
const SLEEP_TIME_MS = 50;
|
|
5234
5241
|
let MAX_RETRY = Math.round(10000 / SLEEP_TIME_MS);
|
|
5235
|
-
|
|
5236
|
-
|
|
5242
|
+
const tick = setInterval(()=>{
|
|
5243
|
+
const r = root();
|
|
5237
5244
|
if (MAX_RETRY === 0) clearInterval(tick);
|
|
5238
5245
|
MAX_RETRY--;
|
|
5239
5246
|
if (r !== null) {
|
|
@@ -5242,13 +5249,13 @@ class $0b6a8303b64cced1$export$1a8782481a9af507 {
|
|
|
5242
5249
|
}
|
|
5243
5250
|
}, SLEEP_TIME_MS);
|
|
5244
5251
|
} else if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", ()=>{
|
|
5245
|
-
|
|
5252
|
+
const r = root();
|
|
5246
5253
|
r.append(...renderedContent);
|
|
5247
5254
|
}, {
|
|
5248
5255
|
once: true
|
|
5249
5256
|
});
|
|
5250
5257
|
else {
|
|
5251
|
-
|
|
5258
|
+
const r = root();
|
|
5252
5259
|
r.append(...renderedContent);
|
|
5253
5260
|
}
|
|
5254
5261
|
return;
|
|
@@ -5283,8 +5290,8 @@ var $e090b20cef3f0516$exports = {};
|
|
|
5283
5290
|
$parcel$export($e090b20cef3f0516$exports, "Deprecated_Amazing_Slider", () => $e090b20cef3f0516$export$4d41c6499d53639c);
|
|
5284
5291
|
$parcel$export($e090b20cef3f0516$exports, "insert_styling_into_slider", () => $e090b20cef3f0516$export$f1b8b9fd75ddcab1);
|
|
5285
5292
|
// @ts-ignore
|
|
5286
|
-
var $
|
|
5287
|
-
$
|
|
5293
|
+
var $7a8d2de82c53f514$exports = {};
|
|
5294
|
+
$7a8d2de82c53f514$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict_slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict_slider {\n width: 100%;\n position: relative;\n}\n\n.depict_slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict_slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict_slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict_slider button.right {\n right: 0;\n}\n\n.depict_slider button.left, .depict_slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict_slider button.left.hidden, .depict_slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict_slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict_slider button.left img, .depict_slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict_slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
5288
5295
|
|
|
5289
5296
|
|
|
5290
5297
|
|
|
@@ -5327,7 +5334,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
|
|
|
5327
5334
|
function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
|
|
5328
5335
|
const style_elem = document.createElement("style");
|
|
5329
5336
|
style_elem.type = "text/css";
|
|
5330
|
-
style_elem.append((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
5337
|
+
style_elem.append((0, (/*@__PURE__*/$parcel$interopDefault($7a8d2de82c53f514$exports))));
|
|
5331
5338
|
slider.container.appendChild(style_elem);
|
|
5332
5339
|
}
|
|
5333
5340
|
|
|
@@ -5918,8 +5925,8 @@ var $79804e8d76404ae4$exports = {};
|
|
|
5918
5925
|
|
|
5919
5926
|
$parcel$export($79804e8d76404ae4$exports, "RecommendationSlider", () => $79804e8d76404ae4$export$82cfdc85a4d15688);
|
|
5920
5927
|
// @ts-ignore
|
|
5921
|
-
var $
|
|
5922
|
-
$
|
|
5928
|
+
var $98b42e2bc60f50eb$exports = {};
|
|
5929
|
+
$98b42e2bc60f50eb$exports = ".depict_slider {\n width: 100%;\n position: relative;\n}\n\n.depict_slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict_slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict_slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n";
|
|
5923
5930
|
|
|
5924
5931
|
|
|
5925
5932
|
|
|
@@ -5938,7 +5945,7 @@ async function $79804e8d76404ae4$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5938
5945
|
if (!elements) return rendering_result;
|
|
5939
5946
|
if (!$79804e8d76404ae4$var$slider_styling_was_inserted) {
|
|
5940
5947
|
$79804e8d76404ae4$var$slider_styling_was_inserted = true;
|
|
5941
|
-
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
5948
|
+
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($98b42e2bc60f50eb$exports))));
|
|
5942
5949
|
}
|
|
5943
5950
|
insertion_point.replaceWith(slider.container);
|
|
5944
5951
|
slider.insert_here.append(...elements);
|
|
@@ -6931,6 +6938,7 @@ $parcel$export($0c9d834f187cc4ff$exports, "url_transaction_id_extractor", () =>
|
|
|
6931
6938
|
|
|
6932
6939
|
|
|
6933
6940
|
|
|
6941
|
+
|
|
6934
6942
|
function $0c9d834f187cc4ff$export$3ebd86018b39d9d2(t, selector, filter) {
|
|
6935
6943
|
(0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).onexists(selector, (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)((eoe)=>{
|
|
6936
6944
|
(0, $e6c6e7929ea385ae$export$de56f1198d121036)("Order confirmation element showed up!", eoe);
|
|
@@ -6992,7 +7000,7 @@ function $0c9d834f187cc4ff$export$1ac466d53a6636ac(t, input_id, dsid = (0, $e0a8
|
|
|
6992
7000
|
}
|
|
6993
7001
|
]
|
|
6994
7002
|
};
|
|
6995
|
-
(0, $0c84f8e99aac5765$export$cc3b6ddf805f6156)(
|
|
7003
|
+
(0, $0c84f8e99aac5765$export$cc3b6ddf805f6156)((0, $4c6861fbcd3a0611$export$362abebb4b313340) + "/v2/track", payload);
|
|
6996
7004
|
}
|
|
6997
7005
|
|
|
6998
7006
|
|
|
@@ -7061,6 +7069,7 @@ $parcel$export($8594d423459ba80c$exports, "send_product_unavailable_to_depict",
|
|
|
7061
7069
|
|
|
7062
7070
|
|
|
7063
7071
|
|
|
7072
|
+
|
|
7064
7073
|
async function $8594d423459ba80c$export$d63b08f4f29ddba5(t, unavailability_type) {
|
|
7065
7074
|
const product_id = await t.get_product_id();
|
|
7066
7075
|
(0, $e6c6e7929ea385ae$export$de56f1198d121036)(`Notifying Depict that product id: ${product_id} is ${unavailability_type}`);
|
|
@@ -7077,7 +7086,7 @@ async function $8594d423459ba80c$export$d63b08f4f29ddba5(t, unavailability_type)
|
|
|
7077
7086
|
}
|
|
7078
7087
|
]
|
|
7079
7088
|
};
|
|
7080
|
-
(0, $0c84f8e99aac5765$export$cc3b6ddf805f6156)(
|
|
7089
|
+
(0, $0c84f8e99aac5765$export$cc3b6ddf805f6156)((0, $4c6861fbcd3a0611$export$362abebb4b313340) + "/v2/track", payload);
|
|
7081
7090
|
}
|
|
7082
7091
|
|
|
7083
7092
|
|
|
@@ -7819,189 +7828,6 @@ function $13a446968e3581c0$export$c50e1901e8ed0615(callback) {
|
|
|
7819
7828
|
|
|
7820
7829
|
|
|
7821
7830
|
|
|
7822
|
-
var $3edd459240922873$exports = {};
|
|
7823
|
-
|
|
7824
|
-
$parcel$export($3edd459240922873$exports, "react_surface", () => $3edd459240922873$export$bce0bfbc3cdd53e5);
|
|
7825
|
-
|
|
7826
|
-
// // This was removed from NPM for some reason - Daniel
|
|
7827
|
-
// // I modified it to use globalThis as we already have a polyfill for that
|
|
7828
|
-
// // Below is the old project's Readme.MD
|
|
7829
|
-
//# Simple WeakRef polyfill
|
|
7830
|
-
// Polyfils for WeakRef. Supports natively chrome 36, firefox 6, Edge 12, IE 11, Opera 23, Safari 8. With additional polyfills support can go back futher.
|
|
7831
|
-
//
|
|
7832
|
-
// # npm / yarn
|
|
7833
|
-
// Installation
|
|
7834
|
-
// `npm i weakref-polyfill`
|
|
7835
|
-
// `yarn add weakref-polyfill`
|
|
7836
|
-
//
|
|
7837
|
-
// Usage
|
|
7838
|
-
// ```javascript
|
|
7839
|
-
// require('weakref-polyfill');
|
|
7840
|
-
// ```
|
|
7841
|
-
//
|
|
7842
|
-
// ```typescript
|
|
7843
|
-
// import 'weakref-polyfill'
|
|
7844
|
-
// ```
|
|
7845
|
-
//
|
|
7846
|
-
// // this was the package.json:
|
|
7847
|
-
// {
|
|
7848
|
-
// "name": "weakref-pollyfill",
|
|
7849
|
-
// "version": "1.0.0",
|
|
7850
|
-
// "description": "weakref polyfill",
|
|
7851
|
-
// "main": "src/index.js",
|
|
7852
|
-
// "repository": {
|
|
7853
|
-
// "type": "git",
|
|
7854
|
-
// "url": "git+https://github.com/jaenster/weakref-polyfill.git"
|
|
7855
|
-
// },
|
|
7856
|
-
// "files": [
|
|
7857
|
-
// "/src"
|
|
7858
|
-
// ],
|
|
7859
|
-
// "keywords": [
|
|
7860
|
-
// "Polyfill",
|
|
7861
|
-
// "WeakRef",
|
|
7862
|
-
// "WeakMap",
|
|
7863
|
-
// "No dependencies",
|
|
7864
|
-
// "MIT",
|
|
7865
|
-
// "standalone",
|
|
7866
|
-
// "Garbage collector"
|
|
7867
|
-
// ],
|
|
7868
|
-
// "author": "jaenster",
|
|
7869
|
-
// "license": "MIT"
|
|
7870
|
-
// }
|
|
7871
|
-
/**
|
|
7872
|
-
* @description Simple polyfill for WeakRef
|
|
7873
|
-
* @author Jaenster
|
|
7874
|
-
*/ function $15125e3a32315e54$export$3bfe7bc404017560() {
|
|
7875
|
-
// @ts-ignore
|
|
7876
|
-
globalThis.WeakRef ||= function(wm) {
|
|
7877
|
-
function WeakRef(target) {
|
|
7878
|
-
wm.set(this, target);
|
|
7879
|
-
}
|
|
7880
|
-
WeakRef.prototype.deref = function() {
|
|
7881
|
-
return wm.get(this);
|
|
7882
|
-
};
|
|
7883
|
-
return WeakRef;
|
|
7884
|
-
}(new WeakMap());
|
|
7885
|
-
}
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
(0, $15125e3a32315e54$export$3bfe7bc404017560)();
|
|
7893
|
-
class $3edd459240922873$export$bce0bfbc3cdd53e5 {
|
|
7894
|
-
elements_on_page_stash = [];
|
|
7895
|
-
rendered_recs_stash = {};
|
|
7896
|
-
display_stash = {};
|
|
7897
|
-
#get_product_id;
|
|
7898
|
-
#render_recs;
|
|
7899
|
-
#get_recs;
|
|
7900
|
-
#body_el;
|
|
7901
|
-
#insertion_verb;
|
|
7902
|
-
#empty_before_insertion = false;
|
|
7903
|
-
#is_product_page;
|
|
7904
|
-
#no_container_error_handler;
|
|
7905
|
-
async ensure_fetched_recs(product_id) {
|
|
7906
|
-
const { display_stash: display_stash } = this;
|
|
7907
|
-
const already_fetched_recs = await display_stash[product_id];
|
|
7908
|
-
if (!already_fetched_recs) {
|
|
7909
|
-
(0, $e6c6e7929ea385ae$export$de56f1198d121036)("Fetching displays for", product_id);
|
|
7910
|
-
return display_stash[product_id] = this.#get_recs(product_id);
|
|
7911
|
-
}
|
|
7912
|
-
return already_fetched_recs;
|
|
7913
|
-
}
|
|
7914
|
-
async ensure_rendered_and_fetched_recs(product_id) {
|
|
7915
|
-
const { rendered_recs_stash: rendered_recs_stash } = this;
|
|
7916
|
-
const prerendered_recs = (await rendered_recs_stash[product_id])?.deref?.();
|
|
7917
|
-
if (prerendered_recs) return prerendered_recs;
|
|
7918
|
-
let rendered_recs;
|
|
7919
|
-
await (rendered_recs_stash[product_id] = (async ()=>{
|
|
7920
|
-
const recs = await this.ensure_fetched_recs(product_id).catch((0, $548fd58b14b25a52$export$8048b892d651b310));
|
|
7921
|
-
// @ts-ignore
|
|
7922
|
-
rendered_recs = await this.#render_recs(recs, product_id).catch((0, $548fd58b14b25a52$export$8048b892d651b310));
|
|
7923
|
-
return new WeakRef(rendered_recs); // if this line throws the whole thing crashes and burns (it gets stuck, I think). I figured that hoping it doesn't throw is still the best solution tho.
|
|
7924
|
-
})());
|
|
7925
|
-
return rendered_recs;
|
|
7926
|
-
}
|
|
7927
|
-
deduped_ensure_recs_on_page = (0, $41f528c04cc8a8da$export$535946eb77c946dd)((0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(async ()=>{
|
|
7928
|
-
// all erros get caught here and everything gets retried when this is called the next time
|
|
7929
|
-
if (!await this.#is_product_page()) {
|
|
7930
|
-
(0, $e6c6e7929ea385ae$export$de56f1198d121036)("Not a product page, not doing anything");
|
|
7931
|
-
return;
|
|
7932
|
-
}
|
|
7933
|
-
const product_id = await this.#get_product_id();
|
|
7934
|
-
const rendered_recs = await this.ensure_rendered_and_fetched_recs(product_id);
|
|
7935
|
-
const { elements: elements } = rendered_recs;
|
|
7936
|
-
if (elements) {
|
|
7937
|
-
const body = this.#body_el ||= await (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_element("body", 1000);
|
|
7938
|
-
if (body) {
|
|
7939
|
-
let already_on_page = true;
|
|
7940
|
-
for(let i = 0; i < elements.length; i++)if (!body.contains(elements[i])) {
|
|
7941
|
-
already_on_page = false;
|
|
7942
|
-
break;
|
|
7943
|
-
}
|
|
7944
|
-
if (already_on_page) {
|
|
7945
|
-
(0, $e6c6e7929ea385ae$export$de56f1198d121036)("Elements", elements, "are already on page, not reinserting");
|
|
7946
|
-
return;
|
|
7947
|
-
}
|
|
7948
|
-
}
|
|
7949
|
-
// try inserting into container
|
|
7950
|
-
const container = await this.#find_existing_container(this.elements_on_page_stash);
|
|
7951
|
-
if (!container) {
|
|
7952
|
-
if (typeof this.#no_container_error_handler === "function") (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(this.#no_container_error_handler)(this.elements_on_page_stash);
|
|
7953
|
-
else {
|
|
7954
|
-
(0, $548fd58b14b25a52$export$8048b892d651b310)(new Error("Could not find container to insert into"));
|
|
7955
|
-
(0, $e6c6e7929ea385ae$export$de56f1198d121036)(this.elements_on_page_stash);
|
|
7956
|
-
}
|
|
7957
|
-
return;
|
|
7958
|
-
}
|
|
7959
|
-
(0, $e6c6e7929ea385ae$export$de56f1198d121036)("Inserting", elements, "into", container);
|
|
7960
|
-
if (this.#empty_before_insertion) container.innerHTML = "";
|
|
7961
|
-
container[this.#insertion_verb](...elements);
|
|
7962
|
-
(async ()=>{
|
|
7963
|
-
while(true){
|
|
7964
|
-
const navigation = await this.navigation_ipo.promise;
|
|
7965
|
-
if (await this.#get_product_id() != product_id) {
|
|
7966
|
-
(0, $e6c6e7929ea385ae$export$de56f1198d121036)(navigation, "Navigation away from", product_id, "occured, cleaning up", elements);
|
|
7967
|
-
for(let i = 0; i < elements.length; i++)elements[i].remove();
|
|
7968
|
-
return;
|
|
7969
|
-
}
|
|
7970
|
-
}
|
|
7971
|
-
})().catch((0, $548fd58b14b25a52$export$8048b892d651b310));
|
|
7972
|
-
}
|
|
7973
|
-
}));
|
|
7974
|
-
async #find_existing_container(elements_on_page_stash) {
|
|
7975
|
-
for(let i = elements_on_page_stash.length - 1; i > -1; i--){
|
|
7976
|
-
const the_container = elements_on_page_stash[i].deref();
|
|
7977
|
-
if (the_container && (this.#body_el ||= await (0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).wait_for_element("body")).contains(the_container)) return the_container;
|
|
7978
|
-
}
|
|
7979
|
-
}
|
|
7980
|
-
constructor({ navigation_ipo: navigation_ipo , element_ipo: element_ipo , get_product_id: get_product_id , get_recs: get_recs , render_recs: render_recs , insertion_verb: insertion_verb = "append" , is_product_page: is_product_page = ()=>true , empty_before_insertion: empty_before_insertion , no_container_error_handler: no_container_error_handler }){
|
|
7981
|
-
this.navigation_ipo = navigation_ipo;
|
|
7982
|
-
this.element_ipo = element_ipo;
|
|
7983
|
-
this.#get_product_id = get_product_id;
|
|
7984
|
-
this.#render_recs = (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(render_recs);
|
|
7985
|
-
this.#get_recs = (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9)(get_recs);
|
|
7986
|
-
this.#insertion_verb = insertion_verb;
|
|
7987
|
-
this.#is_product_page = is_product_page;
|
|
7988
|
-
this.#no_container_error_handler = no_container_error_handler;
|
|
7989
|
-
if (empty_before_insertion) this.#empty_before_insertion = true;
|
|
7990
|
-
(async ()=>{
|
|
7991
|
-
while(await navigation_ipo.promise, 1)this.deduped_ensure_recs_on_page();
|
|
7992
|
-
})().catch((0, $548fd58b14b25a52$export$8048b892d651b310));
|
|
7993
|
-
(async ()=>{
|
|
7994
|
-
let element;
|
|
7995
|
-
while(element = await element_ipo.promise, 1){
|
|
7996
|
-
if (element) this.elements_on_page_stash.push(new WeakRef(element));
|
|
7997
|
-
else (0, $e6c6e7929ea385ae$export$de56f1198d121036)("Warning: element ipo resolved with falsey value", element);
|
|
7998
|
-
this.deduped_ensure_recs_on_page();
|
|
7999
|
-
}
|
|
8000
|
-
})().catch((0, $548fd58b14b25a52$export$8048b892d651b310));
|
|
8001
|
-
}
|
|
8002
|
-
}
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
7831
|
|
|
8006
7832
|
var $d91a08ea384e6cd4$exports = {};
|
|
8007
7833
|
|
|
@@ -8560,8 +8386,8 @@ var $e587cb3b31b82f43$exports = {};
|
|
|
8560
8386
|
|
|
8561
8387
|
$parcel$export($e587cb3b31b82f43$exports, "Placeholder", () => $e587cb3b31b82f43$export$84712d0562a614b8);
|
|
8562
8388
|
$parcel$export($e587cb3b31b82f43$exports, "ContainedPlaceholderImage", () => $e587cb3b31b82f43$export$d613f5b6d0a331a8);
|
|
8563
|
-
var $
|
|
8564
|
-
$
|
|
8389
|
+
var $b40933d15f93760b$exports = {};
|
|
8390
|
+
$b40933d15f93760b$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
8565
8391
|
|
|
8566
8392
|
|
|
8567
8393
|
|
|
@@ -8570,7 +8396,7 @@ let $e587cb3b31b82f43$var$inserted = false;
|
|
|
8570
8396
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({ width: width , height: height = "1em" , class: extra_classes , style: style = "" , ...attributes })=>{
|
|
8571
8397
|
if (!$e587cb3b31b82f43$var$inserted) {
|
|
8572
8398
|
// Insert styling on first import
|
|
8573
|
-
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
8399
|
+
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($b40933d15f93760b$exports))));
|
|
8574
8400
|
$e587cb3b31b82f43$var$inserted = true;
|
|
8575
8401
|
}
|
|
8576
8402
|
return(// @ts-ignore
|
|
@@ -8817,8 +8643,8 @@ $parcel$export($a656daa2fa8c279a$exports, "ContainedHoverImage", () => $a656daa2
|
|
|
8817
8643
|
var $a312bccd722ac9e4$exports = {};
|
|
8818
8644
|
|
|
8819
8645
|
$parcel$export($a312bccd722ac9e4$exports, "ContainedImage", () => $a312bccd722ac9e4$export$788756b42446dc2d);
|
|
8820
|
-
var $
|
|
8821
|
-
$
|
|
8646
|
+
var $ff8966e9502eb828$exports = {};
|
|
8647
|
+
$ff8966e9502eb828$exports = ".depict_img_cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict_img_filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict_img_comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict_img_mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
8822
8648
|
|
|
8823
8649
|
|
|
8824
8650
|
var $ff973b2032639b5f$exports = {};
|
|
@@ -8986,7 +8812,7 @@ let $a312bccd722ac9e4$var$inserted = false;
|
|
|
8986
8812
|
const $a312bccd722ac9e4$export$788756b42446dc2d = ({ init_with_placeholder: init_with_placeholder , ...options })=>{
|
|
8987
8813
|
if (!$a312bccd722ac9e4$var$inserted) {
|
|
8988
8814
|
// Insert styling on first import
|
|
8989
|
-
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
8815
|
+
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($ff8966e9502eb828$exports))));
|
|
8990
8816
|
$a312bccd722ac9e4$var$inserted = true;
|
|
8991
8817
|
}
|
|
8992
8818
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
|
|
@@ -9062,8 +8888,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
9062
8888
|
}
|
|
9063
8889
|
|
|
9064
8890
|
|
|
9065
|
-
var $
|
|
9066
|
-
$
|
|
8891
|
+
var $9e51291371c564f0$exports = {};
|
|
8892
|
+
$9e51291371c564f0$exports = ".depict .images_container {\n position: relative;\n}\n\n.depict .second_image_container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main_image_container {\n opacity: 0;\n}\n\n.depict .hovering .second_image_container {\n opacity: 1;\n}\n\n";
|
|
9067
8893
|
|
|
9068
8894
|
|
|
9069
8895
|
|
|
@@ -9170,7 +8996,7 @@ function $a656daa2fa8c279a$var$start_checking_for_touch_hover() {
|
|
|
9170
8996
|
let $a656daa2fa8c279a$var$styling_inserted = false;
|
|
9171
8997
|
const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({ second_src: second_src , second_srcset: second_srcset , second_srcset_opts: second_srcset_opts , fade_length_seconds: fade_length_seconds , mobile_touch_hover: mobile_touch_hover , navigation_minimum_ms: navigation_minimum_ms = 100 , ...options })=>{
|
|
9172
8998
|
if (!$a656daa2fa8c279a$var$styling_inserted) {
|
|
9173
|
-
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
8999
|
+
(0, $e4bebbfa0f0b1454$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($9e51291371c564f0$exports))));
|
|
9174
9000
|
$a656daa2fa8c279a$var$styling_inserted = true;
|
|
9175
9001
|
}
|
|
9176
9002
|
const main_image = (0, $a312bccd722ac9e4$export$788756b42446dc2d)({
|
|
@@ -9412,6 +9238,7 @@ function $12c29616944c2fb7$export$f2ca6fc699ca1fb4(props = {}) {
|
|
|
9412
9238
|
}
|
|
9413
9239
|
|
|
9414
9240
|
|
|
9241
|
+
|
|
9415
9242
|
$parcel$exportWildcard(module.exports, $ee1d22bd1fcdd4e1$exports);
|
|
9416
9243
|
$parcel$exportWildcard(module.exports, $eee5951374097b61$exports);
|
|
9417
9244
|
$parcel$exportWildcard(module.exports, $548fd58b14b25a52$exports);
|
|
@@ -9505,7 +9332,6 @@ $parcel$exportWildcard(module.exports, $2fafbbbf345dcde0$exports);
|
|
|
9505
9332
|
$parcel$exportWildcard(module.exports, $13a446968e3581c0$exports);
|
|
9506
9333
|
$parcel$exportWildcard(module.exports, $3f34dc07544c5857$exports);
|
|
9507
9334
|
$parcel$exportWildcard(module.exports, $650b64c1b384c895$exports);
|
|
9508
|
-
$parcel$exportWildcard(module.exports, $3edd459240922873$exports);
|
|
9509
9335
|
$parcel$exportWildcard(module.exports, $3721a5ccba25c247$exports);
|
|
9510
9336
|
$parcel$exportWildcard(module.exports, $d91a08ea384e6cd4$exports);
|
|
9511
9337
|
$parcel$exportWildcard(module.exports, $6d0c26cd36f5eeff$exports);
|
package/dist/module.js
CHANGED
|
@@ -1476,6 +1476,10 @@ var $2d47b009af5bc0a4$exports = {};
|
|
|
1476
1476
|
|
|
1477
1477
|
$parcel$export($2d47b009af5bc0a4$exports, "fetch_recs", () => $2d47b009af5bc0a4$export$1bc0df10745d5412);
|
|
1478
1478
|
$parcel$export($2d47b009af5bc0a4$exports, "fetch_recs_whole_response", () => $2d47b009af5bc0a4$export$d40679eb4cf32f09);
|
|
1479
|
+
const $6c2b49f3f564b0d1$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
|
|
1479
1483
|
var $43683b1103edab15$exports = {};
|
|
1480
1484
|
|
|
1481
1485
|
$parcel$export($43683b1103edab15$exports, "get_depict_id", () => $43683b1103edab15$export$6399bdb2291895e0);
|
|
@@ -1779,6 +1783,7 @@ function $460df8550f9d084d$export$a6db784f019668ba() {
|
|
|
1779
1783
|
|
|
1780
1784
|
|
|
1781
1785
|
|
|
1786
|
+
|
|
1782
1787
|
const $cafa1ff1049985c2$var$c = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9);
|
|
1783
1788
|
const $cafa1ff1049985c2$var$ws_instance = /*@__PURE__*/ $cafa1ff1049985c2$var$c(()=>new (0, $4ce764ddfee055ef$export$1d9c6fddbff3441f)("wss://ws.depict.ai/ws/create-events"))();
|
|
1784
1789
|
const $cafa1ff1049985c2$var$allowed_keys = [
|
|
@@ -1827,7 +1832,7 @@ const $cafa1ff1049985c2$export$608478473a3304a0 = /*@__PURE__*/ $cafa1ff1049985c
|
|
|
1827
1832
|
(0, $649f456f663da9fc$export$de56f1198d121036)("Sending to depict (ws)", payload);
|
|
1828
1833
|
return $cafa1ff1049985c2$export$aa26019042811d4f(payload);
|
|
1829
1834
|
}
|
|
1830
|
-
const url =
|
|
1835
|
+
const url = (0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/create-events";
|
|
1831
1836
|
return $cafa1ff1049985c2$export$cc3b6ddf805f6156(url, payload);
|
|
1832
1837
|
});
|
|
1833
1838
|
const $cafa1ff1049985c2$export$cc3b6ddf805f6156 = /*@__PURE__*/ $cafa1ff1049985c2$var$c((url, payload)=>{
|
|
@@ -2410,6 +2415,7 @@ var $42bbbba8196bd057$exports = {};
|
|
|
2410
2415
|
|
|
2411
2416
|
$parcel$export($42bbbba8196bd057$exports, "make_tracker_send_to_depict", () => $42bbbba8196bd057$export$edfedd0557ca5a2d);
|
|
2412
2417
|
$parcel$export($42bbbba8196bd057$exports, "create_ga_queue", () => $42bbbba8196bd057$export$674d8cd8b6868154);
|
|
2418
|
+
|
|
2413
2419
|
function $42bbbba8196bd057$export$edfedd0557ca5a2d(ga_tracker, append_to_url) {
|
|
2414
2420
|
if (!ga_tracker) return;
|
|
2415
2421
|
// Docs for analytics.js Tasks:
|
|
@@ -2421,7 +2427,7 @@ function $42bbbba8196bd057$export$edfedd0557ca5a2d(ga_tracker, append_to_url) {
|
|
|
2421
2427
|
// console.log('Sent original hit, now sending to depict');
|
|
2422
2428
|
try {
|
|
2423
2429
|
const payLoad = model.get("hitPayload");
|
|
2424
|
-
const path =
|
|
2430
|
+
const path = (0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/collect-ga";
|
|
2425
2431
|
let url = path + "?" + payLoad;
|
|
2426
2432
|
if (append_to_url) url += append_to_url;
|
|
2427
2433
|
const n = navigator;
|
|
@@ -3222,7 +3228,6 @@ async function $2d1ffbfaa1c2d9e3$var$send_sentry_422(response, body, stack) {
|
|
|
3222
3228
|
}
|
|
3223
3229
|
|
|
3224
3230
|
|
|
3225
|
-
|
|
3226
3231
|
async function $2d47b009af5bc0a4$export$1bc0df10745d5412(t, options, headers, get_url = $2d47b009af5bc0a4$var$default_get_fetch_url) {
|
|
3227
3232
|
const res = await $2d47b009af5bc0a4$export$d40679eb4cf32f09(t, options, headers, get_url);
|
|
3228
3233
|
return res?.displays || [];
|
|
@@ -3250,7 +3255,7 @@ async function $2d47b009af5bc0a4$export$d40679eb4cf32f09(t, options, headers, ge
|
|
|
3250
3255
|
.then((r)=>r.json()).catch((e)=>(0, $649f456f663da9fc$export$de56f1198d121036)("fetch_retry threw", e));
|
|
3251
3256
|
}
|
|
3252
3257
|
function $2d47b009af5bc0a4$var$default_get_fetch_url(type) {
|
|
3253
|
-
return `${
|
|
3258
|
+
return `${0, $6c2b49f3f564b0d1$export$362abebb4b313340}/v2/recommend/products/${type}`;
|
|
3254
3259
|
}
|
|
3255
3260
|
function $2d47b009af5bc0a4$var$get_fetch_endpoint_from_options(options) {
|
|
3256
3261
|
if (options["category_id"] !== undefined) return "category";
|
|
@@ -4949,6 +4954,10 @@ $parcel$export($366fff12da348e66$exports, "Depict", () => $366fff12da348e66$expo
|
|
|
4949
4954
|
|
|
4950
4955
|
|
|
4951
4956
|
|
|
4957
|
+
|
|
4958
|
+
|
|
4959
|
+
|
|
4960
|
+
|
|
4952
4961
|
var /**
|
|
4953
4962
|
* @deprecated please use `fetch_retry()` instead
|
|
4954
4963
|
*
|
|
@@ -5007,13 +5016,10 @@ async function $acf11540344875ed$var$send_sentry_422(response, body, stack) {
|
|
|
5007
5016
|
}
|
|
5008
5017
|
|
|
5009
5018
|
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
5019
|
const $366fff12da348e66$var$discountMatcher = /{DISCOUNT{([\s\S]+?)}}/g;
|
|
5014
5020
|
const $366fff12da348e66$var$noDiscountMatcher = /{NODISCOUNT{([\s\S]+?)}}/g;
|
|
5015
|
-
const $366fff12da348e66$var$APICreateEvent =
|
|
5016
|
-
const $366fff12da348e66$var$APIRecommend =
|
|
5021
|
+
const $366fff12da348e66$var$APICreateEvent = (0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/create-events";
|
|
5022
|
+
const $366fff12da348e66$var$APIRecommend = (0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/recommend";
|
|
5017
5023
|
let $366fff12da348e66$var$pageview_sent = false, $366fff12da348e66$var$windows_proof_fetch;
|
|
5018
5024
|
class $366fff12da348e66$export$1a8782481a9af507 {
|
|
5019
5025
|
constructor(settings){
|
|
@@ -5053,7 +5059,7 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
5053
5059
|
if (this.settings.waitForSelectors !== undefined) {
|
|
5054
5060
|
const SLEEP_TIME_MS = 50;
|
|
5055
5061
|
let MAX_RETRY = Math.round(10000 / SLEEP_TIME_MS);
|
|
5056
|
-
|
|
5062
|
+
const tick = setInterval(()=>{
|
|
5057
5063
|
let allLoaded = true;
|
|
5058
5064
|
for (const selector of this.settings.waitForSelectors)if (document.querySelector(selector) == null) {
|
|
5059
5065
|
allLoaded = false;
|
|
@@ -5112,7 +5118,7 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
5112
5118
|
}
|
|
5113
5119
|
createContainer(root, container, prepend = false) {
|
|
5114
5120
|
function htmlToElements(html) {
|
|
5115
|
-
|
|
5121
|
+
const template = document.createElement("template");
|
|
5116
5122
|
template.innerHTML = html;
|
|
5117
5123
|
return template.content.childNodes;
|
|
5118
5124
|
}
|
|
@@ -5151,8 +5157,8 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
5151
5157
|
};
|
|
5152
5158
|
const elementsFromHTML = (html)=>new DOMParser().parseFromString(html, "text/html").body.children;
|
|
5153
5159
|
const getContent = ()=>{
|
|
5154
|
-
|
|
5155
|
-
|
|
5160
|
+
const recsArray = [];
|
|
5161
|
+
const resultingElements = [];
|
|
5156
5162
|
this.data.forEach((item, rec_index)=>{
|
|
5157
5163
|
if (typeof itemPreprocessor === "function") {
|
|
5158
5164
|
item = itemPreprocessor(item, rec_index);
|
|
@@ -5213,8 +5219,8 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
5213
5219
|
if (this.settings.loadHack === true) {
|
|
5214
5220
|
const SLEEP_TIME_MS = 50;
|
|
5215
5221
|
let MAX_RETRY = Math.round(10000 / SLEEP_TIME_MS);
|
|
5216
|
-
|
|
5217
|
-
|
|
5222
|
+
const tick = setInterval(()=>{
|
|
5223
|
+
const r = root();
|
|
5218
5224
|
if (MAX_RETRY === 0) clearInterval(tick);
|
|
5219
5225
|
MAX_RETRY--;
|
|
5220
5226
|
if (r !== null) {
|
|
@@ -5223,13 +5229,13 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
5223
5229
|
}
|
|
5224
5230
|
}, SLEEP_TIME_MS);
|
|
5225
5231
|
} else if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", ()=>{
|
|
5226
|
-
|
|
5232
|
+
const r = root();
|
|
5227
5233
|
r.append(...renderedContent);
|
|
5228
5234
|
}, {
|
|
5229
5235
|
once: true
|
|
5230
5236
|
});
|
|
5231
5237
|
else {
|
|
5232
|
-
|
|
5238
|
+
const r = root();
|
|
5233
5239
|
r.append(...renderedContent);
|
|
5234
5240
|
}
|
|
5235
5241
|
return;
|
|
@@ -5264,8 +5270,8 @@ var $762a881271a51d1b$exports = {};
|
|
|
5264
5270
|
$parcel$export($762a881271a51d1b$exports, "Deprecated_Amazing_Slider", () => $762a881271a51d1b$export$4d41c6499d53639c);
|
|
5265
5271
|
$parcel$export($762a881271a51d1b$exports, "insert_styling_into_slider", () => $762a881271a51d1b$export$f1b8b9fd75ddcab1);
|
|
5266
5272
|
// @ts-ignore
|
|
5267
|
-
var $
|
|
5268
|
-
$
|
|
5273
|
+
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";
|
|
5269
5275
|
|
|
5270
5276
|
|
|
5271
5277
|
|
|
@@ -5308,7 +5314,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
5308
5314
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
5309
5315
|
const style_elem = document.createElement("style");
|
|
5310
5316
|
style_elem.type = "text/css";
|
|
5311
|
-
style_elem.append((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
5317
|
+
style_elem.append((0, (/*@__PURE__*/$parcel$interopDefault($ac3cf338239e4e17$exports))));
|
|
5312
5318
|
slider.container.appendChild(style_elem);
|
|
5313
5319
|
}
|
|
5314
5320
|
|
|
@@ -5899,8 +5905,8 @@ var $30f78542ed78cd31$exports = {};
|
|
|
5899
5905
|
|
|
5900
5906
|
$parcel$export($30f78542ed78cd31$exports, "RecommendationSlider", () => $30f78542ed78cd31$export$82cfdc85a4d15688);
|
|
5901
5907
|
// @ts-ignore
|
|
5902
|
-
var $
|
|
5903
|
-
$
|
|
5908
|
+
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";
|
|
5904
5910
|
|
|
5905
5911
|
|
|
5906
5912
|
|
|
@@ -5919,7 +5925,7 @@ async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5919
5925
|
if (!elements) return rendering_result;
|
|
5920
5926
|
if (!$30f78542ed78cd31$var$slider_styling_was_inserted) {
|
|
5921
5927
|
$30f78542ed78cd31$var$slider_styling_was_inserted = true;
|
|
5922
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
5928
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($218c5c21f160bf78$exports))));
|
|
5923
5929
|
}
|
|
5924
5930
|
insertion_point.replaceWith(slider.container);
|
|
5925
5931
|
slider.insert_here.append(...elements);
|
|
@@ -6912,6 +6918,7 @@ $parcel$export($847e4a06ea6767c0$exports, "url_transaction_id_extractor", () =>
|
|
|
6912
6918
|
|
|
6913
6919
|
|
|
6914
6920
|
|
|
6921
|
+
|
|
6915
6922
|
function $847e4a06ea6767c0$export$3ebd86018b39d9d2(t, selector, filter) {
|
|
6916
6923
|
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(selector, (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((eoe)=>{
|
|
6917
6924
|
(0, $649f456f663da9fc$export$de56f1198d121036)("Order confirmation element showed up!", eoe);
|
|
@@ -6973,7 +6980,7 @@ function $847e4a06ea6767c0$export$1ac466d53a6636ac(t, input_id, dsid = (0, $4368
|
|
|
6973
6980
|
}
|
|
6974
6981
|
]
|
|
6975
6982
|
};
|
|
6976
|
-
(0, $cafa1ff1049985c2$export$cc3b6ddf805f6156)(
|
|
6983
|
+
(0, $cafa1ff1049985c2$export$cc3b6ddf805f6156)((0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/v2/track", payload);
|
|
6977
6984
|
}
|
|
6978
6985
|
|
|
6979
6986
|
|
|
@@ -7042,6 +7049,7 @@ $parcel$export($54793663e06a1437$exports, "send_product_unavailable_to_depict",
|
|
|
7042
7049
|
|
|
7043
7050
|
|
|
7044
7051
|
|
|
7052
|
+
|
|
7045
7053
|
async function $54793663e06a1437$export$d63b08f4f29ddba5(t, unavailability_type) {
|
|
7046
7054
|
const product_id = await t.get_product_id();
|
|
7047
7055
|
(0, $649f456f663da9fc$export$de56f1198d121036)(`Notifying Depict that product id: ${product_id} is ${unavailability_type}`);
|
|
@@ -7058,7 +7066,7 @@ async function $54793663e06a1437$export$d63b08f4f29ddba5(t, unavailability_type)
|
|
|
7058
7066
|
}
|
|
7059
7067
|
]
|
|
7060
7068
|
};
|
|
7061
|
-
(0, $cafa1ff1049985c2$export$cc3b6ddf805f6156)(
|
|
7069
|
+
(0, $cafa1ff1049985c2$export$cc3b6ddf805f6156)((0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/v2/track", payload);
|
|
7062
7070
|
}
|
|
7063
7071
|
|
|
7064
7072
|
|
|
@@ -7800,189 +7808,6 @@ function $9e268c1aeeb86b34$export$c50e1901e8ed0615(callback) {
|
|
|
7800
7808
|
|
|
7801
7809
|
|
|
7802
7810
|
|
|
7803
|
-
var $2933918ac5d54182$exports = {};
|
|
7804
|
-
|
|
7805
|
-
$parcel$export($2933918ac5d54182$exports, "react_surface", () => $2933918ac5d54182$export$bce0bfbc3cdd53e5);
|
|
7806
|
-
|
|
7807
|
-
// // This was removed from NPM for some reason - Daniel
|
|
7808
|
-
// // I modified it to use globalThis as we already have a polyfill for that
|
|
7809
|
-
// // Below is the old project's Readme.MD
|
|
7810
|
-
//# Simple WeakRef polyfill
|
|
7811
|
-
// Polyfils for WeakRef. Supports natively chrome 36, firefox 6, Edge 12, IE 11, Opera 23, Safari 8. With additional polyfills support can go back futher.
|
|
7812
|
-
//
|
|
7813
|
-
// # npm / yarn
|
|
7814
|
-
// Installation
|
|
7815
|
-
// `npm i weakref-polyfill`
|
|
7816
|
-
// `yarn add weakref-polyfill`
|
|
7817
|
-
//
|
|
7818
|
-
// Usage
|
|
7819
|
-
// ```javascript
|
|
7820
|
-
// require('weakref-polyfill');
|
|
7821
|
-
// ```
|
|
7822
|
-
//
|
|
7823
|
-
// ```typescript
|
|
7824
|
-
// import 'weakref-polyfill'
|
|
7825
|
-
// ```
|
|
7826
|
-
//
|
|
7827
|
-
// // this was the package.json:
|
|
7828
|
-
// {
|
|
7829
|
-
// "name": "weakref-pollyfill",
|
|
7830
|
-
// "version": "1.0.0",
|
|
7831
|
-
// "description": "weakref polyfill",
|
|
7832
|
-
// "main": "src/index.js",
|
|
7833
|
-
// "repository": {
|
|
7834
|
-
// "type": "git",
|
|
7835
|
-
// "url": "git+https://github.com/jaenster/weakref-polyfill.git"
|
|
7836
|
-
// },
|
|
7837
|
-
// "files": [
|
|
7838
|
-
// "/src"
|
|
7839
|
-
// ],
|
|
7840
|
-
// "keywords": [
|
|
7841
|
-
// "Polyfill",
|
|
7842
|
-
// "WeakRef",
|
|
7843
|
-
// "WeakMap",
|
|
7844
|
-
// "No dependencies",
|
|
7845
|
-
// "MIT",
|
|
7846
|
-
// "standalone",
|
|
7847
|
-
// "Garbage collector"
|
|
7848
|
-
// ],
|
|
7849
|
-
// "author": "jaenster",
|
|
7850
|
-
// "license": "MIT"
|
|
7851
|
-
// }
|
|
7852
|
-
/**
|
|
7853
|
-
* @description Simple polyfill for WeakRef
|
|
7854
|
-
* @author Jaenster
|
|
7855
|
-
*/ function $8c1489287d1dc764$export$3bfe7bc404017560() {
|
|
7856
|
-
// @ts-ignore
|
|
7857
|
-
globalThis.WeakRef ||= function(wm) {
|
|
7858
|
-
function WeakRef(target) {
|
|
7859
|
-
wm.set(this, target);
|
|
7860
|
-
}
|
|
7861
|
-
WeakRef.prototype.deref = function() {
|
|
7862
|
-
return wm.get(this);
|
|
7863
|
-
};
|
|
7864
|
-
return WeakRef;
|
|
7865
|
-
}(new WeakMap());
|
|
7866
|
-
}
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
(0, $8c1489287d1dc764$export$3bfe7bc404017560)();
|
|
7874
|
-
class $2933918ac5d54182$export$bce0bfbc3cdd53e5 {
|
|
7875
|
-
elements_on_page_stash = [];
|
|
7876
|
-
rendered_recs_stash = {};
|
|
7877
|
-
display_stash = {};
|
|
7878
|
-
#get_product_id;
|
|
7879
|
-
#render_recs;
|
|
7880
|
-
#get_recs;
|
|
7881
|
-
#body_el;
|
|
7882
|
-
#insertion_verb;
|
|
7883
|
-
#empty_before_insertion = false;
|
|
7884
|
-
#is_product_page;
|
|
7885
|
-
#no_container_error_handler;
|
|
7886
|
-
async ensure_fetched_recs(product_id) {
|
|
7887
|
-
const { display_stash: display_stash } = this;
|
|
7888
|
-
const already_fetched_recs = await display_stash[product_id];
|
|
7889
|
-
if (!already_fetched_recs) {
|
|
7890
|
-
(0, $649f456f663da9fc$export$de56f1198d121036)("Fetching displays for", product_id);
|
|
7891
|
-
return display_stash[product_id] = this.#get_recs(product_id);
|
|
7892
|
-
}
|
|
7893
|
-
return already_fetched_recs;
|
|
7894
|
-
}
|
|
7895
|
-
async ensure_rendered_and_fetched_recs(product_id) {
|
|
7896
|
-
const { rendered_recs_stash: rendered_recs_stash } = this;
|
|
7897
|
-
const prerendered_recs = (await rendered_recs_stash[product_id])?.deref?.();
|
|
7898
|
-
if (prerendered_recs) return prerendered_recs;
|
|
7899
|
-
let rendered_recs;
|
|
7900
|
-
await (rendered_recs_stash[product_id] = (async ()=>{
|
|
7901
|
-
const recs = await this.ensure_fetched_recs(product_id).catch((0, $7547e32486a3abc0$export$8048b892d651b310));
|
|
7902
|
-
// @ts-ignore
|
|
7903
|
-
rendered_recs = await this.#render_recs(recs, product_id).catch((0, $7547e32486a3abc0$export$8048b892d651b310));
|
|
7904
|
-
return new WeakRef(rendered_recs); // if this line throws the whole thing crashes and burns (it gets stuck, I think). I figured that hoping it doesn't throw is still the best solution tho.
|
|
7905
|
-
})());
|
|
7906
|
-
return rendered_recs;
|
|
7907
|
-
}
|
|
7908
|
-
deduped_ensure_recs_on_page = (0, $511123bb28a7b6f7$export$535946eb77c946dd)((0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async ()=>{
|
|
7909
|
-
// all erros get caught here and everything gets retried when this is called the next time
|
|
7910
|
-
if (!await this.#is_product_page()) {
|
|
7911
|
-
(0, $649f456f663da9fc$export$de56f1198d121036)("Not a product page, not doing anything");
|
|
7912
|
-
return;
|
|
7913
|
-
}
|
|
7914
|
-
const product_id = await this.#get_product_id();
|
|
7915
|
-
const rendered_recs = await this.ensure_rendered_and_fetched_recs(product_id);
|
|
7916
|
-
const { elements: elements } = rendered_recs;
|
|
7917
|
-
if (elements) {
|
|
7918
|
-
const body = this.#body_el ||= await (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).wait_for_element("body", 1000);
|
|
7919
|
-
if (body) {
|
|
7920
|
-
let already_on_page = true;
|
|
7921
|
-
for(let i = 0; i < elements.length; i++)if (!body.contains(elements[i])) {
|
|
7922
|
-
already_on_page = false;
|
|
7923
|
-
break;
|
|
7924
|
-
}
|
|
7925
|
-
if (already_on_page) {
|
|
7926
|
-
(0, $649f456f663da9fc$export$de56f1198d121036)("Elements", elements, "are already on page, not reinserting");
|
|
7927
|
-
return;
|
|
7928
|
-
}
|
|
7929
|
-
}
|
|
7930
|
-
// try inserting into container
|
|
7931
|
-
const container = await this.#find_existing_container(this.elements_on_page_stash);
|
|
7932
|
-
if (!container) {
|
|
7933
|
-
if (typeof this.#no_container_error_handler === "function") (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(this.#no_container_error_handler)(this.elements_on_page_stash);
|
|
7934
|
-
else {
|
|
7935
|
-
(0, $7547e32486a3abc0$export$8048b892d651b310)(new Error("Could not find container to insert into"));
|
|
7936
|
-
(0, $649f456f663da9fc$export$de56f1198d121036)(this.elements_on_page_stash);
|
|
7937
|
-
}
|
|
7938
|
-
return;
|
|
7939
|
-
}
|
|
7940
|
-
(0, $649f456f663da9fc$export$de56f1198d121036)("Inserting", elements, "into", container);
|
|
7941
|
-
if (this.#empty_before_insertion) container.innerHTML = "";
|
|
7942
|
-
container[this.#insertion_verb](...elements);
|
|
7943
|
-
(async ()=>{
|
|
7944
|
-
while(true){
|
|
7945
|
-
const navigation = await this.navigation_ipo.promise;
|
|
7946
|
-
if (await this.#get_product_id() != product_id) {
|
|
7947
|
-
(0, $649f456f663da9fc$export$de56f1198d121036)(navigation, "Navigation away from", product_id, "occured, cleaning up", elements);
|
|
7948
|
-
for(let i = 0; i < elements.length; i++)elements[i].remove();
|
|
7949
|
-
return;
|
|
7950
|
-
}
|
|
7951
|
-
}
|
|
7952
|
-
})().catch((0, $7547e32486a3abc0$export$8048b892d651b310));
|
|
7953
|
-
}
|
|
7954
|
-
}));
|
|
7955
|
-
async #find_existing_container(elements_on_page_stash) {
|
|
7956
|
-
for(let i = elements_on_page_stash.length - 1; i > -1; i--){
|
|
7957
|
-
const the_container = elements_on_page_stash[i].deref();
|
|
7958
|
-
if (the_container && (this.#body_el ||= await (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).wait_for_element("body")).contains(the_container)) return the_container;
|
|
7959
|
-
}
|
|
7960
|
-
}
|
|
7961
|
-
constructor({ navigation_ipo: navigation_ipo , element_ipo: element_ipo , get_product_id: get_product_id , get_recs: get_recs , render_recs: render_recs , insertion_verb: insertion_verb = "append" , is_product_page: is_product_page = ()=>true , empty_before_insertion: empty_before_insertion , no_container_error_handler: no_container_error_handler }){
|
|
7962
|
-
this.navigation_ipo = navigation_ipo;
|
|
7963
|
-
this.element_ipo = element_ipo;
|
|
7964
|
-
this.#get_product_id = get_product_id;
|
|
7965
|
-
this.#render_recs = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(render_recs);
|
|
7966
|
-
this.#get_recs = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(get_recs);
|
|
7967
|
-
this.#insertion_verb = insertion_verb;
|
|
7968
|
-
this.#is_product_page = is_product_page;
|
|
7969
|
-
this.#no_container_error_handler = no_container_error_handler;
|
|
7970
|
-
if (empty_before_insertion) this.#empty_before_insertion = true;
|
|
7971
|
-
(async ()=>{
|
|
7972
|
-
while(await navigation_ipo.promise, 1)this.deduped_ensure_recs_on_page();
|
|
7973
|
-
})().catch((0, $7547e32486a3abc0$export$8048b892d651b310));
|
|
7974
|
-
(async ()=>{
|
|
7975
|
-
let element;
|
|
7976
|
-
while(element = await element_ipo.promise, 1){
|
|
7977
|
-
if (element) this.elements_on_page_stash.push(new WeakRef(element));
|
|
7978
|
-
else (0, $649f456f663da9fc$export$de56f1198d121036)("Warning: element ipo resolved with falsey value", element);
|
|
7979
|
-
this.deduped_ensure_recs_on_page();
|
|
7980
|
-
}
|
|
7981
|
-
})().catch((0, $7547e32486a3abc0$export$8048b892d651b310));
|
|
7982
|
-
}
|
|
7983
|
-
}
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
7811
|
|
|
7987
7812
|
var $a79c7168700020ff$exports = {};
|
|
7988
7813
|
|
|
@@ -8541,8 +8366,8 @@ var $ad592d9ddbcffe72$exports = {};
|
|
|
8541
8366
|
|
|
8542
8367
|
$parcel$export($ad592d9ddbcffe72$exports, "Placeholder", () => $ad592d9ddbcffe72$export$84712d0562a614b8);
|
|
8543
8368
|
$parcel$export($ad592d9ddbcffe72$exports, "ContainedPlaceholderImage", () => $ad592d9ddbcffe72$export$d613f5b6d0a331a8);
|
|
8544
|
-
var $
|
|
8545
|
-
$
|
|
8369
|
+
var $153a04fa1a9b02c6$exports = {};
|
|
8370
|
+
$153a04fa1a9b02c6$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
8546
8371
|
|
|
8547
8372
|
|
|
8548
8373
|
|
|
@@ -8551,7 +8376,7 @@ let $ad592d9ddbcffe72$var$inserted = false;
|
|
|
8551
8376
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({ width: width , height: height = "1em" , class: extra_classes , style: style = "" , ...attributes })=>{
|
|
8552
8377
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
8553
8378
|
// Insert styling on first import
|
|
8554
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
8379
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($153a04fa1a9b02c6$exports))));
|
|
8555
8380
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
8556
8381
|
}
|
|
8557
8382
|
return(// @ts-ignore
|
|
@@ -8798,8 +8623,8 @@ $parcel$export($8483d1d9fcee52ec$exports, "ContainedHoverImage", () => $8483d1d9
|
|
|
8798
8623
|
var $914971fb43986a16$exports = {};
|
|
8799
8624
|
|
|
8800
8625
|
$parcel$export($914971fb43986a16$exports, "ContainedImage", () => $914971fb43986a16$export$788756b42446dc2d);
|
|
8801
|
-
var $
|
|
8802
|
-
$
|
|
8626
|
+
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";
|
|
8803
8628
|
|
|
8804
8629
|
|
|
8805
8630
|
var $45af9e834781a9bc$exports = {};
|
|
@@ -8967,7 +8792,7 @@ let $914971fb43986a16$var$inserted = false;
|
|
|
8967
8792
|
const $914971fb43986a16$export$788756b42446dc2d = ({ init_with_placeholder: init_with_placeholder , ...options })=>{
|
|
8968
8793
|
if (!$914971fb43986a16$var$inserted) {
|
|
8969
8794
|
// Insert styling on first import
|
|
8970
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
8795
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($0f5d218f8055f715$exports))));
|
|
8971
8796
|
$914971fb43986a16$var$inserted = true;
|
|
8972
8797
|
}
|
|
8973
8798
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -9043,8 +8868,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
9043
8868
|
}
|
|
9044
8869
|
|
|
9045
8870
|
|
|
9046
|
-
var $
|
|
9047
|
-
$
|
|
8871
|
+
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";
|
|
9048
8873
|
|
|
9049
8874
|
|
|
9050
8875
|
|
|
@@ -9151,7 +8976,7 @@ function $8483d1d9fcee52ec$var$start_checking_for_touch_hover() {
|
|
|
9151
8976
|
let $8483d1d9fcee52ec$var$styling_inserted = false;
|
|
9152
8977
|
const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({ second_src: second_src , second_srcset: second_srcset , second_srcset_opts: second_srcset_opts , fade_length_seconds: fade_length_seconds , mobile_touch_hover: mobile_touch_hover , navigation_minimum_ms: navigation_minimum_ms = 100 , ...options })=>{
|
|
9153
8978
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
9154
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
8979
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($6261de93c2135467$exports))));
|
|
9155
8980
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
9156
8981
|
}
|
|
9157
8982
|
const main_image = (0, $914971fb43986a16$export$788756b42446dc2d)({
|
|
@@ -9395,4 +9220,5 @@ function $f5ca01afd4680bdd$export$f2ca6fc699ca1fb4(props = {}) {
|
|
|
9395
9220
|
|
|
9396
9221
|
|
|
9397
9222
|
|
|
9398
|
-
export {$51bbc74e39f5e5c6$export$2e2bcd8739ae039 as simplified_template_tool, $acf11540344875ed$export$2e2bcd8739ae039 as wpff, $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, $2933918ac5d54182$export$bce0bfbc3cdd53e5 as react_surface, $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};
|
|
9223
|
+
|
|
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};
|
package/jsx.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare namespace JSX {
|
|
|
23
23
|
type EventHandlerUnion<T, E extends Event> = EventHandler<T, E>;
|
|
24
24
|
|
|
25
25
|
interface DOMAttributes<T> {
|
|
26
|
-
children?: Element
|
|
26
|
+
children?: Element;
|
|
27
27
|
innerHTML?: string;
|
|
28
28
|
innerText?: string | number;
|
|
29
29
|
textContent?: string | number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/utilishared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@babel/core": "latest",
|
|
36
36
|
"@babel/runtime": "latest",
|
|
37
37
|
"@babel/runtime-corejs3": "latest",
|
|
38
|
+
"@depict-ai/types": "^0.0.1",
|
|
38
39
|
"@parcel/resolver-default": "^2.8.0",
|
|
39
40
|
"@sentry/cli": "latest",
|
|
40
41
|
"@sentry/types": "^7.13.0",
|
package/tsconfig.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare namespace NodeJS {
|
|
|
13
13
|
type ConsentLevel = "marketing" | "necessary" | "preferences" | "statistics";
|
|
14
14
|
|
|
15
15
|
interface ProcessEnv {
|
|
16
|
-
/** base URL of the API,
|
|
16
|
+
/** base URL of the API, defaults to `https://api.depict.ai`. Use if testing against a different api */
|
|
17
17
|
readonly BASE_URL: string;
|
|
18
18
|
|
|
19
19
|
readonly DEBUG: "true" | "false";
|