@gem-sdk/components 23.0.0-staging.1 → 23.0.0-staging.11
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/ArticleImage.liquid.js +2 -2
- package/dist/cjs/article/settings/configs/article-image/settings.js +1 -1
- package/dist/cjs/article/settings/configs/article-image/ui-v2.js +1 -1
- package/dist/cjs/grid/components/row/Row.liquid.js +12 -12
- package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +5 -5
- package/dist/cjs/image/common/attrs.js +1 -1
- package/dist/cjs/image/common/classes.js +1 -1
- package/dist/cjs/image/common/helpers.js +2 -2
- package/dist/cjs/image/common/liquidSrcset.js +1 -0
- package/dist/cjs/image/common/listContext.js +15 -0
- package/dist/cjs/image/common/srcset.js +1 -0
- package/dist/cjs/image/components/AdaptiveImage.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +10 -12
- package/dist/cjs/image/components/Image.liquid.js +10 -10
- package/dist/cjs/image/components/NextImage.js +1 -1
- package/dist/cjs/image/components/NextImage.liquid.js +4 -5
- package/dist/cjs/image/constants.js +1 -1
- package/dist/cjs/image/settings/configs/settings.js +1 -1
- package/dist/cjs/image/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/image-comparison/components/CompareImage.liquid.js +14 -14
- package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +3 -3
- package/dist/cjs/image-comparison/settings/configs/settings.js +1 -1
- package/dist/cjs/image-comparison/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/post-purchase/product/components/ProductPrice.js +1 -1
- package/dist/cjs/post-purchase/product/components/ProductQuantity.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/useHandleQuantity.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
- package/dist/cjs/product/components/file-upload/UploadFile.liquid.js +16 -16
- package/dist/cjs/product/components/file-upload/common/classes.js +1 -1
- package/dist/cjs/product/components/product-badge/common/styles.js +1 -1
- package/dist/cjs/product/components/product-images-v2/common/common.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +42 -42
- package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
- package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +23 -23
- package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
- package/dist/cjs/product/components/product-images-v3/common/common.js +1 -1
- package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.js +1 -1
- package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +39 -39
- package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +38 -38
- package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +12 -12
- package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +12 -12
- package/dist/cjs/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +23 -23
- package/dist/cjs/product/components/product-images-v3/composables/getProductImagesStyles.js +1 -1
- package/dist/cjs/product/components/product-list/ProductListCarouselItem.liquid.js +4 -4
- package/dist/cjs/product/components/product-list/ProductListCarouselLayout.liquid.js +9 -7
- package/dist/cjs/product/components/product-list/ProductListGridItem.liquid.js +4 -4
- package/dist/cjs/product/components/product-list/ProductListGridLayout.liquid.js +16 -14
- package/dist/cjs/product/components/product-list-v3/ProductListCarouselItem.liquid.js +2 -3
- package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +11 -9
- package/dist/cjs/product/components/product-list-v3/ProductListGridItem.liquid.js +4 -4
- package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.liquid.js +16 -14
- package/dist/cjs/product/components/product-wrap/Product.liquid.js +13 -13
- package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
- package/dist/cjs/product/settings/product-image-v2/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
- package/dist/cjs/product/settings/product-image-v3/configs/ui-v2.js +1 -1
- package/dist/cjs/video/components/HTML5Embed.liquid.js +9 -9
- package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +11 -11
- package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +11 -11
- package/dist/cjs/video/components/Video.liquid.js +1 -1
- package/dist/esm/article/components/ArticleImage.liquid.js +3 -3
- package/dist/esm/article/settings/configs/article-image/settings.js +1 -1
- package/dist/esm/article/settings/configs/article-image/ui-v2.js +1 -1
- package/dist/esm/grid/components/row/Row.liquid.js +10 -10
- package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +10 -10
- package/dist/esm/image/common/attrs.js +1 -1
- package/dist/esm/image/common/classes.js +1 -1
- package/dist/esm/image/common/helpers.js +2 -2
- package/dist/esm/image/common/liquidSrcset.js +1 -0
- package/dist/esm/image/common/listContext.js +15 -0
- package/dist/esm/image/common/srcset.js +1 -0
- package/dist/esm/image/components/AdaptiveImage.js +1 -1
- package/dist/esm/image/components/AdaptiveImage.liquid.js +11 -13
- package/dist/esm/image/components/Image.liquid.js +3 -3
- package/dist/esm/image/components/NextImage.js +1 -1
- package/dist/esm/image/components/NextImage.liquid.js +5 -6
- package/dist/esm/image/constants.js +1 -1
- package/dist/esm/image/settings/configs/settings.js +1 -1
- package/dist/esm/image/settings/configs/ui-v2.js +1 -1
- package/dist/esm/image-comparison/components/CompareImage.liquid.js +17 -17
- package/dist/esm/image-comparison/components/ImageComparison.liquid.js +3 -3
- package/dist/esm/image-comparison/settings/configs/settings.js +1 -1
- package/dist/esm/image-comparison/settings/configs/ui-v2.js +1 -1
- package/dist/esm/post-purchase/product/components/ProductPrice.js +1 -1
- package/dist/esm/post-purchase/product/components/ProductQuantity.js +1 -1
- package/dist/esm/post-purchase/product/hooks/useHandleQuantity.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
- package/dist/esm/product/components/file-upload/UploadFile.liquid.js +19 -19
- package/dist/esm/product/components/file-upload/common/classes.js +1 -1
- package/dist/esm/product/components/product-badge/common/styles.js +1 -1
- package/dist/esm/product/components/product-images-v2/common/common.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +24 -24
- package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
- package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +29 -29
- package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
- package/dist/esm/product/components/product-images-v3/common/common.js +1 -1
- package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.js +1 -1
- package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +24 -24
- package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +24 -24
- package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +5 -5
- package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +5 -5
- package/dist/esm/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +30 -30
- package/dist/esm/product/components/product-images-v3/composables/getProductImagesStyles.js +1 -1
- package/dist/esm/product/components/product-list/ProductListCarouselItem.liquid.js +1 -1
- package/dist/esm/product/components/product-list/ProductListCarouselLayout.liquid.js +11 -9
- package/dist/esm/product/components/product-list/ProductListGridItem.liquid.js +1 -1
- package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +18 -16
- package/dist/esm/product/components/product-list-v3/ProductListCarouselItem.liquid.js +6 -7
- package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +11 -9
- package/dist/esm/product/components/product-list-v3/ProductListGridItem.liquid.js +1 -1
- package/dist/esm/product/components/product-list-v3/ProductListGridLayout.liquid.js +18 -16
- package/dist/esm/product/components/product-wrap/Product.liquid.js +7 -7
- package/dist/esm/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
- package/dist/esm/product/settings/product-image-v2/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
- package/dist/esm/product/settings/product-image-v3/configs/ui-v2.js +1 -1
- package/dist/esm/video/components/HTML5Embed.liquid.js +9 -9
- package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +11 -11
- package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +9 -9
- package/dist/esm/video/components/Video.liquid.js +1 -1
- package/dist/types/index.d.ts +20 -5
- package/package.json +7 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{convertToStyle as
|
|
1
|
+
import{convertToStyle as e,getSize as t,getWrapperStyle as o,getShapeWrapperPadding as r,checkDiscountContentProductBadge as i}from"../utils/common.js";import{getShapePosition as a}from"../utils/getShapePosition.js";import{composeShapeStyleByPosition as n,composeTextStyleByPosition as s}from"../utils/getRotateShape.js";import{getStyleAdvanced as p}from"../utils/getStyleAdvanced.js";import{getResponsiveValueByScreen as l,makeGlobalSize as d,getStyleShadow as g,composeTypographyStyle as m,convertDecimalToNumber as u}from"@gem-sdk/core";import{generateShadowCSS as h,getStyleBackground as y,getStyleBorder as S,getStyleCornerRadius as c}from"../utils/stylesV2.js";import{getWhiteSpaceStyle as x}from"../utils/getWhiteSpace.js";import{checkShowBadge as C}from"../utils/renderBadgeILP.js";import{getDisplayStyle as f}from"../../../../helpers.js";import{getShape as T}from"../utils/shape.js";let b=e=>{let{setting:o,styles:r}=e,i=T(o?.shape),a=o?.contentType==="text",n=a?r?.textSizeV2:r?.imageSizeV2;return a?t(i,n):t(void 0,n)},B=(e,t=!1)=>{let{setting:r,styles:i,style:n,navigationPosition:s,imageData:d,dotData:g,isInsideImageList:m}=e,u=r?.positionWithImage==="outside",h=o(t),y=a({positionType:i?.position,navigationPosition:s,dataImage:{...d,...g}}),S=b(e),c=p(u?{}:{...y,...S},n),x=m?f(e=>n?.[`--d${"desktop"===e?"":`-${e}`}`]==="none"||!["one-col","two-col"].includes(l(d?.imageLayout,e)||""),"block"):{};return{...!u&&{"--pos":"absolute"},...h,...c,...x}},I=({styles:t,setting:o})=>{let r=d(t?.textSizeV2).padding,i=T(o?.shape),a=o?.positionWithImage==="outside";return{...x(t?.textSizeV2),...e(i?.textStyle),...s(i,t?.position,a),...m(t?.typo),...g({value:t?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:t?.typo?.custom?.hasShadowText}),...y(!!i?.backgroundColorInText,t?.badgeColorV2),...r}},j=({styles:e,setting:t})=>{let o=T(t?.shape),r=t?.contentType==="text";return o?.supportBorder?r?S(e?.textBadgeBorder):S(e?.imageBadgeBorder):{}},V=({styles:e,setting:t})=>{let o=T(t?.shape),r=t?.contentType==="text";return o?.supportCorner?r?c(e?.textBadgeCorner,o?.shapeRadius):c(e?.imageBadgeCorner,o?.shapeRadius):{}},w=({styles:e,setting:t})=>{let o=T(t?.shape),i=j({setting:t,styles:e}),a=t?.positionWithImage==="outside",s=V({setting:t,styles:e}),p=r(o?.ratio);return{...i,...s,...n(o,e?.position,a),...y(!o?.backgroundColorInText,e?.badgeColorV2),...p,height:o?.ratio===1?"0px":"100%"}},W=({styles:e,setting:t})=>{let o=j({setting:t,styles:e}),r=V({setting:t,styles:e}),i=d(e?.imageSizeV2).padding;return{...o,...r,...i}},k=({props:e,currentVariant:t,product:o,isEditMode:r})=>{let{"bundle-item":a,setting:n}=e;if(a)return 1;let s=n?.contentType==="text",p=s&&!n?.displayContent?.trim(),l=i(n?.displayContent);if(p)return r?.2:0;let d=u(t?.price)??0,g=u(t?.salePrice)??0,m=C(n?.displayTrigger,o,t);return(g-d>0||!l)&&m?1:r?.2:0},z=({props:e,product:t,currentVariant:o,isEditMode:r})=>{let{setting:i}=e,a=i?.positionWithImage==="outside",n=b(e),s=r&&o?k({props:e,currentVariant:o,product:t,isEditMode:r}):1;return{...a?{...n,"--mb":0}:{},opacity:s}},v=e=>{let{styles:t,setting:o,builderProps:r}=e,i=o?.contentType==="text";return h(`[id="${r?.uid}"] .product-badge-item`,i?t?.textBadgeShadow:t?.imageBadgeShadow)};export{B as getContainerStyle,v as getContentStyleInternal,W as getImageContainerStyles,z as getSubWrapperStyle,w as getTextBadgeWrapperStyles,I as getTextContentStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getResponsiveValueByScreen as e,makeAspectRatio as t,DEVICES as
|
|
1
|
+
import{getResponsiveValueByScreen as e,makeAspectRatio as t,DEVICES as o,makeStyleResponsive as i,removeNullUndefined as l}from"@gem-sdk/core";let r=e=>{let t=e?.desktop,o=e?.tablet===void 0?t:e?.tablet,i=e?.mobile===void 0?o:e?.mobile;return{desktop:t,tablet:o,mobile:i}},a=(e,t)=>{if(!e)return t;if("number"==typeof e)return e;let o=e.replaceAll("px","").replaceAll("%","").replaceAll("rem","").replaceAll("em","");return isNaN(Number(o))?t:Number(o)},n=e=>e?{desktop:a(e.desktop,5),tablet:a(e.tablet,5),mobile:a(e.mobile,5)}:{desktop:5},s=(e,t)=>{let o={};return["desktop","mobile","tablet"].forEach(i=>{o={...o,[`--d${"desktop"===i?"":`-${i}`}`]:`${e(i)?"none":t}`}}),o},d=e=>{let t=e?.["--radius"],o=e?.["--bblr"]||"0px",i=e?.["--bbrr"]||"0px",l=e?.["--btlr"]||"0px",r=e?.["--btrr"]||"0px";return t&&!t.toString().includes("none")&&"0"!==t.toString()||"0px"!==o||"0px"!==i||"0px"!==l||"0px"!==r},b=o=>{let i={};return["desktop","mobile","tablet"].forEach(t=>{let l=e(o,t)?.shapeValue;if(l)i={...i,[t]:l};else{let l=e(o,t)?.shape;switch(l){case"square":i={...i,[t]:"1/1"};break;case"vertical":i={...i,[t]:"3/4"};break;case"horizontal":i={...i,[t]:"4/3"};break;case"original":i={...i,[t]:""}}}}),t(i)},c=t=>{let i={"--gtc":"minmax(0, 12fr)","--gtc-tablet":"minmax(0, 12fr)","--gtc-mobile":"minmax(0, 12fr)"};if(!t.isHiddenGalleryImages){let l=!1;o.forEach(o=>{let r=e(t.position,o),a=e(t.ratioLayout,o),n=e(t.ratioLayoutRight,o),s="desktop"===o?"--gtc":`--gtc-${o}`,d="desktop"===o?"--gtr":`--gtr-${o}`,b="left"===r?a:n,c=["left","right"].includes(r||"");c&&b?(l=!0,Object.assign(i={...i,[s]:`minmax(0, ${b[0]}fr) minmax(0, ${b[1]}fr)`},{[d]:"fit-content(0)"})):l&&Object.assign(i,{[d]:"unset"})})}return i},u=t=>{let o={"--o":"0","--o-tablet":"0","--o-mobile":"0"};return["desktop","mobile","tablet"].forEach(i=>{let l=e(t.position,i),r="desktop"===i?"--o":`--o-${i}`;o={...o,[r]:"left"===l?"1":"0"}}),o},m=t=>{let o={"--o":"1","--o-tablet":"1","--o-mobile":"1"};return["desktop","mobile","tablet"].forEach(i=>{let l=e(t.position,i),r="desktop"===i?"--o":`--o-${i}`;o={...o,[r]:"left"===l?"0":"1"}}),o},p=e=>{let t=parseInt(e)?`${2*parseInt(e)}px`:`${e} * 2`;return t},g=(t,o,r)=>{let a={},n={},s={},d={},b={},c={};return["desktop","mobile","tablet"].forEach(i=>{let l=e(t,i),u=e(o,i)?.width,m=e(r,i);if(a={...a,[i]:["inside-bottom","inside-left","inside-right"].includes(l)?"absolute":"static"},["inside-bottom"].includes(l)){let e=p(m);u=`calc(100% - ${e})`}["bottom-center","two-col","one-col"].includes(l)&&(u="100%"),s={...s,[i]:"inside-bottom"===l?`${m}`:"auto"},d={...d,[i]:["inside-left","inside-right"].includes(l)?`${m}`:"auto"},c={...c,[i]:["inside-bottom","inside-left"].includes(l)?`${m}`:"auto"},b={...b,[i]:"inside-right"===l?`${m}`:"auto"},n={...n,[i]:u}}),{...i("pos",a),...i("w",l(n)),...i("bottom",l(s)),...i("top",l(d)),...i("left",l(c)),...i("right",l(b))}},f=(t,o)=>{let i=!0,l=!1;return["desktop","mobile","tablet"].forEach(r=>{let a=e(t,r),n=e(o,r);a&&"only-feature"!==a&&(i=!1),(["two-col","one-col"].includes(a)||"images"===n)&&(l=!0)}),{isOnlyFeatureAllDevices:i,isRenderGalleryGrid:l}},h=e=>({...e,setting:{...e.setting}}),k=e=>{let t=e.match(/\d+/g);return t?t[0]:e},y=t=>{let o=b(t),i={desktop:"auto",mobile:"auto",tablet:"auto"};return["desktop","mobile","tablet"].forEach(l=>{let r=e(t,l),a=r?.height,n=r?.width||"",s=k(a||""),d=n.toString().match(/px/g)?k(n):n;if(a&&n&&!isNaN(Number(s))&&!isNaN(Number(d))){i={...i,[l]:`${Number(s)/Number(d)*100}%`};return}if(a&&!isNaN(Number(s))){i={...i,[l]:a};return}let b=o?.[l]!=="auto"&&o?.[l]?o?.[l]?.split("/").reverse().join("/"):"{%if largestRatio == 0%} 100 / 100 {%else%} {{largestRatio}} {%endif%}";i={...i,[l]:`calc((${b})*100%)`}}),i};export{d as checkAddOverFlowClass,n as convertSpacing,p as convertSpacingForIndisdeLayout,a as convertUnitToNumber,b as getAspectRatio,f as getConditionRenderGalleryImages,s as getDisplayStyle,y as getPaddingBottomByShapeSetting,c as getStyleGridLayout,u as getStyleGridOrderForFeature,m as getStyleGridOrderForGallery,g as getStyleInsideLayout,r as getTypeWidthDevice,h as setDefaultWhenUndefineSetting};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass as i}from"../../common/productFeaturedImage.js";import{getAspectRatio as t,getPaddingBottomByShapeSetting as r
|
|
1
|
+
import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass as i}from"../../common/productFeaturedImage.js";import{getAspectRatio as t,getPaddingBottomByShapeSetting as r}from"../../common/common.js";import{makeStyleResponsive as s,cls as d,template as o}from"@gem-sdk/core";import{getProductImagesClassName as u}from"../../composables/getProductImagesClassName.js";import l from"../../../../../carousel/components/item/CarouselItem.liquid.js";import{getProductImagesStyles as m}from"../../composables/getProductImagesStyles.js";import{getLiquidImageSrcset as g}from"../../../../../image/common/liquidSrcset.js";import n from"../../../../../carousel/components/root/Carousel.liquid.js";import{getProductImagesAttr as p}from"../../composables/getProductImagesAttr.js";import c from"../../../../../video/components/HTML5Embed.liquid.js";import f from"../../../../../image/components/NextImage.liquid.js";import h from"../../../../../image/components/Modal3d.liquid.js";import{LiquidIf as y,LiquidFor as M,Liquid as _,If as $}from"@gem-sdk/system";import b from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as v}from"../../../../helpers/function.js";let w=({builderPropUID:w,children:I,pageContext:q,...x})=>{let{featuredImageCarouselClasses:j,galleryItemClasses:z,featuredCarouselItemClasses:P}=u(x),{featuredImageCarouselStyle:S,featureImageStyle:T,featureImageCarouselOnlyOneImageStyle:R,featureImageOnlyOneImageStyle:W,featureImageCarouselItemStyle:C}=m(x),{featuredImageCarouselSettingAttrs:N}=p(x),k=t(x.ftShape),L=()=>`
|
|
2
2
|
{% case featureMedia.media_type %}
|
|
3
3
|
{% when 'image' %}
|
|
4
4
|
${D()}
|
|
@@ -11,26 +11,26 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
|
|
|
11
11
|
{% when 'model' %}
|
|
12
12
|
${E()}
|
|
13
13
|
{% else %}
|
|
14
|
-
${
|
|
14
|
+
${F()}
|
|
15
15
|
{% endcase %}
|
|
16
|
-
`,E=()=>h({src:y("featureMedia.sources.first.url contains '.glb'","{{ featureMedia.sources.first.url }}","{{featureMedia.sources.last.url}}"),alt:"{{featureMedia.preview_image.alt}}",poster:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%"},aspectRatio:
|
|
17
|
-
${V(
|
|
18
|
-
${$(
|
|
16
|
+
`,E=()=>h({src:y("featureMedia.sources.first.url contains '.glb'","{{ featureMedia.sources.first.url }}","{{featureMedia.sources.last.url}}"),alt:"{{featureMedia.preview_image.alt}}",poster:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%"},aspectRatio:k}),O=()=>b({src:"{{mediaSourceVideo}}",alt:"{{featureMedia.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"},aspectRatio:k}),A=()=>c({src:"{{mediaSourceVideo}}",title:"{{featureMedia.alt | escape}}",autoplay:!1,controls:!0,thumbnail:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",isCheckLoaded:!0,style:{width:"100%","max-height":"100%"},className:"gp-invisible"}),D=()=>o`
|
|
17
|
+
${V(d("gp-w-full gp-transition-opacity",{"group-hover:gp-opacity-0":"other"==x.hoverEffect},"{{shouldHidden}}"))}
|
|
18
|
+
${$(x?.hoverEffect!=="none",`<div class="${d("zoom-element !gp-max-w-none",a())}">
|
|
19
19
|
${V("image-zoom",!0)}
|
|
20
20
|
</div>`," ")}
|
|
21
|
-
${$(
|
|
22
|
-
`,V=(e,a)=>
|
|
21
|
+
${$(x?.hoverEffect=="zoom"&&x?.zoomType=="glasses",`<div class="${d("zoom-lens-element",i())}" style="opacity: 0; background-image: url('{{ featureMedia.src | img_url: "1024x1024"}}')"></div>`," ")}
|
|
22
|
+
`,V=(e,a)=>{let i=g({liquidSrc:"src",sizeTarget:"ProductFeatureImage",qualityType:x.qualityType,qualityPercent:x.qualityPercent});return o`
|
|
23
23
|
{% assign src = featureMedia.src %}
|
|
24
|
-
${$(a&&"other"==
|
|
25
|
-
{% assign other_image_index = ${
|
|
24
|
+
${$(a&&"other"==x.hoverEffect,`{% assign media_length = product.media | size %}
|
|
25
|
+
{% assign other_image_index = ${x.otherImage} | plus: 0 %}
|
|
26
26
|
{% if other_image_index >= media_length %}
|
|
27
27
|
{% assign other_image_index = media_length | minus: 1 %}
|
|
28
28
|
{% endif %}
|
|
29
29
|
{% assign otherImage = product.media[other_image_index] %}
|
|
30
30
|
${y("otherImage.media_type != 'image'","{% assign src = otherImage.preview_image.src %}","{% assign src = otherImage.src %}")}
|
|
31
31
|
`)}
|
|
32
|
-
${f({srcIsLiquidCode:!0,src:y("src != null",
|
|
33
|
-
${f({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",
|
|
32
|
+
${f({srcIsLiquidCode:!0,src:y("src != null","{{src | image_url}}","https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif"),id:y("featureMedia != null","{{featureMedia.id}}"),width:"{{featureMedia.width}}",height:"{{featureMedia.height}}",alt:"{{featureMedia.alt | escape}}",srcset:y("src != null",i),setting:{layout:x?.ftLayout,aspectRatio:k,qualityType:x?.qualityType,qualityPercent:x?.qualityPercent},priority:x?.preload,className:`gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none ${e}`})}`},F=()=>o`
|
|
33
|
+
${f({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",setting:{layout:x?.ftLayout,aspectRatio:k,qualityType:x?.qualityType,qualityPercent:x?.qualityPercent},priority:x?.preload,className:"gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none"})}`,H=r(x.ftShape),G=e(x),J="gp-featured-image-wrapper",B=y("product.media.size > 0",`${I||""} {% assign largestRatio = 0 %}
|
|
34
34
|
${M("featureMedia in product.media",`
|
|
35
35
|
{% assign height = featureMedia.height | times: 1.0 %}
|
|
36
36
|
{% assign width = featureMedia.width | times: 1.0 %}
|
|
@@ -46,22 +46,22 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
|
|
|
46
46
|
{% else %}
|
|
47
47
|
{% assign productImageWidth = featureMedia.preview_image.width %}
|
|
48
48
|
{% endcase %}`)}
|
|
49
|
-
${l({id:"{{section.id}}-{{imageID}}",contentType:"productImage",className:`${
|
|
49
|
+
${l({id:"{{section.id}}-{{imageID}}",contentType:"productImage",className:`${z("gp-ft-image-item !gp-min-w-full !gp-max-w-full' undefined")}`,parentId:`${w}-{{section.id}}-{{product.id}}`,style:C,customStyle:{width:"{{productImageWidth}}px"},children:`
|
|
50
50
|
<div
|
|
51
51
|
class="gp-w-full gp-relative ${y("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")}"
|
|
52
|
-
style="${
|
|
52
|
+
style="${v(s("pb",H))} ${y("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'","{{ 'display: flex; align-items: center; justify-content: center' }}")}"
|
|
53
53
|
>
|
|
54
|
-
${
|
|
54
|
+
${L()}
|
|
55
55
|
</div>
|
|
56
56
|
`})}`)}
|
|
57
|
-
`,f({src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:"480",height:"480",alt:"no image",priority:
|
|
57
|
+
`,f({src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:"480",height:"480",alt:"no image",priority:x?.preload,setting:{layout:x?.ftLayout,aspectRatio:k,qualityType:x?.qualityType,qualityPercent:x?.qualityPercent},style:{height:"100%"},className:"gp-w-full featured-image-only !gp-rounded-none"}));return _(`
|
|
58
58
|
{% capture featureImageOnlyOne %}
|
|
59
59
|
${_(`
|
|
60
60
|
{% assign featureMedia = variant.featured_media %}
|
|
61
61
|
{% unless featureMedia %}
|
|
62
62
|
{% assign featureMedia = product.featured_media %}
|
|
63
63
|
{% endunless %}
|
|
64
|
-
${y("product.media.size > 1",(()=>{switch(
|
|
64
|
+
${y("product.media.size > 1",(()=>{switch(x?.preDisplay){case"1st-images":return`
|
|
65
65
|
{% assign featureMedia = product.media.first %}
|
|
66
66
|
`;case"1st-3d-mode":return M("media in product.media",y("media.media_type == 'model'","{% assign featureMedia = media %}{% break %}"));case"1st-video":return M("media in product.media",y("media.media_type == 'video' or media.media_type == 'external_video'","{% assign featureMedia = media %}{% break %}"));default:return`
|
|
67
67
|
{% assign featureMedia = variant.featured_media %}
|
|
@@ -84,25 +84,25 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
|
|
|
84
84
|
${y("featureMedia == null","{% assign productImageWidth = 1600 %}")}
|
|
85
85
|
<div
|
|
86
86
|
class='gp-feature-image-carousel gp-feature-image-only'
|
|
87
|
-
style="${
|
|
87
|
+
style="${v(T)}"
|
|
88
88
|
>
|
|
89
89
|
<div
|
|
90
90
|
class="gp-relative"
|
|
91
|
-
style="${
|
|
91
|
+
style="${v(W)}"
|
|
92
92
|
>
|
|
93
93
|
${I}
|
|
94
94
|
<div
|
|
95
95
|
type="gp-feature-image-only"
|
|
96
96
|
product-id="{{product.id}}"
|
|
97
97
|
product-media="{{product.media.size}}"
|
|
98
|
-
class="${
|
|
99
|
-
style="${
|
|
98
|
+
class="${P(J)}"
|
|
99
|
+
style="${v(R)}"
|
|
100
100
|
>
|
|
101
101
|
<div
|
|
102
102
|
class="gp-w-full gp-relative ${y("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")}"
|
|
103
|
-
style="${
|
|
103
|
+
style="${v(s("pb",H))} ${y("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'","{{ 'display: flex; align-items: center; justify-content: center' }}")}"
|
|
104
104
|
>
|
|
105
|
-
${
|
|
105
|
+
${L()}
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
108
108
|
</div>
|
|
@@ -111,8 +111,8 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
|
|
|
111
111
|
{% endcapture %}
|
|
112
112
|
${y("product.media.size > 1",`
|
|
113
113
|
${$(G,`
|
|
114
|
-
${
|
|
114
|
+
${n({builderProps:{uid:w},rootId:`ft-${w}-{{section.id}}-{{product.id}}`,conditionAppendJs:"product.media.size > 1",wrapperClass:J,rootClass:`${j}`,rootAttrs:{type:"gp-feature-image-carousel","product-id":"{{product.id}}","product-media":"{{product.media.size}}"},isHiddenArrowWhenDisabled:!0,setting:N,rootStyles:T,styles:S,style:{playSpeed:600},disableMarginAuto:!0,children:B})}
|
|
115
115
|
`," ")}
|
|
116
116
|
${$(!G,"{{ featureImageOnlyOne }}"," ")}
|
|
117
117
|
`,"{{ featureImageOnlyOne }}")}
|
|
118
|
-
`)};export{
|
|
118
|
+
`)};export{w as default};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{template as e,makeStyleResponsive as t,getResponsiveValueByScreen as i}from"@gem-sdk/core";import{getShapeByLayout as o,getMinHeightByPosition as r,getZoomDisplay as s,checkDisplayGalleryByWidth as a,getCarouselVerticalConfigByPosition as p}from"../../common/productGallery.js";import{getPaddingBottomByShapeSetting as l,getAspectRatio as d,getDisplayStyle as m
|
|
2
|
-
${
|
|
3
|
-
${
|
|
4
|
-
${
|
|
5
|
-
${
|
|
1
|
+
import{template as e,makeStyleResponsive as t,getResponsiveValueByScreen as i}from"@gem-sdk/core";import{getShapeByLayout as o,getMinHeightByPosition as r,getZoomDisplay as s,checkDisplayGalleryByWidth as a,getCarouselVerticalConfigByPosition as p}from"../../common/productGallery.js";import{getPaddingBottomByShapeSetting as l,getAspectRatio as d,getDisplayStyle as m}from"../../common/common.js";import{getProductImagesClassName as g}from"../../composables/getProductImagesClassName.js";import n from"../../../../../carousel/components/item/CarouselItem.liquid.js";import{getProductImagesStyles as c}from"../../composables/getProductImagesStyles.js";import{getLiquidImageSrcset as u}from"../../../../../image/common/liquidSrcset.js";import C from"../../../../../carousel/components/root/Carousel.liquid.js";import{getProductImagesAttr as h}from"../../composables/getProductImagesAttr.js";import y from"../../../../../image/components/NextImage.liquid.js";import{getStyleOfObject as v}from"../../../../helpers/function.js";import{LiquidIf as b,LiquidFor as f}from"@gem-sdk/system";let w=({builderPropUID:w,children:L,pageContext:F,...x})=>{let{featuredImageGalleryClasses:$,galleryItemClasses:I}=g(x),{galleryCarouselSettingAttrs:_}=h(x),{galleryCarouselStyle:q,galleryCarouselItemStyle:j}=c(x),k=o({shape:x.shape,shapeForBottom:x.shapeForBottom,shapeFor1Col:x.shapeFor1Col,shapeFor2Col:x.shapeFor2Col,shapeForFtOnly:x.shapeForFtOnly,shapeForInsideBottom:x.shapeForInsideBottom,shapeForInside:x.shapeForInside},x.position),V=u({liquidSrc:"media.preview_image",sizeTarget:"GalleryList",qualityType:x.qualityType,qualityPercent:x.qualityPercent}),M=(t,i)=>e`${y({srcIsLiquidCode:!0,src:"{{media.preview_image | image_url}}",srcset:V,width:"{{media.width}}",height:"{{media.height}}",alt:"{{media.alt | escape}}",setting:t,style:i,className:"!gp-rounded-none gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 gp-cursor-pointer"})}`,P=l(k),Z=e=>`
|
|
2
|
+
${b("media.media_type == 'video'","{% assign mediaSourceUrl = media.sources.last.url %}")}
|
|
3
|
+
${b("media.media_type == 'external_video'","{% assign mediaSourceUrl = media | external_video_url %}")}
|
|
4
|
+
${b("media.media_type == 'image'","{% assign mediaSourceUrl = media.src %}")}
|
|
5
|
+
${n({id:"{{imageID}}",contentType:"productImage",className:`${I(`gp-gallery-image-item ${e}`)}`,parentId:`${w}-{{product.id}}`,builderAttrs:{"data-outline":e?"active":"deactive"},style:j,children:`
|
|
6
6
|
<div class="gp-w-full gp-relative"
|
|
7
|
-
style="${
|
|
7
|
+
style="${v(t("pb",P))};"
|
|
8
8
|
>
|
|
9
|
-
${M({aspectRatio:d(
|
|
9
|
+
${M({aspectRatio:d(k),layout:x?.layout,qualityPercent:x?.qualityPercent,qualityType:x?.qualityType},{width:"100%",height:"100%",cursor:"pointer"})}
|
|
10
10
|
|
|
11
|
-
${
|
|
11
|
+
${b("media.media_type == 'video' or media.media_type == 'external_video'",`<div class="gp-absolute gp-pb-1 gp-pr-1 gp-right-0 gp-bottom-0" >
|
|
12
12
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
13
|
<rect opacity="0.9" width="24" height="24" rx="3" fill="#212121"/>
|
|
14
14
|
<path d="M17.6869 12.2646L17.6868 12.2646L6.78379 18.4464C6.78378 18.4464 6.78376 18.4464 6.78374 18.4464C6.52931 18.5903 6.1665 18.4179 6.1665 18.0416V5.95844C6.1665 5.58218 6.52917 5.40981 6.7836 5.55354C6.78366 5.55357 6.78373 5.55361 6.78379 5.55365L17.6868 11.7354L17.6869 11.7354C17.8819 11.846 17.8819 12.154 17.6869 12.2646Z" stroke="#F9F9F9" stroke-miterlimit="10"/>
|
|
15
15
|
</svg>
|
|
16
16
|
</div>`)}
|
|
17
|
-
${
|
|
17
|
+
${b("media.media_type == 'model'",`<div class="gp-absolute gp-pb-1 gp-pr-1 gp-right-0 gp-bottom-0">
|
|
18
18
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
19
19
|
<rect opacity="0.9" width="24" height="24" rx="3" fill="#212121"/>
|
|
20
20
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.7441 4.57034C11.9017 4.47655 12.098 4.47655 12.2555 4.57034L18.5889 8.33957C18.7404 8.42971 18.8332 8.59296 18.8332 8.76923V15.2308C18.8332 15.407 18.7404 15.5703 18.5889 15.6604L12.2555 19.4297C12.098 19.5234 11.9017 19.5234 11.7441 19.4297L5.41079 15.6604C5.25932 15.5703 5.1665 15.407 5.1665 15.2308V8.76923C5.1665 8.59296 5.25932 8.42971 5.41079 8.33957L11.7441 4.57034ZM6.1665 9.64865V14.9465L11.4998 18.1206V12.8227L6.1665 9.64865ZM12.4998 12.8227V18.1206L17.8332 14.9465V9.64865L12.4998 12.8227ZM17.3555 8.76923L11.9998 11.9566L6.64417 8.76923L11.9998 5.58185L17.3555 8.76923Z" fill="#F9F9F9"/>
|
|
@@ -22,7 +22,7 @@ import{template as e,makeStyleResponsive as t,getResponsiveValueByScreen as i}fr
|
|
|
22
22
|
</div>`)}
|
|
23
23
|
|
|
24
24
|
<div class="gp-absolute gp-inset-0 gp-flex gp-cursor-pointer gp-items-center gp-justify-center gp-bg-black/50 gp-opacity-0 gp-transition-opacity gp-duration-100 group-hover:gp-opacity-100"
|
|
25
|
-
style="${
|
|
25
|
+
style="${v(s(x?.clickOpenLightBox))}"
|
|
26
26
|
>
|
|
27
27
|
<svg
|
|
28
28
|
height="100%"
|
|
@@ -40,7 +40,7 @@ import{template as e,makeStyleResponsive as t,getResponsiveValueByScreen as i}fr
|
|
|
40
40
|
</svg>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
|
-
`})}`,B=
|
|
44
|
-
${
|
|
45
|
-
${C({builderProps:{uid:w},rootId:`${w}-{{product.id}}`,rootClass:`${
|
|
43
|
+
`})}`,B=b("product.media.size > 1",f("media in product.media",`${b("media.media_type == 'image'",f("image in product.images",b("image.src == media.src","{% assign imageID = image.id %}{% break %}")),"{% assign imageID = '' %}")}
|
|
44
|
+
${b("media.id == product.featured_media.id ",Z(x?.borderActive?.border!=="none"?"active":""),Z())}`));return e`
|
|
45
|
+
${C({builderProps:{uid:w},rootId:`${w}-{{product.id}}`,rootClass:`${$}`,rootAttrs:{type:"grid-carousel","product-media":"{{product.media.size}}"},wrapperClass:(()=>{let e=p(x.position),t=[e.desktop?"gp-px-0":"gp-py-0",e.tablet?"tablet:gp-px-0":"tablet:gp-py-0",e.mobile?"mobile:gp-px-0":"mobile:gp-py-0"];return` ${t.join(" ")}`})(),slidesClass:r(x.position,x.navigationPosition),isHiddenArrowWhenDisabled:!0,setting:_,rootStyles:{...(()=>{let e=(e,t,o)=>{let r=i(t,o),s=i(e,o),a="slider"===s&&("bottom-center"===r||"inside-bottom"===r),p=["left","right","inside-left","inside-right"].includes(r??"");return p||a},t=a({shapeByLayout:k}),o={desktop:t.desktop&&e(x.type,x.position,"desktop"),tablet:t.tablet&&e(x.type,x.position,"tablet"),mobile:t.mobile&&e(x.type,x.position,"mobile")};return m(e=>!o[e],"flex")})()},styles:q,disableMarginAuto:!0,children:B})}
|
|
46
46
|
`};export{w as default};
|
package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cls as t}from"@gem-sdk/core";import{getProductImagesClassName as o}from"../../composables/getProductImagesClassName.js";import{getZoomImageClass as s,getZoomLenClass as
|
|
2
|
-
${
|
|
3
|
-
${
|
|
4
|
-
${
|
|
1
|
+
import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cls as t}from"@gem-sdk/core";import{getProductImagesClassName as o}from"../../composables/getProductImagesClassName.js";import{getZoomImageClass as s,getZoomLenClass as r}from"../../common/productFeaturedImage.js";import{getProductImagesStyles as d}from"../../composables/getProductImagesStyles.js";import{getLiquidImageSrcset as l}from"../../../../../image/common/liquidSrcset.js";import{getShapeByLayout as m,getZoomDisplay as p}from"../../common/productGallery.js";import g from"../../../../../video/components/HTML5Embed.liquid.js";import c from"../../../../../image/components/NextImage.liquid.js";import n from"../../../../../image/components/Modal3d.liquid.js";import{Liquid as u,LiquidFor as h,LiquidIf as y,If as C}from"@gem-sdk/system";import v from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as f}from"../../../../helpers/function.js";import{getAspectRatio as w}from"../../common/common.js";let _=({builderPropUID:_,wrapperStyle:$,children:b,pageContext:x,...L})=>{let{galleryItemClasses:F,galleryGridWrapperClasses:q}=o(L),{galleryGridStyles:V,galleryGridItemStyles:I}=d(L),j=m({shape:L.shape,shapeForBottom:L.shapeForBottom,shapeFor1Col:L.shapeFor1Col,shapeFor2Col:L.shapeFor2Col,shapeForFtOnly:L.shapeForFtOnly,shapeForInsideBottom:L.shapeForInsideBottom,shapeForInside:L.shapeForInside},L.position),M=(i=!1)=>{let t={desktop:"none",tablet:"none",mobile:"none"};return["desktop","mobile","tablet"].forEach(e=>{let o=a(L?.position,e)||"",s="one-col"===o||"two-col"===o;t[e]=(i?!s:s)?"block":"none"}),e("d",t)},k=()=>M(),S=()=>M(!0),P=l({liquidSrc:"media.preview_image",sizeTarget:"ProductFeatureImage",qualityType:L.qualityType,qualityPercent:L.qualityPercent}),Z=(e,a)=>i`
|
|
2
|
+
${c({srcIsLiquidCode:!0,src:"{{media.preview_image | image_url}}",srcset:P,width:"{{media.width}}",height:"{{media.height}}",alt:"{{media.alt | escape}}",setting:e,style:a,className:"!gp-rounded-none"})}
|
|
3
|
+
${C(L?.galleryHoverEffect!=="none",`<div class="${t("zoom-element !gp-max-w-none gp-w-full gp-h-full",s())}">
|
|
4
|
+
${c({srcIsLiquidCode:!0,src:"{{media.preview_image | image_url}}",srcset:P,width:"{{media.width}}",height:"{{media.height}}",alt:"{{media.alt | escape}}",setting:e,style:a,className:"!gp-rounded-none gp-w-full gp-h-full"})}
|
|
5
5
|
</div>`," ")}
|
|
6
|
-
${
|
|
6
|
+
${C(L?.galleryHoverEffect=="zoom"&&L?.galleryZoomType=="glasses",`<div class="${t("zoom-lens-element",r())}" style="opacity: 0; background-image: url('{{media.preview_image | product_img_url: '1024x1024'}}')">
|
|
7
7
|
</div>
|
|
8
8
|
`," ")}
|
|
9
|
-
`,
|
|
10
|
-
${
|
|
9
|
+
`,T=()=>n({src:y("media.sources.first.url contains '.glb'","{{ media.sources.first.url }}","{{media.sources.last.url}}"),alt:"{{media.preview_image.alt}}",poster:"{{media.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%",height:"100%"},aspectRatio:w(j)}),B=()=>v({src:"{{mediaSourceVideo}}",alt:"{{media.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"}}),H=()=>g({src:"{{mediaSourceVideo}}",title:"{{media.alt | escape}}",autoplay:!1,controls:!0,style:{width:"100%","max-height":"100%"}}),z=()=>i`
|
|
10
|
+
${y("media.media_type == 'video' or media.media_type == 'external_video'",`<div class="gp-absolute gp-pb-1 gp-pr-1 gp-right-0 gp-bottom-0" >
|
|
11
11
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
12
12
|
<rect opacity="0.9" width="24" height="24" rx="3" fill="#212121"/>
|
|
13
13
|
<path d="M17.6869 12.2646L17.6868 12.2646L6.78379 18.4464C6.78378 18.4464 6.78376 18.4464 6.78374 18.4464C6.52931 18.5903 6.1665 18.4179 6.1665 18.0416V5.95844C6.1665 5.58218 6.52917 5.40981 6.7836 5.55354C6.78366 5.55357 6.78373 5.55361 6.78379 5.55365L17.6868 11.7354L17.6869 11.7354C17.8819 11.846 17.8819 12.154 17.6869 12.2646Z" stroke="#F9F9F9" stroke-miterlimit="10"/>
|
|
14
14
|
</svg>
|
|
15
15
|
</div>`)}
|
|
16
|
-
${
|
|
16
|
+
${y("media.media_type == 'model'",`<div class="gp-absolute gp-pb-1 gp-pr-1 gp-right-0 gp-bottom-0">
|
|
17
17
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
18
|
<rect opacity="0.9" width="24" height="24" rx="3" fill="#212121"/>
|
|
19
19
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.7441 4.57034C11.9017 4.47655 12.098 4.47655 12.2555 4.57034L18.5889 8.33957C18.7404 8.42971 18.8332 8.59296 18.8332 8.76923V15.2308C18.8332 15.407 18.7404 15.5703 18.5889 15.6604L12.2555 19.4297C12.098 19.5234 11.9017 19.5234 11.7441 19.4297L5.41079 15.6604C5.25932 15.5703 5.1665 15.407 5.1665 15.2308V8.76923C5.1665 8.59296 5.25932 8.42971 5.41079 8.33957L11.7441 4.57034ZM6.1665 9.64865V14.9465L11.4998 18.1206V12.8227L6.1665 9.64865ZM12.4998 12.8227V18.1206L17.8332 14.9465V9.64865L12.4998 12.8227ZM17.3555 8.76923L11.9998 11.9566L6.64417 8.76923L11.9998 5.58185L17.3555 8.76923Z" fill="#F9F9F9"/>
|
|
20
20
|
</svg>
|
|
21
21
|
</div>`)}
|
|
22
|
-
${Z({aspectRatio:
|
|
22
|
+
${Z({aspectRatio:w(j),layout:L?.layout,qualityType:L?.qualityType,qualityPercent:L?.qualityPercent},{width:"100%",height:"100%"})}
|
|
23
23
|
|
|
24
24
|
<div class="gp-absolute gp-inset-0 gp-flex gp-cursor-pointer gp-items-center gp-justify-center gp-bg-black/50 gp-opacity-0 gp-transition-opacity gp-duration-100 group-hover:gp-opacity-100"
|
|
25
|
-
style="${
|
|
25
|
+
style="${f(p(L?.clickOpenLightBox))}" >
|
|
26
26
|
<svg
|
|
27
27
|
height="100%"
|
|
28
28
|
width="100%"
|
|
@@ -40,9 +40,9 @@ import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cl
|
|
|
40
40
|
</svg>
|
|
41
41
|
</div>
|
|
42
42
|
`,N=i=>`
|
|
43
|
-
${
|
|
44
|
-
${
|
|
45
|
-
${
|
|
43
|
+
${y("media.media_type == 'video'","{% assign mediaSourceUrl = media.sources.last.url %}")}
|
|
44
|
+
${y("media.media_type == 'external_video'","{% assign mediaSourceUrl = media | external_video_url %}{% assign mediaSource = media | json %}")}
|
|
45
|
+
${y("media.media_type == 'image'","{% assign mediaSourceUrl = media.src %}")}
|
|
46
46
|
<div
|
|
47
47
|
aria-hidden
|
|
48
48
|
id="{{imageID}}"
|
|
@@ -54,18 +54,18 @@ import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cl
|
|
|
54
54
|
grid-index="{{forloop.index}}"
|
|
55
55
|
data-outline="${i?"active":"deactive"}"
|
|
56
56
|
class="${F(`gem-slider-item-${_}-{{product.id}} gp-gallery-image-item ${i}`)}"
|
|
57
|
-
style="${
|
|
57
|
+
style="${f(I)}"
|
|
58
58
|
>
|
|
59
|
-
${
|
|
59
|
+
${y("media.media_type == 'external_video' or media.media_type == 'video' or media.media_type == 'model'","{% assign isMedia = true %}")}
|
|
60
60
|
|
|
61
|
-
${
|
|
61
|
+
${y("media.media_type == 'external_video' or media.media_type == 'video'","{% assign isVideo = true %}")}
|
|
62
62
|
|
|
63
|
-
<div class="gp-h-full gp-w-full" style="${
|
|
64
|
-
${
|
|
63
|
+
<div class="gp-h-full gp-w-full" style="${y("media == null or media.media_type == 'image'","display: block !important;")} ${y("isVideo == true",f({...S()}))}">
|
|
64
|
+
${y("media != null",z(),E())}
|
|
65
65
|
</div>
|
|
66
66
|
|
|
67
|
-
<div class="${
|
|
68
|
-
style="${
|
|
67
|
+
<div class="${y("isMedia","gp-flex gp-justify-center gp-items-center")}"
|
|
68
|
+
style="${y("isMedia",f({...e("aspect",w(j))}))} ${f({...k()})}"
|
|
69
69
|
>
|
|
70
70
|
{% case media.media_type %}
|
|
71
71
|
{% when 'external_video' %}
|
|
@@ -75,19 +75,19 @@ import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cl
|
|
|
75
75
|
{% assign mediaSourceVideo = media.sources.last.url %}
|
|
76
76
|
${H()}
|
|
77
77
|
{% when 'model' %}
|
|
78
|
-
${
|
|
78
|
+
${T()}
|
|
79
79
|
{% endcase %}
|
|
80
80
|
</div>
|
|
81
81
|
{% assign isVideo= false %}
|
|
82
82
|
{% assign isMedia= false %}
|
|
83
|
-
</div>`,
|
|
84
|
-
${
|
|
83
|
+
</div>`,E=()=>i`
|
|
84
|
+
${c({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",setting:{aspectRatio:w(j),layout:L?.layout,qualityType:L?.qualityType,qualityPercent:L?.qualityPercent},className:"!gp-rounded-none"})}`;return u(`
|
|
85
85
|
<div type="grid-gallery"
|
|
86
|
-
class="${
|
|
87
|
-
style="${
|
|
86
|
+
class="${q}"
|
|
87
|
+
style="${f(V)}}"
|
|
88
88
|
>
|
|
89
|
-
${
|
|
90
|
-
${
|
|
91
|
-
${
|
|
92
|
-
${
|
|
89
|
+
${h("media in product.media",`${y("media.media_type == 'image'",h("image in product.images",y("image.src == media.src","{% assign imageID = image.id %}{% break %}")),"{% assign imageID = '' %}")}
|
|
90
|
+
${y("media.id == product.featured_media.id ",N(L?.borderActive?.border!=="none"?"active":""),N())}`)}
|
|
91
|
+
${y("product.media.size > 0",b)}
|
|
92
|
+
${y("product.media.size < 1",N())}
|
|
93
93
|
</div>`)};export{_ as default};
|
|
@@ -9,8 +9,8 @@ import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefault
|
|
|
9
9
|
"collectionUrl": {{ collection.url | json }},
|
|
10
10
|
"collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
|
|
11
11
|
}
|
|
12
|
-
`,B=u({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=e(N?.position,G?.type),q=k?{}:u({"data-only-image":g("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=n(C),w=f({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=f({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=h(N),R=d({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??m,shapeForInside:N.shapeForInside??m},N.position),V=o(N.position,R,N?.spacing),W=()=>s`
|
|
13
|
-
${a({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(
|
|
12
|
+
`,B=u({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=e(N?.position,G?.type),q=k?{}:u({"data-only-image":g("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=n(C),w=f({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=f({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=h(N),R=d({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??m,shapeForInside:N.shapeForInside??m},N.position),V=o(N.position,R,N?.spacing),W=(e=!1)=>s`
|
|
13
|
+
${a({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(o=>{if(o)return s`${l({...o,isInsideProductImage:!0,isInsideImageList:e,imageData:{imageShape:D?.ftShape,imageAlign:D?.align,imageLayout:D?.position},dotData:{dotSize:G?.ftDotSize,dotGapToCarousel:G?.ftDotGapToCarousel,dotStyle:G?.ftDotStyle}})}`}))}
|
|
14
14
|
`;return s`
|
|
15
15
|
${y(G?.borderActive?.border!=="none",g("product.media.size > 1",`<style>${F({settings:N,uid:b?.uid,type:"Liquid"})}</style>`),"")}
|
|
16
16
|
${$(`
|
|
@@ -35,7 +35,7 @@ import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefault
|
|
|
35
35
|
${{...q}}
|
|
36
36
|
>
|
|
37
37
|
${g("product.media.size > 1",c({builderPropUID:`gp-gallery-${b?.uid}`,...N,pageContext:_}))}
|
|
38
|
-
${y(k,S({builderPropUID:b?.uid,wrapperStyle:{...V},children:W(),...N,pageContext:_}))}
|
|
38
|
+
${y(k,S({builderPropUID:b?.uid,wrapperStyle:{...V},children:W(!0),...N,pageContext:_}))}
|
|
39
39
|
</div>
|
|
40
40
|
`)}
|
|
41
41
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getResponsiveValueByScreen as e,makeAspectRatio as t,DEVICES as o,makeStyleResponsive as r,removeNullUndefined as l}from"@gem-sdk/core";import{getCarouselElementSelector as i}from"../../../../carousel-v3/common/selectors.js";let a=(t,o,r)=>{let l=e(t?.ftShape,o)?.shape==="original",i=l?e(t?.ftNavigationPosition,o):"";return[JSON.stringify(t?.position),i,o,r].join("|")},
|
|
1
|
+
import{getResponsiveValueByScreen as e,makeAspectRatio as t,DEVICES as o,makeStyleResponsive as r,removeNullUndefined as l}from"@gem-sdk/core";import{getCarouselElementSelector as i}from"../../../../carousel-v3/common/selectors.js";let a=(e,t)=>(t??e).length>1,n=(t,o,r)=>{let l=e(t?.ftShape,o)?.shape==="original",i=l?e(t?.ftNavigationPosition,o):"";return[JSON.stringify(t?.position),i,o,r].join("|")},s=(e,t)=>{let o=e=>e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),r=o(e||"product-images"),l=o(t);return[r||"product-images",l||"instance"].join("-")},u=({carouselInstanceUID:e,builderPropUID:t})=>`${e??t}-carousel`,c=e=>i(u(e)),d=e=>{let t=e?.desktop,o=e?.tablet===void 0?t:e?.tablet,r=e?.mobile===void 0?o:e?.mobile;return{desktop:t,tablet:o,mobile:r}},m=(e,t)=>{if(!e)return t;if("number"==typeof e)return e;let o=e.replaceAll("px","").replaceAll("%","").replaceAll("rem","").replaceAll("em","");return isNaN(Number(o))?t:Number(o)},p=e=>{if(!e)return{desktop:5};let t=m(e.desktop,5),o=m(e.tablet,t),r=m(e.mobile,o);return{desktop:t,tablet:o,mobile:r}},b=(e,t)=>{let o={};return["desktop","mobile","tablet"].forEach(r=>{o={...o,[`--d${"desktop"===r?"":`-${r}`}`]:`${e(r)?"none":t}`}}),o},g=e=>{let t=e?.["--radius"],o=e?.["--bblr"]||"0px",r=e?.["--bbrr"]||"0px",l=e?.["--btlr"]||"0px",i=e?.["--btrr"]||"0px";return t&&!t.toString().includes("none")&&"0"!==t.toString()||"0px"!==o||"0px"!==r||"0px"!==l||"0px"!==i},f=o=>{let r={};return["desktop","mobile","tablet"].forEach(t=>{let l=e(o,t)?.shapeValue;if(l)r={...r,[t]:l};else{let l=e(o,t)?.shape;switch(l){case"square":r={...r,[t]:"1/1"};break;case"vertical":r={...r,[t]:"3/4"};break;case"horizontal":r={...r,[t]:"4/3"};break;case"original":r={...r,[t]:""}}}}),t(r)},h=t=>{let r={"--gtc":"minmax(0, 12fr)","--gtc-tablet":"minmax(0, 12fr)","--gtc-mobile":"minmax(0, 12fr)"};if(!t.isHiddenGalleryImages){let l=!1;o.forEach(o=>{let i=e(t.position,o),a=e(t.ratioLayout,o),n=e(t.ratioLayoutRight,o),s="desktop"===o?"--gtc":`--gtc-${o}`,u="desktop"===o?"--gtr":`--gtr-${o}`,c="left"===i?a:n,d=["left","right"].includes(i||"");d&&c?(l=!0,Object.assign(r={...r,[s]:`minmax(0, ${c[0]}fr) minmax(0, ${c[1]}fr)`},{[u]:"fit-content(0)"})):l&&Object.assign(r,{[u]:"unset"})})}return r},y=t=>{let o={"--o":"0","--o-tablet":"0","--o-mobile":"0"};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t.position,r),i="desktop"===r?"--o":`--o-${r}`;o={...o,[i]:"left"===l?"1":"0"}}),o},k=t=>{let o={"--o":"1","--o-tablet":"1","--o-mobile":"1"};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t.position,r),i="desktop"===r?"--o":`--o-${r}`;o={...o,[i]:"left"===l?"0":"1"}}),o},$=e=>{let t=parseInt(e)?`${2*parseInt(e)}px`:`${e} * 2`;return t},N=(t,o,i)=>{let a={},n={},s={},u={},c={},d={};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t,r),m=e(o,r)?.width,p=e(i,r);if(a={...a,[r]:["inside-bottom","inside-left","inside-right"].includes(l)?"absolute":"static"},["inside-bottom"].includes(l)){let e=$(p);m=`calc(100% - ${e})`}["bottom-center","two-col","one-col"].includes(l)&&(m="100%"),s={...s,[r]:"inside-bottom"===l?`${p}`:"auto"},u={...u,[r]:["inside-left","inside-right"].includes(l)?`${p}`:"auto"},d={...d,[r]:["inside-bottom","inside-left"].includes(l)?`${p}`:"auto"},c={...c,[r]:"inside-right"===l?`${p}`:"auto"},n={...n,[r]:m}}),{...r("pos",a),...r("w",l(n)),...r("bottom",l(s)),...r("top",l(u)),...r("left",l(d)),...r("right",l(c))}},x=(t,o)=>{let r=!0,l=!1;return["desktop","mobile","tablet"].forEach(i=>{let a=e(t,i),n=e(o,i);a&&"only-feature"!==a&&(r=!1),(["two-col","one-col"].includes(a)||"images"===n)&&(l=!0)}),{isOnlyFeatureAllDevices:r,isRenderGalleryGrid:l}},S=e=>({...e,setting:{...e.setting}}),I=e=>{let t=e.match(/\d+/g);return t?t[0]:e},v=t=>{let o=f(t),r={desktop:"auto",mobile:"auto",tablet:"auto"};return["desktop","mobile","tablet"].forEach(l=>{let i=e(t,l),a=i?.height,n=i?.width||"",s=I(a||""),u=n.toString().match(/px/g)?I(n):n;if(a&&n&&!isNaN(Number(s))&&!isNaN(Number(u))){r={...r,[l]:`${Number(s)/Number(u)*100}%`};return}if(a&&!isNaN(Number(s))){r={...r,[l]:a};return}let c=o?.[l]!=="auto"&&o?.[l]?o?.[l]?.split("/").reverse().join("/"):"{%if largestRatio == 0%} 100 / 100 {%else%} {{largestRatio}} {%endif%}";r={...r,[l]:`calc((${c})*100%)`}}),r},G=["only-feature","one-col","two-col"],E=t=>{let r={};return o.forEach(o=>{let l=e(t,o);r[o]=null==l||!G.includes(l)}),r};export{g as checkAddOverFlowClass,p as convertSpacing,$ as convertSpacingForIndisdeLayout,m as convertUnitToNumber,f as getAspectRatio,x as getConditionRenderGalleryImages,b as getDisplayStyle,n as getFeatureGalleryComponentKey,u as getGalleryCarouselRootId,c as getGalleryCarouselSelector,E as getGalleryCarouselShouldInitByLayout,v as getPaddingBottomByShapeSetting,s as getProductImagesCarouselInstanceId,h as getStyleGridLayout,y as getStyleGridOrderForFeature,k as getStyleGridOrderForGallery,N as getStyleInsideLayout,d as getTypeWidthDevice,S as setDefaultWhenUndefineSetting,a as shouldRenderProductImageGallery};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as r,jsxs as t}from"react/jsx-runtime";import{getProductImagesCarouselInstanceId as i,getFeatureGalleryComponentKey as l}from"../../common/common.js";import{getProductImagesClassName as
|
|
1
|
+
import{jsx as e,Fragment as r,jsxs as t}from"react/jsx-runtime";import{getProductImagesCarouselInstanceId as i,getFeatureGalleryComponentKey as l,shouldRenderProductImageGallery as o}from"../../common/common.js";import{getProductImagesClassName as d}from"../../composables/getProductImagesClassName.js";import{useRenderMode as a,useCurrentDevice as s,useUniqProductID as n,cls as u}from"@gem-sdk/core";import{useFeatureImageWithGallery as m}from"../../hooks/useFeatureImageWithGallery.js";import{getProductImagesStyles as c}from"../../composables/getProductImagesStyles.js";import p from"../child/ProductFeaturedImageCarousel.js";import g from"../gallery-carousel/GalleryCarousel.js";import{useRef as f,useEffect as I,useCallback as h,useMemo as b}from"react";import v from"../child/ProductGalleryGrid.js";let y=y=>{let{setting:C,styles:x,builderProps:F,gallery:P,featureGallery:j,onHandleClickImage:k,priorityFeatureImage:w,children:G,noDataChildren:H,isFilterByVariantEnabled:U}=y,{isEditMode:D}=a(),L=f(null),N=s(),R=n(),$=i(F?.uid,R),A=f(P);A.current=P;let S=f(j??P);S.current=j??P;let T=f(null);I(()=>()=>{T.current?.(),T.current=null},[]);let B=h((e,r)=>{if(e.destroyed||r.destroyed)return;let t=S.current[e.realIndex]?.id;if(void 0===t)return;let i=A.current.findIndex(e=>e?.id===t);if(r.slides?.forEach(e=>e.classList.remove("gem-slider-item-active")),i<0)return;let l=r.slides?.[i];l?.classList.add("gem-slider-item-active");let o=l?.getBoundingClientRect(),d=r.el?.getBoundingClientRect();if(!o||!d){r.slideTo(i);return}let a=r.params?.direction==="vertical"?o.top>=d.top-1&&o.bottom<=d.bottom+1:o.left>=d.left-1&&o.right<=d.right+1;a||r.slideTo(i)},[]),E=h(e=>{if(!L.current)return;let r=L.current.getSwiper();if(r&&e){if(T.current?.(),T.current=null,U){let t=()=>B(r,e);r.on("slideChange",t),T.current=()=>{r.destroyed||r.off("slideChange",t)},t();return}r.thumbs&&r.thumbs.swiper&&r.thumbs.swiper?.realIndex===void 0&&(r.thumbs.swiper=e,r.thumbs.init(),r.thumbs.update(!0),r.update())}},[U,B]),W={...C,...x},{isShowCarousel:V,featureImageHeight:q,featureWrapperImage:z,onClickFeatureArrow:J,activeIndexFromFeatureImage:K,setOnClickFeatureArrow:M,onHandleLoadedFeatureImage:O,setActiveIndexFromFeatureImage:Q}=m(y),X=b(()=>{if(void 0===K)return;let e=(j??P)[K]?.id;if(void 0===e)return;let r=P.findIndex(r=>r?.id===e);return r>-1?r:void 0},[K,j,P]);if(P?.[0]?.id==="noImageError"&&D)return e(r,{children:H});let{ftImageGalleryClasses:Y,imageGalleryWrapperClasses:Z}=d(y),_=o(P,j),{wrapperFeaturedImageStyle:ee,featureImageStyle:er,galleryImageStyle:et}=c(W,{isGalleryVisible:_,featureImageHeight:q}),ei=`${l(W,N,V)}|${U?"variant-filtered":"all-media"}`;return t("div",{className:u("gp-grid gp-w-full gp-relative"),style:ee,children:[t("div",{className:Y,style:er,children:[G,e(p,{ref:L,imgRef:z,productImages:j??P,enableThumbsLink:!U,...W,onHandleClick:(e,r)=>k(e||"",r,!0),onHandleLoaded:O,onHandleUpdateActiveIndex:Q,onClickArrow:e=>M(e),builderPropUID:F?.uid,carouselInstanceUID:$,builderPropsClass:`gp-product-images-feature-${F?.uid}`})]}),_&&e("div",{className:Z,style:et,children:V?e(g,{productImages:P,position:W?.position,...W,builderPropUID:F?.uid,carouselInstanceUID:$,onHandleClick:(e,r)=>k(e||"",r),onSwiperReady:E,activeIndexFormFeatureImage:X,priorityFeatureImage:w,onClickFeatureArrow:J,builderPropsClass:`gp-product-images-gallery-${F?.uid}`}):e(v,{productImages:P,...W,builderPropUID:F?.uid,onHandleClick:(e,r)=>k(e||"",r),activeIndexFromFeatureImage:X,isHiddenInteraction:!0})})]},ei)};export{y as default};
|