vviinn-widgets 2.142.4 → 2.144.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 (100) 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-afb835d4.js} +1 -1
  4. package/dist/cjs/search-filters_19.cjs.entry.js +91 -90
  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 +96 -113
  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 +5 -3
  11. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +8 -8
  12. package/dist/cjs/vviinn-widgets.cjs.js +1 -1
  13. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +10 -2
  14. package/dist/collection/components/vviinn-cropper/vviinn-cropper.js +61 -47
  15. package/dist/collection/components/vviinn-cropper/vviinn-detected-object/vviinn-detected-object.js +23 -2
  16. package/dist/collection/components/vviinn-example-image/vviinn-example-image.js +1 -1
  17. package/dist/collection/components/vviinn-filters/helpers/RenderButton.js +1 -1
  18. package/dist/collection/components/vviinn-filters/vviinn-extended-filters.js +5 -30
  19. package/dist/collection/components/vviinn-filters/vviinn-filters.js +3 -39
  20. package/dist/collection/components/vviinn-filters/vviinn-selected-filters.js +7 -33
  21. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +5 -6
  22. package/dist/collection/components/vviinn-modal/vviinn-modal.js +2 -2
  23. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -5
  24. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +1 -7
  25. package/dist/collection/components/vviinn-results/stories/ResultsTemplate.js +1 -1
  26. package/dist/collection/components/vviinn-results/vviinn-results.css +19 -1
  27. package/dist/collection/components/vviinn-results/vviinn-results.js +61 -65
  28. package/dist/collection/components/vviinn-text-search/helpers/browserType.js +2 -1
  29. package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +12 -29
  30. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +2 -2
  31. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +21 -3
  32. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.js +2 -2
  33. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +26 -6
  34. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +24 -7
  35. package/dist/collection/error.js +4 -0
  36. package/dist/collection/store/search.store.js +64 -61
  37. package/dist/esm/{index-c4e34346.js → index-54d4fcfb.js} +1 -1
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/{package-3e1dc861.js → package-0eedf6bd.js} +1 -1
  40. package/dist/esm/search-filters_19.entry.js +91 -90
  41. package/dist/esm/{search.store-6a910ac5.js → search.store-3c94f453.js} +260 -255
  42. package/dist/esm/{triggerFilter-5989fdc3.js → triggerFilter-50fb2a34.js} +1 -1
  43. package/dist/esm/vviinn-carousel_9.entry.js +96 -113
  44. package/dist/esm/vviinn-preloader.entry.js +2 -9
  45. package/dist/esm/vviinn-selected-filters.entry.js +9 -15
  46. package/dist/esm/vviinn-vps-button.entry.js +5 -3
  47. package/dist/esm/vviinn-vps-widget.entry.js +8 -8
  48. package/dist/esm/vviinn-widgets.js +1 -1
  49. package/dist/types/components/vviinn-cropper/vviinn-cropper.d.ts +10 -6
  50. package/dist/types/components/vviinn-cropper/vviinn-detected-object/vviinn-detected-object.d.ts +3 -0
  51. package/dist/types/components/vviinn-filters/vviinn-filters.d.ts +3 -5
  52. package/dist/types/components/vviinn-filters/vviinn-selected-filters.d.ts +2 -4
  53. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +1 -1
  54. package/dist/types/components/vviinn-preloader/vviinn-preloader.d.ts +0 -1
  55. package/dist/types/components/vviinn-results/vviinn-results.d.ts +10 -8
  56. package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +4 -4
  57. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +1 -1
  58. package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +3 -1
  59. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-widget.d.ts +1 -1
  60. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +4 -2
  61. package/dist/types/components.d.ts +51 -34
  62. package/dist/types/error.d.ts +1 -0
  63. package/dist/types/interfaces/search.d.ts +2 -2
  64. package/dist/types/recommendation/events.d.ts +1 -3
  65. package/dist/types/store/search.store.d.ts +13 -141
  66. package/{www/build/p-89f3ed68.js → dist/vviinn-widgets/p-6aae513c.js} +1 -1
  67. package/dist/vviinn-widgets/p-6f49c188.entry.js +11 -0
  68. package/dist/vviinn-widgets/p-7b3d64e6.entry.js +1 -0
  69. package/dist/vviinn-widgets/p-82ca1986.entry.js +1 -0
  70. package/dist/vviinn-widgets/p-91dc1441.entry.js +1 -0
  71. package/dist/vviinn-widgets/p-95019e2d.entry.js +1 -0
  72. package/dist/vviinn-widgets/{p-37ebfb20.js → p-9b3e56ea.js} +1 -1
  73. package/dist/vviinn-widgets/{p-06ce4b24.js → p-b9444554.js} +1 -1
  74. package/dist/vviinn-widgets/{p-e7eec6f1.js → p-c1942843.js} +1 -1
  75. package/dist/vviinn-widgets/p-c4ae63e3.entry.js +1 -0
  76. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  77. package/package.json +1 -1
  78. package/{dist/vviinn-widgets/p-89f3ed68.js → www/build/p-6aae513c.js} +1 -1
  79. package/www/build/p-6f49c188.entry.js +11 -0
  80. package/www/build/p-7b3d64e6.entry.js +1 -0
  81. package/www/build/p-82ca1986.entry.js +1 -0
  82. package/www/build/p-91dc1441.entry.js +1 -0
  83. package/www/build/p-95019e2d.entry.js +1 -0
  84. package/www/build/{p-37ebfb20.js → p-9b3e56ea.js} +1 -1
  85. package/www/build/{p-06ce4b24.js → p-b9444554.js} +1 -1
  86. package/www/build/{p-e7eec6f1.js → p-c1942843.js} +1 -1
  87. package/www/build/p-c4ae63e3.entry.js +1 -0
  88. package/www/build/vviinn-widgets.esm.js +1 -1
  89. package/dist/vviinn-widgets/p-0f1e95dc.entry.js +0 -1
  90. package/dist/vviinn-widgets/p-4d1d457b.entry.js +0 -1
  91. package/dist/vviinn-widgets/p-8626ac02.entry.js +0 -1
  92. package/dist/vviinn-widgets/p-a6c17615.entry.js +0 -1
  93. package/dist/vviinn-widgets/p-a7b9dbb0.entry.js +0 -1
  94. package/dist/vviinn-widgets/p-ad036902.entry.js +0 -11
  95. package/www/build/p-0f1e95dc.entry.js +0 -1
  96. package/www/build/p-4d1d457b.entry.js +0 -1
  97. package/www/build/p-8626ac02.entry.js +0 -1
  98. package/www/build/p-a6c17615.entry.js +0 -1
  99. package/www/build/p-a7b9dbb0.entry.js +0 -1
  100. 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],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"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\"],\"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],\"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\"],\"oneClickDiscoveryMode\":[1,\"one-click-discovery-mode\"],\"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.144.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-afb835d4.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
  }
@@ -3953,7 +3953,7 @@ const VviinnPrivacyBadge = class {
3953
3953
  };
3954
3954
  VviinnPrivacyBadge.style = vviinnPrivacyBadgeCss;
3955
3955
 
3956
- const vviinnResultsCss = ":host{--font-family-base:Inter, system-ui, sans-serif;--font-family-mono:monospace;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--font-size-title:24px;--font-size-headline:18px;--font-size-label-large:16px;--font-size-label:14px;--font-size-body-large:16px;--font-size-body:14px;--font-size-caption:12px;--line-height-title:32px;--line-height-headline:24px;--line-height-label-large:24px;--line-height-label:20px;--line-height-body-large:24px;--line-height-body:20px;--line-height-caption:16px;--letter-spacing-title:0px;--letter-spacing-headline:0px;--letter-spacing-label-large:0px;--letter-spacing-label:0px;--letter-spacing-body-large:0px;--letter-spacing-body:0px;--letter-spacing-caption:0px;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-weight-700:700;--spacing-none:0px;--spacing-25:2px;--spacing-50:4px;--spacing-75:6px;--spacing-100:8px;--spacing-125:10px;--spacing-150:12px;--spacing-200:16px;--spacing-250:20px;--spacing-300:24px;--spacing-400:32px;--spacing-500:40px;--spacing-600:48px;--border-radius-none:0px;--border-radius-25:2px;--border-radius-50:4px;--border-radius-100:8px;--border-radius-150:12px;--border-radius-200:16px;--border-radius-300:24px;--border-radius-400:32px;--border-radius-full:9999px;--stroke-width-none:0px;--stroke-width-25:1px;--stroke-width-50:2px;--stroke-width-75:3px;--stroke-width-100:4px;--stroke-width-150:6px;--stroke-width-200:8px;--stroke-width-300:12px;--product-card-widget-min-width:135px;--product-card-results-min-width:250px;--image-set-mode-min-size:155px;--product-card-set-mode-max-width:300px;--source-card-set-mode-max-width:500px;--filter-blur-none:0px;--filter-blur-100:8px;--filter-blur-150:12px;--filter-blur-200:16px;--color-bg-base:#ffffff;--color-bg-inverse:#161616;--color-border-00:#ffffff;--color-border-01:#f4f4f4;--color-border-02:#e0e0e0;--color-border-03:#c6c6c6;--color-border-inverse-00:#161616;--color-border-inverse-01:#393939;--color-field-01:#ffffff;--color-field-02:#f4f4f4;--color-icon-primary:#161616;--color-icon-secondary:#525252;--color-icon-helper:#8d8d8d;--color-icon-on-color:#ffffff;--color-icon-inverse:#ffffff;--color-icon-disabled:#16161640;--color-text-primary:#161616;--color-text-secondary:#525252;--color-text-helper:#8d8d8d;--color-text-placeholder:#a8a8a8;--color-text-on-color:#ffffff;--color-text-inverse:#ffffff;--color-text-disabled:#16161640;--button-bg-color-primary:#000000;--button-bg-color-primary-hover:#161616;--button-bg-color-primary-active:#1e1e1e;--button-bg-color-secondary:#f4f4f4;--button-bg-color-secondary-hover:#e0e0e0;--button-bg-color-secondary-active:#c6c6c6;--button-bg-color-ghost-hover:#f4f4f4;--button-bg-color-ghost-active:#eaeaea;--button-bg-color-frosted:#6f6f6f66;--button-bg-color-frosted-hover:#6f6f6f80;--button-bg-color-frosted-active:#6f6f6f99;--button-bg-color-disabled:#e0e0e0;--button-bg-color-positive:#dcfce7;--surface-bg-color-01:#f4f4f4;--surface-bg-color-01-hover:#eaeaea;--surface-bg-color-01-active:#e0e0e0;--surface-bg-color-02:#ffffff;--surface-bg-color-inverse:#262626;--surface-bg-color-inverse-hover:#303030;--surface-bg-color-inverse-active:#393939;--surface-bg-color-disabled:#e0e0e0;--chip-bg-color-primary:#161616;--chip-bg-color-primary-hover:#1e1e1e;--chip-bg-color-primary-active:#262626;--chip-bg-color-subtle:#f4f4f4;--chip-bg-color-subtle-hover:#eaeaea;--chip-bg-color-subtle-active:#e0e0e0;--chip-bg-color-outline-hover:#f4f4f4;--chip-bg-color-outline-active:#eaeaea;--label-bg-color-accent:#ff3944;}:host{display:block}:host(.show-in-widget){display:grid;overflow-y:auto;overflow-x:hidden;padding:unset;position:relative;width:100%}:host::part(product-card){height:100%}.products{width:100%;align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-gap:32px 16px;grid-template-columns:repeat(\n auto-fill,\n minmax(\n var(--product-card-width, var(--product-card-results-min-width)),\n 1fr\n )\n );justify-items:center;padding:24px;position:absolute}:host(.show-in-widget) .products{grid-template-columns:repeat(\n auto-fill,\n minmax(var(--product-card-width, var(--product-card-widget-min-width)), 1fr)\n )}:host(:not(.show-in-widget)) .products{position:static;padding:0}.hidden{visibility:hidden;height:1px}products.hidden{display:none}@media (max-width: 768px){:host(.show-in-widget){align-content:start;position:static;overflow-y:unset;width:100%;padding-top:0;margin-top:24px}.products{position:static;padding:0;width:unset;grid-gap:32px 16px;justify-content:center}.nothing-found{position:static;grid-gap:64px;padding:unset;align-content:start;width:unset}}@media (max-width: 380px){.products{grid-gap:24px 10px}}.vviinn-results-product-card-actions vviinn-vpr-button{display:flex;justify-content:center;align-items:center;cursor:pointer;width:32px;height:32px}.vviinn-results-product-card-actions vviinn-vpr-button::part(vviinn-button){display:flex;justify-content:center;align-items:center;color:var(--color-icon-inverse);padding:var(--spacing-50);gap:var(--spacing-50);border-radius:var(--border-radius-100);background:var(--button-bg-color-frosted);-webkit-backdrop-filter:blur(calc(var(--filter-blur-150, 12px) / 2));backdrop-filter:blur(calc(var(--filter-blur-150, 12px) / 2))}.vviinn-results-product-card-actions vviinn-vpr-button::part(vviinn-button):hover{background:var(--button-bg-color-frosted-hover)}#one-click-discovery-append{width:100%;grid-column:1 / -1}@media screen and (max-width: 768px){:host{--product-card-width:155px}}:host(.show-in-widget) vviinn-recommendations-sidebar::part(recommendations-results){grid-template-columns:repeat(auto-fill, minmax(155px, 1fr))}vviinn-recommendations-sidebar::part(body){border:1px solid var(--color-border-02);border-left:none;border-right:none;margin-top:-9px;max-height:unset}@media screen and (max-width: 768px){vviinn-recommendations-sidebar::part(body){margin-top:-1px}}vviinn-recommendations-sidebar::part(close-sidebar){top:11px}vviinn-recommendations-sidebar::part(source-image){display:none}vviinn-recommendations-sidebar::part(sidebar-header){padding:0;margin-bottom:24px}vviinn-recommendations-sidebar::part(sidebar-header){justify-items:left;text-align:left}vviinn-recommendations-sidebar::part(sidebar-content){min-height:470px;padding:0}";
3956
+ const vviinnResultsCss = ":host{--font-family-base:Inter, system-ui, sans-serif;--font-family-mono:monospace;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--font-size-title:24px;--font-size-headline:18px;--font-size-label-large:16px;--font-size-label:14px;--font-size-body-large:16px;--font-size-body:14px;--font-size-caption:12px;--line-height-title:32px;--line-height-headline:24px;--line-height-label-large:24px;--line-height-label:20px;--line-height-body-large:24px;--line-height-body:20px;--line-height-caption:16px;--letter-spacing-title:0px;--letter-spacing-headline:0px;--letter-spacing-label-large:0px;--letter-spacing-label:0px;--letter-spacing-body-large:0px;--letter-spacing-body:0px;--letter-spacing-caption:0px;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-weight-700:700;--spacing-none:0px;--spacing-25:2px;--spacing-50:4px;--spacing-75:6px;--spacing-100:8px;--spacing-125:10px;--spacing-150:12px;--spacing-200:16px;--spacing-250:20px;--spacing-300:24px;--spacing-400:32px;--spacing-500:40px;--spacing-600:48px;--border-radius-none:0px;--border-radius-25:2px;--border-radius-50:4px;--border-radius-100:8px;--border-radius-150:12px;--border-radius-200:16px;--border-radius-300:24px;--border-radius-400:32px;--border-radius-full:9999px;--stroke-width-none:0px;--stroke-width-25:1px;--stroke-width-50:2px;--stroke-width-75:3px;--stroke-width-100:4px;--stroke-width-150:6px;--stroke-width-200:8px;--stroke-width-300:12px;--product-card-widget-min-width:135px;--product-card-results-min-width:250px;--image-set-mode-min-size:155px;--product-card-set-mode-max-width:300px;--source-card-set-mode-max-width:500px;--filter-blur-none:0px;--filter-blur-100:8px;--filter-blur-150:12px;--filter-blur-200:16px;--color-bg-base:#ffffff;--color-bg-inverse:#161616;--color-border-00:#ffffff;--color-border-01:#f4f4f4;--color-border-02:#e0e0e0;--color-border-03:#c6c6c6;--color-border-inverse-00:#161616;--color-border-inverse-01:#393939;--color-field-01:#ffffff;--color-field-02:#f4f4f4;--color-icon-primary:#161616;--color-icon-secondary:#525252;--color-icon-helper:#8d8d8d;--color-icon-on-color:#ffffff;--color-icon-inverse:#ffffff;--color-icon-disabled:#16161640;--color-text-primary:#161616;--color-text-secondary:#525252;--color-text-helper:#8d8d8d;--color-text-placeholder:#a8a8a8;--color-text-on-color:#ffffff;--color-text-inverse:#ffffff;--color-text-disabled:#16161640;--button-bg-color-primary:#000000;--button-bg-color-primary-hover:#161616;--button-bg-color-primary-active:#1e1e1e;--button-bg-color-secondary:#f4f4f4;--button-bg-color-secondary-hover:#e0e0e0;--button-bg-color-secondary-active:#c6c6c6;--button-bg-color-ghost-hover:#f4f4f4;--button-bg-color-ghost-active:#eaeaea;--button-bg-color-frosted:#6f6f6f66;--button-bg-color-frosted-hover:#6f6f6f80;--button-bg-color-frosted-active:#6f6f6f99;--button-bg-color-disabled:#e0e0e0;--button-bg-color-positive:#dcfce7;--surface-bg-color-01:#f4f4f4;--surface-bg-color-01-hover:#eaeaea;--surface-bg-color-01-active:#e0e0e0;--surface-bg-color-02:#ffffff;--surface-bg-color-inverse:#262626;--surface-bg-color-inverse-hover:#303030;--surface-bg-color-inverse-active:#393939;--surface-bg-color-disabled:#e0e0e0;--chip-bg-color-primary:#161616;--chip-bg-color-primary-hover:#1e1e1e;--chip-bg-color-primary-active:#262626;--chip-bg-color-subtle:#f4f4f4;--chip-bg-color-subtle-hover:#eaeaea;--chip-bg-color-subtle-active:#e0e0e0;--chip-bg-color-outline-hover:#f4f4f4;--chip-bg-color-outline-active:#eaeaea;--label-bg-color-accent:#ff3944;}:host{display:block}:host(.show-in-widget){display:grid;overflow-y:auto;overflow-x:hidden;padding:unset;position:relative;width:100%}:host::part(product-card){height:100%}.products{width:100%;align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-gap:32px 16px;grid-template-columns:repeat(\n auto-fill,\n minmax(\n var(--product-card-width, var(--product-card-results-min-width)),\n 1fr\n )\n );justify-items:center;padding:24px;position:absolute}:host(.show-in-widget) .products{grid-template-columns:repeat(\n auto-fill,\n minmax(var(--product-card-width, var(--product-card-widget-min-width)), 1fr)\n )}:host(:not(.show-in-widget)) .products{position:static;padding:0}.hidden{visibility:hidden;height:1px}products.hidden{display:none}@media (max-width: 768px){:host(.show-in-widget){align-content:start;position:static;overflow-y:unset;width:100%;padding-top:0;margin-top:24px}.products{position:static;padding:0;width:unset;grid-gap:32px 16px;justify-content:center}.nothing-found{position:static;grid-gap:64px;padding:unset;align-content:start;width:unset}}@media (max-width: 380px){.products{grid-gap:24px 10px}}.vviinn-results-product-card-actions vviinn-vpr-button{display:flex;justify-content:center;align-items:center;cursor:pointer;width:32px;height:32px}.vviinn-results-product-card-actions vviinn-vpr-button::part(vviinn-button){display:flex;justify-content:center;align-items:center;color:var(--color-icon-inverse);padding:var(--spacing-50);gap:var(--spacing-50);border-radius:var(--border-radius-100);background:var(--button-bg-color-frosted);-webkit-backdrop-filter:blur(calc(var(--filter-blur-150, 12px) / 2));backdrop-filter:blur(calc(var(--filter-blur-150, 12px) / 2))}.vviinn-results-product-card-actions vviinn-vpr-button::part(vviinn-button):hover{background:var(--button-bg-color-frosted-hover)}#one-click-discovery-append{width:100%;grid-column:1 / -1}@media screen and (max-width: 768px){:host{--product-card-width:155px}}:host(.matching-discovery) vviinn-recommendations-sidebar::part(items-group){grid-template-columns:repeat(\n auto-fill,\n minmax(\n var(--product-card-width, var(--product-card-results-min-width)),\n 1fr\n )\n )}:host(.show-in-widget) vviinn-recommendations-sidebar::part(recommendations-results),:host(.show-in-widget) vviinn-recommendations-sidebar::part(items-group){grid-template-columns:repeat(auto-fill, minmax(155px, 1fr))}vviinn-recommendations-sidebar::part(body){border:1px solid var(--color-border-02);border-left:none;border-right:none;margin-top:-9px;max-height:unset}@media screen and (max-width: 768px){vviinn-recommendations-sidebar::part(body){margin-top:-1px}}vviinn-recommendations-sidebar::part(close-sidebar){top:11px}vviinn-recommendations-sidebar::part(source-image){display:none}vviinn-recommendations-sidebar::part(sidebar-header){padding:0;margin-bottom:24px}vviinn-recommendations-sidebar::part(sidebar-header){justify-items:left;text-align:left}vviinn-recommendations-sidebar::part(sidebar-content){min-height:470px;padding:0}:host(.show-in-widget) vviinn-recommendations-sidebar::part(sidebar-content),:host(.matching-discovery) vviinn-recommendations-sidebar::part(sidebar-content){min-height:unset}";
3957
3957
 
3958
3958
  var __rest = (undefined && undefined.__rest) || function (s, e) {
3959
3959
  var t = {};
@@ -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,16 +4262,14 @@ const VviinnResults = class {
4263
4262
  return productEvent;
4264
4263
  }
4265
4264
  renderResults() {
4266
- const results = this.getRecommendations();
4265
+ var _a;
4267
4266
  const widgetData = this.getBasicEventData();
4268
- if (results.length === 0)
4269
- return null;
4270
- if (!search_store.searchState.resultLoaded) {
4267
+ if (!this.state.resultLoaded) {
4271
4268
  this.vviinnResultLoad.emit(this.getBasicEventData());
4272
4269
  this.trackResultEvent("load");
4273
- search_store.searchState.resultLoaded = true;
4270
+ this.state.resultLoaded = true;
4274
4271
  }
4275
- const isOneClickDiscoveryAppendMode = this.oneClickDiscoveryMode === "append";
4272
+ const isOneClickDiscoveryAppendMode = (_a = this.oneClickDiscoveryMode) === null || _a === void 0 ? void 0 : _a.startsWith("append");
4276
4273
  const oneClickDiscoveryHandler = (index) => {
4277
4274
  if (!isOneClickDiscoveryAppendMode)
4278
4275
  return;
@@ -4285,26 +4282,26 @@ const VviinnResults = class {
4285
4282
  index + (nCols - ((index % nCols) + 1));
4286
4283
  this.oneClickDiscoverySelectedIndex = index;
4287
4284
  };
4288
- return results.map((p, i) => {
4285
+ return this.getResults().map((p, i) => {
4289
4286
  var _a, _b, _c;
4290
4287
  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
4288
  ? "one-click-discovery-append"
4292
4289
  : undefined, appendSidebarToElement: isOneClickDiscoveryAppendMode
4293
4290
  ? this.el.shadowRoot.getElementById("one-click-discovery-append")
4294
- : undefined, addToBasketShow: this.addToBasketShow, locale: this.locale, favoriteShow: this.favoriteShow, campaigns: this.oneClickDiscoveryCampaigns }, this.renderProductCardSlots(), this.renderVprIconSlot())))));
4291
+ : undefined, oneClickDiscoveryMode: this.oneClickDiscoveryMode, addToBasketShow: this.addToBasketShow, locale: this.locale, favoriteShow: this.favoriteShow, campaigns: this.oneClickDiscoveryCampaigns }, this.renderProductCardSlots(), this.renderVprIconSlot())))));
4295
4292
  });
4296
4293
  }
4297
4294
  render() {
4298
- var _a, _b;
4295
+ var _a;
4296
+ const resultsLength = this.getResults().length;
4299
4297
  return (index.h(index.Host, { id: "results-block", class: {
4300
4298
  "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),
4299
+ "matching-discovery": this.oneClickDiscoveryMode === "append-slider",
4300
+ }, 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: {
4301
+ hidden: this.showAspectRatioError || resultsLength === 0,
4305
4302
  products: true,
4306
4303
  }, 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(),
4304
+ order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
4308
4305
  } }))));
4309
4306
  }
4310
4307
  get el() { return index.getElement(this); }
@@ -4402,6 +4399,7 @@ const MicIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", vie
4402
4399
  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
4400
 
4404
4401
  const browserType = () => {
4402
+ var _a;
4405
4403
  const uncastedWindow = window;
4406
4404
  const winNav = window.navigator;
4407
4405
  const vendorName = winNav.vendor;
@@ -4412,7 +4410,7 @@ const browserType = () => {
4412
4410
  ];
4413
4411
  const forbiddenBrowser = forbiddenBrowserRules.some((rule) => rule === true);
4414
4412
  const isChrome = typeof winNav.userAgentData !== "undefined"
4415
- ? winNav.userAgentData.brands[0].brand === "Google Chrome"
4413
+ ? ((_a = winNav.userAgentData.brands[0]) === null || _a === void 0 ? void 0 : _a.brand) === "Google Chrome"
4416
4414
  : vendorName === "Google Inc.";
4417
4415
  const isSafari = winNav.userAgent.indexOf("Safari") > -1 && !isChrome;
4418
4416
  return { forbiddenBrowser, isChrome, isSafari };
@@ -4477,10 +4475,9 @@ const VviinnTextSearch = class {
4477
4475
  index.registerInstance(this, hostRef);
4478
4476
  this.vviinnTextSearchStarted = index.createEvent(this, "vviinnTextSearchStarted", 7);
4479
4477
  this.vviinnSearchIdReceived = index.createEvent(this, "vviinnSearchIdReceived", 7);
4480
- this.vviinnFiltersReceived = index.createEvent(this, "vviinnFiltersReceived", 7);
4478
+ this.vviinnFilterTriggered = index.createEvent(this, "vviinnFilterTriggered", 7);
4481
4479
  this.widgetTextSearchFinished = index.createEvent(this, "widgetTextSearchFinished", 7);
4482
4480
  this.resultsSearchFinished = index.createEvent(this, "resultsSearchFinished", 7);
4483
- this.vviinnFilterTriggered = index.createEvent(this, "vviinnFilterTriggered", 7);
4484
4481
  this.vviinnSelectedFiltersReset = index.createEvent(this, "vviinnSelectedFiltersReset", 7);
4485
4482
  this.isShowPreloader = () => this.showInWidget
4486
4483
  ? search_store.searchState.loading && search_store.searchState.searchType === "text"
@@ -4516,6 +4513,9 @@ const VviinnTextSearch = class {
4516
4513
  this.showTooltip = false;
4517
4514
  }
4518
4515
  connectedCallback() {
4516
+ if (this.token)
4517
+ search_store.componentsState.token = this.token;
4518
+ this.storeName = this.showInWidget ? "widget" : "components";
4519
4519
  document.addEventListener("resultsSearchFinished", this.hideLoader);
4520
4520
  }
4521
4521
  disconnectedCallback() {
@@ -4575,7 +4575,7 @@ const VviinnTextSearch = class {
4575
4575
  customTrigger: "TPS",
4576
4576
  });
4577
4577
  if (this.showInWidget) {
4578
- const { requestId } = search_store._function.pipe(await search_store.makeTextSearchRequest(this.token, this.searchQuery), search_store.getOrElse(() => null), (response) => response);
4578
+ const { requestId } = search_store._function.pipe(await search_store.makeTextSearchRequest(this.storeName, this.searchQuery), search_store.getOrElse(() => null), (response) => response);
4579
4579
  this.widgetTextSearchFinished.emit({
4580
4580
  query: this.searchQuery,
4581
4581
  requestId,
@@ -4597,7 +4597,7 @@ const VviinnTextSearch = class {
4597
4597
  render() {
4598
4598
  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
4599
  ? "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)))));
4600
+ : "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
4601
  }
4602
4602
  get el() { return index.getElement(this); }
4603
4603
  };
@@ -4657,6 +4657,7 @@ const VviinnVprButton = class {
4657
4657
  this.appendSidebarTo = undefined;
4658
4658
  this.favoriteShow = false;
4659
4659
  this.appendSidebarToElement = undefined;
4660
+ this.oneClickDiscoveryMode = undefined;
4660
4661
  this.apiPath = "https://api.vviinn.com";
4661
4662
  this.targetAppendSidebarTo = undefined;
4662
4663
  }
@@ -4721,7 +4722,7 @@ const VviinnVprButton = class {
4721
4722
  sidebar.favoriteShow = this.favoriteShow;
4722
4723
  if (this.targetAppendSidebarTo) {
4723
4724
  sidebar.mode = "grid";
4724
- sidebar.useCarousel = false;
4725
+ sidebar.useCarousel = this.oneClickDiscoveryMode === "append-slider";
4725
4726
  }
4726
4727
  else {
4727
4728
  sidebar.mode = this.position === "right" ? "grid" : this.mode;