vviinn-widgets 2.20.21 → 2.20.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/highlight-box_22.cjs.entry.js +25 -10
- package/dist/cjs/i18next-74ff3413.js +2258 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-1c24894e.js → package-fc932371.js} +1 -1
- package/dist/cjs/vviinn-carousel_3.cjs.entry.js +86 -65
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +2 -1
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +4 -2
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +69 -2
- package/dist/cjs/vviinn-widgets.cjs.js +1 -1
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +2 -1
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +19 -1
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +20 -2
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +12 -1
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +43 -1
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +43 -1
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +43 -1
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +2 -1
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +25 -1
- package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +1 -1
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +2 -1
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +24 -1
- package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +5 -1
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +29 -4
- package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +5 -2
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +26 -12
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +3 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +9 -4
- package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +10 -8
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +22 -10
- package/dist/collection/locale/index.js +1 -0
- package/dist/collection/locale/resources-vpr.js +12 -0
- package/dist/collection/locale/resources-vps.js +60 -0
- package/dist/esm/highlight-box_22.entry.js +25 -10
- package/dist/esm/i18next-387f2b0a.js +2256 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-e2f2d588.js +3 -0
- package/dist/esm/vviinn-carousel_3.entry.js +86 -65
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +2 -1
- package/dist/esm/vviinn-vpr-button.entry.js +4 -2
- package/dist/esm/vviinn-vps-button.entry.js +1 -1
- package/dist/esm/vviinn-vps-widget.entry.js +69 -2
- package/dist/esm/vviinn-widgets.js +1 -1
- package/dist/types/components/vviinn-example-images/vviinn-example-images.d.ts +1 -0
- package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.d.ts +2 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.d.ts +2 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.d.ts +2 -0
- package/dist/types/components/vviinn-privacy-badge/vviinn-privacy-badge.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -0
- package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +5 -2
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +5 -4
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +3 -2
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +3 -2
- package/dist/types/components.d.ts +48 -20
- package/dist/types/locale/index.d.ts +1 -0
- package/dist/types/locale/resources-vpr.d.ts +2 -0
- package/dist/types/locale/resources-vps.d.ts +2 -0
- package/dist/vviinn-widgets/p-2e76a5c3.js +1 -0
- package/dist/vviinn-widgets/p-51dd5bb7.entry.js +1 -0
- package/dist/vviinn-widgets/p-5283bad8.entry.js +1 -0
- package/dist/vviinn-widgets/p-643545b1.entry.js +1 -0
- package/dist/vviinn-widgets/p-a4d06752.entry.js +1 -0
- package/dist/vviinn-widgets/p-c06f6765.entry.js +1 -0
- package/dist/vviinn-widgets/p-d99266bf.js +1 -0
- package/dist/vviinn-widgets/p-df710209.entry.js +1 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +3 -2
- package/www/build/p-2e76a5c3.js +1 -0
- package/www/build/p-51dd5bb7.entry.js +1 -0
- package/www/build/p-5283bad8.entry.js +1 -0
- package/www/build/p-643545b1.entry.js +1 -0
- package/www/build/p-9e468d0a.js +161 -0
- package/www/build/p-a4d06752.entry.js +1 -0
- package/www/build/p-c06f6765.entry.js +1 -0
- package/www/build/p-d99266bf.js +1 -0
- package/www/build/p-df710209.entry.js +1 -0
- package/www/build/p-e0153ae2.css +6 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +4 -1
- package/dist/esm/package-4909a9ed.js +0 -3
- package/dist/vviinn-widgets/p-1aa66c1a.entry.js +0 -1
- package/dist/vviinn-widgets/p-4cb106e3.entry.js +0 -1
- package/dist/vviinn-widgets/p-637925f0.entry.js +0 -1
- package/dist/vviinn-widgets/p-6a189f8f.js +0 -1
- package/dist/vviinn-widgets/p-a1c3ccce.entry.js +0 -1
- package/dist/vviinn-widgets/p-ab973311.entry.js +0 -1
- package/dist/vviinn-widgets/p-e5fbf695.entry.js +0 -1
- package/www/build/p-1aa66c1a.entry.js +0 -1
- package/www/build/p-3fe5816c.js +0 -1
- package/www/build/p-4cb106e3.entry.js +0 -1
- package/www/build/p-637925f0.entry.js +0 -1
- package/www/build/p-6a189f8f.js +0 -1
- package/www/build/p-a1c3ccce.entry.js +0 -1
- package/www/build/p-a67898be.css +0 -1
- package/www/build/p-ab973311.entry.js +0 -1
- package/www/build/p-e5fbf695.entry.js +0 -1
package/dist/esm/loader.js
CHANGED
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["vviinn-button",[[1,"vviinn-button",{"addStyle":[4,"add-style"]}]]],["cropper-handler",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error",[[1,"vviinn-error"]]],["vviinn-preloader",[[1,"vviinn-preloader"]]],["vviinn-carousel_3",[[1,"vviinn-vpr-widget",{"blockTitle":[1,"block-title"],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"productId":[1,"product-id"],"token":[1],"currencySign":[1,"currency-sign"],"pricePrefix":[1,"price-prefix"],"mode":[1],"campaignType":[1,"campaign-type"],"locale":[1],"campaigns":[1],"color":[1],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"showScroll":[4,"show-scroll"],"cssUrl":[1,"css-url"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"useCarousel":[4,"use-carousel"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"recommendations":[32],"trackingDeactivated":[32],"hasErrorOnLoad":[32]},[[0,"vviinnProductLoad","handleProductLoading"],[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"]]],[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":[16],"widgetVersion":[1,"widget-version"],"moveDirection":[32],"contentGroups":[32],"activeContentGroup":[32],"isRTL":[32]}],[1,"vviinn-product-card",{"brand":[1],"currency":[1],"deeplink":[1],"image":[1],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"locale":[1],"price":[2],"pricePrefix":[1,"price-prefix"],"productId":[1,"product-id"],"productTitle":[1,"product-title"],"productType":[1,"product-type"],"salePrice":[2,"sale-price"],"responsive":[4],"dimmedBackground":[4,"dimmed-background"],"campaignTypeId":[1,"campaign-type-id"],"widgetElementId":[1,"widget-element-id"],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"index":[2],"imageLoaded":[32]}]]],["highlight-box_22",[[1,"vviinn-image-view",{"basicEventData":[16]}],[1,"vviinn-onboarding"],[1,"vviinn-example-images",{"basicEventData":[16]}],[1,"vviinn-overlayed-modal",{"active":[4],"resetState":[16],"buttonElementId":[1,"button-element-id"],"hideBackButton":[4,"hide-back-button"],"widgetVersion":[1,"widget-version"]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector",{"basicEventData":[16],"startUpload":[4,"start-upload"],"resetVpsButton":[16]}],[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-privacy-badge"],[1,"vviinn-teaser"],[1,"image-cropper",{"disabled":[4],"basicEventData":[16],"handleMove":[32]}],[1,"vviinn-example-image",{"src":[1],"width":[2],"height":[2],"basicEventData":[16],"selected":[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{"detectedObject":[16],"basicEventData":[16],"position":[32]}],[1,"vviinn-modal",{"active":[1540],"resetState":[16],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"hideBackButton":[4,"hide-back-button"],"slider":[32]}],[1,"vviinn-onboarding-card-1"],[1,"vviinn-onboarding-card-2"],[1,"vviinn-onboarding-card-3"],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{"showBullets":[4,"show-bullets"],"position":[514],"showArrows":[4,"show-arrows"],"elementsCount":[32],"internalPosition":[32],"swipeStartPosition":[32],"isRTL":[32]}]]],["vviinn-vps-widget",[[1,"vviinn-vps-widget",{"token":[1],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"buttonPressed":[4,"button-pressed"],"mode":[1],"resetVpsButton":[16],"slidePosition":[32],"width":[32],"wrongImageFormat":[32],"trackingDeactivated":[32]},[[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"],[0,"vviinnImageCrop","trachSearchAreaChanges"],[0,"vviinnSelectObject","trackDetectedObject"],[0,"vviinnSelectFilter","trackFilter"]]]]],["vviinn-vps-button",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"addStyle":[4,"add-style"],"mode":[1],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonPressed":[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]]]],["vviinn-recommendations-sidebar",[[1,"vviinn-recommendations-sidebar",{"sidebarTitle":[1,"sidebar-title"],"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"widgetScrollbar":[4,"widget-scrollbar"],"mode":[1],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"showingInButton":[4,"showing-in-button"],"state":[32]},[[16,"click","bodyClickListener"]]]]],["vviinn-vpr-button",[[1,"vviinn-vpr-button",{"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"sidebarTitle":[1,"sidebar-title"],"modalScrollbar":[4,"modal-scrollbar"],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"addStyle":[4,"add-style"],"mode":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"]}]]]], options);
|
|
14
|
+
return bootstrapLazy([["vviinn-button",[[1,"vviinn-button",{"addStyle":[4,"add-style"]}]]],["cropper-handler",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error",[[1,"vviinn-error"]]],["vviinn-preloader",[[1,"vviinn-preloader"]]],["vviinn-carousel_3",[[1,"vviinn-vpr-widget",{"blockTitle":[1,"block-title"],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"productId":[1,"product-id"],"token":[1],"currencySign":[1,"currency-sign"],"pricePrefix":[1,"price-prefix"],"mode":[1],"campaignType":[1,"campaign-type"],"locale":[1],"campaigns":[1],"color":[1],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"showScroll":[4,"show-scroll"],"cssUrl":[1,"css-url"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"useCarousel":[4,"use-carousel"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"recommendations":[32],"trackingDeactivated":[32],"hasErrorOnLoad":[32]},[[0,"vviinnProductLoad","handleProductLoading"],[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"]]],[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":[16],"widgetVersion":[1,"widget-version"],"moveDirection":[32],"contentGroups":[32],"activeContentGroup":[32],"isRTL":[32]}],[1,"vviinn-product-card",{"brand":[1],"currency":[1],"deeplink":[1],"image":[1],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"locale":[1],"price":[2],"pricePrefix":[1,"price-prefix"],"productId":[1,"product-id"],"productTitle":[1,"product-title"],"productType":[1,"product-type"],"salePrice":[2,"sale-price"],"responsive":[4],"dimmedBackground":[4,"dimmed-background"],"campaignTypeId":[1,"campaign-type-id"],"widgetElementId":[1,"widget-element-id"],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"index":[2],"imageLoaded":[32]}]]],["highlight-box_22",[[1,"vviinn-image-view",{"basicEventData":[16]}],[1,"vviinn-onboarding"],[1,"vviinn-example-images",{"basicEventData":[16],"exampleImagesTitle":[1,"example-images-title"]}],[1,"vviinn-overlayed-modal",{"active":[4],"resetState":[16],"buttonElementId":[1,"button-element-id"],"hideBackButton":[4,"hide-back-button"],"widgetVersion":[1,"widget-version"]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector",{"basicEventData":[16],"startUpload":[4,"start-upload"],"resetVpsButton":[16]}],[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-privacy-badge",{"privacyBadgeText":[1,"privacy-badge-text"]}],[1,"vviinn-teaser"],[1,"image-cropper",{"disabled":[4],"basicEventData":[16],"handleMove":[32]}],[1,"vviinn-example-image",{"src":[1],"width":[2],"height":[2],"basicEventData":[16],"selected":[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{"detectedObject":[16],"basicEventData":[16],"position":[32]}],[1,"vviinn-modal",{"active":[1540],"resetState":[16],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"hideBackButton":[4,"hide-back-button"],"slider":[32]}],[1,"vviinn-onboarding-card-1",{"cardTitle":[1,"card-title"],"cardText":[1,"card-text"]}],[1,"vviinn-onboarding-card-2",{"cardTitle":[1,"card-title"],"cardText":[1,"card-text"]}],[1,"vviinn-onboarding-card-3",{"cardTitle":[1,"card-title"],"cardText":[1,"card-text"]}],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{"showBullets":[4,"show-bullets"],"position":[514],"showArrows":[4,"show-arrows"],"elementsCount":[32],"internalPosition":[32],"swipeStartPosition":[32],"isRTL":[32]}]]],["vviinn-vps-widget",[[1,"vviinn-vps-widget",{"token":[1],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"buttonPressed":[4,"button-pressed"],"mode":[1],"resetVpsButton":[16],"slidePosition":[32],"width":[32],"wrongImageFormat":[32],"trackingDeactivated":[32]},[[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"],[0,"vviinnImageCrop","trachSearchAreaChanges"],[0,"vviinnSelectObject","trackDetectedObject"],[0,"vviinnSelectFilter","trackFilter"]]]]],["vviinn-vps-button",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"addStyle":[4,"add-style"],"mode":[1],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonPressed":[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]]]],["vviinn-recommendations-sidebar",[[1,"vviinn-recommendations-sidebar",{"sidebarTitle":[1,"sidebar-title"],"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"widgetScrollbar":[4,"widget-scrollbar"],"mode":[1],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"locale":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"showingInButton":[4,"showing-in-button"],"state":[32]},[[16,"click","bodyClickListener"]]]]],["vviinn-vpr-button",[[1,"vviinn-vpr-button",{"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"sidebarTitle":[1,"sidebar-title"],"modalScrollbar":[4,"modal-scrollbar"],"campaigns":[1],"campaignType":[1,"campaign-type"],"locale":[1],"color":[1],"addStyle":[4,"add-style"],"mode":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -2,7 +2,8 @@ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent,
|
|
|
2
2
|
import { _ as _Array, O as Option, S as Semigroup, a as _function, E as Either, i as imageSearchState, s as state, c as chainW, m as makeRequest, f as fromEither, g as getApiPath, b as createInitGetRequest, A as Apply, d as map, e as match, h as arrayToQueryString, p as parseExcluded, T as TaskEither, j as checkEmpryString } from './imageSearch.store-7c025e20.js';
|
|
3
3
|
import { C as ChevronIcon } from './index-33bc6d2c.js';
|
|
4
4
|
import { c as campaignTypeNames, f as fromString, a as fold } from './Campaign-1af6ed38.js';
|
|
5
|
-
import {
|
|
5
|
+
import { i as instance } from './i18next-387f2b0a.js';
|
|
6
|
+
import { v as version } from './package-e2f2d588.js';
|
|
6
7
|
import { h as has, t as tuple, p as pipe } from './Handler-7bfee84f.js';
|
|
7
8
|
import { c as createProductViewVprEvent, a as createProductClickVprEvent, v as v4, b as createTrackingApi, d as createWidgetVprEvent } from './index-b6bd61ae.js';
|
|
8
9
|
|
|
@@ -506,68 +507,6 @@ const VviinnProductCard = class {
|
|
|
506
507
|
};
|
|
507
508
|
VviinnProductCard.style = vviinnProductCardCss;
|
|
508
509
|
|
|
509
|
-
const createBearerString = (x) => `Bearer ${x}`;
|
|
510
|
-
const createAuthedHeader = (x) => new Headers({
|
|
511
|
-
Authorization: x,
|
|
512
|
-
});
|
|
513
|
-
const createFetchAuthOptions = (x) => {
|
|
514
|
-
return {
|
|
515
|
-
headers: x,
|
|
516
|
-
};
|
|
517
|
-
};
|
|
518
|
-
const createBearAuthedHeader = _function.flow(createBearerString, createAuthedHeader, createFetchAuthOptions);
|
|
519
|
-
|
|
520
|
-
const sequenceToEither = sequenceT(Apply);
|
|
521
|
-
const apiGet = (path, data = {}) => pipe(sequenceToEither(getApiPath(), createInitGetRequest), fromEither, chainW(makeRequest(path, data)));
|
|
522
|
-
|
|
523
|
-
const getVPRRecommendations = (productId) => (color) => (excludedFilters) => (campaigns) => (options) => {
|
|
524
|
-
const url = _function.pipe(campaigns, map(encodeURIComponent), match(() => {
|
|
525
|
-
const params = [];
|
|
526
|
-
if (color)
|
|
527
|
-
params.push(`color=${color}`);
|
|
528
|
-
if (excludedFilters)
|
|
529
|
-
params.push(excludedFilters);
|
|
530
|
-
const queryString = arrayToQueryString(params);
|
|
531
|
-
return `product/${productId}/similar-products${queryString}`;
|
|
532
|
-
}, (encodedCampaignsIds) => {
|
|
533
|
-
const params = [];
|
|
534
|
-
if (encodedCampaignsIds)
|
|
535
|
-
params.push(`campaigns=${encodedCampaignsIds}`);
|
|
536
|
-
if (color)
|
|
537
|
-
params.push(`color=${color}`);
|
|
538
|
-
if (excludedFilters)
|
|
539
|
-
params.push(excludedFilters);
|
|
540
|
-
const queryString = arrayToQueryString(params);
|
|
541
|
-
return `product/${productId}/similar-products${queryString}`;
|
|
542
|
-
}));
|
|
543
|
-
return apiGet(url, options);
|
|
544
|
-
};
|
|
545
|
-
|
|
546
|
-
const getVCSRecommendations = (productId) => (color) => (excludedFilters) => (campaigns) => (options) => {
|
|
547
|
-
const url = _function.pipe(campaigns, map(encodeURIComponent), match(() => {
|
|
548
|
-
const params = [];
|
|
549
|
-
if (color)
|
|
550
|
-
params.push(`color=${color}`);
|
|
551
|
-
if (excludedFilters)
|
|
552
|
-
params.push(excludedFilters);
|
|
553
|
-
const queryString = arrayToQueryString(params);
|
|
554
|
-
return `product/${productId}/cross-selling-products${queryString}`;
|
|
555
|
-
}, (encodedCampaignsIds) => {
|
|
556
|
-
const params = [];
|
|
557
|
-
if (encodedCampaignsIds)
|
|
558
|
-
params.push(`campaigns=${encodedCampaignsIds}`);
|
|
559
|
-
if (color)
|
|
560
|
-
params.push(`color=${color}`);
|
|
561
|
-
if (excludedFilters)
|
|
562
|
-
params.push(excludedFilters);
|
|
563
|
-
const queryString = arrayToQueryString(params);
|
|
564
|
-
return `product/${productId}/cross-selling-products${queryString}`;
|
|
565
|
-
}));
|
|
566
|
-
return apiGet(url, options);
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
const getRecommendationsService = (campaignType) => _function.pipe(fromString(campaignType), fold(() => getVPRRecommendations, () => getVCSRecommendations));
|
|
570
|
-
|
|
571
510
|
function isFunction(value) {
|
|
572
511
|
return typeof value === 'function';
|
|
573
512
|
}
|
|
@@ -1176,6 +1115,81 @@ class AnonymousSubject extends Subject {
|
|
|
1176
1115
|
}
|
|
1177
1116
|
}
|
|
1178
1117
|
|
|
1118
|
+
const createBearerString = (x) => `Bearer ${x}`;
|
|
1119
|
+
const createAuthedHeader = (x) => new Headers({
|
|
1120
|
+
Authorization: x,
|
|
1121
|
+
});
|
|
1122
|
+
const createFetchAuthOptions = (x) => {
|
|
1123
|
+
return {
|
|
1124
|
+
headers: x,
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
const createBearAuthedHeader = _function.flow(createBearerString, createAuthedHeader, createFetchAuthOptions);
|
|
1128
|
+
|
|
1129
|
+
const sequenceToEither = sequenceT(Apply);
|
|
1130
|
+
const apiGet = (path, data = {}) => pipe(sequenceToEither(getApiPath(), createInitGetRequest), fromEither, chainW(makeRequest(path, data)));
|
|
1131
|
+
|
|
1132
|
+
const getVPRRecommendations = (productId) => (color) => (excludedFilters) => (campaigns) => (options) => {
|
|
1133
|
+
const url = _function.pipe(campaigns, map(encodeURIComponent), match(() => {
|
|
1134
|
+
const params = [];
|
|
1135
|
+
if (color)
|
|
1136
|
+
params.push(`color=${color}`);
|
|
1137
|
+
if (excludedFilters)
|
|
1138
|
+
params.push(excludedFilters);
|
|
1139
|
+
const queryString = arrayToQueryString(params);
|
|
1140
|
+
return `product/${productId}/similar-products${queryString}`;
|
|
1141
|
+
}, (encodedCampaignsIds) => {
|
|
1142
|
+
const params = [];
|
|
1143
|
+
if (encodedCampaignsIds)
|
|
1144
|
+
params.push(`campaigns=${encodedCampaignsIds}`);
|
|
1145
|
+
if (color)
|
|
1146
|
+
params.push(`color=${color}`);
|
|
1147
|
+
if (excludedFilters)
|
|
1148
|
+
params.push(excludedFilters);
|
|
1149
|
+
const queryString = arrayToQueryString(params);
|
|
1150
|
+
return `product/${productId}/similar-products${queryString}`;
|
|
1151
|
+
}));
|
|
1152
|
+
return apiGet(url, options);
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
const getVCSRecommendations = (productId) => (color) => (excludedFilters) => (campaigns) => (options) => {
|
|
1156
|
+
const url = _function.pipe(campaigns, map(encodeURIComponent), match(() => {
|
|
1157
|
+
const params = [];
|
|
1158
|
+
if (color)
|
|
1159
|
+
params.push(`color=${color}`);
|
|
1160
|
+
if (excludedFilters)
|
|
1161
|
+
params.push(excludedFilters);
|
|
1162
|
+
const queryString = arrayToQueryString(params);
|
|
1163
|
+
return `product/${productId}/cross-selling-products${queryString}`;
|
|
1164
|
+
}, (encodedCampaignsIds) => {
|
|
1165
|
+
const params = [];
|
|
1166
|
+
if (encodedCampaignsIds)
|
|
1167
|
+
params.push(`campaigns=${encodedCampaignsIds}`);
|
|
1168
|
+
if (color)
|
|
1169
|
+
params.push(`color=${color}`);
|
|
1170
|
+
if (excludedFilters)
|
|
1171
|
+
params.push(excludedFilters);
|
|
1172
|
+
const queryString = arrayToQueryString(params);
|
|
1173
|
+
return `product/${productId}/cross-selling-products${queryString}`;
|
|
1174
|
+
}));
|
|
1175
|
+
return apiGet(url, options);
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
const getRecommendationsService = (campaignType) => _function.pipe(fromString(campaignType), fold(() => getVPRRecommendations, () => getVCSRecommendations));
|
|
1179
|
+
|
|
1180
|
+
const resources = {
|
|
1181
|
+
de: {
|
|
1182
|
+
translation: {
|
|
1183
|
+
noResultText: "Keine Ergebnisse! Versuche es bitte später erneut.",
|
|
1184
|
+
},
|
|
1185
|
+
},
|
|
1186
|
+
en: {
|
|
1187
|
+
translation: {
|
|
1188
|
+
noResultText: "No results! Please, try again later.",
|
|
1189
|
+
},
|
|
1190
|
+
},
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1179
1193
|
const vviinnVprWidgetCss = ":host{display:grid;grid-gap:1rem;width:100%}:host(:not(.loaded)){position:absolute;visibility:hidden}:host(.grid) vviinn-product-card::part(image){border:1px solid #dddddd;width:100%}h2{margin:0}vviinn-product-card::part(price-container){align-self:flex-start;text-align:left;display:flex}.results{display:grid;grid-gap:1rem}.no-result-text{font-size:20px}.visually-hidden{position:absolute;top:0;left:0;z-index:-1;height:0;width:0}h2{margin:0}:host(.grid) h2{justify-content:center}:host(.grid) vviinn-product-card::part(image){min-width:100%}:host(.grid) vviinn-product-card::part(image-link){width:100%}:host(.grid) vviinn-product-card::part(title),:host(.grid) vviinn-product-card::part(brand),:host(.grid) vviinn-product-card::part(type){text-align:center}:host(.grid) vviinn-product-card::part(price-container){align-self:center}:host(.continuity) vviinn-product-card::part(title),:host(.continuity) vviinn-product-card::part(brand),:host(.continuity) vviinn-product-card::part(type),:host(.continuity) vviinn-product-card::part(deeplink){text-align:left;max-width:unset;align-self:start}";
|
|
1180
1194
|
|
|
1181
1195
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
@@ -1219,7 +1233,7 @@ const VviinnVprWidget = class {
|
|
|
1219
1233
|
this.campaigns = "";
|
|
1220
1234
|
this.color = "";
|
|
1221
1235
|
this.gridArrowsDynamic = false;
|
|
1222
|
-
this.noResultText = "
|
|
1236
|
+
this.noResultText = "";
|
|
1223
1237
|
this.noResultShow = true;
|
|
1224
1238
|
this.showScroll = true;
|
|
1225
1239
|
this.cssUrl = null;
|
|
@@ -1310,6 +1324,11 @@ const VviinnVprWidget = class {
|
|
|
1310
1324
|
this.trackingApi
|
|
1311
1325
|
.trackEvent(widgetOpenEvent)
|
|
1312
1326
|
.then(this.setTrackingDeactivated);
|
|
1327
|
+
instance.init({
|
|
1328
|
+
lng: this.locale,
|
|
1329
|
+
fallbackLng: "de-DE",
|
|
1330
|
+
resources,
|
|
1331
|
+
});
|
|
1313
1332
|
}
|
|
1314
1333
|
disconnectedCallback() {
|
|
1315
1334
|
if (this.trackingDeactivated)
|
|
@@ -1373,7 +1392,9 @@ const VviinnVprWidget = class {
|
|
|
1373
1392
|
empty: this.recommendations.length == 0,
|
|
1374
1393
|
[this.mode]: true,
|
|
1375
1394
|
}, "aria-hidden": "false" }, h(Fragment, null, this.renderExternalCSS(), h("style", null, state.fallbackStyles), h("h2", { part: "recommendations-title" }, this.blockTitle), this.recommendations.length > 0 &&
|
|
1376
|
-
(this.useCarousel ? this.renderCarousel() : this.renderResults()), this.recommendations.length === 0 && this.hasErrorOnLoad && (h("p", { class: "no-result-text" }, this.noResultText
|
|
1395
|
+
(this.useCarousel ? this.renderCarousel() : this.renderResults()), this.recommendations.length === 0 && this.hasErrorOnLoad && (h("p", { class: "no-result-text" }, this.noResultText.length
|
|
1396
|
+
? this.noResultText
|
|
1397
|
+
: instance.t("noResultText"))))));
|
|
1377
1398
|
}
|
|
1378
1399
|
renderRecommendation(recommendation, index) {
|
|
1379
1400
|
return (h("vviinn-product-card", { part: "product-part", productId: recommendation.productId, productTitle: recommendation.title, productType: recommendation.productType, deeplink: recommendation.deeplink, image: recommendation.image.thumbnail, brand: recommendation.brand, imageWidth: this.imageWidth, imageRatio: 1, price: recommendation.price.actual, salePrice: recommendation.price.sale, responsive: this.mode === "grid", dimmedBackground: this.useDimmedBackgroundInCard(), campaignTypeId: this.campaignType, index: index, widgetElementId: this.id, widgetVersion: version }));
|
|
@@ -18,6 +18,7 @@ const RecommendationsSidebar = class {
|
|
|
18
18
|
this.campaigns = "";
|
|
19
19
|
this.campaignType = undefined;
|
|
20
20
|
this.color = undefined;
|
|
21
|
+
this.locale = undefined;
|
|
21
22
|
this.imageWidth = 300;
|
|
22
23
|
this.currencySign = "€";
|
|
23
24
|
this.noResultText = undefined;
|
|
@@ -56,7 +57,7 @@ const RecommendationsSidebar = class {
|
|
|
56
57
|
return (_a = this.el.shadowRoot.querySelector("aside")) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
57
58
|
}
|
|
58
59
|
render() {
|
|
59
|
-
return (h(Host, { class: this.getClassMap() }, h("aside", { class: "sidebar", part: "body", onAnimationEnd: (e) => this.handleAnimationEnd(e) }, h("header", { class: { "contains-source-img": this.isSourceImageValid() }, part: "sidebar-header" }, this.isSourceImageValid() ? this.renderSourceImage() : null, h("span", { class: "title", part: "title" }, this.sidebarTitle), h("button", { class: "close-sidebar", onClick: () => (this.state = "closed") }, h(CrossIcon, null))), h("main", { part: "sidebar-content" }, h("vviinn-vpr-widget", { exportparts: "brand, currency, deeplink, image, image-link, price-amount, price-container, price-prefix, price-outdated, price-regular, price-sale, title: product-title, carousel-button, product-card, items-group", token: this.token, productId: this.productId, imageWidth: this.imageWidth, blockTitle: "", mode: this.mode, useCarousel: this.position === "bottom", onVviinnRecommendationsLoaded: () => (this.state = "open"), showScroll: this.widgetScrollbar, campaigns: this.campaigns, color: this.color, currencySign: this.currencySign, apiPath: this.apiPath, buttonElementId: this.buttonElementId, noResultText: this.noResultText, noResultShow: this.noResultShow, gridArrowsDynamic: this.gridArrowsDynamic, showingInButton: this.showingInButton, excluded: this.excluded, productDetailNewTab: this.productDetailNewTab })))));
|
|
60
|
+
return (h(Host, { class: this.getClassMap() }, h("aside", { class: "sidebar", part: "body", onAnimationEnd: (e) => this.handleAnimationEnd(e) }, h("header", { class: { "contains-source-img": this.isSourceImageValid() }, part: "sidebar-header" }, this.isSourceImageValid() ? this.renderSourceImage() : null, h("span", { class: "title", part: "title" }, this.sidebarTitle), h("button", { class: "close-sidebar", onClick: () => (this.state = "closed") }, h(CrossIcon, null))), h("main", { part: "sidebar-content" }, h("vviinn-vpr-widget", { exportparts: "brand, currency, deeplink, image, image-link, price-amount, price-container, price-prefix, price-outdated, price-regular, price-sale, title: product-title, carousel-button, product-card, items-group", token: this.token, productId: this.productId, imageWidth: this.imageWidth, blockTitle: "", mode: this.mode, useCarousel: this.position === "bottom", onVviinnRecommendationsLoaded: () => (this.state = "open"), showScroll: this.widgetScrollbar, campaigns: this.campaigns, color: this.color, currencySign: this.currencySign, apiPath: this.apiPath, locale: this.locale, buttonElementId: this.buttonElementId, noResultText: this.noResultText, noResultShow: this.noResultShow, gridArrowsDynamic: this.gridArrowsDynamic, showingInButton: this.showingInButton, excluded: this.excluded, productDetailNewTab: this.productDetailNewTab })))));
|
|
60
61
|
}
|
|
61
62
|
renderSourceImage() {
|
|
62
63
|
return (h("img", { class: "source-image", part: "source-image", src: this.sourceImage }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-48ef9564.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-e2f2d588.js';
|
|
3
3
|
import { V as VisualSearchIcon } from './index-33bc6d2c.js';
|
|
4
4
|
|
|
5
5
|
const vviinnVprButtonCss = ":host{display:block}";
|
|
@@ -26,12 +26,13 @@ const VviinnVprButton = class {
|
|
|
26
26
|
this.modalScrollbar = false;
|
|
27
27
|
this.campaigns = "";
|
|
28
28
|
this.campaignType = "VPR";
|
|
29
|
+
this.locale = "de-DE";
|
|
29
30
|
this.color = "";
|
|
30
31
|
this.addStyle = true;
|
|
31
32
|
this.mode = "continuity";
|
|
32
33
|
this.imageWidth = 300;
|
|
33
34
|
this.currencySign = "€";
|
|
34
|
-
this.noResultText = "
|
|
35
|
+
this.noResultText = "";
|
|
35
36
|
this.noResultShow = true;
|
|
36
37
|
this.gridArrowsDynamic = false;
|
|
37
38
|
this.excluded = "";
|
|
@@ -54,6 +55,7 @@ const VviinnVprButton = class {
|
|
|
54
55
|
sidebar.campaigns = this.campaigns;
|
|
55
56
|
sidebar.campaignType = this.campaignType;
|
|
56
57
|
sidebar.color = this.color;
|
|
58
|
+
sidebar.locale = this.locale;
|
|
57
59
|
sidebar.mode = this.position === "right" ? "grid" : this.mode;
|
|
58
60
|
sidebar.imageWidth = this.imageWidth;
|
|
59
61
|
sidebar.currencySign = this.currencySign;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-48ef9564.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-e2f2d588.js';
|
|
3
3
|
import { a as CameraIcon } from './index-33bc6d2c.js';
|
|
4
4
|
import { S as SlotSkeleton } from './customized-slots-b372eaed.js';
|
|
5
5
|
import { c as campaignTypeNames } from './Campaign-1af6ed38.js';
|
|
@@ -1,11 +1,73 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-48ef9564.js';
|
|
2
|
-
import { v as version } from './package-4909a9ed.js';
|
|
3
2
|
import { i as imageSearchState, s as state, a as _function, O as Option, p as parseExcluded, n as isEmpty } from './imageSearch.store-7c025e20.js';
|
|
3
|
+
import { i as instance } from './i18next-387f2b0a.js';
|
|
4
|
+
import { v as version } from './package-e2f2d588.js';
|
|
4
5
|
import { s as slotChangeListener, S as SlotSkeleton } from './customized-slots-b372eaed.js';
|
|
5
6
|
import { e as createProductViewVpsEvent, f as createProductClickVpsEvent, g as createSearchEvent, h as createFilterEvent, v as v4, b as createTrackingApi, i as createWidgetVpsEvent } from './index-b6bd61ae.js';
|
|
6
7
|
import { c as campaignTypeNames } from './Campaign-1af6ed38.js';
|
|
7
8
|
import './Handler-7bfee84f.js';
|
|
8
9
|
|
|
10
|
+
const resources = {
|
|
11
|
+
"de-DE": {
|
|
12
|
+
translation: {
|
|
13
|
+
exampleImagesTitle: "Mit den Beispielbildern die Suche direkt ausprobieren",
|
|
14
|
+
imageUploadButtonText: "Kamera oder Bild auswählen",
|
|
15
|
+
privacyBadgeText: "Durch das Hochladen eines Bildes willigst Du in die Verarbeitung durch unseren Partner Vviinn ein. Das Bild wird nach einer Stunde Inaktivität gelöscht.",
|
|
16
|
+
teaserText_1: "Finde Produkte auf",
|
|
17
|
+
teaserText_2: "einem Foto",
|
|
18
|
+
imageSearchModalTitle: "Bildsuche",
|
|
19
|
+
onboardingBlock: {
|
|
20
|
+
onboardingTitleText: "So funktioniert es",
|
|
21
|
+
onboardingCard1: {
|
|
22
|
+
title: "Starte die Bildsuche",
|
|
23
|
+
text: "Lade ein Bild aus Deiner Galerie hoch oder fotografiere ein Produkt mit Deiner Kamera.",
|
|
24
|
+
},
|
|
25
|
+
onboardingCard2: {
|
|
26
|
+
title: "Verfeiner Deine Suche",
|
|
27
|
+
text: "Du kannst den Bildrahmen selber festlegen und so die Produkte genau auswählen.",
|
|
28
|
+
},
|
|
29
|
+
onboardingCard3: {
|
|
30
|
+
title: "Ohne Hintergrund",
|
|
31
|
+
text: "Die besten Ergebnisse erhältst Du, wenn das gesuchte Objekt mit einfarbigem und hellem Hintergrund zu sehen ist.",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
emptyResultsBlock: {
|
|
35
|
+
title: "Leider nichts gefunden",
|
|
36
|
+
text: "Leider konnten wir keine passenden Produkte finden. Bitte versuche es mit einem anderen Bildausschnitt noch einmal.",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
en: {
|
|
41
|
+
translation: {
|
|
42
|
+
exampleImagesTitle: "Try out the search with the example images",
|
|
43
|
+
imageUploadButtonText: "Select camera or image",
|
|
44
|
+
privacyBadgeText: "By uploading a picture you agree to the processing by our partner Vviinn. The image will be deleted after one hour of inactivity.",
|
|
45
|
+
teaserText_1: "Find products in a photo",
|
|
46
|
+
teaserText_2: "",
|
|
47
|
+
imageSearchModalTitle: "Visual Search",
|
|
48
|
+
onboardingBlock: {
|
|
49
|
+
onboardingTitleText: "This is how it works",
|
|
50
|
+
onboardingCard1: {
|
|
51
|
+
title: "Start the Visual Search",
|
|
52
|
+
text: "Upload a picture from your gallery or take a picture of a product with your camera.",
|
|
53
|
+
},
|
|
54
|
+
onboardingCard2: {
|
|
55
|
+
title: "Refine Your Search",
|
|
56
|
+
text: "You can set the frame yourself, so you can choose exactly what you want.",
|
|
57
|
+
},
|
|
58
|
+
onboardingCard3: {
|
|
59
|
+
title: "Without Background",
|
|
60
|
+
text: "For best results, display the object you are looking for against a monochrome, light background.",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
emptyResultsBlock: {
|
|
64
|
+
title: "Sorry, nothing was found",
|
|
65
|
+
text: "Sorry, we could not find any matching products. Please try again by selecting a different area of the image.",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
9
71
|
const vviinnVpsWidgetCss = ":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{display:block}.hidden{visibility:hidden;height:1px}vviinn-overlayed-modal.first-screen::part(title),vviinn-overlayed-modal.first-screen::part(secondary-action){visibility:hidden}.start-page{display:grid;grid-template-columns:repeat(2, 1fr);min-height:580px}.start-page_block{align-content:start;border-right:1px solid #f4f4f4;display:grid;padding:48px}.start-page_block.error{align-content:center}#onboarding-block{border-right:unset;box-sizing:border-box;grid-gap:24px;overflow-y:auto;position:relative;width:100%}vviinn-teaser{margin-bottom:32px;margin-top:-24px}vviinn-image-selector{align-items:center;background:var(--color-primary, var(--color-primary-system));border-color:var(--color-primary, var(--color-primary-system));border-radius:2px;color:white;display:grid;font-size:16px;font-weight:600;height:56px;justify-items:center;margin-bottom:16px;transition:background 0.1s ease-in-out}vviinn-image-selector:hover{background:var(--color-primary-hover, var(--color-primary-hover-system));border-color:var(--color-primary-hover, var(--color-primary-hover-system))}vviinn-image-selector:active{border-color:black}.upload-button-content{display:grid;align-items:center;justify-items:start;justify-content:center;grid-template-columns:max-content auto;grid-gap:16px}.results-page{display:grid;grid-template-columns:336px auto;box-sizing:border-box}.results-page>*{padding:24px;box-sizing:border-box}.products{align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-gap:32px 16px;grid-template-columns:repeat(auto-fill, minmax(152px, 1fr));justify-items:center;padding:24px;padding-right:0;position:absolute;width:calc(100% - 16px)}.products.hidden{display:none}vviinn-empty-results{width:280px;align-self:center;justify-self:center}.products-wrapper{display:grid;overflow-y:auto;overflow-x:hidden;padding:unset;position:relative;width:100%}.image-wrapper{border-right:1px solid #f4f4f4;display:grid;grid-template-rows:min-content 1fr;grid-gap:24px;min-width:100%}.onboarding-wrapper{position:absolute;width:100%;padding:48px;box-sizing:border-box;display:grid;grid-gap:64px;padding-bottom:24px}vviinn-product-card{gap:0;width:100%}vviinn-product-card::part(image){border:1px solid #eaeaea;margin-bottom:8px}vviinn-product-card::part(price-container),vviinn-product-card::part(deeplink),vviinn-product-card::part(title){align-self:start}search-filters span{display:none}search-filters::part(filter){background:#f4f4f4;border-radius:8px;box-sizing:border-box;color:#161616;margin-bottom:4px;font-size:14px;font-weight:400;line-height:20px}search-filters:first-child::part(show-more-filters){display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #f4f4f4;min-width:40px;height:40px;border-radius:100px;box-sizing:border-box;color:#161616}search-filters::part(show-more-filters):hover{background:#eaeaea}search-filters::part(filter active){background:var(--color-primary, var(--color-primary-system));color:white}.filters-wrapper{overflow-x:auto;transform:translateX(-24px);min-width:calc(100% + 48px)}@media (max-width: 640px){.filters-wrapper{min-width:calc(100% + 40px)}}.results-page:not(.active){display:none}.nothing-found{display:grid;grid-gap:64px;justify-self:center;padding-top:64px;padding-bottom:16px;position:absolute;width:60%}@media (max-width: 768px){.start-page_block{padding:24px}.onboarding-wrapper{padding:24px}}@media (max-width: 640px){.start-page{grid-template-rows:min-content;grid-template-columns:unset;grid-gap:48px;padding:24px 0 48px 0}}@media (max-width: 640px){.results-page>*{box-sizing:border-box;padding:24px}vviinn-slide{padding-bottom:48px}.start-page_block:last-of-type{border-right:unset;overflow-y:unset;position:static;box-sizing:border-box;width:unset}.start-page_block{padding:0 24px}vviinn-teaser{margin-top:24px}.onboarding-wrapper{position:static;width:unset;padding:unset;box-sizing:border-box}.results-page{grid-template-columns:unset;grid-template-rows:min-content auto}.image{margin-bottom:8px}.image-wrapper{grid-template-rows:min-content auto;width:100%}.products-wrapper{align-content:start;position:static;overflow-y:unset;width:100%;padding-top:0}.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: 320px){.products{grid-template-columns:unset}}vviinn-wrong-format,vviinn-server-error{width:280px;align-self:center;justify-self:center}";
|
|
10
72
|
|
|
11
73
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
@@ -173,6 +235,11 @@ const VviinnVpsWidget = class {
|
|
|
173
235
|
this.uiSessionId = v4();
|
|
174
236
|
this.trackingApi = createTrackingApi(this.apiPath, this.token);
|
|
175
237
|
this.id = this.el.id;
|
|
238
|
+
instance.init({
|
|
239
|
+
lng: this.locale,
|
|
240
|
+
fallbackLng: "de-DE",
|
|
241
|
+
resources,
|
|
242
|
+
});
|
|
176
243
|
}
|
|
177
244
|
componentWillLoad() {
|
|
178
245
|
slotChangeListener(this, this.el);
|
|
@@ -259,7 +326,7 @@ const VviinnVpsWidget = class {
|
|
|
259
326
|
}
|
|
260
327
|
}, onVviinnNoResult: () => (this.wrongImageFormat = true), resetVpsButton: this.resetVpsButton, basicEventData: this.getBasicEventData(), part: "select-image_button", startUpload: this.buttonPressed &&
|
|
261
328
|
this.showingInButton &&
|
|
262
|
-
this.mode === "upload" }, h("span", { slot: "upload-button-text", class: "upload-button-content" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "29", height: "28", fill: "none" }, h("defs", null), h("path", { fill: "#fff", "fill-rule": "evenodd", d: "M10.271 3.89A.875.875 0 0111 3.5h7c.293 0 .566.146.728.39l1.49 2.235h3.033a2.625 2.625 0 012.625 2.625V21a2.625 2.625 0 01-2.625 2.625H5.75A2.625 2.625 0 013.125 21V8.75A2.625 2.625 0 015.75 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.75a.875.875 0 00-.875.875V21a.875.875 0 00.875.875h17.5a.875.875 0 00.875-.875V8.75a.875.875 0 00-.875-.875h-3.5a.875.875 0 01-.729-.39l-1.49-2.235h-6.063z", "clip-rule": "evenodd" }), h("path", { fill: "#fff", "fill-rule": "evenodd", d: "M14.5 11.375a3.062 3.062 0 100 6.125 3.062 3.062 0 000-6.125zm-4.813 3.063a4.812 4.812 0 119.625 0 4.812 4.812 0 01-9.625 0z", "clip-rule": "evenodd" })), h("slot", { name: "vviinn-image-upload-button-text" }, h("span", null, "
|
|
329
|
+
this.mode === "upload" }, h("span", { slot: "upload-button-text", class: "upload-button-content" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "29", height: "28", fill: "none" }, h("defs", null), h("path", { fill: "#fff", "fill-rule": "evenodd", d: "M10.271 3.89A.875.875 0 0111 3.5h7c.293 0 .566.146.728.39l1.49 2.235h3.033a2.625 2.625 0 012.625 2.625V21a2.625 2.625 0 01-2.625 2.625H5.75A2.625 2.625 0 013.125 21V8.75A2.625 2.625 0 015.75 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.75a.875.875 0 00-.875.875V21a.875.875 0 00.875.875h17.5a.875.875 0 00.875-.875V8.75a.875.875 0 00-.875-.875h-3.5a.875.875 0 01-.729-.39l-1.49-2.235h-6.063z", "clip-rule": "evenodd" }), h("path", { fill: "#fff", "fill-rule": "evenodd", d: "M14.5 11.375a3.062 3.062 0 100 6.125 3.062 3.062 0 000-6.125zm-4.813 3.063a4.812 4.812 0 119.625 0 4.812 4.812 0 01-9.625 0z", "clip-rule": "evenodd" })), h("slot", { name: "vviinn-image-upload-button-text" }, h("span", null, instance.t("imageUploadButtonText"))))), h("vviinn-privacy-badge", { class: { hidden: this.haveErrors() }, privacyBadgeText: instance.t("privacyBadgeText") })), h("div", { id: "onboarding-block", class: "start-page_block" }, h("div", { class: "onboarding-wrapper" }, h("vviinn-onboarding", null), h("vviinn-example-images", { part: "example-images", exampleImagesTitle: instance.t("exampleImagesTitle"), onVviinnImageUpload: () => this.handleImageSelection("example"), onVviinnNoResult: () => this.resetScroll("onboarding-block", "smooth"), basicEventData: this.getBasicEventData() })))), h("vviinn-slide", { class: { "results-page": true, active: this.slidePosition == 1 } }, h("div", { class: "image-wrapper" }, h("vviinn-image-view", { basicEventData: this.getBasicEventData() }), h("div", { class: "filters-wrapper" }, h("div", { class: "filters" }, imageSearchState.filters.map((filter) => (h("search-filters", { filter: filter, basicEventData: this.getBasicEventData() })))))), h("div", { id: "results-block", class: "products-wrapper" }, h("div", { class: {
|
|
263
330
|
"nothing-found": true,
|
|
264
331
|
hidden: imageSearchState.results.length > 0,
|
|
265
332
|
} }, h("vviinn-empty-results", null), h("vviinn-onboarding", null)), h("div", { class: {
|
|
@@ -17,5 +17,5 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return bootstrapLazy([["vviinn-button",[[1,"vviinn-button",{"addStyle":[4,"add-style"]}]]],["cropper-handler",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error",[[1,"vviinn-error"]]],["vviinn-preloader",[[1,"vviinn-preloader"]]],["vviinn-carousel_3",[[1,"vviinn-vpr-widget",{"blockTitle":[1,"block-title"],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"productId":[1,"product-id"],"token":[1],"currencySign":[1,"currency-sign"],"pricePrefix":[1,"price-prefix"],"mode":[1],"campaignType":[1,"campaign-type"],"locale":[1],"campaigns":[1],"color":[1],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"showScroll":[4,"show-scroll"],"cssUrl":[1,"css-url"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"useCarousel":[4,"use-carousel"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"recommendations":[32],"trackingDeactivated":[32],"hasErrorOnLoad":[32]},[[0,"vviinnProductLoad","handleProductLoading"],[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"]]],[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":[16],"widgetVersion":[1,"widget-version"],"moveDirection":[32],"contentGroups":[32],"activeContentGroup":[32],"isRTL":[32]}],[1,"vviinn-product-card",{"brand":[1],"currency":[1],"deeplink":[1],"image":[1],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"locale":[1],"price":[2],"pricePrefix":[1,"price-prefix"],"productId":[1,"product-id"],"productTitle":[1,"product-title"],"productType":[1,"product-type"],"salePrice":[2,"sale-price"],"responsive":[4],"dimmedBackground":[4,"dimmed-background"],"campaignTypeId":[1,"campaign-type-id"],"widgetElementId":[1,"widget-element-id"],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"index":[2],"imageLoaded":[32]}]]],["highlight-box_22",[[1,"vviinn-image-view",{"basicEventData":[16]}],[1,"vviinn-onboarding"],[1,"vviinn-example-images",{"basicEventData":[16]}],[1,"vviinn-overlayed-modal",{"active":[4],"resetState":[16],"buttonElementId":[1,"button-element-id"],"hideBackButton":[4,"hide-back-button"],"widgetVersion":[1,"widget-version"]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector",{"basicEventData":[16],"startUpload":[4,"start-upload"],"resetVpsButton":[16]}],[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-privacy-badge"],[1,"vviinn-teaser"],[1,"image-cropper",{"disabled":[4],"basicEventData":[16],"handleMove":[32]}],[1,"vviinn-example-image",{"src":[1],"width":[2],"height":[2],"basicEventData":[16],"selected":[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{"detectedObject":[16],"basicEventData":[16],"position":[32]}],[1,"vviinn-modal",{"active":[1540],"resetState":[16],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"hideBackButton":[4,"hide-back-button"],"slider":[32]}],[1,"vviinn-onboarding-card-1"],[1,"vviinn-onboarding-card-2"],[1,"vviinn-onboarding-card-3"],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{"showBullets":[4,"show-bullets"],"position":[514],"showArrows":[4,"show-arrows"],"elementsCount":[32],"internalPosition":[32],"swipeStartPosition":[32],"isRTL":[32]}]]],["vviinn-vps-widget",[[1,"vviinn-vps-widget",{"token":[1],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"buttonPressed":[4,"button-pressed"],"mode":[1],"resetVpsButton":[16],"slidePosition":[32],"width":[32],"wrongImageFormat":[32],"trackingDeactivated":[32]},[[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"],[0,"vviinnImageCrop","trachSearchAreaChanges"],[0,"vviinnSelectObject","trackDetectedObject"],[0,"vviinnSelectFilter","trackFilter"]]]]],["vviinn-vps-button",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"addStyle":[4,"add-style"],"mode":[1],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonPressed":[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]]]],["vviinn-recommendations-sidebar",[[1,"vviinn-recommendations-sidebar",{"sidebarTitle":[1,"sidebar-title"],"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"widgetScrollbar":[4,"widget-scrollbar"],"mode":[1],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"showingInButton":[4,"showing-in-button"],"state":[32]},[[16,"click","bodyClickListener"]]]]],["vviinn-vpr-button",[[1,"vviinn-vpr-button",{"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"sidebarTitle":[1,"sidebar-title"],"modalScrollbar":[4,"modal-scrollbar"],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"addStyle":[4,"add-style"],"mode":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"]}]]]], options);
|
|
20
|
+
return bootstrapLazy([["vviinn-button",[[1,"vviinn-button",{"addStyle":[4,"add-style"]}]]],["cropper-handler",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error",[[1,"vviinn-error"]]],["vviinn-preloader",[[1,"vviinn-preloader"]]],["vviinn-carousel_3",[[1,"vviinn-vpr-widget",{"blockTitle":[1,"block-title"],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"productId":[1,"product-id"],"token":[1],"currencySign":[1,"currency-sign"],"pricePrefix":[1,"price-prefix"],"mode":[1],"campaignType":[1,"campaign-type"],"locale":[1],"campaigns":[1],"color":[1],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"showScroll":[4,"show-scroll"],"cssUrl":[1,"css-url"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"useCarousel":[4,"use-carousel"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"recommendations":[32],"trackingDeactivated":[32],"hasErrorOnLoad":[32]},[[0,"vviinnProductLoad","handleProductLoading"],[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"]]],[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":[16],"widgetVersion":[1,"widget-version"],"moveDirection":[32],"contentGroups":[32],"activeContentGroup":[32],"isRTL":[32]}],[1,"vviinn-product-card",{"brand":[1],"currency":[1],"deeplink":[1],"image":[1],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"locale":[1],"price":[2],"pricePrefix":[1,"price-prefix"],"productId":[1,"product-id"],"productTitle":[1,"product-title"],"productType":[1,"product-type"],"salePrice":[2,"sale-price"],"responsive":[4],"dimmedBackground":[4,"dimmed-background"],"campaignTypeId":[1,"campaign-type-id"],"widgetElementId":[1,"widget-element-id"],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"index":[2],"imageLoaded":[32]}]]],["highlight-box_22",[[1,"vviinn-image-view",{"basicEventData":[16]}],[1,"vviinn-onboarding"],[1,"vviinn-example-images",{"basicEventData":[16],"exampleImagesTitle":[1,"example-images-title"]}],[1,"vviinn-overlayed-modal",{"active":[4],"resetState":[16],"buttonElementId":[1,"button-element-id"],"hideBackButton":[4,"hide-back-button"],"widgetVersion":[1,"widget-version"]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector",{"basicEventData":[16],"startUpload":[4,"start-upload"],"resetVpsButton":[16]}],[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-privacy-badge",{"privacyBadgeText":[1,"privacy-badge-text"]}],[1,"vviinn-teaser"],[1,"image-cropper",{"disabled":[4],"basicEventData":[16],"handleMove":[32]}],[1,"vviinn-example-image",{"src":[1],"width":[2],"height":[2],"basicEventData":[16],"selected":[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{"detectedObject":[16],"basicEventData":[16],"position":[32]}],[1,"vviinn-modal",{"active":[1540],"resetState":[16],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"hideBackButton":[4,"hide-back-button"],"slider":[32]}],[1,"vviinn-onboarding-card-1",{"cardTitle":[1,"card-title"],"cardText":[1,"card-text"]}],[1,"vviinn-onboarding-card-2",{"cardTitle":[1,"card-title"],"cardText":[1,"card-text"]}],[1,"vviinn-onboarding-card-3",{"cardTitle":[1,"card-title"],"cardText":[1,"card-text"]}],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{"showBullets":[4,"show-bullets"],"position":[514],"showArrows":[4,"show-arrows"],"elementsCount":[32],"internalPosition":[32],"swipeStartPosition":[32],"isRTL":[32]}]]],["vviinn-vps-widget",[[1,"vviinn-vps-widget",{"token":[1],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"buttonPressed":[4,"button-pressed"],"mode":[1],"resetVpsButton":[16],"slidePosition":[32],"width":[32],"wrongImageFormat":[32],"trackingDeactivated":[32]},[[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"],[0,"vviinnImageCrop","trachSearchAreaChanges"],[0,"vviinnSelectObject","trackDetectedObject"],[0,"vviinnSelectFilter","trackFilter"]]]]],["vviinn-vps-button",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"addStyle":[4,"add-style"],"mode":[1],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonPressed":[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]]]],["vviinn-recommendations-sidebar",[[1,"vviinn-recommendations-sidebar",{"sidebarTitle":[1,"sidebar-title"],"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"widgetScrollbar":[4,"widget-scrollbar"],"mode":[1],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"locale":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonElementId":[1,"button-element-id"],"widgetVersion":[1,"widget-version"],"showingInButton":[4,"showing-in-button"],"state":[32]},[[16,"click","bodyClickListener"]]]]],["vviinn-vpr-button",[[1,"vviinn-vpr-button",{"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"sidebarTitle":[1,"sidebar-title"],"modalScrollbar":[4,"modal-scrollbar"],"campaigns":[1],"campaignType":[1,"campaign-type"],"locale":[1],"color":[1],"addStyle":[4,"add-style"],"mode":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"excluded":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"]}]]]], options);
|
|
21
21
|
});
|
|
@@ -5,6 +5,7 @@ export declare class VviinnExampleImages {
|
|
|
5
5
|
vviinnImageUpload: EventEmitter<BasicEventData>;
|
|
6
6
|
vviinnNoResult: EventEmitter<BasicEventData>;
|
|
7
7
|
basicEventData: BasicEventData;
|
|
8
|
+
exampleImagesTitle: string;
|
|
8
9
|
private imagesBlock;
|
|
9
10
|
componentWillLoad(): void;
|
|
10
11
|
private delegateFocus;
|
package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { EventEmitter } from "../../../stencil-public-runtime";
|
|
|
2
2
|
import { CarouselMode } from "../../vviinn-carousel/vviinn-carousel";
|
|
3
3
|
import { BasicEventData } from "../../../recommendation/events";
|
|
4
4
|
import { CampaignTypeId } from "../../../campaign/Campaign";
|
|
5
|
+
import { Locale } from "../../../locale";
|
|
5
6
|
type SidebarState = "idle" | "open" | "closed";
|
|
6
7
|
type ClickEvent = Event & {
|
|
7
8
|
clientX: number;
|
|
@@ -20,6 +21,7 @@ export declare class RecommendationsSidebar {
|
|
|
20
21
|
campaigns: string;
|
|
21
22
|
campaignType: CampaignTypeId;
|
|
22
23
|
color: string;
|
|
24
|
+
locale: Locale;
|
|
23
25
|
imageWidth: number;
|
|
24
26
|
currencySign: string;
|
|
25
27
|
noResultText: string;
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from "../../stencil-public-runtime";
|
|
|
2
2
|
import { CarouselMode } from "../vviinn-carousel/vviinn-carousel";
|
|
3
3
|
import { CampaignName } from "../../campaign/Campaign";
|
|
4
4
|
import { BasicEventData, ProductCardEventData } from "../../recommendation/events";
|
|
5
|
+
import { Locale } from "../../locale";
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
7
8
|
* @part button - Clickable button element.
|
|
@@ -17,7 +18,7 @@ export declare class VviinnVprButton {
|
|
|
17
18
|
position: "bottom" | "right";
|
|
18
19
|
/** Image for showing in the modal's header */
|
|
19
20
|
sourceImage: string | null;
|
|
20
|
-
/** Sidebar title */
|
|
21
|
+
/** Sidebar title (change it to fit your locale) */
|
|
21
22
|
sidebarTitle: string;
|
|
22
23
|
/** Show or hide the scrollbar */
|
|
23
24
|
modalScrollbar: boolean;
|
|
@@ -25,6 +26,8 @@ export declare class VviinnVprButton {
|
|
|
25
26
|
campaigns: string;
|
|
26
27
|
/** Campaign type */
|
|
27
28
|
campaignType: CampaignName;
|
|
29
|
+
/** The locale for currency formatting and text localization */
|
|
30
|
+
locale: Locale;
|
|
28
31
|
/** Accepts any hex color code */
|
|
29
32
|
color: string;
|
|
30
33
|
/** Add default styles to the button */
|
|
@@ -35,7 +38,7 @@ export declare class VviinnVprButton {
|
|
|
35
38
|
imageWidth: number;
|
|
36
39
|
/** The currency sign is displayed after the price */
|
|
37
40
|
currencySign: string;
|
|
38
|
-
/**
|
|
41
|
+
/** A custom message is displayed when no results */
|
|
39
42
|
noResultText: string;
|
|
40
43
|
/** Showing a message (when true) or hiding the whole widget, when no results */
|
|
41
44
|
noResultShow: boolean;
|
|
@@ -4,6 +4,7 @@ import { CarouselMode } from "../vviinn-carousel/vviinn-carousel";
|
|
|
4
4
|
import { Recommendation } from "../../recommendation/recommendation";
|
|
5
5
|
import { DefaultApi, EventConfirmation } from "vviinn-tracking-client-ts";
|
|
6
6
|
import { ProductCardEvent, BasicEventData, ProductCardEventData } from "../../recommendation/events";
|
|
7
|
+
import { Locale } from "../../locale";
|
|
7
8
|
/**
|
|
8
9
|
* @part product-card - Product Card itself.
|
|
9
10
|
* @part product-part - Will be deprecated. Use "product-card" instead.
|
|
@@ -27,7 +28,7 @@ import { ProductCardEvent, BasicEventData, ProductCardEventData } from "../../re
|
|
|
27
28
|
*/
|
|
28
29
|
export declare class VviinnVprWidget implements ComponentInterface {
|
|
29
30
|
el: HTMLElement;
|
|
30
|
-
/** Widget’s title */
|
|
31
|
+
/** Widget’s title (change it to fit your locale) */
|
|
31
32
|
blockTitle: string;
|
|
32
33
|
/** The ratio of each recommended product image */
|
|
33
34
|
imageRatio: number;
|
|
@@ -45,15 +46,15 @@ export declare class VviinnVprWidget implements ComponentInterface {
|
|
|
45
46
|
mode: CarouselMode;
|
|
46
47
|
/** Campaign type */
|
|
47
48
|
campaignType: CampaignName;
|
|
48
|
-
/** The locale for currency formatting */
|
|
49
|
-
locale:
|
|
49
|
+
/** The locale for currency formatting and text localization */
|
|
50
|
+
locale: Locale;
|
|
50
51
|
/** Comma-separated list of campaign IDs */
|
|
51
52
|
campaigns: string;
|
|
52
53
|
/** Accepts any hex color code */
|
|
53
54
|
color: string;
|
|
54
55
|
/** Hiding disabled arrows in the carousel if true */
|
|
55
56
|
gridArrowsDynamic: boolean;
|
|
56
|
-
/**
|
|
57
|
+
/** A custom message is displayed when no results */
|
|
57
58
|
noResultText: string;
|
|
58
59
|
/** Showing a message (when true) or hiding the whole widget, when no results */
|
|
59
60
|
noResultShow: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { BasicEventData, ProductCardEventData, SelectFilterEventData, SelectObjectEventData } from "../../recommendation/events";
|
|
3
|
+
import { Locale } from "../../locale";
|
|
3
4
|
/**
|
|
4
5
|
* @slot vviinn-onboarding-title - Title of onboarding section.
|
|
5
6
|
* @slot onboarding-card-1-icon - Icon (or other graphics) on the first onboarding slide.
|
|
@@ -41,8 +42,8 @@ export declare class VviinnVpsButton {
|
|
|
41
42
|
token: string;
|
|
42
43
|
/** The currency sign is displayed after the price */
|
|
43
44
|
currencySign: string;
|
|
44
|
-
/** The locale for currency formatting */
|
|
45
|
-
locale:
|
|
45
|
+
/** The locale for currency formatting and text localization */
|
|
46
|
+
locale: Locale;
|
|
46
47
|
/** Campaign ID applied for visual search */
|
|
47
48
|
campaignId: string;
|
|
48
49
|
/** Add style to the button */
|