@getlupa/client 1.15.0 → 1.15.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/dist/lupaSearch.iife.js +368 -281
- package/dist/lupaSearch.js +368 -281
- package/dist/lupaSearch.mjs +368 -281
- package/dist/lupaSearch.umd.js +368 -281
- package/package.json +2 -2
package/dist/lupaSearch.mjs
CHANGED
|
@@ -6802,6 +6802,8 @@ const HISTORY_LOCAL_STORAGE_KEY = "LUPA_HISTORY";
|
|
|
6802
6802
|
const TRACKING_STORAGE_KEY = "LUPA_STATS";
|
|
6803
6803
|
const TRACKING_STORAGE_KEY_BASE = "LUPA_STATS_BASE";
|
|
6804
6804
|
const TRACKING_ANALYTICS_KEY = "LUPA_ANALYTICS";
|
|
6805
|
+
const TRACKING_CLICK_DELAYED = "LUPA_TRACKING_CLICK_DELAYED";
|
|
6806
|
+
const DELAYED_TRACKING_EVENTS_CACHE = "LUPA_DELAYED_TRACKING_EVENTS";
|
|
6805
6807
|
const TRACKING_KEY_LENGTH = 10;
|
|
6806
6808
|
const HISTORY_MAX_ITEMS = 7;
|
|
6807
6809
|
const S_MIN_WIDTH = 575;
|
|
@@ -7022,6 +7024,14 @@ const getNormalizedString = (str) => {
|
|
|
7022
7024
|
const transformedStr = typeof str === "string" ? str : str.toString();
|
|
7023
7025
|
return transformedStr.normalize === void 0 ? (_a = transformedStr.toLocaleLowerCase()) == null ? void 0 : _a.trim() : (_b = transformedStr.toLocaleLowerCase().normalize("NFKD").replace(/[^\w\s.-_/]/g, "")) == null ? void 0 : _b.trim();
|
|
7024
7026
|
};
|
|
7027
|
+
const getTransformedString = (str) => {
|
|
7028
|
+
var _a, _b;
|
|
7029
|
+
if (!str) {
|
|
7030
|
+
return "";
|
|
7031
|
+
}
|
|
7032
|
+
const transformedStr = typeof str === "string" ? str : str.toString();
|
|
7033
|
+
return transformedStr.normalize === void 0 ? (_a = transformedStr.toLocaleLowerCase()) == null ? void 0 : _a.trim() : (_b = transformedStr.toLocaleLowerCase().normalize("NFKD")) == null ? void 0 : _b.trim();
|
|
7034
|
+
};
|
|
7025
7035
|
const capitalize$1 = (str) => {
|
|
7026
7036
|
if (!str) {
|
|
7027
7037
|
return "";
|
|
@@ -7095,8 +7105,8 @@ const inputsAreEqual = (input2, possibleValues) => {
|
|
|
7095
7105
|
if (!input2) {
|
|
7096
7106
|
return false;
|
|
7097
7107
|
}
|
|
7098
|
-
const normalizedInput =
|
|
7099
|
-
return possibleValues.some((v) =>
|
|
7108
|
+
const normalizedInput = getTransformedString(input2);
|
|
7109
|
+
return possibleValues.some((v) => getTransformedString(v) === normalizedInput);
|
|
7100
7110
|
};
|
|
7101
7111
|
const levenshteinDistance = (s = "", t = "") => {
|
|
7102
7112
|
if (!(s == null ? void 0 : s.length)) {
|
|
@@ -7129,225 +7139,6 @@ const findClosestStringValue = (input2, possibleValues, key) => {
|
|
|
7129
7139
|
const closestValue = (_a = possibleValues.filter((_, i) => distances[i] === minDistance)) == null ? void 0 : _a[0];
|
|
7130
7140
|
return closestValue;
|
|
7131
7141
|
};
|
|
7132
|
-
const initAnalyticsTracking = (analyticsOptions) => {
|
|
7133
|
-
try {
|
|
7134
|
-
if (analyticsOptions == null ? void 0 : analyticsOptions.enabled) {
|
|
7135
|
-
window.sessionStorage.setItem(TRACKING_ANALYTICS_KEY, JSON.stringify(analyticsOptions));
|
|
7136
|
-
} else {
|
|
7137
|
-
window.sessionStorage.removeItem(TRACKING_ANALYTICS_KEY);
|
|
7138
|
-
}
|
|
7139
|
-
} catch (e2) {
|
|
7140
|
-
}
|
|
7141
|
-
};
|
|
7142
|
-
const initBaseTracking = (enabled) => {
|
|
7143
|
-
try {
|
|
7144
|
-
if (enabled) {
|
|
7145
|
-
window.sessionStorage.setItem(TRACKING_STORAGE_KEY_BASE, "1");
|
|
7146
|
-
} else {
|
|
7147
|
-
window.sessionStorage.removeItem(TRACKING_STORAGE_KEY_BASE);
|
|
7148
|
-
clearSessionTracking();
|
|
7149
|
-
clearUserTracking();
|
|
7150
|
-
}
|
|
7151
|
-
} catch (e2) {
|
|
7152
|
-
}
|
|
7153
|
-
};
|
|
7154
|
-
const clearSessionTracking = () => {
|
|
7155
|
-
try {
|
|
7156
|
-
window.sessionStorage.removeItem(TRACKING_STORAGE_KEY);
|
|
7157
|
-
} catch (e2) {
|
|
7158
|
-
}
|
|
7159
|
-
};
|
|
7160
|
-
const initSessionTracking = () => {
|
|
7161
|
-
try {
|
|
7162
|
-
if (getSessionKey()) {
|
|
7163
|
-
return;
|
|
7164
|
-
}
|
|
7165
|
-
const key = getRandomString(TRACKING_KEY_LENGTH);
|
|
7166
|
-
window.sessionStorage.setItem(TRACKING_STORAGE_KEY, key);
|
|
7167
|
-
} catch (e2) {
|
|
7168
|
-
}
|
|
7169
|
-
};
|
|
7170
|
-
const initUserTracking = (userKey) => {
|
|
7171
|
-
try {
|
|
7172
|
-
if (getUserKey()) {
|
|
7173
|
-
return;
|
|
7174
|
-
}
|
|
7175
|
-
const key = userKey || getRandomString(TRACKING_KEY_LENGTH);
|
|
7176
|
-
window.localStorage.setItem(TRACKING_STORAGE_KEY, key);
|
|
7177
|
-
} catch (e2) {
|
|
7178
|
-
}
|
|
7179
|
-
};
|
|
7180
|
-
const clearUserTracking = () => {
|
|
7181
|
-
try {
|
|
7182
|
-
window.localStorage.removeItem(TRACKING_STORAGE_KEY);
|
|
7183
|
-
} catch (e2) {
|
|
7184
|
-
}
|
|
7185
|
-
};
|
|
7186
|
-
const isTrackingEnabled = () => {
|
|
7187
|
-
try {
|
|
7188
|
-
return Boolean(window.sessionStorage.getItem(TRACKING_STORAGE_KEY_BASE));
|
|
7189
|
-
} catch (e2) {
|
|
7190
|
-
return false;
|
|
7191
|
-
}
|
|
7192
|
-
};
|
|
7193
|
-
const getSessionKey = () => {
|
|
7194
|
-
var _a;
|
|
7195
|
-
try {
|
|
7196
|
-
return (_a = window.sessionStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
|
|
7197
|
-
} catch (e2) {
|
|
7198
|
-
return void 0;
|
|
7199
|
-
}
|
|
7200
|
-
};
|
|
7201
|
-
const getUserKey = () => {
|
|
7202
|
-
var _a;
|
|
7203
|
-
try {
|
|
7204
|
-
return (_a = window.localStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
|
|
7205
|
-
} catch (e2) {
|
|
7206
|
-
return void 0;
|
|
7207
|
-
}
|
|
7208
|
-
};
|
|
7209
|
-
const initTracking = (options) => {
|
|
7210
|
-
initBaseTracking(Boolean(options.trackBase));
|
|
7211
|
-
if (options.trackSession) {
|
|
7212
|
-
initSessionTracking();
|
|
7213
|
-
} else {
|
|
7214
|
-
clearSessionTracking();
|
|
7215
|
-
}
|
|
7216
|
-
if (options.trackUser) {
|
|
7217
|
-
initUserTracking(options.userKey);
|
|
7218
|
-
} else {
|
|
7219
|
-
clearUserTracking();
|
|
7220
|
-
}
|
|
7221
|
-
if (options.analytics) {
|
|
7222
|
-
initAnalyticsTracking(options.analytics);
|
|
7223
|
-
}
|
|
7224
|
-
};
|
|
7225
|
-
const getLupaTrackingContext = () => {
|
|
7226
|
-
if (!isTrackingEnabled()) {
|
|
7227
|
-
return {};
|
|
7228
|
-
}
|
|
7229
|
-
return {
|
|
7230
|
-
userId: getUserKey(),
|
|
7231
|
-
sessionId: getSessionKey()
|
|
7232
|
-
};
|
|
7233
|
-
};
|
|
7234
|
-
const trackLupaEvent = (queryKey, data = {}, options) => {
|
|
7235
|
-
var _a, _b;
|
|
7236
|
-
if (!queryKey || !data.type) {
|
|
7237
|
-
return;
|
|
7238
|
-
}
|
|
7239
|
-
const eventData = {
|
|
7240
|
-
searchQuery: (_a = data.searchQuery) != null ? _a : "",
|
|
7241
|
-
itemId: (_b = data.itemId) != null ? _b : "",
|
|
7242
|
-
name: data.type,
|
|
7243
|
-
userId: getUserKey(),
|
|
7244
|
-
sessionId: getSessionKey(),
|
|
7245
|
-
filters: data.filters
|
|
7246
|
-
};
|
|
7247
|
-
LupaSearchSdk.track(queryKey, eventData, options);
|
|
7248
|
-
};
|
|
7249
|
-
const sendGa = (name, ...args) => {
|
|
7250
|
-
window.ga(() => {
|
|
7251
|
-
const trackers = window.ga.getAll();
|
|
7252
|
-
const firstTracker = trackers[0];
|
|
7253
|
-
if (!firstTracker) {
|
|
7254
|
-
console.error("GA tracker not found");
|
|
7255
|
-
}
|
|
7256
|
-
const trackerName = firstTracker.get("name");
|
|
7257
|
-
window.ga(`${trackerName}.${name}`, ...args);
|
|
7258
|
-
});
|
|
7259
|
-
};
|
|
7260
|
-
const trackAnalyticsEvent = (data) => {
|
|
7261
|
-
var _a, _b, _c;
|
|
7262
|
-
try {
|
|
7263
|
-
const options = JSON.parse(
|
|
7264
|
-
(_a = window.sessionStorage.getItem(TRACKING_ANALYTICS_KEY)) != null ? _a : "{}"
|
|
7265
|
-
);
|
|
7266
|
-
if (!data.analytics || !options.enabled || ((_c = options.ignoreEvents) == null ? void 0 : _c.includes((_b = data.analytics) == null ? void 0 : _b.type))) {
|
|
7267
|
-
return;
|
|
7268
|
-
}
|
|
7269
|
-
switch (options.type) {
|
|
7270
|
-
case "ua":
|
|
7271
|
-
sendUaAnalyticsEvent(data, options);
|
|
7272
|
-
break;
|
|
7273
|
-
case "ga4":
|
|
7274
|
-
sendGa4AnalyticsEvent(data, options);
|
|
7275
|
-
break;
|
|
7276
|
-
case "debug":
|
|
7277
|
-
processDebugEvent(data);
|
|
7278
|
-
break;
|
|
7279
|
-
default:
|
|
7280
|
-
sendUaAnalyticsEvent(data, options);
|
|
7281
|
-
}
|
|
7282
|
-
} catch (e2) {
|
|
7283
|
-
console.error("Unable to send an event to google analytics");
|
|
7284
|
-
}
|
|
7285
|
-
};
|
|
7286
|
-
const parseEcommerceData = (data, title) => {
|
|
7287
|
-
var _a, _b;
|
|
7288
|
-
return ((_a = data.analytics) == null ? void 0 : _a.items) ? {
|
|
7289
|
-
item_list_name: title,
|
|
7290
|
-
items: (_b = data.analytics) == null ? void 0 : _b.items
|
|
7291
|
-
} : void 0;
|
|
7292
|
-
};
|
|
7293
|
-
const sendUaAnalyticsEvent = (data, options) => {
|
|
7294
|
-
var _a, _b, _c, _d;
|
|
7295
|
-
const ga = window.ga;
|
|
7296
|
-
if (!ga) {
|
|
7297
|
-
console.error("Google Analytics object not found");
|
|
7298
|
-
return;
|
|
7299
|
-
}
|
|
7300
|
-
sendGa(
|
|
7301
|
-
"send",
|
|
7302
|
-
"event",
|
|
7303
|
-
options.parentEventName,
|
|
7304
|
-
(_b = (_a = data.analytics) == null ? void 0 : _a.type) != null ? _b : "",
|
|
7305
|
-
(_d = (_c = data.analytics) == null ? void 0 : _c.label) != null ? _d : ""
|
|
7306
|
-
);
|
|
7307
|
-
};
|
|
7308
|
-
const sendGa4AnalyticsEvent = (data, options) => {
|
|
7309
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
7310
|
-
if (!window || !window.dataLayer) {
|
|
7311
|
-
console.error("dataLayer object not found.");
|
|
7312
|
-
return;
|
|
7313
|
-
}
|
|
7314
|
-
const sendItemTitle = data.searchQuery !== ((_a = data.analytics) == null ? void 0 : _a.label);
|
|
7315
|
-
const title = sendItemTitle ? (_b = data.analytics) == null ? void 0 : _b.label : void 0;
|
|
7316
|
-
const params = __spreadValues2({
|
|
7317
|
-
search_text: data.searchQuery,
|
|
7318
|
-
item_title: title,
|
|
7319
|
-
item_id: data.itemId,
|
|
7320
|
-
ecommerce: parseEcommerceData(data, (_c = data.analytics) == null ? void 0 : _c.listLabel)
|
|
7321
|
-
}, (_e = (_d = data.analytics) == null ? void 0 : _d.additionalParams) != null ? _e : {});
|
|
7322
|
-
window.dataLayer.push(__spreadValues2({
|
|
7323
|
-
event: (_g = (_f = data.analytics) == null ? void 0 : _f.type) != null ? _g : options.parentEventName
|
|
7324
|
-
}, params));
|
|
7325
|
-
};
|
|
7326
|
-
const processDebugEvent = (data) => {
|
|
7327
|
-
var _a, _b, _c, _d;
|
|
7328
|
-
const sendItemTitle = data.searchQuery !== ((_a = data.analytics) == null ? void 0 : _a.label);
|
|
7329
|
-
const title = sendItemTitle ? (_b = data.analytics) == null ? void 0 : _b.label : void 0;
|
|
7330
|
-
const params = {
|
|
7331
|
-
event: (_c = data.analytics) == null ? void 0 : _c.type,
|
|
7332
|
-
search_text: data.searchQuery,
|
|
7333
|
-
item_title: title,
|
|
7334
|
-
item_id: data.itemId,
|
|
7335
|
-
ecommerce: parseEcommerceData(data, (_d = data.analytics) == null ? void 0 : _d.listLabel)
|
|
7336
|
-
};
|
|
7337
|
-
console.debug("Analytics debug event:", params);
|
|
7338
|
-
};
|
|
7339
|
-
const track = (queryKey, data = {}, options) => {
|
|
7340
|
-
var _a;
|
|
7341
|
-
if (!isTrackingEnabled()) {
|
|
7342
|
-
return;
|
|
7343
|
-
}
|
|
7344
|
-
const hasSearchQuery = data.searchQuery;
|
|
7345
|
-
if (!hasSearchQuery && !((_a = data.options) == null ? void 0 : _a.allowEmptySearchQuery)) {
|
|
7346
|
-
return;
|
|
7347
|
-
}
|
|
7348
|
-
trackAnalyticsEvent(data);
|
|
7349
|
-
trackLupaEvent(queryKey, data, options);
|
|
7350
|
-
};
|
|
7351
7142
|
const DEFAULT_SEARCH_BOX_OPTIONS$1 = {
|
|
7352
7143
|
inputSelector: "#searchBox",
|
|
7353
7144
|
options: {
|
|
@@ -7629,6 +7420,266 @@ const useOptionsStore = defineStore("options", () => {
|
|
|
7629
7420
|
getQueryParamName
|
|
7630
7421
|
};
|
|
7631
7422
|
});
|
|
7423
|
+
const initAnalyticsTracking = (analyticsOptions) => {
|
|
7424
|
+
try {
|
|
7425
|
+
if (analyticsOptions == null ? void 0 : analyticsOptions.enabled) {
|
|
7426
|
+
window.sessionStorage.setItem(TRACKING_ANALYTICS_KEY, JSON.stringify(analyticsOptions));
|
|
7427
|
+
} else {
|
|
7428
|
+
window.sessionStorage.removeItem(TRACKING_ANALYTICS_KEY);
|
|
7429
|
+
}
|
|
7430
|
+
} catch (e2) {
|
|
7431
|
+
}
|
|
7432
|
+
};
|
|
7433
|
+
const initBaseTracking = (enabled) => {
|
|
7434
|
+
try {
|
|
7435
|
+
if (enabled) {
|
|
7436
|
+
window.sessionStorage.setItem(TRACKING_STORAGE_KEY_BASE, "1");
|
|
7437
|
+
} else {
|
|
7438
|
+
window.sessionStorage.removeItem(TRACKING_STORAGE_KEY_BASE);
|
|
7439
|
+
clearSessionTracking();
|
|
7440
|
+
clearUserTracking();
|
|
7441
|
+
}
|
|
7442
|
+
} catch (e2) {
|
|
7443
|
+
}
|
|
7444
|
+
};
|
|
7445
|
+
const clearSessionTracking = () => {
|
|
7446
|
+
try {
|
|
7447
|
+
window.sessionStorage.removeItem(TRACKING_STORAGE_KEY);
|
|
7448
|
+
} catch (e2) {
|
|
7449
|
+
}
|
|
7450
|
+
};
|
|
7451
|
+
const initSessionTracking = () => {
|
|
7452
|
+
try {
|
|
7453
|
+
if (getSessionKey()) {
|
|
7454
|
+
return;
|
|
7455
|
+
}
|
|
7456
|
+
const key = getRandomString(TRACKING_KEY_LENGTH);
|
|
7457
|
+
window.sessionStorage.setItem(TRACKING_STORAGE_KEY, key);
|
|
7458
|
+
} catch (e2) {
|
|
7459
|
+
}
|
|
7460
|
+
};
|
|
7461
|
+
const initUserTracking = (userKey) => {
|
|
7462
|
+
try {
|
|
7463
|
+
if (getUserKey()) {
|
|
7464
|
+
return;
|
|
7465
|
+
}
|
|
7466
|
+
const key = userKey || getRandomString(TRACKING_KEY_LENGTH);
|
|
7467
|
+
window.localStorage.setItem(TRACKING_STORAGE_KEY, key);
|
|
7468
|
+
} catch (e2) {
|
|
7469
|
+
}
|
|
7470
|
+
};
|
|
7471
|
+
const clearUserTracking = () => {
|
|
7472
|
+
try {
|
|
7473
|
+
window.localStorage.removeItem(TRACKING_STORAGE_KEY);
|
|
7474
|
+
} catch (e2) {
|
|
7475
|
+
}
|
|
7476
|
+
};
|
|
7477
|
+
const isTrackingEnabled = () => {
|
|
7478
|
+
try {
|
|
7479
|
+
return Boolean(window.sessionStorage.getItem(TRACKING_STORAGE_KEY_BASE));
|
|
7480
|
+
} catch (e2) {
|
|
7481
|
+
return false;
|
|
7482
|
+
}
|
|
7483
|
+
};
|
|
7484
|
+
const isDelayedClickTracking = () => {
|
|
7485
|
+
try {
|
|
7486
|
+
return Boolean(window.localStorage.getItem(TRACKING_CLICK_DELAYED));
|
|
7487
|
+
} catch (e2) {
|
|
7488
|
+
return false;
|
|
7489
|
+
}
|
|
7490
|
+
};
|
|
7491
|
+
const getSessionKey = () => {
|
|
7492
|
+
var _a;
|
|
7493
|
+
try {
|
|
7494
|
+
return (_a = window.sessionStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
|
|
7495
|
+
} catch (e2) {
|
|
7496
|
+
return void 0;
|
|
7497
|
+
}
|
|
7498
|
+
};
|
|
7499
|
+
const getUserKey = () => {
|
|
7500
|
+
var _a;
|
|
7501
|
+
try {
|
|
7502
|
+
return (_a = window.localStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
|
|
7503
|
+
} catch (e2) {
|
|
7504
|
+
return void 0;
|
|
7505
|
+
}
|
|
7506
|
+
};
|
|
7507
|
+
const initTracking = (options) => {
|
|
7508
|
+
initBaseTracking(Boolean(options.trackBase));
|
|
7509
|
+
if (options.trackSession) {
|
|
7510
|
+
initSessionTracking();
|
|
7511
|
+
} else {
|
|
7512
|
+
clearSessionTracking();
|
|
7513
|
+
}
|
|
7514
|
+
if (options.trackUser) {
|
|
7515
|
+
initUserTracking(options.userKey);
|
|
7516
|
+
} else {
|
|
7517
|
+
clearUserTracking();
|
|
7518
|
+
}
|
|
7519
|
+
if (options.analytics) {
|
|
7520
|
+
initAnalyticsTracking(options.analytics);
|
|
7521
|
+
}
|
|
7522
|
+
if (options.delayedClickTracking) {
|
|
7523
|
+
window.localStorage.setItem(TRACKING_CLICK_DELAYED, "1");
|
|
7524
|
+
checkAndDispatchDelayedEvents();
|
|
7525
|
+
} else {
|
|
7526
|
+
window.localStorage.removeItem(TRACKING_CLICK_DELAYED);
|
|
7527
|
+
}
|
|
7528
|
+
};
|
|
7529
|
+
const getLupaTrackingContext = () => {
|
|
7530
|
+
if (!isTrackingEnabled()) {
|
|
7531
|
+
return {};
|
|
7532
|
+
}
|
|
7533
|
+
return {
|
|
7534
|
+
userId: getUserKey(),
|
|
7535
|
+
sessionId: getSessionKey()
|
|
7536
|
+
};
|
|
7537
|
+
};
|
|
7538
|
+
const trackLupaEvent = (queryKey, data = {}, options) => {
|
|
7539
|
+
var _a, _b;
|
|
7540
|
+
if (!queryKey || !data.type) {
|
|
7541
|
+
return;
|
|
7542
|
+
}
|
|
7543
|
+
const eventData = {
|
|
7544
|
+
searchQuery: (_a = data.searchQuery) != null ? _a : "",
|
|
7545
|
+
itemId: (_b = data.itemId) != null ? _b : "",
|
|
7546
|
+
name: data.type,
|
|
7547
|
+
userId: getUserKey(),
|
|
7548
|
+
sessionId: getSessionKey(),
|
|
7549
|
+
filters: data.filters
|
|
7550
|
+
};
|
|
7551
|
+
LupaSearchSdk.track(queryKey, eventData, options);
|
|
7552
|
+
};
|
|
7553
|
+
const sendGa = (name, ...args) => {
|
|
7554
|
+
window.ga(() => {
|
|
7555
|
+
const trackers = window.ga.getAll();
|
|
7556
|
+
const firstTracker = trackers[0];
|
|
7557
|
+
if (!firstTracker) {
|
|
7558
|
+
console.error("GA tracker not found");
|
|
7559
|
+
}
|
|
7560
|
+
const trackerName = firstTracker.get("name");
|
|
7561
|
+
window.ga(`${trackerName}.${name}`, ...args);
|
|
7562
|
+
});
|
|
7563
|
+
};
|
|
7564
|
+
const trackAnalyticsEvent = (data) => {
|
|
7565
|
+
var _a, _b, _c;
|
|
7566
|
+
try {
|
|
7567
|
+
const options = JSON.parse(
|
|
7568
|
+
(_a = window.sessionStorage.getItem(TRACKING_ANALYTICS_KEY)) != null ? _a : "{}"
|
|
7569
|
+
);
|
|
7570
|
+
if (!data.analytics || !options.enabled || ((_c = options.ignoreEvents) == null ? void 0 : _c.includes((_b = data.analytics) == null ? void 0 : _b.type))) {
|
|
7571
|
+
return;
|
|
7572
|
+
}
|
|
7573
|
+
switch (options.type) {
|
|
7574
|
+
case "ua":
|
|
7575
|
+
sendUaAnalyticsEvent(data, options);
|
|
7576
|
+
break;
|
|
7577
|
+
case "ga4":
|
|
7578
|
+
sendGa4AnalyticsEvent(data, options);
|
|
7579
|
+
break;
|
|
7580
|
+
case "debug":
|
|
7581
|
+
processDebugEvent(data);
|
|
7582
|
+
break;
|
|
7583
|
+
default:
|
|
7584
|
+
sendUaAnalyticsEvent(data, options);
|
|
7585
|
+
}
|
|
7586
|
+
} catch (e2) {
|
|
7587
|
+
console.error("Unable to send an event to google analytics");
|
|
7588
|
+
}
|
|
7589
|
+
};
|
|
7590
|
+
const parseEcommerceData = (data, title) => {
|
|
7591
|
+
var _a, _b;
|
|
7592
|
+
return ((_a = data.analytics) == null ? void 0 : _a.items) ? {
|
|
7593
|
+
item_list_name: title,
|
|
7594
|
+
items: (_b = data.analytics) == null ? void 0 : _b.items
|
|
7595
|
+
} : void 0;
|
|
7596
|
+
};
|
|
7597
|
+
const sendUaAnalyticsEvent = (data, options) => {
|
|
7598
|
+
var _a, _b, _c, _d;
|
|
7599
|
+
const ga = window.ga;
|
|
7600
|
+
if (!ga) {
|
|
7601
|
+
console.error("Google Analytics object not found");
|
|
7602
|
+
return;
|
|
7603
|
+
}
|
|
7604
|
+
sendGa(
|
|
7605
|
+
"send",
|
|
7606
|
+
"event",
|
|
7607
|
+
options.parentEventName,
|
|
7608
|
+
(_b = (_a = data.analytics) == null ? void 0 : _a.type) != null ? _b : "",
|
|
7609
|
+
(_d = (_c = data.analytics) == null ? void 0 : _c.label) != null ? _d : ""
|
|
7610
|
+
);
|
|
7611
|
+
};
|
|
7612
|
+
const sendGa4AnalyticsEvent = (data, options) => {
|
|
7613
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
7614
|
+
if (!window || !window.dataLayer) {
|
|
7615
|
+
console.error("dataLayer object not found.");
|
|
7616
|
+
return;
|
|
7617
|
+
}
|
|
7618
|
+
const sendItemTitle = data.searchQuery !== ((_a = data.analytics) == null ? void 0 : _a.label);
|
|
7619
|
+
const title = sendItemTitle ? (_b = data.analytics) == null ? void 0 : _b.label : void 0;
|
|
7620
|
+
const params = __spreadValues2({
|
|
7621
|
+
search_text: data.searchQuery,
|
|
7622
|
+
item_title: title,
|
|
7623
|
+
item_id: data.itemId,
|
|
7624
|
+
ecommerce: parseEcommerceData(data, (_c = data.analytics) == null ? void 0 : _c.listLabel)
|
|
7625
|
+
}, (_e = (_d = data.analytics) == null ? void 0 : _d.additionalParams) != null ? _e : {});
|
|
7626
|
+
window.dataLayer.push(__spreadValues2({
|
|
7627
|
+
event: (_g = (_f = data.analytics) == null ? void 0 : _f.type) != null ? _g : options.parentEventName
|
|
7628
|
+
}, params));
|
|
7629
|
+
};
|
|
7630
|
+
const processDebugEvent = (data) => {
|
|
7631
|
+
var _a, _b, _c, _d;
|
|
7632
|
+
const sendItemTitle = data.searchQuery !== ((_a = data.analytics) == null ? void 0 : _a.label);
|
|
7633
|
+
const title = sendItemTitle ? (_b = data.analytics) == null ? void 0 : _b.label : void 0;
|
|
7634
|
+
const params = {
|
|
7635
|
+
event: (_c = data.analytics) == null ? void 0 : _c.type,
|
|
7636
|
+
search_text: data.searchQuery,
|
|
7637
|
+
item_title: title,
|
|
7638
|
+
item_id: data.itemId,
|
|
7639
|
+
ecommerce: parseEcommerceData(data, (_d = data.analytics) == null ? void 0 : _d.listLabel)
|
|
7640
|
+
};
|
|
7641
|
+
console.debug("Analytics debug event:", params);
|
|
7642
|
+
};
|
|
7643
|
+
const getDelayedEventsCache = () => {
|
|
7644
|
+
var _a;
|
|
7645
|
+
try {
|
|
7646
|
+
return JSON.parse((_a = window.localStorage.getItem(DELAYED_TRACKING_EVENTS_CACHE)) != null ? _a : "{}");
|
|
7647
|
+
} catch (e2) {
|
|
7648
|
+
return {};
|
|
7649
|
+
}
|
|
7650
|
+
};
|
|
7651
|
+
const storeDelayedEventCache = (cache) => {
|
|
7652
|
+
try {
|
|
7653
|
+
window.localStorage.setItem(DELAYED_TRACKING_EVENTS_CACHE, JSON.stringify(cache));
|
|
7654
|
+
} catch (e2) {
|
|
7655
|
+
}
|
|
7656
|
+
};
|
|
7657
|
+
const checkAndDispatchDelayedEvents = () => {
|
|
7658
|
+
var _a, _b;
|
|
7659
|
+
const optionsStore = useOptionsStore();
|
|
7660
|
+
const eventCache = getDelayedEventsCache();
|
|
7661
|
+
const urls = Object.keys(eventCache);
|
|
7662
|
+
for (const url of urls) {
|
|
7663
|
+
if ((_a = window.location.href) == null ? void 0 : _a.includes(url)) {
|
|
7664
|
+
const options = (_b = optionsStore.envOptions) != null ? _b : { environment: "production" };
|
|
7665
|
+
const { queryKey, data } = eventCache[url];
|
|
7666
|
+
track(queryKey, data, options);
|
|
7667
|
+
}
|
|
7668
|
+
}
|
|
7669
|
+
storeDelayedEventCache({});
|
|
7670
|
+
};
|
|
7671
|
+
const track = (queryKey, data = {}, options) => {
|
|
7672
|
+
var _a;
|
|
7673
|
+
if (!isTrackingEnabled()) {
|
|
7674
|
+
return;
|
|
7675
|
+
}
|
|
7676
|
+
const hasSearchQuery = data.searchQuery;
|
|
7677
|
+
if (!hasSearchQuery && !((_a = data.options) == null ? void 0 : _a.allowEmptySearchQuery)) {
|
|
7678
|
+
return;
|
|
7679
|
+
}
|
|
7680
|
+
trackAnalyticsEvent(data);
|
|
7681
|
+
trackLupaEvent(queryKey, data, options);
|
|
7682
|
+
};
|
|
7632
7683
|
var DocumentElementType = /* @__PURE__ */ ((DocumentElementType2) => {
|
|
7633
7684
|
DocumentElementType2["IMAGE"] = "image";
|
|
7634
7685
|
DocumentElementType2["TITLE"] = "title";
|
|
@@ -8612,7 +8663,7 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
8612
8663
|
const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
|
|
8613
8664
|
const _hoisted_2$U = { class: "lupa-input-clear" };
|
|
8614
8665
|
const _hoisted_3$D = { id: "lupa-search-box-input" };
|
|
8615
|
-
const _hoisted_4$
|
|
8666
|
+
const _hoisted_4$t = ["value"];
|
|
8616
8667
|
const _hoisted_5$j = ["aria-label", "placeholder"];
|
|
8617
8668
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8618
8669
|
const _hoisted_7$7 = [
|
|
@@ -8719,7 +8770,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
8719
8770
|
"aria-hidden": "true",
|
|
8720
8771
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8721
8772
|
disabled: ""
|
|
8722
|
-
}, null, 8, _hoisted_4$
|
|
8773
|
+
}, null, 8, _hoisted_4$t),
|
|
8723
8774
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8724
8775
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8725
8776
|
}, inputAttributes.value, {
|
|
@@ -8931,7 +8982,7 @@ const _hoisted_3$C = {
|
|
|
8931
8982
|
class: "lupa-suggestion-facet",
|
|
8932
8983
|
"data-cy": "lupa-suggestion-facet"
|
|
8933
8984
|
};
|
|
8934
|
-
const _hoisted_4$
|
|
8985
|
+
const _hoisted_4$s = {
|
|
8935
8986
|
class: "lupa-suggestion-facet-label",
|
|
8936
8987
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8937
8988
|
};
|
|
@@ -8977,7 +9028,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8977
9028
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8978
9029
|
}, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8979
9030
|
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
8980
|
-
createBaseVNode("span", _hoisted_4$
|
|
9031
|
+
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8981
9032
|
createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8982
9033
|
])) : createCommentVNode("", true)
|
|
8983
9034
|
]);
|
|
@@ -18493,7 +18544,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18493
18544
|
const _hoisted_1$16 = ["innerHTML"];
|
|
18494
18545
|
const _hoisted_2$O = { key: 0 };
|
|
18495
18546
|
const _hoisted_3$B = { key: 1 };
|
|
18496
|
-
const _hoisted_4$
|
|
18547
|
+
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
18497
18548
|
const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
|
|
18498
18549
|
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18499
18550
|
__name: "SearchBoxProductCustom",
|
|
@@ -18526,7 +18577,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18526
18577
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
18527
18578
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
18528
18579
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
|
|
18529
|
-
createBaseVNode("div", _hoisted_4$
|
|
18580
|
+
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
18530
18581
|
createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
|
|
18531
18582
|
]))
|
|
18532
18583
|
], 16));
|
|
@@ -18939,7 +18990,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
18939
18990
|
const _hoisted_1$12 = { class: "lupa-badge-title" };
|
|
18940
18991
|
const _hoisted_2$M = ["src"];
|
|
18941
18992
|
const _hoisted_3$z = { key: 1 };
|
|
18942
|
-
const _hoisted_4$
|
|
18993
|
+
const _hoisted_4$q = {
|
|
18943
18994
|
key: 0,
|
|
18944
18995
|
class: "lupa-badge-full-text"
|
|
18945
18996
|
};
|
|
@@ -18983,7 +19034,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
18983
19034
|
}, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
|
|
18984
19035
|
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
18985
19036
|
]),
|
|
18986
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
19037
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
18987
19038
|
], 6);
|
|
18988
19039
|
};
|
|
18989
19040
|
}
|
|
@@ -19461,7 +19512,18 @@ const useTrackingStore = defineStore("tracking", () => {
|
|
|
19461
19512
|
options
|
|
19462
19513
|
);
|
|
19463
19514
|
};
|
|
19464
|
-
|
|
19515
|
+
const trackDelayedEvent = ({
|
|
19516
|
+
queryKey,
|
|
19517
|
+
data,
|
|
19518
|
+
url
|
|
19519
|
+
}) => {
|
|
19520
|
+
let currentCache = getDelayedEventsCache();
|
|
19521
|
+
currentCache = __spreadProps2(__spreadValues2({}, currentCache), {
|
|
19522
|
+
[url]: { data, queryKey }
|
|
19523
|
+
});
|
|
19524
|
+
storeDelayedEventCache(currentCache);
|
|
19525
|
+
};
|
|
19526
|
+
return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
|
|
19465
19527
|
});
|
|
19466
19528
|
const _hoisted_1$X = { id: "lupa-search-box-products" };
|
|
19467
19529
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
@@ -19505,7 +19567,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19505
19567
|
if (!props.panelOptions.idKey) {
|
|
19506
19568
|
return;
|
|
19507
19569
|
}
|
|
19508
|
-
|
|
19570
|
+
const trackableEvent = {
|
|
19509
19571
|
queryKey: props.panelOptions.queryKey,
|
|
19510
19572
|
data: {
|
|
19511
19573
|
itemId: id,
|
|
@@ -19517,7 +19579,14 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19517
19579
|
items: [item]
|
|
19518
19580
|
}
|
|
19519
19581
|
}
|
|
19520
|
-
}
|
|
19582
|
+
};
|
|
19583
|
+
if (isDelayedClickTracking()) {
|
|
19584
|
+
trackingStore.trackDelayedEvent(__spreadProps2(__spreadValues2({}, trackableEvent), {
|
|
19585
|
+
url: link
|
|
19586
|
+
}));
|
|
19587
|
+
} else {
|
|
19588
|
+
trackingStore.trackEvent(trackableEvent);
|
|
19589
|
+
}
|
|
19521
19590
|
if (!link || eventType === "addToCart") {
|
|
19522
19591
|
return;
|
|
19523
19592
|
}
|
|
@@ -19783,7 +19852,7 @@ const _hoisted_3$x = {
|
|
|
19783
19852
|
key: 0,
|
|
19784
19853
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
19785
19854
|
};
|
|
19786
|
-
const _hoisted_4$
|
|
19855
|
+
const _hoisted_4$p = {
|
|
19787
19856
|
key: 1,
|
|
19788
19857
|
class: "lupa-panel-title"
|
|
19789
19858
|
};
|
|
@@ -19977,7 +20046,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
19977
20046
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
19978
20047
|
}, [
|
|
19979
20048
|
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
|
|
19980
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
20049
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
|
|
19981
20050
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
19982
20051
|
key: 2,
|
|
19983
20052
|
panel,
|
|
@@ -20243,7 +20312,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
20243
20312
|
if (!doc2.queryKey || !doc2.doc) {
|
|
20244
20313
|
return;
|
|
20245
20314
|
}
|
|
20246
|
-
|
|
20315
|
+
const event = {
|
|
20247
20316
|
queryKey: doc2.queryKey,
|
|
20248
20317
|
data: {
|
|
20249
20318
|
itemId: doc2.id,
|
|
@@ -20255,7 +20324,14 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
20255
20324
|
items: [doc2]
|
|
20256
20325
|
}
|
|
20257
20326
|
}
|
|
20258
|
-
}
|
|
20327
|
+
};
|
|
20328
|
+
if (isDelayedClickTracking()) {
|
|
20329
|
+
trackingStore.trackDelayedEvent(__spreadProps2(__spreadValues2({}, event), {
|
|
20330
|
+
url: generateLink(props.options.links.searchResults, doc2)
|
|
20331
|
+
}));
|
|
20332
|
+
} else {
|
|
20333
|
+
trackingStore.trackEvent(event);
|
|
20334
|
+
}
|
|
20259
20335
|
};
|
|
20260
20336
|
const trackSearchQuery = (query) => {
|
|
20261
20337
|
if (!query) {
|
|
@@ -20416,7 +20492,7 @@ const _hoisted_3$w = {
|
|
|
20416
20492
|
key: 1,
|
|
20417
20493
|
"data-cy": "did-you-mean-label"
|
|
20418
20494
|
};
|
|
20419
|
-
const _hoisted_4$
|
|
20495
|
+
const _hoisted_4$o = { key: 1 };
|
|
20420
20496
|
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
20421
20497
|
__name: "SearchResultsDidYouMean",
|
|
20422
20498
|
props: {
|
|
@@ -20467,7 +20543,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
20467
20543
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
20468
20544
|
"data-cy": "did-you-mean-value",
|
|
20469
20545
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
20470
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
20546
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
|
|
20471
20547
|
]);
|
|
20472
20548
|
}), 128))
|
|
20473
20549
|
])) : createCommentVNode("", true)
|
|
@@ -20517,7 +20593,7 @@ const _hoisted_3$v = {
|
|
|
20517
20593
|
key: 1,
|
|
20518
20594
|
class: "lupa-results-total-count"
|
|
20519
20595
|
};
|
|
20520
|
-
const _hoisted_4$
|
|
20596
|
+
const _hoisted_4$n = { class: "lupa-results-total-count-number" };
|
|
20521
20597
|
const _hoisted_5$f = ["innerHTML"];
|
|
20522
20598
|
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
20523
20599
|
__name: "SearchResultsTitle",
|
|
@@ -20563,7 +20639,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
20563
20639
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
20564
20640
|
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
|
|
20565
20641
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
20566
|
-
createBaseVNode("span", _hoisted_4$
|
|
20642
|
+
createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
|
|
20567
20643
|
createTextVNode(")")
|
|
20568
20644
|
])) : createCommentVNode("", true)
|
|
20569
20645
|
])) : createCommentVNode("", true),
|
|
@@ -20621,7 +20697,7 @@ const _hoisted_3$t = {
|
|
|
20621
20697
|
key: 0,
|
|
20622
20698
|
class: "filter-values"
|
|
20623
20699
|
};
|
|
20624
|
-
const _hoisted_4$
|
|
20700
|
+
const _hoisted_4$m = { class: "lupa-current-filter-list" };
|
|
20625
20701
|
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
20626
20702
|
__name: "CurrentFilters",
|
|
20627
20703
|
props: {
|
|
@@ -20705,7 +20781,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
20705
20781
|
}, null, 2)) : createCommentVNode("", true)
|
|
20706
20782
|
]),
|
|
20707
20783
|
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
20708
|
-
createBaseVNode("div", _hoisted_4$
|
|
20784
|
+
createBaseVNode("div", _hoisted_4$m, [
|
|
20709
20785
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
|
|
20710
20786
|
return openBlock(), createBlock(_sfc_main$V, {
|
|
20711
20787
|
key: filter2.key + "_" + filter2.value,
|
|
@@ -20773,7 +20849,7 @@ const _hoisted_1$N = {
|
|
|
20773
20849
|
};
|
|
20774
20850
|
const _hoisted_2$B = { class: "lupa-category-back" };
|
|
20775
20851
|
const _hoisted_3$s = ["href"];
|
|
20776
|
-
const _hoisted_4$
|
|
20852
|
+
const _hoisted_4$l = ["href"];
|
|
20777
20853
|
const _hoisted_5$e = { class: "lupa-child-category-list" };
|
|
20778
20854
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
20779
20855
|
__name: "CategoryFilter",
|
|
@@ -20880,7 +20956,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
20880
20956
|
href: parentUrlLink.value,
|
|
20881
20957
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
20882
20958
|
onClick: handleNavigationParent
|
|
20883
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
20959
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
|
|
20884
20960
|
], 2),
|
|
20885
20961
|
createBaseVNode("div", _hoisted_5$e, [
|
|
20886
20962
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
@@ -20901,7 +20977,7 @@ const _hoisted_1$M = {
|
|
|
20901
20977
|
};
|
|
20902
20978
|
const _hoisted_2$A = ["placeholder"];
|
|
20903
20979
|
const _hoisted_3$r = { class: "lupa-terms-list" };
|
|
20904
|
-
const _hoisted_4$
|
|
20980
|
+
const _hoisted_4$k = ["onClick"];
|
|
20905
20981
|
const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
|
|
20906
20982
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
20907
20983
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
@@ -21009,7 +21085,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
21009
21085
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
21010
21086
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
21011
21087
|
])
|
|
21012
|
-
], 10, _hoisted_4$
|
|
21088
|
+
], 10, _hoisted_4$k);
|
|
21013
21089
|
}), 128))
|
|
21014
21090
|
]),
|
|
21015
21091
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -22009,7 +22085,7 @@ const _hoisted_3$q = {
|
|
|
22009
22085
|
key: 1,
|
|
22010
22086
|
class: "lupa-stats-facet-summary-input"
|
|
22011
22087
|
};
|
|
22012
|
-
const _hoisted_4$
|
|
22088
|
+
const _hoisted_4$j = {
|
|
22013
22089
|
key: 0,
|
|
22014
22090
|
class: "lupa-stats-range-label"
|
|
22015
22091
|
};
|
|
@@ -22208,7 +22284,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
22208
22284
|
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
22209
22285
|
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
22210
22286
|
createBaseVNode("div", null, [
|
|
22211
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22287
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
22212
22288
|
createBaseVNode("div", _hoisted_5$c, [
|
|
22213
22289
|
withDirectives(createBaseVNode("input", {
|
|
22214
22290
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -22275,7 +22351,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
22275
22351
|
const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
|
|
22276
22352
|
const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
|
|
22277
22353
|
const _hoisted_3$p = { class: "lupa-term-label" };
|
|
22278
|
-
const _hoisted_4$
|
|
22354
|
+
const _hoisted_4$i = {
|
|
22279
22355
|
key: 0,
|
|
22280
22356
|
class: "lupa-term-count"
|
|
22281
22357
|
};
|
|
@@ -22336,7 +22412,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
22336
22412
|
]),
|
|
22337
22413
|
createBaseVNode("div", _hoisted_2$y, [
|
|
22338
22414
|
createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
22339
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
22415
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
22340
22416
|
])
|
|
22341
22417
|
]),
|
|
22342
22418
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
@@ -22857,7 +22933,7 @@ const _hoisted_1$D = {
|
|
|
22857
22933
|
};
|
|
22858
22934
|
const _hoisted_2$t = ["onClick"];
|
|
22859
22935
|
const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
|
|
22860
|
-
const _hoisted_4$
|
|
22936
|
+
const _hoisted_4$h = { class: "lupa-sidebar-top" };
|
|
22861
22937
|
const _hoisted_5$a = { class: "lupa-sidebar-title" };
|
|
22862
22938
|
const _hoisted_6$6 = {
|
|
22863
22939
|
key: 0,
|
|
@@ -22901,7 +22977,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
22901
22977
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
22902
22978
|
}, null, 8, _hoisted_2$t),
|
|
22903
22979
|
createBaseVNode("div", _hoisted_3$n, [
|
|
22904
|
-
createBaseVNode("div", _hoisted_4$
|
|
22980
|
+
createBaseVNode("div", _hoisted_4$h, [
|
|
22905
22981
|
createBaseVNode("div", _hoisted_5$a, [
|
|
22906
22982
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
22907
22983
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -22929,7 +23005,7 @@ const _hoisted_3$m = {
|
|
|
22929
23005
|
key: 1,
|
|
22930
23006
|
class: "lupa-search-results-breadcrumb-text"
|
|
22931
23007
|
};
|
|
22932
|
-
const _hoisted_4$
|
|
23008
|
+
const _hoisted_4$g = { key: 2 };
|
|
22933
23009
|
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
22934
23010
|
__name: "SearchResultsBreadcrumbs",
|
|
22935
23011
|
props: {
|
|
@@ -22970,7 +23046,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
22970
23046
|
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
22971
23047
|
}
|
|
22972
23048
|
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
22973
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23049
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
|
|
22974
23050
|
]);
|
|
22975
23051
|
}), 128))
|
|
22976
23052
|
]);
|
|
@@ -23076,7 +23152,7 @@ const _hoisted_2$r = {
|
|
|
23076
23152
|
class: "lupa-page-number-separator"
|
|
23077
23153
|
};
|
|
23078
23154
|
const _hoisted_3$l = ["onClick"];
|
|
23079
|
-
const _hoisted_4$
|
|
23155
|
+
const _hoisted_4$f = {
|
|
23080
23156
|
key: 0,
|
|
23081
23157
|
class: "lupa-page-number-separator"
|
|
23082
23158
|
};
|
|
@@ -23182,7 +23258,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
23182
23258
|
}, toDisplayString(page), 11, _hoisted_3$l);
|
|
23183
23259
|
}), 128)),
|
|
23184
23260
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
23185
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23261
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
|
|
23186
23262
|
createBaseVNode("div", {
|
|
23187
23263
|
class: "lupa-page-number lupa-page-number-last",
|
|
23188
23264
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -23207,7 +23283,7 @@ const _hoisted_1$x = {
|
|
|
23207
23283
|
};
|
|
23208
23284
|
const _hoisted_2$q = { id: "lupa-select" };
|
|
23209
23285
|
const _hoisted_3$k = { class: "lupa-select-label" };
|
|
23210
|
-
const _hoisted_4$
|
|
23286
|
+
const _hoisted_4$e = ["aria-label"];
|
|
23211
23287
|
const _hoisted_5$9 = ["value"];
|
|
23212
23288
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
23213
23289
|
__name: "SearchResultsPageSize",
|
|
@@ -23254,7 +23330,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
23254
23330
|
value: option
|
|
23255
23331
|
}, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
|
|
23256
23332
|
}), 128))
|
|
23257
|
-
], 40, _hoisted_4$
|
|
23333
|
+
], 40, _hoisted_4$e)
|
|
23258
23334
|
])
|
|
23259
23335
|
]);
|
|
23260
23336
|
};
|
|
@@ -23266,7 +23342,7 @@ const _hoisted_1$w = {
|
|
|
23266
23342
|
};
|
|
23267
23343
|
const _hoisted_2$p = { id: "lupa-select" };
|
|
23268
23344
|
const _hoisted_3$j = { class: "lupa-select-label" };
|
|
23269
|
-
const _hoisted_4$
|
|
23345
|
+
const _hoisted_4$d = ["aria-label"];
|
|
23270
23346
|
const _hoisted_5$8 = ["value"];
|
|
23271
23347
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23272
23348
|
__name: "SearchResultsSort",
|
|
@@ -23334,7 +23410,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23334
23410
|
value: option.key
|
|
23335
23411
|
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
23336
23412
|
}), 128))
|
|
23337
|
-
], 40, _hoisted_4$
|
|
23413
|
+
], 40, _hoisted_4$d), [
|
|
23338
23414
|
[vModelSelect, selectedKey.value]
|
|
23339
23415
|
])
|
|
23340
23416
|
])
|
|
@@ -23348,7 +23424,7 @@ const _hoisted_2$o = {
|
|
|
23348
23424
|
class: "lupa-toolbar-right-title"
|
|
23349
23425
|
};
|
|
23350
23426
|
const _hoisted_3$i = { key: 2 };
|
|
23351
|
-
const _hoisted_4$
|
|
23427
|
+
const _hoisted_4$c = { key: 4 };
|
|
23352
23428
|
const _hoisted_5$7 = { key: 6 };
|
|
23353
23429
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
23354
23430
|
const _hoisted_7$3 = {
|
|
@@ -23472,7 +23548,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
23472
23548
|
label: searchSummaryLabel.value,
|
|
23473
23549
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
23474
23550
|
onClear: handleClearAll
|
|
23475
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23551
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
|
|
23476
23552
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23477
23553
|
key: 5,
|
|
23478
23554
|
options: paginationOptions.value.pageSelect,
|
|
@@ -23521,7 +23597,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23521
23597
|
const _hoisted_1$u = ["title", "innerHTML"];
|
|
23522
23598
|
const _hoisted_2$n = ["title"];
|
|
23523
23599
|
const _hoisted_3$h = ["href", "innerHTML"];
|
|
23524
|
-
const _hoisted_4$
|
|
23600
|
+
const _hoisted_4$b = ["title"];
|
|
23525
23601
|
const _hoisted_5$6 = {
|
|
23526
23602
|
key: 0,
|
|
23527
23603
|
class: "lupa-search-results-product-title-text"
|
|
@@ -23589,7 +23665,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23589
23665
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
23590
23666
|
onClick: handleNavigation
|
|
23591
23667
|
}, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
|
|
23592
|
-
], 12, _hoisted_4$
|
|
23668
|
+
], 12, _hoisted_4$b));
|
|
23593
23669
|
};
|
|
23594
23670
|
}
|
|
23595
23671
|
});
|
|
@@ -23632,7 +23708,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23632
23708
|
const _hoisted_1$s = { id: "lupa-search-results-rating" };
|
|
23633
23709
|
const _hoisted_2$m = { class: "lupa-ratings" };
|
|
23634
23710
|
const _hoisted_3$g = { class: "lupa-ratings-base" };
|
|
23635
|
-
const _hoisted_4$
|
|
23711
|
+
const _hoisted_4$a = ["innerHTML"];
|
|
23636
23712
|
const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
|
|
23637
23713
|
const _hoisted_6$3 = ["innerHTML"];
|
|
23638
23714
|
const _hoisted_7$2 = ["href"];
|
|
@@ -23682,7 +23758,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23682
23758
|
key: index,
|
|
23683
23759
|
innerHTML: star,
|
|
23684
23760
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
23685
|
-
}, null, 8, _hoisted_4$
|
|
23761
|
+
}, null, 8, _hoisted_4$a);
|
|
23686
23762
|
}), 128))
|
|
23687
23763
|
]),
|
|
23688
23764
|
createBaseVNode("div", _hoisted_5$5, [
|
|
@@ -23822,7 +23898,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23822
23898
|
const _hoisted_1$p = ["innerHTML"];
|
|
23823
23899
|
const _hoisted_2$k = { key: 0 };
|
|
23824
23900
|
const _hoisted_3$e = { key: 1 };
|
|
23825
|
-
const _hoisted_4$
|
|
23901
|
+
const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
|
|
23826
23902
|
const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
|
|
23827
23903
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23828
23904
|
__name: "SearchResultsProductCustom",
|
|
@@ -23867,7 +23943,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23867
23943
|
class: className.value
|
|
23868
23944
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
23869
23945
|
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
23870
|
-
createBaseVNode("div", _hoisted_4$
|
|
23946
|
+
createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
|
|
23871
23947
|
createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
|
|
23872
23948
|
]))
|
|
23873
23949
|
], 16));
|
|
@@ -23913,7 +23989,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23913
23989
|
const _hoisted_1$n = { id: "lupa-search-results-rating" };
|
|
23914
23990
|
const _hoisted_2$j = ["innerHTML"];
|
|
23915
23991
|
const _hoisted_3$d = { class: "lupa-ratings" };
|
|
23916
|
-
const _hoisted_4$
|
|
23992
|
+
const _hoisted_4$8 = ["href"];
|
|
23917
23993
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
23918
23994
|
__name: "SearchResultsProductSingleStarRating",
|
|
23919
23995
|
props: {
|
|
@@ -23951,7 +24027,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
23951
24027
|
createBaseVNode("a", {
|
|
23952
24028
|
href: ratingLink.value,
|
|
23953
24029
|
class: "lupa-total-ratings"
|
|
23954
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
24030
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
|
|
23955
24031
|
]);
|
|
23956
24032
|
};
|
|
23957
24033
|
}
|
|
@@ -24046,12 +24122,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
24046
24122
|
};
|
|
24047
24123
|
}
|
|
24048
24124
|
}));
|
|
24049
|
-
const _hoisted_1$m = ["
|
|
24050
|
-
const _hoisted_2$i =
|
|
24125
|
+
const _hoisted_1$m = ["onMouseup"];
|
|
24126
|
+
const _hoisted_2$i = ["href"];
|
|
24127
|
+
const _hoisted_3$c = {
|
|
24051
24128
|
key: 0,
|
|
24052
24129
|
class: "lupa-out-of-stock"
|
|
24053
24130
|
};
|
|
24054
|
-
const
|
|
24131
|
+
const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
|
|
24055
24132
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
24056
24133
|
__name: "SearchResultsProductCard",
|
|
24057
24134
|
props: {
|
|
@@ -24155,7 +24232,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24155
24232
|
});
|
|
24156
24233
|
const handleClick = () => {
|
|
24157
24234
|
var _a, _b, _c, _d;
|
|
24158
|
-
|
|
24235
|
+
const event = {
|
|
24159
24236
|
queryKey: props.options.queryKey,
|
|
24160
24237
|
data: {
|
|
24161
24238
|
itemId: id.value,
|
|
@@ -24168,9 +24245,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24168
24245
|
items: [props.product],
|
|
24169
24246
|
itemId: id.value
|
|
24170
24247
|
},
|
|
24171
|
-
options: { allowEmptySearchQuery: true }
|
|
24248
|
+
options: { allowEmptySearchQuery: true },
|
|
24249
|
+
filters: searchResultStore.hasAnyFilter ? searchResultStore.filters : void 0
|
|
24172
24250
|
}
|
|
24173
|
-
}
|
|
24251
|
+
};
|
|
24252
|
+
if (isDelayedClickTracking()) {
|
|
24253
|
+
trackingStore.trackDelayedEvent(__spreadProps2(__spreadValues2({}, event), { url: link.value }));
|
|
24254
|
+
} else {
|
|
24255
|
+
trackingStore.trackEvent(event);
|
|
24256
|
+
}
|
|
24174
24257
|
(_d = (_c = searchResultOptions.value.callbacks) == null ? void 0 : _c.onProductClick) == null ? void 0 : _d.call(_c, {
|
|
24175
24258
|
queryKey: query.value,
|
|
24176
24259
|
hasResults: true,
|
|
@@ -24203,7 +24286,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24203
24286
|
id: "lupa-search-result-product-card",
|
|
24204
24287
|
"data-cy": "lupa-search-result-product-card",
|
|
24205
24288
|
class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
|
|
24206
|
-
}, customDocumentHtmlAttributes.value, {
|
|
24289
|
+
}, customDocumentHtmlAttributes.value, {
|
|
24290
|
+
onClick: handleClick,
|
|
24291
|
+
onMouseup: withModifiers(handleClick, ["middle", "exact"])
|
|
24292
|
+
}), [
|
|
24207
24293
|
createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
|
|
24208
24294
|
createBaseVNode("div", {
|
|
24209
24295
|
class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
|
|
@@ -24230,9 +24316,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24230
24316
|
position: "image",
|
|
24231
24317
|
class: "lupa-image-badges"
|
|
24232
24318
|
}, null, 8, ["options"]),
|
|
24233
|
-
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div",
|
|
24234
|
-
], 8,
|
|
24235
|
-
createBaseVNode("div",
|
|
24319
|
+
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
24320
|
+
], 8, _hoisted_2$i),
|
|
24321
|
+
createBaseVNode("div", _hoisted_4$7, [
|
|
24236
24322
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
24237
24323
|
return openBlock(), createBlock(_sfc_main$p, {
|
|
24238
24324
|
class: "lupa-search-results-product-element",
|
|
@@ -24266,7 +24352,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24266
24352
|
], 2);
|
|
24267
24353
|
}), 128))
|
|
24268
24354
|
], 2)
|
|
24269
|
-
], 16);
|
|
24355
|
+
], 16, _hoisted_1$m);
|
|
24270
24356
|
};
|
|
24271
24357
|
}
|
|
24272
24358
|
});
|
|
@@ -24404,6 +24490,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
24404
24490
|
});
|
|
24405
24491
|
};
|
|
24406
24492
|
const handleQueryChange = () => {
|
|
24493
|
+
showAll.value = false;
|
|
24407
24494
|
const context = getLupaTrackingContext();
|
|
24408
24495
|
const queryBody = __spreadProps2(__spreadValues2({}, context), {
|
|
24409
24496
|
limit: props.panel.totalCountLimit,
|