vviinn-widgets 2.149.0 → 2.150.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-b261b731.js → index-330bee2e.js} +250 -264
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-45a82509.js → package-9f654b07.js} +1 -1
- package/dist/cjs/search-filters_13.cjs.entry.js +59 -60
- package/dist/cjs/{search.store-d2e7cc7a.js → search.store-42a66d40.js} +401 -403
- package/dist/cjs/{triggerFilter-5d7461d6.js → triggerFilter-f3639947.js} +10 -6
- package/dist/cjs/v4-972c41f2.js +124 -0
- package/dist/cjs/vviinn-carousel_9.cjs.entry.js +149 -175
- package/dist/cjs/vviinn-detected-object_7.cjs.entry.js +3 -9
- package/dist/cjs/vviinn-selected-filters.cjs.entry.js +9 -4
- package/dist/cjs/vviinn-text-search.cjs.entry.js +27 -5
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-widgets.cjs.js +1 -1
- package/dist/collection/components/image-search/search-filters/search-filters.js +2 -2
- package/dist/collection/components/vviinn-camera/vviinn-camera.js +3 -3
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +4 -13
- package/dist/collection/components/vviinn-cropper/vviinn-cropper.js +2 -2
- package/dist/collection/components/vviinn-cropper/vviinn-detected-object/vviinn-detected-object.js +2 -2
- package/dist/collection/components/vviinn-filters/helpers/subFilterSelection.js +2 -1
- package/dist/collection/components/vviinn-filters/helpers/triggerFilter.js +6 -5
- package/dist/collection/components/vviinn-filters/vviinn-extended-filters-button.js +1 -1
- package/dist/collection/components/vviinn-filters/vviinn-extended-filters.js +22 -5
- package/dist/collection/components/vviinn-filters/vviinn-filters.js +8 -2
- package/dist/collection/components/vviinn-filters/vviinn-selected-filters.js +9 -3
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +3 -3
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +3 -8
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +1 -1
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +13 -24
- package/dist/collection/components/vviinn-results/vviinn-results.js +53 -25
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +67 -0
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +1 -1
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +10 -10
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.js +40 -56
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +14 -14
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +24 -40
- package/dist/collection/filters/index.js +1 -0
- package/dist/collection/recommendation/index.js +24 -15
- package/dist/collection/store/search.store.js +5 -11
- package/dist/collection/tracking/index.js +31 -77
- package/dist/collection/tracking/models.js +2 -1
- package/dist/collection/utils/collections/collectionUtils.test.js +44 -0
- package/dist/collection/utils/collections/collectionsUtils.js +4 -0
- package/dist/esm/{index-dc21df94.js → index-a63f8909.js} +245 -250
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-6dce0710.js → package-ae09326e.js} +1 -1
- package/dist/esm/search-filters_13.entry.js +53 -54
- package/dist/esm/{search.store-46db17a7.js → search.store-edece494.js} +401 -404
- package/dist/esm/{triggerFilter-ae5d04db.js → triggerFilter-0a80e416.js} +10 -7
- package/dist/esm/v4-f96941d1.js +119 -0
- package/dist/esm/vviinn-carousel_9.entry.js +135 -161
- package/dist/esm/vviinn-detected-object_7.entry.js +3 -9
- package/dist/esm/vviinn-selected-filters.entry.js +9 -4
- package/dist/esm/vviinn-text-search.entry.js +24 -2
- package/dist/esm/vviinn-vps-button.entry.js +1 -1
- package/dist/esm/vviinn-widgets.js +1 -1
- package/dist/types/components/vviinn-filters/helpers/triggerFilter.d.ts +3 -3
- package/dist/types/components/vviinn-filters/vviinn-extended-filters-button.d.ts +0 -1
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +1 -2
- package/dist/types/components/vviinn-results/vviinn-results.d.ts +3 -0
- package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +8 -1
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-widget.d.ts +2 -0
- package/dist/types/components.d.ts +3 -4
- package/dist/types/filters/index.d.ts +1 -0
- package/dist/types/recommendation/events.d.ts +1 -2
- package/dist/types/tracking/index.d.ts +6 -13
- package/dist/types/tracking/models.d.ts +3 -2
- package/dist/types/utils/collections/collectionUtils.test.d.ts +1 -0
- package/dist/types/utils/collections/collectionsUtils.d.ts +4 -0
- package/dist/vviinn-widgets/{p-5f217c7e.entry.js → p-047470c3.entry.js} +1 -1
- package/dist/vviinn-widgets/p-07a82d97.entry.js +1 -0
- package/dist/vviinn-widgets/p-0aa32dbb.js +1 -0
- package/dist/vviinn-widgets/{p-441cc5ec.js → p-20f03755.js} +1 -1
- package/dist/vviinn-widgets/p-31b09ad8.entry.js +1 -0
- package/dist/vviinn-widgets/p-606848c2.js +1 -0
- package/dist/vviinn-widgets/p-6904e37a.entry.js +11 -0
- package/dist/vviinn-widgets/p-7955a934.js +1 -0
- package/dist/vviinn-widgets/p-8403b7c4.entry.js +1 -0
- package/dist/vviinn-widgets/p-ace1d991.entry.js +1 -0
- package/dist/vviinn-widgets/{p-f8aed880.js → p-b5b12b94.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +2 -2
- package/www/build/{p-5f217c7e.entry.js → p-047470c3.entry.js} +1 -1
- package/www/build/p-07a82d97.entry.js +1 -0
- package/www/build/p-0aa32dbb.js +1 -0
- package/www/build/{p-441cc5ec.js → p-20f03755.js} +1 -1
- package/www/build/p-31b09ad8.entry.js +1 -0
- package/www/build/p-606848c2.js +1 -0
- package/www/build/p-6904e37a.entry.js +11 -0
- package/www/build/p-7955a934.js +1 -0
- package/www/build/p-8403b7c4.entry.js +1 -0
- package/www/build/p-ace1d991.entry.js +1 -0
- package/www/build/{p-f8aed880.js → p-b5b12b94.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/dist/cjs/resources-f8c5d64c.js +0 -119
- package/dist/collection/tracking/filter.js +0 -5
- package/dist/collection/tracking/product.js +0 -46
- package/dist/collection/tracking/result.js +0 -18
- package/dist/collection/tracking/search.js +0 -5
- package/dist/collection/tracking/widget.js +0 -14
- package/dist/esm/resources-d6b679c9.js +0 -117
- package/dist/types/tracking/filter.d.ts +0 -2
- package/dist/types/tracking/product.d.ts +0 -13
- package/dist/types/tracking/result.d.ts +0 -6
- package/dist/types/tracking/search.d.ts +0 -2
- package/dist/types/tracking/widget.d.ts +0 -5
- package/dist/vviinn-widgets/p-2aa390c8.js +0 -1
- package/dist/vviinn-widgets/p-51ec147a.entry.js +0 -11
- package/dist/vviinn-widgets/p-645df5cc.js +0 -1
- package/dist/vviinn-widgets/p-8b05b0e4.js +0 -1
- package/dist/vviinn-widgets/p-9b12aad1.entry.js +0 -1
- package/dist/vviinn-widgets/p-9b5f504f.entry.js +0 -1
- package/dist/vviinn-widgets/p-cf3190fd.entry.js +0 -1
- package/dist/vviinn-widgets/p-f5bec21a.entry.js +0 -1
- package/www/build/p-2aa390c8.js +0 -1
- package/www/build/p-51ec147a.entry.js +0 -11
- package/www/build/p-645df5cc.js +0 -1
- package/www/build/p-8b05b0e4.js +0 -1
- package/www/build/p-9b12aad1.entry.js +0 -1
- package/www/build/p-9b5f504f.entry.js +0 -1
- package/www/build/p-cf3190fd.entry.js +0 -1
- package/www/build/p-f5bec21a.entry.js +0 -1
|
@@ -1,115 +1,123 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
3
|
+
const search_store = require('./search.store-42a66d40.js');
|
|
4
|
+
|
|
5
|
+
const VVIINN_LINK = "<a href='https://www.vviinn.com/' target='_blank'>Vviinn</a>";
|
|
6
|
+
const resources = {
|
|
7
|
+
de: {
|
|
8
|
+
translation: {
|
|
9
|
+
noResultText: "Keine Ergebnisse! Versuche es bitte später erneut.",
|
|
10
|
+
basketButtonText: "In den Warenkorb",
|
|
11
|
+
basketButtonPressedText: "In den Warenkorb",
|
|
12
|
+
setMode: {
|
|
13
|
+
widgetTitle: "Kaufen Sie ein Set und erhalten Sie Rabatt",
|
|
14
|
+
widgetSubtitle: "Sparen Sie bis zu 15% beim Kauf von Produkten aus der Liste",
|
|
15
|
+
basketButtonText: "Als Set kaufen",
|
|
16
|
+
basketButtonPressedText: "gespart",
|
|
17
|
+
updateButtonText: "Neues Set vorschlagen",
|
|
18
|
+
},
|
|
19
|
+
exampleImagesTitle: "Mit den Beispielbildern die Suche direkt ausprobieren",
|
|
20
|
+
imageUploadButtonText: "Bild hochladen",
|
|
21
|
+
cameraButtonTextStart: "Kamera starten",
|
|
22
|
+
cameraButtonTextStop: "Kamera stoppen",
|
|
23
|
+
privacyBadgeText: `Durch das Hochladen eines Bildes willigst Du in die Verarbeitung durch unseren Partner ${VVIINN_LINK} ein. Das Bild wird nach einer Stunde Inaktivität gelöscht.`,
|
|
24
|
+
teaserText: "Finde Dein Produkt",
|
|
25
|
+
imageSearchModalTitle: "AI Search",
|
|
26
|
+
textSearchPlaceholder: "mit Text suchen",
|
|
27
|
+
speechRecognition: {
|
|
28
|
+
placeholder: "Aufnahme...",
|
|
29
|
+
tooltip: {
|
|
30
|
+
general: "Bitte Mikrofon aktivieren",
|
|
31
|
+
siri: "Bitte aktivieren Siri",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
emptyResultsBlock: {
|
|
35
|
+
title: "Leider nichts gefunden",
|
|
36
|
+
button: "Neues Bild hochladen",
|
|
37
|
+
},
|
|
38
|
+
serverErrorBlock: {
|
|
39
|
+
title: "Keine Verbindung",
|
|
40
|
+
button: "Erneut versuchen",
|
|
41
|
+
},
|
|
42
|
+
wrongFormatBlock: {
|
|
43
|
+
title: "Dateityp wird nicht unterstützt",
|
|
44
|
+
text: "Bitte laden Sie eine .jpg, .png oder .webp Bilddatei hoch.",
|
|
45
|
+
button: "Neues Bild hochladen",
|
|
46
|
+
},
|
|
47
|
+
wrongAspectRatioBlock: {
|
|
48
|
+
title: "Das Bild ist zu schmal",
|
|
49
|
+
button: "Neues Bild hochladen",
|
|
50
|
+
},
|
|
51
|
+
filters: {
|
|
52
|
+
modal: {
|
|
53
|
+
title: "Filter",
|
|
54
|
+
apply: "Anwenden",
|
|
55
|
+
resetFilters: "Filter zurücksetzen",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
energyLabel: {
|
|
59
|
+
dataSheetText: "Produktdatenblatt",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
en: {
|
|
64
|
+
translation: {
|
|
65
|
+
noResultText: "No results! Please, try again later.",
|
|
66
|
+
basketButtonText: "Add to Basket",
|
|
67
|
+
basketButtonPressedText: "Add to Basket",
|
|
68
|
+
setMode: {
|
|
69
|
+
widgetTitle: "Buy a set to get discount",
|
|
70
|
+
widgetSubtitle: "Save up to 15% for buying products from the list",
|
|
71
|
+
basketButtonText: "Buy as set",
|
|
72
|
+
basketButtonPressedText: "saved",
|
|
73
|
+
updateButtonText: "Suggest New Set",
|
|
74
|
+
},
|
|
75
|
+
exampleImagesTitle: "Try out the search with the example images",
|
|
76
|
+
imageUploadButtonText: "Upload Photo",
|
|
77
|
+
cameraButtonTextStart: "Start Camera",
|
|
78
|
+
cameraButtonTextStop: "Stop Camera",
|
|
79
|
+
privacyBadgeText: `By uploading a picture you agree to the processing by our partner ${VVIINN_LINK}. The image will be deleted after one hour of inactivity.`,
|
|
80
|
+
teaserText: "Find Your Product",
|
|
81
|
+
imageSearchModalTitle: "AI Search",
|
|
82
|
+
textSearchPlaceholder: "Search by text",
|
|
83
|
+
speechRecognition: {
|
|
84
|
+
placeholder: "Listening...",
|
|
85
|
+
tooltip: {
|
|
86
|
+
general: "Please enable microphone",
|
|
87
|
+
siri: "Please enable Siri",
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
emptyResultsBlock: {
|
|
91
|
+
title: "Sorry, nothing found",
|
|
92
|
+
button: "Upload another image",
|
|
93
|
+
},
|
|
94
|
+
serverErrorBlock: {
|
|
95
|
+
title: "Something went wrong",
|
|
96
|
+
button: "Try again",
|
|
97
|
+
},
|
|
98
|
+
wrongFormatBlock: {
|
|
99
|
+
title: "Wrong file format",
|
|
100
|
+
text: "Please upload a .jpg, .png or .webp image file.",
|
|
101
|
+
button: "Upload another file",
|
|
102
|
+
},
|
|
103
|
+
wrongAspectRatioBlock: {
|
|
104
|
+
title: "The image is too narrow",
|
|
105
|
+
button: "Upload another image",
|
|
106
|
+
},
|
|
107
|
+
filters: {
|
|
108
|
+
modal: {
|
|
109
|
+
title: "Filters",
|
|
110
|
+
apply: "Apply",
|
|
111
|
+
resetFilters: "Reset Filters",
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
energyLabel: {
|
|
115
|
+
dataSheetText: "Product Data Sheet",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
37
119
|
};
|
|
38
120
|
|
|
39
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
40
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
41
|
-
// generators (like Math.random()).
|
|
42
|
-
var getRandomValues;
|
|
43
|
-
var rnds8 = new Uint8Array(16);
|
|
44
|
-
function rng() {
|
|
45
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
46
|
-
if (!getRandomValues) {
|
|
47
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
48
|
-
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
49
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
50
|
-
|
|
51
|
-
if (!getRandomValues) {
|
|
52
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return getRandomValues(rnds8);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
60
|
-
|
|
61
|
-
function validate(uuid) {
|
|
62
|
-
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
67
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
var byteToHex = [];
|
|
71
|
-
|
|
72
|
-
for (var i = 0; i < 256; ++i) {
|
|
73
|
-
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function stringify$1(arr) {
|
|
77
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
78
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
79
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
80
|
-
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
81
|
-
// of the following:
|
|
82
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
83
|
-
// "undefined" in the uuid)
|
|
84
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
85
|
-
|
|
86
|
-
if (!validate(uuid)) {
|
|
87
|
-
throw TypeError('Stringified UUID is invalid');
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return uuid;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function v4(options, buf, offset) {
|
|
94
|
-
options = options || {};
|
|
95
|
-
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
96
|
-
|
|
97
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
98
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
99
|
-
|
|
100
|
-
if (buf) {
|
|
101
|
-
offset = offset || 0;
|
|
102
|
-
|
|
103
|
-
for (var i = 0; i < 16; ++i) {
|
|
104
|
-
buf[offset + i] = rnds[i];
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return buf;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return stringify$1(rnds);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
121
|
/**
|
|
114
122
|
* Check if we're required to add a port number.
|
|
115
123
|
*
|
|
@@ -1971,6 +1979,92 @@ exports.AddToBasketEvent = AddToBasketEvent;
|
|
|
1971
1979
|
//# sourceMappingURL=AddToBasketEvent.js.map
|
|
1972
1980
|
});
|
|
1973
1981
|
|
|
1982
|
+
var AddToWishlistEvent_1 = search_store.createCommonjsModule(function (module, exports) {
|
|
1983
|
+
var __extends = (search_store.commonjsGlobal && search_store.commonjsGlobal.__extends) || (function () {
|
|
1984
|
+
var extendStatics = function (d, b) {
|
|
1985
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1986
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1987
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
1988
|
+
return extendStatics(d, b);
|
|
1989
|
+
};
|
|
1990
|
+
return function (d, b) {
|
|
1991
|
+
if (typeof b !== "function" && b !== null)
|
|
1992
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1993
|
+
extendStatics(d, b);
|
|
1994
|
+
function __() { this.constructor = d; }
|
|
1995
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1996
|
+
};
|
|
1997
|
+
})();
|
|
1998
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1999
|
+
exports.AddToWishlistEvent = void 0;
|
|
2000
|
+
|
|
2001
|
+
var AddToWishlistEvent = (function (_super) {
|
|
2002
|
+
__extends(AddToWishlistEvent, _super);
|
|
2003
|
+
function AddToWishlistEvent() {
|
|
2004
|
+
var _this = _super.call(this) || this;
|
|
2005
|
+
_this.typ = "AddToWishlistEvent";
|
|
2006
|
+
return _this;
|
|
2007
|
+
}
|
|
2008
|
+
AddToWishlistEvent.getAttributeTypeMap = function () {
|
|
2009
|
+
return _super.getAttributeTypeMap.call(this).concat(AddToWishlistEvent.attributeTypeMap);
|
|
2010
|
+
};
|
|
2011
|
+
AddToWishlistEvent.discriminator = undefined;
|
|
2012
|
+
AddToWishlistEvent.attributeTypeMap = [
|
|
2013
|
+
{
|
|
2014
|
+
"name": "widgetId",
|
|
2015
|
+
"baseName": "widgetId",
|
|
2016
|
+
"type": "string",
|
|
2017
|
+
"format": ""
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
"name": "widgetVersion",
|
|
2021
|
+
"baseName": "widgetVersion",
|
|
2022
|
+
"type": "string",
|
|
2023
|
+
"format": ""
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
"name": "campaignTypeName",
|
|
2027
|
+
"baseName": "campaignTypeName",
|
|
2028
|
+
"type": "string",
|
|
2029
|
+
"format": ""
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
"name": "productName",
|
|
2033
|
+
"baseName": "productName",
|
|
2034
|
+
"type": "string",
|
|
2035
|
+
"format": ""
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
"name": "productType",
|
|
2039
|
+
"baseName": "productType",
|
|
2040
|
+
"type": "string",
|
|
2041
|
+
"format": ""
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"name": "widget",
|
|
2045
|
+
"baseName": "widget",
|
|
2046
|
+
"type": "Widget",
|
|
2047
|
+
"format": ""
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"name": "product",
|
|
2051
|
+
"baseName": "product",
|
|
2052
|
+
"type": "string",
|
|
2053
|
+
"format": ""
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"name": "rank",
|
|
2057
|
+
"baseName": "rank",
|
|
2058
|
+
"type": "number",
|
|
2059
|
+
"format": ""
|
|
2060
|
+
}
|
|
2061
|
+
];
|
|
2062
|
+
return AddToWishlistEvent;
|
|
2063
|
+
}(Event_1.Event));
|
|
2064
|
+
exports.AddToWishlistEvent = AddToWishlistEvent;
|
|
2065
|
+
//# sourceMappingURL=AddToWishlistEvent.js.map
|
|
2066
|
+
});
|
|
2067
|
+
|
|
1974
2068
|
var ErrorObject_1 = search_store.createCommonjsModule(function (module, exports) {
|
|
1975
2069
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1976
2070
|
exports.ErrorObject = void 0;
|
|
@@ -3056,6 +3150,7 @@ var __exportStar = (search_store.commonjsGlobal && search_store.commonjsGlobal._
|
|
|
3056
3150
|
};
|
|
3057
3151
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3058
3152
|
__exportStar(AddToBasketEvent_1, exports);
|
|
3153
|
+
__exportStar(AddToWishlistEvent_1, exports);
|
|
3059
3154
|
__exportStar(ErrorObject_1, exports);
|
|
3060
3155
|
__exportStar(ErrorResponse_1, exports);
|
|
3061
3156
|
__exportStar(Event_1, exports);
|
|
@@ -3264,6 +3359,7 @@ var __exportStar = (search_store.commonjsGlobal && search_store.commonjsGlobal._
|
|
|
3264
3359
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3265
3360
|
exports.ObjectSerializer = void 0;
|
|
3266
3361
|
__exportStar(AddToBasketEvent_1, exports);
|
|
3362
|
+
__exportStar(AddToWishlistEvent_1, exports);
|
|
3267
3363
|
__exportStar(ErrorObject_1, exports);
|
|
3268
3364
|
__exportStar(ErrorResponse_1, exports);
|
|
3269
3365
|
__exportStar(Event_1, exports);
|
|
@@ -3292,6 +3388,7 @@ __exportStar(WidgetAction, exports);
|
|
|
3292
3388
|
__exportStar(WidgetEvent_1, exports);
|
|
3293
3389
|
__exportStar(WidgetEventAllOf_1, exports);
|
|
3294
3390
|
var AddToBasketEvent_1$1 = AddToBasketEvent_1;
|
|
3391
|
+
var AddToWishlistEvent_1$1 = AddToWishlistEvent_1;
|
|
3295
3392
|
var ErrorObject_1$1 = ErrorObject_1;
|
|
3296
3393
|
var ErrorResponse_1$1 = ErrorResponse_1;
|
|
3297
3394
|
var Event_1$1 = Event_1;
|
|
@@ -3339,6 +3436,7 @@ var enumsMap = new Set([
|
|
|
3339
3436
|
]);
|
|
3340
3437
|
var typeMap = {
|
|
3341
3438
|
"AddToBasketEvent": AddToBasketEvent_1$1.AddToBasketEvent,
|
|
3439
|
+
"AddToWishlistEvent": AddToWishlistEvent_1$1.AddToWishlistEvent,
|
|
3342
3440
|
"ErrorObject": ErrorObject_1$1.ErrorObject,
|
|
3343
3441
|
"ErrorResponse": ErrorResponse_1$1.ErrorResponse,
|
|
3344
3442
|
"Event": Event_1$1.Event,
|
|
@@ -3625,7 +3723,7 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
3625
3723
|
function DefaultApiRequestFactory() {
|
|
3626
3724
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3627
3725
|
}
|
|
3628
|
-
DefaultApiRequestFactory.prototype.trackEvent = function (
|
|
3726
|
+
DefaultApiRequestFactory.prototype.trackEvent = function (ProductLoadEvent___ProductViewEvent___ProductClickEvent___ResultLoadEvent___ResultViewEvent___NoResultEvent___WidgetEvent___FilterEvent___SearchEvent___AddToBasketEvent___AddToWishlistEvent, _options) {
|
|
3629
3727
|
var _a, _b, _c;
|
|
3630
3728
|
return __awaiter(this, void 0, void 0, function () {
|
|
3631
3729
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
@@ -3640,7 +3738,7 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
3640
3738
|
"application/json"
|
|
3641
3739
|
]);
|
|
3642
3740
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
3643
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(
|
|
3741
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(ProductLoadEvent___ProductViewEvent___ProductClickEvent___ResultLoadEvent___ResultViewEvent___NoResultEvent___WidgetEvent___FilterEvent___SearchEvent___AddToBasketEvent___AddToWishlistEvent, "ProductLoadEvent | ProductViewEvent | ProductClickEvent | ResultLoadEvent | ResultViewEvent | NoResultEvent | WidgetEvent | FilterEvent | SearchEvent | AddToBasketEvent | AddToWishlistEvent", ""), contentType);
|
|
3644
3742
|
requestContext.setBody(serializedBody);
|
|
3645
3743
|
authMethod = _config.authMethods["bearerAuth"];
|
|
3646
3744
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
@@ -3726,9 +3824,9 @@ var ObservableDefaultApi = (function () {
|
|
|
3726
3824
|
this.requestFactory = requestFactory || new DefaultApi.DefaultApiRequestFactory(configuration);
|
|
3727
3825
|
this.responseProcessor = responseProcessor || new DefaultApi.DefaultApiResponseProcessor();
|
|
3728
3826
|
}
|
|
3729
|
-
ObservableDefaultApi.prototype.trackEvent = function (
|
|
3827
|
+
ObservableDefaultApi.prototype.trackEvent = function (ProductLoadEvent___ProductViewEvent___ProductClickEvent___ResultLoadEvent___ResultViewEvent___NoResultEvent___WidgetEvent___FilterEvent___SearchEvent___AddToBasketEvent___AddToWishlistEvent, _options) {
|
|
3730
3828
|
var _this = this;
|
|
3731
|
-
var requestContextPromise = this.requestFactory.trackEvent(
|
|
3829
|
+
var requestContextPromise = this.requestFactory.trackEvent(ProductLoadEvent___ProductViewEvent___ProductClickEvent___ResultLoadEvent___ResultViewEvent___NoResultEvent___WidgetEvent___FilterEvent___SearchEvent___AddToBasketEvent___AddToWishlistEvent, _options);
|
|
3732
3830
|
var middlewarePreObservable = (0, rxjsStub.from)(requestContextPromise);
|
|
3733
3831
|
var _loop_1 = function (middleware) {
|
|
3734
3832
|
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)(function (ctx) { return middleware.pre(ctx); }));
|
|
@@ -3764,8 +3862,8 @@ var PromiseDefaultApi = (function () {
|
|
|
3764
3862
|
function PromiseDefaultApi(configuration, requestFactory, responseProcessor) {
|
|
3765
3863
|
this.api = new ObservableAPI.ObservableDefaultApi(configuration, requestFactory, responseProcessor);
|
|
3766
3864
|
}
|
|
3767
|
-
PromiseDefaultApi.prototype.trackEvent = function (
|
|
3768
|
-
var result = this.api.trackEvent(
|
|
3865
|
+
PromiseDefaultApi.prototype.trackEvent = function (ProductLoadEvent___ProductViewEvent___ProductClickEvent___ResultLoadEvent___ResultViewEvent___NoResultEvent___WidgetEvent___FilterEvent___SearchEvent___AddToBasketEvent___AddToWishlistEvent, _options) {
|
|
3866
|
+
var result = this.api.trackEvent(ProductLoadEvent___ProductViewEvent___ProductClickEvent___ResultLoadEvent___ResultViewEvent___NoResultEvent___WidgetEvent___FilterEvent___SearchEvent___AddToBasketEvent___AddToWishlistEvent, _options);
|
|
3769
3867
|
return result.toPromise();
|
|
3770
3868
|
};
|
|
3771
3869
|
return PromiseDefaultApi;
|
|
@@ -3843,116 +3941,8 @@ const SEARCH_EVENT_TYPE = "search_event";
|
|
|
3843
3941
|
const WIDGET_EVENT_TYPE = "widget_event";
|
|
3844
3942
|
const RESULT_LOAD_EVENT_TYPE = "result_load_event";
|
|
3845
3943
|
const RESULT_VIEW_EVENT_TYPE = "result_view_event";
|
|
3944
|
+
const ADD_TO_WISHLIST_EVENT_TYPE = "add_to_wishlist_event";
|
|
3846
3945
|
|
|
3847
|
-
const filterEvent = {
|
|
3848
|
-
widget: "VPS",
|
|
3849
|
-
typ: FILTER_EVENT_TYPE,
|
|
3850
|
-
};
|
|
3851
|
-
|
|
3852
|
-
const vprProductLoad = {
|
|
3853
|
-
widget: "VPR",
|
|
3854
|
-
typ: PRODUCT_LOAD_EVENT_TYPE,
|
|
3855
|
-
};
|
|
3856
|
-
const vpcProductLoad = {
|
|
3857
|
-
widget: "VPC",
|
|
3858
|
-
typ: PRODUCT_LOAD_EVENT_TYPE,
|
|
3859
|
-
};
|
|
3860
|
-
const vprProductView = {
|
|
3861
|
-
widget: "VPR",
|
|
3862
|
-
typ: PRODUCT_VIEW_EVENT_TYPE,
|
|
3863
|
-
};
|
|
3864
|
-
const vpcProductView = {
|
|
3865
|
-
widget: "VPC",
|
|
3866
|
-
typ: PRODUCT_VIEW_EVENT_TYPE,
|
|
3867
|
-
};
|
|
3868
|
-
const vprProductClick = {
|
|
3869
|
-
widget: "VPR",
|
|
3870
|
-
typ: PRODUCT_CLICK_EVENT_TYPE,
|
|
3871
|
-
};
|
|
3872
|
-
const vpcProductClick = {
|
|
3873
|
-
widget: "VPC",
|
|
3874
|
-
typ: PRODUCT_CLICK_EVENT_TYPE,
|
|
3875
|
-
};
|
|
3876
|
-
const vprAddToBasket = {
|
|
3877
|
-
widget: "VPR",
|
|
3878
|
-
typ: ADD_TO_BASKET_EVENT_TYPE,
|
|
3879
|
-
};
|
|
3880
|
-
const vpcAddToBasket = {
|
|
3881
|
-
widget: "VPC",
|
|
3882
|
-
typ: ADD_TO_BASKET_EVENT_TYPE,
|
|
3883
|
-
};
|
|
3884
|
-
|
|
3885
|
-
const searchEvent = {
|
|
3886
|
-
widget: "VPS",
|
|
3887
|
-
typ: SEARCH_EVENT_TYPE,
|
|
3888
|
-
};
|
|
3889
|
-
|
|
3890
|
-
const vprWidget = {
|
|
3891
|
-
widget: "VPR",
|
|
3892
|
-
typ: WIDGET_EVENT_TYPE,
|
|
3893
|
-
};
|
|
3894
|
-
const vpcWidget = {
|
|
3895
|
-
widget: "VPC",
|
|
3896
|
-
typ: WIDGET_EVENT_TYPE,
|
|
3897
|
-
};
|
|
3898
|
-
const vpsWidget = {
|
|
3899
|
-
widget: "VPS",
|
|
3900
|
-
typ: WIDGET_EVENT_TYPE,
|
|
3901
|
-
};
|
|
3902
|
-
|
|
3903
|
-
const vprResultLoad = {
|
|
3904
|
-
widget: "VPR",
|
|
3905
|
-
typ: RESULT_LOAD_EVENT_TYPE,
|
|
3906
|
-
};
|
|
3907
|
-
const vprResultView = {
|
|
3908
|
-
widget: "VPR",
|
|
3909
|
-
typ: RESULT_VIEW_EVENT_TYPE,
|
|
3910
|
-
};
|
|
3911
|
-
const vpcResultLoad = {
|
|
3912
|
-
widget: "VPC",
|
|
3913
|
-
typ: RESULT_LOAD_EVENT_TYPE,
|
|
3914
|
-
};
|
|
3915
|
-
const vpcResultView = {
|
|
3916
|
-
widget: "VPC",
|
|
3917
|
-
typ: RESULT_VIEW_EVENT_TYPE,
|
|
3918
|
-
};
|
|
3919
|
-
|
|
3920
|
-
const createProductVprEventByType = (type) => {
|
|
3921
|
-
switch (type) {
|
|
3922
|
-
case "load":
|
|
3923
|
-
return createTrackingEvent(vprProductLoad);
|
|
3924
|
-
case "view":
|
|
3925
|
-
return createTrackingEvent(vprProductView);
|
|
3926
|
-
case "click":
|
|
3927
|
-
return createTrackingEvent(vprProductClick);
|
|
3928
|
-
}
|
|
3929
|
-
};
|
|
3930
|
-
const createProductVpcEventByType = (type) => {
|
|
3931
|
-
switch (type) {
|
|
3932
|
-
case "load":
|
|
3933
|
-
return createTrackingEvent(vpcProductLoad);
|
|
3934
|
-
case "view":
|
|
3935
|
-
return createTrackingEvent(vpcProductView);
|
|
3936
|
-
case "click":
|
|
3937
|
-
return createTrackingEvent(vpcProductClick);
|
|
3938
|
-
}
|
|
3939
|
-
};
|
|
3940
|
-
const createResultVprEventByType = (type) => {
|
|
3941
|
-
switch (type) {
|
|
3942
|
-
case "load":
|
|
3943
|
-
return createTrackingEvent(vprResultLoad);
|
|
3944
|
-
case "view":
|
|
3945
|
-
return createTrackingEvent(vprResultView);
|
|
3946
|
-
}
|
|
3947
|
-
};
|
|
3948
|
-
const createResultVpcEventByType = (type) => {
|
|
3949
|
-
switch (type) {
|
|
3950
|
-
case "load":
|
|
3951
|
-
return createTrackingEvent(vpcResultLoad);
|
|
3952
|
-
case "view":
|
|
3953
|
-
return createTrackingEvent(vpcResultView);
|
|
3954
|
-
}
|
|
3955
|
-
};
|
|
3956
3946
|
const createResultEventByType = (type, widget) => {
|
|
3957
3947
|
const typ = type === "load" ? RESULT_LOAD_EVENT_TYPE : RESULT_VIEW_EVENT_TYPE;
|
|
3958
3948
|
return createTrackingEvent({
|
|
@@ -3960,48 +3950,44 @@ const createResultEventByType = (type, widget) => {
|
|
|
3960
3950
|
typ,
|
|
3961
3951
|
});
|
|
3962
3952
|
};
|
|
3963
|
-
const
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
typ: PRODUCT_VIEW_EVENT_TYPE,
|
|
3974
|
-
});
|
|
3975
|
-
case "click":
|
|
3976
|
-
return createTrackingEvent({
|
|
3977
|
-
widget,
|
|
3978
|
-
typ: PRODUCT_CLICK_EVENT_TYPE,
|
|
3979
|
-
});
|
|
3980
|
-
}
|
|
3953
|
+
const createProductEventByType = (type, widget) => {
|
|
3954
|
+
const typ = type === "load"
|
|
3955
|
+
? PRODUCT_LOAD_EVENT_TYPE
|
|
3956
|
+
: type === "view"
|
|
3957
|
+
? PRODUCT_VIEW_EVENT_TYPE
|
|
3958
|
+
: PRODUCT_CLICK_EVENT_TYPE;
|
|
3959
|
+
return createTrackingEvent({
|
|
3960
|
+
widget,
|
|
3961
|
+
typ,
|
|
3962
|
+
});
|
|
3981
3963
|
};
|
|
3982
|
-
const
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
const
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3964
|
+
const createAddToBasketEvent = (widget) => createTrackingEvent({
|
|
3965
|
+
widget,
|
|
3966
|
+
typ: ADD_TO_BASKET_EVENT_TYPE,
|
|
3967
|
+
});
|
|
3968
|
+
const createAddToWishlistEvent = (widget) => createTrackingEvent({
|
|
3969
|
+
widget,
|
|
3970
|
+
typ: ADD_TO_WISHLIST_EVENT_TYPE,
|
|
3971
|
+
});
|
|
3972
|
+
const createFilterEvent = (widget) => createTrackingEvent({
|
|
3973
|
+
widget,
|
|
3974
|
+
typ: FILTER_EVENT_TYPE,
|
|
3975
|
+
});
|
|
3976
|
+
const createWidgetEvent = (widget) => createTrackingEvent({
|
|
3977
|
+
widget,
|
|
3978
|
+
typ: WIDGET_EVENT_TYPE,
|
|
3979
|
+
});
|
|
3980
|
+
const createImageSearchEvent = createTrackingEvent({
|
|
3981
|
+
widget: "VPS",
|
|
3982
|
+
typ: SEARCH_EVENT_TYPE,
|
|
3983
|
+
});
|
|
3984
|
+
|
|
3985
|
+
exports.createAddToBasketEvent = createAddToBasketEvent;
|
|
3986
|
+
exports.createAddToWishlistEvent = createAddToWishlistEvent;
|
|
3993
3987
|
exports.createFilterEvent = createFilterEvent;
|
|
3994
|
-
exports.
|
|
3995
|
-
exports.
|
|
3996
|
-
exports.createProductWidgetEventByType = createProductWidgetEventByType;
|
|
3988
|
+
exports.createImageSearchEvent = createImageSearchEvent;
|
|
3989
|
+
exports.createProductEventByType = createProductEventByType;
|
|
3997
3990
|
exports.createResultEventByType = createResultEventByType;
|
|
3998
|
-
exports.createResultVpcEventByType = createResultVpcEventByType;
|
|
3999
|
-
exports.createResultVprEventByType = createResultVprEventByType;
|
|
4000
|
-
exports.createSearchEvent = createSearchEvent;
|
|
4001
3991
|
exports.createTrackingApi = createTrackingApi;
|
|
4002
|
-
exports.
|
|
4003
|
-
exports.
|
|
4004
|
-
exports.createWidgetVpsEvent = createWidgetVpsEvent;
|
|
4005
|
-
exports.getCustomLabels = getCustomLabels;
|
|
4006
|
-
exports.getRecommendationsBody = getRecommendationsBody;
|
|
4007
|
-
exports.v4 = v4;
|
|
3992
|
+
exports.createWidgetEvent = createWidgetEvent;
|
|
3993
|
+
exports.resources = resources;
|