vviinn-widgets 2.7.2 → 2.8.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 (357) hide show
  1. package/dist/components/Handler.js +270 -0
  2. package/dist/components/NonEmptyArray.js +5699 -0
  3. package/dist/components/cropper-handler.js +6 -0
  4. package/dist/components/cropper-handler2.js +39 -0
  5. package/dist/{cjs/customized-slots-06ca4007.js → components/customized-slots.js} +3 -6
  6. package/dist/components/highlight-box.js +6 -0
  7. package/dist/components/highlight-box2.js +52 -0
  8. package/dist/components/image-cropper.js +6 -0
  9. package/dist/components/image-cropper2.js +138 -0
  10. package/dist/components/imageSearch.store.js +10686 -0
  11. package/dist/components/index.js +1 -0
  12. package/dist/{esm/index-443468c7.js → components/index2.js} +2 -2
  13. package/dist/components/index3.js +130 -0
  14. package/dist/components/recommendations-sidebar.js +101 -0
  15. package/dist/components/resizer.worker.js +11 -0
  16. package/dist/components/search-filters.js +6 -0
  17. package/dist/components/search-filters2.js +89 -0
  18. package/dist/components/tracking.worker.js +11 -0
  19. package/dist/components/vviinn-carousel.js +6 -0
  20. package/dist/components/vviinn-carousel2.js +235 -0
  21. package/dist/components/vviinn-detected-object.js +6 -0
  22. package/dist/components/vviinn-detected-object2.js +67 -0
  23. package/dist/components/vviinn-empty-results.js +6 -0
  24. package/dist/components/vviinn-empty-results2.js +35 -0
  25. package/dist/components/vviinn-error.js +6 -0
  26. package/dist/components/vviinn-error2.js +28 -0
  27. package/dist/components/vviinn-example-image.js +6 -0
  28. package/dist/components/vviinn-example-image2.js +57 -0
  29. package/dist/components/vviinn-example-images.js +6 -0
  30. package/dist/components/vviinn-example-images2.js +53 -0
  31. package/dist/components/vviinn-image-selector.js +6 -0
  32. package/dist/components/vviinn-image-selector2.js +135 -0
  33. package/dist/components/vviinn-image-view.js +6 -0
  34. package/dist/components/vviinn-image-view2.js +95 -0
  35. package/dist/components/vviinn-modal.js +6 -0
  36. package/dist/components/vviinn-modal2.js +46 -0
  37. package/dist/components/vviinn-onboarding-card-1.js +6 -0
  38. package/dist/components/vviinn-onboarding-card-12.js +34 -0
  39. package/dist/components/vviinn-onboarding-card-2.js +6 -0
  40. package/dist/components/vviinn-onboarding-card-22.js +34 -0
  41. package/dist/components/vviinn-onboarding-card-3.js +6 -0
  42. package/dist/components/vviinn-onboarding-card-32.js +34 -0
  43. package/dist/components/vviinn-onboarding.js +6 -0
  44. package/dist/components/vviinn-onboarding2.js +63 -0
  45. package/dist/components/vviinn-overlay.js +6 -0
  46. package/dist/components/vviinn-overlay2.js +28 -0
  47. package/dist/components/vviinn-overlayed-modal.js +6 -0
  48. package/dist/components/vviinn-overlayed-modal2.js +45 -0
  49. package/dist/components/vviinn-preloader.js +6 -0
  50. package/dist/components/vviinn-preloader2.js +34 -0
  51. package/dist/components/vviinn-privacy-badge.js +6 -0
  52. package/dist/components/vviinn-privacy-badge2.js +33 -0
  53. package/dist/components/vviinn-product-card.js +6 -0
  54. package/dist/components/vviinn-product-card2.js +216 -0
  55. package/dist/components/vviinn-recommendations-sidebar.js +6 -0
  56. package/dist/components/vviinn-server-error.js +6 -0
  57. package/dist/components/vviinn-server-error2.js +35 -0
  58. package/dist/components/vviinn-slide.js +6 -0
  59. package/dist/components/vviinn-slide2.js +28 -0
  60. package/dist/components/vviinn-slider.js +6 -0
  61. package/dist/components/vviinn-slider2.js +159 -0
  62. package/dist/components/vviinn-teaser.js +6 -0
  63. package/dist/components/vviinn-teaser2.js +33 -0
  64. package/dist/components/vviinn-vpr-button.js +93 -0
  65. package/dist/components/vviinn-vpr-vidget.js +3360 -0
  66. package/dist/components/vviinn-vpr-widget.js +6 -0
  67. package/dist/components/vviinn-vps-button.js +224 -0
  68. package/dist/components/vviinn-vps-widget.js +6 -0
  69. package/dist/components/vviinn-vps-widget2.js +350 -0
  70. package/dist/components/vviinn-wrong-format.js +6 -0
  71. package/dist/components/vviinn-wrong-format2.js +35 -0
  72. package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +1 -0
  73. package/dist/types/components/vviinn-vpr-button/stories/lol.d.ts +2 -0
  74. package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +1 -1
  75. package/dist/vviinn-widgets/Array-bdfc75db.js +4870 -0
  76. package/dist/vviinn-widgets/Handler-edcb46f4.js +1422 -0
  77. package/dist/vviinn-widgets/NonEmptyArray-947ab7b3.js +4411 -0
  78. package/dist/{esm/app-globals-865bc7a7.js → vviinn-widgets/app-globals-c0aa8ec3.js} +922 -10
  79. package/dist/vviinn-widgets/cropper-handler.entry.js +23 -0
  80. package/dist/vviinn-widgets/css-shim-f0027935.js +4 -0
  81. package/dist/{esm/customized-slots-96902edf.js → vviinn-widgets/customized-slots-5c1c623a.js} +1 -1
  82. package/dist/vviinn-widgets/dom-db0073f0.js +73 -0
  83. package/dist/vviinn-widgets/highlight-box.entry.js +41 -0
  84. package/dist/{collection/components/image-search/image-view/image-cropper/image-cropper.js → vviinn-widgets/image-cropper.entry.js} +33 -70
  85. package/dist/{cjs/index-df6896e2.js → vviinn-widgets/imageSearch.store-0eed9a5c.js} +11598 -15320
  86. package/dist/{esm/index-2fdd499d.js → vviinn-widgets/imageSearch.store-b28bddb0.js} +11971 -15281
  87. package/dist/{collection/components/vviinn-icons/index.js → vviinn-widgets/index-44058ea2.js} +14 -11
  88. package/dist/vviinn-widgets/index-6c6de682.js +3857 -0
  89. package/dist/vviinn-widgets/index-de3e14da.js +3010 -0
  90. package/dist/vviinn-widgets/index.esm.js +1 -0
  91. package/dist/vviinn-widgets/number-171db649.js +1499 -0
  92. package/dist/vviinn-widgets/search-filters.entry.js +76 -0
  93. package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +389 -0
  94. package/dist/{collection/components/vviinn-carousel/vviinn-carousel.js → vviinn-widgets/vviinn-carousel.entry.js} +18 -113
  95. package/dist/vviinn-widgets/vviinn-detected-object.entry.js +54 -0
  96. package/dist/vviinn-widgets/vviinn-empty-results.entry.js +16 -0
  97. package/dist/vviinn-widgets/vviinn-error.entry.js +15 -0
  98. package/dist/vviinn-widgets/vviinn-example-image.entry.js +38 -0
  99. package/dist/vviinn-widgets/vviinn-example-images.entry.js +28 -0
  100. package/dist/vviinn-widgets/vviinn-image-selector.entry.js +31 -0
  101. package/dist/vviinn-widgets/vviinn-image-view.entry.js +55 -0
  102. package/dist/vviinn-widgets/vviinn-modal.entry.js +30 -0
  103. package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +21 -0
  104. package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +21 -0
  105. package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +21 -0
  106. package/dist/vviinn-widgets/vviinn-onboarding.entry.js +20 -0
  107. package/dist/vviinn-widgets/vviinn-overlay.entry.js +15 -0
  108. package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +18 -0
  109. package/dist/vviinn-widgets/vviinn-preloader.entry.js +25 -0
  110. package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +20 -0
  111. package/dist/vviinn-widgets/vviinn-product-card.entry.js +188 -0
  112. package/dist/{esm → vviinn-widgets}/vviinn-recommendations-sidebar.entry.js +2 -2
  113. package/dist/vviinn-widgets/vviinn-server-error.entry.js +16 -0
  114. package/dist/vviinn-widgets/vviinn-slide.entry.js +15 -0
  115. package/dist/vviinn-widgets/vviinn-slider.entry.js +120 -0
  116. package/dist/vviinn-widgets/vviinn-teaser.entry.js +20 -0
  117. package/dist/{esm → vviinn-widgets}/vviinn-vpr-button.entry.js +2 -2
  118. package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +4588 -0
  119. package/dist/{esm → vviinn-widgets}/vviinn-vps-button.entry.js +3 -3
  120. package/dist/vviinn-widgets/vviinn-vps-widget.entry.js +170 -0
  121. package/dist/vviinn-widgets/vviinn-widgets.css +6 -1
  122. package/dist/vviinn-widgets/vviinn-widgets.esm.js +125 -1
  123. package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +16 -0
  124. package/package.json +8 -2
  125. package/www/build/p-06c76b5e.js +1 -0
  126. package/www/build/p-07e16d04.js +15 -0
  127. package/{dist/vviinn-widgets/p-a6e0710f.entry.js → www/build/p-44bc50de.entry.js} +1 -1
  128. package/www/build/p-510922c6.js +1 -0
  129. package/www/build/p-57ce8de3.css +1 -0
  130. package/www/build/p-591cb193.entry.js +1 -0
  131. package/www/build/p-6b9d242e.js +1 -0
  132. package/www/build/p-880bccf1.js +1 -0
  133. package/www/build/p-b0ada114.entry.js +1 -0
  134. package/www/build/p-b7be7c70.entry.js +1 -0
  135. package/{dist/vviinn-widgets/p-166970f3.js → www/build/p-ea8dea5c.js} +1 -1
  136. package/www/build/vviinn-widgets.css +1 -1
  137. package/www/build/vviinn-widgets.esm.js +1 -1
  138. package/www/index.html +32261 -1
  139. package/www/sw.js +66 -0
  140. package/dist/cjs/app-globals-8db3bcbe.js +0 -6912
  141. package/dist/cjs/cropper-handler_27.cjs.entry.js +0 -1135
  142. package/dist/cjs/index-3c3ab815.js +0 -1354
  143. package/dist/cjs/index-f66cd8d1.js +0 -39
  144. package/dist/cjs/index.cjs.js +0 -2
  145. package/dist/cjs/loader.cjs.js +0 -23
  146. package/dist/cjs/vviinn-carousel_2.cjs.entry.js +0 -1001
  147. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +0 -65
  148. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +0 -49
  149. package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -43
  150. package/dist/cjs/vviinn-widgets.cjs.js +0 -21
  151. package/dist/collection/Image/error.js +0 -14
  152. package/dist/collection/Image/form.js +0 -5
  153. package/dist/collection/Image/fromFile.js +0 -18
  154. package/dist/collection/Image/imageToB64.js +0 -9
  155. package/dist/collection/Image/index.js +0 -0
  156. package/dist/collection/Image/renderPromise.js +0 -6
  157. package/dist/collection/Image/resizeImage.js +0 -28
  158. package/dist/collection/Image/sizing.js +0 -39
  159. package/dist/collection/Image/toFile.js +0 -17
  160. package/dist/collection/analytics/GAnalytics.js +0 -32
  161. package/dist/collection/analytics/GeneralAnalytics.js +0 -9
  162. package/dist/collection/analytics/GtagAnalytics.js +0 -35
  163. package/dist/collection/analytics/ProductAnalytics.js +0 -1
  164. package/dist/collection/campaign/Campaign.js +0 -8
  165. package/dist/collection/campaign/CampaignService.js +0 -5
  166. package/dist/collection/campaign/VCSCampaign.js +0 -1
  167. package/dist/collection/campaign/VCSCampaignResponse.js +0 -1
  168. package/dist/collection/campaign/VCSCampaignService.js +0 -7
  169. package/dist/collection/campaign/VPRCampaignResponse.js +0 -1
  170. package/dist/collection/campaign/VPRCampaignService.js +0 -7
  171. package/dist/collection/collection-manifest.json +0 -43
  172. package/dist/collection/components/customized-slots.js +0 -47
  173. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +0 -71
  174. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +0 -25
  175. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -49
  176. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +0 -64
  177. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +0 -33
  178. package/dist/collection/components/image-search/search-filters/search-filters.css +0 -120
  179. package/dist/collection/components/image-search/search-filters/search-filters.js +0 -125
  180. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +0 -142
  181. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +0 -7
  182. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +0 -36
  183. package/dist/collection/components/vviinn-error/vviinn-error.css +0 -38
  184. package/dist/collection/components/vviinn-error/vviinn-error.js +0 -18
  185. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +0 -3
  186. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +0 -34
  187. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +0 -3
  188. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +0 -34
  189. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +0 -34
  190. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +0 -129
  191. package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +0 -19
  192. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +0 -80
  193. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +0 -25
  194. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +0 -64
  195. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +0 -47
  196. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +0 -100
  197. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -31
  198. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +0 -61
  199. package/dist/collection/components/vviinn-modal/vviinn-modal.css +0 -105
  200. package/dist/collection/components/vviinn-modal/vviinn-modal.js +0 -98
  201. package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +0 -41
  202. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +0 -26
  203. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +0 -26
  204. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +0 -26
  205. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +0 -58
  206. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +0 -28
  207. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +0 -33
  208. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +0 -15
  209. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +0 -29
  210. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +0 -71
  211. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +0 -37
  212. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +0 -20
  213. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -19
  214. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +0 -27
  215. package/dist/collection/components/vviinn-product-card/render-helpers.js +0 -32
  216. package/dist/collection/components/vviinn-product-card/stories/args.js +0 -73
  217. package/dist/collection/components/vviinn-product-card/stories/decorators.js +0 -51
  218. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +0 -105
  219. package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +0 -95
  220. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +0 -462
  221. package/dist/collection/components/vviinn-slider/arrow.js +0 -11
  222. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +0 -4
  223. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +0 -15
  224. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -109
  225. package/dist/collection/components/vviinn-slider/vviinn-slider.js +0 -181
  226. package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +0 -14
  227. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +0 -29
  228. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +0 -238
  229. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +0 -220
  230. package/dist/collection/components/vviinn-vpr-button/stories/args.js +0 -213
  231. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +0 -91
  232. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +0 -35
  233. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +0 -179
  234. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +0 -197
  235. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +0 -29
  236. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +0 -211
  237. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +0 -11
  238. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +0 -510
  239. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +0 -79
  240. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +0 -35
  241. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -3
  242. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +0 -195
  243. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +0 -37
  244. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -350
  245. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +0 -375
  246. package/dist/collection/cropper/Cropper.js +0 -1
  247. package/dist/collection/cropper/Handler.js +0 -61
  248. package/dist/collection/dom/index.js +0 -3
  249. package/dist/collection/error.js +0 -14
  250. package/dist/collection/file/index.js +0 -4
  251. package/dist/collection/geometry/Clip.js +0 -14
  252. package/dist/collection/geometry/Point.js +0 -32
  253. package/dist/collection/geometry/Rectangle.js +0 -95
  254. package/dist/collection/geometry/RectangleAlt.js +0 -1
  255. package/dist/collection/geometry/Sized.js +0 -8
  256. package/dist/collection/global.js +0 -19
  257. package/dist/collection/index.js +0 -1
  258. package/dist/collection/interfaces/generated.js +0 -5
  259. package/dist/collection/interfaces/recommendation.js +0 -1
  260. package/dist/collection/network/apiClient.js +0 -9
  261. package/dist/collection/network/ion/File.js +0 -14
  262. package/dist/collection/network/ion/Form.js +0 -64
  263. package/dist/collection/network/ion/Link.js +0 -8
  264. package/dist/collection/network/ion/ValueObject.js +0 -23
  265. package/dist/collection/network/request.js +0 -19
  266. package/dist/collection/network/utils.js +0 -37
  267. package/dist/collection/openApi/index.js +0 -27
  268. package/dist/collection/recommendation/events.js +0 -1
  269. package/dist/collection/recommendation/recommendation.js +0 -1
  270. package/dist/collection/searchSession/searchSession.js +0 -31
  271. package/dist/collection/sentry.js +0 -14
  272. package/dist/collection/slider/GridMode.js +0 -1
  273. package/dist/collection/store/file-processing.js +0 -13
  274. package/dist/collection/store/imageSearch.store.js +0 -133
  275. package/dist/collection/store/store.js +0 -3
  276. package/dist/collection/store/tracking.store.js +0 -3
  277. package/dist/collection/stories/Button.js +0 -21
  278. package/dist/collection/stories/Button.stories.js +0 -42
  279. package/dist/collection/stories/Header.js +0 -45
  280. package/dist/collection/stories/Header.stories.js +0 -15
  281. package/dist/collection/stories/Page.js +0 -61
  282. package/dist/collection/stories/Page.stories.js +0 -19
  283. package/dist/collection/stories/assets/code-brackets.svg +0 -1
  284. package/dist/collection/stories/assets/colors.svg +0 -1
  285. package/dist/collection/stories/assets/comments.svg +0 -1
  286. package/dist/collection/stories/assets/direction.svg +0 -1
  287. package/dist/collection/stories/assets/flow.svg +0 -1
  288. package/dist/collection/stories/assets/plugin.svg +0 -1
  289. package/dist/collection/stories/assets/repo.svg +0 -1
  290. package/dist/collection/stories/assets/stackalt.svg +0 -1
  291. package/dist/collection/stories/image-selector.stories.js +0 -6
  292. package/dist/collection/stories/image-view.stories.js +0 -6
  293. package/dist/collection/stories/modal.stories.js +0 -12
  294. package/dist/collection/stories/onboarding.stories.js +0 -11
  295. package/dist/collection/stories/overlay.stories.js +0 -5
  296. package/dist/collection/stories/overlayedModal.stories.js +0 -8
  297. package/dist/collection/stories/privacy-badge.stories.js +0 -11
  298. package/dist/collection/stories/slider.stories.js +0 -17
  299. package/dist/collection/stories/teaser.stories.js +0 -5
  300. package/dist/collection/stories/vps-widget.stories.js +0 -47
  301. package/dist/collection/stories/vviinn-product.stories.js +0 -19
  302. package/dist/collection/tracking/event.js +0 -3
  303. package/dist/collection/tracking/filter.js +0 -5
  304. package/dist/collection/tracking/index.js +0 -13
  305. package/dist/collection/tracking/models.js +0 -6
  306. package/dist/collection/tracking/product.js +0 -18
  307. package/dist/collection/tracking/search.js +0 -5
  308. package/dist/collection/tracking/widget.js +0 -10
  309. package/dist/collection/utils/collections/collectionsUtils.js +0 -5
  310. package/dist/collection/utils/either.js +0 -3
  311. package/dist/collection/utils/enum/enumUtils.js +0 -3
  312. package/dist/collection/utils/event/Events.js +0 -1
  313. package/dist/collection/utils/number/index.js +0 -4
  314. package/dist/collection/utils/option/option.js +0 -4
  315. package/dist/collection/utils/semigroup/semigroupDiff.js +0 -6
  316. package/dist/collection/utils/token/tokenUtils.js +0 -9
  317. package/dist/esm/cropper-handler_27.entry.js +0 -1105
  318. package/dist/esm/index-51f71d18.js +0 -1323
  319. package/dist/esm/index.js +0 -1
  320. package/dist/esm/loader.js +0 -19
  321. package/dist/esm/polyfills/core-js.js +0 -11
  322. package/dist/esm/polyfills/css-shim.js +0 -1
  323. package/dist/esm/polyfills/dom.js +0 -79
  324. package/dist/esm/polyfills/es5-html-element.js +0 -1
  325. package/dist/esm/polyfills/index.js +0 -34
  326. package/dist/esm/polyfills/system.js +0 -6
  327. package/dist/esm/vviinn-carousel_2.entry.js +0 -996
  328. package/dist/esm/vviinn-widgets.js +0 -19
  329. package/dist/index.cjs.js +0 -1
  330. package/dist/index.js +0 -1
  331. package/dist/loader/cdn.js +0 -3
  332. package/dist/loader/index.cjs.js +0 -3
  333. package/dist/loader/index.d.ts +0 -12
  334. package/dist/loader/index.es2017.js +0 -3
  335. package/dist/loader/index.js +0 -4
  336. package/dist/loader/package.json +0 -10
  337. package/dist/vviinn-widgets/p-2dd35f19.entry.js +0 -1
  338. package/dist/vviinn-widgets/p-3469b71a.js +0 -1
  339. package/dist/vviinn-widgets/p-40bea5b5.entry.js +0 -1
  340. package/dist/vviinn-widgets/p-465d043d.js +0 -15
  341. package/dist/vviinn-widgets/p-59bd2a99.js +0 -1
  342. package/dist/vviinn-widgets/p-74ed36af.entry.js +0 -1
  343. package/dist/vviinn-widgets/p-9def6b8b.entry.js +0 -1
  344. package/dist/vviinn-widgets/p-cd995515.js +0 -1
  345. package/www/build/p-166970f3.js +0 -1
  346. package/www/build/p-2dd35f19.entry.js +0 -1
  347. package/www/build/p-3469b71a.js +0 -1
  348. package/www/build/p-40bea5b5.entry.js +0 -1
  349. package/www/build/p-465d043d.js +0 -15
  350. package/www/build/p-59bd2a99.js +0 -1
  351. package/www/build/p-61933b75.js +0 -1
  352. package/www/build/p-74ed36af.entry.js +0 -1
  353. package/www/build/p-9def6b8b.entry.js +0 -1
  354. package/www/build/p-a67898be.css +0 -1
  355. package/www/build/p-a6e0710f.entry.js +0 -1
  356. package/www/build/p-cd995515.js +0 -1
  357. package/www/favicon.ico +0 -0
@@ -0,0 +1 @@
1
+ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
@@ -1,4 +1,4 @@
1
- import { h } from './index-51f71d18.js';
1
+ import { h } from '@stencil/core/internal/client';
2
2
 
3
3
  const ArrowIcon = () => (h("svg", { width: "12", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
4
  h("path", { d: "M0 10 10 0l1.4 1.4L2.8 10l8.6 8.6L10 20 0 10Z" })));
@@ -26,4 +26,4 @@ const VisualSearchIcon = () => (h("svg", { width: "20", height: "20", fill: "non
26
26
  const CrossIcon = () => (h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
27
27
  h("path", { d: "M16 1.4L14.6 0L8 6.6L1.4 0L0 1.4L6.6 8L0 14.6L1.4 16L8 9.4L14.6 16L16 14.6L9.4 8L16 1.4Z", fill: "#161616" })));
28
28
 
29
- export { ArrowIcon as A, CheckIcon as C, OnboardingCard1Icon as O, VisualSearchIcon as V, OnboardingCard2Icon as a, OnboardingCard3Icon as b, CameraIcon as c, CrossIcon as d, ChevronIcon as e };
29
+ export { ArrowIcon as A, CheckIcon as C, OnboardingCard1Icon as O, VisualSearchIcon as V, ChevronIcon as a, OnboardingCard2Icon as b, OnboardingCard3Icon as c, CrossIcon as d, CameraIcon as e };
@@ -0,0 +1,130 @@
1
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
2
+ // require the crypto API and do not support built-in fallback to lower quality random number
3
+ // generators (like Math.random()).
4
+ var getRandomValues;
5
+ var rnds8 = new Uint8Array(16);
6
+ function rng() {
7
+ // lazy load so that environments that need to polyfill have a chance to do so
8
+ if (!getRandomValues) {
9
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
10
+ // find the complete implementation of crypto (msCrypto) on IE11.
11
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
12
+
13
+ if (!getRandomValues) {
14
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
15
+ }
16
+ }
17
+
18
+ return getRandomValues(rnds8);
19
+ }
20
+
21
+ const REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
22
+
23
+ function validate(uuid) {
24
+ return typeof uuid === 'string' && REGEX.test(uuid);
25
+ }
26
+
27
+ /**
28
+ * Convert array of 16 byte values to UUID string format of the form:
29
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
30
+ */
31
+
32
+ var byteToHex = [];
33
+
34
+ for (var i = 0; i < 256; ++i) {
35
+ byteToHex.push((i + 0x100).toString(16).substr(1));
36
+ }
37
+
38
+ function stringify(arr) {
39
+ var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
40
+ // Note: Be careful editing this code! It's been tuned for performance
41
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
42
+ var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
43
+ // of the following:
44
+ // - One or more input array values don't map to a hex octet (leading to
45
+ // "undefined" in the uuid)
46
+ // - Invalid input values for the RFC `version` or `variant` fields
47
+
48
+ if (!validate(uuid)) {
49
+ throw TypeError('Stringified UUID is invalid');
50
+ }
51
+
52
+ return uuid;
53
+ }
54
+
55
+ function v4(options, buf, offset) {
56
+ options = options || {};
57
+ var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
58
+
59
+ rnds[6] = rnds[6] & 0x0f | 0x40;
60
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
61
+
62
+ if (buf) {
63
+ offset = offset || 0;
64
+
65
+ for (var i = 0; i < 16; ++i) {
66
+ buf[offset + i] = rnds[i];
67
+ }
68
+
69
+ return buf;
70
+ }
71
+
72
+ return stringify(rnds);
73
+ }
74
+
75
+ const createTrackingEvent = (widget) => (eventData) => {
76
+ return Object.assign(Object.assign({}, eventData), widget);
77
+ };
78
+
79
+ const PRODUCT_CLICK_EVENT_TYPE = "product_click_event";
80
+ const PRODUCT_VIEW_EVENT_TYPE = "product_view_event";
81
+ const FILTER_EVENT_EVENT_TYPE = "filter_event";
82
+ const SEARCH_EVENT_EVENT_TYPE = "search_event";
83
+ const WIDGET_EVENT_EVENT_TYPE = "widget_event";
84
+
85
+ const filterEvent = {
86
+ widget: "VPS",
87
+ typ: FILTER_EVENT_EVENT_TYPE,
88
+ };
89
+
90
+ const vprProductView = {
91
+ widget: "VPR",
92
+ typ: PRODUCT_VIEW_EVENT_TYPE,
93
+ };
94
+ const vpsProductView = {
95
+ widget: "VPS",
96
+ typ: PRODUCT_VIEW_EVENT_TYPE,
97
+ };
98
+ const vprProductClick = {
99
+ widget: "VPR",
100
+ typ: PRODUCT_CLICK_EVENT_TYPE,
101
+ };
102
+ const vpsProductClick = {
103
+ widget: "VPS",
104
+ typ: PRODUCT_CLICK_EVENT_TYPE,
105
+ };
106
+
107
+ const searchEvent = {
108
+ widget: "VPS",
109
+ typ: SEARCH_EVENT_EVENT_TYPE,
110
+ };
111
+
112
+ const vprWidget = {
113
+ widget: "VPR",
114
+ typ: WIDGET_EVENT_EVENT_TYPE,
115
+ };
116
+ const vpsWidget = {
117
+ widget: "VPS",
118
+ typ: WIDGET_EVENT_EVENT_TYPE,
119
+ };
120
+
121
+ const createProductViewVprEvent = createTrackingEvent(vprProductView);
122
+ const createProductViewVpsEvent = createTrackingEvent(vpsProductView);
123
+ const createProductClickVprEvent = createTrackingEvent(vprProductClick);
124
+ const createProductClickVpsEvent = createTrackingEvent(vpsProductClick);
125
+ const createWidgetVprEvent = createTrackingEvent(vprWidget);
126
+ const createWidgetVpsEvent = createTrackingEvent(vpsWidget);
127
+ const createSearchEvent = createTrackingEvent(searchEvent);
128
+ const createFilterEvent = createTrackingEvent(filterEvent);
129
+
130
+ export { createProductClickVprEvent as a, createWidgetVprEvent as b, createProductViewVprEvent as c, createProductViewVpsEvent as d, createProductClickVpsEvent as e, createSearchEvent as f, createFilterEvent as g, createWidgetVpsEvent as h, v4 as v };
@@ -0,0 +1,101 @@
1
+ import { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
2
+ import { d as CrossIcon } from './index2.js';
3
+ import { d as defineCustomElement$3 } from './vviinn-carousel2.js';
4
+ import { d as defineCustomElement$2 } from './vviinn-product-card2.js';
5
+ import { d as defineCustomElement$1 } from './vviinn-vpr-vidget.js';
6
+
7
+ const recommendationsSidebarCss = ":host{--vviinn-carousel-columns:0;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background .1s ease-in-out;width:100vw}:host(.open){background:rgba(0,0,0,.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{padding:32px;position:relative;text-align:center}header.contains-source-img{grid-gap:12px;display:grid;justify-items:center}img.source-image{border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.15);height:64px;padding:8px;width:64px}:host(.right) header{box-shadow:0 2px 6px rgba(0,0,0,.1)}main{padding:0 24px}:host(.right) main{overflow:auto}.sidebar{background:#fff;box-sizing:border-box;display:flex;flex-direction:column}:host(.bottom.closed) .sidebar,:host(.bottom.idle) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:f;animation-name:f}:host(.bottom.open) .sidebar{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:e;animation-name:e}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:h;animation-name:h}:host(.right.open) .sidebar{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:g;animation-name:g}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){grid-gap:24px;display:grid;grid-template-columns:repeat(2,1fr)}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{color:#000;font-size:28px;font-style:normal;font-weight:500;line-height:40px;text-align:center}vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@-webkit-keyframes e{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes e{0%{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes f{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes f{0%{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes g{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes g{0%{transform:translateX(100%)}to{transform:translateX(0)}}@-webkit-keyframes h{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes h{0%{transform:translateX(0)}to{transform:translateX(100%)}}";
8
+
9
+ let RecommendationsSidebar = class extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ attachShadow(this);
14
+ this.modalClosed = createEvent(this, "modalClosed", 7);
15
+ this.position = "bottom";
16
+ this.sourceImage = null;
17
+ this.widgetScrollbar = false;
18
+ /** comma-separated list of campaign-ids */
19
+ this.campaigns = "";
20
+ this.state = "idle";
21
+ }
22
+ bodyClickListener(event) {
23
+ const { clientX, clientY } = event;
24
+ const sidebarRect = this.getSidebarRectangle();
25
+ if (!sidebarRect)
26
+ return;
27
+ const inLeftBound = clientX >= sidebarRect.left;
28
+ const inRightBound = clientX <= sidebarRect.right;
29
+ const inTopBound = clientY >= sidebarRect.top;
30
+ const inBottomBound = clientY <= sidebarRect.bottom;
31
+ const inBound = inLeftBound && inRightBound && inTopBound && inBottomBound;
32
+ if (!inBound) {
33
+ this.state = "closed";
34
+ }
35
+ }
36
+ getClassMap() {
37
+ return {
38
+ [this.position]: true,
39
+ [this.state]: true,
40
+ };
41
+ }
42
+ getSidebarRectangle() {
43
+ var _a;
44
+ return (_a = this.el.shadowRoot.querySelector("aside")) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
45
+ }
46
+ render() {
47
+ return (h(Host, { class: this.getClassMap() }, h("aside", { class: "sidebar", part: "body", onAnimationEnd: (e) => this.handleAnimationEnd(e) }, h("header", { class: { "contains-source-img": this.isSourceImageValid() }, part: "sidebar-header" }, this.isSourceImageValid() ? this.renderSourceImage() : null, h("span", { class: "title", part: "title" }, this.sidebarTitle), h("button", { class: "close-sidebar", onClick: () => (this.state = "closed") }, h(CrossIcon, null))), h("main", { part: "sidebar-content" }, h("vviinn-vpr-widget", { exportparts: "brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title: product-title", token: this.token, productId: this.productId, imageWidth: 300, blockTitle: "", mode: this.position === "bottom" ? "continuity" : "grid", useCarousel: this.position === "bottom", onRecommendationsLoaded: () => (this.state = "open"), showScroll: this.widgetScrollbar, campaigns: this.campaigns })))));
48
+ }
49
+ renderSourceImage() {
50
+ return (h("img", { class: "source-image", part: "source-image", src: this.sourceImage }));
51
+ }
52
+ isSourceImageValid() {
53
+ var _a;
54
+ return ((_a = this.sourceImage) === null || _a === void 0 ? void 0 : _a.length) > 0;
55
+ }
56
+ handleAnimationEnd({ animationName }) {
57
+ const isClosingAnimation = animationName.includes("slideOut");
58
+ if (!isClosingAnimation)
59
+ return;
60
+ this.modalClosed.emit();
61
+ }
62
+ get el() { return this; }
63
+ static get style() { return recommendationsSidebarCss; }
64
+ };
65
+ RecommendationsSidebar = /*@__PURE__*/ proxyCustomElement(RecommendationsSidebar, [1, "vviinn-recommendations-sidebar", {
66
+ "sidebarTitle": [1, "sidebar-title"],
67
+ "token": [1],
68
+ "productId": [1, "product-id"],
69
+ "position": [1],
70
+ "sourceImage": [1, "source-image"],
71
+ "widgetScrollbar": [4, "widget-scrollbar"],
72
+ "campaigns": [1],
73
+ "state": [32]
74
+ }, [[16, "click", "bodyClickListener"]]]);
75
+ function defineCustomElement() {
76
+ const components = ["vviinn-recommendations-sidebar", "vviinn-carousel", "vviinn-product-card", "vviinn-vpr-widget"];
77
+ components.forEach(tagName => { switch (tagName) {
78
+ case "vviinn-recommendations-sidebar":
79
+ if (!customElements.get(tagName)) {
80
+ customElements.define(tagName, RecommendationsSidebar);
81
+ }
82
+ break;
83
+ case "vviinn-carousel":
84
+ if (!customElements.get(tagName)) {
85
+ defineCustomElement$3();
86
+ }
87
+ break;
88
+ case "vviinn-product-card":
89
+ if (!customElements.get(tagName)) {
90
+ defineCustomElement$2();
91
+ }
92
+ break;
93
+ case "vviinn-vpr-widget":
94
+ if (!customElements.get(tagName)) {
95
+ defineCustomElement$1();
96
+ }
97
+ break;
98
+ } });
99
+ }
100
+
101
+ export { RecommendationsSidebar as R, defineCustomElement as d };
@@ -0,0 +1,11 @@
1
+ import { z as createWorker } from './imageSearch.store.js';
2
+
3
+ const workerName = 'resizer.worker';
4
+ const workerMsgId = 'stencil.resizer.worker';
5
+ const workerPath = /*@__PURE__*/new URL('./assets/resizer.worker-510922c6.js', import.meta.url).href;
6
+ const blob = new Blob(['importScripts("' + workerPath + '")'], { type: 'text/javascript' });
7
+ const url = URL.createObjectURL(blob);
8
+ const worker = /*@__PURE__*/createWorker(url, workerName, workerMsgId);
9
+ URL.revokeObjectURL(url);
10
+
11
+ export { worker, workerMsgId, workerName, workerPath };
@@ -0,0 +1,6 @@
1
+ import { S as SearchFilters$1, d as defineCustomElement$1 } from './search-filters2.js';
2
+
3
+ const SearchFilters = SearchFilters$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { SearchFilters, defineCustomElement };
@@ -0,0 +1,89 @@
1
+ import { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
2
+ import { i as imageSearchState } from './imageSearch.store.js';
3
+ import { C as CheckIcon } from './index2.js';
4
+
5
+ const searchFiltersCss = ":host{grid-gap:1rem;display:grid}.filters{flex-wrap:wrap;gap:.5rem}.filter,.filters{display:flex;flex-direction:row}.filter{grid-gap:8px;align-items:center;-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:d;animation-name:d;border:1px solid #d3d3d3;cursor:pointer;height:-webkit-max-content;height:-moz-max-content;height:max-content;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;padding:6px 16px;transform:scale(0);transition-duration:.25s;transition-property:background;transition-timing-function:ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.filter.active{border:1px solid #000;padding:6px 8px}.filter:hover{border:1px solid gray}.show-more{display:flex}.show-more.hidden{display:none}.show-more:after{content:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8 12.2-6-6L3.2 5 8 9.8 12.8 5 14 6.2l-6 6z' fill='%23525252'/%3E%3C/svg%3E\");display:block;height:16px;margin-left:8px;margin-top:1px}.show-more.active:after{transform:rotateX(180deg)}@-webkit-keyframes d{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes d{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@media (max-width:415px){.show-more:after{transform:rotate(-90deg)}.show-more.active:after{transform:rotate(90deg)}}@media (max-width:800px){.filters{grid-gap:unset;flex-wrap:nowrap;overflow-x:scroll;scroll-snap-type:x mandatory}.filter{margin-right:.5rem;scroll-snap-align:end}}";
6
+
7
+ const FILTERS_COUNT = 5;
8
+ const ACTIVE_FILTER_CLASSNAME = ".filter.active";
9
+ const getFilterId = (filter) => filter.href.split("/").reverse()[0];
10
+ let SearchFilters = class extends HTMLElement {
11
+ constructor() {
12
+ super();
13
+ this.__registerHost();
14
+ attachShadow(this);
15
+ this.filterSelected = createEvent(this, "filterSelected", 7);
16
+ this.filter = null;
17
+ this.selectedCategoryId = null;
18
+ this.hideFilters = true;
19
+ }
20
+ handleFilterSelection(filter) {
21
+ return this.isFilterSelected(filter)
22
+ ? this.clearSelectedFilter()
23
+ : this.selectFilter(filter);
24
+ }
25
+ selectFilter(filter) {
26
+ this.selectedCategoryId = getFilterId(filter);
27
+ imageSearchState.activeIonLink = filter;
28
+ this.filterSelected.emit("select");
29
+ }
30
+ clearSelectedFilter() {
31
+ this.selectedCategoryId = null;
32
+ imageSearchState.activeIonLink = undefined;
33
+ this.findSelectedFilter().blur();
34
+ this.filterSelected.emit("deselect");
35
+ }
36
+ findSelectedFilter() {
37
+ return this.el.shadowRoot.querySelector(ACTIVE_FILTER_CLASSNAME);
38
+ }
39
+ toggleFilters() {
40
+ this.hideFilters = !this.hideFilters;
41
+ }
42
+ handleEnter(ev, f) {
43
+ if (ev.key !== "Enter")
44
+ return;
45
+ this.handleFilterSelection(f);
46
+ }
47
+ isFilterSelected(filterLink) {
48
+ return this.selectedCategoryId === getFilterId(filterLink);
49
+ }
50
+ render() {
51
+ return (h(Host, { exportparts: "filter, show-more-filters" }, h("div", { class: "filters" }, this.filter.filters
52
+ .filter((_, i) => (this.hideFilters ? i < FILTERS_COUNT : true))
53
+ .map((f, n) => (h("div", { role: "button", tabindex: "0", part: this.isFilterSelected(f) ? "filter active" : "filter", class: {
54
+ filter: true,
55
+ active: this.selectedCategoryId === getFilterId(f),
56
+ }, style: { "animation-delay": `${n * 10}ms` }, onPointerUp: (ev) => {
57
+ ev.stopPropagation();
58
+ this.handleFilterSelection(f);
59
+ }, onKeyPress: (ev) => this.handleEnter(ev, f) }, this.isFilterSelected(f) ? h(CheckIcon, null) : null, f.name))), h("div", { class: {
60
+ filter: true,
61
+ "show-more": true,
62
+ hidden: this.filter.filters.length <= FILTERS_COUNT,
63
+ active: !this.hideFilters,
64
+ }, role: "button", tabindex: "0", "aria-role": "button", onClick: () => this.toggleFilters(), onKeyPress: (ev) => {
65
+ if (ev.key === "Enter") {
66
+ this.toggleFilters();
67
+ }
68
+ }, part: "show-more-filters" }, this.hideFilters ? "Zeige mehr" : "Zeige weniger"))));
69
+ }
70
+ get el() { return this; }
71
+ static get style() { return searchFiltersCss; }
72
+ };
73
+ SearchFilters = /*@__PURE__*/ proxyCustomElement(SearchFilters, [1, "search-filters", {
74
+ "filter": [16],
75
+ "selectedCategoryId": [32],
76
+ "hideFilters": [32]
77
+ }]);
78
+ function defineCustomElement() {
79
+ const components = ["search-filters"];
80
+ components.forEach(tagName => { switch (tagName) {
81
+ case "search-filters":
82
+ if (!customElements.get(tagName)) {
83
+ customElements.define(tagName, SearchFilters);
84
+ }
85
+ break;
86
+ } });
87
+ }
88
+
89
+ export { SearchFilters as S, defineCustomElement as d };
@@ -0,0 +1,11 @@
1
+ import { z as createWorker } from './imageSearch.store.js';
2
+
3
+ const workerName = 'tracking.worker';
4
+ const workerMsgId = 'stencil.tracking.worker';
5
+ const workerPath = /*@__PURE__*/new URL('./assets/tracking.worker-06c76b5e.js', import.meta.url).href;
6
+ const blob = new Blob(['importScripts("' + workerPath + '")'], { type: 'text/javascript' });
7
+ const url = URL.createObjectURL(blob);
8
+ const worker = /*@__PURE__*/createWorker(url, workerName, workerMsgId);
9
+ URL.revokeObjectURL(url);
10
+
11
+ export { worker, workerMsgId, workerName, workerPath };
@@ -0,0 +1,6 @@
1
+ import { V as VviinnCarousel$1, d as defineCustomElement$1 } from './vviinn-carousel2.js';
2
+
3
+ const VviinnCarousel = VviinnCarousel$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { VviinnCarousel, defineCustomElement };
@@ -0,0 +1,235 @@
1
+ import { h, Host, proxyCustomElement } from '@stencil/core/internal/client';
2
+ import { _ as _Array } from './imageSearch.store.js';
3
+ import { a as ChevronIcon } from './index2.js';
4
+ import { d as defineCustomElement$1 } from './vviinn-product-card2.js';
5
+
6
+ const vviinnCarouselCss = ":host{--vviinn-progressbar-width:0;--vviinn-carousel-item-width:150px;--vviinn-carousel-columns-internal:var(--vviinn-carousel-columns,4);--vviinn-carousel-image-width-system:140px}.body{display:flex;flex-direction:column;position:relative;width:var(--vviinn-carousel-content-width)}.content-wrapper *{box-sizing:border-box}.content-wrapper{flex-grow:1;overflow-x:auto;overflow-y:hidden}.bullets{grid-gap:24px;display:flex;flex-direction:row;justify-content:center;margin-top:16px}.bullet{background:#e0e0e0;border-radius:50%;cursor:pointer;height:10px;width:10px}.bullet.active{background:#161616}.content.grid,.content:not(.show-scrollbar){scrollbar-color:#fff0 #fff0}.content.grid::-webkit-scrollbar,.content:not(.show-scrollbar)::-webkit-scrollbar{opacity:0}.content{grid-gap:8px;display:flex;flex-direction:row;flex-grow:1;overflow-x:auto;overflow-y:hidden;padding-bottom:16px;scroll-snap-type:x mandatory}.content.left>*{scroll-snap-align:start}.content.right>*{scroll-snap-align:end}:host(.continuity) button{border-radius:2px}:host(.grid) button{border-radius:50%}button{fill:#525252;align-items:center;background-color:#fff;border:none;box-shadow:0 2px 6px rgba(0,0,0,.15);cursor:pointer;display:grid;height:40px;justify-items:center;margin:0;padding:0;position:absolute;top:calc(50% - 20px);width:40px;z-index:1}button.prev svg{margin-left:-5px;transform:rotate(180deg)}.prev{left:0}.next{right:0}.items-group{grid-gap:16px;display:grid;grid-template-columns:repeat(var(--vviinn-carousel-columns-internal),1fr);min-width:100%}vviinn-product-card::part(price-container){text-align:center}:host(.classic) vviinn-product-card::part(brand),:host(.classic) vviinn-product-card::part(title),:host(.classic) vviinn-product-card::part(type){text-align:center}@media (max-width:480px){:host(.modern) button{display:none}.items-group{grid-template-columns:repeat(2,1fr)}}";
7
+
8
+ const COLUMNS_NUMBER_CSS_VAR = "--vviinn-carousel-columns-internal";
9
+ const CAROUSEL_WIDTH_CSS_VAR = "--vviinn-carousel-content-width";
10
+ const CAROUSEL_IMAGE_WIDTH_CSS_VAR = "--vviinn-carousel-image-width";
11
+ const CONTENT_GROUP_CSS_CLASS = "items-group";
12
+ let VviinnCarousel = class extends HTMLElement {
13
+ constructor() {
14
+ super();
15
+ this.__registerHost();
16
+ this.moveDirection = "right";
17
+ this.contentGroups = [];
18
+ this.activeContentGroup = 0;
19
+ this.mode = "continuity";
20
+ this.imageWidth = 140;
21
+ this.showScroll = true;
22
+ this.recommendations = [];
23
+ this.columns = 0;
24
+ this.resizeObserver = new ResizeObserver(() => this.handleResize());
25
+ this.mutationObserver = new MutationObserver(() => this.cloneSlottedContent());
26
+ }
27
+ connectedCallback() {
28
+ this.setItemWidth();
29
+ }
30
+ disconnectedCallback() {
31
+ this.resizeObserver.disconnect();
32
+ }
33
+ componentDidLoad() {
34
+ this.setWidth();
35
+ this.processScrollbarWidth();
36
+ this.columns = this.getColumnsNumber();
37
+ const slot = this.el.querySelector(".content");
38
+ this.mutationObserver.observe(slot, { subtree: true, childList: true });
39
+ this.resizeObserver.observe(this.getHostParent());
40
+ }
41
+ getItemWidthFromDocument() {
42
+ return parseInt(getComputedStyle(document.body).getPropertyValue(CAROUSEL_IMAGE_WIDTH_CSS_VAR));
43
+ }
44
+ setItemWidth() {
45
+ const widthInDocument = this.getItemWidthFromDocument();
46
+ const itemWidth = isNaN(widthInDocument)
47
+ ? this.imageWidth
48
+ : widthInDocument;
49
+ this.el.style.setProperty(CAROUSEL_IMAGE_WIDTH_CSS_VAR, `${itemWidth}px`);
50
+ }
51
+ getContentClassMap() {
52
+ return {
53
+ content: true,
54
+ [this.moveDirection]: true,
55
+ [this.mode]: true,
56
+ "show-scrollbar": this.showScroll,
57
+ };
58
+ }
59
+ handleResize() {
60
+ this.setWidth();
61
+ this.processScrollbarWidth();
62
+ this.setItemWidth();
63
+ const newColumns = this.getColumnsNumber();
64
+ if (newColumns !== this.columns) {
65
+ this.columns = newColumns;
66
+ }
67
+ }
68
+ calculateMoveStep() {
69
+ const contentWidths = this.getContent().map((el) => el.getBoundingClientRect().width);
70
+ const sum = contentWidths.reduce((acc, val) => acc + val, 0);
71
+ return sum / contentWidths.length;
72
+ }
73
+ getHostParent() {
74
+ const parent = this.el.parentNode;
75
+ return parent.host.parentElement;
76
+ }
77
+ setWidth() {
78
+ const parent = this.getHostParent();
79
+ if (!parent)
80
+ return;
81
+ const parentStyles = getComputedStyle(parent);
82
+ const parentWidth = parent.getBoundingClientRect().width;
83
+ const width = parentWidth -
84
+ (parseInt(parentStyles["padding-right"]) +
85
+ parseInt(parentStyles["padding-left"]));
86
+ this.el.style.setProperty(CAROUSEL_WIDTH_CSS_VAR, `${width}px`);
87
+ }
88
+ getParent() {
89
+ const parentNode = this.el.parentNode;
90
+ const host = parentNode.host;
91
+ return host.parentElement;
92
+ }
93
+ cloneSlottedContent() {
94
+ this.setWidth();
95
+ }
96
+ getActiveGroupIndex() {
97
+ var _a, _b;
98
+ const contentNodeLeft = (_b = (_a = this.getContentNode()) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
99
+ if (!contentNodeLeft)
100
+ return 0;
101
+ const groups = this.getContentGroups();
102
+ const groupsPositions = groups.map((g) => g.getBoundingClientRect().left);
103
+ const indexedPositions = groupsPositions
104
+ .map((value, index) => [value, index])
105
+ .filter((x) => x[0] >= 0);
106
+ return indexedPositions.length > 0 ? indexedPositions[0][1] : 0;
107
+ }
108
+ getContentNode() {
109
+ return this.el.querySelector(".content");
110
+ }
111
+ getContent() {
112
+ const children = this.getContentNode().children;
113
+ return Array.from(children).map((c) => c);
114
+ }
115
+ getColumnsNumber() {
116
+ const styleSheet = getComputedStyle(this.el);
117
+ const columnsInCss = styleSheet.getPropertyValue(COLUMNS_NUMBER_CSS_VAR);
118
+ return parseInt(columnsInCss);
119
+ }
120
+ getContentGroups() {
121
+ return Array.from(this.el.querySelectorAll(`.${CONTENT_GROUP_CSS_CLASS}`));
122
+ }
123
+ showNext() {
124
+ this.moveDirection = "right";
125
+ const contentContainer = this.getContentNode();
126
+ requestAnimationFrame(() => {
127
+ contentContainer.scrollTo({
128
+ top: 0,
129
+ left: contentContainer.scrollLeft + this.calculateMoveStep(),
130
+ behavior: "smooth",
131
+ });
132
+ });
133
+ }
134
+ showPrev() {
135
+ this.moveDirection = "left";
136
+ const contentContainer = this.getContentNode();
137
+ requestAnimationFrame(() => {
138
+ contentContainer.scrollTo({
139
+ top: 0,
140
+ left: contentContainer.scrollLeft - this.calculateMoveStep(),
141
+ behavior: "smooth",
142
+ });
143
+ });
144
+ }
145
+ scroll(index) {
146
+ const contentContainer = this.getContentNode();
147
+ requestAnimationFrame(() => {
148
+ contentContainer.scrollTo({
149
+ top: 0,
150
+ left: this.calculateMoveStep() * index,
151
+ behavior: "smooth",
152
+ });
153
+ });
154
+ }
155
+ processScrollbarWidth() {
156
+ const target = this.getContentNode();
157
+ const scrollRatio = (target.scrollLeft + target.clientWidth) / target.scrollWidth;
158
+ const scrolledWidth = target.clientWidth * scrollRatio;
159
+ this.el.style.setProperty("--vviinn-progressbar-width", `${scrolledWidth}px`);
160
+ this.activeContentGroup = this.getActiveGroupIndex();
161
+ }
162
+ showBullets() {
163
+ return this.mode === "grid" && this.showScroll;
164
+ }
165
+ showScrollbar() {
166
+ return this.mode === "continuity" && this.showScroll;
167
+ }
168
+ getClassMap() {
169
+ return {
170
+ [this.mode]: true,
171
+ "show-scrollbar": this.showScrollbar(),
172
+ };
173
+ }
174
+ renderRecommendation(recommendation, rank) {
175
+ 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", index: rank }));
176
+ }
177
+ renderRecommendationGroup(elements) {
178
+ return h("div", { class: CONTENT_GROUP_CSS_CLASS }, elements);
179
+ }
180
+ renderRecommendationGroups(elements) {
181
+ return elements.map((el) => this.renderRecommendationGroup(el));
182
+ }
183
+ renderRecommendations() {
184
+ return this.mode === "grid"
185
+ ? this.renderGrid()
186
+ : this.renderRecommendationsElements();
187
+ }
188
+ renderRecommendationsElements() {
189
+ return this.recommendations.map((r, i) => this.renderRecommendation(r, i));
190
+ }
191
+ renderGrid() {
192
+ const recommendations = this.renderRecommendationsElements();
193
+ const grouppedContent = _Array.chunksOf(this.getColumnsNumber())(recommendations);
194
+ return this.renderRecommendationGroups(grouppedContent);
195
+ }
196
+ renderBullets() {
197
+ const numberOfBullets = Math.ceil(this.recommendations.length / this.getColumnsNumber());
198
+ const bulletsArray = Array.from(Array(numberOfBullets).keys());
199
+ return bulletsArray.map((index) => (h("div", { class: {
200
+ bullet: true,
201
+ active: this.activeContentGroup === index,
202
+ }, onClick: () => this.scroll(index) })));
203
+ }
204
+ render() {
205
+ 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" }, h(ChevronIcon, null)), h("div", { class: this.getContentClassMap(), onScroll: () => this.processScrollbarWidth() }, this.renderRecommendations()), h("button", { class: "next", onClick: () => this.showNext(), part: "carousel-button" }, h(ChevronIcon, null))), this.showBullets() ? (h("div", { class: "bullets" }, this.renderBullets())) : ("")));
206
+ }
207
+ get el() { return this; }
208
+ static get style() { return vviinnCarouselCss; }
209
+ };
210
+ VviinnCarousel = /*@__PURE__*/ proxyCustomElement(VviinnCarousel, [0, "vviinn-carousel", {
211
+ "mode": [1],
212
+ "imageWidth": [2, "image-width"],
213
+ "showScroll": [4, "show-scroll"],
214
+ "recommendations": [16],
215
+ "moveDirection": [32],
216
+ "contentGroups": [32],
217
+ "activeContentGroup": [32]
218
+ }]);
219
+ function defineCustomElement() {
220
+ const components = ["vviinn-carousel", "vviinn-product-card"];
221
+ components.forEach(tagName => { switch (tagName) {
222
+ case "vviinn-carousel":
223
+ if (!customElements.get(tagName)) {
224
+ customElements.define(tagName, VviinnCarousel);
225
+ }
226
+ break;
227
+ case "vviinn-product-card":
228
+ if (!customElements.get(tagName)) {
229
+ defineCustomElement$1();
230
+ }
231
+ break;
232
+ } });
233
+ }
234
+
235
+ export { VviinnCarousel as V, defineCustomElement as d };
@@ -0,0 +1,6 @@
1
+ import { V as VviinnDetectedObject$1, d as defineCustomElement$1 } from './vviinn-detected-object2.js';
2
+
3
+ const VviinnDetectedObject = VviinnDetectedObject$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { VviinnDetectedObject, defineCustomElement };