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,34 @@
|
|
|
1
|
+
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { b as OnboardingCard2Icon } from './index2.js';
|
|
3
|
+
import { s as slotChangeListener } from './customized-slots.js';
|
|
4
|
+
|
|
5
|
+
const onboardingCardCss = ":host{align-items:center;background:#f4f4f4;display:grid;grid-template-rows:repeat(2,1fr);justify-items:center;padding:24px;width:100%}h4{color:#161616;font-size:18px;font-weight:600;line-height:24px;margin:unset;text-align:center}svg{padding:16px 0}p{color:#525252;font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:unset;text-align:center}.colored{fill:var(--color-icons,var(--color-icons-system))}.text{grid-gap:8px;display:grid}";
|
|
6
|
+
|
|
7
|
+
let VviinnOnboardingCard2 = class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
attachShadow(this);
|
|
12
|
+
}
|
|
13
|
+
componentWillLoad() {
|
|
14
|
+
slotChangeListener(this, this.el);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, null, h("slot", { name: "onboarding-card-2-icon" }, h(OnboardingCard2Icon, null)), h("slot", { name: "onboarding-card-2-text" }, h("div", { class: "text" }, h("h4", null, "Verfeiner deine Suche"), h("p", null, "Du kannst den Bildrahmen selber festlegen und so die Produkte genau ausw\u00E4hlen.")))));
|
|
18
|
+
}
|
|
19
|
+
get el() { return this; }
|
|
20
|
+
static get style() { return onboardingCardCss; }
|
|
21
|
+
};
|
|
22
|
+
VviinnOnboardingCard2 = /*@__PURE__*/ proxyCustomElement(VviinnOnboardingCard2, [1, "vviinn-onboarding-card-2"]);
|
|
23
|
+
function defineCustomElement() {
|
|
24
|
+
const components = ["vviinn-onboarding-card-2"];
|
|
25
|
+
components.forEach(tagName => { switch (tagName) {
|
|
26
|
+
case "vviinn-onboarding-card-2":
|
|
27
|
+
if (!customElements.get(tagName)) {
|
|
28
|
+
customElements.define(tagName, VviinnOnboardingCard2);
|
|
29
|
+
}
|
|
30
|
+
break;
|
|
31
|
+
} });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { VviinnOnboardingCard2 as V, defineCustomElement as d };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { V as VviinnOnboardingCard3$1, d as defineCustomElement$1 } from './vviinn-onboarding-card-32.js';
|
|
2
|
+
|
|
3
|
+
const VviinnOnboardingCard3 = VviinnOnboardingCard3$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { VviinnOnboardingCard3, defineCustomElement };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as OnboardingCard3Icon } from './index2.js';
|
|
3
|
+
import { s as slotChangeListener } from './customized-slots.js';
|
|
4
|
+
|
|
5
|
+
const onboardingCardCss = ":host{align-items:center;background:#f4f4f4;display:grid;grid-template-rows:repeat(2,1fr);justify-items:center;padding:24px;width:100%}h4{color:#161616;font-size:18px;font-weight:600;line-height:24px;margin:unset;text-align:center}svg{padding:16px 0}p{color:#525252;font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:unset;text-align:center}.colored{fill:var(--color-icons,var(--color-icons-system))}.text{grid-gap:8px;display:grid}";
|
|
6
|
+
|
|
7
|
+
let VviinnOnboardingCard3 = class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
attachShadow(this);
|
|
12
|
+
}
|
|
13
|
+
componentWillLoad() {
|
|
14
|
+
slotChangeListener(this, this.el);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, null, h("slot", { name: "onboarding-card-3-icon" }, h(OnboardingCard3Icon, null)), h("slot", { name: "onboarding-card-3-text" }, h("div", { class: "text" }, h("h4", null, "Ohne Hintergrund"), h("p", null, "Die besten Ergebnisse erh\u00E4ltst Du, wenn das gesuchte Objekt mit einfarbigem und hellem Hintergrund zu sehen ist.")))));
|
|
18
|
+
}
|
|
19
|
+
get el() { return this; }
|
|
20
|
+
static get style() { return onboardingCardCss; }
|
|
21
|
+
};
|
|
22
|
+
VviinnOnboardingCard3 = /*@__PURE__*/ proxyCustomElement(VviinnOnboardingCard3, [1, "vviinn-onboarding-card-3"]);
|
|
23
|
+
function defineCustomElement() {
|
|
24
|
+
const components = ["vviinn-onboarding-card-3"];
|
|
25
|
+
components.forEach(tagName => { switch (tagName) {
|
|
26
|
+
case "vviinn-onboarding-card-3":
|
|
27
|
+
if (!customElements.get(tagName)) {
|
|
28
|
+
customElements.define(tagName, VviinnOnboardingCard3);
|
|
29
|
+
}
|
|
30
|
+
break;
|
|
31
|
+
} });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { VviinnOnboardingCard3 as V, defineCustomElement as d };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { s as slotChangeListener } from './customized-slots.js';
|
|
3
|
+
import { d as defineCustomElement$5 } from './vviinn-onboarding-card-12.js';
|
|
4
|
+
import { d as defineCustomElement$4 } from './vviinn-onboarding-card-22.js';
|
|
5
|
+
import { d as defineCustomElement$3 } from './vviinn-onboarding-card-32.js';
|
|
6
|
+
import { d as defineCustomElement$2 } from './vviinn-slide2.js';
|
|
7
|
+
import { d as defineCustomElement$1 } from './vviinn-slider2.js';
|
|
8
|
+
|
|
9
|
+
const vviinnOnboardingCss = ":host{--color-primary-system:#0f62fe;--color-primary-hover-system:#014cda;--color-icons-system:#2f8edf;--spacer:8px}::host{display:block}h3{font-size:22px;font-weight:600;line-height:32px;margin:0 0 16px;text-align:center}vviinn-slide{background:#f4f4f4;padding:24px}svg{padding:16px 0}.text{grid-gap:8px;display:grid}.text>h4{color:#161616;font-size:18px;font-weight:600;line-height:24px}.text>h4,.text>p{margin:unset;text-align:center}.text>p{color:#525252;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.colored{fill:var(--color-icons,var(--color-icons-system))}";
|
|
10
|
+
|
|
11
|
+
let VviinnOnboarding = class extends HTMLElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.__registerHost();
|
|
15
|
+
attachShadow(this);
|
|
16
|
+
}
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
slotChangeListener(this, this.el);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (h(Host, null, h("slot", { name: "vviinn-onboarding-title" }, h("h3", null, "So funktioniert es")), h("vviinn-slider", { showArrows: true }, h("vviinn-slide", null, h("vviinn-onboarding-card-1", null)), h("vviinn-slide", null, h("vviinn-onboarding-card-2", null)), h("vviinn-slide", null, h("vviinn-onboarding-card-3", null)))));
|
|
22
|
+
}
|
|
23
|
+
get el() { return this; }
|
|
24
|
+
static get style() { return vviinnOnboardingCss; }
|
|
25
|
+
};
|
|
26
|
+
VviinnOnboarding = /*@__PURE__*/ proxyCustomElement(VviinnOnboarding, [1, "vviinn-onboarding"]);
|
|
27
|
+
function defineCustomElement() {
|
|
28
|
+
const components = ["vviinn-onboarding", "vviinn-onboarding-card-1", "vviinn-onboarding-card-2", "vviinn-onboarding-card-3", "vviinn-slide", "vviinn-slider"];
|
|
29
|
+
components.forEach(tagName => { switch (tagName) {
|
|
30
|
+
case "vviinn-onboarding":
|
|
31
|
+
if (!customElements.get(tagName)) {
|
|
32
|
+
customElements.define(tagName, VviinnOnboarding);
|
|
33
|
+
}
|
|
34
|
+
break;
|
|
35
|
+
case "vviinn-onboarding-card-1":
|
|
36
|
+
if (!customElements.get(tagName)) {
|
|
37
|
+
defineCustomElement$5();
|
|
38
|
+
}
|
|
39
|
+
break;
|
|
40
|
+
case "vviinn-onboarding-card-2":
|
|
41
|
+
if (!customElements.get(tagName)) {
|
|
42
|
+
defineCustomElement$4();
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
case "vviinn-onboarding-card-3":
|
|
46
|
+
if (!customElements.get(tagName)) {
|
|
47
|
+
defineCustomElement$3();
|
|
48
|
+
}
|
|
49
|
+
break;
|
|
50
|
+
case "vviinn-slide":
|
|
51
|
+
if (!customElements.get(tagName)) {
|
|
52
|
+
defineCustomElement$2();
|
|
53
|
+
}
|
|
54
|
+
break;
|
|
55
|
+
case "vviinn-slider":
|
|
56
|
+
if (!customElements.get(tagName)) {
|
|
57
|
+
defineCustomElement$1();
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
} });
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { VviinnOnboarding as V, defineCustomElement as d };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const vviinnOverlayCss = ":host{-webkit-animation:a .5s ease-in-out;animation:a .5s ease-in-out;background:rgba(0,0,0,.5);display:block;height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:1}@-webkit-keyframes a{0%{opacity:.1}to{opacity:1}}@keyframes a{0%{opacity:.1}to{opacity:1}}";
|
|
4
|
+
|
|
5
|
+
let VviinnOverlay = class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
attachShadow(this);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (h(Host, null, h("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
static get style() { return vviinnOverlayCss; }
|
|
15
|
+
};
|
|
16
|
+
VviinnOverlay = /*@__PURE__*/ proxyCustomElement(VviinnOverlay, [1, "vviinn-overlay"]);
|
|
17
|
+
function defineCustomElement() {
|
|
18
|
+
const components = ["vviinn-overlay"];
|
|
19
|
+
components.forEach(tagName => { switch (tagName) {
|
|
20
|
+
case "vviinn-overlay":
|
|
21
|
+
if (!customElements.get(tagName)) {
|
|
22
|
+
customElements.define(tagName, VviinnOverlay);
|
|
23
|
+
}
|
|
24
|
+
break;
|
|
25
|
+
} });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { VviinnOverlay as V, defineCustomElement as d };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { V as VviinnOverlayedModal$1, d as defineCustomElement$1 } from './vviinn-overlayed-modal2.js';
|
|
2
|
+
|
|
3
|
+
const VviinnOverlayedModal = VviinnOverlayedModal$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { VviinnOverlayedModal, defineCustomElement };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './vviinn-modal2.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './vviinn-overlay2.js';
|
|
4
|
+
|
|
5
|
+
const vviinnOverlayedModalCss = ":host{display:none}:host(.active){display:block}vviinn-overlay{align-items:center;display:grid;justify-items:center}@media (max-width:415px){vviinn-modal{border-radius:4px 4px 0 0;height:100vh;margin-top:32px;transform:translateY(100%);width:100vw}vviinn-overlay{align-items:end;display:grid;justify-items:center}}";
|
|
6
|
+
|
|
7
|
+
let VviinnOverlayedModal = class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
attachShadow(this);
|
|
12
|
+
this.secondaryActionClicked = createEvent(this, "secondaryActionClicked", 7);
|
|
13
|
+
this.modalClosed = createEvent(this, "modalClosed", 7);
|
|
14
|
+
this.active = false;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, { class: { active: this.active } }, h("vviinn-overlay", null, h("vviinn-modal", { onSecondaryActionClicked: () => this.secondaryActionClicked.emit(), active: this.active }, h("slot", null, "CONTENT")))));
|
|
18
|
+
}
|
|
19
|
+
static get style() { return vviinnOverlayedModalCss; }
|
|
20
|
+
};
|
|
21
|
+
VviinnOverlayedModal = /*@__PURE__*/ proxyCustomElement(VviinnOverlayedModal, [1, "vviinn-overlayed-modal", {
|
|
22
|
+
"active": [4]
|
|
23
|
+
}]);
|
|
24
|
+
function defineCustomElement() {
|
|
25
|
+
const components = ["vviinn-overlayed-modal", "vviinn-modal", "vviinn-overlay"];
|
|
26
|
+
components.forEach(tagName => { switch (tagName) {
|
|
27
|
+
case "vviinn-overlayed-modal":
|
|
28
|
+
if (!customElements.get(tagName)) {
|
|
29
|
+
customElements.define(tagName, VviinnOverlayedModal);
|
|
30
|
+
}
|
|
31
|
+
break;
|
|
32
|
+
case "vviinn-modal":
|
|
33
|
+
if (!customElements.get(tagName)) {
|
|
34
|
+
defineCustomElement$2();
|
|
35
|
+
}
|
|
36
|
+
break;
|
|
37
|
+
case "vviinn-overlay":
|
|
38
|
+
if (!customElements.get(tagName)) {
|
|
39
|
+
defineCustomElement$1();
|
|
40
|
+
}
|
|
41
|
+
break;
|
|
42
|
+
} });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { VviinnOverlayedModal as V, defineCustomElement as d };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { i as imageSearchState } from './imageSearch.store.js';
|
|
3
|
+
|
|
4
|
+
const vviinnPreloaderCss = ":host{--preloader-size:24px;--preloader-width:calc(var(--preloader-size)/6);-webkit-animation:c 3s linear infinite;animation:c 3s linear infinite;border:var(--preloader-width) solid #fff;border-radius:50%;border-top-color:transparent;box-sizing:border-box;display:none;height:var(--preloader-size);outline:0;transform-origin:center;width:var(--preloader-size)}:host(.active){display:flex}@-webkit-keyframes c{0%{transform:rotate(-1turn)}to{transform:rotate(1turn)}}@keyframes c{0%{transform:rotate(-1turn)}to{transform:rotate(1turn)}}";
|
|
5
|
+
|
|
6
|
+
let VviinnPreloader = class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
attachShadow(this);
|
|
11
|
+
}
|
|
12
|
+
isActive() {
|
|
13
|
+
return (imageSearchState.loading || imageSearchState.objectDetectionInProgress);
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, { class: {
|
|
17
|
+
active: this.isActive(),
|
|
18
|
+
} }));
|
|
19
|
+
}
|
|
20
|
+
static get style() { return vviinnPreloaderCss; }
|
|
21
|
+
};
|
|
22
|
+
VviinnPreloader = /*@__PURE__*/ proxyCustomElement(VviinnPreloader, [1, "vviinn-preloader"]);
|
|
23
|
+
function defineCustomElement() {
|
|
24
|
+
const components = ["vviinn-preloader"];
|
|
25
|
+
components.forEach(tagName => { switch (tagName) {
|
|
26
|
+
case "vviinn-preloader":
|
|
27
|
+
if (!customElements.get(tagName)) {
|
|
28
|
+
customElements.define(tagName, VviinnPreloader);
|
|
29
|
+
}
|
|
30
|
+
break;
|
|
31
|
+
} });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { VviinnPreloader as V, defineCustomElement as d };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { s as slotChangeListener } from './customized-slots.js';
|
|
3
|
+
|
|
4
|
+
const vviinnPrivacyBadgeCss = ":host{background:#f4f4f4;display:block;padding:17px}.content{grid-gap:9px;display:grid;grid-template-columns:-webkit-min-content auto;grid-template-columns:min-content auto}.content p{color:#525252;font-size:12px;line-height:16px;margin:unset}";
|
|
5
|
+
|
|
6
|
+
let VviinnPrivacyBadge = class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
attachShadow(this);
|
|
11
|
+
}
|
|
12
|
+
componentWillLoad() {
|
|
13
|
+
slotChangeListener(this, this.el);
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, null, h("slot", null, h("div", { class: "content" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" }, h("defs", null), h("path", { fill: "#525252", d: "M8.5 11V7h-2v1h1v3H6v1h4v-1H8.5zM8 4a.75.75 0 100 1.5A.75.75 0 008 4z" }), h("path", { fill: "#525252", d: "M8 15A7 7 0 118 1a7 7 0 010 14zM8 2a6 6 0 100 12A6 6 0 008 2z" })), h("slot", { name: "vviinn-privacy-badge-text" }, h("p", null, "Wir gehen sorgf\u00E4ltig mit Deinen Daten um. Deine Bilder werden nur zum Zweck der Bildsuche gespeichert."))))));
|
|
17
|
+
}
|
|
18
|
+
get el() { return this; }
|
|
19
|
+
static get style() { return vviinnPrivacyBadgeCss; }
|
|
20
|
+
};
|
|
21
|
+
VviinnPrivacyBadge = /*@__PURE__*/ proxyCustomElement(VviinnPrivacyBadge, [1, "vviinn-privacy-badge"]);
|
|
22
|
+
function defineCustomElement() {
|
|
23
|
+
const components = ["vviinn-privacy-badge"];
|
|
24
|
+
components.forEach(tagName => { switch (tagName) {
|
|
25
|
+
case "vviinn-privacy-badge":
|
|
26
|
+
if (!customElements.get(tagName)) {
|
|
27
|
+
customElements.define(tagName, VviinnPrivacyBadge);
|
|
28
|
+
}
|
|
29
|
+
break;
|
|
30
|
+
} });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { VviinnPrivacyBadge as V, defineCustomElement as d };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { h, attachShadow, createEvent, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
import { O as Option, f as Semigroup, _ as _function } from './NonEmptyArray.js';
|
|
3
|
+
import { E as Either, i as imageSearchState, s as state } from './imageSearch.store.js';
|
|
4
|
+
|
|
5
|
+
class GtagAnalytics {
|
|
6
|
+
sendImpression(product) {
|
|
7
|
+
var _a, _b, _c;
|
|
8
|
+
gtag('event', 'view_item_list', {
|
|
9
|
+
items: [
|
|
10
|
+
{
|
|
11
|
+
id: product.productId,
|
|
12
|
+
name: product.title,
|
|
13
|
+
brand: (_a = product.brand) !== null && _a !== void 0 ? _a : '',
|
|
14
|
+
category: (_b = product.productType) !== null && _b !== void 0 ? _b : '',
|
|
15
|
+
list_name: 'VI VPR View',
|
|
16
|
+
price: Math.min(...[product.price.actual, (_c = product.price.sale) !== null && _c !== void 0 ? _c : Infinity])
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
});
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
sendClick(product) {
|
|
23
|
+
var _a, _b, _c;
|
|
24
|
+
gtag('event', 'select_content', {
|
|
25
|
+
content_type: 'product',
|
|
26
|
+
items: [
|
|
27
|
+
{
|
|
28
|
+
id: product.productId,
|
|
29
|
+
name: product.title,
|
|
30
|
+
brand: (_a = product.brand) !== null && _a !== void 0 ? _a : '',
|
|
31
|
+
category: (_b = product.productType) !== null && _b !== void 0 ? _b : '',
|
|
32
|
+
list_name: 'VI VPR View',
|
|
33
|
+
price: Math.min(...[product.price.actual, (_c = product.price.sale) !== null && _c !== void 0 ? _c : Infinity])
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class GAnalytics {
|
|
42
|
+
constructor() {
|
|
43
|
+
ga('require', 'ec');
|
|
44
|
+
}
|
|
45
|
+
convertProduct(product) {
|
|
46
|
+
var _a, _b, _c;
|
|
47
|
+
return {
|
|
48
|
+
id: product.productId,
|
|
49
|
+
name: product.title,
|
|
50
|
+
brand: (_a = product.brand) !== null && _a !== void 0 ? _a : '',
|
|
51
|
+
category: (_b = product.productType) !== null && _b !== void 0 ? _b : '',
|
|
52
|
+
list: 'VI VPR View',
|
|
53
|
+
price: Math.min(...[product.price.actual, (_c = product.price.sale) !== null && _c !== void 0 ? _c : Infinity])
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
sendImpression(product) {
|
|
57
|
+
ga('ec:addImpression', this.convertProduct(product));
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
sendClick(product) {
|
|
61
|
+
var _a, _b, _c;
|
|
62
|
+
ga('ec:addProduct', {
|
|
63
|
+
id: product.productId,
|
|
64
|
+
name: product.title,
|
|
65
|
+
brand: (_a = product.brand) !== null && _a !== void 0 ? _a : '',
|
|
66
|
+
category: (_b = product.productType) !== null && _b !== void 0 ? _b : '',
|
|
67
|
+
price: Math.min(...[product.price.actual, (_c = product.price.sale) !== null && _c !== void 0 ? _c : Infinity])
|
|
68
|
+
});
|
|
69
|
+
ga('ec:setAction', 'click', { list: 'VI VPR View' });
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const getGtagAnalytics = () => _function.pipe(Option.fromNullable(window.gtag), Option.map(() => new GtagAnalytics()));
|
|
75
|
+
const getCommonAnalytics = () => _function.pipe(Option.fromNullable(window.ga), Option.map(() => new GAnalytics()));
|
|
76
|
+
const analyticsMonoid = Option.getMonoid(Semigroup.first());
|
|
77
|
+
const getAnalyticsModule = analyticsMonoid.concat(getGtagAnalytics(), getCommonAnalytics());
|
|
78
|
+
|
|
79
|
+
const FIT_EXPR = /fit\/\d+\//;
|
|
80
|
+
const containsFit = (url) => {
|
|
81
|
+
return _function.pipe(url.match(FIT_EXPR), Either.fromNullable(url), Either.map(() => url));
|
|
82
|
+
};
|
|
83
|
+
const processWidth = (url, size) => {
|
|
84
|
+
return _function.pipe(containsFit(url), Either.map((url) => url.replace(FIT_EXPR, `fit/${size}/`)), Either.getOrElse(() => url));
|
|
85
|
+
};
|
|
86
|
+
const Linked = (props, child) => props.deeplink ? (h("a", { class: props.part, part: props.part, href: props.deeplink }, child)) : (child);
|
|
87
|
+
const FormattedPrice = (props) => {
|
|
88
|
+
var _a;
|
|
89
|
+
const locale = props.locale;
|
|
90
|
+
const formattedPrice = new Intl.NumberFormat(locale, {
|
|
91
|
+
minimumFractionDigits: 2,
|
|
92
|
+
}).format(props.price);
|
|
93
|
+
const fullPrice = `${(_a = props.prefix) !== null && _a !== void 0 ? _a : ""} ${formattedPrice} ${props.currency}`;
|
|
94
|
+
return (h("span", { class: "price-amount", part: "price-amount" }, fullPrice));
|
|
95
|
+
};
|
|
96
|
+
const Price = (props) => {
|
|
97
|
+
const priceEl = (h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.price, locale: props.locale }));
|
|
98
|
+
return (h("span", { class: "price-container", part: "price-container" }, props.salePrice ? ([
|
|
99
|
+
h("span", { class: "price-sale", part: "price-sale" },
|
|
100
|
+
h(FormattedPrice, { prefix: props.prefix, currency: props.currency, price: props.salePrice, locale: props.locale })),
|
|
101
|
+
h("span", { class: "price-outdated", part: "price-outdated" }, priceEl),
|
|
102
|
+
]) : (h("span", { class: "price-regular", part: "price-regular" }, priceEl))));
|
|
103
|
+
};
|
|
104
|
+
const Image = (props, onLoadEnd = () => undefined) => (h("picture", null,
|
|
105
|
+
h("img", { loading: props.lazy ? "lazy" : "eager", part: "image", class: "image", width: props.width, height: props.height, src: processWidth(props.src, props.width), alt: props.title, onLoad: onLoadEnd })));
|
|
106
|
+
const ResponsiveImage = (props, onLoadEnd = () => undefined) => (h("picture", null,
|
|
107
|
+
h("img", { loading: props.lazy ? "lazy" : "eager", part: "image", class: "image responsive", src: processWidth(props.src, props.width), alt: props.title, onLoad: onLoadEnd })));
|
|
108
|
+
|
|
109
|
+
const vviinnProductCardCss = ":host{align-items:center;display:flex;flex-direction:column;gap:8px;height:100%}.price-container{display:flex;flex-direction:column}.price-regular,.price-sale{color:#161616}.price-outdated,.price-regular,.price-sale{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.price-outdated{color:#757575;text-decoration:line-through}.product-type{word-wrap:anywhere}.image{align-content:center;box-sizing:border-box;display:grid;-o-object-fit:contain;object-fit:contain;-o-object-position:50% 50%;object-position:50% 50%;text-align:center}img.responsive{aspect-ratio:1;height:auto;width:100%}.brand,.type{display:none}.title{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#161616;display:-webkit-box;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin-bottom:8px;overflow:hidden}.deeplink{text-decoration:none}.image-link{display:contents}picture{position:relative;width:100%}:host(.dimmed) picture:before{background:#f7f7f7;box-sizing:border-box;content:\"\";display:block;height:100%;left:0;mix-blend-mode:multiply;position:absolute;top:0;width:100%}";
|
|
110
|
+
|
|
111
|
+
let VviinnProductCard = class extends HTMLElement {
|
|
112
|
+
constructor() {
|
|
113
|
+
super();
|
|
114
|
+
this.__registerHost();
|
|
115
|
+
attachShadow(this);
|
|
116
|
+
this.recommendationLoad = createEvent(this, "recommendationLoad", 7);
|
|
117
|
+
this.recommendationView = createEvent(this, "recommendationView", 7);
|
|
118
|
+
this.recommendationClick = createEvent(this, "recommendationClick", 7);
|
|
119
|
+
this.productImageLoaded = createEvent(this, "productImageLoaded", 7);
|
|
120
|
+
this.currency = undefined;
|
|
121
|
+
this.imageRatio = 1;
|
|
122
|
+
this.imageWidth = 200;
|
|
123
|
+
this.locale = undefined;
|
|
124
|
+
this.pricePrefix = undefined;
|
|
125
|
+
this.responsive = false;
|
|
126
|
+
this.dimmedBackground = false;
|
|
127
|
+
/** @internal */
|
|
128
|
+
this.index = 0;
|
|
129
|
+
this.imageLoaded = false;
|
|
130
|
+
this.productData = null;
|
|
131
|
+
this.intersectionObserver = new IntersectionObserver(this.intersectionCallback.bind(this), { threshold: 1.0 });
|
|
132
|
+
}
|
|
133
|
+
connectedCallback() {
|
|
134
|
+
this.productData = this.getProductData();
|
|
135
|
+
}
|
|
136
|
+
getProductData() {
|
|
137
|
+
return {
|
|
138
|
+
product: this.productId,
|
|
139
|
+
rank: this.index,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
intersectionCallback(data) {
|
|
143
|
+
if (data.some((entry) => entry.isIntersecting)) {
|
|
144
|
+
_function.pipe(getAnalyticsModule, Option.map((analytics) => analytics.sendImpression(this.getProduct())));
|
|
145
|
+
this.recommendationView.emit(this.productData);
|
|
146
|
+
this.intersectionObserver.disconnect();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
componentDidLoad() {
|
|
150
|
+
this.recommendationLoad.emit(this.productData);
|
|
151
|
+
this.intersectionObserver.observe(this.el);
|
|
152
|
+
const links = this.el.shadowRoot.querySelectorAll("a");
|
|
153
|
+
links.forEach((link) => link.addEventListener("click", (event) => {
|
|
154
|
+
event.preventDefault();
|
|
155
|
+
event.stopImmediatePropagation();
|
|
156
|
+
this.recommendationClick.emit(this.getProductData());
|
|
157
|
+
_function.pipe(getAnalyticsModule, Option.match(() => null, (analytics) => analytics.sendClick(this.getProduct())));
|
|
158
|
+
}));
|
|
159
|
+
}
|
|
160
|
+
getProduct() {
|
|
161
|
+
return imageSearchState.results.find((r) => r.productId === this.productId);
|
|
162
|
+
}
|
|
163
|
+
renderImage() {
|
|
164
|
+
const props = {
|
|
165
|
+
width: this.imageWidth,
|
|
166
|
+
height: this.imageWidth * this.imageRatio,
|
|
167
|
+
src: this.image,
|
|
168
|
+
title: this.productTitle,
|
|
169
|
+
lazy: true,
|
|
170
|
+
};
|
|
171
|
+
return this.responsive
|
|
172
|
+
? ResponsiveImage(props, () => this.handleImageLoaded())
|
|
173
|
+
: Image(props, () => this.handleImageLoaded());
|
|
174
|
+
}
|
|
175
|
+
handleImageLoaded() {
|
|
176
|
+
this.imageLoaded = true;
|
|
177
|
+
this.productImageLoaded.emit(this.productId);
|
|
178
|
+
}
|
|
179
|
+
render() {
|
|
180
|
+
var _a, _b, _c;
|
|
181
|
+
return (h(Host, { part: "product-card", class: { dimmed: this.dimmedBackground }, exportparts: "brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title" }, h(Linked, { deeplink: this.deeplink, part: "image-link" }, this.renderImage()), h(Linked, { deeplink: this.deeplink, part: "deeplink" }, h("span", { class: "title", part: "title" }, this.productTitle)), h("span", { class: "brand", part: "brand" }, this.brand), h("span", { class: "type", part: "type" }, this.productType), h(Price, { prefix: (_a = this.pricePrefix) !== null && _a !== void 0 ? _a : state.pricePrefix, currency: (_b = this.currency) !== null && _b !== void 0 ? _b : state.currencySign, price: this.price, salePrice: this.salePrice, locale: (_c = this.locale) !== null && _c !== void 0 ? _c : state.locale })));
|
|
182
|
+
}
|
|
183
|
+
get el() { return this; }
|
|
184
|
+
static get style() { return vviinnProductCardCss; }
|
|
185
|
+
};
|
|
186
|
+
VviinnProductCard = /*@__PURE__*/ proxyCustomElement(VviinnProductCard, [1, "vviinn-product-card", {
|
|
187
|
+
"brand": [1],
|
|
188
|
+
"currency": [1],
|
|
189
|
+
"deeplink": [1],
|
|
190
|
+
"image": [1],
|
|
191
|
+
"imageRatio": [2, "image-ratio"],
|
|
192
|
+
"imageWidth": [2, "image-width"],
|
|
193
|
+
"locale": [1],
|
|
194
|
+
"price": [2],
|
|
195
|
+
"pricePrefix": [1, "price-prefix"],
|
|
196
|
+
"productId": [1, "product-id"],
|
|
197
|
+
"productTitle": [1, "product-title"],
|
|
198
|
+
"productType": [1, "product-type"],
|
|
199
|
+
"salePrice": [2, "sale-price"],
|
|
200
|
+
"responsive": [4],
|
|
201
|
+
"dimmedBackground": [4, "dimmed-background"],
|
|
202
|
+
"index": [2],
|
|
203
|
+
"imageLoaded": [32]
|
|
204
|
+
}]);
|
|
205
|
+
function defineCustomElement() {
|
|
206
|
+
const components = ["vviinn-product-card"];
|
|
207
|
+
components.forEach(tagName => { switch (tagName) {
|
|
208
|
+
case "vviinn-product-card":
|
|
209
|
+
if (!customElements.get(tagName)) {
|
|
210
|
+
customElements.define(tagName, VviinnProductCard);
|
|
211
|
+
}
|
|
212
|
+
break;
|
|
213
|
+
} });
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export { VviinnProductCard as V, defineCustomElement as d };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { R as RecommendationsSidebar, d as defineCustomElement$1 } from './recommendations-sidebar.js';
|
|
2
|
+
|
|
3
|
+
const VviinnRecommendationsSidebar = RecommendationsSidebar;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { VviinnRecommendationsSidebar, defineCustomElement };
|
|
@@ -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 vviinnServerErrorCss = ":host{display:block}";
|
|
5
|
+
|
|
6
|
+
let VviinnServerError = 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" }, "Keine Verbindung"), h("span", { slot: "text" }, "Etwas hat leider nicht funktioniert. Bitte pr\u00FCfen Sie Ihre Internetverbindung und laden Sie das Bild noch einmal hoch."), h("button", { slot: "action", onClick: () => this.actionClick.emit() }, "Erneut versuchen"))));
|
|
15
|
+
}
|
|
16
|
+
static get style() { return vviinnServerErrorCss; }
|
|
17
|
+
};
|
|
18
|
+
VviinnServerError = /*@__PURE__*/ proxyCustomElement(VviinnServerError, [1, "vviinn-server-error"]);
|
|
19
|
+
function defineCustomElement() {
|
|
20
|
+
const components = ["vviinn-server-error", "vviinn-error"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "vviinn-server-error":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, VviinnServerError);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
case "vviinn-error":
|
|
28
|
+
if (!customElements.get(tagName)) {
|
|
29
|
+
defineCustomElement$1();
|
|
30
|
+
}
|
|
31
|
+
break;
|
|
32
|
+
} });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { VviinnServerError as V, defineCustomElement as d };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { attachShadow, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const vviinnSlideCss = ":host{display:grid;justify-items:center}";
|
|
4
|
+
|
|
5
|
+
let VviinnSlide = class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
attachShadow(this);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (h(Host, null, h("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
static get style() { return vviinnSlideCss; }
|
|
15
|
+
};
|
|
16
|
+
VviinnSlide = /*@__PURE__*/ proxyCustomElement(VviinnSlide, [1, "vviinn-slide"]);
|
|
17
|
+
function defineCustomElement() {
|
|
18
|
+
const components = ["vviinn-slide"];
|
|
19
|
+
components.forEach(tagName => { switch (tagName) {
|
|
20
|
+
case "vviinn-slide":
|
|
21
|
+
if (!customElements.get(tagName)) {
|
|
22
|
+
customElements.define(tagName, VviinnSlide);
|
|
23
|
+
}
|
|
24
|
+
break;
|
|
25
|
+
} });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { VviinnSlide as V, defineCustomElement as d };
|