vviinn-widgets 2.212.0 → 2.212.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-GQsCGYnk.js → index-CJKVHgfb.js} +1 -1
- package/dist/cjs/{search.store-9aB2h6sP.js → search.store-C2rPzL3v.js} +212 -1
- package/dist/cjs/vviinn-button_6.cjs.entry.js +8 -9
- package/dist/cjs/vviinn-camera_12.cjs.entry.js +19 -20
- package/dist/cjs/vviinn-carousel_10.cjs.entry.js +14 -15
- package/dist/cjs/vviinn-shop-the-look.cjs.entry.js +3 -3
- package/dist/cjs/vviinn-text-search.cjs.entry.js +3 -4
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +1 -1
- package/dist/collection/components/vviinn-shop-the-look/vviinn-shop-the-look.css +13 -0
- package/dist/collection/components/vviinn-shop-the-look/vviinn-shop-the-look.js +6 -1
- package/dist/collection/components/vviinn-skeleton/vviinn-skeleton.js +1 -1
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +1 -1
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +1 -1
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +1 -1
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +2 -2
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +3 -3
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +1 -1
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +1 -1
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +10 -10
- package/dist/collection/cssParts/index.js +6 -0
- package/dist/esm/{index-d-dfDo_d.js → index-Bji41ttI.js} +1 -1
- package/dist/esm/{search.store-Cu5Qyxyw.js → search.store-Dc6x2-eO.js} +195 -2
- package/dist/esm/vviinn-button_6.entry.js +5 -6
- package/dist/esm/vviinn-camera_12.entry.js +15 -16
- package/dist/esm/vviinn-carousel_10.entry.js +3 -4
- package/dist/esm/vviinn-shop-the-look.entry.js +3 -3
- package/dist/esm/vviinn-text-search.entry.js +3 -4
- package/dist/esm/vviinn-vps-button.entry.js +1 -1
- package/dist/types/components/vviinn-shop-the-look/vviinn-shop-the-look.d.ts +4 -0
- package/dist/types/cssParts/index.d.ts +2 -0
- package/dist/vviinn-widgets/p-3460bdf2.entry.js +1 -0
- package/dist/vviinn-widgets/{p-116818e8.entry.js → p-53d668c3.entry.js} +1 -1
- package/dist/vviinn-widgets/p-53f43a60.entry.js +1 -0
- package/dist/vviinn-widgets/p-8d9f3ed6.entry.js +1 -0
- package/dist/vviinn-widgets/p-CTVEWUxM.js +1 -0
- package/dist/vviinn-widgets/p-bb2d9c04.entry.js +1 -0
- package/dist/vviinn-widgets/p-cafcec5a.entry.js +1 -0
- package/dist/vviinn-widgets/{p-DCz_PwWi.js → p-ljKrmpLU.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-5f9b898f.js → p-15f014dc.js} +1 -1
- package/www/build/p-3460bdf2.entry.js +1 -0
- package/www/build/{p-116818e8.entry.js → p-53d668c3.entry.js} +1 -1
- package/www/build/p-53f43a60.entry.js +1 -0
- package/www/build/p-8d9f3ed6.entry.js +1 -0
- package/www/build/p-CTVEWUxM.js +1 -0
- package/www/build/p-bb2d9c04.entry.js +1 -0
- package/www/build/p-cafcec5a.entry.js +1 -0
- package/www/build/{p-DCz_PwWi.js → p-ljKrmpLU.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/index-Gr3ffb3S.js +0 -206
- package/dist/esm/index-_UEY7l0m.js +0 -188
- package/dist/vviinn-widgets/p-6ba1960e.entry.js +0 -1
- package/dist/vviinn-widgets/p-70b0a2a0.entry.js +0 -1
- package/dist/vviinn-widgets/p-91251108.entry.js +0 -1
- package/dist/vviinn-widgets/p-DUKch2Ty.js +0 -1
- package/dist/vviinn-widgets/p-_UEY7l0m.js +0 -1
- package/dist/vviinn-widgets/p-c20abc85.entry.js +0 -1
- package/dist/vviinn-widgets/p-dcfe2758.entry.js +0 -1
- package/www/build/p-6ba1960e.entry.js +0 -1
- package/www/build/p-70b0a2a0.entry.js +0 -1
- package/www/build/p-91251108.entry.js +0 -1
- package/www/build/p-DUKch2Ty.js +0 -1
- package/www/build/p-_UEY7l0m.js +0 -1
- package/www/build/p-c20abc85.entry.js +0 -1
- package/www/build/p-dcfe2758.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-OrE9ITel.js');
|
|
4
|
-
var search_store = require('./search.store-
|
|
4
|
+
var search_store = require('./search.store-C2rPzL3v.js');
|
|
5
5
|
var store = require('./store-jPZ4ROqV.js');
|
|
6
6
|
|
|
7
7
|
const PlusIcon = () => (index.h("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "plus-icon", "aria-hidden": "true" },
|
|
@@ -7647,6 +7647,199 @@ const addIfNotEmpty = (key, value) => value && (Array.isArray(value) ? value.len
|
|
|
7647
7647
|
: {};
|
|
7648
7648
|
const addNestedIfNotEmpty = (key, nested) => nested && Object.keys(nested).length > 0 ? { [key]: nested } : {};
|
|
7649
7649
|
|
|
7650
|
+
const generalFiltersPartsList = [
|
|
7651
|
+
"filters-sub-row",
|
|
7652
|
+
"filters-option-button",
|
|
7653
|
+
"filters-option-image",
|
|
7654
|
+
"filters-option-color-dot",
|
|
7655
|
+
"filters-option-text",
|
|
7656
|
+
"filters-option-icon-wrapper",
|
|
7657
|
+
];
|
|
7658
|
+
const extendedFiltersPartsList = [
|
|
7659
|
+
"extended-filters-button",
|
|
7660
|
+
"extended-filters-modal",
|
|
7661
|
+
"extended-filters-modal-wrapper",
|
|
7662
|
+
"extended-filters-header",
|
|
7663
|
+
"extended-filters-title",
|
|
7664
|
+
"extended-filters-modal-close",
|
|
7665
|
+
"extended-filters-no-filters",
|
|
7666
|
+
"extended-filters-list",
|
|
7667
|
+
"extended-filters-main",
|
|
7668
|
+
"extended-filters-row",
|
|
7669
|
+
"extended-filters-row-wrapper",
|
|
7670
|
+
"extended-filters-main-button",
|
|
7671
|
+
"extended-filters-selected-wrapper",
|
|
7672
|
+
"extended-filters-sub-list",
|
|
7673
|
+
"extended-filters-actions",
|
|
7674
|
+
"extended-filters-apply",
|
|
7675
|
+
"extended-filters-reset",
|
|
7676
|
+
];
|
|
7677
|
+
const filtersPartsList = [
|
|
7678
|
+
"filters-wrapper",
|
|
7679
|
+
"filters-list",
|
|
7680
|
+
"filters-main-button",
|
|
7681
|
+
"filters-footer",
|
|
7682
|
+
"filters-footer-list",
|
|
7683
|
+
"filters-sub-button",
|
|
7684
|
+
];
|
|
7685
|
+
const selectedFiltersPartsList = ["selected-filters-list"];
|
|
7686
|
+
const searchPartsList = [
|
|
7687
|
+
"filters-search-container",
|
|
7688
|
+
"filters-search-input-container",
|
|
7689
|
+
"filters-search-icon",
|
|
7690
|
+
"filters-search-input",
|
|
7691
|
+
];
|
|
7692
|
+
const histogramPartsList = [
|
|
7693
|
+
"histogram",
|
|
7694
|
+
"histogram-bar",
|
|
7695
|
+
"histogram-range-container",
|
|
7696
|
+
"histogram-sliders-control",
|
|
7697
|
+
"histogram-from-slider",
|
|
7698
|
+
"histogram-to-slider",
|
|
7699
|
+
"histogram-label-wrapper",
|
|
7700
|
+
"histogram-label",
|
|
7701
|
+
"histogram-input-container",
|
|
7702
|
+
"histogram-input-label",
|
|
7703
|
+
"histogram-from-input",
|
|
7704
|
+
"histogram-to-input",
|
|
7705
|
+
];
|
|
7706
|
+
|
|
7707
|
+
const imagePartsList = [
|
|
7708
|
+
"image",
|
|
7709
|
+
"image-container",
|
|
7710
|
+
"image-picture",
|
|
7711
|
+
"image-placeholder",
|
|
7712
|
+
"image-skeleton",
|
|
7713
|
+
"image-link",
|
|
7714
|
+
"content-card-image",
|
|
7715
|
+
"content-card-image-container",
|
|
7716
|
+
"content-card-image-picture",
|
|
7717
|
+
"list-card-image",
|
|
7718
|
+
"list-card-image-container",
|
|
7719
|
+
"list-card-image-picture",
|
|
7720
|
+
];
|
|
7721
|
+
const productCardGeneralPartsList = [
|
|
7722
|
+
"product-card",
|
|
7723
|
+
"content-container",
|
|
7724
|
+
"brand",
|
|
7725
|
+
"product-type",
|
|
7726
|
+
"currency",
|
|
7727
|
+
"deeplink",
|
|
7728
|
+
"title",
|
|
7729
|
+
"basket-button",
|
|
7730
|
+
"basket-button-container",
|
|
7731
|
+
"update-button-item",
|
|
7732
|
+
"product-card-actions",
|
|
7733
|
+
"product-card-actions-top",
|
|
7734
|
+
"favorite-button",
|
|
7735
|
+
"discount-label",
|
|
7736
|
+
"discount-percentage",
|
|
7737
|
+
"product-images-pagination",
|
|
7738
|
+
"product-images-pagination-bullet",
|
|
7739
|
+
"product-images-pagination-bullet-active",
|
|
7740
|
+
];
|
|
7741
|
+
const energyLabelPartsList = [
|
|
7742
|
+
"energy-label-container",
|
|
7743
|
+
"energy-label-icon",
|
|
7744
|
+
"energy-label-product-type",
|
|
7745
|
+
"energy-label-data-sheet-link",
|
|
7746
|
+
];
|
|
7747
|
+
const customLabelPartsList = [
|
|
7748
|
+
"custom-label-0",
|
|
7749
|
+
"custom-label-1",
|
|
7750
|
+
"custom-label-2",
|
|
7751
|
+
"custom-label-3",
|
|
7752
|
+
"custom-label-4",
|
|
7753
|
+
"custom-label-content",
|
|
7754
|
+
"custom-label-image",
|
|
7755
|
+
];
|
|
7756
|
+
const pricePartsList = [
|
|
7757
|
+
"price-container",
|
|
7758
|
+
"price-regular",
|
|
7759
|
+
"price-sale",
|
|
7760
|
+
"price-outdated",
|
|
7761
|
+
"price-amount-regular",
|
|
7762
|
+
"price-amount-sale",
|
|
7763
|
+
"price-amount-outdated",
|
|
7764
|
+
"price-amount-base-regular",
|
|
7765
|
+
"price-amount-base-sale",
|
|
7766
|
+
"price-amount-base-outdated",
|
|
7767
|
+
"price-prefix",
|
|
7768
|
+
];
|
|
7769
|
+
const contentCardPartsList = [
|
|
7770
|
+
"content-card",
|
|
7771
|
+
"content-card-content-container",
|
|
7772
|
+
"content-label",
|
|
7773
|
+
"content-title",
|
|
7774
|
+
"content-link",
|
|
7775
|
+
];
|
|
7776
|
+
const listCardPartsList = [
|
|
7777
|
+
"list-card",
|
|
7778
|
+
"list-card-content-container",
|
|
7779
|
+
"list-label",
|
|
7780
|
+
"list-title",
|
|
7781
|
+
];
|
|
7782
|
+
|
|
7783
|
+
const suggestionsPartsList = [
|
|
7784
|
+
"suggestions-container",
|
|
7785
|
+
"suggestions-header",
|
|
7786
|
+
"suggestions-icon",
|
|
7787
|
+
"suggestions-title",
|
|
7788
|
+
"suggestions-description",
|
|
7789
|
+
"suggestions-wrapper",
|
|
7790
|
+
"suggestions-list",
|
|
7791
|
+
"suggestion-item",
|
|
7792
|
+
"suggestion-link",
|
|
7793
|
+
"suggestion-filter-button",
|
|
7794
|
+
];
|
|
7795
|
+
|
|
7796
|
+
const makeExportPartsString = (...args) => args.flat().join(", ");
|
|
7797
|
+
const extendedFiltersParts = makeExportPartsString(extendedFiltersPartsList, histogramPartsList, generalFiltersPartsList, searchPartsList);
|
|
7798
|
+
const filtersParts = makeExportPartsString(filtersPartsList, histogramPartsList, generalFiltersPartsList);
|
|
7799
|
+
const selectedFiltersParts = makeExportPartsString(selectedFiltersPartsList, generalFiltersPartsList);
|
|
7800
|
+
const priceRangeParts = makeExportPartsString(histogramPartsList);
|
|
7801
|
+
const energyLabelParts = makeExportPartsString(energyLabelPartsList);
|
|
7802
|
+
const productCardsGridPart = "products";
|
|
7803
|
+
const imageParts = makeExportPartsString(imagePartsList);
|
|
7804
|
+
const productCardParts = makeExportPartsString(productCardGeneralPartsList, imagePartsList, pricePartsList, customLabelPartsList, energyLabelPartsList);
|
|
7805
|
+
const contentCardParts = makeExportPartsString(contentCardPartsList, imagePartsList);
|
|
7806
|
+
const listCardParts = makeExportPartsString(listCardPartsList, imagePartsList);
|
|
7807
|
+
const searchWidgetFilterParts = makeExportPartsString(extendedFiltersPartsList, filtersPartsList, histogramPartsList, searchPartsList, generalFiltersPartsList, selectedFiltersPartsList);
|
|
7808
|
+
const searchWidgetButtonParts = makeExportPartsString([
|
|
7809
|
+
"upload-photo_button",
|
|
7810
|
+
"start-camera_button",
|
|
7811
|
+
]);
|
|
7812
|
+
const searchBarParts = makeExportPartsString([
|
|
7813
|
+
"text-search-input",
|
|
7814
|
+
"text-search-button",
|
|
7815
|
+
"speech-button",
|
|
7816
|
+
"text-search-tooltip",
|
|
7817
|
+
"text-search-container",
|
|
7818
|
+
]);
|
|
7819
|
+
const recommendationsParts = makeExportPartsString([
|
|
7820
|
+
"recommendations-title",
|
|
7821
|
+
"recommendations-subtitle",
|
|
7822
|
+
]);
|
|
7823
|
+
const carouselParts = makeExportPartsString([
|
|
7824
|
+
"items-group",
|
|
7825
|
+
"carousel-button",
|
|
7826
|
+
"carousel-button-prev",
|
|
7827
|
+
"carousel-button-next",
|
|
7828
|
+
"recommendations-results",
|
|
7829
|
+
]);
|
|
7830
|
+
const modalParts = makeExportPartsString([
|
|
7831
|
+
"results-title",
|
|
7832
|
+
"close-button",
|
|
7833
|
+
"secondary-action",
|
|
7834
|
+
]);
|
|
7835
|
+
const suggestionsParts = makeExportPartsString(suggestionsPartsList);
|
|
7836
|
+
const shopTheLookPartsList = [
|
|
7837
|
+
"shop-the-look-upload-button",
|
|
7838
|
+
"shop-the-look-upload-button-icon",
|
|
7839
|
+
"shop-the-look-upload-button-text",
|
|
7840
|
+
];
|
|
7841
|
+
const shopTheLookParts = makeExportPartsString(shopTheLookPartsList);
|
|
7842
|
+
|
|
7650
7843
|
const extractFilterValue = (filterValue) => { var _a, _b; return (_b = (_a = filterValue.interval) !== null && _a !== void 0 ? _a : filterValue.value) !== null && _b !== void 0 ? _b : filterValue; };
|
|
7651
7844
|
const valueToString = (val) => {
|
|
7652
7845
|
if (val === null || val === undefined)
|
|
@@ -8593,7 +8786,7 @@ const encodeToBase64UTF8 = (str) => {
|
|
|
8593
8786
|
return btoa(String.fromCharCode.apply(null, utf8Array));
|
|
8594
8787
|
};
|
|
8595
8788
|
|
|
8596
|
-
const version = "2.212.
|
|
8789
|
+
const version = "2.212.1";
|
|
8597
8790
|
|
|
8598
8791
|
const appStateGlobalDefaults = {
|
|
8599
8792
|
excluded: null,
|
|
@@ -8865,29 +9058,47 @@ const makeAutoSuggestRequest = async (store, query, token, apiPath) => {
|
|
|
8865
9058
|
exports._ArrayExports = _ArrayExports;
|
|
8866
9059
|
exports.addIfNotEmpty = addIfNotEmpty;
|
|
8867
9060
|
exports.campaignTypeNames = campaignTypeNames;
|
|
9061
|
+
exports.carouselParts = carouselParts;
|
|
8868
9062
|
exports.checkDeviceType = checkDeviceType;
|
|
8869
9063
|
exports.checkImageType = checkImageType;
|
|
9064
|
+
exports.contentCardParts = contentCardParts;
|
|
9065
|
+
exports.energyLabelParts = energyLabelParts;
|
|
9066
|
+
exports.extendedFiltersParts = extendedFiltersParts;
|
|
8870
9067
|
exports.extractFilterValue = extractFilterValue;
|
|
9068
|
+
exports.filtersParts = filtersParts;
|
|
8871
9069
|
exports.fold = fold;
|
|
8872
9070
|
exports.fromString = fromString;
|
|
8873
9071
|
exports.getAcceptableFileFormats = getAcceptableFileFormats;
|
|
8874
9072
|
exports.getAcceptableFileFormatsForDisplay = getAcceptableFileFormatsForDisplay;
|
|
8875
9073
|
exports.getImageSizes = getImageSizes;
|
|
8876
9074
|
exports.imageFromFileTask = imageFromFileTask;
|
|
9075
|
+
exports.imageParts = imageParts;
|
|
8877
9076
|
exports.isDesktop = isDesktop;
|
|
8878
9077
|
exports.isIntervalMatch = isIntervalMatch;
|
|
8879
9078
|
exports.isMobile = isMobile;
|
|
8880
9079
|
exports.isValueMatch = isValueMatch;
|
|
9080
|
+
exports.listCardParts = listCardParts;
|
|
8881
9081
|
exports.makeAutoSuggestRequest = makeAutoSuggestRequest;
|
|
8882
9082
|
exports.makeProductListingPageRequest = makeProductListingPageRequest;
|
|
8883
9083
|
exports.makeTextSearchRequest = makeTextSearchRequest;
|
|
8884
9084
|
exports.makeUploadFileRequest = makeUploadFileRequest;
|
|
8885
9085
|
exports.makeVisualSearchRequest = makeVisualSearchRequest;
|
|
9086
|
+
exports.modalParts = modalParts;
|
|
8886
9087
|
exports.parseStringToExcluded = parseStringToExcluded;
|
|
9088
|
+
exports.priceRangeParts = priceRangeParts;
|
|
9089
|
+
exports.productCardParts = productCardParts;
|
|
9090
|
+
exports.productCardsGridPart = productCardsGridPart;
|
|
9091
|
+
exports.recommendationsParts = recommendationsParts;
|
|
8887
9092
|
exports.resetStore = resetStore;
|
|
9093
|
+
exports.searchBarParts = searchBarParts;
|
|
8888
9094
|
exports.searchState = searchState;
|
|
9095
|
+
exports.searchWidgetButtonParts = searchWidgetButtonParts;
|
|
9096
|
+
exports.searchWidgetFilterParts = searchWidgetFilterParts;
|
|
9097
|
+
exports.selectedFiltersParts = selectedFiltersParts;
|
|
8889
9098
|
exports.setTextSearchQuery = setTextSearchQuery;
|
|
9099
|
+
exports.shopTheLookParts = shopTheLookParts;
|
|
8890
9100
|
exports.shopTheLookState = shopTheLookState;
|
|
9101
|
+
exports.suggestionsParts = suggestionsParts;
|
|
8891
9102
|
exports.toFile = toFile;
|
|
8892
9103
|
exports.useSearchStore = useSearchStore;
|
|
8893
9104
|
exports.valueToString = valueToString;
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-OrE9ITel.js');
|
|
4
4
|
var store = require('./store-jPZ4ROqV.js');
|
|
5
|
-
var search_store = require('./search.store-
|
|
5
|
+
var search_store = require('./search.store-C2rPzL3v.js');
|
|
6
6
|
var customizedSlots = require('./customized-slots-CqOPLiML.js');
|
|
7
7
|
var SecondaryActionIcon = require('./SecondaryActionIcon-BZg-ADIW.js');
|
|
8
|
-
var index$2 = require('./index-Gr3ffb3S.js');
|
|
9
8
|
var index$1 = require('./index-DLEDOlRe.js');
|
|
10
9
|
var Rectangle = require('./Rectangle-7dF6_xf3.js');
|
|
11
|
-
var index$
|
|
10
|
+
var index$2 = require('./index-CzqCGUTk.js');
|
|
12
11
|
|
|
13
12
|
const CrossIcon = () => (index.h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
14
13
|
index.h("path", { d: "M16 1.4L14.6 0L8 6.6L1.4 0L0 1.4L6.6 8L0 14.6L1.4 16L8 9.4L14.6 16L16 14.6L9.4 8L16 1.4Z", fill: "currentColor" })));
|
|
@@ -168,7 +167,7 @@ const VviinnModal = class {
|
|
|
168
167
|
}, this.slider ? index$1.SIDEBAR_ANIMATION_DURATION : 0);
|
|
169
168
|
}
|
|
170
169
|
render() {
|
|
171
|
-
return (index.h(index.Host, { key: '2a16919fe88ccbb72795311fb6b8af471f043700', exportparts:
|
|
170
|
+
return (index.h(index.Host, { key: '2a16919fe88ccbb72795311fb6b8af471f043700', exportparts: search_store.modalParts, class: { closed: !this.active, "first-screen": this.isFirstScreen }, onAnimationEnd: this.handleAnimationEnd, role: "dialog", "aria-modal": this.active ? "true" : "false", "aria-label": store.instance.t("imageSearchModalTitle"), inert: !this.active ? true : undefined }, index.h("div", { key: 'c4fcf804eda5eb693d99af7feb00e3225ec7487e', class: "head" }, !this.hideBackButton && (index.h("button", { key: '4e9fd4c897201550c12718dda82b230381023b69', part: "secondary-action", onClick: () => {
|
|
172
171
|
this.resetState();
|
|
173
172
|
this.resetTopScroll();
|
|
174
173
|
}, "aria-label": store.instance.t("a11y.backButton") }, index.h(SecondaryActionIcon.SecondaryActionIcon, { key: '9c2669a30956cf13c3907c08cffc4f96b4ac9ab6' }))), index.h("div", { key: '6a035cd0270f40739e17290b6c71559e2edc88ee', class: "title", part: "results-title" }, renderTitleImage(search_store.searchState.image), index.h("slot", { key: 'f346c0bd895c16a4a6f1655977bfe59383968c74', name: "vviinn-image-search-modal-title" }, store.instance.t("imageSearchModalTitle"))), index.h("button", { key: 'eee9e1c6721a87ca543d9d4167a41a2ce4b895b3', onClick: () => this.close(), onKeyDown: this.handleCloseButtonKeyDown, class: "close-button", part: "close-button", "aria-label": store.instance.t("a11y.closeButton") }, index.h("svg", { key: '62b14679a4830b11c616a4a1ef3be8cb102a476e', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, index.h("path", { key: '239b466c878e112d8b47f23982f856718fe1150c', d: "M12 13.3892L6.91958 18.4696C6.72248 18.6667 6.49095 18.7653 6.225 18.7653C5.95905 18.7653 5.72753 18.6667 5.53043 18.4696C5.33333 18.2725 5.23478 18.041 5.23478 17.775C5.23478 17.5091 5.33333 17.2776 5.53043 17.0805L10.6109 12L5.53043 6.9196C5.33333 6.7225 5.23478 6.49098 5.23478 6.22503C5.23478 5.95908 5.33333 5.72755 5.53043 5.53045C5.72753 5.33335 5.95905 5.2348 6.225 5.2348C6.49095 5.2348 6.72248 5.33335 6.91958 5.53045L12 10.6109L17.0804 5.53045C17.2775 5.33335 17.5091 5.2348 17.775 5.2348C18.041 5.2348 18.2725 5.33335 18.4696 5.53045C18.6667 5.72755 18.7652 5.95908 18.7652 6.22503C18.7652 6.49098 18.6667 6.7225 18.4696 6.9196L13.3892 12L18.4696 17.0805C18.6667 17.2776 18.7652 17.5091 18.7652 17.775C18.7652 18.041 18.6667 18.2725 18.4696 18.4696C18.2725 18.6667 18.041 18.7653 17.775 18.7653C17.5091 18.7653 17.2775 18.6667 17.0804 18.4696L12 13.3892Z", fill: "currentColor" })))), index.h("div", { key: 'd9d9be37267bf710b9b02ba54a8970cc7a3dae44', class: "body" }, index.h("slot", { key: '21d2d31cdc4350c170898f9572cf64b1de06d795' }))));
|
|
@@ -347,17 +346,17 @@ const RecommendationsSidebar = class {
|
|
|
347
346
|
}
|
|
348
347
|
render() {
|
|
349
348
|
var _a;
|
|
350
|
-
return (index.h(index.Host, { key: '
|
|
349
|
+
return (index.h(index.Host, { key: 'fa22d68e16838a5453bd0de3df7e287469badb5d', class: this.getClassMap(), style: { display: this.hidden ? "none" : undefined }, exportparts: `body, close-sidebar, ${search_store.carouselParts}, ${search_store.productCardParts}, ${search_store.recommendationsParts}` }, index.h("div", { key: '6a6a949b44787b562eeb93d15f836f2861b37bf4', class: "sidebar", part: "body", onAnimationEnd: (e) => this.handleAnimationEnd(e), role: this.showInModal ? "dialog" : "region", "aria-modal": this.showInModal ? "true" : undefined, "aria-label": store.instance.t("a11y.recommendations") }, index.h("div", { key: '9a789c39fcbeabaddcd74821c087082e31027097', class: {
|
|
351
350
|
"sidebar-header": true,
|
|
352
351
|
"contains-source-img": this.isSourceImageValid(),
|
|
353
|
-
}, part: "sidebar-header" }, this.mode !== "set" && (index.h(index.Fragment, { key: '
|
|
352
|
+
}, part: "sidebar-header" }, this.mode !== "set" && (index.h(index.Fragment, { key: '1567f0dc6dd89dc24f1856d19841b835e147fdbd' }, this.renderSourceImage(), ((_a = this.sidebarTitle) === null || _a === void 0 ? void 0 : _a.length) !== 0 && (index.h("span", { key: '8b15728814f88c18c472cad3cbe53bd564a1e9d2', class: "title", part: "recommendations-title" }, this.sidebarTitle || store.instance.t("discoveryWidgetTitle"))), !!this.sidebarSubtitle && (index.h("span", { key: 'bae0890e349463309352336bc190c6688c03bd92', class: "subtitle", part: "recommendations-subtitle" }, this.sidebarSubtitle)))), index.h("button", { key: '4b68bed07f7021a18d89c8e974470c6654d64cf2', class: "close-sidebar", onClick: () => {
|
|
354
353
|
this.sidebarState = "closed";
|
|
355
354
|
}, onKeyDown: (event) => {
|
|
356
355
|
if (event.key === "Enter" || event.key === " ") {
|
|
357
356
|
event.preventDefault();
|
|
358
357
|
this.sidebarState = "closed";
|
|
359
358
|
}
|
|
360
|
-
}, part: "close-sidebar", "aria-label": store.instance.t("a11y.closeButton") }, index.h(CrossIcon, { key: '
|
|
359
|
+
}, part: "close-sidebar", "aria-label": store.instance.t("a11y.closeButton") }, index.h(CrossIcon, { key: '47a915a15394f7c76edda5268858dc797d3edad3' }))), index.h("div", { key: '56d7f788b1537b351c9502d790b4425cce11fa6b', class: "sidebar-content", part: "sidebar-content" }, index.h("vviinn-vpr-widget", { key: '8fc47c60c4235a83a8dc949659b356d32839e462', token: this.token, currencySign: this.currencySign, pricePrefix: this.pricePrefix, apiPath: this.apiPath, locale: this.locale, numberLocale: this.numberLocale, productId: this.productId, exportparts: `${search_store.carouselParts}, ${search_store.productCardParts}, ${search_store.recommendationsParts}`, imageWidth: this.imageWidth, showMultipleImages: this.showMultipleImages, setItemsAmount: this.setItemsAmount, blockTitle: this.mode !== "set" ? "" : this.sidebarTitle, blockSubtitle: this.mode === "set" ? this.sidebarSubtitle : undefined, mode: this.mode, "campaign-type": this.campaignType, useCarousel: this.useCarousel, onVviinnRecommendationsLoaded: () => {
|
|
361
360
|
this.hidden = false;
|
|
362
361
|
this.sidebarState = "open";
|
|
363
362
|
}, showScroll: this.widgetScrollbar, campaigns: this.campaigns, color: this.color, buttonElementId: this.buttonElementId, noResultText: this.noResultText, noResultShow: this.noResultShow, gridArrowsDynamic: this.gridArrowsDynamic, showingInButton: this.showingInButton, excluded: this.excluded, productDetailsNewTab: this.productDetailsNewTab, productDetailsRedirect: this.productDetailsRedirect, closed: this.sidebarState === "closed", opened: this.sidebarState === "open", addToBasketShow: this.addToBasketShow, cssUrl: this.cssUrl, showFilters: this.showFilters, setModeDiscounts: this.setModeDiscounts, updateButtonLocation: this.updateButtonLocation, addPriceContainer: this.addPriceContainer, favoriteShow: this.favoriteShow, isAppended: this.isAppended, showInWidget: this.showInWidget, recommendationsLoading: this.recommendationsLoading, setRecommendationsLoading: this.setRecommendationsLoading, imageResolutionWidth: this.imageResolutionWidth, uiSessionId: this.uiSessionId })))));
|
|
@@ -505,7 +504,7 @@ const VviinnVprButton = class {
|
|
|
505
504
|
});
|
|
506
505
|
}
|
|
507
506
|
async componentWillLoad() {
|
|
508
|
-
await index$
|
|
507
|
+
await index$2.initializeLocale(this.locale);
|
|
509
508
|
if (this.appendSidebarToElement) {
|
|
510
509
|
this.targetAppendSidebarTo = this.appendSidebarToElement;
|
|
511
510
|
}
|
|
@@ -527,7 +526,7 @@ const VviinnVprButton = class {
|
|
|
527
526
|
}
|
|
528
527
|
}
|
|
529
528
|
render() {
|
|
530
|
-
return (index.h(index.Host, { key: '
|
|
529
|
+
return (index.h(index.Host, { key: 'e1d8ff31a915dc5aef78838bd4f84e2e416b0953', role: "button", tabindex: "0", "aria-label": this.getAriaLabel(), onClick: this.handleButtonClick, onKeyDown: this.handleKeyDown }, index.h("vviinn-button", { key: 'b5178a6135d508c7b1f04ab159e7c8117ee986af', addStyle: this.addStyle, part: "vviinn-button" }, index.h("slot", { key: '882bd8cfa3a809e99bb4a1162e8988d49b327113' }, this.campaignType === "VCS" ? (index.h(CrossSellingIcon, { width: this.iconSideSize, height: this.iconSideSize })) : (index.h(SimilarProductsIcon, { width: this.iconSideSize, height: this.iconSideSize }))))));
|
|
531
530
|
}
|
|
532
531
|
handleClick() {
|
|
533
532
|
const sidebar = document.createElement("vviinn-recommendations-sidebar");
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-OrE9ITel.js');
|
|
4
4
|
var Rectangle = require('./Rectangle-7dF6_xf3.js');
|
|
5
|
-
var search_store = require('./search.store-
|
|
5
|
+
var search_store = require('./search.store-C2rPzL3v.js');
|
|
6
6
|
var customizedSlots = require('./customized-slots-CqOPLiML.js');
|
|
7
|
-
var index$1 = require('./index-
|
|
7
|
+
var index$1 = require('./index-CJKVHgfb.js');
|
|
8
8
|
var store = require('./store-jPZ4ROqV.js');
|
|
9
9
|
var cropperUtils = require('./cropperUtils-DCDOLeBS.js');
|
|
10
10
|
var index$2 = require('./index-DLEDOlRe.js');
|
|
11
11
|
var openProductLink = require('./openProductLink-BFiXVr4M.js');
|
|
12
12
|
var index$3 = require('./index-CzqCGUTk.js');
|
|
13
13
|
var resultsPageUrl = require('./resultsPageUrl-BMlvrFCW.js');
|
|
14
|
-
var index$4 = require('./index-Gr3ffb3S.js');
|
|
15
14
|
var constants = require('./constants-DHaugTOE.js');
|
|
16
15
|
|
|
17
16
|
const CameraActionIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
|
|
@@ -985,10 +984,10 @@ const VviinnResults = class {
|
|
|
985
984
|
return (index.h(index.Host, { key: 'cbc6688ddadd320131e6610854493d91541d9ea3', id: "results-block", class: {
|
|
986
985
|
"show-in-widget": this.showInWidget,
|
|
987
986
|
"matching-discovery": this.oneClickDiscoveryMode === "append-slider",
|
|
988
|
-
}, exportparts: `${
|
|
987
|
+
}, exportparts: `${search_store.productCardParts}, ${search_store.listCardParts}, ${search_store.contentCardParts}, ${search_store.productCardsGridPart}` }, openProductLink.renderExternalCSS(this.cssUrl), index.h("div", { key: 'c70ea00ced61c2f50bcb8314346977b09e0fdce0', class: "nothing-found" }, this.getCurrentErrorType() && (index.h("vviinn-error", { key: '908f97bf1a2c79165b7b1dbf786c4ca3ec6ed70a', errorType: this.getCurrentErrorType(), handler: this.resetWidgetState, hasBackground: this.showInWidget, searchType: this.state.searchType }))), index.h("div", { key: 'c15b9d924297ddc660f332670d7cc6c433095dbb', class: {
|
|
989
988
|
hidden: this.showAspectRatioError || resultsLength === 0,
|
|
990
989
|
products: true,
|
|
991
|
-
}, part:
|
|
990
|
+
}, part: search_store.productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), index.h("div", { key: '349d582923921efb41b9a700df47852feb82a3eb', id: "one-click-discovery-append", style: {
|
|
992
991
|
order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
|
|
993
992
|
} }))));
|
|
994
993
|
}
|
|
@@ -1197,7 +1196,7 @@ const VviinnSelectedFilters = class {
|
|
|
1197
1196
|
return null;
|
|
1198
1197
|
return (index.h(index.Host, { class: {
|
|
1199
1198
|
"show-in-widget": this.showInWidget,
|
|
1200
|
-
}, exportParts:
|
|
1199
|
+
}, exportParts: search_store.selectedFiltersParts }, index.h("div", { ref: (el) => (this.filterAnnouncementRef = el), "aria-live": "polite", class: "sr-only" }), index.h("section", { class: "selected-filters-container", "aria-label": store.instance.t("a11y.selectedFilters") }, index.h("ul", { class: "selected-filters-wrapper", part: "selected-filters-list" }, RenderCustomButton({
|
|
1201
1200
|
label: this.textSearchCustomFilter,
|
|
1202
1201
|
buttonType: "text",
|
|
1203
1202
|
hidden: !((_a = this.textSearchCustomFilter) === null || _a === void 0 ? void 0 : _a.length) || this.showInWidget,
|
|
@@ -1235,7 +1234,7 @@ const VviinnSlide = class {
|
|
|
1235
1234
|
index.registerInstance(this, hostRef);
|
|
1236
1235
|
}
|
|
1237
1236
|
render() {
|
|
1238
|
-
return (index.h(index.Host, { key: '
|
|
1237
|
+
return (index.h(index.Host, { key: '133a498cc9bacc4be222f7bc10aab41581e81f1a' }, index.h("slot", { key: '4c6793ca181403a57e378b9212d341cdfe2c529c' })));
|
|
1239
1238
|
}
|
|
1240
1239
|
};
|
|
1241
1240
|
VviinnSlide.style = vviinnSlideCss;
|
|
@@ -1280,7 +1279,7 @@ const VviinnSlider = class {
|
|
|
1280
1279
|
return this.isRTL ? position * -1 : position;
|
|
1281
1280
|
}
|
|
1282
1281
|
render() {
|
|
1283
|
-
return (index.h(index.Host, { key: '
|
|
1282
|
+
return (index.h(index.Host, { key: 'cae995bbfc00ab993963b12e219ca9e7d1b88a10' }, index.h("div", { key: 'ef4812aaa71a522c8bd038596d5f3d4b8e068057', class: "items-wrapper" }, index.h("div", { key: '56796be36f776337632f02b6b0e3cf034e36c0a7', class: "items" }, index.h("slot", { key: '6f9d9f5a6d6a8abb27689e7d5c724bb0a696659d' })))));
|
|
1284
1283
|
}
|
|
1285
1284
|
get el() { return index.getElement(this); }
|
|
1286
1285
|
static get watchers() { return {
|
|
@@ -1589,7 +1588,7 @@ const VviinnSuggestions = class {
|
|
|
1589
1588
|
}
|
|
1590
1589
|
return (index.h(index.Host, { class: {
|
|
1591
1590
|
"show-in-widget": this.showInWidget,
|
|
1592
|
-
}, exportparts:
|
|
1591
|
+
}, exportparts: search_store.suggestionsParts }, index.h("div", { class: "container", part: "suggestions-container" }, index.h("div", { class: "header", part: "suggestions-header" }, index.h("div", { class: "icon", part: "suggestions-icon" }, index.h("slot", { name: "vviinn-suggestions-icon" }, index.h(SparkIcon, null))), index.h("h3", { class: "title", part: "suggestions-title" }, index.h("slot", { name: "vviinn-suggestions-title" }, store.instance.t("suggestions.title")))), index.h("div", { class: "description", part: "suggestions-description" }, index.h("slot", { name: "vviinn-suggestions-description" }, store.instance.t("suggestions.description"))), index.h("div", { class: "suggestions-wrapper", part: "suggestions-wrapper" }, this.renderStreamItems()))));
|
|
1593
1592
|
}
|
|
1594
1593
|
get el() { return index.getElement(this); }
|
|
1595
1594
|
};
|
|
@@ -1605,7 +1604,7 @@ const VviinnTeaser = class {
|
|
|
1605
1604
|
customizedSlots.slotChangeListener(this, this.el);
|
|
1606
1605
|
}
|
|
1607
1606
|
render() {
|
|
1608
|
-
return (index.h(index.Host, { key: '
|
|
1607
|
+
return (index.h(index.Host, { key: '8a000f0c33266514f8665f595f5de4e3be66a92a' }, index.h("slot", { key: '5d6f646a3efc56a7a8f69b299e550685763f3d58' }, index.h("span", { key: 'b044024aab57627bd5a7236c6cb8f170b6a18d9c', class: "vviinn-teaser-text" }, index.h("slot", { key: '41dbdef5be7ce19a88c34521b94332de7a2c0b21', name: "vviinn-teaser-text" }, store.instance.t("teaserText"))))));
|
|
1609
1608
|
}
|
|
1610
1609
|
get el() { return index.getElement(this); }
|
|
1611
1610
|
};
|
|
@@ -2050,31 +2049,31 @@ const VviinnVpsWidget = class {
|
|
|
2050
2049
|
}
|
|
2051
2050
|
render() {
|
|
2052
2051
|
var _a, _b, _c;
|
|
2053
|
-
return (index.h(index.Host, { key: '
|
|
2052
|
+
return (index.h(index.Host, { key: '8444fbf2dc3b908bcb3157a858181dbd8350188b', exportparts: `${search_store.modalParts}, ${search_store.productCardParts}, ${search_store.searchBarParts}, ${search_store.searchWidgetFilterParts}, ${search_store.searchWidgetButtonParts}, ${search_store.productCardsGridPart}, ${search_store.suggestionsParts}` }, openProductLink.renderExternalCSS(this.cssUrl), !this.showingInButton && customizedSlots.SlotSkeleton("search"), index.h("vviinn-overlayed-modal", { key: '9aa7b49e88664d153349628df6dc2c72617cf101', class: { "first-screen": this.isOnboardingSlide() }, isFirstScreen: this.isOnboardingSlide(), active: this.active, resetState: this.resetState, onVviinnWidgetClose: ({ detail }) => {
|
|
2054
2053
|
if (detail.campaignTypeId !== "VPR")
|
|
2055
2054
|
this.handleModalClose();
|
|
2056
2055
|
}, buttonElementId: (_a = this.buttonElementId) !== null && _a !== void 0 ? _a : this.widgetElementId, widgetVersion: search_store.version, hideBackButton: this.mode === "upload" ||
|
|
2057
|
-
(!this.isCameraEnabled && this.isOnboardingSlide()) }, index.h("vviinn-slider", { key: '
|
|
2056
|
+
(!this.isCameraEnabled && this.isOnboardingSlide()) }, index.h("vviinn-slider", { key: '5555d2c33c5752b76cfcc127a1d8eccc644e4927', position: this.slidePosition }, index.h("vviinn-slide", { key: 'ab3f9db5f3154ec722280c294a8066a4e2bfa7a6', class: {
|
|
2058
2057
|
"start-page": true,
|
|
2059
2058
|
"camera-enabled": this.isCameraEnabled,
|
|
2060
|
-
} }, index.h("vviinn-camera", { key: '
|
|
2059
|
+
} }, index.h("vviinn-camera", { key: '4132333020399b68cbfd775579bdd6bdef2a5972', token: this.token, onVviinnImageUploadFinished: ({ detail }) => this.handleVviinnImageUploadFinished(detail), onVviinnImageUploadStarted: () => {
|
|
2061
2060
|
this.handleVviinnImageUpload("startCamera");
|
|
2062
|
-
}, apiPath: this.apiPath, basicEventData: this.getBasicEventData(), srcObject: this.stream, cameraButtonClicked: this.isCameraButtonClicked, exampleImageSource: this.exampleImageSource, showInWidget: this.showInWidget, storeName: this.storeName, state: this.state }), index.h("div", { key: '
|
|
2061
|
+
}, apiPath: this.apiPath, basicEventData: this.getBasicEventData(), srcObject: this.stream, cameraButtonClicked: this.isCameraButtonClicked, exampleImageSource: this.exampleImageSource, showInWidget: this.showInWidget, storeName: this.storeName, state: this.state }), index.h("div", { key: '613f97526ac01ef992e7b46edc8a8abc5406a8ad', class: {
|
|
2063
2062
|
error: this.haveErrors(),
|
|
2064
|
-
}, id: "start-page_block" }, index.h("div", { key: '
|
|
2065
|
-
this.state.searchStatus === "error") && (index.h("div", { key: '
|
|
2063
|
+
}, id: "start-page_block" }, index.h("div", { key: 'ea52f2ae04cea14d97e85bf7a85a5723612f1f99', class: "start-page_main-content" }, (this.wrongImageFormat ||
|
|
2064
|
+
this.state.searchStatus === "error") && (index.h("div", { key: '9e50eb0c0076cf4050aa467fec5c4b4573b11d46', class: "start-page_errors-block" }, this.getCurrentErrorType() && (index.h("vviinn-error", { key: '3189460853d238f83c46296903e5f9d065ba6f01', errorType: this.getCurrentErrorType(), handler: this.resetState, hasBackground: true, searchType: this.state.searchType })))), !this.haveErrors() && (index.h(index.Fragment, { key: '2475b689b7579482c01c6b04a48e1159413dd1cd' }, index.h("vviinn-teaser", { key: 'ebb5f4e35ed267e7ba3d8b49b03f73a461c27d27' }), index.h("div", { key: '3f2d54f77f95ad31be7fd8ec323e94596b1622e5', class: "buttons-group" }, this.renderButtons()), this.textSearchShow && !this.isResultSlide() && (index.h("vviinn-text-search", { key: 'ff09bf929753d9084e972dd2f930d5134e01f560', token: this.token, apiPath: this.apiPath, locale: this.locale, showInWidget: this.showInWidget, showOnFirstScreen: true, uiSessionId: this.uiSessionId, basicEventData: this.getBasicEventData(true), resultsPageUrl: this.resultsPageUrl, "save-image-mode": "never" }))))), index.h("vviinn-privacy-badge", { key: 'edebc0306e427f909aae3b1030161d55b21b294d', privacyBadgeText: store.instance.t("privacyBadgeText", {
|
|
2066
2065
|
interpolation: { escapeValue: false },
|
|
2067
|
-
}), class: { invisible: this.haveErrors() } }))), index.h("vviinn-slide", { key: '
|
|
2066
|
+
}), class: { invisible: this.haveErrors() } }))), index.h("vviinn-slide", { key: 'da9927be08d35d9835a040f4d1f3f790dfe1a92c', class: {
|
|
2068
2067
|
"results-page": true,
|
|
2069
2068
|
active: this.isResultSlide(),
|
|
2070
|
-
} }, this.isResultSlide() && (index.h("div", { key: '
|
|
2069
|
+
} }, this.isResultSlide() && (index.h("div", { key: '5d1a8203c8b0cd9cd8debb4ce1e72e45e646510b', class: "source-wrapper" }, this.isTextSearch() && (index.h("vviinn-text-search", { key: '00d954ea2a6b81b7585dbacae12fb668c60055e3', token: this.token, showInWidget: this.showInWidget, apiPath: this.apiPath, locale: this.locale, uiSessionId: this.uiSessionId, basicEventData: this.getBasicEventData(true), resultsPageUrl: this.resultsPageUrl, "save-image-mode": "never" })), !this.isTextSearch() && (index.h("vviinn-cropper", { key: '959e97ef2a702134b866a7c96c76f6e3f11ccbd6', token: this.token, basicEventData: this.getBasicEventData(), showAspectRatioError: this.showAspectRatioError, apiPath: this.apiPath, showInWidget: this.showInWidget, "save-image-mode": "never" })), this.isTextSearch() && (index.h("vviinn-suggestions", { key: '7200e5fb3b24534f536fe0f41c6d8bbaacfc4a2a', showInWidget: this.showInWidget, token: this.token, apiPath: this.apiPath, locale: this.locale })), index.h("vviinn-selected-filters", { key: '790143c772e0cfca476e6754968ba050523f46b8', locale: this.locale, currencySign: this.currencySign, showInWidget: this.showInWidget, exportparts: search_store.filtersParts }), ((_b = this.state.dynamicFilters) === null || _b === void 0 ? void 0 : _b.length) > 0 && (index.h("div", { key: '47f1752123d437d6c45dd1f4a9b2f365f16e6b80', class: {
|
|
2071
2070
|
"filters-wrapper": true,
|
|
2072
2071
|
hidden: this.showAspectRatioError,
|
|
2073
|
-
} }, index.h("vviinn-filters", { key: '
|
|
2072
|
+
} }, index.h("vviinn-filters", { key: '46a06ee798ae83a9a8798d95c8f9c601bb7adad0', showInWidget: this.showInWidget, showIntervalInputs: this.showIntervalInputs }), index.h("vviinn-extended-filters", { key: '792d8b2258ffc4e4f5bbdabf176c4e8f0e667c35', mode: "preview", showHeader: false, showInWidget: this.showInWidget, locale: this.locale, currencySign: this.currencySign, showIntervalInputs: this.showIntervalInputs }), index.h("vviinn-extended-filters-button", { key: '58561263accf2717b5b65ae3b3b03d8030e0484e', class: {
|
|
2074
2073
|
"extended-filters-button": true,
|
|
2075
2074
|
"has-primary-filters": this.state.dynamicFilters.filter((f) => f.isPrimary)
|
|
2076
2075
|
.length > 0,
|
|
2077
|
-
}, showInWidget: this.showInWidget }))))), this.isResultSlide() && (index.h(index.Fragment, { key: '
|
|
2076
|
+
}, showInWidget: this.showInWidget }))))), this.isResultSlide() && (index.h(index.Fragment, { key: '290e45bc40ab2b2aa91b3bfb8e5ebe30a00f0ecb' }, index.h("vviinn-results", { key: 'ea51b34e658a4fb544dba7107ad203e3067ac541', token: this.token, locale: this.locale, numberLocale: this.numberLocale, pricePrefix: this.pricePrefix, "currency-sign": this.currencySign, apiPath: this.apiPath, campaignIdTextSearch: this.campaignIdTextSearch, campaignIdVisualSearch: this.campaignIdVisualSearch, uiSessionId: this.uiSessionId, widgetElementId: (_c = this.buttonElementId) !== null && _c !== void 0 ? _c : this.widgetElementId, showInWidget: this.showInWidget, buttonElementId: this.buttonElementId, imageResolutionWidth: this.imageResolutionWidth, showMultipleImages: this.showMultipleImages, productDetailsNewTab: this.productDetailsNewTab, productDetailsRedirect: this.productDetailsRedirect, addToBasketShow: this.addToBasketShow, favoriteShow: this.favoriteShow, showAspectRatioError: this.showAspectRatioError, resetWidgetState: this.resetState, replaceSlotsContentInWidget: this.replaceSlotsContent.bind(this), replaceSlotsContentInButton: this.replaceSlotsContentInButton, addPriceContainer: this.addPriceContainer, oneClickDiscoveryMode: this.oneClickDiscoveryMode, oneClickDiscoveryCampaigns: this.oneClickDiscoveryCampaigns, parentSlots: [...this.parentSlots, ...this.slots], scrollableModalBody: this.modalBody }))))), index.h("vviinn-extended-filters", { key: 'c9e52164f2c85365818ceeb3ee7613385c759b1d', class: "modal-extended-filters", mode: "modal", exportparts: search_store.extendedFiltersParts, showInWidget: this.showInWidget, locale: this.locale, currencySign: this.currencySign, showIntervalInputs: this.showIntervalInputs }))));
|
|
2078
2077
|
}
|
|
2079
2078
|
get el() { return index.getElement(this); }
|
|
2080
2079
|
static get watchers() { return {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-OrE9ITel.js');
|
|
4
|
-
var search_store = require('./search.store-
|
|
4
|
+
var search_store = require('./search.store-C2rPzL3v.js');
|
|
5
5
|
var Rectangle = require('./Rectangle-7dF6_xf3.js');
|
|
6
6
|
var store = require('./store-jPZ4ROqV.js');
|
|
7
|
-
var index$2 = require('./index-
|
|
7
|
+
var index$2 = require('./index-CJKVHgfb.js');
|
|
8
8
|
var index$1 = require('./index-DLEDOlRe.js');
|
|
9
9
|
var customizedSlots = require('./customized-slots-CqOPLiML.js');
|
|
10
|
-
var index$3 = require('./index-
|
|
11
|
-
var index$4 = require('./index-CzqCGUTk.js');
|
|
10
|
+
var index$3 = require('./index-CzqCGUTk.js');
|
|
12
11
|
var swiperElement = require('./swiper-element-CY759uFL.js');
|
|
13
12
|
var openProductLink = require('./openProductLink-BFiXVr4M.js');
|
|
14
13
|
|
|
@@ -596,7 +595,7 @@ const VviinnEnergyLabel = class {
|
|
|
596
595
|
render() {
|
|
597
596
|
return (index.h(index.Host, { key: 'f311f7c89f27a7dd90a8198284b179fe6e04cb3f', class: {
|
|
598
597
|
hidden: !this.classIconUrls && !this.productType && !this.classDataSheetUrl,
|
|
599
|
-
}, exportparts:
|
|
598
|
+
}, exportparts: search_store.energyLabelParts }, index.h("div", { key: 'd20b22eaca0f7121a09f20e9a1a8e16ae8c77a16', class: "container", part: "energy-label-container" }, !!this.classIconUrls && (index.h("img", { key: '4551fc562d643b825ff489ebd4fcf51812479862', class: "class-label-icon", part: "energy-label-icon", src: this.classIconUrls[this.iconDirection], alt: this.getEnergyIconAltText() })), (this.productType || this.classDataSheetUrl) && (index.h("div", { key: '3260e0e590ed46c72daf3b06075a153c23ed0c51', class: "info-container" }, this.productType && (index.h("span", { key: 'be310b1e00cc1b279d58ce2d56cee9803622f01b', class: "product-type", part: "energy-label-product-type" }, this.productType)), this.classDataSheetUrl && (index.h("a", { key: '2e4f3d3985d11d7b2bba729b6c1816af866cafdc', class: "data-sheet-link", part: "energy-label-data-sheet-link", href: this.classDataSheetUrl, target: "_blank", rel: "noopener noreferrer" }, index.h("slot", { key: 'ca584e501471e5d6bc9c76f7d3767910ed645016', name: "vviinn-energy-label-data-sheet-text" }, store.instance.t("energyLabel.dataSheetText")))))))));
|
|
600
599
|
}
|
|
601
600
|
get el() { return index.getElement(this); }
|
|
602
601
|
};
|
|
@@ -840,7 +839,7 @@ const VviinnExtendedFilters = class {
|
|
|
840
839
|
}
|
|
841
840
|
}
|
|
842
841
|
async componentWillLoad() {
|
|
843
|
-
await index$
|
|
842
|
+
await index$3.initializeLocale(this.locale);
|
|
844
843
|
customizedSlots.slotChangeListener(this, this.el);
|
|
845
844
|
}
|
|
846
845
|
initializeDisplayedOptions(filterColumn) {
|
|
@@ -1016,7 +1015,7 @@ const VviinnExtendedFilters = class {
|
|
|
1016
1015
|
const filters = this.getFilters();
|
|
1017
1016
|
return (index.h(index.Host, { key: 'f2f23f0f4e997ff8ec7b00a96a84ba4ea18f5d3f', class: {
|
|
1018
1017
|
"show-in-widget": this.showInWidget,
|
|
1019
|
-
}, exportParts:
|
|
1018
|
+
}, exportParts: search_store.extendedFiltersParts }, index.h("div", { key: '57de996421fe25deb1cc484bc0ea2598e7dfb3c1', ref: (el) => (this.filterAnnouncementRef = el), "aria-live": "polite", class: "sr-only" }), customizedSlots.SlotSkeleton("filters"), (filters === null || filters === void 0 ? void 0 : filters.length) > 0 && this.mode === "button" && (index.h("vviinn-extended-filters-button", { key: '0219f9a675885f280eb93cbaab4fb426af18e029' })), this.renderModal(filters)));
|
|
1020
1019
|
}
|
|
1021
1020
|
get el() { return index.getElement(this); }
|
|
1022
1021
|
static get watchers() { return {
|
|
@@ -1180,7 +1179,7 @@ const VviinnFilters = class {
|
|
|
1180
1179
|
return (index.h(index.Host, { key: '43ca9aa547e2436a198c6b98599edc256ead2908', class: {
|
|
1181
1180
|
"show-in-widget": this.showInWidget,
|
|
1182
1181
|
"primary-filters": true,
|
|
1183
|
-
}, onKeyDown: this.handleKeyDown, exportparts:
|
|
1182
|
+
}, onKeyDown: this.handleKeyDown, exportparts: search_store.filtersParts }, customizedSlots.SlotSkeleton("filters"), index.h("div", { key: 'cbc3b18419bd5797c97270e7104c723a08185750', ref: (el) => (this.filterAnnouncementRef = el), "aria-live": "polite", class: "sr-only" }), (filters === null || filters === void 0 ? void 0 : filters.length) > 0 && (index.h("nav", { key: '1d879a02b353b8e11dc633d634012b254385488d', "aria-label": store.instance.t("a11y.productFilters") }, index.h("ul", { key: '2487026565e1f54ea19359a4a710d477c26ef4ff', class: "main-filters-list", part: "filters-list" }, filters.map((filter) => {
|
|
1184
1183
|
const isExpanded = this.selectedFilterColumn === filter.column;
|
|
1185
1184
|
return (index.h("li", null, index.h("button", { class: `filters-main-button ${this.showActiveOnMainButton(filter)}`, onClick: () => this.handleMainFilterSelection(filter), part: "filters-main-button", "aria-expanded": isExpanded ? "true" : "false", "aria-label": store.instance.t("a11y.filterButton", {
|
|
1186
1185
|
label: filter.label,
|
|
@@ -1332,7 +1331,7 @@ const VviinnImage = class {
|
|
|
1332
1331
|
return (index.h("div", { class: "image-skeleton", part: "image-skeleton" }, index.h("vviinn-skeleton", null)));
|
|
1333
1332
|
}
|
|
1334
1333
|
render() {
|
|
1335
|
-
return (index.h(index.Host, { key: '5f0a58b7271229ae34f84188f24487901bf23ff3', exportparts:
|
|
1334
|
+
return (index.h(index.Host, { key: '5f0a58b7271229ae34f84188f24487901bf23ff3', exportparts: search_store.imageParts, class: {
|
|
1336
1335
|
"has-skeleton-icon": this.isSetMode,
|
|
1337
1336
|
"set-mode-transition": this.isSetMode && this.shouldShowSkeleton,
|
|
1338
1337
|
} }, index.h("div", { key: '59742b75db4f00da1b06583aceb0cac59a162d81', class: {
|
|
@@ -1696,7 +1695,7 @@ const VviinnProductCard = class {
|
|
|
1696
1695
|
this.isListCard = this.entityType === "list";
|
|
1697
1696
|
this.imageProps = this.getImageProps();
|
|
1698
1697
|
if (this.isStandalone) {
|
|
1699
|
-
index$
|
|
1698
|
+
index$3.initializeLocale(this.effectiveLocale);
|
|
1700
1699
|
}
|
|
1701
1700
|
if (this.energyCertificationsString.length > 0) {
|
|
1702
1701
|
this.parseEnergyCertificationsString();
|
|
@@ -1848,7 +1847,7 @@ const VviinnProductCard = class {
|
|
|
1848
1847
|
render() {
|
|
1849
1848
|
var _a, _b, _c;
|
|
1850
1849
|
if (this.isContentCard || this.isListCard) {
|
|
1851
|
-
return (index.h(index.Host, { part: `product-card ${this.entityType}-card`, class: `${this.entityType}-card`, exportparts: this.isContentCard ?
|
|
1850
|
+
return (index.h(index.Host, { part: `product-card ${this.entityType}-card`, class: `${this.entityType}-card`, exportparts: this.isContentCard ? search_store.contentCardParts : search_store.listCardParts, "data-id": this.productId }, openProductLink.renderExternalCSS(this.cssUrl), index.h("div", { class: `image-container ${this.entityType}-card-image-container`, part: "image-container" }, renderProductCardImage({
|
|
1852
1851
|
src: this.imageProps.src,
|
|
1853
1852
|
width: this.imageProps.width,
|
|
1854
1853
|
title: this.imageProps.title,
|
|
@@ -1872,7 +1871,7 @@ const VviinnProductCard = class {
|
|
|
1872
1871
|
animated: this.isTransitioning,
|
|
1873
1872
|
"product-card--source": this.isSourceProduct,
|
|
1874
1873
|
"set-mode": this.isSetMode,
|
|
1875
|
-
}, exportparts:
|
|
1874
|
+
}, exportparts: search_store.productCardParts, "data-id": this.productId }, openProductLink.renderExternalCSS(this.cssUrl), index.h("div", { class: "content-container", part: "content-container" }, this.showSkeleton() ? (index.h(index.Fragment, null, index.h("vviinn-skeleton", { height: 40 }), index.h("vviinn-skeleton", { height: 20, halfWidth: true }), index.h("vviinn-skeleton", { height: 40 }))) : (index.h(index.Fragment, null, index.h(Linked, { deeplink: this.deeplink, part: "deeplink", tabindex: 0 }, index.h("span", { class: "title", part: "title" }, this.productTitle)), ((_a = this.brand) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("span", { class: "brand", part: "brand" }, this.brand)), ((_b = this.productType) === null || _b === void 0 ? void 0 : _b.length) > 0 && (index.h("span", { class: "product-type", part: "product-type" }, this.productType)), ((_c = this === null || this === void 0 ? void 0 : this.energyCertifications) !== null && _c !== void 0 ? _c : []).map((energyCertification) => (index.h("vviinn-energy-label", { classIconUrls: energyCertification === null || energyCertification === void 0 ? void 0 : energyCertification.classIconUrls, classDataSheetUrl: energyCertification === null || energyCertification === void 0 ? void 0 : energyCertification.classDataSheetUrl, productType: energyCertification === null || energyCertification === void 0 ? void 0 : energyCertification.productType, certificationClass: energyCertification === null || energyCertification === void 0 ? void 0 : energyCertification.certificationClass, classRange: energyCertification === null || energyCertification === void 0 ? void 0 : energyCertification.classRange }))), index.h(Price, { prefix: this.pricePrefix, currency: this.effectiveCurrencySign, numberLocale: this.effectiveNumberLocale, price: this.price, basePrice: parseBasePrice(this.basePrice), salePrice: this.salePrice, baseSalePrice: parseBasePrice(this.baseSalePrice), showInContainer: this.addPriceContainer }), renderCustomLabels(this.customLabels.split(","), "content")))), index.h("div", { class: {
|
|
1876
1875
|
"basket-button-container": true,
|
|
1877
1876
|
hidden: !this.isShowBasketButton() || this.showSkeleton(),
|
|
1878
1877
|
}, part: "basket-button-container" }, index.h("button", { class: {
|
|
@@ -2065,7 +2064,7 @@ const VviinnPriceRange = class {
|
|
|
2065
2064
|
return (intervalWidth / totalRange) * 100;
|
|
2066
2065
|
}
|
|
2067
2066
|
render() {
|
|
2068
|
-
return (index.h(index.Host, { key: '243f582969e87741635e7c613a5a11f220ec1d38', exportparts:
|
|
2067
|
+
return (index.h(index.Host, { key: '243f582969e87741635e7c613a5a11f220ec1d38', exportparts: search_store.priceRangeParts }, index.h("div", { key: 'cc5ce4f289195db063d9ffd4dd07cce0774ba383', class: "histogram", part: "histogram" }, this.histogram.map((item) => {
|
|
2069
2068
|
const barHeight = this.calculateBarHeight(item.value.frequency);
|
|
2070
2069
|
const heightInPercent = barHeight && barHeight < MIN_BAR_HEIGHT
|
|
2071
2070
|
? MIN_BAR_HEIGHT
|
|
@@ -2100,7 +2099,7 @@ const VviinnSkeleton = class {
|
|
|
2100
2099
|
this.halfWidth = false;
|
|
2101
2100
|
}
|
|
2102
2101
|
render() {
|
|
2103
|
-
return (index.h(index.Host, { key: '
|
|
2102
|
+
return (index.h(index.Host, { key: '149fe2396c333fff4ff01e607a8f1b238ac12bdb' }, index.h("div", { key: '6a9e376f9955458af0c30c9df01ea7c2b8849196', class: {
|
|
2104
2103
|
"vviinn-skeleton": true,
|
|
2105
2104
|
}, style: {
|
|
2106
2105
|
height: this.height ? `${this.height.toString()}px` : "100%",
|
|
@@ -11788,7 +11787,7 @@ const VviinnVprWidget = class {
|
|
|
11788
11787
|
}
|
|
11789
11788
|
}
|
|
11790
11789
|
async componentWillLoad() {
|
|
11791
|
-
await index$
|
|
11790
|
+
await index$3.initializeLocale(this.locale);
|
|
11792
11791
|
customizedSlots.slotChangeListener(this, this.el);
|
|
11793
11792
|
}
|
|
11794
11793
|
trackProductLoad({ detail }) {
|