@gem-sdk/components 4.0.0-staging.1193 → 4.0.0-staging.1195
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/article/components/ArticleList.js +1 -1
- package/dist/cjs/article/components/ArticleList.liquid.js +11 -10
- package/dist/cjs/carousel/components/arrow/common/classes.js +1 -1
- package/dist/cjs/carousel/components/arrow/common/helpers.js +1 -1
- package/dist/cjs/carousel/components/arrow/common/styles.js +11 -11
- package/dist/cjs/carousel/components/dot/common/helpers.js +1 -1
- package/dist/cjs/carousel/components/item/CarouselItem.js +1 -1
- package/dist/cjs/carousel/components/item/common/styles.js +1 -1
- package/dist/cjs/carousel/components/root/Carousel.js +1 -1
- package/dist/cjs/carousel/components/root/Carousel.liquid.js +8 -6
- package/dist/cjs/carousel/components/root/common/attrs.js +1 -1
- package/dist/cjs/carousel/components/root/common/classes.js +1 -1
- package/dist/cjs/carousel/components/root/common/styles.js +1 -1
- package/dist/cjs/carousel/components/swiper/Swiper.js +1 -0
- package/dist/cjs/carousel/components/swiper/SwiperSlide.js +1 -0
- package/dist/cjs/carousel/components/swiper/common/styles.js +1 -0
- package/dist/cjs/carousel/hooks/useCarousel.js +1 -1
- package/dist/cjs/carousel/hooks/useDotsSetting.js +1 -1
- package/dist/cjs/carousel/index.js +1 -1
- package/dist/cjs/carousel/plugins/animation.js +1 -1
- package/dist/cjs/hero-banner/common/helpers.js +1 -1
- package/dist/cjs/product/components/product-images-v2/ProductImagesV2.liquid.js +6 -6
- package/dist/cjs/product/components/product-images-v2/common/attrs.js +1 -1
- package/dist/cjs/product/components/product-images-v2/common/classes.js +1 -1
- package/dist/cjs/product/components/product-images-v2/common/getBorderActiveCss.js +5 -1
- package/dist/cjs/product/components/product-images-v2/common/productFeaturedImage.js +1 -1
- package/dist/cjs/product/components/product-images-v2/common/productGallery.js +1 -1
- package/dist/cjs/product/components/product-images-v2/common/styles.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/child/ProductFeaturedImageCarousel.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/child/ProductGalleryGrid.js +2 -2
- package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +13 -13
- package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +3 -3
- package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +4 -4
- package/dist/cjs/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
- package/dist/cjs/product/components/product-images-v2/hooks/useProductGalleryGrid.js +1 -1
- package/dist/cjs/product/components/product-list/ProductListCarouselLayout.liquid.js +4 -4
- package/dist/cjs/product/index.js +1 -1
- package/dist/cjs/product/settings/product-image-v2/configs/ui-v2.js +1 -1
- package/dist/cjs/video/components/HTML5Embed.liquid.js +12 -12
- package/dist/esm/article/components/ArticleList.js +1 -1
- package/dist/esm/article/components/ArticleList.liquid.js +11 -10
- package/dist/esm/carousel/components/arrow/common/classes.js +1 -1
- package/dist/esm/carousel/components/arrow/common/helpers.js +1 -1
- package/dist/esm/carousel/components/arrow/common/styles.js +8 -8
- package/dist/esm/carousel/components/dot/common/helpers.js +1 -1
- package/dist/esm/carousel/components/item/CarouselItem.js +1 -1
- package/dist/esm/carousel/components/item/common/styles.js +1 -1
- package/dist/esm/carousel/components/root/Carousel.js +1 -1
- package/dist/esm/carousel/components/root/Carousel.liquid.js +9 -7
- package/dist/esm/carousel/components/root/common/attrs.js +1 -1
- package/dist/esm/carousel/components/root/common/classes.js +1 -1
- package/dist/esm/carousel/components/root/common/styles.js +1 -1
- package/dist/esm/carousel/components/swiper/Swiper.js +1 -0
- package/dist/esm/carousel/components/swiper/SwiperSlide.js +1 -0
- package/dist/esm/carousel/components/swiper/common/styles.js +1 -0
- package/dist/esm/carousel/hooks/useCarousel.js +1 -1
- package/dist/esm/carousel/hooks/useDotsSetting.js +1 -1
- package/dist/esm/carousel/index.js +1 -1
- package/dist/esm/carousel/plugins/animation.js +1 -1
- package/dist/esm/hero-banner/common/helpers.js +1 -1
- package/dist/esm/product/components/product-images-v2/ProductImagesV2.liquid.js +8 -8
- package/dist/esm/product/components/product-images-v2/common/attrs.js +1 -1
- package/dist/esm/product/components/product-images-v2/common/classes.js +1 -1
- package/dist/esm/product/components/product-images-v2/common/getBorderActiveCss.js +6 -2
- package/dist/esm/product/components/product-images-v2/common/productFeaturedImage.js +1 -1
- package/dist/esm/product/components/product-images-v2/common/productGallery.js +1 -1
- package/dist/esm/product/components/product-images-v2/common/styles.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/child/ProductFeaturedImageCarousel.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/child/ProductGalleryGrid.js +2 -2
- package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +48 -48
- package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +2 -2
- package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +11 -11
- package/dist/esm/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
- package/dist/esm/product/components/product-images-v2/hooks/useProductGalleryGrid.js +1 -1
- package/dist/esm/product/components/product-list/ProductListCarouselLayout.liquid.js +6 -6
- package/dist/esm/product/index.js +1 -1
- package/dist/esm/product/settings/product-image-v2/configs/ui-v2.js +1 -1
- package/dist/esm/video/components/HTML5Embed.liquid.js +12 -12
- package/dist/types/index.d.ts +25 -0
- package/package.json +2 -1
- package/dist/cjs/carousel/plugins/auto-play.js +0 -1
- package/dist/cjs/carousel/plugins/fix-slider-move-backward.js +0 -1
- package/dist/cjs/carousel/plugins/mutation.js +0 -1
- package/dist/esm/carousel/plugins/auto-play.js +0 -1
- package/dist/esm/carousel/plugins/fix-slider-move-backward.js +0 -1
- package/dist/esm/carousel/plugins/mutation.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{template as e,RenderIf as t,isLocalEnv as o,baseAssetURL as s}from"@gem-sdk/core";import i from"../../image/components/NextImage.liquid.js";import{getSettingPreloadData as r}from"../../helpers.js";import{createAttr as l,createClass as a,createStyle as d,If as n}from"@gem-sdk/system";import{getWrapThumbnailClasses as m,getButtonThumbnailClasses as c,getImageThumbnailClasses as u,getVideoYoutubeClasses as p}from"../common/classes.js";import{getPreloadImageStyle as v}from"../common/styles.js";import{getHtml5Attr as y}from"../common/attrs.js";let HTML5Embed=$=>{let g=`gp-video-${$.uid}`,{thumbnail:f,muted:h,autoplay:L,loop:b,controls:E,src:A,style:w,title:T,className:P,lazy:j,poster:k}=$,
|
|
1
|
+
import{template as e,RenderIf as t,isLocalEnv as o,baseAssetURL as s}from"@gem-sdk/core";import i from"../../image/components/NextImage.liquid.js";import{getSettingPreloadData as r}from"../../helpers.js";import{createAttr as l,createClass as a,createStyle as d,If as n}from"@gem-sdk/system";import{getWrapThumbnailClasses as m,getButtonThumbnailClasses as c,getImageThumbnailClasses as u,getVideoYoutubeClasses as p}from"../common/classes.js";import{getPreloadImageStyle as v}from"../common/styles.js";import{getHtml5Attr as y}from"../common/attrs.js";let HTML5Embed=$=>{let g=`gp-video-${$.uid}`,{thumbnail:f,muted:h,autoplay:L,loop:b,controls:E,src:A,style:w,title:T,className:P,lazy:j,poster:k,wrapperStyles:I}=$,S=L&&h&&!!f,V=!j&&$.isVideoComponent,x=A.endsWith(".mp4"),C=!f||L&&h,M=V?A:void 0,B=l({...y({videoId:g,title:T,autoplay:L,preloadThumbnail:S,offLazyLoad:V,src:A,thumbnail:f})}),N=a({...m(C)}),z=d({...v()}),D=a({...c()}),G=a({...u()}),H=a({...p(P,V)}),O=()=>S?e`${i({src:f,alt:T,priority:k?.preload,enableLazyLoadImage:!0,style:z})}
|
|
2
2
|
${n(L,`<script>
|
|
3
3
|
document.addEventListener("DOMContentLoaded", (event) => {
|
|
4
4
|
const eventList = ["keydown", "mousemove", "wheel", "touchmove", "touchstart", "touchend"];
|
|
@@ -20,14 +20,14 @@ import{template as e,RenderIf as t,isLocalEnv as o,baseAssetURL as s}from"@gem-s
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
</script>`)}
|
|
23
|
-
`:"",
|
|
23
|
+
`:"",_=()=>e`
|
|
24
24
|
<div
|
|
25
25
|
role="presentation"
|
|
26
26
|
style="${w}"
|
|
27
|
-
class="${
|
|
27
|
+
class="${N}"
|
|
28
28
|
>
|
|
29
|
-
${i({id:"video-thumbnail",src:f??"",alt:k?.altText,title:k?.imageTitle,className:
|
|
30
|
-
<button type="button" class="${
|
|
29
|
+
${i({id:"video-thumbnail",src:f??"",alt:k?.altText,title:k?.imageTitle,className:G,isDisableAspectStyle:!0,priority:k?.preload,enableLazyLoadImage:!0})}
|
|
30
|
+
<button type="button" class="${D}" aria-label="Play">
|
|
31
31
|
<svg class="gp-w-5 gp-text-white" viewBox="0 0 24 24">
|
|
32
32
|
<path
|
|
33
33
|
fill="currentColor"
|
|
@@ -37,22 +37,22 @@ import{template as e,RenderIf as t,isLocalEnv as o,baseAssetURL as s}from"@gem-s
|
|
|
37
37
|
</button>
|
|
38
38
|
</div>
|
|
39
39
|
`;return e`
|
|
40
|
-
<gp-lite-html5-embed is-check-loaded="${$.isCheckLoaded??!1}">
|
|
41
|
-
${
|
|
40
|
+
<gp-lite-html5-embed is-check-loaded="${$.isCheckLoaded??!1}" style="${I}">
|
|
41
|
+
${O()}
|
|
42
42
|
<video
|
|
43
|
-
${{...
|
|
43
|
+
${{...B}}
|
|
44
44
|
style="${w}"
|
|
45
|
-
class="${
|
|
45
|
+
class="${H}"
|
|
46
46
|
${E?"controls":void 0}
|
|
47
47
|
${b?"loop":void 0}
|
|
48
48
|
${h?"muted":void 0}
|
|
49
49
|
${L?"autoplay":void 0}
|
|
50
50
|
playsinline
|
|
51
|
-
src="${
|
|
51
|
+
src="${M}"
|
|
52
52
|
>
|
|
53
|
-
${n(
|
|
53
|
+
${n(x,`<source data-src="${A}" src="${M}" type="video/mp4"></source>`)}
|
|
54
54
|
</video>
|
|
55
|
-
${n(!
|
|
55
|
+
${n(!C,_())}
|
|
56
56
|
</gp-lite-html5-embed>
|
|
57
57
|
${t(o,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-lite-html5-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${s}/assets-v2/gp-lite-html5-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
58
58
|
`};export{HTML5Embed as default};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ import * as csstype from 'csstype';
|
|
|
4
4
|
import { Property } from 'csstype';
|
|
5
5
|
import * as _gem_sdk_keen_slider from '@gem-sdk/keen-slider';
|
|
6
6
|
import { KeenSliderInstance } from '@gem-sdk/keen-slider';
|
|
7
|
+
import { Swiper } from 'gem-sdk-swiper';
|
|
7
8
|
import React$1, { ReactNode } from 'react';
|
|
9
|
+
import * as gem_sdk_swiper_types_swiper_class from 'gem-sdk-swiper/types/swiper-class';
|
|
8
10
|
|
|
9
11
|
type AccordionSettingProps = {
|
|
10
12
|
activeKey?: string;
|
|
@@ -770,6 +772,7 @@ type CarouselRef = {
|
|
|
770
772
|
nextSlideInteraction: (params: InteractionChangeSlide) => void;
|
|
771
773
|
previousSlideInteraction: (params: InteractionChangeSlide) => void;
|
|
772
774
|
moveToSlideInteraction: (params: InteractionChangeSlide) => void;
|
|
775
|
+
getSwiper: () => Swiper | null;
|
|
773
776
|
};
|
|
774
777
|
type CarouselSettingProps = {
|
|
775
778
|
slidesToShow?: ObjectDevices<number | 'auto'>;
|
|
@@ -822,6 +825,7 @@ type CarouselSettingProps = {
|
|
|
822
825
|
animationMode?: CarouselAnimationValue;
|
|
823
826
|
layout?: 'vertical' | 'hozirontal';
|
|
824
827
|
enableAction?: ObjectDevices<boolean>;
|
|
828
|
+
initialSlide?: number;
|
|
825
829
|
};
|
|
826
830
|
type CarouselStyleProps = {
|
|
827
831
|
spacing?: ObjectDevices<number>;
|
|
@@ -848,12 +852,16 @@ type CarouselProps = BasePropsWrap<CarouselSettingProps, CarouselStyleProps> & {
|
|
|
848
852
|
onCreated?: (slider: KeenSliderInstance) => void;
|
|
849
853
|
onClickArrow?: () => void;
|
|
850
854
|
onHandleChangeSlideByInteraction?: (index: number) => void;
|
|
855
|
+
onSwiperReady?: (swiper: Swiper) => void;
|
|
851
856
|
elmRef?: React.Ref<HTMLDivElement>;
|
|
852
857
|
rootClass?: string;
|
|
853
858
|
parentClass?: string;
|
|
854
859
|
rootAttrs?: Record<string, string | boolean | number>;
|
|
855
860
|
slidesClass?: string;
|
|
856
861
|
fullHeight?: boolean;
|
|
862
|
+
isDisableResetSlide?: boolean;
|
|
863
|
+
isProductList?: boolean;
|
|
864
|
+
thumbsSwiper?: string;
|
|
857
865
|
} & {
|
|
858
866
|
rootId?: string;
|
|
859
867
|
rootClass?: string;
|
|
@@ -864,6 +872,7 @@ type CarouselProps = BasePropsWrap<CarouselSettingProps, CarouselStyleProps> & {
|
|
|
864
872
|
disableMarginAuto?: boolean;
|
|
865
873
|
slidesClass?: string;
|
|
866
874
|
conditionAppendJs?: string;
|
|
875
|
+
isEnableCheckHasScrollableContent?: boolean;
|
|
867
876
|
};
|
|
868
877
|
type CarouselItemProps = {
|
|
869
878
|
parentStyle?: CarouselProps['styles'];
|
|
@@ -876,6 +885,7 @@ type CarouselItemProps = {
|
|
|
876
885
|
dispatchEventSelectSlide?: (index: number) => void;
|
|
877
886
|
parentId?: string;
|
|
878
887
|
parentUid?: string;
|
|
888
|
+
indexKey?: string;
|
|
879
889
|
} & BasePropsWrap & React.ComponentPropsWithoutRef<'div'>;
|
|
880
890
|
|
|
881
891
|
declare const Carousel$1: React.ForwardRefExoticComponent<_gem_sdk_core.BaseProps<CarouselSettingProps, CarouselStyleProps, Record<string, any>> & {
|
|
@@ -893,12 +903,16 @@ declare const Carousel$1: React.ForwardRefExoticComponent<_gem_sdk_core.BaseProp
|
|
|
893
903
|
onCreated?: ((slider: _gem_sdk_keen_slider.KeenSliderInstance) => void) | undefined;
|
|
894
904
|
onClickArrow?: (() => void) | undefined;
|
|
895
905
|
onHandleChangeSlideByInteraction?: ((index: number) => void) | undefined;
|
|
906
|
+
onSwiperReady?: ((swiper: Swiper) => void) | undefined;
|
|
896
907
|
elmRef?: React.Ref<HTMLDivElement> | undefined;
|
|
897
908
|
rootClass?: string | undefined;
|
|
898
909
|
parentClass?: string | undefined;
|
|
899
910
|
rootAttrs?: Record<string, string | number | boolean> | undefined;
|
|
900
911
|
slidesClass?: string | undefined;
|
|
901
912
|
fullHeight?: boolean | undefined;
|
|
913
|
+
isDisableResetSlide?: boolean | undefined;
|
|
914
|
+
isProductList?: boolean | undefined;
|
|
915
|
+
thumbsSwiper?: string | undefined;
|
|
902
916
|
} & {
|
|
903
917
|
rootId?: string | undefined;
|
|
904
918
|
rootClass?: string | undefined;
|
|
@@ -909,6 +923,7 @@ declare const Carousel$1: React.ForwardRefExoticComponent<_gem_sdk_core.BaseProp
|
|
|
909
923
|
disableMarginAuto?: boolean | undefined;
|
|
910
924
|
slidesClass?: string | undefined;
|
|
911
925
|
conditionAppendJs?: string | undefined;
|
|
926
|
+
isEnableCheckHasScrollableContent?: boolean | undefined;
|
|
912
927
|
} & React.RefAttributes<CarouselRef>>;
|
|
913
928
|
|
|
914
929
|
declare const CarouselItem$1: React.FC<CarouselItemProps>;
|
|
@@ -5913,12 +5928,16 @@ declare const _default$3: {
|
|
|
5913
5928
|
onCreated?: ((slider: _gem_sdk_keen_slider.KeenSliderInstance) => void) | undefined;
|
|
5914
5929
|
onClickArrow?: (() => void) | undefined;
|
|
5915
5930
|
onHandleChangeSlideByInteraction?: ((index: number) => void) | undefined;
|
|
5931
|
+
onSwiperReady?: ((swiper: gem_sdk_swiper_types_swiper_class.default) => void) | undefined;
|
|
5916
5932
|
elmRef?: React.Ref<HTMLDivElement> | undefined;
|
|
5917
5933
|
rootClass?: string | undefined;
|
|
5918
5934
|
parentClass?: string | undefined;
|
|
5919
5935
|
rootAttrs?: Record<string, string | number | boolean> | undefined;
|
|
5920
5936
|
slidesClass?: string | undefined;
|
|
5921
5937
|
fullHeight?: boolean | undefined;
|
|
5938
|
+
isDisableResetSlide?: boolean | undefined;
|
|
5939
|
+
isProductList?: boolean | undefined;
|
|
5940
|
+
thumbsSwiper?: string | undefined;
|
|
5922
5941
|
} & {
|
|
5923
5942
|
rootId?: string | undefined;
|
|
5924
5943
|
rootClass?: string | undefined;
|
|
@@ -5929,6 +5948,7 @@ declare const _default$3: {
|
|
|
5929
5948
|
disableMarginAuto?: boolean | undefined;
|
|
5930
5949
|
slidesClass?: string | undefined;
|
|
5931
5950
|
conditionAppendJs?: string | undefined;
|
|
5951
|
+
isEnableCheckHasScrollableContent?: boolean | undefined;
|
|
5932
5952
|
} & React.RefAttributes<CarouselRef>>;
|
|
5933
5953
|
CarouselItem: React.ComponentType<CarouselItemProps>;
|
|
5934
5954
|
Button: React.ComponentType<ButtonProps>;
|
|
@@ -6843,12 +6863,16 @@ declare const _default$2: {
|
|
|
6843
6863
|
onCreated?: ((slider: _gem_sdk_keen_slider.KeenSliderInstance) => void) | undefined;
|
|
6844
6864
|
onClickArrow?: (() => void) | undefined;
|
|
6845
6865
|
onHandleChangeSlideByInteraction?: ((index: number) => void) | undefined;
|
|
6866
|
+
onSwiperReady?: ((swiper: gem_sdk_swiper_types_swiper_class.default) => void) | undefined;
|
|
6846
6867
|
elmRef?: React.Ref<HTMLDivElement> | undefined;
|
|
6847
6868
|
rootClass?: string | undefined;
|
|
6848
6869
|
parentClass?: string | undefined;
|
|
6849
6870
|
rootAttrs?: Record<string, string | number | boolean> | undefined;
|
|
6850
6871
|
slidesClass?: string | undefined;
|
|
6851
6872
|
fullHeight?: boolean | undefined;
|
|
6873
|
+
isDisableResetSlide?: boolean | undefined;
|
|
6874
|
+
isProductList?: boolean | undefined;
|
|
6875
|
+
thumbsSwiper?: string | undefined;
|
|
6852
6876
|
} & {
|
|
6853
6877
|
rootId?: string | undefined;
|
|
6854
6878
|
rootClass?: string | undefined;
|
|
@@ -6859,6 +6883,7 @@ declare const _default$2: {
|
|
|
6859
6883
|
disableMarginAuto?: boolean | undefined;
|
|
6860
6884
|
slidesClass?: string | undefined;
|
|
6861
6885
|
conditionAppendJs?: string | undefined;
|
|
6886
|
+
isEnableCheckHasScrollableContent?: boolean | undefined;
|
|
6862
6887
|
} & React.RefAttributes<CarouselRef>>;
|
|
6863
6888
|
CarouselItem: React.FC<CarouselItemProps>;
|
|
6864
6889
|
Cart: React.FC<CartProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "4.0.0-staging.
|
|
3
|
+
"version": "4.0.0-staging.1195",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@gem-sdk/keen-slider": "^6.8.8",
|
|
37
|
+
"gem-sdk-swiper": "0.0.58",
|
|
37
38
|
"node-html-parser": "^6.1.13",
|
|
38
39
|
"react-transition-group": "^4.4.5",
|
|
39
40
|
"react-youtube": "^10.1.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const AutoPlayPlugin=e=>{let n,o=e.options.autoplay??{},t=!1,r=!1,a=null,s=e?.container?.closest('[data-component-type="component"]')?.querySelector(".carousel-dots");function i(e){e.forEach(e=>{(r=e.isIntersecting)?v():c()})}function u(){!a&&e.container&&(a=new IntersectionObserver(i,{root:null,threshold:0})).observe(e.container)}function c(){clearTimeout(n)}function v(){c(),n=setTimeout(()=>{!t&&o.enable&&r&&e.next()},o.delay??2e3)}function l(){t=!0,c()}function d(){t=!1,v()}e.on("created",()=>{s?.addEventListener("mouseover",l),s?.addEventListener("mouseout",d),o.pauseOnHover&&e.container&&(e.container.addEventListener("mouseover",l),e.container.addEventListener("mouseout",d)),o.enable&&(u(),v())}),e.on("dragStarted",c),e.on("animationEnded",v),e.on("updated",e=>{(o=e.options?.autoplay??{}).enable&&(u(),v())}),e.on("optionsChanged",n=>{n.options.autoplay?.pauseOnHover!==o.pauseOnHover&&e.container&&(n.options.autoplay?.pauseOnHover?(e.container.addEventListener("mouseover",l),e.container.addEventListener("mouseout",d)):(e.container.removeEventListener("mouseover",l),e.container.removeEventListener("mouseout",d),t=!1)),(o=n.options.autoplay??{}).enable&&(u(),v())}),e.on("destroyed",()=>{e.container&&(e.container.removeEventListener("mouseover",l),e.container.removeEventListener("mouseout",d)),s?.removeEventListener("mouseover",l),s?.removeEventListener("mouseout",d),c(),a&&(a.disconnect(),a=null)})};exports.AutoPlayPlugin=AutoPlayPlugin;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const FixSliderMoveBackwards=e=>{e.on("animationEnded",e=>{let{rel:a,progress:d}=e.track.details;0===a&&0!==d&&e.moveToIdx(0,!0,{duration:0})})};exports.FixSliderMoveBackwards=FixSliderMoveBackwards;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const MutationPlugin=e=>{let t=new MutationObserver(t=>{t.forEach(()=>{e.update()})}),i={childList:!0},n=new ResizeObserver(function(){o(e),e.update()}),o=e=>{if(e.options.vertical){s(e);return}r(e)},s=e=>{e.slides.forEach(e=>{e.style.maxWidth="",e.style.minWidth=""})},r=e=>{e.slides.forEach(e=>{e.style.maxHeight="",e.style.minHeight=""})};e.on("created",()=>{n.observe(e.container),t.observe(e.container,i)}),e.on("destroyed",()=>{n.unobserve(e.container),t.disconnect()})};exports.MutationPlugin=MutationPlugin;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let AutoPlayPlugin=e=>{let n,o=e.options.autoplay??{},t=!1,r=!1,a=null,i=e?.container?.closest('[data-component-type="component"]')?.querySelector(".carousel-dots");function s(e){e.forEach(e=>{(r=e.isIntersecting)?v():c()})}function u(){!a&&e.container&&(a=new IntersectionObserver(s,{root:null,threshold:0})).observe(e.container)}function c(){clearTimeout(n)}function v(){c(),n=setTimeout(()=>{!t&&o.enable&&r&&e.next()},o.delay??2e3)}function d(){t=!0,c()}function l(){t=!1,v()}e.on("created",()=>{i?.addEventListener("mouseover",d),i?.addEventListener("mouseout",l),o.pauseOnHover&&e.container&&(e.container.addEventListener("mouseover",d),e.container.addEventListener("mouseout",l)),o.enable&&(u(),v())}),e.on("dragStarted",c),e.on("animationEnded",v),e.on("updated",e=>{(o=e.options?.autoplay??{}).enable&&(u(),v())}),e.on("optionsChanged",n=>{n.options.autoplay?.pauseOnHover!==o.pauseOnHover&&e.container&&(n.options.autoplay?.pauseOnHover?(e.container.addEventListener("mouseover",d),e.container.addEventListener("mouseout",l)):(e.container.removeEventListener("mouseover",d),e.container.removeEventListener("mouseout",l),t=!1)),(o=n.options.autoplay??{}).enable&&(u(),v())}),e.on("destroyed",()=>{e.container&&(e.container.removeEventListener("mouseover",d),e.container.removeEventListener("mouseout",l)),i?.removeEventListener("mouseover",d),i?.removeEventListener("mouseout",l),c(),a&&(a.disconnect(),a=null)})};export{AutoPlayPlugin};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let FixSliderMoveBackwards=e=>{e.on("animationEnded",e=>{let{rel:a,progress:d}=e.track.details;0===a&&0!==d&&e.moveToIdx(0,!0,{duration:0})})};export{FixSliderMoveBackwards};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let MutationPlugin=e=>{let t=new MutationObserver(t=>{t.forEach(()=>{e.update()})}),i={childList:!0},n=new ResizeObserver(function(){o(e),e.update()}),o=e=>{if(e.options.vertical){r(e);return}s(e)},r=e=>{e.slides.forEach(e=>{e.style.maxWidth="",e.style.minWidth=""})},s=e=>{e.slides.forEach(e=>{e.style.maxHeight="",e.style.minHeight=""})};e.on("created",()=>{n.observe(e.container),t.observe(e.container,i)}),e.on("destroyed",()=>{n.unobserve(e.container),t.disconnect()})};export{MutationPlugin};
|