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.
Files changed (183) hide show
  1. package/dist/cjs/{index-cb410762.js → Campaign-a94a827a.js} +17 -1
  2. package/dist/cjs/cropper-handler_29.cjs.entry.js +1418 -0
  3. package/dist/cjs/{imageSearch.store-98824653.js → index-48c94264.js} +16016 -11171
  4. package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +683 -303
  5. package/dist/cjs/loader.cjs.js +4 -3
  6. package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +150 -270
  7. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +14 -8
  8. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +12 -14
  9. package/dist/cjs/vviinn-widgets.cjs.js +10 -3
  10. package/dist/collection/Image/sizing.spec.js +66 -0
  11. package/dist/collection/collection-manifest.json +2 -2
  12. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
  13. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +11 -7
  14. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
  15. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +40 -37
  16. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +73 -67
  17. package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
  18. package/dist/collection/components/image-search/search-filters/search-filters.js +97 -91
  19. package/dist/collection/components/vviinn-button/vviinn-button.js +34 -31
  20. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
  21. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +161 -156
  22. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +12 -14
  23. package/dist/collection/components/vviinn-error/vviinn-error.js +12 -12
  24. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +35 -30
  25. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +35 -30
  26. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -121
  27. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +75 -75
  28. package/dist/collection/components/vviinn-icons/index.js +10 -27
  29. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +120 -67
  30. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +81 -69
  31. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
  32. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +27 -28
  33. package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
  34. package/dist/collection/components/vviinn-modal/vviinn-modal.js +115 -93
  35. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +12 -14
  36. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +12 -14
  37. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +12 -14
  38. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +12 -17
  39. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
  40. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +12 -9
  41. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +107 -78
  42. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
  43. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +11 -7
  44. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
  45. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +12 -16
  46. package/dist/collection/components/vviinn-product-card/render-helpers.js +6 -14
  47. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -415
  48. package/dist/collection/components/vviinn-slider/arrow.js +1 -2
  49. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +12 -9
  50. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
  51. package/dist/collection/components/vviinn-slider/vviinn-slider.js +87 -82
  52. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +12 -18
  53. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
  54. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +371 -360
  55. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +448 -444
  56. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +545 -542
  57. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +2 -0
  58. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +368 -332
  59. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
  60. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +26 -0
  61. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +502 -425
  62. package/dist/collection/geometry/Clip.spec.js +16 -0
  63. package/dist/collection/geometry/Rectangle.spec.js +66 -0
  64. package/dist/collection/geometry/Sized.spec.js +16 -0
  65. package/dist/collection/interfaces/generated.js +0 -4
  66. package/dist/collection/network/ion/Form.spec.js +43 -0
  67. package/dist/esm/{index-b31d86ce.js → Campaign-4aa53f29.js} +15 -2
  68. package/dist/esm/cropper-handler_29.entry.js +1386 -0
  69. package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +683 -304
  70. package/dist/esm/{imageSearch.store-9dde5360.js → index-976acf7e.js} +16124 -11292
  71. package/dist/esm/loader.js +4 -3
  72. package/dist/esm/polyfills/css-shim.js +1 -1
  73. package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +106 -225
  74. package/dist/esm/vviinn-recommendations-sidebar.entry.js +13 -7
  75. package/dist/esm/vviinn-vpr-button.entry.js +11 -13
  76. package/dist/esm/vviinn-widgets.js +7 -3
  77. package/dist/loader/index.d.ts +9 -0
  78. package/dist/loader/package.json +1 -0
  79. package/dist/types/Image/sizing.d.ts +4 -4
  80. package/dist/types/campaign/Campaign.d.ts +5 -5
  81. package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
  82. package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
  83. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
  84. package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
  85. package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
  86. package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
  87. package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
  88. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
  89. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
  90. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
  91. package/dist/types/components.d.ts +154 -54
  92. package/dist/types/error.d.ts +1 -1
  93. package/dist/types/geometry/Point.d.ts +1 -1
  94. package/dist/types/geometry/Rectangle.d.ts +1 -1
  95. package/dist/types/geometry/Sized.d.ts +1 -1
  96. package/dist/types/interfaces/generated.d.ts +192 -371
  97. package/dist/types/network/ion/File.d.ts +2 -2
  98. package/dist/types/network/ion/Form.d.ts +5 -5
  99. package/dist/types/network/ion/Link.d.ts +1 -1
  100. package/dist/types/network/ion/ValueObject.d.ts +4 -4
  101. package/dist/types/network/utils.d.ts +3 -3
  102. package/dist/types/recommendation/events.d.ts +5 -5
  103. package/dist/types/recommendation/recommendation.d.ts +1 -1
  104. package/dist/types/searchSession/searchSession.d.ts +7 -7
  105. package/dist/types/slider/GridMode.d.ts +1 -1
  106. package/dist/types/stencil-public-runtime.d.ts +98 -23
  107. package/dist/types/store/imageSearch.store.d.ts +1 -1
  108. package/dist/types/tracking/models.d.ts +2 -2
  109. package/dist/types/utils/event/Events.d.ts +1 -1
  110. package/dist/vviinn-widgets/p-312b0eb7.entry.js +1 -0
  111. package/dist/vviinn-widgets/p-414b2291.js +1 -0
  112. package/dist/vviinn-widgets/p-5b50c7e5.entry.js +1 -0
  113. package/dist/vviinn-widgets/p-8deaa5da.entry.js +1 -0
  114. package/dist/vviinn-widgets/p-c6209bc1.entry.js +1 -0
  115. package/{www/build/p-2f9ee951.js → dist/vviinn-widgets/p-d08ce429.js} +1 -1
  116. package/dist/vviinn-widgets/p-fa17e81f.js +2 -0
  117. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  118. package/package.json +12 -12
  119. package/www/build/p-312b0eb7.entry.js +1 -0
  120. package/www/build/p-414b2291.js +1 -0
  121. package/www/build/p-5b50c7e5.entry.js +1 -0
  122. package/www/build/p-8deaa5da.entry.js +1 -0
  123. package/www/build/p-c6209bc1.entry.js +1 -0
  124. package/{dist/vviinn-widgets/p-2f9ee951.js → www/build/p-d08ce429.js} +1 -1
  125. package/www/build/p-d39b7d70.js +161 -0
  126. package/www/build/p-fa17e81f.js +2 -0
  127. package/www/build/vviinn-widgets.esm.js +1 -1
  128. package/www/index.html +2 -2
  129. package/dist/cjs/Campaign-13258569.js +0 -18
  130. package/dist/cjs/Handler-176539c8.js +0 -331
  131. package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
  132. package/dist/cjs/customized-slots-6e56c354.js +0 -54
  133. package/dist/cjs/highlight-box_22.cjs.entry.js +0 -770
  134. package/dist/cjs/index-a99edb90.js +0 -3235
  135. package/dist/cjs/vviinn-button.cjs.entry.js +0 -21
  136. package/dist/cjs/vviinn-error.cjs.entry.js +0 -19
  137. package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -26
  138. package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -65
  139. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -251
  140. package/dist/esm/Campaign-90ba7e06.js +0 -14
  141. package/dist/esm/Handler-f9b8735c.js +0 -309
  142. package/dist/esm/cropper-handler.entry.js +0 -23
  143. package/dist/esm/customized-slots-00afe247.js +0 -51
  144. package/dist/esm/highlight-box_22.entry.js +0 -745
  145. package/dist/esm/index-4d5b52ba.js +0 -3224
  146. package/dist/esm/vviinn-button.entry.js +0 -17
  147. package/dist/esm/vviinn-error.entry.js +0 -15
  148. package/dist/esm/vviinn-preloader.entry.js +0 -22
  149. package/dist/esm/vviinn-vps-button.entry.js +0 -61
  150. package/dist/esm/vviinn-vps-widget.entry.js +0 -247
  151. package/dist/vviinn-widgets/p-11f61564.js +0 -1
  152. package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
  153. package/dist/vviinn-widgets/p-18fd769b.js +0 -1
  154. package/dist/vviinn-widgets/p-339c6838.js +0 -1
  155. package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
  156. package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
  157. package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
  158. package/dist/vviinn-widgets/p-69850e5b.js +0 -1
  159. package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
  160. package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
  161. package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
  162. package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
  163. package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
  164. package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
  165. package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
  166. package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
  167. package/www/build/p-11f61564.js +0 -1
  168. package/www/build/p-12851e97.entry.js +0 -1
  169. package/www/build/p-18fd769b.js +0 -1
  170. package/www/build/p-339c6838.js +0 -1
  171. package/www/build/p-3b2c91c0.entry.js +0 -1
  172. package/www/build/p-45df9f28.entry.js +0 -1
  173. package/www/build/p-57ed5303.entry.js +0 -1
  174. package/www/build/p-69850e5b.js +0 -1
  175. package/www/build/p-7c2f762a.entry.js +0 -1
  176. package/www/build/p-7c3b7388.entry.js +0 -1
  177. package/www/build/p-85006f41.entry.js +0 -1
  178. package/www/build/p-8a3dd76d.entry.js +0 -1
  179. package/www/build/p-99e58be7.entry.js +0 -1
  180. package/www/build/p-9e2c131a.js +0 -125
  181. package/www/build/p-a2b450b6.entry.js +0 -1
  182. package/www/build/p-bcc1ccf0.js +0 -1
  183. 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) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
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 { Component, Host, h, State, Prop, Element, Watch, Listen, Event, } from "@stencil/core";
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
- !this.showingInButton && h(SlotSkeleton, null),
262
- 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, exportparts: "secondary-action, title, close-button, example-images" },
263
- h("vviinn-slider", { showBullets: false, position: this.slidePosition },
264
- h("vviinn-slide", { class: { "start-page": true } },
265
- h("div", { class: {
266
- error: this.haveErrors(),
267
- "start-page_block": true,
268
- } },
269
- h("vviinn-wrong-format", { class: { hidden: !this.wrongImageFormat }, handler: () => (this.wrongImageFormat = false) }),
270
- h("vviinn-server-error", { class: { hidden: !imageSearchState.serverError }, handler: () => (imageSearchState.serverError = false) }),
271
- h("vviinn-teaser", { class: { hidden: this.haveErrors() } }),
272
- h("vviinn-image-selector", { class: { hidden: this.haveErrors() }, onVviinnImageUpload: () => this.handleImageSelection("upload"), onVviinnNoResult: () => (this.wrongImageFormat = true), basicEventData: this.getBasicEventData(), part: "select-image_button" },
273
- h("span", { slot: "upload-button-text", class: "upload-button-content" },
274
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "29", height: "28", fill: "none" },
275
- h("defs", null),
276
- 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" }),
277
- 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" })),
278
- h("slot", { name: "vviinn-image-upload-button-text" },
279
- h("span", null, "Kamera oder Bild ausw\u00E4hlen")))),
280
- h("vviinn-privacy-badge", { class: { hidden: this.haveErrors() } })),
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() { return {
308
- "$": ["vviinn-vps-widget.css"]
309
- }; }
310
- static get styleUrls() { return {
311
- "$": ["vviinn-vps-widget.css"]
312
- }; }
313
- static get properties() { return {
314
- "token": {
315
- "type": "string",
316
- "mutable": false,
317
- "complexType": {
318
- "original": "string | undefined",
319
- "resolved": "string",
320
- "references": {}
321
- },
322
- "required": false,
323
- "optional": false,
324
- "docs": {
325
- "tags": [],
326
- "text": "vviinn customer token"
327
- },
328
- "attribute": "token",
329
- "reflect": false
330
- },
331
- "apiPath": {
332
- "type": "string",
333
- "mutable": false,
334
- "complexType": {
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
- "attribute": "currency-sign",
385
- "reflect": false,
386
- "defaultValue": "\"\u20AC\""
387
- },
388
- "locale": {
389
- "type": "string",
390
- "mutable": false,
391
- "complexType": {
392
- "original": "string",
393
- "resolved": "string",
394
- "references": {}
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
- "required": false,
397
- "optional": false,
398
- "docs": {
399
- "tags": [],
400
- "text": "Locale for currency formatting"
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
- "attribute": "locale",
403
- "reflect": false,
404
- "defaultValue": "\"de-DE\""
405
- },
406
- "campaignId": {
407
- "type": "string",
408
- "mutable": false,
409
- "complexType": {
410
- "original": "string",
411
- "resolved": "string",
412
- "references": {}
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
- "required": false,
415
- "optional": true,
416
- "docs": {
417
- "tags": [],
418
- "text": "Campaign using for visual search"
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
- "attribute": "campaign-id",
421
- "reflect": false
422
- },
423
- "showingInButton": {
424
- "type": "boolean",
425
- "mutable": false,
426
- "complexType": {
427
- "original": "boolean",
428
- "resolved": "boolean",
429
- "references": {}
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
- "required": false,
432
- "optional": true,
433
- "docs": {
434
- "tags": [],
435
- "text": "Set true when showing the widget in button"
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
- "attribute": "showing-in-button",
438
- "reflect": false,
439
- "defaultValue": "false"
440
- },
441
- "buttonElementId": {
442
- "type": "string",
443
- "mutable": false,
444
- "complexType": {
445
- "original": "string",
446
- "resolved": "string",
447
- "references": {}
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
- "required": false,
450
- "optional": true,
451
- "docs": {
452
- "tags": [{
453
- "text": undefined,
454
- "name": "internal"
455
- }],
456
- "text": ""
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
- "attribute": "button-element-id",
459
- "reflect": false
460
- }
461
- }; }
462
- static get states() { return {
463
- "slidePosition": {},
464
- "width": {},
465
- "wrongImageFormat": {},
466
- "trackingDeactivated": {}
467
- }; }
468
- static get events() { return [{
469
- "method": "globalSlotsChanged",
470
- "name": "globalSlotsChanged",
471
- "bubbles": true,
472
- "cancelable": true,
473
- "composed": true,
474
- "docs": {
475
- "tags": [{
476
- "text": undefined,
477
- "name": "internal"
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
- "complexType": {
482
- "original": "any",
483
- "resolved": "any",
484
- "references": {}
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
- "method": "vviinnWidgetLoad",
488
- "name": "vviinnWidgetLoad",
489
- "bubbles": true,
490
- "cancelable": true,
491
- "composed": true,
492
- "docs": {
493
- "tags": [],
494
- "text": ""
495
- },
496
- "complexType": {
497
- "original": "BasicEventData",
498
- "resolved": "{ widgetType: WidgetType; campaignTypeId: CampaignTypeId; campaignTypeName: CampaignTypeTitle; widgetId?: string; }",
499
- "references": {
500
- "BasicEventData": {
501
- "location": "import",
502
- "path": "../../recommendation/events"
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
- "method": "vviinnWidgetClose",
508
- "name": "vviinnWidgetClose",
509
- "bubbles": true,
510
- "cancelable": true,
511
- "composed": true,
512
- "docs": {
513
- "tags": [],
514
- "text": ""
515
- },
516
- "complexType": {
517
- "original": "any",
518
- "resolved": "any",
519
- "references": {}
520
- }
521
- }, {
522
- "method": "vviinnProductClick",
523
- "name": "vviinnProductClick",
524
- "bubbles": true,
525
- "cancelable": true,
526
- "composed": true,
527
- "docs": {
528
- "tags": [],
529
- "text": ""
530
- },
531
- "complexType": {
532
- "original": "any",
533
- "resolved": "any",
534
- "references": {}
535
- }
536
- }, {
537
- "method": "vviinnProductView",
538
- "name": "vviinnProductView",
539
- "bubbles": true,
540
- "cancelable": true,
541
- "composed": true,
542
- "docs": {
543
- "tags": [],
544
- "text": ""
545
- },
546
- "complexType": {
547
- "original": "any",
548
- "resolved": "any",
549
- "references": {}
550
- }
551
- }, {
552
- "method": "vviinnProductLoad",
553
- "name": "vviinnProductLoad",
554
- "bubbles": true,
555
- "cancelable": true,
556
- "composed": true,
557
- "docs": {
558
- "tags": [],
559
- "text": ""
560
- },
561
- "complexType": {
562
- "original": "any",
563
- "resolved": "any",
564
- "references": {}
565
- }
566
- }, {
567
- "method": "vviinnImageUpload",
568
- "name": "vviinnImageUpload",
569
- "bubbles": true,
570
- "cancelable": true,
571
- "composed": true,
572
- "docs": {
573
- "tags": [],
574
- "text": ""
575
- },
576
- "complexType": {
577
- "original": "any",
578
- "resolved": "any",
579
- "references": {}
580
- }
581
- }, {
582
- "method": "vviinnImageCrop",
583
- "name": "vviinnImageCrop",
584
- "bubbles": true,
585
- "cancelable": true,
586
- "composed": true,
587
- "docs": {
588
- "tags": [],
589
- "text": ""
590
- },
591
- "complexType": {
592
- "original": "any",
593
- "resolved": "any",
594
- "references": {}
595
- }
596
- }, {
597
- "method": "vviinnSelectObject",
598
- "name": "vviinnSelectObject",
599
- "bubbles": true,
600
- "cancelable": true,
601
- "composed": true,
602
- "docs": {
603
- "tags": [],
604
- "text": ""
605
- },
606
- "complexType": {
607
- "original": "any",
608
- "resolved": "any",
609
- "references": {}
610
- }
611
- }, {
612
- "method": "vviinnSelectFilter",
613
- "name": "vviinnSelectFilter",
614
- "bubbles": true,
615
- "cancelable": true,
616
- "composed": true,
617
- "docs": {
618
- "tags": [],
619
- "text": ""
620
- },
621
- "complexType": {
622
- "original": "any",
623
- "resolved": "any",
624
- "references": {}
625
- }
626
- }, {
627
- "method": "vviinnNoResult",
628
- "name": "vviinnNoResult",
629
- "bubbles": true,
630
- "cancelable": true,
631
- "composed": true,
632
- "docs": {
633
- "tags": [],
634
- "text": ""
635
- },
636
- "complexType": {
637
- "original": "any",
638
- "resolved": "any",
639
- "references": {}
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() { return [{
644
- "propName": "active",
645
- "methodName": "activeWatcher"
646
- }]; }
647
- static get listeners() { return [{
648
- "name": "vviinnProductView",
649
- "method": "trackProductView",
650
- "target": undefined,
651
- "capture": false,
652
- "passive": false
653
- }, {
654
- "name": "vviinnProductClick",
655
- "method": "trackProductClick",
656
- "target": undefined,
657
- "capture": false,
658
- "passive": false
659
- }, {
660
- "name": "vviinnImageCrop",
661
- "method": "trachSearchAreaChanges",
662
- "target": undefined,
663
- "capture": false,
664
- "passive": false
665
- }, {
666
- "name": "vviinnSelectObject",
667
- "method": "trackDetectedObject",
668
- "target": undefined,
669
- "capture": false,
670
- "passive": false
671
- }, {
672
- "name": "vviinnSelectFilter",
673
- "method": "trackFilter",
674
- "target": undefined,
675
- "capture": false,
676
- "passive": false
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
  }