vviinn-widgets 2.1.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Handler-d1a8a86a.js +329 -0
- package/dist/{vviinn-widgets/app-globals-e0943e34.js → cjs/app-globals-30781f30.js} +15 -925
- package/{www/build/cropper-handler.entry.js → dist/cjs/cropper-handler.cjs.entry.js} +11 -7
- package/dist/{vviinn-widgets/customized-slots-f3449695.js → cjs/customized-slots-5d904d8e.js} +6 -3
- package/dist/cjs/highlight-box_22.cjs.entry.js +737 -0
- package/{www/build/imageSearch.store-407f49f0.js → dist/cjs/imageSearch.store-128957a4.js} +11573 -11902
- package/dist/cjs/index-741a970d.js +1354 -0
- package/dist/cjs/index-c493804d.js +41 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +23 -0
- package/dist/cjs/vviinn-carousel_5.cjs.entry.js +1232 -0
- package/dist/{vviinn-widgets/vviinn-error.entry.js → cjs/vviinn-error.cjs.entry.js} +8 -4
- package/{www/build/vviinn-preloader.entry.js → dist/cjs/vviinn-preloader.cjs.entry.js} +11 -10
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +43 -0
- package/{www/build/vviinn-vps-widget.entry.js → dist/cjs/vviinn-vps-widget.cjs.entry.js} +31 -30
- package/dist/cjs/vviinn-widgets.cjs.js +21 -0
- package/dist/collection/Image/error.js +14 -0
- package/dist/collection/Image/form.js +5 -0
- package/dist/collection/Image/fromFile.js +18 -0
- package/dist/collection/Image/imageToB64.js +9 -0
- package/dist/collection/Image/index.js +0 -0
- package/dist/collection/Image/renderPromise.js +6 -0
- package/dist/collection/Image/resizeImage.js +28 -0
- package/dist/collection/Image/sizing.js +39 -0
- package/dist/collection/Image/toFile.js +17 -0
- package/dist/collection/analytics/GAnalytics.js +32 -0
- package/dist/collection/analytics/GeneralAnalytics.js +9 -0
- package/dist/collection/analytics/GtagAnalytics.js +35 -0
- package/dist/collection/analytics/ProductAnalytics.js +1 -0
- package/dist/collection/campaign/Campaign.js +8 -0
- package/dist/collection/campaign/CampaignService.js +5 -0
- package/dist/collection/campaign/VCSCampaign.js +1 -0
- package/dist/collection/campaign/VCSCampaignResponse.js +1 -0
- package/dist/collection/campaign/VCSCampaignService.js +5 -0
- package/dist/collection/campaign/VPRCampaignResponse.js +1 -0
- package/dist/collection/campaign/VPRCampaignService.js +5 -0
- package/dist/collection/collection-manifest.json +43 -0
- package/dist/collection/components/customized-slots.js +47 -0
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +71 -0
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +25 -0
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +49 -0
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +64 -0
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +33 -0
- package/dist/{vviinn-widgets/image-cropper.entry.js → collection/components/image-search/image-view/image-cropper/image-cropper.js} +54 -32
- package/dist/collection/components/image-search/search-filters/search-filters.css +120 -0
- package/dist/collection/components/image-search/search-filters/search-filters.js +102 -0
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +138 -0
- package/{www/build/vviinn-carousel.entry.js → dist/collection/components/vviinn-carousel/vviinn-carousel.js} +115 -18
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +7 -0
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +36 -0
- package/dist/collection/components/vviinn-error/vviinn-error.css +38 -0
- package/dist/collection/components/vviinn-error/vviinn-error.js +18 -0
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +3 -0
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +34 -0
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +3 -0
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +34 -0
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +34 -0
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -0
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +19 -0
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +80 -0
- package/dist/{vviinn-widgets/index-c9483145.js → collection/components/vviinn-icons/index.js} +13 -12
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +25 -0
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +64 -0
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +47 -0
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +83 -0
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +31 -0
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +61 -0
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +105 -0
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +98 -0
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +41 -0
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +26 -0
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +26 -0
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +26 -0
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +58 -0
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +28 -0
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +33 -0
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +15 -0
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +29 -0
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +71 -0
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +37 -0
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +20 -0
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +19 -0
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +27 -0
- package/dist/collection/components/vviinn-product-card/render-helpers.js +32 -0
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +95 -0
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -0
- package/dist/collection/components/vviinn-slider/arrow.js +11 -0
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +4 -0
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +15 -0
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +109 -0
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +181 -0
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +14 -0
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +29 -0
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +238 -0
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +200 -0
- package/dist/collection/components/vviinn-vpr-button/stories/kek.stories.js +18 -0
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +35 -0
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +149 -0
- package/dist/collection/components/vviinn-vpr-widget/GridMode.js +1 -0
- package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +11 -0
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +441 -0
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +74 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +177 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +350 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +247 -0
- package/dist/collection/cropper/Cropper.js +1 -0
- package/dist/collection/cropper/Handler.js +61 -0
- package/dist/collection/dom/index.js +3 -0
- package/dist/collection/error.js +14 -0
- package/dist/collection/file/index.js +4 -0
- package/dist/collection/geometry/Clip.js +14 -0
- package/dist/collection/geometry/Point.js +32 -0
- package/dist/collection/geometry/Rectangle.js +95 -0
- package/dist/collection/geometry/RectangleAlt.js +1 -0
- package/dist/collection/geometry/Sized.js +8 -0
- package/dist/collection/global.js +19 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/interfaces/generated.js +5 -0
- package/dist/collection/interfaces/recommendation.js +1 -0
- package/dist/collection/network/apiClient.js +9 -0
- package/dist/collection/network/ion/File.js +14 -0
- package/dist/collection/network/ion/Form.js +64 -0
- package/dist/collection/network/ion/Link.js +8 -0
- package/dist/collection/network/ion/ValueObject.js +23 -0
- package/dist/collection/network/request.js +19 -0
- package/dist/collection/network/utils.js +37 -0
- package/dist/collection/recommendation/recommendation.js +1 -0
- package/dist/collection/searchSession/searchSession.js +26 -0
- package/dist/collection/sentry.js +14 -0
- package/dist/collection/slider/GridMode.js +1 -0
- package/dist/collection/store/file-processing.js +13 -0
- package/dist/collection/store/imageSearch.store.js +138 -0
- package/dist/collection/store/store.js +11 -0
- package/dist/collection/stories/Button.js +21 -0
- package/dist/collection/stories/Button.stories.js +42 -0
- package/dist/collection/stories/Header.js +45 -0
- package/dist/collection/stories/Header.stories.js +15 -0
- package/dist/collection/stories/Page.js +61 -0
- package/dist/collection/stories/Page.stories.js +19 -0
- package/dist/collection/stories/assets/code-brackets.svg +1 -0
- package/dist/collection/stories/assets/colors.svg +1 -0
- package/dist/collection/stories/assets/comments.svg +1 -0
- package/dist/collection/stories/assets/direction.svg +1 -0
- package/dist/collection/stories/assets/flow.svg +1 -0
- package/dist/collection/stories/assets/plugin.svg +1 -0
- package/dist/collection/stories/assets/repo.svg +1 -0
- package/dist/collection/stories/assets/stackalt.svg +1 -0
- package/dist/collection/stories/image-selector.stories.js +6 -0
- package/dist/collection/stories/image-view.stories.js +6 -0
- package/dist/collection/stories/modal.stories.js +12 -0
- package/dist/collection/stories/onboarding.stories.js +11 -0
- package/dist/collection/stories/overlay.stories.js +5 -0
- package/dist/collection/stories/overlayedModal.stories.js +8 -0
- package/dist/collection/stories/privacy-badge.stories.js +11 -0
- package/dist/collection/stories/slider.stories.js +17 -0
- package/dist/collection/stories/teaser.stories.js +5 -0
- package/dist/collection/stories/vps-widget.stories.js +47 -0
- package/dist/collection/stories/vviinn-product.stories.js +19 -0
- package/dist/collection/utils/collections/collectionsUtils.js +5 -0
- package/dist/collection/utils/either.js +3 -0
- package/dist/collection/utils/enum/enumUtils.js +3 -0
- package/dist/collection/utils/event/Events.js +1 -0
- package/dist/collection/utils/number/index.js +4 -0
- package/dist/collection/utils/option/option.js +4 -0
- package/dist/collection/utils/semigroup/semigroupDiff.js +6 -0
- package/dist/collection/utils/token/tokenUtils.js +9 -0
- package/dist/esm/Handler-639a4cb3.js +308 -0
- package/{www/build/app-globals-e0943e34.js → dist/esm/app-globals-345e497d.js} +10 -922
- package/dist/{vviinn-widgets → esm}/cropper-handler.entry.js +2 -2
- package/{www/build/customized-slots-f3449695.js → dist/esm/customized-slots-a76a8d41.js} +1 -1
- package/dist/esm/highlight-box_22.entry.js +712 -0
- package/dist/{vviinn-widgets/imageSearch.store-407f49f0.js → esm/imageSearch.store-8eab0da1.js} +11510 -11872
- package/dist/esm/index-6fa21e24.js +1323 -0
- package/{www/build/index-c9483145.js → dist/esm/index-8cb063df.js} +6 -4
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +19 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/vviinn-carousel_5.entry.js +1224 -0
- package/{www/build → dist/esm}/vviinn-error.entry.js +1 -1
- package/dist/{vviinn-widgets → esm}/vviinn-preloader.entry.js +3 -6
- package/dist/{vviinn-widgets → esm}/vviinn-vps-button.entry.js +3 -3
- package/dist/{vviinn-widgets → esm}/vviinn-vps-widget.entry.js +4 -7
- package/dist/esm/vviinn-widgets.js +19 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +12 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +10 -0
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +1 -0
- package/dist/types/components/vviinn-icons/index.d.ts +2 -0
- package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -2
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +2 -0
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +25 -0
- package/dist/types/components/vviinn-vpr-button/stories/kek.stories.d.ts +7 -0
- package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +14 -0
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +13 -3
- package/dist/types/components.d.ts +54 -0
- package/dist/vviinn-widgets/index.esm.js +0 -1
- package/dist/vviinn-widgets/p-04b06ea9.entry.js +1 -0
- package/dist/vviinn-widgets/p-400eb62f.entry.js +1 -0
- package/dist/vviinn-widgets/p-56fc949a.js +1 -0
- package/dist/vviinn-widgets/p-59edfbe2.js +1 -0
- package/dist/vviinn-widgets/p-78ccc9eb.js +15 -0
- package/dist/vviinn-widgets/p-9d24f51e.entry.js +1 -0
- package/dist/vviinn-widgets/p-d085199d.entry.js +1 -0
- package/dist/vviinn-widgets/p-e1ba8626.js +1 -0
- package/dist/vviinn-widgets/p-e38f4aa2.entry.js +1 -0
- package/dist/vviinn-widgets/p-e67cae57.js +1 -0
- package/dist/vviinn-widgets/p-f47e82b2.entry.js +1 -0
- package/dist/vviinn-widgets/p-f582db5c.js +1 -0
- package/dist/vviinn-widgets/p-fb14e3cc.entry.js +1 -0
- package/dist/vviinn-widgets/vviinn-widgets.css +1 -6
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -125
- package/package.json +3 -1
- package/www/build/index.esm.js +0 -1
- package/www/build/p-04b06ea9.entry.js +1 -0
- package/www/build/p-400eb62f.entry.js +1 -0
- package/www/build/p-56fc949a.js +1 -0
- package/www/build/p-59edfbe2.js +1 -0
- package/www/build/p-78ccc9eb.js +15 -0
- package/www/build/p-7e4978d5.js +1 -0
- package/www/build/p-9d24f51e.entry.js +1 -0
- package/www/build/p-a67898be.css +1 -0
- package/www/build/p-d085199d.entry.js +1 -0
- package/www/build/p-e1ba8626.js +1 -0
- package/www/build/p-e38f4aa2.entry.js +1 -0
- package/www/build/p-e67cae57.js +1 -0
- package/www/build/p-f47e82b2.entry.js +1 -0
- package/www/build/p-f582db5c.js +1 -0
- package/www/build/p-fb14e3cc.entry.js +1 -0
- package/www/build/vviinn-widgets.css +1 -6
- package/www/build/vviinn-widgets.esm.js +1 -125
- package/www/index.html +6 -13
- package/dist/vviinn-widgets/Array-4b9f84cf.js +0 -4295
- package/dist/vviinn-widgets/Handler-47db9890.js +0 -1428
- package/dist/vviinn-widgets/NonEmptyArray-6ef0d207.js +0 -4370
- package/dist/vviinn-widgets/css-shim-f0027935.js +0 -4
- package/dist/vviinn-widgets/dom-db0073f0.js +0 -73
- package/dist/vviinn-widgets/highlight-box.entry.js +0 -41
- package/dist/vviinn-widgets/index-b6d739a9.js +0 -3010
- package/dist/vviinn-widgets/number-98d54dd6.js +0 -1533
- package/dist/vviinn-widgets/search-filters.entry.js +0 -73
- package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +0 -389
- package/dist/vviinn-widgets/vviinn-carousel.entry.js +0 -205
- package/dist/vviinn-widgets/vviinn-detected-object.entry.js +0 -52
- package/dist/vviinn-widgets/vviinn-empty-results.entry.js +0 -16
- package/dist/vviinn-widgets/vviinn-example-image.entry.js +0 -38
- package/dist/vviinn-widgets/vviinn-example-images.entry.js +0 -28
- package/dist/vviinn-widgets/vviinn-image-selector.entry.js +0 -31
- package/dist/vviinn-widgets/vviinn-image-view.entry.js +0 -55
- package/dist/vviinn-widgets/vviinn-modal.entry.js +0 -30
- package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +0 -21
- package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +0 -21
- package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +0 -21
- package/dist/vviinn-widgets/vviinn-onboarding.entry.js +0 -20
- package/dist/vviinn-widgets/vviinn-overlay.entry.js +0 -15
- package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +0 -18
- package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +0 -20
- package/dist/vviinn-widgets/vviinn-product-card.entry.js +0 -176
- package/dist/vviinn-widgets/vviinn-server-error.entry.js +0 -16
- package/dist/vviinn-widgets/vviinn-slide.entry.js +0 -15
- package/dist/vviinn-widgets/vviinn-slider.entry.js +0 -120
- package/dist/vviinn-widgets/vviinn-teaser.entry.js +0 -20
- package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +0 -128
- package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +0 -16
- package/www/build/Array-4b9f84cf.js +0 -4295
- package/www/build/Handler-47db9890.js +0 -1428
- package/www/build/NonEmptyArray-6ef0d207.js +0 -4370
- package/www/build/css-shim-f0027935.js +0 -4
- package/www/build/dom-db0073f0.js +0 -73
- package/www/build/highlight-box.entry.js +0 -41
- package/www/build/image-cropper.entry.js +0 -113
- package/www/build/index-b6d739a9.js +0 -3010
- package/www/build/number-98d54dd6.js +0 -1533
- package/www/build/search-filters.entry.js +0 -73
- package/www/build/shadow-css-c1fdfa9f.js +0 -389
- package/www/build/vviinn-detected-object.entry.js +0 -52
- package/www/build/vviinn-empty-results.entry.js +0 -16
- package/www/build/vviinn-example-image.entry.js +0 -38
- package/www/build/vviinn-example-images.entry.js +0 -28
- package/www/build/vviinn-image-selector.entry.js +0 -31
- package/www/build/vviinn-image-view.entry.js +0 -55
- package/www/build/vviinn-modal.entry.js +0 -30
- package/www/build/vviinn-onboarding-card-1.entry.js +0 -21
- package/www/build/vviinn-onboarding-card-2.entry.js +0 -21
- package/www/build/vviinn-onboarding-card-3.entry.js +0 -21
- package/www/build/vviinn-onboarding.entry.js +0 -20
- package/www/build/vviinn-overlay.entry.js +0 -15
- package/www/build/vviinn-overlayed-modal.entry.js +0 -18
- package/www/build/vviinn-privacy-badge.entry.js +0 -20
- package/www/build/vviinn-product-card.entry.js +0 -176
- package/www/build/vviinn-server-error.entry.js +0 -16
- package/www/build/vviinn-slide.entry.js +0 -15
- package/www/build/vviinn-slider.entry.js +0 -120
- package/www/build/vviinn-teaser.entry.js +0 -20
- package/www/build/vviinn-vpr-widget.entry.js +0 -128
- package/www/build/vviinn-vps-button.entry.js +0 -39
- package/www/build/vviinn-wrong-format.entry.js +0 -16
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { h, r as registerInstance, e as Host, g as getElement } from './index-b6d739a9.js';
|
|
2
|
-
import { N as NonEmptyArray, _ as _function } from './NonEmptyArray-6ef0d207.js';
|
|
3
|
-
import { O as Option, s as sequenceToOption, a as Ord } from './number-98d54dd6.js';
|
|
4
|
-
import { A as ArrowIcon } from './index-c9483145.js';
|
|
5
|
-
|
|
6
|
-
const getStyleMap = (data) => {
|
|
7
|
-
return {
|
|
8
|
-
"arrow-wrapper": true,
|
|
9
|
-
[data.kind]: true,
|
|
10
|
-
disabled: data.disabled,
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
const Arrow = ({ kind, tabindex, disabled, onClick, onKeyDown, }) => (h("div", { class: getStyleMap({ kind, disabled }), onClick: onClick, tabindex: tabindex, onKeyDown: onKeyDown },
|
|
14
|
-
h(ArrowIcon, null)));
|
|
15
|
-
|
|
16
|
-
const vviinnSliderCss = ":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{--num-items:0;--position:0;display:grid;grid-gap:20px;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 0.33s ease-in-out}.controls{display:grid;grid-gap:16px;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;width:8px;transition:background 0.1s ease-in-out}.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:white;border:2px solid white;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 0.25ms ease-in-out;width:calc(var(--spacer) * 4)}.arrow-wrapper:active{border-color:var(--color-primary, var(--color-primary-system));opacity:0.75}.arrow-wrapper:focus{border-color:var(--color-primary, var(--color-primary-system));opacity:0.5;outline:none}.prev{left:0}.next{right:0}.next>svg{transform:rotate3d(0, 1, 0, 180deg)}.arrow-wrapper>svg{transition:fill 0.25ms ease-in-out;fill:#A8A8A8}.arrow-wrapper:hover>svg{fill:#8D8D8D}";
|
|
17
|
-
|
|
18
|
-
let VviinnSlider = class {
|
|
19
|
-
constructor(hostRef) {
|
|
20
|
-
registerInstance(this, hostRef);
|
|
21
|
-
this.elementsCount = 0;
|
|
22
|
-
this.internalPosition = 0;
|
|
23
|
-
this.swipeStartPosition = Option.none;
|
|
24
|
-
this.showBullets = true;
|
|
25
|
-
this.position = 0;
|
|
26
|
-
this.showArrows = false;
|
|
27
|
-
}
|
|
28
|
-
positionWatchHandler(newValue) {
|
|
29
|
-
this.internalPosition = newValue;
|
|
30
|
-
this.el.style.setProperty("--position", `${newValue}`);
|
|
31
|
-
this.setActiveCssClassToSlide(newValue);
|
|
32
|
-
}
|
|
33
|
-
connectedCallback() {
|
|
34
|
-
this.handleDomContentChanges();
|
|
35
|
-
}
|
|
36
|
-
handleDomContentChanges() {
|
|
37
|
-
const items = this.el.querySelectorAll("vviinn-slide");
|
|
38
|
-
this.elementsCount = items.length;
|
|
39
|
-
this.el.style.setProperty("--num-items", `${this.elementsCount}`);
|
|
40
|
-
this.setActiveCssClassToSlide(0);
|
|
41
|
-
}
|
|
42
|
-
setActiveCssClassToSlide(index) {
|
|
43
|
-
const items = this.el.querySelectorAll("vviinn-slide");
|
|
44
|
-
items.forEach((i) => i.classList.remove("active"));
|
|
45
|
-
items[index].classList.add("active");
|
|
46
|
-
}
|
|
47
|
-
goToSlide(index) {
|
|
48
|
-
this.internalPosition = index;
|
|
49
|
-
this.el.style.setProperty("--position", `${index}`);
|
|
50
|
-
this.setActiveCssClassToSlide(index);
|
|
51
|
-
}
|
|
52
|
-
renderBullets() {
|
|
53
|
-
return this.showBullets ? (h("div", { class: "controls" }, NonEmptyArray.range(0, this.elementsCount - 1).map((i) => (h("div", { class: {
|
|
54
|
-
bullet: true,
|
|
55
|
-
active: i == this.internalPosition % this.elementsCount,
|
|
56
|
-
}, onClick: () => this.goToSlide(i) }))))) : null;
|
|
57
|
-
}
|
|
58
|
-
nextSlide() {
|
|
59
|
-
this.internalPosition++;
|
|
60
|
-
this.renderSlidePosition();
|
|
61
|
-
}
|
|
62
|
-
prevSlide() {
|
|
63
|
-
const nextPostion = this.internalPosition - 1;
|
|
64
|
-
this.internalPosition =
|
|
65
|
-
nextPostion > -1 ? nextPostion : this.elementsCount - 1;
|
|
66
|
-
this.renderSlidePosition();
|
|
67
|
-
}
|
|
68
|
-
renderSlidePosition() {
|
|
69
|
-
requestAnimationFrame(() => {
|
|
70
|
-
this.el.style.setProperty("--position", `${this.internalPosition % this.elementsCount}`);
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
handleKeyDown(event) {
|
|
74
|
-
if (event.key !== "Space" && event.key !== "Enter")
|
|
75
|
-
return;
|
|
76
|
-
const target = event.target;
|
|
77
|
-
const direction = target.className.includes("prev") ? "prev" : "next";
|
|
78
|
-
switch (direction) {
|
|
79
|
-
case "prev":
|
|
80
|
-
this.prevSlide();
|
|
81
|
-
break;
|
|
82
|
-
case "next":
|
|
83
|
-
this.nextSlide();
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
handleTouchStart(event) {
|
|
88
|
-
if (!this.showBullets)
|
|
89
|
-
return;
|
|
90
|
-
this.swipeStartPosition = _function.pipe(event.touches[0], Option.fromNullable, Option.map((t) => t.clientX));
|
|
91
|
-
}
|
|
92
|
-
handleTouchEnd(event) {
|
|
93
|
-
if (!this.showBullets)
|
|
94
|
-
return;
|
|
95
|
-
const swipeEndPosition = _function.pipe(event.changedTouches[0], Option.fromNullable, Option.map((t) => t.clientX));
|
|
96
|
-
_function.pipe(sequenceToOption(this.swipeStartPosition, swipeEndPosition), Option.map(([start, end]) => Ord.compare(start, end)), Option.map((swipeDirection) => {
|
|
97
|
-
switch (swipeDirection) {
|
|
98
|
-
case 1:
|
|
99
|
-
return this.nextSlide();
|
|
100
|
-
case -1:
|
|
101
|
-
return this.prevSlide();
|
|
102
|
-
}
|
|
103
|
-
}));
|
|
104
|
-
}
|
|
105
|
-
render() {
|
|
106
|
-
return (h(Host, null, h("div", { class: "items-wrapper" }, h("div", { class: "items", onTouchStart: (e) => this.handleTouchStart(e), onTouchEnd: (e) => this.handleTouchEnd(e) }, h("slot", null))), this.showArrows
|
|
107
|
-
? [
|
|
108
|
-
h(Arrow, { kind: "prev", onClick: () => this.prevSlide(), onKeyDown: (ev) => this.handleKeyDown(ev), tabindex: 1, disabled: false }),
|
|
109
|
-
h(Arrow, { kind: "next", onClick: () => this.nextSlide(), onKeyDown: (ev) => this.handleKeyDown(ev), tabindex: 0, disabled: false }),
|
|
110
|
-
]
|
|
111
|
-
: null, this.renderBullets()));
|
|
112
|
-
}
|
|
113
|
-
get el() { return getElement(this); }
|
|
114
|
-
static get watchers() { return {
|
|
115
|
-
"position": ["positionWatchHandler"]
|
|
116
|
-
}; }
|
|
117
|
-
};
|
|
118
|
-
VviinnSlider.style = vviinnSliderCss;
|
|
119
|
-
|
|
120
|
-
export { VviinnSlider as vviinn_slider };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host, g as getElement } from './index-b6d739a9.js';
|
|
2
|
-
import { s as slotChangeListener } from './customized-slots-f3449695.js';
|
|
3
|
-
|
|
4
|
-
const vviinnTeaserCss = ":host{align-items:center;display:grid;justify-items:center;grid-gap:16px}.vviinn-teaser-text{font-size:28px;font-weight:600;line-height:40px;size:28px;text-align:center}";
|
|
5
|
-
|
|
6
|
-
let VviinnTeaser = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
}
|
|
10
|
-
componentWillLoad() {
|
|
11
|
-
slotChangeListener(this, this.el);
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (h(Host, null, h("slot", null, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "64", height: "64", fill: "none" }, h("defs", null), h("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" }), h("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" })), h("span", { class: "vviinn-teaser-text" }, h("slot", { name: "vviinn-teaser-text" }, "Finde Produkte auf ", h("br", null), " einem Foto")))));
|
|
15
|
-
}
|
|
16
|
-
get el() { return getElement(this); }
|
|
17
|
-
};
|
|
18
|
-
VviinnTeaser.style = vviinnTeaserCss;
|
|
19
|
-
|
|
20
|
-
export { VviinnTeaser as vviinn_teaser };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host, g as getElement } from './index-b6d739a9.js';
|
|
2
|
-
import { _ as _function } from './NonEmptyArray-6ef0d207.js';
|
|
3
|
-
import { s as sequenceT, A as Apply, g as getApiPath, c as createInitGetRequest, f as fromEither, a as chainW, m as makeRequest, b as createInitPostRequest, d as state, T as TaskEither, E as Either, i as imageSearchState } from './imageSearch.store-407f49f0.js';
|
|
4
|
-
import { p as pipe } from './Handler-47db9890.js';
|
|
5
|
-
import './number-98d54dd6.js';
|
|
6
|
-
import './Array-4b9f84cf.js';
|
|
7
|
-
|
|
8
|
-
const createBearerString = (x) => `Bearer ${x}`;
|
|
9
|
-
const createAuthedHeader = (x) => new Headers({
|
|
10
|
-
Authorization: x,
|
|
11
|
-
});
|
|
12
|
-
const createFetchAuthOptions = (x) => {
|
|
13
|
-
return {
|
|
14
|
-
headers: x,
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
const createBearAuthedHeader = _function.flow(createBearerString, createAuthedHeader, createFetchAuthOptions);
|
|
18
|
-
|
|
19
|
-
const isVPR = (c) => c._tag === "VPR";
|
|
20
|
-
const isVCS = (c) => c._tag === "VCS";
|
|
21
|
-
function fold(onVPR, onVCS) {
|
|
22
|
-
return (c) => (isVPR(c) ? onVPR() : onVCS());
|
|
23
|
-
}
|
|
24
|
-
function fromString(s) {
|
|
25
|
-
return s === "VPR" ? { _tag: "VPR" } : { _tag: "VCS" };
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const sequenceToEither = sequenceT(Apply);
|
|
29
|
-
const apiGet = (path, data = {}) => pipe(sequenceToEither(getApiPath(), createInitGetRequest), fromEither, chainW(makeRequest(path, data)));
|
|
30
|
-
const apiPost = (path, data = {}) => pipe(sequenceToEither(getApiPath(), createInitPostRequest), fromEither, chainW(makeRequest(path, data)));
|
|
31
|
-
|
|
32
|
-
const getVPRRecommendations = (productId) => (options) => {
|
|
33
|
-
const url = `product/${productId}/similar-products`;
|
|
34
|
-
return apiGet(url, options);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const getVCSRecommendations = (productId) => (options) => {
|
|
38
|
-
const url = `product/${productId}/cross-selling-products`;
|
|
39
|
-
return apiGet(url, options);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const getRecommendationsService = (campaignType) => _function.pipe(fromString(campaignType), fold(() => getVPRRecommendations, () => getVCSRecommendations));
|
|
43
|
-
|
|
44
|
-
const vviinnVprWidgetCss = ":host{display:grid;grid-gap:1rem;width:100%}:host(:not(.loaded)){position:absolute;visibility:hidden}:host(.grid) vviinn-product-card::part(image){border:1px solid #DDDDDD;width:100%}vviinn-product-card::part(price-container){align-self:flex-start;text-align:left;display:flex}.results{display:grid;grid-gap:1rem}.visually-hidden{position:absolute;top:0;left:0;z-index:-1;height:0;width:0}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(title),:host(.grid) vviinn-product-card::part(brand),: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(title),:host(.continuity) vviinn-product-card::part(brand),:host(.continuity) vviinn-product-card::part(type),:host(.continuity) vviinn-product-card::part(deeplink){text-align:left;max-width:unset;align-self:start}";
|
|
45
|
-
|
|
46
|
-
let VviinnVprWidget = class {
|
|
47
|
-
constructor(hostRef) {
|
|
48
|
-
registerInstance(this, hostRef);
|
|
49
|
-
/** Title for recommendations widget */
|
|
50
|
-
this.blockTitle = "Recommended products";
|
|
51
|
-
/** Ratio of each recommended product image */
|
|
52
|
-
this.imageRatio = 1;
|
|
53
|
-
/** Width of each recommended product image */
|
|
54
|
-
this.imageWidth = 300;
|
|
55
|
-
/** Currency sign will shown after price */
|
|
56
|
-
this.currencySign = "€";
|
|
57
|
-
/** Use slider or grid view */
|
|
58
|
-
this.mode = "continuity";
|
|
59
|
-
/** Campaign type */
|
|
60
|
-
this.campaignType = "VPR";
|
|
61
|
-
/** Locale for currency formatting */
|
|
62
|
-
this.locale = "de-DE";
|
|
63
|
-
this.showScroll = true;
|
|
64
|
-
this.cssUrl = null;
|
|
65
|
-
this.recommendations = [];
|
|
66
|
-
this.loaded = false;
|
|
67
|
-
}
|
|
68
|
-
handleProductIdChange() {
|
|
69
|
-
this.getRecommendations();
|
|
70
|
-
}
|
|
71
|
-
handleCampaignTypeChange() {
|
|
72
|
-
this.getRecommendations();
|
|
73
|
-
}
|
|
74
|
-
handleApiPathChange(newPath) {
|
|
75
|
-
state.apiPath = newPath;
|
|
76
|
-
this.getRecommendations();
|
|
77
|
-
}
|
|
78
|
-
connectedCallback() {
|
|
79
|
-
state.apiPath = this.apiPath;
|
|
80
|
-
state.currencySign = this.currencySign;
|
|
81
|
-
state.locale = this.locale;
|
|
82
|
-
}
|
|
83
|
-
async componentWillLoad() {
|
|
84
|
-
state.pricePrefix = this.pricePrefix;
|
|
85
|
-
state.currencySign = this.currencySign;
|
|
86
|
-
this.getRecommendations();
|
|
87
|
-
}
|
|
88
|
-
async getRecommendations() {
|
|
89
|
-
if (this.productId === undefined || this.token === undefined)
|
|
90
|
-
return;
|
|
91
|
-
const campaignType = this.campaignType.length > 0 ? this.campaignType : "VPR";
|
|
92
|
-
const headers = createBearAuthedHeader(this.token);
|
|
93
|
-
const request = _function.pipe(TaskEither.of(getRecommendationsService(campaignType)), TaskEither.ap(TaskEither.of(this.productId)), TaskEither.ap(TaskEither.of(headers)), TaskEither.flatten);
|
|
94
|
-
const runRequest = await request();
|
|
95
|
-
_function.pipe(runRequest, Either.fold((error) => this.handleError(error), (data) => this.handleRecommendationsSucces(data)));
|
|
96
|
-
}
|
|
97
|
-
handleError(error) {
|
|
98
|
-
console.log("ERROR:", error);
|
|
99
|
-
}
|
|
100
|
-
handleRecommendationsSucces(data) {
|
|
101
|
-
var _a;
|
|
102
|
-
this.recommendations = (_a = data === null || data === void 0 ? void 0 : data.extended) !== null && _a !== void 0 ? _a : data;
|
|
103
|
-
imageSearchState.results = this.recommendations;
|
|
104
|
-
this.loaded = true;
|
|
105
|
-
}
|
|
106
|
-
isExternalCSS() {
|
|
107
|
-
return this.cssUrl && this.cssUrl.length > 0;
|
|
108
|
-
}
|
|
109
|
-
renderExternalCSS() {
|
|
110
|
-
return this.isExternalCSS() ? h("link", { href: this.cssUrl, rel: "stylesheet" }) : "";
|
|
111
|
-
}
|
|
112
|
-
render() {
|
|
113
|
-
return (h(Host, { class: {
|
|
114
|
-
loaded: this.loaded,
|
|
115
|
-
empty: this.recommendations.length == 0,
|
|
116
|
-
[this.mode]: true,
|
|
117
|
-
}, "aria-hidden": this.loaded ? "false" : "true" }, this.renderExternalCSS(), h("style", null, state.fallbackStyles), h("h2", { part: "recommendations-title" }, this.blockTitle), h("vviinn-carousel", { mode: this.mode, imageWidth: this.imageWidth, showScroll: this.showScroll, recommendations: this.recommendations })));
|
|
118
|
-
}
|
|
119
|
-
get el() { return getElement(this); }
|
|
120
|
-
static get watchers() { return {
|
|
121
|
-
"productId": ["handleProductIdChange"],
|
|
122
|
-
"campaignType": ["handleCampaignTypeChange"],
|
|
123
|
-
"apiPath": ["handleApiPathChange"]
|
|
124
|
-
}; }
|
|
125
|
-
};
|
|
126
|
-
VviinnVprWidget.style = vviinnVprWidgetCss;
|
|
127
|
-
|
|
128
|
-
export { VviinnVprWidget as vviinn_vpr_widget };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, j as createEvent, h, e as Host } from './index-b6d739a9.js';
|
|
2
|
-
|
|
3
|
-
const vviinnWrongFormatCss = ":host{display:block}";
|
|
4
|
-
|
|
5
|
-
let VviinnWrongFormat = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.actionClick = createEvent(this, "actionClick", 7);
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
return (h(Host, null, h("vviinn-error", null, h("h4", { slot: "title" }, "Dateityp wird nicht unterst\u00FCtzt"), h("span", { slot: "text" }, "Leider unterst\u00FCtzen wir dieses Format nicht. Bitte laden Sie eine .jpg, .png oder .webp Bilddatei hoch."), h("button", { slot: "action", onClick: () => this.actionClick.emit() }, "Neues Bild hochladen"))));
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
VviinnWrongFormat.style = vviinnWrongFormatCss;
|
|
15
|
-
|
|
16
|
-
export { VviinnWrongFormat as vviinn_wrong_format };
|