@gem-sdk/components 2.0.0-dev.692 → 2.0.0-dev.694
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/accordion/setting/configs/uiV2.js +1 -0
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +2 -0
- package/dist/cjs/breadcrumb/setting/configs/settings.js +1 -0
- package/dist/cjs/builder.js +6 -12
- package/dist/cjs/button/setting/configs/settings.js +1 -0
- package/dist/cjs/carousel/setting/configs/settingV2.js +3 -0
- package/dist/cjs/collection/setting/collection-banner/configs/settings.js +2 -2
- package/dist/cjs/countdown-timer/setting/configs/settings.js +2 -0
- package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -0
- package/dist/cjs/grid/row/setting/configs/settings.js +5 -0
- package/dist/cjs/grid/section/setting/configs/settings.js +3 -0
- package/dist/cjs/icon-list/setting/configs/settings.js +2 -0
- package/dist/cjs/icon-list-hoz/setting/configs/settings.js +1 -0
- package/dist/cjs/index.js +32 -34
- package/dist/cjs/index.liquid.js +10 -16
- package/dist/cjs/marquee/setting/configs/settingsV2.js +1 -0
- package/dist/cjs/next.js +1 -3
- package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +1 -0
- package/dist/cjs/product/components/ProductImagesV2/common/common.js +2 -1
- package/dist/cjs/product/index.js +4 -6
- package/dist/cjs/product/next.js +0 -4
- package/dist/cjs/product/setting/product/configs/settings.js +3 -0
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +1 -0
- package/dist/cjs/product/setting/product-variant/configs/settings.js +2 -0
- package/dist/cjs/product/setting/product-view-more/configs/settings.js +1 -0
- package/dist/cjs/setting.js +76 -78
- package/dist/cjs/third-party/components/Bogos/BogosSampleContent.js +2 -1
- package/dist/cjs/third-party/components/Bogos.liquid.js +2 -0
- package/dist/cjs/third-party/setting/Bogos/index.js +5 -1
- package/dist/esm/accordion/setting/configs/uiV2.js +1 -0
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +2 -0
- package/dist/esm/breadcrumb/setting/configs/settings.js +1 -0
- package/dist/esm/builder.js +0 -6
- package/dist/esm/button/setting/configs/settings.js +1 -0
- package/dist/esm/carousel/setting/configs/settingV2.js +3 -0
- package/dist/esm/collection/setting/collection-banner/configs/settings.js +2 -2
- package/dist/esm/countdown-timer/setting/configs/settings.js +2 -0
- package/dist/esm/form/setting/submit-button/configs/settings.js +1 -0
- package/dist/esm/grid/row/setting/configs/settings.js +5 -0
- package/dist/esm/grid/section/setting/configs/settings.js +3 -0
- package/dist/esm/icon-list/setting/configs/settings.js +2 -0
- package/dist/esm/icon-list-hoz/setting/configs/settings.js +1 -0
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.liquid.js +0 -3
- package/dist/esm/marquee/setting/configs/settingsV2.js +1 -0
- package/dist/esm/next.js +1 -3
- package/dist/esm/product/components/ProductBundle/setting/uiV2.js +1 -0
- package/dist/esm/product/components/ProductImagesV2/common/common.js +2 -1
- package/dist/esm/product/index.js +24 -26
- package/dist/esm/product/next.js +0 -4
- package/dist/esm/product/setting/product/configs/settings.js +3 -0
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +1 -0
- package/dist/esm/product/setting/product-variant/configs/settings.js +2 -0
- package/dist/esm/product/setting/product-view-more/configs/settings.js +1 -0
- package/dist/esm/setting.js +0 -2
- package/dist/esm/third-party/components/Bogos/BogosSampleContent.js +2 -1
- package/dist/esm/third-party/components/Bogos.liquid.js +2 -0
- package/dist/esm/third-party/setting/Bogos/index.js +5 -1
- package/dist/types/index.d.ts +116 -551
- package/package.json +2 -2
- package/dist/cjs/product/components/ProductImagesV3/common/common.js +0 -360
- package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +0 -192
- package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -26
- package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +0 -94
- package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +0 -303
- package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +0 -95
- package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -59
- package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +0 -266
- package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -63
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -36
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -109
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -139
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -100
- package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -77
- package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -300
- package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -44
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -83
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -182
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -30
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -239
- package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -28
- package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -144
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -14
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -54
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -53
- package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -55
- package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -41
- package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -134
- package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -203
- package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -87
- package/dist/cjs/product/components/ProductImagesV3/index.js +0 -291
- package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +0 -153
- package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +0 -252
- package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +0 -251
- package/dist/cjs/product/setting/product-image-v3/ProductImages.js +0 -74
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -388
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -518
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +0 -336
- package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -118
- package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -119
- package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +0 -237
- package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +0 -491
- package/dist/cjs/swiper-carousel/arrow/Arrow.js +0 -52
- package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +0 -46
- package/dist/cjs/swiper-carousel/arrow/common/common.js +0 -119
- package/dist/cjs/swiper-carousel/arrow/common/getClass.js +0 -50
- package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +0 -84
- package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +0 -34
- package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -38
- package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +0 -29
- package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +0 -79
- package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -22
- package/dist/cjs/swiper-carousel/components/common/carousel.js +0 -98
- package/dist/cjs/swiper-carousel/components/const/index.js +0 -5
- package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -34
- package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +0 -42
- package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -105
- package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -15
- package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +0 -45
- package/dist/cjs/swiper-carousel/dots/Dots.js +0 -51
- package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +0 -26
- package/dist/cjs/swiper-carousel/dots/common/common.js +0 -28
- package/dist/cjs/swiper-carousel/dots/common/getClass.js +0 -40
- package/dist/cjs/swiper-carousel/dots/common/getStyle.js +0 -33
- package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +0 -21
- package/dist/cjs/swiper-carousel/index.js +0 -17
- package/dist/cjs/swiper-carousel/next.js +0 -22
- package/dist/cjs/swiper-carousel/root/Swiper.js +0 -128
- package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +0 -104
- package/dist/cjs/swiper-carousel/root/common/getAttr.js +0 -25
- package/dist/cjs/swiper-carousel/root/common/getClass.js +0 -135
- package/dist/cjs/swiper-carousel/root/common/getData.js +0 -56
- package/dist/cjs/swiper-carousel/root/common/getStyle.js +0 -66
- package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +0 -482
- package/dist/cjs/swiper-carousel/setting/Swiper.js +0 -42
- package/dist/cjs/swiper-carousel/setting/SwiperItem.js +0 -40
- package/dist/cjs/swiper-carousel/setting/configs/presets.js +0 -87
- package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +0 -819
- package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +0 -718
- package/dist/esm/product/components/ProductImagesV3/common/common.js +0 -344
- package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +0 -189
- package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -24
- package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +0 -83
- package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +0 -292
- package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +0 -92
- package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -53
- package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +0 -251
- package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -59
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -32
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -105
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -135
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -96
- package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -73
- package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -296
- package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -40
- package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -79
- package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -178
- package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -26
- package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -235
- package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -24
- package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -140
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -12
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -52
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -51
- package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -53
- package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -39
- package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -132
- package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -201
- package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -85
- package/dist/esm/product/components/ProductImagesV3/index.js +0 -287
- package/dist/esm/product/components/ProductImagesV3/index.liquid.js +0 -149
- package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +0 -248
- package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +0 -248
- package/dist/esm/product/setting/product-image-v3/ProductImages.js +0 -70
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -384
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -515
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +0 -334
- package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -116
- package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -117
- package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +0 -235
- package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +0 -489
- package/dist/esm/swiper-carousel/arrow/Arrow.js +0 -48
- package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +0 -42
- package/dist/esm/swiper-carousel/arrow/common/common.js +0 -111
- package/dist/esm/swiper-carousel/arrow/common/getClass.js +0 -48
- package/dist/esm/swiper-carousel/arrow/common/getStyle.js +0 -82
- package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +0 -30
- package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -34
- package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +0 -27
- package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +0 -77
- package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -20
- package/dist/esm/swiper-carousel/components/common/carousel.js +0 -93
- package/dist/esm/swiper-carousel/components/const/index.js +0 -3
- package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -30
- package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +0 -35
- package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -103
- package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -13
- package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +0 -43
- package/dist/esm/swiper-carousel/dots/Dots.js +0 -47
- package/dist/esm/swiper-carousel/dots/Dots.liquid.js +0 -22
- package/dist/esm/swiper-carousel/dots/common/common.js +0 -26
- package/dist/esm/swiper-carousel/dots/common/getClass.js +0 -38
- package/dist/esm/swiper-carousel/dots/common/getStyle.js +0 -31
- package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +0 -19
- package/dist/esm/swiper-carousel/index.js +0 -15
- package/dist/esm/swiper-carousel/next.js +0 -18
- package/dist/esm/swiper-carousel/root/Swiper.js +0 -124
- package/dist/esm/swiper-carousel/root/Swiper.liquid.js +0 -100
- package/dist/esm/swiper-carousel/root/common/getAttr.js +0 -23
- package/dist/esm/swiper-carousel/root/common/getClass.js +0 -133
- package/dist/esm/swiper-carousel/root/common/getData.js +0 -54
- package/dist/esm/swiper-carousel/root/common/getStyle.js +0 -64
- package/dist/esm/swiper-carousel/root/hook/useCarousel.js +0 -480
- package/dist/esm/swiper-carousel/setting/Swiper.js +0 -38
- package/dist/esm/swiper-carousel/setting/SwiperItem.js +0 -36
- package/dist/esm/swiper-carousel/setting/configs/presets.js +0 -85
- package/dist/esm/swiper-carousel/setting/configs/settingV2.js +0 -815
- package/dist/esm/swiper-carousel/setting/configs/uiV2.js +0 -713
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var core = require('@gem-sdk/core');
|
|
4
|
-
var common = require('./common.js');
|
|
5
|
-
var productGallery = require('./productGallery.js');
|
|
6
|
-
|
|
7
|
-
const DEVICES = [
|
|
8
|
-
'desktop',
|
|
9
|
-
'mobile',
|
|
10
|
-
'tablet'
|
|
11
|
-
];
|
|
12
|
-
function filterTruthyStyles(styles) {
|
|
13
|
-
return Object.fromEntries(Object.entries(styles || {}).filter(([, value])=>!!value));
|
|
14
|
-
}
|
|
15
|
-
const getWrapContainerStyle = (settings, isOnlyOneImage)=>{
|
|
16
|
-
const gridLayout = common.getStyleGridLayout({
|
|
17
|
-
position: settings.position,
|
|
18
|
-
ratioLayout: settings.ratioLayout,
|
|
19
|
-
ratioLayoutRight: settings.ratioLayoutRight,
|
|
20
|
-
isHiddenGalleryImages: !!isOnlyOneImage
|
|
21
|
-
});
|
|
22
|
-
const layoutOneImage = {
|
|
23
|
-
'--gtc': 'minmax(0, 12fr)'
|
|
24
|
-
};
|
|
25
|
-
const composeStyles = {
|
|
26
|
-
...isOnlyOneImage ? layoutOneImage : gridLayout,
|
|
27
|
-
...core.makeStyleResponsive('gg', settings?.spacing)
|
|
28
|
-
};
|
|
29
|
-
return filterTruthyStyles(composeStyles);
|
|
30
|
-
};
|
|
31
|
-
const getFeatureImageStyle = (settings, { enableOrder, enableDisplay })=>{
|
|
32
|
-
const getStyleFeaturedImageDisplay = ()=>{
|
|
33
|
-
return common.getDisplayStyle((device)=>![
|
|
34
|
-
'bottom-center',
|
|
35
|
-
'left',
|
|
36
|
-
'right',
|
|
37
|
-
'only-feature',
|
|
38
|
-
'inside-bottom',
|
|
39
|
-
'inside-left',
|
|
40
|
-
'inside-right'
|
|
41
|
-
].includes(core.getResponsiveValueByScreen(settings?.position, device) || ''), 'flex');
|
|
42
|
-
};
|
|
43
|
-
const featureImageOrder = common.getStyleGridOrderForFeature({
|
|
44
|
-
position: settings?.position
|
|
45
|
-
});
|
|
46
|
-
const composeStyles = {
|
|
47
|
-
...core.makeStyleResponsive('jc', settings?.align),
|
|
48
|
-
...enableOrder && {
|
|
49
|
-
...featureImageOrder
|
|
50
|
-
},
|
|
51
|
-
...enableDisplay && {
|
|
52
|
-
...getStyleFeaturedImageDisplay()
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
return filterTruthyStyles(composeStyles);
|
|
56
|
-
};
|
|
57
|
-
const getGalleryImageStyle = (settings, featureImageHeight)=>{
|
|
58
|
-
const galleryImageOrder = common.getStyleGridOrderForGallery({
|
|
59
|
-
position: settings.position
|
|
60
|
-
});
|
|
61
|
-
const getHeightForGallery = ()=>{
|
|
62
|
-
let result = {};
|
|
63
|
-
const ftImageHeight = featureImageHeight ?? 0;
|
|
64
|
-
DEVICES.forEach((device)=>{
|
|
65
|
-
const position = core.getResponsiveValueByScreen(settings?.position, device);
|
|
66
|
-
const isHorizontalLayout = [
|
|
67
|
-
'left',
|
|
68
|
-
'right'
|
|
69
|
-
].includes(position);
|
|
70
|
-
const spacingByDevice = core.getResponsiveValueByScreen(settings?.spacing, device);
|
|
71
|
-
const isHorizontalInsideLayout = [
|
|
72
|
-
'inside-left',
|
|
73
|
-
'inside-right'
|
|
74
|
-
].includes(position);
|
|
75
|
-
const spacingValue = common.convertSpacingForIndisdeLayout(spacingByDevice);
|
|
76
|
-
const heightInside = `calc(${ftImageHeight}px - ${spacingValue})`;
|
|
77
|
-
result = {
|
|
78
|
-
...result,
|
|
79
|
-
[device]: isHorizontalLayout ? ftImageHeight + 'px' : isHorizontalInsideLayout ? heightInside : 'auto'
|
|
80
|
-
};
|
|
81
|
-
});
|
|
82
|
-
return result;
|
|
83
|
-
};
|
|
84
|
-
const shapeByLayout = productGallery.getShapeByLayout({
|
|
85
|
-
shape: settings.shape,
|
|
86
|
-
shapeForBottom: settings.shapeForBottom,
|
|
87
|
-
shapeFor1Col: settings.shapeFor1Col,
|
|
88
|
-
shapeFor2Col: settings.shapeFor2Col,
|
|
89
|
-
shapeForFtOnly: settings.shapeForFtOnly,
|
|
90
|
-
shapeForInsideBottom: settings.shapeForInsideBottom ?? productGallery.sizeSettingDefaultForNewLayout,
|
|
91
|
-
shapeForInside: settings.shapeForInside ?? productGallery.sizeSettingDefaultForNewLayout
|
|
92
|
-
}, settings.position);
|
|
93
|
-
const styleInsideLayout = common.getStyleInsideLayout(settings.position, shapeByLayout, settings?.spacing);
|
|
94
|
-
const composeStyles = {
|
|
95
|
-
...core.makeStyleResponsive('h', core.makeHeight(getHeightForGallery())),
|
|
96
|
-
...core.makeStyleResponsive('jc', settings?.align),
|
|
97
|
-
...galleryImageOrder,
|
|
98
|
-
...styleInsideLayout
|
|
99
|
-
};
|
|
100
|
-
return filterTruthyStyles(composeStyles);
|
|
101
|
-
};
|
|
102
|
-
const getGalleryGridStyle = (setting, wrapperStyle)=>{
|
|
103
|
-
const shapeByLayout = productGallery.getShapeByLayout({
|
|
104
|
-
shape: setting.shape,
|
|
105
|
-
shapeForBottom: setting.shapeForBottom,
|
|
106
|
-
shapeFor1Col: setting.shapeFor1Col,
|
|
107
|
-
shapeFor2Col: setting.shapeFor2Col,
|
|
108
|
-
shapeForFtOnly: setting.shapeForFtOnly,
|
|
109
|
-
shapeForInsideBottom: setting.shapeForInsideBottom,
|
|
110
|
-
shapeForInside: setting.shapeForInside
|
|
111
|
-
}, setting.position);
|
|
112
|
-
const getGridDisplay = ()=>{
|
|
113
|
-
const isDisplayGrid = (type, position, device)=>{
|
|
114
|
-
const layout = core.getResponsiveValueByScreen(position, device);
|
|
115
|
-
const typeDevice = core.getResponsiveValueByScreen(type, device);
|
|
116
|
-
const isDisplayTypeGrid = typeDevice !== 'slider' && (layout === 'bottom-center' || layout === 'inside-bottom');
|
|
117
|
-
const isDisplayByLayout = [
|
|
118
|
-
'one-col',
|
|
119
|
-
'two-col'
|
|
120
|
-
].includes(layout || '');
|
|
121
|
-
return isDisplayTypeGrid || isDisplayByLayout;
|
|
122
|
-
};
|
|
123
|
-
const isDisplayByWidth = productGallery.checkDisplayGalleryByWidth({
|
|
124
|
-
shapeByLayout
|
|
125
|
-
});
|
|
126
|
-
const isDisplay = {
|
|
127
|
-
desktop: isDisplayByWidth.desktop && isDisplayGrid(setting.type, setting.position, 'desktop'),
|
|
128
|
-
tablet: isDisplayByWidth.tablet && isDisplayGrid(setting.type, setting.position, 'tablet'),
|
|
129
|
-
mobile: isDisplayByWidth.mobile && isDisplayGrid(setting.type, setting.position, 'mobile')
|
|
130
|
-
};
|
|
131
|
-
return common.getDisplayStyle((device)=>!isDisplay[device], 'flex');
|
|
132
|
-
};
|
|
133
|
-
const composeStyles = {
|
|
134
|
-
...getGridDisplay(),
|
|
135
|
-
...core.makeStyleResponsive('cg', setting?.itemSpacing),
|
|
136
|
-
...core.makeStyleResponsive('rg', setting?.itemSpacing),
|
|
137
|
-
...core.makeStyleResponsive('jc', setting?.align),
|
|
138
|
-
...wrapperStyle
|
|
139
|
-
};
|
|
140
|
-
return filterTruthyStyles(composeStyles);
|
|
141
|
-
};
|
|
142
|
-
const getGalleryGridItemStyle = (setting)=>{
|
|
143
|
-
const shapeByLayout = productGallery.getShapeByLayout({
|
|
144
|
-
shape: setting.shape,
|
|
145
|
-
shapeForBottom: setting.shapeForBottom,
|
|
146
|
-
shapeFor1Col: setting.shapeFor1Col,
|
|
147
|
-
shapeFor2Col: setting.shapeFor2Col,
|
|
148
|
-
shapeForFtOnly: setting.shapeForFtOnly,
|
|
149
|
-
shapeForInsideBottom: setting.shapeForInsideBottom,
|
|
150
|
-
shapeForInside: setting.shapeForInside
|
|
151
|
-
}, setting.position);
|
|
152
|
-
const getHeightByLayoutForItem = core.getHeightByShapeGlobalSize(shapeByLayout);
|
|
153
|
-
const getWidthByLayoutForItem = productGallery.getSettingWidthForGridItem({
|
|
154
|
-
shapeByLayout,
|
|
155
|
-
itemSpacing: setting.itemSpacing
|
|
156
|
-
});
|
|
157
|
-
const composeStyles = {
|
|
158
|
-
'max-width': '100%',
|
|
159
|
-
'outline-color': 'var(--g-c-brand, brand)',
|
|
160
|
-
...core.makeStyleResponsive('h', core.makeHeight(getHeightByLayoutForItem)),
|
|
161
|
-
...core.makeStyleResponsive('w', core.makeWidth(getWidthByLayoutForItem)),
|
|
162
|
-
...core.composeRadius({
|
|
163
|
-
normal: setting.corner
|
|
164
|
-
})
|
|
165
|
-
};
|
|
166
|
-
return filterTruthyStyles(composeStyles);
|
|
167
|
-
};
|
|
168
|
-
const getFeatureImageCarouselItemStyle = (setting)=>{
|
|
169
|
-
const imageHeightResponsive = core.getHeightByShapeGlobalSize(setting.ftShape);
|
|
170
|
-
const composeStyles = {
|
|
171
|
-
'max-width': '100%',
|
|
172
|
-
'outline-color': 'var(--g-c-brand, brand)',
|
|
173
|
-
...core.composeRadius({
|
|
174
|
-
normal: setting?.ftCorner
|
|
175
|
-
}),
|
|
176
|
-
...core.makeStyleResponsive('h', core.makeHeight(imageHeightResponsive)),
|
|
177
|
-
'min-width': '100%'
|
|
178
|
-
};
|
|
179
|
-
return filterTruthyStyles(composeStyles);
|
|
180
|
-
};
|
|
181
|
-
const getGalleryCarouselStyle = (setting)=>{
|
|
182
|
-
const shapeByLayout = productGallery.getShapeByLayout({
|
|
183
|
-
shape: setting.shape,
|
|
184
|
-
shapeForBottom: setting.shapeForBottom,
|
|
185
|
-
shapeFor1Col: setting.shapeFor1Col,
|
|
186
|
-
shapeFor2Col: setting.shapeFor2Col,
|
|
187
|
-
shapeForFtOnly: setting.shapeForFtOnly,
|
|
188
|
-
shapeForInsideBottom: setting.shapeForInsideBottom,
|
|
189
|
-
shapeForInside: setting.shapeForInside
|
|
190
|
-
}, setting.position);
|
|
191
|
-
const getWidthByLayoutForCarouselByDevice = (device)=>{
|
|
192
|
-
const layout = core.getResponsiveValueByScreen(setting?.position, device);
|
|
193
|
-
const isLayoutBottom = layout === 'bottom-center' || layout === 'inside-bottom';
|
|
194
|
-
const isInsideLayout = layout === 'inside-left' || layout === 'inside-right';
|
|
195
|
-
const shapeSetting = core.getResponsiveValueByScreen(shapeByLayout, device);
|
|
196
|
-
return isLayoutBottom || isInsideLayout || !shapeSetting?.width ? '100%' : shapeSetting.width;
|
|
197
|
-
};
|
|
198
|
-
const composeStyles = {
|
|
199
|
-
spacing: common.convertSpacing(setting?.itemSpacing),
|
|
200
|
-
sizeSetting: {
|
|
201
|
-
desktop: {
|
|
202
|
-
width: getWidthByLayoutForCarouselByDevice('desktop'),
|
|
203
|
-
height: '100%'
|
|
204
|
-
},
|
|
205
|
-
tablet: {
|
|
206
|
-
width: getWidthByLayoutForCarouselByDevice('tablet'),
|
|
207
|
-
height: '100%'
|
|
208
|
-
},
|
|
209
|
-
mobile: {
|
|
210
|
-
width: getWidthByLayoutForCarouselByDevice('mobile'),
|
|
211
|
-
height: '100%'
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
return filterTruthyStyles(composeStyles);
|
|
216
|
-
};
|
|
217
|
-
const getGalleryCarouselItemStyle = (setting)=>{
|
|
218
|
-
const shapeByLayout = productGallery.getShapeByLayout({
|
|
219
|
-
shape: setting.shape,
|
|
220
|
-
shapeForBottom: setting.shapeForBottom,
|
|
221
|
-
shapeFor1Col: setting.shapeFor1Col,
|
|
222
|
-
shapeFor2Col: setting.shapeFor2Col,
|
|
223
|
-
shapeForFtOnly: setting.shapeForFtOnly,
|
|
224
|
-
shapeForInsideBottom: setting.shapeForInsideBottom,
|
|
225
|
-
shapeForInside: setting.shapeForInside
|
|
226
|
-
}, setting.position);
|
|
227
|
-
const styleMinWidthForItem = core.makeStyleResponsive('minw', core.makeWidth(productGallery.getSettingMinWidthForCarouselItem({
|
|
228
|
-
shapeByLayout,
|
|
229
|
-
position: setting.position,
|
|
230
|
-
spacing: setting.itemSpacing
|
|
231
|
-
})));
|
|
232
|
-
const styleWidthForItem = core.makeStyleResponsive('w', core.makeWidth(productGallery.getSettingWidthForCarouselItem({
|
|
233
|
-
shapeByLayout,
|
|
234
|
-
position: setting.position
|
|
235
|
-
})));
|
|
236
|
-
const styleHeightForItem = core.makeStyleResponsive('h', core.makeHeight(core.getHeightByShapeGlobalSize(shapeByLayout)));
|
|
237
|
-
const composeStyles = {
|
|
238
|
-
'max-width': '100%',
|
|
239
|
-
'outline-color': 'var(--g-c-brand, brand)',
|
|
240
|
-
...styleMinWidthForItem,
|
|
241
|
-
...styleWidthForItem,
|
|
242
|
-
...styleHeightForItem,
|
|
243
|
-
...core.composeRadius({
|
|
244
|
-
normal: setting.corner
|
|
245
|
-
})
|
|
246
|
-
};
|
|
247
|
-
return filterTruthyStyles(composeStyles);
|
|
248
|
-
};
|
|
249
|
-
const getFeaturedImageCarouselStyle = (setting)=>{
|
|
250
|
-
const imageWidthResponsiveByDevice = (device)=>{
|
|
251
|
-
const shapeSetting = core.getResponsiveValueByScreen(setting.ftShape, device);
|
|
252
|
-
return shapeSetting?.width ?? '100%';
|
|
253
|
-
};
|
|
254
|
-
const composeStyles = {
|
|
255
|
-
playSpeed: setting?.ftAnimationSpeed,
|
|
256
|
-
sizeSetting: {
|
|
257
|
-
desktop: {
|
|
258
|
-
width: imageWidthResponsiveByDevice('desktop'),
|
|
259
|
-
height: 'auto'
|
|
260
|
-
},
|
|
261
|
-
tablet: {
|
|
262
|
-
width: imageWidthResponsiveByDevice('tablet'),
|
|
263
|
-
height: 'auto'
|
|
264
|
-
},
|
|
265
|
-
mobile: {
|
|
266
|
-
width: imageWidthResponsiveByDevice('mobile'),
|
|
267
|
-
height: 'auto'
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
align: {
|
|
271
|
-
desktop: core.getResponsiveValueByScreen(setting?.align, 'desktop'),
|
|
272
|
-
tablet: core.getResponsiveValueByScreen(setting?.align, 'tablet'),
|
|
273
|
-
mobile: core.getResponsiveValueByScreen(setting?.align, 'mobile')
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
return filterTruthyStyles(composeStyles);
|
|
277
|
-
};
|
|
278
|
-
const getFeaturedImageOnlyOneImageStyle = ({ setting, options })=>{
|
|
279
|
-
const imageHeightResponsive = core.getHeightByShapeGlobalSize(setting?.ftShape);
|
|
280
|
-
const composeStyles = {
|
|
281
|
-
...core.makeStyleWithDefault('w', core.getWidthByShapeGlobalSize(setting?.ftShape, false, true), {
|
|
282
|
-
desktop: '--g-ct-w',
|
|
283
|
-
tablet: '--g-ct-w',
|
|
284
|
-
mobile: '--g-ct-w'
|
|
285
|
-
}),
|
|
286
|
-
...options?.enableRadius && core.composeRadius({
|
|
287
|
-
normal: setting?.ftCorner
|
|
288
|
-
}),
|
|
289
|
-
...options?.enableHeight && core.makeStyleResponsive('h', core.makeHeight(imageHeightResponsive))
|
|
290
|
-
};
|
|
291
|
-
return filterTruthyStyles(composeStyles);
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
exports.getFeatureImageCarouselItemStyle = getFeatureImageCarouselItemStyle;
|
|
295
|
-
exports.getFeatureImageStyle = getFeatureImageStyle;
|
|
296
|
-
exports.getFeaturedImageCarouselStyle = getFeaturedImageCarouselStyle;
|
|
297
|
-
exports.getFeaturedImageOnlyOneImageStyle = getFeaturedImageOnlyOneImageStyle;
|
|
298
|
-
exports.getGalleryCarouselItemStyle = getGalleryCarouselItemStyle;
|
|
299
|
-
exports.getGalleryCarouselStyle = getGalleryCarouselStyle;
|
|
300
|
-
exports.getGalleryGridItemStyle = getGalleryGridItemStyle;
|
|
301
|
-
exports.getGalleryGridStyle = getGalleryGridStyle;
|
|
302
|
-
exports.getGalleryImageStyle = getGalleryImageStyle;
|
|
303
|
-
exports.getWrapContainerStyle = getWrapContainerStyle;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var common = require('./common.js');
|
|
4
|
-
|
|
5
|
-
const handleMouseMove = (event, setting)=>{
|
|
6
|
-
const isEnableRoomEffect = setting?.hoverEffect === 'zoom' && setting?.zoomType === 'default';
|
|
7
|
-
const isEnableGlassEffect = setting?.hoverEffect === 'zoom' && setting?.zoomType === 'glasses';
|
|
8
|
-
const isEnableShowOtherImage = setting?.hoverEffect === 'other';
|
|
9
|
-
const isEnableHoverEffect = setting?.hoverEffect !== 'none';
|
|
10
|
-
if (!isEnableHoverEffect) return;
|
|
11
|
-
const featureImageDom = event.currentTarget.querySelector('img');
|
|
12
|
-
const featureImageHoverDom = event.currentTarget.querySelector('img.hover-image');
|
|
13
|
-
const zoomLens = event.currentTarget.querySelector('.room-len');
|
|
14
|
-
const imagePosition = featureImageDom?.getBoundingClientRect();
|
|
15
|
-
const slideWidth = featureImageDom?.clientWidth || 0;
|
|
16
|
-
const slideHeight = featureImageDom?.clientHeight || 0;
|
|
17
|
-
const zoom = common.convertUnitToNumber(setting?.zoom, 0);
|
|
18
|
-
const zoomValue = !zoom || zoom < 100 ? 1 : zoom / 100 || 1;
|
|
19
|
-
const zoomSize = (slideWidth || 1) * (setting?.hoverEffect === 'other' ? 1 : zoomValue);
|
|
20
|
-
const zoomSizeHeight = (slideHeight || 1) * (setting?.hoverEffect === 'other' ? 1 : zoomValue);
|
|
21
|
-
const imageOffsetX = event.clientX - imagePosition?.x;
|
|
22
|
-
const imageOffsetY = event.clientY - imagePosition?.y;
|
|
23
|
-
isEnableShowOtherImage && displayOtherImage({
|
|
24
|
-
featureImageHoverDom
|
|
25
|
-
});
|
|
26
|
-
isEnableRoomEffect && event.clientX >= imagePosition?.x && event.clientX <= imagePosition.right && event.clientY >= imagePosition?.y && event.clientY <= imagePosition.bottom && displayZoomImage({
|
|
27
|
-
featureImageDom,
|
|
28
|
-
featureImageHoverDom,
|
|
29
|
-
zoomSize,
|
|
30
|
-
zoomSizeHeight,
|
|
31
|
-
slideWidth,
|
|
32
|
-
imageOffsetX,
|
|
33
|
-
imageOffsetY,
|
|
34
|
-
isEnableShowOtherImage
|
|
35
|
-
});
|
|
36
|
-
isEnableGlassEffect && displayZoomLen({
|
|
37
|
-
zoomLens,
|
|
38
|
-
zoomSize,
|
|
39
|
-
zoomValue,
|
|
40
|
-
imagePosition,
|
|
41
|
-
slideWidth,
|
|
42
|
-
slideHeight,
|
|
43
|
-
imageOffsetX,
|
|
44
|
-
imageOffsetY
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
const displayOtherImage = ({ featureImageHoverDom })=>{
|
|
48
|
-
if (!featureImageHoverDom) return;
|
|
49
|
-
featureImageHoverDom.style.opacity = '1';
|
|
50
|
-
featureImageHoverDom.style.top = '0px';
|
|
51
|
-
featureImageHoverDom.style.left = '0px';
|
|
52
|
-
featureImageHoverDom.style.width = '100%';
|
|
53
|
-
};
|
|
54
|
-
const displayZoomLen = ({ zoomLens, zoomSize, zoomValue, slideWidth, slideHeight, imageOffsetX, imageOffsetY })=>{
|
|
55
|
-
if (!zoomLens) return;
|
|
56
|
-
zoomLens.style.opacity = '1';
|
|
57
|
-
const w = zoomLens.offsetWidth / 2;
|
|
58
|
-
const h = zoomLens.offsetHeight / 2;
|
|
59
|
-
const imageHeight = slideHeight || 1;
|
|
60
|
-
if (imageOffsetX > slideWidth - w / zoomValue) {
|
|
61
|
-
imageOffsetX = slideWidth - w / zoomValue;
|
|
62
|
-
}
|
|
63
|
-
if (imageOffsetX < w / zoomValue) {
|
|
64
|
-
imageOffsetX = w / zoomValue;
|
|
65
|
-
}
|
|
66
|
-
if (imageOffsetY > imageHeight - h / zoomValue) {
|
|
67
|
-
imageOffsetY = imageHeight - h / zoomValue;
|
|
68
|
-
}
|
|
69
|
-
if (imageOffsetY < h / zoomValue) {
|
|
70
|
-
imageOffsetY = h / zoomValue;
|
|
71
|
-
}
|
|
72
|
-
zoomLens.style.top = imageOffsetY - h + 'px';
|
|
73
|
-
zoomLens.style.left = imageOffsetX - w + 'px';
|
|
74
|
-
zoomLens.style.backgroundSize = zoomSize + 'px ' + imageHeight * zoomValue + 'px';
|
|
75
|
-
zoomLens.style.backgroundPosition = `-${imageOffsetX * zoomValue - w}px -${imageOffsetY * zoomValue - h}px`;
|
|
76
|
-
};
|
|
77
|
-
const displayZoomImage = ({ featureImageDom, featureImageHoverDom, zoomSize, zoomSizeHeight, slideWidth, imageOffsetX, imageOffsetY, isEnableShowOtherImage = false })=>{
|
|
78
|
-
if (!featureImageHoverDom) return;
|
|
79
|
-
featureImageHoverDom.style.width = `${zoomSize}px`;
|
|
80
|
-
if (!isEnableShowOtherImage) featureImageHoverDom.style.height = `${zoomSizeHeight}px`;
|
|
81
|
-
featureImageHoverDom.style.opacity = '1';
|
|
82
|
-
const x = imageOffsetX / featureImageDom?.offsetWidth;
|
|
83
|
-
const y = imageOffsetY / featureImageDom?.offsetHeight;
|
|
84
|
-
featureImageHoverDom.style.top = (featureImageDom?.offsetHeight - featureImageHoverDom.offsetHeight) * y + 'px';
|
|
85
|
-
featureImageHoverDom.style.left = (slideWidth - zoomSize) * x + 'px';
|
|
86
|
-
};
|
|
87
|
-
const handleMouseOut = (event)=>{
|
|
88
|
-
const featureImageHoverDom = event.currentTarget.querySelector('img.hover-image');
|
|
89
|
-
const zoomLens = event.currentTarget.querySelector('.room-len');
|
|
90
|
-
featureImageHoverDom && (featureImageHoverDom.style.opacity = '0');
|
|
91
|
-
zoomLens && (zoomLens.style.opacity = '0');
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
exports.handleMouseMove = handleMouseMove;
|
|
95
|
-
exports.handleMouseOut = handleMouseOut;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var core = require('@gem-sdk/core');
|
|
4
|
-
|
|
5
|
-
const devices = [
|
|
6
|
-
'desktop',
|
|
7
|
-
'tablet',
|
|
8
|
-
'mobile'
|
|
9
|
-
];
|
|
10
|
-
const isFeatureMedia = (contentType)=>{
|
|
11
|
-
if (!contentType) return false;
|
|
12
|
-
return [
|
|
13
|
-
'EXTERNAL_VIDEO',
|
|
14
|
-
'MODEL_3D',
|
|
15
|
-
'VIDEO'
|
|
16
|
-
].includes(contentType);
|
|
17
|
-
};
|
|
18
|
-
const getZoomLenClass = ()=>{
|
|
19
|
-
return `!gp-flex gp-absolute gp-opacity-0 gp-h-[150px] gp-w-[150px] gp-cursor-none gp-rounded-full gp-bg-no-repeat gp-shadow-glasses gp-bg-white gp-pointer-events-none`;
|
|
20
|
-
};
|
|
21
|
-
const getZoomImageClass = ()=>{
|
|
22
|
-
return `gp-absolute gp-left-0 gp-top-0 gp-opacity-0 gp-transition-opacity gp-bg-white gp-pointer-events-none`;
|
|
23
|
-
};
|
|
24
|
-
const getDotStyleForOnlyFeaturedImage = (setting)=>{
|
|
25
|
-
let result = {};
|
|
26
|
-
devices.forEach((device)=>{
|
|
27
|
-
const position = core.getResponsiveValueByScreen(setting.position, device);
|
|
28
|
-
const dotStyle = core.getResponsiveValueByScreen(setting.dotStyle, device);
|
|
29
|
-
result = {
|
|
30
|
-
...result,
|
|
31
|
-
[device]: position === 'only-feature' ? dotStyle : 'none'
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
const checkRenderFeaturedCarousel = (setting)=>{
|
|
37
|
-
const devices = [
|
|
38
|
-
'desktop',
|
|
39
|
-
'mobile',
|
|
40
|
-
'tablet'
|
|
41
|
-
];
|
|
42
|
-
let isShow = false;
|
|
43
|
-
devices.forEach((device)=>{
|
|
44
|
-
const show = checkShowCarousel(setting, device);
|
|
45
|
-
if (checkShowCarousel(setting, device)) {
|
|
46
|
-
isShow = show;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
return isShow;
|
|
50
|
-
};
|
|
51
|
-
const checkShowCarousel = (setting, device)=>{
|
|
52
|
-
return core.getResponsiveValueByScreen(setting.position, device) !== 'only-feature' || core.getResponsiveValueByScreen(setting.ftNavigationPosition, device) !== 'none' || core.getResponsiveValueByScreen(setting.ftDotStyle, device) !== 'none' || core.getResponsiveValueByScreen(setting.ftLoop, device) === true || setting.ftDragToScroll === true;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
exports.checkRenderFeaturedCarousel = checkRenderFeaturedCarousel;
|
|
56
|
-
exports.getDotStyleForOnlyFeaturedImage = getDotStyleForOnlyFeaturedImage;
|
|
57
|
-
exports.getZoomImageClass = getZoomImageClass;
|
|
58
|
-
exports.getZoomLenClass = getZoomLenClass;
|
|
59
|
-
exports.isFeatureMedia = isFeatureMedia;
|