vviinn-widgets 2.5.0 → 2.5.2

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 (330) hide show
  1. package/dist/cjs/Handler-176539c8.js +331 -0
  2. package/dist/{vviinn-widgets/app-globals-4fe0376b.js → cjs/app-globals-d15b4c2c.js} +15 -925
  3. package/{www/build/cropper-handler.entry.js → dist/cjs/cropper-handler.cjs.entry.js} +11 -7
  4. package/dist/{vviinn-widgets/customized-slots-5dbf778c.js → cjs/customized-slots-0c0d0665.js} +6 -3
  5. package/dist/cjs/highlight-box_22.cjs.entry.js +747 -0
  6. package/{www/build/imageSearch.store-3204bc99.js → dist/cjs/imageSearch.store-865c23f4.js} +11902 -11653
  7. package/{www/build/index-89e62050.js → dist/cjs/index-0eb3036a.js} +76 -698
  8. package/dist/cjs/index-0f5516a6.js +1354 -0
  9. package/dist/cjs/index-31b9cb7a.js +39 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +23 -0
  12. package/dist/cjs/vviinn-carousel_3.cjs.entry.js +1174 -0
  13. package/dist/{vviinn-widgets/vviinn-error.entry.js → cjs/vviinn-error.cjs.entry.js} +8 -4
  14. package/{www/build/vviinn-preloader.entry.js → dist/cjs/vviinn-preloader.cjs.entry.js} +11 -10
  15. package/{www/build/vviinn-recommendations-sidebar.entry.js → dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js} +12 -8
  16. package/dist/{vviinn-widgets/vviinn-vpr-button.entry.js → cjs/vviinn-vpr-button.cjs.entry.js} +9 -5
  17. package/dist/cjs/vviinn-vps-button.cjs.entry.js +43 -0
  18. package/{www/build/vviinn-vps-widget.entry.js → dist/cjs/vviinn-vps-widget.cjs.entry.js} +51 -49
  19. package/dist/cjs/vviinn-widgets.cjs.js +21 -0
  20. package/dist/collection/Image/error.js +14 -0
  21. package/dist/collection/Image/form.js +5 -0
  22. package/dist/collection/Image/fromFile.js +18 -0
  23. package/dist/collection/Image/imageToB64.js +9 -0
  24. package/dist/collection/Image/index.js +0 -0
  25. package/dist/collection/Image/renderPromise.js +6 -0
  26. package/dist/collection/Image/resizeImage.js +28 -0
  27. package/dist/collection/Image/sizing.js +39 -0
  28. package/dist/collection/Image/toFile.js +17 -0
  29. package/dist/collection/analytics/GAnalytics.js +32 -0
  30. package/dist/collection/analytics/GeneralAnalytics.js +9 -0
  31. package/dist/collection/analytics/GtagAnalytics.js +35 -0
  32. package/dist/collection/analytics/ProductAnalytics.js +1 -0
  33. package/dist/collection/campaign/Campaign.js +8 -0
  34. package/dist/collection/campaign/CampaignService.js +5 -0
  35. package/dist/collection/campaign/VCSCampaign.js +1 -0
  36. package/dist/collection/campaign/VCSCampaignResponse.js +1 -0
  37. package/dist/collection/campaign/VCSCampaignService.js +5 -0
  38. package/dist/collection/campaign/VPRCampaignResponse.js +1 -0
  39. package/dist/collection/campaign/VPRCampaignService.js +5 -0
  40. package/dist/collection/collection-manifest.json +43 -0
  41. package/dist/collection/components/customized-slots.js +47 -0
  42. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +71 -0
  43. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +25 -0
  44. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +49 -0
  45. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +64 -0
  46. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +33 -0
  47. package/{www/build/image-cropper.entry.js → dist/collection/components/image-search/image-view/image-cropper/image-cropper.js} +70 -33
  48. package/dist/collection/components/image-search/search-filters/search-filters.css +120 -0
  49. package/dist/collection/components/image-search/search-filters/search-filters.js +125 -0
  50. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +142 -0
  51. package/{www/build/vviinn-carousel.entry.js → dist/collection/components/vviinn-carousel/vviinn-carousel.js} +113 -18
  52. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +7 -0
  53. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +36 -0
  54. package/dist/collection/components/vviinn-error/vviinn-error.css +38 -0
  55. package/dist/collection/components/vviinn-error/vviinn-error.js +18 -0
  56. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +3 -0
  57. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +34 -0
  58. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +3 -0
  59. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +34 -0
  60. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +34 -0
  61. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -0
  62. package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +19 -0
  63. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +80 -0
  64. package/dist/{vviinn-widgets/index-bbcd6be9.js → collection/components/vviinn-icons/index.js} +11 -14
  65. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +25 -0
  66. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +64 -0
  67. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +47 -0
  68. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +100 -0
  69. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +31 -0
  70. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +61 -0
  71. package/dist/collection/components/vviinn-modal/vviinn-modal.css +105 -0
  72. package/dist/collection/components/vviinn-modal/vviinn-modal.js +98 -0
  73. package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +41 -0
  74. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +26 -0
  75. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +26 -0
  76. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +26 -0
  77. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +58 -0
  78. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +28 -0
  79. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +33 -0
  80. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +15 -0
  81. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +29 -0
  82. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +71 -0
  83. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +37 -0
  84. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +20 -0
  85. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +19 -0
  86. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +27 -0
  87. package/dist/collection/components/vviinn-product-card/render-helpers.js +32 -0
  88. package/dist/collection/components/vviinn-product-card/stories/args.js +73 -0
  89. package/dist/collection/components/vviinn-product-card/stories/decorators.js +51 -0
  90. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +105 -0
  91. package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +95 -0
  92. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +462 -0
  93. package/dist/collection/components/vviinn-slider/arrow.js +11 -0
  94. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +4 -0
  95. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +15 -0
  96. package/dist/collection/components/vviinn-slider/vviinn-slider.css +109 -0
  97. package/dist/collection/components/vviinn-slider/vviinn-slider.js +181 -0
  98. package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +14 -0
  99. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +29 -0
  100. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +238 -0
  101. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +200 -0
  102. package/dist/collection/components/vviinn-vpr-button/stories/args.js +207 -0
  103. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +89 -0
  104. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +35 -0
  105. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +156 -0
  106. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +190 -0
  107. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +29 -0
  108. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +212 -0
  109. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +11 -0
  110. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +483 -0
  111. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +79 -0
  112. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +31 -0
  113. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +3 -0
  114. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +178 -0
  115. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +33 -0
  116. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +350 -0
  117. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +352 -0
  118. package/dist/collection/cropper/Cropper.js +1 -0
  119. package/dist/collection/cropper/Handler.js +61 -0
  120. package/dist/collection/dom/index.js +3 -0
  121. package/dist/collection/error.js +14 -0
  122. package/dist/collection/file/index.js +4 -0
  123. package/dist/collection/geometry/Clip.js +14 -0
  124. package/dist/collection/geometry/Point.js +32 -0
  125. package/dist/collection/geometry/Rectangle.js +95 -0
  126. package/dist/collection/geometry/RectangleAlt.js +1 -0
  127. package/dist/collection/geometry/Sized.js +8 -0
  128. package/dist/collection/global.js +19 -0
  129. package/dist/collection/index.js +1 -0
  130. package/dist/collection/interfaces/generated.js +5 -0
  131. package/dist/collection/interfaces/recommendation.js +1 -0
  132. package/dist/collection/network/apiClient.js +9 -0
  133. package/dist/collection/network/ion/File.js +14 -0
  134. package/dist/collection/network/ion/Form.js +64 -0
  135. package/dist/collection/network/ion/Link.js +8 -0
  136. package/dist/collection/network/ion/ValueObject.js +23 -0
  137. package/dist/collection/network/request.js +19 -0
  138. package/dist/collection/network/utils.js +37 -0
  139. package/dist/collection/openApi/index.js +27 -0
  140. package/dist/collection/recommendation/events.js +1 -0
  141. package/dist/collection/recommendation/recommendation.js +1 -0
  142. package/dist/collection/searchSession/searchSession.js +26 -0
  143. package/dist/collection/sentry.js +14 -0
  144. package/dist/collection/slider/GridMode.js +1 -0
  145. package/dist/collection/store/file-processing.js +13 -0
  146. package/dist/collection/store/imageSearch.store.js +138 -0
  147. package/dist/collection/store/store.js +3 -0
  148. package/dist/collection/store/tracking.store.js +3 -0
  149. package/dist/collection/stories/Button.js +21 -0
  150. package/dist/collection/stories/Button.stories.js +42 -0
  151. package/dist/collection/stories/Header.js +45 -0
  152. package/dist/collection/stories/Header.stories.js +15 -0
  153. package/dist/collection/stories/Page.js +61 -0
  154. package/dist/collection/stories/Page.stories.js +19 -0
  155. package/dist/collection/stories/assets/code-brackets.svg +1 -0
  156. package/dist/collection/stories/assets/colors.svg +1 -0
  157. package/dist/collection/stories/assets/comments.svg +1 -0
  158. package/dist/collection/stories/assets/direction.svg +1 -0
  159. package/dist/collection/stories/assets/flow.svg +1 -0
  160. package/dist/collection/stories/assets/plugin.svg +1 -0
  161. package/dist/collection/stories/assets/repo.svg +1 -0
  162. package/dist/collection/stories/assets/stackalt.svg +1 -0
  163. package/dist/collection/stories/image-selector.stories.js +6 -0
  164. package/dist/collection/stories/image-view.stories.js +6 -0
  165. package/dist/collection/stories/modal.stories.js +12 -0
  166. package/dist/collection/stories/onboarding.stories.js +11 -0
  167. package/dist/collection/stories/overlay.stories.js +5 -0
  168. package/dist/collection/stories/overlayedModal.stories.js +8 -0
  169. package/dist/collection/stories/privacy-badge.stories.js +11 -0
  170. package/dist/collection/stories/slider.stories.js +17 -0
  171. package/dist/collection/stories/teaser.stories.js +5 -0
  172. package/dist/collection/stories/vps-widget.stories.js +47 -0
  173. package/dist/collection/stories/vviinn-product.stories.js +19 -0
  174. package/dist/collection/tracking/event.js +3 -0
  175. package/dist/collection/tracking/filter.js +5 -0
  176. package/dist/collection/tracking/index.js +13 -0
  177. package/dist/collection/tracking/models.js +6 -0
  178. package/dist/collection/tracking/product.js +18 -0
  179. package/dist/collection/tracking/search.js +5 -0
  180. package/dist/collection/tracking/widget.js +10 -0
  181. package/dist/collection/utils/collections/collectionsUtils.js +5 -0
  182. package/dist/collection/utils/either.js +3 -0
  183. package/dist/collection/utils/enum/enumUtils.js +3 -0
  184. package/dist/collection/utils/event/Events.js +1 -0
  185. package/dist/collection/utils/number/index.js +4 -0
  186. package/dist/collection/utils/option/option.js +4 -0
  187. package/dist/collection/utils/semigroup/semigroupDiff.js +6 -0
  188. package/dist/collection/utils/token/tokenUtils.js +9 -0
  189. package/dist/esm/Handler-f9b8735c.js +309 -0
  190. package/{www/build/app-globals-4fe0376b.js → dist/esm/app-globals-6f6aa89e.js} +10 -922
  191. package/dist/{vviinn-widgets → esm}/cropper-handler.entry.js +2 -2
  192. package/{www/build/customized-slots-5dbf778c.js → dist/esm/customized-slots-6b427dda.js} +1 -1
  193. package/dist/esm/highlight-box_22.entry.js +722 -0
  194. package/dist/{vviinn-widgets/imageSearch.store-3204bc99.js → esm/imageSearch.store-0ae87235.js} +12070 -11855
  195. package/dist/{vviinn-widgets/index-89e62050.js → esm/index-2e296af4.js} +6 -639
  196. package/dist/esm/index-59f44eaa.js +1323 -0
  197. package/{www/build/index-bbcd6be9.js → dist/esm/index-ac05c460.js} +2 -4
  198. package/dist/esm/index.js +1 -0
  199. package/dist/esm/loader.js +19 -0
  200. package/dist/esm/polyfills/core-js.js +11 -0
  201. package/dist/esm/polyfills/css-shim.js +1 -0
  202. package/dist/esm/polyfills/dom.js +79 -0
  203. package/dist/esm/polyfills/es5-html-element.js +1 -0
  204. package/dist/esm/polyfills/index.js +34 -0
  205. package/dist/esm/polyfills/system.js +6 -0
  206. package/dist/esm/vviinn-carousel_3.entry.js +1168 -0
  207. package/{www/build → dist/esm}/vviinn-error.entry.js +1 -1
  208. package/dist/{vviinn-widgets → esm}/vviinn-preloader.entry.js +3 -6
  209. package/dist/{vviinn-widgets → esm}/vviinn-recommendations-sidebar.entry.js +2 -2
  210. package/{www/build → dist/esm}/vviinn-vpr-button.entry.js +2 -2
  211. package/dist/{vviinn-widgets → esm}/vviinn-vps-button.entry.js +3 -3
  212. package/dist/{vviinn-widgets → esm}/vviinn-vps-widget.entry.js +12 -14
  213. package/dist/esm/vviinn-widgets.js +19 -0
  214. package/dist/index.cjs.js +1 -0
  215. package/dist/index.js +1 -0
  216. package/dist/loader/cdn.js +3 -0
  217. package/dist/loader/index.cjs.js +3 -0
  218. package/dist/loader/index.d.ts +12 -0
  219. package/dist/loader/index.es2017.js +3 -0
  220. package/dist/loader/index.js +4 -0
  221. package/dist/loader/package.json +10 -0
  222. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +1 -1
  223. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +1 -1
  224. package/dist/vviinn-widgets/index.esm.js +0 -1
  225. package/dist/vviinn-widgets/p-118ac907.js +1 -0
  226. package/dist/vviinn-widgets/p-11f61564.js +1 -0
  227. package/dist/vviinn-widgets/p-39fdc5c9.entry.js +1 -0
  228. package/dist/vviinn-widgets/p-762dc067.entry.js +1 -0
  229. package/dist/vviinn-widgets/p-7e2f542c.js +1 -0
  230. package/dist/vviinn-widgets/p-8d56e795.entry.js +1 -0
  231. package/dist/vviinn-widgets/p-8f955b15.entry.js +1 -0
  232. package/dist/vviinn-widgets/p-9654fe35.entry.js +1 -0
  233. package/dist/vviinn-widgets/p-9e5adc42.js +1 -0
  234. package/dist/vviinn-widgets/p-b3731705.entry.js +1 -0
  235. package/dist/vviinn-widgets/p-bad1809f.js +1 -0
  236. package/dist/vviinn-widgets/p-c36546fa.js +15 -0
  237. package/dist/vviinn-widgets/p-d991330b.entry.js +1 -0
  238. package/dist/vviinn-widgets/p-da9c933b.entry.js +1 -0
  239. package/dist/vviinn-widgets/p-ee46fc83.js +1 -0
  240. package/dist/vviinn-widgets/p-f41e25f0.entry.js +1 -0
  241. package/dist/vviinn-widgets/vviinn-widgets.css +1 -6
  242. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -125
  243. package/package.json +1 -1
  244. package/www/build/index.esm.js +0 -1
  245. package/www/build/p-118ac907.js +1 -0
  246. package/www/build/p-11f61564.js +1 -0
  247. package/www/build/p-39fdc5c9.entry.js +1 -0
  248. package/www/build/p-762dc067.entry.js +1 -0
  249. package/www/build/p-7e2f542c.js +1 -0
  250. package/www/build/p-8d56e795.entry.js +1 -0
  251. package/www/build/p-8f955b15.entry.js +1 -0
  252. package/www/build/p-9654fe35.entry.js +1 -0
  253. package/www/build/p-9e5adc42.js +1 -0
  254. package/www/build/p-a67898be.css +1 -0
  255. package/www/build/p-b3731705.entry.js +1 -0
  256. package/www/build/p-bad1809f.js +1 -0
  257. package/www/build/p-c36546fa.js +15 -0
  258. package/www/build/p-cfd998c1.js +1 -0
  259. package/www/build/p-d991330b.entry.js +1 -0
  260. package/www/build/p-da9c933b.entry.js +1 -0
  261. package/www/build/p-ee46fc83.js +1 -0
  262. package/www/build/p-f41e25f0.entry.js +1 -0
  263. package/www/build/vviinn-widgets.css +1 -6
  264. package/www/build/vviinn-widgets.esm.js +1 -125
  265. package/www/index.html +1 -12
  266. package/dist/vviinn-widgets/Array-c4dc02db.js +0 -4295
  267. package/dist/vviinn-widgets/Handler-47db9890.js +0 -1428
  268. package/dist/vviinn-widgets/NonEmptyArray-65395d97.js +0 -4370
  269. package/dist/vviinn-widgets/css-shim-f0027935.js +0 -4
  270. package/dist/vviinn-widgets/dom-db0073f0.js +0 -73
  271. package/dist/vviinn-widgets/highlight-box.entry.js +0 -41
  272. package/dist/vviinn-widgets/image-cropper.entry.js +0 -118
  273. package/dist/vviinn-widgets/index-c8128606.js +0 -3010
  274. package/dist/vviinn-widgets/number-a80a4b3c.js +0 -1533
  275. package/dist/vviinn-widgets/search-filters.entry.js +0 -76
  276. package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +0 -389
  277. package/dist/vviinn-widgets/vviinn-carousel.entry.js +0 -210
  278. package/dist/vviinn-widgets/vviinn-detected-object.entry.js +0 -54
  279. package/dist/vviinn-widgets/vviinn-empty-results.entry.js +0 -16
  280. package/dist/vviinn-widgets/vviinn-example-image.entry.js +0 -38
  281. package/dist/vviinn-widgets/vviinn-example-images.entry.js +0 -28
  282. package/dist/vviinn-widgets/vviinn-image-selector.entry.js +0 -31
  283. package/dist/vviinn-widgets/vviinn-image-view.entry.js +0 -55
  284. package/dist/vviinn-widgets/vviinn-modal.entry.js +0 -30
  285. package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +0 -21
  286. package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +0 -21
  287. package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +0 -21
  288. package/dist/vviinn-widgets/vviinn-onboarding.entry.js +0 -20
  289. package/dist/vviinn-widgets/vviinn-overlay.entry.js +0 -15
  290. package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +0 -18
  291. package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +0 -20
  292. package/dist/vviinn-widgets/vviinn-product-card.entry.js +0 -184
  293. package/dist/vviinn-widgets/vviinn-server-error.entry.js +0 -16
  294. package/dist/vviinn-widgets/vviinn-slide.entry.js +0 -15
  295. package/dist/vviinn-widgets/vviinn-slider.entry.js +0 -120
  296. package/dist/vviinn-widgets/vviinn-teaser.entry.js +0 -20
  297. package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +0 -4581
  298. package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +0 -16
  299. package/www/build/Array-c4dc02db.js +0 -4295
  300. package/www/build/Handler-47db9890.js +0 -1428
  301. package/www/build/NonEmptyArray-65395d97.js +0 -4370
  302. package/www/build/css-shim-f0027935.js +0 -4
  303. package/www/build/dom-db0073f0.js +0 -73
  304. package/www/build/highlight-box.entry.js +0 -41
  305. package/www/build/index-c8128606.js +0 -3010
  306. package/www/build/number-a80a4b3c.js +0 -1533
  307. package/www/build/search-filters.entry.js +0 -76
  308. package/www/build/shadow-css-c1fdfa9f.js +0 -389
  309. package/www/build/vviinn-detected-object.entry.js +0 -54
  310. package/www/build/vviinn-empty-results.entry.js +0 -16
  311. package/www/build/vviinn-example-image.entry.js +0 -38
  312. package/www/build/vviinn-example-images.entry.js +0 -28
  313. package/www/build/vviinn-image-selector.entry.js +0 -31
  314. package/www/build/vviinn-image-view.entry.js +0 -55
  315. package/www/build/vviinn-modal.entry.js +0 -30
  316. package/www/build/vviinn-onboarding-card-1.entry.js +0 -21
  317. package/www/build/vviinn-onboarding-card-2.entry.js +0 -21
  318. package/www/build/vviinn-onboarding-card-3.entry.js +0 -21
  319. package/www/build/vviinn-onboarding.entry.js +0 -20
  320. package/www/build/vviinn-overlay.entry.js +0 -15
  321. package/www/build/vviinn-overlayed-modal.entry.js +0 -18
  322. package/www/build/vviinn-privacy-badge.entry.js +0 -20
  323. package/www/build/vviinn-product-card.entry.js +0 -184
  324. package/www/build/vviinn-server-error.entry.js +0 -16
  325. package/www/build/vviinn-slide.entry.js +0 -15
  326. package/www/build/vviinn-slider.entry.js +0 -120
  327. package/www/build/vviinn-teaser.entry.js +0 -20
  328. package/www/build/vviinn-vpr-widget.entry.js +0 -4581
  329. package/www/build/vviinn-vps-button.entry.js +0 -39
  330. package/www/build/vviinn-wrong-format.entry.js +0 -16
@@ -0,0 +1,212 @@
1
+ import { argTypes, continuityLayoutArgs, gridLayoutArgs } from "./args";
2
+ import { gridDecorator, continuityDecorator } from "./decorators";
3
+ const excludeControls = [
4
+ "blockTitle",
5
+ "currencySign",
6
+ "imageRatio",
7
+ "imageWidth",
8
+ "locale",
9
+ "pricePrefix",
10
+ "showScroll",
11
+ ];
12
+ export default {
13
+ title: "Widgets/Visual Recommendations/Widget",
14
+ component: "vviinn-vpr-widget",
15
+ argTypes: Object.assign(Object.assign({}, argTypes), { mode: {
16
+ table: {
17
+ disable: true
18
+ }
19
+ } }),
20
+ parameters: {
21
+ controls: {
22
+ exclude: excludeControls
23
+ }
24
+ }
25
+ };
26
+ const allignementLeft = `
27
+ vviinn-vpr-widget::part(title),
28
+ vviinn-vpr-widget::part(brand),
29
+ vviinn-vpr-widget::part(type),
30
+ vviinn-vpr-widget::part(deeplink),
31
+ vviinn-vpr-widget::part(price-container) {
32
+ align-self: start;
33
+ text-align: left;
34
+ }`;
35
+ const allignementCenter = `
36
+ vviinn-vpr-widget::part(title),
37
+ vviinn-vpr-widget::part(brand),
38
+ vviinn-vpr-widget::part(type),
39
+ vviinn-vpr-widget::part(deeplink),
40
+ vviinn-vpr-widget::part(price-container) {
41
+ align-self: center;
42
+ text-align: center;
43
+ }`;
44
+ const allignementRight = `
45
+ vviinn-vpr-widget::part(title),
46
+ vviinn-vpr-widget::part(brand),
47
+ vviinn-vpr-widget::part(type),
48
+ vviinn-vpr-widget::part(deeplink),
49
+ vviinn-vpr-widget::part(price-container) {
50
+ align-self: end;
51
+ text-align: right;
52
+ }`;
53
+ const allignement = new Map([
54
+ [0, allignementLeft],
55
+ [1, allignementCenter],
56
+ [2, allignementRight],
57
+ ]);
58
+ const Template = (args) => `
59
+ <script>
60
+ window.dataLayer = window.dataLayer || [];
61
+ function gtag() {
62
+ dataLayer.push(arguments);
63
+ }
64
+ gtag("js", new Date());
65
+
66
+ gtag("config", "${args.analyticsId}");
67
+ gtag("require", "ec");
68
+ </script>
69
+ <style>
70
+ ${allignement.get(args.contentAlignment)}
71
+ vviinn-vpr-widget::part(title),
72
+ vviinn-vpr-widget::part(brand),
73
+ vviinn-vpr-widget::part(type),
74
+ vviinn-vpr-widget::part(price-sale),
75
+ vviinn-vpr-widget::part(price-regular) {
76
+ color: ${args.primaryTextColor};
77
+ }
78
+
79
+ vviinn-vpr-widget::part(price-outdated) {
80
+ color: ${args.secondaryTextColor};
81
+ }
82
+
83
+ vviinn-vpr-widget::part(recommendations-title) {
84
+ display: ${args.showTitle ? "flex" : "none"};
85
+ font-size: ${args.titleFontSize}px;
86
+ }
87
+
88
+ @media(min-width: 1024px) {
89
+ * {
90
+ --vviinn-carousel-columns: ${args.recommendationsGridProductsDesktop};
91
+ }
92
+ }
93
+
94
+ @media(max-width: 1024px) and (min-width: 768px) {
95
+ * {
96
+ --vviinn-carousel-columns: ${args.recommendationsGridProductsTablet};
97
+ }
98
+ }
99
+
100
+ @media(max-width: 768px) and (min-width: 460px) {
101
+ * {
102
+ --vviinn-carousel-columns: ${args.recommendationsGridProductsMobile};
103
+ }
104
+
105
+ vviinn-product-card::part(title) {
106
+ font-size: 14px;
107
+ }
108
+ }
109
+
110
+ @media(min-width: 1024px) {
111
+ vviinn-product-card,
112
+ vviinn-vpr-widget::part(image) {
113
+ width: ${args.recommendationsContinuityProductsDesktop}px;
114
+ max-width: ${args.recommendationsContinuityProductsDesktop}px;
115
+ }
116
+
117
+ vviinn-vpr-widget::part(image) {
118
+ height: 100%;
119
+ aspect-ratio: 1;
120
+ }
121
+ }
122
+
123
+ @media(max-width: 1024px) and (min-width: 768px) {
124
+ vviinn-product-card,
125
+ vviinn-vpr-widget::part(image) {
126
+ width: ${args.recommendationsContinuityProductsTablet}px;
127
+ max-width: ${args.recommendationsContinuityProductsTablet}px;
128
+ }
129
+
130
+ vviinn-vpr-widget::part(image) {
131
+ height: 100%;
132
+ aspect-ratio: 1;
133
+ }
134
+ }
135
+
136
+ @media(max-width: 768px) and (min-width: 460px) {
137
+ vviinn-product-card,
138
+ vviinn-vpr-widget::part(image) {
139
+ width: ${args.recommendationsContinuityProductsMobile}px;
140
+ max-width: ${args.recommendationsContinuityProductsMobile}px;
141
+ }
142
+
143
+ vviinn-vpr-widget::part(image) {
144
+ height: 100%;
145
+ aspect-ratio: 1;
146
+ }
147
+
148
+ vviinn-vpr-widget::part(title) {
149
+ font-size: 14px;
150
+ }
151
+ }
152
+ </style>
153
+ <vviinn-vpr-widget
154
+ block-title="${args.titleName}"
155
+ api-path="${args.apiPath}"
156
+ product-id="${args.productId}"
157
+ token="${args.token}"
158
+ mode="${args.mode}"
159
+ show-scroll="${args.showScrollbars}"
160
+ image-width="${args.imageWidth}"
161
+ campaign-type="${args.campaignType}"
162
+ >
163
+ </vviinn-vpr-widget>
164
+ `;
165
+ export const Grid = Template.bind({});
166
+ Grid.args = {
167
+ analyticsId: "UA-34442043-5",
168
+ apiPath: "https://api.vviinn.com",
169
+ campaignType: "VPR",
170
+ contentAlignment: "Centered",
171
+ imageWidth: 420,
172
+ mode: "grid",
173
+ primaryTextColor: "#161616",
174
+ productId: "4114460310",
175
+ recommendationsGridProductsDesktop: 4,
176
+ recommendationsGridProductsMobile: 4,
177
+ recommendationsGridProductsTablet: 4,
178
+ secondaryTextColor: "#757575",
179
+ showScrollbars: true,
180
+ showTitle: true,
181
+ titleFontSize: 28,
182
+ titleName: "Recommended products",
183
+ token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjgzLCJqdGkiOiI3ZTg2Y2I1YS00ZTFjLTRhYjctYjU2My1lN2FjMTYzZTYyZDIiLCJzY29wZXMiOlsidnByIiwidnBzIiwidnBjIl19.SbaQnBkvoXer3GPCWUthFQStFKLHZNMBfj4Qu44WHM8nzaIt48I74yVy4gVbX29vtd6jIkDPdakqEXRXmAxOCtv7_nsd4iBs1yMegfOWW5g8f10PKfZqmWJcfhwKIEElnUMFmP6rXpogntZ7iFfeTBbiRNzQPhkaa7jUjgQkCC4"
184
+ };
185
+ Grid.argTypes = Object.assign({}, gridLayoutArgs);
186
+ Grid.decorators = [
187
+ gridDecorator
188
+ ];
189
+ export const Continuity = Template.bind({});
190
+ Continuity.args = {
191
+ analyticsId: "UA-34442043-5",
192
+ apiPath: "https://api.vviinn.com",
193
+ campaignType: "VPR",
194
+ contentAlignment: "Left",
195
+ imageWidth: 300,
196
+ mode: "continuity",
197
+ primaryTextColor: "#161616",
198
+ productId: "4114460310",
199
+ recommendationsContinuityProductsDesktop: 200,
200
+ recommendationsContinuityProductsMobile: 160,
201
+ recommendationsContinuityProductsTablet: 150,
202
+ secondaryTextColor: "#757575",
203
+ showScrollbars: false,
204
+ showTitle: true,
205
+ titleFontSize: 28,
206
+ titleName: "Recommended products",
207
+ token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjgzLCJqdGkiOiI3ZTg2Y2I1YS00ZTFjLTRhYjctYjU2My1lN2FjMTYzZTYyZDIiLCJzY29wZXMiOlsidnByIiwidnBzIiwidnBjIl19.SbaQnBkvoXer3GPCWUthFQStFKLHZNMBfj4Qu44WHM8nzaIt48I74yVy4gVbX29vtd6jIkDPdakqEXRXmAxOCtv7_nsd4iBs1yMegfOWW5g8f10PKfZqmWJcfhwKIEElnUMFmP6rXpogntZ7iFfeTBbiRNzQPhkaa7jUjgQkCC4"
208
+ };
209
+ Continuity.decorators = [
210
+ continuityDecorator
211
+ ];
212
+ Continuity.argTypes = Object.assign({}, continuityLayoutArgs);
@@ -0,0 +1,11 @@
1
+ import { flow } from "fp-ts/lib/function";
2
+ const createBearerString = (x) => `Bearer ${x}`;
3
+ const createAuthedHeader = (x) => new Headers({
4
+ Authorization: x,
5
+ });
6
+ const createFetchAuthOptions = (x) => {
7
+ return {
8
+ headers: x,
9
+ };
10
+ };
11
+ export const createBearAuthedHeader = flow(createBearerString, createAuthedHeader, createFetchAuthOptions);
@@ -0,0 +1,483 @@
1
+ import { Component, Host, h, Prop, State, Element, Watch, Event, Listen, } from "@stencil/core";
2
+ import { pipe } from "fp-ts/lib/function";
3
+ import * as TE from "fp-ts/lib/TaskEither";
4
+ import * as E from "fp-ts/lib/Either";
5
+ import { createBearAuthedHeader } from "./token-helpers";
6
+ import { state } from "../../store/store";
7
+ import { getRecommendationsService } from "../../campaign/CampaignService";
8
+ import { imageSearchState } from "../../store/imageSearch.store";
9
+ import { Subject } from "rxjs";
10
+ import { v4 as uuidv4 } from "uuid";
11
+ import { createTrackingApi } from "../../openApi";
12
+ import { createProductClickVprEvent, createProductViewVprEvent, createWidgetVprEvent, } from "../../tracking";
13
+ /**
14
+ * @part product-card - product card itself
15
+ * @part title - title inside product card
16
+ * @part brand - brand inside product card
17
+ * @part currency - brand inside product card
18
+ * @part image - product card image
19
+ * @part image-link - anchor element around product image
20
+ * @part price-amount - span element around every prices
21
+ * @part price-container - block of prices
22
+ * @part price-outdated - block for outdated price. rendered when product contains sale price
23
+ * @part price-prefix - block rendered before each price element (for ex. "from")
24
+ * @part price-regular - block for price if no sale price presented
25
+ * @part price-sale - block for sale price. rendered only if sale price presented
26
+ * @part carousel-button
27
+ */
28
+ export class VviinnVprWidget {
29
+ constructor() {
30
+ /** Title for recommendations widget */
31
+ this.blockTitle = "Recommended products";
32
+ /** Ratio of each recommended product image */
33
+ this.imageRatio = 1;
34
+ /** Width of each recommended product image */
35
+ this.imageWidth = 300;
36
+ /** Currency sign will shown after price */
37
+ this.currencySign = "€";
38
+ /** Use slider or grid view */
39
+ this.mode = "continuity";
40
+ /** Campaign type */
41
+ this.campaignType = "VPR";
42
+ /** Locale for currency formatting */
43
+ this.locale = "de-DE";
44
+ /** @internal */
45
+ this.apiPath = "https://api.vviinn.com";
46
+ /** @internal */
47
+ this.useCarousel = true;
48
+ this.showScroll = true;
49
+ this.cssUrl = null;
50
+ this.recommendations = [];
51
+ this.loaded = false;
52
+ this.productImageLoadedSubject = new Subject();
53
+ }
54
+ handleProductIdChange() {
55
+ this.getRecommendations();
56
+ }
57
+ handleCampaignTypeChange() {
58
+ this.getRecommendations();
59
+ }
60
+ handleApiPathChange(newPath) {
61
+ state.apiPath = newPath;
62
+ this.getRecommendations();
63
+ }
64
+ handleImageLoading({ detail }) {
65
+ this.productImageLoadedSubject.next(detail);
66
+ }
67
+ trackRecommendationView({ detail }) {
68
+ const recommendationViewEvent = createProductViewVprEvent(Object.assign({ session_id: this.uiSessionId }, detail));
69
+ this.trackingApi.trackEvent(recommendationViewEvent);
70
+ }
71
+ trackRecommendationClick({ detail }) {
72
+ const recommendationClickEvent = createProductClickVprEvent(Object.assign({ session_id: this.uiSessionId }, detail));
73
+ this.trackingApi.trackEvent(recommendationClickEvent).finally(() => {
74
+ const product = this.recommendations.find((r) => r.productId === detail.product);
75
+ if (!product || !product.deeplink)
76
+ return;
77
+ window.location.href = product.deeplink;
78
+ });
79
+ }
80
+ connectedCallback() {
81
+ state.apiPath = this.apiPath;
82
+ state.currencySign = this.currencySign;
83
+ state.locale = this.locale;
84
+ this.uiSessionId = uuidv4();
85
+ this.trackingApi = createTrackingApi(this.apiPath, this.token);
86
+ const widgetOpenEvent = createWidgetVprEvent({
87
+ action: "open",
88
+ session_id: this.uiSessionId,
89
+ });
90
+ this.trackingApi.trackEvent(widgetOpenEvent);
91
+ }
92
+ disconnectedCallback() {
93
+ const widgetCloseEvent = createWidgetVprEvent({
94
+ action: "close",
95
+ session_id: this.uiSessionId,
96
+ });
97
+ this.trackingApi.trackEvent(widgetCloseEvent);
98
+ }
99
+ async componentWillLoad() {
100
+ state.pricePrefix = this.pricePrefix;
101
+ state.currencySign = this.currencySign;
102
+ this.getRecommendations();
103
+ }
104
+ async getRecommendations() {
105
+ if (this.productId === undefined || this.token === undefined)
106
+ return;
107
+ const campaignType = this.campaignType.length > 0 ? this.campaignType : "VPR";
108
+ const headers = createBearAuthedHeader(this.token);
109
+ const request = pipe(TE.of(getRecommendationsService(campaignType)), TE.ap(TE.of(this.productId)), TE.ap(TE.of(headers)), TE.flatten);
110
+ const runRequest = await request();
111
+ pipe(runRequest, E.fold((error) => this.handleError(error), (data) => this.handleRecommendationsSucces(data)));
112
+ }
113
+ handleError(error) {
114
+ console.log("ERROR:", error);
115
+ }
116
+ handleRecommendationsSucces(data) {
117
+ var _a;
118
+ this.recommendations = (_a = data === null || data === void 0 ? void 0 : data.extended) !== null && _a !== void 0 ? _a : data;
119
+ imageSearchState.results = this.recommendations;
120
+ this.loaded = true;
121
+ this.productIds = this.recommendations.map((r) => r.productId);
122
+ this.productImageLoadedSubject.subscribe((id) => {
123
+ this.productIds = this.productIds.filter((x) => x !== id);
124
+ if (this.productIds.length === 0) {
125
+ this.recommendationsLoaded.emit();
126
+ }
127
+ });
128
+ }
129
+ isExternalCSS() {
130
+ return this.cssUrl && this.cssUrl.length > 0;
131
+ }
132
+ renderExternalCSS() {
133
+ return this.isExternalCSS() ? (h("link", { href: this.cssUrl, rel: "stylesheet" })) : ("");
134
+ }
135
+ render() {
136
+ return (h(Host, { class: {
137
+ loaded: this.loaded,
138
+ empty: this.recommendations.length == 0,
139
+ [this.mode]: true,
140
+ }, "aria-hidden": this.loaded ? "false" : "true" },
141
+ this.renderExternalCSS(),
142
+ h("style", null, state.fallbackStyles),
143
+ h("h2", { part: "recommendations-title" }, this.blockTitle),
144
+ this.useCarousel ? this.renderCarousel() : this.renderResults()));
145
+ }
146
+ renderRecommendation(recommendation, index) {
147
+ return (h("vviinn-product-card", { part: "product-part", productId: recommendation.productId, productTitle: recommendation.title, 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(), index: index }));
148
+ }
149
+ useDimmedBackgroundInCard() {
150
+ return this.mode === "continuity" || !this.useCarousel;
151
+ }
152
+ renderResults() {
153
+ return (h("div", { class: "recommendations-grid", part: "recommendations-grid" }, this.recommendations.map((r, i) => this.renderRecommendation(r, i))));
154
+ }
155
+ renderCarousel() {
156
+ return (h("vviinn-carousel", { mode: this.mode, imageWidth: this.imageWidth, showScroll: this.showScroll, recommendations: this.recommendations }));
157
+ }
158
+ static get is() { return "vviinn-vpr-widget"; }
159
+ static get encapsulation() { return "shadow"; }
160
+ static get originalStyleUrls() { return {
161
+ "$": ["vviinn-vpr-widget.css"]
162
+ }; }
163
+ static get styleUrls() { return {
164
+ "$": ["vviinn-vpr-widget.css"]
165
+ }; }
166
+ static get properties() { return {
167
+ "blockTitle": {
168
+ "type": "string",
169
+ "mutable": false,
170
+ "complexType": {
171
+ "original": "string",
172
+ "resolved": "string",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": false,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": "Title for recommendations widget"
180
+ },
181
+ "attribute": "block-title",
182
+ "reflect": false,
183
+ "defaultValue": "\"Recommended products\""
184
+ },
185
+ "imageRatio": {
186
+ "type": "number",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "number",
190
+ "resolved": "number",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "Ratio of each recommended product image"
198
+ },
199
+ "attribute": "image-ratio",
200
+ "reflect": false,
201
+ "defaultValue": "1"
202
+ },
203
+ "imageWidth": {
204
+ "type": "number",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "number",
208
+ "resolved": "number",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "Width of each recommended product image"
216
+ },
217
+ "attribute": "image-width",
218
+ "reflect": false,
219
+ "defaultValue": "300"
220
+ },
221
+ "productId": {
222
+ "type": "string",
223
+ "mutable": false,
224
+ "complexType": {
225
+ "original": "string",
226
+ "resolved": "string",
227
+ "references": {}
228
+ },
229
+ "required": false,
230
+ "optional": false,
231
+ "docs": {
232
+ "tags": [],
233
+ "text": "Id of product you need recommendations for"
234
+ },
235
+ "attribute": "product-id",
236
+ "reflect": false
237
+ },
238
+ "token": {
239
+ "type": "string",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "string",
243
+ "resolved": "string",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": false,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": "vviinn customer token"
251
+ },
252
+ "attribute": "token",
253
+ "reflect": false
254
+ },
255
+ "currencySign": {
256
+ "type": "string",
257
+ "mutable": false,
258
+ "complexType": {
259
+ "original": "string",
260
+ "resolved": "string",
261
+ "references": {}
262
+ },
263
+ "required": false,
264
+ "optional": false,
265
+ "docs": {
266
+ "tags": [],
267
+ "text": "Currency sign will shown after price"
268
+ },
269
+ "attribute": "currency-sign",
270
+ "reflect": false,
271
+ "defaultValue": "\"\u20AC\""
272
+ },
273
+ "pricePrefix": {
274
+ "type": "string",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "string",
278
+ "resolved": "string",
279
+ "references": {}
280
+ },
281
+ "required": false,
282
+ "optional": false,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": "prefix will shown before price"
286
+ },
287
+ "attribute": "price-prefix",
288
+ "reflect": false
289
+ },
290
+ "mode": {
291
+ "type": "string",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "CarouselMode",
295
+ "resolved": "\"continuity\" | \"grid\"",
296
+ "references": {
297
+ "CarouselMode": {
298
+ "location": "import",
299
+ "path": "../vviinn-carousel/vviinn-carousel"
300
+ }
301
+ }
302
+ },
303
+ "required": false,
304
+ "optional": false,
305
+ "docs": {
306
+ "tags": [],
307
+ "text": "Use slider or grid view"
308
+ },
309
+ "attribute": "mode",
310
+ "reflect": false,
311
+ "defaultValue": "\"continuity\""
312
+ },
313
+ "campaignType": {
314
+ "type": "string",
315
+ "mutable": false,
316
+ "complexType": {
317
+ "original": "CampaignName",
318
+ "resolved": "\"VCS\" | \"VPR\"",
319
+ "references": {
320
+ "CampaignName": {
321
+ "location": "import",
322
+ "path": "../../campaign/Campaign"
323
+ }
324
+ }
325
+ },
326
+ "required": false,
327
+ "optional": false,
328
+ "docs": {
329
+ "tags": [],
330
+ "text": "Campaign type"
331
+ },
332
+ "attribute": "campaign-type",
333
+ "reflect": false,
334
+ "defaultValue": "\"VPR\""
335
+ },
336
+ "locale": {
337
+ "type": "string",
338
+ "mutable": false,
339
+ "complexType": {
340
+ "original": "string",
341
+ "resolved": "string",
342
+ "references": {}
343
+ },
344
+ "required": false,
345
+ "optional": false,
346
+ "docs": {
347
+ "tags": [],
348
+ "text": "Locale for currency formatting"
349
+ },
350
+ "attribute": "locale",
351
+ "reflect": false,
352
+ "defaultValue": "\"de-DE\""
353
+ },
354
+ "apiPath": {
355
+ "type": "string",
356
+ "mutable": false,
357
+ "complexType": {
358
+ "original": "string | undefined",
359
+ "resolved": "string",
360
+ "references": {}
361
+ },
362
+ "required": false,
363
+ "optional": false,
364
+ "docs": {
365
+ "tags": [{
366
+ "text": undefined,
367
+ "name": "internal"
368
+ }],
369
+ "text": ""
370
+ },
371
+ "attribute": "api-path",
372
+ "reflect": false,
373
+ "defaultValue": "\"https://api.vviinn.com\""
374
+ },
375
+ "useCarousel": {
376
+ "type": "boolean",
377
+ "mutable": false,
378
+ "complexType": {
379
+ "original": "boolean",
380
+ "resolved": "boolean",
381
+ "references": {}
382
+ },
383
+ "required": false,
384
+ "optional": false,
385
+ "docs": {
386
+ "tags": [{
387
+ "text": undefined,
388
+ "name": "internal"
389
+ }],
390
+ "text": ""
391
+ },
392
+ "attribute": "use-carousel",
393
+ "reflect": false,
394
+ "defaultValue": "true"
395
+ },
396
+ "showScroll": {
397
+ "type": "boolean",
398
+ "mutable": false,
399
+ "complexType": {
400
+ "original": "boolean",
401
+ "resolved": "boolean",
402
+ "references": {}
403
+ },
404
+ "required": false,
405
+ "optional": false,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": ""
409
+ },
410
+ "attribute": "show-scroll",
411
+ "reflect": false,
412
+ "defaultValue": "true"
413
+ },
414
+ "cssUrl": {
415
+ "type": "string",
416
+ "mutable": false,
417
+ "complexType": {
418
+ "original": "string | null",
419
+ "resolved": "string",
420
+ "references": {}
421
+ },
422
+ "required": false,
423
+ "optional": false,
424
+ "docs": {
425
+ "tags": [],
426
+ "text": ""
427
+ },
428
+ "attribute": "css-url",
429
+ "reflect": false,
430
+ "defaultValue": "null"
431
+ }
432
+ }; }
433
+ static get states() { return {
434
+ "recommendations": {},
435
+ "loaded": {}
436
+ }; }
437
+ static get events() { return [{
438
+ "method": "recommendationsLoaded",
439
+ "name": "recommendationsLoaded",
440
+ "bubbles": true,
441
+ "cancelable": true,
442
+ "composed": true,
443
+ "docs": {
444
+ "tags": [],
445
+ "text": ""
446
+ },
447
+ "complexType": {
448
+ "original": "any",
449
+ "resolved": "any",
450
+ "references": {}
451
+ }
452
+ }]; }
453
+ static get elementRef() { return "el"; }
454
+ static get watchers() { return [{
455
+ "propName": "productId",
456
+ "methodName": "handleProductIdChange"
457
+ }, {
458
+ "propName": "campaignType",
459
+ "methodName": "handleCampaignTypeChange"
460
+ }, {
461
+ "propName": "apiPath",
462
+ "methodName": "handleApiPathChange"
463
+ }]; }
464
+ static get listeners() { return [{
465
+ "name": "productImageLoaded",
466
+ "method": "handleImageLoading",
467
+ "target": undefined,
468
+ "capture": false,
469
+ "passive": false
470
+ }, {
471
+ "name": "recommendationView",
472
+ "method": "trackRecommendationView",
473
+ "target": undefined,
474
+ "capture": false,
475
+ "passive": false
476
+ }, {
477
+ "name": "recommendationClick",
478
+ "method": "trackRecommendationClick",
479
+ "target": undefined,
480
+ "capture": false,
481
+ "passive": false
482
+ }]; }
483
+ }