vviinn-widgets 2.18.21 → 2.19.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-cb410762.js → Campaign-a94a827a.js} +17 -1
- package/dist/cjs/cropper-handler_29.cjs.entry.js +1418 -0
- package/dist/cjs/{imageSearch.store-98824653.js → index-48c94264.js} +16016 -11171
- package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +683 -303
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +150 -270
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +14 -8
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +12 -14
- package/dist/cjs/vviinn-widgets.cjs.js +10 -3
- package/dist/collection/Image/sizing.spec.js +66 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +11 -7
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +40 -37
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +73 -67
- package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
- package/dist/collection/components/image-search/search-filters/search-filters.js +97 -91
- package/dist/collection/components/vviinn-button/vviinn-button.js +34 -31
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +161 -156
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +12 -14
- package/dist/collection/components/vviinn-error/vviinn-error.js +12 -12
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +35 -30
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +35 -30
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -121
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +75 -75
- package/dist/collection/components/vviinn-icons/index.js +10 -27
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +120 -67
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +81 -69
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +27 -28
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +115 -93
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +12 -14
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +12 -14
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +12 -14
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +12 -17
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +12 -9
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +107 -78
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +11 -7
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +12 -16
- package/dist/collection/components/vviinn-product-card/render-helpers.js +6 -14
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -415
- package/dist/collection/components/vviinn-slider/arrow.js +1 -2
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +12 -9
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +87 -82
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +12 -18
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +371 -360
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +448 -444
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +545 -542
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +2 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +368 -332
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +26 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +502 -425
- package/dist/collection/geometry/Clip.spec.js +16 -0
- package/dist/collection/geometry/Rectangle.spec.js +66 -0
- package/dist/collection/geometry/Sized.spec.js +16 -0
- package/dist/collection/interfaces/generated.js +0 -4
- package/dist/collection/network/ion/Form.spec.js +43 -0
- package/dist/esm/{index-b31d86ce.js → Campaign-4aa53f29.js} +15 -2
- package/dist/esm/cropper-handler_29.entry.js +1386 -0
- package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +683 -304
- package/dist/esm/{imageSearch.store-9dde5360.js → index-976acf7e.js} +16124 -11292
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +106 -225
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +13 -7
- package/dist/esm/vviinn-vpr-button.entry.js +11 -13
- package/dist/esm/vviinn-widgets.js +7 -3
- package/dist/loader/index.d.ts +9 -0
- package/dist/loader/package.json +1 -0
- package/dist/types/Image/sizing.d.ts +4 -4
- package/dist/types/campaign/Campaign.d.ts +5 -5
- package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
- package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
- package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
- package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
- package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
- package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
- package/dist/types/components.d.ts +154 -54
- package/dist/types/error.d.ts +1 -1
- package/dist/types/geometry/Point.d.ts +1 -1
- package/dist/types/geometry/Rectangle.d.ts +1 -1
- package/dist/types/geometry/Sized.d.ts +1 -1
- package/dist/types/interfaces/generated.d.ts +192 -371
- package/dist/types/network/ion/File.d.ts +2 -2
- package/dist/types/network/ion/Form.d.ts +5 -5
- package/dist/types/network/ion/Link.d.ts +1 -1
- package/dist/types/network/ion/ValueObject.d.ts +4 -4
- package/dist/types/network/utils.d.ts +3 -3
- package/dist/types/recommendation/events.d.ts +5 -5
- package/dist/types/recommendation/recommendation.d.ts +1 -1
- package/dist/types/searchSession/searchSession.d.ts +7 -7
- package/dist/types/slider/GridMode.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +98 -23
- package/dist/types/store/imageSearch.store.d.ts +1 -1
- package/dist/types/tracking/models.d.ts +2 -2
- package/dist/types/utils/event/Events.d.ts +1 -1
- package/dist/vviinn-widgets/p-312b0eb7.entry.js +1 -0
- package/dist/vviinn-widgets/p-414b2291.js +1 -0
- package/dist/vviinn-widgets/p-5b50c7e5.entry.js +1 -0
- package/dist/vviinn-widgets/p-8deaa5da.entry.js +1 -0
- package/dist/vviinn-widgets/p-c6209bc1.entry.js +1 -0
- package/{www/build/p-2f9ee951.js → dist/vviinn-widgets/p-d08ce429.js} +1 -1
- package/dist/vviinn-widgets/p-fa17e81f.js +2 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +12 -12
- package/www/build/p-312b0eb7.entry.js +1 -0
- package/www/build/p-414b2291.js +1 -0
- package/www/build/p-5b50c7e5.entry.js +1 -0
- package/www/build/p-8deaa5da.entry.js +1 -0
- package/www/build/p-c6209bc1.entry.js +1 -0
- package/{dist/vviinn-widgets/p-2f9ee951.js → www/build/p-d08ce429.js} +1 -1
- package/www/build/p-d39b7d70.js +161 -0
- package/www/build/p-fa17e81f.js +2 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +2 -2
- package/dist/cjs/Campaign-13258569.js +0 -18
- package/dist/cjs/Handler-176539c8.js +0 -331
- package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
- package/dist/cjs/customized-slots-6e56c354.js +0 -54
- package/dist/cjs/highlight-box_22.cjs.entry.js +0 -770
- package/dist/cjs/index-a99edb90.js +0 -3235
- package/dist/cjs/vviinn-button.cjs.entry.js +0 -21
- package/dist/cjs/vviinn-error.cjs.entry.js +0 -19
- package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -26
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -65
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -251
- package/dist/esm/Campaign-90ba7e06.js +0 -14
- package/dist/esm/Handler-f9b8735c.js +0 -309
- package/dist/esm/cropper-handler.entry.js +0 -23
- package/dist/esm/customized-slots-00afe247.js +0 -51
- package/dist/esm/highlight-box_22.entry.js +0 -745
- package/dist/esm/index-4d5b52ba.js +0 -3224
- package/dist/esm/vviinn-button.entry.js +0 -17
- package/dist/esm/vviinn-error.entry.js +0 -15
- package/dist/esm/vviinn-preloader.entry.js +0 -22
- package/dist/esm/vviinn-vps-button.entry.js +0 -61
- package/dist/esm/vviinn-vps-widget.entry.js +0 -247
- package/dist/vviinn-widgets/p-11f61564.js +0 -1
- package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
- package/dist/vviinn-widgets/p-18fd769b.js +0 -1
- package/dist/vviinn-widgets/p-339c6838.js +0 -1
- package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
- package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
- package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
- package/dist/vviinn-widgets/p-69850e5b.js +0 -1
- package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
- package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
- package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
- package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
- package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
- package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
- package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
- package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
- package/www/build/p-11f61564.js +0 -1
- package/www/build/p-12851e97.entry.js +0 -1
- package/www/build/p-18fd769b.js +0 -1
- package/www/build/p-339c6838.js +0 -1
- package/www/build/p-3b2c91c0.entry.js +0 -1
- package/www/build/p-45df9f28.entry.js +0 -1
- package/www/build/p-57ed5303.entry.js +0 -1
- package/www/build/p-69850e5b.js +0 -1
- package/www/build/p-7c2f762a.entry.js +0 -1
- package/www/build/p-7c3b7388.entry.js +0 -1
- package/www/build/p-85006f41.entry.js +0 -1
- package/www/build/p-8a3dd76d.entry.js +0 -1
- package/www/build/p-99e58be7.entry.js +0 -1
- package/www/build/p-9e2c131a.js +0 -125
- package/www/build/p-a2b450b6.entry.js +0 -1
- package/www/build/p-bcc1ccf0.js +0 -1
- package/www/build/p-e6fee8d2.js +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
2
|
var t = {};
|
|
3
|
-
for (var p in s)
|
|
4
|
-
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
5
6
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
7
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
8
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
@@ -9,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
10
|
}
|
|
10
11
|
return t;
|
|
11
12
|
};
|
|
12
|
-
import {
|
|
13
|
+
import { Host, h, } from "@stencil/core";
|
|
13
14
|
import { state } from "../../store/store";
|
|
14
15
|
import { imageSearchState } from "../../store/imageSearch.store";
|
|
15
16
|
import * as O from "fp-ts/lib/Option";
|
|
@@ -70,20 +71,6 @@ const notNan = (n) => !isNaN(n);
|
|
|
70
71
|
*/
|
|
71
72
|
export class VviinnVpsWidget {
|
|
72
73
|
constructor() {
|
|
73
|
-
/** @internal */
|
|
74
|
-
this.apiPath = "https://api.vviinn.com";
|
|
75
|
-
/** When true modal window with widget will be shown */
|
|
76
|
-
this.active = false;
|
|
77
|
-
/** Currency sign will shown after price */
|
|
78
|
-
this.currencySign = "€";
|
|
79
|
-
/** Locale for currency formatting */
|
|
80
|
-
this.locale = "de-DE";
|
|
81
|
-
/** Set true when showing the widget in button */
|
|
82
|
-
this.showingInButton = false;
|
|
83
|
-
this.slidePosition = 0;
|
|
84
|
-
this.width = 0;
|
|
85
|
-
this.wrongImageFormat = false;
|
|
86
|
-
this.trackingDeactivated = false;
|
|
87
74
|
this.imageSource = null;
|
|
88
75
|
this.setTrackingDeactivated = (result) => {
|
|
89
76
|
if (result.status === "rejected") {
|
|
@@ -99,6 +86,21 @@ export class VviinnVpsWidget {
|
|
|
99
86
|
widgetId: (_a = this.buttonElementId) !== null && _a !== void 0 ? _a : this.id,
|
|
100
87
|
};
|
|
101
88
|
};
|
|
89
|
+
this.token = undefined;
|
|
90
|
+
this.apiPath = "https://api.vviinn.com";
|
|
91
|
+
this.active = false;
|
|
92
|
+
this.currencySign = "€";
|
|
93
|
+
this.locale = "de-DE";
|
|
94
|
+
this.campaignId = undefined;
|
|
95
|
+
this.showingInButton = false;
|
|
96
|
+
this.buttonElementId = undefined;
|
|
97
|
+
this.buttonPressed = undefined;
|
|
98
|
+
this.mode = "modal";
|
|
99
|
+
this.resetVpsButton = undefined;
|
|
100
|
+
this.slidePosition = 0;
|
|
101
|
+
this.width = 0;
|
|
102
|
+
this.wrongImageFormat = false;
|
|
103
|
+
this.trackingDeactivated = false;
|
|
102
104
|
}
|
|
103
105
|
componentDidLoad() {
|
|
104
106
|
const slots = this.el.querySelectorAll("[slot]");
|
|
@@ -114,6 +116,14 @@ export class VviinnVpsWidget {
|
|
|
114
116
|
document.body.style.overflow = this.overflow;
|
|
115
117
|
}
|
|
116
118
|
}
|
|
119
|
+
buttonPressedWatcher(pressed) {
|
|
120
|
+
if (!pressed)
|
|
121
|
+
return;
|
|
122
|
+
if (this.mode === "modal") {
|
|
123
|
+
this.active = true;
|
|
124
|
+
this.vviinnWidgetOpen.emit(this.getBasicEventData());
|
|
125
|
+
}
|
|
126
|
+
}
|
|
117
127
|
trackProductView({ detail }) {
|
|
118
128
|
if (this.trackingDeactivated)
|
|
119
129
|
return;
|
|
@@ -178,14 +188,8 @@ export class VviinnVpsWidget {
|
|
|
178
188
|
this.id = this.el.id;
|
|
179
189
|
}
|
|
180
190
|
componentWillLoad() {
|
|
181
|
-
var _a;
|
|
182
191
|
slotChangeListener(this, this.el);
|
|
183
|
-
this.vviinnWidgetLoad.emit(
|
|
184
|
-
widgetType: "VPS",
|
|
185
|
-
campaignTypeId: "VPS",
|
|
186
|
-
campaignTypeName: campaignTypeNames["VPS"],
|
|
187
|
-
widgetId: (_a = this.buttonElementId) !== null && _a !== void 0 ? _a : this.id,
|
|
188
|
-
});
|
|
192
|
+
this.vviinnWidgetLoad.emit(this.getBasicEventData());
|
|
189
193
|
}
|
|
190
194
|
trackOpenEvent() {
|
|
191
195
|
if (this.trackingDeactivated)
|
|
@@ -257,422 +261,495 @@ export class VviinnVpsWidget {
|
|
|
257
261
|
}
|
|
258
262
|
render() {
|
|
259
263
|
var _a;
|
|
260
|
-
return (h(Host, null,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
h("div", { id: "onboarding-block", class: "start-page_block" },
|
|
282
|
-
h("div", { class: "onboarding-wrapper" },
|
|
283
|
-
h("vviinn-onboarding", null),
|
|
284
|
-
h("vviinn-example-images", { part: "example-images", onVviinnImageUpload: () => this.handleImageSelection("example"), onVviinnNoResult: () => this.resetScroll("onboarding-block", "smooth"), basicEventData: this.getBasicEventData() })))),
|
|
285
|
-
h("vviinn-slide", { class: { "results-page": true, active: this.slidePosition == 1 } },
|
|
286
|
-
h("div", { class: "image-wrapper" },
|
|
287
|
-
h("vviinn-image-view", { basicEventData: this.getBasicEventData() }),
|
|
288
|
-
h("div", { class: "filters-wrapper" },
|
|
289
|
-
h("div", { class: "filters" }, imageSearchState.filters.map((filter) => (h("search-filters", { filter: filter, basicEventData: this.getBasicEventData() })))))),
|
|
290
|
-
h("div", { id: "results-block", class: "products-wrapper" },
|
|
291
|
-
h("div", { class: {
|
|
292
|
-
"nothing-found": true,
|
|
293
|
-
hidden: imageSearchState.results.length > 0,
|
|
294
|
-
} },
|
|
295
|
-
h("vviinn-empty-results", null),
|
|
296
|
-
h("vviinn-onboarding", null)),
|
|
297
|
-
h("div", { class: {
|
|
298
|
-
hidden: imageSearchState.results.length <= 0,
|
|
299
|
-
products: true,
|
|
300
|
-
} }, imageSearchState.results.map((p, i) => {
|
|
301
|
-
var _a;
|
|
302
|
-
return (h("vviinn-product-card", { key: p.productId, hidden: true, productTitle: p.title, productId: p.productId, brand: p.brand, deeplink: p.deeplink, price: p.price.actual, salePrice: p.price.sale, imageWidth: 160, image: (_a = p.image.thumbnail) !== null && _a !== void 0 ? _a : p.image.original, part: "product-card", campaignTypeId: "VPS", index: i, widgetElementId: this.id, buttonElementId: this.buttonElementId }));
|
|
303
|
-
}))))))));
|
|
264
|
+
return (h(Host, null, !this.showingInButton && h(SlotSkeleton, null), h("vviinn-overlayed-modal", { class: { "first-screen": this.slidePosition === 0 }, active: this.active, resetState: this.resetState.bind(this), onVviinnWidgetClose: () => this.handleModalClose(), buttonElementId: (_a = this.buttonElementId) !== null && _a !== void 0 ? _a : this.id, hideBackButton: this.mode === "upload", exportparts: "secondary-action, title, close-button, example-images" }, h("vviinn-slider", { showBullets: false, position: this.slidePosition }, h("vviinn-slide", { class: { "start-page": true } }, h("div", { class: {
|
|
265
|
+
error: this.haveErrors(),
|
|
266
|
+
"start-page_block": true,
|
|
267
|
+
} }, h("vviinn-wrong-format", { class: { hidden: !this.wrongImageFormat }, handler: () => (this.wrongImageFormat = false) }), h("vviinn-server-error", { class: { hidden: !imageSearchState.serverError }, handler: () => (imageSearchState.serverError = false) }), h("vviinn-teaser", { class: { hidden: this.haveErrors() } }), h("vviinn-image-selector", { class: { hidden: this.haveErrors() }, onVviinnImageUpload: () => {
|
|
268
|
+
this.active = true;
|
|
269
|
+
this.handleImageSelection("upload");
|
|
270
|
+
if (this.mode === "upload") {
|
|
271
|
+
this.vviinnWidgetOpen.emit(this.getBasicEventData());
|
|
272
|
+
}
|
|
273
|
+
}, onVviinnNoResult: () => (this.wrongImageFormat = true), resetVpsButton: this.resetVpsButton, basicEventData: this.getBasicEventData(), part: "select-image_button", startUpload: this.buttonPressed &&
|
|
274
|
+
this.showingInButton &&
|
|
275
|
+
this.mode === "upload" }, h("span", { slot: "upload-button-text", class: "upload-button-content" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "29", height: "28", fill: "none" }, h("defs", null), h("path", { fill: "#fff", "fill-rule": "evenodd", d: "M10.271 3.89A.875.875 0 0111 3.5h7c.293 0 .566.146.728.39l1.49 2.235h3.033a2.625 2.625 0 012.625 2.625V21a2.625 2.625 0 01-2.625 2.625H5.75A2.625 2.625 0 013.125 21V8.75A2.625 2.625 0 015.75 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.75a.875.875 0 00-.875.875V21a.875.875 0 00.875.875h17.5a.875.875 0 00.875-.875V8.75a.875.875 0 00-.875-.875h-3.5a.875.875 0 01-.729-.39l-1.49-2.235h-6.063z", "clip-rule": "evenodd" }), h("path", { fill: "#fff", "fill-rule": "evenodd", d: "M14.5 11.375a3.062 3.062 0 100 6.125 3.062 3.062 0 000-6.125zm-4.813 3.063a4.812 4.812 0 119.625 0 4.812 4.812 0 01-9.625 0z", "clip-rule": "evenodd" })), h("slot", { name: "vviinn-image-upload-button-text" }, h("span", null, "Kamera oder Bild ausw\u00E4hlen")))), h("vviinn-privacy-badge", { class: { hidden: this.haveErrors() } })), h("div", { id: "onboarding-block", class: "start-page_block" }, h("div", { class: "onboarding-wrapper" }, h("vviinn-onboarding", null), h("vviinn-example-images", { part: "example-images", onVviinnImageUpload: () => this.handleImageSelection("example"), onVviinnNoResult: () => this.resetScroll("onboarding-block", "smooth"), basicEventData: this.getBasicEventData() })))), h("vviinn-slide", { class: { "results-page": true, active: this.slidePosition == 1 } }, h("div", { class: "image-wrapper" }, h("vviinn-image-view", { basicEventData: this.getBasicEventData() }), h("div", { class: "filters-wrapper" }, h("div", { class: "filters" }, imageSearchState.filters.map((filter) => (h("search-filters", { filter: filter, basicEventData: this.getBasicEventData() })))))), h("div", { id: "results-block", class: "products-wrapper" }, h("div", { class: {
|
|
276
|
+
"nothing-found": true,
|
|
277
|
+
hidden: imageSearchState.results.length > 0,
|
|
278
|
+
} }, h("vviinn-empty-results", null), h("vviinn-onboarding", null)), h("div", { class: {
|
|
279
|
+
hidden: imageSearchState.results.length <= 0,
|
|
280
|
+
products: true,
|
|
281
|
+
} }, imageSearchState.results.map((p, i) => {
|
|
282
|
+
var _a;
|
|
283
|
+
return (h("vviinn-product-card", { key: p.productId, hidden: true, productTitle: p.title, productId: p.productId, brand: p.brand, deeplink: p.deeplink, price: p.price.actual, salePrice: p.price.sale, imageWidth: 160, image: (_a = p.image.thumbnail) !== null && _a !== void 0 ? _a : p.image.original, part: "product-card", campaignTypeId: "VPS", index: i, widgetElementId: this.id, buttonElementId: this.buttonElementId }));
|
|
284
|
+
}))))))));
|
|
304
285
|
}
|
|
305
286
|
static get is() { return "vviinn-vps-widget"; }
|
|
306
287
|
static get encapsulation() { return "shadow"; }
|
|
307
|
-
static get originalStyleUrls() {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
"original": "string",
|
|
336
|
-
"resolved": "string",
|
|
337
|
-
"references": {}
|
|
338
|
-
},
|
|
339
|
-
"required": false,
|
|
340
|
-
"optional": false,
|
|
341
|
-
"docs": {
|
|
342
|
-
"tags": [{
|
|
343
|
-
"text": undefined,
|
|
344
|
-
"name": "internal"
|
|
345
|
-
}],
|
|
346
|
-
"text": ""
|
|
347
|
-
},
|
|
348
|
-
"attribute": "api-path",
|
|
349
|
-
"reflect": false,
|
|
350
|
-
"defaultValue": "\"https://api.vviinn.com\""
|
|
351
|
-
},
|
|
352
|
-
"active": {
|
|
353
|
-
"type": "boolean",
|
|
354
|
-
"mutable": true,
|
|
355
|
-
"complexType": {
|
|
356
|
-
"original": "boolean",
|
|
357
|
-
"resolved": "boolean",
|
|
358
|
-
"references": {}
|
|
359
|
-
},
|
|
360
|
-
"required": false,
|
|
361
|
-
"optional": false,
|
|
362
|
-
"docs": {
|
|
363
|
-
"tags": [],
|
|
364
|
-
"text": "When true modal window with widget will be shown"
|
|
365
|
-
},
|
|
366
|
-
"attribute": "active",
|
|
367
|
-
"reflect": false,
|
|
368
|
-
"defaultValue": "false"
|
|
369
|
-
},
|
|
370
|
-
"currencySign": {
|
|
371
|
-
"type": "string",
|
|
372
|
-
"mutable": false,
|
|
373
|
-
"complexType": {
|
|
374
|
-
"original": "string",
|
|
375
|
-
"resolved": "string",
|
|
376
|
-
"references": {}
|
|
377
|
-
},
|
|
378
|
-
"required": false,
|
|
379
|
-
"optional": false,
|
|
380
|
-
"docs": {
|
|
381
|
-
"tags": [],
|
|
382
|
-
"text": "Currency sign will shown after price"
|
|
288
|
+
static get originalStyleUrls() {
|
|
289
|
+
return {
|
|
290
|
+
"$": ["vviinn-vps-widget.css"]
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
static get styleUrls() {
|
|
294
|
+
return {
|
|
295
|
+
"$": ["vviinn-vps-widget.css"]
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
static get properties() {
|
|
299
|
+
return {
|
|
300
|
+
"token": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"mutable": false,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "string | undefined",
|
|
305
|
+
"resolved": "string",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": false,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": "vviinn customer token"
|
|
313
|
+
},
|
|
314
|
+
"attribute": "token",
|
|
315
|
+
"reflect": false
|
|
383
316
|
},
|
|
384
|
-
"
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"
|
|
317
|
+
"apiPath": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"mutable": false,
|
|
320
|
+
"complexType": {
|
|
321
|
+
"original": "string",
|
|
322
|
+
"resolved": "string",
|
|
323
|
+
"references": {}
|
|
324
|
+
},
|
|
325
|
+
"required": false,
|
|
326
|
+
"optional": false,
|
|
327
|
+
"docs": {
|
|
328
|
+
"tags": [{
|
|
329
|
+
"name": "internal",
|
|
330
|
+
"text": undefined
|
|
331
|
+
}],
|
|
332
|
+
"text": ""
|
|
333
|
+
},
|
|
334
|
+
"attribute": "api-path",
|
|
335
|
+
"reflect": false,
|
|
336
|
+
"defaultValue": "\"https://api.vviinn.com\""
|
|
395
337
|
},
|
|
396
|
-
"
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
"
|
|
400
|
-
|
|
338
|
+
"active": {
|
|
339
|
+
"type": "boolean",
|
|
340
|
+
"mutable": true,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "boolean",
|
|
343
|
+
"resolved": "boolean",
|
|
344
|
+
"references": {}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": false,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "When true modal window with widget will be shown"
|
|
351
|
+
},
|
|
352
|
+
"attribute": "active",
|
|
353
|
+
"reflect": false,
|
|
354
|
+
"defaultValue": "false"
|
|
401
355
|
},
|
|
402
|
-
"
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
356
|
+
"currencySign": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"mutable": false,
|
|
359
|
+
"complexType": {
|
|
360
|
+
"original": "string",
|
|
361
|
+
"resolved": "string",
|
|
362
|
+
"references": {}
|
|
363
|
+
},
|
|
364
|
+
"required": false,
|
|
365
|
+
"optional": false,
|
|
366
|
+
"docs": {
|
|
367
|
+
"tags": [],
|
|
368
|
+
"text": "Currency sign will shown after price"
|
|
369
|
+
},
|
|
370
|
+
"attribute": "currency-sign",
|
|
371
|
+
"reflect": false,
|
|
372
|
+
"defaultValue": "\"\u20AC\""
|
|
413
373
|
},
|
|
414
|
-
"
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
"
|
|
418
|
-
|
|
374
|
+
"locale": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "string",
|
|
379
|
+
"resolved": "string",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": false,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": "Locale for currency formatting"
|
|
387
|
+
},
|
|
388
|
+
"attribute": "locale",
|
|
389
|
+
"reflect": false,
|
|
390
|
+
"defaultValue": "\"de-DE\""
|
|
419
391
|
},
|
|
420
|
-
"
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
"
|
|
429
|
-
"
|
|
392
|
+
"campaignId": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "string",
|
|
397
|
+
"resolved": "string",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": true,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": "Campaign using for visual search"
|
|
405
|
+
},
|
|
406
|
+
"attribute": "campaign-id",
|
|
407
|
+
"reflect": false
|
|
430
408
|
},
|
|
431
|
-
"
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
"
|
|
435
|
-
|
|
409
|
+
"showingInButton": {
|
|
410
|
+
"type": "boolean",
|
|
411
|
+
"mutable": false,
|
|
412
|
+
"complexType": {
|
|
413
|
+
"original": "boolean",
|
|
414
|
+
"resolved": "boolean",
|
|
415
|
+
"references": {}
|
|
416
|
+
},
|
|
417
|
+
"required": false,
|
|
418
|
+
"optional": true,
|
|
419
|
+
"docs": {
|
|
420
|
+
"tags": [],
|
|
421
|
+
"text": "Set true when showing the widget in button"
|
|
422
|
+
},
|
|
423
|
+
"attribute": "showing-in-button",
|
|
424
|
+
"reflect": false,
|
|
425
|
+
"defaultValue": "false"
|
|
436
426
|
},
|
|
437
|
-
"
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
"
|
|
446
|
-
"
|
|
447
|
-
"
|
|
427
|
+
"buttonElementId": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"mutable": false,
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "string",
|
|
432
|
+
"resolved": "string",
|
|
433
|
+
"references": {}
|
|
434
|
+
},
|
|
435
|
+
"required": false,
|
|
436
|
+
"optional": true,
|
|
437
|
+
"docs": {
|
|
438
|
+
"tags": [{
|
|
439
|
+
"name": "internal",
|
|
440
|
+
"text": undefined
|
|
441
|
+
}],
|
|
442
|
+
"text": ""
|
|
443
|
+
},
|
|
444
|
+
"attribute": "button-element-id",
|
|
445
|
+
"reflect": false
|
|
448
446
|
},
|
|
449
|
-
"
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
"
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}
|
|
456
|
-
|
|
447
|
+
"buttonPressed": {
|
|
448
|
+
"type": "boolean",
|
|
449
|
+
"mutable": false,
|
|
450
|
+
"complexType": {
|
|
451
|
+
"original": "boolean",
|
|
452
|
+
"resolved": "boolean",
|
|
453
|
+
"references": {}
|
|
454
|
+
},
|
|
455
|
+
"required": false,
|
|
456
|
+
"optional": true,
|
|
457
|
+
"docs": {
|
|
458
|
+
"tags": [{
|
|
459
|
+
"name": "internal",
|
|
460
|
+
"text": undefined
|
|
461
|
+
}],
|
|
462
|
+
"text": ""
|
|
463
|
+
},
|
|
464
|
+
"attribute": "button-pressed",
|
|
465
|
+
"reflect": false
|
|
457
466
|
},
|
|
458
|
-
"
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
"
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}],
|
|
479
|
-
"text": ""
|
|
467
|
+
"mode": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"mutable": false,
|
|
470
|
+
"complexType": {
|
|
471
|
+
"original": "\"modal\" | \"upload\"",
|
|
472
|
+
"resolved": "\"modal\" | \"upload\"",
|
|
473
|
+
"references": {}
|
|
474
|
+
},
|
|
475
|
+
"required": false,
|
|
476
|
+
"optional": false,
|
|
477
|
+
"docs": {
|
|
478
|
+
"tags": [{
|
|
479
|
+
"name": "internal",
|
|
480
|
+
"text": undefined
|
|
481
|
+
}],
|
|
482
|
+
"text": ""
|
|
483
|
+
},
|
|
484
|
+
"attribute": "mode",
|
|
485
|
+
"reflect": false,
|
|
486
|
+
"defaultValue": "\"modal\""
|
|
480
487
|
},
|
|
481
|
-
"
|
|
482
|
-
"
|
|
483
|
-
"
|
|
484
|
-
"
|
|
488
|
+
"resetVpsButton": {
|
|
489
|
+
"type": "unknown",
|
|
490
|
+
"mutable": false,
|
|
491
|
+
"complexType": {
|
|
492
|
+
"original": "() => void",
|
|
493
|
+
"resolved": "() => void",
|
|
494
|
+
"references": {}
|
|
495
|
+
},
|
|
496
|
+
"required": false,
|
|
497
|
+
"optional": false,
|
|
498
|
+
"docs": {
|
|
499
|
+
"tags": [{
|
|
500
|
+
"name": "internal",
|
|
501
|
+
"text": undefined
|
|
502
|
+
}],
|
|
503
|
+
"text": ""
|
|
504
|
+
}
|
|
485
505
|
}
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
"
|
|
499
|
-
"
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
static get states() {
|
|
509
|
+
return {
|
|
510
|
+
"slidePosition": {},
|
|
511
|
+
"width": {},
|
|
512
|
+
"wrongImageFormat": {},
|
|
513
|
+
"trackingDeactivated": {}
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
static get events() {
|
|
517
|
+
return [{
|
|
518
|
+
"method": "globalSlotsChanged",
|
|
519
|
+
"name": "globalSlotsChanged",
|
|
520
|
+
"bubbles": true,
|
|
521
|
+
"cancelable": true,
|
|
522
|
+
"composed": true,
|
|
523
|
+
"docs": {
|
|
524
|
+
"tags": [{
|
|
525
|
+
"name": "internal",
|
|
526
|
+
"text": undefined
|
|
527
|
+
}],
|
|
528
|
+
"text": ""
|
|
529
|
+
},
|
|
530
|
+
"complexType": {
|
|
531
|
+
"original": "any",
|
|
532
|
+
"resolved": "any",
|
|
533
|
+
"references": {}
|
|
534
|
+
}
|
|
535
|
+
}, {
|
|
536
|
+
"method": "vviinnWidgetLoad",
|
|
537
|
+
"name": "vviinnWidgetLoad",
|
|
538
|
+
"bubbles": true,
|
|
539
|
+
"cancelable": true,
|
|
540
|
+
"composed": true,
|
|
541
|
+
"docs": {
|
|
542
|
+
"tags": [],
|
|
543
|
+
"text": ""
|
|
544
|
+
},
|
|
545
|
+
"complexType": {
|
|
546
|
+
"original": "BasicEventData",
|
|
547
|
+
"resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
|
|
548
|
+
"references": {
|
|
549
|
+
"BasicEventData": {
|
|
550
|
+
"location": "import",
|
|
551
|
+
"path": "../../recommendation/events"
|
|
552
|
+
}
|
|
503
553
|
}
|
|
504
554
|
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
"
|
|
529
|
-
"
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
"
|
|
544
|
-
"
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
"
|
|
559
|
-
"
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
"
|
|
574
|
-
"
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
"
|
|
589
|
-
"
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
"
|
|
604
|
-
"
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
"
|
|
619
|
-
"
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
"
|
|
634
|
-
"
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
555
|
+
}, {
|
|
556
|
+
"method": "vviinnWidgetOpen",
|
|
557
|
+
"name": "vviinnWidgetOpen",
|
|
558
|
+
"bubbles": true,
|
|
559
|
+
"cancelable": true,
|
|
560
|
+
"composed": true,
|
|
561
|
+
"docs": {
|
|
562
|
+
"tags": [],
|
|
563
|
+
"text": ""
|
|
564
|
+
},
|
|
565
|
+
"complexType": {
|
|
566
|
+
"original": "BasicEventData",
|
|
567
|
+
"resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
|
|
568
|
+
"references": {
|
|
569
|
+
"BasicEventData": {
|
|
570
|
+
"location": "import",
|
|
571
|
+
"path": "../../recommendation/events"
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}, {
|
|
576
|
+
"method": "vviinnWidgetClose",
|
|
577
|
+
"name": "vviinnWidgetClose",
|
|
578
|
+
"bubbles": true,
|
|
579
|
+
"cancelable": true,
|
|
580
|
+
"composed": true,
|
|
581
|
+
"docs": {
|
|
582
|
+
"tags": [],
|
|
583
|
+
"text": ""
|
|
584
|
+
},
|
|
585
|
+
"complexType": {
|
|
586
|
+
"original": "any",
|
|
587
|
+
"resolved": "any",
|
|
588
|
+
"references": {}
|
|
589
|
+
}
|
|
590
|
+
}, {
|
|
591
|
+
"method": "vviinnProductClick",
|
|
592
|
+
"name": "vviinnProductClick",
|
|
593
|
+
"bubbles": true,
|
|
594
|
+
"cancelable": true,
|
|
595
|
+
"composed": true,
|
|
596
|
+
"docs": {
|
|
597
|
+
"tags": [],
|
|
598
|
+
"text": ""
|
|
599
|
+
},
|
|
600
|
+
"complexType": {
|
|
601
|
+
"original": "any",
|
|
602
|
+
"resolved": "any",
|
|
603
|
+
"references": {}
|
|
604
|
+
}
|
|
605
|
+
}, {
|
|
606
|
+
"method": "vviinnProductView",
|
|
607
|
+
"name": "vviinnProductView",
|
|
608
|
+
"bubbles": true,
|
|
609
|
+
"cancelable": true,
|
|
610
|
+
"composed": true,
|
|
611
|
+
"docs": {
|
|
612
|
+
"tags": [],
|
|
613
|
+
"text": ""
|
|
614
|
+
},
|
|
615
|
+
"complexType": {
|
|
616
|
+
"original": "any",
|
|
617
|
+
"resolved": "any",
|
|
618
|
+
"references": {}
|
|
619
|
+
}
|
|
620
|
+
}, {
|
|
621
|
+
"method": "vviinnProductLoad",
|
|
622
|
+
"name": "vviinnProductLoad",
|
|
623
|
+
"bubbles": true,
|
|
624
|
+
"cancelable": true,
|
|
625
|
+
"composed": true,
|
|
626
|
+
"docs": {
|
|
627
|
+
"tags": [],
|
|
628
|
+
"text": ""
|
|
629
|
+
},
|
|
630
|
+
"complexType": {
|
|
631
|
+
"original": "any",
|
|
632
|
+
"resolved": "any",
|
|
633
|
+
"references": {}
|
|
634
|
+
}
|
|
635
|
+
}, {
|
|
636
|
+
"method": "vviinnImageUpload",
|
|
637
|
+
"name": "vviinnImageUpload",
|
|
638
|
+
"bubbles": true,
|
|
639
|
+
"cancelable": true,
|
|
640
|
+
"composed": true,
|
|
641
|
+
"docs": {
|
|
642
|
+
"tags": [],
|
|
643
|
+
"text": ""
|
|
644
|
+
},
|
|
645
|
+
"complexType": {
|
|
646
|
+
"original": "any",
|
|
647
|
+
"resolved": "any",
|
|
648
|
+
"references": {}
|
|
649
|
+
}
|
|
650
|
+
}, {
|
|
651
|
+
"method": "vviinnImageCrop",
|
|
652
|
+
"name": "vviinnImageCrop",
|
|
653
|
+
"bubbles": true,
|
|
654
|
+
"cancelable": true,
|
|
655
|
+
"composed": true,
|
|
656
|
+
"docs": {
|
|
657
|
+
"tags": [],
|
|
658
|
+
"text": ""
|
|
659
|
+
},
|
|
660
|
+
"complexType": {
|
|
661
|
+
"original": "any",
|
|
662
|
+
"resolved": "any",
|
|
663
|
+
"references": {}
|
|
664
|
+
}
|
|
665
|
+
}, {
|
|
666
|
+
"method": "vviinnSelectObject",
|
|
667
|
+
"name": "vviinnSelectObject",
|
|
668
|
+
"bubbles": true,
|
|
669
|
+
"cancelable": true,
|
|
670
|
+
"composed": true,
|
|
671
|
+
"docs": {
|
|
672
|
+
"tags": [],
|
|
673
|
+
"text": ""
|
|
674
|
+
},
|
|
675
|
+
"complexType": {
|
|
676
|
+
"original": "any",
|
|
677
|
+
"resolved": "any",
|
|
678
|
+
"references": {}
|
|
679
|
+
}
|
|
680
|
+
}, {
|
|
681
|
+
"method": "vviinnSelectFilter",
|
|
682
|
+
"name": "vviinnSelectFilter",
|
|
683
|
+
"bubbles": true,
|
|
684
|
+
"cancelable": true,
|
|
685
|
+
"composed": true,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [],
|
|
688
|
+
"text": ""
|
|
689
|
+
},
|
|
690
|
+
"complexType": {
|
|
691
|
+
"original": "any",
|
|
692
|
+
"resolved": "any",
|
|
693
|
+
"references": {}
|
|
694
|
+
}
|
|
695
|
+
}, {
|
|
696
|
+
"method": "vviinnNoResult",
|
|
697
|
+
"name": "vviinnNoResult",
|
|
698
|
+
"bubbles": true,
|
|
699
|
+
"cancelable": true,
|
|
700
|
+
"composed": true,
|
|
701
|
+
"docs": {
|
|
702
|
+
"tags": [],
|
|
703
|
+
"text": ""
|
|
704
|
+
},
|
|
705
|
+
"complexType": {
|
|
706
|
+
"original": "any",
|
|
707
|
+
"resolved": "any",
|
|
708
|
+
"references": {}
|
|
709
|
+
}
|
|
710
|
+
}];
|
|
711
|
+
}
|
|
642
712
|
static get elementRef() { return "el"; }
|
|
643
|
-
static get watchers() {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
713
|
+
static get watchers() {
|
|
714
|
+
return [{
|
|
715
|
+
"propName": "active",
|
|
716
|
+
"methodName": "activeWatcher"
|
|
717
|
+
}, {
|
|
718
|
+
"propName": "buttonPressed",
|
|
719
|
+
"methodName": "buttonPressedWatcher"
|
|
720
|
+
}];
|
|
721
|
+
}
|
|
722
|
+
static get listeners() {
|
|
723
|
+
return [{
|
|
724
|
+
"name": "vviinnProductView",
|
|
725
|
+
"method": "trackProductView",
|
|
726
|
+
"target": undefined,
|
|
727
|
+
"capture": false,
|
|
728
|
+
"passive": false
|
|
729
|
+
}, {
|
|
730
|
+
"name": "vviinnProductClick",
|
|
731
|
+
"method": "trackProductClick",
|
|
732
|
+
"target": undefined,
|
|
733
|
+
"capture": false,
|
|
734
|
+
"passive": false
|
|
735
|
+
}, {
|
|
736
|
+
"name": "vviinnImageCrop",
|
|
737
|
+
"method": "trachSearchAreaChanges",
|
|
738
|
+
"target": undefined,
|
|
739
|
+
"capture": false,
|
|
740
|
+
"passive": false
|
|
741
|
+
}, {
|
|
742
|
+
"name": "vviinnSelectObject",
|
|
743
|
+
"method": "trackDetectedObject",
|
|
744
|
+
"target": undefined,
|
|
745
|
+
"capture": false,
|
|
746
|
+
"passive": false
|
|
747
|
+
}, {
|
|
748
|
+
"name": "vviinnSelectFilter",
|
|
749
|
+
"method": "trackFilter",
|
|
750
|
+
"target": undefined,
|
|
751
|
+
"capture": false,
|
|
752
|
+
"passive": false
|
|
753
|
+
}];
|
|
754
|
+
}
|
|
678
755
|
}
|