vviinn-widgets 2.134.0 → 2.135.0
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/cjs/{index-94fc4453.js → index-c94b611a.js} +7 -16
- package/dist/cjs/{package-322393f7.js → package-e43e618b.js} +1 -1
- package/dist/cjs/search-filters_19.cjs.entry.js +6 -4
- package/dist/cjs/vviinn-carousel_9.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +2 -2
- package/dist/collection/components/vviinn-filters/vviinn-extended-filters.js +1 -1
- package/dist/collection/components/vviinn-filters/vviinn-filters.js +1 -1
- package/dist/collection/components/vviinn-filters/vviinn-selected-filters.js +1 -1
- package/dist/collection/components/vviinn-results/vviinn-results.js +4 -3
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +2 -1
- package/dist/collection/tracking/index.js +8 -9
- package/dist/collection/tracking/result.js +1 -9
- package/dist/esm/{index-5bee1d57.js → index-c9810070.js} +7 -16
- package/dist/esm/{package-1bf140a0.js → package-e954776d.js} +1 -1
- package/dist/esm/search-filters_19.entry.js +6 -4
- package/dist/esm/vviinn-carousel_9.entry.js +2 -2
- package/dist/esm/vviinn-vps-button.entry.js +1 -1
- package/dist/esm/vviinn-vps-widget.entry.js +2 -2
- package/dist/types/recommendation/events.d.ts +1 -0
- package/dist/types/tracking/index.d.ts +1 -1
- package/dist/types/tracking/result.d.ts +1 -3
- package/dist/vviinn-widgets/{p-957c706e.js → p-1e696b7e.js} +1 -1
- package/dist/vviinn-widgets/{p-93f1dfc7.entry.js → p-46f38adb.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-fd79de48.js → p-7abd5c44.js} +1 -1
- package/dist/vviinn-widgets/{p-78068c9e.entry.js → p-9d8e1fdb.entry.js} +1 -1
- package/{www/build/p-dab180d5.entry.js → dist/vviinn-widgets/p-b660a5b0.entry.js} +2 -2
- package/dist/vviinn-widgets/{p-a516e06e.entry.js → p-f26aef9e.entry.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-957c706e.js → p-1e696b7e.js} +1 -1
- package/www/build/{p-93f1dfc7.entry.js → p-46f38adb.entry.js} +1 -1
- package/www/build/{p-fd79de48.js → p-7abd5c44.js} +1 -1
- package/www/build/{p-78068c9e.entry.js → p-9d8e1fdb.entry.js} +1 -1
- package/{dist/vviinn-widgets/p-dab180d5.entry.js → www/build/p-b660a5b0.entry.js} +2 -2
- package/www/build/{p-a516e06e.entry.js → p-f26aef9e.entry.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
|
@@ -6239,14 +6239,6 @@ const vpcResultView = {
|
|
|
6239
6239
|
widget: "VPC",
|
|
6240
6240
|
typ: RESULT_VIEW_EVENT_TYPE,
|
|
6241
6241
|
};
|
|
6242
|
-
const vpsResultLoad = {
|
|
6243
|
-
widget: "VPS",
|
|
6244
|
-
typ: RESULT_LOAD_EVENT_TYPE,
|
|
6245
|
-
};
|
|
6246
|
-
const vpsResultView = {
|
|
6247
|
-
widget: "VPS",
|
|
6248
|
-
typ: RESULT_VIEW_EVENT_TYPE,
|
|
6249
|
-
};
|
|
6250
6242
|
|
|
6251
6243
|
const createProductVprEventByType = (type) => {
|
|
6252
6244
|
switch (type) {
|
|
@@ -6284,13 +6276,12 @@ const createResultVpcEventByType = (type) => {
|
|
|
6284
6276
|
return createTrackingEvent(vpcResultView);
|
|
6285
6277
|
}
|
|
6286
6278
|
};
|
|
6287
|
-
const
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
}
|
|
6279
|
+
const createResultEventByType = (type, widget) => {
|
|
6280
|
+
const typ = type === "load" ? RESULT_LOAD_EVENT_TYPE : RESULT_VIEW_EVENT_TYPE;
|
|
6281
|
+
return createTrackingEvent({
|
|
6282
|
+
widget,
|
|
6283
|
+
typ,
|
|
6284
|
+
});
|
|
6294
6285
|
};
|
|
6295
6286
|
const createProductWidgetEventByType = (widget, type) => {
|
|
6296
6287
|
switch (type) {
|
|
@@ -6325,9 +6316,9 @@ exports.createFilterEvent = createFilterEvent;
|
|
|
6325
6316
|
exports.createProductVpcEventByType = createProductVpcEventByType;
|
|
6326
6317
|
exports.createProductVprEventByType = createProductVprEventByType;
|
|
6327
6318
|
exports.createProductWidgetEventByType = createProductWidgetEventByType;
|
|
6319
|
+
exports.createResultEventByType = createResultEventByType;
|
|
6328
6320
|
exports.createResultVpcEventByType = createResultVpcEventByType;
|
|
6329
6321
|
exports.createResultVprEventByType = createResultVprEventByType;
|
|
6330
|
-
exports.createResultVpsEventByType = createResultVpsEventByType;
|
|
6331
6322
|
exports.createSearchEvent = createSearchEvent;
|
|
6332
6323
|
exports.createTrackingApi = createTrackingApi;
|
|
6333
6324
|
exports.createWidgetVpcEvent = createWidgetVpcEvent;
|
|
@@ -123,7 +123,7 @@ const slotChangeListener = (component, element) => {
|
|
|
123
123
|
component.connectedCallback.call(component);
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
const version = "2.
|
|
126
|
+
const version = "2.135.0";
|
|
127
127
|
|
|
128
128
|
exports.SlotSkeleton = SlotSkeleton;
|
|
129
129
|
exports.campaignTypeNames = campaignTypeNames;
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-711d38e6.js');
|
|
6
6
|
const search_store = require('./search.store-2527c63a.js');
|
|
7
7
|
const Rectangle = require('./Rectangle-99c25901.js');
|
|
8
|
-
const index$1 = require('./index-
|
|
9
|
-
const _package = require('./package-
|
|
8
|
+
const index$1 = require('./index-c94b611a.js');
|
|
9
|
+
const _package = require('./package-e43e618b.js');
|
|
10
10
|
const index$2 = require('./index-4c9a5dbb.js');
|
|
11
11
|
const SearchModalUploadIcon = require('./SearchModalUploadIcon-23f00a14.js');
|
|
12
12
|
|
|
@@ -4014,6 +4014,7 @@ const VviinnResults = class {
|
|
|
4014
4014
|
this.filtersTriggeredHandler = ({ detail, }) => {
|
|
4015
4015
|
if (this.trackingDeactivated)
|
|
4016
4016
|
return;
|
|
4017
|
+
this.isTextSearch = detail.customTrigger === "TPS";
|
|
4017
4018
|
const _a = this.getBasicEventData(), rest = __rest(_a, ["campaignTypeId"]);
|
|
4018
4019
|
const filterEvent = index$1.createFilterEvent(Object.assign(Object.assign({ session_id: this.uiSessionId, typ: "filter_event" }, rest), detail));
|
|
4019
4020
|
this.trackingApi.trackEvent(filterEvent).then(this.setTrackingDeactivated);
|
|
@@ -4208,8 +4209,8 @@ const VviinnResults = class {
|
|
|
4208
4209
|
trackResultEvent(type) {
|
|
4209
4210
|
if (this.trackingDeactivated)
|
|
4210
4211
|
return;
|
|
4211
|
-
const _a = this.getBasicEventData(), rest = __rest(_a, ["campaignTypeId", "widgetType"]);
|
|
4212
|
-
let resultEvent = index$1.
|
|
4212
|
+
const _a = this.getBasicEventData(), { campaignTypeId, widgetType, widget } = _a, rest = __rest(_a, ["campaignTypeId", "widgetType", "widget"]);
|
|
4213
|
+
let resultEvent = index$1.createResultEventByType(type, widget !== null && widget !== void 0 ? widget : "VPS")(Object.assign({ session_id: this.uiSessionId }, rest));
|
|
4213
4214
|
this.trackingApi.trackEvent(resultEvent).then(this.setTrackingDeactivated);
|
|
4214
4215
|
}
|
|
4215
4216
|
findProductById(id) {
|
|
@@ -4447,6 +4448,7 @@ const VviinnTextSearch = class {
|
|
|
4447
4448
|
this.vviinnFilterTriggered.emit({
|
|
4448
4449
|
kind: this.searchQuery,
|
|
4449
4450
|
action: "select",
|
|
4451
|
+
customTrigger: "TPS",
|
|
4450
4452
|
});
|
|
4451
4453
|
if (this.showInWidget) {
|
|
4452
4454
|
const { requestId } = search_store._function.pipe(await search_store.makeTextSearchRequest(this.token, this.searchQuery), search_store.getOrElse(() => null), (response) => response);
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-711d38e6.js');
|
|
6
6
|
const search_store = require('./search.store-2527c63a.js');
|
|
7
|
-
const _package = require('./package-
|
|
7
|
+
const _package = require('./package-e43e618b.js');
|
|
8
8
|
const index$1 = require('./index-4c9a5dbb.js');
|
|
9
|
-
const index$2 = require('./index-
|
|
9
|
+
const index$2 = require('./index-c94b611a.js');
|
|
10
10
|
const triggerFilter = require('./triggerFilter-fcab6cac.js');
|
|
11
11
|
const Rectangle = require('./Rectangle-99c25901.js');
|
|
12
12
|
const index$3 = require('./index-f7204218.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-711d38e6.js');
|
|
6
|
-
const _package = require('./package-
|
|
6
|
+
const _package = require('./package-e43e618b.js');
|
|
7
7
|
const SearchModalUploadIcon = require('./SearchModalUploadIcon-23f00a14.js');
|
|
8
8
|
const constants = require('./constants-7684cbfc.js');
|
|
9
9
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-711d38e6.js');
|
|
6
6
|
const search_store = require('./search.store-2527c63a.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
const _package = require('./package-
|
|
7
|
+
const index$1 = require('./index-c94b611a.js');
|
|
8
|
+
const _package = require('./package-e43e618b.js');
|
|
9
9
|
const constants = require('./constants-7684cbfc.js');
|
|
10
10
|
const index$2 = require('./index-f7204218.js');
|
|
11
11
|
require('./Rectangle-99c25901.js');
|
|
@@ -475,7 +475,7 @@ export class VviinnExtendedFilters {
|
|
|
475
475
|
},
|
|
476
476
|
"complexType": {
|
|
477
477
|
"original": "DynamicFilterTrackingData",
|
|
478
|
-
"resolved": "{ action: FilterAction; kind?: string; }",
|
|
478
|
+
"resolved": "{ action: FilterAction; kind?: string; customTrigger?: Widget; }",
|
|
479
479
|
"references": {
|
|
480
480
|
"DynamicFilterTrackingData": {
|
|
481
481
|
"location": "import",
|
|
@@ -280,7 +280,7 @@ export class VviinnFilters {
|
|
|
280
280
|
},
|
|
281
281
|
"complexType": {
|
|
282
282
|
"original": "DynamicFilterTrackingData",
|
|
283
|
-
"resolved": "{ action: FilterAction; kind?: string; }",
|
|
283
|
+
"resolved": "{ action: FilterAction; kind?: string; customTrigger?: Widget; }",
|
|
284
284
|
"references": {
|
|
285
285
|
"DynamicFilterTrackingData": {
|
|
286
286
|
"location": "import",
|
|
@@ -186,7 +186,7 @@ export class VviinnSelectedFilters {
|
|
|
186
186
|
},
|
|
187
187
|
"complexType": {
|
|
188
188
|
"original": "DynamicFilterTrackingData",
|
|
189
|
-
"resolved": "{ action: FilterAction; kind?: string; }",
|
|
189
|
+
"resolved": "{ action: FilterAction; kind?: string; customTrigger?: Widget; }",
|
|
190
190
|
"references": {
|
|
191
191
|
"DynamicFilterTrackingData": {
|
|
192
192
|
"location": "import",
|
|
@@ -19,7 +19,7 @@ import { makeProductListingPageRequest, makeSearchIdRequest, makeSearchQueryRequ
|
|
|
19
19
|
import { state } from "../../store/store";
|
|
20
20
|
import { createTrackingApi } from "../../openApi";
|
|
21
21
|
import { campaignTypeNames } from "../../campaign/Campaign";
|
|
22
|
-
import { createFilterEvent,
|
|
22
|
+
import { createFilterEvent, createProductWidgetEventByType, createResultEventByType, } from "../../tracking";
|
|
23
23
|
import i18next from "i18next";
|
|
24
24
|
import { resources } from "../../locale";
|
|
25
25
|
import { slotChangeListener } from "../customized-slots";
|
|
@@ -114,6 +114,7 @@ export class VviinnResults {
|
|
|
114
114
|
this.filtersTriggeredHandler = ({ detail, }) => {
|
|
115
115
|
if (this.trackingDeactivated)
|
|
116
116
|
return;
|
|
117
|
+
this.isTextSearch = detail.customTrigger === "TPS";
|
|
117
118
|
const _a = this.getBasicEventData(), { campaignTypeId } = _a, rest = __rest(_a, ["campaignTypeId"]);
|
|
118
119
|
const filterEvent = createFilterEvent(Object.assign(Object.assign({ session_id: this.uiSessionId, typ: "filter_event" }, rest), detail));
|
|
119
120
|
this.trackingApi.trackEvent(filterEvent).then(this.setTrackingDeactivated);
|
|
@@ -308,8 +309,8 @@ export class VviinnResults {
|
|
|
308
309
|
trackResultEvent(type) {
|
|
309
310
|
if (this.trackingDeactivated)
|
|
310
311
|
return;
|
|
311
|
-
const _a = this.getBasicEventData(), { campaignTypeId, widgetType } = _a, rest = __rest(_a, ["campaignTypeId", "widgetType"]);
|
|
312
|
-
let resultEvent =
|
|
312
|
+
const _a = this.getBasicEventData(), { campaignTypeId, widgetType, widget } = _a, rest = __rest(_a, ["campaignTypeId", "widgetType", "widget"]);
|
|
313
|
+
let resultEvent = createResultEventByType(type, widget !== null && widget !== void 0 ? widget : "VPS")(Object.assign({ session_id: this.uiSessionId }, rest));
|
|
313
314
|
this.trackingApi.trackEvent(resultEvent).then(this.setTrackingDeactivated);
|
|
314
315
|
}
|
|
315
316
|
findProductById(id) {
|
|
@@ -66,6 +66,7 @@ export class VviinnTextSearch {
|
|
|
66
66
|
this.vviinnFilterTriggered.emit({
|
|
67
67
|
kind: this.searchQuery,
|
|
68
68
|
action: "select",
|
|
69
|
+
customTrigger: "TPS",
|
|
69
70
|
});
|
|
70
71
|
if (this.showInWidget) {
|
|
71
72
|
const { requestId } = pipe(await makeTextSearchRequest(this.token, this.searchQuery), E.getOrElse(() => null), (response) => response);
|
|
@@ -347,7 +348,7 @@ export class VviinnTextSearch {
|
|
|
347
348
|
},
|
|
348
349
|
"complexType": {
|
|
349
350
|
"original": "DynamicFilterTrackingData",
|
|
350
|
-
"resolved": "{ action: FilterAction; kind?: string; }",
|
|
351
|
+
"resolved": "{ action: FilterAction; kind?: string; customTrigger?: Widget; }",
|
|
351
352
|
"references": {
|
|
352
353
|
"DynamicFilterTrackingData": {
|
|
353
354
|
"location": "import",
|
|
@@ -3,8 +3,8 @@ import { filterEvent } from "./filter";
|
|
|
3
3
|
import { vprProductLoad, vpcProductLoad, vprProductClick, vpcProductClick, vprProductView, vpcProductView, vprAddToBasket, vpcAddToBasket, vpsProductClick, vpsProductView, vpsProductLoad, } from "./product";
|
|
4
4
|
import { searchEvent } from "./search";
|
|
5
5
|
import { vpcWidget, vprWidget, vpsWidget } from "./widget";
|
|
6
|
-
import { vprResultLoad, vpcResultLoad,
|
|
7
|
-
import { PRODUCT_CLICK_EVENT_TYPE, PRODUCT_LOAD_EVENT_TYPE, PRODUCT_VIEW_EVENT_TYPE, } from "./models";
|
|
6
|
+
import { vprResultLoad, vpcResultLoad, vprResultView, vpcResultView, } from "./result";
|
|
7
|
+
import { PRODUCT_CLICK_EVENT_TYPE, PRODUCT_LOAD_EVENT_TYPE, PRODUCT_VIEW_EVENT_TYPE, RESULT_LOAD_EVENT_TYPE, RESULT_VIEW_EVENT_TYPE, } from "./models";
|
|
8
8
|
export const createProductVprEventByType = (type) => {
|
|
9
9
|
switch (type) {
|
|
10
10
|
case "load":
|
|
@@ -51,13 +51,12 @@ export const createResultVpcEventByType = (type) => {
|
|
|
51
51
|
return createTrackingEvent(vpcResultView);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
export const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
54
|
+
export const createResultEventByType = (type, widget) => {
|
|
55
|
+
const typ = type === "load" ? RESULT_LOAD_EVENT_TYPE : RESULT_VIEW_EVENT_TYPE;
|
|
56
|
+
return createTrackingEvent({
|
|
57
|
+
widget,
|
|
58
|
+
typ,
|
|
59
|
+
});
|
|
61
60
|
};
|
|
62
61
|
export const createProductWidgetEventByType = (widget, type) => {
|
|
63
62
|
switch (type) {
|
|
@@ -15,12 +15,4 @@ const vpcResultView = {
|
|
|
15
15
|
widget: "VPC",
|
|
16
16
|
typ: RESULT_VIEW_EVENT_TYPE,
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
widget: "VPS",
|
|
20
|
-
typ: RESULT_LOAD_EVENT_TYPE,
|
|
21
|
-
};
|
|
22
|
-
const vpsResultView = {
|
|
23
|
-
widget: "VPS",
|
|
24
|
-
typ: RESULT_VIEW_EVENT_TYPE,
|
|
25
|
-
};
|
|
26
|
-
export { vprResultLoad, vprResultView, vpcResultLoad, vpcResultView, vpsResultLoad, vpsResultView, };
|
|
18
|
+
export { vprResultLoad, vprResultView, vpcResultLoad, vpcResultView };
|
|
@@ -6237,14 +6237,6 @@ const vpcResultView = {
|
|
|
6237
6237
|
widget: "VPC",
|
|
6238
6238
|
typ: RESULT_VIEW_EVENT_TYPE,
|
|
6239
6239
|
};
|
|
6240
|
-
const vpsResultLoad = {
|
|
6241
|
-
widget: "VPS",
|
|
6242
|
-
typ: RESULT_LOAD_EVENT_TYPE,
|
|
6243
|
-
};
|
|
6244
|
-
const vpsResultView = {
|
|
6245
|
-
widget: "VPS",
|
|
6246
|
-
typ: RESULT_VIEW_EVENT_TYPE,
|
|
6247
|
-
};
|
|
6248
6240
|
|
|
6249
6241
|
const createProductVprEventByType = (type) => {
|
|
6250
6242
|
switch (type) {
|
|
@@ -6282,13 +6274,12 @@ const createResultVpcEventByType = (type) => {
|
|
|
6282
6274
|
return createTrackingEvent(vpcResultView);
|
|
6283
6275
|
}
|
|
6284
6276
|
};
|
|
6285
|
-
const
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
}
|
|
6277
|
+
const createResultEventByType = (type, widget) => {
|
|
6278
|
+
const typ = type === "load" ? RESULT_LOAD_EVENT_TYPE : RESULT_VIEW_EVENT_TYPE;
|
|
6279
|
+
return createTrackingEvent({
|
|
6280
|
+
widget,
|
|
6281
|
+
typ,
|
|
6282
|
+
});
|
|
6292
6283
|
};
|
|
6293
6284
|
const createProductWidgetEventByType = (widget, type) => {
|
|
6294
6285
|
switch (type) {
|
|
@@ -6317,4 +6308,4 @@ const createFilterEvent = createTrackingEvent(filterEvent);
|
|
|
6317
6308
|
const createAddToBasketVprEvent = createTrackingEvent(vprAddToBasket);
|
|
6318
6309
|
const createAddToBasketVpcEvent = createTrackingEvent(vpcAddToBasket);
|
|
6319
6310
|
|
|
6320
|
-
export { createAddToBasketVpcEvent as a, createAddToBasketVprEvent as b, createTrackingApi as c, createWidgetVpcEvent as d, createWidgetVprEvent as e, createResultVpcEventByType as f, createResultVprEventByType as g, createProductVpcEventByType as h, instance as i, createProductVprEventByType as j, createSearchEvent as k, createFilterEvent as l, createWidgetVpsEvent as m,
|
|
6311
|
+
export { createAddToBasketVpcEvent as a, createAddToBasketVprEvent as b, createTrackingApi as c, createWidgetVpcEvent as d, createWidgetVprEvent as e, createResultVpcEventByType as f, createResultVprEventByType as g, createProductVpcEventByType as h, instance as i, createProductVprEventByType as j, createSearchEvent as k, createFilterEvent as l, createWidgetVpsEvent as m, createResultEventByType as n, createProductWidgetEventByType as o, resources as r, v4 as v };
|
|
@@ -121,6 +121,6 @@ const slotChangeListener = (component, element) => {
|
|
|
121
121
|
component.connectedCallback.call(component);
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
const version = "2.
|
|
124
|
+
const version = "2.135.0";
|
|
125
125
|
|
|
126
126
|
export { SlotSkeleton as S, fold as a, campaignTypeNames as c, fromString as f, slotChangeListener as s, version as v };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-8e1dd483.js';
|
|
2
2
|
import { s as searchState, i as createCommonjsModule, e as commonjsGlobal, O as Option, k as toFile, _ as _function, l as processSelectedFile, E as Either, n as match, o as makeRectangularSearchRequest, q as sequenceToOption, r as dimensionsFromImage, u as scaleByLargestSide, d as state, v as makeSearchIdRequest, w as getOrElse, x as makeTextSearchRequest, y as makeSearchQueryRequest, z as makeProductListingPageRequest } from './search.store-9c7a1035.js';
|
|
3
3
|
import { f as fromImage } from './Rectangle-6e69b807.js';
|
|
4
|
-
import { i as instance, l as createFilterEvent, r as resources, c as createTrackingApi, v as v4, n as
|
|
5
|
-
import { s as slotChangeListener, c as campaignTypeNames, v as version } from './package-
|
|
4
|
+
import { i as instance, l as createFilterEvent, r as resources, c as createTrackingApi, v as v4, n as createResultEventByType, o as createProductWidgetEventByType } from './index-c9810070.js';
|
|
5
|
+
import { s as slotChangeListener, c as campaignTypeNames, v as version } from './package-e954776d.js';
|
|
6
6
|
import { P as PlusIcon, g as getCustomLabels } from './index-f38df7a0.js';
|
|
7
7
|
import { S as SearchModalUploadIcon } from './SearchModalUploadIcon-08db80ec.js';
|
|
8
8
|
|
|
@@ -4010,6 +4010,7 @@ const VviinnResults = class {
|
|
|
4010
4010
|
this.filtersTriggeredHandler = ({ detail, }) => {
|
|
4011
4011
|
if (this.trackingDeactivated)
|
|
4012
4012
|
return;
|
|
4013
|
+
this.isTextSearch = detail.customTrigger === "TPS";
|
|
4013
4014
|
const _a = this.getBasicEventData(), rest = __rest(_a, ["campaignTypeId"]);
|
|
4014
4015
|
const filterEvent = createFilterEvent(Object.assign(Object.assign({ session_id: this.uiSessionId, typ: "filter_event" }, rest), detail));
|
|
4015
4016
|
this.trackingApi.trackEvent(filterEvent).then(this.setTrackingDeactivated);
|
|
@@ -4204,8 +4205,8 @@ const VviinnResults = class {
|
|
|
4204
4205
|
trackResultEvent(type) {
|
|
4205
4206
|
if (this.trackingDeactivated)
|
|
4206
4207
|
return;
|
|
4207
|
-
const _a = this.getBasicEventData(), rest = __rest(_a, ["campaignTypeId", "widgetType"]);
|
|
4208
|
-
let resultEvent =
|
|
4208
|
+
const _a = this.getBasicEventData(), { campaignTypeId, widgetType, widget } = _a, rest = __rest(_a, ["campaignTypeId", "widgetType", "widget"]);
|
|
4209
|
+
let resultEvent = createResultEventByType(type, widget !== null && widget !== void 0 ? widget : "VPS")(Object.assign({ session_id: this.uiSessionId }, rest));
|
|
4209
4210
|
this.trackingApi.trackEvent(resultEvent).then(this.setTrackingDeactivated);
|
|
4210
4211
|
}
|
|
4211
4212
|
findProductById(id) {
|
|
@@ -4443,6 +4444,7 @@ const VviinnTextSearch = class {
|
|
|
4443
4444
|
this.vviinnFilterTriggered.emit({
|
|
4444
4445
|
kind: this.searchQuery,
|
|
4445
4446
|
action: "select",
|
|
4447
|
+
customTrigger: "TPS",
|
|
4446
4448
|
});
|
|
4447
4449
|
if (this.showInWidget) {
|
|
4448
4450
|
const { requestId } = _function.pipe(await makeTextSearchRequest(this.token, this.searchQuery), getOrElse(() => null), (response) => response);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement, F as Fragment } from './index-8e1dd483.js';
|
|
2
2
|
import { _ as _function, a as _Array, O as Option, S as Semigroup, h as has, t as tuple, E as Either, s as searchState, p as pipe, c as chainW, m as makeRequest, f as fromEither, g as getApiPath, b as createInitPostRequest, A as Apply, d as state, T as TaskEither } from './search.store-9c7a1035.js';
|
|
3
|
-
import { c as campaignTypeNames, s as slotChangeListener, S as SlotSkeleton, f as fromString, a as fold, v as version } from './package-
|
|
3
|
+
import { c as campaignTypeNames, s as slotChangeListener, S as SlotSkeleton, f as fromString, a as fold, v as version } from './package-e954776d.js';
|
|
4
4
|
import { g as getCustomLabels, P as PlusIcon, a as getRecommendationsBody } from './index-f38df7a0.js';
|
|
5
|
-
import { i as instance, r as resources, v as v4, c as createTrackingApi, a as createAddToBasketVpcEvent, b as createAddToBasketVprEvent, d as createWidgetVpcEvent, e as createWidgetVprEvent, f as createResultVpcEventByType, g as createResultVprEventByType, h as createProductVpcEventByType, j as createProductVprEventByType } from './index-
|
|
5
|
+
import { i as instance, r as resources, v as v4, c as createTrackingApi, a as createAddToBasketVpcEvent, b as createAddToBasketVprEvent, d as createWidgetVpcEvent, e as createWidgetVprEvent, f as createResultVpcEventByType, g as createResultVprEventByType, h as createProductVpcEventByType, j as createProductVprEventByType } from './index-c9810070.js';
|
|
6
6
|
import { R as RenderButton, t as triggerFilter, a as triggerResetFilters, s as showActiveOnSubButton } from './triggerFilter-5989fdc3.js';
|
|
7
7
|
import { i as isClickedInRectBound } from './Rectangle-6e69b807.js';
|
|
8
8
|
import { p as priceRangeParts } from './index-5edc8c32.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-8e1dd483.js';
|
|
2
|
-
import { c as campaignTypeNames, v as version, S as SlotSkeleton } from './package-
|
|
2
|
+
import { c as campaignTypeNames, v as version, S as SlotSkeleton } from './package-e954776d.js';
|
|
3
3
|
import { S as SearchModalUploadIcon } from './SearchModalUploadIcon-08db80ec.js';
|
|
4
4
|
import { D as DEFAULT_EXAMPLE_IMAGE } from './constants-8bf233a9.js';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, F as Fragment, H as Host, g as getElement } from './index-8e1dd483.js';
|
|
2
2
|
import { s as searchState, d as state, j as parseExcludedToParams, O as Option } from './search.store-9c7a1035.js';
|
|
3
|
-
import { i as instance, r as resources, k as createSearchEvent, l as createFilterEvent, v as v4, c as createTrackingApi, m as createWidgetVpsEvent } from './index-
|
|
4
|
-
import { c as campaignTypeNames, v as version, s as slotChangeListener, S as SlotSkeleton } from './package-
|
|
3
|
+
import { i as instance, r as resources, k as createSearchEvent, l as createFilterEvent, v as v4, c as createTrackingApi, m as createWidgetVpsEvent } from './index-c9810070.js';
|
|
4
|
+
import { c as campaignTypeNames, v as version, s as slotChangeListener, S as SlotSkeleton } from './package-e954776d.js';
|
|
5
5
|
import { D as DEFAULT_EXAMPLE_IMAGE } from './constants-8bf233a9.js';
|
|
6
6
|
import { f as filtersParts, e as extendedFiltersParts, s as searchWidgetFilterParts } from './index-5edc8c32.js';
|
|
7
7
|
import './Rectangle-6e69b807.js';
|
|
@@ -70,6 +70,7 @@ export type DynamicFiltersEventData = ResponseDynamicFilterItem[];
|
|
|
70
70
|
export type DynamicFilterTrackingData = {
|
|
71
71
|
action: FilterAction;
|
|
72
72
|
kind?: string;
|
|
73
|
+
customTrigger?: Widget;
|
|
73
74
|
};
|
|
74
75
|
export type SearchIdEvent = CustomEvent<SearchIdEventData>;
|
|
75
76
|
export type TextSearchEvent = CustomEvent<TextSearchEventData>;
|
|
@@ -5,7 +5,7 @@ export declare const createProductVpcEventByType: (type: ProductEventType) => <T
|
|
|
5
5
|
export declare const createProductVpsEventByType: (type: ProductEventType) => <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
6
6
|
export declare const createResultVprEventByType: (type: ResultEventType) => <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
7
7
|
export declare const createResultVpcEventByType: (type: ResultEventType) => <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const createResultEventByType: (type: ResultEventType, widget: Widget) => <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
9
9
|
export declare const createProductWidgetEventByType: (widget: Widget, type: ProductEventType) => <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
10
10
|
export declare const createWidgetVprEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
11
11
|
export declare const createWidgetVpsEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
@@ -3,6 +3,4 @@ declare const vprResultLoad: WidgetEventType;
|
|
|
3
3
|
declare const vprResultView: WidgetEventType;
|
|
4
4
|
declare const vpcResultLoad: WidgetEventType;
|
|
5
5
|
declare const vpcResultView: WidgetEventType;
|
|
6
|
-
|
|
7
|
-
declare const vpsResultView: WidgetEventType;
|
|
8
|
-
export { vprResultLoad, vprResultView, vpcResultLoad, vpcResultView, vpsResultLoad, vpsResultView, };
|
|
6
|
+
export { vprResultLoad, vprResultView, vpcResultLoad, vpcResultView };
|