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,91 +1,121 @@
1
- import { Component, Host, h, Prop, Event } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  export class VviinnOverlayedModal {
3
3
  constructor() {
4
4
  this.active = false;
5
+ this.resetState = undefined;
6
+ this.buttonElementId = undefined;
7
+ this.hideBackButton = false;
5
8
  }
6
9
  render() {
7
- return (h(Host, { class: { active: this.active } },
8
- h("vviinn-overlay", null,
9
- h("vviinn-modal", { resetState: this.resetState, active: this.active, buttonElementId: this.buttonElementId },
10
- h("slot", null, "CONTENT")))));
10
+ return (h(Host, { class: { active: this.active } }, h("vviinn-overlay", null, h("vviinn-modal", { resetState: this.resetState, active: this.active, buttonElementId: this.buttonElementId, hideBackButton: this.hideBackButton }, h("slot", null, "CONTENT")))));
11
11
  }
12
12
  static get is() { return "vviinn-overlayed-modal"; }
13
13
  static get encapsulation() { return "shadow"; }
14
- static get originalStyleUrls() { return {
15
- "$": ["vviinn-overlayed-modal.css"]
16
- }; }
17
- static get styleUrls() { return {
18
- "$": ["vviinn-overlayed-modal.css"]
19
- }; }
20
- static get properties() { return {
21
- "active": {
22
- "type": "boolean",
23
- "mutable": false,
24
- "complexType": {
25
- "original": "boolean",
26
- "resolved": "boolean",
27
- "references": {}
28
- },
29
- "required": false,
30
- "optional": false,
31
- "docs": {
32
- "tags": [],
33
- "text": ""
34
- },
35
- "attribute": "active",
36
- "reflect": false,
37
- "defaultValue": "false"
38
- },
39
- "resetState": {
40
- "type": "unknown",
41
- "mutable": false,
42
- "complexType": {
43
- "original": "() => void",
44
- "resolved": "() => void",
45
- "references": {}
46
- },
47
- "required": false,
48
- "optional": false,
49
- "docs": {
50
- "tags": [],
51
- "text": ""
52
- }
53
- },
54
- "buttonElementId": {
55
- "type": "string",
56
- "mutable": false,
57
- "complexType": {
58
- "original": "string",
59
- "resolved": "string",
60
- "references": {}
14
+ static get originalStyleUrls() {
15
+ return {
16
+ "$": ["vviinn-overlayed-modal.css"]
17
+ };
18
+ }
19
+ static get styleUrls() {
20
+ return {
21
+ "$": ["vviinn-overlayed-modal.css"]
22
+ };
23
+ }
24
+ static get properties() {
25
+ return {
26
+ "active": {
27
+ "type": "boolean",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "boolean",
31
+ "resolved": "boolean",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": false,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": ""
39
+ },
40
+ "attribute": "active",
41
+ "reflect": false,
42
+ "defaultValue": "false"
61
43
  },
62
- "required": false,
63
- "optional": true,
64
- "docs": {
65
- "tags": [{
66
- "text": undefined,
67
- "name": "internal"
68
- }],
69
- "text": ""
44
+ "resetState": {
45
+ "type": "unknown",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "() => void",
49
+ "resolved": "() => void",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": ""
57
+ }
70
58
  },
71
- "attribute": "button-element-id",
72
- "reflect": false
73
- }
74
- }; }
75
- static get events() { return [{
76
- "method": "vviinnWidgetClose",
77
- "name": "vviinnWidgetClose",
78
- "bubbles": true,
79
- "cancelable": true,
80
- "composed": true,
81
- "docs": {
82
- "tags": [],
83
- "text": ""
59
+ "buttonElementId": {
60
+ "type": "string",
61
+ "mutable": false,
62
+ "complexType": {
63
+ "original": "string",
64
+ "resolved": "string",
65
+ "references": {}
66
+ },
67
+ "required": false,
68
+ "optional": true,
69
+ "docs": {
70
+ "tags": [{
71
+ "name": "internal",
72
+ "text": undefined
73
+ }],
74
+ "text": ""
75
+ },
76
+ "attribute": "button-element-id",
77
+ "reflect": false
84
78
  },
85
- "complexType": {
86
- "original": "void",
87
- "resolved": "void",
88
- "references": {}
79
+ "hideBackButton": {
80
+ "type": "boolean",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "boolean",
84
+ "resolved": "boolean",
85
+ "references": {}
86
+ },
87
+ "required": false,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [{
91
+ "name": "internal",
92
+ "text": undefined
93
+ }],
94
+ "text": ""
95
+ },
96
+ "attribute": "hide-back-button",
97
+ "reflect": false,
98
+ "defaultValue": "false"
89
99
  }
90
- }]; }
100
+ };
101
+ }
102
+ static get events() {
103
+ return [{
104
+ "method": "vviinnWidgetClose",
105
+ "name": "vviinnWidgetClose",
106
+ "bubbles": true,
107
+ "cancelable": true,
108
+ "composed": true,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": ""
112
+ },
113
+ "complexType": {
114
+ "original": "void",
115
+ "resolved": "void",
116
+ "references": {}
117
+ }
118
+ }];
119
+ }
91
120
  }
121
+ //# sourceMappingURL=vviinn-overlayed-modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-overlayed-modal.js","sourceRoot":"","sources":["../../../src/components/vviinn-overlayed-modal/vviinn-overlayed-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAO9E,MAAM,OAAO,oBAAoB;;kBACL,KAAK;;;0BAKG,KAAK;;EAIvC,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;MAClC;QACE,oBACE,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,cAAc,EAAE,IAAI,CAAC,cAAc;UAEnC,0BAAoB,CACP,CACA,CACZ,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from \"@stencil/core\";\n\n@Component({\n tag: \"vviinn-overlayed-modal\",\n styleUrl: \"vviinn-overlayed-modal.css\",\n shadow: true,\n})\nexport class VviinnOverlayedModal {\n @Prop() active: boolean = false;\n @Prop() resetState: () => void;\n /** @internal */\n @Prop() buttonElementId?: string;\n /** @internal */\n @Prop() hideBackButton: boolean = false;\n\n @Event() vviinnWidgetClose: EventEmitter<void>;\n\n render() {\n return (\n <Host class={{ active: this.active }}>\n <vviinn-overlay>\n <vviinn-modal\n resetState={this.resetState}\n active={this.active}\n buttonElementId={this.buttonElementId}\n hideBackButton={this.hideBackButton}\n >\n <slot>CONTENT</slot>\n </vviinn-modal>\n </vviinn-overlay>\n </Host>\n );\n }\n}\n"]}
@@ -2,8 +2,7 @@
2
2
  --preloader-size: 24px;
3
3
  --preloader-width: calc(var(--preloader-size) / 6);
4
4
  transform-origin: center;
5
- -webkit-animation: rotate 3s linear infinite;
6
- animation: rotate 3s linear infinite;
5
+ animation: rotate 3s linear infinite;
7
6
  border: var(--preloader-width) solid white;
8
7
  border-radius: 50%;
9
8
  border-top-color: transparent;
@@ -18,15 +17,6 @@
18
17
  display: flex;
19
18
  }
20
19
 
21
- @-webkit-keyframes rotate {
22
- from {
23
- transform: rotate(-360deg);
24
- }
25
- to {
26
- transform: rotate(360deg);
27
- }
28
- }
29
-
30
20
  @keyframes rotate {
31
21
  from {
32
22
  transform: rotate(-360deg);
@@ -1,4 +1,4 @@
1
- import { Component, Host, h } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  import { imageSearchState } from "../../store/imageSearch.store";
3
3
  export class VviinnPreloader {
4
4
  isActive() {
@@ -11,10 +11,15 @@ export class VviinnPreloader {
11
11
  }
12
12
  static get is() { return "vviinn-preloader"; }
13
13
  static get encapsulation() { return "shadow"; }
14
- static get originalStyleUrls() { return {
15
- "$": ["vviinn-preloader.css"]
16
- }; }
17
- static get styleUrls() { return {
18
- "$": ["vviinn-preloader.css"]
19
- }; }
14
+ static get originalStyleUrls() {
15
+ return {
16
+ "$": ["vviinn-preloader.css"]
17
+ };
18
+ }
19
+ static get styleUrls() {
20
+ return {
21
+ "$": ["vviinn-preloader.css"]
22
+ };
23
+ }
20
24
  }
25
+ //# sourceMappingURL=vviinn-preloader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-preloader.js","sourceRoot":"","sources":["../../../src/components/vviinn-preloader/vviinn-preloader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAOjE,MAAM,OAAO,eAAe;EAClB,QAAQ;IACd,OAAO,CACL,gBAAgB,CAAC,OAAO,IAAI,gBAAgB,CAAC,yBAAyB,CACvE,CAAC;EACJ,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IACH,KAAK,EAAE;QACL,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE;OACxB,GACK,CACT,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from \"@stencil/core\";\nimport { imageSearchState } from \"../../store/imageSearch.store\";\n\n@Component({\n tag: \"vviinn-preloader\",\n styleUrl: \"vviinn-preloader.css\",\n shadow: true,\n})\nexport class VviinnPreloader {\n private isActive(): boolean {\n return (\n imageSearchState.loading || imageSearchState.objectDetectionInProgress\n );\n }\n\n render() {\n return (\n <Host\n class={{\n active: this.isActive(),\n }}\n ></Host>\n );\n }\n}\n"]}
@@ -6,7 +6,6 @@
6
6
 
7
7
  .content {
8
8
  display: grid;
9
- grid-template-columns: -webkit-min-content auto;
10
9
  grid-template-columns: min-content auto;
11
10
  grid-gap: 9px;
12
11
  }
@@ -1,27 +1,24 @@
1
- import { Component, Host, h, Element } from "@stencil/core";
1
+ import { Host, h } from "@stencil/core";
2
2
  import { slotChangeListener } from "../customized-slots";
3
3
  export class VviinnPrivacyBadge {
4
4
  componentWillLoad() {
5
5
  slotChangeListener(this, this.el);
6
6
  }
7
7
  render() {
8
- return (h(Host, null,
9
- h("slot", null,
10
- h("div", { class: "content" },
11
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" },
12
- h("defs", null),
13
- h("path", { fill: "#525252", d: "M8.5 11V7h-2v1h1v3H6v1h4v-1H8.5zM8 4a.75.75 0 100 1.5A.75.75 0 008 4z" }),
14
- h("path", { fill: "#525252", d: "M8 15A7 7 0 118 1a7 7 0 010 14zM8 2a6 6 0 100 12A6 6 0 008 2z" })),
15
- h("slot", { name: "vviinn-privacy-badge-text" },
16
- h("p", null, "Durch das Hochladen eines Bildes willigen Sie in die Verarbeitung durch unseren Partner Vviinn ein. Das Bild wird nach einer Stunde Inaktivit\u00E4t gel\u00F6scht."))))));
8
+ return (h(Host, null, h("slot", null, h("div", { class: "content" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" }, h("defs", null), h("path", { fill: "#525252", d: "M8.5 11V7h-2v1h1v3H6v1h4v-1H8.5zM8 4a.75.75 0 100 1.5A.75.75 0 008 4z" }), h("path", { fill: "#525252", d: "M8 15A7 7 0 118 1a7 7 0 010 14zM8 2a6 6 0 100 12A6 6 0 008 2z" })), h("slot", { name: "vviinn-privacy-badge-text" }, h("p", null, "Durch das Hochladen eines Bildes willigen Sie in die Verarbeitung durch unseren Partner Vviinn ein. Das Bild wird nach einer Stunde Inaktivit\u00E4t gel\u00F6scht."))))));
17
9
  }
18
10
  static get is() { return "vviinn-privacy-badge"; }
19
11
  static get encapsulation() { return "shadow"; }
20
- static get originalStyleUrls() { return {
21
- "$": ["vviinn-privacy-badge.css"]
22
- }; }
23
- static get styleUrls() { return {
24
- "$": ["vviinn-privacy-badge.css"]
25
- }; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["vviinn-privacy-badge.css"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["vviinn-privacy-badge.css"]
20
+ };
21
+ }
26
22
  static get elementRef() { return "el"; }
27
23
  }
24
+ //# sourceMappingURL=vviinn-privacy-badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-privacy-badge.js","sourceRoot":"","sources":["../../../src/components/vviinn-privacy-badge/vviinn-privacy-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAOzD,MAAM,OAAO,kBAAkB;EAG7B,iBAAiB;IACf,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;EACpC,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH;QACE,WAAK,KAAK,EAAC,SAAS;UAClB,WACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;YAEX,eAAQ;YACR,YACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,uEAAuE,GACzE;YACF,YACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,+DAA+D,GACjE,CACE;UACN,YAAM,IAAI,EAAC,2BAA2B;YACpC,mLAII,CACC,CACH,CACD,CACF,CACR,CAAC;EACJ,CAAC;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element } from \"@stencil/core\";\nimport { slotChangeListener } from \"../customized-slots\";\n\n@Component({\n tag: \"vviinn-privacy-badge\",\n styleUrl: \"vviinn-privacy-badge.css\",\n shadow: true,\n})\nexport class VviinnPrivacyBadge {\n @Element() el: HTMLElement;\n\n componentWillLoad() {\n slotChangeListener(this, this.el);\n }\n\n render() {\n return (\n <Host>\n <slot>\n <div class=\"content\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n fill=\"none\"\n >\n <defs />\n <path\n fill=\"#525252\"\n d=\"M8.5 11V7h-2v1h1v3H6v1h4v-1H8.5zM8 4a.75.75 0 100 1.5A.75.75 0 008 4z\"\n />\n <path\n fill=\"#525252\"\n d=\"M8 15A7 7 0 118 1a7 7 0 010 14zM8 2a6 6 0 100 12A6 6 0 008 2z\"\n />\n </svg>\n <slot name=\"vviinn-privacy-badge-text\">\n <p>\n Durch das Hochladen eines Bildes willigen Sie in die\n Verarbeitung durch unseren Partner Vviinn ein. Das Bild wird\n nach einer Stunde Inaktivität gelöscht.\n </p>\n </slot>\n </div>\n </slot>\n </Host>\n );\n }\n}\n"]}
@@ -17,21 +17,14 @@ const FormattedPrice = (props) => {
17
17
  }).format(props.price);
18
18
  const prefixElement = props.prefix ? (h("span", { part: "price-prefix" }, props.prefix + " ")) : null;
19
19
  const currencyElement = props.currency ? (h("span", { part: "currency" }, " " + props.currency)) : null;
20
- return (h("span", { class: "price-amount", part: `price-amount${priceType ? "-" + priceType : ""}` },
21
- prefixElement,
22
- formattedPrice,
23
- currencyElement));
20
+ return (h("span", { class: "price-amount", part: `price-amount${priceType ? "-" + priceType : ""}` }, prefixElement, formattedPrice, currencyElement));
24
21
  };
25
22
  export const Price = (props) => {
26
23
  return (h("span", { class: "price-container", part: "price-container" }, props.salePrice ? ([
27
- h("span", { class: "price-sale", part: "price-sale" },
28
- h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.salePrice, locale: props.locale, priceType: "sale" })),
29
- h("span", { class: "price-outdated", part: "price-outdated" },
30
- h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.price, locale: props.locale, priceType: "outdated" })),
31
- ]) : (h("span", { class: "price-regular", part: "price-regular" },
32
- h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.price, locale: props.locale, priceType: "regular" })))));
24
+ h("span", { class: "price-sale", part: "price-sale" }, h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.salePrice, locale: props.locale, priceType: "sale" })),
25
+ h("span", { class: "price-outdated", part: "price-outdated" }, h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.price, locale: props.locale, priceType: "outdated" })),
26
+ ]) : (h("span", { class: "price-regular", part: "price-regular" }, h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.price, locale: props.locale, priceType: "regular" })))));
33
27
  };
34
- export const Image = (props, onLoadEnd = () => undefined) => (h("picture", null,
35
- h("img", { loading: props.lazy ? "lazy" : "eager", part: "image", class: "image", width: props.width, height: props.height, src: processWidth(props.src, props.width), alt: props.title, onLoad: onLoadEnd })));
36
- export const ResponsiveImage = (props, onLoadEnd = () => undefined) => (h("picture", null,
37
- h("img", { loading: props.lazy ? "lazy" : "eager", part: "image", class: "image responsive", src: processWidth(props.src, props.width), alt: props.title, onLoad: onLoadEnd })));
28
+ export const Image = (props, onLoadEnd = () => undefined) => (h("picture", null, h("img", { loading: props.lazy ? "lazy" : "eager", part: "image", class: "image", width: props.width, height: props.height, src: processWidth(props.src, props.width), alt: props.title, onLoad: onLoadEnd })));
29
+ export const ResponsiveImage = (props, onLoadEnd = () => undefined) => (h("picture", null, h("img", { loading: props.lazy ? "lazy" : "eager", part: "image", class: "image responsive", src: processWidth(props.src, props.width), alt: props.title, onLoad: onLoadEnd })));
30
+ //# sourceMappingURL=render-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-helpers.js","sourceRoot":"","sources":["../../../src/components/vviinn-product-card/render-helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,kBAAkB,CAAC;AACtC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GACjB,CACM,CACX,CAAC","sourcesContent":["import { pipe } from \"fp-ts/lib/function\";\nimport * as E from \"fp-ts/lib/Either\";\nimport { FunctionalComponent, h } from \"@stencil/core\";\n\nconst FIT_EXPR = /fit\\/\\d+\\//;\n\nexport const containsFit = (url: string): E.Either<string, string> => {\n return pipe(\n url.match(FIT_EXPR),\n E.fromNullable(url),\n E.map(() => url)\n );\n};\n\nexport const processWidth = (url: string, size: number): string => {\n return pipe(\n containsFit(url),\n E.map((url) => url.replace(FIT_EXPR, `fit/${size}/`)),\n E.getOrElse(() => url)\n );\n};\n\nexport const Linked = (props, child) =>\n props.deeplink ? (\n <a class={props.part} part={props.part} href={props.deeplink}>\n {child}\n </a>\n ) : (\n child\n );\n\ntype PriceElementProps = {\n readonly locale: string;\n readonly price: number;\n readonly prefix: string;\n readonly currency: string;\n readonly priceType?: \"sale\" | \"outdated\" | \"regular\";\n};\n\nconst FormattedPrice: FunctionalComponent<PriceElementProps> = (props) => {\n const locale = props.locale;\n const priceType = props.priceType;\n\n const formattedPrice = new Intl.NumberFormat(locale, {\n minimumFractionDigits: 2,\n }).format(props.price);\n\n const prefixElement = props.prefix ? (\n <span part=\"price-prefix\">{props.prefix + \" \"}</span>\n ) : null;\n\n const currencyElement = props.currency ? (\n <span part=\"currency\">{\" \" + props.currency}</span>\n ) : null;\n\n return (\n <span\n class=\"price-amount\"\n part={`price-amount${priceType ? \"-\" + priceType : \"\"}`}\n >\n {prefixElement}\n {formattedPrice}\n {currencyElement}\n </span>\n );\n};\n\ntype PriceProps = PriceElementProps & {\n salePrice: number;\n};\n\nexport const Price: FunctionalComponent<PriceProps> = (props) => {\n return (\n <span class=\"price-container\" part=\"price-container\">\n {props.salePrice ? (\n [\n <span class=\"price-sale\" part=\"price-sale\">\n <FormattedPrice\n prefix={props.prefix}\n currency={props.currency}\n price={props.salePrice}\n locale={props.locale}\n priceType=\"sale\"\n />\n </span>,\n <span class=\"price-outdated\" part=\"price-outdated\">\n <FormattedPrice\n prefix={props.prefix}\n currency={props.currency}\n price={props.price}\n locale={props.locale}\n priceType=\"outdated\"\n />\n </span>,\n ]\n ) : (\n <span class=\"price-regular\" part=\"price-regular\">\n <FormattedPrice\n prefix={props.prefix}\n currency={props.currency}\n price={props.price}\n locale={props.locale}\n priceType=\"regular\"\n />\n </span>\n )}\n </span>\n );\n};\n\nexport type ImageProps = {\n width: number;\n height: number;\n title: string;\n src: string;\n lazy: boolean;\n};\n\nexport const Image = (props: ImageProps, onLoadEnd = () => undefined) => (\n <picture>\n <img\n loading={props.lazy ? \"lazy\" : \"eager\"}\n part=\"image\"\n class=\"image\"\n width={props.width}\n height={props.height}\n src={processWidth(props.src, props.width)}\n alt={props.title}\n onLoad={onLoadEnd}\n />\n </picture>\n);\n\nexport const ResponsiveImage = (\n props: ImageProps,\n onLoadEnd = () => undefined\n) => (\n <picture>\n <img\n loading={props.lazy ? \"lazy\" : \"eager\"}\n part=\"image\"\n class=\"image responsive\"\n src={processWidth(props.src, props.width)}\n alt={props.title}\n onLoad={onLoadEnd}\n />\n </picture>\n);\n"]}
@@ -62,3 +62,4 @@ export const argTypes = {
62
62
  },
63
63
  },
64
64
  };
65
+ //# sourceMappingURL=args.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"args.js","sourceRoot":"","sources":["../../../../src/components/vviinn-product-card/stories/args.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;EACtB,gBAAgB,EAAE;IAChB,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE;MACP,IAAI,EAAE,OAAO;KACd;GACF;EACD,gBAAgB,EAAE;IAChB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,6GAA6G;GAChH;EACD,KAAK,EAAE;IACL,WAAW,EAAE,gDAAgD;GAC9D;EACD,cAAc,EAAE;IACd,IAAI,EAAE,wCAAwC;IAC9C,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAClB,OAAO,EAAE;MACP,IAAI,EAAE,QAAQ;MACd,OAAO,EAAE,CAAC;KACX;GACF;EACD,MAAM,EAAE;IACN,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE;MACP,IAAI,EAAE,QAAQ;MACd,OAAO,EAAE,CAAC;KACX;GACF;EACD,QAAQ,EAAE;IACR,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAClC,OAAO,EAAE;MACP,IAAI,EAAE,QAAQ;MACd,OAAO,EAAE,CAAC;KACX;GACF;EACD,gBAAgB,EAAE;IAChB,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC;IACtC,OAAO,EAAE;MACP,IAAI,EAAE,CAAC;MACP,QAAQ,EAAE,CAAC;MACX,KAAK,EAAE,CAAC;KACT;IACD,OAAO,EAAE;MACP,IAAI,EAAE,QAAQ;MACd,OAAO,EAAE,CAAC;KACX;GACF;EACD,gBAAgB,EAAE;IAChB,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE;MACP,IAAI,EAAE,OAAO;KACd;IACD,WAAW,EACT,wFAAwF;GAC3F;EACD,kBAAkB,EAAE;IAClB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,mBAAmB;IAChC,OAAO,EAAE;MACP,IAAI,EAAE,OAAO;KACd;GACF;CACF,CAAC","sourcesContent":["export const argTypes = {\n imageBorderColor: {\n name: \"Image border color\",\n control: {\n type: \"color\",\n },\n },\n dimmedBackground: {\n name: \"dimmed-background\",\n description:\n \"Adding a light-gray filter on top of the image to distinguish it from the rest of the product card content.\",\n },\n brand: {\n description: \"Using the [title] attribute from product feed.\",\n },\n titleLineCount: {\n name: \"Number of text lines for Product title\",\n options: [1, 2, 3],\n control: {\n type: \"select\",\n default: 0,\n },\n },\n locale: {\n options: [\"de-DE\", \"en-US\"],\n control: {\n type: \"select\",\n default: 0,\n },\n },\n currency: {\n options: [\"$\", \"€\", \"£\", \"¥\", \"₽\"],\n control: {\n type: \"select\",\n default: 0,\n },\n },\n contentAlignment: {\n name: \"Content alignment\",\n options: [\"Left\", \"Centered\", \"Right\"],\n mapping: {\n Left: 0,\n Centered: 1,\n Right: 2,\n },\n control: {\n type: \"select\",\n default: 0,\n },\n },\n primaryTextColor: {\n name: \"Primary text color\",\n control: {\n type: \"color\",\n },\n description:\n \"Used where the most user attention is needed: product brand, product title, and price.\",\n },\n secondaryTextColor: {\n name: \"Secondary text color\",\n description: \"Used in Old Price\",\n control: {\n type: \"color\",\n },\n },\n};\n"]}
@@ -49,3 +49,4 @@ vviinn-product-card::part(price-container) {
49
49
  ${story()}
50
50
  </div>
51
51
  `;
52
+ //# sourceMappingURL=decorators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/components/vviinn-product-card/stories/decorators.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgDvC,KAAK,EAAE;;CAEV,CAAC","sourcesContent":["export const productDecorator = (story) => `\n<style>\nhtml, body, #root, #root-inner {\n width: 100%;\n height: 100%;\n}\n\n#root-inner {\n display: grid;\n align-items: center;\n justify-items: center;\n}\n\n.product-wrapper {\n width: 240px;\n}\n\nvviinn-product-card {\n align-items: start;\n}\n\nvviinn-product-card::part(image) {\n border: 1px solid #DDDDDD;\n}\n\nvviinn-product-card::part(brand) {\n display: flex;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n}\n\nvviinn-product-card::part(brand),\nvviinn-product-card::part(title) {\n text-align: left;\n}\n\nvviinn-product-card::part(title) {\n order: 2;\n max-width: unset;\n}\n\nvviinn-product-card::part(price-container) {\n order: 3;\n}\n\n</style>\n<div class=\"product-wrapper\">\n ${story()}\n</div>\n`;\n"]}
@@ -117,3 +117,4 @@ Default.args = {
117
117
  salePrice: 1653,
118
118
  pricePrefix: "",
119
119
  };
120
+ //# sourceMappingURL=vviinn-product-card.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vviinn-product-card.stories.js","sourceRoot":"","sources":["../../../../src/components/vviinn-product-card/stories/vviinn-product-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAe;EACb,KAAK,EAAE,uBAAuB;EAC9B,SAAS,EAAE,qBAAqB;EAChC,UAAU,EAAE,CAAC,gBAAgB,CAAC;EAC9B,QAAQ;CACT,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;EACpC,MAAM,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;EAErD,OAAO;;cAEK,UAAU;;CAEvB,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;;eAExB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;;CAEpC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC;;0BAEb,KAAK;;CAE9B,CAAC;AAEF,MAAM,aAAa,GAAG;;;;;;;;IAQlB,CAAC;AAEL,MAAM,eAAe,GAAG;;;;;;;;IAQpB,CAAC;AAEL,MAAM,cAAc,GAAG;;;;;;;;IAQnB,CAAC;AAEL,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;EACxB,CAAC,CAAC,EAAE,aAAa,CAAC;EAClB,CAAC,CAAC,EAAE,eAAe,CAAC;EACpB,CAAC,CAAC,EAAE,cAAc,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,QAAQ,GAA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ACH,yEAAyE;EAC3E,UAAU,EAAE,KAAK;EACjB,UAAU,EAAE,CAAC;EACb,KAAK,EAAE,IAAI;EACX,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,EAAE;CAChB,CAAC","sourcesContent":["import { argTypes } from \"./args\";\nimport { productDecorator } from \"./decorators\";\n\nexport default {\n title: \"Elements/Product Card\",\n component: \"vviinn-product-card\",\n decorators: [productDecorator],\n argTypes,\n};\n\nconst showImageBorders = (x, color) => {\n const borderRule = x ? `1px solid ${color}` : \"none\";\n\n return `\n vviinn-product-card::part(image) {\n border: ${borderRule};\n }\n`;\n};\n\nconst setupBrandVisibility = (show) => `\n vviinn-product-card::part(brand) {\n display: ${show ? \"flex\" : \"none\"};\n }\n`;\n\nconst setupTitleLineCount = (count) => `\n vviinn-product-card::part(title) {\n -webkit-line-clamp: ${count};\n }\n`;\n\nconst alignmentLeft = `\n vviinn-product-card::part(title),\n vviinn-product-card::part(brand),\n vviinn-product-card::part(type),\n vviinn-product-card::part(deeplink),\n vviinn-product-card::part(price-container) {\n align-self: start;\n text-align: left;\n }`;\n\nconst alignmentCenter = `\n vviinn-product-card::part(title),\n vviinn-product-card::part(brand),\n vviinn-product-card::part(type),\n vviinn-product-card::part(deeplink),\n vviinn-product-card::part(price-container) {\n align-self: center;\n text-align: center;\n }`;\n\nconst alignmentRight = `\n vviinn-product-card::part(title),\n vviinn-product-card::part(brand),\n vviinn-product-card::part(type),\n vviinn-product-card::part(deeplink),\n vviinn-product-card::part(price-container) {\n align-self: end;\n text-align: right;\n }`;\n\nconst alignment = new Map([\n [0, alignmentLeft],\n [1, alignmentCenter],\n [2, alignmentRight],\n]);\n\nconst Template = (args) => `\n <style>\n ${alignment.get(args.contentAlignment)}\n ${showImageBorders(args.imageBorder, args.imageBorderColor)}\n ${setupBrandVisibility(args.brand)}\n ${setupTitleLineCount(args.titleLineCount)}\n\n vviinn-product-card::part(title),\n vviinn-product-card::part(brand),\n vviinn-product-card::part(type),\n vviinn-product-card::part(price-sale),\n vviinn-product-card::part(price-regular) {\n color: ${args.primaryTextColor};\n }\n\n vviinn-product-card::part(price-outdated) {\n color: ${args.secondaryTextColor};\n }\n </style>\n <vviinn-product-card\n product-title=\"${args.productTitle}\"\n product-id=\"${args.productId}\"\n brand=\"${args.brand}\"\n product-type=\"${args.productType}\"\n price=\"${args.price}\"\n sale-price=\"${args.salePrice}\"\n price-prefix=\"${args.pricePrefix}\"\n image=\"${args.image}\"\n image-width=\"${args.imageWidth}\"\n responsive=\"${args.responsive}\"\n image-ratio=\"${args.imageRatio}\"\n dimmed-background=\"${args.dimmedBackground}\"\n locale=\"${args.locale}\"\n currency=\"${args.currency}\"\n deeplink=\"${args.deeplink}\"\n imageRatio=\"${args.imageRatio}\"\n ></vviinn-product-card>`;\n\nexport const Default = Template.bind({});\nDefault.args = {\n productTitle: \"Couchtisch Rolf Benz 8770 Ronald Schmitt\",\n productType: \"Couchtische\",\n productId: \"\",\n imageWidth: 240,\n contentAlignment: \"Left\",\n imageBorder: true,\n imageBorderColor: \"#dddddd\",\n dimmedBackground: false,\n primaryTextColor: \"#161616\",\n secondaryTextColor: \"#757575\",\n brand: \"Ronald Schmitt\",\n titleLineCount: 2,\n locale: \"en-US\",\n currency: \"€\",\n deeplink: \"\",\n image:\n \"https://www.moebel-shop.de/media/image/e3/e9/28/0749295-001_600x600.jpg\",\n responsive: false,\n imageRatio: 1,\n price: 3629,\n salePrice: 1653,\n pricePrefix: \"\",\n};\n"]}