vviinn-widgets 2.2.2 → 2.4.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 (240) hide show
  1. package/dist/cjs/{app-globals-30781f30.js → app-globals-2bcc74df.js} +1 -1
  2. package/dist/cjs/cropper-handler.cjs.entry.js +1 -1
  3. package/dist/cjs/{customized-slots-5d904d8e.js → customized-slots-4202eaf5.js} +1 -1
  4. package/dist/cjs/highlight-box_22.cjs.entry.js +20 -10
  5. package/dist/cjs/{imageSearch.store-128957a4.js → imageSearch.store-cb2b2cc8.js} +14 -11
  6. package/dist/cjs/{index-c493804d.js → index-44fc16ad.js} +7 -9
  7. package/dist/cjs/{index-741a970d.js → index-6771ae25.js} +1 -1
  8. package/dist/cjs/index-e9439500.js +3943 -0
  9. package/dist/cjs/loader.cjs.js +3 -3
  10. package/dist/cjs/{vviinn-carousel_5.cjs.entry.js → vviinn-carousel_3.cjs.entry.js} +54 -108
  11. package/dist/cjs/vviinn-error.cjs.entry.js +1 -1
  12. package/dist/cjs/vviinn-preloader.cjs.entry.js +2 -2
  13. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +63 -0
  14. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +44 -0
  15. package/dist/cjs/vviinn-vps-button.cjs.entry.js +4 -4
  16. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +74 -10
  17. package/dist/cjs/vviinn-widgets.cjs.js +3 -3
  18. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +27 -7
  19. package/dist/collection/components/image-search/search-filters/search-filters.js +24 -1
  20. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +4 -0
  21. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +6 -3
  22. package/dist/collection/components/vviinn-icons/index.js +6 -8
  23. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +18 -1
  24. package/dist/collection/components/vviinn-product-card/stories/args.js +73 -0
  25. package/dist/collection/components/vviinn-product-card/stories/decorators.js +51 -0
  26. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +105 -0
  27. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +57 -12
  28. package/dist/collection/components/vviinn-vpr-button/stories/args.js +207 -0
  29. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +89 -0
  30. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +11 -4
  31. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +190 -0
  32. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +29 -0
  33. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +212 -0
  34. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +47 -9
  35. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +5 -0
  36. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +31 -0
  37. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +3 -0
  38. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +33 -0
  39. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +108 -10
  40. package/dist/collection/network/utils.js +1 -1
  41. package/dist/collection/openApi/index.js +27 -0
  42. package/dist/collection/{components/vviinn-vpr-widget/GridMode.js → recommendation/events.js} +0 -0
  43. package/dist/collection/store/store.js +7 -9
  44. package/dist/collection/store/tracking.store.js +3 -0
  45. package/dist/collection/tracking/event.js +3 -0
  46. package/dist/collection/tracking/filter.js +5 -0
  47. package/dist/collection/tracking/index.js +13 -0
  48. package/dist/collection/tracking/models.js +6 -0
  49. package/dist/collection/tracking/product.js +18 -0
  50. package/dist/collection/tracking/search.js +5 -0
  51. package/dist/collection/tracking/widget.js +10 -0
  52. package/dist/esm/{app-globals-345e497d.js → app-globals-550daa9b.js} +1 -1
  53. package/dist/esm/cropper-handler.entry.js +1 -1
  54. package/dist/esm/{customized-slots-a76a8d41.js → customized-slots-80625933.js} +1 -1
  55. package/dist/esm/highlight-box_22.entry.js +20 -10
  56. package/dist/esm/{imageSearch.store-8eab0da1.js → imageSearch.store-1268786d.js} +12 -10
  57. package/dist/esm/{index-8cb063df.js → index-1cf740a8.js} +8 -10
  58. package/dist/esm/{index-6fa21e24.js → index-c09e56b6.js} +1 -1
  59. package/dist/esm/index-fa27f1df.js +3934 -0
  60. package/dist/esm/loader.js +3 -3
  61. package/dist/esm/{vviinn-carousel_5.entry.js → vviinn-carousel_3.entry.js} +55 -107
  62. package/dist/esm/vviinn-error.entry.js +1 -1
  63. package/dist/esm/vviinn-preloader.entry.js +2 -2
  64. package/dist/esm/vviinn-recommendations-sidebar.entry.js +59 -0
  65. package/dist/esm/vviinn-vpr-button.entry.js +40 -0
  66. package/dist/esm/vviinn-vps-button.entry.js +4 -4
  67. package/dist/esm/vviinn-vps-widget.entry.js +71 -7
  68. package/dist/esm/vviinn-widgets.js +3 -3
  69. package/dist/types/Image/error.d.ts +1 -0
  70. package/dist/types/Image/form.d.ts +1 -0
  71. package/dist/types/Image/fromFile.d.ts +1 -0
  72. package/dist/types/Image/imageToB64.d.ts +1 -0
  73. package/dist/types/Image/index.d.ts +1 -0
  74. package/dist/types/Image/renderPromise.d.ts +1 -0
  75. package/dist/types/Image/resizeImage.d.ts +1 -0
  76. package/dist/types/Image/sizing.d.ts +1 -0
  77. package/dist/types/Image/toFile.d.ts +1 -0
  78. package/dist/types/analytics/GAnalytics.d.ts +1 -0
  79. package/dist/types/analytics/GeneralAnalytics.d.ts +1 -0
  80. package/dist/types/analytics/GtagAnalytics.d.ts +1 -0
  81. package/dist/types/analytics/ProductAnalytics.d.ts +1 -0
  82. package/dist/types/campaign/Campaign.d.ts +1 -0
  83. package/dist/types/campaign/CampaignService.d.ts +1 -0
  84. package/dist/types/campaign/VCSCampaign.d.ts +1 -0
  85. package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -0
  86. package/dist/types/campaign/VCSCampaignService.d.ts +1 -0
  87. package/dist/types/campaign/VPRCampaignResponse.d.ts +1 -0
  88. package/dist/types/campaign/VPRCampaignService.d.ts +1 -0
  89. package/dist/types/components/customized-slots.d.ts +1 -0
  90. package/dist/types/components/image-search/image-view/highlight-box/highlight-box.d.ts +1 -0
  91. package/dist/types/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.d.ts +1 -0
  92. package/dist/types/components/image-search/image-view/image-cropper/image-cropper.d.ts +4 -0
  93. package/dist/types/components/image-search/search-filters/search-filters.d.ts +4 -0
  94. package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +4 -0
  95. package/dist/types/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.d.ts +1 -0
  96. package/dist/types/components/vviinn-error/vviinn-error.d.ts +1 -0
  97. package/dist/types/components/vviinn-error/vviinn-server-error/vviinn-server-error.d.ts +1 -0
  98. package/dist/types/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.d.ts +1 -0
  99. package/dist/types/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.d.ts +1 -0
  100. package/dist/types/components/vviinn-example-images/vviinn-example-images.d.ts +1 -0
  101. package/dist/types/components/vviinn-icons/index.d.ts +1 -0
  102. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +1 -0
  103. package/dist/types/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.d.ts +3 -0
  104. package/dist/types/components/vviinn-image-view/vviinn-image-view.d.ts +1 -0
  105. package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +1 -0
  106. package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.d.ts +1 -0
  107. package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.d.ts +1 -0
  108. package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.d.ts +1 -0
  109. package/dist/types/components/vviinn-onboarding/vviinn-onboarding.d.ts +1 -0
  110. package/dist/types/components/vviinn-overlay/vviinn-overlay.d.ts +1 -0
  111. package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +1 -0
  112. package/dist/types/components/vviinn-preloader/vviinn-preloader.d.ts +1 -0
  113. package/dist/types/components/vviinn-privacy-badge/vviinn-privacy-badge.d.ts +1 -0
  114. package/dist/types/components/vviinn-product-card/render-helpers.d.ts +1 -0
  115. package/dist/types/components/vviinn-product-card/stories/args.d.ts +74 -0
  116. package/dist/types/components/vviinn-product-card/stories/decorators.d.ts +2 -0
  117. package/dist/types/components/vviinn-product-card/stories/vviinn-product-card.stories.d.ts +81 -0
  118. package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +9 -3
  119. package/dist/types/components/vviinn-slider/arrow.d.ts +1 -0
  120. package/dist/types/components/vviinn-slider/vviinn-slide/vviinn-slide.d.ts +1 -0
  121. package/dist/types/components/vviinn-slider/vviinn-slider.d.ts +1 -0
  122. package/dist/types/components/vviinn-teaser/vviinn-teaser.d.ts +1 -0
  123. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +1 -0
  124. package/dist/types/components/vviinn-vpr-button/stories/args.d.ts +208 -0
  125. package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +215 -0
  126. package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +4 -0
  127. package/dist/types/components/vviinn-vpr-widget/stories/args.d.ts +199 -0
  128. package/dist/types/components/vviinn-vpr-widget/stories/decorators.d.ts +3 -0
  129. package/dist/types/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.d.ts +142 -0
  130. package/dist/types/components/vviinn-vpr-widget/token-helpers.d.ts +1 -0
  131. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +10 -1
  132. package/dist/types/components/vviinn-vps-button/stories/vviinn-vps-button.stories.d.ts +13 -0
  133. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +1 -0
  134. package/dist/types/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.d.ts +11 -0
  135. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +14 -1
  136. package/dist/types/components.d.ts +10 -4
  137. package/dist/types/cropper/Cropper.d.ts +1 -0
  138. package/dist/types/cropper/Handler.d.ts +1 -0
  139. package/dist/types/dom/index.d.ts +1 -0
  140. package/dist/types/error.d.ts +1 -0
  141. package/dist/types/file/index.d.ts +1 -0
  142. package/dist/types/geometry/Clip.d.ts +1 -0
  143. package/dist/types/geometry/Point.d.ts +1 -0
  144. package/dist/types/geometry/Rectangle.d.ts +1 -0
  145. package/dist/types/geometry/RectangleAlt.d.ts +1 -0
  146. package/dist/types/geometry/Sized.d.ts +1 -0
  147. package/dist/types/global.d.ts +1 -0
  148. package/dist/types/index.d.ts +1 -0
  149. package/dist/types/interfaces/generated.d.ts +1 -0
  150. package/dist/types/interfaces/recommendation.d.ts +1 -0
  151. package/dist/types/network/apiClient.d.ts +1 -0
  152. package/dist/types/network/ion/File.d.ts +1 -0
  153. package/dist/types/network/ion/Form.d.ts +1 -0
  154. package/dist/types/network/ion/Link.d.ts +1 -0
  155. package/dist/types/network/ion/ValueObject.d.ts +1 -0
  156. package/dist/types/network/request.d.ts +1 -0
  157. package/dist/types/network/utils.d.ts +1 -0
  158. package/dist/types/openApi/index.d.ts +6 -0
  159. package/dist/types/recommendation/events.d.ts +6 -0
  160. package/dist/types/recommendation/recommendation.d.ts +1 -0
  161. package/dist/types/searchSession/searchSession.d.ts +1 -0
  162. package/dist/types/sentry.d.ts +1 -0
  163. package/dist/types/slider/GridMode.d.ts +1 -0
  164. package/dist/types/store/file-processing.d.ts +1 -0
  165. package/dist/types/store/imageSearch.store.d.ts +1 -0
  166. package/dist/types/store/store.d.ts +8 -6
  167. package/dist/types/store/tracking.store.d.ts +4 -0
  168. package/dist/types/stories/image-selector.stories.d.ts +1 -0
  169. package/dist/types/stories/image-view.stories.d.ts +1 -0
  170. package/dist/types/stories/modal.stories.d.ts +1 -0
  171. package/dist/types/stories/onboarding.stories.d.ts +1 -0
  172. package/dist/types/stories/overlay.stories.d.ts +1 -0
  173. package/dist/types/stories/overlayedModal.stories.d.ts +1 -0
  174. package/dist/types/stories/privacy-badge.stories.d.ts +1 -0
  175. package/dist/types/stories/slider.stories.d.ts +1 -0
  176. package/dist/types/stories/teaser.stories.d.ts +1 -0
  177. package/dist/types/stories/vps-widget.stories.d.ts +1 -0
  178. package/dist/types/stories/vviinn-product.stories.d.ts +1 -0
  179. package/dist/types/tracking/event.d.ts +4 -0
  180. package/dist/types/tracking/filter.d.ts +3 -0
  181. package/dist/types/tracking/index.d.ts +9 -0
  182. package/dist/types/tracking/models.d.ts +13 -0
  183. package/dist/types/tracking/product.d.ts +7 -0
  184. package/dist/types/tracking/search.d.ts +3 -0
  185. package/dist/types/tracking/widget.d.ts +5 -0
  186. package/dist/types/utils/collections/collectionsUtils.d.ts +1 -0
  187. package/dist/types/utils/either.d.ts +1 -0
  188. package/dist/types/utils/enum/enumUtils.d.ts +1 -0
  189. package/dist/types/utils/event/Events.d.ts +1 -0
  190. package/dist/types/utils/number/index.d.ts +1 -0
  191. package/dist/types/utils/option/option.d.ts +1 -0
  192. package/dist/types/utils/semigroup/semigroupDiff.d.ts +1 -0
  193. package/dist/types/utils/token/tokenUtils.d.ts +1 -0
  194. package/dist/vviinn-widgets/{p-78ccc9eb.js → p-07125f64.js} +1 -1
  195. package/dist/vviinn-widgets/{p-f47e82b2.entry.js → p-27ede517.entry.js} +1 -1
  196. package/dist/vviinn-widgets/{p-9d24f51e.entry.js → p-314e40b3.entry.js} +1 -1
  197. package/dist/vviinn-widgets/p-316abc01.js +1 -0
  198. package/dist/vviinn-widgets/{p-fb14e3cc.entry.js → p-4bdb3027.entry.js} +1 -1
  199. package/dist/vviinn-widgets/p-5535163a.entry.js +1 -0
  200. package/dist/vviinn-widgets/{p-59edfbe2.js → p-78b65f70.js} +1 -1
  201. package/dist/vviinn-widgets/{p-400eb62f.entry.js → p-86ae782f.entry.js} +1 -1
  202. package/dist/vviinn-widgets/p-89f2c19a.entry.js +1 -0
  203. package/dist/vviinn-widgets/{p-e1ba8626.js → p-8e25b838.js} +1 -1
  204. package/dist/vviinn-widgets/p-94aa8705.entry.js +1 -0
  205. package/dist/vviinn-widgets/{p-e67cae57.js → p-97af45f0.js} +1 -1
  206. package/dist/vviinn-widgets/p-c5e6ec4f.js +1 -0
  207. package/dist/vviinn-widgets/p-c63fb46b.entry.js +1 -0
  208. package/{www/build/p-d085199d.entry.js → dist/vviinn-widgets/p-dd7cac6e.entry.js} +1 -1
  209. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  210. package/package.json +11 -3
  211. package/www/build/{p-78ccc9eb.js → p-07125f64.js} +1 -1
  212. package/www/build/{p-f47e82b2.entry.js → p-27ede517.entry.js} +1 -1
  213. package/www/build/{p-9d24f51e.entry.js → p-314e40b3.entry.js} +1 -1
  214. package/www/build/p-316abc01.js +1 -0
  215. package/www/build/{p-fb14e3cc.entry.js → p-4bdb3027.entry.js} +1 -1
  216. package/www/build/p-5535163a.entry.js +1 -0
  217. package/www/build/{p-59edfbe2.js → p-78b65f70.js} +1 -1
  218. package/www/build/{p-400eb62f.entry.js → p-86ae782f.entry.js} +1 -1
  219. package/www/build/p-89f2c19a.entry.js +1 -0
  220. package/www/build/{p-e1ba8626.js → p-8e25b838.js} +1 -1
  221. package/www/build/p-94aa8705.entry.js +1 -0
  222. package/www/build/p-961822d3.js +125 -0
  223. package/www/build/{p-e67cae57.js → p-97af45f0.js} +1 -1
  224. package/www/build/p-c5e6ec4f.js +1 -0
  225. package/www/build/p-c63fb46b.entry.js +1 -0
  226. package/{dist/vviinn-widgets/p-d085199d.entry.js → www/build/p-dd7cac6e.entry.js} +1 -1
  227. package/www/build/p-e0153ae2.css +6 -0
  228. package/www/build/vviinn-widgets.esm.js +1 -1
  229. package/www/index.html +1 -177
  230. package/dist/collection/components/vviinn-vpr-button/stories/kek.stories.js +0 -18
  231. package/dist/types/components/vviinn-vpr-button/stories/kek.stories.d.ts +0 -7
  232. package/dist/types/components/vviinn-vpr-widget/GridMode.d.ts +0 -1
  233. package/dist/vviinn-widgets/p-04b06ea9.entry.js +0 -1
  234. package/dist/vviinn-widgets/p-56fc949a.js +0 -1
  235. package/dist/vviinn-widgets/p-e38f4aa2.entry.js +0 -1
  236. package/www/build/p-04b06ea9.entry.js +0 -1
  237. package/www/build/p-56fc949a.js +0 -1
  238. package/www/build/p-7e4978d5.js +0 -1
  239. package/www/build/p-a67898be.css +0 -1
  240. package/www/build/p-e38f4aa2.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-741a970d.js');
3
+ const index = require('./index-6771ae25.js');
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-741a970d.js');
5
+ const index = require('./index-6771ae25.js');
6
6
  const Handler = require('./Handler-d1a8a86a.js');
7
7
 
8
8
  const cropperHandlerCss = ":host{--size:20px;background:transparent;border:4px solid white;box-sizing:content-box;display:block;height:var(--size);touch-action:none;position:absolute;width:var(--size);z-index:4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.disabled){opacity:0.25}:host(.nw-resize){border-bottom:none;border-right:none;top:0;left:0}:host(.ne-resize){border-left:none;border-bottom:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;left:0;bottom:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-741a970d.js');
3
+ const index = require('./index-6771ae25.js');
4
4
 
5
5
  const defaultSlotsNames = [
6
6
  "vviinn-onboarding-title",
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-741a970d.js');
6
- const imageSearch_store = require('./imageSearch.store-128957a4.js');
5
+ const index = require('./index-6771ae25.js');
6
+ const imageSearch_store = require('./imageSearch.store-cb2b2cc8.js');
7
7
  const Handler = require('./Handler-d1a8a86a.js');
8
- const index$1 = require('./index-c493804d.js');
9
- const customizedSlots = require('./customized-slots-5d904d8e.js');
8
+ const index$1 = require('./index-44fc16ad.js');
9
+ const customizedSlots = require('./customized-slots-4202eaf5.js');
10
10
 
11
11
  // -------------------------------------------------------------------------------------
12
12
  // -------------------------------------------------------------------------------------
@@ -71,6 +71,7 @@ const MIN_SEARCHAREA_SIZE = 40;
71
71
  let ImageCropper = class {
72
72
  constructor(hostRef) {
73
73
  index.registerInstance(this, hostRef);
74
+ this.cropperChanged = index.createEvent(this, "cropperChanged", 7);
74
75
  this.disabled = false;
75
76
  this.handleMove = false;
76
77
  this.mouseStartPoint = undefined;
@@ -90,18 +91,21 @@ let ImageCropper = class {
90
91
  };
91
92
  imageSearch_store._function.pipe(imageSearch_store.imageSearchState.searchArea, imageSearch_store.Option.map((area) => {
92
93
  const newSearchArea = imageSearch_store.transform(area, transformedHandler);
93
- if (newSearchArea.width < MIN_SEARCHAREA_SIZE ||
94
- newSearchArea.height < MIN_SEARCHAREA_SIZE ||
95
- newSearchArea.x < 0 ||
96
- newSearchArea.y < 0 ||
97
- this.bounds.height - (newSearchArea.y + newSearchArea.height) < 0 ||
98
- this.bounds.width - (newSearchArea.x + newSearchArea.width) < 0)
94
+ if (this.outOfBounds(newSearchArea))
99
95
  return;
100
96
  imageSearch_store.imageSearchState.searchArea = imageSearch_store.Option.some(newSearchArea);
101
97
  this.mouseStartPoint = destination;
102
98
  imageSearch_store.imageSearchState.detectedObject = undefined;
103
99
  }));
104
100
  }
101
+ outOfBounds(area) {
102
+ return (area.width < MIN_SEARCHAREA_SIZE ||
103
+ area.height < MIN_SEARCHAREA_SIZE ||
104
+ area.x < 0 ||
105
+ area.y < 0 ||
106
+ this.bounds.height - (area.y + area.height) < 0 ||
107
+ this.bounds.width - (area.x + area.width) < 0);
108
+ }
105
109
  handleCropperMove(ev) {
106
110
  ev.preventDefault();
107
111
  ev.stopPropagation();
@@ -142,6 +146,7 @@ let ImageCropper = class {
142
146
  document.removeEventListener("pointerup", this.pointerReleaseListener);
143
147
  this.mouseStartPoint = undefined;
144
148
  imageSearch_store.makeRectangularSearchRequest();
149
+ this.cropperChanged.emit();
145
150
  }
146
151
  getStyleMap() {
147
152
  return imageSearch_store._function.pipe(imageSearch_store.imageSearchState.searchArea, imageSearch_store.Option.map((rectangle) => {
@@ -174,6 +179,7 @@ const getFilterId = (filter) => filter.href.split("/").reverse()[0];
174
179
  let SearchFilters = class {
175
180
  constructor(hostRef) {
176
181
  index.registerInstance(this, hostRef);
182
+ this.filterSelected = index.createEvent(this, "filterSelected", 7);
177
183
  this.filter = null;
178
184
  this.selectedCategoryId = null;
179
185
  this.hideFilters = true;
@@ -186,11 +192,13 @@ let SearchFilters = class {
186
192
  selectFilter(filter) {
187
193
  this.selectedCategoryId = getFilterId(filter);
188
194
  imageSearch_store.imageSearchState.activeIonLink = filter;
195
+ this.filterSelected.emit("select");
189
196
  }
190
197
  clearSelectedFilter() {
191
198
  this.selectedCategoryId = null;
192
199
  imageSearch_store.imageSearchState.activeIonLink = undefined;
193
200
  this.findSelectedFilter().blur();
201
+ this.filterSelected.emit("deselect");
194
202
  }
195
203
  findSelectedFilter() {
196
204
  return this.el.shadowRoot.querySelector(ACTIVE_FILTER_CLASSNAME);
@@ -235,6 +243,7 @@ const vviinnDetectedObjectCss = ":host{--color-primary-system:#0F62FE;--color-pr
235
243
  let VviinnDetectedObject = class {
236
244
  constructor(hostRef) {
237
245
  index.registerInstance(this, hostRef);
246
+ this.detectedObjectClicked = index.createEvent(this, "detectedObjectClicked", 7);
238
247
  this.position = ["0", "0"];
239
248
  }
240
249
  getObjectPosition() {
@@ -253,6 +262,7 @@ let VviinnDetectedObject = class {
253
262
  imageSearch_store.imageSearchState.searchArea = imageSearch_store.Option.some(scaledRect);
254
263
  }));
255
264
  imageSearch_store.makeRectangularSearchRequest();
265
+ this.detectedObjectClicked.emit();
256
266
  }
257
267
  isActive() {
258
268
  if (!this.detectedObject)
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-741a970d.js');
3
+ const index = require('./index-6771ae25.js');
4
4
  const Handler = require('./Handler-d1a8a86a.js');
5
5
 
6
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -10158,15 +10158,17 @@ const createStore = (defaultState, shouldUpdate) => {
10158
10158
  return map;
10159
10159
  };
10160
10160
 
10161
- const store = createStore({
10162
- fallbackStyles: "",
10163
- pricePrefix: null,
10164
- currencySign: null,
10165
- apiPath: undefined,
10166
- locale: "de-DE",
10161
+ const trackingStore = {
10162
+ trackingEnabled: true,
10163
+ };
10164
+
10165
+ const { state: state$1, onChange: onChange$1 } = createStore(Object.assign({ fallbackStyles: "", pricePrefix: null, currencySign: null, apiPath: null, token: null, locale: "de-DE" }, trackingStore));
10166
+ onChange$1("apiPath", (val) => {
10167
+ console.log("apiPathChanged", val);
10168
+ });
10169
+ onChange$1("token", (val) => {
10170
+ console.log("tokenChanged", val);
10167
10171
  });
10168
- const state$1 = store.state;
10169
- const state$2 = store.state;
10170
10172
 
10171
10173
  function ap$4(F, G) {
10172
10174
  return function (fa) { return function (fab) {
@@ -15175,6 +15177,8 @@ exports._Array = _Array;
15175
15177
  exports._function = _function;
15176
15178
  exports.center = center;
15177
15179
  exports.chainW = chainW;
15180
+ exports.commonjsGlobal = commonjsGlobal;
15181
+ exports.createCommonjsModule = createCommonjsModule;
15178
15182
  exports.createInitGetRequest = createInitGetRequest;
15179
15183
  exports.detectedObjectEq = detectedObjectEq;
15180
15184
  exports.dimensionsFromImage = dimensionsFromImage;
@@ -15193,7 +15197,6 @@ exports.scaleByLargestSide = scaleByLargestSide;
15193
15197
  exports.scaleWithSized = scaleWithSized;
15194
15198
  exports.sequenceT = sequenceT;
15195
15199
  exports.sequenceToOption = sequenceToOption;
15196
- exports.state = state$2;
15197
- exports.state$1 = state$1;
15200
+ exports.state = state$1;
15198
15201
  exports.toFile = toFile;
15199
15202
  exports.transform = transform;
@@ -1,13 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-741a970d.js');
3
+ const index = require('./index-6771ae25.js');
4
4
 
5
5
  const ArrowIcon = () => (index.h("svg", { width: "12", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
6
6
  index.h("path", { d: "M0 10 10 0l1.4 1.4L2.8 10l8.6 8.6L10 20 0 10Z" })));
7
- const CameraIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none" },
8
- index.h("defs", null),
9
- index.h("path", { fill: "#525252", "fill-rule": "evenodd", d: "M9.771 3.89a.875.875 0 01.728-.39h7c.293 0 .566.146.728.39l1.49 2.235h3.033a2.625 2.625 0 012.625 2.625V21a2.625 2.625 0 01-2.625 2.625H5.25A2.625 2.625 0 012.625 21V8.75A2.625 2.625 0 015.25 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.25a.875.875 0 00-.875.875V21a.875.875 0 00.875.875h17.5a.875.875 0 00.875-.875V8.75a.875.875 0 00-.875-.875h-3.5a.875.875 0 01-.729-.39l-1.49-2.235h-6.063z", "clip-rule": "evenodd" }),
10
- index.h("path", { fill: "#525252", "fill-rule": "evenodd", d: "M14 11.375a3.062 3.062 0 100 6.125 3.062 3.062 0 000-6.125zm-4.813 3.063a4.812 4.812 0 119.625 0 4.812 4.812 0 01-9.625 0z", "clip-rule": "evenodd" })));
7
+ const CameraIcon = () => (index.h("svg", { width: "22", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
8
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16.567 3H19A3.01 3.01 0 0 1 22 6v7.69h-2V6c0-.55-.451-1-1.001-1h-3.502l-2.03-3H8.543L6.603 5H3.001c-.55 0-1 .45-1 1v11c0 .55.45 1 1 1h5.933v2H3.001A3.01 3.01 0 0 1 0 17V6c0-1.65 1.35-3 3.001-3h2.522l1.94-3h7.074l2.03 3Zm-5.562 3c1.28 0 2.561.48 3.542 1.46h-.01a4.992 4.992 0 0 1 .64 6.29l3.051 3.05-1.41 1.41-3.052-3.05c-.84.55-1.8.83-2.76.83-1.282 0-2.562-.48-3.543-1.46a5.002 5.002 0 0 1 0-7.07A5.026 5.026 0 0 1 11.005 6Zm-2.771 5a2.763 2.763 0 0 0 2.771 2.77A2.763 2.763 0 0 0 13.776 11a2.763 2.763 0 0 0-2.771-2.77A2.763 2.763 0 0 0 8.234 11Z", fill: "#161616" })));
11
9
  const OnboardingCard1Icon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "120", height: "120", fill: "none" },
12
10
  index.h("defs", null),
13
11
  index.h("path", { fill: "#393939", d: "M74.55 20a5.06 5.06 0 014.14 2l4.72 9.32.1.18.11.17A5.07 5.07 0 0087.93 34h13.87c5.07 0 9.2 3.59 9.2 8v50c0 4.41-4.13 8-9.2 8H18.2c-5.07 0-9.2-3.59-9.2-8V42c0-4.41 4.13-8 9.2-8h13.87a5.072 5.072 0 004.31-2.34l.11-.17.1-.18L41.31 22a5.06 5.06 0 014.14-2h29.1zm0-4h-29.1a9 9 0 00-7.6 4L33 29.5a1.13 1.13 0 01-1 .5H18.2C10.91 30 5 35.37 5 42v50c0 6.63 5.91 12 13.2 12h83.6c7.29 0 13.2-5.37 13.2-12V42c0-6.63-5.91-12-13.2-12H87.93a1.13 1.13 0 01-1-.5L82.15 20a9 9 0 00-7.6-4z" }),
@@ -23,10 +21,10 @@ const OnboardingCard3Icon = () => (index.h("svg", { xmlns: "http://www.w3.org/20
23
21
  index.h("path", { class: "colored", d: "M100 7.94H20a12 12 0 00-12 12v80a11.998 11.998 0 0012 12h80c3.183 0 6.235-1.264 8.485-3.515A11.996 11.996 0 00112 99.94v-80a11.998 11.998 0 00-12-12zm-8 69.24a1.69 1.69 0 01-.85 1.45l-30.31 17.1a1.77 1.77 0 01-1.67 0l-30.32-17.1a1.689 1.689 0 01-.85-1.45V42.82a1.66 1.66 0 01.85-1.45l30.32-17.21a1.71 1.71 0 011.67 0l30.31 17.21a1.67 1.67 0 01.85 1.45v34.36z" })));
24
22
  const CheckIcon = () => (index.h("svg", { width: "14", height: "11", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
25
23
  index.h("path", { d: "M5 10.414 0 5.413 1.413 4 5 7.586 12.585 0 14 1.415l-9 8.999Z", fill: "var(--color-primary, var(--color-primary-system))" })));
26
- const ChevronIcon = () => (index.h("svg", { width: "9", height: "16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
27
- index.h("path", { d: "m9 8-7.895 8L0 14.88 6.79 8 0 1.12 1.105 0 9 8Z", fill: "#525252" })));
28
- const VisualSearchIcon = () => (index.h("svg", { width: "22", height: "22", xmlns: "http://www.w3.org/2000/svg" },
29
- index.h("path", { d: "M18 0h-3v2h3c1.103 0 2 .897 2 2v3h2V4c0-2.206-1.794-4-4-4Zm2 18c0 1.103-.897 2-2 2h-3v2h3c2.206 0 4-1.794 4-4v-3h-2v3ZM2 18v-3H0v3c0 2.206 1.794 4 4 4h3v-2H4c-1.103 0-2-.897-2-2ZM2 4c0-1.103.897-2 2-2h3V0H4C1.794 0 0 1.794 0 4v3h2V4Zm6 6.5C8 9.122 9.122 8 10.5 8S13 9.122 13 10.5 11.878 13 10.5 13A2.503 2.503 0 0 1 8 10.5Zm7.5 6.5a1.503 1.503 0 0 0 1.061-2.561l-2.012-2.011c.293-.6.448-1.26.451-1.928C15 8.019 12.981 6 10.5 6A4.505 4.505 0 0 0 6 10.5c0 2.481 2.019 4.5 4.5 4.5.693 0 1.341-.17 1.928-.451l2.011 2.012c.293.293.677.439 1.061.439Z" })));
24
+ const ChevronIcon = () => (index.h("svg", { width: "9", height: "16", xmlns: "http://www.w3.org/2000/svg" },
25
+ index.h("path", { d: "m9 8-7.895 8L0 14.88 6.79 8 0 1.12 1.105 0 9 8Z" })));
26
+ const VisualSearchIcon = () => (index.h("svg", { width: "20", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
27
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5 2C3.35 2 2 3.35 2 5v2H0V5c0-2.76 2.24-5 5-5h2v2H5Zm5 3c1.28 0 2.56.48 3.54 1.46h-.01a4.994 4.994 0 0 1 .64 6.29l3.05 3.05-1.41 1.41-3.05-3.05c-.84.55-1.8.83-2.76.83a4.98 4.98 0 0 1-3.54-1.46 5.003 5.003 0 0 1 0-7.07C7.44 5.49 8.72 5 10 5Zm-2.77 5c0 .74.29 1.44.81 1.96s1.22.81 1.96.81 1.44-.29 1.96-.81.81-1.22.81-1.96-.29-1.44-.81-1.96-1.22-.81-1.96-.81-1.44.29-1.96.81-.81 1.22-.81 1.96ZM2 15v-2H0v2c0 2.76 2.24 5 5 5h2v-2H5c-1.65 0-3-1.35-3-3ZM13 0h2c2.76 0 5 2.24 5 5v2h-2V5c0-1.65-1.35-3-3-3h-2V0Z", fill: "#161616" })));
30
28
  const CrossIcon = () => (index.h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
31
29
  index.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" })));
32
30
 
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'vviinn-widgets';
24
- const Env = /* vviinn-widgets */ {"packageVersion":"2.2.2","packageName":"vviinn-widgets","environment":"local"};
24
+ const Env = /* vviinn-widgets */ {"packageVersion":"2.3.1","packageName":"vviinn-widgets","environment":"local"};
25
25
 
26
26
  let scopeId;
27
27
  let hostTagName;