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.
- package/dist/components/Handler.js +270 -0
- package/dist/components/NonEmptyArray.js +5699 -0
- package/dist/components/cropper-handler.js +6 -0
- package/dist/components/cropper-handler2.js +39 -0
- package/dist/{cjs/customized-slots-06ca4007.js → components/customized-slots.js} +3 -6
- package/dist/components/highlight-box.js +6 -0
- package/dist/components/highlight-box2.js +52 -0
- package/dist/components/image-cropper.js +6 -0
- package/dist/components/image-cropper2.js +138 -0
- package/dist/components/imageSearch.store.js +10686 -0
- package/dist/components/index.js +1 -0
- package/dist/{esm/index-443468c7.js → components/index2.js} +2 -2
- package/dist/components/index3.js +130 -0
- package/dist/components/recommendations-sidebar.js +101 -0
- package/dist/components/resizer.worker.js +11 -0
- package/dist/components/search-filters.js +6 -0
- package/dist/components/search-filters2.js +89 -0
- package/dist/components/tracking.worker.js +11 -0
- package/dist/components/vviinn-carousel.js +6 -0
- package/dist/components/vviinn-carousel2.js +235 -0
- package/dist/components/vviinn-detected-object.js +6 -0
- package/dist/components/vviinn-detected-object2.js +67 -0
- package/dist/components/vviinn-empty-results.js +6 -0
- package/dist/components/vviinn-empty-results2.js +35 -0
- package/dist/components/vviinn-error.js +6 -0
- package/dist/components/vviinn-error2.js +28 -0
- package/dist/components/vviinn-example-image.js +6 -0
- package/dist/components/vviinn-example-image2.js +57 -0
- package/dist/components/vviinn-example-images.js +6 -0
- package/dist/components/vviinn-example-images2.js +53 -0
- package/dist/components/vviinn-image-selector.js +6 -0
- package/dist/components/vviinn-image-selector2.js +135 -0
- package/dist/components/vviinn-image-view.js +6 -0
- package/dist/components/vviinn-image-view2.js +95 -0
- package/dist/components/vviinn-modal.js +6 -0
- package/dist/components/vviinn-modal2.js +46 -0
- package/dist/components/vviinn-onboarding-card-1.js +6 -0
- package/dist/components/vviinn-onboarding-card-12.js +34 -0
- package/dist/components/vviinn-onboarding-card-2.js +6 -0
- package/dist/components/vviinn-onboarding-card-22.js +34 -0
- package/dist/components/vviinn-onboarding-card-3.js +6 -0
- package/dist/components/vviinn-onboarding-card-32.js +34 -0
- package/dist/components/vviinn-onboarding.js +6 -0
- package/dist/components/vviinn-onboarding2.js +63 -0
- package/dist/components/vviinn-overlay.js +6 -0
- package/dist/components/vviinn-overlay2.js +28 -0
- package/dist/components/vviinn-overlayed-modal.js +6 -0
- package/dist/components/vviinn-overlayed-modal2.js +45 -0
- package/dist/components/vviinn-preloader.js +6 -0
- package/dist/components/vviinn-preloader2.js +34 -0
- package/dist/components/vviinn-privacy-badge.js +6 -0
- package/dist/components/vviinn-privacy-badge2.js +33 -0
- package/dist/components/vviinn-product-card.js +6 -0
- package/dist/components/vviinn-product-card2.js +216 -0
- package/dist/components/vviinn-recommendations-sidebar.js +6 -0
- package/dist/components/vviinn-server-error.js +6 -0
- package/dist/components/vviinn-server-error2.js +35 -0
- package/dist/components/vviinn-slide.js +6 -0
- package/dist/components/vviinn-slide2.js +28 -0
- package/dist/components/vviinn-slider.js +6 -0
- package/dist/components/vviinn-slider2.js +159 -0
- package/dist/components/vviinn-teaser.js +6 -0
- package/dist/components/vviinn-teaser2.js +33 -0
- package/dist/components/vviinn-vpr-button.js +93 -0
- package/dist/components/vviinn-vpr-vidget.js +3360 -0
- package/dist/components/vviinn-vpr-widget.js +6 -0
- package/dist/components/vviinn-vps-button.js +224 -0
- package/dist/components/vviinn-vps-widget.js +6 -0
- package/dist/components/vviinn-vps-widget2.js +350 -0
- package/dist/components/vviinn-wrong-format.js +6 -0
- package/dist/components/vviinn-wrong-format2.js +35 -0
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/stories/lol.d.ts +2 -0
- package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +1 -1
- package/dist/vviinn-widgets/Array-bdfc75db.js +4870 -0
- package/dist/vviinn-widgets/Handler-edcb46f4.js +1422 -0
- package/dist/vviinn-widgets/NonEmptyArray-947ab7b3.js +4411 -0
- package/dist/{esm/app-globals-865bc7a7.js → vviinn-widgets/app-globals-c0aa8ec3.js} +922 -10
- package/dist/vviinn-widgets/cropper-handler.entry.js +23 -0
- package/dist/vviinn-widgets/css-shim-f0027935.js +4 -0
- package/dist/{esm/customized-slots-96902edf.js → vviinn-widgets/customized-slots-5c1c623a.js} +1 -1
- package/dist/vviinn-widgets/dom-db0073f0.js +73 -0
- package/dist/vviinn-widgets/highlight-box.entry.js +41 -0
- package/dist/{collection/components/image-search/image-view/image-cropper/image-cropper.js → vviinn-widgets/image-cropper.entry.js} +33 -70
- package/dist/{cjs/index-df6896e2.js → vviinn-widgets/imageSearch.store-0eed9a5c.js} +11598 -15320
- package/dist/{esm/index-2fdd499d.js → vviinn-widgets/imageSearch.store-b28bddb0.js} +11971 -15281
- package/dist/{collection/components/vviinn-icons/index.js → vviinn-widgets/index-44058ea2.js} +14 -11
- package/dist/vviinn-widgets/index-6c6de682.js +3857 -0
- package/dist/vviinn-widgets/index-de3e14da.js +3010 -0
- package/dist/vviinn-widgets/index.esm.js +1 -0
- package/dist/vviinn-widgets/number-171db649.js +1499 -0
- package/dist/vviinn-widgets/search-filters.entry.js +76 -0
- package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +389 -0
- package/dist/{collection/components/vviinn-carousel/vviinn-carousel.js → vviinn-widgets/vviinn-carousel.entry.js} +18 -113
- package/dist/vviinn-widgets/vviinn-detected-object.entry.js +54 -0
- package/dist/vviinn-widgets/vviinn-empty-results.entry.js +16 -0
- package/dist/vviinn-widgets/vviinn-error.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-example-image.entry.js +38 -0
- package/dist/vviinn-widgets/vviinn-example-images.entry.js +28 -0
- package/dist/vviinn-widgets/vviinn-image-selector.entry.js +31 -0
- package/dist/vviinn-widgets/vviinn-image-view.entry.js +55 -0
- package/dist/vviinn-widgets/vviinn-modal.entry.js +30 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +21 -0
- package/dist/vviinn-widgets/vviinn-onboarding.entry.js +20 -0
- package/dist/vviinn-widgets/vviinn-overlay.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +18 -0
- package/dist/vviinn-widgets/vviinn-preloader.entry.js +25 -0
- package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +20 -0
- package/dist/vviinn-widgets/vviinn-product-card.entry.js +188 -0
- package/dist/{esm → vviinn-widgets}/vviinn-recommendations-sidebar.entry.js +2 -2
- package/dist/vviinn-widgets/vviinn-server-error.entry.js +16 -0
- package/dist/vviinn-widgets/vviinn-slide.entry.js +15 -0
- package/dist/vviinn-widgets/vviinn-slider.entry.js +120 -0
- package/dist/vviinn-widgets/vviinn-teaser.entry.js +20 -0
- package/dist/{esm → vviinn-widgets}/vviinn-vpr-button.entry.js +2 -2
- package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +4588 -0
- package/dist/{esm → vviinn-widgets}/vviinn-vps-button.entry.js +3 -3
- package/dist/vviinn-widgets/vviinn-vps-widget.entry.js +170 -0
- package/dist/vviinn-widgets/vviinn-widgets.css +6 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +125 -1
- package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +16 -0
- package/package.json +8 -2
- package/www/build/p-06c76b5e.js +1 -0
- package/www/build/p-07e16d04.js +15 -0
- package/{dist/vviinn-widgets/p-a6e0710f.entry.js → www/build/p-44bc50de.entry.js} +1 -1
- package/www/build/p-510922c6.js +1 -0
- package/www/build/p-57ce8de3.css +1 -0
- package/www/build/p-591cb193.entry.js +1 -0
- package/www/build/p-6b9d242e.js +1 -0
- package/www/build/p-880bccf1.js +1 -0
- package/www/build/p-b0ada114.entry.js +1 -0
- package/www/build/p-b7be7c70.entry.js +1 -0
- package/{dist/vviinn-widgets/p-166970f3.js → www/build/p-ea8dea5c.js} +1 -1
- package/www/build/vviinn-widgets.css +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +32261 -1
- package/www/sw.js +66 -0
- package/dist/cjs/app-globals-8db3bcbe.js +0 -6912
- package/dist/cjs/cropper-handler_27.cjs.entry.js +0 -1135
- package/dist/cjs/index-3c3ab815.js +0 -1354
- package/dist/cjs/index-f66cd8d1.js +0 -39
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -23
- package/dist/cjs/vviinn-carousel_2.cjs.entry.js +0 -1001
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +0 -65
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +0 -49
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -43
- package/dist/cjs/vviinn-widgets.cjs.js +0 -21
- package/dist/collection/Image/error.js +0 -14
- package/dist/collection/Image/form.js +0 -5
- package/dist/collection/Image/fromFile.js +0 -18
- package/dist/collection/Image/imageToB64.js +0 -9
- package/dist/collection/Image/index.js +0 -0
- package/dist/collection/Image/renderPromise.js +0 -6
- package/dist/collection/Image/resizeImage.js +0 -28
- package/dist/collection/Image/sizing.js +0 -39
- package/dist/collection/Image/toFile.js +0 -17
- package/dist/collection/analytics/GAnalytics.js +0 -32
- package/dist/collection/analytics/GeneralAnalytics.js +0 -9
- package/dist/collection/analytics/GtagAnalytics.js +0 -35
- package/dist/collection/analytics/ProductAnalytics.js +0 -1
- package/dist/collection/campaign/Campaign.js +0 -8
- package/dist/collection/campaign/CampaignService.js +0 -5
- package/dist/collection/campaign/VCSCampaign.js +0 -1
- package/dist/collection/campaign/VCSCampaignResponse.js +0 -1
- package/dist/collection/campaign/VCSCampaignService.js +0 -7
- package/dist/collection/campaign/VPRCampaignResponse.js +0 -1
- package/dist/collection/campaign/VPRCampaignService.js +0 -7
- package/dist/collection/collection-manifest.json +0 -43
- package/dist/collection/components/customized-slots.js +0 -47
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +0 -71
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +0 -25
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -49
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +0 -64
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +0 -33
- package/dist/collection/components/image-search/search-filters/search-filters.css +0 -120
- package/dist/collection/components/image-search/search-filters/search-filters.js +0 -125
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +0 -142
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +0 -7
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +0 -36
- package/dist/collection/components/vviinn-error/vviinn-error.css +0 -38
- package/dist/collection/components/vviinn-error/vviinn-error.js +0 -18
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +0 -3
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +0 -34
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +0 -3
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +0 -34
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +0 -34
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +0 -129
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +0 -19
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +0 -80
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +0 -25
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +0 -64
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +0 -47
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +0 -100
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -31
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +0 -61
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +0 -105
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +0 -98
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +0 -41
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +0 -26
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +0 -26
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +0 -26
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +0 -58
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +0 -28
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +0 -33
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +0 -15
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +0 -29
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +0 -71
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +0 -37
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +0 -20
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -19
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +0 -27
- package/dist/collection/components/vviinn-product-card/render-helpers.js +0 -32
- package/dist/collection/components/vviinn-product-card/stories/args.js +0 -73
- package/dist/collection/components/vviinn-product-card/stories/decorators.js +0 -51
- package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +0 -105
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +0 -95
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +0 -462
- package/dist/collection/components/vviinn-slider/arrow.js +0 -11
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +0 -4
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +0 -15
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -109
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +0 -181
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +0 -14
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +0 -29
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +0 -238
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +0 -220
- package/dist/collection/components/vviinn-vpr-button/stories/args.js +0 -213
- package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +0 -91
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +0 -35
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +0 -179
- package/dist/collection/components/vviinn-vpr-widget/stories/args.js +0 -197
- package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +0 -29
- package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +0 -211
- package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +0 -11
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +0 -510
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +0 -79
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +0 -35
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -3
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +0 -195
- package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +0 -37
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -350
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +0 -375
- package/dist/collection/cropper/Cropper.js +0 -1
- package/dist/collection/cropper/Handler.js +0 -61
- package/dist/collection/dom/index.js +0 -3
- package/dist/collection/error.js +0 -14
- package/dist/collection/file/index.js +0 -4
- package/dist/collection/geometry/Clip.js +0 -14
- package/dist/collection/geometry/Point.js +0 -32
- package/dist/collection/geometry/Rectangle.js +0 -95
- package/dist/collection/geometry/RectangleAlt.js +0 -1
- package/dist/collection/geometry/Sized.js +0 -8
- package/dist/collection/global.js +0 -19
- package/dist/collection/index.js +0 -1
- package/dist/collection/interfaces/generated.js +0 -5
- package/dist/collection/interfaces/recommendation.js +0 -1
- package/dist/collection/network/apiClient.js +0 -9
- package/dist/collection/network/ion/File.js +0 -14
- package/dist/collection/network/ion/Form.js +0 -64
- package/dist/collection/network/ion/Link.js +0 -8
- package/dist/collection/network/ion/ValueObject.js +0 -23
- package/dist/collection/network/request.js +0 -19
- package/dist/collection/network/utils.js +0 -37
- package/dist/collection/openApi/index.js +0 -27
- package/dist/collection/recommendation/events.js +0 -1
- package/dist/collection/recommendation/recommendation.js +0 -1
- package/dist/collection/searchSession/searchSession.js +0 -31
- package/dist/collection/sentry.js +0 -14
- package/dist/collection/slider/GridMode.js +0 -1
- package/dist/collection/store/file-processing.js +0 -13
- package/dist/collection/store/imageSearch.store.js +0 -133
- package/dist/collection/store/store.js +0 -3
- package/dist/collection/store/tracking.store.js +0 -3
- package/dist/collection/stories/Button.js +0 -21
- package/dist/collection/stories/Button.stories.js +0 -42
- package/dist/collection/stories/Header.js +0 -45
- package/dist/collection/stories/Header.stories.js +0 -15
- package/dist/collection/stories/Page.js +0 -61
- package/dist/collection/stories/Page.stories.js +0 -19
- package/dist/collection/stories/assets/code-brackets.svg +0 -1
- package/dist/collection/stories/assets/colors.svg +0 -1
- package/dist/collection/stories/assets/comments.svg +0 -1
- package/dist/collection/stories/assets/direction.svg +0 -1
- package/dist/collection/stories/assets/flow.svg +0 -1
- package/dist/collection/stories/assets/plugin.svg +0 -1
- package/dist/collection/stories/assets/repo.svg +0 -1
- package/dist/collection/stories/assets/stackalt.svg +0 -1
- package/dist/collection/stories/image-selector.stories.js +0 -6
- package/dist/collection/stories/image-view.stories.js +0 -6
- package/dist/collection/stories/modal.stories.js +0 -12
- package/dist/collection/stories/onboarding.stories.js +0 -11
- package/dist/collection/stories/overlay.stories.js +0 -5
- package/dist/collection/stories/overlayedModal.stories.js +0 -8
- package/dist/collection/stories/privacy-badge.stories.js +0 -11
- package/dist/collection/stories/slider.stories.js +0 -17
- package/dist/collection/stories/teaser.stories.js +0 -5
- package/dist/collection/stories/vps-widget.stories.js +0 -47
- package/dist/collection/stories/vviinn-product.stories.js +0 -19
- package/dist/collection/tracking/event.js +0 -3
- package/dist/collection/tracking/filter.js +0 -5
- package/dist/collection/tracking/index.js +0 -13
- package/dist/collection/tracking/models.js +0 -6
- package/dist/collection/tracking/product.js +0 -18
- package/dist/collection/tracking/search.js +0 -5
- package/dist/collection/tracking/widget.js +0 -10
- package/dist/collection/utils/collections/collectionsUtils.js +0 -5
- package/dist/collection/utils/either.js +0 -3
- package/dist/collection/utils/enum/enumUtils.js +0 -3
- package/dist/collection/utils/event/Events.js +0 -1
- package/dist/collection/utils/number/index.js +0 -4
- package/dist/collection/utils/option/option.js +0 -4
- package/dist/collection/utils/semigroup/semigroupDiff.js +0 -6
- package/dist/collection/utils/token/tokenUtils.js +0 -9
- package/dist/esm/cropper-handler_27.entry.js +0 -1105
- package/dist/esm/index-51f71d18.js +0 -1323
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -19
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/vviinn-carousel_2.entry.js +0 -996
- package/dist/esm/vviinn-widgets.js +0 -19
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -12
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/vviinn-widgets/p-2dd35f19.entry.js +0 -1
- package/dist/vviinn-widgets/p-3469b71a.js +0 -1
- package/dist/vviinn-widgets/p-40bea5b5.entry.js +0 -1
- package/dist/vviinn-widgets/p-465d043d.js +0 -15
- package/dist/vviinn-widgets/p-59bd2a99.js +0 -1
- package/dist/vviinn-widgets/p-74ed36af.entry.js +0 -1
- package/dist/vviinn-widgets/p-9def6b8b.entry.js +0 -1
- package/dist/vviinn-widgets/p-cd995515.js +0 -1
- package/www/build/p-166970f3.js +0 -1
- package/www/build/p-2dd35f19.entry.js +0 -1
- package/www/build/p-3469b71a.js +0 -1
- package/www/build/p-40bea5b5.entry.js +0 -1
- package/www/build/p-465d043d.js +0 -15
- package/www/build/p-59bd2a99.js +0 -1
- package/www/build/p-61933b75.js +0 -1
- package/www/build/p-74ed36af.entry.js +0 -1
- package/www/build/p-9def6b8b.entry.js +0 -1
- package/www/build/p-a67898be.css +0 -1
- package/www/build/p-a6e0710f.entry.js +0 -1
- package/www/build/p-cd995515.js +0 -1
- package/www/favicon.ico +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { e as CameraIcon } from './index2.js';
|
|
3
|
+
import { S as SlotSkeleton } from './customized-slots.js';
|
|
4
|
+
import { d as defineCustomElement$s } from './cropper-handler2.js';
|
|
5
|
+
import { d as defineCustomElement$r } from './highlight-box2.js';
|
|
6
|
+
import { d as defineCustomElement$q } from './image-cropper2.js';
|
|
7
|
+
import { d as defineCustomElement$p } from './search-filters2.js';
|
|
8
|
+
import { d as defineCustomElement$o } from './vviinn-detected-object2.js';
|
|
9
|
+
import { d as defineCustomElement$n } from './vviinn-empty-results2.js';
|
|
10
|
+
import { d as defineCustomElement$m } from './vviinn-error2.js';
|
|
11
|
+
import { d as defineCustomElement$l } from './vviinn-example-image2.js';
|
|
12
|
+
import { d as defineCustomElement$k } from './vviinn-example-images2.js';
|
|
13
|
+
import { d as defineCustomElement$j } from './vviinn-image-selector2.js';
|
|
14
|
+
import { d as defineCustomElement$i } from './vviinn-image-view2.js';
|
|
15
|
+
import { d as defineCustomElement$h } from './vviinn-modal2.js';
|
|
16
|
+
import { d as defineCustomElement$g } from './vviinn-onboarding2.js';
|
|
17
|
+
import { d as defineCustomElement$f } from './vviinn-onboarding-card-12.js';
|
|
18
|
+
import { d as defineCustomElement$e } from './vviinn-onboarding-card-22.js';
|
|
19
|
+
import { d as defineCustomElement$d } from './vviinn-onboarding-card-32.js';
|
|
20
|
+
import { d as defineCustomElement$c } from './vviinn-overlay2.js';
|
|
21
|
+
import { d as defineCustomElement$b } from './vviinn-overlayed-modal2.js';
|
|
22
|
+
import { d as defineCustomElement$a } from './vviinn-preloader2.js';
|
|
23
|
+
import { d as defineCustomElement$9 } from './vviinn-privacy-badge2.js';
|
|
24
|
+
import { d as defineCustomElement$8 } from './vviinn-product-card2.js';
|
|
25
|
+
import { d as defineCustomElement$7 } from './vviinn-server-error2.js';
|
|
26
|
+
import { d as defineCustomElement$6 } from './vviinn-slide2.js';
|
|
27
|
+
import { d as defineCustomElement$5 } from './vviinn-slider2.js';
|
|
28
|
+
import { d as defineCustomElement$4 } from './vviinn-teaser2.js';
|
|
29
|
+
import { d as defineCustomElement$3 } from './vviinn-vps-widget2.js';
|
|
30
|
+
import { d as defineCustomElement$2 } from './vviinn-wrong-format2.js';
|
|
31
|
+
|
|
32
|
+
const vviinnVpsButtonCss = ":host{cursor:pointer}";
|
|
33
|
+
|
|
34
|
+
let VviinnVpsButton$1 = class extends HTMLElement {
|
|
35
|
+
constructor() {
|
|
36
|
+
super();
|
|
37
|
+
this.__registerHost();
|
|
38
|
+
attachShadow(this);
|
|
39
|
+
this.globalSlotsChanged = createEvent(this, "globalSlotsChanged", 7);
|
|
40
|
+
/** Currency sign will shown after price */
|
|
41
|
+
this.currencySign = "€";
|
|
42
|
+
/** Locale for currency formatting */
|
|
43
|
+
this.locale = "de-DE";
|
|
44
|
+
this.pressed = false;
|
|
45
|
+
}
|
|
46
|
+
handleModalClosed() {
|
|
47
|
+
this.pressed = false;
|
|
48
|
+
}
|
|
49
|
+
componentDidLoad() {
|
|
50
|
+
const slots = this.el.querySelectorAll("[slot]");
|
|
51
|
+
this.globalSlotsChanged.emit(Array.from(slots));
|
|
52
|
+
}
|
|
53
|
+
handleKeyDown(ev) {
|
|
54
|
+
if (ev.code !== "Enter" && ev.code !== "Space")
|
|
55
|
+
return;
|
|
56
|
+
this.pressed = true;
|
|
57
|
+
}
|
|
58
|
+
handleClick() {
|
|
59
|
+
this.pressed = true;
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
return (h(Host, { tabindex: "0", role: "button", pressed: this.pressed, onClick: () => this.handleClick(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("slot", null, h(CameraIcon, null)), h(SlotSkeleton, null), h("vviinn-vps-widget", { active: this.pressed, "currency-sign": "\u20AC", token: this.token, locale: this.locale, apiPath: this.apiPath, exportparts: "brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title, product-card, example-images", campaignId: this.campaignId })));
|
|
63
|
+
}
|
|
64
|
+
get el() { return this; }
|
|
65
|
+
static get style() { return vviinnVpsButtonCss; }
|
|
66
|
+
};
|
|
67
|
+
VviinnVpsButton$1 = /*@__PURE__*/ proxyCustomElement(VviinnVpsButton$1, [1, "vviinn-vps-button", {
|
|
68
|
+
"token": [1],
|
|
69
|
+
"currencySign": [1, "currency-sign"],
|
|
70
|
+
"locale": [1],
|
|
71
|
+
"campaignId": [1, "campaign-id"],
|
|
72
|
+
"apiPath": [1, "api-path"],
|
|
73
|
+
"pressed": [32]
|
|
74
|
+
}, [[0, "modalClosed", "handleModalClosed"]]]);
|
|
75
|
+
function defineCustomElement$1() {
|
|
76
|
+
const components = ["vviinn-vps-button", "cropper-handler", "highlight-box", "image-cropper", "search-filters", "vviinn-detected-object", "vviinn-empty-results", "vviinn-error", "vviinn-example-image", "vviinn-example-images", "vviinn-image-selector", "vviinn-image-view", "vviinn-modal", "vviinn-onboarding", "vviinn-onboarding-card-1", "vviinn-onboarding-card-2", "vviinn-onboarding-card-3", "vviinn-overlay", "vviinn-overlayed-modal", "vviinn-preloader", "vviinn-privacy-badge", "vviinn-product-card", "vviinn-server-error", "vviinn-slide", "vviinn-slider", "vviinn-teaser", "vviinn-vps-widget", "vviinn-wrong-format"];
|
|
77
|
+
components.forEach(tagName => { switch (tagName) {
|
|
78
|
+
case "vviinn-vps-button":
|
|
79
|
+
if (!customElements.get(tagName)) {
|
|
80
|
+
customElements.define(tagName, VviinnVpsButton$1);
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case "cropper-handler":
|
|
84
|
+
if (!customElements.get(tagName)) {
|
|
85
|
+
defineCustomElement$s();
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
case "highlight-box":
|
|
89
|
+
if (!customElements.get(tagName)) {
|
|
90
|
+
defineCustomElement$r();
|
|
91
|
+
}
|
|
92
|
+
break;
|
|
93
|
+
case "image-cropper":
|
|
94
|
+
if (!customElements.get(tagName)) {
|
|
95
|
+
defineCustomElement$q();
|
|
96
|
+
}
|
|
97
|
+
break;
|
|
98
|
+
case "search-filters":
|
|
99
|
+
if (!customElements.get(tagName)) {
|
|
100
|
+
defineCustomElement$p();
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
case "vviinn-detected-object":
|
|
104
|
+
if (!customElements.get(tagName)) {
|
|
105
|
+
defineCustomElement$o();
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
case "vviinn-empty-results":
|
|
109
|
+
if (!customElements.get(tagName)) {
|
|
110
|
+
defineCustomElement$n();
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
case "vviinn-error":
|
|
114
|
+
if (!customElements.get(tagName)) {
|
|
115
|
+
defineCustomElement$m();
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
case "vviinn-example-image":
|
|
119
|
+
if (!customElements.get(tagName)) {
|
|
120
|
+
defineCustomElement$l();
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
case "vviinn-example-images":
|
|
124
|
+
if (!customElements.get(tagName)) {
|
|
125
|
+
defineCustomElement$k();
|
|
126
|
+
}
|
|
127
|
+
break;
|
|
128
|
+
case "vviinn-image-selector":
|
|
129
|
+
if (!customElements.get(tagName)) {
|
|
130
|
+
defineCustomElement$j();
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
case "vviinn-image-view":
|
|
134
|
+
if (!customElements.get(tagName)) {
|
|
135
|
+
defineCustomElement$i();
|
|
136
|
+
}
|
|
137
|
+
break;
|
|
138
|
+
case "vviinn-modal":
|
|
139
|
+
if (!customElements.get(tagName)) {
|
|
140
|
+
defineCustomElement$h();
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
143
|
+
case "vviinn-onboarding":
|
|
144
|
+
if (!customElements.get(tagName)) {
|
|
145
|
+
defineCustomElement$g();
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
case "vviinn-onboarding-card-1":
|
|
149
|
+
if (!customElements.get(tagName)) {
|
|
150
|
+
defineCustomElement$f();
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
153
|
+
case "vviinn-onboarding-card-2":
|
|
154
|
+
if (!customElements.get(tagName)) {
|
|
155
|
+
defineCustomElement$e();
|
|
156
|
+
}
|
|
157
|
+
break;
|
|
158
|
+
case "vviinn-onboarding-card-3":
|
|
159
|
+
if (!customElements.get(tagName)) {
|
|
160
|
+
defineCustomElement$d();
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
case "vviinn-overlay":
|
|
164
|
+
if (!customElements.get(tagName)) {
|
|
165
|
+
defineCustomElement$c();
|
|
166
|
+
}
|
|
167
|
+
break;
|
|
168
|
+
case "vviinn-overlayed-modal":
|
|
169
|
+
if (!customElements.get(tagName)) {
|
|
170
|
+
defineCustomElement$b();
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
case "vviinn-preloader":
|
|
174
|
+
if (!customElements.get(tagName)) {
|
|
175
|
+
defineCustomElement$a();
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
case "vviinn-privacy-badge":
|
|
179
|
+
if (!customElements.get(tagName)) {
|
|
180
|
+
defineCustomElement$9();
|
|
181
|
+
}
|
|
182
|
+
break;
|
|
183
|
+
case "vviinn-product-card":
|
|
184
|
+
if (!customElements.get(tagName)) {
|
|
185
|
+
defineCustomElement$8();
|
|
186
|
+
}
|
|
187
|
+
break;
|
|
188
|
+
case "vviinn-server-error":
|
|
189
|
+
if (!customElements.get(tagName)) {
|
|
190
|
+
defineCustomElement$7();
|
|
191
|
+
}
|
|
192
|
+
break;
|
|
193
|
+
case "vviinn-slide":
|
|
194
|
+
if (!customElements.get(tagName)) {
|
|
195
|
+
defineCustomElement$6();
|
|
196
|
+
}
|
|
197
|
+
break;
|
|
198
|
+
case "vviinn-slider":
|
|
199
|
+
if (!customElements.get(tagName)) {
|
|
200
|
+
defineCustomElement$5();
|
|
201
|
+
}
|
|
202
|
+
break;
|
|
203
|
+
case "vviinn-teaser":
|
|
204
|
+
if (!customElements.get(tagName)) {
|
|
205
|
+
defineCustomElement$4();
|
|
206
|
+
}
|
|
207
|
+
break;
|
|
208
|
+
case "vviinn-vps-widget":
|
|
209
|
+
if (!customElements.get(tagName)) {
|
|
210
|
+
defineCustomElement$3();
|
|
211
|
+
}
|
|
212
|
+
break;
|
|
213
|
+
case "vviinn-wrong-format":
|
|
214
|
+
if (!customElements.get(tagName)) {
|
|
215
|
+
defineCustomElement$2();
|
|
216
|
+
}
|
|
217
|
+
break;
|
|
218
|
+
} });
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const VviinnVpsButton = VviinnVpsButton$1;
|
|
222
|
+
const defineCustomElement = defineCustomElement$1;
|
|
223
|
+
|
|
224
|
+
export { VviinnVpsButton, defineCustomElement };
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { x as createWorkerProxy, i as imageSearchState, s as state, j as imageSearcStateListener, y as isEmpty } from './imageSearch.store.js';
|
|
3
|
+
import { _ as _function, O as Option } from './NonEmptyArray.js';
|
|
4
|
+
import { s as slotChangeListener } from './customized-slots.js';
|
|
5
|
+
import { d as createProductViewVpsEvent, e as createProductClickVpsEvent, f as createSearchEvent, g as createFilterEvent, v as v4, h as createWidgetVpsEvent } from './index3.js';
|
|
6
|
+
import { d as defineCustomElement$q } from './cropper-handler2.js';
|
|
7
|
+
import { d as defineCustomElement$p } from './highlight-box2.js';
|
|
8
|
+
import { d as defineCustomElement$o } from './image-cropper2.js';
|
|
9
|
+
import { d as defineCustomElement$n } from './search-filters2.js';
|
|
10
|
+
import { d as defineCustomElement$m } from './vviinn-detected-object2.js';
|
|
11
|
+
import { d as defineCustomElement$l } from './vviinn-empty-results2.js';
|
|
12
|
+
import { d as defineCustomElement$k } from './vviinn-error2.js';
|
|
13
|
+
import { d as defineCustomElement$j } from './vviinn-example-image2.js';
|
|
14
|
+
import { d as defineCustomElement$i } from './vviinn-example-images2.js';
|
|
15
|
+
import { d as defineCustomElement$h } from './vviinn-image-selector2.js';
|
|
16
|
+
import { d as defineCustomElement$g } from './vviinn-image-view2.js';
|
|
17
|
+
import { d as defineCustomElement$f } from './vviinn-modal2.js';
|
|
18
|
+
import { d as defineCustomElement$e } from './vviinn-onboarding2.js';
|
|
19
|
+
import { d as defineCustomElement$d } from './vviinn-onboarding-card-12.js';
|
|
20
|
+
import { d as defineCustomElement$c } from './vviinn-onboarding-card-22.js';
|
|
21
|
+
import { d as defineCustomElement$b } from './vviinn-onboarding-card-32.js';
|
|
22
|
+
import { d as defineCustomElement$a } from './vviinn-overlay2.js';
|
|
23
|
+
import { d as defineCustomElement$9 } from './vviinn-overlayed-modal2.js';
|
|
24
|
+
import { d as defineCustomElement$8 } from './vviinn-preloader2.js';
|
|
25
|
+
import { d as defineCustomElement$7 } from './vviinn-privacy-badge2.js';
|
|
26
|
+
import { d as defineCustomElement$6 } from './vviinn-product-card2.js';
|
|
27
|
+
import { d as defineCustomElement$5 } from './vviinn-server-error2.js';
|
|
28
|
+
import { d as defineCustomElement$4 } from './vviinn-slide2.js';
|
|
29
|
+
import { d as defineCustomElement$3 } from './vviinn-slider2.js';
|
|
30
|
+
import { d as defineCustomElement$2 } from './vviinn-teaser2.js';
|
|
31
|
+
import { d as defineCustomElement$1 } from './vviinn-wrong-format2.js';
|
|
32
|
+
|
|
33
|
+
const workerPromise = import('./tracking.worker.js').then(m => m.worker);
|
|
34
|
+
const trackEvent = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.tracking.worker', 'trackEvent');
|
|
35
|
+
|
|
36
|
+
const vviinnVpsWidgetCss = ":host{--color-primary-system:#0f62fe;--color-primary-hover-system:#014cda;--color-icons-system:#2f8edf;--spacer:8px}:host{display:block}.hidden{height:1px;visibility:hidden}vviinn-overlayed-modal.first-screen::part(secondary-action),vviinn-overlayed-modal.first-screen::part(title){visibility:hidden}.start-page{display:grid;grid-template-columns:repeat(2,1fr);min-height:580px}.start-page_block{align-content:start;border-right:1px solid #f4f4f4;display:grid;padding:48px}.start-page_block.error{align-content:center}#onboarding-block{grid-gap:24px;border-right:unset;box-sizing:border-box;overflow-y:auto;position:relative;width:100%}vviinn-teaser{margin-bottom:32px;margin-top:-24px}vviinn-image-selector{align-items:center;background:var(--color-primary,var(--color-primary-system));border-color:var(--color-primary,var(--color-primary-system));border-radius:2px;color:#fff;display:grid;font-size:16px;font-weight:600;height:56px;justify-items:center;margin-bottom:16px;transition:background .1s ease-in-out}vviinn-image-selector:hover{background:var(--color-primary-hover,var(--color-primary-hover-system));border-color:var(--color-primary-hover,var(--color-primary-hover-system))}vviinn-image-selector:active{border-color:#000}.upload-button-content{grid-gap:16px;align-items:center;display:grid;grid-template-columns:-webkit-max-content auto;grid-template-columns:max-content auto;justify-content:center;justify-items:start}.results-page{box-sizing:border-box;display:grid;grid-template-columns:336px auto}.results-page>*{box-sizing:border-box;padding:24px}.products{grid-gap:32px 16px;align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-template-columns:repeat(auto-fill,minmax(152px,1fr));justify-items:center;padding:24px 0 24px 24px;position:absolute;width:calc(100% - 16px)}.products.hidden{display:none}vviinn-empty-results{align-self:center;justify-self:center;width:280px}.products-wrapper{display:grid;overflow-x:hidden;overflow-y:auto;padding:unset;position:relative;width:100%}.image-wrapper{grid-gap:24px;border-right:1px solid #f4f4f4;display:grid;grid-template-rows:-webkit-min-content 170px;grid-template-rows:min-content 170px;min-width:100%}.onboarding-wrapper{grid-gap:64px;box-sizing:border-box;display:grid;padding:48px 48px 24px;position:absolute;width:100%}vviinn-product-card{gap:0;width:100%}vviinn-product-card::part(image){border:1px solid #eaeaea;margin-bottom:8px}vviinn-product-card::part(deeplink),vviinn-product-card::part(price-container),vviinn-product-card::part(title){align-self:start}search-filters span{display:none}search-filters::part(filter){background:#f4f4f4;border:1px solid #f4f4f4;border-radius:4px;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px}search-filters::part(show-more-filters){border:1px solid #f4f4f4;border-radius:4px;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px;padding:6px 16px}search-filters::part(show-more-filters):hover{background:#eaeaea}search-filters::part(filter):hover{background:#eaeaea}search-filters::part(filter):focus{border:1px solid var(--color-primary,var(--color-primary-system));outline:none}search-filters::part(filter active){background:rgba(15,98,254,.15);color:var(--color-primary,var(--color-primary-system))}.filters-wrapper{overflow:auto}.results-page:not(.active){display:none}.nothing-found{grid-gap:64px;display:grid;justify-self:center;padding-bottom:16px;padding-top:64px;position:absolute;width:60%}@media (max-width:768px){.onboarding-wrapper,.start-page_block{padding:24px}}@media (max-width:640px){.start-page{grid-gap:48px;grid-template-columns:unset;grid-template-rows:-webkit-min-content;grid-template-rows:min-content;padding:24px 0 48px}}@media (max-width:640px) and (min-width:415px){.onboarding-wrapper{position:unset}#onboarding-block{overflow:unset}.start-page.active{height:1px;overflow:auto}}@media (max-width:415px){.results-page>*{box-sizing:border-box;padding:24px}vviinn-slide{padding-bottom:48px}.start-page_block:last-of-type{border-right:unset;box-sizing:border-box;overflow-y:unset;position:static;width:unset}.start-page_block{padding:0 24px}vviinn-teaser{margin-top:24px}.onboarding-wrapper{box-sizing:border-box;padding:unset;position:static;width:unset}.results-page{grid-template-columns:unset;grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto}.image{margin-bottom:8px}.image-wrapper{grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto;width:100%}.products-wrapper{align-content:start;overflow-y:unset;padding-top:0;position:static;width:100%}.products{grid-gap:32px 16px;justify-content:center;padding:0}.nothing-found,.products{position:static;width:unset}.nothing-found{grid-gap:64px;align-content:start;padding:unset}}@media (max-width:320px){.products{grid-template-columns:unset}}vviinn-server-error,vviinn-wrong-format{align-self:center;justify-self:center;width:280px}";
|
|
37
|
+
|
|
38
|
+
const filterInt = (value) => /^[-+]?(\d+|Infinity)$/.test(value) ? Number(value) : NaN;
|
|
39
|
+
const notEmptyString = (s) => !isEmpty(s);
|
|
40
|
+
const notNan = (n) => !isNaN(n);
|
|
41
|
+
let VviinnVpsWidget = class extends HTMLElement {
|
|
42
|
+
constructor() {
|
|
43
|
+
super();
|
|
44
|
+
this.__registerHost();
|
|
45
|
+
attachShadow(this);
|
|
46
|
+
/** @internal */
|
|
47
|
+
this.apiPath = "https://api.vviinn.com";
|
|
48
|
+
/** When true modal window with widget will be shown */
|
|
49
|
+
this.active = false;
|
|
50
|
+
/** Currency sign will shown after price */
|
|
51
|
+
this.currencySign = "€";
|
|
52
|
+
/** Locale for currency formatting */
|
|
53
|
+
this.locale = "de-DE";
|
|
54
|
+
this.slidePosition = 0;
|
|
55
|
+
this.width = 0;
|
|
56
|
+
this.wrongImageFormat = false;
|
|
57
|
+
this.imageSource = null;
|
|
58
|
+
}
|
|
59
|
+
activeWatcher(value) {
|
|
60
|
+
if (value) {
|
|
61
|
+
this.overflow = document.body.style.overflow;
|
|
62
|
+
document.body.style.overflow = "hidden";
|
|
63
|
+
this.trackOpenEvent();
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
document.body.style.overflow = this.overflow;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
trackRecommendationView({ detail }) {
|
|
70
|
+
const recommendationViewEvent = createProductViewVpsEvent(Object.assign({ session_id: this.uiSessionId }, detail));
|
|
71
|
+
trackEvent(this.apiPath, this.token, recommendationViewEvent);
|
|
72
|
+
}
|
|
73
|
+
trackRecommendationClick({ detail }) {
|
|
74
|
+
const recommendationClickEvent = createProductClickVpsEvent(Object.assign({ session_id: this.uiSessionId }, detail));
|
|
75
|
+
trackEvent(this.apiPath, this.token, recommendationClickEvent).finally(() => {
|
|
76
|
+
const product = imageSearchState.results.find((r) => r.productId === detail.product);
|
|
77
|
+
if (!product || !product.deeplink)
|
|
78
|
+
return;
|
|
79
|
+
window.location.href = product.deeplink;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
trachSearchAreaChanges() {
|
|
83
|
+
const searchEvent = createSearchEvent({
|
|
84
|
+
session_id: this.uiSessionId,
|
|
85
|
+
source: this.imageSource,
|
|
86
|
+
search_area: "manual-selection",
|
|
87
|
+
});
|
|
88
|
+
trackEvent(this.apiPath, this.token, searchEvent);
|
|
89
|
+
}
|
|
90
|
+
trackDetectedObject() {
|
|
91
|
+
const searchEvent = createSearchEvent({
|
|
92
|
+
session_id: this.uiSessionId,
|
|
93
|
+
source: this.imageSource,
|
|
94
|
+
search_area: "attention-point",
|
|
95
|
+
});
|
|
96
|
+
trackEvent(this.apiPath, this.token, searchEvent);
|
|
97
|
+
}
|
|
98
|
+
trackFilter({ detail }) {
|
|
99
|
+
const searchEvent = createFilterEvent({
|
|
100
|
+
session_id: this.uiSessionId,
|
|
101
|
+
source: this.imageSource,
|
|
102
|
+
kind: "category",
|
|
103
|
+
action: detail,
|
|
104
|
+
});
|
|
105
|
+
trackEvent(this.apiPath, this.token, searchEvent);
|
|
106
|
+
}
|
|
107
|
+
componentWillLoad() {
|
|
108
|
+
slotChangeListener(this, this.el);
|
|
109
|
+
}
|
|
110
|
+
connectedCallback() {
|
|
111
|
+
state.apiPath = this.apiPath;
|
|
112
|
+
state.currencySign = this.currencySign;
|
|
113
|
+
state.locale = this.locale;
|
|
114
|
+
imageSearchState.token = this.token;
|
|
115
|
+
imageSearchState.campaignId = _function.pipe(this.campaignId, Option.fromNullable, Option.chain(Option.fromPredicate(notEmptyString)), Option.map(filterInt), Option.chain(Option.fromPredicate(notNan)), Option.map((s) => `${s}`));
|
|
116
|
+
this.uiSessionId = v4();
|
|
117
|
+
imageSearcStateListener("status", (status) => {
|
|
118
|
+
this.slidePosition = status === "fullfield" ? 1 : 0;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
trackOpenEvent() {
|
|
122
|
+
const widgetOpenEvent = createWidgetVpsEvent({
|
|
123
|
+
action: "open",
|
|
124
|
+
session_id: this.uiSessionId,
|
|
125
|
+
});
|
|
126
|
+
trackEvent(this.apiPath, this.token, widgetOpenEvent);
|
|
127
|
+
}
|
|
128
|
+
handleImageSelection(source) {
|
|
129
|
+
this.imageSource = source;
|
|
130
|
+
const root = this.el.shadowRoot.querySelector("vviinn-overlayed-modal");
|
|
131
|
+
const overlay = root.shadowRoot.querySelector("vviinn-overlay");
|
|
132
|
+
const modal = overlay.querySelector("vviinn-modal");
|
|
133
|
+
const modalBody = modal.shadowRoot.querySelector(".body");
|
|
134
|
+
modalBody.scrollTop = 0;
|
|
135
|
+
this.trackInitialSearch();
|
|
136
|
+
}
|
|
137
|
+
trackInitialSearch() {
|
|
138
|
+
const searchEvent = createSearchEvent({
|
|
139
|
+
session_id: this.uiSessionId,
|
|
140
|
+
source: this.imageSource,
|
|
141
|
+
search_area: "full",
|
|
142
|
+
});
|
|
143
|
+
trackEvent(this.apiPath, this.token, searchEvent);
|
|
144
|
+
}
|
|
145
|
+
resetState() {
|
|
146
|
+
this.resetScroll("onboarding-block");
|
|
147
|
+
imageSearchState.image = Option.none;
|
|
148
|
+
imageSearchState.imageUrl = Option.none;
|
|
149
|
+
imageSearchState.imageBounds = Option.none;
|
|
150
|
+
imageSearchState.searchArea = Option.none;
|
|
151
|
+
imageSearchState.results = [];
|
|
152
|
+
imageSearchState.filters = [];
|
|
153
|
+
imageSearchState.detectedObjects = [];
|
|
154
|
+
imageSearchState.activeIonLink = undefined;
|
|
155
|
+
imageSearchState.rectangleSearchForm = undefined;
|
|
156
|
+
imageSearchState.status = "idle";
|
|
157
|
+
this.resetScroll("results-block");
|
|
158
|
+
}
|
|
159
|
+
haveErrors() {
|
|
160
|
+
return this.wrongImageFormat || imageSearchState.serverError;
|
|
161
|
+
}
|
|
162
|
+
resetScroll(elementId, behavior = "auto") {
|
|
163
|
+
const element = this.el.shadowRoot.getElementById(elementId);
|
|
164
|
+
element.scroll({ top: 0, left: 0, behavior });
|
|
165
|
+
}
|
|
166
|
+
handleModalClose() {
|
|
167
|
+
this.active = false;
|
|
168
|
+
this.resetState();
|
|
169
|
+
const elementsToReset = ["onboarding-block", "results-block"];
|
|
170
|
+
elementsToReset.forEach((name) => this.resetScroll(name));
|
|
171
|
+
const widgetOpenEvent = createWidgetVpsEvent({
|
|
172
|
+
action: "close",
|
|
173
|
+
session_id: this.uiSessionId,
|
|
174
|
+
});
|
|
175
|
+
trackEvent(this.apiPath, this.token, widgetOpenEvent);
|
|
176
|
+
}
|
|
177
|
+
render() {
|
|
178
|
+
return (h(Host, null, h("vviinn-overlayed-modal", { class: { "first-screen": this.slidePosition === 0 }, active: this.active, onSecondaryActionClicked: () => this.resetState(), onModalClosed: () => this.handleModalClose(), exportparts: "secondary-action, title, close-button, example-images" }, h("vviinn-slider", { showBullets: false, position: this.slidePosition }, h("vviinn-slide", { class: { "start-page": true } }, h("div", { class: {
|
|
179
|
+
error: this.haveErrors(),
|
|
180
|
+
"start-page_block": true,
|
|
181
|
+
} }, h("vviinn-wrong-format", { class: { hidden: !this.wrongImageFormat }, onActionClick: () => (this.wrongImageFormat = false) }), h("vviinn-server-error", { class: { hidden: !imageSearchState.serverError }, onActionClick: () => (imageSearchState.serverError = false) }), h("vviinn-teaser", { class: { hidden: this.haveErrors() } }), h("vviinn-image-selector", { class: { hidden: this.haveErrors() }, onImageSelected: () => this.handleImageSelection("upload"), onImageSelectedError: () => (this.wrongImageFormat = true), part: "select-image_button" }, h("span", { slot: "upload-button-text", class: "upload-button-content" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "29", height: "28", fill: "none" }, h("defs", null), h("path", { fill: "#fff", "fill-rule": "evenodd", d: "M10.271 3.89A.875.875 0 0111 3.5h7c.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.75A2.625 2.625 0 013.125 21V8.75A2.625 2.625 0 015.75 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.75a.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" }), h("path", { fill: "#fff", "fill-rule": "evenodd", d: "M14.5 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" })), h("slot", { name: "vviinn-image-upload-button-text" }, h("span", null, "Kamera oder Bild ausw\u00E4hlen")))), h("vviinn-privacy-badge", { class: { hidden: this.haveErrors() } })), h("div", { id: "onboarding-block", class: "start-page_block" }, h("div", { class: "onboarding-wrapper" }, h("vviinn-onboarding", null), h("vviinn-example-images", { part: "example-images", onImageSelected: () => this.handleImageSelection("example"), onImageSelectedError: () => this.resetScroll("onboarding-block", "smooth") })))), h("vviinn-slide", { class: { "results-page": true, active: this.slidePosition == 1 } }, h("div", { class: "image-wrapper" }, h("vviinn-image-view", null), h("div", { class: "filters-wrapper" }, h("div", { class: "filters" }, imageSearchState.filters.map((filter) => (h("search-filters", { filter: filter })))))), h("div", { id: "results-block", class: "products-wrapper" }, h("div", { class: {
|
|
182
|
+
"nothing-found": true,
|
|
183
|
+
hidden: imageSearchState.results.length > 0,
|
|
184
|
+
} }, h("vviinn-empty-results", null), h("vviinn-onboarding", null)), h("div", { class: {
|
|
185
|
+
hidden: imageSearchState.results.length <= 0,
|
|
186
|
+
products: true,
|
|
187
|
+
} }, imageSearchState.results.map((p, i) => {
|
|
188
|
+
var _a;
|
|
189
|
+
return (h("vviinn-product-card", { hidden: true, productTitle: p.title, productId: p.productId, brand: p.brand, deeplink: p.deeplink, price: p.price.actual, salePrice: p.price.sale, imageWidth: 160, image: (_a = p.image.thumbnail) !== null && _a !== void 0 ? _a : p.image.original, part: "product-card", index: i }));
|
|
190
|
+
}))))))));
|
|
191
|
+
}
|
|
192
|
+
get el() { return this; }
|
|
193
|
+
static get watchers() { return {
|
|
194
|
+
"active": ["activeWatcher"]
|
|
195
|
+
}; }
|
|
196
|
+
static get style() { return vviinnVpsWidgetCss; }
|
|
197
|
+
};
|
|
198
|
+
VviinnVpsWidget = /*@__PURE__*/ proxyCustomElement(VviinnVpsWidget, [1, "vviinn-vps-widget", {
|
|
199
|
+
"token": [1],
|
|
200
|
+
"apiPath": [1, "api-path"],
|
|
201
|
+
"active": [1028],
|
|
202
|
+
"currencySign": [1, "currency-sign"],
|
|
203
|
+
"locale": [1],
|
|
204
|
+
"campaignId": [1, "campaign-id"],
|
|
205
|
+
"slidePosition": [32],
|
|
206
|
+
"width": [32],
|
|
207
|
+
"wrongImageFormat": [32]
|
|
208
|
+
}, [[0, "recommendationView", "trackRecommendationView"], [0, "recommendationClick", "trackRecommendationClick"], [0, "cropperChanged", "trachSearchAreaChanges"], [0, "detectedObjectClicked", "trackDetectedObject"], [0, "filterSelected", "trackFilter"]]]);
|
|
209
|
+
function defineCustomElement() {
|
|
210
|
+
const components = ["vviinn-vps-widget", "cropper-handler", "highlight-box", "image-cropper", "search-filters", "vviinn-detected-object", "vviinn-empty-results", "vviinn-error", "vviinn-example-image", "vviinn-example-images", "vviinn-image-selector", "vviinn-image-view", "vviinn-modal", "vviinn-onboarding", "vviinn-onboarding-card-1", "vviinn-onboarding-card-2", "vviinn-onboarding-card-3", "vviinn-overlay", "vviinn-overlayed-modal", "vviinn-preloader", "vviinn-privacy-badge", "vviinn-product-card", "vviinn-server-error", "vviinn-slide", "vviinn-slider", "vviinn-teaser", "vviinn-wrong-format"];
|
|
211
|
+
components.forEach(tagName => { switch (tagName) {
|
|
212
|
+
case "vviinn-vps-widget":
|
|
213
|
+
if (!customElements.get(tagName)) {
|
|
214
|
+
customElements.define(tagName, VviinnVpsWidget);
|
|
215
|
+
}
|
|
216
|
+
break;
|
|
217
|
+
case "cropper-handler":
|
|
218
|
+
if (!customElements.get(tagName)) {
|
|
219
|
+
defineCustomElement$q();
|
|
220
|
+
}
|
|
221
|
+
break;
|
|
222
|
+
case "highlight-box":
|
|
223
|
+
if (!customElements.get(tagName)) {
|
|
224
|
+
defineCustomElement$p();
|
|
225
|
+
}
|
|
226
|
+
break;
|
|
227
|
+
case "image-cropper":
|
|
228
|
+
if (!customElements.get(tagName)) {
|
|
229
|
+
defineCustomElement$o();
|
|
230
|
+
}
|
|
231
|
+
break;
|
|
232
|
+
case "search-filters":
|
|
233
|
+
if (!customElements.get(tagName)) {
|
|
234
|
+
defineCustomElement$n();
|
|
235
|
+
}
|
|
236
|
+
break;
|
|
237
|
+
case "vviinn-detected-object":
|
|
238
|
+
if (!customElements.get(tagName)) {
|
|
239
|
+
defineCustomElement$m();
|
|
240
|
+
}
|
|
241
|
+
break;
|
|
242
|
+
case "vviinn-empty-results":
|
|
243
|
+
if (!customElements.get(tagName)) {
|
|
244
|
+
defineCustomElement$l();
|
|
245
|
+
}
|
|
246
|
+
break;
|
|
247
|
+
case "vviinn-error":
|
|
248
|
+
if (!customElements.get(tagName)) {
|
|
249
|
+
defineCustomElement$k();
|
|
250
|
+
}
|
|
251
|
+
break;
|
|
252
|
+
case "vviinn-example-image":
|
|
253
|
+
if (!customElements.get(tagName)) {
|
|
254
|
+
defineCustomElement$j();
|
|
255
|
+
}
|
|
256
|
+
break;
|
|
257
|
+
case "vviinn-example-images":
|
|
258
|
+
if (!customElements.get(tagName)) {
|
|
259
|
+
defineCustomElement$i();
|
|
260
|
+
}
|
|
261
|
+
break;
|
|
262
|
+
case "vviinn-image-selector":
|
|
263
|
+
if (!customElements.get(tagName)) {
|
|
264
|
+
defineCustomElement$h();
|
|
265
|
+
}
|
|
266
|
+
break;
|
|
267
|
+
case "vviinn-image-view":
|
|
268
|
+
if (!customElements.get(tagName)) {
|
|
269
|
+
defineCustomElement$g();
|
|
270
|
+
}
|
|
271
|
+
break;
|
|
272
|
+
case "vviinn-modal":
|
|
273
|
+
if (!customElements.get(tagName)) {
|
|
274
|
+
defineCustomElement$f();
|
|
275
|
+
}
|
|
276
|
+
break;
|
|
277
|
+
case "vviinn-onboarding":
|
|
278
|
+
if (!customElements.get(tagName)) {
|
|
279
|
+
defineCustomElement$e();
|
|
280
|
+
}
|
|
281
|
+
break;
|
|
282
|
+
case "vviinn-onboarding-card-1":
|
|
283
|
+
if (!customElements.get(tagName)) {
|
|
284
|
+
defineCustomElement$d();
|
|
285
|
+
}
|
|
286
|
+
break;
|
|
287
|
+
case "vviinn-onboarding-card-2":
|
|
288
|
+
if (!customElements.get(tagName)) {
|
|
289
|
+
defineCustomElement$c();
|
|
290
|
+
}
|
|
291
|
+
break;
|
|
292
|
+
case "vviinn-onboarding-card-3":
|
|
293
|
+
if (!customElements.get(tagName)) {
|
|
294
|
+
defineCustomElement$b();
|
|
295
|
+
}
|
|
296
|
+
break;
|
|
297
|
+
case "vviinn-overlay":
|
|
298
|
+
if (!customElements.get(tagName)) {
|
|
299
|
+
defineCustomElement$a();
|
|
300
|
+
}
|
|
301
|
+
break;
|
|
302
|
+
case "vviinn-overlayed-modal":
|
|
303
|
+
if (!customElements.get(tagName)) {
|
|
304
|
+
defineCustomElement$9();
|
|
305
|
+
}
|
|
306
|
+
break;
|
|
307
|
+
case "vviinn-preloader":
|
|
308
|
+
if (!customElements.get(tagName)) {
|
|
309
|
+
defineCustomElement$8();
|
|
310
|
+
}
|
|
311
|
+
break;
|
|
312
|
+
case "vviinn-privacy-badge":
|
|
313
|
+
if (!customElements.get(tagName)) {
|
|
314
|
+
defineCustomElement$7();
|
|
315
|
+
}
|
|
316
|
+
break;
|
|
317
|
+
case "vviinn-product-card":
|
|
318
|
+
if (!customElements.get(tagName)) {
|
|
319
|
+
defineCustomElement$6();
|
|
320
|
+
}
|
|
321
|
+
break;
|
|
322
|
+
case "vviinn-server-error":
|
|
323
|
+
if (!customElements.get(tagName)) {
|
|
324
|
+
defineCustomElement$5();
|
|
325
|
+
}
|
|
326
|
+
break;
|
|
327
|
+
case "vviinn-slide":
|
|
328
|
+
if (!customElements.get(tagName)) {
|
|
329
|
+
defineCustomElement$4();
|
|
330
|
+
}
|
|
331
|
+
break;
|
|
332
|
+
case "vviinn-slider":
|
|
333
|
+
if (!customElements.get(tagName)) {
|
|
334
|
+
defineCustomElement$3();
|
|
335
|
+
}
|
|
336
|
+
break;
|
|
337
|
+
case "vviinn-teaser":
|
|
338
|
+
if (!customElements.get(tagName)) {
|
|
339
|
+
defineCustomElement$2();
|
|
340
|
+
}
|
|
341
|
+
break;
|
|
342
|
+
case "vviinn-wrong-format":
|
|
343
|
+
if (!customElements.get(tagName)) {
|
|
344
|
+
defineCustomElement$1();
|
|
345
|
+
}
|
|
346
|
+
break;
|
|
347
|
+
} });
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export { VviinnVpsWidget as V, defineCustomElement as d };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$1 } from './vviinn-error2.js';
|
|
3
|
+
|
|
4
|
+
const vviinnWrongFormatCss = ":host{display:block}";
|
|
5
|
+
|
|
6
|
+
let VviinnWrongFormat = class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
attachShadow(this);
|
|
11
|
+
this.actionClick = createEvent(this, "actionClick", 7);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, null, h("vviinn-error", null, h("h4", { slot: "title" }, "Dateityp wird nicht unterst\u00FCtzt"), h("span", { slot: "text" }, "Leider unterst\u00FCtzen wir dieses Format nicht. Bitte laden Sie eine .jpg, .png oder .webp Bilddatei hoch."), h("button", { slot: "action", onClick: () => this.actionClick.emit() }, "Neues Bild hochladen"))));
|
|
15
|
+
}
|
|
16
|
+
static get style() { return vviinnWrongFormatCss; }
|
|
17
|
+
};
|
|
18
|
+
VviinnWrongFormat = /*@__PURE__*/ proxyCustomElement(VviinnWrongFormat, [1, "vviinn-wrong-format"]);
|
|
19
|
+
function defineCustomElement() {
|
|
20
|
+
const components = ["vviinn-wrong-format", "vviinn-error"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "vviinn-wrong-format":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, VviinnWrongFormat);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
case "vviinn-error":
|
|
28
|
+
if (!customElements.get(tagName)) {
|
|
29
|
+
defineCustomElement$1();
|
|
30
|
+
}
|
|
31
|
+
break;
|
|
32
|
+
} });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { VviinnWrongFormat as V, defineCustomElement as d };
|