vviinn-widgets 2.158.1 → 2.158.2
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/{v4-74eb701b.js → index-601ae273.js} +62 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-ccd3df8c.js → package-fc8274cf.js} +1 -1
- package/dist/cjs/{search.store-0f65398f.js → search.store-5c334453.js} +8 -7
- package/dist/cjs/vviinn-camera_12.cjs.entry.js +33 -37
- package/dist/cjs/vviinn-carousel_10.cjs.entry.js +29 -30
- package/dist/cjs/vviinn-detected-object_7.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-selected-filters.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-text-search.cjs.entry.js +9 -28
- package/dist/cjs/vviinn-widgets.cjs.js +1 -1
- package/dist/collection/components/vviinn-results/vviinn-results.js +20 -42
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +29 -27
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +7 -10
- package/dist/collection/store/search.store.js +8 -7
- package/dist/esm/{v4-1df258d0.js → index-3c9c6402.js} +56 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-66ac57a2.js → package-d93b3a3a.js} +1 -1
- package/dist/esm/{search.store-e9b5ee31.js → search.store-273df781.js} +8 -7
- package/dist/esm/vviinn-camera_12.entry.js +28 -32
- package/dist/esm/vviinn-carousel_10.entry.js +3 -4
- package/dist/esm/vviinn-detected-object_7.entry.js +2 -2
- package/dist/esm/vviinn-selected-filters.entry.js +1 -1
- package/dist/esm/vviinn-text-search.entry.js +7 -26
- package/dist/esm/vviinn-widgets.js +1 -1
- package/dist/types/components/vviinn-results/vviinn-results.d.ts +1 -5
- package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +4 -1
- package/dist/types/components.d.ts +3 -3
- package/dist/types/store/search.store.d.ts +3 -2
- package/dist/vviinn-widgets/p-394fb8d7.entry.js +1 -0
- package/dist/vviinn-widgets/{p-e3215beb.js → p-3b067958.js} +1 -1
- package/dist/vviinn-widgets/p-6bce92ff.js +1 -0
- package/dist/vviinn-widgets/{p-c51a7254.js → p-9d271438.js} +1 -1
- package/dist/vviinn-widgets/p-bf22a019.entry.js +1 -0
- package/dist/vviinn-widgets/{p-67d0deb0.entry.js → p-c4ac2946.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-f1f75ae6.entry.js → p-eb8ba7b7.entry.js} +1 -1
- package/dist/vviinn-widgets/p-fdb3ab2a.entry.js +11 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-394fb8d7.entry.js +1 -0
- package/www/build/{p-e3215beb.js → p-3b067958.js} +1 -1
- package/www/build/p-6bce92ff.js +1 -0
- package/www/build/{p-c51a7254.js → p-9d271438.js} +1 -1
- package/www/build/p-bf22a019.entry.js +1 -0
- package/www/build/{p-67d0deb0.entry.js → p-c4ac2946.entry.js} +1 -1
- package/www/build/{p-f1f75ae6.entry.js → p-eb8ba7b7.entry.js} +1 -1
- package/www/build/p-fdb3ab2a.entry.js +11 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/dist/cjs/index-4c7242d9.js +0 -63
- package/dist/esm/index-3be92ce4.js +0 -55
- package/dist/vviinn-widgets/p-3ad1a783.entry.js +0 -1
- package/dist/vviinn-widgets/p-584b2552.js +0 -1
- package/dist/vviinn-widgets/p-c69116a0.entry.js +0 -1
- package/dist/vviinn-widgets/p-e26b9ce2.js +0 -1
- package/dist/vviinn-widgets/p-fadbf20e.entry.js +0 -11
- package/www/build/p-3ad1a783.entry.js +0 -1
- package/www/build/p-584b2552.js +0 -1
- package/www/build/p-c69116a0.entry.js +0 -1
- package/www/build/p-e26b9ce2.js +0 -1
- package/www/build/p-fadbf20e.entry.js +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-1a40d6c9.js');
|
|
4
|
-
const search_store = require('./search.store-
|
|
4
|
+
const search_store = require('./search.store-5c334453.js');
|
|
5
5
|
|
|
6
6
|
const PlusIcon = () => (index.h("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "plus-icon" },
|
|
7
7
|
index.h("path", { d: "M14.6667 17.3333H8.00001C7.62223 17.3333 7.30556 17.2056 7.05001 16.95C6.79445 16.6944 6.66667 16.3778 6.66667 16C6.66667 15.6222 6.79445 15.3056 7.05001 15.05C7.30556 14.7944 7.62223 14.6667 8.00001 14.6667H14.6667V8.00001C14.6667 7.62223 14.7944 7.30556 15.05 7.05001C15.3056 6.79445 15.6222 6.66667 16 6.66667C16.3778 6.66667 16.6944 6.79445 16.95 7.05001C17.2056 7.30556 17.3333 7.62223 17.3333 8.00001V14.6667H24C24.3778 14.6667 24.6944 14.7944 24.95 15.05C25.2056 15.3056 25.3333 15.6222 25.3333 16C25.3333 16.3778 25.2056 16.6944 24.95 16.95C24.6944 17.2056 24.3778 17.3333 24 17.3333H17.3333V24C17.3333 24.3778 17.2056 24.6944 16.95 24.95C16.6944 25.2056 16.3778 25.3333 16 25.3333C15.6222 25.3333 15.3056 25.2056 15.05 24.95C14.7944 24.6944 14.6667 24.3778 14.6667 24V17.3333Z", fill: "currentColor" })));
|
|
@@ -114,6 +114,60 @@ function v4(options, buf, offset) {
|
|
|
114
114
|
return stringify(rnds);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
const createTrackingEvent = (widget) => (eventData) => {
|
|
118
|
+
return Object.assign(Object.assign({}, eventData), widget);
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const PRODUCT_LOAD_EVENT_TYPE = "product_load_event";
|
|
122
|
+
const PRODUCT_VIEW_EVENT_TYPE = "product_view_event";
|
|
123
|
+
const PRODUCT_CLICK_EVENT_TYPE = "product_click_event";
|
|
124
|
+
const ADD_TO_BASKET_EVENT_TYPE = "add_to_basket_event";
|
|
125
|
+
const FILTER_EVENT_TYPE = "filter_event";
|
|
126
|
+
const SEARCH_EVENT_TYPE = "search_event";
|
|
127
|
+
const WIDGET_EVENT_TYPE = "widget_event";
|
|
128
|
+
const RESULT_LOAD_EVENT_TYPE = "result_load_event";
|
|
129
|
+
const RESULT_VIEW_EVENT_TYPE = "result_view_event";
|
|
130
|
+
const ADD_TO_WISHLIST_EVENT_TYPE = "add_to_wishlist_event";
|
|
131
|
+
|
|
132
|
+
const createResultEventByType = (type, widget) => {
|
|
133
|
+
const typ = type === "load" ? RESULT_LOAD_EVENT_TYPE : RESULT_VIEW_EVENT_TYPE;
|
|
134
|
+
return createTrackingEvent({
|
|
135
|
+
widget,
|
|
136
|
+
typ,
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const createProductEventByType = (type, widget) => {
|
|
140
|
+
const typ = type === "load"
|
|
141
|
+
? PRODUCT_LOAD_EVENT_TYPE
|
|
142
|
+
: type === "view"
|
|
143
|
+
? PRODUCT_VIEW_EVENT_TYPE
|
|
144
|
+
: PRODUCT_CLICK_EVENT_TYPE;
|
|
145
|
+
return createTrackingEvent({
|
|
146
|
+
widget,
|
|
147
|
+
typ,
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
const createAddToBasketEvent = (widget) => createTrackingEvent({
|
|
151
|
+
widget,
|
|
152
|
+
typ: ADD_TO_BASKET_EVENT_TYPE,
|
|
153
|
+
});
|
|
154
|
+
const createAddToWishlistEvent = (widget) => createTrackingEvent({
|
|
155
|
+
widget,
|
|
156
|
+
typ: ADD_TO_WISHLIST_EVENT_TYPE,
|
|
157
|
+
});
|
|
158
|
+
const createFilterEvent = (widget) => createTrackingEvent({
|
|
159
|
+
widget,
|
|
160
|
+
typ: FILTER_EVENT_TYPE,
|
|
161
|
+
});
|
|
162
|
+
const createWidgetEvent = (widget) => createTrackingEvent({
|
|
163
|
+
widget,
|
|
164
|
+
typ: WIDGET_EVENT_TYPE,
|
|
165
|
+
});
|
|
166
|
+
const createImageSearchEvent = createTrackingEvent({
|
|
167
|
+
widget: "VPS",
|
|
168
|
+
typ: SEARCH_EVENT_TYPE,
|
|
169
|
+
});
|
|
170
|
+
|
|
117
171
|
exports.CAROUSEL_CONTENT_WIDTH_CSS_VAR = CAROUSEL_CONTENT_WIDTH_CSS_VAR;
|
|
118
172
|
exports.CAROUSEL_IMAGE_WIDTH_CSS_VAR = CAROUSEL_IMAGE_WIDTH_CSS_VAR;
|
|
119
173
|
exports.CONTENT_GROUP_CSS_CLASS = CONTENT_GROUP_CSS_CLASS;
|
|
@@ -121,6 +175,13 @@ exports.DEFAULT_COLUMNS_NUMBER = DEFAULT_COLUMNS_NUMBER;
|
|
|
121
175
|
exports.PlusIcon = PlusIcon;
|
|
122
176
|
exports.RESULTS_CALCULATED_COLUMNS_CSS_VAR = RESULTS_CALCULATED_COLUMNS_CSS_VAR;
|
|
123
177
|
exports.SET_MODE_IMAGE_WIDTH_CSS_VAR = SET_MODE_IMAGE_WIDTH_CSS_VAR;
|
|
178
|
+
exports.createAddToBasketEvent = createAddToBasketEvent;
|
|
179
|
+
exports.createAddToWishlistEvent = createAddToWishlistEvent;
|
|
180
|
+
exports.createFilterEvent = createFilterEvent;
|
|
181
|
+
exports.createImageSearchEvent = createImageSearchEvent;
|
|
182
|
+
exports.createProductEventByType = createProductEventByType;
|
|
183
|
+
exports.createResultEventByType = createResultEventByType;
|
|
184
|
+
exports.createWidgetEvent = createWidgetEvent;
|
|
124
185
|
exports.getCustomLabels = getCustomLabels;
|
|
125
186
|
exports.getRecommendationsBody = getRecommendationsBody;
|
|
126
187
|
exports.v4 = v4;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy(JSON.parse("[[\"vviinn-selected-filters.cjs\",[[1,\"vviinn-selected-filters\",{\"showInWidget\":[4,\"show-in-widget\"],\"requestFilters\":[32],\"selectedFilterButtons\":[32],\"textSearchCustomFilter\":[32],\"imageSrc\":[32],\"priceCustomFilter\":[32]}]]],[\"vviinn-error.cjs\",[[1,\"vviinn-error\"]]],[\"vviinn-carousel_10.cjs\",[[1,\"vviinn-vpr-widget\",{\"token\":[1],\"productId\":[1,\"product-id\"],\"mode\":[1],\"campaigns\":[1],\"excluded\":[1],\"campaignType\":[1,\"campaign-type\"],\"locale\":[1],\"color\":[1],\"imageWidth\":[2,\"image-width\"],\"imageRatio\":[2,\"image-ratio\"],\"setItemsAmount\":[2,\"set-items-amount\"],\"cssUrl\":[1,\"css-url\"],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"noResultText\":[1,\"no-result-text\"],\"noResultShow\":[4,\"no-result-show\"],\"gridArrowsDynamic\":[4,\"grid-arrows-dynamic\"],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"showFilters\":[4,\"show-filters\"],\"showExtendedFilters\":[4,\"show-extended-filters\"],\"setModeDiscounts\":[1,\"set-mode-discounts\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"addPriceContainer\":[4,\"add-price-container\"],\"favoriteShow\":[4,\"favorite-show\"],\"blockTitle\":[1,\"block-title\"],\"showScroll\":[4,\"show-scroll\"],\"apiPath\":[1,\"api-path\"],\"useCarousel\":[4,\"use-carousel\"],\"showingInButton\":[4,\"showing-in-button\"],\"buttonElementId\":[1,\"button-element-id\"],\"closed\":[4],\"opened\":[4],\"isAppended\":[4,\"is-appended\"],\"showInWidget\":[4,\"show-in-widget\"],\"recommendationsLoading\":[1028,\"recommendations-loading\"],\"setRecommendationsLoading\":[16],\"recommendations\":[32],\"dynamicFilters\":[32],\"sourceProduct\":[32],\"hasErrorOnLoad\":[32],\"updatingAllCards\":[32],\"updatedCardsAmount\":[32],\"setModeDiscountsArray\":[32]},[[0,\"vviinnProductLoad\",\"trackProductLoad\"],[0,\"vviinnProductView\",\"trackProductView\"],[0,\"vviinnProductClick\",\"trackProductClick\"],[0,\"vviinnAuxClick\",\"trackAuxClick\"],[0,\"vviinnAddToBasket\",\"trackAddToBasket\"],[0,\"vviinnAddToFavorite\",\"trackAddToWishlist\"],[0,\"vviinnUpdatingAllCardsFinished\",\"updatingAllCardsFinishedListener\"],[0,\"vviinnFiltersChanged\",\"filtersChanged\"]]],[0,\"vviinn-carousel\",{\"mode\":[1],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"locale\":[1],\"imageWidth\":[2,\"image-width\"],\"showScroll\":[4,\"show-scroll\"],\"campaignTypeId\":[1,\"campaign-type-id\"],\"widgetElementId\":[1,\"widget-element-id\"],\"gridArrowsDynamic\":[4,\"grid-arrows-dynamic\"],\"recommendations\":[1040],\"sourceProduct\":[16],\"widgetVersion\":[1,\"widget-version\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"updatingAllCards\":[4,\"updating-all-cards\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"replaceSlotsContent\":[16],\"setModeDiscountsArray\":[16],\"imageRatio\":[2,\"image-ratio\"],\"addPriceContainer\":[4,\"add-price-container\"],\"favoriteShow\":[4,\"favorite-show\"],\"setItemsAmount\":[2,\"set-items-amount\"],\"isAppended\":[4,\"is-appended\"],\"loading\":[4],\"hasErrorOnLoad\":[4,\"has-error-on-load\"],\"showInWidget\":[4,\"show-in-widget\"],\"moveDirection\":[32],\"contentGroups\":[32],\"activeContentGroup\":[32],\"isRTL\":[32],\"crossSellingRecommendations\":[32],\"setModeDiscount\":[32],\"currentDiscountIndex\":[32],\"setModeAppliedDiscounts\":[32],\"columns\":[32],\"showContent\":[32]},[[0,\"vviinnCrossSellingClick\",\"crossSellingClickListener\"],[0,\"vviinnAddToBasket\",\"setModeAddToBasketHandler\"]]],[1,\"vviinn-extended-filters\",{\"filters\":[1040],\"mode\":[1],\"showHeader\":[4,\"show-header\"],\"filtersString\":[1,\"filters-string\"],\"showInWidget\":[4,\"show-in-widget\"],\"widgetElement\":[8,\"widget-element\"],\"innerFilters\":[32],\"requestFilters\":[32],\"showMore\":[32],\"selectedMoreOptions\":[32],\"displayedOptionsCount\":[32]},[[16,\"click\",\"bodyClickListener\"]]],[1,\"vviinn-filters\",{\"filters\":[1040],\"filtersString\":[1,\"filters-string\"],\"showInWidget\":[4,\"show-in-widget\"],\"innerFilters\":[32],\"selectedFilter\":[32],\"requestFilters\":[32]}],[1,\"vviinn-product-card\",{\"brand\":[1],\"currency\":[1],\"locale\":[1],\"pricePrefix\":[1,\"price-prefix\"],\"image\":[1],\"imageRatio\":[2,\"image-ratio\"],\"imageWidth\":[2,\"image-width\"],\"price\":[2],\"basePrice\":[1,\"base-price\"],\"productTitle\":[1,\"product-title\"],\"productType\":[1,\"product-type\"],\"setMode\":[4,\"set-mode\"],\"salePrice\":[2,\"sale-price\"],\"baseSalePrice\":[1,\"base-sale-price\"],\"responsive\":[4],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"favoriteShow\":[4,\"favorite-show\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"customLabels\":[1,\"custom-labels\"],\"addPriceContainer\":[4,\"add-price-container\"],\"energyCertifications\":[1040],\"productId\":[1,\"product-id\"],\"campaignTypeId\":[1,\"campaign-type-id\"],\"widgetElementId\":[1,\"widget-element-id\"],\"buttonElementId\":[1,\"button-element-id\"],\"widgetVersion\":[1,\"widget-version\"],\"deeplink\":[1],\"index\":[2],\"updatingAllCards\":[4,\"updating-all-cards\"],\"defaultAnimationInterval\":[2,\"default-animation-interval\"],\"appliedDiscountPercentage\":[2,\"applied-discount-percentage\"],\"currentDiscountPercentage\":[2,\"current-discount-percentage\"],\"isSourceProduct\":[4,\"is-source-product\"],\"isResultsWidget\":[4,\"is-results-widget\"],\"energyCertificationsString\":[1,\"energy-certifications-string\"],\"isStandalone\":[4,\"is-standalone\"],\"showFooterArrow\":[4,\"show-footer-arrow\"],\"isTransitioning\":[32],\"basketButonPressed\":[32],\"favoriteButonPressed\":[32]},[[0,\"vviinnCrossSellingClick\",\"crossSellingClickListener\"]]],[1,\"vviinn-product-card-skeleton\",{\"imageRatio\":[2,\"image-ratio\"]}],[1,\"vviinn-extended-filters-button\",{\"handleClick\":[16],\"showInWidget\":[4,\"show-in-widget\"]}],[1,\"vviinn-energy-label\",{\"classIconUrls\":[16],\"productType\":[1,\"product-type\"],\"classDataSheetUrl\":[1,\"class-data-sheet-url\"],\"iconDirection\":[1,\"icon-direction\"]}],[1,\"vviinn-price-range\",{\"histogram\":[16],\"addStyle\":[4,\"add-style\"],\"priceChangeHandler\":[16],\"selectedInterval\":[16],\"minIndex\":[32],\"maxIndex\":[32],\"scalingFactor\":[32]}],[1,\"vviinn-skeleton\",{\"height\":[2],\"halfWidth\":[4,\"half-width\"],\"aspectRatio\":[2,\"aspect-ratio\"]}]]],[\"vviinn-button_2.cjs\",[[1,\"vviinn-recommendations-sidebar\",{\"sidebarTitle\":[1,\"sidebar-title\"],\"token\":[1],\"locale\":[1],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"productId\":[1,\"product-id\"],\"position\":[1],\"widgetScrollbar\":[4,\"widget-scrollbar\"],\"mode\":[1],\"campaigns\":[1],\"campaignType\":[1,\"campaign-type\"],\"color\":[1],\"imageWidth\":[2,\"image-width\"],\"imageRatio\":[2,\"image-ratio\"],\"cssUrl\":[1,\"css-url\"],\"noResultText\":[1,\"no-result-text\"],\"noResultShow\":[4,\"no-result-show\"],\"gridArrowsDynamic\":[4,\"grid-arrows-dynamic\"],\"excluded\":[1],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"addPriceContainer\":[4,\"add-price-container\"],\"showFilters\":[4,\"show-filters\"],\"setModeDiscounts\":[1,\"set-mode-discounts\"],\"setItemsAmount\":[2,\"set-items-amount\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"favoriteShow\":[4,\"favorite-show\"],\"useCarousel\":[4,\"use-carousel\"],\"showInWidget\":[4,\"show-in-widget\"],\"apiPath\":[1,\"api-path\"],\"showInCustomContainer\":[4,\"show-in-custom-container\"],\"buttonChildren\":[16],\"buttonElementId\":[1,\"button-element-id\"],\"widgetVersion\":[1,\"widget-version\"],\"showingInButton\":[4,\"showing-in-button\"],\"showInModal\":[4,\"show-in-modal\"],\"isAppended\":[4,\"is-appended\"],\"sidebarState\":[32],\"sourceProduct\":[32],\"showLoadingClass\":[32],\"recommendationsLoading\":[32]},[[0,\"vviinnUpdatingAllCardsStarted\",\"updatingAllCardsStarted\"],[0,\"vviinnUpdatingAllCardsFinished\",\"updatingAllCardsFinished\"],[16,\"click\",\"bodyClickListener\"],[0,\"sourceProductReceived\",\"sourceProductReceived\"]]],[1,\"vviinn-button\",{\"addStyle\":[4,\"add-style\"]}]]],[\"vviinn-detected-object_7.cjs\",[[1,\"vviinn-vpr-button\",{\"token\":[1],\"locale\":[1],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"productId\":[1,\"product-id\"],\"mode\":[1],\"campaigns\":[1],\"excluded\":[1],\"campaignType\":[1,\"campaign-type\"],\"color\":[1],\"imageWidth\":[2,\"image-width\"],\"imageRatio\":[2,\"image-ratio\"],\"setItemsAmount\":[2,\"set-items-amount\"],\"cssUrl\":[1,\"css-url\"],\"noResultText\":[1,\"no-result-text\"],\"noResultShow\":[4,\"no-result-show\"],\"gridArrowsDynamic\":[4,\"grid-arrows-dynamic\"],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"showFilters\":[4,\"show-filters\"],\"addPriceContainer\":[4,\"add-price-container\"],\"setModeDiscounts\":[1,\"set-mode-discounts\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"sidebarTitle\":[1,\"sidebar-title\"],\"modalScrollbar\":[4,\"modal-scrollbar\"],\"position\":[1],\"addStyle\":[4,\"add-style\"],\"favoriteShow\":[4,\"favorite-show\"],\"appendSidebarToElement\":[16],\"appendSidebarToId\":[1,\"append-sidebar-to-id\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"apiPath\":[1,\"api-path\"],\"showInWidget\":[4,\"show-in-widget\"],\"targetAppendSidebarTo\":[32]}],[1,\"vviinn-empty-results\",{\"handler\":[16]}],[1,\"vviinn-wrong-aspect-ratio\",{\"handler\":[16]}],[1,\"vviinn-detected-object\",{\"detectedObject\":[16],\"selectedDetectedObject\":[16],\"basicEventData\":[16],\"imageBounds\":[16],\"showInWidget\":[4,\"show-in-widget\"],\"position\":[32]}],[1,\"vviinn-modal\",{\"active\":[1540],\"resetState\":[16],\"buttonElementId\":[1,\"button-element-id\"],\"widgetVersion\":[1,\"widget-version\"],\"hideBackButton\":[4,\"hide-back-button\"],\"isFirstScreen\":[4,\"is-first-screen\"],\"slider\":[32]}],[1,\"vviinn-overlay\"],[1,\"vviinn-preloader\"]]],[\"vviinn-camera_12.cjs\",[[1,\"vviinn-vps-widget\",{\"token\":[1],\"active\":[1028],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"locale\":[1],\"campaignId\":[1,\"campaign-id\"],\"excluded\":[1],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"imageResolutionWidth\":[2,\"image-resolution-width\"],\"exampleImageSource\":[1,\"example-image-source\"],\"textSearchShow\":[4,\"text-search-show\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"favoriteShow\":[4,\"favorite-show\"],\"oneClickDiscoveryShow\":[4,\"one-click-discovery-show\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"addPriceContainer\":[4,\"add-price-container\"],\"apiPath\":[1,\"api-path\"],\"showingInButton\":[4,\"showing-in-button\"],\"buttonElementId\":[1,\"button-element-id\"],\"buttonPressed\":[4,\"button-pressed\"],\"mode\":[1],\"resetVpsButton\":[16],\"replaceSlotsContentInButton\":[16],\"parentSlots\":[16],\"useComponentsStore\":[4,\"use-components-store\"],\"slidePosition\":[32],\"uploadSource\":[32],\"stream\":[32],\"products\":[32],\"searchQuery\":[32],\"requestId\":[32],\"modalBody\":[32],\"isCameraInitializing\":[32],\"isCameraEnabled\":[32],\"isCameraButtonClicked\":[32],\"showAspectRatioError\":[32],\"wrongImageFormat\":[32]},[[0,\"widgetTextSearchFinished\",\"textSearchFinishedHandler\"],[0,\"vviinnResultLoad\",\"resultLoadHandler\"],[0,\"vviinnResultView\",\"resultViewHandler\"],[0,\"vviinnCameraEnabled\",\"trackCameraEnabled\"],[0,\"vviinnImageCrop\",\"cropAreaChanges\"],[0,\"vviinnSelectObject\",\"trackDetectedObject\"],[0,\"vviinnSelectFilter\",\"trackImageSearchFilterSelected\"]]],[1,\"vviinn-results\",{\"token\":[1],\"currencySign\":[1,\"currency-sign\"],\"locale\":[8],\"pricePrefix\":[1,\"price-prefix\"],\"searchId\":[1,\"search-id\"],\"uiSessionId\":[1025,\"ui-session-id\"],\"imageResolutionWidth\":[2,\"image-resolution-width\"],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"favoriteShow\":[4,\"favorite-show\"],\"textSearchQuery\":[1,\"text-search-query\"],\"filterColumn\":[1,\"filter-column\"],\"filterValue\":[1,\"filter-value\"],\"resultsCount\":[2,\"results-count\"],\"addPriceContainer\":[4,\"add-price-container\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"showInWidget\":[4,\"show-in-widget\"],\"apiPath\":[1,\"api-path\"],\"buttonElementId\":[1,\"button-element-id\"],\"widgetElementId\":[1025,\"widget-element-id\"],\"showAspectRatioError\":[4,\"show-aspect-ratio-error\"],\"resetState\":[16],\"replaceSlotsContentInWidget\":[16],\"replaceSlotsContentInButton\":[16],\"parentSlots\":[16],\"useInnerState\":[4,\"use-inner-state\"],\"textSearchRequestId\":[1,\"text-search-request-id\"],\"scrollableModalBody\":[16],\"innerTextSearchQuery\":[32],\"innerTextSearchRequestId\":[32],\"slotsReplaced\":[32],\"oneClickDiscoveryAppendIndex\":[32],\"oneClickDiscoverySelectedIndex\":[32],\"isTextSearch\":[32],\"innerResults\":[32]},[[0,\"vviinnProductLoad\",\"trackProductLoad\"],[0,\"vviinnProductView\",\"trackProductView\"],[0,\"vviinnProductClick\",\"trackProductClick\"],[0,\"vviinnAuxClick\",\"trackAuxClick\"],[0,\"vviinnAddToBasket\",\"trackAddToBasket\"],[0,\"vviinnAddToFavorite\",\"trackAddToFavorite\"]]],[1,\"vviinn-cropper\",{\"saveImageMode\":[1,\"save-image-mode\"],\"detectedObjectsString\":[1025,\"detected-objects-string\"],\"url\":[1025],\"width\":[1026],\"apiPath\":[1,\"api-path\"],\"height\":[1026],\"basicEventData\":[1040],\"showAspectRatioError\":[4,\"show-aspect-ratio-error\"],\"showInWidget\":[4,\"show-in-widget\"],\"detectedObjects\":[32],\"cropper\":[32],\"selectedDetectedObject\":[32]},[[0,\"vviinnSelectObject\",\"selectDetectedObject\"],[0,\"vviinnImageCrop\",\"imageCropHandler\"]]],[1,\"vviinn-overlayed-modal\",{\"active\":[4],\"resetState\":[16],\"buttonElementId\":[1,\"button-element-id\"],\"hideBackButton\":[4,\"hide-back-button\"],\"widgetVersion\":[1,\"widget-version\"],\"isFirstScreen\":[4,\"is-first-screen\"]}],[1,\"vviinn-image-selector\",{\"basicEventData\":[16],\"startUpload\":[4,\"start-upload\"],\"loading\":[4],\"accept\":[1],\"resetVpsButton\":[16],\"token\":[1],\"apiPath\":[1,\"api-path\"],\"storeName\":[1,\"store-name\"]}],[1,\"vviinn-server-error\",{\"handler\":[16]}],[1,\"vviinn-wrong-format\",{\"handler\":[16]}],[1,\"vviinn-camera\",{\"exampleImageSource\":[1,\"example-image-source\"],\"width\":[2],\"height\":[2],\"basicEventData\":[16],\"srcObject\":[16],\"cameraButtonClicked\":[4,\"camera-button-clicked\"],\"useComponentsStore\":[4,\"use-components-store\"],\"selected\":[32],\"videoInitialized\":[32],\"zoomCapabilities\":[32]}],[1,\"vviinn-privacy-badge\",{\"privacyBadgeText\":[1,\"privacy-badge-text\"]}],[1,\"vviinn-slide\"],[1,\"vviinn-slider\",{\"position\":[514],\"elementsCount\":[32],\"internalPosition\":[32],\"swipeStartPosition\":[32],\"isRTL\":[32]}],[1,\"vviinn-teaser\"]]],[\"vviinn-text-search.cjs\",[[1,\"vviinn-text-search\",{\"token\":[1],\"locale\":[1],\"mode\":[1],\"searchQuery\":[1025,\"search-query\"],\"placeholder\":[1],\"showInWidget\":[4,\"show-in-widget\"],\"apiPath\":[1,\"api-path\"],\"uiSessionId\":[1,\"ui-session-id\"],\"basicEventData\":[16],\"isRecording\":[32],\"showTooltip\":[32]}]]],[\"vviinn-vps-button.cjs\",[[1,\"vviinn-vps-button\",{\"token\":[1],\"currencySign\":[1,\"currency-sign\"],\"locale\":[1],\"pricePrefix\":[1,\"price-prefix\"],\"campaignId\":[1,\"campaign-id\"],\"addStyle\":[4,\"add-style\"],\"mode\":[1],\"excluded\":[1],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"imageResolutionWidth\":[2,\"image-resolution-width\"],\"exampleImageSource\":[1,\"example-image-source\"],\"textSearchShow\":[4,\"text-search-show\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"favoriteShow\":[4,\"favorite-show\"],\"oneClickDiscoveryShow\":[4,\"one-click-discovery-show\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"addPriceContainer\":[4,\"add-price-container\"],\"apiPath\":[1,\"api-path\"],\"useComponentsStore\":[4,\"use-components-store\"],\"buttonPressed\":[32]},[[0,\"vviinnWidgetClose\",\"handleModalClosed\"]]]]]]"), options);
|
|
17
|
+
return index.bootstrapLazy(JSON.parse("[[\"vviinn-selected-filters.cjs\",[[1,\"vviinn-selected-filters\",{\"showInWidget\":[4,\"show-in-widget\"],\"requestFilters\":[32],\"selectedFilterButtons\":[32],\"textSearchCustomFilter\":[32],\"imageSrc\":[32],\"priceCustomFilter\":[32]}]]],[\"vviinn-error.cjs\",[[1,\"vviinn-error\"]]],[\"vviinn-carousel_10.cjs\",[[1,\"vviinn-vpr-widget\",{\"token\":[1],\"productId\":[1,\"product-id\"],\"mode\":[1],\"campaigns\":[1],\"excluded\":[1],\"campaignType\":[1,\"campaign-type\"],\"locale\":[1],\"color\":[1],\"imageWidth\":[2,\"image-width\"],\"imageRatio\":[2,\"image-ratio\"],\"setItemsAmount\":[2,\"set-items-amount\"],\"cssUrl\":[1,\"css-url\"],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"noResultText\":[1,\"no-result-text\"],\"noResultShow\":[4,\"no-result-show\"],\"gridArrowsDynamic\":[4,\"grid-arrows-dynamic\"],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"showFilters\":[4,\"show-filters\"],\"showExtendedFilters\":[4,\"show-extended-filters\"],\"setModeDiscounts\":[1,\"set-mode-discounts\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"addPriceContainer\":[4,\"add-price-container\"],\"favoriteShow\":[4,\"favorite-show\"],\"blockTitle\":[1,\"block-title\"],\"showScroll\":[4,\"show-scroll\"],\"apiPath\":[1,\"api-path\"],\"useCarousel\":[4,\"use-carousel\"],\"showingInButton\":[4,\"showing-in-button\"],\"buttonElementId\":[1,\"button-element-id\"],\"closed\":[4],\"opened\":[4],\"isAppended\":[4,\"is-appended\"],\"showInWidget\":[4,\"show-in-widget\"],\"recommendationsLoading\":[1028,\"recommendations-loading\"],\"setRecommendationsLoading\":[16],\"recommendations\":[32],\"dynamicFilters\":[32],\"sourceProduct\":[32],\"hasErrorOnLoad\":[32],\"updatingAllCards\":[32],\"updatedCardsAmount\":[32],\"setModeDiscountsArray\":[32]},[[0,\"vviinnProductLoad\",\"trackProductLoad\"],[0,\"vviinnProductView\",\"trackProductView\"],[0,\"vviinnProductClick\",\"trackProductClick\"],[0,\"vviinnAuxClick\",\"trackAuxClick\"],[0,\"vviinnAddToBasket\",\"trackAddToBasket\"],[0,\"vviinnAddToFavorite\",\"trackAddToWishlist\"],[0,\"vviinnUpdatingAllCardsFinished\",\"updatingAllCardsFinishedListener\"],[0,\"vviinnFiltersChanged\",\"filtersChanged\"]]],[0,\"vviinn-carousel\",{\"mode\":[1],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"locale\":[1],\"imageWidth\":[2,\"image-width\"],\"showScroll\":[4,\"show-scroll\"],\"campaignTypeId\":[1,\"campaign-type-id\"],\"widgetElementId\":[1,\"widget-element-id\"],\"gridArrowsDynamic\":[4,\"grid-arrows-dynamic\"],\"recommendations\":[1040],\"sourceProduct\":[16],\"widgetVersion\":[1,\"widget-version\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"updatingAllCards\":[4,\"updating-all-cards\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"replaceSlotsContent\":[16],\"setModeDiscountsArray\":[16],\"imageRatio\":[2,\"image-ratio\"],\"addPriceContainer\":[4,\"add-price-container\"],\"favoriteShow\":[4,\"favorite-show\"],\"setItemsAmount\":[2,\"set-items-amount\"],\"isAppended\":[4,\"is-appended\"],\"loading\":[4],\"hasErrorOnLoad\":[4,\"has-error-on-load\"],\"showInWidget\":[4,\"show-in-widget\"],\"moveDirection\":[32],\"contentGroups\":[32],\"activeContentGroup\":[32],\"isRTL\":[32],\"crossSellingRecommendations\":[32],\"setModeDiscount\":[32],\"currentDiscountIndex\":[32],\"setModeAppliedDiscounts\":[32],\"columns\":[32],\"showContent\":[32]},[[0,\"vviinnCrossSellingClick\",\"crossSellingClickListener\"],[0,\"vviinnAddToBasket\",\"setModeAddToBasketHandler\"]]],[1,\"vviinn-extended-filters\",{\"filters\":[1040],\"mode\":[1],\"showHeader\":[4,\"show-header\"],\"filtersString\":[1,\"filters-string\"],\"showInWidget\":[4,\"show-in-widget\"],\"widgetElement\":[8,\"widget-element\"],\"innerFilters\":[32],\"requestFilters\":[32],\"showMore\":[32],\"selectedMoreOptions\":[32],\"displayedOptionsCount\":[32]},[[16,\"click\",\"bodyClickListener\"]]],[1,\"vviinn-filters\",{\"filters\":[1040],\"filtersString\":[1,\"filters-string\"],\"showInWidget\":[4,\"show-in-widget\"],\"innerFilters\":[32],\"selectedFilter\":[32],\"requestFilters\":[32]}],[1,\"vviinn-product-card\",{\"brand\":[1],\"currency\":[1],\"locale\":[1],\"pricePrefix\":[1,\"price-prefix\"],\"image\":[1],\"imageRatio\":[2,\"image-ratio\"],\"imageWidth\":[2,\"image-width\"],\"price\":[2],\"basePrice\":[1,\"base-price\"],\"productTitle\":[1,\"product-title\"],\"productType\":[1,\"product-type\"],\"setMode\":[4,\"set-mode\"],\"salePrice\":[2,\"sale-price\"],\"baseSalePrice\":[1,\"base-sale-price\"],\"responsive\":[4],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"favoriteShow\":[4,\"favorite-show\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"customLabels\":[1,\"custom-labels\"],\"addPriceContainer\":[4,\"add-price-container\"],\"energyCertifications\":[1040],\"productId\":[1,\"product-id\"],\"campaignTypeId\":[1,\"campaign-type-id\"],\"widgetElementId\":[1,\"widget-element-id\"],\"buttonElementId\":[1,\"button-element-id\"],\"widgetVersion\":[1,\"widget-version\"],\"deeplink\":[1],\"index\":[2],\"updatingAllCards\":[4,\"updating-all-cards\"],\"defaultAnimationInterval\":[2,\"default-animation-interval\"],\"appliedDiscountPercentage\":[2,\"applied-discount-percentage\"],\"currentDiscountPercentage\":[2,\"current-discount-percentage\"],\"isSourceProduct\":[4,\"is-source-product\"],\"isResultsWidget\":[4,\"is-results-widget\"],\"energyCertificationsString\":[1,\"energy-certifications-string\"],\"isStandalone\":[4,\"is-standalone\"],\"showFooterArrow\":[4,\"show-footer-arrow\"],\"isTransitioning\":[32],\"basketButonPressed\":[32],\"favoriteButonPressed\":[32]},[[0,\"vviinnCrossSellingClick\",\"crossSellingClickListener\"]]],[1,\"vviinn-product-card-skeleton\",{\"imageRatio\":[2,\"image-ratio\"]}],[1,\"vviinn-extended-filters-button\",{\"handleClick\":[16],\"showInWidget\":[4,\"show-in-widget\"]}],[1,\"vviinn-energy-label\",{\"classIconUrls\":[16],\"productType\":[1,\"product-type\"],\"classDataSheetUrl\":[1,\"class-data-sheet-url\"],\"iconDirection\":[1,\"icon-direction\"]}],[1,\"vviinn-price-range\",{\"histogram\":[16],\"addStyle\":[4,\"add-style\"],\"priceChangeHandler\":[16],\"selectedInterval\":[16],\"minIndex\":[32],\"maxIndex\":[32],\"scalingFactor\":[32]}],[1,\"vviinn-skeleton\",{\"height\":[2],\"halfWidth\":[4,\"half-width\"],\"aspectRatio\":[2,\"aspect-ratio\"]}]]],[\"vviinn-button_2.cjs\",[[1,\"vviinn-recommendations-sidebar\",{\"sidebarTitle\":[1,\"sidebar-title\"],\"token\":[1],\"locale\":[1],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"productId\":[1,\"product-id\"],\"position\":[1],\"widgetScrollbar\":[4,\"widget-scrollbar\"],\"mode\":[1],\"campaigns\":[1],\"campaignType\":[1,\"campaign-type\"],\"color\":[1],\"imageWidth\":[2,\"image-width\"],\"imageRatio\":[2,\"image-ratio\"],\"cssUrl\":[1,\"css-url\"],\"noResultText\":[1,\"no-result-text\"],\"noResultShow\":[4,\"no-result-show\"],\"gridArrowsDynamic\":[4,\"grid-arrows-dynamic\"],\"excluded\":[1],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"addPriceContainer\":[4,\"add-price-container\"],\"showFilters\":[4,\"show-filters\"],\"setModeDiscounts\":[1,\"set-mode-discounts\"],\"setItemsAmount\":[2,\"set-items-amount\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"favoriteShow\":[4,\"favorite-show\"],\"useCarousel\":[4,\"use-carousel\"],\"showInWidget\":[4,\"show-in-widget\"],\"apiPath\":[1,\"api-path\"],\"showInCustomContainer\":[4,\"show-in-custom-container\"],\"buttonChildren\":[16],\"buttonElementId\":[1,\"button-element-id\"],\"widgetVersion\":[1,\"widget-version\"],\"showingInButton\":[4,\"showing-in-button\"],\"showInModal\":[4,\"show-in-modal\"],\"isAppended\":[4,\"is-appended\"],\"sidebarState\":[32],\"sourceProduct\":[32],\"showLoadingClass\":[32],\"recommendationsLoading\":[32]},[[0,\"vviinnUpdatingAllCardsStarted\",\"updatingAllCardsStarted\"],[0,\"vviinnUpdatingAllCardsFinished\",\"updatingAllCardsFinished\"],[16,\"click\",\"bodyClickListener\"],[0,\"sourceProductReceived\",\"sourceProductReceived\"]]],[1,\"vviinn-button\",{\"addStyle\":[4,\"add-style\"]}]]],[\"vviinn-detected-object_7.cjs\",[[1,\"vviinn-vpr-button\",{\"token\":[1],\"locale\":[1],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"productId\":[1,\"product-id\"],\"mode\":[1],\"campaigns\":[1],\"excluded\":[1],\"campaignType\":[1,\"campaign-type\"],\"color\":[1],\"imageWidth\":[2,\"image-width\"],\"imageRatio\":[2,\"image-ratio\"],\"setItemsAmount\":[2,\"set-items-amount\"],\"cssUrl\":[1,\"css-url\"],\"noResultText\":[1,\"no-result-text\"],\"noResultShow\":[4,\"no-result-show\"],\"gridArrowsDynamic\":[4,\"grid-arrows-dynamic\"],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"showFilters\":[4,\"show-filters\"],\"addPriceContainer\":[4,\"add-price-container\"],\"setModeDiscounts\":[1,\"set-mode-discounts\"],\"updateButtonLocation\":[1,\"update-button-location\"],\"sidebarTitle\":[1,\"sidebar-title\"],\"modalScrollbar\":[4,\"modal-scrollbar\"],\"position\":[1],\"addStyle\":[4,\"add-style\"],\"favoriteShow\":[4,\"favorite-show\"],\"appendSidebarToElement\":[16],\"appendSidebarToId\":[1,\"append-sidebar-to-id\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"apiPath\":[1,\"api-path\"],\"showInWidget\":[4,\"show-in-widget\"],\"targetAppendSidebarTo\":[32]}],[1,\"vviinn-empty-results\",{\"handler\":[16]}],[1,\"vviinn-wrong-aspect-ratio\",{\"handler\":[16]}],[1,\"vviinn-detected-object\",{\"detectedObject\":[16],\"selectedDetectedObject\":[16],\"basicEventData\":[16],\"imageBounds\":[16],\"showInWidget\":[4,\"show-in-widget\"],\"position\":[32]}],[1,\"vviinn-modal\",{\"active\":[1540],\"resetState\":[16],\"buttonElementId\":[1,\"button-element-id\"],\"widgetVersion\":[1,\"widget-version\"],\"hideBackButton\":[4,\"hide-back-button\"],\"isFirstScreen\":[4,\"is-first-screen\"],\"slider\":[32]}],[1,\"vviinn-overlay\"],[1,\"vviinn-preloader\"]]],[\"vviinn-camera_12.cjs\",[[1,\"vviinn-vps-widget\",{\"token\":[1],\"active\":[1028],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"locale\":[1],\"campaignId\":[1,\"campaign-id\"],\"excluded\":[1],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"imageResolutionWidth\":[2,\"image-resolution-width\"],\"exampleImageSource\":[1,\"example-image-source\"],\"textSearchShow\":[4,\"text-search-show\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"favoriteShow\":[4,\"favorite-show\"],\"oneClickDiscoveryShow\":[4,\"one-click-discovery-show\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"addPriceContainer\":[4,\"add-price-container\"],\"apiPath\":[1,\"api-path\"],\"showingInButton\":[4,\"showing-in-button\"],\"buttonElementId\":[1,\"button-element-id\"],\"buttonPressed\":[4,\"button-pressed\"],\"mode\":[1],\"resetVpsButton\":[16],\"replaceSlotsContentInButton\":[16],\"parentSlots\":[16],\"useComponentsStore\":[4,\"use-components-store\"],\"slidePosition\":[32],\"uploadSource\":[32],\"stream\":[32],\"products\":[32],\"textSearchQuery\":[32],\"modalBody\":[32],\"isCameraInitializing\":[32],\"isCameraEnabled\":[32],\"isCameraButtonClicked\":[32],\"showAspectRatioError\":[32],\"wrongImageFormat\":[32]},[[0,\"widgetTextSearchFinished\",\"textSearchFinishedHandler\"],[0,\"vviinnResultLoad\",\"resultLoadHandler\"],[0,\"vviinnResultView\",\"resultViewHandler\"],[0,\"vviinnCameraEnabled\",\"trackCameraEnabled\"],[0,\"vviinnImageCrop\",\"cropAreaChanges\"],[0,\"vviinnSelectObject\",\"trackDetectedObject\"],[0,\"vviinnSelectFilter\",\"trackImageSearchFilterSelected\"]]],[1,\"vviinn-results\",{\"token\":[1],\"currencySign\":[1,\"currency-sign\"],\"locale\":[8],\"pricePrefix\":[1,\"price-prefix\"],\"searchId\":[1,\"search-id\"],\"uiSessionId\":[1025,\"ui-session-id\"],\"imageResolutionWidth\":[2,\"image-resolution-width\"],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"favoriteShow\":[4,\"favorite-show\"],\"textSearchQuery\":[1,\"text-search-query\"],\"filterColumn\":[1,\"filter-column\"],\"filterValue\":[1,\"filter-value\"],\"resultsCount\":[2,\"results-count\"],\"addPriceContainer\":[4,\"add-price-container\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"showInWidget\":[4,\"show-in-widget\"],\"apiPath\":[1,\"api-path\"],\"buttonElementId\":[1,\"button-element-id\"],\"widgetElementId\":[1025,\"widget-element-id\"],\"showAspectRatioError\":[4,\"show-aspect-ratio-error\"],\"resetWidgetState\":[16],\"replaceSlotsContentInWidget\":[16],\"replaceSlotsContentInButton\":[16],\"parentSlots\":[16],\"useInnerState\":[4,\"use-inner-state\"],\"scrollableModalBody\":[16],\"innerTextSearchQuery\":[32],\"slotsReplaced\":[32],\"oneClickDiscoveryAppendIndex\":[32],\"oneClickDiscoverySelectedIndex\":[32],\"isTextSearch\":[32],\"innerResults\":[32]},[[0,\"vviinnProductLoad\",\"trackProductLoad\"],[0,\"vviinnProductView\",\"trackProductView\"],[0,\"vviinnProductClick\",\"trackProductClick\"],[0,\"vviinnAuxClick\",\"trackAuxClick\"],[0,\"vviinnAddToBasket\",\"trackAddToBasket\"],[0,\"vviinnAddToFavorite\",\"trackAddToFavorite\"]]],[1,\"vviinn-cropper\",{\"saveImageMode\":[1,\"save-image-mode\"],\"detectedObjectsString\":[1025,\"detected-objects-string\"],\"url\":[1025],\"width\":[1026],\"apiPath\":[1,\"api-path\"],\"height\":[1026],\"basicEventData\":[1040],\"showAspectRatioError\":[4,\"show-aspect-ratio-error\"],\"showInWidget\":[4,\"show-in-widget\"],\"detectedObjects\":[32],\"cropper\":[32],\"selectedDetectedObject\":[32]},[[0,\"vviinnSelectObject\",\"selectDetectedObject\"],[0,\"vviinnImageCrop\",\"imageCropHandler\"]]],[1,\"vviinn-overlayed-modal\",{\"active\":[4],\"resetState\":[16],\"buttonElementId\":[1,\"button-element-id\"],\"hideBackButton\":[4,\"hide-back-button\"],\"widgetVersion\":[1,\"widget-version\"],\"isFirstScreen\":[4,\"is-first-screen\"]}],[1,\"vviinn-image-selector\",{\"basicEventData\":[16],\"startUpload\":[4,\"start-upload\"],\"loading\":[4],\"accept\":[1],\"resetVpsButton\":[16],\"token\":[1],\"apiPath\":[1,\"api-path\"],\"storeName\":[1,\"store-name\"]}],[1,\"vviinn-server-error\",{\"handler\":[16]}],[1,\"vviinn-wrong-format\",{\"handler\":[16]}],[1,\"vviinn-camera\",{\"exampleImageSource\":[1,\"example-image-source\"],\"width\":[2],\"height\":[2],\"basicEventData\":[16],\"srcObject\":[16],\"cameraButtonClicked\":[4,\"camera-button-clicked\"],\"useComponentsStore\":[4,\"use-components-store\"],\"selected\":[32],\"videoInitialized\":[32],\"zoomCapabilities\":[32]}],[1,\"vviinn-privacy-badge\",{\"privacyBadgeText\":[1,\"privacy-badge-text\"]}],[1,\"vviinn-slide\"],[1,\"vviinn-slider\",{\"position\":[514],\"elementsCount\":[32],\"internalPosition\":[32],\"swipeStartPosition\":[32],\"isRTL\":[32]}],[1,\"vviinn-teaser\"]]],[\"vviinn-text-search.cjs\",[[1,\"vviinn-text-search\",{\"token\":[1],\"locale\":[1],\"mode\":[1],\"searchQuery\":[1025,\"search-query\"],\"placeholder\":[1],\"showInWidget\":[4,\"show-in-widget\"],\"showOnFirstScreen\":[4,\"show-on-first-screen\"],\"apiPath\":[1,\"api-path\"],\"uiSessionId\":[1,\"ui-session-id\"],\"basicEventData\":[16],\"isRecording\":[32],\"showTooltip\":[32]}]]],[\"vviinn-vps-button.cjs\",[[1,\"vviinn-vps-button\",{\"token\":[1],\"currencySign\":[1,\"currency-sign\"],\"locale\":[1],\"pricePrefix\":[1,\"price-prefix\"],\"campaignId\":[1,\"campaign-id\"],\"addStyle\":[4,\"add-style\"],\"mode\":[1],\"excluded\":[1],\"productDetailsNewTab\":[4,\"product-details-new-tab\"],\"productDetailsRedirect\":[4,\"product-details-redirect\"],\"imageResolutionWidth\":[2,\"image-resolution-width\"],\"exampleImageSource\":[1,\"example-image-source\"],\"textSearchShow\":[4,\"text-search-show\"],\"addToBasketShow\":[4,\"add-to-basket-show\"],\"favoriteShow\":[4,\"favorite-show\"],\"oneClickDiscoveryShow\":[4,\"one-click-discovery-show\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"addPriceContainer\":[4,\"add-price-container\"],\"apiPath\":[1,\"api-path\"],\"useComponentsStore\":[4,\"use-components-store\"],\"buttonPressed\":[32]},[[0,\"vviinnWidgetClose\",\"handleModalClosed\"]]]]]]"), options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -21000,7 +21000,8 @@ const appStateGlobalDefaults = {
|
|
|
21000
21000
|
campaignId: "",
|
|
21001
21001
|
};
|
|
21002
21002
|
const appStateDefaults = {
|
|
21003
|
-
|
|
21003
|
+
visualSearchId: null,
|
|
21004
|
+
textSearchId: null,
|
|
21004
21005
|
searchType: null,
|
|
21005
21006
|
resultLoaded: false,
|
|
21006
21007
|
resultViewed: false,
|
|
@@ -21051,7 +21052,7 @@ const updateVisualSearchState = (store) => async (response) => {
|
|
|
21051
21052
|
const detectedObjects = response.interactions.suggestedSearchAreas.map(({ rectangle }) => rectangle);
|
|
21052
21053
|
if (detectedObjects.length > 0)
|
|
21053
21054
|
state.detectedObjects = detectedObjects;
|
|
21054
|
-
state.
|
|
21055
|
+
state.visualSearchId = response.requestId;
|
|
21055
21056
|
state.results = response.data.products;
|
|
21056
21057
|
state.dynamicFilters = response.interactions.dynamicFilters;
|
|
21057
21058
|
state.loading = false;
|
|
@@ -21094,12 +21095,12 @@ const makeUploadFileRequest = (store) => async (file) => {
|
|
|
21094
21095
|
});
|
|
21095
21096
|
const session = await pipe(uploadImageFile(store, "image")(file))();
|
|
21096
21097
|
state.loading = false;
|
|
21097
|
-
if (!((_a = state.
|
|
21098
|
+
if (!((_a = state.visualSearchId) === null || _a === void 0 ? void 0 : _a.length))
|
|
21098
21099
|
return session;
|
|
21099
21100
|
const shouldProcessHiRes = await pipe(fromTask(imageFromFileTask(file)), map((img) => shouldResize(img, "highResolutionImage")), getOrElse(() => of(false)))();
|
|
21100
21101
|
if (!shouldProcessHiRes)
|
|
21101
21102
|
return session;
|
|
21102
|
-
pipe(uploadImageFile(store, "highResolutionImage", state.
|
|
21103
|
+
pipe(uploadImageFile(store, "highResolutionImage", state.visualSearchId)(file), getOrElseW((error) => {
|
|
21103
21104
|
console.error("Failed to upload hi-res image:", error);
|
|
21104
21105
|
return of(session);
|
|
21105
21106
|
}))();
|
|
@@ -21129,7 +21130,7 @@ const makeVisualSearchRequest = async (store, searchId) => {
|
|
|
21129
21130
|
};
|
|
21130
21131
|
fetchDetectedObjects = true;
|
|
21131
21132
|
}
|
|
21132
|
-
const body = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ requestId: searchId !== null && searchId !== void 0 ? searchId : state.
|
|
21133
|
+
const body = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ requestId: searchId !== null && searchId !== void 0 ? searchId : state.visualSearchId }, addIfNotEmpty("campaign", state.campaignId)), addIfNotEmpty("dynamicFilters", state.requestFilters)), { query: Object.assign({}, addIfDefined("searchArea", searchRectangle)) }), addNestedIfNotEmpty("staticFilters", Object.assign({}, addIfNotEmpty("excluded", state.excluded)))), { objectDetection: {
|
|
21133
21134
|
include: fetchDetectedObjects,
|
|
21134
21135
|
} });
|
|
21135
21136
|
return processVisualSearch(store, body)();
|
|
@@ -21138,11 +21139,11 @@ const makeTextSearchRequest = async (store, query, requestId, resultsCount) => {
|
|
|
21138
21139
|
const state = useStore(store);
|
|
21139
21140
|
state.searchType = "text";
|
|
21140
21141
|
state.loading = true;
|
|
21141
|
-
const body = Object.assign(Object.assign(Object.assign({ query,
|
|
21142
|
-
requestId }, addIfDefined("resultsCount", resultsCount)), addIfNotEmpty("dynamicFilters", state.requestFilters)), addNestedIfNotEmpty("staticFilters", Object.assign({}, addIfNotEmpty("excluded", state.excluded))));
|
|
21142
|
+
const body = Object.assign(Object.assign(Object.assign(Object.assign({ query }, addIfDefined("requestId", requestId)), addIfDefined("resultsCount", resultsCount)), addIfNotEmpty("dynamicFilters", state.requestFilters)), addNestedIfNotEmpty("staticFilters", Object.assign({}, addIfNotEmpty("excluded", state.excluded))));
|
|
21143
21143
|
return pipe(getTokenWithBody(globalState.token, body), setBodyAndHeaders, fromEither, chain((request) => textSearchSessionClient(request)), map((sessionResponse) => {
|
|
21144
21144
|
var _a, _b, _c, _d;
|
|
21145
21145
|
state.results = (_b = (_a = sessionResponse === null || sessionResponse === void 0 ? void 0 : sessionResponse.data) === null || _a === void 0 ? void 0 : _a.products) !== null && _b !== void 0 ? _b : [];
|
|
21146
|
+
state.textSearchId = sessionResponse.requestId;
|
|
21146
21147
|
state.dynamicFilters =
|
|
21147
21148
|
(_d = (_c = sessionResponse === null || sessionResponse === void 0 ? void 0 : sessionResponse.interactions) === null || _c === void 0 ? void 0 : _c.dynamicFilters) !== null && _d !== void 0 ? _d : [];
|
|
21148
21149
|
state.loading = false;
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1a40d6c9.js');
|
|
6
|
-
const search_store = require('./search.store-
|
|
6
|
+
const search_store = require('./search.store-5c334453.js');
|
|
7
7
|
const customizedSlots = require('./customized-slots-a9416ea3.js');
|
|
8
|
-
const
|
|
8
|
+
const index$1 = require('./index-601ae273.js');
|
|
9
9
|
const Rectangle = require('./Rectangle-baf86229.js');
|
|
10
|
-
const _package = require('./package-
|
|
11
|
-
const index$1 = require('./index-4c7242d9.js');
|
|
10
|
+
const _package = require('./package-fc8274cf.js');
|
|
12
11
|
const resources = require('./resources-9a669f8f.js');
|
|
13
12
|
const index$2 = require('./index-bbed84c5.js');
|
|
14
13
|
const constants = require('./constants-21309688.js');
|
|
@@ -167,7 +166,7 @@ const VviinnExampleImage = class {
|
|
|
167
166
|
render() {
|
|
168
167
|
return (index.h(index.Host, { onKeyUp: (ev) => this.handleKeyPress(ev), class: { "video-expanded": this.cameraButtonClicked } }, index.h("video", { id: "camera-preview", class: {
|
|
169
168
|
hidden: !this.videoInitialized || this.selected,
|
|
170
|
-
}, autoplay: true, playsinline: true, muted: true }), index.h("img", { src: this.exampleImageSource, width: this.width, height: this.height, tabindex: 1, class: { hidden: this.videoInitialized || this.selected } }), index.h("img", { id: "captured-image-placeholder", class: { hidden: !this.selected } }), index.h("div", { class: { container: true, hidden: !this.videoInitialized } }, index.h("div", { class: "photo-frame-container" }, index.h("div", { id: "photo-frame" }, index.h(PhotoFrameCorner, { className: "photo-frame-corner top-left" }), index.h(PhotoFrameCorner, { className: "photo-frame-corner top-right" }), index.h(PhotoFrameCorner, { className: "photo-frame-corner bottom-left" }), index.h(PhotoFrameCorner, { className: "photo-frame-corner bottom-right" })), index.h("div", { class: { "zoom-buttons": true, hidden: !this.zoomCapabilities } }, index.h("button", { onClick: () => this.onZoom("out") }, index.h(MinusIcon, null)), index.h("button", { onClick: () => this.onZoom("in") }, index.h(
|
|
169
|
+
}, autoplay: true, playsinline: true, muted: true }), index.h("img", { src: this.exampleImageSource, width: this.width, height: this.height, tabindex: 1, class: { hidden: this.videoInitialized || this.selected } }), index.h("img", { id: "captured-image-placeholder", class: { hidden: !this.selected } }), index.h("div", { class: { container: true, hidden: !this.videoInitialized } }, index.h("div", { class: "photo-frame-container" }, index.h("div", { id: "photo-frame" }, index.h(PhotoFrameCorner, { className: "photo-frame-corner top-left" }), index.h(PhotoFrameCorner, { className: "photo-frame-corner top-right" }), index.h(PhotoFrameCorner, { className: "photo-frame-corner bottom-left" }), index.h(PhotoFrameCorner, { className: "photo-frame-corner bottom-right" })), index.h("div", { class: { "zoom-buttons": true, hidden: !this.zoomCapabilities } }, index.h("button", { onClick: () => this.onZoom("out") }, index.h(MinusIcon, null)), index.h("button", { onClick: () => this.onZoom("in") }, index.h(index$1.PlusIcon, null)))), index.h("div", { class: "photo-button-container" }, index.h("button", { class: "photo-button", onClick: () => this.selectImage() }, index.h(RoundCameraIcon, null))))));
|
|
171
170
|
}
|
|
172
171
|
get el() { return index.getElement(this); }
|
|
173
172
|
static get watchers() { return {
|
|
@@ -3856,7 +3855,7 @@ const VviinnResults = class {
|
|
|
3856
3855
|
return 0;
|
|
3857
3856
|
const firstRowTop = cards[0].offsetTop;
|
|
3858
3857
|
const columns = cards.filter((card) => card.offsetTop === firstRowTop).length;
|
|
3859
|
-
this.el.style.setProperty(
|
|
3858
|
+
this.el.style.setProperty(index$1.RESULTS_CALCULATED_COLUMNS_CSS_VAR, columns.toString());
|
|
3860
3859
|
};
|
|
3861
3860
|
this.calculateCardHeight = () => {
|
|
3862
3861
|
const firstCard = this.el.shadowRoot.querySelector("vviinn-product-card");
|
|
@@ -3886,9 +3885,7 @@ const VviinnResults = class {
|
|
|
3886
3885
|
const _a = this.getBasicEventData(), rest = __rest$1(_a, ["campaignTypeId"]);
|
|
3887
3886
|
const textSearchStartedEvent = index$1.createWidgetEvent("TPS")(Object.assign({ action: "search", session_id: this.uiSessionId }, rest));
|
|
3888
3887
|
search_store.trackEvent(textSearchStartedEvent);
|
|
3889
|
-
|
|
3890
|
-
if (response)
|
|
3891
|
-
this.innerTextSearchRequestId = response.requestId;
|
|
3888
|
+
this.getTextSearchResults();
|
|
3892
3889
|
};
|
|
3893
3890
|
this.filtersChangedHandler = async ({ detail }) => {
|
|
3894
3891
|
const { filters, isTriggeredByVpsWidget } = detail;
|
|
@@ -3900,7 +3897,7 @@ const VviinnResults = class {
|
|
|
3900
3897
|
}
|
|
3901
3898
|
this.state.requestFilters = filters;
|
|
3902
3899
|
if (this.isTextSearch) {
|
|
3903
|
-
this.getTextSearchResults(this.
|
|
3900
|
+
this.getTextSearchResults(this.state.textSearchId);
|
|
3904
3901
|
}
|
|
3905
3902
|
else {
|
|
3906
3903
|
search_store.makeVisualSearchRequest(this.storeName, this.searchId);
|
|
@@ -3978,15 +3975,13 @@ const VviinnResults = class {
|
|
|
3978
3975
|
this.buttonElementId = undefined;
|
|
3979
3976
|
this.widgetElementId = undefined;
|
|
3980
3977
|
this.showAspectRatioError = undefined;
|
|
3981
|
-
this.
|
|
3978
|
+
this.resetWidgetState = undefined;
|
|
3982
3979
|
this.replaceSlotsContentInWidget = undefined;
|
|
3983
3980
|
this.replaceSlotsContentInButton = undefined;
|
|
3984
3981
|
this.parentSlots = [];
|
|
3985
3982
|
this.useInnerState = false;
|
|
3986
|
-
this.textSearchRequestId = undefined;
|
|
3987
3983
|
this.scrollableModalBody = undefined;
|
|
3988
3984
|
this.innerTextSearchQuery = undefined;
|
|
3989
|
-
this.innerTextSearchRequestId = undefined;
|
|
3990
3985
|
this.slotsReplaced = undefined;
|
|
3991
3986
|
this.oneClickDiscoveryAppendIndex = undefined;
|
|
3992
3987
|
this.oneClickDiscoverySelectedIndex = undefined;
|
|
@@ -4027,18 +4022,20 @@ const VviinnResults = class {
|
|
|
4027
4022
|
this.calculateColumns();
|
|
4028
4023
|
this.calculateCardHeight();
|
|
4029
4024
|
}
|
|
4030
|
-
async getTextSearchResults(
|
|
4031
|
-
if (!
|
|
4025
|
+
async getTextSearchResults(requestId) {
|
|
4026
|
+
if (!this.innerTextSearchQuery)
|
|
4032
4027
|
return;
|
|
4033
4028
|
this.setTextSearch(true);
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4029
|
+
if (!(requestId === null || requestId === void 0 ? void 0 : requestId.length)) {
|
|
4030
|
+
search_store.resetStore(this.storeName, "appStateOnly");
|
|
4031
|
+
this.vviinnCropperResetState.emit({
|
|
4032
|
+
isTriggeredByVpsWidget: this.showInWidget,
|
|
4033
|
+
});
|
|
4034
|
+
this.vviinnSelectedFiltersReset.emit({
|
|
4035
|
+
isTriggeredByVpsWidget: this.showInWidget,
|
|
4036
|
+
});
|
|
4037
|
+
}
|
|
4038
|
+
return search_store._function.pipe(await search_store.makeTextSearchRequest(this.storeName, this.innerTextSearchQuery, requestId, this.resultsCount), search_store.getOrElse(() => null));
|
|
4042
4039
|
}
|
|
4043
4040
|
async getResultsByCategory(dynamicFilters) {
|
|
4044
4041
|
if (!this.filterColumn || !this.filterValue || this.showInWidget)
|
|
@@ -4060,7 +4057,7 @@ const VviinnResults = class {
|
|
|
4060
4057
|
if (this.el.id)
|
|
4061
4058
|
this.widgetElementId = this.el.id;
|
|
4062
4059
|
if (!this.uiSessionId) {
|
|
4063
|
-
this.uiSessionId =
|
|
4060
|
+
this.uiSessionId = index$1.v4();
|
|
4064
4061
|
}
|
|
4065
4062
|
document.addEventListener("vviinnImageUploadStarted", this.imageUploadStartedHandler);
|
|
4066
4063
|
document.addEventListener("vviinnTextSearchStarted", this.textSearchStartedHandler);
|
|
@@ -4071,7 +4068,7 @@ const VviinnResults = class {
|
|
|
4071
4068
|
!!this.searchId && search_store.makeVisualSearchRequest(this.storeName, this.searchId);
|
|
4072
4069
|
this.getResultsByCategory();
|
|
4073
4070
|
this.innerTextSearchQuery = this.textSearchQuery;
|
|
4074
|
-
!this.showInWidget && this.getTextSearchResults(
|
|
4071
|
+
!this.showInWidget && this.getTextSearchResults();
|
|
4075
4072
|
}
|
|
4076
4073
|
disconnectedCallback() {
|
|
4077
4074
|
var _a;
|
|
@@ -4088,7 +4085,8 @@ const VviinnResults = class {
|
|
|
4088
4085
|
watchTextSearchQuery(newQuery) {
|
|
4089
4086
|
if (this.showInWidget)
|
|
4090
4087
|
return;
|
|
4091
|
-
this.
|
|
4088
|
+
this.innerTextSearchQuery = newQuery;
|
|
4089
|
+
this.getTextSearchResults();
|
|
4092
4090
|
}
|
|
4093
4091
|
trackProductLoad({ detail }) {
|
|
4094
4092
|
const productLoadEvent = this.getProductTrackEvent(detail, "load");
|
|
@@ -4198,7 +4196,7 @@ const VviinnResults = class {
|
|
|
4198
4196
|
};
|
|
4199
4197
|
return this.getResults().map((p, i) => {
|
|
4200
4198
|
var _a, _b, _c;
|
|
4201
|
-
return (index.h("vviinn-product-card", { pricePrefix: search_store.globalState.pricePrefix, currency: search_store.globalState.currencySign, locale: search_store.globalState.locale, key: p.productId, index: i, productTitle: p.title, productId: p.productId, productType: p.productType, brand: p.brand, deeplink: p.deeplink, price: p.price.actual, salePrice: p.price.sale, basePrice: (_a = p.basePrice) === null || _a === void 0 ? void 0 : _a.actual, baseSalePrice: (_b = p.basePrice) === null || _b === void 0 ? void 0 : _b.sale, responsive: true, imageWidth: this.imageResolutionWidth, image: (_c = p.image.thumbnail) !== null && _c !== void 0 ? _c : p.image.original, energyCertifications: p.energyCertifications, part: "product-card", campaignTypeId: widgetData.campaignTypeId, widgetElementId: this.widgetElementId, buttonElementId: this.buttonElementId, widgetVersion: _package.version, customLabels:
|
|
4199
|
+
return (index.h("vviinn-product-card", { pricePrefix: search_store.globalState.pricePrefix, currency: search_store.globalState.currencySign, locale: search_store.globalState.locale, key: p.productId, index: i, productTitle: p.title, productId: p.productId, productType: p.productType, brand: p.brand, deeplink: p.deeplink, price: p.price.actual, salePrice: p.price.sale, basePrice: (_a = p.basePrice) === null || _a === void 0 ? void 0 : _a.actual, baseSalePrice: (_b = p.basePrice) === null || _b === void 0 ? void 0 : _b.sale, responsive: true, imageWidth: this.imageResolutionWidth, image: (_c = p.image.thumbnail) !== null && _c !== void 0 ? _c : p.image.original, energyCertifications: p.energyCertifications, part: "product-card", campaignTypeId: widgetData.campaignTypeId, widgetElementId: this.widgetElementId, buttonElementId: this.buttonElementId, widgetVersion: _package.version, customLabels: index$1.getCustomLabels(p), addToBasketShow: this.addToBasketShow, favoriteShow: this.favoriteShow, addPriceContainer: this.addPriceContainer, isResultsWidget: true, style: { order: i.toString() }, showFooterArrow: this.oneClickDiscoverySelectedIndex === i }, !!this.oneClickDiscoveryMode && (index.h("div", { slot: "vviinn-product-card-actions", class: "vviinn-results-product-card-actions" }, index.h("vviinn-vpr-button", { onClick: () => oneClickDiscoveryHandler(i), productId: p.productId, addStyle: false, sidebarTitle: "", appendSidebarToId: isOneClickDiscoveryAppendMode
|
|
4202
4200
|
? "one-click-discovery-append"
|
|
4203
4201
|
: undefined, appendSidebarToElement: isOneClickDiscoveryAppendMode
|
|
4204
4202
|
? this.el.shadowRoot.getElementById("one-click-discovery-append")
|
|
@@ -4211,7 +4209,7 @@ const VviinnResults = class {
|
|
|
4211
4209
|
return (index.h(index.Host, { id: "results-block", class: {
|
|
4212
4210
|
"show-in-widget": this.showInWidget,
|
|
4213
4211
|
"matching-discovery": this.oneClickDiscoveryMode === "append-slider",
|
|
4214
|
-
}, exportparts: index$2.productCardParts }, index.h("div", { class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (index.h("vviinn-empty-results", { handler: () => this === null || this === void 0 ? void 0 : this.
|
|
4212
|
+
}, exportparts: index$2.productCardParts }, index.h("div", { class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (index.h("vviinn-empty-results", { handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (index.h("vviinn-wrong-aspect-ratio", { handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), index.h("div", { class: {
|
|
4215
4213
|
hidden: this.showAspectRatioError || resultsLength === 0,
|
|
4216
4214
|
products: true,
|
|
4217
4215
|
}, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), index.h("div", { id: "one-click-discovery-append", style: {
|
|
@@ -4454,7 +4452,7 @@ const VviinnVpsWidget = class {
|
|
|
4454
4452
|
this.el.classList.add("bordered");
|
|
4455
4453
|
};
|
|
4456
4454
|
this.resetInnerState = () => {
|
|
4457
|
-
this.
|
|
4455
|
+
this.textSearchQuery = "";
|
|
4458
4456
|
this.wrongImageFormat = false;
|
|
4459
4457
|
this.resetScroll("results-block");
|
|
4460
4458
|
this.stopStreamTracks();
|
|
@@ -4512,8 +4510,7 @@ const VviinnVpsWidget = class {
|
|
|
4512
4510
|
this.uploadSource = undefined;
|
|
4513
4511
|
this.stream = null;
|
|
4514
4512
|
this.products = [];
|
|
4515
|
-
this.
|
|
4516
|
-
this.requestId = "";
|
|
4513
|
+
this.textSearchQuery = "";
|
|
4517
4514
|
this.modalBody = undefined;
|
|
4518
4515
|
this.isCameraInitializing = false;
|
|
4519
4516
|
this.isCameraEnabled = false;
|
|
@@ -4589,8 +4586,7 @@ const VviinnVpsWidget = class {
|
|
|
4589
4586
|
}
|
|
4590
4587
|
textSearchFinishedHandler({ detail }) {
|
|
4591
4588
|
this.isTextSearch = true;
|
|
4592
|
-
this.
|
|
4593
|
-
this.requestId = detail.requestId;
|
|
4589
|
+
this.textSearchQuery = detail.query;
|
|
4594
4590
|
this.slidePosition = 1;
|
|
4595
4591
|
}
|
|
4596
4592
|
resultLoadHandler() {
|
|
@@ -4630,7 +4626,7 @@ const VviinnVpsWidget = class {
|
|
|
4630
4626
|
!!navigator.mediaDevices && !!navigator.mediaDevices.getUserMedia;
|
|
4631
4627
|
this.state.campaignId = this.campaignId;
|
|
4632
4628
|
this.state.excluded = search_store.parseStringToExcluded(this.excluded);
|
|
4633
|
-
this.uiSessionId =
|
|
4629
|
+
this.uiSessionId = index$1.v4();
|
|
4634
4630
|
this.widgetElementId = this.el.id;
|
|
4635
4631
|
document.addEventListener("vviinnCropperAspectRatioError", this.handleAspectRatioError);
|
|
4636
4632
|
}
|
|
@@ -4700,15 +4696,15 @@ const VviinnVpsWidget = class {
|
|
|
4700
4696
|
this.handleVviinnImageUpload("startCamera");
|
|
4701
4697
|
}, basicEventData: this.getBasicEventData(), srcObject: this.stream, cameraButtonClicked: this.isCameraButtonClicked, exampleImageSource: this.exampleImageSource, useComponentsStore: this.useComponentsStore }), index.h("div", { class: {
|
|
4702
4698
|
error: this.haveErrors(),
|
|
4703
|
-
}, id: "start-page_block" }, index.h("div", { class: "start-page_main-content" }, (this.wrongImageFormat || this.state.serverError) && (index.h("div", { class: "start-page_errors-block" }, index.h("vviinn-wrong-format", { class: { hidden: !this.wrongImageFormat }, handler: () => this.resetState() }), index.h("vviinn-server-error", { class: { hidden: !this.state.serverError }, handler: () => this.resetState() }))), !this.haveErrors() && (index.h(index.Fragment, null, index.h("vviinn-teaser", null), index.h("div", { class: "buttons-group" }, this.renderButtons()), this.textSearchShow && (index.h("vviinn-text-search", { token: search_store.globalState.token, apiPath: search_store.globalState.apiPath, locale: search_store.globalState.locale, showInWidget: true, searchQuery: this.
|
|
4699
|
+
}, id: "start-page_block" }, index.h("div", { class: "start-page_main-content" }, (this.wrongImageFormat || this.state.serverError) && (index.h("div", { class: "start-page_errors-block" }, index.h("vviinn-wrong-format", { class: { hidden: !this.wrongImageFormat }, handler: () => this.resetState() }), index.h("vviinn-server-error", { class: { hidden: !this.state.serverError }, handler: () => this.resetState() }))), !this.haveErrors() && (index.h(index.Fragment, null, index.h("vviinn-teaser", null), index.h("div", { class: "buttons-group" }, this.renderButtons()), this.textSearchShow && (index.h("vviinn-text-search", { token: search_store.globalState.token, apiPath: search_store.globalState.apiPath, locale: search_store.globalState.locale, showInWidget: true, showOnFirstScreen: true, searchQuery: this.textSearchQuery, uiSessionId: this.uiSessionId, basicEventData: this.getBasicEventData(true), "save-image-mode": "never" }))))), index.h("vviinn-privacy-badge", { privacyBadgeText: Rectangle.instance.t("privacyBadgeText", {
|
|
4704
4700
|
interpolation: { escapeValue: false },
|
|
4705
4701
|
}), class: { invisible: this.haveErrors() } }))), index.h("vviinn-slide", { class: {
|
|
4706
4702
|
"results-page": true,
|
|
4707
4703
|
active: this.isResultSlide(),
|
|
4708
|
-
} }, this.isResultSlide() && (index.h("div", { class: "source-wrapper" }, this.state.searchType === "text" ? (index.h("vviinn-text-search", { token: this.token, showInWidget: true, searchQuery: this.
|
|
4704
|
+
} }, this.isResultSlide() && (index.h("div", { class: "source-wrapper" }, this.state.searchType === "text" ? (index.h("vviinn-text-search", { token: this.token, showInWidget: true, searchQuery: this.textSearchQuery, apiPath: this.apiPath, locale: this.locale, uiSessionId: this.uiSessionId, basicEventData: this.getBasicEventData(true), "save-image-mode": "never" })) : (index.h("vviinn-cropper", { basicEventData: this.getBasicEventData(), showAspectRatioError: this.showAspectRatioError, apiPath: this.apiPath, showInWidget: true, "save-image-mode": "never" })), index.h("div", { class: {
|
|
4709
4705
|
"filters-wrapper": true,
|
|
4710
4706
|
hidden: this.showAspectRatioError,
|
|
4711
|
-
} }, index.h("vviinn-filters", { class: "preview-filters", showInWidget: true, exportparts: index$2.filtersParts }), index.h("vviinn-extended-filters", { class: "preview-extended-filters", mode: "preview", showHeader: false, exportparts: index$2.extendedFiltersParts, showInWidget: true }), index.h("vviinn-extended-filters-button", { class: "extended-filters-button", exportparts: "extended-filters-button", showInWidget: true })))), this.isResultSlide() && (index.h("vviinn-results", { token: search_store.globalState.token, locale: search_store.globalState.locale, pricePrefix: search_store.globalState.pricePrefix, "currency-sign": search_store.globalState.currencySign, apiPath: search_store.globalState.apiPath, uiSessionId: this.uiSessionId, widgetElementId: (_b = this.buttonElementId) !== null && _b !== void 0 ? _b : this.widgetElementId, showInWidget: true, buttonElementId: this.buttonElementId, imageResolutionWidth: this.imageResolutionWidth, productDetailsNewTab: this.productDetailsNewTab, productDetailsRedirect: this.productDetailsRedirect, addToBasketShow: this.addToBasketShow, favoriteShow: this.favoriteShow, showAspectRatioError: this.showAspectRatioError,
|
|
4707
|
+
} }, index.h("vviinn-filters", { class: "preview-filters", showInWidget: true, exportparts: index$2.filtersParts }), index.h("vviinn-extended-filters", { class: "preview-extended-filters", mode: "preview", showHeader: false, exportparts: index$2.extendedFiltersParts, showInWidget: true }), index.h("vviinn-extended-filters-button", { class: "extended-filters-button", exportparts: "extended-filters-button", showInWidget: true })))), this.isResultSlide() && (index.h("vviinn-results", { token: search_store.globalState.token, locale: search_store.globalState.locale, pricePrefix: search_store.globalState.pricePrefix, "currency-sign": search_store.globalState.currencySign, apiPath: search_store.globalState.apiPath, uiSessionId: this.uiSessionId, widgetElementId: (_b = this.buttonElementId) !== null && _b !== void 0 ? _b : this.widgetElementId, showInWidget: true, buttonElementId: this.buttonElementId, imageResolutionWidth: this.imageResolutionWidth, productDetailsNewTab: this.productDetailsNewTab, productDetailsRedirect: this.productDetailsRedirect, addToBasketShow: this.addToBasketShow, favoriteShow: this.favoriteShow, showAspectRatioError: this.showAspectRatioError, resetWidgetState: this.resetState, replaceSlotsContentInWidget: this.replaceSlotsContent.bind(this), replaceSlotsContentInButton: this.replaceSlotsContentInButton, textSearchQuery: this.textSearchQuery, addPriceContainer: this.addPriceContainer, oneClickDiscoveryMode: (_c = this.oneClickDiscoveryMode) !== null && _c !== void 0 ? _c : (this.oneClickDiscoveryShow ? "append-grid" : undefined), oneClickDiscoveryCampaigns: this.oneClickDiscoveryCampaigns, parentSlots: [...this.parentSlots, ...this.slots], scrollableModalBody: this.modalBody })))), index.h("vviinn-extended-filters", { class: "modal-extended-filters", mode: "modal", exportparts: index$2.extendedFiltersParts, showInWidget: true }))));
|
|
4712
4708
|
}
|
|
4713
4709
|
get el() { return index.getElement(this); }
|
|
4714
4710
|
static get watchers() { return {
|