@depict-ai/utilishared 1.0.51 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ES10/index.cjs +55 -183
- package/ES10/index.d.ts +9 -25
- package/ES10/index.js +52 -174
- package/latest/index.cjs +54 -183
- package/latest/index.d.ts +9 -25
- package/latest/index.js +51 -174
- package/package.json +4 -4
package/latest/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
12
12
|
function $parcel$interopDefault(a) {
|
|
13
13
|
return a && a.__esModule ? a.default : a;
|
|
14
14
|
}
|
|
15
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "
|
|
15
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.1";
|
|
16
16
|
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"))();
|
|
17
17
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
18
18
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -890,7 +890,7 @@ function $460df8550f9d084d$export$a6db784f019668ba() {
|
|
|
890
890
|
const $6c2b49f3f564b0d1$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
|
|
891
891
|
const $cafa1ff1049985c2$var$c = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9);
|
|
892
892
|
const $cafa1ff1049985c2$var$ws_instance = /*@__PURE__*/$cafa1ff1049985c2$var$c(() => new (0, $4ce764ddfee055ef$export$1d9c6fddbff3441f)("wss://ws.depict.ai/ws/create-events"))();
|
|
893
|
-
const $cafa1ff1049985c2$var$allowed_keys = ["tenant", "market", "type", "
|
|
893
|
+
const $cafa1ff1049985c2$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
|
|
894
894
|
const $cafa1ff1049985c2$export$72036d950e1fae95 = /*@__PURE__*/$cafa1ff1049985c2$var$c(payload => {
|
|
895
895
|
if (process.env.DEPICT === "false") return;
|
|
896
896
|
return payload.map(body => Object.fromEntries(Object.entries(body).filter(([key, value]) => $cafa1ff1049985c2$var$allowed_keys.includes(key) && value != null)));
|
|
@@ -961,12 +961,13 @@ const $cafa1ff1049985c2$export$28cacbd9b4306ffc = /*@__PURE__*/$cafa1ff1049985c2
|
|
|
961
961
|
// filter_depict_payload will only return undefined if process.env.DEPICT === "false"
|
|
962
962
|
return $cafa1ff1049985c2$export$608478473a3304a0($cafa1ff1049985c2$export$72036d950e1fae95(payload), use_ws);
|
|
963
963
|
});
|
|
964
|
-
let $43683b1103edab15$export$
|
|
964
|
+
let $43683b1103edab15$export$61e7e1f11e96692f = () => {
|
|
965
965
|
if (typeof document === "undefined") return "server";
|
|
966
966
|
let id = "";
|
|
967
967
|
let localstorage_error;
|
|
968
968
|
let cookie_error;
|
|
969
969
|
try {
|
|
970
|
+
// localStorage._dep_id also accessed directly by depict-purchase-tracking Shopify web pixel
|
|
970
971
|
id = localStorage._dep_id ||= $460df8550f9d084d$export$656831b7e9c341c3();
|
|
971
972
|
} catch (e) {
|
|
972
973
|
$649f456f663da9fc$export$de56f1198d121036("Can't use localStorage", e);
|
|
@@ -1000,16 +1001,10 @@ let $43683b1103edab15$export$6399bdb2291895e0 = () => {
|
|
|
1000
1001
|
if (!id) id = $460df8550f9d084d$export$656831b7e9c341c3();
|
|
1001
1002
|
return id;
|
|
1002
1003
|
};
|
|
1003
|
-
let $43683b1103edab15$export$adc61a405a4cabed = $43683b1103edab15$export$6399bdb2291895e0;
|
|
1004
|
-
let $43683b1103edab15$export$61e7e1f11e96692f = () => undefined;
|
|
1005
|
-
const $43683b1103edab15$export$336e7ad40bae0652 = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9(newfn => $43683b1103edab15$export$6399bdb2291895e0 = newfn);
|
|
1006
|
-
const $43683b1103edab15$export$8a96793bf9f87d90 = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9(newfn => $43683b1103edab15$export$adc61a405a4cabed = newfn);
|
|
1007
1004
|
const $43683b1103edab15$export$93ae15b1ae509334 = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9(newfn => $43683b1103edab15$export$61e7e1f11e96692f = newfn);
|
|
1008
1005
|
const $43683b1103edab15$export$8c6f26a5b6921b95 = /*@__PURE__*/() => {
|
|
1009
1006
|
return {
|
|
1010
1007
|
session_id: $43683b1103edab15$export$61e7e1f11e96692f(),
|
|
1011
|
-
user_id: $43683b1103edab15$export$adc61a405a4cabed(),
|
|
1012
|
-
dsid: $43683b1103edab15$export$6399bdb2291895e0(),
|
|
1013
1008
|
url: document.location.href,
|
|
1014
1009
|
document_width: window.innerWidth,
|
|
1015
1010
|
document_referrer: document?.referrer
|
|
@@ -2261,14 +2256,12 @@ function $155540b3b8aca771$export$8827362e5e938d26() {
|
|
|
2261
2256
|
const $155540b3b8aca771$export$abec7fd9f0b9cc22 = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9(async (anon_id = "anonymous") => {
|
|
2262
2257
|
$649f456f663da9fc$export$de56f1198d121036("Initializing Cookiebot tracking");
|
|
2263
2258
|
if (!$155540b3b8aca771$var$required_consent_level) return $649f456f663da9fc$export$de56f1198d121036("No consent level set for Depict tracking. Ignoring consent and tracking everything.");
|
|
2264
|
-
const
|
|
2265
|
-
|
|
2266
|
-
$43683b1103edab15$export$336e7ad40bae0652(() => $155540b3b8aca771$var$has_consent ? original_get_depict_id() : anon_id);
|
|
2267
|
-
$43683b1103edab15$export$8a96793bf9f87d90(() => $155540b3b8aca771$var$has_consent ? original_get_user_id() : anon_id);
|
|
2259
|
+
const original_get_session_id = (0, $43683b1103edab15$export$61e7e1f11e96692f);
|
|
2260
|
+
$43683b1103edab15$export$93ae15b1ae509334(() => $155540b3b8aca771$var$has_consent ? original_get_session_id() : anon_id);
|
|
2268
2261
|
for await (const consent_obj of $155540b3b8aca771$export$8827362e5e938d26()) {
|
|
2269
2262
|
// Changing this will change the return value of function given to set_depict_id_fn above
|
|
2270
2263
|
$155540b3b8aca771$var$has_consent = consent_obj[$155540b3b8aca771$var$required_consent_level];
|
|
2271
|
-
if (!$155540b3b8aca771$var$has_consent) $649f456f663da9fc$export$de56f1198d121036(`dsid
|
|
2264
|
+
if (!$155540b3b8aca771$var$has_consent) $649f456f663da9fc$export$de56f1198d121036(`dsid will be set to, "${anon_id}", until Cookiebot has consent for "${$155540b3b8aca771$var$required_consent_level}"`);else $649f456f663da9fc$export$de56f1198d121036(`Cookiebot obtained consent for "${$155540b3b8aca771$var$required_consent_level}", will use true dsid/session_id`);
|
|
2272
2265
|
}
|
|
2273
2266
|
});
|
|
2274
2267
|
const $5dbacdc6a3feeb15$var$required_consent_level = process.env.DEPICT_TRACKING_CONSENT_LEVEL;
|
|
@@ -2327,14 +2320,12 @@ function $5dbacdc6a3feeb15$export$7e4427e80d5fc619() {
|
|
|
2327
2320
|
const $5dbacdc6a3feeb15$export$f0f6c846d96fdbec = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9(async (anon_id = "anonymous") => {
|
|
2328
2321
|
$649f456f663da9fc$export$de56f1198d121036("Initializing OptAnon tracking");
|
|
2329
2322
|
if (!$5dbacdc6a3feeb15$var$required_consent_level) return $649f456f663da9fc$export$de56f1198d121036("No consent level set for Depict tracking. Ignoring consent and tracking everything.");
|
|
2330
|
-
const
|
|
2331
|
-
|
|
2332
|
-
$43683b1103edab15$export$336e7ad40bae0652(() => $5dbacdc6a3feeb15$var$has_consent ? original_get_depict_id() : anon_id);
|
|
2333
|
-
$43683b1103edab15$export$8a96793bf9f87d90(() => $5dbacdc6a3feeb15$var$has_consent ? original_get_user_id() : anon_id);
|
|
2323
|
+
const original_get_session_id = (0, $43683b1103edab15$export$61e7e1f11e96692f);
|
|
2324
|
+
$43683b1103edab15$export$93ae15b1ae509334(() => $5dbacdc6a3feeb15$var$has_consent ? original_get_session_id() : anon_id);
|
|
2334
2325
|
for await (const consent_obj of $5dbacdc6a3feeb15$export$7e4427e80d5fc619()) {
|
|
2335
2326
|
// Changing this will change the return value of function given to set_depict_id_fn above
|
|
2336
2327
|
$5dbacdc6a3feeb15$var$has_consent = consent_obj[$5dbacdc6a3feeb15$var$required_consent_level];
|
|
2337
|
-
if (!$5dbacdc6a3feeb15$var$has_consent) $649f456f663da9fc$export$de56f1198d121036(`dsid/
|
|
2328
|
+
if (!$5dbacdc6a3feeb15$var$has_consent) $649f456f663da9fc$export$de56f1198d121036(`dsid/session_id will be set to, "${anon_id}", until Optanon has consent for "${$5dbacdc6a3feeb15$var$required_consent_level}"`);else $649f456f663da9fc$export$de56f1198d121036(`Optanon obtained consent for "${$5dbacdc6a3feeb15$var$required_consent_level}", will use true dsid/session_id`);
|
|
2338
2329
|
}
|
|
2339
2330
|
});
|
|
2340
2331
|
const $c749fe63b72056ef$var$g = typeof globalThis == "object" && globalThis || window;
|
|
@@ -2913,15 +2904,11 @@ async function $2d47b009af5bc0a4$export$1bc0df10745d5412(t, options, headers, ge
|
|
|
2913
2904
|
return res?.displays || [];
|
|
2914
2905
|
}
|
|
2915
2906
|
async function $2d47b009af5bc0a4$export$d40679eb4cf32f09(t, options, headers, get_url = $2d47b009af5bc0a4$var$default_get_fetch_url) {
|
|
2916
|
-
const dsid = $43683b1103edab15$export$6399bdb2291895e0();
|
|
2917
2907
|
const session_id = options.session_id || $43683b1103edab15$export$61e7e1f11e96692f();
|
|
2918
|
-
const user_id = options.user_id || dsid;
|
|
2919
2908
|
const body = {
|
|
2920
2909
|
tenant: t.tenant,
|
|
2921
2910
|
market: t.market,
|
|
2922
|
-
user_id: user_id,
|
|
2923
2911
|
session_id: session_id,
|
|
2924
|
-
dsid: dsid,
|
|
2925
2912
|
document_referrer: document.referrer,
|
|
2926
2913
|
...options
|
|
2927
2914
|
};
|
|
@@ -3607,7 +3594,7 @@ class $b83068cbd26dcc41$export$3be7054c61590ee3 {
|
|
|
3607
3594
|
for (let i = 0; i < mutations.length; i++) {
|
|
3608
3595
|
const matching_added_els = $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0(mutations[i].addedNodes, this.selector);
|
|
3609
3596
|
if (matching_added_els.length) {
|
|
3610
|
-
if (this.#verbose) $649f456f663da9fc$export$de56f1198d121036("New elements", matching_added_els, " matching selector", this.selector, "were aded to", container, "lazyloading
|
|
3597
|
+
if (this.#verbose) $649f456f663da9fc$export$de56f1198d121036("New elements", matching_added_els, " matching selector", this.selector, "were aded to", container, "lazyloading\u2026");
|
|
3611
3598
|
this.lazyfinder.elements.push(...matching_added_els);
|
|
3612
3599
|
matching_added_els.forEach(this.#initiate_new_image.bind(this));
|
|
3613
3600
|
}
|
|
@@ -4608,7 +4595,7 @@ class $366fff12da348e66$export$1a8782481a9af507 {
|
|
|
4608
4595
|
let itemTemplate;
|
|
4609
4596
|
if (item.sale_price !== item.original_price) {
|
|
4610
4597
|
itemTemplate = template.replaceAll($366fff12da348e66$var$discountMatcher, "$1").replaceAll($366fff12da348e66$var$noDiscountMatcher, "");
|
|
4611
|
-
item.discount =
|
|
4598
|
+
item.discount = `\u{2013}${Math.round(100 * (1 - item.sale_price / item.original_price))}%`;
|
|
4612
4599
|
} else {
|
|
4613
4600
|
itemTemplate = template.replaceAll($366fff12da348e66$var$discountMatcher, "").replaceAll($366fff12da348e66$var$noDiscountMatcher, "$1");
|
|
4614
4601
|
item.discount = "";
|
|
@@ -4702,8 +4689,8 @@ $51bbc74e39f5e5c6$export$2e2bcd8739ae039 = async options => {
|
|
|
4702
4689
|
};
|
|
4703
4690
|
|
|
4704
4691
|
// @ts-ignore
|
|
4705
|
-
var $
|
|
4706
|
-
$
|
|
4692
|
+
var $413613e86d0ffb68$exports = {};
|
|
4693
|
+
$413613e86d0ffb68$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";
|
|
4707
4694
|
const $762a881271a51d1b$var$default_image_src = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjYsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iOSwyLjYgOC4zLDMuNCAxMi40LDcuNSAxLjYsNy41IDEuNiw4LjUgMTIuNCw4LjUgOC4zLDEyLjYgOSwxMy40IDE0LjQsOCAiLz4NCjwvc3ZnPg0K";
|
|
4708
4695
|
class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$export$68babfc5be0de5da) {
|
|
4709
4696
|
constructor(static_options, override_lazyfier_options) {
|
|
@@ -4734,7 +4721,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
4734
4721
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
4735
4722
|
const style_elem = document.createElement("style");
|
|
4736
4723
|
style_elem.type = "text/css";
|
|
4737
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
4724
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($413613e86d0ffb68$exports)));
|
|
4738
4725
|
slider.container.appendChild(style_elem);
|
|
4739
4726
|
}
|
|
4740
4727
|
async function $e61f371a9bcdeb2f$export$cd12721587f4f16d(t, rendering_options, options_for_us, slider_options, override_lazyfier_options) {
|
|
@@ -4782,7 +4769,7 @@ async function $e61f371a9bcdeb2f$export$cd12721587f4f16d(t, rendering_options, o
|
|
|
4782
4769
|
elements: container ? container : [slider.container]
|
|
4783
4770
|
};
|
|
4784
4771
|
}
|
|
4785
|
-
async function $
|
|
4772
|
+
async function $d352a8202024de5c$export$30933c637c977eef({
|
|
4786
4773
|
t: t,
|
|
4787
4774
|
recs: recs,
|
|
4788
4775
|
title: title,
|
|
@@ -4799,7 +4786,8 @@ async function $f494377581cfb2b4$export$30933c637c977eef({
|
|
|
4799
4786
|
template,
|
|
4800
4787
|
// recommendation template
|
|
4801
4788
|
chunk_size_for_load_more = 4,
|
|
4802
|
-
insertion_promise: insertion_promise
|
|
4789
|
+
insertion_promise: insertion_promise,
|
|
4790
|
+
view_more_text: view_more_text
|
|
4803
4791
|
}) {
|
|
4804
4792
|
const {
|
|
4805
4793
|
catchify: catchify,
|
|
@@ -4871,8 +4859,8 @@ async function $f494377581cfb2b4$export$30933c637c977eef({
|
|
|
4871
4859
|
}, items);
|
|
4872
4860
|
}
|
|
4873
4861
|
});
|
|
4874
|
-
if (with_loadmore) catchify($
|
|
4875
|
-
if (infinite_scroll) catchify($
|
|
4862
|
+
if (with_loadmore) catchify($d352a8202024de5c$var$setup_load_more)(t, root, chunk_size_for_load_more, view_more_text);
|
|
4863
|
+
if (infinite_scroll) catchify($d352a8202024de5c$var$setup_infinite_scroll)(t, root);
|
|
4876
4864
|
if (title) {
|
|
4877
4865
|
const [title_element] = $0bdb8dbcf1bc7f34$export$5e63aea0cac01fa0(container, "h1.title, h2.title, h3.title, h4.title, h5.title, h6.title");
|
|
4878
4866
|
if (title_element) {
|
|
@@ -4881,7 +4869,7 @@ async function $f494377581cfb2b4$export$30933c637c977eef({
|
|
|
4881
4869
|
}
|
|
4882
4870
|
if (template_tool?.data?.length) return container;else dlog("Didn't get recs from API", template_tool);
|
|
4883
4871
|
}
|
|
4884
|
-
function $
|
|
4872
|
+
function $d352a8202024de5c$var$setup_infinite_scroll(t, root) {
|
|
4885
4873
|
const {
|
|
4886
4874
|
dlog: dlog,
|
|
4887
4875
|
catchify: catchify
|
|
@@ -4897,14 +4885,14 @@ function $f494377581cfb2b4$var$setup_infinite_scroll(t, root) {
|
|
|
4897
4885
|
records.forEach(record => {
|
|
4898
4886
|
if (record.isIntersecting && record.target == get_last_visible_el()) {
|
|
4899
4887
|
dlog("Loading more recs because of", record);
|
|
4900
|
-
if ($
|
|
4888
|
+
if ($d352a8202024de5c$var$load_more_elements(root)) $d352a8202024de5c$var$setup_infinite_scroll(t, root);
|
|
4901
4889
|
}
|
|
4902
4890
|
});
|
|
4903
4891
|
}));
|
|
4904
4892
|
dlog("starting to intersection observe", last_visible_el, "for infinite scroll");
|
|
4905
4893
|
intersection_observer.observe(last_visible_el);
|
|
4906
4894
|
}
|
|
4907
|
-
function $
|
|
4895
|
+
function $d352a8202024de5c$var$load_more_elements(root, chunk_size = 4) {
|
|
4908
4896
|
const hidden_elements = root.querySelectorAll("a.rec_outer.not_visible");
|
|
4909
4897
|
let i = 0;
|
|
4910
4898
|
for (; i < Math.min(hidden_elements.length, chunk_size); i++) {
|
|
@@ -4915,22 +4903,25 @@ function $f494377581cfb2b4$var$load_more_elements(root, chunk_size = 4) {
|
|
|
4915
4903
|
const has_more = i >= chunk_size && hidden_elements.length > chunk_size;
|
|
4916
4904
|
return has_more;
|
|
4917
4905
|
}
|
|
4918
|
-
function $
|
|
4906
|
+
function $d352a8202024de5c$var$setup_load_more(t, root, chunk_size, view_more_text = "Visa mer") {
|
|
4919
4907
|
const {
|
|
4920
4908
|
catchify: catchify
|
|
4921
4909
|
} = t,
|
|
4922
4910
|
load_more_cont = $0bdb8dbcf1bc7f34$export$d3e2a0560cbf4787(`<div class="load-more-container"></div>`),
|
|
4923
|
-
load_button = load_more_cont.appendChild($
|
|
4911
|
+
load_button = load_more_cont.appendChild($63cbb5de51d11596$export$34b9dba7ce09269b("button", {
|
|
4912
|
+
class: "load_more",
|
|
4913
|
+
children: view_more_text
|
|
4914
|
+
}));
|
|
4924
4915
|
load_button.addEventListener("click", catchify(load_more_recs_and_hide_button_if_needed));
|
|
4925
4916
|
root.after(load_more_cont);
|
|
4926
4917
|
load_more_recs_and_hide_button_if_needed();
|
|
4927
4918
|
function load_more_recs_and_hide_button_if_needed() {
|
|
4928
|
-
if (!$
|
|
4919
|
+
if (!$d352a8202024de5c$var$load_more_elements(root, chunk_size))
|
|
4929
4920
|
// there aren't any recs left to display
|
|
4930
4921
|
load_button.classList.add("not_visible");
|
|
4931
4922
|
}
|
|
4932
4923
|
}
|
|
4933
|
-
function $
|
|
4924
|
+
function $d352a8202024de5c$export$4f39078bdc72ecd0(_t, d, i, with_loadmore, with_slider, infinite_scroll) {
|
|
4934
4925
|
d.class ||= "";
|
|
4935
4926
|
if (infinite_scroll) d.class = i >= 4 ? "not_visible" : ""; // this will make it hold image loading until .load_image is called on .rec_outer
|
|
4936
4927
|
if (with_loadmore) d.class = "not_visible";
|
|
@@ -4938,7 +4929,7 @@ function $f494377581cfb2b4$export$4f39078bdc72ecd0(_t, d, i, with_loadmore, with
|
|
|
4938
4929
|
if (!d.percentage_off || d.percentage_off < 10) d.percentage_off = "";
|
|
4939
4930
|
return d;
|
|
4940
4931
|
}
|
|
4941
|
-
function $
|
|
4932
|
+
function $d352a8202024de5c$export$c410ce1205e5118a(_t, itms, d, slider) {
|
|
4942
4933
|
for (const item of itms) {
|
|
4943
4934
|
const {
|
|
4944
4935
|
image_url: image_url
|
|
@@ -5347,8 +5338,8 @@ async function $090b8182afa1b2a6$export$b0a773486c1c2312(t, recommendation_rende
|
|
|
5347
5338
|
}
|
|
5348
5339
|
|
|
5349
5340
|
// @ts-ignore
|
|
5350
|
-
var $
|
|
5351
|
-
$
|
|
5341
|
+
var $9ce43cb18264f271$exports = {};
|
|
5342
|
+
$9ce43cb18264f271$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";
|
|
5352
5343
|
let $30f78542ed78cd31$var$slider_styling_was_inserted = false;
|
|
5353
5344
|
async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_renderer_options, {
|
|
5354
5345
|
container_elements: container_elements,
|
|
@@ -5371,7 +5362,7 @@ async function $30f78542ed78cd31$export$82cfdc85a4d15688(t, recommendation_rende
|
|
|
5371
5362
|
if (!elements) return rendering_result;
|
|
5372
5363
|
if (!$30f78542ed78cd31$var$slider_styling_was_inserted) {
|
|
5373
5364
|
$30f78542ed78cd31$var$slider_styling_was_inserted = true;
|
|
5374
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5365
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($9ce43cb18264f271$exports)));
|
|
5375
5366
|
}
|
|
5376
5367
|
insertion_point.replaceWith(slider.container);
|
|
5377
5368
|
slider.insert_here.append(...elements);
|
|
@@ -6258,7 +6249,7 @@ function $847e4a06ea6767c0$export$3ebd86018b39d9d2(t, selector, filter) {
|
|
|
6258
6249
|
element: element
|
|
6259
6250
|
} = eoe;
|
|
6260
6251
|
const the_id = element.innerText;
|
|
6261
|
-
$847e4a06ea6767c0$export$1ac466d53a6636ac(t, the_id, $43683b1103edab15$export$
|
|
6252
|
+
$847e4a06ea6767c0$export$1ac466d53a6636ac(t, the_id, $43683b1103edab15$export$61e7e1f11e96692f(), filter);
|
|
6262
6253
|
});
|
|
6263
6254
|
}
|
|
6264
6255
|
function $847e4a06ea6767c0$export$b11248fa13a8a86c(tenant, id_extractor) {
|
|
@@ -6294,7 +6285,7 @@ function $847e4a06ea6767c0$export$ff8673d5dea82bd4(tenant, id_extractor) {
|
|
|
6294
6285
|
}
|
|
6295
6286
|
})().catch(e => $b04e44fad5ea42c7$export$f18d5b0af29128b7([e, "Extracting and sending transaction IDs from URL failed"], "warning"));
|
|
6296
6287
|
}
|
|
6297
|
-
function $847e4a06ea6767c0$export$1ac466d53a6636ac(t, input_id,
|
|
6288
|
+
function $847e4a06ea6767c0$export$1ac466d53a6636ac(t, input_id, session_id = $43683b1103edab15$export$61e7e1f11e96692f(), filter) {
|
|
6298
6289
|
const transaction_id = typeof filter == "function" ? filter(input_id) : input_id;
|
|
6299
6290
|
if (!transaction_id) {
|
|
6300
6291
|
$649f456f663da9fc$export$de56f1198d121036("Not sending", transaction_id, "because it didn't pass filter");
|
|
@@ -6307,7 +6298,7 @@ function $847e4a06ea6767c0$export$1ac466d53a6636ac(t, input_id, dsid = $43683b11
|
|
|
6307
6298
|
events: [{
|
|
6308
6299
|
event_type: "transaction_mapping",
|
|
6309
6300
|
transaction_id: transaction_id,
|
|
6310
|
-
|
|
6301
|
+
session_id: session_id
|
|
6311
6302
|
}]
|
|
6312
6303
|
};
|
|
6313
6304
|
$cafa1ff1049985c2$export$cc3b6ddf805f6156((0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/v2/track", payload);
|
|
@@ -6351,7 +6342,7 @@ function $3abef00489070e23$var$make_tracker_send_to_depict(ga_tracker, t, filter
|
|
|
6351
6342
|
originalSendHitTask(model);
|
|
6352
6343
|
// console.log('Sent original hit, now sending to depict');
|
|
6353
6344
|
try {
|
|
6354
|
-
const dsid = $43683b1103edab15$export$
|
|
6345
|
+
const dsid = $43683b1103edab15$export$61e7e1f11e96692f();
|
|
6355
6346
|
const payload = model.get("hitPayload");
|
|
6356
6347
|
const sp = new URLSearchParams(payload);
|
|
6357
6348
|
const id = sp.get("ti");
|
|
@@ -6364,22 +6355,6 @@ function $3abef00489070e23$var$make_tracker_send_to_depict(ga_tracker, t, filter
|
|
|
6364
6355
|
}
|
|
6365
6356
|
});
|
|
6366
6357
|
}
|
|
6367
|
-
async function $54793663e06a1437$export$d63b08f4f29ddba5(t, unavailability_type) {
|
|
6368
|
-
const product_id = await t.get_product_id();
|
|
6369
|
-
$649f456f663da9fc$export$de56f1198d121036(`Notifying Depict that product id: ${product_id} is ${unavailability_type}`);
|
|
6370
|
-
const payload = {
|
|
6371
|
-
"tenant": t.tenant,
|
|
6372
|
-
"market": t.market,
|
|
6373
|
-
"events": [{
|
|
6374
|
-
event_type: "product_unavailable",
|
|
6375
|
-
product_id: product_id,
|
|
6376
|
-
unavailability_type: unavailability_type,
|
|
6377
|
-
user_id: $43683b1103edab15$export$adc61a405a4cabed(),
|
|
6378
|
-
dsid: $43683b1103edab15$export$6399bdb2291895e0()
|
|
6379
|
-
}]
|
|
6380
|
-
};
|
|
6381
|
-
$cafa1ff1049985c2$export$cc3b6ddf805f6156((0, $6c2b49f3f564b0d1$export$362abebb4b313340) + "/v2/track", payload);
|
|
6382
|
-
}
|
|
6383
6358
|
|
|
6384
6359
|
/**
|
|
6385
6360
|
* Set but you can listen for values being added or removed
|
|
@@ -6857,7 +6832,7 @@ function $8bed543774ca0dd4$var$deal_w_removal_of_node_array(node_array, push_dis
|
|
|
6857
6832
|
push_disconnector(disconnect_observer);
|
|
6858
6833
|
}
|
|
6859
6834
|
}
|
|
6860
|
-
const $78270f2ea7ca229f$export$3b75288f46cadd96 = () => new Array($d89638655e64f324$export$bb0a9c36cf454ea0(3, 8)).fill("
|
|
6835
|
+
const $78270f2ea7ca229f$export$3b75288f46cadd96 = () => new Array($d89638655e64f324$export$bb0a9c36cf454ea0(3, 8)).fill("\u2B1C").join("");
|
|
6861
6836
|
const $78270f2ea7ca229f$var$make_sel = (image_url, attribute) => `[${attribute}=${JSON.stringify(image_url)}]`;
|
|
6862
6837
|
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`;
|
|
6863
6838
|
async function $78270f2ea7ca229f$export$2dd69958012e3e49({
|
|
@@ -7275,10 +7250,10 @@ function $55698e6e298abcb0$export$cd1adfb8059b5fcd(promise, ms) {
|
|
|
7275
7250
|
}
|
|
7276
7251
|
const $690d8897acf7a743$var$get_voyado_id = () => {
|
|
7277
7252
|
const va = /\b_vaI=([^;]+)/.exec(document.cookie)?.[1];
|
|
7278
|
-
return va || $43683b1103edab15$export$
|
|
7253
|
+
return va || $43683b1103edab15$export$61e7e1f11e96692f();
|
|
7279
7254
|
};
|
|
7280
7255
|
const $690d8897acf7a743$export$a739d9a07da7f9ce = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9(() => {
|
|
7281
|
-
$43683b1103edab15$export$
|
|
7256
|
+
$43683b1103edab15$export$93ae15b1ae509334($690d8897acf7a743$var$get_voyado_id);
|
|
7282
7257
|
});
|
|
7283
7258
|
function $769ce417b39aa7d3$export$4a3043e508dd72f0({
|
|
7284
7259
|
children: children,
|
|
@@ -7421,8 +7396,8 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7421
7396
|
on_close_(exit_oos_iterator);
|
|
7422
7397
|
}));
|
|
7423
7398
|
}
|
|
7424
|
-
var $
|
|
7425
|
-
$
|
|
7399
|
+
var $895e8df2e6c8982e$exports = {};
|
|
7400
|
+
$895e8df2e6c8982e$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";
|
|
7426
7401
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
7427
7402
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
7428
7403
|
width: width,
|
|
@@ -7433,7 +7408,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
7433
7408
|
}) => {
|
|
7434
7409
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
7435
7410
|
// Insert styling on first import
|
|
7436
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7411
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($895e8df2e6c8982e$exports)));
|
|
7437
7412
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
7438
7413
|
}
|
|
7439
7414
|
return (
|
|
@@ -7655,8 +7630,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
7655
7630
|
collapse: collapse
|
|
7656
7631
|
};
|
|
7657
7632
|
};
|
|
7658
|
-
var $
|
|
7659
|
-
$
|
|
7633
|
+
var $0ffb759867ae20fc$exports = {};
|
|
7634
|
+
$0ffb759867ae20fc$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";
|
|
7660
7635
|
const $45af9e834781a9bc$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
7661
7636
|
const $45af9e834781a9bc$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
7662
7637
|
function $45af9e834781a9bc$export$f39a7d0667e924a(what_to_watch, sizes_communicator = $607fc90221d440a6$export$e806c6c1615a59ae(), resolution_factor = 1) {
|
|
@@ -7812,7 +7787,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({
|
|
|
7812
7787
|
}) => {
|
|
7813
7788
|
if (!$914971fb43986a16$var$inserted) {
|
|
7814
7789
|
// Insert styling on first import
|
|
7815
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7790
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($0ffb759867ae20fc$exports)));
|
|
7816
7791
|
$914971fb43986a16$var$inserted = true;
|
|
7817
7792
|
}
|
|
7818
7793
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -7892,8 +7867,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
7892
7867
|
}
|
|
7893
7868
|
return sourceset_component;
|
|
7894
7869
|
}
|
|
7895
|
-
var $
|
|
7896
|
-
$
|
|
7870
|
+
var $504e2aac6aea7baf$exports = {};
|
|
7871
|
+
$504e2aac6aea7baf$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";
|
|
7897
7872
|
|
|
7898
7873
|
// Saving bytez
|
|
7899
7874
|
// Maybe? @Daniel
|
|
@@ -8021,7 +7996,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
8021
7996
|
...options
|
|
8022
7997
|
}) => {
|
|
8023
7998
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
8024
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
7999
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($504e2aac6aea7baf$exports)));
|
|
8025
8000
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
8026
8001
|
}
|
|
8027
8002
|
const main_image = $914971fb43986a16$export$788756b42446dc2d({
|
|
@@ -8122,104 +8097,6 @@ function $b828952b0fe1df8f$export$ca305c142c6fc3cf(hex) {
|
|
|
8122
8097
|
if (!(rgb?.length === 3 && rgb.every(x => typeof x === "number" && x >= 0 && x <= 255))) return null;
|
|
8123
8098
|
return rgb;
|
|
8124
8099
|
}
|
|
8125
|
-
const $3aaea7425b99d050$var$MAX_SYNC_RETRIES = 10;
|
|
8126
|
-
/*
|
|
8127
|
-
# Reference material:
|
|
8128
|
-
|
|
8129
|
-
Google has some mixed communication around editing meta tags with JavaScript, as seen in these quotes:
|
|
8130
|
-
|
|
8131
|
-
https://developers.google.com/search/docs/crawling-indexing/special-tags#other-points-to-note
|
|
8132
|
-
> If you're considering using JavaScript to inject or change meta tags, proceed with caution. We recommend that you avoid using JavaScript to inject or change meta tags whenever possible ...
|
|
8133
|
-
https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics#titles-and-snippets
|
|
8134
|
-
> You can use JavaScript to set or change the meta description as well as the <title> element.
|
|
8135
|
-
|
|
8136
|
-
The only thing we can do is test that it works.
|
|
8137
|
-
|
|
8138
|
-
This page has a really nice table that describes the different meta tags used by Google: https://developers.google.com/search/docs/crawling-indexing/special-tags#meta-tags
|
|
8139
|
-
*/
|
|
8140
|
-
const $3aaea7425b99d050$var$tags = {
|
|
8141
|
-
title: [{
|
|
8142
|
-
selector: 'meta[name="twitter:title"]',
|
|
8143
|
-
create: () => document.createElement("meta"),
|
|
8144
|
-
configure: (element, value) => {
|
|
8145
|
-
element.name = "twitter:title";
|
|
8146
|
-
element.content = value;
|
|
8147
|
-
},
|
|
8148
|
-
isConfigured: (element, value) => element.content === value && element.name === "twitter:title"
|
|
8149
|
-
}, {
|
|
8150
|
-
selector: 'meta[property="og:title"]',
|
|
8151
|
-
create: () => document.createElement("meta"),
|
|
8152
|
-
configure: (element, value) => {
|
|
8153
|
-
element.setAttribute("property", "og:title");
|
|
8154
|
-
element.content = value;
|
|
8155
|
-
},
|
|
8156
|
-
isConfigured: (element, value) => element.content === value && element.getAttribute("property") === "og:title"
|
|
8157
|
-
}, {
|
|
8158
|
-
selector: "title",
|
|
8159
|
-
create: () => document.createElement("title"),
|
|
8160
|
-
configure: (element, value) => element.textContent = value,
|
|
8161
|
-
isConfigured: (element, value) => element.textContent === value
|
|
8162
|
-
}],
|
|
8163
|
-
description: [{
|
|
8164
|
-
selector: 'meta[name="description"]',
|
|
8165
|
-
create: () => document.createElement("meta"),
|
|
8166
|
-
configure: (element, value) => {
|
|
8167
|
-
element.name = "description";
|
|
8168
|
-
element.content = value;
|
|
8169
|
-
},
|
|
8170
|
-
isConfigured: (element, value) => element.content === value && element.name === "description"
|
|
8171
|
-
}, {
|
|
8172
|
-
selector: 'meta[property="og:description"]',
|
|
8173
|
-
create: () => document.createElement("meta"),
|
|
8174
|
-
configure: (element, value) => {
|
|
8175
|
-
element.setAttribute("property", "og:description");
|
|
8176
|
-
element.content = value;
|
|
8177
|
-
},
|
|
8178
|
-
isConfigured: (element, value) => element.content === value && element.getAttribute("property") === "og:description"
|
|
8179
|
-
}]
|
|
8180
|
-
};
|
|
8181
|
-
let $3aaea7425b99d050$var$running_writers = 0;
|
|
8182
|
-
function $3aaea7425b99d050$export$ef73ea4f975745ba(meta_data) {
|
|
8183
|
-
if ($3aaea7425b99d050$var$running_writers >= 1) return;
|
|
8184
|
-
$3aaea7425b99d050$var$running_writers++;
|
|
8185
|
-
$qgKv4$onCleanup(() => $3aaea7425b99d050$var$running_writers--);
|
|
8186
|
-
const disconnectors = [];
|
|
8187
|
-
$qgKv4$createEffect($b04e44fad5ea42c7$export$b3bbfd758f11cfa9(() => {
|
|
8188
|
-
if (!meta_data()) return;
|
|
8189
|
-
$qgKv4$onCleanup(() => {
|
|
8190
|
-
disconnectors.forEach(d => d());
|
|
8191
|
-
});
|
|
8192
|
-
for (const [type, content] of Object.entries(meta_data())) for (const opts of $3aaea7425b99d050$var$tags[type]) {
|
|
8193
|
-
if (!type || !content) return;
|
|
8194
|
-
let retries = 0;
|
|
8195
|
-
/** Ensures that there is at least one occurrence of the element. Multiple are allowed, 0 is not.
|
|
8196
|
-
* Also ensures that each occurrence is configured (has correct content)
|
|
8197
|
-
* It's preferred not to kill any conflicting meta tags because frameworks might go apeshit.
|
|
8198
|
-
* Things seem to work when only changing the meta values though */
|
|
8199
|
-
const sync_elements_to_head = () => {
|
|
8200
|
-
if (retries++ > $3aaea7425b99d050$var$MAX_SYNC_RETRIES) return $649f456f663da9fc$export$de56f1198d121036("Failed to sync meta tag to head. Hit max retries.", opts.selector, content);
|
|
8201
|
-
const existing_elements = document.head.querySelectorAll(opts.selector);
|
|
8202
|
-
const elements = existing_elements.length ? existing_elements : [opts.create()];
|
|
8203
|
-
elements.forEach(el => {
|
|
8204
|
-
if (!opts.isConfigured(el, content)) opts.configure(el, content);
|
|
8205
|
-
});
|
|
8206
|
-
if (!existing_elements.length) {
|
|
8207
|
-
elements[0].dataset.depictMeta = "1";
|
|
8208
|
-
document.head.appendChild(elements[0]);
|
|
8209
|
-
} else if (existing_elements.length > 1) {
|
|
8210
|
-
// In this case, we should try to remove our own tag if it exists.
|
|
8211
|
-
// This is to avoid duplicate meta tags, which might be bad for SEO
|
|
8212
|
-
// We can't remove the other tags because they might be used by frameworks
|
|
8213
|
-
const depict_elements = Array.from(existing_elements).filter(el => el.dataset.depictMeta);
|
|
8214
|
-
// We only want to remove the Depict elements if there are other elements
|
|
8215
|
-
if (depict_elements.length && depict_elements.length < existing_elements.length) depict_elements.forEach(el => el.remove());
|
|
8216
|
-
}
|
|
8217
|
-
};
|
|
8218
|
-
sync_elements_to_head();
|
|
8219
|
-
disconnectors.push((0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onremoved(opts.selector, sync_elements_to_head), (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onchange(opts.selector, sync_elements_to_head), (0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).onexists(opts.selector, sync_elements_to_head));
|
|
8220
|
-
}
|
|
8221
|
-
}, "Meta tag writing crashed"));
|
|
8222
|
-
}
|
|
8223
8100
|
const $5dc0c20a00189d47$var$MAX_SYNC_RETRIES = 15;
|
|
8224
8101
|
function $5dc0c20a00189d47$export$c3f56a35e076f139(selector, data, opts) {
|
|
8225
8102
|
const {
|
|
@@ -8255,4 +8132,4 @@ function $76266de9d545e64d$export$e35115e6d0715f77() {
|
|
|
8255
8132
|
return href;
|
|
8256
8133
|
}
|
|
8257
8134
|
$f564adbc4675ceaf$export$2cefb7e61fcbae00("utilishared", (0, $0766c85d387a9765$export$83d89fbfd8236492));
|
|
8258
|
-
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, $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, $63cbb5de51d11596$export$ffb0004e005737fa as Fragment, $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$9ed4fbc47d558f94 as datalayer_interceptor, $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, $3aaea7425b99d050$export$ef73ea4f975745ba as edit_current_page_meta_tags, $5dc0c20a00189d47$export$c3f56a35e076f139 as sync_el_content_with_accessor, $76266de9d545e64d$export$e35115e6d0715f77 as use_href_accessor, $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 };
|
|
8135
|
+
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, $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, $d352a8202024de5c$export$30933c637c977eef as get_recs_with_template, $d352a8202024de5c$export$c410ce1205e5118a as default_post_processor, $d352a8202024de5c$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, $63cbb5de51d11596$export$ffb0004e005737fa as Fragment, $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$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$9ed4fbc47d558f94 as datalayer_interceptor, $847e4a06ea6767c0$export$b11248fa13a8a86c as datalayer_transaction_id_extractor, $847e4a06ea6767c0$export$3ebd86018b39d9d2 as orderpage_transaction_id_extractor, $847e4a06ea6767c0$export$ff8673d5dea82bd4 as url_transaction_id_extractor, $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, $5dc0c20a00189d47$export$c3f56a35e076f139 as sync_el_content_with_accessor, $76266de9d545e64d$export$e35115e6d0715f77 as use_href_accessor, $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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/utilishared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
],
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@babel/core": "latest",
|
|
82
|
-
"@depict-ai/types": "^
|
|
83
|
-
"@parcel/resolver-default": "^2.
|
|
82
|
+
"@depict-ai/types": "^5.0.1",
|
|
83
|
+
"@parcel/resolver-default": "^2.10.3",
|
|
84
84
|
"@sentry/cli": "^2.21.2",
|
|
85
85
|
"@sentry/types": "^7.75.1",
|
|
86
86
|
"@types/jest": "^29.2.5",
|
|
87
87
|
"@types/node": "^18.11.9",
|
|
88
88
|
"jest": "^29.3.1",
|
|
89
|
-
"parcel": "^2.
|
|
89
|
+
"parcel": "^2.10.3",
|
|
90
90
|
"ts-jest": "^29.0.3"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|