vviinn-widgets 2.18.21 → 2.19.0

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 (503) hide show
  1. package/dist/cjs/Campaign-13258569.js +2 -0
  2. package/dist/cjs/Campaign-13258569.js.map +1 -0
  3. package/dist/cjs/{Handler-176539c8.js → Handler-de64afa5.js} +31 -43
  4. package/dist/cjs/Handler-de64afa5.js.map +1 -0
  5. package/dist/cjs/cropper-handler.cjs.entry.js +7 -4
  6. package/dist/cjs/cropper-handler.cjs.entry.js.map +1 -0
  7. package/dist/cjs/{customized-slots-6e56c354.js → customized-slots-aee3f39d.js} +3 -1
  8. package/dist/cjs/customized-slots-aee3f39d.js.map +1 -0
  9. package/dist/cjs/highlight-box_22.cjs.entry.js +68 -39
  10. package/dist/cjs/highlight-box_22.cjs.entry.js.map +1 -0
  11. package/dist/cjs/{imageSearch.store-98824653.js → imageSearch.store-fbe0600a.js} +3570 -2250
  12. package/dist/cjs/imageSearch.store-fbe0600a.js.map +1 -0
  13. package/dist/cjs/{index-cb410762.js → index-610c6c1f.js} +3 -1
  14. package/dist/cjs/index-610c6c1f.js.map +1 -0
  15. package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +685 -303
  16. package/dist/cjs/index-a4becaff.js.map +1 -0
  17. package/dist/cjs/{index-a99edb90.js → index-c4851793.js} +3 -1
  18. package/dist/cjs/index-c4851793.js.map +1 -0
  19. package/dist/cjs/index.cjs.js +2 -0
  20. package/dist/cjs/index.cjs.js.map +1 -0
  21. package/dist/cjs/loader.cjs.js +6 -3
  22. package/dist/cjs/loader.cjs.js.map +1 -0
  23. package/dist/cjs/vviinn-button.cjs.entry.js +5 -3
  24. package/dist/cjs/vviinn-button.cjs.entry.js.map +1 -0
  25. package/dist/cjs/vviinn-carousel_3.cjs.entry.js +124 -39
  26. package/dist/cjs/vviinn-carousel_3.cjs.entry.js.map +1 -0
  27. package/dist/cjs/vviinn-error.cjs.entry.js +4 -2
  28. package/dist/cjs/vviinn-error.cjs.entry.js.map +1 -0
  29. package/dist/cjs/vviinn-preloader.cjs.entry.js +7 -5
  30. package/dist/cjs/vviinn-preloader.cjs.entry.js.map +1 -0
  31. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +15 -6
  32. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js.map +1 -0
  33. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +13 -12
  34. package/dist/cjs/vviinn-vpr-button.cjs.entry.js.map +1 -0
  35. package/dist/cjs/vviinn-vps-button.cjs.entry.js +28 -25
  36. package/dist/cjs/vviinn-vps-button.cjs.entry.js.map +1 -0
  37. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +46 -31
  38. package/dist/cjs/vviinn-vps-widget.cjs.entry.js.map +1 -0
  39. package/dist/cjs/vviinn-widgets.cjs.js +12 -3
  40. package/dist/cjs/vviinn-widgets.cjs.js.map +1 -0
  41. package/dist/collection/Image/error.js +1 -0
  42. package/dist/collection/Image/error.js.map +1 -0
  43. package/dist/collection/Image/form.js +1 -0
  44. package/dist/collection/Image/form.js.map +1 -0
  45. package/dist/collection/Image/fromFile.js +1 -0
  46. package/dist/collection/Image/fromFile.js.map +1 -0
  47. package/dist/collection/Image/imageToB64.js +1 -0
  48. package/dist/collection/Image/imageToB64.js.map +1 -0
  49. package/dist/collection/Image/index.js +1 -0
  50. package/dist/collection/Image/index.js.map +1 -0
  51. package/dist/collection/Image/renderPromise.js +1 -0
  52. package/dist/collection/Image/renderPromise.js.map +1 -0
  53. package/dist/collection/Image/resizeImage.js +1 -0
  54. package/dist/collection/Image/resizeImage.js.map +1 -0
  55. package/dist/collection/Image/sizing.js +1 -0
  56. package/dist/collection/Image/sizing.js.map +1 -0
  57. package/dist/collection/Image/sizing.spec.js +67 -0
  58. package/dist/collection/Image/sizing.spec.js.map +1 -0
  59. package/dist/collection/Image/toFile.js +1 -0
  60. package/dist/collection/Image/toFile.js.map +1 -0
  61. package/dist/collection/analytics/GAnalytics.js +1 -0
  62. package/dist/collection/analytics/GAnalytics.js.map +1 -0
  63. package/dist/collection/analytics/GeneralAnalytics.js +1 -0
  64. package/dist/collection/analytics/GeneralAnalytics.js.map +1 -0
  65. package/dist/collection/analytics/GtagAnalytics.js +1 -0
  66. package/dist/collection/analytics/GtagAnalytics.js.map +1 -0
  67. package/dist/collection/analytics/ProductAnalytics.js +1 -0
  68. package/dist/collection/analytics/ProductAnalytics.js.map +1 -0
  69. package/dist/collection/campaign/Campaign.js +1 -0
  70. package/dist/collection/campaign/Campaign.js.map +1 -0
  71. package/dist/collection/campaign/CampaignService.js +1 -0
  72. package/dist/collection/campaign/CampaignService.js.map +1 -0
  73. package/dist/collection/campaign/VCSCampaign.js +1 -0
  74. package/dist/collection/campaign/VCSCampaign.js.map +1 -0
  75. package/dist/collection/campaign/VCSCampaignResponse.js +1 -0
  76. package/dist/collection/campaign/VCSCampaignResponse.js.map +1 -0
  77. package/dist/collection/campaign/VCSCampaignService.js +1 -0
  78. package/dist/collection/campaign/VCSCampaignService.js.map +1 -0
  79. package/dist/collection/campaign/VPRCampaignResponse.js +1 -0
  80. package/dist/collection/campaign/VPRCampaignResponse.js.map +1 -0
  81. package/dist/collection/campaign/VPRCampaignService.js +1 -0
  82. package/dist/collection/campaign/VPRCampaignService.js.map +1 -0
  83. package/dist/collection/collection-manifest.json +2 -2
  84. package/dist/collection/components/customized-slots.js +1 -0
  85. package/dist/collection/components/customized-slots.js.map +1 -0
  86. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
  87. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +12 -7
  88. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js.map +1 -0
  89. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
  90. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +41 -37
  91. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js.map +1 -0
  92. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +74 -67
  93. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js.map +1 -0
  94. package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
  95. package/dist/collection/components/image-search/search-filters/search-filters.js +98 -91
  96. package/dist/collection/components/image-search/search-filters/search-filters.js.map +1 -0
  97. package/dist/collection/components/vviinn-button/vviinn-button.js +35 -31
  98. package/dist/collection/components/vviinn-button/vviinn-button.js.map +1 -0
  99. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
  100. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +162 -156
  101. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js.map +1 -0
  102. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +13 -14
  103. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js.map +1 -0
  104. package/dist/collection/components/vviinn-error/vviinn-error.js +13 -12
  105. package/dist/collection/components/vviinn-error/vviinn-error.js.map +1 -0
  106. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +36 -30
  107. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js.map +1 -0
  108. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +36 -30
  109. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js.map +1 -0
  110. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +130 -121
  111. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js.map +1 -0
  112. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +76 -75
  113. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js.map +1 -0
  114. package/dist/collection/components/vviinn-icons/index.js +11 -27
  115. package/dist/collection/components/vviinn-icons/index.js.map +1 -0
  116. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +121 -67
  117. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js.map +1 -0
  118. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +82 -69
  119. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js.map +1 -0
  120. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
  121. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +28 -28
  122. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js.map +1 -0
  123. package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
  124. package/dist/collection/components/vviinn-modal/vviinn-modal.js +116 -93
  125. package/dist/collection/components/vviinn-modal/vviinn-modal.js.map +1 -0
  126. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +13 -14
  127. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js.map +1 -0
  128. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +13 -14
  129. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js.map +1 -0
  130. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +13 -14
  131. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js.map +1 -0
  132. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +13 -17
  133. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js.map +1 -0
  134. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
  135. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +13 -9
  136. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js.map +1 -0
  137. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +108 -78
  138. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js.map +1 -0
  139. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
  140. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +12 -7
  141. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js.map +1 -0
  142. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
  143. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +13 -16
  144. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js.map +1 -0
  145. package/dist/collection/components/vviinn-product-card/render-helpers.js +7 -14
  146. package/dist/collection/components/vviinn-product-card/render-helpers.js.map +1 -0
  147. package/dist/collection/components/vviinn-product-card/stories/args.js +1 -0
  148. package/dist/collection/components/vviinn-product-card/stories/args.js.map +1 -0
  149. package/dist/collection/components/vviinn-product-card/stories/decorators.js +1 -0
  150. package/dist/collection/components/vviinn-product-card/stories/decorators.js.map +1 -0
  151. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +1 -0
  152. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js.map +1 -0
  153. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +426 -415
  154. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js.map +1 -0
  155. package/dist/collection/components/vviinn-slider/arrow.js +2 -2
  156. package/dist/collection/components/vviinn-slider/arrow.js.map +1 -0
  157. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +13 -9
  158. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js.map +1 -0
  159. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
  160. package/dist/collection/components/vviinn-slider/vviinn-slider.js +88 -82
  161. package/dist/collection/components/vviinn-slider/vviinn-slider.js.map +1 -0
  162. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +13 -18
  163. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js.map +1 -0
  164. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
  165. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +372 -360
  166. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js.map +1 -0
  167. package/dist/collection/components/vviinn-vpr-button/stories/args.js +1 -0
  168. package/dist/collection/components/vviinn-vpr-button/stories/args.js.map +1 -0
  169. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +1 -0
  170. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js.map +1 -0
  171. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +449 -444
  172. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js.map +1 -0
  173. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +1 -0
  174. package/dist/collection/components/vviinn-vpr-widget/stories/args.js.map +1 -0
  175. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +1 -0
  176. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js.map +1 -0
  177. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +1 -0
  178. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js.map +1 -0
  179. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +1 -0
  180. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js.map +1 -0
  181. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +546 -542
  182. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js.map +1 -0
  183. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +3 -0
  184. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js.map +1 -0
  185. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +369 -332
  186. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js.map +1 -0
  187. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +1 -0
  188. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js.map +1 -0
  189. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
  190. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +27 -0
  191. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js.map +1 -0
  192. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +503 -425
  193. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js.map +1 -0
  194. package/dist/collection/cropper/Cropper.js +1 -0
  195. package/dist/collection/cropper/Cropper.js.map +1 -0
  196. package/dist/collection/cropper/Handler.js +1 -0
  197. package/dist/collection/cropper/Handler.js.map +1 -0
  198. package/dist/collection/dom/index.js +1 -0
  199. package/dist/collection/dom/index.js.map +1 -0
  200. package/dist/collection/error.js +1 -0
  201. package/dist/collection/error.js.map +1 -0
  202. package/dist/collection/file/index.js +1 -0
  203. package/dist/collection/file/index.js.map +1 -0
  204. package/dist/collection/geometry/Clip.js +1 -0
  205. package/dist/collection/geometry/Clip.js.map +1 -0
  206. package/dist/collection/geometry/Clip.spec.js +17 -0
  207. package/dist/collection/geometry/Clip.spec.js.map +1 -0
  208. package/dist/collection/geometry/Point.js +1 -0
  209. package/dist/collection/geometry/Point.js.map +1 -0
  210. package/dist/collection/geometry/Rectangle.js +1 -0
  211. package/dist/collection/geometry/Rectangle.js.map +1 -0
  212. package/dist/collection/geometry/Rectangle.spec.js +67 -0
  213. package/dist/collection/geometry/Rectangle.spec.js.map +1 -0
  214. package/dist/collection/geometry/RectangleAlt.js +1 -0
  215. package/dist/collection/geometry/RectangleAlt.js.map +1 -0
  216. package/dist/collection/geometry/Sized.js +1 -0
  217. package/dist/collection/geometry/Sized.js.map +1 -0
  218. package/dist/collection/geometry/Sized.spec.js +17 -0
  219. package/dist/collection/geometry/Sized.spec.js.map +1 -0
  220. package/dist/collection/global.js +1 -0
  221. package/dist/collection/global.js.map +1 -0
  222. package/dist/collection/index.js +1 -0
  223. package/dist/collection/index.js.map +1 -0
  224. package/dist/collection/interfaces/generated.js +1 -4
  225. package/dist/collection/interfaces/generated.js.map +1 -0
  226. package/dist/collection/interfaces/recommendation.js +1 -0
  227. package/dist/collection/interfaces/recommendation.js.map +1 -0
  228. package/dist/collection/network/apiClient.js +1 -0
  229. package/dist/collection/network/apiClient.js.map +1 -0
  230. package/dist/collection/network/ion/File.js +1 -0
  231. package/dist/collection/network/ion/File.js.map +1 -0
  232. package/dist/collection/network/ion/Form.js +1 -0
  233. package/dist/collection/network/ion/Form.js.map +1 -0
  234. package/dist/collection/network/ion/Form.spec.js +44 -0
  235. package/dist/collection/network/ion/Form.spec.js.map +1 -0
  236. package/dist/collection/network/ion/Link.js +1 -0
  237. package/dist/collection/network/ion/Link.js.map +1 -0
  238. package/dist/collection/network/ion/ValueObject.js +1 -0
  239. package/dist/collection/network/ion/ValueObject.js.map +1 -0
  240. package/dist/collection/network/request.js +1 -0
  241. package/dist/collection/network/request.js.map +1 -0
  242. package/dist/collection/network/utils.js +1 -0
  243. package/dist/collection/network/utils.js.map +1 -0
  244. package/dist/collection/openApi/index.js +1 -0
  245. package/dist/collection/openApi/index.js.map +1 -0
  246. package/dist/collection/recommendation/events.js +1 -0
  247. package/dist/collection/recommendation/events.js.map +1 -0
  248. package/dist/collection/recommendation/recommendation.js +1 -0
  249. package/dist/collection/recommendation/recommendation.js.map +1 -0
  250. package/dist/collection/searchSession/searchSession.js +1 -0
  251. package/dist/collection/searchSession/searchSession.js.map +1 -0
  252. package/dist/collection/sentry.js +1 -0
  253. package/dist/collection/sentry.js.map +1 -0
  254. package/dist/collection/slider/GridMode.js +1 -0
  255. package/dist/collection/slider/GridMode.js.map +1 -0
  256. package/dist/collection/store/file-processing.js +1 -0
  257. package/dist/collection/store/file-processing.js.map +1 -0
  258. package/dist/collection/store/imageSearch.store.js +1 -0
  259. package/dist/collection/store/imageSearch.store.js.map +1 -0
  260. package/dist/collection/store/store.js +1 -0
  261. package/dist/collection/store/store.js.map +1 -0
  262. package/dist/collection/store/tracking.store.js +1 -0
  263. package/dist/collection/store/tracking.store.js.map +1 -0
  264. package/dist/collection/stories/image-selector.stories.js +1 -0
  265. package/dist/collection/stories/image-selector.stories.js.map +1 -0
  266. package/dist/collection/stories/image-view.stories.js +1 -0
  267. package/dist/collection/stories/image-view.stories.js.map +1 -0
  268. package/dist/collection/stories/modal.stories.js +1 -0
  269. package/dist/collection/stories/modal.stories.js.map +1 -0
  270. package/dist/collection/stories/onboarding.stories.js +1 -0
  271. package/dist/collection/stories/onboarding.stories.js.map +1 -0
  272. package/dist/collection/stories/overlay.stories.js +1 -0
  273. package/dist/collection/stories/overlay.stories.js.map +1 -0
  274. package/dist/collection/stories/overlayedModal.stories.js +1 -0
  275. package/dist/collection/stories/overlayedModal.stories.js.map +1 -0
  276. package/dist/collection/stories/privacy-badge.stories.js +1 -0
  277. package/dist/collection/stories/privacy-badge.stories.js.map +1 -0
  278. package/dist/collection/stories/slider.stories.js +1 -0
  279. package/dist/collection/stories/slider.stories.js.map +1 -0
  280. package/dist/collection/stories/teaser.stories.js +1 -0
  281. package/dist/collection/stories/teaser.stories.js.map +1 -0
  282. package/dist/collection/stories/vps-widget.stories.js +1 -0
  283. package/dist/collection/stories/vps-widget.stories.js.map +1 -0
  284. package/dist/collection/stories/vviinn-product.stories.js +1 -0
  285. package/dist/collection/stories/vviinn-product.stories.js.map +1 -0
  286. package/dist/collection/tracking/event.js +1 -0
  287. package/dist/collection/tracking/event.js.map +1 -0
  288. package/dist/collection/tracking/filter.js +1 -0
  289. package/dist/collection/tracking/filter.js.map +1 -0
  290. package/dist/collection/tracking/index.js +1 -0
  291. package/dist/collection/tracking/index.js.map +1 -0
  292. package/dist/collection/tracking/models.js +1 -0
  293. package/dist/collection/tracking/models.js.map +1 -0
  294. package/dist/collection/tracking/product.js +1 -0
  295. package/dist/collection/tracking/product.js.map +1 -0
  296. package/dist/collection/tracking/search.js +1 -0
  297. package/dist/collection/tracking/search.js.map +1 -0
  298. package/dist/collection/tracking/widget.js +1 -0
  299. package/dist/collection/tracking/widget.js.map +1 -0
  300. package/dist/collection/utils/collections/collectionsUtils.js +1 -0
  301. package/dist/collection/utils/collections/collectionsUtils.js.map +1 -0
  302. package/dist/collection/utils/either.js +1 -0
  303. package/dist/collection/utils/either.js.map +1 -0
  304. package/dist/collection/utils/enum/enumUtils.js +1 -0
  305. package/dist/collection/utils/enum/enumUtils.js.map +1 -0
  306. package/dist/collection/utils/event/Events.js +1 -0
  307. package/dist/collection/utils/event/Events.js.map +1 -0
  308. package/dist/collection/utils/number/index.js +1 -0
  309. package/dist/collection/utils/number/index.js.map +1 -0
  310. package/dist/collection/utils/option/option.js +1 -0
  311. package/dist/collection/utils/option/option.js.map +1 -0
  312. package/dist/collection/utils/semigroup/semigroupDiff.js +1 -0
  313. package/dist/collection/utils/semigroup/semigroupDiff.js.map +1 -0
  314. package/dist/collection/utils/token/tokenUtils.js +1 -0
  315. package/dist/collection/utils/token/tokenUtils.js.map +1 -0
  316. package/dist/esm/Campaign-90ba7e06.js +2 -0
  317. package/dist/esm/Campaign-90ba7e06.js.map +1 -0
  318. package/dist/esm/{Handler-f9b8735c.js → Handler-7bfee84f.js} +30 -43
  319. package/dist/esm/Handler-7bfee84f.js.map +1 -0
  320. package/dist/esm/cropper-handler.entry.js +7 -4
  321. package/dist/esm/cropper-handler.entry.js.map +1 -0
  322. package/dist/esm/{customized-slots-00afe247.js → customized-slots-b372eaed.js} +3 -1
  323. package/dist/esm/customized-slots-b372eaed.js.map +1 -0
  324. package/dist/esm/highlight-box_22.entry.js +68 -39
  325. package/dist/esm/highlight-box_22.entry.js.map +1 -0
  326. package/dist/esm/{imageSearch.store-9dde5360.js → imageSearch.store-cccd9b24.js} +3572 -2251
  327. package/dist/esm/imageSearch.store-cccd9b24.js.map +1 -0
  328. package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +685 -304
  329. package/dist/esm/index-48ef9564.js.map +1 -0
  330. package/dist/esm/{index-b31d86ce.js → index-714e572a.js} +3 -1
  331. package/dist/esm/index-714e572a.js.map +1 -0
  332. package/dist/esm/{index-4d5b52ba.js → index-fdc32fbc.js} +3 -1
  333. package/dist/esm/index-fdc32fbc.js.map +1 -0
  334. package/dist/esm/index.js +2 -0
  335. package/dist/esm/index.js.map +1 -0
  336. package/dist/esm/loader.js +6 -3
  337. package/dist/esm/loader.js.map +1 -0
  338. package/dist/esm/polyfills/css-shim.js +1 -1
  339. package/dist/esm/vviinn-button.entry.js +5 -3
  340. package/dist/esm/vviinn-button.entry.js.map +1 -0
  341. package/dist/esm/vviinn-carousel_3.entry.js +123 -38
  342. package/dist/esm/vviinn-carousel_3.entry.js.map +1 -0
  343. package/dist/esm/vviinn-error.entry.js +4 -2
  344. package/dist/esm/vviinn-error.entry.js.map +1 -0
  345. package/dist/esm/vviinn-preloader.entry.js +7 -5
  346. package/dist/esm/vviinn-preloader.entry.js.map +1 -0
  347. package/dist/esm/vviinn-recommendations-sidebar.entry.js +15 -6
  348. package/dist/esm/vviinn-recommendations-sidebar.entry.js.map +1 -0
  349. package/dist/esm/vviinn-vpr-button.entry.js +13 -12
  350. package/dist/esm/vviinn-vpr-button.entry.js.map +1 -0
  351. package/dist/esm/vviinn-vps-button.entry.js +28 -25
  352. package/dist/esm/vviinn-vps-button.entry.js.map +1 -0
  353. package/dist/esm/vviinn-vps-widget.entry.js +46 -31
  354. package/dist/esm/vviinn-vps-widget.entry.js.map +1 -0
  355. package/dist/esm/vviinn-widgets.js +9 -3
  356. package/dist/esm/vviinn-widgets.js.map +1 -0
  357. package/dist/loader/index.d.ts +9 -0
  358. package/dist/loader/package.json +1 -0
  359. package/dist/types/Image/sizing.d.ts +4 -4
  360. package/dist/types/campaign/Campaign.d.ts +5 -5
  361. package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
  362. package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
  363. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
  364. package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
  365. package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
  366. package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
  367. package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
  368. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
  369. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
  370. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
  371. package/dist/types/components.d.ts +154 -54
  372. package/dist/types/error.d.ts +1 -1
  373. package/dist/types/geometry/Point.d.ts +1 -1
  374. package/dist/types/geometry/Rectangle.d.ts +1 -1
  375. package/dist/types/geometry/Sized.d.ts +1 -1
  376. package/dist/types/interfaces/generated.d.ts +192 -371
  377. package/dist/types/network/ion/File.d.ts +2 -2
  378. package/dist/types/network/ion/Form.d.ts +5 -5
  379. package/dist/types/network/ion/Link.d.ts +1 -1
  380. package/dist/types/network/ion/ValueObject.d.ts +4 -4
  381. package/dist/types/network/utils.d.ts +3 -3
  382. package/dist/types/recommendation/events.d.ts +5 -5
  383. package/dist/types/recommendation/recommendation.d.ts +1 -1
  384. package/dist/types/searchSession/searchSession.d.ts +7 -7
  385. package/dist/types/slider/GridMode.d.ts +1 -1
  386. package/dist/types/stencil-public-runtime.d.ts +98 -23
  387. package/dist/types/store/imageSearch.store.d.ts +1 -1
  388. package/dist/types/tracking/models.d.ts +2 -2
  389. package/dist/types/utils/event/Events.d.ts +1 -1
  390. package/dist/vviinn-widgets/index.esm.js +2 -0
  391. package/dist/vviinn-widgets/index.esm.js.map +1 -0
  392. package/dist/vviinn-widgets/p-0b0d59d7.entry.js +2 -0
  393. package/dist/vviinn-widgets/p-0b0d59d7.entry.js.map +1 -0
  394. package/dist/vviinn-widgets/p-14373da7.entry.js +2 -0
  395. package/dist/vviinn-widgets/p-14373da7.entry.js.map +1 -0
  396. package/dist/vviinn-widgets/p-18fd769b.js +2 -1
  397. package/dist/vviinn-widgets/p-18fd769b.js.map +1 -0
  398. package/dist/vviinn-widgets/p-2f7bf983.js +2 -0
  399. package/dist/vviinn-widgets/p-2f7bf983.js.map +1 -0
  400. package/dist/vviinn-widgets/p-3abc679c.js +2 -0
  401. package/dist/vviinn-widgets/p-3abc679c.js.map +1 -0
  402. package/dist/vviinn-widgets/p-3b99c62d.js +2 -0
  403. package/dist/vviinn-widgets/p-3b99c62d.js.map +1 -0
  404. package/dist/vviinn-widgets/p-4325566b.entry.js +2 -0
  405. package/dist/vviinn-widgets/p-4325566b.entry.js.map +1 -0
  406. package/dist/vviinn-widgets/p-53eacbe3.js +2 -0
  407. package/dist/vviinn-widgets/p-53eacbe3.js.map +1 -0
  408. package/dist/vviinn-widgets/p-645baf22.entry.js +2 -0
  409. package/dist/vviinn-widgets/p-645baf22.entry.js.map +1 -0
  410. package/dist/vviinn-widgets/p-a10b9151.entry.js +2 -0
  411. package/dist/vviinn-widgets/p-a10b9151.entry.js.map +1 -0
  412. package/dist/vviinn-widgets/p-c012ef97.entry.js +2 -0
  413. package/dist/vviinn-widgets/p-c012ef97.entry.js.map +1 -0
  414. package/dist/vviinn-widgets/p-c24caccd.js +2 -0
  415. package/dist/vviinn-widgets/p-c24caccd.js.map +1 -0
  416. package/dist/vviinn-widgets/p-d20a9a96.entry.js +2 -0
  417. package/dist/vviinn-widgets/p-d20a9a96.entry.js.map +1 -0
  418. package/dist/vviinn-widgets/p-d95d7c38.entry.js +2 -0
  419. package/dist/vviinn-widgets/p-d95d7c38.entry.js.map +1 -0
  420. package/dist/vviinn-widgets/p-e5e67a5f.entry.js +2 -0
  421. package/dist/vviinn-widgets/p-e5e67a5f.entry.js.map +1 -0
  422. package/dist/vviinn-widgets/p-e6d67de3.entry.js +2 -0
  423. package/dist/vviinn-widgets/p-e6d67de3.entry.js.map +1 -0
  424. package/dist/vviinn-widgets/p-fa17e81f.js +3 -0
  425. package/dist/vviinn-widgets/p-fa17e81f.js.map +1 -0
  426. package/dist/vviinn-widgets/vviinn-widgets.esm.js +2 -1
  427. package/dist/vviinn-widgets/vviinn-widgets.esm.js.map +1 -0
  428. package/package.json +12 -12
  429. package/www/build/index.esm.js +2 -0
  430. package/www/build/index.esm.js.map +1 -0
  431. package/www/build/p-0b0d59d7.entry.js +2 -0
  432. package/www/build/p-0b0d59d7.entry.js.map +1 -0
  433. package/www/build/p-14373da7.entry.js +2 -0
  434. package/www/build/p-14373da7.entry.js.map +1 -0
  435. package/www/build/p-18fd769b.js +2 -1
  436. package/www/build/p-18fd769b.js.map +1 -0
  437. package/www/build/p-2f7bf983.js +2 -0
  438. package/www/build/p-2f7bf983.js.map +1 -0
  439. package/www/build/p-3abc679c.js +2 -0
  440. package/www/build/p-3abc679c.js.map +1 -0
  441. package/www/build/p-3b99c62d.js +2 -0
  442. package/www/build/p-3b99c62d.js.map +1 -0
  443. package/www/build/p-4325566b.entry.js +2 -0
  444. package/www/build/p-4325566b.entry.js.map +1 -0
  445. package/www/build/p-53eacbe3.js +2 -0
  446. package/www/build/p-53eacbe3.js.map +1 -0
  447. package/www/build/p-645baf22.entry.js +2 -0
  448. package/www/build/p-645baf22.entry.js.map +1 -0
  449. package/www/build/p-a10b9151.entry.js +2 -0
  450. package/www/build/p-a10b9151.entry.js.map +1 -0
  451. package/www/build/p-a67898be.css +1 -0
  452. package/www/build/p-ae6e6410.js +2 -0
  453. package/www/build/p-c012ef97.entry.js +2 -0
  454. package/www/build/p-c012ef97.entry.js.map +1 -0
  455. package/www/build/p-c24caccd.js +2 -0
  456. package/www/build/p-c24caccd.js.map +1 -0
  457. package/www/build/p-d20a9a96.entry.js +2 -0
  458. package/www/build/p-d20a9a96.entry.js.map +1 -0
  459. package/www/build/p-d95d7c38.entry.js +2 -0
  460. package/www/build/p-d95d7c38.entry.js.map +1 -0
  461. package/www/build/p-e5e67a5f.entry.js +2 -0
  462. package/www/build/p-e5e67a5f.entry.js.map +1 -0
  463. package/www/build/p-e6d67de3.entry.js +2 -0
  464. package/www/build/p-e6d67de3.entry.js.map +1 -0
  465. package/www/build/p-fa17e81f.js +3 -0
  466. package/www/build/p-fa17e81f.js.map +1 -0
  467. package/www/build/vviinn-widgets.esm.js +2 -1
  468. package/www/build/vviinn-widgets.esm.js.map +1 -0
  469. package/www/index.html +1 -1
  470. package/dist/vviinn-widgets/p-11f61564.js +0 -1
  471. package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
  472. package/dist/vviinn-widgets/p-2f9ee951.js +0 -1
  473. package/dist/vviinn-widgets/p-339c6838.js +0 -1
  474. package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
  475. package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
  476. package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
  477. package/dist/vviinn-widgets/p-69850e5b.js +0 -1
  478. package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
  479. package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
  480. package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
  481. package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
  482. package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
  483. package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
  484. package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
  485. package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
  486. package/www/build/p-11f61564.js +0 -1
  487. package/www/build/p-12851e97.entry.js +0 -1
  488. package/www/build/p-2f9ee951.js +0 -1
  489. package/www/build/p-339c6838.js +0 -1
  490. package/www/build/p-3b2c91c0.entry.js +0 -1
  491. package/www/build/p-45df9f28.entry.js +0 -1
  492. package/www/build/p-57ed5303.entry.js +0 -1
  493. package/www/build/p-69850e5b.js +0 -1
  494. package/www/build/p-7c2f762a.entry.js +0 -1
  495. package/www/build/p-7c3b7388.entry.js +0 -1
  496. package/www/build/p-85006f41.entry.js +0 -1
  497. package/www/build/p-8a3dd76d.entry.js +0 -1
  498. package/www/build/p-99e58be7.entry.js +0 -1
  499. package/www/build/p-9e2c131a.js +0 -125
  500. package/www/build/p-a2b450b6.entry.js +0 -1
  501. package/www/build/p-bcc1ccf0.js +0 -1
  502. package/www/build/p-e0153ae2.css +0 -6
  503. package/www/build/p-e6fee8d2.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Host, h, Element, State, Prop } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  import { chunksOf } from "fp-ts/lib/Array";
3
3
  import { ChevronIcon } from "../vviinn-icons";
4
4
  const COLUMNS_NUMBER_CSS_VAR = "--vviinn-carousel-columns-internal";
@@ -10,6 +10,12 @@ const CONTENT_GROUP_CSS_CLASS = "items-group";
10
10
  **/
11
11
  export class VviinnCarousel {
12
12
  constructor() {
13
+ this.columns = 0;
14
+ this.resizeObserver = new ResizeObserver(() => this.handleResize());
15
+ this.mutationObserver = new MutationObserver(() => this.cloneSlottedContent());
16
+ this.isLastGroup = () => this.activeContentGroup === this.getContentGroups().length - 1 &&
17
+ this.mode === "grid";
18
+ this.isFirstGroup = () => this.activeContentGroup === 0 && this.mode === "grid";
13
19
  this.moveDirection = "right";
14
20
  this.contentGroups = [];
15
21
  this.activeContentGroup = 0;
@@ -17,13 +23,10 @@ export class VviinnCarousel {
17
23
  this.mode = "continuity";
18
24
  this.imageWidth = 140;
19
25
  this.showScroll = true;
26
+ this.campaignTypeId = undefined;
27
+ this.widgetElementId = undefined;
28
+ this.gridArrowsDynamic = undefined;
20
29
  this.recommendations = [];
21
- this.columns = 0;
22
- this.resizeObserver = new ResizeObserver(() => this.handleResize());
23
- this.mutationObserver = new MutationObserver(() => this.cloneSlottedContent());
24
- this.isLastGroup = () => this.activeContentGroup === this.getContentGroups().length - 1 &&
25
- this.mode === "grid";
26
- this.isFirstGroup = () => this.activeContentGroup === 0 && this.mode === "grid";
27
30
  }
28
31
  componentWillLoad() {
29
32
  this.isRTL = document.dir === "rtl";
@@ -186,7 +189,7 @@ export class VviinnCarousel {
186
189
  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.mode === "continuity", campaignTypeId: this.campaignTypeId, index: rank, widgetElementId: this.widgetElementId }));
187
190
  }
188
191
  renderRecommendationGroup(elements) {
189
- return (h("div", { class: CONTENT_GROUP_CSS_CLASS, part: "items-group" }, elements));
192
+ return (h("div", { class: CONTENT_GROUP_CSS_CLASS, part: "items-group" }, ...elements));
190
193
  }
191
194
  renderRecommendationGroups(elements) {
192
195
  return elements.map((el) => this.renderRecommendationGroup(el));
@@ -213,164 +216,167 @@ export class VviinnCarousel {
213
216
  }, onClick: () => this.scroll(index) })));
214
217
  }
215
218
  render() {
216
- return (h(Host, { class: this.getClassMap() },
217
- h("div", { class: Object.assign({ body: true }, this.getClassMap()) },
218
- h("button", { class: "prev", onClick: () => this.showPrev(), part: "carousel-button", disabled: this.gridArrowsDynamic && this.isFirstGroup() },
219
- h(ChevronIcon, null)),
220
- h("div", { class: this.getContentClassMap(), onScroll: () => this.processScrollbarWidth() }, this.renderRecommendations()),
221
- h("button", { class: "next", onClick: () => this.showNext(), part: "carousel-button", disabled: this.gridArrowsDynamic && this.isLastGroup() },
222
- h(ChevronIcon, null))),
223
- this.showBullets() && (h("div", { class: "bullets" }, this.renderBullets()))));
219
+ return (h(Host, { class: this.getClassMap() }, h("div", { class: Object.assign({ body: true }, this.getClassMap()) }, h("button", { class: "prev", onClick: () => this.showPrev(), part: "carousel-button", disabled: this.gridArrowsDynamic && this.isFirstGroup() }, h(ChevronIcon, null)), h("div", { class: this.getContentClassMap(), onScroll: () => this.processScrollbarWidth() }, this.renderRecommendations()), h("button", { class: "next", onClick: () => this.showNext(), part: "carousel-button", disabled: this.gridArrowsDynamic && this.isLastGroup() }, h(ChevronIcon, null))), this.showBullets() && (h("div", { class: "bullets" }, this.renderBullets()))));
224
220
  }
225
221
  static get is() { return "vviinn-carousel"; }
226
- static get originalStyleUrls() { return {
227
- "$": ["vviinn-carousel.css"]
228
- }; }
229
- static get styleUrls() { return {
230
- "$": ["vviinn-carousel.css"]
231
- }; }
232
- static get properties() { return {
233
- "mode": {
234
- "type": "string",
235
- "mutable": false,
236
- "complexType": {
237
- "original": "CarouselMode",
238
- "resolved": "\"continuity\" | \"grid\"",
239
- "references": {
240
- "CarouselMode": {
241
- "location": "local"
222
+ static get originalStyleUrls() {
223
+ return {
224
+ "$": ["vviinn-carousel.css"]
225
+ };
226
+ }
227
+ static get styleUrls() {
228
+ return {
229
+ "$": ["vviinn-carousel.css"]
230
+ };
231
+ }
232
+ static get properties() {
233
+ return {
234
+ "mode": {
235
+ "type": "string",
236
+ "mutable": false,
237
+ "complexType": {
238
+ "original": "CarouselMode",
239
+ "resolved": "\"continuity\" | \"grid\"",
240
+ "references": {
241
+ "CarouselMode": {
242
+ "location": "local",
243
+ "path": "/Users/egor/mediaopt/vpr_webcomponent/src/components/vviinn-carousel/vviinn-carousel.tsx"
244
+ }
242
245
  }
243
- }
244
- },
245
- "required": false,
246
- "optional": false,
247
- "docs": {
248
- "tags": [],
249
- "text": ""
250
- },
251
- "attribute": "mode",
252
- "reflect": false,
253
- "defaultValue": "\"continuity\""
254
- },
255
- "imageWidth": {
256
- "type": "number",
257
- "mutable": false,
258
- "complexType": {
259
- "original": "number",
260
- "resolved": "number",
261
- "references": {}
246
+ },
247
+ "required": false,
248
+ "optional": false,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": ""
252
+ },
253
+ "attribute": "mode",
254
+ "reflect": false,
255
+ "defaultValue": "\"continuity\""
262
256
  },
263
- "required": false,
264
- "optional": false,
265
- "docs": {
266
- "tags": [],
267
- "text": ""
257
+ "imageWidth": {
258
+ "type": "number",
259
+ "mutable": false,
260
+ "complexType": {
261
+ "original": "number",
262
+ "resolved": "number",
263
+ "references": {}
264
+ },
265
+ "required": false,
266
+ "optional": false,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": ""
270
+ },
271
+ "attribute": "image-width",
272
+ "reflect": false,
273
+ "defaultValue": "140"
268
274
  },
269
- "attribute": "image-width",
270
- "reflect": false,
271
- "defaultValue": "140"
272
- },
273
- "showScroll": {
274
- "type": "boolean",
275
- "mutable": false,
276
- "complexType": {
277
- "original": "boolean",
278
- "resolved": "boolean",
279
- "references": {}
275
+ "showScroll": {
276
+ "type": "boolean",
277
+ "mutable": false,
278
+ "complexType": {
279
+ "original": "boolean",
280
+ "resolved": "boolean",
281
+ "references": {}
282
+ },
283
+ "required": false,
284
+ "optional": false,
285
+ "docs": {
286
+ "tags": [],
287
+ "text": ""
288
+ },
289
+ "attribute": "show-scroll",
290
+ "reflect": false,
291
+ "defaultValue": "true"
280
292
  },
281
- "required": false,
282
- "optional": false,
283
- "docs": {
284
- "tags": [],
285
- "text": ""
286
- },
287
- "attribute": "show-scroll",
288
- "reflect": false,
289
- "defaultValue": "true"
290
- },
291
- "campaignTypeId": {
292
- "type": "string",
293
- "mutable": false,
294
- "complexType": {
295
- "original": "CampaignTypeId",
296
- "resolved": "\"VCS\" | \"VPR\" | \"VPS\"",
297
- "references": {
298
- "CampaignTypeId": {
299
- "location": "import",
300
- "path": "../../campaign/Campaign"
293
+ "campaignTypeId": {
294
+ "type": "string",
295
+ "mutable": false,
296
+ "complexType": {
297
+ "original": "CampaignTypeId",
298
+ "resolved": "\"VCS\" | \"VPR\" | \"VPS\"",
299
+ "references": {
300
+ "CampaignTypeId": {
301
+ "location": "import",
302
+ "path": "../../campaign/Campaign"
303
+ }
301
304
  }
302
- }
303
- },
304
- "required": false,
305
- "optional": false,
306
- "docs": {
307
- "tags": [],
308
- "text": ""
309
- },
310
- "attribute": "campaign-type-id",
311
- "reflect": false
312
- },
313
- "widgetElementId": {
314
- "type": "string",
315
- "mutable": false,
316
- "complexType": {
317
- "original": "string",
318
- "resolved": "string",
319
- "references": {}
320
- },
321
- "required": false,
322
- "optional": true,
323
- "docs": {
324
- "tags": [],
325
- "text": ""
305
+ },
306
+ "required": false,
307
+ "optional": false,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": ""
311
+ },
312
+ "attribute": "campaign-type-id",
313
+ "reflect": false
326
314
  },
327
- "attribute": "widget-element-id",
328
- "reflect": false
329
- },
330
- "gridArrowsDynamic": {
331
- "type": "boolean",
332
- "mutable": false,
333
- "complexType": {
334
- "original": "boolean",
335
- "resolved": "boolean",
336
- "references": {}
315
+ "widgetElementId": {
316
+ "type": "string",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "string",
320
+ "resolved": "string",
321
+ "references": {}
322
+ },
323
+ "required": false,
324
+ "optional": true,
325
+ "docs": {
326
+ "tags": [],
327
+ "text": ""
328
+ },
329
+ "attribute": "widget-element-id",
330
+ "reflect": false
337
331
  },
338
- "required": false,
339
- "optional": false,
340
- "docs": {
341
- "tags": [],
342
- "text": ""
332
+ "gridArrowsDynamic": {
333
+ "type": "boolean",
334
+ "mutable": false,
335
+ "complexType": {
336
+ "original": "boolean",
337
+ "resolved": "boolean",
338
+ "references": {}
339
+ },
340
+ "required": false,
341
+ "optional": false,
342
+ "docs": {
343
+ "tags": [],
344
+ "text": ""
345
+ },
346
+ "attribute": "grid-arrows-dynamic",
347
+ "reflect": false
343
348
  },
344
- "attribute": "grid-arrows-dynamic",
345
- "reflect": false
346
- },
347
- "recommendations": {
348
- "type": "unknown",
349
- "mutable": false,
350
- "complexType": {
351
- "original": "Recommendation[]",
352
- "resolved": "{ groupId?: string; productId?: string; title?: string; deeplink?: string; brand?: string; productType?: string; image?: { original?: string; thumbnail?: string; }; price?: { actual?: number; sale?: number; }; }[]",
353
- "references": {
354
- "Recommendation": {
355
- "location": "import",
356
- "path": "../../recommendation/recommendation"
349
+ "recommendations": {
350
+ "type": "unknown",
351
+ "mutable": false,
352
+ "complexType": {
353
+ "original": "Recommendation[]",
354
+ "resolved": "{ groupId?: string; productId?: string; title?: string; deeplink?: string; brand?: string; productType?: string; image?: { original?: string; thumbnail?: string; }; price?: { actual?: number; sale?: number; }; }[]",
355
+ "references": {
356
+ "Recommendation": {
357
+ "location": "import",
358
+ "path": "../../recommendation/recommendation"
359
+ }
357
360
  }
358
- }
359
- },
360
- "required": false,
361
- "optional": false,
362
- "docs": {
363
- "tags": [],
364
- "text": ""
365
- },
366
- "defaultValue": "[]"
367
- }
368
- }; }
369
- static get states() { return {
370
- "moveDirection": {},
371
- "contentGroups": {},
372
- "activeContentGroup": {},
373
- "isRTL": {}
374
- }; }
361
+ },
362
+ "required": false,
363
+ "optional": false,
364
+ "docs": {
365
+ "tags": [],
366
+ "text": ""
367
+ },
368
+ "defaultValue": "[]"
369
+ }
370
+ };
371
+ }
372
+ static get states() {
373
+ return {
374
+ "moveDirection": {},
375
+ "contentGroups": {},
376
+ "activeContentGroup": {},
377
+ "isRTL": {}
378
+ };
379
+ }
375
380
  static get elementRef() { return "el"; }
376
381
  }
382
+ //# sourceMappingURL=vviinn-carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-carousel.js","sourceRoot":"","sources":["../../../src/components/vviinn-carousel/vviinn-carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,MAAM,sBAAsB,GAAG,oCAAoC,CAAC;AACpE,MAAM,sBAAsB,GAAG,iCAAiC,CAAC;AACjE,MAAM,4BAA4B,GAAG,+BAA+B,CAAC;AACrE,MAAM,uBAAuB,GAAG,aAAa,CAAC;AAK9C;;IAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, State, Prop } from \"@stencil/core\";\nimport { chunksOf } from \"fp-ts/lib/Array\";\nimport { Recommendation } from \"../../recommendation/recommendation\";\nimport { ChevronIcon } from \"../vviinn-icons\";\nimport { CampaignTypeId } from \"../../campaign/Campaign\";\n\nconst COLUMNS_NUMBER_CSS_VAR = \"--vviinn-carousel-columns-internal\";\nconst CAROUSEL_WIDTH_CSS_VAR = \"--vviinn-carousel-content-width\";\nconst CAROUSEL_IMAGE_WIDTH_CSS_VAR = \"--vviinn-carousel-image-width\";\nconst CONTENT_GROUP_CSS_CLASS = \"items-group\";\n\ntype MoveDirection = \"left\" | \"right\";\nexport type CarouselMode = \"grid\" | \"continuity\";\n\n/**\n * @part carousel-button\n **/\n@Component({\n tag: \"vviinn-carousel\",\n styleUrl: \"vviinn-carousel.css\",\n shadow: false,\n})\nexport class VviinnCarousel {\n @Element() el: HTMLElement;\n\n @State() moveDirection: MoveDirection = \"right\";\n @State() contentGroups: HTMLElement[] = [];\n @State() activeContentGroup: number = 0;\n @State() isRTL: boolean = false;\n\n @Prop() mode: CarouselMode = \"continuity\";\n @Prop() imageWidth: number = 140;\n @Prop() showScroll: boolean = true;\n @Prop() campaignTypeId: CampaignTypeId;\n @Prop() widgetElementId?: string;\n @Prop() gridArrowsDynamic: boolean;\n\n @Prop() recommendations: Recommendation[] = [];\n\n private columns: number = 0;\n private resizeObserver: ResizeObserver = new ResizeObserver(() =>\n this.handleResize()\n );\n\n private mutationObserver = new MutationObserver(() =>\n this.cloneSlottedContent()\n );\n\n private isLastGroup = () =>\n this.activeContentGroup === this.getContentGroups().length - 1 &&\n this.mode === \"grid\";\n\n private isFirstGroup = () =>\n this.activeContentGroup === 0 && this.mode === \"grid\";\n\n componentWillLoad() {\n this.isRTL = document.dir === \"rtl\";\n }\n\n connectedCallback() {\n this.setItemWidth();\n }\n\n disconnectedCallback() {\n this.resizeObserver.disconnect();\n }\n\n componentDidLoad() {\n this.setWidth();\n this.processScrollbarWidth();\n this.columns = this.getColumnsNumber();\n const slot = this.el.querySelector(\".content\");\n\n this.mutationObserver.observe(slot, { subtree: true, childList: true });\n this.resizeObserver.observe(this.getHostParent());\n }\n\n private getItemWidthFromDocument(): number {\n return parseInt(\n getComputedStyle(document.body).getPropertyValue(\n CAROUSEL_IMAGE_WIDTH_CSS_VAR\n )\n );\n }\n\n private setItemWidth() {\n const widthInDocument = this.getItemWidthFromDocument();\n const itemWidth = isNaN(widthInDocument)\n ? this.imageWidth\n : widthInDocument;\n\n this.el.style.setProperty(CAROUSEL_IMAGE_WIDTH_CSS_VAR, `${itemWidth}px`);\n }\n\n private getContentClassMap() {\n return {\n content: true,\n [this.moveDirection]: true,\n [this.mode]: true,\n \"show-scrollbar\": this.showScroll,\n };\n }\n\n private handleResize() {\n this.setWidth();\n this.processScrollbarWidth();\n this.setItemWidth();\n\n const newColumns = this.getColumnsNumber();\n\n if (newColumns !== this.columns) {\n this.columns = newColumns;\n }\n }\n\n private calculateMoveStep() {\n const contentWidths = this.getContent().map(\n (el) => el.getBoundingClientRect().width\n );\n const sum = contentWidths.reduce((acc, val) => acc + val, 0);\n\n return sum / contentWidths.length;\n }\n\n private getHostParent(): Element {\n const parent = this.el.parentNode as any;\n return parent.host.parentElement;\n }\n\n private setWidth() {\n const parent = this.getHostParent();\n\n if (!parent) return;\n\n const parentStyles = getComputedStyle(parent);\n const parentWidth = parent.getBoundingClientRect().width;\n const width =\n parentWidth -\n (parseInt(parentStyles[\"padding-right\"]) +\n parseInt(parentStyles[\"padding-left\"]));\n\n this.el.style.setProperty(CAROUSEL_WIDTH_CSS_VAR, `${width}px`);\n }\n\n getParent(): HTMLElement {\n const parentNode: any = this.el.parentNode;\n const host = parentNode.host;\n return host.parentElement as HTMLElement;\n }\n\n private cloneSlottedContent() {\n this.setWidth();\n }\n\n private getActiveGroupIndex(): number {\n const contentNodeLeft =\n this.getContentNode()?.getBoundingClientRect()?.left;\n\n if (!contentNodeLeft) return 0;\n\n const groups = this.getContentGroups();\n const groupsPositions = groups.map((g) => g.getBoundingClientRect().left);\n\n const indexedPositions = groupsPositions\n .map((value: number, index: number) => [value, index])\n .filter((x) => x[0] >= 0);\n\n return indexedPositions.length > 0\n ? this.isRTL\n ? indexedPositions[indexedPositions.length - 1][1]\n : indexedPositions[0][1]\n : 0;\n }\n\n private getContentNode(): HTMLElement {\n return this.el.querySelector(\".content\");\n }\n\n private getContent(): HTMLElement[] {\n const children = this.getContentNode().children;\n return Array.from(children).map((c) => c as HTMLElement);\n }\n\n private getColumnsNumber(): number {\n const styleSheet = getComputedStyle(this.el);\n const columnsInCss = styleSheet.getPropertyValue(COLUMNS_NUMBER_CSS_VAR);\n const columnsNumber = parseInt(columnsInCss);\n return columnsNumber && !isNaN(columnsNumber) ? columnsNumber : 4;\n }\n\n private getContentGroups(): HTMLElement[] {\n return Array.from(this.el.querySelectorAll(`.${CONTENT_GROUP_CSS_CLASS}`));\n }\n\n private showNext() {\n this.moveDirection = \"right\";\n const contentContainer = this.getContentNode();\n\n requestAnimationFrame(() => {\n contentContainer.scrollTo({\n top: 0,\n left: contentContainer.scrollLeft + this.calculateMoveStep(),\n behavior: \"smooth\",\n });\n });\n }\n\n private showPrev() {\n this.moveDirection = \"left\";\n const contentContainer = this.getContentNode();\n\n requestAnimationFrame(() => {\n contentContainer.scrollTo({\n top: 0,\n left: contentContainer.scrollLeft - this.calculateMoveStep(),\n behavior: \"smooth\",\n });\n });\n }\n\n private scroll(index: number) {\n const contentContainer = this.getContentNode();\n\n requestAnimationFrame(() => {\n contentContainer.scrollTo({\n top: 0,\n left: this.calculateMoveStep() * index,\n behavior: \"smooth\",\n });\n });\n }\n\n private processScrollbarWidth() {\n const target = this.getContentNode();\n if (!target) return;\n const scrollRatio =\n (target.scrollLeft + target.clientWidth) / target.scrollWidth;\n const scrolledWidth = target.clientWidth * scrollRatio;\n\n this.el.style.setProperty(\n \"--vviinn-progressbar-width\",\n `${scrolledWidth}px`\n );\n\n this.activeContentGroup = this.getActiveGroupIndex();\n }\n\n private showBullets(): boolean {\n return this.mode === \"grid\" && this.showScroll;\n }\n\n private showScrollbar(): boolean {\n return this.mode === \"continuity\" && this.showScroll;\n }\n\n private getClassMap() {\n return {\n [this.mode]: true,\n \"show-scrollbar\": this.showScrollbar(),\n };\n }\n\n private renderRecommendation(\n recommendation: Recommendation,\n rank: number\n ): HTMLVviinnProductCardElement {\n return (\n <vviinn-product-card\n part=\"product-part\"\n productId={recommendation.productId}\n productTitle={recommendation.title}\n deeplink={recommendation.deeplink}\n image={recommendation.image.thumbnail}\n brand={recommendation.brand}\n imageWidth={this.imageWidth}\n imageRatio={1}\n price={recommendation.price.actual}\n salePrice={recommendation.price.sale}\n responsive={this.mode === \"grid\"}\n dimmedBackground={this.mode === \"continuity\"}\n campaignTypeId={this.campaignTypeId}\n index={rank}\n widgetElementId={this.widgetElementId}\n />\n );\n }\n\n private renderRecommendationGroup(elements: HTMLVviinnProductCardElement[]) {\n return (\n <div class={CONTENT_GROUP_CSS_CLASS} part=\"items-group\">\n {...elements}\n </div>\n );\n }\n\n private renderRecommendationGroups(\n elements: HTMLVviinnProductCardElement[][]\n ) {\n return elements.map((el) => this.renderRecommendationGroup(el));\n }\n\n private renderRecommendations() {\n return this.mode === \"grid\"\n ? this.renderGrid()\n : this.renderRecommendationsElements();\n }\n\n private renderRecommendationsElements(): HTMLVviinnProductCardElement[] {\n return this.recommendations.map((r, i) => this.renderRecommendation(r, i));\n }\n\n private renderGrid() {\n const recommendations = this.renderRecommendationsElements();\n const grouppedContent = chunksOf(this.getColumnsNumber())(recommendations);\n\n return this.renderRecommendationGroups(grouppedContent);\n }\n\n private renderBullets() {\n const numberOfBullets = Math.ceil(\n this.recommendations.length / this.getColumnsNumber()\n );\n\n const bulletsArray = Array.from(Array(numberOfBullets).keys());\n\n return bulletsArray.map((index) => (\n <div\n class={{\n bullet: true,\n active: this.activeContentGroup === index,\n }}\n onClick={() => this.scroll(index)}\n />\n ));\n }\n\n render() {\n return (\n <Host class={this.getClassMap()}>\n <div class={{ body: true, ...this.getClassMap() }}>\n <button\n class=\"prev\"\n onClick={() => this.showPrev()}\n part=\"carousel-button\"\n disabled={this.gridArrowsDynamic && this.isFirstGroup()}\n >\n <ChevronIcon />\n </button>\n\n <div\n class={this.getContentClassMap()}\n onScroll={() => this.processScrollbarWidth()}\n >\n {this.renderRecommendations()}\n </div>\n\n <button\n class=\"next\"\n onClick={() => this.showNext()}\n part=\"carousel-button\"\n disabled={this.gridArrowsDynamic && this.isLastGroup()}\n >\n <ChevronIcon />\n </button>\n </div>\n {this.showBullets() && (\n <div class=\"bullets\">{this.renderBullets()}</div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -1,20 +1,19 @@
1
- import { Component, Host, h } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  export class VviinnEmptyResults {
3
3
  render() {
4
- return (h(Host, null,
5
- h("vviinn-error", null,
6
- h("svg", { slot: "icon", class: "icon", width: "32", height: "32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
7
- h("path", { d: "M16 2a14 14 0 1 0 0 28 14 14 0 0 0 0-28Zm0 26a12 12 0 1 1 0-24 12 12 0 0 1 0 24Z", fill: "#525252" }),
8
- h("path", { d: "M17 8h-2v11h2V8Zm-1 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z", fill: "#525252" })),
9
- h("h4", { slot: "title" }, "Leider nichts gefunden"),
10
- h("span", { slot: "text" }, "Leider konnten wir keine passenden Produkte finden. Bitte versuche es mit einem anderen Bildausschnitt noch einmal."))));
4
+ return (h(Host, null, h("vviinn-error", null, h("svg", { slot: "icon", class: "icon", width: "32", height: "32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M16 2a14 14 0 1 0 0 28 14 14 0 0 0 0-28Zm0 26a12 12 0 1 1 0-24 12 12 0 0 1 0 24Z", fill: "#525252" }), h("path", { d: "M17 8h-2v11h2V8Zm-1 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z", fill: "#525252" })), h("h4", { slot: "title" }, "Leider nichts gefunden"), h("span", { slot: "text" }, "Leider konnten wir keine passenden Produkte finden. Bitte versuche es mit einem anderen Bildausschnitt noch einmal."))));
11
5
  }
12
6
  static get is() { return "vviinn-empty-results"; }
13
7
  static get encapsulation() { return "shadow"; }
14
- static get originalStyleUrls() { return {
15
- "$": ["vviinn-empty-results.css"]
16
- }; }
17
- static get styleUrls() { return {
18
- "$": ["vviinn-empty-results.css"]
19
- }; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["vviinn-empty-results.css"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["vviinn-empty-results.css"]
16
+ };
17
+ }
20
18
  }
19
+ //# sourceMappingURL=vviinn-empty-results.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-empty-results.js","sourceRoot":"","sources":["../../../../src/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,kBAAkB;EAC7B,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH;QACE,WACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,MAAM,EACZ,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;UAElC,YACE,CAAC,EAAC,kFAAkF,EACpF,IAAI,EAAC,SAAS,GACd;UACF,YACE,CAAC,EAAC,6DAA6D,EAC/D,IAAI,EAAC,SAAS,GACd,CACE;QACN,UAAI,IAAI,EAAC,OAAO,6BAA4B;QAC5C,YAAM,IAAI,EAAC,MAAM,0HAGV,CACM,CACV,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from \"@stencil/core\";\n\n@Component({\n tag: \"vviinn-empty-results\",\n styleUrl: \"vviinn-empty-results.css\",\n shadow: true,\n})\nexport class VviinnEmptyResults {\n render() {\n return (\n <Host>\n <vviinn-error>\n <svg\n slot=\"icon\"\n class=\"icon\"\n width=\"32\"\n height=\"32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16 2a14 14 0 1 0 0 28 14 14 0 0 0 0-28Zm0 26a12 12 0 1 1 0-24 12 12 0 0 1 0 24Z\"\n fill=\"#525252\"\n />\n <path\n d=\"M17 8h-2v11h2V8Zm-1 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z\"\n fill=\"#525252\"\n />\n </svg>\n <h4 slot=\"title\">Leider nichts gefunden</h4>\n <span slot=\"text\">\n Leider konnten wir keine passenden Produkte finden. Bitte versuche\n es mit einem anderen Bildausschnitt noch einmal.\n </span>\n </vviinn-error>\n </Host>\n );\n }\n}\n"]}
@@ -1,18 +1,19 @@
1
- import { Component, Host, h } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  export class VviinnError {
3
3
  render() {
4
- return (h(Host, null,
5
- h("slot", { name: "icon" }),
6
- h("slot", { name: "title" }),
7
- h("slot", { name: "text" }),
8
- h("slot", { name: "action" })));
4
+ return (h(Host, null, h("slot", { name: "icon" }), h("slot", { name: "title" }), h("slot", { name: "text" }), h("slot", { name: "action" })));
9
5
  }
10
6
  static get is() { return "vviinn-error"; }
11
7
  static get encapsulation() { return "shadow"; }
12
- static get originalStyleUrls() { return {
13
- "$": ["vviinn-error.css"]
14
- }; }
15
- static get styleUrls() { return {
16
- "$": ["vviinn-error.css"]
17
- }; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["vviinn-error.css"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["vviinn-error.css"]
16
+ };
17
+ }
18
18
  }
19
+ //# sourceMappingURL=vviinn-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-error.js","sourceRoot":"","sources":["../../../src/components/vviinn-error/vviinn-error.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,WAAW;EACtB,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,YAAM,IAAI,EAAC,MAAM,GAAQ;MACzB,YAAM,IAAI,EAAC,OAAO,GAAQ;MAC1B,YAAM,IAAI,EAAC,MAAM,GAAQ;MACzB,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACtB,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from \"@stencil/core\";\n\n@Component({\n tag: \"vviinn-error\",\n styleUrl: \"vviinn-error.css\",\n shadow: true,\n})\nexport class VviinnError {\n render() {\n return (\n <Host>\n <slot name=\"icon\"></slot>\n <slot name=\"title\"></slot>\n <slot name=\"text\"></slot>\n <slot name=\"action\"></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1,39 +1,45 @@
1
- import { Component, Host, h, Prop } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  export class VviinnServerError {
3
+ constructor() {
4
+ this.handler = undefined;
5
+ }
3
6
  render() {
4
- return (h(Host, null,
5
- h("vviinn-error", null,
6
- h("h4", { slot: "title" }, "Keine Verbindung"),
7
- h("span", { slot: "text" }, "Etwas hat leider nicht funktioniert. Bitte pr\u00FCfen Sie Ihre Internetverbindung und laden Sie das Bild noch einmal hoch."),
8
- h("button", { slot: "action", onClick: this.handler }, "Erneut versuchen"))));
7
+ return (h(Host, null, h("vviinn-error", null, h("h4", { slot: "title" }, "Keine Verbindung"), h("span", { slot: "text" }, "Etwas hat leider nicht funktioniert. Bitte pr\u00FCfen Sie Ihre Internetverbindung und laden Sie das Bild noch einmal hoch."), h("button", { slot: "action", onClick: this.handler }, "Erneut versuchen"))));
9
8
  }
10
9
  static get is() { return "vviinn-server-error"; }
11
10
  static get encapsulation() { return "shadow"; }
12
- static get originalStyleUrls() { return {
13
- "$": ["vviinn-server-error.css"]
14
- }; }
15
- static get styleUrls() { return {
16
- "$": ["vviinn-server-error.css"]
17
- }; }
18
- static get properties() { return {
19
- "handler": {
20
- "type": "unknown",
21
- "mutable": false,
22
- "complexType": {
23
- "original": "VoidFunction",
24
- "resolved": "VoidFunction",
25
- "references": {
26
- "VoidFunction": {
27
- "location": "global"
11
+ static get originalStyleUrls() {
12
+ return {
13
+ "$": ["vviinn-server-error.css"]
14
+ };
15
+ }
16
+ static get styleUrls() {
17
+ return {
18
+ "$": ["vviinn-server-error.css"]
19
+ };
20
+ }
21
+ static get properties() {
22
+ return {
23
+ "handler": {
24
+ "type": "unknown",
25
+ "mutable": false,
26
+ "complexType": {
27
+ "original": "VoidFunction",
28
+ "resolved": "VoidFunction",
29
+ "references": {
30
+ "VoidFunction": {
31
+ "location": "global"
32
+ }
28
33
  }
34
+ },
35
+ "required": false,
36
+ "optional": false,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": ""
29
40
  }
30
- },
31
- "required": false,
32
- "optional": false,
33
- "docs": {
34
- "tags": [],
35
- "text": ""
36
41
  }
37
- }
38
- }; }
42
+ };
43
+ }
39
44
  }
45
+ //# sourceMappingURL=vviinn-server-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-server-error.js","sourceRoot":"","sources":["../../../../src/components/vviinn-error/vviinn-server-error/vviinn-server-error.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,iBAAiB;;;;EAG5B,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH;QACE,UAAI,IAAI,EAAC,OAAO,uBAAsB;QACtC,YAAM,IAAI,EAAC,MAAM,kIAGV;QACP,cAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,IAAI,CAAC,OAAO,uBAElC,CACI,CACV,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from \"@stencil/core\";\n\n@Component({\n tag: \"vviinn-server-error\",\n styleUrl: \"vviinn-server-error.css\",\n shadow: true,\n})\nexport class VviinnServerError {\n @Prop() handler: VoidFunction;\n\n render() {\n return (\n <Host>\n <vviinn-error>\n <h4 slot=\"title\">Keine Verbindung</h4>\n <span slot=\"text\">\n Etwas hat leider nicht funktioniert. Bitte prüfen Sie Ihre\n Internetverbindung und laden Sie das Bild noch einmal hoch.\n </span>\n <button slot=\"action\" onClick={this.handler}>\n Erneut versuchen\n </button>\n </vviinn-error>\n </Host>\n );\n }\n}\n"]}