@depict-ai/utilishared 1.0.26 → 1.0.28
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 +6 -1
- package/dist/main.cjs +217 -218
- package/dist/module.js +217 -219
- package/package.json +2 -2
package/dist/module.js
CHANGED
|
@@ -6,7 +6,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
6
6
|
function $parcel$interopDefault(a) {
|
|
7
7
|
return a && a.__esModule ? a.default : a;
|
|
8
8
|
}
|
|
9
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "1.0.
|
|
9
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "1.0.28";
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/ (()=>process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
@@ -276,7 +276,7 @@ function $607fc90221d440a6$var$on_async_iterator_next_called(async_iterable, bef
|
|
|
276
276
|
return new Proxy(target[property], {
|
|
277
277
|
apply (target, this_arg, arg_list) {
|
|
278
278
|
const iterator = target.apply(this_arg, arg_list);
|
|
279
|
-
const { return: return_fn
|
|
279
|
+
const { return: return_fn } = iterator;
|
|
280
280
|
if (return_fn) set_stock_return_function?.(return_fn);
|
|
281
281
|
return new Proxy(iterator, {
|
|
282
282
|
get (inner_target, inner_property) {
|
|
@@ -315,7 +315,7 @@ function $7547e32486a3abc0$export$8048b892d651b310(exception, error_for_stack) {
|
|
|
315
315
|
(0, $649f456f663da9fc$export$de56f1198d121036)(exception);
|
|
316
316
|
if (0, $571bce04eb920cd8$export$55fe61489d2c7417) /* eslint-disable no-console */ console.trace();
|
|
317
317
|
if (process.env.BUILD_TARGET !== "node") {
|
|
318
|
-
const { stack: stack
|
|
318
|
+
const { stack: stack } = error_for_stack instanceof Error ? error_for_stack : new Error();
|
|
319
319
|
const msg_is_error = exception instanceof Error;
|
|
320
320
|
(0, $eba382943196079c$export$af2e17a20c2ea3c5).withScope(function(scope) {
|
|
321
321
|
if (msg_is_error) scope.setExtra("primary_stack", exception.stack);
|
|
@@ -508,7 +508,7 @@ function $a035d75d336cf506$export$2e2bcd8739ae039(TENANT, more_options, dlog, ex
|
|
|
508
508
|
for(const fn in function_backlog){
|
|
509
509
|
const backlog_for_fn = function_backlog[fn];
|
|
510
510
|
backlog_for_fn.forEach((backlog_obj, index)=>{
|
|
511
|
-
const { args: args
|
|
511
|
+
const { args: args, resolve: resolve } = backlog_obj;
|
|
512
512
|
try {
|
|
513
513
|
sentry.run((current_hub)=>{
|
|
514
514
|
if (typeof current_hub[fn] == "function") {
|
|
@@ -544,7 +544,7 @@ async function $a035d75d336cf506$var$load_sentry(TENANT, more_options = {}, extr
|
|
|
544
544
|
script.src = extra_sentry_url || "https://cdn.depict.ai/lazy_sentry/depict-ai.js";
|
|
545
545
|
document.head.appendChild(script);
|
|
546
546
|
const global_var_name = "_depict_ai_sentry";
|
|
547
|
-
const { BrowserClient: BrowserClient
|
|
547
|
+
const { BrowserClient: BrowserClient, Hub: Hub, defaultIntegrations: defaultIntegrations } = await (0, $d0e7629fb3179e02$export$2fc1a072736ae2f6)(window, global_var_name);
|
|
548
548
|
delete window[global_var_name];
|
|
549
549
|
if (process.env.SENTRY_SAMPLE_RATE) {
|
|
550
550
|
const sample_rate = parseFloat(process.env.SENTRY_SAMPLE_RATE);
|
|
@@ -837,7 +837,7 @@ class $4ce764ddfee055ef$export$1b28bc5c68cc4d77 extends EventTarget {
|
|
|
837
837
|
url,
|
|
838
838
|
protocols
|
|
839
839
|
];
|
|
840
|
-
const { max_backoff_ms: max_backoff_ms
|
|
840
|
+
const { max_backoff_ms: max_backoff_ms } = options;
|
|
841
841
|
if (max_backoff_ms) this.#max_backoff_ms = max_backoff_ms;
|
|
842
842
|
this.#setup_dot_on_event_support();
|
|
843
843
|
this.#connect();
|
|
@@ -874,14 +874,14 @@ class $4ce764ddfee055ef$export$1d9c6fddbff3441f extends $4ce764ddfee055ef$export
|
|
|
874
874
|
this.restart_ws(reason);
|
|
875
875
|
}
|
|
876
876
|
});
|
|
877
|
-
#periodic_send(
|
|
877
|
+
#periodic_send(msg) {
|
|
878
878
|
let delay_to_next_send = this.#initial_retry_ms;
|
|
879
879
|
let quit = false;
|
|
880
880
|
this.#messages_queued++;
|
|
881
881
|
(async ()=>{
|
|
882
882
|
while(!quit){
|
|
883
883
|
this.#start_reconnection_if_offline_process();
|
|
884
|
-
await this.#wait_for_open_and_send(
|
|
884
|
+
await this.#wait_for_open_and_send(msg);
|
|
885
885
|
const waited = await new Promise((r)=>{
|
|
886
886
|
const handler = ()=>{
|
|
887
887
|
r(false);
|
|
@@ -913,7 +913,7 @@ class $4ce764ddfee055ef$export$1d9c6fddbff3441f extends $4ce764ddfee055ef$export
|
|
|
913
913
|
const json_payload = JSON.stringify(payload);
|
|
914
914
|
const stop_sending = this.#periodic_send(json_payload);
|
|
915
915
|
while(true){
|
|
916
|
-
const { data: data
|
|
916
|
+
const { data: data } = await this.#msg_ipns.promise;
|
|
917
917
|
let reply;
|
|
918
918
|
try {
|
|
919
919
|
reply = JSON.parse(data);
|
|
@@ -929,7 +929,7 @@ class $4ce764ddfee055ef$export$1d9c6fddbff3441f extends $4ce764ddfee055ef$export
|
|
|
929
929
|
continue;
|
|
930
930
|
}
|
|
931
931
|
if (reply.id == payload.id) {
|
|
932
|
-
const { status: status
|
|
932
|
+
const { status: status } = reply;
|
|
933
933
|
if (status == "ack") {
|
|
934
934
|
stop_sending();
|
|
935
935
|
continue;
|
|
@@ -1082,6 +1082,7 @@ const $cafa1ff1049985c2$export$28cacbd9b4306ffc = /*@__PURE__*/ $cafa1ff1049985c
|
|
|
1082
1082
|
|
|
1083
1083
|
|
|
1084
1084
|
|
|
1085
|
+
|
|
1085
1086
|
let $43683b1103edab15$export$6399bdb2291895e0 = ()=>{
|
|
1086
1087
|
if (typeof document === "undefined") return "server";
|
|
1087
1088
|
let id = "";
|
|
@@ -1090,7 +1091,7 @@ let $43683b1103edab15$export$6399bdb2291895e0 = ()=>{
|
|
|
1090
1091
|
try {
|
|
1091
1092
|
id = localStorage._dep_id ||= (0, $460df8550f9d084d$export$656831b7e9c341c3)();
|
|
1092
1093
|
} catch (e) {
|
|
1093
|
-
(0, $
|
|
1094
|
+
(0, $649f456f663da9fc$export$de56f1198d121036)("Can't use localStorage", e);
|
|
1094
1095
|
localstorage_error = e;
|
|
1095
1096
|
}
|
|
1096
1097
|
if (!id) {
|
|
@@ -1212,7 +1213,6 @@ function $f809bc98a1cb5f92$export$6f051469dd676a8b(tenant, market, type) {
|
|
|
1212
1213
|
}
|
|
1213
1214
|
|
|
1214
1215
|
|
|
1215
|
-
|
|
1216
1216
|
/**
|
|
1217
1217
|
* @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
|
|
1218
1218
|
*/ function $a1c80794e6bf4cc2$export$6e7454c733fa1fb2(fn, ...args) {
|
|
@@ -1227,7 +1227,7 @@ function $f809bc98a1cb5f92$export$6f051469dd676a8b(tenant, market, type) {
|
|
|
1227
1227
|
|
|
1228
1228
|
|
|
1229
1229
|
|
|
1230
|
-
const $66b898e9bfcef532$export$8582cf3716962dc2 = /*@__PURE__*/ (0, /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async ({ recs: recs
|
|
1230
|
+
const $66b898e9bfcef532$export$8582cf3716962dc2 = /*@__PURE__*/ (0, /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async ({ recs: recs, min_recs: min_recs, market: market, type: type, product_id: product_id, tenant: tenant })=>{
|
|
1231
1231
|
if (type == "placeholder") return;
|
|
1232
1232
|
if (typeof product_id === "function") product_id = product_id();
|
|
1233
1233
|
product_id = await product_id;
|
|
@@ -1308,7 +1308,7 @@ function $8be08add28592faf$var$deduplicate_and_dispatch() {
|
|
|
1308
1308
|
for (const [eoe, callback] of $8be08add28592faf$var$queued_callbacks){
|
|
1309
1309
|
// put events into structure of maps and sets where they can only exist once
|
|
1310
1310
|
$8be08add28592faf$var$queued_callbacks.delete(eoe);
|
|
1311
|
-
const { event: event_name
|
|
1311
|
+
const { event: event_name, selector: selector, element: element } = eoe;
|
|
1312
1312
|
if (!event_name) {
|
|
1313
1313
|
// it's an ifexists callback, doesnt' need deduplication
|
|
1314
1314
|
$8be08add28592faf$var$call_callback(callback, eoe);
|
|
@@ -1415,7 +1415,7 @@ class $cdca9fea6eb103e5$export$12e07a2a9f87578a {
|
|
|
1415
1415
|
this.#check_observer_args(listener, ()=>{}, false);
|
|
1416
1416
|
// console.log("waiting for listener", listener, "selector", selector, "timeout", timeout);
|
|
1417
1417
|
return new Promise((0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((r)=>{
|
|
1418
|
-
const stop_observing = this.#self_proxied["on" + listener](selector, ({ element: element
|
|
1418
|
+
const stop_observing = this.#self_proxied["on" + listener](selector, ({ element: element, disconnector: disconnector })=>{
|
|
1419
1419
|
r(element);
|
|
1420
1420
|
disconnector();
|
|
1421
1421
|
if (timeout) clearTimeout(obs_timeout);
|
|
@@ -1439,7 +1439,7 @@ class $cdca9fea6eb103e5$export$12e07a2a9f87578a {
|
|
|
1439
1439
|
characterDataOldValue: true
|
|
1440
1440
|
});
|
|
1441
1441
|
}
|
|
1442
|
-
#disconnect_fn({ event_: event_
|
|
1442
|
+
#disconnect_fn({ event_: event_, selector_: selector_, callback_: callback_ }) {
|
|
1443
1443
|
return ()=>{
|
|
1444
1444
|
const fn = ()=>{
|
|
1445
1445
|
const observing = this.#observing;
|
|
@@ -1469,7 +1469,7 @@ class $cdca9fea6eb103e5$export$12e07a2a9f87578a {
|
|
|
1469
1469
|
const attribute_attribution_map_object = this.#attribute_attribution_map_object;
|
|
1470
1470
|
for(let j = 0; j < records.length; j++){
|
|
1471
1471
|
const record = records[j];
|
|
1472
|
-
const { addedNodes: addedNodes
|
|
1472
|
+
const { addedNodes: addedNodes, removedNodes: removedNodes, target: target } = record;
|
|
1473
1473
|
const events_for_discovery = [];
|
|
1474
1474
|
let nodes_to_check;
|
|
1475
1475
|
// code for handling a record containing wanted elements in addedNodes or the children of added nodes and attribute changes that make an existing node match a selector, mainly for oncreation and onexists, but it will fire onchange if someone is listening if an attribute change makes an element match a selector
|
|
@@ -1779,20 +1779,20 @@ class $cdca9fea6eb103e5$export$12e07a2a9f87578a {
|
|
|
1779
1779
|
};
|
|
1780
1780
|
return function_for_listener;
|
|
1781
1781
|
}
|
|
1782
|
-
#cleanup_weakref_when_refd_el_gcd(
|
|
1782
|
+
#cleanup_weakref_when_refd_el_gcd(listener, weakref, element) {
|
|
1783
1783
|
// we don't want to keep references to elements used as "selectors" in oncreation and onremoved
|
|
1784
1784
|
if (!this.#weakref_finalization_registry) return;
|
|
1785
1785
|
this.#weakref_finalization_registry.register(element, [
|
|
1786
|
-
|
|
1786
|
+
listener,
|
|
1787
1787
|
weakref
|
|
1788
1788
|
]);
|
|
1789
1789
|
}
|
|
1790
|
-
#finalization_registry_callback([
|
|
1790
|
+
#finalization_registry_callback([listener, weak_ref]) {
|
|
1791
1791
|
// element was GCd and the callbacks can never be called, remove them
|
|
1792
1792
|
const observing = this.#observing;
|
|
1793
|
-
observing[
|
|
1794
|
-
observing[
|
|
1795
|
-
if (observing[
|
|
1793
|
+
observing[listener]?.get(weak_ref)?.clear(); // just in case something still has a reference to this set and does something with it, clear it
|
|
1794
|
+
observing[listener]?.delete(weak_ref);
|
|
1795
|
+
if (observing[listener]?.size === 0) delete observing[listener];
|
|
1796
1796
|
if (Object.keys(observing).length === 0) {
|
|
1797
1797
|
this.#the_mutation_observer?.disconnect();
|
|
1798
1798
|
this.#the_mutation_observer = undefined;
|
|
@@ -1823,7 +1823,6 @@ class $cdca9fea6eb103e5$export$12e07a2a9f87578a {
|
|
|
1823
1823
|
|
|
1824
1824
|
|
|
1825
1825
|
|
|
1826
|
-
|
|
1827
1826
|
const $0b48ba2f40ce6067$export$b6ae1bc530f4c149 = /*@__PURE__*/ $0b48ba2f40ce6067$var$make_default_observer();
|
|
1828
1827
|
function $0b48ba2f40ce6067$var$make_default_observer() {
|
|
1829
1828
|
try {
|
|
@@ -1876,7 +1875,7 @@ function $0bdb8dbcf1bc7f34$export$d4bd03f19260ef1c(url, also_onchange = false, o
|
|
|
1876
1875
|
const link_sel = "a[href]";
|
|
1877
1876
|
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(link_sel, relativ_callback);
|
|
1878
1877
|
if (also_onchange) (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onchange(link_sel, relativ_callback);
|
|
1879
|
-
if (also_in_all_shadow_roots && typeof ShadowRoot == "function") (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists("*", (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(({ element: element
|
|
1878
|
+
if (also_in_all_shadow_roots && typeof ShadowRoot == "function") (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists("*", (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(({ element: element })=>{
|
|
1880
1879
|
if (element?.shadowRoot instanceof ShadowRoot) {
|
|
1881
1880
|
const local_observer = new (0, $cdca9fea6eb103e5$export$12e07a2a9f87578a)({
|
|
1882
1881
|
territory: element.shadowRoot
|
|
@@ -1980,7 +1979,7 @@ async function $61b3c9e5f2cf8171$export$8f66c4c7fb96eda2(e, product_id) {
|
|
|
1980
1979
|
const got_wanted_event = await (0, $bb3252f70898acd6$export$947a20746936143d)([
|
|
1981
1980
|
new Promise((resolve)=>{
|
|
1982
1981
|
bc.addEventListener("message", (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((msg)=>{
|
|
1983
|
-
const { data: data
|
|
1982
|
+
const { data: data } = msg;
|
|
1984
1983
|
(0, $649f456f663da9fc$export$de56f1198d121036)("Recieved broadcast channel event", data, msg);
|
|
1985
1984
|
if (data == product_id) resolve(true);
|
|
1986
1985
|
}));
|
|
@@ -2060,7 +2059,7 @@ const $f24c14db771b471d$export$4c51576248bcdf31 = (element, callback)=>{
|
|
|
2060
2059
|
};
|
|
2061
2060
|
const $f24c14db771b471d$var$intersection_observer_callback = (entries)=>{
|
|
2062
2061
|
for (const record of entries){
|
|
2063
|
-
const { target: target
|
|
2062
|
+
const { target: target } = record;
|
|
2064
2063
|
const callback = $f24c14db771b471d$var$watched_elements.get(target);
|
|
2065
2064
|
// Skip the element if it's no longer being watched.
|
|
2066
2065
|
if (!callback) {
|
|
@@ -2079,7 +2078,7 @@ const $f24c14db771b471d$var$intersection_observer_callback = (entries)=>{
|
|
|
2079
2078
|
});
|
|
2080
2079
|
} else if (currently_intersecting && record.intersectionRatio < (0, $ccf918da074d7243$export$135da44d0ba958bc)[1]) {
|
|
2081
2080
|
// we are in the process of "measuring" and went below the threshold
|
|
2082
|
-
const { started_intersecting_at_: started_intersecting_at_
|
|
2081
|
+
const { started_intersecting_at_: started_intersecting_at_, callback_timeout_: callback_timeout_ } = $f24c14db771b471d$var$current_intersections.get(target);
|
|
2083
2082
|
const time_elapsed = +new Date() - started_intersecting_at_;
|
|
2084
2083
|
// If we stopped intersecting too early we want to abort our timeout.
|
|
2085
2084
|
// if we did not we also want to abort the timeout since it's been lagging and just instantly send the event
|
|
@@ -2120,9 +2119,9 @@ const $405969d60b37fdac$export$d0efd8ed14f5c33 = (items, display, info)=>{
|
|
|
2120
2119
|
(0, $649f456f663da9fc$export$de56f1198d121036)("Impression tracking: No tenant instance, can't track", items, display);
|
|
2121
2120
|
return items;
|
|
2122
2121
|
}
|
|
2123
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(first_watchable_el, ({ element: element
|
|
2122
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(first_watchable_el, ({ element: element })=>{
|
|
2124
2123
|
(0, $f24c14db771b471d$export$4c51576248bcdf31)(element, ()=>{
|
|
2125
|
-
const { recommendation_id: recommendation_id
|
|
2124
|
+
const { recommendation_id: recommendation_id, search_result_id: search_result_id, product_listing_result_id: product_listing_result_id, suggestions_result_id: suggestions_result_id } = display;
|
|
2126
2125
|
(0, $ccf918da074d7243$export$4205dc6835bc0d9f)({
|
|
2127
2126
|
...(0, $43683b1103edab15$export$8c6f26a5b6921b95)(),
|
|
2128
2127
|
recommendation_type: info.rendering_options.type,
|
|
@@ -2145,7 +2144,7 @@ const $405969d60b37fdac$export$d0efd8ed14f5c33 = (items, display, info)=>{
|
|
|
2145
2144
|
|
|
2146
2145
|
|
|
2147
2146
|
|
|
2148
|
-
const $21285393646b9849$export$37125ccc5dd98050 = ({ element: element
|
|
2147
|
+
const $21285393646b9849$export$37125ccc5dd98050 = ({ element: element, data: data, wait_for_dom_insertion: wait_for_dom_insertion = true })=>{
|
|
2149
2148
|
const disconnectors = [];
|
|
2150
2149
|
const impression_track = ()=>{
|
|
2151
2150
|
const disconnector = (0, $f24c14db771b471d$export$4c51576248bcdf31)(element, ()=>{
|
|
@@ -2260,7 +2259,7 @@ async function $0d2acf276472ebf7$export$1cd22bab0d2c3b0b(callback) {
|
|
|
2260
2259
|
}
|
|
2261
2260
|
async function $0d2acf276472ebf7$export$baccefee4a395d8f(after_navigation, replace_replaceState = true) {
|
|
2262
2261
|
if (typeof History === "undefined") return;
|
|
2263
|
-
const { prototype: prototype
|
|
2262
|
+
const { prototype: prototype } = History;
|
|
2264
2263
|
const instance = history;
|
|
2265
2264
|
const polyfill_dance = (the_thing)=>{
|
|
2266
2265
|
const proxy_the_thing = (obj)=>{
|
|
@@ -2290,7 +2289,7 @@ let $aa0140679dc70b7a$var$last_page_pageview_sent_for;
|
|
|
2290
2289
|
async function $aa0140679dc70b7a$export$eee4c4d924348b05(data) {
|
|
2291
2290
|
// Send page view to depict if needed
|
|
2292
2291
|
try {
|
|
2293
|
-
const { href: href
|
|
2292
|
+
const { href: href } = location;
|
|
2294
2293
|
if ($aa0140679dc70b7a$var$last_page_pageview_sent_for !== href) {
|
|
2295
2294
|
$aa0140679dc70b7a$var$last_page_pageview_sent_for = href;
|
|
2296
2295
|
(0, $43683b1103edab15$export$82badda1f9923310)({
|
|
@@ -2381,7 +2380,7 @@ function $155540b3b8aca771$var$consent_from_cookie() {
|
|
|
2381
2380
|
const consent_json = cookie.replace(/%2C/g, ",").replace(/%27/g, "'").replace(/'/g, '"').replace(/([{[,])\s*([\w]+?):/g, '$1"$2":');
|
|
2382
2381
|
try {
|
|
2383
2382
|
return JSON.parse(consent_json);
|
|
2384
|
-
} catch ({ message: message
|
|
2383
|
+
} catch ({ message: message }) {
|
|
2385
2384
|
(0, $649f456f663da9fc$export$de56f1198d121036)("Error parsing cookie json", consent_json, message);
|
|
2386
2385
|
return;
|
|
2387
2386
|
}
|
|
@@ -2400,7 +2399,7 @@ function $155540b3b8aca771$export$8827362e5e938d26() {
|
|
|
2400
2399
|
const existing_consent = $155540b3b8aca771$var$consent_from_cookie();
|
|
2401
2400
|
if (existing_consent) $155540b3b8aca771$var$cookie_ipns(existing_consent);
|
|
2402
2401
|
const consent_maybe_changed = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(()=>{
|
|
2403
|
-
const { consent: { marketing: marketing
|
|
2402
|
+
const { consent: { marketing: marketing, necessary: necessary, preferences: preferences, statistics: statistics } } = window.Cookiebot;
|
|
2404
2403
|
const new_consent_obj = {
|
|
2405
2404
|
marketing: marketing,
|
|
2406
2405
|
necessary: necessary,
|
|
@@ -2700,7 +2699,7 @@ const $0a581f1dfa083522$export$59ba1eb2c083f0cd = /*@__PURE__*/ (0, /*@__PURE__*
|
|
|
2700
2699
|
style_tag.append(css);
|
|
2701
2700
|
});
|
|
2702
2701
|
const $0a581f1dfa083522$export$a96c18473f2af463 = (tenant, selector, validator)=>{
|
|
2703
|
-
return (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(selector, ({ element: element
|
|
2702
|
+
return (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(selector, ({ element: element })=>(0, $91b2e49f92ed636c$export$2c34560c3749dc63)(element, tenant.get_product_id, (p_id, r_id, was_unmatching, event)=>{
|
|
2704
2703
|
if (typeof validator === "function" && !validator(event)) return;
|
|
2705
2704
|
if (!was_unmatching) (0, $c749fe63b72056ef$export$bf205937e5e012cb)();
|
|
2706
2705
|
(0, $43683b1103edab15$export$9028351cb994757e)({
|
|
@@ -2823,7 +2822,7 @@ const $d4ffde0b9fca0369$var$get_index_in_children_of_el = (el)=>[
|
|
|
2823
2822
|
...el?.parentElement?.children || []
|
|
2824
2823
|
].indexOf(el);
|
|
2825
2824
|
const $d4ffde0b9fca0369$export$29a6094e0bd8bc5f = /*@__PURE__*/ (0, /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async (options, gtag_options)=>{
|
|
2826
|
-
const { product_selector: product_selector
|
|
2825
|
+
const { product_selector: product_selector, a2c_selector: a2c_selector, rec_a2c_selector: rec_a2c_selector, rec_a2c_unbubbled: rec_a2c_unbubbled, get_product_id: get_product_id = options.t?.get_product_id, get_rec_id: get_rec_id = $d4ffde0b9fca0369$var$default_get_rec_id, get_prod_id: get_prod_id = $d4ffde0b9fca0369$var$default_get_prod_id, get_ga_prod_id: get_ga_prod_id = $d4ffde0b9fca0369$var$default_get_ga_prod_id, get_display: get_display, impression_tracking: impression_tracking, a2c_elements: a2c_elements, product_elements: product_elements, t: t, click_location_prefix: click_location_prefix = (elem)=>elem?.parentElement?.dataset?.type + "_" } = options;
|
|
2827
2826
|
const get_display_data = async (elem)=>{
|
|
2828
2827
|
const data = {};
|
|
2829
2828
|
if (get_prod_id) data.product_id = await get_prod_id(elem) || (get_product_id ? await get_product_id(elem.querySelector("a")?.href || elem?.href) : undefined);
|
|
@@ -2846,7 +2845,7 @@ const $d4ffde0b9fca0369$export$29a6094e0bd8bc5f = /*@__PURE__*/ (0, /*@__PURE__*
|
|
|
2846
2845
|
});
|
|
2847
2846
|
})();
|
|
2848
2847
|
// Product card
|
|
2849
|
-
const add_tracking_to_product_card = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async ({ element: elem
|
|
2848
|
+
const add_tracking_to_product_card = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async ({ element: elem })=>{
|
|
2850
2849
|
const index = $d4ffde0b9fca0369$var$get_index_in_children_of_el(elem);
|
|
2851
2850
|
const data = await get_display_data(elem);
|
|
2852
2851
|
const prefix = typeof click_location_prefix === "function" && click_location_prefix(elem) || "depict_";
|
|
@@ -2989,7 +2988,7 @@ const $d4ffde0b9fca0369$export$29a6094e0bd8bc5f = /*@__PURE__*/ (0, /*@__PURE__*
|
|
|
2989
2988
|
});
|
|
2990
2989
|
else (0, $649f456f663da9fc$export$c2363754d4758444)(new Error("AIO can't find elements, try adding a selector or els")); // don't throw so that a2c tracking keeps working
|
|
2991
2990
|
// Page A2C button tracking
|
|
2992
|
-
const a2c_handler = ({ element: element
|
|
2991
|
+
const a2c_handler = ({ element: element })=>{
|
|
2993
2992
|
(0, $91b2e49f92ed636c$export$2c34560c3749dc63)(element, get_product_id, (product_id, recommendation_id, was_unmatching)=>{
|
|
2994
2993
|
if (!was_unmatching) (0, $c749fe63b72056ef$export$bf205937e5e012cb)();
|
|
2995
2994
|
(0, $43683b1103edab15$export$9028351cb994757e)({
|
|
@@ -3032,8 +3031,6 @@ const $d4ffde0b9fca0369$export$6ebd242c09192cec = /*@__PURE__*/ (0, /*@__PURE__*
|
|
|
3032
3031
|
|
|
3033
3032
|
|
|
3034
3033
|
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
3034
|
// not ideal but can help when debugging via sentry
|
|
3038
3035
|
/**
|
|
3039
3036
|
* A function that attempts to "serialize" an object to a text representation that helps with debugging when using sentry
|
|
@@ -3067,7 +3064,7 @@ const $2cbe7e0ca2ce5438$export$5c069c93d2b7493f = (delay)=>new Promise((resolve)
|
|
|
3067
3064
|
async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retries = 10) {
|
|
3068
3065
|
const ONE_MINUTE = 60000;
|
|
3069
3066
|
const max_backoff_ms = ONE_MINUTE;
|
|
3070
|
-
const { stack: stack
|
|
3067
|
+
const { stack: stack } = new Error();
|
|
3071
3068
|
const calculate_retry = (delay)=>{
|
|
3072
3069
|
delay *= 2 + Math.random();
|
|
3073
3070
|
if (delay > max_backoff_ms) delay = max_backoff_ms * (1 + Math.random() / 10);
|
|
@@ -3159,14 +3156,14 @@ function $2d47b009af5bc0a4$var$get_fetch_endpoint_from_options(options) {
|
|
|
3159
3156
|
async function $5cbe24d064a033ed$export$a9fc160c5ed83bd7(t, rendering_options) {
|
|
3160
3157
|
// clone options to prevent nasty bugs where changes of options change the options somewhere else too
|
|
3161
3158
|
rendering_options = $5cbe24d064a033ed$export$c42139a43c877ecd(rendering_options);
|
|
3162
|
-
const { type: type
|
|
3159
|
+
const { type: type } = rendering_options;
|
|
3163
3160
|
const displays = await $5cbe24d064a033ed$var$make_sure_we_have_displays(t, rendering_options);
|
|
3164
3161
|
if (!displays?.length) {
|
|
3165
3162
|
(0, $649f456f663da9fc$export$de56f1198d121036)("RR: Got no displays for type " + type + ", can't recover.", t, rendering_options);
|
|
3166
3163
|
return {};
|
|
3167
3164
|
}
|
|
3168
3165
|
// return if too few displays
|
|
3169
|
-
const { min_items_to_run: min_items_to_run
|
|
3166
|
+
const { min_items_to_run: min_items_to_run } = rendering_options;
|
|
3170
3167
|
const good_displays = await $5cbe24d064a033ed$var$check_displays(displays, min_items_to_run).catch((0, $7547e32486a3abc0$export$8048b892d651b310));
|
|
3171
3168
|
if (!good_displays) return {};
|
|
3172
3169
|
const processed_displays = await $5cbe24d064a033ed$export$c22e610107c5a15a(t, rendering_options, displays);
|
|
@@ -3174,7 +3171,7 @@ async function $5cbe24d064a033ed$export$a9fc160c5ed83bd7(t, rendering_options) {
|
|
|
3174
3171
|
(0, $649f456f663da9fc$export$de56f1198d121036)("RR: No displays left after preprocessing");
|
|
3175
3172
|
return {};
|
|
3176
3173
|
}
|
|
3177
|
-
const { template: template
|
|
3174
|
+
const { template: template, post_processors: post_processors = [] } = rendering_options;
|
|
3178
3175
|
const caught_post_processing_functions = post_processors.map((post_pro)=>(0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(post_pro));
|
|
3179
3176
|
let a;
|
|
3180
3177
|
const caught_html2elems = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((0, $0bdb8dbcf1bc7f34$export$44951404cb8d0583));
|
|
@@ -3212,8 +3209,8 @@ async function $5cbe24d064a033ed$export$a9fc160c5ed83bd7(t, rendering_options) {
|
|
|
3212
3209
|
function $5cbe24d064a033ed$export$e0009e7da572f99b(template, display = {}) {
|
|
3213
3210
|
const discount_matcher = /{DISCOUNT{([\s\S]+?)}}/g;
|
|
3214
3211
|
const no_discount_matcher = /{NODISCOUNT{([\s\S]+?)}}/g;
|
|
3215
|
-
if ("variant_index" in display
|
|
3216
|
-
const { sale_price: sale_price
|
|
3212
|
+
if ("variant_index" in display) throw new Error("Modern display in ancient templating");
|
|
3213
|
+
const { sale_price: sale_price, original_price: original_price } = display;
|
|
3217
3214
|
if (sale_price !== original_price) template = template.replaceAll(discount_matcher, "$1").replaceAll(no_discount_matcher, "");
|
|
3218
3215
|
else template = template.replaceAll(discount_matcher, "").replaceAll(no_discount_matcher, "$1");
|
|
3219
3216
|
// Conditional statements
|
|
@@ -3255,7 +3252,7 @@ async function $5cbe24d064a033ed$export$cf7cbc6b76039101(t, rendering_options, d
|
|
|
3255
3252
|
return keep ? elements : [];
|
|
3256
3253
|
}
|
|
3257
3254
|
async function $5cbe24d064a033ed$export$c22e610107c5a15a(t, rendering_options, displays) {
|
|
3258
|
-
const { max_items: max_items
|
|
3255
|
+
const { max_items: max_items, pre_processors: pre_processors = [] } = rendering_options;
|
|
3259
3256
|
const caught_pre_processors = pre_processors.map((pre_pro)=>(0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(pre_pro));
|
|
3260
3257
|
const processed_displays = [];
|
|
3261
3258
|
for(let i = 0; i < displays.length; i++){
|
|
@@ -3316,8 +3313,8 @@ async function $5cbe24d064a033ed$var$make_sure_we_have_displays(t, rendering_opt
|
|
|
3316
3313
|
|
|
3317
3314
|
|
|
3318
3315
|
async function $f1396aa84761fbe5$export$c83d8da642b5104a(t, options, GWVM_opts) {
|
|
3319
|
-
const { catchify: catchify
|
|
3320
|
-
const { container_selector: container_selector = ".grid"
|
|
3316
|
+
const { catchify: catchify, dlog: dlog, is_debug: is_debug } = t;
|
|
3317
|
+
const { container_selector: container_selector = ".grid", container_template: container_template, start_rows: start_rows = 1, rows_per_click: rows_per_click = 1, override_rec_renderer: override_rec_renderer, button: button, title: title, title_selector: title_selector, only_full_rows: only_full_rows = false, should_preload: should_preload = true } = GWVM_opts;
|
|
3321
3318
|
const outer_els = typeof container_template === "string" ? [
|
|
3322
3319
|
...(0, $0bdb8dbcf1bc7f34$export$44951404cb8d0583)(container_template)
|
|
3323
3320
|
] : container_template;
|
|
@@ -3355,7 +3352,7 @@ async function $f1396aa84761fbe5$export$c83d8da642b5104a(t, options, GWVM_opts)
|
|
|
3355
3352
|
...options.post_processors || []
|
|
3356
3353
|
]
|
|
3357
3354
|
});
|
|
3358
|
-
const { elements: rendered_elements
|
|
3355
|
+
const { elements: rendered_elements, displays: displays } = rendering_results;
|
|
3359
3356
|
if (!rendered_elements) {
|
|
3360
3357
|
dlog("Grid with view more is stopping because it got no elements");
|
|
3361
3358
|
return rendering_results;
|
|
@@ -3408,8 +3405,8 @@ function $f1396aa84761fbe5$var$observer_callback(entries) {
|
|
|
3408
3405
|
}
|
|
3409
3406
|
function $f1396aa84761fbe5$var$post_processor(elements, _, //display: display,
|
|
3410
3407
|
info, cut_off_point, i_observer, cut_off_promise_obj, load_more) {
|
|
3411
|
-
const { catchify: catchify
|
|
3412
|
-
const { index: index
|
|
3408
|
+
const { catchify: catchify, err: err, dlog: dlog } = info.t;
|
|
3409
|
+
const { index: index } = info;
|
|
3413
3410
|
const elements_arr = [
|
|
3414
3411
|
...elements
|
|
3415
3412
|
];
|
|
@@ -3434,7 +3431,7 @@ info, cut_off_point, i_observer, cut_off_promise_obj, load_more) {
|
|
|
3434
3431
|
(async function() {
|
|
3435
3432
|
if (is_initially_hidden) for(let i = 0; i < elements_arr.length; i++){
|
|
3436
3433
|
// HTMLElement is a lie, but TS is too dumb to understand that we check for it being a Node the line below this
|
|
3437
|
-
const { style: style
|
|
3434
|
+
const { style: style } = elements_arr[i];
|
|
3438
3435
|
if (style) style.display = "none";
|
|
3439
3436
|
}
|
|
3440
3437
|
while(true){
|
|
@@ -3442,7 +3439,7 @@ info, cut_off_point, i_observer, cut_off_promise_obj, load_more) {
|
|
|
3442
3439
|
extras.load_more_currently_showing = cut_off_point;
|
|
3443
3440
|
if (index + 1 <= cut_off_point) {
|
|
3444
3441
|
for(let i = 0; i < elements_arr.length; i++){
|
|
3445
|
-
const { style: style
|
|
3442
|
+
const { style: style } = elements_arr[i];
|
|
3446
3443
|
if (style) style.display = "";
|
|
3447
3444
|
}
|
|
3448
3445
|
break;
|
|
@@ -3455,9 +3452,9 @@ info, cut_off_point, i_observer, cut_off_promise_obj, load_more) {
|
|
|
3455
3452
|
|
|
3456
3453
|
|
|
3457
3454
|
|
|
3458
|
-
async function $ea554f5a28904975$export$41de2959a8dd405d(t, options, GWVM_opts, { rec_selector: rec_selector = ".rec_outer"
|
|
3459
|
-
const { start_rows: wished_start_rows = 1
|
|
3460
|
-
const { dlog: dlog
|
|
3455
|
+
async function $ea554f5a28904975$export$41de2959a8dd405d(t, options, GWVM_opts, { rec_selector: rec_selector = ".rec_outer" } = {}) {
|
|
3456
|
+
const { start_rows: wished_start_rows = 1 } = GWVM_opts;
|
|
3457
|
+
const { dlog: dlog, err: err, catchify: catchify } = t;
|
|
3461
3458
|
let result;
|
|
3462
3459
|
let rec;
|
|
3463
3460
|
let first = true;
|
|
@@ -3467,7 +3464,7 @@ async function $ea554f5a28904975$export$41de2959a8dd405d(t, options, GWVM_opts,
|
|
|
3467
3464
|
recs_per_row (num) {
|
|
3468
3465
|
try {
|
|
3469
3466
|
if (result?.elements && rec) {
|
|
3470
|
-
let { parentElement: parentElement
|
|
3467
|
+
let { parentElement: parentElement } = rec;
|
|
3471
3468
|
if (!parentElement) {
|
|
3472
3469
|
// first rec was removed
|
|
3473
3470
|
[rec] = (0, $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0)(result?.elements || [], rec_selector);
|
|
@@ -3478,7 +3475,7 @@ async function $ea554f5a28904975$export$41de2959a8dd405d(t, options, GWVM_opts,
|
|
|
3478
3475
|
// this is not entirely accurate because of margins but seems to work 100% of the time for our use case
|
|
3479
3476
|
if (recs_fitting_in_row != Infinity) {
|
|
3480
3477
|
dlog("We think there are currently", recs_fitting_in_row, "columns");
|
|
3481
|
-
const { children: children
|
|
3478
|
+
const { children: children } = parentElement;
|
|
3482
3479
|
const last_visible = $ea554f5a28904975$var$find_last_visible(children);
|
|
3483
3480
|
if (!last_visible) {
|
|
3484
3481
|
dlog("It seems like no elements are visible, not loading any");
|
|
@@ -3553,7 +3550,7 @@ function $ea554f5a28904975$var$find_last_visible(items) {
|
|
|
3553
3550
|
|
|
3554
3551
|
|
|
3555
3552
|
|
|
3556
|
-
async function $075589a94064cf2e$export$c0a4d29bc45a38c6(t, options, GWVM_opts, { rec_selector: rec_selector = ".rec_outer"
|
|
3553
|
+
async function $075589a94064cf2e$export$c0a4d29bc45a38c6(t, options, GWVM_opts, { rec_selector: rec_selector = ".rec_outer" } = {}) {
|
|
3557
3554
|
const options_for_auto_gwvm = {
|
|
3558
3555
|
...GWVM_opts,
|
|
3559
3556
|
start_rows: 1
|
|
@@ -3630,7 +3627,7 @@ function $075589a94064cf2e$var$find_last_visible(bunch_of_elements) {
|
|
|
3630
3627
|
|
|
3631
3628
|
|
|
3632
3629
|
async function $efda45906c6cbac7$export$9eae832ae57fbf(t, css, extra_html) {
|
|
3633
|
-
const head = await (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).wait_for_element("head"), { dlog: dlog
|
|
3630
|
+
const head = await (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).wait_for_element("head"), { dlog: dlog } = t, elems = (0, $0bdb8dbcf1bc7f34$export$44951404cb8d0583)(`<style type="text/css">${css}</style>` + (extra_html ? extra_html : ""));
|
|
3634
3631
|
dlog("inserting", ...elems, "into", head);
|
|
3635
3632
|
head.append(...elems);
|
|
3636
3633
|
}
|
|
@@ -3864,7 +3861,7 @@ class $b83068cbd26dcc41$export$3be7054c61590ee3 {
|
|
|
3864
3861
|
}
|
|
3865
3862
|
if (document?.body?.contains?.(image) === false) {
|
|
3866
3863
|
if (class_this.#verbose) (0, $649f456f663da9fc$export$de56f1198d121036)(element, "has been removed from the DOM, can't load");
|
|
3867
|
-
const { elements: elements
|
|
3864
|
+
const { elements: elements } = class_this.lazyfinder;
|
|
3868
3865
|
const index = elements.indexOf(image);
|
|
3869
3866
|
if (index >= 0) elements.splice(index, 1);
|
|
3870
3867
|
continue;
|
|
@@ -3946,7 +3943,7 @@ class $b83068cbd26dcc41$export$3be7054c61590ee3 {
|
|
|
3946
3943
|
}
|
|
3947
3944
|
}
|
|
3948
3945
|
}));
|
|
3949
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(container, ({ element: element
|
|
3946
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(container, ({ element: element })=>{
|
|
3950
3947
|
const new_els = element?.querySelectorAll?.(this.selector) || [];
|
|
3951
3948
|
this.lazyfinder.elements.push(...new_els);
|
|
3952
3949
|
new_els.forEach(this.#initiate_new_image.bind(this));
|
|
@@ -3955,7 +3952,7 @@ class $b83068cbd26dcc41$export$3be7054c61590ee3 {
|
|
|
3955
3952
|
childList: true
|
|
3956
3953
|
});
|
|
3957
3954
|
});
|
|
3958
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onremoved(container, ({ element: element
|
|
3955
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onremoved(container, ({ element: element })=>{
|
|
3959
3956
|
if (!document.documentElement.contains(element)) mutation_observer.disconnect();
|
|
3960
3957
|
});
|
|
3961
3958
|
}
|
|
@@ -3977,7 +3974,7 @@ class $b83068cbd26dcc41$export$3be7054c61590ee3 {
|
|
|
3977
3974
|
element.addEventListener("load", handler);
|
|
3978
3975
|
}
|
|
3979
3976
|
#unload_images_and_add_load_listeners() {
|
|
3980
|
-
const { elements: elements
|
|
3977
|
+
const { elements: elements, unload: unload } = this.lazyfinder;
|
|
3981
3978
|
const caught_unload = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(unload);
|
|
3982
3979
|
for(let i = 0; i < elements.length; i++){
|
|
3983
3980
|
caught_unload(elements[i]);
|
|
@@ -4004,14 +4001,14 @@ class $b83068cbd26dcc41$export$3be7054c61590ee3 {
|
|
|
4004
4001
|
root: this.container,
|
|
4005
4002
|
threshold: (0, $9ab9ecb74920f343$export$f8ea2e7b15b5d129)(3)
|
|
4006
4003
|
});
|
|
4007
|
-
const { elements: elements
|
|
4004
|
+
const { elements: elements } = this.lazyfinder;
|
|
4008
4005
|
for(let i = 0; i < elements.length; i++)this.intersection_observer.observe(elements[i]);
|
|
4009
4006
|
}
|
|
4010
4007
|
}
|
|
4011
4008
|
#check_if_first_page_has_loaded() {
|
|
4012
4009
|
const loaded_images = [];
|
|
4013
4010
|
const not_loaded_or_loading = [];
|
|
4014
|
-
const { elements: elements
|
|
4011
|
+
const { elements: elements } = this.lazyfinder;
|
|
4015
4012
|
for(let i = 0; i < (elements?.length ?? 0); i++)if (elements[i].loaded === true) loaded_images.push(elements[i]);
|
|
4016
4013
|
else not_loaded_or_loading.push(elements[i]);
|
|
4017
4014
|
if (this.#images_on_first_page.length >= loaded_images.length) {
|
|
@@ -4019,10 +4016,10 @@ class $b83068cbd26dcc41$export$3be7054c61590ee3 {
|
|
|
4019
4016
|
for(let i = 0; i < not_loaded_or_loading.length; i++)caught_loading_fin(not_loaded_or_loading[i]);
|
|
4020
4017
|
}
|
|
4021
4018
|
}
|
|
4022
|
-
constructor({ container: container
|
|
4019
|
+
constructor({ container: container, lazyfinder: lazyfinder, selector: selector = [
|
|
4023
4020
|
`img`,
|
|
4024
4021
|
`source`
|
|
4025
|
-
].map((t)=>`:not(.d-navbutton) > ${t}:not(.filler):not(.nolazy)`).join(", ")
|
|
4022
|
+
].map((t)=>`:not(.d-navbutton) > ${t}:not(.filler):not(.nolazy)`).join(", "), wait_for_dominsertion: wait_for_dominsertion = true, only_load_intersecting: only_load_intersecting = false, ignore_data_urls: ignore_data_urls = false, verbose: verbose }){
|
|
4026
4023
|
// store options in class so class instances can be looked at and their options are transparent
|
|
4027
4024
|
this.container = container;
|
|
4028
4025
|
this.selector = selector;
|
|
@@ -4095,7 +4092,7 @@ const $63cbb5de51d11596$var$appendChild = (parent, child)=>{
|
|
|
4095
4092
|
}
|
|
4096
4093
|
parent.append(child);
|
|
4097
4094
|
};
|
|
4098
|
-
const $63cbb5de51d11596$export$34b9dba7ce09269b = (tag, { children: children
|
|
4095
|
+
const $63cbb5de51d11596$export$34b9dba7ce09269b = (tag, { children: children, ...props }, _unknown)=>{
|
|
4099
4096
|
if (typeof tag === "function") return tag({
|
|
4100
4097
|
children: children,
|
|
4101
4098
|
...props
|
|
@@ -4120,7 +4117,7 @@ const $63cbb5de51d11596$export$34b9dba7ce09269b = (tag, { children: children , .
|
|
|
4120
4117
|
return element;
|
|
4121
4118
|
};
|
|
4122
4119
|
const $63cbb5de51d11596$export$25062201e9e25d76 = $63cbb5de51d11596$export$34b9dba7ce09269b;
|
|
4123
|
-
const $63cbb5de51d11596$export$ffb0004e005737fa = ({ children: children
|
|
4120
|
+
const $63cbb5de51d11596$export$ffb0004e005737fa = ({ children: children }, _unknown)=>{
|
|
4124
4121
|
if (typeof document === "undefined") return {};
|
|
4125
4122
|
const df = document.createDocumentFragment();
|
|
4126
4123
|
$63cbb5de51d11596$var$appendChild(df, children);
|
|
@@ -4166,8 +4163,8 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4166
4163
|
};
|
|
4167
4164
|
#cached_visible_sizes;
|
|
4168
4165
|
#observe_element(records) {
|
|
4169
|
-
const { observer: observer
|
|
4170
|
-
const { sliding_el_: sliding_el_
|
|
4166
|
+
const { observer: observer } = this;
|
|
4167
|
+
const { sliding_el_: sliding_el_ } = this.#elements;
|
|
4171
4168
|
for (const record of records){
|
|
4172
4169
|
for (const node of record.addedNodes)if (node instanceof Element && node.parentElement === sliding_el_) observer.observe(node);
|
|
4173
4170
|
for (const node of record.removedNodes)if (node instanceof Element && node.parentElement === sliding_el_) observer.unobserve(node);
|
|
@@ -4177,7 +4174,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4177
4174
|
const intersecting_items = this.intersecting_items_object;
|
|
4178
4175
|
for(let i = 0; i < entries.length; i++){
|
|
4179
4176
|
const entry = entries[i];
|
|
4180
|
-
const { target: target
|
|
4177
|
+
const { target: target } = entry;
|
|
4181
4178
|
const rec_idx = this.get_index_of_element(target);
|
|
4182
4179
|
if (entry.intersectionRatio <= 0) {
|
|
4183
4180
|
for(const key in intersecting_items)if (intersecting_items[key].target === target) delete intersecting_items[key];
|
|
@@ -4194,7 +4191,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4194
4191
|
});
|
|
4195
4192
|
observe = this.observer.observe.bind(this.observer);
|
|
4196
4193
|
get_index_of_element(target) {
|
|
4197
|
-
const { el_to_number_: el_to_number_
|
|
4194
|
+
const { el_to_number_: el_to_number_ } = this.#index_cache;
|
|
4198
4195
|
const value_from_cache = el_to_number_.get(target);
|
|
4199
4196
|
if (value_from_cache) return value_from_cache;
|
|
4200
4197
|
const children = target?.parentElement?.children;
|
|
@@ -4241,7 +4238,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4241
4238
|
// this tries to be what distance_to assumes is the current card when converting a relative offset into an absolute one, available for plugins
|
|
4242
4239
|
if (this.center_target) {
|
|
4243
4240
|
// try to find index of card under container center
|
|
4244
|
-
const { visible_sizes: visible_sizes
|
|
4241
|
+
const { visible_sizes: visible_sizes } = this;
|
|
4245
4242
|
let left_offset = 0;
|
|
4246
4243
|
const rectangle_of_container = this.#elements.sliding_el_.getBoundingClientRect();
|
|
4247
4244
|
const middle_of_container = rectangle_of_container.width / 2;
|
|
@@ -4260,7 +4257,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4260
4257
|
let target; // absolute index to focus on
|
|
4261
4258
|
if (is_absolute) target = offset;
|
|
4262
4259
|
else if (this.center_target) {
|
|
4263
|
-
const { currently_selected: currently_selected
|
|
4260
|
+
const { currently_selected: currently_selected } = this;
|
|
4264
4261
|
if (currently_selected == null) {
|
|
4265
4262
|
// if for whatever reason we don't find a card, don't do anything
|
|
4266
4263
|
(0, $b04e44fad5ea42c7$export$f18d5b0af29128b7)(new Error("can't find card in center"), "error");
|
|
@@ -4313,7 +4310,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4313
4310
|
const distance_of_container = rectangle_of_container.left;
|
|
4314
4311
|
dist = distance_of_li - distance_of_container;
|
|
4315
4312
|
if (this.center_target) try {
|
|
4316
|
-
const { visible_sizes: visible_sizes
|
|
4313
|
+
const { visible_sizes: visible_sizes } = this;
|
|
4317
4314
|
const keys = [
|
|
4318
4315
|
...visible_sizes.keys()
|
|
4319
4316
|
];
|
|
@@ -4413,7 +4410,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4413
4410
|
element_by_index(index) {
|
|
4414
4411
|
const from_cache = this.#index_cache.number_to_el_.get(index);
|
|
4415
4412
|
if (from_cache) return from_cache;
|
|
4416
|
-
const { sliding_el_: sliding_el_
|
|
4413
|
+
const { sliding_el_: sliding_el_ } = this.#elements;
|
|
4417
4414
|
let maybe_el = [
|
|
4418
4415
|
...sliding_el_?.children || []
|
|
4419
4416
|
]?.[index];
|
|
@@ -4432,7 +4429,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4432
4429
|
#setup_buttons() {
|
|
4433
4430
|
const goleft = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(()=>this.#scroll_to(-this.stepstoslide, false, -510));
|
|
4434
4431
|
const goright = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(()=>this.#scroll_to(this.stepstoslide, false, 510));
|
|
4435
|
-
const { right_: right_
|
|
4432
|
+
const { right_: right_, left_: left_ } = this.#elements;
|
|
4436
4433
|
left_.addEventListener("click", goleft);
|
|
4437
4434
|
right_.addEventListener("click", goright);
|
|
4438
4435
|
[
|
|
@@ -4452,7 +4449,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4452
4449
|
this.invalidate_cache();
|
|
4453
4450
|
for (const extra_fn of this.on_elements_changed)extra_fn.call(this, records);
|
|
4454
4451
|
}));
|
|
4455
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(es.sliding_el_, ({ element: element
|
|
4452
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(es.sliding_el_, ({ element: element })=>{
|
|
4456
4453
|
this.invalidate_cache();
|
|
4457
4454
|
cache_mo.observe(element, {
|
|
4458
4455
|
childList: true,
|
|
@@ -4469,8 +4466,8 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4469
4466
|
this.#index_cache.el_to_number_.clear();
|
|
4470
4467
|
this.#index_cache.last_el_ = undefined;
|
|
4471
4468
|
}
|
|
4472
|
-
#scroll_to(
|
|
4473
|
-
const left = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(this.#distance_to).call(this,
|
|
4469
|
+
#scroll_to(offset, is_absolute = false, fallback_scroll_distance = 500, harsh = false) {
|
|
4470
|
+
const left = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(this.#distance_to).call(this, offset, is_absolute);
|
|
4474
4471
|
const distance_after_fallback_applied = Math.round(left ?? fallback_scroll_distance);
|
|
4475
4472
|
if (getComputedStyle(this.#elements.sliding_el_).scrollSnapType !== "none" && Math.abs(distance_after_fallback_applied) < 10) {
|
|
4476
4473
|
(0, $649f456f663da9fc$export$de56f1198d121036)("Not scrolling because snapping is enabled and distance not over threshold", distance_after_fallback_applied);
|
|
@@ -4489,7 +4486,7 @@ class $ef9394fafebd5eab$export$692b27c28639e5b9 {
|
|
|
4489
4486
|
scroll_to_abs(offset, harsh = false) {
|
|
4490
4487
|
this.#scroll_to(offset, true, undefined, harsh);
|
|
4491
4488
|
}
|
|
4492
|
-
constructor({ dist_to_hide_left: dist_to_hide_left
|
|
4489
|
+
constructor({ dist_to_hide_left: dist_to_hide_left, dist_to_hide_right: dist_to_hide_right, stepstoslide: stepstoslide, center_target: center_target, mutation_plugins: mutation_plugins, constructor_plugins: constructor_plugins, correct_bs_targets: correct_bs_targets, button_contents: button_contents, button_elems: button_elems, autoinvalidate_cache: autoinvalidate_cache }){
|
|
4493
4490
|
dist_to_hide_left && (this.dist_to_hide_left = dist_to_hide_left);
|
|
4494
4491
|
dist_to_hide_right && (this.dist_to_hide_right = dist_to_hide_right);
|
|
4495
4492
|
stepstoslide && (this.stepstoslide = stepstoslide);
|
|
@@ -4521,7 +4518,7 @@ class $c33c6faf8acc7442$export$68babfc5be0de5da extends (0, $ef9394fafebd5eab$ex
|
|
|
4521
4518
|
constructor(options, lazyfier_options){
|
|
4522
4519
|
super(options);
|
|
4523
4520
|
const lazy_promise = new Promise((r)=>{
|
|
4524
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(this.insert_here, ({ element: element
|
|
4521
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(this.insert_here, ({ element: element, disconnector: disconnector })=>{
|
|
4525
4522
|
const i_o = new IntersectionObserver((0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((records)=>{
|
|
4526
4523
|
for (const record of records)if (record.intersectionRatio > 0) {
|
|
4527
4524
|
r(true);
|
|
@@ -4575,7 +4572,7 @@ function $c1503704e45e6a15$export$fb9afe9f540ae069(elements, _display, info) {
|
|
|
4575
4572
|
...elements
|
|
4576
4573
|
];
|
|
4577
4574
|
const handler = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async ()=>{
|
|
4578
|
-
const { rendering_options: rendering_options
|
|
4575
|
+
const { rendering_options: rendering_options, t: t } = info;
|
|
4579
4576
|
if (!$c1503704e45e6a15$export$4b50a4de9c6bbe09.has(rendering_options) && elements_as_array.some((e)=>document.documentElement.contains(e)) // check, just in case
|
|
4580
4577
|
) {
|
|
4581
4578
|
$c1503704e45e6a15$export$4b50a4de9c6bbe09.add(rendering_options);
|
|
@@ -4600,11 +4597,11 @@ function $c1503704e45e6a15$export$1bffac19f9f0d6fc(elements, _display, info) {
|
|
|
4600
4597
|
return elements;
|
|
4601
4598
|
const [first_element] = elements;
|
|
4602
4599
|
const handler = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(()=>{
|
|
4603
|
-
const { rendering_options: rendering_options
|
|
4600
|
+
const { rendering_options: rendering_options, displays: displays } = info;
|
|
4604
4601
|
if (!$c1503704e45e6a15$export$3777a14dd8c2363d.has(displays)) {
|
|
4605
4602
|
$c1503704e45e6a15$export$3777a14dd8c2363d.add(displays);
|
|
4606
|
-
const { get_product_id: get_product_id
|
|
4607
|
-
const { type: type
|
|
4603
|
+
const { get_product_id: get_product_id } = info.t;
|
|
4604
|
+
const { type: type } = rendering_options;
|
|
4608
4605
|
(0, $c749fe63b72056ef$export$7babcd5d4056b2ca)(displays, get_product_id /* yes this might create errors if there's no page_url in the display but don't have time to fix, sorry */ , {
|
|
4609
4606
|
list_name: "depict_" + type
|
|
4610
4607
|
});
|
|
@@ -4615,7 +4612,7 @@ function $c1503704e45e6a15$export$1bffac19f9f0d6fc(elements, _display, info) {
|
|
|
4615
4612
|
return elements;
|
|
4616
4613
|
}
|
|
4617
4614
|
function $c1503704e45e6a15$export$9e1caada6901f552(elements, _display, info) {
|
|
4618
|
-
const { t: t
|
|
4615
|
+
const { t: t } = info;
|
|
4619
4616
|
if (!t) return elements;
|
|
4620
4617
|
(async ()=>{
|
|
4621
4618
|
(0, $aa0140679dc70b7a$export$eee4c4d924348b05)({
|
|
@@ -4628,7 +4625,7 @@ function $c1503704e45e6a15$export$9e1caada6901f552(elements, _display, info) {
|
|
|
4628
4625
|
}
|
|
4629
4626
|
function $c1503704e45e6a15$export$8d72437623fef90c(elements, display, info) {
|
|
4630
4627
|
const handler = ()=>{
|
|
4631
|
-
const { ga_product_ids: ga_product_ids
|
|
4628
|
+
const { ga_product_ids: ga_product_ids, ga_product_id: ga_product_id, product_id: product_id } = display;
|
|
4632
4629
|
if (Array.isArray(ga_product_ids)) for(let i = 0; i < ga_product_ids.length; i++)(0, $c749fe63b72056ef$export$f522672c9379e339)(ga_product_ids[i], info.index, {
|
|
4633
4630
|
list_name: "depict_" + info.rendering_options.type
|
|
4634
4631
|
});
|
|
@@ -4644,7 +4641,7 @@ function $c1503704e45e6a15$export$8d72437623fef90c(elements, display, info) {
|
|
|
4644
4641
|
}
|
|
4645
4642
|
function $c1503704e45e6a15$export$e9106d6e723510d2(elements, display, info) {
|
|
4646
4643
|
const handler = ()=>{
|
|
4647
|
-
const { t: t
|
|
4644
|
+
const { t: t, index: index, rendering_options: rendering_options } = info;
|
|
4648
4645
|
return (0, $43683b1103edab15$export$15f8a0cd5a8c0ebb)({
|
|
4649
4646
|
...t,
|
|
4650
4647
|
...rendering_options,
|
|
@@ -4661,8 +4658,8 @@ function $c1503704e45e6a15$export$e9106d6e723510d2(elements, display, info) {
|
|
|
4661
4658
|
return elements;
|
|
4662
4659
|
}
|
|
4663
4660
|
function $c1503704e45e6a15$export$32eb5dd18e963410(elements, display, info) {
|
|
4664
|
-
const { search_result_id: search_result_id
|
|
4665
|
-
const { product_id: product_id
|
|
4661
|
+
const { search_result_id: search_result_id } = display;
|
|
4662
|
+
const { product_id: product_id, recommendation_id: recommendation_id } = "variant_index" in display ? display.variant_displays[display.variant_index] : display;
|
|
4666
4663
|
if (!elements?.length) return elements;
|
|
4667
4664
|
for (const element of elements){
|
|
4668
4665
|
const handler = (0, $91b2e49f92ed636c$export$82a685f2da2fb027)(element, product_id, recommendation_id || search_result_id);
|
|
@@ -4719,7 +4716,7 @@ function $893f9af5dbae6bc8$export$16501883f477737a(elements, display) {
|
|
|
4719
4716
|
|
|
4720
4717
|
var $6be99244fa573db5$export$2e2bcd8739ae039 = $6be99244fa573db5$export$50ce83ace0cdd87e;
|
|
4721
4718
|
async function $6be99244fa573db5$export$50ce83ace0cdd87e(t, rendering_options) {
|
|
4722
|
-
const { view_tracking: view_tracking
|
|
4719
|
+
const { view_tracking: view_tracking, click_tracking: click_tracking } = rendering_options;
|
|
4723
4720
|
return await (0, $5cbe24d064a033ed$export$a9fc160c5ed83bd7)(t, {
|
|
4724
4721
|
...rendering_options,
|
|
4725
4722
|
headers: {
|
|
@@ -4746,8 +4743,8 @@ async function $6be99244fa573db5$export$50ce83ace0cdd87e(t, rendering_options) {
|
|
|
4746
4743
|
|
|
4747
4744
|
async function $7e2d59b061c2c528$export$cab8bc58c64c2013(t, rendering_options, options_for_us, slider_options) {
|
|
4748
4745
|
options_for_us ||= {};
|
|
4749
|
-
const { root_selector: root_selector
|
|
4750
|
-
let { container: container
|
|
4746
|
+
const { root_selector: root_selector, override_rec_renderer: local_rr = (0, $6be99244fa573db5$export$2e2bcd8739ae039), insertion_verb: insertion_verb = "replaceWith", lazyfier_options: lazyfier_options } = options_for_us;
|
|
4747
|
+
let { container: container } = options_for_us;
|
|
4751
4748
|
if (typeof container == "string") container = [
|
|
4752
4749
|
...(0, $0bdb8dbcf1bc7f34$export$44951404cb8d0583)(container)
|
|
4753
4750
|
];
|
|
@@ -4809,7 +4806,7 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
4809
4806
|
}
|
|
4810
4807
|
}
|
|
4811
4808
|
loadRecommendations(callback) {
|
|
4812
|
-
const { tenant: tenant
|
|
4809
|
+
const { tenant: tenant, product_id: product_id, type: type, market: market } = this.settings;
|
|
4813
4810
|
(0, $2d47b009af5bc0a4$export$1bc0df10745d5412)(// @ts-ignore - Quick workaround, as we don't have a tenant object here
|
|
4814
4811
|
{
|
|
4815
4812
|
tenant: tenant,
|
|
@@ -4852,7 +4849,7 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
4852
4849
|
return;
|
|
4853
4850
|
}
|
|
4854
4851
|
$366fff12da348e66$var$pageview_sent = true;
|
|
4855
|
-
const { product_id: product_id
|
|
4852
|
+
const { product_id: product_id } = this.settings;
|
|
4856
4853
|
(0, $aa0140679dc70b7a$export$eee4c4d924348b05)(typeof product_id === "function" ? product_id() : product_id);
|
|
4857
4854
|
}
|
|
4858
4855
|
trackClick(index) {
|
|
@@ -4883,7 +4880,7 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
4883
4880
|
for (const el of elements)root.prepend(el);
|
|
4884
4881
|
} else for (const el of elements)root.appendChild(el);
|
|
4885
4882
|
}
|
|
4886
|
-
renderTemplate({ prep: prep
|
|
4883
|
+
renderTemplate({ prep: prep, root: root, template: template, itemPreprocessor: itemPreprocessor, itemPostprocessor: itemPostprocessor } = this.settings) {
|
|
4887
4884
|
if (document._depict_modify !== true) {
|
|
4888
4885
|
if (this.settings.debug) console.warn("Template-tool: not running because document._depict_modify is false!", this);
|
|
4889
4886
|
return;
|
|
@@ -5021,8 +5018,8 @@ var /**
|
|
|
5021
5018
|
|
|
5022
5019
|
|
|
5023
5020
|
// @ts-ignore
|
|
5024
|
-
var $
|
|
5025
|
-
$
|
|
5021
|
+
var $02c5d04352f98adb$exports = {};
|
|
5022
|
+
$02c5d04352f98adb$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";
|
|
5026
5023
|
|
|
5027
5024
|
|
|
5028
5025
|
|
|
@@ -5065,7 +5062,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
5065
5062
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
5066
5063
|
const style_elem = document.createElement("style");
|
|
5067
5064
|
style_elem.type = "text/css";
|
|
5068
|
-
style_elem.append((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
5065
|
+
style_elem.append((0, (/*@__PURE__*/$parcel$interopDefault($02c5d04352f98adb$exports))));
|
|
5069
5066
|
slider.container.appendChild(style_elem);
|
|
5070
5067
|
}
|
|
5071
5068
|
|
|
@@ -5075,9 +5072,9 @@ function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
|
5075
5072
|
|
|
5076
5073
|
async function $e61f371a9bcdeb2f$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
5077
5074
|
options_for_us ||= {};
|
|
5078
|
-
const { dlog: dlog
|
|
5079
|
-
const { root_selector: root_selector
|
|
5080
|
-
let { container: container
|
|
5075
|
+
const { dlog: dlog, catchify: catchify } = t;
|
|
5076
|
+
const { root_selector: root_selector, Rec_Renderer: local_rr = (0, $6be99244fa573db5$export$2e2bcd8739ae039), insertion_verb: insertion_verb = "replaceWith" } = options_for_us;
|
|
5077
|
+
let { container: container } = options_for_us;
|
|
5081
5078
|
if (typeof container == "string") container = [
|
|
5082
5079
|
...(0, $0bdb8dbcf1bc7f34$export$44951404cb8d0583)(container)
|
|
5083
5080
|
];
|
|
@@ -5125,10 +5122,10 @@ async function $e61f371a9bcdeb2f$export$cd12721587f4f16d(t, rendering_options, o
|
|
|
5125
5122
|
|
|
5126
5123
|
|
|
5127
5124
|
|
|
5128
|
-
async function $f494377581cfb2b4$export$30933c637c977eef({ t: t
|
|
5129
|
-
template
|
|
5130
|
-
chunk_size_for_load_more = 4
|
|
5131
|
-
const { catchify: catchify
|
|
5125
|
+
async function $f494377581cfb2b4$export$30933c637c977eef({ t: t, recs: recs, title: title, infinite_scroll: infinite_scroll = false, with_slider: with_slider = false, with_loadmore: with_loadmore = false, template_tool_options: template_tool_options, slider_options: slider_options = {}, pre_processors: pre_processors = [], post_processors: post_processors = [], container_template: container_template, template: // container template
|
|
5126
|
+
template, chunk_size_for_load_more: // recommendation template
|
|
5127
|
+
chunk_size_for_load_more = 4, insertion_promise: insertion_promise }) {
|
|
5128
|
+
const { catchify: catchify, dlog: dlog } = t, container = [
|
|
5132
5129
|
...(0, $0bdb8dbcf1bc7f34$export$44951404cb8d0583)(container_template)
|
|
5133
5130
|
], root = (0, $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0)(container, ".grid")[0], internal_pre_processors = [
|
|
5134
5131
|
...pre_processors
|
|
@@ -5210,7 +5207,7 @@ chunk_size_for_load_more = 4 , insertion_promise: insertion_promise }) {
|
|
|
5210
5207
|
else dlog("Didn't get recs from API", template_tool);
|
|
5211
5208
|
}
|
|
5212
5209
|
function $f494377581cfb2b4$var$setup_infinite_scroll(t, root) {
|
|
5213
|
-
const { dlog: dlog
|
|
5210
|
+
const { dlog: dlog, catchify: catchify } = t, get_last_visible_el = ()=>[
|
|
5214
5211
|
...root.querySelectorAll("a.rec_outer:not(.not_visible)")
|
|
5215
5212
|
].slice(-1)[0], last_visible_el = get_last_visible_el();
|
|
5216
5213
|
if (!last_visible_el) {
|
|
@@ -5241,7 +5238,7 @@ function $f494377581cfb2b4$var$load_more_elements(root, chunk_size = 4) {
|
|
|
5241
5238
|
return has_more;
|
|
5242
5239
|
}
|
|
5243
5240
|
function $f494377581cfb2b4$var$setup_load_more(t, root, chunk_size) {
|
|
5244
|
-
const { catchify: catchify
|
|
5241
|
+
const { catchify: catchify } = t, load_more_cont = (0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<div class="load-more-container"></div>`), load_button = load_more_cont.appendChild((0, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787)(`<button class="load_more">Visa mer</button>`));
|
|
5245
5242
|
load_button.addEventListener("click", catchify(load_more_recs_and_hide_button_if_needed));
|
|
5246
5243
|
root.after(load_more_cont);
|
|
5247
5244
|
load_more_recs_and_hide_button_if_needed();
|
|
@@ -5260,7 +5257,7 @@ function $f494377581cfb2b4$export$4f39078bdc72ecd0(_t, d, i, with_loadmore, with
|
|
|
5260
5257
|
}
|
|
5261
5258
|
function $f494377581cfb2b4$export$c410ce1205e5118a(_t, itms, d, slider) {
|
|
5262
5259
|
for (const item of itms){
|
|
5263
|
-
const { image_url: image_url
|
|
5260
|
+
const { image_url: image_url } = d, img = item.querySelector("img.image"), load_image = ()=>{
|
|
5264
5261
|
img.src = image_url;
|
|
5265
5262
|
slider?.observe?.(img);
|
|
5266
5263
|
};
|
|
@@ -5291,7 +5288,7 @@ var /**
|
|
|
5291
5288
|
const windows_proof_fetch = async function(url, body, headers, decode_json, fetch_options, attempt) {
|
|
5292
5289
|
attempt ||= 1;
|
|
5293
5290
|
decode_json ??= true;
|
|
5294
|
-
const { stack: stack
|
|
5291
|
+
const { stack: stack } = new Error();
|
|
5295
5292
|
const elog = (...args)=>{
|
|
5296
5293
|
if (Array.isArray(error_log)) error_log.push(args);
|
|
5297
5294
|
return dlog(...args);
|
|
@@ -5341,7 +5338,6 @@ async function $acf11540344875ed$var$send_sentry_422(response, body, stack) {
|
|
|
5341
5338
|
|
|
5342
5339
|
|
|
5343
5340
|
|
|
5344
|
-
|
|
5345
5341
|
const $ca66c9553e84df02$export$dc84183312f0c201 = /*@__PURE__*/ (()=>(0, $63cbb5de51d11596$export$25062201e9e25d76)("svg", {
|
|
5346
5342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5347
5343
|
viewBox: "0 0 320 512",
|
|
@@ -5369,7 +5365,7 @@ const $ca66c9553e84df02$export$6038895ac52bd044 = /*@__PURE__*/ (()=>(0, $63cbb5
|
|
|
5369
5365
|
|
|
5370
5366
|
|
|
5371
5367
|
|
|
5372
|
-
const $9a744f57ab06c32e$export$68c017fd93791405 = ({ duration: duration = 500
|
|
5368
|
+
const $9a744f57ab06c32e$export$68c017fd93791405 = ({ duration: duration = 500 } = {
|
|
5373
5369
|
duration: 500
|
|
5374
5370
|
})=>{
|
|
5375
5371
|
const container = document.createElement("div");
|
|
@@ -5423,10 +5419,10 @@ function $693e2a1517bef984$export$f8913c8a18f7ca21(iterables) {
|
|
|
5423
5419
|
|
|
5424
5420
|
|
|
5425
5421
|
const $30e801eaa3dc319e$export$717f13d9ba00ca19 = (min, max)=>`@media ${min ? `(min-width:${min})` : ``}${min && max ? ` and ` : ``}${max ? `(max-width:${max})` : ``}`;
|
|
5426
|
-
async function $30e801eaa3dc319e$export$c84671f46d6a1ca({ rows: rows
|
|
5422
|
+
async function $30e801eaa3dc319e$export$c84671f46d6a1ca({ rows: rows, container_element: container_element, cols_at_size: cols_at_size, grid_spacing: grid_spacing, layout: layout, disable_partial_rows: disable_partial_rows, override_vertical_spacing: override_vertical_spacing }) {
|
|
5427
5423
|
const rows_or_empty_object = typeof rows == "object" ? rows : {}; // this is to satisfy typescript
|
|
5428
|
-
const { start_rows: start_rows = 1
|
|
5429
|
-
let { ipns: ipns
|
|
5424
|
+
const { start_rows: start_rows = 1, button: button, max_rows: max_rows = -1 } = rows_or_empty_object;
|
|
5425
|
+
let { ipns: ipns } = rows_or_empty_object;
|
|
5430
5426
|
const is_static = !ipns && !button;
|
|
5431
5427
|
const our_style_el = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("style", {
|
|
5432
5428
|
type: "text/css"
|
|
@@ -5448,13 +5444,13 @@ async function $30e801eaa3dc319e$export$c84671f46d6a1ca({ rows: rows , container
|
|
|
5448
5444
|
ipns(start_rows);
|
|
5449
5445
|
set_length();
|
|
5450
5446
|
const mutation_observer = new MutationObserver((0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(set_length));
|
|
5451
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).oncreation(container_element, ({ element: element
|
|
5447
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).oncreation(container_element, ({ element: element })=>{
|
|
5452
5448
|
mutation_observer.observe(element, {
|
|
5453
5449
|
childList: true
|
|
5454
5450
|
});
|
|
5455
5451
|
set_length(); // might have changed while we weren't in the DOM but no need to observe and update when we aren't
|
|
5456
5452
|
});
|
|
5457
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onremoved(container_element, ({ element: element
|
|
5453
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onremoved(container_element, ({ element: element })=>{
|
|
5458
5454
|
if (document.documentElement.contains(element)) return;
|
|
5459
5455
|
mutation_observer.disconnect();
|
|
5460
5456
|
el_count_ipns.exit();
|
|
@@ -5641,10 +5637,10 @@ class $30e801eaa3dc319e$var$CSSMeasurement {
|
|
|
5641
5637
|
|
|
5642
5638
|
|
|
5643
5639
|
|
|
5644
|
-
async function $090b8182afa1b2a6$export$b0a773486c1c2312(t, recommendation_renderer_options, { container_elements: container_elements
|
|
5640
|
+
async function $090b8182afa1b2a6$export$b0a773486c1c2312(t, recommendation_renderer_options, { container_elements: container_elements, container_selector: container_selector, override_rec_renderer: override_rec_renderer, lazyfier_options: lazyfier_options = {}, eager_images: eager_images, ...options_for_grid }) {
|
|
5645
5641
|
const [insertion_point] = (0, $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0)(container_elements, container_selector || ".grid");
|
|
5646
5642
|
const rendering_result = await (override_rec_renderer || (0, $6be99244fa573db5$export$2e2bcd8739ae039))(t, recommendation_renderer_options);
|
|
5647
|
-
const { elements: elements
|
|
5643
|
+
const { elements: elements } = rendering_result;
|
|
5648
5644
|
if (!elements) return rendering_result;
|
|
5649
5645
|
if (!eager_images) // convoluted lazy loading that
|
|
5650
5646
|
// when the elements are in the DOM starts IntersectionObserver on whole grid
|
|
@@ -5682,8 +5678,8 @@ async function $090b8182afa1b2a6$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5682
5678
|
|
|
5683
5679
|
|
|
5684
5680
|
// @ts-ignore
|
|
5685
|
-
var $
|
|
5686
|
-
$
|
|
5681
|
+
var $1959df175fd7b3eb$exports = {};
|
|
5682
|
+
$1959df175fd7b3eb$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";
|
|
5687
5683
|
|
|
5688
5684
|
|
|
5689
5685
|
|
|
@@ -5694,15 +5690,15 @@ $06ec2e809d7a727f$exports = ".depict-slider {\n width: 100%;\n position: relat
|
|
|
5694
5690
|
|
|
5695
5691
|
|
|
5696
5692
|
let $30f78542ed78cd31$var$slider_styling_was_inserted = false;
|
|
5697
|
-
async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_renderer_options, { container_elements: container_elements
|
|
5693
|
+
async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_renderer_options, { container_elements: container_elements, container_selector: container_selector, override_rec_renderer: override_rec_renderer, lazyfier_options: lazyfier_options = {}, eager_images: eager_images, grid_spacing: grid_spacing, cols_at_size: cols_at_size, override_vertical_spacing: override_vertical_spacing, rows: rows = "all", ...slider_options }) {
|
|
5698
5694
|
const [insertion_point] = (0, $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0)(container_elements, container_selector || ".grid");
|
|
5699
5695
|
const slider = eager_images ? new (0, $ef9394fafebd5eab$export$692b27c28639e5b9)(slider_options) : new (0, $c33c6faf8acc7442$export$68babfc5be0de5da)(slider_options, lazyfier_options);
|
|
5700
5696
|
const rendering_result = await (override_rec_renderer || (0, $6be99244fa573db5$export$2e2bcd8739ae039))(t, recommendation_renderer_options);
|
|
5701
|
-
const { elements: elements
|
|
5697
|
+
const { elements: elements } = rendering_result;
|
|
5702
5698
|
if (!elements) return rendering_result;
|
|
5703
5699
|
if (!$30f78542ed78cd31$var$slider_styling_was_inserted) {
|
|
5704
5700
|
$30f78542ed78cd31$var$slider_styling_was_inserted = true;
|
|
5705
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
5701
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($1959df175fd7b3eb$exports))));
|
|
5706
5702
|
}
|
|
5707
5703
|
insertion_point.replaceWith(slider.container);
|
|
5708
5704
|
slider.insert_here.append(...elements);
|
|
@@ -5794,9 +5790,8 @@ function $a75adf1478c4522f$export$af88b4929c2dc86() {
|
|
|
5794
5790
|
|
|
5795
5791
|
|
|
5796
5792
|
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
const { dlog: dlog , catchify: catchify } = t;
|
|
5793
|
+
function $2436f68ea927d4a8$export$1d17a045bcc711b1({ t: t, navcont_insertion_fn: navcont_insertion_fn, navdot: navdot, dontshowonedot: dontshowonedot = false, bitesize: bitesize }) {
|
|
5794
|
+
const { dlog: dlog, catchify: catchify } = t;
|
|
5800
5795
|
const button_states = [];
|
|
5801
5796
|
const unique_name = Math.round(Math.random() * 1000000);
|
|
5802
5797
|
function constructor_plugin() {
|
|
@@ -5806,7 +5801,7 @@ function $2436f68ea927d4a8$export$1d17a045bcc711b1({ t: t , navcont_insertion_fn
|
|
|
5806
5801
|
this.navcont = navcont;
|
|
5807
5802
|
if (navcont_insertion_fn) navcont_insertion_fn(this, navcont);
|
|
5808
5803
|
else {
|
|
5809
|
-
const { container: container
|
|
5804
|
+
const { container: container } = this;
|
|
5810
5805
|
container.append(navcont);
|
|
5811
5806
|
}
|
|
5812
5807
|
}
|
|
@@ -5815,8 +5810,8 @@ function $2436f68ea927d4a8$export$1d17a045bcc711b1({ t: t , navcont_insertion_fn
|
|
|
5815
5810
|
const only_visible_children = (children)=>[
|
|
5816
5811
|
...children
|
|
5817
5812
|
].filter((el)=>el.offsetParent !== null);
|
|
5818
|
-
const { insert_here: sliding
|
|
5819
|
-
const { children: children
|
|
5813
|
+
const { insert_here: sliding, navcont: navcont } = this;
|
|
5814
|
+
const { children: children, offsetWidth: width_of_container } = sliding;
|
|
5820
5815
|
const [first_child] = children;
|
|
5821
5816
|
const amount_of_elements = only_visible_children(children).length;
|
|
5822
5817
|
const width_of_one_element = first_child.getBoundingClientRect().width;
|
|
@@ -5894,15 +5889,15 @@ function $2436f68ea927d4a8$export$a09282b33e69b43f(unique_name) {
|
|
|
5894
5889
|
// });
|
|
5895
5890
|
|
|
5896
5891
|
function $9bb2400c4e2e9335$export$411b0f20794697ce(t) {
|
|
5897
|
-
const { dlog: dlog
|
|
5892
|
+
const { dlog: dlog, catchify: catchify, err: err } = t;
|
|
5898
5893
|
function constructor_plugin(slider_options) {
|
|
5899
|
-
const { insert_here: sliding
|
|
5894
|
+
const { insert_here: sliding } = this;
|
|
5900
5895
|
let last_mouse_position = 0;
|
|
5901
5896
|
let starting_position = 0;
|
|
5902
5897
|
let block_anchor_clicks = false;
|
|
5903
5898
|
sliding.addEventListener("mousedown", catchify((e)=>{
|
|
5904
5899
|
sliding.classList.remove("slider_snap");
|
|
5905
|
-
const { snap_style: snap_style
|
|
5900
|
+
const { snap_style: snap_style } = this;
|
|
5906
5901
|
if (snap_style) snap_style.remove();
|
|
5907
5902
|
sliding.classList.add("grabbing");
|
|
5908
5903
|
last_mouse_position = starting_position = e.clientX;
|
|
@@ -5914,7 +5909,7 @@ function $9bb2400c4e2e9335$export$411b0f20794697ce(t) {
|
|
|
5914
5909
|
sliding.classList.add("slider_snap");
|
|
5915
5910
|
sliding.removeEventListener("mousemove", scroll_on_mousemove);
|
|
5916
5911
|
// readd snap css if needed
|
|
5917
|
-
const { snap_style: snap_style
|
|
5912
|
+
const { snap_style: snap_style } = this;
|
|
5918
5913
|
if (snap_style) {
|
|
5919
5914
|
this.container.append(snap_style);
|
|
5920
5915
|
// make a scroll so the browser snaps
|
|
@@ -5936,7 +5931,7 @@ function $9bb2400c4e2e9335$export$411b0f20794697ce(t) {
|
|
|
5936
5931
|
}));
|
|
5937
5932
|
function scroll_on_mousemove(e) {
|
|
5938
5933
|
try {
|
|
5939
|
-
const { clientX: clientX
|
|
5934
|
+
const { clientX: clientX } = e;
|
|
5940
5935
|
if (Math.abs(clientX - starting_position) > 10) block_anchor_clicks = true;
|
|
5941
5936
|
sliding.scrollBy({
|
|
5942
5937
|
left: last_mouse_position - clientX
|
|
@@ -5968,12 +5963,12 @@ function $9bb2400c4e2e9335$export$411b0f20794697ce(t) {
|
|
|
5968
5963
|
}
|
|
5969
5964
|
|
|
5970
5965
|
|
|
5971
|
-
function $1ce2ae6f640f393f$export$5129719c04a52f8c({ fade_in_duration_: fade_in_duration_ = 0
|
|
5966
|
+
function $1ce2ae6f640f393f$export$5129719c04a52f8c({ fade_in_duration_: fade_in_duration_ = 0, fade_out_duration_: fade_out_duration_ = 0, visible_opacity_: visible_opacity_ = 1, faded_opacity_: faded_opacity_ = 0.5, easing_: easing_ = "linear", threshold_: threshold_ = 0.5 } = {}) {
|
|
5972
5967
|
const faded_els = /*@__PURE__*/ new WeakSet();
|
|
5973
5968
|
function mutation_plugin_(entries, _intersecting_mutations) {
|
|
5974
5969
|
for(let i = 0; i < entries.length; i++){
|
|
5975
5970
|
const entry = entries[i];
|
|
5976
|
-
const { target: target
|
|
5971
|
+
const { target: target } = entry;
|
|
5977
5972
|
const should_be_faded = entry.intersectionRatio <= threshold_;
|
|
5978
5973
|
if (should_be_faded !== faded_els.has(target)) {
|
|
5979
5974
|
faded_els[should_be_faded ? "add" : "delete"](target);
|
|
@@ -6003,7 +5998,7 @@ function $1ce2ae6f640f393f$export$5129719c04a52f8c({ fade_in_duration_: fade_in_
|
|
|
6003
5998
|
function $52292921bc0fc31f$export$5723caf9a8335aa6(_t, fraction = 1, max_steps, dont_enable_correct_bs_targets, min_steps) {
|
|
6004
5999
|
function constructor_plugin(slider_options) {
|
|
6005
6000
|
const fallback_stepsize = slider_options.stepstoslide || 2;
|
|
6006
|
-
const { insert_here: sliding
|
|
6001
|
+
const { insert_here: sliding } = this;
|
|
6007
6002
|
if (!dont_enable_correct_bs_targets) this.correct_bs_targets = true;
|
|
6008
6003
|
Object.defineProperty(this, "stepstoslide", {
|
|
6009
6004
|
configurable: true,
|
|
@@ -6059,7 +6054,7 @@ function $f78bc6a06402a6cf$export$93223e488e7ee078(options) {
|
|
|
6059
6054
|
this.scroll_bar = scroll_bar;
|
|
6060
6055
|
}
|
|
6061
6056
|
function mutation_plugin(_intersections, _intersecting_mutations) {
|
|
6062
|
-
const { insert_here: slider
|
|
6057
|
+
const { insert_here: slider } = this;
|
|
6063
6058
|
const scrolled = slider.scrollLeft / slider.scrollWidth * 100;
|
|
6064
6059
|
this.scroll_bar.style.width = `${Math.round(slider.offsetWidth / slider.scrollWidth * 100)}%`;
|
|
6065
6060
|
this.scroll_bar.style.left = `${scrolled}%`;
|
|
@@ -6076,7 +6071,7 @@ function $f78bc6a06402a6cf$export$93223e488e7ee078(options) {
|
|
|
6076
6071
|
|
|
6077
6072
|
|
|
6078
6073
|
|
|
6079
|
-
function $06fe260f91efff62$export$b36d2489a5a16728(_t, { snapEvery: snapEvery
|
|
6074
|
+
function $06fe260f91efff62$export$b36d2489a5a16728(_t, { snapEvery: snapEvery, align: align } = {}) {
|
|
6080
6075
|
function constructor_plugin(_slider_options) {
|
|
6081
6076
|
const slider_this = this;
|
|
6082
6077
|
const random_classname = "x" + (0, $460df8550f9d084d$export$656831b7e9c341c3)().replaceAll(".", "");
|
|
@@ -6136,7 +6131,7 @@ function $40bfd400d76a6ec1$export$dac64fd35a4805a4(options = {}) {
|
|
|
6136
6131
|
};
|
|
6137
6132
|
let currently_left = "0";
|
|
6138
6133
|
function constructor_plugin(slider_options) {
|
|
6139
|
-
const { insert_here: sliding
|
|
6134
|
+
const { insert_here: sliding } = this;
|
|
6140
6135
|
const scroll_abs_no_negative = (target)=>this.scroll_to_abs(target < 0 ? 0 : target); // the slider ignores everything < 0 but we want it to move to the first card
|
|
6141
6136
|
sliding.addEventListener("mousedown", (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(()=>{
|
|
6142
6137
|
lock_on_element.lock_active = true;
|
|
@@ -6211,7 +6206,7 @@ function $40bfd400d76a6ec1$export$dac64fd35a4805a4(options = {}) {
|
|
|
6211
6206
|
|
|
6212
6207
|
|
|
6213
6208
|
|
|
6214
|
-
function $556d9c321900f1d4$export$53306504b987cbf7({ clones_per_side: clones_per_side = 8
|
|
6209
|
+
function $556d9c321900f1d4$export$53306504b987cbf7({ clones_per_side: clones_per_side = 8 } = {}) {
|
|
6215
6210
|
// YOU NEED TO USE slider_snap_css FOR THIS TO WORK
|
|
6216
6211
|
// only for usage with recommendation_renderer which you need to pass post_processor as LAST post processor
|
|
6217
6212
|
const time_of_no_events_to_count_as_scroll_idle = 150;
|
|
@@ -6280,7 +6275,7 @@ function $556d9c321900f1d4$export$53306504b987cbf7({ clones_per_side: clones_per
|
|
|
6280
6275
|
}
|
|
6281
6276
|
function mutation_plugin(intersections, intersecting_mutations) {
|
|
6282
6277
|
for(let i = 0; i < intersections.length; i++){
|
|
6283
|
-
const { intersectionRatio: intersectionRatio
|
|
6278
|
+
const { intersectionRatio: intersectionRatio } = intersections[i];
|
|
6284
6279
|
const target_large = intersectionRatio * 0.95;
|
|
6285
6280
|
const target_small = intersectionRatio * 1.05;
|
|
6286
6281
|
if (target_large > largest_seen_interection_ratio && target_large < 0.999) largest_seen_interection_ratio = target_large;
|
|
@@ -6348,10 +6343,10 @@ function $556d9c321900f1d4$export$53306504b987cbf7({ clones_per_side: clones_per
|
|
|
6348
6343
|
mutation_busy = false;
|
|
6349
6344
|
}
|
|
6350
6345
|
async function post_processor(elements, _display, info) {
|
|
6351
|
-
const { index: index
|
|
6346
|
+
const { index: index, rendering_options: rendering_options } = info;
|
|
6352
6347
|
originally_rendered_elements.push(...elements);
|
|
6353
6348
|
if (index === 0) {
|
|
6354
|
-
const { event_listeners: event_listeners
|
|
6349
|
+
const { event_listeners: event_listeners } = info; // so we don't want event listeners to be added twice. We will return our actual index 0 elements and all elements of all indexes. Tracking needs to be right per element per index. That's why we will now add our event listeners to our elements and then prevent RR from doing it for us on all returned elements, on which each RR run will get to add the correct individual ones
|
|
6355
6350
|
while(event_listeners?.length){
|
|
6356
6351
|
// order shouldn't matter, this is fast
|
|
6357
6352
|
const event_listener = event_listeners.pop();
|
|
@@ -6399,7 +6394,7 @@ function $556d9c321900f1d4$export$53306504b987cbf7({ clones_per_side: clones_per
|
|
|
6399
6394
|
};
|
|
6400
6395
|
}
|
|
6401
6396
|
function $556d9c321900f1d4$var$scroll_idle(slider, chunk_size, clones_per_side) {
|
|
6402
|
-
const { insert_here: sliding
|
|
6397
|
+
const { insert_here: sliding } = slider;
|
|
6403
6398
|
const slider_box = sliding.getBoundingClientRect();
|
|
6404
6399
|
const leftmost_rect = slider.element_by_index(0).getBoundingClientRect();
|
|
6405
6400
|
const rightmost_rect = slider.element_by_index(slider.index_of_last_element).getBoundingClientRect();
|
|
@@ -6408,7 +6403,7 @@ function $556d9c321900f1d4$var$scroll_idle(slider, chunk_size, clones_per_side)
|
|
|
6408
6403
|
const children = [
|
|
6409
6404
|
...sliding.children
|
|
6410
6405
|
];
|
|
6411
|
-
const { intersecting_items_object: intersecting_items_object
|
|
6406
|
+
const { intersecting_items_object: intersecting_items_object } = slider;
|
|
6412
6407
|
const index_of_first_intersecting = slider.first_intersecting_index();
|
|
6413
6408
|
const index_of_last_intersecting = Math.max(...Object.keys(intersecting_items_object).map((v)=>+v));
|
|
6414
6409
|
const post_move = (direction)=>{
|
|
@@ -6531,7 +6526,7 @@ query, handler, initial_call = true) {
|
|
|
6531
6526
|
}
|
|
6532
6527
|
|
|
6533
6528
|
|
|
6534
|
-
async function $159237486410355f$export$417ef0ab13d8b984({ surface_rendering_functions_: surface_rendering_functions_
|
|
6529
|
+
async function $159237486410355f$export$417ef0ab13d8b984({ surface_rendering_functions_: surface_rendering_functions_, current_surface_: current_surface_ }) {
|
|
6535
6530
|
let resolve_success_promise;
|
|
6536
6531
|
const success_promise = new Promise((r)=>resolve_success_promise = r);
|
|
6537
6532
|
const cache = new Map();
|
|
@@ -6552,7 +6547,7 @@ async function $159237486410355f$export$417ef0ab13d8b984({ surface_rendering_fun
|
|
|
6552
6547
|
async function $159237486410355f$var$switch_to_surface(surface_index, rendering_function, current_surface_ipns, cache, set_els, resolve_success_promise) {
|
|
6553
6548
|
let rendered_surface = cache.get(surface_index);
|
|
6554
6549
|
if (!rendered_surface) {
|
|
6555
|
-
const { cache_until_: cache_until_
|
|
6550
|
+
const { cache_until_: cache_until_, surface_: surface_ } = await rendering_function().catch((e)=>((0, $b04e44fad5ea42c7$export$f18d5b0af29128b7)([
|
|
6556
6551
|
e,
|
|
6557
6552
|
"error in rendering"
|
|
6558
6553
|
], "warning"), {}));
|
|
@@ -6598,7 +6593,7 @@ function $159237486410355f$export$419f84efad7d9fe(surface_per_size, cleanup_prom
|
|
|
6598
6593
|
});
|
|
6599
6594
|
surface_per_size.forEach(([surface_index, min, max])=>{
|
|
6600
6595
|
const media_query = (0, $30e801eaa3dc319e$export$717f13d9ba00ca19)(min, max).split("@media ").pop();
|
|
6601
|
-
const { remove: remove
|
|
6596
|
+
const { remove: remove } = (0, $29407d8301dc2f23$export$515c3ea4d599b05a)(media_query, ({ matches: matches })=>{
|
|
6602
6597
|
if (!matches) return;
|
|
6603
6598
|
target_indexes.add(surface_index);
|
|
6604
6599
|
if (!microtask_queued) {
|
|
@@ -6634,7 +6629,7 @@ function $159237486410355f$export$be95cb0e8cfd099e() {
|
|
|
6634
6629
|
function $847e4a06ea6767c0$export$3ebd86018b39d9d2(t, selector, filter) {
|
|
6635
6630
|
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(selector, (eoe)=>{
|
|
6636
6631
|
(0, $649f456f663da9fc$export$de56f1198d121036)("Order confirmation element showed up!", eoe);
|
|
6637
|
-
const { element: element
|
|
6632
|
+
const { element: element } = eoe;
|
|
6638
6633
|
const the_id = element.innerText;
|
|
6639
6634
|
$847e4a06ea6767c0$export$1ac466d53a6636ac(t, the_id, (0, $43683b1103edab15$export$6399bdb2291895e0)(), filter);
|
|
6640
6635
|
});
|
|
@@ -6708,7 +6703,7 @@ function $3abef00489070e23$export$1ff14fec60ed5697(t, filter) {
|
|
|
6708
6703
|
const all_trackers = get_all_function.call(ga);
|
|
6709
6704
|
(0, $649f456f663da9fc$export$de56f1198d121036)("we have trackers", all_trackers);
|
|
6710
6705
|
// @ts-ignore
|
|
6711
|
-
const { P: P
|
|
6706
|
+
const { P: P } = ga;
|
|
6712
6707
|
(0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(modify_trackers_of_iterable)(all_trackers);
|
|
6713
6708
|
if (typeof P?.push === "function") // this check is just so we don't fail if this doesn't exist for some reason, but it always should
|
|
6714
6709
|
P.push = new Proxy(P.push, {
|
|
@@ -7025,8 +7020,8 @@ const $802201ed0a316c43$export$783ef16647773b3d = (0, $511123bb28a7b6f7$export$5
|
|
|
7025
7020
|
|
|
7026
7021
|
|
|
7027
7022
|
|
|
7028
|
-
async function $1813f33dd0fc7e1d$export$b404e20f3c4a490e({ t: t
|
|
7029
|
-
const { dlog: dlog
|
|
7023
|
+
async function $1813f33dd0fc7e1d$export$b404e20f3c4a490e({ t: t, experiment_id: experiment_id, functions_to_variants: functions_to_variants }) {
|
|
7024
|
+
const { dlog: dlog, err: err, Sentry: Sentry } = t, start = new Date().getTime(), optimize = await (0, $d0e7629fb3179e02$export$2fc1a072736ae2f6)(window, "google_optimize"), end = new Date().getTime();
|
|
7030
7025
|
dlog("Waited for google_optimize for", end - start, "ms");
|
|
7031
7026
|
// if (!optimize.get) {
|
|
7032
7027
|
// debugger;
|
|
@@ -7113,7 +7108,7 @@ const $8bed543774ca0dd4$export$b8d1e1d07a3f3776 = (cb)=>{
|
|
|
7113
7108
|
return retval;
|
|
7114
7109
|
};
|
|
7115
7110
|
};
|
|
7116
|
-
function $8bed543774ca0dd4$export$f811d2ce0aa6019b({ surfaces: input_surfaces
|
|
7111
|
+
function $8bed543774ca0dd4$export$f811d2ce0aa6019b({ surfaces: input_surfaces, verb: verb, target: target, remove_after_navigation: remove_after_navigation = true, try_forever: try_forever = false, preserve_elements: preserve_elements = false }) {
|
|
7117
7112
|
const surfaces = input_surfaces.map((s)=>{
|
|
7118
7113
|
let resolve;
|
|
7119
7114
|
const promise = new Promise((r)=>resolve = r);
|
|
@@ -7123,12 +7118,12 @@ function $8bed543774ca0dd4$export$f811d2ce0aa6019b({ surfaces: input_surfaces ,
|
|
|
7123
7118
|
promise_: promise
|
|
7124
7119
|
};
|
|
7125
7120
|
});
|
|
7126
|
-
const { href: href
|
|
7121
|
+
const { href: href } = location;
|
|
7127
7122
|
let context = $8bed543774ca0dd4$var$current_context;
|
|
7128
7123
|
if (typeof target === "string") {
|
|
7129
7124
|
context ??= ++$8bed543774ca0dd4$var$context_counter; // assign a context so that we don't add `undefined` or `null` to failed_contexts
|
|
7130
7125
|
let disconnect_reinsertion_observers;
|
|
7131
|
-
const disconnect_observer = (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(target, ({ element: element
|
|
7126
|
+
const disconnect_observer = (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(target, ({ element: element, disconnector: disconnector })=>{
|
|
7132
7127
|
if ($8bed543774ca0dd4$var$failed_contexts.has(context)) {
|
|
7133
7128
|
disconnector(); // prevent infinite loop
|
|
7134
7129
|
return;
|
|
@@ -7141,7 +7136,7 @@ function $8bed543774ca0dd4$export$f811d2ce0aa6019b({ surfaces: input_surfaces ,
|
|
|
7141
7136
|
if (!context && verb !== "replaceChildren") throw new Error("insert_surface, provided an element, may not be called without a context." + (process.env.DEBUG === "true" ? " Please wrap the function calling it into prevent_infinite_loop(). If you have already done that, make sure that there's no `await` before the calling of insert_surface" : ""));
|
|
7142
7137
|
(0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)($8bed543774ca0dd4$var$actual_insertion)(target, verb, surfaces, try_forever, href, context, remove_after_navigation, preserve_elements);
|
|
7143
7138
|
}
|
|
7144
|
-
return surfaces.map(({ promise_: promise_
|
|
7139
|
+
return surfaces.map(({ promise_: promise_ })=>promise_);
|
|
7145
7140
|
}
|
|
7146
7141
|
const $8bed543774ca0dd4$export$e3f70ef7e3d00501 = /*@__PURE__*/ (0, /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async (target, should_stay_inserted)=>{
|
|
7147
7142
|
const per_el_fn = (el, disconnect_observer)=>{
|
|
@@ -7157,7 +7152,7 @@ const $8bed543774ca0dd4$export$e3f70ef7e3d00501 = /*@__PURE__*/ (0, /*@__PURE__*
|
|
|
7157
7152
|
});
|
|
7158
7153
|
};
|
|
7159
7154
|
if (typeof target == "string") {
|
|
7160
|
-
const disconnect_observer = (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(target, ({ element: element
|
|
7155
|
+
const disconnect_observer = (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(target, ({ element: element, disconnector: disconnector })=>per_el_fn(element, disconnector));
|
|
7161
7156
|
(0, $0d2acf276472ebf7$export$1cd22bab0d2c3b0b)(disconnect_observer);
|
|
7162
7157
|
} else {
|
|
7163
7158
|
let did_already_fail = false;
|
|
@@ -7194,7 +7189,7 @@ function $8bed543774ca0dd4$var$actual_insertion(target, verb, surfaces, try_fore
|
|
|
7194
7189
|
} else if (old_children) target.replaceChildren(...old_children);
|
|
7195
7190
|
else flat_tnodes.forEach((n)=>n.remove());
|
|
7196
7191
|
};
|
|
7197
|
-
const template_nodes = surfaces.map(({ surface_: surface_
|
|
7192
|
+
const template_nodes = surfaces.map(({ surface_: surface_, resolve_promise_: resolve_promise_ })=>{
|
|
7198
7193
|
const [template_els, _get, set] = (0, $49c4fa2e27e642fa$export$3d04c40e7acc1a32)();
|
|
7199
7194
|
(async ()=>{
|
|
7200
7195
|
let surface;
|
|
@@ -7274,8 +7269,8 @@ function $8bed543774ca0dd4$var$deal_w_removal_of_node_array(node_array, push_dis
|
|
|
7274
7269
|
else already_observing_nodes.add(node_to_observe);
|
|
7275
7270
|
const disconnect_observer = (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onremoved(node_to_observe, (eoe)=>{
|
|
7276
7271
|
const mutation_record = eoe.mutation_record; // .onremoved always has a mutation_record
|
|
7277
|
-
const { element: element
|
|
7278
|
-
const { nextSibling: nextSibling
|
|
7272
|
+
const { element: element } = eoe;
|
|
7273
|
+
const { nextSibling: nextSibling, previousSibling: previousSibling, target: target } = mutation_record;
|
|
7279
7274
|
if (previous_parent !== target) {
|
|
7280
7275
|
(0, $649f456f663da9fc$export$de56f1198d121036)(element, "was removed", eoe, "but because a parent got removed we're keeping it that way");
|
|
7281
7276
|
return;
|
|
@@ -7297,7 +7292,7 @@ function $8bed543774ca0dd4$var$deal_w_removal_of_node_array(node_array, push_dis
|
|
|
7297
7292
|
removals_in_last_s++;
|
|
7298
7293
|
setTimeout(()=>removals_in_last_s--, 1000);
|
|
7299
7294
|
(0, $649f456f663da9fc$export$de56f1198d121036)(element, "was removed from DOM,", eoe, "reinserting");
|
|
7300
|
-
const { documentElement: documentElement
|
|
7295
|
+
const { documentElement: documentElement } = document;
|
|
7301
7296
|
// try to get right place, didn't test this
|
|
7302
7297
|
if (nextSibling && documentElement.contains(nextSibling)) nextSibling.before(element);
|
|
7303
7298
|
else if (previousSibling && documentElement.contains(previousSibling)) previousSibling.after(element);
|
|
@@ -7324,7 +7319,7 @@ function $8bed543774ca0dd4$var$deal_w_removal_of_node_array(node_array, push_dis
|
|
|
7324
7319
|
const $78270f2ea7ca229f$export$3b75288f46cadd96 = ()=>new Array((0, $d89638655e64f324$export$bb0a9c36cf454ea0)(3, 8)).fill("⬜").join("");
|
|
7325
7320
|
const $78270f2ea7ca229f$var$make_sel = (image_url, attribute)=>`[${attribute}=${JSON.stringify(image_url)}]`;
|
|
7326
7321
|
const $78270f2ea7ca229f$export$a4eccf92efefa04d = (image_width, image_height, color = "#f6f7f8")=>`data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='${image_width}' height='${image_height}' xmlns:v='https://vecta.io/nano'%3e%3cpath d='M0 0h${image_width}.016v${image_height}.01H0' fill='${encodeURIComponent(color)}'/%3e%3c/svg%3e`;
|
|
7327
|
-
async function $78270f2ea7ca229f$export$2dd69958012e3e49({ override_rec_renderer: override_rec_renderer = (0, $6be99244fa573db5$export$50ce83ace0cdd87e)
|
|
7322
|
+
async function $78270f2ea7ca229f$export$2dd69958012e3e49({ override_rec_renderer: override_rec_renderer = (0, $6be99244fa573db5$export$50ce83ace0cdd87e), image_width: image_width = 2000, image_height: image_height = 2000, num_items: num_items = 10, color: color = "#d9d9d9", on_no_rendering_result: on_no_rendering_result, post_rendering: post_rendering } = {}) {
|
|
7328
7323
|
const image_url = $78270f2ea7ca229f$export$a4eccf92efefa04d(image_width, image_height, color);
|
|
7329
7324
|
return async (t, rendering_options)=>{
|
|
7330
7325
|
// @ts-ignore FIXME: this is a hack to make the type checker happy
|
|
@@ -7371,7 +7366,7 @@ async function $78270f2ea7ca229f$export$2dd69958012e3e49({ override_rec_renderer
|
|
|
7371
7366
|
const [template_els, _get_state, set_state] = (0, $49c4fa2e27e642fa$export$3d04c40e7acc1a32)(placeholder_rendering.elements);
|
|
7372
7367
|
actual_rendering.then(async (rendering_result)=>{
|
|
7373
7368
|
if (typeof post_rendering == "function") await (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(post_rendering)(rendering_result);
|
|
7374
|
-
const { elements: elements
|
|
7369
|
+
const { elements: elements } = rendering_result || {};
|
|
7375
7370
|
await (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).wait_for_element(placeholder_rendering.elements[0]);
|
|
7376
7371
|
// await new Promise(r => window.addEventListener("contextmenu", r, { once: true }));
|
|
7377
7372
|
// it's possible that something after this ruins the array reference (aka [...elements]) and therefore it's not safe to call set_state again before the elements are sure to have a parentElement aka being in the DOM
|
|
@@ -7482,7 +7477,7 @@ function $1dd4146ad893cfb2$export$e647444ed9403635() {
|
|
|
7482
7477
|
|
|
7483
7478
|
function $4a6ab5f7377729b1$export$33d1643df63073a8(fetch_handler) {
|
|
7484
7479
|
fetch_handler = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(fetch_handler);
|
|
7485
|
-
const { prototype: prototype
|
|
7480
|
+
const { prototype: prototype } = XMLHttpRequest;
|
|
7486
7481
|
prototype.open = new Proxy(prototype.open, {
|
|
7487
7482
|
apply (target, this_arg, arg_array) {
|
|
7488
7483
|
if (Array.isArray(arg_array)) {
|
|
@@ -7503,7 +7498,7 @@ async function $4a6ab5f7377729b1$export$c74578d2cd47a84a(send_callback) {
|
|
|
7503
7498
|
$4a6ab5f7377729b1$export$33d1643df63073a8((request, _method, _url, arg_array)=>{
|
|
7504
7499
|
requests.set(request, arg_array);
|
|
7505
7500
|
});
|
|
7506
|
-
const { prototype: prototype
|
|
7501
|
+
const { prototype: prototype } = XMLHttpRequest;
|
|
7507
7502
|
prototype.send = new Proxy(prototype.send, {
|
|
7508
7503
|
apply (target, this_request, arg_list) {
|
|
7509
7504
|
try {
|
|
@@ -7518,7 +7513,7 @@ async function $4a6ab5f7377729b1$export$c74578d2cd47a84a(send_callback) {
|
|
|
7518
7513
|
async function $4a6ab5f7377729b1$export$8e16c51fd2b6507(read_callback) {
|
|
7519
7514
|
const catchified_read_callback = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(read_callback);
|
|
7520
7515
|
const open_send_arg_map = new WeakMap();
|
|
7521
|
-
const { prototype: prototype
|
|
7516
|
+
const { prototype: prototype } = XMLHttpRequest;
|
|
7522
7517
|
const proxy_response = (n)=>{
|
|
7523
7518
|
const prev_desc = Object.getOwnPropertyDescriptor(prototype, n);
|
|
7524
7519
|
const new_desc = {
|
|
@@ -7640,7 +7635,7 @@ function $bbb9f33eb5feb86a$export$2a38b176ce969e2c(orig_url_with_trailing_slash)
|
|
|
7640
7635
|
* @returns If a market specified in `allowed_markets`was found that is returned, `undefined` otherwise
|
|
7641
7636
|
*/ function $eda086e0899e75b0$export$a422d714c8cb1a5d(allowed_markets, url, tenant = process.env.TENANT) {
|
|
7642
7637
|
const u_o = url ? new URL(url) : location;
|
|
7643
|
-
const { hostname: hostname
|
|
7638
|
+
const { hostname: hostname } = u_o;
|
|
7644
7639
|
const is_demosite = process.env.DEBUG === "true" && hostname.endsWith("demo.depict.ai");
|
|
7645
7640
|
// strategy 0: demo sites
|
|
7646
7641
|
if (is_demosite) {
|
|
@@ -7648,7 +7643,7 @@ function $bbb9f33eb5feb86a$export$2a38b176ce969e2c(orig_url_with_trailing_slash)
|
|
|
7648
7643
|
if (allowed_markets.includes(last_in_orig_site)) return last_in_orig_site;
|
|
7649
7644
|
}
|
|
7650
7645
|
// strategy 1 pathname startsWith
|
|
7651
|
-
const { pathname: pathname
|
|
7646
|
+
const { pathname: pathname } = u_o;
|
|
7652
7647
|
const market = allowed_markets.find((v)=>pathname.startsWith("/" + v + "/") || pathname === "/" + v);
|
|
7653
7648
|
if (market) return market;
|
|
7654
7649
|
// strategy 2 <tenant><divider><market>
|
|
@@ -7782,7 +7777,7 @@ const $690d8897acf7a743$export$a739d9a07da7f9ce = (0, $b04e44fad5ea42c7$export$b
|
|
|
7782
7777
|
|
|
7783
7778
|
|
|
7784
7779
|
|
|
7785
|
-
function $769ce417b39aa7d3$export$4a3043e508dd72f0({ children: children
|
|
7780
|
+
function $769ce417b39aa7d3$export$4a3043e508dd72f0({ children: children, ...attributes }) {
|
|
7786
7781
|
const button = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("button", {
|
|
7787
7782
|
...attributes,
|
|
7788
7783
|
type: "button",
|
|
@@ -7798,8 +7793,7 @@ function $769ce417b39aa7d3$export$4a3043e508dd72f0({ children: children , ...att
|
|
|
7798
7793
|
|
|
7799
7794
|
|
|
7800
7795
|
|
|
7801
|
-
|
|
7802
|
-
async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({ title_: title_ , children: children , CloseIcon: CloseIcon }) {
|
|
7796
|
+
async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({ title_: title_, children: children, CloseIcon: CloseIcon }) {
|
|
7803
7797
|
// TODO: make so once can't accidentally have multiple at once
|
|
7804
7798
|
let close_;
|
|
7805
7799
|
const open_promise = new Promise((r)=>close_ = r);
|
|
@@ -7865,7 +7859,7 @@ async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({ title_: title_ , chil
|
|
|
7865
7859
|
easing: "ease-in",
|
|
7866
7860
|
duration: 220
|
|
7867
7861
|
});
|
|
7868
|
-
const handler = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(({ key: key
|
|
7862
|
+
const handler = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(({ key: key })=>{
|
|
7869
7863
|
if (key === "Escape") // make pressing escape close the slidein
|
|
7870
7864
|
close_();
|
|
7871
7865
|
});
|
|
@@ -7911,18 +7905,17 @@ async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({ title_: title_ , chil
|
|
|
7911
7905
|
|
|
7912
7906
|
|
|
7913
7907
|
|
|
7914
|
-
|
|
7915
|
-
async function $72d170fd5c7cb3fe$export$c068ad5361be7646({ title_: title_ , items_: items_ , out_of_stock_text_: out_of_stock_text_ , CloseIcon: CloseIcon }) {
|
|
7908
|
+
async function $72d170fd5c7cb3fe$export$c068ad5361be7646({ title_: title_, items_: items_, out_of_stock_text_: out_of_stock_text_, CloseIcon: CloseIcon }) {
|
|
7916
7909
|
const [exit_oos_iterator, exitable_oos_iterator] = (0, $b8270fcf290bb3af$export$927664b47117acb0)(out_of_stock_text_);
|
|
7917
7910
|
// eslint-disable-line no-async-promise-executor
|
|
7918
7911
|
return new Promise((0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(async (size_selected)=>{
|
|
7919
|
-
const { close_: close_
|
|
7912
|
+
const { close_: close_, on_close_: on_close_ } = await (0, $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90)({
|
|
7920
7913
|
CloseIcon: CloseIcon,
|
|
7921
7914
|
title_: title_,
|
|
7922
7915
|
children: [
|
|
7923
7916
|
(0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
|
|
7924
7917
|
class: "option-list",
|
|
7925
|
-
children: items_.map(({ size_name_: size_name_
|
|
7918
|
+
children: items_.map(({ size_name_: size_name_, is_available_: is_available_, id_: id_ })=>{
|
|
7926
7919
|
const button = (0, $63cbb5de51d11596$export$25062201e9e25d76)("button", {
|
|
7927
7920
|
type: "button",
|
|
7928
7921
|
class: "option" + (is_available_ ? " available" : ""),
|
|
@@ -7953,17 +7946,17 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({ title_: title_ , item
|
|
|
7953
7946
|
}
|
|
7954
7947
|
|
|
7955
7948
|
|
|
7956
|
-
var $
|
|
7957
|
-
$
|
|
7949
|
+
var $b692837734c7379c$exports = {};
|
|
7950
|
+
$b692837734c7379c$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";
|
|
7958
7951
|
|
|
7959
7952
|
|
|
7960
7953
|
|
|
7961
7954
|
|
|
7962
7955
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
7963
|
-
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({ width: width
|
|
7956
|
+
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({ width: width, height: height = "1em", class: extra_classes, style: style = "", ...attributes })=>{
|
|
7964
7957
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
7965
7958
|
// Insert styling on first import
|
|
7966
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
7959
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($b692837734c7379c$exports))));
|
|
7967
7960
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
7968
7961
|
}
|
|
7969
7962
|
return(// @ts-ignore
|
|
@@ -7973,7 +7966,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({ width: width , height: heig
|
|
|
7973
7966
|
...attributes
|
|
7974
7967
|
}));
|
|
7975
7968
|
};
|
|
7976
|
-
const $ad592d9ddbcffe72$export$d613f5b6d0a331a8 = ({ aspect_ratio: aspect_ratio
|
|
7969
|
+
const $ad592d9ddbcffe72$export$d613f5b6d0a331a8 = ({ aspect_ratio: aspect_ratio, ...attributes })=>{
|
|
7977
7970
|
return (0, $63cbb5de51d11596$export$34b9dba7ce09269b)($ad592d9ddbcffe72$export$84712d0562a614b8, {
|
|
7978
7971
|
style: `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`,
|
|
7979
7972
|
...attributes
|
|
@@ -7983,7 +7976,6 @@ const $ad592d9ddbcffe72$export$d613f5b6d0a331a8 = ({ aspect_ratio: aspect_ratio
|
|
|
7983
7976
|
|
|
7984
7977
|
|
|
7985
7978
|
|
|
7986
|
-
|
|
7987
7979
|
const $fbe64cf2cf408e4f$export$97f31f44c68c1d5 = (title, surface_classes = [])=>(0, $b9b0dba897847b2a$export$eb0b9ed911409b57)((e)=>e.classList.add(...surface_classes), (0, $63cbb5de51d11596$export$25062201e9e25d76)("div", {
|
|
7988
7980
|
class: "depict recommendation_container",
|
|
7989
7981
|
children: [
|
|
@@ -7999,7 +7991,6 @@ const $fbe64cf2cf408e4f$export$97f31f44c68c1d5 = (title, surface_classes = [])=>
|
|
|
7999
7991
|
|
|
8000
7992
|
|
|
8001
7993
|
|
|
8002
|
-
|
|
8003
7994
|
const $7693290d077384da$export$32a55d57d151bc5a = ()=>(0, $63cbb5de51d11596$export$25062201e9e25d76)("svg", {
|
|
8004
7995
|
viewBox: "0 0 320 512",
|
|
8005
7996
|
children: [
|
|
@@ -8029,7 +8020,7 @@ const $7693290d077384da$export$ddd70fdae1b350e6 = ()=>(0, $63cbb5de51d11596$expo
|
|
|
8029
8020
|
/**
|
|
8030
8021
|
* Internal color circle used in ColorPicker
|
|
8031
8022
|
* @see {createColorPicker}
|
|
8032
|
-
*/ function $6f1582c15e13f2f0$var$ColorCircle({ color: color
|
|
8023
|
+
*/ function $6f1582c15e13f2f0$var$ColorCircle({ color: color, onClick: onClick, onHoverUpdate: onHoverUpdate }) {
|
|
8033
8024
|
const button = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("button", {
|
|
8034
8025
|
class: "color-circle-container",
|
|
8035
8026
|
onClick: (e)=>onClick(e.currentTarget, color),
|
|
@@ -8047,7 +8038,7 @@ const $7693290d077384da$export$ddd70fdae1b350e6 = ()=>(0, $63cbb5de51d11596$expo
|
|
|
8047
8038
|
button.addEventListener("mouseleave", (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)(()=>onHoverUpdate(button, color, false)));
|
|
8048
8039
|
return button;
|
|
8049
8040
|
}
|
|
8050
|
-
function $6f1582c15e13f2f0$export$590326cc34f49e2d({ colors: colors
|
|
8041
|
+
function $6f1582c15e13f2f0$export$590326cc34f49e2d({ colors: colors, initialColor: initialColor, onSelect: onSelect, selectOnHover: selectOnHover = false, onHoverUpdate: onHoverUpdate, dontSetActiveOnClick: dontSetActiveOnClick, onlyCircles: onlyCircles }) {
|
|
8051
8042
|
let setActiveIndex;
|
|
8052
8043
|
// Don't actually construct anything if the component we return isn't used
|
|
8053
8044
|
return {
|
|
@@ -8109,7 +8100,7 @@ function $6f1582c15e13f2f0$export$590326cc34f49e2d({ colors: colors , initialCol
|
|
|
8109
8100
|
|
|
8110
8101
|
|
|
8111
8102
|
|
|
8112
|
-
const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({ duration: duration = 500
|
|
8103
|
+
const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({ duration: duration = 500, delay: delay = 0 } = {
|
|
8113
8104
|
duration: 500,
|
|
8114
8105
|
delay: 0
|
|
8115
8106
|
})=>{
|
|
@@ -8125,7 +8116,7 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({ duration: duration = 500 ,
|
|
|
8125
8116
|
const get_height = ()=>(child_computed_style() ? parseInt(child_computed_style().marginTop) + parseInt(child_computed_style().marginBottom) + parseInt(child_computed_style().height) : innerRef.clientHeight) + "px";
|
|
8126
8117
|
const get_current_height_possibly_during_transition = ()=>(child_computed_style() && outerRef.style.overflow !== "hidden" ? parseInt(child_computed_style().marginBottom) + parseInt(child_computed_style().marginTop) // don't ask me why we need to do this 😭 but I'm sure it works
|
|
8127
8118
|
: 0) + outerRef.clientHeight + "px";
|
|
8128
|
-
const ExpandingContainer = ({ children: children
|
|
8119
|
+
const ExpandingContainer = ({ children: children })=>{
|
|
8129
8120
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
8130
8121
|
innerRef = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
|
|
8131
8122
|
children: children
|
|
@@ -8191,8 +8182,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({ duration: duration = 500 ,
|
|
|
8191
8182
|
};
|
|
8192
8183
|
|
|
8193
8184
|
|
|
8194
|
-
var $
|
|
8195
|
-
$
|
|
8185
|
+
var $416f6c434d0714cb$exports = {};
|
|
8186
|
+
$416f6c434d0714cb$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";
|
|
8196
8187
|
|
|
8197
8188
|
|
|
8198
8189
|
|
|
@@ -8207,7 +8198,7 @@ function $45af9e834781a9bc$export$f39a7d0667e924a(what_to_watch, sizes_communica
|
|
|
8207
8198
|
let currently_live = false;
|
|
8208
8199
|
const ro = new ResizeObserver((0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((records)=>{
|
|
8209
8200
|
for(let j = 0; j < records.length; j++){
|
|
8210
|
-
const { width: width
|
|
8201
|
+
const { width: width } = records[j].contentRect;
|
|
8211
8202
|
if (!width) continue;
|
|
8212
8203
|
// add extra 5% just in case. + safari is (in some cases) acting a bit questionable and needs a third extra to fill the set width
|
|
8213
8204
|
const new_size = width * 1.05 * ($45af9e834781a9bc$export$a98fc8a2c818d3d8 ? 4 / 3 : 1) * resolution_factor;
|
|
@@ -8215,7 +8206,7 @@ function $45af9e834781a9bc$export$f39a7d0667e924a(what_to_watch, sizes_communica
|
|
|
8215
8206
|
}
|
|
8216
8207
|
}));
|
|
8217
8208
|
// start and stop ResizeObserver to make sure we're not hindering GC
|
|
8218
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).oncreation(what_to_watch, ({ element: element
|
|
8209
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).oncreation(what_to_watch, ({ element: element })=>{
|
|
8219
8210
|
ro.observe(element);
|
|
8220
8211
|
currently_live = true;
|
|
8221
8212
|
});
|
|
@@ -8238,7 +8229,7 @@ function $45af9e834781a9bc$export$f39a7d0667e924a(what_to_watch, sizes_communica
|
|
|
8238
8229
|
const weakrefd_el_to_resize = new WeakRef(el_to_resize);
|
|
8239
8230
|
// if the watched el exits it will run .exit on the IPNS and exit the iterators.
|
|
8240
8231
|
// then if it's recreated, the observer below will restart the iterators.
|
|
8241
|
-
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).oncreation(what_to_watch, async ({ disconnector: disconnector
|
|
8232
|
+
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).oncreation(what_to_watch, async ({ disconnector: disconnector })=>{
|
|
8242
8233
|
const el_to_update = weakrefd_el_to_resize.deref();
|
|
8243
8234
|
if (!el_to_update) {
|
|
8244
8235
|
disconnector(); // we're useless, el got GCd
|
|
@@ -8250,10 +8241,10 @@ function $45af9e834781a9bc$export$f39a7d0667e924a(what_to_watch, sizes_communica
|
|
|
8250
8241
|
// FYI: this will still hold strong references to the els that get their sizes attribute set until the watched el is removed from the DOM and GC'd. I wrote a version before where that's not the case which you can find here: https://gitlab.com/depict-ai/depict.ai/-/merge_requests/1901/diffs?commit_id=111d72c0f58777786dfcc00cc18d76cb0ac96c7c and I didn't end up using because I think it's wasting too many CPU cycles
|
|
8251
8242
|
};
|
|
8252
8243
|
}
|
|
8253
|
-
function $45af9e834781a9bc$export$a62825542f1bfcf5({ what_to_watch: what_to_watch
|
|
8244
|
+
function $45af9e834781a9bc$export$a62825542f1bfcf5({ what_to_watch: what_to_watch, set_dataset: set_dataset = true, formats: formats = [
|
|
8254
8245
|
"webp",
|
|
8255
8246
|
"jpeg"
|
|
8256
|
-
]
|
|
8247
|
+
], resolutions: resolutions = [
|
|
8257
8248
|
64,
|
|
8258
8249
|
128,
|
|
8259
8250
|
256,
|
|
@@ -8263,7 +8254,7 @@ function $45af9e834781a9bc$export$a62825542f1bfcf5({ what_to_watch: what_to_watc
|
|
|
8263
8254
|
1024,
|
|
8264
8255
|
2048,
|
|
8265
8256
|
4096
|
|
8266
|
-
]
|
|
8257
|
+
], sizes_communicator: sizes_communicator, resolution_factor: resolution_factor, market_: market_, sizes_setter_: sizes_setter_ } = {}) {
|
|
8267
8258
|
/**
|
|
8268
8259
|
* We support what_to_watch being optional, meaning we will take the first image we get.
|
|
8269
8260
|
* For that we need to have created the image before being able to create the sizes setter.
|
|
@@ -8347,15 +8338,14 @@ function $45af9e834781a9bc$var$optimized_img_url_generator(format, url, width) {
|
|
|
8347
8338
|
|
|
8348
8339
|
|
|
8349
8340
|
|
|
8350
|
-
|
|
8351
8341
|
const $914971fb43986a16$var$rendering_options_to_sourceset_component = /*@__PURE__*/ new WeakMap();
|
|
8352
8342
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
8353
8343
|
const $914971fb43986a16$var$add_nolazy_to_placeholder = (type)=>type === "placeholder" ? "nolazy" : "";
|
|
8354
8344
|
let $914971fb43986a16$var$inserted = false;
|
|
8355
|
-
const $914971fb43986a16$export$788756b42446dc2d = ({ init_with_placeholder: init_with_placeholder
|
|
8345
|
+
const $914971fb43986a16$export$788756b42446dc2d = ({ init_with_placeholder: init_with_placeholder, ...options })=>{
|
|
8356
8346
|
if (!$914971fb43986a16$var$inserted) {
|
|
8357
8347
|
// Insert styling on first import
|
|
8358
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
8348
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($416f6c434d0714cb$exports))));
|
|
8359
8349
|
$914971fb43986a16$var$inserted = true;
|
|
8360
8350
|
}
|
|
8361
8351
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -8363,7 +8353,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({ init_with_placeholder: init
|
|
|
8363
8353
|
img.querySelectorAll("img").forEach((i)=>i.src = (0, $78270f2ea7ca229f$export$a4eccf92efefa04d)(10000 * options.aspect_ratio, 10000));
|
|
8364
8354
|
return img;
|
|
8365
8355
|
};
|
|
8366
|
-
function $914971fb43986a16$var$Image({ aspect_ratio: aspect_ratio
|
|
8356
|
+
function $914971fb43986a16$var$Image({ aspect_ratio: aspect_ratio, alt: alt, remove_on_error: remove_on_error, rendering_options: rendering_options, srcset_opts: srcset_opts, init_with_placeholder: _, ...image_options }) {
|
|
8367
8357
|
const div = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("div", {
|
|
8368
8358
|
style: `position:relative;width:100%;padding-bottom:${1 / aspect_ratio * 100}%`
|
|
8369
8359
|
});
|
|
@@ -8384,7 +8374,7 @@ function $914971fb43986a16$var$Image({ aspect_ratio: aspect_ratio , alt: alt , r
|
|
|
8384
8374
|
}));
|
|
8385
8375
|
return div;
|
|
8386
8376
|
}
|
|
8387
|
-
function $914971fb43986a16$var$CompatibleImage({ aspect_ratio: aspect_ratio
|
|
8377
|
+
function $914971fb43986a16$var$CompatibleImage({ aspect_ratio: aspect_ratio, alt: alt, remove_on_error: remove_on_error, rendering_options: rendering_options, srcset_opts: srcset_opts, ...image_options }) {
|
|
8388
8378
|
const canvas = (0, $63cbb5de51d11596$export$34b9dba7ce09269b)("canvas", {
|
|
8389
8379
|
class: "depict-img-filler",
|
|
8390
8380
|
width: 3000 * aspect_ratio,
|
|
@@ -8431,9 +8421,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
8431
8421
|
}
|
|
8432
8422
|
|
|
8433
8423
|
|
|
8434
|
-
var $
|
|
8435
|
-
$
|
|
8436
|
-
|
|
8424
|
+
var $fe48021d433d358c$exports = {};
|
|
8425
|
+
$fe48021d433d358c$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";
|
|
8437
8426
|
|
|
8438
8427
|
|
|
8439
8428
|
|
|
@@ -8467,9 +8456,10 @@ function $8483d1d9fcee52ec$var$register_element_for_touch_hover(el, navigation_m
|
|
|
8467
8456
|
function $8483d1d9fcee52ec$var$start_checking_for_touch_hover() {
|
|
8468
8457
|
const currently_hovering = new Map();
|
|
8469
8458
|
const handle_touch_start = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((evt)=>{
|
|
8470
|
-
const touch = evt
|
|
8459
|
+
const touch = evt?.changedTouches?.[0];
|
|
8460
|
+
if (!touch) return; // Eytys dispatches fake touch events without changedTouches
|
|
8471
8461
|
const id = touch.identifier;
|
|
8472
|
-
const { clientX: clientX
|
|
8462
|
+
const { clientX: clientX, clientY: clientY } = touch;
|
|
8473
8463
|
const hover_element = get_hover_element_from_coords(clientX, clientY);
|
|
8474
8464
|
if (hover_element && $8483d1d9fcee52ec$var$touch_hover_elements.has(hover_element)) {
|
|
8475
8465
|
hover_element.classList.add($8483d1d9fcee52ec$var$HOVER_CLASS);
|
|
@@ -8486,7 +8476,9 @@ function $8483d1d9fcee52ec$var$start_checking_for_touch_hover() {
|
|
|
8486
8476
|
});
|
|
8487
8477
|
let last_collision_check = +new Date();
|
|
8488
8478
|
const handle_touch_move = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((evt)=>{
|
|
8489
|
-
const
|
|
8479
|
+
const first_touch = evt?.changedTouches?.[0];
|
|
8480
|
+
if (!first_touch) return;
|
|
8481
|
+
const { identifier: identifier, clientY: clientY, clientX: clientX } = first_touch;
|
|
8490
8482
|
const our_touch_data = currently_hovering.get(identifier);
|
|
8491
8483
|
if (!our_touch_data) return;
|
|
8492
8484
|
if (+new Date() - last_collision_check > $8483d1d9fcee52ec$var$MAX_COLLISION_DETECTION_RATE) {
|
|
@@ -8496,7 +8488,8 @@ function $8483d1d9fcee52ec$var$start_checking_for_touch_hover() {
|
|
|
8496
8488
|
}
|
|
8497
8489
|
});
|
|
8498
8490
|
const handle_touch_cancel = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((evt)=>{
|
|
8499
|
-
const touch = evt
|
|
8491
|
+
const touch = evt?.changedTouches?.[0];
|
|
8492
|
+
if (!touch) return;
|
|
8500
8493
|
const id = touch.identifier;
|
|
8501
8494
|
const info = currently_hovering.get(id);
|
|
8502
8495
|
if (info) clear_hover(id, info, touch.clientX, touch.clientY);
|
|
@@ -8507,7 +8500,7 @@ function $8483d1d9fcee52ec$var$start_checking_for_touch_hover() {
|
|
|
8507
8500
|
return hover_element && $8483d1d9fcee52ec$var$touch_hover_elements.has(hover_element) ? hover_element : null;
|
|
8508
8501
|
};
|
|
8509
8502
|
const clear_hover = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9)((id, info_about_touch, now_x, now_y)=>{
|
|
8510
|
-
const { element_: element_
|
|
8503
|
+
const { element_: element_, start_y_: start_y_, start_x_: start_x_, start_time_: start_time_ } = info_about_touch;
|
|
8511
8504
|
const info = $8483d1d9fcee52ec$var$touch_hover_elements.get(element_);
|
|
8512
8505
|
const now = +new Date();
|
|
8513
8506
|
remove_hover_class: {
|
|
@@ -8537,9 +8530,9 @@ function $8483d1d9fcee52ec$var$start_checking_for_touch_hover() {
|
|
|
8537
8530
|
window.addEventListener($8483d1d9fcee52ec$var$TOUCHCANCEL, handle_touch_cancel);
|
|
8538
8531
|
}
|
|
8539
8532
|
let $8483d1d9fcee52ec$var$styling_inserted = false;
|
|
8540
|
-
const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({ second_src: second_src
|
|
8533
|
+
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 })=>{
|
|
8541
8534
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
8542
|
-
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
8535
|
+
(0, $0a581f1dfa083522$export$59ba1eb2c083f0cd)((0, (/*@__PURE__*/$parcel$interopDefault($fe48021d433d358c$exports))));
|
|
8543
8536
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
8544
8537
|
}
|
|
8545
8538
|
const main_image = (0, $914971fb43986a16$export$788756b42446dc2d)({
|
|
@@ -8567,7 +8560,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({ second_src: second_src , se
|
|
|
8567
8560
|
});
|
|
8568
8561
|
if (no_second_img) return images_container;
|
|
8569
8562
|
const hover_element = images_container;
|
|
8570
|
-
const event_handler_mouse = ({ type: type
|
|
8563
|
+
const event_handler_mouse = ({ type: type })=>{
|
|
8571
8564
|
if (type == $8483d1d9fcee52ec$var$MOUSEOVER) {
|
|
8572
8565
|
images_container.classList.add($8483d1d9fcee52ec$var$HOVER_CLASS);
|
|
8573
8566
|
hover_element.addEventListener($8483d1d9fcee52ec$var$MOUSELEAVE, event_handler_mouse, {
|
|
@@ -8658,9 +8651,14 @@ function $b828952b0fe1df8f$export$98c2b3491e76c1f(R8bit, G8bit, B8bit) {
|
|
|
8658
8651
|
const L = 0.2126 * R + 0.7152 * G + 0.0722 * B;
|
|
8659
8652
|
return L;
|
|
8660
8653
|
}
|
|
8654
|
+
function $b828952b0fe1df8f$export$ca305c142c6fc3cf(hex) {
|
|
8655
|
+
const rgb = hex.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (m, r, g, b)=>"#" + r + r + g + g + b + b)?.substring(1)?.match(/.{2}/g)?.map((x)=>parseInt(x, 16));
|
|
8656
|
+
if (!(rgb?.length === 3 && rgb.every((x)=>typeof x === "number" && x >= 0 && x <= 255))) return null;
|
|
8657
|
+
return rgb;
|
|
8658
|
+
}
|
|
8661
8659
|
|
|
8662
8660
|
|
|
8663
8661
|
(0, $f564adbc4675ceaf$export$2cefb7e61fcbae00)("utilishared", (0, $0766c85d387a9765$export$83d89fbfd8236492));
|
|
8664
8662
|
|
|
8665
8663
|
|
|
8666
|
-
export {$5ea3131c5e08d52e$export$a7e53ec3b3fdd030 as base64_decode_unicode, $5ea3131c5e08d52e$export$a1893782a2a6be0d as base64_encode_unicode, $f809bc98a1cb5f92$export$6f051469dd676a8b as make_plp_recommendations_inserted_handler, $f564adbc4675ceaf$export$60d1d0e3cfc8b9ed as version_info, $f564adbc4675ceaf$export$fe609f0216e4ebef as add_version_query_params, $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$47340c0b196bc0f8 as get_market_locale, $a40013fcba50c9ee$export$c5b68ecd5c37aa6c as get_market_currency, $a40013fcba50c9ee$export$6eea148df5c7117c as MARKET_MAP, $e867e2f1fb3bcc09$export$c7187bbd1a7a9244 as placeholder, $7e2d59b061c2c528$export$cab8bc58c64c2013 as Pro_Slider, $51bbc74e39f5e5c6$export$2e2bcd8739ae039 as simplified_template_tool, $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$c410ce1205e5118a as default_post_processor, $f494377581cfb2b4$export$4f39078bdc72ecd0 as default_pre_processor, $acf11540344875ed$export$2e2bcd8739ae039 as wpff, $cdca9fea6eb103e5$export$12e07a2a9f87578a as ElementObserver, $0b48ba2f40ce6067$export$b6ae1bc530f4c149 as observer, $63cbb5de51d11596$export$34b9dba7ce09269b as jsx, $63cbb5de51d11596$export$25062201e9e25d76 as jsxs, $b9b0dba897847b2a$export$eb0b9ed911409b57 as use_element, $b9b0dba897847b2a$export$f63fcc839cb0f734 as use_listener, $b9b0dba897847b2a$export$22a65337c1b43b1f as classlist, $649f456f663da9fc$export$de56f1198d121036 as dlog, $649f456f663da9fc$export$997143d41f6a0c9b as derror, $649f456f663da9fc$export$c2363754d4758444 as dwarn, $649f456f663da9fc$export$2dd75a6b038dc8cb as set_browser_prefix, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9 as catchify, $b04e44fad5ea42c7$export$f18d5b0af29128b7 as report, $571bce04eb920cd8$export$55fe61489d2c7417 as is_debug, $ca66c9553e84df02$export$6038895ac52bd044 as chevronLeft, $ca66c9553e84df02$export$dc84183312f0c201 as chevronRight, $9a744f57ab06c32e$export$68c017fd93791405 as expandingContainer, $b83068cbd26dcc41$export$3be7054c61590ee3 as Lazyfier, $b83068cbd26dcc41$export$b87d7e0da8b5cbe3 as test_array_proxy_support, $ef9394fafebd5eab$export$692b27c28639e5b9 as Amazing_Slider, $893f9af5dbae6bc8$export$16501883f477737a as colorize_elements, $893f9af5dbae6bc8$export$deca40f48c0569f8 as should_colorizeLogics, $6be99244fa573db5$export$50ce83ace0cdd87e as default_rr, $2d47b009af5bc0a4$export$1bc0df10745d5412 as fetch_recs, $2d47b009af5bc0a4$export$d40679eb4cf32f09 as fetch_recs_whole_response, $5cbe24d064a033ed$export$c42139a43c877ecd as clone_deep, $5cbe24d064a033ed$export$e0009e7da572f99b as regex_templating, $5cbe24d064a033ed$export$a9fc160c5ed83bd7 as Rec_Renderer, $30e801eaa3dc319e$export$17c3166a7ebd4688 as n_col_styling_with_dist, $30e801eaa3dc319e$export$c84671f46d6a1ca as Layout, $30e801eaa3dc319e$export$483bdd1f1186de13 as layout_get_visible_recs_without_partial_rows, $30e801eaa3dc319e$export$3dc5e2383c924ebf as layout_get_total_rec_amount_for_row, $30e801eaa3dc319e$export$717f13d9ba00ca19 as layout_media_query_header, $090b8182afa1b2a6$export$b0a773486c1c2312 as RecommendationGrid, $30f78542ed78cd31$export$82cfdc85a4d15688 as RecommendationSlider, $c1503704e45e6a15$export$6830ae1fbe21e589 as default_click_tracking, $c1503704e45e6a15$export$f37c58ab3d3e3b75 as default_view_tracking, $c1503704e45e6a15$export$dd32cb565eae0a1f as ga_click, $c1503704e45e6a15$export$8d72437623fef90c as gtag_click_post_processor, $c1503704e45e6a15$export$1bffac19f9f0d6fc as gtag_view_post_processor, $c1503704e45e6a15$export$e9106d6e723510d2 as depict_click_tracking_post_processor, $c1503704e45e6a15$export$fb9afe9f540ae069 as recs_inserted_tracking, $c1503704e45e6a15$export$32eb5dd18e963410 as add_to_localstorage, $c1503704e45e6a15$export$9e1caada6901f552 as depict_page_view, $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$419f84efad7d9fe as sizes_to_surface, $159237486410355f$export$417ef0ab13d8b984 as surface_mixer, $159237486410355f$export$be95cb0e8cfd099e as promise_until_next_navigation, $d4ffde0b9fca0369$export$29a6094e0bd8bc5f as AIO, $d4ffde0b9fca0369$export$6ebd242c09192cec as paint_red, $91b2e49f92ed636c$export$2c34560c3749dc63 as bind_to_a2c_button, $91b2e49f92ed636c$export$82a685f2da2fb027 as bind_tracking_to_link, $43683b1103edab15$export$336e7ad40bae0652 as set_depict_id_fn, $43683b1103edab15$export$8a96793bf9f87d90 as set_user_id_fn, $43683b1103edab15$export$6399bdb2291895e0 as get_depict_id, $43683b1103edab15$export$adc61a405a4cabed as get_user_id, $43683b1103edab15$export$15f8a0cd5a8c0ebb as depict_click, $43683b1103edab15$export$82badda1f9923310 as depict_prefilled, $43683b1103edab15$export$9028351cb994757e as depict_add_to_cart, $43683b1103edab15$export$93ae15b1ae509334 as set_session_id_fn, $43683b1103edab15$export$61e7e1f11e96692f as get_session_id, $43683b1103edab15$export$622991c71a1f52b3 as get_cookie, $43683b1103edab15$export$8c6f26a5b6921b95 as get_tracking_event_context_data, $cafa1ff1049985c2$export$72036d950e1fae95 as filter_depict_payload, $cafa1ff1049985c2$export$28cacbd9b4306ffc as send_depict, $cafa1ff1049985c2$export$cc3b6ddf805f6156 as foolproof_send_beacon, $cafa1ff1049985c2$export$608478473a3304a0 as send_depict_unfiltered, $cafa1ff1049985c2$export$aa26019042811d4f as send_websocket, $42bbbba8196bd057$export$674d8cd8b6868154 as create_ga_queue, $42bbbba8196bd057$export$edfedd0557ca5a2d as make_tracker_send_to_depict, $3abef00489070e23$export$1ff14fec60ed5697 as ga_to_transaction_api, $c749fe63b72056ef$export$f75172d2e289cd02 as send_ga, $c749fe63b72056ef$export$ac7296527cb52311 as setup_ga, $c749fe63b72056ef$export$d031e55ccd4c52dc as setup_gtag, $c749fe63b72056ef$export$f522672c9379e339 as gtag_click, $c749fe63b72056ef$export$bf205937e5e012cb as ga_purchase_click, $c749fe63b72056ef$export$127751e82111fcf as ga_rec_click, $c749fe63b72056ef$export$7babcd5d4056b2ca as gtag_view, $c749fe63b72056ef$export$f3354ec2ce95ebd9 as load_gtag, $ccf918da074d7243$export$4205dc6835bc0d9f as send_impression_event, $21285393646b9849$export$37125ccc5dd98050 as impression_track_element, $405969d60b37fdac$export$d0efd8ed14f5c33 as impression_tracking_post_processor, $ccf918da074d7243$export$c543ee4cdb0d0964 as set_impression_threshold, $ccf918da074d7243$export$135da44d0ba958bc as impression_threshold, $ccf918da074d7243$export$ca8321ea61dc2544 as has_to_be_intersecting_for, $61b3c9e5f2cf8171$export$58c56fe2313fdbe3 as add_new_tab_listener, $61b3c9e5f2cf8171$export$836f70a28c317905 as broadcast_product_id, $61b3c9e5f2cf8171$export$8f66c4c7fb96eda2 as contextmenu_callback, $5dbacdc6a3feeb15$export$7e4427e80d5fc619 as optanon_get_cookie_ipns, $5dbacdc6a3feeb15$export$f0f6c846d96fdbec as init_optanon_tracking, $5dbacdc6a3feeb15$export$1dd9ce50e201eff1 as optanon_get_consent, $5dbacdc6a3feeb15$export$7a6d436e0782c6ed as optanon_wait_for_consent, $847e4a06ea6767c0$export$1ac466d53a6636ac as send_transaction_id_to_depict, $847e4a06ea6767c0$export$b11248fa13a8a86c as datalayer_transaction_id_extractor, $847e4a06ea6767c0$export$3ebd86018b39d9d2 as orderpage_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$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$cfef5d5c9ac09253 as standard_price_format, $0bdb8dbcf1bc7f34$export$9590700a594aef08 as ensure_object_path, $0bdb8dbcf1bc7f34$export$925772df9b4d16e5 as ensure_parameter_in_url, $0bdb8dbcf1bc7f34$export$44951404cb8d0583 as html2elems, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787 as html2elem, $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0 as querySelectorAllElements, $0bdb8dbcf1bc7f34$export$785f04709990c4ec as querySelectorUpwards, $0bdb8dbcf1bc7f34$export$f124e3ee16e6b45d as intl_number_format_with_fallback, $0bdb8dbcf1bc7f34$export$d4bd03f19260ef1c as relativify, $d832040ef2097a0e$export$6b75200e58bc97d0 as deduplicate, $d832040ef2097a0e$export$9426572bd5645bc1 as dedup_products, $ead1f6ae93c69da9$export$82539d9817116aff as navigate_with_next_router, $802201ed0a316c43$export$774bc87373c4fc6c as add_item, $802201ed0a316c43$export$337197b94b3bd680 as get_items_in_cart, $802201ed0a316c43$export$783ef16647773b3d as get_shopify_analytics_meta_product, $802201ed0a316c43$export$ab0f802c05dd969b as intercept, $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, $0d2acf276472ebf7$export$7500cdfd37aafd43 as instant_exec_on_suspect_history_change, $607fc90221d440a6$export$e806c6c1615a59ae as async_iterable_ipns, $607fc90221d440a6$export$10c3e52ef388b81b as make_ipns_stateful, $607fc90221d440a6$export$90740b5bc9c2b3b7 as make_ipns_stateless, $ec58be30798d6e95$export$3e42f5078e3abfc0 as make_simple_async_iterable, $ec58be30798d6e95$export$e2c811ae0eb35313 as RawObservableInformation, $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$f811d2ce0aa6019b as insert_surfaces, $8bed543774ca0dd4$export$b8d1e1d07a3f3776 as prevent_infinite_loop, $8bed543774ca0dd4$export$e3f70ef7e3d00501 as revertable_remove, $0a581f1dfa083522$export$59ba1eb2c083f0cd as insert_styling, $0a581f1dfa083522$export$692b606677218a16 as depict_init, $0a581f1dfa083522$export$328e81c44cddf3c0 as depict_init_with_market_logic, $0a581f1dfa083522$export$a4f97b27a0592e6c as normal_get_product_id, $0a581f1dfa083522$export$a96c18473f2af463 as track_a2c, $29407d8301dc2f23$export$515c3ea4d599b05a as javascript_media_query, $39ef887981612535$export$33f937d741e49339 as patched_querySelectorAll, $78270f2ea7ca229f$export$a4eccf92efefa04d as placeholder_svg, $78270f2ea7ca229f$export$2dd69958012e3e49 as make_placeholder_rr, $78270f2ea7ca229f$export$3b75288f46cadd96 as random_text_placeholder, $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$2a1cc61cffa1f36f as rp_relativify_fetch, $bbb9f33eb5feb86a$export$f14a775632a826c4 as rp_relativify_history, $bbb9f33eb5feb86a$export$2a38b176ce969e2c as rp_relativify_xhr, $bbb9f33eb5feb86a$export$83ec13b10b391f13 as default_rp_fixes, $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$79f910a98828378d as variable_setter_to_ipns, $d0e7629fb3179e02$export$d5062f468a0454f3 as find_descriptor, $d0e7629fb3179e02$export$2fc1a072736ae2f6 as is_available_in, $690d8897acf7a743$export$a739d9a07da7f9ce as use_voyado_id, $2cbe7e0ca2ce5438$export$5c069c93d2b7493f as wait, $4a6ab5f7377729b1$export$f314addd5f976083 as xhr_load, $4a6ab5f7377729b1$export$8e16c51fd2b6507 as xhr_read_interceptor, $4a6ab5f7377729b1$export$c74578d2cd47a84a as xhr_send_interceptor, $4a6ab5f7377729b1$export$33d1643df63073a8 as xhr_replace, $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$ddd70fdae1b350e6 as LeftChevron, $7693290d077384da$export$32a55d57d151bc5a as RightChevron, $6f1582c15e13f2f0$export$590326cc34f49e2d as createColorPicker, $7f57d546b5d5b3d6$export$237455ad7e59d4e5 as useExpandingContainer, $8483d1d9fcee52ec$export$2369f6fc1c911576 as ContainedHoverImage, $914971fb43986a16$export$788756b42446dc2d as ContainedImage, $45af9e834781a9bc$export$f39a7d0667e924a as make_sizes_setter, $45af9e834781a9bc$export$a62825542f1bfcf5 as make_sourceset_component, $45af9e834781a9bc$export$a98fc8a2c818d3d8 as is_safari, $45af9e834781a9bc$export$f7c915448031deac as make_url_with_query_params, $45af9e834781a9bc$export$3d13beba9b52c947 as resize_base_url, $6c2b49f3f564b0d1$export$362abebb4b313340 as base_url, $eba382943196079c$export$af2e17a20c2ea3c5 as Sentry, $4d49697a7a9a77a6$export$9dc8f3a0aa3efc85 as camelCasifyObject, $4d49697a7a9a77a6$export$b481488de1caa85 as snakeCasifyObject, $b828952b0fe1df8f$export$499ef00a6a3417f8 as rgb_to_hsl, $b828952b0fe1df8f$export$e4fd3b61e79357a7 as hsl_to_rgb, $b828952b0fe1df8f$export$98c2b3491e76c1f as relative_luminance_from_rgb, $b828952b0fe1df8f$export$486b165479b9284f as hsb_to_rgb, $0766c85d387a9765$export$83d89fbfd8236492 as version, $f564adbc4675ceaf$export$2cefb7e61fcbae00 as add_to_version_info, $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};
|
|
8664
|
+
export {$5ea3131c5e08d52e$export$a7e53ec3b3fdd030 as base64_decode_unicode, $5ea3131c5e08d52e$export$a1893782a2a6be0d as base64_encode_unicode, $f809bc98a1cb5f92$export$6f051469dd676a8b as make_plp_recommendations_inserted_handler, $f564adbc4675ceaf$export$60d1d0e3cfc8b9ed as version_info, $f564adbc4675ceaf$export$fe609f0216e4ebef as add_version_query_params, $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$47340c0b196bc0f8 as get_market_locale, $a40013fcba50c9ee$export$c5b68ecd5c37aa6c as get_market_currency, $a40013fcba50c9ee$export$6eea148df5c7117c as MARKET_MAP, $e867e2f1fb3bcc09$export$c7187bbd1a7a9244 as placeholder, $7e2d59b061c2c528$export$cab8bc58c64c2013 as Pro_Slider, $51bbc74e39f5e5c6$export$2e2bcd8739ae039 as simplified_template_tool, $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$c410ce1205e5118a as default_post_processor, $f494377581cfb2b4$export$4f39078bdc72ecd0 as default_pre_processor, $acf11540344875ed$export$2e2bcd8739ae039 as wpff, $cdca9fea6eb103e5$export$12e07a2a9f87578a as ElementObserver, $0b48ba2f40ce6067$export$b6ae1bc530f4c149 as observer, $63cbb5de51d11596$export$34b9dba7ce09269b as jsx, $63cbb5de51d11596$export$25062201e9e25d76 as jsxs, $b9b0dba897847b2a$export$eb0b9ed911409b57 as use_element, $b9b0dba897847b2a$export$f63fcc839cb0f734 as use_listener, $b9b0dba897847b2a$export$22a65337c1b43b1f as classlist, $649f456f663da9fc$export$de56f1198d121036 as dlog, $649f456f663da9fc$export$997143d41f6a0c9b as derror, $649f456f663da9fc$export$c2363754d4758444 as dwarn, $649f456f663da9fc$export$2dd75a6b038dc8cb as set_browser_prefix, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9 as catchify, $b04e44fad5ea42c7$export$f18d5b0af29128b7 as report, $571bce04eb920cd8$export$55fe61489d2c7417 as is_debug, $ca66c9553e84df02$export$6038895ac52bd044 as chevronLeft, $ca66c9553e84df02$export$dc84183312f0c201 as chevronRight, $9a744f57ab06c32e$export$68c017fd93791405 as expandingContainer, $b83068cbd26dcc41$export$3be7054c61590ee3 as Lazyfier, $b83068cbd26dcc41$export$b87d7e0da8b5cbe3 as test_array_proxy_support, $ef9394fafebd5eab$export$692b27c28639e5b9 as Amazing_Slider, $893f9af5dbae6bc8$export$16501883f477737a as colorize_elements, $893f9af5dbae6bc8$export$deca40f48c0569f8 as should_colorizeLogics, $6be99244fa573db5$export$50ce83ace0cdd87e as default_rr, $2d47b009af5bc0a4$export$1bc0df10745d5412 as fetch_recs, $2d47b009af5bc0a4$export$d40679eb4cf32f09 as fetch_recs_whole_response, $5cbe24d064a033ed$export$c42139a43c877ecd as clone_deep, $5cbe24d064a033ed$export$e0009e7da572f99b as regex_templating, $5cbe24d064a033ed$export$a9fc160c5ed83bd7 as Rec_Renderer, $30e801eaa3dc319e$export$17c3166a7ebd4688 as n_col_styling_with_dist, $30e801eaa3dc319e$export$c84671f46d6a1ca as Layout, $30e801eaa3dc319e$export$483bdd1f1186de13 as layout_get_visible_recs_without_partial_rows, $30e801eaa3dc319e$export$3dc5e2383c924ebf as layout_get_total_rec_amount_for_row, $30e801eaa3dc319e$export$717f13d9ba00ca19 as layout_media_query_header, $090b8182afa1b2a6$export$b0a773486c1c2312 as RecommendationGrid, $30f78542ed78cd31$export$82cfdc85a4d15688 as RecommendationSlider, $c1503704e45e6a15$export$6830ae1fbe21e589 as default_click_tracking, $c1503704e45e6a15$export$f37c58ab3d3e3b75 as default_view_tracking, $c1503704e45e6a15$export$dd32cb565eae0a1f as ga_click, $c1503704e45e6a15$export$8d72437623fef90c as gtag_click_post_processor, $c1503704e45e6a15$export$1bffac19f9f0d6fc as gtag_view_post_processor, $c1503704e45e6a15$export$e9106d6e723510d2 as depict_click_tracking_post_processor, $c1503704e45e6a15$export$fb9afe9f540ae069 as recs_inserted_tracking, $c1503704e45e6a15$export$32eb5dd18e963410 as add_to_localstorage, $c1503704e45e6a15$export$9e1caada6901f552 as depict_page_view, $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$419f84efad7d9fe as sizes_to_surface, $159237486410355f$export$417ef0ab13d8b984 as surface_mixer, $159237486410355f$export$be95cb0e8cfd099e as promise_until_next_navigation, $d4ffde0b9fca0369$export$29a6094e0bd8bc5f as AIO, $d4ffde0b9fca0369$export$6ebd242c09192cec as paint_red, $91b2e49f92ed636c$export$2c34560c3749dc63 as bind_to_a2c_button, $91b2e49f92ed636c$export$82a685f2da2fb027 as bind_tracking_to_link, $43683b1103edab15$export$336e7ad40bae0652 as set_depict_id_fn, $43683b1103edab15$export$8a96793bf9f87d90 as set_user_id_fn, $43683b1103edab15$export$6399bdb2291895e0 as get_depict_id, $43683b1103edab15$export$adc61a405a4cabed as get_user_id, $43683b1103edab15$export$15f8a0cd5a8c0ebb as depict_click, $43683b1103edab15$export$82badda1f9923310 as depict_prefilled, $43683b1103edab15$export$9028351cb994757e as depict_add_to_cart, $43683b1103edab15$export$93ae15b1ae509334 as set_session_id_fn, $43683b1103edab15$export$61e7e1f11e96692f as get_session_id, $43683b1103edab15$export$622991c71a1f52b3 as get_cookie, $43683b1103edab15$export$8c6f26a5b6921b95 as get_tracking_event_context_data, $cafa1ff1049985c2$export$72036d950e1fae95 as filter_depict_payload, $cafa1ff1049985c2$export$28cacbd9b4306ffc as send_depict, $cafa1ff1049985c2$export$cc3b6ddf805f6156 as foolproof_send_beacon, $cafa1ff1049985c2$export$608478473a3304a0 as send_depict_unfiltered, $cafa1ff1049985c2$export$aa26019042811d4f as send_websocket, $42bbbba8196bd057$export$674d8cd8b6868154 as create_ga_queue, $42bbbba8196bd057$export$edfedd0557ca5a2d as make_tracker_send_to_depict, $3abef00489070e23$export$1ff14fec60ed5697 as ga_to_transaction_api, $c749fe63b72056ef$export$f75172d2e289cd02 as send_ga, $c749fe63b72056ef$export$ac7296527cb52311 as setup_ga, $c749fe63b72056ef$export$d031e55ccd4c52dc as setup_gtag, $c749fe63b72056ef$export$f522672c9379e339 as gtag_click, $c749fe63b72056ef$export$bf205937e5e012cb as ga_purchase_click, $c749fe63b72056ef$export$127751e82111fcf as ga_rec_click, $c749fe63b72056ef$export$7babcd5d4056b2ca as gtag_view, $c749fe63b72056ef$export$f3354ec2ce95ebd9 as load_gtag, $ccf918da074d7243$export$4205dc6835bc0d9f as send_impression_event, $21285393646b9849$export$37125ccc5dd98050 as impression_track_element, $405969d60b37fdac$export$d0efd8ed14f5c33 as impression_tracking_post_processor, $ccf918da074d7243$export$c543ee4cdb0d0964 as set_impression_threshold, $ccf918da074d7243$export$135da44d0ba958bc as impression_threshold, $ccf918da074d7243$export$ca8321ea61dc2544 as has_to_be_intersecting_for, $61b3c9e5f2cf8171$export$58c56fe2313fdbe3 as add_new_tab_listener, $61b3c9e5f2cf8171$export$836f70a28c317905 as broadcast_product_id, $61b3c9e5f2cf8171$export$8f66c4c7fb96eda2 as contextmenu_callback, $5dbacdc6a3feeb15$export$7e4427e80d5fc619 as optanon_get_cookie_ipns, $5dbacdc6a3feeb15$export$f0f6c846d96fdbec as init_optanon_tracking, $5dbacdc6a3feeb15$export$1dd9ce50e201eff1 as optanon_get_consent, $5dbacdc6a3feeb15$export$7a6d436e0782c6ed as optanon_wait_for_consent, $847e4a06ea6767c0$export$1ac466d53a6636ac as send_transaction_id_to_depict, $847e4a06ea6767c0$export$b11248fa13a8a86c as datalayer_transaction_id_extractor, $847e4a06ea6767c0$export$3ebd86018b39d9d2 as orderpage_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$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$cfef5d5c9ac09253 as standard_price_format, $0bdb8dbcf1bc7f34$export$9590700a594aef08 as ensure_object_path, $0bdb8dbcf1bc7f34$export$925772df9b4d16e5 as ensure_parameter_in_url, $0bdb8dbcf1bc7f34$export$44951404cb8d0583 as html2elems, $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787 as html2elem, $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0 as querySelectorAllElements, $0bdb8dbcf1bc7f34$export$785f04709990c4ec as querySelectorUpwards, $0bdb8dbcf1bc7f34$export$f124e3ee16e6b45d as intl_number_format_with_fallback, $0bdb8dbcf1bc7f34$export$d4bd03f19260ef1c as relativify, $d832040ef2097a0e$export$6b75200e58bc97d0 as deduplicate, $d832040ef2097a0e$export$9426572bd5645bc1 as dedup_products, $ead1f6ae93c69da9$export$82539d9817116aff as navigate_with_next_router, $802201ed0a316c43$export$774bc87373c4fc6c as add_item, $802201ed0a316c43$export$337197b94b3bd680 as get_items_in_cart, $802201ed0a316c43$export$783ef16647773b3d as get_shopify_analytics_meta_product, $802201ed0a316c43$export$ab0f802c05dd969b as intercept, $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, $0d2acf276472ebf7$export$7500cdfd37aafd43 as instant_exec_on_suspect_history_change, $607fc90221d440a6$export$e806c6c1615a59ae as async_iterable_ipns, $607fc90221d440a6$export$10c3e52ef388b81b as make_ipns_stateful, $607fc90221d440a6$export$90740b5bc9c2b3b7 as make_ipns_stateless, $ec58be30798d6e95$export$3e42f5078e3abfc0 as make_simple_async_iterable, $ec58be30798d6e95$export$e2c811ae0eb35313 as RawObservableInformation, $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$f811d2ce0aa6019b as insert_surfaces, $8bed543774ca0dd4$export$b8d1e1d07a3f3776 as prevent_infinite_loop, $8bed543774ca0dd4$export$e3f70ef7e3d00501 as revertable_remove, $0a581f1dfa083522$export$59ba1eb2c083f0cd as insert_styling, $0a581f1dfa083522$export$692b606677218a16 as depict_init, $0a581f1dfa083522$export$328e81c44cddf3c0 as depict_init_with_market_logic, $0a581f1dfa083522$export$a4f97b27a0592e6c as normal_get_product_id, $0a581f1dfa083522$export$a96c18473f2af463 as track_a2c, $29407d8301dc2f23$export$515c3ea4d599b05a as javascript_media_query, $39ef887981612535$export$33f937d741e49339 as patched_querySelectorAll, $78270f2ea7ca229f$export$a4eccf92efefa04d as placeholder_svg, $78270f2ea7ca229f$export$2dd69958012e3e49 as make_placeholder_rr, $78270f2ea7ca229f$export$3b75288f46cadd96 as random_text_placeholder, $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$2a1cc61cffa1f36f as rp_relativify_fetch, $bbb9f33eb5feb86a$export$f14a775632a826c4 as rp_relativify_history, $bbb9f33eb5feb86a$export$2a38b176ce969e2c as rp_relativify_xhr, $bbb9f33eb5feb86a$export$83ec13b10b391f13 as default_rp_fixes, $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$79f910a98828378d as variable_setter_to_ipns, $d0e7629fb3179e02$export$d5062f468a0454f3 as find_descriptor, $d0e7629fb3179e02$export$2fc1a072736ae2f6 as is_available_in, $690d8897acf7a743$export$a739d9a07da7f9ce as use_voyado_id, $2cbe7e0ca2ce5438$export$5c069c93d2b7493f as wait, $4a6ab5f7377729b1$export$f314addd5f976083 as xhr_load, $4a6ab5f7377729b1$export$8e16c51fd2b6507 as xhr_read_interceptor, $4a6ab5f7377729b1$export$c74578d2cd47a84a as xhr_send_interceptor, $4a6ab5f7377729b1$export$33d1643df63073a8 as xhr_replace, $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$ddd70fdae1b350e6 as LeftChevron, $7693290d077384da$export$32a55d57d151bc5a as RightChevron, $6f1582c15e13f2f0$export$590326cc34f49e2d as createColorPicker, $7f57d546b5d5b3d6$export$237455ad7e59d4e5 as useExpandingContainer, $8483d1d9fcee52ec$export$2369f6fc1c911576 as ContainedHoverImage, $914971fb43986a16$export$788756b42446dc2d as ContainedImage, $45af9e834781a9bc$export$f39a7d0667e924a as make_sizes_setter, $45af9e834781a9bc$export$a62825542f1bfcf5 as make_sourceset_component, $45af9e834781a9bc$export$a98fc8a2c818d3d8 as is_safari, $45af9e834781a9bc$export$f7c915448031deac as make_url_with_query_params, $45af9e834781a9bc$export$3d13beba9b52c947 as resize_base_url, $6c2b49f3f564b0d1$export$362abebb4b313340 as base_url, $eba382943196079c$export$af2e17a20c2ea3c5 as Sentry, $4d49697a7a9a77a6$export$9dc8f3a0aa3efc85 as camelCasifyObject, $4d49697a7a9a77a6$export$b481488de1caa85 as snakeCasifyObject, $b828952b0fe1df8f$export$499ef00a6a3417f8 as rgb_to_hsl, $b828952b0fe1df8f$export$e4fd3b61e79357a7 as hsl_to_rgb, $b828952b0fe1df8f$export$98c2b3491e76c1f as relative_luminance_from_rgb, $b828952b0fe1df8f$export$486b165479b9284f as hsb_to_rgb, $b828952b0fe1df8f$export$ca305c142c6fc3cf as hex_to_rgb, $0766c85d387a9765$export$83d89fbfd8236492 as version, $f564adbc4675ceaf$export$2cefb7e61fcbae00 as add_to_version_info, $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};
|