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 @@
|
|
|
1
|
+
import{r as t,h as n,H as e,g as r,c as i}from"./p-880bccf1.js";import{H as o,I as a,J as u,_ as s,p as c,K as f,L as h,M as d,P as l,Q as v,R as p,T as m,U as b,V as g,W as y,X as w,w as _,Y as j,Z as O,D as E,$ as C,a0 as x,a1 as A,E as S,i as T}from"./p-07e16d04.js";import{e as k}from"./p-ea8dea5c.js";function N(t,n,e){return function(r){for(var i=Array(e.length+1),o=0;o<e.length;o++)i[o]=e[o];return i[e.length]=r,0===n?t.apply(null,i):N(t,n-1,i)}}var R={1:function(t){return[t]},2:function(t){return function(n){return[t,n]}},3:function(t){return function(n){return function(e){return[t,n,e]}}},4:function(t){return function(n){return function(e){return function(r){return[t,n,e,r]}}}},5:function(t){return function(n){return function(e){return function(r){return function(i){return[t,n,e,r,i]}}}}}};function P(t){return o.call(R,t)||(R[t]=N(a,t-1,[])),R[t]}let M=class{constructor(n){t(this,n),this.moveDirection="right",this.contentGroups=[],this.activeContentGroup=0,this.mode="continuity",this.imageWidth=140,this.showScroll=!0,this.recommendations=[],this.columns=0,this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.mutationObserver=new MutationObserver((()=>this.cloneSlottedContent()))}connectedCallback(){this.setItemWidth()}disconnectedCallback(){this.resizeObserver.disconnect()}componentDidLoad(){this.setWidth(),this.processScrollbarWidth(),this.columns=this.getColumnsNumber();const t=this.el.querySelector(".content");this.mutationObserver.observe(t,{subtree:!0,childList:!0}),this.resizeObserver.observe(this.getHostParent())}getItemWidthFromDocument(){return parseInt(getComputedStyle(document.body).getPropertyValue("--vviinn-carousel-image-width"))}setItemWidth(){const t=this.getItemWidthFromDocument(),n=isNaN(t)?this.imageWidth:t;this.el.style.setProperty("--vviinn-carousel-image-width",`${n}px`)}getContentClassMap(){return{content:!0,[this.moveDirection]:!0,[this.mode]:!0,"show-scrollbar":this.showScroll}}handleResize(){this.setWidth(),this.processScrollbarWidth(),this.setItemWidth();const t=this.getColumnsNumber();t!==this.columns&&(this.columns=t)}calculateMoveStep(){const t=this.getContent().map((t=>t.getBoundingClientRect().width));return t.reduce(((t,n)=>t+n),0)/t.length}getHostParent(){return this.el.parentNode.host.parentElement}setWidth(){const t=this.getHostParent();if(!t)return;const n=getComputedStyle(t),e=t.getBoundingClientRect().width-(parseInt(n["padding-right"])+parseInt(n["padding-left"]));this.el.style.setProperty("--vviinn-carousel-content-width",`${e}px`)}getParent(){return this.el.parentNode.host.parentElement}cloneSlottedContent(){this.setWidth()}getActiveGroupIndex(){var t,n;if(!(null===(n=null===(t=this.getContentNode())||void 0===t?void 0:t.getBoundingClientRect())||void 0===n?void 0:n.left))return 0;const e=this.getContentGroups().map((t=>t.getBoundingClientRect().left)).map(((t,n)=>[t,n])).filter((t=>t[0]>=0));return e.length>0?e[0][1]:0}getContentNode(){return this.el.querySelector(".content")}getContent(){const t=this.getContentNode().children;return Array.from(t).map((t=>t))}getColumnsNumber(){const t=getComputedStyle(this.el).getPropertyValue("--vviinn-carousel-columns-internal");return parseInt(t)}getContentGroups(){return Array.from(this.el.querySelectorAll(".items-group"))}showNext(){this.moveDirection="right";const t=this.getContentNode();requestAnimationFrame((()=>{t.scrollTo({top:0,left:t.scrollLeft+this.calculateMoveStep(),behavior:"smooth"})}))}showPrev(){this.moveDirection="left";const t=this.getContentNode();requestAnimationFrame((()=>{t.scrollTo({top:0,left:t.scrollLeft-this.calculateMoveStep(),behavior:"smooth"})}))}scroll(t){const n=this.getContentNode();requestAnimationFrame((()=>{n.scrollTo({top:0,left:this.calculateMoveStep()*t,behavior:"smooth"})}))}processScrollbarWidth(){const t=this.getContentNode();this.el.style.setProperty("--vviinn-progressbar-width",t.clientWidth*((t.scrollLeft+t.clientWidth)/t.scrollWidth)+"px"),this.activeContentGroup=this.getActiveGroupIndex()}showBullets(){return"grid"===this.mode&&this.showScroll}showScrollbar(){return"continuity"===this.mode&&this.showScroll}getClassMap(){return{[this.mode]:!0,"show-scrollbar":this.showScrollbar()}}renderRecommendation(t,e){return n("vviinn-product-card",{part:"product-part",productId:t.productId,productTitle:t.title,deeplink:t.deeplink,image:t.image.thumbnail,brand:t.brand,imageWidth:this.imageWidth,imageRatio:1,price:t.price.actual,salePrice:t.price.sale,responsive:"grid"===this.mode,dimmedBackground:"continuity"===this.mode,index:e})}renderRecommendationGroup(t){return n("div",{class:"items-group"},t)}renderRecommendationGroups(t){return t.map((t=>this.renderRecommendationGroup(t)))}renderRecommendations(){return"grid"===this.mode?this.renderGrid():this.renderRecommendationsElements()}renderRecommendationsElements(){return this.recommendations.map(((t,n)=>this.renderRecommendation(t,n)))}renderGrid(){const t=this.renderRecommendationsElements(),n=u.chunksOf(this.getColumnsNumber())(t);return this.renderRecommendationGroups(n)}renderBullets(){const t=Math.ceil(this.recommendations.length/this.getColumnsNumber());return Array.from(Array(t).keys()).map((t=>n("div",{class:{bullet:!0,active:this.activeContentGroup===t},onClick:()=>this.scroll(t)})))}render(){return n(e,{class:this.getClassMap()},n("div",{class:Object.assign({body:!0},this.getClassMap())},n("button",{class:"prev",onClick:()=>this.showPrev(),part:"carousel-button"},n(k,null)),n("div",{class:this.getContentClassMap(),onScroll:()=>this.processScrollbarWidth()},this.renderRecommendations()),n("button",{class:"next",onClick:()=>this.showNext(),part:"carousel-button"},n(k,null))),this.showBullets()?n("div",{class:"bullets"},this.renderBullets()):"")}get el(){return r(this)}};M.style=":host{--vviinn-progressbar-width:0;--vviinn-carousel-item-width:150px;--vviinn-carousel-columns-internal:var(--vviinn-carousel-columns,4);--vviinn-carousel-image-width-system:140px}.body{display:flex;flex-direction:column;position:relative;width:var(--vviinn-carousel-content-width)}.content-wrapper *{box-sizing:border-box}.content-wrapper{flex-grow:1;overflow-x:auto;overflow-y:hidden}.bullets{grid-gap:24px;display:flex;flex-direction:row;justify-content:center;margin-top:16px}.bullet{background:#e0e0e0;border-radius:50%;cursor:pointer;height:10px;width:10px}.bullet.active{background:#161616}.content.grid,.content:not(.show-scrollbar){scrollbar-color:#fff0 #fff0}.content.grid::-webkit-scrollbar,.content:not(.show-scrollbar)::-webkit-scrollbar{opacity:0}.content{grid-gap:8px;display:flex;flex-direction:row;flex-grow:1;overflow-x:auto;overflow-y:hidden;padding-bottom:16px;scroll-snap-type:x mandatory}.content.left>*{scroll-snap-align:start}.content.right>*{scroll-snap-align:end}:host(.continuity) button{border-radius:2px}:host(.grid) button{border-radius:50%}button{fill:#525252;align-items:center;background-color:#fff;border:none;box-shadow:0 2px 6px rgba(0,0,0,.15);cursor:pointer;display:grid;height:40px;justify-items:center;margin:0;padding:0;position:absolute;top:calc(50% - 20px);width:40px;z-index:1}button.prev svg{margin-left:-5px;transform:rotate(180deg)}.prev{left:0}.next{right:0}.items-group{grid-gap:16px;display:grid;grid-template-columns:repeat(var(--vviinn-carousel-columns-internal),1fr);min-width:100%}vviinn-product-card::part(price-container){text-align:center}:host(.classic) vviinn-product-card::part(brand),:host(.classic) vviinn-product-card::part(title),:host(.classic) vviinn-product-card::part(type){text-align:center}@media (max-width:480px){:host(.modern) button{display:none}.items-group{grid-template-columns:repeat(2,1fr)}}";const I=s.flow((t=>`Bearer ${t}`),(t=>new Headers({Authorization:t})),(t=>({headers:t}))),U=(F=p,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var e=t.length,r=P(e),i=F.map(t[0],r),o=1;o<e;o++)i=F.ap(i,t[o]);return i});var F;const D=(t,n={})=>c(U(l(),v),d,f(h(t,n))),W=t=>n=>e=>{const r=s.pipe(n,m(encodeURIComponent),b((()=>`product/${t}/similar-products`),(n=>`product/${t}/similar-products?campaigns=${n}`)));return D(r,e)},B=t=>n=>e=>{const r=s.pipe(n,m(encodeURIComponent),b((()=>`product/${t}/cross-selling-products`),(n=>`product/${t}/cross-selling-products?campaigns=${n}`)));return D(r,e)};var q=function(t,n){if(n=n.split(":")[0],!(t=+t))return!1;switch(n){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t},z=Object.prototype.hasOwnProperty;function G(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function L(t){try{return encodeURIComponent(t)}catch(t){return null}}var $={stringify:function(t,n){n=n||"";var e,r,i=[];for(r in"string"!=typeof n&&(n="?"),t)if(z.call(t,r)){if((e=t[r])||null!=e&&!isNaN(e)||(e=""),r=L(r),e=L(e),null===r||null===e)continue;i.push(r+"="+e)}return i.length?n+i.join("&"):""},parse:function(t){for(var n,e=/([^=?#&]+)=?([^&]*)/g,r={};n=e.exec(t);){var i=G(n[1]),o=G(n[2]);null===i||null===o||i in r||(r[i]=o)}return r}},H=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,V=/[\n\r\t]/g,J=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,K=/:\d+$/,X=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Z=/^[a-zA-Z]:/;function Q(t){return(t||"").toString().replace(H,"")}var Y=[["#","hash"],["?","query"],function(t,n){return et(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],tt={hash:1,query:1};function nt(t){var n;n="undefined"!=typeof window?window:void 0!==g?g:"undefined"!=typeof self?self:{};var e,r={},i=typeof(t=t||n.location||{});if("blob:"===t.protocol)r=new it(unescape(t.pathname),{});else if("string"===i)for(e in r=new it(t,{}),tt)delete r[e];else if("object"===i){for(e in t)e in tt||(r[e]=t[e]);void 0===r.slashes&&(r.slashes=J.test(t.href))}return r}function et(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function rt(t,n){t=(t=Q(t)).replace(V,""),n=n||{};var e,r=X.exec(t),i=r[1]?r[1].toLowerCase():"",o=!!r[2],a=!!r[3],u=0;return o?a?(e=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(e=r[2]+r[4],u=r[2].length):a?(e=r[3]+r[4],u=r[3].length):e=r[4],"file:"===i?u>=2&&(e=e.slice(2)):et(i)?e=r[4]:i?o&&(e=e.slice(2)):u>=2&&et(n.protocol)&&(e=r[4]),{protocol:i,slashes:o||et(i),slashesCount:u,rest:e}}function it(t,n,e){if(t=(t=Q(t)).replace(V,""),!(this instanceof it))return new it(t,n,e);var r,i,o,a,u,s,c=Y.slice(),f=typeof n,h=this,d=0;for("object"!==f&&"string"!==f&&(e=n,n=null),e&&"function"!=typeof e&&(e=$.parse),r=!(i=rt(t||"",n=nt(n))).protocol&&!i.slashes,h.slashes=i.slashes||r&&n.slashes,h.protocol=i.protocol||n.protocol||"",t=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||Z.test(t))||!i.slashes&&(i.protocol||i.slashesCount<2||!et(h.protocol)))&&(c[3]=[/(.*)/,"pathname"]);d<c.length;d++)"function"!=typeof(a=c[d])?(s=a[1],(o=a[0])!=o?h[s]=t:"string"==typeof o?~(u="@"===o?t.lastIndexOf(o):t.indexOf(o))&&("number"==typeof a[2]?(h[s]=t.slice(0,u),t=t.slice(u+a[2])):(h[s]=t.slice(u),t=t.slice(0,u))):(u=o.exec(t))&&(h[s]=u[1],t=t.slice(0,u.index)),h[s]=h[s]||r&&a[3]&&n[s]||"",a[4]&&(h[s]=h[s].toLowerCase())):t=a(t,h);e&&(h.query=e(h.query)),r&&n.slashes&&"/"!==h.pathname.charAt(0)&&(""!==h.pathname||""!==n.pathname)&&(h.pathname=function(t,n){if(""===t)return n;for(var e=(n||"/").split("/").slice(0,-1).concat(t.split("/")),r=e.length,i=e[r-1],o=!1,a=0;r--;)"."===e[r]?e.splice(r,1):".."===e[r]?(e.splice(r,1),a++):a&&(0===r&&(o=!0),e.splice(r,1),a--);return o&&e.unshift(""),"."!==i&&".."!==i||e.push(""),e.join("/")}(h.pathname,n.pathname)),"/"!==h.pathname.charAt(0)&&et(h.protocol)&&(h.pathname="/"+h.pathname),q(h.port,h.protocol)||(h.host=h.hostname,h.port=""),h.username=h.password="",h.auth&&(~(u=h.auth.indexOf(":"))?(h.username=h.auth.slice(0,u),h.username=encodeURIComponent(decodeURIComponent(h.username)),h.password=h.auth.slice(u+1),h.password=encodeURIComponent(decodeURIComponent(h.password))):h.username=encodeURIComponent(decodeURIComponent(h.auth)),h.auth=h.password?h.username+":"+h.password:h.username),h.origin="file:"!==h.protocol&&et(h.protocol)&&h.host?h.protocol+"//"+h.host:"null",h.href=h.toString()}it.prototype={set:function(t,n,e){var r=this;switch(t){case"query":"string"==typeof n&&n.length&&(n=(e||$.parse)(n)),r[t]=n;break;case"port":r[t]=n,q(n,r.protocol)?n&&(r.host=r.hostname+":"+n):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=n,r.port&&(n+=":"+r.port),r.host=n;break;case"host":r[t]=n,K.test(n)?(n=n.split(":"),r.port=n.pop(),r.hostname=n.join(":")):(r.hostname=n,r.port="");break;case"protocol":r.protocol=n.toLowerCase(),r.slashes=!e;break;case"pathname":case"hash":if(n){var i="pathname"===t?"/":"#";r[t]=n.charAt(0)!==i?i+n:n}else r[t]=n;break;case"username":case"password":r[t]=encodeURIComponent(n);break;case"auth":var o=n.indexOf(":");~o?(r.username=n.slice(0,o),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=n.slice(o+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(n))}for(var a=0;a<Y.length;a++){var u=Y[a];u[4]&&(r[u[1]]=r[u[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&et(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(t){t&&"function"==typeof t||(t=$.stringify);var n,e=this,r=e.host,i=e.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(e.protocol&&e.slashes||et(e.protocol)?"//":"");return e.username?(o+=e.username,e.password&&(o+=":"+e.password),o+="@"):e.password?(o+=":"+e.password,o+="@"):"file:"!==e.protocol&&et(e.protocol)&&!r&&"/"!==e.pathname&&(o+="@"),(":"===r[r.length-1]||K.test(e.hostname)&&!e.port)&&(r+=":"),o+=r+e.pathname,(n="object"==typeof e.query?t(e.query):e.query)&&(o+="?"!==n.charAt(0)?"?"+n:n),e.hash&&(o+=e.hash),o}},it.extractProtocol=rt,it.location=nt,it.trimLeft=Q,it.qs=$;var ot=it,at=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.map=n.mergeMap=n.of=n.from=n.Observable=void 0;var e=function(){function t(t){this.promise=t}return t.prototype.toPromise=function(){return this.promise},t.prototype.pipe=function(n){return new t(this.promise.then(n))},t}();n.Observable=e,n.from=function(t){return new e(t)},n.of=function(t){return new e(Promise.resolve(t))},n.mergeMap=function(t){return function(n){return t(n).toPromise()}},n.map=function(t){return t}})),ut="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==ut&&ut,st="URLSearchParams"in ut,ct="Symbol"in ut&&"iterator"in Symbol,ft="FileReader"in ut&&"Blob"in ut&&function(){try{return new Blob,!0}catch(t){return!1}}(),ht="FormData"in ut,dt="ArrayBuffer"in ut;if(dt)var lt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],vt=ArrayBuffer.isView||function(t){return t&<.indexOf(Object.prototype.toString.call(t))>-1};function pt(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function mt(t){return"string"!=typeof t&&(t=String(t)),t}function bt(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return ct&&(n[Symbol.iterator]=function(){return n}),n}function gt(t){this.map={},t instanceof gt?t.forEach((function(t,n){this.append(n,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(n){this.append(n,t[n])}),this)}function yt(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function wt(t){return new Promise((function(n,e){t.onload=function(){n(t.result)},t.onerror=function(){e(t.error)}}))}function _t(t){var n=new FileReader,e=wt(n);return n.readAsArrayBuffer(t),e}function jt(t){if(t.slice)return t.slice(0);var n=new Uint8Array(t.byteLength);return n.set(new Uint8Array(t)),n.buffer}function Ot(){return this.bodyUsed=!1,this._initBody=function(t){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:ft&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:ht&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:st&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():dt&&ft&&(n=t)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=jt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):dt&&(ArrayBuffer.prototype.isPrototypeOf(t)||vt(t))?this._bodyArrayBuffer=jt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):st&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ft&&(this.blob=function(){var t=yt(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?yt(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(_t)}),this.text=function(){var t,n,e,r=yt(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=wt(n=new FileReader),n.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var n=new Uint8Array(t),e=new Array(n.length),r=0;r<n.length;r++)e[r]=String.fromCharCode(n[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ht&&(this.formData=function(){return this.text().then(xt)}),this.json=function(){return this.text().then(JSON.parse)},this}gt.prototype.append=function(t,n){t=pt(t),n=mt(n);var e=this.map[t];this.map[t]=e?e+", "+n:n},gt.prototype.delete=function(t){delete this.map[pt(t)]},gt.prototype.get=function(t){return t=pt(t),this.has(t)?this.map[t]:null},gt.prototype.has=function(t){return this.map.hasOwnProperty(pt(t))},gt.prototype.set=function(t,n){this.map[pt(t)]=mt(n)},gt.prototype.forEach=function(t,n){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(n,this.map[e],e,this)},gt.prototype.keys=function(){var t=[];return this.forEach((function(n,e){t.push(e)})),bt(t)},gt.prototype.values=function(){var t=[];return this.forEach((function(n){t.push(n)})),bt(t)},gt.prototype.entries=function(){var t=[];return this.forEach((function(n,e){t.push([e,n])})),bt(t)},ct&&(gt.prototype[Symbol.iterator]=gt.prototype.entries);var Et=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ct(t,n){if(!(this instanceof Ct))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var e,r,i=(n=n||{}).body;if(t instanceof Ct){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new gt(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new gt(n.headers)),this.method=(r=(e=n.method||this.method||"GET").toUpperCase(),Et.indexOf(r)>-1?r:e),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function xt(t){var n=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(i))}})),n}function At(t,n){if(!(this instanceof At))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===n.statusText?"":""+n.statusText,this.headers=new gt(n.headers),this.url=n.url||"",this._initBody(t)}Ct.prototype.clone=function(){return new Ct(this,{body:this._bodyInit})},Ot.call(Ct.prototype),Ot.call(At.prototype),At.prototype.clone=function(){return new At(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new gt(this.headers),url:this.url})},At.error=function(){var t=new At(null,{status:0,statusText:""});return t.type="error",t};var St=[301,302,303,307,308];At.redirect=function(t,n){if(-1===St.indexOf(n))throw new RangeError("Invalid status code");return new At(null,{status:n,headers:{location:t}})};var Tt=ut.DOMException;try{new Tt}catch(t){(Tt=function(t,n){this.message=t,this.name=n;var e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Tt.prototype.constructor=Tt}function kt(t,n){return new Promise((function(e,r){var i=new Ct(t,n);if(i.signal&&i.signal.aborted)return r(new Tt("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var t,n,r={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",n=new gt,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();n.append(r,i)}})),n)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){e(new At(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Tt("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&ut.location.href?ut.location.href:t}catch(n){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(ft?o.responseType="blob":dt&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof gt?i.headers.forEach((function(t,n){o.setRequestHeader(n,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){o.setRequestHeader(t,mt(n.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}kt.polyfill=!0,ut.fetch||(ut.fetch=kt,ut.Headers=gt,ut.Request=Ct,ut.Response=At);var Nt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.IsomorphicFetchHttpLibrary=void 0;var e=function(){function t(){}return t.prototype.send=function(t){var n=t.getHttpMethod().toString(),e=t.getBody(),r=fetch(t.getUrl(),{method:n,body:e,headers:t.getHeaders(),credentials:"same-origin"}).then((function(t){var n={};t.headers.forEach((function(t,e){n[e]=t}));var e={text:function(){return t.text()},binary:function(){return t.blob()}};return new Rt.ResponseContext(t.status,n,e)}));return(0,at.from)(r)},t}();n.IsomorphicFetchHttpLibrary=e})),Rt=y((function(t,n){var e,r,i=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),o=g&&g.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),a=g&&g.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||o(n,t,e)},u=g&&g.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function u(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,u)}s((r=r.apply(t,n||[])).next())}))},s=g&&g.__generator||function(t,n){var e,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.wrapHttpLibrary=n.ResponseContext=n.SelfDecodingBody=n.RequestContext=n.HttpException=n.HttpMethod=void 0,a(Nt,n),(r=n.HttpMethod||(n.HttpMethod={})).GET="GET",r.HEAD="HEAD",r.POST="POST",r.PUT="PUT",r.DELETE="DELETE",r.CONNECT="CONNECT",r.OPTIONS="OPTIONS",r.TRACE="TRACE",r.PATCH="PATCH";var c=function(t){function n(n){return t.call(this,n)||this}return i(n,t),n}(Error);n.HttpException=c;var f=function(){function t(t,n){this.httpMethod=n,this.headers={},this.body=void 0,this.url=new ot(t,!0)}return t.prototype.getUrl=function(){return this.url.toString()},t.prototype.setUrl=function(t){this.url=new ot(t,!0)},t.prototype.setBody=function(t){this.body=t},t.prototype.getHttpMethod=function(){return this.httpMethod},t.prototype.getHeaders=function(){return this.headers},t.prototype.getBody=function(){return this.body},t.prototype.setQueryParam=function(t,n){var e=this.url.query;e[t]=n,this.url.set("query",e)},t.prototype.addCookie=function(t,n){this.headers.Cookie||(this.headers.Cookie=""),this.headers.Cookie+=t+"="+n+"; "},t.prototype.setHeaderParam=function(t,n){this.headers[t]=n},t}();n.RequestContext=f;var h=function(){function t(t){this.dataSource=t}return t.prototype.binary=function(){return this.dataSource},t.prototype.text=function(){return u(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,this.dataSource];case 1:return(t=n.sent()).text?[2,t.text()]:[2,new Promise((function(n,e){var r=new FileReader;r.addEventListener("load",(function(){return n(r.result)})),r.addEventListener("error",(function(){return e(r.error)})),r.readAsText(t)}))]}}))}))},t}();n.SelfDecodingBody=h;var d=function(){function t(t,n,e){this.httpStatusCode=t,this.headers=n,this.body=e}return t.prototype.getParsedHeader=function(t){var n={};if(!this.headers[t])return n;for(var e=0,r=this.headers[t].split(";");e<r.length;e++){var i=r[e].split("=",2),o=i[0],a=i[1];o=o.toLowerCase().trim(),void 0===a?n[""]=o:((a=a.trim()).startsWith('"')&&a.endsWith('"')&&(a=a.substring(1,a.length-1)),n[o]=a)}return n},t.prototype.getBodyAsFile=function(){return u(this,void 0,void 0,(function(){var t,n,e;return s(this,(function(r){switch(r.label){case 0:return[4,this.body.binary()];case 1:t=r.sent(),n=this.getParsedHeader("content-disposition").filename||"",e=this.headers["content-type"]||"";try{return[2,new File([t],n,{type:e})]}catch(r){return[2,Object.assign(t,{name:n,type:e})]}return[2]}}))}))},t.prototype.getBodyAsAny=function(){try{return this.body.text()}catch(t){}try{return this.body.binary()}catch(t){}return Promise.resolve(void 0)},t}();n.ResponseContext=d,n.wrapHttpLibrary=function(t){return{send:function(n){return(0,at.from)(t.send(n))}}}})),Pt=y((function(t,n){var e=g&&g.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function u(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,u)}s((r=r.apply(t,n||[])).next())}))},r=g&&g.__generator||function(t,n){var e,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.configureAuthMethods=n.BearerAuthAuthentication=void 0;var i=function(){function t(t){this.tokenProvider=t}return t.prototype.getName=function(){return"bearerAuth"},t.prototype.applySecurityAuthentication=function(t){return e(this,void 0,void 0,(function(){var n,e,i,o;return r(this,(function(r){switch(r.label){case 0:return e=(n=t).setHeaderParam,i=["Authorization"],o="Bearer ",[4,this.tokenProvider.getToken()];case 1:return e.apply(n,i.concat([o+r.sent()])),[2]}}))}))},t}();n.BearerAuthAuthentication=i,n.configureAuthMethods=function(t){var n={};return t?(n.default=t.default,t.bearerAuth&&(n.bearerAuth=new i(t.bearerAuth.tokenProvider)),n):n}})),Mt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorObject=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"domain",baseName:"domain",type:"string",format:""},{name:"reason",baseName:"reason",type:"string",format:""},{name:"message",baseName:"message",type:"string",format:""},{name:"location",baseName:"location",type:"string",format:""},{name:"location_type",baseName:"location_type",type:"string",format:""},{name:"extended_help",baseName:"extended_help",type:"string",format:""},{name:"send_report",baseName:"send_report",type:"string",format:""}],t}();n.ErrorObject=e})),It=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorResponse=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"code",baseName:"code",type:"number",format:""},{name:"message",baseName:"message",type:"string",format:""},{name:"errors",baseName:"errors",type:"Array<ErrorObject>",format:""}],t}();n.ErrorResponse=e})),Ut=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Event=void 0;var e=function(){function t(){this.typ="Event"}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator="typ",t.attributeTypeMap=[{name:"session_id",baseName:"session_id",type:"string",format:""},{name:"typ",baseName:"typ",type:"string",format:""}],t}();n.Event=e})),Ft=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.EventConfirmation=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"status",baseName:"status",type:"EventConfirmationStatusEnum",format:""}],t}();n.EventConfirmation=e})),Dt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),Wt=y((function(t,n){var e,r=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0}),n.FilterEvent=void 0;var i=function(t){function n(){var n=t.call(this)||this;return n.typ="FilterEvent",n}return r(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],n}(Ut.Event);n.FilterEvent=i})),Bt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FilterEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],t}();n.FilterEventAllOf=e})),qt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),zt=y((function(t,n){var e,r=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0}),n.ProductClickEvent=void 0;var i=function(t){function n(){var n=t.call(this)||this;return n.typ="ProductClickEvent",n}return r(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],n}(Ut.Event);n.ProductClickEvent=i})),Gt=y((function(t,n){var e,r=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0}),n.ProductViewEvent=void 0;var i=function(t){function n(){var n=t.call(this)||this;return n.typ="ProductViewEvent",n}return r(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],n}(Ut.Event);n.ProductViewEvent=i})),Lt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ProductViewEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],t}();n.ProductViewEventAllOf=e})),$t=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),Ht=y((function(t,n){var e,r=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0}),n.SearchEvent=void 0;var i=function(t){function n(){var n=t.call(this)||this;return n.typ="SearchEvent",n}return r(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],n}(Ut.Event);n.SearchEvent=i})),Vt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SearchEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],t}();n.SearchEventAllOf=e})),Jt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),Kt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),Xt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),Zt=y((function(t,n){var e,r=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetEvent=void 0;var i=function(t){function n(){var n=t.call(this)||this;return n.typ="WidgetEvent",n}return r(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],n}(Ut.Event);n.WidgetEvent=i})),Qt=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],t}();n.WidgetEventAllOf=e})),Yt=y((function(t,n){var e=g&&g.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=g&&g.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};Object.defineProperty(n,"__esModule",{value:!0}),r(Mt,n),r(It,n),r(Ut,n),r(Ft,n),r(Dt,n),r(Wt,n),r(Bt,n),r(qt,n),r(zt,n),r(Gt,n),r(Lt,n),r($t,n),r(Ht,n),r(Vt,n),r(Jt,n),r(Kt,n),r(Xt,n),r(Zt,n),r(Qt,n)})),tn=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseMiddlewareWrapper=void 0;var e=function(){function t(t){this.middleware=t}return t.prototype.pre=function(t){return(0,at.from)(this.middleware.pre(t))},t.prototype.post=function(t){return(0,at.from)(this.middleware.post(t))},t}();n.PromiseMiddlewareWrapper=e})),nn=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.servers=n.server2=n.server1=n.ServerConfiguration=void 0;var e=function(){function t(t,n){this.url=t,this.variableConfiguration=n}return t.prototype.setVariables=function(t){Object.assign(this.variableConfiguration,t)},t.prototype.getConfiguration=function(){return this.variableConfiguration},t.prototype.getUrl=function(){var t=this.url;for(var n in this.variableConfiguration){var e=new RegExp("{"+n+"}","g");t=t.replace(e,this.variableConfiguration[n])}return t},t.prototype.makeRequestContext=function(t,n){return new Rt.RequestContext(this.getUrl()+t,n)},t}();n.ServerConfiguration=e,n.server1=new e("https://tracking.vviinn.com",{}),n.server2=new e("https://tracking.stage.vviinn.com",{}),n.servers=[n.server1,n.server2]})),en=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createConfiguration=void 0,n.createConfiguration=function(t){void 0===t&&(t={});var n={baseServer:void 0!==t.baseServer?t.baseServer:nn.server1,httpApi:t.httpApi||new Nt.IsomorphicFetchHttpLibrary,middleware:t.middleware||[],authMethods:(0,Pt.configureAuthMethods)(t.authMethods)};return t.promiseMiddleware&&t.promiseMiddleware.forEach((function(t){return n.middleware.push(new tn.PromiseMiddlewareWrapper(t))})),n}})),rn=y((function(t,n){var e,r=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0}),n.ApiException=void 0;var i=function(t){function n(n,e,r,i){var o=t.call(this,"HTTP-Code: "+n+"\nMessage: "+e+"\nBody: "+JSON.stringify(r)+"\nHeaders: "+JSON.stringify(i))||this;return o.code=n,o.body=r,o.headers=i,o}return r(n,t),n}(Error);n.ApiException=i})),on=y((function(t,n){var e,r=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0}),n.RequiredError=n.BaseAPIRequestFactory=n.COLLECTION_FORMATS=void 0,n.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},n.BaseAPIRequestFactory=function(t){this.configuration=t};var i=function(t){function n(n,e,r){var i=t.call(this,"Required parameter "+r+" was null or undefined when calling "+n+"."+e+".")||this;return i.api=n,i.method=e,i.field=r,i.name="RequiredError",i}return r(n,t),n}(Error);n.RequiredError=i})),an=y((function(t,n){var e=g&&g.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=g&&g.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};Object.defineProperty(n,"__esModule",{value:!0}),n.ObjectSerializer=void 0,r(Mt,n),r(It,n),r(Ut,n),r(Ft,n),r(Dt,n),r(Wt,n),r(Bt,n),r(qt,n),r(zt,n),r(Gt,n),r(Lt,n),r($t,n),r(Ht,n),r(Vt,n),r(Jt,n),r(Kt,n),r(Xt,n),r(Zt,n),r(Qt,n);var i=Mt,o=It,a=Ut,u=Ft,s=Wt,c=Bt,f=zt,h=Gt,d=Lt,l=Ht,v=Vt,p=Zt,m=Qt,b=["string","boolean","double","integer","long","float","number","any"],y={"application/json":1/0,"application/octet-stream":0,"application/x-www-form-urlencoded":0},w=new Set(["EventConfirmationStatusEnum","FilterAction","FilterKind","SearchArea","SearchImageSource","Widget","WidgetAction"]),_={ErrorObject:i.ErrorObject,ErrorResponse:o.ErrorResponse,Event:a.Event,EventConfirmation:u.EventConfirmation,FilterEvent:s.FilterEvent,FilterEventAllOf:c.FilterEventAllOf,ProductClickEvent:f.ProductClickEvent,ProductViewEvent:h.ProductViewEvent,ProductViewEventAllOf:d.ProductViewEventAllOf,SearchEvent:l.SearchEvent,SearchEventAllOf:v.SearchEventAllOf,WidgetEvent:p.WidgetEvent,WidgetEventAllOf:m.WidgetEventAllOf},j=function(){function t(){}return t.findCorrectType=function(t,n){if(null==t)return n;if(-1!==b.indexOf(n.toLowerCase()))return n;if("Date"===n)return n;if(w.has(n))return n;if(!_[n])return n;var e=_[n].discriminator;if(null==e)return n;if(t[e]){var r=t[e];return _[r]?r:n}return n},t.serialize=function(n,e,r){if(null==n)return n;if(-1!==b.indexOf(e.toLowerCase()))return n;if(0===e.lastIndexOf("Array<",0)){var i=e.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var a in n)o.push(t.serialize(n[a],i,r));return o}if("Date"===e){if("date"==r){var u=n.getMonth()+1;u=u<10?"0"+u.toString():u.toString();var s=n.getDate();return s=s<10?"0"+s.toString():s.toString(),n.getFullYear()+"-"+u+"-"+s}return n.toISOString()}if(w.has(e))return n;if(!_[e])return n;e=this.findCorrectType(n,e);var c=_[e].getAttributeTypeMap(),f={};for(var a in c){var h=c[a];f[h.baseName]=t.serialize(n[h.name],h.type,h.format)}return f},t.deserialize=function(n,e,r){if(e=t.findCorrectType(n,e),null==n)return n;if(-1!==b.indexOf(e.toLowerCase()))return n;if(0===e.lastIndexOf("Array<",0)){var i=e.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var a in n)o.push(t.deserialize(n[a],i,r));return o}if("Date"===e)return new Date(n);if(w.has(e))return n;if(!_[e])return n;var u=new _[e],s=_[e].getAttributeTypeMap();for(var a in s){var c=s[a];u[c.name]=t.deserialize(n[c.baseName],c.type,c.format)}return u},t.normalizeMediaType=function(t){if(void 0!==t)return t.split(";")[0].trim().toLowerCase()},t.getPreferredMediaType=function(t){if(!t)return"application/json";for(var n=void 0,e=-1/0,r=0,i=t.map(this.normalizeMediaType);r<i.length;r++){var o=i[r];y[o]>e&&(n=o,e=y[o])}if(void 0===n)throw new Error("None of the given media types are supported: "+t.join(", "));return n},t.stringify=function(t,n){if("application/json"===n)return JSON.stringify(t);throw new Error("The mediaType "+n+" is not supported by ObjectSerializer.stringify.")},t.parse=function(t,n){if(void 0===n)throw new Error("Cannot parse content. No Content-Type defined.");if("application/json"===n)return JSON.parse(t);throw new Error("The mediaType "+n+" is not supported by ObjectSerializer.parse.")},t}();n.ObjectSerializer=j})),un=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.canConsumeForm=n.isCodeInRange=void 0,n.isCodeInRange=function(t,n){if("0"===t)return!0;if(t==n.toString())return!0;var e=n.toString();if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if("X"!=t.charAt(r)&&t.charAt(r)!=e.charAt(r))return!1;return!0},n.canConsumeForm=function(t){return-1!==t.indexOf("multipart/form-data")}})),sn=y((function(t,n){var e,r=g&&g.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),i=g&&g.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function u(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,u)}s((r=r.apply(t,n||[])).next())}))},o=g&&g.__generator||function(t,n){var e,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(t,a)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.DefaultApiResponseProcessor=n.DefaultApiRequestFactory=void 0;var a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.trackEvent=function(t,n){var e,r,a;return i(this,void 0,void 0,(function(){var i,u,s,c,f,h;return o(this,(function(o){switch(o.label){case 0:return(u=(i=n||this.configuration).baseServer.makeRequestContext("/event",Rt.HttpMethod.POST)).setHeaderParam("Accept","application/json, */*;q=0.8"),s=an.ObjectSerializer.getPreferredMediaType(["application/json"]),u.setHeaderParam("Content-Type",s),c=an.ObjectSerializer.stringify(an.ObjectSerializer.serialize(t,"ProductViewEvent | ProductClickEvent | WidgetEvent | FilterEvent | SearchEvent",""),s),u.setBody(c),(null==(f=i.authMethods.bearerAuth)?void 0:f.applySecurityAuthentication)?[4,null==f?void 0:f.applySecurityAuthentication(u)]:[3,2];case 1:o.sent(),o.label=2;case 2:return(null==(h=(null===(e=null==n?void 0:n.authMethods)||void 0===e?void 0:e.default)||(null===(a=null===(r=this.configuration)||void 0===r?void 0:r.authMethods)||void 0===a?void 0:a.default))?void 0:h.applySecurityAuthentication)?[4,null==h?void 0:h.applySecurityAuthentication(u)]:[3,4];case 3:o.sent(),o.label=4;case 4:return[2,u]}}))}))},n}(on.BaseAPIRequestFactory);n.DefaultApiRequestFactory=a;var u=function(){function t(){}return t.prototype.trackEvent=function(t){return i(this,void 0,void 0,(function(){var n,e,r,i,a,u,s,c,f,h,d,l,v,p,m,b;return o(this,(function(o){switch(o.label){case 0:return n=an.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,un.isCodeInRange)("200",t.httpStatusCode)?(r=(e=an.ObjectSerializer).deserialize,a=(i=an.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,h=r.apply(e,[a.apply(i,[o.sent(),n]),"EventConfirmation",""])];case 2:return(0,un.isCodeInRange)("502",t.httpStatusCode)?(s=(u=an.ObjectSerializer).deserialize,f=(c=an.ObjectSerializer).parse,[4,t.body.text()]):[3,4];case 3:throw h=s.apply(u,[f.apply(c,[o.sent(),n]),"ErrorResponse",""]),new rn.ApiException(502,"an error occurred",h,t.headers);case 4:return t.httpStatusCode>=200&&t.httpStatusCode<=299?(l=(d=an.ObjectSerializer).deserialize,p=(v=an.ObjectSerializer).parse,[4,t.body.text()]):[3,6];case 5:return[2,h=l.apply(d,[p.apply(v,[o.sent(),n]),"EventConfirmation",""])];case 6:return m=rn.ApiException.bind,b=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 7:throw new(m.apply(rn.ApiException,b.concat([o.sent(),t.headers])))}}))}))},t}();n.DefaultApiResponseProcessor=u})),cn=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ObservableDefaultApi=void 0;var e=at,r=function(){function t(t,n,e){this.configuration=t,this.requestFactory=n||new sn.DefaultApiRequestFactory(t),this.responseProcessor=e||new sn.DefaultApiResponseProcessor}return t.prototype.trackEvent=function(t,n){for(var r=this,i=this.requestFactory.trackEvent(t,n),o=(0,at.from)(i),a=function(t){o=o.pipe((0,e.mergeMap)((function(n){return t.pre(n)})))},u=0,s=this.configuration.middleware;u<s.length;u++)a(s[u]);return o.pipe((0,e.mergeMap)((function(t){return r.configuration.httpApi.send(t)}))).pipe((0,e.mergeMap)((function(t){for(var n=(0,at.of)(t),i=function(t){n=n.pipe((0,e.mergeMap)((function(n){return t.post(n)})))},o=0,a=r.configuration.middleware;o<a.length;o++)i(a[o]);return n.pipe((0,e.map)((function(t){return r.responseProcessor.trackEvent(t)})))})))},t}();n.ObservableDefaultApi=r})),fn=y((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseDefaultApi=void 0;var e=function(){function t(t,n,e){this.api=new cn.ObservableDefaultApi(t,n,e)}return t.prototype.trackEvent=function(t,n){return this.api.trackEvent(t,n).toPromise()},t}();n.PromiseDefaultApi=e})),hn=y((function(t,n){var e=g&&g.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),r=g&&g.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};Object.defineProperty(n,"__esModule",{value:!0}),n.DefaultApi=n.createConfiguration=void 0,r(Rt,n),r(Pt,n),r(Yt,n),Object.defineProperty(n,"createConfiguration",{enumerable:!0,get:function(){return en.createConfiguration}}),r(rn,n),r(nn,n),Object.defineProperty(n,"DefaultApi",{enumerable:!0,get:function(){return fn.PromiseDefaultApi}})}));let dn=class{constructor(n){t(this,n),this.recommendationsLoaded=i(this,"recommendationsLoaded",7),this.blockTitle="Recommended products",this.imageRatio=1,this.imageWidth=300,this.currencySign="€",this.mode="continuity",this.campaignType="VPR",this.locale="de-DE",this.campaigns="",this.apiPath="https://api.vviinn.com",this.useCarousel=!0,this.showScroll=!0,this.cssUrl=null,this.recommendations=[],this.loaded=!1,this.productImageLoadedSubject=new w}handleProductIdChange(){this.getRecommendations()}handleCampaignTypeChange(){this.getRecommendations()}handleCampaignsChange(){this.getRecommendations()}handleApiPathChange(t){_.apiPath=t,this.getRecommendations()}handleImageLoading({detail:t}){this.productImageLoadedSubject.next(t)}trackRecommendationView({detail:t}){const n=j(Object.assign({session_id:this.uiSessionId},t));this.trackingApi.trackEvent(n)}trackRecommendationClick({detail:t}){const n=O(Object.assign({session_id:this.uiSessionId},t));this.trackingApi.trackEvent(n).finally((()=>{const n=this.recommendations.find((n=>n.productId===t.product));n&&n.deeplink&&(window.location.href=n.deeplink)}))}connectedCallback(){_.apiPath=this.apiPath,_.currencySign=this.currencySign,_.locale=this.locale,this.uiSessionId=E(),this.trackingApi=((t,n)=>{const e=(t=>(t=>!t.includes("stage"))(t)?hn.servers[0]:hn.servers[1])(t),r=(t=>({bearerAuth:{tokenProvider:{getToken:()=>new Promise((n=>n(t)))}}}))(n);return new hn.DefaultApi(hn.createConfiguration({baseServer:e,authMethods:r}))})(this.apiPath,this.token);const t=C({action:"open",session_id:this.uiSessionId});this.trackingApi.trackEvent(t)}disconnectedCallback(){const t=C({action:"close",session_id:this.uiSessionId});this.trackingApi.trackEvent(t)}async componentWillLoad(){_.pricePrefix=this.pricePrefix,_.currencySign=this.currencySign,this.getRecommendations()}async getRecommendations(){if(void 0===this.productId||void 0===this.token)return;const t=this.campaignType.length>0?this.campaignType:"VPR",n=I(this.token),e=s.pipe(x.of((t=>{return s.pipe("VPR"===t?{_tag:"VPR"}:{_tag:"VCS"},(n=()=>W,e=()=>B,t=>(t=>"VPR"===t._tag)(t)?n():e()));var n,e})(t)),x.ap(x.of(this.productId)),x.ap(x.of(A(this.campaigns))),x.ap(x.of(n)),x.flatten),r=await e();s.pipe(r,S.fold((t=>this.handleError(t)),(t=>this.handleRecommendationsSucces(t))))}handleError(t){console.log("ERROR:",t)}handleRecommendationsSucces(t){var n;this.recommendations=null!==(n=null==t?void 0:t.extended)&&void 0!==n?n:t,T.results=this.recommendations,this.loaded=!0,this.productIds=this.recommendations.map((t=>t.productId)),this.productImageLoadedSubject.subscribe((t=>{this.productIds=this.productIds.filter((n=>n!==t)),0===this.productIds.length&&this.recommendationsLoaded.emit()}))}isExternalCSS(){return this.cssUrl&&this.cssUrl.length>0}renderExternalCSS(){return this.isExternalCSS()?n("link",{href:this.cssUrl,rel:"stylesheet"}):""}render(){return n(e,{class:{loaded:this.loaded,empty:0==this.recommendations.length,[this.mode]:!0},"aria-hidden":this.loaded?"false":"true"},this.renderExternalCSS(),n("style",null,_.fallbackStyles),n("h2",{part:"recommendations-title"},this.blockTitle),this.useCarousel?this.renderCarousel():this.renderResults())}renderRecommendation(t,e){return n("vviinn-product-card",{part:"product-part",productId:t.productId,productTitle:t.title,deeplink:t.deeplink,image:t.image.thumbnail,brand:t.brand,imageWidth:this.imageWidth,imageRatio:1,price:t.price.actual,salePrice:t.price.sale,responsive:"grid"===this.mode,dimmedBackground:this.useDimmedBackgroundInCard(),index:e})}useDimmedBackgroundInCard(){return"continuity"===this.mode||!this.useCarousel}renderResults(){return n("div",{class:"recommendations-grid",part:"recommendations-grid"},this.recommendations.map(((t,n)=>this.renderRecommendation(t,n))))}renderCarousel(){return n("vviinn-carousel",{mode:this.mode,imageWidth:this.imageWidth,showScroll:this.showScroll,recommendations:this.recommendations})}get el(){return r(this)}static get watchers(){return{productId:["handleProductIdChange"],campaignType:["handleCampaignTypeChange"],campaigns:["handleCampaignsChange"],apiPath:["handleApiPathChange"]}}};dn.style=":host{grid-gap:1rem;display:grid;width:100%}:host(:not(.loaded)){position:absolute;visibility:hidden}:host(.grid) vviinn-product-card::part(image){border:1px solid #ddd;width:100%}vviinn-product-card::part(price-container){align-self:flex-start;display:flex;text-align:left}.results{grid-gap:1rem;display:grid}.visually-hidden{height:0;left:0;position:absolute;top:0;width:0;z-index:-1}h2{margin:0}:host(.grid) h2{justify-content:center}:host(.grid) vviinn-product-card::part(image){min-width:100%}:host(.grid) vviinn-product-card::part(image-link){width:100%}:host(.grid) vviinn-product-card::part(brand),:host(.grid) vviinn-product-card::part(title),:host(.grid) vviinn-product-card::part(type){text-align:center}:host(.grid) vviinn-product-card::part(price-container){align-self:center}:host(.continuity) vviinn-product-card::part(brand),:host(.continuity) vviinn-product-card::part(deeplink),:host(.continuity) vviinn-product-card::part(title),:host(.continuity) vviinn-product-card::part(type){align-self:start;max-width:unset;text-align:left}";export{M as vviinn_carousel,dn as vviinn_vpr_widget}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as i,c as n,g as r}from"./p-880bccf1.js";import{g as s,p as o,O as a,s as l,i as d,a as c,_ as p,t as h,m as g,f as m,b as u,c as v,d as b,e as f,h as x,j as w,k as y,l as k,n as z,E as _,o as C,q as S,r as L,u as j,v as I,S as M,w as D,N as W,x as E,y as A,z as V,A as P,B as F,C as $,D as B,F as G,G as O}from"./p-07e16d04.js";import{C as T,O as Y,a as H,b as K,A as R,c as Z}from"./p-ea8dea5c.js";let N=class{constructor(e){t(this,e),this.disabled=!1}render(){return e(i,{part:`handle ${s(this.handler.direction)}`,class:{disabled:this.disabled,[s(this.handler.direction)]:!0},style:{"--size":"20px",cursor:s(this.handler.direction)},draggable:!1})}};N.style=":host{--size:20px;background:transparent;border:4px solid #fff;box-sizing:content-box;display:block;height:var(--size);position:absolute;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--size);z-index:1}:host(.disabled){opacity:.25}:host(.nw-resize){border-bottom:none;border-right:none;left:0;top:0}:host(.ne-resize){border-bottom:none;border-left:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;bottom:0;left:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";let q=class{constructor(e){t(this,e)}getInsetValue(){return o(l(d.searchArea,d.imageBounds),a.map((([t,e])=>{return`inset(${(i=t,n=e,r={top:`${i.y}px`,right:n.width-(i.x+i.width)+"px",bottom:n.height-(i.y+i.height)+"px",left:`${i.x}px`}).top} ${r.right} ${r.bottom} ${r.left})`;var i,n,r})),a.getOrElse((()=>"")))}renderImage(){return o(l(d.imageUrl,d.imageBounds),a.map((([t,i])=>e("img",{src:t,width:i.width,height:i.height,style:{"clip-path":`${this.getInsetValue()}`}}))),a.getOrElse((()=>"")))}render(){return e(i,null,this.renderImage())}};q.style=':host{--size:10px;--x-position:0;--y-position:0;border:none;box-sizing:border-box;display:grid;height:100%;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}img{-webkit-user-select:none;-moz-user-select:none;user-select:none}.pointer{-webkit-animation:i .25s linear;animation:i .25s linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;background:#000;border-radius:50%;position:absolute;transform:translate(var(--x-position),var(--y-position)) scale(0);z-index:1}.pointer,.pointer:after{cursor:pointer;height:var(--size);width:var(--size)}.pointer:after{border:5px solid #000;border-radius:50%;content:"";display:block;opacity:.75;padding:calc(var(--size)*.5);transform:translate(calc(-50% + var(--size)*.5),calc(-50% + var(--size)*.5))}@-webkit-keyframes i{0%{transform:translate(var(--x-position),var(--y-position)) scale(0)}to{transform:translate(var(--x-position),var(--y-position)) scale(1)}}@keyframes i{0%{transform:translate(var(--x-position),var(--y-position)) scale(0)}to{transform:translate(var(--x-position),var(--y-position)) scale(1)}}';let X=class{constructor(e){t(this,e),this.cropperChanged=n(this,"cropperChanged",7),this.disabled=!1,this.handleMove=!1,this.mouseStartPoint=void 0,this.bounds=void 0}componentDidLoad(){this.bounds=this.el.getBoundingClientRect()}handleHandlerMove(t){t.preventDefault(),t.stopPropagation();const e=m(t),i={position:c.concat(e,this.mouseStartPoint),direction:this.handlerMoveDirection};p.pipe(d.searchArea,a.map((t=>{const n=h(t,i);this.outOfBounds(n)||(d.searchArea=a.some(n),this.mouseStartPoint=e,d.detectedObject=void 0)})))}outOfBounds(t){return t.width<40||t.height<40||t.x<0||t.y<0||this.bounds.height-(t.y+t.height)<0||this.bounds.width-(t.x+t.width)<0}handleCropperMove(t){t.preventDefault(),t.stopPropagation();const e=m(t),i=c.concat(e,this.mouseStartPoint);p.pipe(d.searchArea,a.map((t=>{const n=g(t,i);n.x<0||n.y<0||this.bounds.height-(n.y+n.height)<0||this.bounds.width-(n.x+n.width)<0||(d.detectedObject=void 0,d.searchArea=a.some(n),this.mouseStartPoint=e)})))}handlePointerDown(t){t.stopPropagation(),this.mouseStartPoint=m(t);const e=t.target;"cropper-handler"===e.localName?(this.handlerMoveDirection=e.handler.direction,this.pointerMoveListener=this.handleHandlerMove.bind(this)):this.pointerMoveListener=this.handleCropperMove.bind(this),this.pointerReleaseListener=this.handleSearchAreaRelease.bind(this),this.el.addEventListener("pointermove",this.pointerMoveListener),window.addEventListener("pointerup",this.pointerReleaseListener,{once:!0})}handleSearchAreaRelease(){this.el.removeEventListener("pointermove",this.pointerMoveListener),document.removeEventListener("pointerup",this.pointerReleaseListener),this.mouseStartPoint=void 0,u(),this.cropperChanged.emit()}getStyleMap(){return p.pipe(d.searchArea,a.map((t=>({width:`${t.width}px`,height:`${t.height}px`,transform:`translate3d(${t.x}px, ${t.y}px, 0)`,cursor:this.handleMove?"move":"default"}))),a.getOrElse((()=>({}))))}render(){return e(i,{exportparts:"handle, e-resize, n-resize, ne-resize, nw-resize, s-resize, se-resize, sw-resize, w-resize"},e("div",{class:{"crop-area":!0,active:this.handleMove,disabled:this.disabled},draggable:!1,style:this.getStyleMap(),onContextMenu:()=>!1,onPointerDown:t=>this.handlePointerDown(t)},d.cropperHandlers.map((t=>e("cropper-handler",{disabled:this.disabled,handler:t,onPointerDown:t=>this.handlePointerDown(t)})))))}get el(){return r(this)}};X.style=":host{display:block;height:100%;left:0;position:absolute;top:0;width:100%}:host(.hidden){visibility:hidden}.crop-area{border:1px solid #fff;box-sizing:border-box;position:absolute;position:relative;touch-action:none;transition-duration:.25s;transition-property:border-color,opacity;transition-timing-function:ease-in-out;will-change:transform;z-index:1}.crop-area.active{border-color:#f5f5f5}.crop-area.disabled{opacity:.25}";const U=t=>t.href.split("/").reverse()[0];let Q=class{constructor(e){t(this,e),this.filterSelected=n(this,"filterSelected",7),this.filter=null,this.selectedCategoryId=null,this.hideFilters=!0}handleFilterSelection(t){return this.isFilterSelected(t)?this.clearSelectedFilter():this.selectFilter(t)}selectFilter(t){this.selectedCategoryId=U(t),d.activeIonLink=t,this.filterSelected.emit("select")}clearSelectedFilter(){this.selectedCategoryId=null,d.activeIonLink=void 0,this.findSelectedFilter().blur(),this.filterSelected.emit("deselect")}findSelectedFilter(){return this.el.shadowRoot.querySelector(".filter.active")}toggleFilters(){this.hideFilters=!this.hideFilters}handleEnter(t,e){"Enter"===t.key&&this.handleFilterSelection(e)}isFilterSelected(t){return this.selectedCategoryId===U(t)}render(){return e(i,{exportparts:"filter, show-more-filters"},e("div",{class:"filters"},this.filter.filters.filter(((t,e)=>!this.hideFilters||e<5)).map(((t,i)=>e("div",{role:"button",tabindex:"0",part:this.isFilterSelected(t)?"filter active":"filter",class:{filter:!0,active:this.selectedCategoryId===U(t)},style:{"animation-delay":10*i+"ms"},onPointerUp:e=>{e.stopPropagation(),this.handleFilterSelection(t)},onKeyPress:e=>this.handleEnter(e,t)},this.isFilterSelected(t)?e(T,null):null,t.name))),e("div",{class:{filter:!0,"show-more":!0,hidden:this.filter.filters.length<=5,active:!this.hideFilters},role:"button",tabindex:"0","aria-role":"button",onClick:()=>this.toggleFilters(),onKeyPress:t=>{"Enter"===t.key&&this.toggleFilters()},part:"show-more-filters"},this.hideFilters?"Zeige mehr":"Zeige weniger")))}get el(){return r(this)}};Q.style=":host{grid-gap:1rem;display:grid}.filters{flex-wrap:wrap;gap:.5rem}.filter,.filters{display:flex;flex-direction:row}.filter{grid-gap:8px;align-items:center;-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:d;animation-name:d;border:1px solid #d3d3d3;cursor:pointer;height:-webkit-max-content;height:-moz-max-content;height:max-content;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;padding:6px 16px;transform:scale(0);transition-duration:.25s;transition-property:background;transition-timing-function:ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.filter.active{border:1px solid #000;padding:6px 8px}.filter:hover{border:1px solid gray}.show-more{display:flex}.show-more.hidden{display:none}.show-more:after{content:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8 12.2-6-6L3.2 5 8 9.8 12.8 5 14 6.2l-6 6z' fill='%23525252'/%3E%3C/svg%3E\");display:block;height:16px;margin-left:8px;margin-top:1px}.show-more.active:after{transform:rotateX(180deg)}@-webkit-keyframes d{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes d{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@media (max-width:415px){.show-more:after{transform:rotate(-90deg)}.show-more.active:after{transform:rotate(90deg)}}@media (max-width:800px){.filters{grid-gap:unset;flex-wrap:nowrap;overflow-x:scroll;scroll-snap-type:x mandatory}.filter{margin-right:.5rem;scroll-snap-align:end}}";let J=class{constructor(e){t(this,e),this.detectedObjectClicked=n(this,"detectedObjectClicked",7),this.position=["0","0"]}getObjectPosition(){return p.pipe(d.imageBounds,a.map((t=>{const e=v(b(this.detectedObject).rectangle),{x:i,y:n}=p.pipe(e,f(t),x);return[`${i}px`,`${n}px`]})),a.getOrElse((()=>["0","0"])))}selectDetectedObject(){p.pipe(d.imageBounds,a.map((t=>{const e=b(this.detectedObject).rectangle,i=v(e),n=f(t)(i);d.detectedObject=this.detectedObject,d.searchArea=a.some(n)}))),u(),this.detectedObjectClicked.emit()}isActive(){if(!this.detectedObject)return!1;if(!d.detectedObject)return!1;const t=b(this.detectedObject),e=b(d.detectedObject);return w.equals(t,e)}render(){return e(i,{class:{active:this.isActive()},onClick:()=>this.selectDetectedObject(),style:{"--x-position":this.getObjectPosition()[0],"--y-position":this.getObjectPosition()[1]}})}};J.style=':host{--color-primary-system:#0f62fe;--color-primary-hover-system:#014cda;--color-icons-system:#2f8edf;--spacer:8px}:host{--size:32px;--x-position:0;--y-position:0;background:hsla(0,0%,9%,.5);border:none;border-radius:50%;cursor:pointer;display:block;height:var(--size);position:absolute;transform:translate(calc(var(--x-position) - var(--size)*.5),calc(var(--y-position) - var(--size)*.5));transition:opacity .25s;transition:background .1 ease-in-out;width:var(--size);z-index:1}:host(:hover){background:hsla(0,0%,9%,.75)}:host(.active){background:var(--color-primary,var(--color-primary-system))!important;border:2px solid #fff}:host:after{--size:32px;background:#fff;border-radius:50%;content:"";cursor:pointer;display:block;height:calc(var(--size)*.25);transform:translate(calc(-50% + var(--size)*.5),calc(-50% + var(--size)*.5));width:calc(var(--size)*.25)}';let tt=class{constructor(e){t(this,e),this.actionClick=n(this,"actionClick",7)}render(){return e(i,null,e("vviinn-error",null,e("svg",{slot:"icon",class:"icon",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M16 2a14 14 0 1 0 0 28 14 14 0 0 0 0-28Zm0 26a12 12 0 1 1 0-24 12 12 0 0 1 0 24Z",fill:"#525252"}),e("path",{d:"M17 8h-2v11h2V8Zm-1 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z",fill:"#525252"})),e("h4",{slot:"title"},"Leider nichts gefunden"),e("span",{slot:"text"},"Leider konnten wir keine passenden Produkte finden. Bitte versuche es mit einem anderen Bildausschnitt noch einmal.")))}};tt.style=":host{display:grid}vviinn-error{justify-items:center}";let et=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",{name:"icon"}),e("slot",{name:"title"}),e("slot",{name:"text"}),e("slot",{name:"action"}))}};et.style=":host{grid-gap:20px;background:#f4f4f4;border-radius:8px;display:grid;padding:24px;text-align:center}::slotted(svg){align-self:center;display:grid}::slotted(h4){font-size:18px;font-weight:600;line-height:24px;margin:unset}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-primary,var(--color-primary-system));cursor:pointer;font-size:16px;font-weight:600;line-height:20px}";let it=class{constructor(e){t(this,e),this.exampleImageSelected=n(this,"exampleImageSelected",7),this.exampleImageError=n(this,"exampleImageError",7),this.src="",this.width=0,this.height=0,this.selected=!1}async selectImage(){this.selected=!0;const t=await y(this.src);d.imageSelectedObserver.next(t),this.selected=!1}showPreloader(){return(d.objectDetectionInProgress||"pending"===d.status)&&this.selected}render(){return e(i,null,this.showPreloader()?e("div",{class:"image-preloader"},e("vviinn-preloader",null)):null,e("img",{onClick:()=>this.selectImage(),src:this.src,width:this.width,height:this.height}))}};it.style=":host{display:block;margin-bottom:8px;position:relative}img{cursor:pointer;height:auto;width:100%}.image-preloader{background:rgba(0,0,0,.25);border-radius:4px;bottom:12px;display:none;padding:4px 6px;pointer-events:none;position:absolute;right:12px;z-index:1}vviinn-preloader{--preloader-size:12px}@media (max-width:640px){.image-preloader{display:block}}";const nt=["vviinn-onboarding-title","vviinn-onboarding-card-1-icon","vviinn-onboarding-card-1-text","vviinn-onboarding-card-2-icon","vviinn-onboarding-card-2-text","vviinn-onboarding-card-3-icon","vviinn-onboarding-card-3-text","vviinn-example-images-title","vviinn-example-images-1","vviinn-example-images-2","vviinn-example-images-3","vviinn-example-images-4","vviinn-teaser-text","vviinn-image-upload-button-text","vviinn-privacy-badge-text"],rt=t=>e("slot",{name:t}),st=()=>nt.map(rt),ot=(t,e)=>{e.innerHTML=t.outerHTML},at=(t,e)=>{t.connectedCallback=function(){document.addEventListener("globalSlotsChanged",(({detail:t})=>{var i;(t=>Array.from(t.shadowRoot.querySelectorAll("slot")))(e).reduce((i=t,(t,e)=>{const n=i.find((r=e,t=>r.getAttribute("name")===t.getAttribute("slot")));var r;return n&&t.set(e,n),t}),new Map).forEach(ot)}),!0)},t.connectedCallback.call(t)};let lt=class{constructor(e){t(this,e),this.imageSelected=n(this,"imageSelected",7),this.imageSelectedError=n(this,"imageSelectedError",7)}handleImageSelection(){this.imageSelected.emit()}handleImageSelectionError(){this.imageSelectedError.emit()}componentWillLoad(){at(this,this.el)}render(){return e(i,null,e("slot",{name:"vviinn-example-images-title"},e("h3",null,"Mit den Beispielbildern die Suche direkt ausprobieren")),e("div",{class:"images"},e("slot",{name:"vviinn-example-images-1"},e("vviinn-example-image",{width:480,height:640,src:"https://cdn.vviinn.com/0/fit/480/0/ce/0/Z3M6Ly9haWFhcy1pbWdwcm94eS9leGFtcGxlcy9pbWctaW5zcGlyYXRpb24tMDEtTC5qcGc="})),e("slot",{name:"vviinn-example-images-2"},e("vviinn-example-image",{width:280,height:480,src:"https://cdn.vviinn.com/0/fit/480/0/ce/0/Z3M6Ly9haWFhcy1pbWdwcm94eS9leGFtcGxlcy9pbWctaW5zcGlyYXRpb24tMDItTS5qcGc="})),e("slot",{name:"vviinn-example-images-3"},e("vviinn-example-image",{width:280,height:480,src:"https://cdn.vviinn.com/0/fit/480/0/ce/0/Z3M6Ly9haWFhcy1pbWdwcm94eS9leGFtcGxlcy9pbWctaW5zcGlyYXRpb24tMDMtTS5qcGc="})),e("slot",{name:"vviinn-example-images-4"},e("vviinn-example-image",{width:480,height:640,src:"https://cdn.vviinn.com/0/fit/480/0/ce/0/Z3M6Ly9haWFhcy1pbWdwcm94eS9leGFtcGxlcy9pbWctaW5zcGlyYXRpb24tMDQtTC5qcGc="}))))}get el(){return r(this)}};lt.style="h3{font-size:22px;font-weight:600;line-height:32px;margin:0 0 16px;text-align:center}.images{-moz-column-count:2;column-count:2;-moz-column-gap:16px;column-gap:16px;display:block}";const dt=["jpg","jpeg","png","webp"],ct={kind:"client",inner:"File format not supported"},pt=t=>{const e=t.type.split("/")[1],i=(n=i=>i===e?a.some(t):a.none,function(t){for(var e=0;e<t.length;e++){var i=n(t[e]);if(k(i))return i}return z})(dt);var n;return p.pipe(i,_.fromOption((()=>ct)))},ht={kind:"app",inner:"File doesnt exist"};let gt=class{constructor(e){t(this,e),this.imageSelected=n(this,"imageSelected",7),this.imageSelectedError=n(this,"imageSelectedError",7)}async handleInputChange(t){const e=t.target;p.pipe(p.pipe(e.files[0],a.fromNullable,_.fromOption((()=>ht)),_.chain(pt)),C((()=>this.imageSelectedError.emit()),(t=>{d.imageSelectedObserver.next(t)}))),e.value=null}componentWillLoad(){S("status",(t=>{"imageProcessed"===t&&this.imageSelected.emit()}))}isLoading(){return"imageSelected"===d.status||"pending"===d.status||d.objectDetectionInProgress}render(){return e(i,{exportparts:"button"},this.isLoading()?e("vviinn-preloader",null):null,this.isLoading()?null:e("label",{htmlFor:"fileInput",part:"button"},e("slot",{name:"upload-button-text"},"Upload image")),e("input",{id:"fileInput",class:"visually-hidden",type:"file",accept:"image/*",onChange:t=>this.handleInputChange(t)}))}};gt.style=":host{display:block}:host(::hover){background:#f5f5f5}.visually-hidden{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}label{cursor:pointer;display:grid;padding:.5rem;transition:background .1s ease-in-out}";let mt=class{constructor(e){t(this,e)}handleInitialImageLoad(t){const e=L(t.target),{x:i,y:n}=g(e,{x:12,y:12}),r={x:i,y:n,width:e.width-24,height:e.height-24};d.imageBounds=a.some(e),d.searchArea=a.some(r)}renderDetectedObject(t){return e("vviinn-detected-object",{detectedObject:t})}renderImage(){return p.pipe(l(d.imageUrl,d.image),a.map((([t,i])=>{const[n,r]=(t=>{const e=j(t),i=I(288)(e).map((t=>t.size));return[i[0],i[1]]})(i);return e("img",{decoding:"async",width:n,height:r,src:t,onLoad:t=>this.handleInitialImageLoad(t),draggable:!1})})),a.getOrElse((()=>null)))}renderCropper(){return p.pipe(d.imageUrl,a.map((()=>e("image-cropper",null))),a.getOrElse((()=>null)))}render(){return e(i,null,d.loading||d.objectDetectionInProgress?e("div",{class:"image-preloader"},e("vviinn-preloader",null)):null,e("highlight-box",null),this.renderImage(),this.renderCropper(),d.detectedObjects.map((t=>this.renderDetectedObject(t))))}};mt.style=":host{display:grid;justify-self:center;position:relative}img{box-sizing:border-box;filter:brightness(60%);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:-1}.image-preloader{background:rgba(0,0,0,.25);border-radius:4px;bottom:18px;padding:4px 6px;pointer-events:none;position:absolute;right:18px;z-index:4}vviinn-preloader{--preloader-size:12px}";let ut=class{constructor(e){t(this,e),this.modalClosed=n(this,"modalClosed",7),this.secondaryActionClicked=n(this,"secondaryActionClicked",7),this.active=!1,this.slider=!1}close(){this.active=!1,setTimeout((()=>{this.modalClosed.emit()}),this.slider?500:0)}handleAnimationEnd(t){"fade-in"===t.animationName&&(this.slider=!0)}render(){return e(i,{exportparts:"secondary-action, title, close-button",class:{closed:!this.active},onAnimationEnd:t=>this.handleAnimationEnd(t)},e("div",{class:"head"},e("button",{part:"secondary-action",onClick:()=>this.secondaryActionClicked.emit()},e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M20.25 12H3.75",stroke:"#161616","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M10.5 5.25L3.75 12L10.5 18.75",stroke:"#161616","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),e("div",{class:"title",part:"title"},"Bildsuche"),e("button",{onClick:()=>this.close(),class:"close-button",part:"close-button"},e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M16 1.4L14.6 0L8 6.6L1.4 0L0 1.4L6.6 8L0 14.6L1.4 16L8 9.4L14.6 16L16 14.6L9.4 8L16 1.4Z",fill:"#333333"})))),e("div",{class:"body"},e("slot",null)))}};ut.style=":host{background:#fff;border-radius:4px;box-sizing:border-box;display:grid;grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto;max-width:960px}@media (max-width:415px){:host{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:a;animation-name:a}:host(.closed){-webkit-animation-fill-mode:none;animation-fill-mode:none;-webkit-animation-name:b;animation-name:b}.body{overflow-y:auto}}@media (max-width:640px) and (min-width:415px){:host{max-width:80%}}.head{grid-gap:16px;align-items:center;border-bottom:1px solid #f4f4f4;display:grid;grid-template-columns:-webkit-min-content auto -webkit-min-content;grid-template-columns:min-content auto min-content;justify-items:center;padding:16px}.title{font-size:18px;font-weight:600;line-height:24px}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:pointer;display:grid;padding:unset}@-webkit-keyframes a{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes a{0%{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes b{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes b{0%{transform:translateY(0)}to{transform:translateY(100%)}}";let vt=class{constructor(e){t(this,e)}componentWillLoad(){at(this,this.el)}render(){return e(i,null,e("slot",{name:"vviinn-onboarding-title"},e("h3",null,"So funktioniert es")),e("vviinn-slider",{showArrows:!0},e("vviinn-slide",null,e("vviinn-onboarding-card-1",null)),e("vviinn-slide",null,e("vviinn-onboarding-card-2",null)),e("vviinn-slide",null,e("vviinn-onboarding-card-3",null))))}get el(){return r(this)}};vt.style=":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))}";let bt=class{constructor(e){t(this,e)}componentWillLoad(){at(this,this.el)}render(){return e(i,null,e("slot",{name:"onboarding-card-1-icon"},e(Y,null)),e("slot",{name:"onboarding-card-1-text"},e("div",{class:"text"},e("h4",null,"Starte die Bildsuche"),e("p",null,"Lade ein Bild aus Deiner Galerie hoch oder fotografiere ein Produkt mit Deiner Kamera."))))}get el(){return r(this)}};bt.style=":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}";let ft=class{constructor(e){t(this,e)}componentWillLoad(){at(this,this.el)}render(){return e(i,null,e("slot",{name:"onboarding-card-2-icon"},e(H,null)),e("slot",{name:"onboarding-card-2-text"},e("div",{class:"text"},e("h4",null,"Verfeiner deine Suche"),e("p",null,"Du kannst den Bildrahmen selber festlegen und so die Produkte genau auswählen."))))}get el(){return r(this)}};ft.style=":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}";let xt=class{constructor(e){t(this,e)}componentWillLoad(){at(this,this.el)}render(){return e(i,null,e("slot",{name:"onboarding-card-3-icon"},e(K,null)),e("slot",{name:"onboarding-card-3-text"},e("div",{class:"text"},e("h4",null,"Ohne Hintergrund"),e("p",null,"Die besten Ergebnisse erhältst Du, wenn das gesuchte Objekt mit einfarbigem und hellem Hintergrund zu sehen ist."))))}get el(){return r(this)}};xt.style=":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}";let wt=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",null))}};wt.style=":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}}";let yt=class{constructor(e){t(this,e),this.secondaryActionClicked=n(this,"secondaryActionClicked",7),this.modalClosed=n(this,"modalClosed",7),this.active=!1}render(){return e(i,{class:{active:this.active}},e("vviinn-overlay",null,e("vviinn-modal",{onSecondaryActionClicked:()=>this.secondaryActionClicked.emit(),active:this.active},e("slot",null,"CONTENT"))))}};yt.style=":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}}";let kt=class{constructor(e){t(this,e)}isActive(){return d.loading||d.objectDetectionInProgress}render(){return e(i,{class:{active:this.isActive()}})}};kt.style=":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)}}";let zt=class{constructor(e){t(this,e)}componentWillLoad(){at(this,this.el)}render(){return e(i,null,e("slot",null,e("div",{class:"content"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"},e("defs",null),e("path",{fill:"#525252",d:"M8.5 11V7h-2v1h1v3H6v1h4v-1H8.5zM8 4a.75.75 0 100 1.5A.75.75 0 008 4z"}),e("path",{fill:"#525252",d:"M8 15A7 7 0 118 1a7 7 0 010 14zM8 2a6 6 0 100 12A6 6 0 008 2z"})),e("slot",{name:"vviinn-privacy-badge-text"},e("p",null,"Wir gehen sorgfältig mit Deinen Daten um. Deine Bilder werden nur zum Zweck der Bildsuche gespeichert.")))))}get el(){return r(this)}};zt.style=":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}";class _t{sendImpression(t){var e,i,n;gtag("event","view_item_list",{items:[{id:t.productId,name:t.title,brand:null!==(e=t.brand)&&void 0!==e?e:"",category:null!==(i=t.productType)&&void 0!==i?i:"",list_name:"VI VPR View",price:Math.min(t.price.actual,null!==(n=t.price.sale)&&void 0!==n?n:1/0)}]})}sendClick(t){var e,i,n;gtag("event","select_content",{content_type:"product",items:[{id:t.productId,name:t.title,brand:null!==(e=t.brand)&&void 0!==e?e:"",category:null!==(i=t.productType)&&void 0!==i?i:"",list_name:"VI VPR View",price:Math.min(t.price.actual,null!==(n=t.price.sale)&&void 0!==n?n:1/0)}]})}}class Ct{constructor(){ga("require","ec")}convertProduct(t){var e,i,n;return{id:t.productId,name:t.title,brand:null!==(e=t.brand)&&void 0!==e?e:"",category:null!==(i=t.productType)&&void 0!==i?i:"",list:"VI VPR View",price:Math.min(t.price.actual,null!==(n=t.price.sale)&&void 0!==n?n:1/0)}}sendImpression(t){ga("ec:addImpression",this.convertProduct(t))}sendClick(t){var e,i,n;ga("ec:addProduct",{id:t.productId,name:t.title,brand:null!==(e=t.brand)&&void 0!==e?e:"",category:null!==(i=t.productType)&&void 0!==i?i:"",price:Math.min(t.price.actual,null!==(n=t.price.sale)&&void 0!==n?n:1/0)}),ga("ec:setAction","click",{list:"VI VPR View"})}}const St=a.getMonoid(M.first()).concat(p.pipe(a.fromNullable(window.gtag),a.map((()=>new _t))),p.pipe(a.fromNullable(window.ga),a.map((()=>new Ct)))),Lt=/fit\/\d+\//,jt=(t,e)=>p.pipe((t=>p.pipe(t.match(Lt),_.fromNullable(t),_.map((()=>t))))(t),_.map((t=>t.replace(Lt,`fit/${e}/`))),_.getOrElse((()=>t))),It=(t,i)=>t.deeplink?e("a",{class:t.part,part:t.part,href:t.deeplink},i):i,Mt=t=>{var i;const n=new Intl.NumberFormat(t.locale,{minimumFractionDigits:2}).format(t.price),r=`${null!==(i=t.prefix)&&void 0!==i?i:""} ${n} ${t.currency}`;return e("span",{class:"price-amount",part:"price-amount"},r)},Dt=t=>{const i=e(Mt,{prefix:t.prefix,currency:t.currency,price:t.price,locale:t.locale});return e("span",{class:"price-container",part:"price-container"},t.salePrice?[e("span",{class:"price-sale",part:"price-sale"},e(Mt,{prefix:t.prefix,currency:t.currency,price:t.salePrice,locale:t.locale})),e("span",{class:"price-outdated",part:"price-outdated"},i)]:e("span",{class:"price-regular",part:"price-regular"},i))};let Wt=class{constructor(e){t(this,e),this.recommendationLoad=n(this,"recommendationLoad",7),this.recommendationView=n(this,"recommendationView",7),this.recommendationClick=n(this,"recommendationClick",7),this.productImageLoaded=n(this,"productImageLoaded",7),this.currency=void 0,this.imageRatio=1,this.imageWidth=200,this.locale=void 0,this.pricePrefix=void 0,this.responsive=!1,this.dimmedBackground=!1,this.index=0,this.imageLoaded=!1,this.productData=null,this.intersectionObserver=new IntersectionObserver(this.intersectionCallback.bind(this),{threshold:1})}connectedCallback(){this.productData=this.getProductData()}getProductData(){return{product:this.productId,rank:this.index}}intersectionCallback(t){t.some((t=>t.isIntersecting))&&(p.pipe(St,a.map((t=>t.sendImpression(this.getProduct())))),this.recommendationView.emit(this.productData),this.intersectionObserver.disconnect())}componentDidLoad(){this.recommendationLoad.emit(this.productData),this.intersectionObserver.observe(this.el),this.el.shadowRoot.querySelectorAll("a").forEach((t=>t.addEventListener("click",(t=>{t.preventDefault(),t.stopImmediatePropagation(),this.recommendationClick.emit(this.getProductData()),p.pipe(St,a.match((()=>null),(t=>t.sendClick(this.getProduct()))))}))))}getProduct(){return d.results.find((t=>t.productId===this.productId))}renderImage(){const t={width:this.imageWidth,height:this.imageWidth*this.imageRatio,src:this.image,title:this.productTitle,lazy:!0};return this.responsive?((t,i=(()=>{}))=>e("picture",null,e("img",{loading:t.lazy?"lazy":"eager",part:"image",class:"image responsive",src:jt(t.src,t.width),alt:t.title,onLoad:i})))(t,(()=>this.handleImageLoaded())):((t,i=(()=>{}))=>e("picture",null,e("img",{loading:t.lazy?"lazy":"eager",part:"image",class:"image",width:t.width,height:t.height,src:jt(t.src,t.width),alt:t.title,onLoad:i})))(t,(()=>this.handleImageLoaded()))}handleImageLoaded(){this.imageLoaded=!0,this.productImageLoaded.emit(this.productId)}render(){var t,n,r;return e(i,{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"},e(It,{deeplink:this.deeplink,part:"image-link"},this.renderImage()),e(It,{deeplink:this.deeplink,part:"deeplink"},e("span",{class:"title",part:"title"},this.productTitle)),e("span",{class:"brand",part:"brand"},this.brand),e("span",{class:"type",part:"type"},this.productType),e(Dt,{prefix:null!==(t=this.pricePrefix)&&void 0!==t?t:D.pricePrefix,currency:null!==(n=this.currency)&&void 0!==n?n:D.currencySign,price:this.price,salePrice:this.salePrice,locale:null!==(r=this.locale)&&void 0!==r?r:D.locale}))}get el(){return r(this)}};Wt.style=':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%}';let Et=class{constructor(e){t(this,e),this.actionClick=n(this,"actionClick",7)}render(){return e(i,null,e("vviinn-error",null,e("h4",{slot:"title"},"Keine Verbindung"),e("span",{slot:"text"},"Etwas hat leider nicht funktioniert. Bitte prüfen Sie Ihre Internetverbindung und laden Sie das Bild noch einmal hoch."),e("button",{slot:"action",onClick:()=>this.actionClick.emit()},"Erneut versuchen")))}};Et.style=":host{display:block}";let At=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",null))}};At.style=":host{display:grid;justify-items:center}";const Vt=({kind:t,tabindex:i,disabled:n,onClick:r,onKeyDown:s})=>{return e("div",{class:(o={kind:t,disabled:n},{"arrow-wrapper":!0,[o.kind]:!0,disabled:o.disabled}),onClick:r,tabindex:i,onKeyDown:s},e(R,null));var o};let Pt=class{constructor(e){t(this,e),this.elementsCount=0,this.internalPosition=0,this.swipeStartPosition=a.none,this.showBullets=!0,this.position=0,this.showArrows=!1}positionWatchHandler(t){this.internalPosition=t,this.el.style.setProperty("--position",`${t}`),this.setActiveCssClassToSlide(t)}connectedCallback(){this.handleDomContentChanges()}handleDomContentChanges(){const t=this.el.querySelectorAll("vviinn-slide");this.elementsCount=t.length,this.el.style.setProperty("--num-items",`${this.elementsCount}`),this.setActiveCssClassToSlide(0)}setActiveCssClassToSlide(t){const e=this.el.querySelectorAll("vviinn-slide");e.forEach((t=>t.classList.remove("active"))),e[t].classList.add("active")}goToSlide(t){this.internalPosition=t,this.el.style.setProperty("--position",`${t}`),this.setActiveCssClassToSlide(t)}renderBullets(){return this.showBullets?e("div",{class:"controls"},W.range(0,this.elementsCount-1).map((t=>e("div",{class:{bullet:!0,active:t==this.internalPosition%this.elementsCount},onClick:()=>this.goToSlide(t)})))):null}nextSlide(){this.internalPosition++,this.renderSlidePosition()}prevSlide(){const t=this.internalPosition-1;this.internalPosition=t>-1?t:this.elementsCount-1,this.renderSlidePosition()}renderSlidePosition(){requestAnimationFrame((()=>{this.el.style.setProperty("--position",""+this.internalPosition%this.elementsCount)}))}handleKeyDown(t){if("Space"===t.key||"Enter"===t.key)switch(t.target.className.includes("prev")?"prev":"next"){case"prev":this.prevSlide();break;case"next":this.nextSlide()}}handleTouchStart(t){this.showBullets&&(this.swipeStartPosition=p.pipe(t.touches[0],a.fromNullable,a.map((t=>t.clientX))))}handleTouchEnd(t){if(!this.showBullets)return;const e=p.pipe(t.changedTouches[0],a.fromNullable,a.map((t=>t.clientX)));p.pipe(l(this.swipeStartPosition,e),a.map((([t,e])=>{return(i=t)<(n=e)?-1:i>n?1:0;var i,n})),a.map((t=>{switch(t){case 1:return this.nextSlide();case-1:return this.prevSlide()}})))}render(){return e(i,null,e("div",{class:"items-wrapper"},e("div",{class:"items",onTouchStart:t=>this.handleTouchStart(t),onTouchEnd:t=>this.handleTouchEnd(t)},e("slot",null))),this.showArrows?[e(Vt,{kind:"prev",onClick:()=>this.prevSlide(),onKeyDown:t=>this.handleKeyDown(t),tabindex:1,disabled:!1}),e(Vt,{kind:"next",onClick:()=>this.nextSlide(),onKeyDown:t=>this.handleKeyDown(t),tabindex:0,disabled:!1})]:null,this.renderBullets())}get el(){return r(this)}static get watchers(){return{position:["positionWatchHandler"]}}};Pt.style=":host{--color-primary-system:#0f62fe;--color-primary-hover-system:#014cda;--color-icons-system:#2f8edf;--spacer:8px}:host{--num-items:0;--position:0;grid-gap:20px;display:grid;justify-items:center;position:relative}.items-wrapper{overflow:hidden;width:100%}.items{box-sizing:border-box;display:grid;grid-auto-flow:column;grid-template-columns:repeat(var(--num-items),100%);transform:translateX(calc(-100%*var(--position)));transition:transform .33s ease-in-out}.controls{grid-gap:16px;display:grid;grid-template-columns:repeat(var(--num-items),-webkit-min-content);grid-template-columns:repeat(var(--num-items),min-content)}.bullet{background:#e0e0e0;border-radius:50%;box-sizing:border-box;cursor:pointer;height:8px;transition:background .1s ease-in-out;width:8px}.bullet:hover{background:#c6c6c6}.bullet.active{background:var(--color-primary,var(--color-primary-system))}.bullet:active{background:transparent;border:2px solid var(--color-primary,var(--color-primary-system))}.arrow-wrapper{align-items:center;background:#fff;border:2px solid #fff;bottom:0;box-sizing:border-box;display:grid;height:calc(var(--spacer)*6);justify-items:center;margin:auto;position:absolute;top:0;transform:translate3d(0,-50%,0);transition:border .25ms ease-in-out;width:calc(var(--spacer)*4)}.arrow-wrapper:active{opacity:.75}.arrow-wrapper:active,.arrow-wrapper:focus{border-color:var(--color-primary,var(--color-primary-system))}.arrow-wrapper:focus{opacity:.5;outline:none}.prev{left:0}.next{right:0}.next>svg{transform:rotateY(180deg)}.arrow-wrapper>svg{fill:#a8a8a8;transition:fill .25ms ease-in-out}.arrow-wrapper:hover>svg{fill:#8d8d8d}";let Ft=class{constructor(e){t(this,e)}componentWillLoad(){at(this,this.el)}render(){return e(i,null,e("slot",null,e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"none"},e("defs",null),e("path",{fill:"#C6C6C6",d:"M48 28a11.98 11.98 0 00-9.77 18.942L28 57.172 30.828 60l10.23-10.23A11.994 11.994 0 1048 28zm0 20a8 8 0 118-8 8.009 8.009 0 01-8 8zM34 24a6 6 0 10-6-6 6.006 6.006 0 006 6zm0-8a2 2 0 110 4 2 2 0 010-4z"}),e("path",{fill:"#C6C6C6",d:"M24 48H8V35.993L18 26l11.172 11.172L32 34.336 20.828 23.165a4 4 0 00-5.656 0L8 30.336V8h40v12h4V8a4.004 4.004 0 00-4-4H8a4.004 4.004 0 00-4 4v40a4.005 4.005 0 004 4h16v-4z"})),e("span",{class:"vviinn-teaser-text"},e("slot",{name:"vviinn-teaser-text"},"Finde Produkte auf ",e("br",null)," einem Foto"))))}get el(){return r(this)}};Ft.style=":host{grid-gap:16px;align-items:center;display:grid;justify-items:center}.vviinn-teaser-text{size:28px;font-size:28px;font-weight:600;line-height:40px;text-align:center}";let $t=class{constructor(e){t(this,e),this.globalSlotsChanged=n(this,"globalSlotsChanged",7),this.currencySign="€",this.locale="de-DE",this.pressed=!1}handleModalClosed(){this.pressed=!1}componentDidLoad(){const t=this.el.querySelectorAll("[slot]");this.globalSlotsChanged.emit(Array.from(t))}handleKeyDown(t){"Enter"!==t.code&&"Space"!==t.code||(this.pressed=!0)}handleClick(){this.pressed=!0}render(){return e(i,{tabindex:"0",role:"button",pressed:this.pressed,onClick:()=>this.handleClick(),onKeyDown:t=>this.handleKeyDown(t)},e("slot",null,e(Z,null)),e(st,null),e("vviinn-vps-widget",{active:this.pressed,"currency-sign":"€",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}))}get el(){return r(this)}};$t.style=":host{cursor:pointer}";const Bt=A(E(new URL("p-06c76b5e.js",import.meta.url).href,"tracking.worker","stencil.tracking.worker"),"stencil.tracking.worker","trackEvent"),Gt=t=>/^[-+]?(\d+|Infinity)$/.test(t)?Number(t):NaN,Ot=t=>!O(t),Tt=t=>!isNaN(t);let Yt=class{constructor(e){t(this,e),this.apiPath="https://api.vviinn.com",this.active=!1,this.currencySign="€",this.locale="de-DE",this.slidePosition=0,this.width=0,this.wrongImageFormat=!1,this.imageSource=null}activeWatcher(t){t?(this.overflow=document.body.style.overflow,document.body.style.overflow="hidden",this.trackOpenEvent()):document.body.style.overflow=this.overflow}trackRecommendationView({detail:t}){const e=V(Object.assign({session_id:this.uiSessionId},t));Bt(this.apiPath,this.token,e)}trackRecommendationClick({detail:t}){const e=P(Object.assign({session_id:this.uiSessionId},t));Bt(this.apiPath,this.token,e).finally((()=>{const e=d.results.find((e=>e.productId===t.product));e&&e.deeplink&&(window.location.href=e.deeplink)}))}trachSearchAreaChanges(){const t=F({session_id:this.uiSessionId,source:this.imageSource,search_area:"manual-selection"});Bt(this.apiPath,this.token,t)}trackDetectedObject(){const t=F({session_id:this.uiSessionId,source:this.imageSource,search_area:"attention-point"});Bt(this.apiPath,this.token,t)}trackFilter({detail:t}){const e=$({session_id:this.uiSessionId,source:this.imageSource,kind:"category",action:t});Bt(this.apiPath,this.token,e)}componentWillLoad(){at(this,this.el)}connectedCallback(){D.apiPath=this.apiPath,D.currencySign=this.currencySign,D.locale=this.locale,d.token=this.token,d.campaignId=p.pipe(this.campaignId,a.fromNullable,a.chain(a.fromPredicate(Ot)),a.map(Gt),a.chain(a.fromPredicate(Tt)),a.map((t=>`${t}`))),this.uiSessionId=B(),S("status",(t=>{this.slidePosition="fullfield"===t?1:0}))}trackOpenEvent(){const t=G({action:"open",session_id:this.uiSessionId});Bt(this.apiPath,this.token,t)}handleImageSelection(t){this.imageSource=t,this.el.shadowRoot.querySelector("vviinn-overlayed-modal").shadowRoot.querySelector("vviinn-overlay").querySelector("vviinn-modal").shadowRoot.querySelector(".body").scrollTop=0,this.trackInitialSearch()}trackInitialSearch(){const t=F({session_id:this.uiSessionId,source:this.imageSource,search_area:"full"});Bt(this.apiPath,this.token,t)}resetState(){this.resetScroll("onboarding-block"),d.image=a.none,d.imageUrl=a.none,d.imageBounds=a.none,d.searchArea=a.none,d.results=[],d.filters=[],d.detectedObjects=[],d.activeIonLink=void 0,d.rectangleSearchForm=void 0,d.status="idle",this.resetScroll("results-block")}haveErrors(){return this.wrongImageFormat||d.serverError}resetScroll(t,e="auto"){this.el.shadowRoot.getElementById(t).scroll({top:0,left:0,behavior:e})}handleModalClose(){this.active=!1,this.resetState(),["onboarding-block","results-block"].forEach((t=>this.resetScroll(t)));const t=G({action:"close",session_id:this.uiSessionId});Bt(this.apiPath,this.token,t)}render(){return e(i,null,e("vviinn-overlayed-modal",{class:{"first-screen":0===this.slidePosition},active:this.active,onSecondaryActionClicked:()=>this.resetState(),onModalClosed:()=>this.handleModalClose(),exportparts:"secondary-action, title, close-button, example-images"},e("vviinn-slider",{showBullets:!1,position:this.slidePosition},e("vviinn-slide",{class:{"start-page":!0}},e("div",{class:{error:this.haveErrors(),"start-page_block":!0}},e("vviinn-wrong-format",{class:{hidden:!this.wrongImageFormat},onActionClick:()=>this.wrongImageFormat=!1}),e("vviinn-server-error",{class:{hidden:!d.serverError},onActionClick:()=>d.serverError=!1}),e("vviinn-teaser",{class:{hidden:this.haveErrors()}}),e("vviinn-image-selector",{class:{hidden:this.haveErrors()},onImageSelected:()=>this.handleImageSelection("upload"),onImageSelectedError:()=>this.wrongImageFormat=!0,part:"select-image_button"},e("span",{slot:"upload-button-text",class:"upload-button-content"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"28",fill:"none"},e("defs",null),e("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"}),e("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"})),e("slot",{name:"vviinn-image-upload-button-text"},e("span",null,"Kamera oder Bild auswählen")))),e("vviinn-privacy-badge",{class:{hidden:this.haveErrors()}})),e("div",{id:"onboarding-block",class:"start-page_block"},e("div",{class:"onboarding-wrapper"},e("vviinn-onboarding",null),e("vviinn-example-images",{part:"example-images",onImageSelected:()=>this.handleImageSelection("example"),onImageSelectedError:()=>this.resetScroll("onboarding-block","smooth")})))),e("vviinn-slide",{class:{"results-page":!0,active:1==this.slidePosition}},e("div",{class:"image-wrapper"},e("vviinn-image-view",null),e("div",{class:"filters-wrapper"},e("div",{class:"filters"},d.filters.map((t=>e("search-filters",{filter:t})))))),e("div",{id:"results-block",class:"products-wrapper"},e("div",{class:{"nothing-found":!0,hidden:d.results.length>0}},e("vviinn-empty-results",null),e("vviinn-onboarding",null)),e("div",{class:{hidden:d.results.length<=0,products:!0}},d.results.map(((t,i)=>{var n;return e("vviinn-product-card",{hidden:!0,productTitle:t.title,productId:t.productId,brand:t.brand,deeplink:t.deeplink,price:t.price.actual,salePrice:t.price.sale,imageWidth:160,image:null!==(n=t.image.thumbnail)&&void 0!==n?n:t.image.original,part:"product-card",index:i})}))))))))}get el(){return r(this)}static get watchers(){return{active:["activeWatcher"]}}};Yt.style=":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}";let Ht=class{constructor(e){t(this,e),this.actionClick=n(this,"actionClick",7)}render(){return e(i,null,e("vviinn-error",null,e("h4",{slot:"title"},"Dateityp wird nicht unterstützt"),e("span",{slot:"text"},"Leider unterstützen wir dieses Format nicht. Bitte laden Sie eine .jpg, .png oder .webp Bilddatei hoch."),e("button",{slot:"action",onClick:()=>this.actionClick.emit()},"Neues Bild hochladen")))}};Ht.style=":host{display:block}";export{N as cropper_handler,q as highlight_box,X as image_cropper,Q as search_filters,J as vviinn_detected_object,tt as vviinn_empty_results,et as vviinn_error,it as vviinn_example_image,lt as vviinn_example_images,gt as vviinn_image_selector,mt as vviinn_image_view,ut as vviinn_modal,vt as vviinn_onboarding,bt as vviinn_onboarding_card_1,ft as vviinn_onboarding_card_2,xt as vviinn_onboarding_card_3,wt as vviinn_overlay,yt as vviinn_overlayed_modal,kt as vviinn_preloader,zt as vviinn_privacy_badge,Wt as vviinn_product_card,Et as vviinn_server_error,At as vviinn_slide,Pt as vviinn_slider,Ft as vviinn_teaser,$t as vviinn_vps_button,Yt as vviinn_vps_widget,Ht as vviinn_wrong_format}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as a}from"./p-
|
|
1
|
+
import{h as a}from"./p-880bccf1.js";const l=()=>a("svg",{width:"12",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M0 10 10 0l1.4 1.4L2.8 10l8.6 8.6L10 20 0 10Z"})),h=()=>a("svg",{width:"22",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.567 3H19A3.01 3.01 0 0 1 22 6v7.69h-2V6c0-.55-.451-1-1.001-1h-3.502l-2.03-3H8.543L6.603 5H3.001c-.55 0-1 .45-1 1v11c0 .55.45 1 1 1h5.933v2H3.001A3.01 3.01 0 0 1 0 17V6c0-1.65 1.35-3 3.001-3h2.522l1.94-3h7.074l2.03 3Zm-5.562 3c1.28 0 2.561.48 3.542 1.46h-.01a4.992 4.992 0 0 1 .64 6.29l3.051 3.05-1.41 1.41-3.052-3.05c-.84.55-1.8.83-2.76.83-1.282 0-2.562-.48-3.543-1.46a5.002 5.002 0 0 1 0-7.07A5.026 5.026 0 0 1 11.005 6Zm-2.771 5a2.763 2.763 0 0 0 2.771 2.77A2.763 2.763 0 0 0 13.776 11a2.763 2.763 0 0 0-2.771-2.77A2.763 2.763 0 0 0 8.234 11Z",fill:"#161616"})),t=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{fill:"#393939",d:"M74.55 20a5.06 5.06 0 014.14 2l4.72 9.32.1.18.11.17A5.07 5.07 0 0087.93 34h13.87c5.07 0 9.2 3.59 9.2 8v50c0 4.41-4.13 8-9.2 8H18.2c-5.07 0-9.2-3.59-9.2-8V42c0-4.41 4.13-8 9.2-8h13.87a5.072 5.072 0 004.31-2.34l.11-.17.1-.18L41.31 22a5.06 5.06 0 014.14-2h29.1zm0-4h-29.1a9 9 0 00-7.6 4L33 29.5a1.13 1.13 0 01-1 .5H18.2C10.91 30 5 35.37 5 42v50c0 6.63 5.91 12 13.2 12h83.6c7.29 0 13.2-5.37 13.2-12V42c0-6.63-5.91-12-13.2-12H87.93a1.13 1.13 0 01-1-.5L82.15 20a9 9 0 00-7.6-4z"}),a("path",{fill:"#393939",d:"M96 46a4 4 0 110 8 4 4 0 010-8zm0-4a8 8 0 100 16.001A8 8 0 0096 42z"}),a("path",{class:"colored",d:"M60 42a24 24 0 100 48.001A24 24 0 0060 42zm12 26H62v10a2 2 0 01-4 0V68H48a2 2 0 010-4h10V54a2 2 0 014 0v10h10a2 2 0 110 4z"})),s=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{fill:"#393939",d:"M110.35 96.52l-24.8-22.66a6.22 6.22 0 00-8.14-.27l-.09.07-10.57 8.93-18.33-17.88a6.001 6.001 0 00-8.51-.35L8.69 91.49a2 2 0 002.62 3l31.3-27.2a2 2 0 012.233-.359 2 2 0 01.637.479l.1.1 45 43.9a2.005 2.005 0 002.83-.03 2.003 2.003 0 00-.03-2.83L69.63 85.39l10.22-8.63a2.3 2.3 0 013 .07l24.77 22.65c.377.343.871.529 1.38.52a2 2 0 001.35-3.48zM75 31a10 10 0 110 20 10 10 0 010-20zm0-4a14 14 0 100 28 14 14 0 000-28z"}),a("path",{class:"colored",d:"M12 36H8V20A12 12 0 0120 8h16v4H20a8 8 0 00-8 8v16zM112 36h-4V20a8.001 8.001 0 00-8-8H84V8h16a11.998 11.998 0 0112 12v16zM36 112H20a11.998 11.998 0 01-12-12V84h4v16a8 8 0 008 8h16v4zM100 112H84v-4h16a8 8 0 008-8V84h4v16c0 3.183-1.264 6.235-3.515 8.485A11.996 11.996 0 01100 112z"})),v=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{class:"colored",d:"M84.09 43.24a.53.53 0 00-.29-.48L60.28 29.4a.522.522 0 00-.27-.07.531.531 0 00-.28.07L36.2 42.76a.54.54 0 000 1l23.53 13.3a.54.54 0 00.55 0L83.8 43.72a.53.53 0 00.29-.48zM57.28 61.23L33.73 47.88a.569.569 0 00-.85.48V75a.54.54 0 00.29.48L56.72 88.8a.56.56 0 00.56 0 .53.53 0 00.28-.48V61.71a.56.56 0 00-.28-.48zM86.84 47.88a.63.63 0 00-.29-.08.55.55 0 00-.28.08L62.73 61.23a.56.56 0 00-.28.48v26.61a.53.53 0 00.28.48.56.56 0 00.56 0l23.54-13.29a.54.54 0 00.29-.48V48.36a.55.55 0 00-.28-.48z"}),a("path",{class:"colored",d:"M100 7.94H20a12 12 0 00-12 12v80a11.998 11.998 0 0012 12h80c3.183 0 6.235-1.264 8.485-3.515A11.996 11.996 0 00112 99.94v-80a11.998 11.998 0 00-12-12zm-8 69.24a1.69 1.69 0 01-.85 1.45l-30.31 17.1a1.77 1.77 0 01-1.67 0l-30.32-17.1a1.689 1.689 0 01-.85-1.45V42.82a1.66 1.66 0 01.85-1.45l30.32-17.21a1.71 1.71 0 011.67 0l30.31 17.21a1.67 1.67 0 01.85 1.45v34.36z"})),w=()=>a("svg",{width:"14",height:"11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M5 10.414 0 5.413 1.413 4 5 7.586 12.585 0 14 1.415l-9 8.999Z",fill:"var(--color-primary, var(--color-primary-system))"})),i=()=>a("svg",{width:"9",height:"16",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"m9 8-7.895 8L0 14.88 6.79 8 0 1.12 1.105 0 9 8Z"})),c=()=>a("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 2C3.35 2 2 3.35 2 5v2H0V5c0-2.76 2.24-5 5-5h2v2H5Zm5 3c1.28 0 2.56.48 3.54 1.46h-.01a4.994 4.994 0 0 1 .64 6.29l3.05 3.05-1.41 1.41-3.05-3.05c-.84.55-1.8.83-2.76.83a4.98 4.98 0 0 1-3.54-1.46 5.003 5.003 0 0 1 0-7.07C7.44 5.49 8.72 5 10 5Zm-2.77 5c0 .74.29 1.44.81 1.96s1.22.81 1.96.81 1.44-.29 1.96-.81.81-1.22.81-1.96-.29-1.44-.81-1.96-1.22-.81-1.96-.81-1.44.29-1.96.81-.81 1.22-.81 1.96ZM2 15v-2H0v2c0 2.76 2.24 5 5 5h2v-2H5c-1.65 0-3-1.35-3-3ZM13 0h2c2.76 0 5 2.24 5 5v2h-2V5c0-1.65-1.35-3-3-3h-2V0Z",fill:"#161616"})),e=()=>a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M16 1.4L14.6 0L8 6.6L1.4 0L0 1.4L6.6 8L0 14.6L1.4 16L8 9.4L14.6 16L16 14.6L9.4 8L16 1.4Z",fill:"#161616"}));export{l as A,w as C,t as O,c as V,s as a,v as b,h as c,e as d,i as e}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--color-primary-system:#
|
|
1
|
+
:host{--color-primary-system:#0f62fe;--color-primary-hover-system:#014cda;--color-icons-system:#2f8edf;--spacer:8px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-
|
|
1
|
+
import{p as e,b as i}from"./p-880bccf1.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>i([["p-b7be7c70",[[1,"vviinn-vps-button",{token:[1],currencySign:[1,"currency-sign"],locale:[1],campaignId:[1,"campaign-id"],apiPath:[1,"api-path"],pressed:[32]},[[0,"modalClosed","handleModalClosed"]]],[1,"vviinn-vps-widget",{token:[1],apiPath:[1,"api-path"],active:[1028],currencySign:[1,"currency-sign"],locale:[1],campaignId:[1,"campaign-id"],slidePosition:[32],width:[32],wrongImageFormat:[32]},[[0,"recommendationView","trackRecommendationView"],[0,"recommendationClick","trackRecommendationClick"],[0,"cropperChanged","trachSearchAreaChanges"],[0,"detectedObjectClicked","trackDetectedObject"],[0,"filterSelected","trackFilter"]]],[1,"vviinn-image-view"],[1,"vviinn-onboarding"],[1,"vviinn-example-images",null,[[0,"exampleImageSelected","handleImageSelection"],[0,"exampleImageError","handleImageSelectionError"]]],[1,"vviinn-overlayed-modal",{active:[4]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector"],[1,"vviinn-server-error"],[1,"vviinn-wrong-format"],[1,"search-filters",{filter:[16],selectedCategoryId:[32],hideFilters:[32]}],[1,"vviinn-privacy-badge"],[1,"vviinn-teaser"],[1,"image-cropper",{disabled:[4],handleMove:[32]}],[1,"vviinn-example-image",{src:[1],width:[2],height:[2],selected:[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{detectedObject:[16],position:[32]}],[1,"vviinn-modal",{active:[1540],slider:[32]}],[1,"vviinn-onboarding-card-1"],[1,"vviinn-onboarding-card-2"],[1,"vviinn-onboarding-card-3"],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{showBullets:[4,"show-bullets"],position:[514],showArrows:[4,"show-arrows"],elementsCount:[32],internalPosition:[32],swipeStartPosition:[32]}],[1,"cropper-handler",{handler:[16],disabled:[4]}],[1,"vviinn-error"],[1,"vviinn-preloader"],[1,"vviinn-product-card",{brand:[1],currency:[1],deeplink:[1],image:[1],imageRatio:[2,"image-ratio"],imageWidth:[2,"image-width"],locale:[1],price:[2],pricePrefix:[1,"price-prefix"],productId:[1,"product-id"],productTitle:[1,"product-title"],productType:[1,"product-type"],salePrice:[2,"sale-price"],responsive:[4],dimmedBackground:[4,"dimmed-background"],index:[2],imageLoaded:[32]}]]],["p-b0ada114",[[1,"vviinn-vpr-widget",{blockTitle:[1,"block-title"],imageRatio:[2,"image-ratio"],imageWidth:[2,"image-width"],productId:[1,"product-id"],token:[1],currencySign:[1,"currency-sign"],pricePrefix:[1,"price-prefix"],mode:[1],campaignType:[1,"campaign-type"],locale:[1],campaigns:[1],apiPath:[1,"api-path"],useCarousel:[4,"use-carousel"],showScroll:[4,"show-scroll"],cssUrl:[1,"css-url"],recommendations:[32],loaded:[32]},[[0,"productImageLoaded","handleImageLoading"],[0,"recommendationView","trackRecommendationView"],[0,"recommendationClick","trackRecommendationClick"]]],[0,"vviinn-carousel",{mode:[1],imageWidth:[2,"image-width"],showScroll:[4,"show-scroll"],recommendations:[16],moveDirection:[32],contentGroups:[32],activeContentGroup:[32]}]]],["p-591cb193",[[1,"vviinn-recommendations-sidebar",{sidebarTitle:[1,"sidebar-title"],token:[1],productId:[1,"product-id"],position:[1],sourceImage:[1,"source-image"],widgetScrollbar:[4,"widget-scrollbar"],campaigns:[1],state:[32]},[[16,"click","bodyClickListener"]]]]],["p-44bc50de",[[1,"vviinn-vpr-button",{token:[1],productId:[1,"product-id"],position:[1],sourceImage:[1,"source-image"],sidebarTitle:[1,"sidebar-title"],modalScrollbar:[4,"modal-scrollbar"],campaigns:[1]}]]]],e)));
|