vviinn-widgets 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/dist/cjs/Handler-176539c8.js +331 -0
  2. package/dist/{vviinn-widgets/app-globals-4fe0376b.js → cjs/app-globals-d15b4c2c.js} +15 -925
  3. package/{www/build/cropper-handler.entry.js → dist/cjs/cropper-handler.cjs.entry.js} +11 -7
  4. package/dist/{vviinn-widgets/customized-slots-5dbf778c.js → cjs/customized-slots-0c0d0665.js} +6 -3
  5. package/dist/cjs/highlight-box_22.cjs.entry.js +747 -0
  6. package/{www/build/imageSearch.store-3204bc99.js → dist/cjs/imageSearch.store-865c23f4.js} +11902 -11653
  7. package/{www/build/index-89e62050.js → dist/cjs/index-0eb3036a.js} +76 -698
  8. package/dist/cjs/index-0f5516a6.js +1354 -0
  9. package/dist/cjs/index-31b9cb7a.js +39 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +23 -0
  12. package/dist/cjs/vviinn-carousel_3.cjs.entry.js +1174 -0
  13. package/dist/{vviinn-widgets/vviinn-error.entry.js → cjs/vviinn-error.cjs.entry.js} +8 -4
  14. package/{www/build/vviinn-preloader.entry.js → dist/cjs/vviinn-preloader.cjs.entry.js} +11 -10
  15. package/{www/build/vviinn-recommendations-sidebar.entry.js → dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js} +12 -8
  16. package/dist/{vviinn-widgets/vviinn-vpr-button.entry.js → cjs/vviinn-vpr-button.cjs.entry.js} +9 -5
  17. package/dist/cjs/vviinn-vps-button.cjs.entry.js +43 -0
  18. package/{www/build/vviinn-vps-widget.entry.js → dist/cjs/vviinn-vps-widget.cjs.entry.js} +51 -49
  19. package/dist/cjs/vviinn-widgets.cjs.js +21 -0
  20. package/dist/collection/Image/error.js +14 -0
  21. package/dist/collection/Image/form.js +5 -0
  22. package/dist/collection/Image/fromFile.js +18 -0
  23. package/dist/collection/Image/imageToB64.js +9 -0
  24. package/dist/collection/Image/index.js +0 -0
  25. package/dist/collection/Image/renderPromise.js +6 -0
  26. package/dist/collection/Image/resizeImage.js +28 -0
  27. package/dist/collection/Image/sizing.js +39 -0
  28. package/dist/collection/Image/toFile.js +17 -0
  29. package/dist/collection/analytics/GAnalytics.js +32 -0
  30. package/dist/collection/analytics/GeneralAnalytics.js +9 -0
  31. package/dist/collection/analytics/GtagAnalytics.js +35 -0
  32. package/dist/collection/analytics/ProductAnalytics.js +1 -0
  33. package/dist/collection/campaign/Campaign.js +8 -0
  34. package/dist/collection/campaign/CampaignService.js +5 -0
  35. package/dist/collection/campaign/VCSCampaign.js +1 -0
  36. package/dist/collection/campaign/VCSCampaignResponse.js +1 -0
  37. package/dist/collection/campaign/VCSCampaignService.js +5 -0
  38. package/dist/collection/campaign/VPRCampaignResponse.js +1 -0
  39. package/dist/collection/campaign/VPRCampaignService.js +5 -0
  40. package/dist/collection/collection-manifest.json +43 -0
  41. package/dist/collection/components/customized-slots.js +47 -0
  42. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +71 -0
  43. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +25 -0
  44. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +49 -0
  45. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +64 -0
  46. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +33 -0
  47. package/{www/build/image-cropper.entry.js → dist/collection/components/image-search/image-view/image-cropper/image-cropper.js} +70 -33
  48. package/dist/collection/components/image-search/search-filters/search-filters.css +120 -0
  49. package/dist/collection/components/image-search/search-filters/search-filters.js +125 -0
  50. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +142 -0
  51. package/{www/build/vviinn-carousel.entry.js → dist/collection/components/vviinn-carousel/vviinn-carousel.js} +113 -18
  52. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +7 -0
  53. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +36 -0
  54. package/dist/collection/components/vviinn-error/vviinn-error.css +38 -0
  55. package/dist/collection/components/vviinn-error/vviinn-error.js +18 -0
  56. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +3 -0
  57. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +34 -0
  58. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +3 -0
  59. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +34 -0
  60. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +34 -0
  61. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -0
  62. package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +19 -0
  63. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +80 -0
  64. package/dist/{vviinn-widgets/index-bbcd6be9.js → collection/components/vviinn-icons/index.js} +11 -14
  65. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +25 -0
  66. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +64 -0
  67. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +47 -0
  68. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +100 -0
  69. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +31 -0
  70. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +61 -0
  71. package/dist/collection/components/vviinn-modal/vviinn-modal.css +105 -0
  72. package/dist/collection/components/vviinn-modal/vviinn-modal.js +98 -0
  73. package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +41 -0
  74. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +26 -0
  75. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +26 -0
  76. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +26 -0
  77. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +58 -0
  78. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +28 -0
  79. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +33 -0
  80. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +15 -0
  81. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +29 -0
  82. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +71 -0
  83. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +37 -0
  84. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +20 -0
  85. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +19 -0
  86. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +27 -0
  87. package/dist/collection/components/vviinn-product-card/render-helpers.js +32 -0
  88. package/dist/collection/components/vviinn-product-card/stories/args.js +73 -0
  89. package/dist/collection/components/vviinn-product-card/stories/decorators.js +51 -0
  90. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +105 -0
  91. package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +95 -0
  92. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +462 -0
  93. package/dist/collection/components/vviinn-slider/arrow.js +11 -0
  94. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +4 -0
  95. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +15 -0
  96. package/dist/collection/components/vviinn-slider/vviinn-slider.css +109 -0
  97. package/dist/collection/components/vviinn-slider/vviinn-slider.js +181 -0
  98. package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +14 -0
  99. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +29 -0
  100. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +238 -0
  101. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +200 -0
  102. package/dist/collection/components/vviinn-vpr-button/stories/args.js +207 -0
  103. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +89 -0
  104. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +35 -0
  105. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +156 -0
  106. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +190 -0
  107. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +29 -0
  108. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +212 -0
  109. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +11 -0
  110. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +483 -0
  111. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +79 -0
  112. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +31 -0
  113. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +3 -0
  114. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +178 -0
  115. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +33 -0
  116. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +350 -0
  117. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +352 -0
  118. package/dist/collection/cropper/Cropper.js +1 -0
  119. package/dist/collection/cropper/Handler.js +61 -0
  120. package/dist/collection/dom/index.js +3 -0
  121. package/dist/collection/error.js +14 -0
  122. package/dist/collection/file/index.js +4 -0
  123. package/dist/collection/geometry/Clip.js +14 -0
  124. package/dist/collection/geometry/Point.js +32 -0
  125. package/dist/collection/geometry/Rectangle.js +95 -0
  126. package/dist/collection/geometry/RectangleAlt.js +1 -0
  127. package/dist/collection/geometry/Sized.js +8 -0
  128. package/dist/collection/global.js +19 -0
  129. package/dist/collection/index.js +1 -0
  130. package/dist/collection/interfaces/generated.js +5 -0
  131. package/dist/collection/interfaces/recommendation.js +1 -0
  132. package/dist/collection/network/apiClient.js +9 -0
  133. package/dist/collection/network/ion/File.js +14 -0
  134. package/dist/collection/network/ion/Form.js +64 -0
  135. package/dist/collection/network/ion/Link.js +8 -0
  136. package/dist/collection/network/ion/ValueObject.js +23 -0
  137. package/dist/collection/network/request.js +19 -0
  138. package/dist/collection/network/utils.js +37 -0
  139. package/dist/collection/openApi/index.js +27 -0
  140. package/dist/collection/recommendation/events.js +1 -0
  141. package/dist/collection/recommendation/recommendation.js +1 -0
  142. package/dist/collection/searchSession/searchSession.js +26 -0
  143. package/dist/collection/sentry.js +14 -0
  144. package/dist/collection/slider/GridMode.js +1 -0
  145. package/dist/collection/store/file-processing.js +13 -0
  146. package/dist/collection/store/imageSearch.store.js +138 -0
  147. package/dist/collection/store/store.js +3 -0
  148. package/dist/collection/store/tracking.store.js +3 -0
  149. package/dist/collection/stories/Button.js +21 -0
  150. package/dist/collection/stories/Button.stories.js +42 -0
  151. package/dist/collection/stories/Header.js +45 -0
  152. package/dist/collection/stories/Header.stories.js +15 -0
  153. package/dist/collection/stories/Page.js +61 -0
  154. package/dist/collection/stories/Page.stories.js +19 -0
  155. package/dist/collection/stories/assets/code-brackets.svg +1 -0
  156. package/dist/collection/stories/assets/colors.svg +1 -0
  157. package/dist/collection/stories/assets/comments.svg +1 -0
  158. package/dist/collection/stories/assets/direction.svg +1 -0
  159. package/dist/collection/stories/assets/flow.svg +1 -0
  160. package/dist/collection/stories/assets/plugin.svg +1 -0
  161. package/dist/collection/stories/assets/repo.svg +1 -0
  162. package/dist/collection/stories/assets/stackalt.svg +1 -0
  163. package/dist/collection/stories/image-selector.stories.js +6 -0
  164. package/dist/collection/stories/image-view.stories.js +6 -0
  165. package/dist/collection/stories/modal.stories.js +12 -0
  166. package/dist/collection/stories/onboarding.stories.js +11 -0
  167. package/dist/collection/stories/overlay.stories.js +5 -0
  168. package/dist/collection/stories/overlayedModal.stories.js +8 -0
  169. package/dist/collection/stories/privacy-badge.stories.js +11 -0
  170. package/dist/collection/stories/slider.stories.js +17 -0
  171. package/dist/collection/stories/teaser.stories.js +5 -0
  172. package/dist/collection/stories/vps-widget.stories.js +47 -0
  173. package/dist/collection/stories/vviinn-product.stories.js +19 -0
  174. package/dist/collection/tracking/event.js +3 -0
  175. package/dist/collection/tracking/filter.js +5 -0
  176. package/dist/collection/tracking/index.js +13 -0
  177. package/dist/collection/tracking/models.js +6 -0
  178. package/dist/collection/tracking/product.js +18 -0
  179. package/dist/collection/tracking/search.js +5 -0
  180. package/dist/collection/tracking/widget.js +10 -0
  181. package/dist/collection/utils/collections/collectionsUtils.js +5 -0
  182. package/dist/collection/utils/either.js +3 -0
  183. package/dist/collection/utils/enum/enumUtils.js +3 -0
  184. package/dist/collection/utils/event/Events.js +1 -0
  185. package/dist/collection/utils/number/index.js +4 -0
  186. package/dist/collection/utils/option/option.js +4 -0
  187. package/dist/collection/utils/semigroup/semigroupDiff.js +6 -0
  188. package/dist/collection/utils/token/tokenUtils.js +9 -0
  189. package/dist/esm/Handler-f9b8735c.js +309 -0
  190. package/{www/build/app-globals-4fe0376b.js → dist/esm/app-globals-6f6aa89e.js} +10 -922
  191. package/dist/{vviinn-widgets → esm}/cropper-handler.entry.js +2 -2
  192. package/{www/build/customized-slots-5dbf778c.js → dist/esm/customized-slots-6b427dda.js} +1 -1
  193. package/dist/esm/highlight-box_22.entry.js +722 -0
  194. package/dist/{vviinn-widgets/imageSearch.store-3204bc99.js → esm/imageSearch.store-0ae87235.js} +12070 -11855
  195. package/dist/{vviinn-widgets/index-89e62050.js → esm/index-2e296af4.js} +6 -639
  196. package/dist/esm/index-59f44eaa.js +1323 -0
  197. package/{www/build/index-bbcd6be9.js → dist/esm/index-ac05c460.js} +2 -4
  198. package/dist/esm/index.js +1 -0
  199. package/dist/esm/loader.js +19 -0
  200. package/dist/esm/polyfills/core-js.js +11 -0
  201. package/dist/esm/polyfills/css-shim.js +1 -0
  202. package/dist/esm/polyfills/dom.js +79 -0
  203. package/dist/esm/polyfills/es5-html-element.js +1 -0
  204. package/dist/esm/polyfills/index.js +34 -0
  205. package/dist/esm/polyfills/system.js +6 -0
  206. package/dist/esm/vviinn-carousel_3.entry.js +1168 -0
  207. package/{www/build → dist/esm}/vviinn-error.entry.js +1 -1
  208. package/dist/{vviinn-widgets → esm}/vviinn-preloader.entry.js +3 -6
  209. package/dist/{vviinn-widgets → esm}/vviinn-recommendations-sidebar.entry.js +2 -2
  210. package/{www/build → dist/esm}/vviinn-vpr-button.entry.js +2 -2
  211. package/dist/{vviinn-widgets → esm}/vviinn-vps-button.entry.js +3 -3
  212. package/dist/{vviinn-widgets → esm}/vviinn-vps-widget.entry.js +12 -14
  213. package/dist/esm/vviinn-widgets.js +19 -0
  214. package/dist/index.cjs.js +1 -0
  215. package/dist/index.js +1 -0
  216. package/dist/loader/cdn.js +3 -0
  217. package/dist/loader/index.cjs.js +3 -0
  218. package/dist/loader/index.d.ts +12 -0
  219. package/dist/loader/index.es2017.js +3 -0
  220. package/dist/loader/index.js +4 -0
  221. package/dist/loader/package.json +10 -0
  222. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +1 -1
  223. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +1 -1
  224. package/dist/vviinn-widgets/index.esm.js +0 -1
  225. package/dist/vviinn-widgets/p-118ac907.js +1 -0
  226. package/dist/vviinn-widgets/p-11f61564.js +1 -0
  227. package/dist/vviinn-widgets/p-39fdc5c9.entry.js +1 -0
  228. package/dist/vviinn-widgets/p-762dc067.entry.js +1 -0
  229. package/dist/vviinn-widgets/p-7e2f542c.js +1 -0
  230. package/dist/vviinn-widgets/p-8d56e795.entry.js +1 -0
  231. package/dist/vviinn-widgets/p-8f955b15.entry.js +1 -0
  232. package/dist/vviinn-widgets/p-9654fe35.entry.js +1 -0
  233. package/dist/vviinn-widgets/p-9e5adc42.js +1 -0
  234. package/dist/vviinn-widgets/p-b3731705.entry.js +1 -0
  235. package/dist/vviinn-widgets/p-bad1809f.js +1 -0
  236. package/dist/vviinn-widgets/p-c36546fa.js +15 -0
  237. package/dist/vviinn-widgets/p-d991330b.entry.js +1 -0
  238. package/dist/vviinn-widgets/p-da9c933b.entry.js +1 -0
  239. package/dist/vviinn-widgets/p-ee46fc83.js +1 -0
  240. package/dist/vviinn-widgets/p-f41e25f0.entry.js +1 -0
  241. package/dist/vviinn-widgets/vviinn-widgets.css +1 -6
  242. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -125
  243. package/package.json +1 -1
  244. package/www/build/index.esm.js +0 -1
  245. package/www/build/p-118ac907.js +1 -0
  246. package/www/build/p-11f61564.js +1 -0
  247. package/www/build/p-39fdc5c9.entry.js +1 -0
  248. package/www/build/p-762dc067.entry.js +1 -0
  249. package/www/build/p-7e2f542c.js +1 -0
  250. package/www/build/p-8d56e795.entry.js +1 -0
  251. package/www/build/p-8f955b15.entry.js +1 -0
  252. package/www/build/p-9654fe35.entry.js +1 -0
  253. package/www/build/p-9e5adc42.js +1 -0
  254. package/www/build/p-a67898be.css +1 -0
  255. package/www/build/p-b3731705.entry.js +1 -0
  256. package/www/build/p-bad1809f.js +1 -0
  257. package/www/build/p-c36546fa.js +15 -0
  258. package/www/build/p-cfd998c1.js +1 -0
  259. package/www/build/p-d991330b.entry.js +1 -0
  260. package/www/build/p-da9c933b.entry.js +1 -0
  261. package/www/build/p-ee46fc83.js +1 -0
  262. package/www/build/p-f41e25f0.entry.js +1 -0
  263. package/www/build/vviinn-widgets.css +1 -6
  264. package/www/build/vviinn-widgets.esm.js +1 -125
  265. package/www/index.html +1 -12
  266. package/dist/vviinn-widgets/Array-c4dc02db.js +0 -4295
  267. package/dist/vviinn-widgets/Handler-47db9890.js +0 -1428
  268. package/dist/vviinn-widgets/NonEmptyArray-65395d97.js +0 -4370
  269. package/dist/vviinn-widgets/css-shim-f0027935.js +0 -4
  270. package/dist/vviinn-widgets/dom-db0073f0.js +0 -73
  271. package/dist/vviinn-widgets/highlight-box.entry.js +0 -41
  272. package/dist/vviinn-widgets/image-cropper.entry.js +0 -118
  273. package/dist/vviinn-widgets/index-c8128606.js +0 -3010
  274. package/dist/vviinn-widgets/number-a80a4b3c.js +0 -1533
  275. package/dist/vviinn-widgets/search-filters.entry.js +0 -76
  276. package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +0 -389
  277. package/dist/vviinn-widgets/vviinn-carousel.entry.js +0 -210
  278. package/dist/vviinn-widgets/vviinn-detected-object.entry.js +0 -54
  279. package/dist/vviinn-widgets/vviinn-empty-results.entry.js +0 -16
  280. package/dist/vviinn-widgets/vviinn-example-image.entry.js +0 -38
  281. package/dist/vviinn-widgets/vviinn-example-images.entry.js +0 -28
  282. package/dist/vviinn-widgets/vviinn-image-selector.entry.js +0 -31
  283. package/dist/vviinn-widgets/vviinn-image-view.entry.js +0 -55
  284. package/dist/vviinn-widgets/vviinn-modal.entry.js +0 -30
  285. package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +0 -21
  286. package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +0 -21
  287. package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +0 -21
  288. package/dist/vviinn-widgets/vviinn-onboarding.entry.js +0 -20
  289. package/dist/vviinn-widgets/vviinn-overlay.entry.js +0 -15
  290. package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +0 -18
  291. package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +0 -20
  292. package/dist/vviinn-widgets/vviinn-product-card.entry.js +0 -184
  293. package/dist/vviinn-widgets/vviinn-server-error.entry.js +0 -16
  294. package/dist/vviinn-widgets/vviinn-slide.entry.js +0 -15
  295. package/dist/vviinn-widgets/vviinn-slider.entry.js +0 -120
  296. package/dist/vviinn-widgets/vviinn-teaser.entry.js +0 -20
  297. package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +0 -4581
  298. package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +0 -16
  299. package/www/build/Array-c4dc02db.js +0 -4295
  300. package/www/build/Handler-47db9890.js +0 -1428
  301. package/www/build/NonEmptyArray-65395d97.js +0 -4370
  302. package/www/build/css-shim-f0027935.js +0 -4
  303. package/www/build/dom-db0073f0.js +0 -73
  304. package/www/build/highlight-box.entry.js +0 -41
  305. package/www/build/index-c8128606.js +0 -3010
  306. package/www/build/number-a80a4b3c.js +0 -1533
  307. package/www/build/search-filters.entry.js +0 -76
  308. package/www/build/shadow-css-c1fdfa9f.js +0 -389
  309. package/www/build/vviinn-detected-object.entry.js +0 -54
  310. package/www/build/vviinn-empty-results.entry.js +0 -16
  311. package/www/build/vviinn-example-image.entry.js +0 -38
  312. package/www/build/vviinn-example-images.entry.js +0 -28
  313. package/www/build/vviinn-image-selector.entry.js +0 -31
  314. package/www/build/vviinn-image-view.entry.js +0 -55
  315. package/www/build/vviinn-modal.entry.js +0 -30
  316. package/www/build/vviinn-onboarding-card-1.entry.js +0 -21
  317. package/www/build/vviinn-onboarding-card-2.entry.js +0 -21
  318. package/www/build/vviinn-onboarding-card-3.entry.js +0 -21
  319. package/www/build/vviinn-onboarding.entry.js +0 -20
  320. package/www/build/vviinn-overlay.entry.js +0 -15
  321. package/www/build/vviinn-overlayed-modal.entry.js +0 -18
  322. package/www/build/vviinn-privacy-badge.entry.js +0 -20
  323. package/www/build/vviinn-product-card.entry.js +0 -184
  324. package/www/build/vviinn-server-error.entry.js +0 -16
  325. package/www/build/vviinn-slide.entry.js +0 -15
  326. package/www/build/vviinn-slider.entry.js +0 -120
  327. package/www/build/vviinn-teaser.entry.js +0 -20
  328. package/www/build/vviinn-vpr-widget.entry.js +0 -4581
  329. package/www/build/vviinn-vps-button.entry.js +0 -39
  330. package/www/build/vviinn-wrong-format.entry.js +0 -16
@@ -0,0 +1,61 @@
1
+ import { Component, Host, h } from "@stencil/core";
2
+ import { imageSearchState } from "../../store/imageSearch.store";
3
+ import { pipe } from "fp-ts/lib/function";
4
+ import * as O from "fp-ts/lib/Option";
5
+ import { sequenceToOption } from "../../utils/option/option";
6
+ import { fromImage, move } from "../../geometry/Rectangle";
7
+ import { dimensionsFromImage, scaleByLargestSide } from "../../Image/sizing";
8
+ const getImageSizes = (i) => {
9
+ const dimensions = dimensionsFromImage(i);
10
+ const resize = scaleByLargestSide(288);
11
+ const newDimensions = resize(dimensions);
12
+ const sizes = newDimensions.map(d => d.size);
13
+ return [sizes[0], sizes[1]];
14
+ };
15
+ export class VviinnImageView {
16
+ handleInitialImageLoad(ev) {
17
+ const target = ev.target;
18
+ const imageBounds = fromImage(target);
19
+ const padding = 12;
20
+ const { x, y } = move(imageBounds, { x: padding, y: padding });
21
+ const searchArea = {
22
+ x,
23
+ y,
24
+ width: imageBounds.width - padding * 2,
25
+ height: imageBounds.height - padding * 2,
26
+ };
27
+ imageSearchState.imageBounds = O.some(imageBounds);
28
+ imageSearchState.searchArea = O.some(searchArea);
29
+ }
30
+ renderDetectedObject(object) {
31
+ return h("vviinn-detected-object", { detectedObject: object });
32
+ }
33
+ renderImage() {
34
+ return pipe(sequenceToOption(imageSearchState.imageUrl, imageSearchState.image), O.map(([url, refImage]) => {
35
+ const [width, height] = getImageSizes(refImage);
36
+ const image = (h("img", { decoding: "async", width: width, height: height, src: url, onLoad: (el) => this.handleInitialImageLoad(el), draggable: false }));
37
+ return image;
38
+ }), O.getOrElse(() => null));
39
+ }
40
+ renderCropper() {
41
+ return pipe(imageSearchState.imageUrl, O.map(() => h("image-cropper", null)), O.getOrElse(() => null));
42
+ }
43
+ render() {
44
+ return (h(Host, null,
45
+ imageSearchState.loading ||
46
+ imageSearchState.objectDetectionInProgress ? (h("div", { class: "image-preloader" },
47
+ h("vviinn-preloader", null))) : null,
48
+ h("highlight-box", null),
49
+ this.renderImage(),
50
+ this.renderCropper(),
51
+ imageSearchState.detectedObjects.map((o) => this.renderDetectedObject(o))));
52
+ }
53
+ static get is() { return "vviinn-image-view"; }
54
+ static get encapsulation() { return "shadow"; }
55
+ static get originalStyleUrls() { return {
56
+ "$": ["vviinn-image-view.css"]
57
+ }; }
58
+ static get styleUrls() { return {
59
+ "$": ["vviinn-image-view.css"]
60
+ }; }
61
+ }
@@ -0,0 +1,105 @@
1
+ :host {
2
+ background: white;
3
+ border-radius: 4px;
4
+ box-sizing: border-box;
5
+ display: grid;
6
+ grid-template-rows: -webkit-min-content auto;
7
+ grid-template-rows: min-content auto;
8
+ max-width: 960px;
9
+ }
10
+
11
+ @media (max-width: 415px) {
12
+ :host {
13
+ -webkit-animation-name: fade-in;
14
+ animation-name: fade-in;
15
+ -webkit-animation-duration: 0.5s;
16
+ animation-duration: 0.5s;
17
+ -webkit-animation-fill-mode: forwards;
18
+ animation-fill-mode: forwards;
19
+ }
20
+
21
+ :host(.closed) {
22
+ -webkit-animation-name: fade-out;
23
+ animation-name: fade-out;
24
+ -webkit-animation-fill-mode: none;
25
+ animation-fill-mode: none;
26
+ }
27
+
28
+ .body {
29
+ overflow-y: auto;
30
+ }
31
+ }
32
+
33
+ @media (max-width: 640px) and (min-width: 415px) {
34
+ :host {
35
+ max-width: 80%;
36
+ }
37
+ }
38
+
39
+ .head {
40
+ align-items: center;
41
+ border-bottom: 1px solid #F4F4F4;
42
+ display: grid;
43
+ grid-gap: 16px;
44
+ grid-template-columns: -webkit-min-content auto -webkit-min-content;
45
+ grid-template-columns: min-content auto min-content;
46
+ justify-items: center;
47
+ padding: 16px;
48
+ }
49
+
50
+ .title {
51
+ font-weight: 600;
52
+ font-size: 18px;
53
+ line-height: 24px;
54
+ }
55
+
56
+ button {
57
+ -webkit-appearance: none;
58
+ -moz-appearance: none;
59
+ appearance: none;
60
+ background: none;
61
+ border: none;
62
+ cursor: pointer;
63
+ display: grid;
64
+ padding: unset;
65
+ }
66
+
67
+ @-webkit-keyframes fade-in {
68
+ from {
69
+ transform: translateY(100%);
70
+ }
71
+
72
+ to {
73
+ transform: translateY(0);
74
+ }
75
+ }
76
+
77
+ @keyframes fade-in {
78
+ from {
79
+ transform: translateY(100%);
80
+ }
81
+
82
+ to {
83
+ transform: translateY(0);
84
+ }
85
+ }
86
+
87
+ @-webkit-keyframes fade-out {
88
+ from {
89
+ transform: translateY(0);
90
+ }
91
+
92
+ to {
93
+ transform: translateY(100%);
94
+ }
95
+ }
96
+
97
+ @keyframes fade-out {
98
+ from {
99
+ transform: translateY(0);
100
+ }
101
+
102
+ to {
103
+ transform: translateY(100%);
104
+ }
105
+ }
@@ -0,0 +1,98 @@
1
+ import { Component, Host, h, State, Event, Prop } from "@stencil/core";
2
+ export class VviinnModal {
3
+ constructor() {
4
+ this.active = false;
5
+ this.slider = false;
6
+ }
7
+ close() {
8
+ this.active = false;
9
+ setTimeout(() => {
10
+ this.modalClosed.emit();
11
+ }, this.slider ? 500 : 0);
12
+ }
13
+ handleAnimationEnd(ev) {
14
+ if (ev.animationName !== "fade-in")
15
+ return;
16
+ this.slider = true;
17
+ }
18
+ render() {
19
+ return (h(Host, { exportparts: "secondary-action, title, close-button", class: { closed: !this.active }, onAnimationEnd: (ev) => this.handleAnimationEnd(ev) },
20
+ h("div", { class: "head" },
21
+ h("button", { part: "secondary-action", onClick: () => this.secondaryActionClicked.emit() },
22
+ h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
23
+ h("path", { d: "M20.25 12H3.75", stroke: "#161616", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
24
+ h("path", { d: "M10.5 5.25L3.75 12L10.5 18.75", stroke: "#161616", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))),
25
+ h("div", { class: "title", part: "title" }, "Bildsuche"),
26
+ h("button", { onClick: () => this.close(), class: "close-button", part: "close-button" },
27
+ h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
28
+ 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: "#333333" })))),
29
+ h("div", { class: "body" },
30
+ h("slot", null))));
31
+ }
32
+ static get is() { return "vviinn-modal"; }
33
+ static get encapsulation() { return "shadow"; }
34
+ static get originalStyleUrls() { return {
35
+ "$": ["vviinn-modal.css"]
36
+ }; }
37
+ static get styleUrls() { return {
38
+ "$": ["vviinn-modal.css"]
39
+ }; }
40
+ static get properties() { return {
41
+ "active": {
42
+ "type": "boolean",
43
+ "mutable": true,
44
+ "complexType": {
45
+ "original": "boolean",
46
+ "resolved": "boolean",
47
+ "references": {}
48
+ },
49
+ "required": false,
50
+ "optional": false,
51
+ "docs": {
52
+ "tags": [],
53
+ "text": ""
54
+ },
55
+ "attribute": "active",
56
+ "reflect": true,
57
+ "defaultValue": "false"
58
+ }
59
+ }; }
60
+ static get states() { return {
61
+ "slider": {}
62
+ }; }
63
+ static get events() { return [{
64
+ "method": "modalClosed",
65
+ "name": "modalClosed",
66
+ "bubbles": true,
67
+ "cancelable": true,
68
+ "composed": true,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": "Event emitted when close button clicked and close animation ends"
72
+ },
73
+ "complexType": {
74
+ "original": "AnimationEvent",
75
+ "resolved": "AnimationEvent",
76
+ "references": {
77
+ "AnimationEvent": {
78
+ "location": "global"
79
+ }
80
+ }
81
+ }
82
+ }, {
83
+ "method": "secondaryActionClicked",
84
+ "name": "secondaryActionClicked",
85
+ "bubbles": true,
86
+ "cancelable": true,
87
+ "composed": true,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": "Event emitted when secondary action button clicked"
91
+ },
92
+ "complexType": {
93
+ "original": "void",
94
+ "resolved": "void",
95
+ "references": {}
96
+ }
97
+ }]; }
98
+ }
@@ -0,0 +1,41 @@
1
+ :host {
2
+ align-items: center;
3
+ background: #f4f4f4;
4
+ display: grid;
5
+ grid-template-rows: repeat(2, 1fr);
6
+ justify-items: center;
7
+ padding: 24px;
8
+ width: 100%;
9
+ }
10
+
11
+ h4 {
12
+ color: #161616;
13
+ font-size: 18px;
14
+ font-weight: 600;
15
+ line-height: 24px;
16
+ margin: unset;
17
+ text-align: center;
18
+ }
19
+
20
+ svg {
21
+ padding: 16px 0;
22
+ }
23
+
24
+ p {
25
+ color: #525252;
26
+ font-size: 14px;
27
+ font-style: normal;
28
+ font-weight: normal;
29
+ line-height: 20px;
30
+ margin: unset;
31
+ text-align: center;
32
+ }
33
+
34
+ .colored {
35
+ fill: var(--color-icons, var(--color-icons-system));
36
+ }
37
+
38
+ .text {
39
+ display: grid;
40
+ grid-gap: 8px;
41
+ }
@@ -0,0 +1,26 @@
1
+ import { Component, Host, h, Element } from '@stencil/core';
2
+ import { slotChangeListener } from '../../../customized-slots';
3
+ import { OnboardingCard1Icon } from '../../../vviinn-icons';
4
+ export class VviinnOnboardingCard1 {
5
+ componentWillLoad() {
6
+ slotChangeListener(this, this.el);
7
+ }
8
+ render() {
9
+ return (h(Host, null,
10
+ h("slot", { name: "onboarding-card-1-icon" },
11
+ h(OnboardingCard1Icon, null)),
12
+ h("slot", { name: "onboarding-card-1-text" },
13
+ h("div", { class: "text" },
14
+ h("h4", null, "Starte die Bildsuche"),
15
+ h("p", null, "Lade ein Bild aus Deiner Galerie hoch oder fotografiere ein Produkt mit Deiner Kamera.")))));
16
+ }
17
+ static get is() { return "vviinn-onboarding-card-1"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() { return {
20
+ "$": ["../onboarding-card.css"]
21
+ }; }
22
+ static get styleUrls() { return {
23
+ "$": ["../onboarding-card.css"]
24
+ }; }
25
+ static get elementRef() { return "el"; }
26
+ }
@@ -0,0 +1,26 @@
1
+ import { Component, Host, h, Element } from '@stencil/core';
2
+ import { OnboardingCard2Icon } from '../../../vviinn-icons';
3
+ import { slotChangeListener } from '../../../customized-slots';
4
+ export class VviinnOnboardingCard2 {
5
+ componentWillLoad() {
6
+ slotChangeListener(this, this.el);
7
+ }
8
+ render() {
9
+ return (h(Host, null,
10
+ h("slot", { name: "onboarding-card-2-icon" },
11
+ h(OnboardingCard2Icon, null)),
12
+ h("slot", { name: "onboarding-card-2-text" },
13
+ h("div", { class: "text" },
14
+ h("h4", null, "Verfeiner deine Suche"),
15
+ h("p", null, "Du kannst den Bildrahmen selber festlegen und so die Produkte genau ausw\u00E4hlen.")))));
16
+ }
17
+ static get is() { return "vviinn-onboarding-card-2"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() { return {
20
+ "$": ["../onboarding-card.css"]
21
+ }; }
22
+ static get styleUrls() { return {
23
+ "$": ["../onboarding-card.css"]
24
+ }; }
25
+ static get elementRef() { return "el"; }
26
+ }
@@ -0,0 +1,26 @@
1
+ import { Component, Host, h, Element } from '@stencil/core';
2
+ import { OnboardingCard3Icon } from '../../../vviinn-icons';
3
+ import { slotChangeListener } from '../../../customized-slots';
4
+ export class VviinnOnboardingCard3 {
5
+ componentWillLoad() {
6
+ slotChangeListener(this, this.el);
7
+ }
8
+ render() {
9
+ return (h(Host, null,
10
+ h("slot", { name: "onboarding-card-3-icon" },
11
+ h(OnboardingCard3Icon, null)),
12
+ h("slot", { name: "onboarding-card-3-text" },
13
+ h("div", { class: "text" },
14
+ h("h4", null, "Ohne Hintergrund"),
15
+ h("p", null, "Die besten Ergebnisse erh\u00E4ltst Du, wenn das gesuchte Objekt mit einfarbigem und hellem Hintergrund zu sehen ist.")))));
16
+ }
17
+ static get is() { return "vviinn-onboarding-card-3"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() { return {
20
+ "$": ["../onboarding-card.css"]
21
+ }; }
22
+ static get styleUrls() { return {
23
+ "$": ["../onboarding-card.css"]
24
+ }; }
25
+ static get elementRef() { return "el"; }
26
+ }
@@ -0,0 +1,58 @@
1
+ :host {
2
+ --color-primary-system: #0F62FE;
3
+ --color-primary-hover-system: #014CDA;
4
+ --color-icons-system: #2F8EDF;
5
+ --spacer: 8px;
6
+ }
7
+
8
+
9
+ ::host {
10
+ display: block;
11
+ }
12
+
13
+ h3 {
14
+ font-size: 22px;
15
+ font-weight: 600;
16
+ line-height: 32px;
17
+ margin: 0;
18
+ margin-bottom: 16px;
19
+ text-align: center;
20
+ }
21
+
22
+ vviinn-slide {
23
+ background: #f4f4f4;
24
+ padding: 24px;
25
+ }
26
+
27
+ svg {
28
+ padding: 16px 0;
29
+ }
30
+
31
+ .text {
32
+ display: grid;
33
+ grid-gap: 8px;
34
+ }
35
+
36
+ .text > h4 {
37
+ color: #161616;
38
+ font-size: 18px;
39
+ font-weight: 600;
40
+ line-height: 24px;
41
+ margin: unset;
42
+ text-align: center;
43
+ }
44
+
45
+ .text > p {
46
+ color: #525252;
47
+ font-size: 14px;
48
+ font-style: normal;
49
+ font-weight: normal;
50
+ line-height: 20px;
51
+ margin: unset;
52
+ text-align: center;
53
+ }
54
+
55
+ .colored {
56
+ fill: var(--color-icons, var(--color-icons-system));
57
+ }
58
+
@@ -0,0 +1,28 @@
1
+ import { Component, Host, h, Element } from "@stencil/core";
2
+ import { slotChangeListener } from "../customized-slots";
3
+ export class VviinnOnboarding {
4
+ componentWillLoad() {
5
+ slotChangeListener(this, this.el);
6
+ }
7
+ render() {
8
+ return (h(Host, null,
9
+ h("slot", { name: "vviinn-onboarding-title" },
10
+ h("h3", null, "So funktioniert es")),
11
+ h("vviinn-slider", { showArrows: true },
12
+ h("vviinn-slide", null,
13
+ h("vviinn-onboarding-card-1", null)),
14
+ h("vviinn-slide", null,
15
+ h("vviinn-onboarding-card-2", null)),
16
+ h("vviinn-slide", null,
17
+ h("vviinn-onboarding-card-3", null)))));
18
+ }
19
+ static get is() { return "vviinn-onboarding"; }
20
+ static get encapsulation() { return "shadow"; }
21
+ static get originalStyleUrls() { return {
22
+ "$": ["vviinn-onboarding.css"]
23
+ }; }
24
+ static get styleUrls() { return {
25
+ "$": ["vviinn-onboarding.css"]
26
+ }; }
27
+ static get elementRef() { return "el"; }
28
+ }
@@ -0,0 +1,33 @@
1
+ :host {
2
+ -webkit-animation: fade-in 0.5s ease-in-out;
3
+ animation: fade-in 0.5s ease-in-out;
4
+ background: rgba(0, 0, 0, 0.5);
5
+ display: block;
6
+ height: 100vh;
7
+ left: 0;
8
+ overflow: hidden;
9
+ position: fixed;
10
+ top: 0;
11
+ width: 100vw;
12
+ z-index: 9999;
13
+ }
14
+
15
+ @-webkit-keyframes fade-in {
16
+ from {
17
+ opacity: 0.1;
18
+ }
19
+
20
+ to {
21
+ opacity: 1;
22
+ }
23
+ }
24
+
25
+ @keyframes fade-in {
26
+ from {
27
+ opacity: 0.1;
28
+ }
29
+
30
+ to {
31
+ opacity: 1;
32
+ }
33
+ }
@@ -0,0 +1,15 @@
1
+ import { Component, Host, h } from '@stencil/core';
2
+ export class VviinnOverlay {
3
+ render() {
4
+ return (h(Host, null,
5
+ h("slot", null)));
6
+ }
7
+ static get is() { return "vviinn-overlay"; }
8
+ static get encapsulation() { return "shadow"; }
9
+ static get originalStyleUrls() { return {
10
+ "$": ["vviinn-overlay.css"]
11
+ }; }
12
+ static get styleUrls() { return {
13
+ "$": ["vviinn-overlay.css"]
14
+ }; }
15
+ }
@@ -0,0 +1,29 @@
1
+ :host {
2
+ display: none;
3
+ }
4
+
5
+ :host(.active) {
6
+ display: block;
7
+ }
8
+
9
+ vviinn-overlay {
10
+ align-items: center;
11
+ display: grid;
12
+ justify-items: center;
13
+ }
14
+
15
+ @media (max-width: 415px) {
16
+ vviinn-modal {
17
+ border-radius: 4px 4px 0 0;
18
+ height: 100vh;
19
+ margin-top: 32px;
20
+ transform: translateY(100%);
21
+ width: 100vw;
22
+ }
23
+
24
+ vviinn-overlay {
25
+ align-items: end;
26
+ display: grid;
27
+ justify-items: center;
28
+ }
29
+ }
@@ -0,0 +1,71 @@
1
+ import { Component, Host, h, Prop, Event } from "@stencil/core";
2
+ export class VviinnOverlayedModal {
3
+ constructor() {
4
+ this.active = false;
5
+ }
6
+ render() {
7
+ return (h(Host, { class: { active: this.active } },
8
+ h("vviinn-overlay", null,
9
+ h("vviinn-modal", { onSecondaryActionClicked: () => this.secondaryActionClicked.emit(), active: this.active },
10
+ h("slot", null, "CONTENT")))));
11
+ }
12
+ static get is() { return "vviinn-overlayed-modal"; }
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
+ }; }
40
+ static get events() { return [{
41
+ "method": "secondaryActionClicked",
42
+ "name": "secondaryActionClicked",
43
+ "bubbles": true,
44
+ "cancelable": true,
45
+ "composed": true,
46
+ "docs": {
47
+ "tags": [],
48
+ "text": ""
49
+ },
50
+ "complexType": {
51
+ "original": "void",
52
+ "resolved": "void",
53
+ "references": {}
54
+ }
55
+ }, {
56
+ "method": "modalClosed",
57
+ "name": "modalClosed",
58
+ "bubbles": true,
59
+ "cancelable": true,
60
+ "composed": true,
61
+ "docs": {
62
+ "tags": [],
63
+ "text": ""
64
+ },
65
+ "complexType": {
66
+ "original": "void",
67
+ "resolved": "void",
68
+ "references": {}
69
+ }
70
+ }]; }
71
+ }
@@ -0,0 +1,37 @@
1
+ :host {
2
+ --preloader-size: 24px;
3
+ --preloader-width: calc(var(--preloader-size) / 6);
4
+ transform-origin: center;
5
+ -webkit-animation: rotate 3s linear infinite;
6
+ animation: rotate 3s linear infinite;
7
+ border: var(--preloader-width) solid white;
8
+ border-radius: 50%;
9
+ border-top-color: transparent;
10
+ display: none;
11
+ outline: 0;
12
+ width: var(--preloader-size);
13
+ height: var(--preloader-size);
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ :host(.active) {
18
+ display: flex;
19
+ }
20
+
21
+ @-webkit-keyframes rotate {
22
+ from {
23
+ transform: rotate(-360deg);
24
+ }
25
+ to {
26
+ transform: rotate(360deg);
27
+ }
28
+ }
29
+
30
+ @keyframes rotate {
31
+ from {
32
+ transform: rotate(-360deg);
33
+ }
34
+ to {
35
+ transform: rotate(360deg);
36
+ }
37
+ }
@@ -0,0 +1,20 @@
1
+ import { Component, Host, h } from "@stencil/core";
2
+ import { imageSearchState } from "../../store/imageSearch.store";
3
+ export class VviinnPreloader {
4
+ isActive() {
5
+ return (imageSearchState.loading || imageSearchState.objectDetectionInProgress);
6
+ }
7
+ render() {
8
+ return (h(Host, { class: {
9
+ active: this.isActive(),
10
+ } }));
11
+ }
12
+ static get is() { return "vviinn-preloader"; }
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
+ }; }
20
+ }