vviinn-widgets 2.20.10 → 2.20.14
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/loader.cjs.js +1 -1
- package/dist/cjs/{package-f55c0e81.js → package-1c204f84.js} +1 -1
- package/dist/cjs/vviinn-carousel_3.cjs.entry.js +21 -13
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +2 -1
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +7 -5
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +8 -7
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +18 -9
- package/dist/cjs/vviinn-widgets.cjs.js +1 -1
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +2 -2
- package/dist/collection/components/image-search/search-filters/search-filters.js +2 -2
- package/dist/collection/components/vviinn-button/vviinn-button.js +1 -1
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +3 -3
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +3 -3
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +5 -5
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +2 -2
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +1 -1
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +2 -2
- package/dist/collection/components/vviinn-product-card/stories/args.js +1 -42
- package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +4 -74
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +28 -25
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +22 -4
- package/dist/collection/components/vviinn-vpr-button/stories/args.js +3 -172
- package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +15 -68
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +115 -57
- package/dist/collection/components/vviinn-vpr-widget/stories/args.js +1 -128
- package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +31 -178
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +161 -109
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +1 -1
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +18 -7
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +3 -3
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +162 -100
- package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +7 -7
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +3 -3
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +197 -128
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-01003850.js +3 -0
- package/dist/esm/vviinn-carousel_3.entry.js +21 -13
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +2 -1
- package/dist/esm/vviinn-vpr-button.entry.js +7 -5
- package/dist/esm/vviinn-vps-button.entry.js +8 -7
- package/dist/esm/vviinn-vps-widget.entry.js +18 -9
- package/dist/esm/vviinn-widgets.js +1 -1
- package/dist/types/components/vviinn-button/vviinn-button.d.ts +1 -1
- package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +2 -2
- package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +1 -1
- package/dist/types/components/vviinn-product-card/stories/args.d.ts +0 -41
- package/dist/types/components/vviinn-product-card/stories/vviinn-product-card.stories.d.ts +5 -41
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +4 -3
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +4 -2
- package/dist/types/components/vviinn-vpr-button/stories/args.d.ts +2 -171
- package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +2 -171
- package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +35 -13
- package/dist/types/components/vviinn-vpr-widget/stories/args.d.ts +0 -140
- package/dist/types/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.d.ts +1 -67
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +52 -39
- package/dist/types/components/vviinn-vps-button/stories/vviinn-vps-button.stories.d.ts +2 -1
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +62 -50
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +68 -58
- package/dist/types/components.d.ts +303 -105
- package/dist/types/recommendation/events.d.ts +22 -8
- package/dist/vviinn-widgets/{p-457338d7.entry.js → p-41d474f5.entry.js} +1 -1
- package/dist/vviinn-widgets/p-490b1bef.entry.js +1 -0
- package/dist/vviinn-widgets/p-5d87ba71.js +1 -0
- package/dist/vviinn-widgets/p-63ea1832.entry.js +1 -0
- package/dist/vviinn-widgets/p-a42e440e.entry.js +1 -0
- package/dist/vviinn-widgets/p-ed9a581d.entry.js +1 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-457338d7.entry.js → p-41d474f5.entry.js} +1 -1
- package/www/build/p-490b1bef.entry.js +1 -0
- package/www/build/p-5d87ba71.js +1 -0
- package/www/build/p-63ea1832.entry.js +1 -0
- package/www/build/p-747cfd25.js +1 -0
- package/www/build/p-a42e440e.entry.js +1 -0
- package/www/build/p-a67898be.css +1 -0
- package/www/build/p-ed9a581d.entry.js +1 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/esm/package-12ef80a5.js +0 -3
- package/dist/vviinn-widgets/p-2e936f87.entry.js +0 -1
- package/dist/vviinn-widgets/p-34d9d4ee.js +0 -1
- package/dist/vviinn-widgets/p-471639bd.entry.js +0 -1
- package/dist/vviinn-widgets/p-e251ded6.entry.js +0 -1
- package/dist/vviinn-widgets/p-e599b49e.entry.js +0 -1
- package/www/build/p-2e936f87.entry.js +0 -1
- package/www/build/p-34d9d4ee.js +0 -1
- package/www/build/p-471639bd.entry.js +0 -1
- package/www/build/p-8744c9af.js +0 -161
- package/www/build/p-e0153ae2.css +0 -6
- package/www/build/p-e251ded6.entry.js +0 -1
- package/www/build/p-e599b49e.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["vviinn-button.cjs",[[1,"vviinn-button",{"addStyle":[4,"add-style"]}]]],["cropper-handler.cjs",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error.cjs",[[1,"vviinn-error"]]],["vviinn-preloader.cjs",[[1,"vviinn-preloader"]]],["vviinn-carousel_3.cjs",[[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"],"
|
|
17
|
+
return index.bootstrapLazy([["vviinn-button.cjs",[[1,"vviinn-button",{"addStyle":[4,"add-style"]}]]],["cropper-handler.cjs",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error.cjs",[[1,"vviinn-error"]]],["vviinn-preloader.cjs",[[1,"vviinn-preloader"]]],["vviinn-carousel_3.cjs",[[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"],"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.cjs",[[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.cjs",[[1,"vviinn-vps-widget",{"token":[1],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"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.cjs",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"addStyle":[4,"add-style"],"mode":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonPressed":[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]]]],["vviinn-recommendations-sidebar.cjs",[[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"],"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.cjs",[[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"],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-a4becaff.js');
|
|
|
6
6
|
const imageSearch_store = require('./imageSearch.store-fbe0600a.js');
|
|
7
7
|
const index$1 = require('./index-6cfe5293.js');
|
|
8
8
|
const Campaign = require('./Campaign-13258569.js');
|
|
9
|
-
const _package = require('./package-
|
|
9
|
+
const _package = require('./package-1c204f84.js');
|
|
10
10
|
const Handler = require('./Handler-de64afa5.js');
|
|
11
11
|
const index$2 = require('./index-c4851793.js');
|
|
12
12
|
|
|
@@ -441,8 +441,8 @@ const VviinnProductCard = class {
|
|
|
441
441
|
this.productType = undefined;
|
|
442
442
|
this.salePrice = undefined;
|
|
443
443
|
this.responsive = false;
|
|
444
|
-
this.campaignTypeId = undefined;
|
|
445
444
|
this.dimmedBackground = false;
|
|
445
|
+
this.campaignTypeId = undefined;
|
|
446
446
|
this.widgetElementId = undefined;
|
|
447
447
|
this.buttonElementId = undefined;
|
|
448
448
|
this.widgetVersion = undefined;
|
|
@@ -1162,12 +1162,12 @@ const VviinnVprWidget = class {
|
|
|
1162
1162
|
constructor(hostRef) {
|
|
1163
1163
|
index.registerInstance(this, hostRef);
|
|
1164
1164
|
this.vviinnWidgetLoad = index.createEvent(this, "vviinnWidgetLoad", 7);
|
|
1165
|
-
this.
|
|
1165
|
+
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
1166
1166
|
this.vviinnProductClick = index.createEvent(this, "vviinnProductClick", 7);
|
|
1167
1167
|
this.vviinnProductView = index.createEvent(this, "vviinnProductView", 7);
|
|
1168
|
-
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
1169
1168
|
this.vviinnNoResult = index.createEvent(this, "vviinnNoResult", 7);
|
|
1170
1169
|
this.vviinnRecommendationsLoaded = index.createEvent(this, "vviinnRecommendationsLoaded", 7);
|
|
1170
|
+
this.vviinnWidgetOpen = index.createEvent(this, "vviinnWidgetOpen", 7);
|
|
1171
1171
|
this.productImageLoadedSubject = new Subject();
|
|
1172
1172
|
this.setTrackingDeactivated = (result) => {
|
|
1173
1173
|
if (result.status === "rejected") {
|
|
@@ -1180,20 +1180,21 @@ const VviinnVprWidget = class {
|
|
|
1180
1180
|
this.productId = undefined;
|
|
1181
1181
|
this.token = undefined;
|
|
1182
1182
|
this.currencySign = "€";
|
|
1183
|
-
this.pricePrefix =
|
|
1183
|
+
this.pricePrefix = "";
|
|
1184
1184
|
this.mode = "continuity";
|
|
1185
1185
|
this.campaignType = "VPR";
|
|
1186
1186
|
this.locale = "de-DE";
|
|
1187
1187
|
this.campaigns = "";
|
|
1188
|
-
this.color =
|
|
1188
|
+
this.color = "";
|
|
1189
1189
|
this.gridArrowsDynamic = false;
|
|
1190
|
-
this.noResultText =
|
|
1190
|
+
this.noResultText = "No results! Please, try again later.";
|
|
1191
1191
|
this.noResultShow = true;
|
|
1192
|
+
this.showScroll = true;
|
|
1193
|
+
this.cssUrl = null;
|
|
1194
|
+
this.productDetailNewTab = false;
|
|
1192
1195
|
this.apiPath = "https://api.vviinn.com";
|
|
1193
1196
|
this.useCarousel = true;
|
|
1194
1197
|
this.showingInButton = false;
|
|
1195
|
-
this.showScroll = true;
|
|
1196
|
-
this.cssUrl = null;
|
|
1197
1198
|
this.buttonElementId = undefined;
|
|
1198
1199
|
this.recommendations = [];
|
|
1199
1200
|
this.trackingDeactivated = false;
|
|
@@ -1208,6 +1209,14 @@ const VviinnVprWidget = class {
|
|
|
1208
1209
|
widgetVersion: _package.version,
|
|
1209
1210
|
};
|
|
1210
1211
|
}
|
|
1212
|
+
handleOpenLink(deeplink) {
|
|
1213
|
+
if (this.productDetailNewTab) {
|
|
1214
|
+
window.open(deeplink);
|
|
1215
|
+
}
|
|
1216
|
+
else {
|
|
1217
|
+
window.location.href = deeplink;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1211
1220
|
handleProductIdChange() {
|
|
1212
1221
|
this.getRecommendations();
|
|
1213
1222
|
}
|
|
@@ -1244,11 +1253,11 @@ const VviinnVprWidget = class {
|
|
|
1244
1253
|
.trackEvent(productClickEvent)
|
|
1245
1254
|
.then(this.setTrackingDeactivated)
|
|
1246
1255
|
.finally(() => {
|
|
1247
|
-
|
|
1256
|
+
this.handleOpenLink(product.deeplink);
|
|
1248
1257
|
});
|
|
1249
1258
|
}
|
|
1250
1259
|
else {
|
|
1251
|
-
|
|
1260
|
+
this.handleOpenLink(product.deeplink);
|
|
1252
1261
|
}
|
|
1253
1262
|
}
|
|
1254
1263
|
connectedCallback() {
|
|
@@ -1321,7 +1330,6 @@ const VviinnVprWidget = class {
|
|
|
1321
1330
|
return this.isExternalCSS() ? (index.h("link", { href: this.cssUrl, rel: "stylesheet" })) : ("");
|
|
1322
1331
|
}
|
|
1323
1332
|
render() {
|
|
1324
|
-
var _a;
|
|
1325
1333
|
if (this.recommendations.length === 0 && this.noResultShow === false)
|
|
1326
1334
|
return null;
|
|
1327
1335
|
return (index.h(index.Host, { class: {
|
|
@@ -1329,7 +1337,7 @@ const VviinnVprWidget = class {
|
|
|
1329
1337
|
empty: this.recommendations.length == 0,
|
|
1330
1338
|
[this.mode]: true,
|
|
1331
1339
|
}, "aria-hidden": "false" }, index.h(index.Fragment, null, this.renderExternalCSS(), index.h("style", null, imageSearch_store.state.fallbackStyles), index.h("h2", { part: "recommendations-title" }, this.blockTitle), this.recommendations.length > 0 &&
|
|
1332
|
-
(this.useCarousel ? this.renderCarousel() : this.renderResults()), this.recommendations.length === 0 && this.hasErrorOnLoad && (index.h("p", { class: "no-result-text" },
|
|
1340
|
+
(this.useCarousel ? this.renderCarousel() : this.renderResults()), this.recommendations.length === 0 && this.hasErrorOnLoad && (index.h("p", { class: "no-result-text" }, this.noResultText)))));
|
|
1333
1341
|
}
|
|
1334
1342
|
renderRecommendation(recommendation, index$1) {
|
|
1335
1343
|
return (index.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$1, widgetElementId: this.id, widgetVersion: _package.version }));
|
|
@@ -27,6 +27,7 @@ const RecommendationsSidebar = class {
|
|
|
27
27
|
this.noResultText = undefined;
|
|
28
28
|
this.noResultShow = undefined;
|
|
29
29
|
this.gridArrowsDynamic = undefined;
|
|
30
|
+
this.productDetailNewTab = undefined;
|
|
30
31
|
this.apiPath = "https://api.vviinn.com";
|
|
31
32
|
this.buttonElementId = undefined;
|
|
32
33
|
this.widgetVersion = undefined;
|
|
@@ -58,7 +59,7 @@ const RecommendationsSidebar = class {
|
|
|
58
59
|
return (_a = this.el.shadowRoot.querySelector("aside")) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
59
60
|
}
|
|
60
61
|
render() {
|
|
61
|
-
return (index.h(index.Host, { class: this.getClassMap() }, index.h("aside", { class: "sidebar", part: "body", onAnimationEnd: (e) => this.handleAnimationEnd(e) }, index.h("header", { class: { "contains-source-img": this.isSourceImageValid() }, part: "sidebar-header" }, this.isSourceImageValid() ? this.renderSourceImage() : null, index.h("span", { class: "title", part: "title" }, this.sidebarTitle), index.h("button", { class: "close-sidebar", onClick: () => (this.state = "closed") }, index.h(index$1.CrossIcon, null))), index.h("main", { part: "sidebar-content" }, index.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 })))));
|
|
62
|
+
return (index.h(index.Host, { class: this.getClassMap() }, index.h("aside", { class: "sidebar", part: "body", onAnimationEnd: (e) => this.handleAnimationEnd(e) }, index.h("header", { class: { "contains-source-img": this.isSourceImageValid() }, part: "sidebar-header" }, this.isSourceImageValid() ? this.renderSourceImage() : null, index.h("span", { class: "title", part: "title" }, this.sidebarTitle), index.h("button", { class: "close-sidebar", onClick: () => (this.state = "closed") }, index.h(index$1.CrossIcon, null))), index.h("main", { part: "sidebar-content" }, index.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, productDetailNewTab: this.productDetailNewTab })))));
|
|
62
63
|
}
|
|
63
64
|
renderSourceImage() {
|
|
64
65
|
return (index.h("img", { class: "source-image", part: "source-image", src: this.sourceImage }));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a4becaff.js');
|
|
6
|
-
const _package = require('./package-
|
|
6
|
+
const _package = require('./package-1c204f84.js');
|
|
7
7
|
const index$1 = require('./index-6cfe5293.js');
|
|
8
8
|
|
|
9
9
|
const vviinnVprButtonCss = ":host{display:block}";
|
|
@@ -14,10 +14,10 @@ const VviinnVprButton = class {
|
|
|
14
14
|
this.vviinnWidgetLoad = index.createEvent(this, "vviinnWidgetLoad", 7);
|
|
15
15
|
this.vviinnWidgetOpen = index.createEvent(this, "vviinnWidgetOpen", 7);
|
|
16
16
|
this.vviinnWidgetClose = index.createEvent(this, "vviinnWidgetClose", 7);
|
|
17
|
+
this.vviinnNoResult = index.createEvent(this, "vviinnNoResult", 7);
|
|
18
|
+
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
17
19
|
this.vviinnProductClick = index.createEvent(this, "vviinnProductClick", 7);
|
|
18
20
|
this.vviinnProductView = index.createEvent(this, "vviinnProductView", 7);
|
|
19
|
-
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
20
|
-
this.vviinnNoResult = index.createEvent(this, "vviinnNoResult", 7);
|
|
21
21
|
this.sidebar = null;
|
|
22
22
|
this.sidebarCloseListener = () => {
|
|
23
23
|
document.body.removeChild(this.sidebar);
|
|
@@ -30,14 +30,15 @@ const VviinnVprButton = class {
|
|
|
30
30
|
this.modalScrollbar = false;
|
|
31
31
|
this.campaigns = "";
|
|
32
32
|
this.campaignType = "VPR";
|
|
33
|
-
this.color =
|
|
33
|
+
this.color = "";
|
|
34
34
|
this.addStyle = true;
|
|
35
35
|
this.mode = "continuity";
|
|
36
36
|
this.imageWidth = 300;
|
|
37
37
|
this.currencySign = "€";
|
|
38
|
-
this.noResultText =
|
|
38
|
+
this.noResultText = "No results! Please, try again later.";
|
|
39
39
|
this.noResultShow = true;
|
|
40
40
|
this.gridArrowsDynamic = false;
|
|
41
|
+
this.productDetailNewTab = false;
|
|
41
42
|
this.apiPath = "https://api.vviinn.com";
|
|
42
43
|
}
|
|
43
44
|
render() {
|
|
@@ -64,6 +65,7 @@ const VviinnVprButton = class {
|
|
|
64
65
|
sidebar.noResultText = this.noResultText;
|
|
65
66
|
sidebar.noResultShow = this.noResultShow;
|
|
66
67
|
sidebar.gridArrowsDynamic = this.gridArrowsDynamic;
|
|
68
|
+
sidebar.productDetailNewTab = this.productDetailNewTab;
|
|
67
69
|
sidebar.widgetVersion = _package.version;
|
|
68
70
|
sidebar.showingInButton = true;
|
|
69
71
|
this.sidebar = sidebar;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a4becaff.js');
|
|
6
|
-
const _package = require('./package-
|
|
6
|
+
const _package = require('./package-1c204f84.js');
|
|
7
7
|
const index$1 = require('./index-6cfe5293.js');
|
|
8
8
|
const customizedSlots = require('./customized-slots-aee3f39d.js');
|
|
9
9
|
const Campaign = require('./Campaign-13258569.js');
|
|
@@ -13,18 +13,18 @@ const vviinnVpsButtonCss = ":host{display:block}";
|
|
|
13
13
|
const VviinnVpsButton = class {
|
|
14
14
|
constructor(hostRef) {
|
|
15
15
|
index.registerInstance(this, hostRef);
|
|
16
|
-
this.
|
|
16
|
+
this.vviinnWidgetLoad = index.createEvent(this, "vviinnWidgetLoad", 7);
|
|
17
17
|
this.vviinnWidgetOpen = index.createEvent(this, "vviinnWidgetOpen", 7);
|
|
18
|
+
this.vviinnWidgetClose = index.createEvent(this, "vviinnWidgetClose", 7);
|
|
18
19
|
this.vviinnImageUpload = index.createEvent(this, "vviinnImageUpload", 7);
|
|
19
20
|
this.vviinnNoResult = index.createEvent(this, "vviinnNoResult", 7);
|
|
20
|
-
this.
|
|
21
|
-
this.vviinnWidgetClose = index.createEvent(this, "vviinnWidgetClose", 7);
|
|
21
|
+
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
22
22
|
this.vviinnProductClick = index.createEvent(this, "vviinnProductClick", 7);
|
|
23
23
|
this.vviinnProductView = index.createEvent(this, "vviinnProductView", 7);
|
|
24
|
-
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
25
24
|
this.vviinnImageCrop = index.createEvent(this, "vviinnImageCrop", 7);
|
|
26
25
|
this.vviinnSelectObject = index.createEvent(this, "vviinnSelectObject", 7);
|
|
27
26
|
this.vviinnSelectFilter = index.createEvent(this, "vviinnSelectFilter", 7);
|
|
27
|
+
this.globalSlotsChanged = index.createEvent(this, "globalSlotsChanged", 7);
|
|
28
28
|
this.getBasicEventData = () => {
|
|
29
29
|
return {
|
|
30
30
|
widgetType: "VPS",
|
|
@@ -37,9 +37,10 @@ const VviinnVpsButton = class {
|
|
|
37
37
|
this.token = undefined;
|
|
38
38
|
this.currencySign = "€";
|
|
39
39
|
this.locale = "de-DE";
|
|
40
|
-
this.campaignId =
|
|
40
|
+
this.campaignId = "";
|
|
41
41
|
this.addStyle = false;
|
|
42
42
|
this.mode = "modal";
|
|
43
|
+
this.productDetailNewTab = true;
|
|
43
44
|
this.apiPath = undefined;
|
|
44
45
|
this.buttonPressed = false;
|
|
45
46
|
}
|
|
@@ -59,7 +60,7 @@ const VviinnVpsButton = class {
|
|
|
59
60
|
render() {
|
|
60
61
|
return (index.h(index.Host, { tabindex: "0", role: "button" }, index.h("vviinn-button", { onClick: () => {
|
|
61
62
|
this.handleClick();
|
|
62
|
-
}, addStyle: this.addStyle, part: "vviinn-button" }, index.h("slot", null, index.h(index$1.CameraIcon, null))), index.h(customizedSlots.SlotSkeleton, null), index.h("vviinn-vps-widget", { mode: this.mode, "currency-sign": this.currencySign, token: this.token, locale: this.locale, apiPath: this.apiPath, exportparts: "brand, deeplink, currency, image, image-link, price-amount-sale, price-amount-outdated, price-amount-regular, price-container, price-outdated, price-regular, price-sale, price-prefix, title, product-card, example-images", campaignId: this.campaignId, showingInButton: true, buttonPressed: this.buttonPressed, resetVpsButton: this.resetButton.bind(this), buttonElementId: this.el.id })));
|
|
63
|
+
}, addStyle: this.addStyle, part: "vviinn-button" }, index.h("slot", null, index.h(index$1.CameraIcon, null))), index.h(customizedSlots.SlotSkeleton, null), index.h("vviinn-vps-widget", { mode: this.mode, "currency-sign": this.currencySign, token: this.token, locale: this.locale, apiPath: this.apiPath, exportparts: "brand, deeplink, currency, image, image-link, price-amount-sale, price-amount-outdated, price-amount-regular, price-container, price-outdated, price-regular, price-sale, price-prefix, title, product-card, example-images", campaignId: this.campaignId, showingInButton: true, buttonPressed: this.buttonPressed, resetVpsButton: this.resetButton.bind(this), buttonElementId: this.el.id, active: this.buttonPressed, productDetailNewTab: this.productDetailNewTab })));
|
|
63
64
|
}
|
|
64
65
|
get el() { return index.getElement(this); }
|
|
65
66
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a4becaff.js');
|
|
6
|
-
const _package = require('./package-
|
|
6
|
+
const _package = require('./package-1c204f84.js');
|
|
7
7
|
const imageSearch_store = require('./imageSearch.store-fbe0600a.js');
|
|
8
8
|
const customizedSlots = require('./customized-slots-aee3f39d.js');
|
|
9
9
|
const index$1 = require('./index-c4851793.js');
|
|
@@ -34,14 +34,14 @@ const VviinnVpsWidget = class {
|
|
|
34
34
|
this.vviinnWidgetLoad = index.createEvent(this, "vviinnWidgetLoad", 7);
|
|
35
35
|
this.vviinnWidgetOpen = index.createEvent(this, "vviinnWidgetOpen", 7);
|
|
36
36
|
this.vviinnWidgetClose = index.createEvent(this, "vviinnWidgetClose", 7);
|
|
37
|
+
this.vviinnImageUpload = index.createEvent(this, "vviinnImageUpload", 7);
|
|
38
|
+
this.vviinnNoResult = index.createEvent(this, "vviinnNoResult", 7);
|
|
39
|
+
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
37
40
|
this.vviinnProductClick = index.createEvent(this, "vviinnProductClick", 7);
|
|
38
41
|
this.vviinnProductView = index.createEvent(this, "vviinnProductView", 7);
|
|
39
|
-
this.vviinnProductLoad = index.createEvent(this, "vviinnProductLoad", 7);
|
|
40
|
-
this.vviinnImageUpload = index.createEvent(this, "vviinnImageUpload", 7);
|
|
41
42
|
this.vviinnImageCrop = index.createEvent(this, "vviinnImageCrop", 7);
|
|
42
43
|
this.vviinnSelectObject = index.createEvent(this, "vviinnSelectObject", 7);
|
|
43
44
|
this.vviinnSelectFilter = index.createEvent(this, "vviinnSelectFilter", 7);
|
|
44
|
-
this.vviinnNoResult = index.createEvent(this, "vviinnNoResult", 7);
|
|
45
45
|
this.imageSource = null;
|
|
46
46
|
this.setTrackingDeactivated = (result) => {
|
|
47
47
|
if (result.status === "rejected") {
|
|
@@ -59,11 +59,12 @@ const VviinnVpsWidget = class {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
this.token = undefined;
|
|
62
|
-
this.
|
|
63
|
-
this.active = false;
|
|
62
|
+
this.active = true;
|
|
64
63
|
this.currencySign = "€";
|
|
65
64
|
this.locale = "de-DE";
|
|
66
|
-
this.campaignId =
|
|
65
|
+
this.campaignId = "";
|
|
66
|
+
this.productDetailNewTab = true;
|
|
67
|
+
this.apiPath = "https://api.vviinn.com";
|
|
67
68
|
this.showingInButton = false;
|
|
68
69
|
this.buttonElementId = undefined;
|
|
69
70
|
this.buttonPressed = undefined;
|
|
@@ -74,6 +75,14 @@ const VviinnVpsWidget = class {
|
|
|
74
75
|
this.wrongImageFormat = false;
|
|
75
76
|
this.trackingDeactivated = false;
|
|
76
77
|
}
|
|
78
|
+
handleOpenLink(deeplink) {
|
|
79
|
+
if (this.productDetailNewTab) {
|
|
80
|
+
window.open(deeplink);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
window.location.href = deeplink;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
77
86
|
componentDidLoad() {
|
|
78
87
|
const slots = this.el.querySelectorAll("[slot]");
|
|
79
88
|
this.globalSlotsChanged.emit(Array.from(slots));
|
|
@@ -116,11 +125,11 @@ const VviinnVpsWidget = class {
|
|
|
116
125
|
.trackEvent(this.trackingDeactivated ? null : productClickEvent)
|
|
117
126
|
.then(this.setTrackingDeactivated)
|
|
118
127
|
.finally(() => {
|
|
119
|
-
|
|
128
|
+
this.handleOpenLink(product.deeplink);
|
|
120
129
|
});
|
|
121
130
|
}
|
|
122
131
|
else {
|
|
123
|
-
|
|
132
|
+
this.handleOpenLink(product.deeplink);
|
|
124
133
|
}
|
|
125
134
|
}
|
|
126
135
|
trachSearchAreaChanges() {
|
|
@@ -20,7 +20,7 @@ const patchBrowser = () => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
patchBrowser().then(options => {
|
|
23
|
-
return index.bootstrapLazy([["vviinn-button.cjs",[[1,"vviinn-button",{"addStyle":[4,"add-style"]}]]],["cropper-handler.cjs",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error.cjs",[[1,"vviinn-error"]]],["vviinn-preloader.cjs",[[1,"vviinn-preloader"]]],["vviinn-carousel_3.cjs",[[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"],"
|
|
23
|
+
return index.bootstrapLazy([["vviinn-button.cjs",[[1,"vviinn-button",{"addStyle":[4,"add-style"]}]]],["cropper-handler.cjs",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error.cjs",[[1,"vviinn-error"]]],["vviinn-preloader.cjs",[[1,"vviinn-preloader"]]],["vviinn-carousel_3.cjs",[[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"],"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.cjs",[[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.cjs",[[1,"vviinn-vps-widget",{"token":[1],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"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.cjs",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"addStyle":[4,"add-style"],"mode":[1],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"],"buttonPressed":[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]]]],["vviinn-recommendations-sidebar.cjs",[[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"],"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.cjs",[[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"],"productDetailNewTab":[4,"product-detail-new-tab"],"apiPath":[1,"api-path"]}]]]], options);
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
exports.setNonce = index.setNonce;
|
|
@@ -139,7 +139,7 @@ export class ImageCropper {
|
|
|
139
139
|
"mutable": false,
|
|
140
140
|
"complexType": {
|
|
141
141
|
"original": "BasicEventData",
|
|
142
|
-
"resolved": "{ widgetType:
|
|
142
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
143
143
|
"references": {
|
|
144
144
|
"BasicEventData": {
|
|
145
145
|
"location": "import",
|
|
@@ -174,7 +174,7 @@ export class ImageCropper {
|
|
|
174
174
|
},
|
|
175
175
|
"complexType": {
|
|
176
176
|
"original": "BasicEventData",
|
|
177
|
-
"resolved": "{ widgetType:
|
|
177
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
178
178
|
"references": {
|
|
179
179
|
"BasicEventData": {
|
|
180
180
|
"location": "import",
|
|
@@ -117,7 +117,7 @@ export class SearchFilters {
|
|
|
117
117
|
"mutable": false,
|
|
118
118
|
"complexType": {
|
|
119
119
|
"original": "BasicEventData",
|
|
120
|
-
"resolved": "{ widgetType:
|
|
120
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
121
121
|
"references": {
|
|
122
122
|
"BasicEventData": {
|
|
123
123
|
"location": "import",
|
|
@@ -153,7 +153,7 @@ export class SearchFilters {
|
|
|
153
153
|
},
|
|
154
154
|
"complexType": {
|
|
155
155
|
"original": "SelectFilterEventData",
|
|
156
|
-
"resolved": "
|
|
156
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; action: FilterAction; filterName?: string; }",
|
|
157
157
|
"references": {
|
|
158
158
|
"SelectFilterEventData": {
|
|
159
159
|
"location": "import",
|
|
@@ -104,7 +104,7 @@ export class VviinnExampleImage {
|
|
|
104
104
|
"mutable": false,
|
|
105
105
|
"complexType": {
|
|
106
106
|
"original": "BasicEventData",
|
|
107
|
-
"resolved": "{ widgetType:
|
|
107
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
108
108
|
"references": {
|
|
109
109
|
"BasicEventData": {
|
|
110
110
|
"location": "import",
|
|
@@ -139,7 +139,7 @@ export class VviinnExampleImage {
|
|
|
139
139
|
},
|
|
140
140
|
"complexType": {
|
|
141
141
|
"original": "BasicEventData",
|
|
142
|
-
"resolved": "{ widgetType:
|
|
142
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
143
143
|
"references": {
|
|
144
144
|
"BasicEventData": {
|
|
145
145
|
"location": "import",
|
|
@@ -159,7 +159,7 @@ export class VviinnExampleImage {
|
|
|
159
159
|
},
|
|
160
160
|
"complexType": {
|
|
161
161
|
"original": "BasicEventData",
|
|
162
|
-
"resolved": "{ widgetType:
|
|
162
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
163
163
|
"references": {
|
|
164
164
|
"BasicEventData": {
|
|
165
165
|
"location": "import",
|
|
@@ -34,7 +34,7 @@ export class VviinnExampleImages {
|
|
|
34
34
|
"mutable": false,
|
|
35
35
|
"complexType": {
|
|
36
36
|
"original": "BasicEventData",
|
|
37
|
-
"resolved": "{ widgetType:
|
|
37
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
38
38
|
"references": {
|
|
39
39
|
"BasicEventData": {
|
|
40
40
|
"location": "import",
|
|
@@ -64,7 +64,7 @@ export class VviinnExampleImages {
|
|
|
64
64
|
},
|
|
65
65
|
"complexType": {
|
|
66
66
|
"original": "BasicEventData",
|
|
67
|
-
"resolved": "{ widgetType:
|
|
67
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
68
68
|
"references": {
|
|
69
69
|
"BasicEventData": {
|
|
70
70
|
"location": "import",
|
|
@@ -84,7 +84,7 @@ export class VviinnExampleImages {
|
|
|
84
84
|
},
|
|
85
85
|
"complexType": {
|
|
86
86
|
"original": "BasicEventData",
|
|
87
|
-
"resolved": "{ widgetType:
|
|
87
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
88
88
|
"references": {
|
|
89
89
|
"BasicEventData": {
|
|
90
90
|
"location": "import",
|
|
@@ -48,7 +48,7 @@ export class VviinnImageSelector {
|
|
|
48
48
|
"mutable": false,
|
|
49
49
|
"complexType": {
|
|
50
50
|
"original": "BasicEventData",
|
|
51
|
-
"resolved": "{ widgetType:
|
|
51
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
52
52
|
"references": {
|
|
53
53
|
"BasicEventData": {
|
|
54
54
|
"location": "import",
|
|
@@ -106,11 +106,11 @@ export class VviinnImageSelector {
|
|
|
106
106
|
"composed": true,
|
|
107
107
|
"docs": {
|
|
108
108
|
"tags": [],
|
|
109
|
-
"text": "
|
|
109
|
+
"text": "The image was uploaded"
|
|
110
110
|
},
|
|
111
111
|
"complexType": {
|
|
112
112
|
"original": "BasicEventData",
|
|
113
|
-
"resolved": "{ widgetType:
|
|
113
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
114
114
|
"references": {
|
|
115
115
|
"BasicEventData": {
|
|
116
116
|
"location": "import",
|
|
@@ -126,11 +126,11 @@ export class VviinnImageSelector {
|
|
|
126
126
|
"composed": true,
|
|
127
127
|
"docs": {
|
|
128
128
|
"tags": [],
|
|
129
|
-
"text": "
|
|
129
|
+
"text": "Wrong image format, that isn\u2019t .jpg, .jpeg, png"
|
|
130
130
|
},
|
|
131
131
|
"complexType": {
|
|
132
132
|
"original": "BasicEventData",
|
|
133
|
-
"resolved": "{ widgetType:
|
|
133
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
134
134
|
"references": {
|
|
135
135
|
"BasicEventData": {
|
|
136
136
|
"location": "import",
|
|
@@ -89,7 +89,7 @@ export class VviinnDetectedObject {
|
|
|
89
89
|
"mutable": false,
|
|
90
90
|
"complexType": {
|
|
91
91
|
"original": "BasicEventData",
|
|
92
|
-
"resolved": "{ widgetType:
|
|
92
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
93
93
|
"references": {
|
|
94
94
|
"BasicEventData": {
|
|
95
95
|
"location": "import",
|
|
@@ -124,7 +124,7 @@ export class VviinnDetectedObject {
|
|
|
124
124
|
},
|
|
125
125
|
"complexType": {
|
|
126
126
|
"original": "SelectObjectEventData",
|
|
127
|
-
"resolved": "
|
|
127
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; detectedObject: ValueObject<DetectedObject>; }",
|
|
128
128
|
"references": {
|
|
129
129
|
"SelectObjectEventData": {
|
|
130
130
|
"location": "import",
|
|
@@ -58,7 +58,7 @@ export class VviinnImageView {
|
|
|
58
58
|
"mutable": false,
|
|
59
59
|
"complexType": {
|
|
60
60
|
"original": "BasicEventData",
|
|
61
|
-
"resolved": "{ widgetType:
|
|
61
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
62
62
|
"references": {
|
|
63
63
|
"BasicEventData": {
|
|
64
64
|
"location": "import",
|
|
@@ -157,11 +157,11 @@ export class VviinnModal {
|
|
|
157
157
|
"composed": true,
|
|
158
158
|
"docs": {
|
|
159
159
|
"tags": [],
|
|
160
|
-
"text": "Event emitted when
|
|
160
|
+
"text": "Event emitted when Close Button clicked and close animation ends"
|
|
161
161
|
},
|
|
162
162
|
"complexType": {
|
|
163
163
|
"original": "BasicEventData",
|
|
164
|
-
"resolved": "{ widgetType:
|
|
164
|
+
"resolved": "{ widgetType: \"VPR\" | \"VPS\"; campaignTypeId: \"VPR\" | \"VPS\" | \"VCS\"; campaignTypeName: \"Similar Products\" | \"Visual Search\" | \"Products Cross-Selling\"; widgetId: string; widgetVersion: string; }",
|
|
165
165
|
"references": {
|
|
166
166
|
"BasicEventData": {
|
|
167
167
|
"location": "import",
|