vviinn-widgets 2.142.4 → 2.143.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.
Files changed (96) hide show
  1. package/dist/cjs/{index-5d79410b.js → index-9e399164.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{package-590f3157.js → package-351e039b.js} +1 -1
  4. package/dist/cjs/search-filters_19.cjs.entry.js +84 -86
  5. package/dist/cjs/{search.store-14aad63f.js → search.store-c28f0090.js} +261 -256
  6. package/dist/cjs/{triggerFilter-fcab6cac.js → triggerFilter-107252e6.js} +1 -1
  7. package/dist/cjs/vviinn-carousel_9.cjs.entry.js +86 -111
  8. package/dist/cjs/vviinn-preloader.cjs.entry.js +2 -9
  9. package/dist/cjs/vviinn-selected-filters.cjs.entry.js +9 -15
  10. package/dist/cjs/vviinn-vps-button.cjs.entry.js +2 -2
  11. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +6 -7
  12. package/dist/cjs/vviinn-widgets.cjs.js +1 -1
  13. package/dist/collection/components/vviinn-cropper/vviinn-cropper.js +61 -47
  14. package/dist/collection/components/vviinn-cropper/vviinn-detected-object/vviinn-detected-object.js +23 -2
  15. package/dist/collection/components/vviinn-example-image/vviinn-example-image.js +1 -1
  16. package/dist/collection/components/vviinn-filters/helpers/RenderButton.js +1 -1
  17. package/dist/collection/components/vviinn-filters/vviinn-extended-filters.js +5 -30
  18. package/dist/collection/components/vviinn-filters/vviinn-filters.js +3 -39
  19. package/dist/collection/components/vviinn-filters/vviinn-selected-filters.js +7 -33
  20. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +5 -6
  21. package/dist/collection/components/vviinn-modal/vviinn-modal.js +2 -2
  22. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -5
  23. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +1 -7
  24. package/dist/collection/components/vviinn-results/stories/ResultsTemplate.js +1 -1
  25. package/dist/collection/components/vviinn-results/vviinn-results.js +53 -59
  26. package/dist/collection/components/vviinn-text-search/helpers/browserType.js +2 -1
  27. package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +12 -29
  28. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +2 -2
  29. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +2 -2
  30. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.js +2 -2
  31. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +5 -4
  32. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +4 -5
  33. package/dist/collection/error.js +4 -0
  34. package/dist/collection/store/search.store.js +64 -61
  35. package/dist/esm/{index-c4e34346.js → index-54d4fcfb.js} +1 -1
  36. package/dist/esm/loader.js +1 -1
  37. package/dist/esm/{package-3e1dc861.js → package-936fe4cf.js} +1 -1
  38. package/dist/esm/search-filters_19.entry.js +84 -86
  39. package/dist/esm/{search.store-6a910ac5.js → search.store-3c94f453.js} +260 -255
  40. package/dist/esm/{triggerFilter-5989fdc3.js → triggerFilter-50fb2a34.js} +1 -1
  41. package/dist/esm/vviinn-carousel_9.entry.js +86 -111
  42. package/dist/esm/vviinn-preloader.entry.js +2 -9
  43. package/dist/esm/vviinn-selected-filters.entry.js +9 -15
  44. package/dist/esm/vviinn-vps-button.entry.js +2 -2
  45. package/dist/esm/vviinn-vps-widget.entry.js +6 -7
  46. package/dist/esm/vviinn-widgets.js +1 -1
  47. package/dist/types/components/vviinn-cropper/vviinn-cropper.d.ts +10 -6
  48. package/dist/types/components/vviinn-cropper/vviinn-detected-object/vviinn-detected-object.d.ts +3 -0
  49. package/dist/types/components/vviinn-filters/vviinn-filters.d.ts +3 -5
  50. package/dist/types/components/vviinn-filters/vviinn-selected-filters.d.ts +2 -4
  51. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +1 -1
  52. package/dist/types/components/vviinn-preloader/vviinn-preloader.d.ts +0 -1
  53. package/dist/types/components/vviinn-results/vviinn-results.d.ts +8 -6
  54. package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +4 -4
  55. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +1 -1
  56. package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +1 -1
  57. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-widget.d.ts +1 -1
  58. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +1 -1
  59. package/dist/types/components.d.ts +19 -26
  60. package/dist/types/error.d.ts +1 -0
  61. package/dist/types/interfaces/search.d.ts +2 -2
  62. package/dist/types/recommendation/events.d.ts +1 -3
  63. package/dist/types/store/search.store.d.ts +13 -141
  64. package/dist/vviinn-widgets/p-05724cc9.entry.js +11 -0
  65. package/dist/vviinn-widgets/{p-a6c17615.entry.js → p-2206db0b.entry.js} +1 -1
  66. package/{www/build/p-89f3ed68.js → dist/vviinn-widgets/p-6aae513c.js} +1 -1
  67. package/dist/vviinn-widgets/p-9074f69c.entry.js +1 -0
  68. package/dist/vviinn-widgets/p-91dc1441.entry.js +1 -0
  69. package/dist/vviinn-widgets/{p-06ce4b24.js → p-9436cdcf.js} +1 -1
  70. package/dist/vviinn-widgets/{p-37ebfb20.js → p-9b3e56ea.js} +1 -1
  71. package/dist/vviinn-widgets/p-b92b7143.entry.js +1 -0
  72. package/dist/vviinn-widgets/{p-e7eec6f1.js → p-c1942843.js} +1 -1
  73. package/dist/vviinn-widgets/p-c4ae63e3.entry.js +1 -0
  74. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  75. package/package.json +1 -1
  76. package/www/build/p-05724cc9.entry.js +11 -0
  77. package/www/build/{p-a6c17615.entry.js → p-2206db0b.entry.js} +1 -1
  78. package/{dist/vviinn-widgets/p-89f3ed68.js → www/build/p-6aae513c.js} +1 -1
  79. package/www/build/p-9074f69c.entry.js +1 -0
  80. package/www/build/p-91dc1441.entry.js +1 -0
  81. package/www/build/{p-06ce4b24.js → p-9436cdcf.js} +1 -1
  82. package/www/build/{p-37ebfb20.js → p-9b3e56ea.js} +1 -1
  83. package/www/build/p-b92b7143.entry.js +1 -0
  84. package/www/build/{p-e7eec6f1.js → p-c1942843.js} +1 -1
  85. package/www/build/p-c4ae63e3.entry.js +1 -0
  86. package/www/build/vviinn-widgets.esm.js +1 -1
  87. package/dist/vviinn-widgets/p-0f1e95dc.entry.js +0 -1
  88. package/dist/vviinn-widgets/p-4d1d457b.entry.js +0 -1
  89. package/dist/vviinn-widgets/p-8626ac02.entry.js +0 -1
  90. package/dist/vviinn-widgets/p-a7b9dbb0.entry.js +0 -1
  91. package/dist/vviinn-widgets/p-ad036902.entry.js +0 -11
  92. package/www/build/p-0f1e95dc.entry.js +0 -1
  93. package/www/build/p-4d1d457b.entry.js +0 -1
  94. package/www/build/p-8626ac02.entry.js +0 -1
  95. package/www/build/p-a7b9dbb0.entry.js +0 -1
  96. package/www/build/p-ad036902.entry.js +0 -11
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const search_store = require('./search.store-14aad63f.js');
3
+ const search_store = require('./search.store-c28f0090.js');
4
4
 
5
5
  const consoleLogger = {
6
6
  type: 'logger',
@@ -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-preloader.cjs\",[[1,\"vviinn-preloader\"]]],[\"vviinn-error.cjs\",[[1,\"vviinn-error\"]]],[\"vviinn-button_2.cjs\",[[1,\"vviinn-recommendations-sidebar\",{\"sidebarTitle\":[1,\"sidebar-title\"],\"token\":[1],\"productId\":[1,\"product-id\"],\"position\":[1],\"widgetScrollbar\":[4,\"widget-scrollbar\"],\"mode\":[1],\"campaigns\":[1],\"campaignType\":[1,\"campaign-type\"],\"color\":[1],\"locale\":[1],\"imageWidth\":[2,\"image-width\"],\"imageRatio\":[2,\"image-ratio\"],\"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\"],\"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\"],\"showInCustomContainer\":[4,\"show-in-custom-container\"],\"buttonChildren\":[16],\"apiPath\":[1,\"api-path\"],\"buttonElementId\":[1,\"button-element-id\"],\"widgetVersion\":[1,\"widget-version\"],\"showingInButton\":[4,\"showing-in-button\"],\"state\":[32],\"sourceProduct\":[32]},[[0,\"vviinnUpdatingAllCardsStarted\",\"updatingAllCardsStarted\"],[0,\"vviinnUpdatingAllCardsFinished\",\"updatingAllCardsFinished\"],[16,\"click\",\"bodyClickListener\"],[0,\"sourceProductReceived\",\"sourceProductReceived\"]]],[1,\"vviinn-button\",{\"addStyle\":[4,\"add-style\"]}]]],[\"search-filters_19.cjs\",[[1,\"vviinn-results\",{\"token\":[1],\"searchId\":[1,\"search-id\"],\"uiSessionId\":[1025,\"ui-session-id\"],\"imageResolutionWidth\":[2,\"image-resolution-width\"],\"currencySign\":[1,\"currency-sign\"],\"locale\":[8],\"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\"],\"textSearchRequestId\":[1,\"text-search-request-id\"],\"filterColumn\":[1,\"filter-column\"],\"filterValue\":[1,\"filter-value\"],\"resultsCount\":[2,\"results-count\"],\"addPriceContainer\":[4,\"add-price-container\"],\"showInWidget\":[4,\"show-in-widget\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"apiPath\":[1,\"api-path\"],\"buttonElementId\":[1,\"button-element-id\"],\"widgetElementId\":[1,\"widget-element-id\"],\"showAspectRatioError\":[4,\"show-aspect-ratio-error\"],\"trackingDeactivated\":[1028,\"tracking-deactivated\"],\"resetState\":[16],\"replaceSlotsContentInWidget\":[16],\"replaceSlotsContentInButton\":[16],\"parentSlots\":[16],\"recommendations\":[32],\"innerTextSearchQuery\":[32],\"innerTextSearchRequestId\":[32],\"slotsReplaced\":[32],\"oneClickDiscoveryAppendIndex\":[32],\"oneClickDiscoverySelectedIndex\":[32],\"isTextSearch\":[32]},[[0,\"vviinnProductLoad\",\"trackProductLoad\"],[0,\"vviinnProductView\",\"trackProductView\"],[0,\"vviinnProductClick\",\"trackProductClick\"],[0,\"vviinnAuxClick\",\"trackAuxClick\"]]],[1,\"vviinn-cropper\",{\"basicEventDataString\":[1,\"basic-event-data-string\"],\"detectedObjectsString\":[1,\"detected-objects-string\"],\"basicEventData\":[1040],\"url\":[1025],\"width\":[1026],\"height\":[1026],\"showAspectRatioError\":[4,\"show-aspect-ratio-error\"],\"showInWidget\":[4,\"show-in-widget\"],\"detectedObjects\":[32],\"cropper\":[32],\"hidePreloader\":[32],\"selectedDetectedObject\":[32],\"imageBounds\":[32],\"searchArea\":[32],\"imageElement\":[32]},[[0,\"vviinnSelectObject\",\"selectDetectedObject\"]]],[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-text-search\",{\"token\":[1],\"locale\":[1],\"mode\":[1],\"showInWidget\":[4,\"show-in-widget\"],\"searchQuery\":[1025,\"search-query\"],\"apiPath\":[1,\"api-path\"],\"isLoading\":[32],\"isRecording\":[32],\"showTooltip\":[32]},[[0,\"vviinnImageUploadFinished\",\"imageUploadFinished\"]]],[1,\"vviinn-server-error\",{\"handler\":[16]}],[1,\"vviinn-wrong-format\",{\"handler\":[16]}],[1,\"search-filters\",{\"filter\":[16],\"basicEventData\":[16],\"selectedFilter\":[32],\"hideFilters\":[32]}],[1,\"vviinn-example-image\",{\"exampleImageSource\":[1,\"example-image-source\"],\"width\":[2],\"height\":[2],\"basicEventData\":[16],\"srcObject\":[16],\"cameraButtonClicked\":[4,\"camera-button-clicked\"],\"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\"],[1,\"vviinn-vpr-button\",{\"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\"],\"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\"],\"appendSidebarTo\":[1,\"append-sidebar-to\"],\"favoriteShow\":[4,\"favorite-show\"],\"appendSidebarToElement\":[16],\"apiPath\":[1,\"api-path\"],\"targetAppendSidebarTo\":[32]}],[1,\"vviinn-empty-results\",{\"handler\":[16]}],[1,\"vviinn-image-selector\",{\"basicEventData\":[16],\"startUpload\":[4,\"start-upload\"],\"loading\":[4],\"accept\":[1],\"resetVpsButton\":[16],\"token\":[1],\"apiPath\":[1,\"api-path\"],\"showInTextSearch\":[4,\"show-in-text-search\"],\"uploadStartedHandler\":[16]}],[1,\"vviinn-wrong-aspect-ratio\",{\"handler\":[16]}],[1,\"vviinn-detected-object\",{\"detectedObject\":[16],\"selectedDetectedObject\":[16],\"basicEventData\":[16],\"imageBounds\":[16],\"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\"]]],[\"vviinn-vps-widget.cjs\",[[1,\"vviinn-vps-widget\",{\"token\":[1],\"active\":[1028],\"currencySign\":[1,\"currency-sign\"],\"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\"],\"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],\"slidePosition\":[32],\"width\":[32],\"wrongImageFormat\":[32],\"trackingDeactivated\":[32],\"stream\":[32],\"cameraInitializing\":[32],\"cameraEnabled\":[32],\"cameraButtonClicked\":[32],\"uploadSource\":[32],\"showAspectRatioError\":[32],\"products\":[32],\"searchQuery\":[32],\"requestId\":[32]},[[0,\"widgetTextSearchFinished\",\"textSearchFinishedHandler\"],[0,\"vviinnResultLoad\",\"resultLoadHandler\"],[0,\"vviinnResultView\",\"resultViewHandler\"],[0,\"vviinnCameraEnabled\",\"trackCameraEnabled\"],[0,\"vviinnImageCrop\",\"trachSearchAreaChanges\"],[0,\"vviinnSelectObject\",\"trackDetectedObject\"],[0,\"vviinnSelectFilter\",\"trackFilterSelected\"]]]]],[\"vviinn-vps-button.cjs\",[[1,\"vviinn-vps-button\",{\"token\":[1],\"currencySign\":[1,\"currency-sign\"],\"locale\":[1],\"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\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"addPriceContainer\":[4,\"add-price-container\"],\"apiPath\":[1,\"api-path\"],\"buttonPressed\":[32]},[[0,\"vviinnWidgetClose\",\"handleModalClosed\"]]]]],[\"vviinn-selected-filters.cjs\",[[1,\"vviinn-selected-filters\",{\"showInWidget\":[4,\"show-in-widget\"],\"filters\":[32],\"requestFilters\":[32]}]]],[\"vviinn-carousel_9.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],\"recommendations\":[32],\"dynamicFilters\":[32],\"sourceProduct\":[32],\"recommendationsLoading\":[32],\"trackingDeactivated\":[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,\"vviinnUpdatingAllCardsFinished\",\"updatingAllCardsFinishedListener\"],[0,\"vviinnFiltersChanged\",\"filtersChanged\"]]],[0,\"vviinn-carousel\",{\"mode\":[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\"],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"locale\":[1],\"setItemsAmount\":[2,\"set-items-amount\"],\"moveDirection\":[32],\"contentGroups\":[32],\"activeContentGroup\":[32],\"isRTL\":[32],\"crossSellingRecommendations\":[32],\"setModeDiscount\":[32],\"currentDiscountIndex\":[32],\"setModeAppliedDiscounts\":[32]},[[0,\"vviinnCrossSellingClick\",\"crossSellingClickListener\"],[0,\"vviinnAddToBasket\",\"trackAddToBasket\"]]],[1,\"vviinn-extended-filters\",{\"filters\":[1040],\"locale\":[1],\"mode\":[1],\"currencySign\":[1,\"currency-sign\"],\"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\"],\"currencySign\":[1,\"currency-sign\"],\"innerFilters\":[32],\"selectedFilter\":[32],\"requestFilters\":[32]}],[1,\"vviinn-product-card\",{\"brand\":[1],\"currency\":[1],\"image\":[1],\"imageRatio\":[2,\"image-ratio\"],\"imageWidth\":[2,\"image-width\"],\"locale\":[1],\"price\":[2],\"basePrice\":[1,\"base-price\"],\"pricePrefix\":[1,\"price-prefix\"],\"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-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],\"currencySign\":[1,\"currency-sign\"],\"minIndex\":[32],\"maxIndex\":[32],\"scalingFactor\":[32]}],[1,\"vviinn-skeleton\",{\"height\":[2],\"halfWidth\":[4,\"half-width\"]}]]]]"), options);
17
+ return index.bootstrapLazy(JSON.parse("[[\"vviinn-preloader.cjs\",[[1,\"vviinn-preloader\"]]],[\"vviinn-error.cjs\",[[1,\"vviinn-error\"]]],[\"vviinn-button_2.cjs\",[[1,\"vviinn-recommendations-sidebar\",{\"sidebarTitle\":[1,\"sidebar-title\"],\"token\":[1],\"productId\":[1,\"product-id\"],\"position\":[1],\"widgetScrollbar\":[4,\"widget-scrollbar\"],\"mode\":[1],\"campaigns\":[1],\"campaignType\":[1,\"campaign-type\"],\"color\":[1],\"locale\":[1],\"imageWidth\":[2,\"image-width\"],\"imageRatio\":[2,\"image-ratio\"],\"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\"],\"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\"],\"showInCustomContainer\":[4,\"show-in-custom-container\"],\"buttonChildren\":[16],\"apiPath\":[1,\"api-path\"],\"buttonElementId\":[1,\"button-element-id\"],\"widgetVersion\":[1,\"widget-version\"],\"showingInButton\":[4,\"showing-in-button\"],\"state\":[32],\"sourceProduct\":[32]},[[0,\"vviinnUpdatingAllCardsStarted\",\"updatingAllCardsStarted\"],[0,\"vviinnUpdatingAllCardsFinished\",\"updatingAllCardsFinished\"],[16,\"click\",\"bodyClickListener\"],[0,\"sourceProductReceived\",\"sourceProductReceived\"]]],[1,\"vviinn-button\",{\"addStyle\":[4,\"add-style\"]}]]],[\"search-filters_19.cjs\",[[1,\"vviinn-results\",{\"token\":[1],\"searchId\":[1,\"search-id\"],\"uiSessionId\":[1025,\"ui-session-id\"],\"imageResolutionWidth\":[2,\"image-resolution-width\"],\"currencySign\":[1,\"currency-sign\"],\"locale\":[8],\"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\"],\"textSearchRequestId\":[1,\"text-search-request-id\"],\"filterColumn\":[1,\"filter-column\"],\"filterValue\":[1,\"filter-value\"],\"resultsCount\":[2,\"results-count\"],\"addPriceContainer\":[4,\"add-price-container\"],\"showInWidget\":[4,\"show-in-widget\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"apiPath\":[1,\"api-path\"],\"buttonElementId\":[1,\"button-element-id\"],\"widgetElementId\":[1,\"widget-element-id\"],\"showAspectRatioError\":[4,\"show-aspect-ratio-error\"],\"trackingDeactivated\":[1028,\"tracking-deactivated\"],\"resetState\":[16],\"replaceSlotsContentInWidget\":[16],\"replaceSlotsContentInButton\":[16],\"parentSlots\":[16],\"useInnerState\":[4,\"use-inner-state\"],\"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\"]]],[1,\"vviinn-cropper\",{\"detectedObjectsString\":[1,\"detected-objects-string\"],\"apiPath\":[1,\"api-path\"],\"basicEventData\":[1040],\"url\":[1025],\"width\":[1026],\"height\":[1026],\"showAspectRatioError\":[4,\"show-aspect-ratio-error\"],\"showInWidget\":[4,\"show-in-widget\"],\"detectedObjects\":[32],\"cropper\":[32],\"selectedDetectedObject\":[32],\"imageBounds\":[32],\"searchArea\":[32],\"imageElement\":[32]},[[0,\"vviinnSelectObject\",\"selectDetectedObject\"]]],[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-text-search\",{\"token\":[1],\"locale\":[1],\"mode\":[1],\"showInWidget\":[4,\"show-in-widget\"],\"searchQuery\":[1025,\"search-query\"],\"apiPath\":[1,\"api-path\"],\"isLoading\":[32],\"isRecording\":[32],\"showTooltip\":[32]},[[0,\"vviinnImageUploadFinished\",\"imageUploadFinished\"]]],[1,\"vviinn-server-error\",{\"handler\":[16]}],[1,\"vviinn-wrong-format\",{\"handler\":[16]}],[1,\"search-filters\",{\"filter\":[16],\"basicEventData\":[16],\"selectedFilter\":[32],\"hideFilters\":[32]}],[1,\"vviinn-example-image\",{\"exampleImageSource\":[1,\"example-image-source\"],\"width\":[2],\"height\":[2],\"basicEventData\":[16],\"srcObject\":[16],\"cameraButtonClicked\":[4,\"camera-button-clicked\"],\"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\"],[1,\"vviinn-vpr-button\",{\"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\"],\"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\"],\"appendSidebarTo\":[1,\"append-sidebar-to\"],\"favoriteShow\":[4,\"favorite-show\"],\"appendSidebarToElement\":[16],\"apiPath\":[1,\"api-path\"],\"targetAppendSidebarTo\":[32]}],[1,\"vviinn-empty-results\",{\"handler\":[16]}],[1,\"vviinn-image-selector\",{\"basicEventData\":[16],\"startUpload\":[4,\"start-upload\"],\"loading\":[4],\"accept\":[1],\"resetVpsButton\":[16],\"token\":[1],\"apiPath\":[1,\"api-path\"],\"showInWidget\":[4,\"show-in-widget\"],\"uploadStartedHandler\":[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\"]]],[\"vviinn-vps-widget.cjs\",[[1,\"vviinn-vps-widget\",{\"token\":[1],\"active\":[1028],\"currencySign\":[1,\"currency-sign\"],\"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\"],\"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],\"slidePosition\":[32],\"width\":[32],\"wrongImageFormat\":[32],\"trackingDeactivated\":[32],\"stream\":[32],\"cameraInitializing\":[32],\"cameraEnabled\":[32],\"cameraButtonClicked\":[32],\"uploadSource\":[32],\"showAspectRatioError\":[32],\"products\":[32],\"searchQuery\":[32],\"requestId\":[32]},[[0,\"widgetTextSearchFinished\",\"textSearchFinishedHandler\"],[0,\"vviinnResultLoad\",\"resultLoadHandler\"],[0,\"vviinnResultView\",\"resultViewHandler\"],[0,\"vviinnCameraEnabled\",\"trackCameraEnabled\"],[0,\"vviinnImageCrop\",\"trachSearchAreaChanges\"],[0,\"vviinnSelectObject\",\"trackDetectedObject\"],[0,\"vviinnSelectFilter\",\"trackFilterSelected\"]]]]],[\"vviinn-vps-button.cjs\",[[1,\"vviinn-vps-button\",{\"token\":[1],\"currencySign\":[1,\"currency-sign\"],\"locale\":[1],\"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\"],\"oneClickDiscoveryCampaigns\":[1,\"one-click-discovery-campaigns\"],\"addPriceContainer\":[4,\"add-price-container\"],\"apiPath\":[1,\"api-path\"],\"buttonPressed\":[32]},[[0,\"vviinnWidgetClose\",\"handleModalClosed\"]]]]],[\"vviinn-selected-filters.cjs\",[[1,\"vviinn-selected-filters\",{\"showInWidget\":[4,\"show-in-widget\"],\"filters\":[32],\"requestFilters\":[32]}]]],[\"vviinn-carousel_9.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],\"recommendations\":[32],\"dynamicFilters\":[32],\"sourceProduct\":[32],\"recommendationsLoading\":[32],\"trackingDeactivated\":[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,\"vviinnUpdatingAllCardsFinished\",\"updatingAllCardsFinishedListener\"],[0,\"vviinnFiltersChanged\",\"filtersChanged\"]]],[0,\"vviinn-carousel\",{\"mode\":[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\"],\"currencySign\":[1,\"currency-sign\"],\"pricePrefix\":[1,\"price-prefix\"],\"locale\":[1],\"setItemsAmount\":[2,\"set-items-amount\"],\"moveDirection\":[32],\"contentGroups\":[32],\"activeContentGroup\":[32],\"isRTL\":[32],\"crossSellingRecommendations\":[32],\"setModeDiscount\":[32],\"currentDiscountIndex\":[32],\"setModeAppliedDiscounts\":[32]},[[0,\"vviinnCrossSellingClick\",\"crossSellingClickListener\"],[0,\"vviinnAddToBasket\",\"trackAddToBasket\"]]],[1,\"vviinn-extended-filters\",{\"filters\":[1040],\"locale\":[1],\"mode\":[1],\"currencySign\":[1,\"currency-sign\"],\"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\"],\"currencySign\":[1,\"currency-sign\"],\"innerFilters\":[32],\"selectedFilter\":[32],\"requestFilters\":[32]}],[1,\"vviinn-product-card\",{\"brand\":[1],\"currency\":[1],\"image\":[1],\"imageRatio\":[2,\"image-ratio\"],\"imageWidth\":[2,\"image-width\"],\"locale\":[1],\"price\":[2],\"basePrice\":[1,\"base-price\"],\"pricePrefix\":[1,\"price-prefix\"],\"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-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],\"currencySign\":[1,\"currency-sign\"],\"minIndex\":[32],\"maxIndex\":[32],\"scalingFactor\":[32]}],[1,\"vviinn-skeleton\",{\"height\":[2],\"halfWidth\":[4,\"half-width\"]}]]]]"), options);
18
18
  });
19
19
  };
20
20
 
@@ -141,7 +141,7 @@ const slotChangeListener = (component, element) => {
141
141
  component.connectedCallback.call(component);
142
142
  };
143
143
 
144
- const version = "2.142.4";
144
+ const version = "2.143.0";
145
145
 
146
146
  exports.SlotSkeleton = SlotSkeleton;
147
147
  exports.campaignTypeNames = campaignTypeNames;
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-711d38e6.js');
6
- const search_store = require('./search.store-14aad63f.js');
6
+ const search_store = require('./search.store-c28f0090.js');
7
7
  const Rectangle = require('./Rectangle-99c25901.js');
8
- const index$1 = require('./index-5d79410b.js');
9
- const _package = require('./package-590f3157.js');
8
+ const index$1 = require('./index-9e399164.js');
9
+ const _package = require('./package-351e039b.js');
10
10
  const index$2 = require('./index-4c9a5dbb.js');
11
11
  const index$3 = require('./index-0f1b8791.js');
12
12
  const index$4 = require('./index-d5006d29.js');
@@ -3472,19 +3472,29 @@ const VviinnCropper = class {
3472
3472
  this.vviinnCropperLoadImage = index.createEvent(this, "vviinnCropperLoadImage", 7);
3473
3473
  this.vviinnCropperCropEnd = index.createEvent(this, "vviinnCropperCropEnd", 7);
3474
3474
  this.vviinnCropperAspectRatioError = index.createEvent(this, "vviinnCropperAspectRatioError", 7);
3475
+ this.imageSearchFinished = index.createEvent(this, "imageSearchFinished", 7);
3476
+ this.getDetectedObjects = () => this.detectedObjects.length
3477
+ ? this.detectedObjects
3478
+ : this.state.detectedObjects;
3479
+ this.imageUploadStartedHandler = () => {
3480
+ if (this.cropper) {
3481
+ this.cropper.destroy();
3482
+ this.cropper = null;
3483
+ }
3484
+ };
3475
3485
  this.cropEnd = () => {
3476
3486
  const cropboxData = this.getCropboxData();
3477
3487
  this.vviinnCropperCropEnd.emit(cropboxData);
3478
3488
  this.searchArea = cropboxData;
3479
- search_store.makeRectangularSearchRequest(this.searchArea, this.imageBounds);
3489
+ search_store.makeRectangularSearchRequest(this.storeName, this.searchArea, this.imageBounds);
3480
3490
  this.selectedDetectedObject = undefined;
3481
3491
  this.vviinnImageCrop.emit(this.basicEventData);
3482
3492
  };
3483
- this.showPreloader = () => (search_store.searchState.loading || search_store.searchState.objectDetectionInProgress) &&
3484
- !this.showAspectRatioError &&
3485
- !this.hidePreloader;
3486
- this.basicEventDataString = undefined;
3493
+ this.showPreloader = () => (this.state.loading || this.state.objectDetectionInProgress) &&
3494
+ this.state.searchType === "image" &&
3495
+ !this.showAspectRatioError;
3487
3496
  this.detectedObjectsString = undefined;
3497
+ this.apiPath = "https://api.vviinn.com";
3488
3498
  this.basicEventData = undefined;
3489
3499
  this.url = undefined;
3490
3500
  this.width = undefined;
@@ -3493,39 +3503,33 @@ const VviinnCropper = class {
3493
3503
  this.showInWidget = false;
3494
3504
  this.detectedObjects = [];
3495
3505
  this.cropper = null;
3496
- this.hidePreloader = false;
3497
3506
  this.selectedDetectedObject = undefined;
3498
3507
  this.imageBounds = undefined;
3499
3508
  this.searchArea = undefined;
3500
3509
  this.imageElement = undefined;
3501
3510
  }
3502
3511
  connectedCallback() {
3503
- this.stringParser(true, true);
3504
- }
3505
- basicEventDataStringWatcher() {
3512
+ document.addEventListener("vviinnImageUpload", this.imageUploadStartedHandler);
3506
3513
  this.stringParser(true);
3514
+ search_store.state.apiPath = this.apiPath;
3515
+ this.state = this.showInWidget ? search_store.searchState : search_store.componentsState;
3516
+ this.storeName = this.showInWidget ? "widget" : "components";
3517
+ }
3518
+ disconnectedCallback() {
3519
+ document.removeEventListener("vviinnImageUpload", this.imageUploadStartedHandler);
3520
+ if (this.cropper)
3521
+ this.cropper.destroy();
3507
3522
  }
3508
3523
  detectedObjectsStringWatcher() {
3509
- this.stringParser(false, true);
3524
+ this.stringParser(true);
3510
3525
  }
3511
- stringParser(TriggerBasicEventData, TriggerDetectedObjects) {
3512
- if (this.basicEventDataString && TriggerBasicEventData) {
3513
- this.basicEventData = JSON.parse(this.basicEventDataString);
3514
- }
3526
+ stringParser(TriggerDetectedObjects) {
3515
3527
  if (this.detectedObjectsString && TriggerDetectedObjects) {
3516
3528
  this.detectedObjects = JSON.parse(this.detectedObjectsString);
3517
3529
  }
3518
3530
  }
3519
- disconnectedCallback() {
3520
- if (this.cropper)
3521
- this.cropper.destroy();
3522
- }
3523
3531
  componentWillRender() {
3524
3532
  this.renderImage();
3525
- //FIXME: #37535
3526
- if (!this.showInWidget) {
3527
- this.hidePreloader = true;
3528
- }
3529
3533
  }
3530
3534
  selectDetectedObject({ detail }) {
3531
3535
  this.selectedDetectedObject = detail.detectedObject;
@@ -3575,37 +3579,29 @@ const VviinnCropper = class {
3575
3579
  }
3576
3580
  if (width < MIN_IMAGE_SIDE_FOR_CROPPER ||
3577
3581
  height < MIN_IMAGE_SIDE_FOR_CROPPER) {
3578
- this.hidePreloader = true;
3579
3582
  return;
3580
3583
  }
3581
3584
  this.cropper = new cropper(this.imageElement, Object.assign(Object.assign({}, cropperOptions), { cropend: this.cropEnd, data }));
3582
3585
  }
3583
3586
  }
3584
3587
  renderImage() {
3585
- //FIXME: #37535
3586
- if (!this.showInWidget)
3587
- return;
3588
- const imageUrl = this.showInWidget
3589
- ? search_store.searchState.imageUrl
3590
- : search_store.Option.some(this.url);
3591
- const imageElement = this.showInWidget
3592
- ? search_store.searchState.image
3593
- : search_store.Option.some(this.imageElement);
3594
- return search_store._function.pipe(search_store.sequenceToOption(imageUrl, imageElement), search_store.Option.map(([url, refImage]) => {
3588
+ return search_store._function.pipe(search_store.sequenceToOption(this.state.image), search_store.Option.map(([refImage]) => {
3589
+ if (!refImage)
3590
+ return null;
3595
3591
  const [width, height] = search_store.getImageSizes(refImage, DEFAULT_IMAGE_SIZE);
3596
3592
  this.width = width;
3597
3593
  this.height = height;
3598
- this.url = url;
3594
+ this.url = refImage.src;
3599
3595
  }), search_store.Option.getOrElse(() => null));
3600
3596
  }
3601
3597
  render() {
3602
- return (index.h(index.Host, { class: this.showInWidget ? "show-in-widget" : "" }, index.h("div", { class: "container" }, index.h("div", { class: "image-container", style: { width: `${this.width.toString()}px`, overflow: "hidden" } }, index.h("img", { decoding: "async", width: this.width, height: this.height, src: this.url, draggable: false, onLoad: () => this.loadImage() }), (this.showInWidget
3603
- ? search_store.searchState.detectedObjects
3604
- : this.detectedObjects).map((object) => (index.h("vviinn-detected-object", { detectedObject: object, selectedDetectedObject: this.selectedDetectedObject, basicEventData: this.basicEventData, imageBounds: this.imageBounds })))), this.showPreloader() ? (index.h("div", { class: "image-preloader" }, index.h("vviinn-preloader", null))) : null)));
3598
+ return (index.h(index.Host, { class: {
3599
+ "show-in-widget": this.showInWidget,
3600
+ active: !!this.imageElement,
3601
+ } }, index.h("div", { class: "container" }, index.h("div", { class: "image-container", style: { width: `${this.width.toString()}px`, overflow: "hidden" } }, index.h("img", { decoding: "async", width: this.width, height: this.height, src: this.url, draggable: false, onLoad: () => this.loadImage() }), this.getDetectedObjects().map((object) => (index.h("vviinn-detected-object", { detectedObject: object, selectedDetectedObject: this.selectedDetectedObject, basicEventData: this.basicEventData, imageBounds: this.imageBounds, showInWidget: this.showInWidget })))), this.showPreloader() && (index.h("div", { class: "image-preloader" }, index.h("vviinn-preloader", null))))));
3605
3602
  }
3606
3603
  get el() { return index.getElement(this); }
3607
3604
  static get watchers() { return {
3608
- "basicEventDataString": ["basicEventDataStringWatcher"],
3609
3605
  "detectedObjectsString": ["detectedObjectsStringWatcher"]
3610
3606
  }; }
3611
3607
  };
@@ -3621,8 +3617,12 @@ const VviinnDetectedObject = class {
3621
3617
  this.selectedDetectedObject = undefined;
3622
3618
  this.basicEventData = undefined;
3623
3619
  this.imageBounds = undefined;
3620
+ this.showInWidget = undefined;
3624
3621
  this.position = ["0", "0"];
3625
3622
  }
3623
+ connectedCallback() {
3624
+ this.storeName = this.showInWidget ? "widget" : "components";
3625
+ }
3626
3626
  getObjectPosition() {
3627
3627
  return search_store._function.pipe(search_store.Option.fromNullable(this.imageBounds), search_store.Option.map((bounds) => {
3628
3628
  const objectRectangle = Rectangle.fromAlt(search_store.foldValueObject(this.detectedObject).rectangle);
@@ -3636,7 +3636,7 @@ const VviinnDetectedObject = class {
3636
3636
  const transformedRect = Rectangle.fromAlt(rectangle);
3637
3637
  return Rectangle.scaleWithSized(bounds)(transformedRect);
3638
3638
  }), search_store.Option.toNullable);
3639
- search_store.makeRectangularSearchRequest(scaledRect, this.imageBounds);
3639
+ search_store.makeRectangularSearchRequest(this.storeName, scaledRect, this.imageBounds);
3640
3640
  this.vviinnSelectObject.emit(Object.assign(Object.assign({}, this.basicEventData), { detectedObject: this.detectedObject, searchArea: scaledRect }));
3641
3641
  }
3642
3642
  isActive() {
@@ -3770,7 +3770,7 @@ const VviinnExampleImage = class {
3770
3770
  ctx.drawImage(video, dx, dy, cropDimension, cropDimension, 0, 0, canvas.width, canvas.height);
3771
3771
  const dataURI = canvas.toDataURL("image/jpeg");
3772
3772
  file = await search_store.toFile(dataURI);
3773
- search_store._function.pipe(await search_store.processSelectedFile(file), search_store.Either.match(() => this.vviinnNoResult.emit(this.basicEventData), () => this.vviinnImageUploadFinished.emit()));
3773
+ search_store._function.pipe(await search_store.processSelectedFile("widget")(file), search_store.Either.match(() => this.vviinnNoResult.emit(this.basicEventData), () => this.vviinnImageUploadFinished.emit()));
3774
3774
  this.selected = false;
3775
3775
  this.videoInitialized = false;
3776
3776
  this.vviinnCameraEnabled.emit(false);
@@ -3820,14 +3820,14 @@ const VviinnImageSelector = class {
3820
3820
  this.resetVpsButton = undefined;
3821
3821
  this.token = undefined;
3822
3822
  this.apiPath = undefined;
3823
- this.showInTextSearch = false;
3823
+ this.showInWidget = undefined;
3824
3824
  this.uploadStartedHandler = undefined;
3825
3825
  }
3826
3826
  async handleInputChange(event) {
3827
3827
  this.vviinnImageUpload.emit(this.basicEventData);
3828
3828
  const input = event.target;
3829
3829
  this.uploadStartedHandler && this.uploadStartedHandler();
3830
- const processingResult = await search_store.processSelectedFile(input.files[0], this.showInTextSearch, this.token, this.apiPath);
3830
+ const processingResult = await search_store.processSelectedFile(this.showInWidget ? "widget" : "components")(input.files[0]);
3831
3831
  search_store._function.pipe(processingResult, search_store.match(({ kind }) => {
3832
3832
  this.vviinnNoResult.emit(Object.assign(Object.assign({}, this.basicEventData), { reason: kind }));
3833
3833
  }, ({ links }) => {
@@ -3890,8 +3890,8 @@ const VviinnModal = class {
3890
3890
  this.slider = true;
3891
3891
  }
3892
3892
  renderImage() {
3893
- return search_store._function.pipe(search_store.sequenceToOption(search_store.searchState.imageUrl, search_store.searchState.image), search_store.Option.map(([url]) => {
3894
- const image = (index.h("img", { width: "28", height: "28", src: url, class: "title-image" }));
3893
+ return search_store._function.pipe(search_store.sequenceToOption(search_store.searchState.image), search_store.Option.map(([imageElement]) => {
3894
+ const image = (index.h("img", { width: "28", height: "28", src: imageElement.src, class: "title-image" }));
3895
3895
  return image;
3896
3896
  }), search_store.Option.getOrElse(() => null));
3897
3897
  }
@@ -3978,7 +3978,6 @@ const VviinnResults = class {
3978
3978
  this.vviinnSearchIdReceived = index.createEvent(this, "vviinnSearchIdReceived", 7);
3979
3979
  this.vviinnTextSearchStarted = index.createEvent(this, "vviinnTextSearchStarted", 7);
3980
3980
  this.vviinnFiltersChanged = index.createEvent(this, "vviinnFiltersChanged", 7);
3981
- this.vviinnFiltersReceived = index.createEvent(this, "vviinnFiltersReceived", 7);
3982
3981
  this.resultsSearchFinished = index.createEvent(this, "resultsSearchFinished", 7);
3983
3982
  this.globalSlotsChanged = index.createEvent(this, "globalSlotsChanged", 7);
3984
3983
  this.vviinnSelectedFiltersReset = index.createEvent(this, "vviinnSelectedFiltersReset", 7);
@@ -3992,16 +3991,12 @@ const VviinnResults = class {
3992
3991
  .map((name) => (index.h("span", { slot: name }, index.h("slot", { name: name }))));
3993
3992
  };
3994
3993
  this.renderVprIconSlot = () => this.isSlotPassedToComponent(_package.vprIconSlotName) ? (index.h("slot", { name: _package.vprIconSlotName })) : null;
3995
- this.getRecommendations = () => this.showInWidget ? search_store.searchState.results : this.recommendations;
3996
3994
  this.skipFiltersChanges = (isTriggeredByVpsWidget) => (isTriggeredByVpsWidget && !this.showInWidget) ||
3997
3995
  (!isTriggeredByVpsWidget && this.showInWidget);
3998
3996
  this.getResultsBySearchId = async (searchId) => {
3999
- if (!searchId || this.showInWidget)
3997
+ if (!searchId)
4000
3998
  return;
4001
- search_store.state.apiPath = this.apiPath; //FIXME: #36877
4002
- await search_store._function.pipe(await search_store.makeSearchIdRequest(this.token, searchId), search_store.getOrElse(() => []), (results) => {
4003
- this.recommendations = results;
4004
- });
3999
+ await search_store.makeSearchIdRequest(this.token, searchId);
4005
4000
  this.resultsSearchFinished.emit();
4006
4001
  };
4007
4002
  this.searchIdReceivedHandler = ({ detail }) => {
@@ -4088,13 +4083,18 @@ const VviinnResults = class {
4088
4083
  this.replaceSlotsContentInWidget = undefined;
4089
4084
  this.replaceSlotsContentInButton = undefined;
4090
4085
  this.parentSlots = [];
4091
- this.recommendations = [];
4086
+ this.useInnerState = false;
4092
4087
  this.innerTextSearchQuery = undefined;
4093
4088
  this.innerTextSearchRequestId = undefined;
4094
4089
  this.slotsReplaced = undefined;
4095
4090
  this.oneClickDiscoveryAppendIndex = undefined;
4096
4091
  this.oneClickDiscoverySelectedIndex = undefined;
4097
4092
  this.isTextSearch = ((_a = this.textSearchQuery) === null || _a === void 0 ? void 0 : _a.length) > 0;
4093
+ this.innerResults = [];
4094
+ }
4095
+ getResults() {
4096
+ var _a;
4097
+ return (_a = (this.useInnerState ? this.innerResults : this.state.results)) !== null && _a !== void 0 ? _a : [];
4098
4098
  }
4099
4099
  replaceSlotsContent() {
4100
4100
  this.globalSlotsChanged.emit({
@@ -4125,31 +4125,30 @@ const VviinnResults = class {
4125
4125
  if (!this.textSearchQuery)
4126
4126
  return;
4127
4127
  search_store.state.apiPath = this.apiPath; //FIXME: #36877
4128
- return search_store._function.pipe(await search_store.makeTextSearchRequest(this.token, this.textSearchQuery, filters, this.textSearchRequestId), search_store.getOrElse(() => null), (response) => response);
4128
+ await search_store.makeTextSearchRequest(this.storeName, this.textSearchQuery, filters, this.textSearchRequestId);
4129
4129
  }
4130
4130
  async getTextSearchResults(query, filters, requestId) {
4131
4131
  if (!query)
4132
4132
  return;
4133
4133
  search_store.state.apiPath = this.apiPath; //FIXME: #36877
4134
- return search_store._function.pipe(await search_store.makeSearchQueryRequest(this.token, query, filters, this.resultsCount, requestId), search_store.getOrElse(() => null), (response) => {
4135
- var _a, _b, _c;
4136
- this.recommendations = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.products) !== null && _b !== void 0 ? _b : [];
4137
- this.vviinnFiltersReceived.emit((_c = response === null || response === void 0 ? void 0 : response.data) === null || _c === void 0 ? void 0 : _c.interactions.dynamicFilters);
4138
- return response;
4139
- });
4134
+ return search_store._function.pipe(await search_store.makeTextSearchRequest(this.storeName, query, filters, requestId, this.resultsCount), search_store.getOrElse(() => null), (response) => response);
4140
4135
  }
4141
4136
  async getResultsByCategory(dynamicFilters) {
4142
4137
  if (!this.filterColumn || !this.filterValue || this.showInWidget)
4143
4138
  return;
4144
4139
  search_store.state.apiPath = this.apiPath; //FIXME: #36877
4145
- search_store._function.pipe(await search_store.makeProductListingPageRequest(this.token, this.filterColumn, this.filterValue, this.resultsCount, dynamicFilters), search_store.getOrElse(() => null), (response) => {
4146
- var _a, _b;
4147
- this.recommendations = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.products) !== null && _b !== void 0 ? _b : [];
4148
- this.vviinnFiltersReceived.emit(response === null || response === void 0 ? void 0 : response.interactions.dynamicFilters);
4140
+ search_store._function.pipe(await search_store.makeProductListingPageRequest(this.filterColumn, this.filterValue, this.resultsCount, dynamicFilters, this.useInnerState), search_store.getOrElse(() => null), (response) => {
4141
+ if (this.useInnerState)
4142
+ this.innerResults = response.data.products;
4149
4143
  });
4150
4144
  }
4151
4145
  connectedCallback() {
4146
+ search_store.state.apiPath = this.apiPath; //FIXME: #36877
4147
+ if (this.token)
4148
+ search_store.componentsState.token = this.token;
4152
4149
  this.trackingApi = index$1.createTrackingApi(this.apiPath, this.token);
4150
+ this.state = this.showInWidget ? search_store.searchState : search_store.componentsState;
4151
+ this.storeName = this.showInWidget ? "widget" : "components";
4153
4152
  if (!this.uiSessionId) {
4154
4153
  this.uiSessionId = index$1.v4();
4155
4154
  }
@@ -4186,10 +4185,10 @@ const VviinnResults = class {
4186
4185
  .then(this.setTrackingDeactivated);
4187
4186
  }
4188
4187
  trackProductView({ detail }) {
4189
- if (!search_store.searchState.resultViewed) {
4188
+ if (!this.state.resultViewed) {
4190
4189
  this.vviinnResultView.emit(this.getBasicEventData());
4191
4190
  this.trackResultEvent("view");
4192
- search_store.searchState.resultViewed = true;
4191
+ this.state.resultViewed = true;
4193
4192
  }
4194
4193
  const productViewEvent = this.getProductTrackEvent(detail, "view");
4195
4194
  if (!productViewEvent)
@@ -4236,7 +4235,7 @@ const VviinnResults = class {
4236
4235
  this.trackingApi.trackEvent(resultEvent).then(this.setTrackingDeactivated);
4237
4236
  }
4238
4237
  findProductById(id) {
4239
- return this.getRecommendations().find((r) => r.productId === id);
4238
+ return this.getResults().find((r) => r.productId === id);
4240
4239
  }
4241
4240
  handleOpenLink(deeplink, event) {
4242
4241
  if (!this.productDetailsRedirect)
@@ -4263,14 +4262,11 @@ const VviinnResults = class {
4263
4262
  return productEvent;
4264
4263
  }
4265
4264
  renderResults() {
4266
- const results = this.getRecommendations();
4267
4265
  const widgetData = this.getBasicEventData();
4268
- if (results.length === 0)
4269
- return null;
4270
- if (!search_store.searchState.resultLoaded) {
4266
+ if (!this.state.resultLoaded) {
4271
4267
  this.vviinnResultLoad.emit(this.getBasicEventData());
4272
4268
  this.trackResultEvent("load");
4273
- search_store.searchState.resultLoaded = true;
4269
+ this.state.resultLoaded = true;
4274
4270
  }
4275
4271
  const isOneClickDiscoveryAppendMode = this.oneClickDiscoveryMode === "append";
4276
4272
  const oneClickDiscoveryHandler = (index) => {
@@ -4285,7 +4281,7 @@ const VviinnResults = class {
4285
4281
  index + (nCols - ((index % nCols) + 1));
4286
4282
  this.oneClickDiscoverySelectedIndex = index;
4287
4283
  };
4288
- return results.map((p, i) => {
4284
+ return this.getResults().map((p, i) => {
4289
4285
  var _a, _b, _c;
4290
4286
  return (index.h("vviinn-product-card", { 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, currency: this.currencySign, locale: this.locale, customLabels: index$2.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), token: this.token, productId: p.productId, addStyle: false, appendSidebarTo: isOneClickDiscoveryAppendMode
4291
4287
  ? "one-click-discovery-append"
@@ -4295,16 +4291,15 @@ const VviinnResults = class {
4295
4291
  });
4296
4292
  }
4297
4293
  render() {
4298
- var _a, _b;
4294
+ var _a;
4295
+ const resultsLength = this.getResults().length;
4299
4296
  return (index.h(index.Host, { id: "results-block", class: {
4300
4297
  "show-in-widget": this.showInWidget,
4301
- }, exportparts: index$3.productCardParts }, index.h("div", { class: "nothing-found" }, ((_a = this.getRecommendations()) === null || _a === void 0 ? void 0 : _a.length) === 0 && this.showInWidget && (index.h("vviinn-empty-results", { handler: () => this === null || this === void 0 ? void 0 : this.resetState() })), this.showAspectRatioError && this.showInWidget && (index.h("vviinn-wrong-aspect-ratio", { handler: () => this === null || this === void 0 ? void 0 : this.resetState() }))), index.h("div", { class: {
4302
- hidden: this.showAspectRatioError ||
4303
- (this.recommendations.length === 0 &&
4304
- search_store.searchState.results.length === 0),
4298
+ }, exportparts: index$3.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.resetState() })), this.showAspectRatioError && this.showInWidget && (index.h("vviinn-wrong-aspect-ratio", { handler: () => this === null || this === void 0 ? void 0 : this.resetState() }))), index.h("div", { class: {
4299
+ hidden: this.showAspectRatioError || resultsLength === 0,
4305
4300
  products: true,
4306
4301
  }, id: "vviinn-results-products" }, this.renderResults(), index.h("div", { id: "one-click-discovery-append", style: {
4307
- order: ((_b = this.oneClickDiscoveryAppendIndex) !== null && _b !== void 0 ? _b : (this.recommendations.length || search_store.searchState.results.length)).toString(),
4302
+ order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
4308
4303
  } }))));
4309
4304
  }
4310
4305
  get el() { return index.getElement(this); }
@@ -4402,6 +4397,7 @@ const MicIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", vie
4402
4397
  index.h("path", { d: "M12 14C11.1667 14 10.4583 13.7083 9.87501 13.125C9.29168 12.5417 9.00001 11.8333 9.00001 11V5C9.00001 4.16667 9.29168 3.45833 9.87501 2.875C10.4583 2.29167 11.1667 2 12 2C12.8333 2 13.5417 2.29167 14.125 2.875C14.7083 3.45833 15 4.16667 15 5V11C15 11.8333 14.7083 12.5417 14.125 13.125C13.5417 13.7083 12.8333 14 12 14ZM11 20V17.925C9.46668 17.7083 8.15418 17.0583 7.06251 15.975C5.97085 14.8917 5.30835 13.575 5.07501 12.025C5.04168 11.7417 5.11668 11.5 5.30001 11.3C5.48335 11.1 5.71668 11 6.00001 11C6.28335 11 6.52085 11.0958 6.71251 11.2875C6.90418 11.4792 7.03335 11.7167 7.10001 12C7.33335 13.1667 7.91251 14.125 8.83751 14.875C9.76251 15.625 10.8167 16 12 16C13.2 16 14.2583 15.6208 15.175 14.8625C16.0917 14.1042 16.6667 13.15 16.9 12C16.9667 11.7167 17.0958 11.4792 17.2875 11.2875C17.4792 11.0958 17.7167 11 18 11C18.2833 11 18.5167 11.1 18.7 11.3C18.8833 11.5 18.9583 11.7417 18.925 12.025C18.6917 13.5417 18.0333 14.85 16.95 15.95C15.8667 17.05 14.55 17.7083 13 17.925V20C13 20.2833 12.9042 20.5208 12.7125 20.7125C12.5208 20.9042 12.2833 21 12 21C11.7167 21 11.4792 20.9042 11.2875 20.7125C11.0958 20.5208 11 20.2833 11 20Z", fill: "#161616" })));
4403
4398
 
4404
4399
  const browserType = () => {
4400
+ var _a;
4405
4401
  const uncastedWindow = window;
4406
4402
  const winNav = window.navigator;
4407
4403
  const vendorName = winNav.vendor;
@@ -4412,7 +4408,7 @@ const browserType = () => {
4412
4408
  ];
4413
4409
  const forbiddenBrowser = forbiddenBrowserRules.some((rule) => rule === true);
4414
4410
  const isChrome = typeof winNav.userAgentData !== "undefined"
4415
- ? winNav.userAgentData.brands[0].brand === "Google Chrome"
4411
+ ? ((_a = winNav.userAgentData.brands[0]) === null || _a === void 0 ? void 0 : _a.brand) === "Google Chrome"
4416
4412
  : vendorName === "Google Inc.";
4417
4413
  const isSafari = winNav.userAgent.indexOf("Safari") > -1 && !isChrome;
4418
4414
  return { forbiddenBrowser, isChrome, isSafari };
@@ -4477,10 +4473,9 @@ const VviinnTextSearch = class {
4477
4473
  index.registerInstance(this, hostRef);
4478
4474
  this.vviinnTextSearchStarted = index.createEvent(this, "vviinnTextSearchStarted", 7);
4479
4475
  this.vviinnSearchIdReceived = index.createEvent(this, "vviinnSearchIdReceived", 7);
4480
- this.vviinnFiltersReceived = index.createEvent(this, "vviinnFiltersReceived", 7);
4476
+ this.vviinnFilterTriggered = index.createEvent(this, "vviinnFilterTriggered", 7);
4481
4477
  this.widgetTextSearchFinished = index.createEvent(this, "widgetTextSearchFinished", 7);
4482
4478
  this.resultsSearchFinished = index.createEvent(this, "resultsSearchFinished", 7);
4483
- this.vviinnFilterTriggered = index.createEvent(this, "vviinnFilterTriggered", 7);
4484
4479
  this.vviinnSelectedFiltersReset = index.createEvent(this, "vviinnSelectedFiltersReset", 7);
4485
4480
  this.isShowPreloader = () => this.showInWidget
4486
4481
  ? search_store.searchState.loading && search_store.searchState.searchType === "text"
@@ -4516,6 +4511,9 @@ const VviinnTextSearch = class {
4516
4511
  this.showTooltip = false;
4517
4512
  }
4518
4513
  connectedCallback() {
4514
+ if (this.token)
4515
+ search_store.componentsState.token = this.token;
4516
+ this.storeName = this.showInWidget ? "widget" : "components";
4519
4517
  document.addEventListener("resultsSearchFinished", this.hideLoader);
4520
4518
  }
4521
4519
  disconnectedCallback() {
@@ -4575,7 +4573,7 @@ const VviinnTextSearch = class {
4575
4573
  customTrigger: "TPS",
4576
4574
  });
4577
4575
  if (this.showInWidget) {
4578
- const { requestId } = search_store._function.pipe(await search_store.makeTextSearchRequest(this.token, this.searchQuery), search_store.getOrElse(() => null), (response) => response);
4576
+ const { requestId } = search_store._function.pipe(await search_store.makeTextSearchRequest(this.storeName, this.searchQuery), search_store.getOrElse(() => null), (response) => response);
4579
4577
  this.widgetTextSearchFinished.emit({
4580
4578
  query: this.searchQuery,
4581
4579
  requestId,
@@ -4597,7 +4595,7 @@ const VviinnTextSearch = class {
4597
4595
  render() {
4598
4596
  return (index.h(index.Host, { exportparts: index$3.searchBarParts }, index.h("div", { class: "text-search-container", part: "text-search-container" }, index.h("input", { class: "text-search-input", part: "text-search-input", type: "text", placeholder: index$1.instance.t(this.isShowRecording()
4599
4597
  ? "speechRecognition.placeholder"
4600
- : "textSearchPlaceholder"), value: this.searchQuery, onInput: (event) => this.handleInputChange(event), onKeyUp: (event) => this.handleKeyPress(event) }), this.mode === "upload" ? (index.h("vviinn-image-selector", { token: this.token, apiPath: this.apiPath, showInTextSearch: true, uploadStartedHandler: this.showLoader.bind(this) }, index.h("span", { slot: "upload-button-text", class: "upload-button-text" }, index.h(SearchModalUploadIcon.SearchModalUploadIcon, null)))) : (index.h("slot", { name: "vviinn-text-search-actions" })), this.recognition && (index.h("button", { class: "speech-button", part: "speech-button", onClick: () => this.handleSpeech() }, index.h(MicIcon, null), this.isShowRecording() && (index.h("span", { class: "recording-indicator" })))), index.h("button", { class: "text-search-button", part: "text-search-button", onClick: () => this.handleTextSearch(), disabled: search_store.searchState.loading }, this.isShowPreloader() ? (index.h("vviinn-preloader", null)) : (index.h("slot", { name: "vviinn-text-search-icon" }, index.h(TextSearchIcon, null))))), this.showTooltip && (index.h("p", { class: "text-search-tooltip", part: "text-search-tooltip" }, index$1.instance.t(this.tooltipText)))));
4598
+ : "textSearchPlaceholder"), value: this.searchQuery, onInput: (event) => this.handleInputChange(event), onKeyUp: (event) => this.handleKeyPress(event) }), this.mode === "upload" ? (index.h("vviinn-image-selector", { apiPath: this.apiPath, showInWidget: this.showInWidget, uploadStartedHandler: this.showLoader.bind(this) }, index.h("span", { slot: "upload-button-text", class: "upload-button-text" }, index.h(SearchModalUploadIcon.SearchModalUploadIcon, null)))) : (index.h("slot", { name: "vviinn-text-search-actions" })), this.recognition && (index.h("button", { class: "speech-button", part: "speech-button", onClick: () => this.handleSpeech() }, index.h(MicIcon, null), this.isShowRecording() && (index.h("span", { class: "recording-indicator" })))), index.h("button", { class: "text-search-button", part: "text-search-button", onClick: () => this.handleTextSearch(), disabled: search_store.searchState.loading }, this.isShowPreloader() ? (index.h("vviinn-preloader", null)) : (index.h("slot", { name: "vviinn-text-search-icon" }, index.h(TextSearchIcon, null))))), this.showTooltip && (index.h("p", { class: "text-search-tooltip", part: "text-search-tooltip" }, index$1.instance.t(this.tooltipText)))));
4601
4599
  }
4602
4600
  get el() { return index.getElement(this); }
4603
4601
  };