@gem-sdk/components 22.0.0-dev.65 → 22.0.0-dev.68

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.
@@ -1 +1 @@
1
- "use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");const r={mobile:768,tablet:1024,desktop:1440},i={Image:{desktop:1280,tablet:1024,mobile:768},HeroBanner:{desktop:1440,tablet:1280,mobile:768},ImageComparison:{desktop:1280,tablet:1024,mobile:480},ProductFeatureImage:{desktop:1440,tablet:1280,mobile:768},GalleryList:{desktop:256,tablet:256,mobile:128},ArticleImage:{desktop:1024,tablet:768,mobile:480}},s="high",a={high:100,medium:70},o=["GalleryList"],l="original",n=/\s*%\s*$/,p=e=>{if("number"==typeof e)return e;let t=Number.parseFloat(String(e??"").replace(n,""));return Number.isFinite(t)?t:100},u=/^\{\{\s*([\s\S]*?)\s*\}\}$/,d=/\{\{|\{%/,m=e=>!!e&&e.includes("cdn.shopify")&&!t.isCannotResizeImageByQuery(e),c=({qualityType:t,qualityPercent:r})=>{if(!t&&!r)return;let i={};for(let o of e.DEVICES){let n=e.getResponsiveValueByScreen(t,o,s)??s;if("finest"===n){i[o]=l;continue}let u="custom"===n?p(e.getResponsiveValueByScreen(r,o,100)):a[n]??100;i[o]=(u>0?u:100)/100}return i},g=(e,t)=>{let r=e.match(u);return r?`{{ ${r[1]} | append: '?width=${t}' | replace: '?', '&' | replace_first: '&', '?' }}`:`${e}${e.includes("?")?"&":"?"}width=${t}`},b=({sizeTarget:t="Image",qualityType:s,qualityPercent:a})=>{let n=c({qualityType:s,qualityPercent:a}),p=i[t]??i.Image,u=!o.includes(t),d=t=>{let r=e.getResponsiveValueByScreen(n,t,1)??1;return r===l?u?l:p[t]:Math.round(p[t]*r)};return e.DEVICES.map(e=>({device:e,width:d(e),descriptor:r[e]})).sort((e,t)=>e.descriptor-t.descriptor)},S=e=>e.every(e=>e.width===l);exports.ORIGINAL_QUALITY=l,exports.SRCSET_DEVICE_DESCRIPTORS=r,exports.SRCSET_TARGET_WIDTHS=i,exports.appendWidthParam=g,exports.canResizeByShopifyCdn=m,exports.getImageSrcset=({src:t,resolvedSrc:r,sizeTarget:i,qualityType:s,qualityPercent:a})=>{if(!t)return;let o=u.test(t);if(!o&&d.test(t))return;let n=o?e.hasTranslatedLiquid(t)?r:void 0:t;if(!m(n))return;let p=b({sizeTarget:i,qualityType:s,qualityPercent:a});if(!S(p))return p.map(({width:e,descriptor:r})=>{let i=e===l?t:g(t,e);return`${i} ${r}w`}).join(", ")},exports.getQualityMultiplier=c,exports.getSrcsetCandidates=b,exports.isEveryCandidateOriginal=S;
1
+ "use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");const r={mobile:768,tablet:1024,desktop:1440},i={Image:{desktop:1280,tablet:1024,mobile:768},HeroBanner:{desktop:1920,tablet:1280,mobile:768},ImageComparison:{desktop:1280,tablet:1024,mobile:480},ProductFeatureImage:{desktop:1440,tablet:1280,mobile:768},GalleryList:{desktop:256,tablet:256,mobile:128},ArticleImage:{desktop:1024,tablet:768,mobile:480}},s="high",a={high:100,medium:70},o=["GalleryList"],l="original",n=/\s*%\s*$/,p=e=>{if("number"==typeof e)return e;let t=Number.parseFloat(String(e??"").replace(n,""));return Number.isFinite(t)?t:100},u=/^\{\{\s*([\s\S]*?)\s*\}\}$/,d=/\{\{|\{%/,m=e=>!!e&&e.includes("cdn.shopify")&&!t.isCannotResizeImageByQuery(e),c=({qualityType:t,qualityPercent:r})=>{if(!t&&!r)return;let i={};for(let o of e.DEVICES){let n=e.getResponsiveValueByScreen(t,o,s)??s;if("finest"===n){i[o]=l;continue}let u="custom"===n?p(e.getResponsiveValueByScreen(r,o,100)):a[n]??100;i[o]=(u>0?u:100)/100}return i},g=(e,t)=>{let r=e.match(u);return r?`{{ ${r[1]} | append: '?width=${t}' | replace: '?', '&' | replace_first: '&', '?' }}`:`${e}${e.includes("?")?"&":"?"}width=${t}`},b=({sizeTarget:t="Image",qualityType:s,qualityPercent:a})=>{let n=c({qualityType:s,qualityPercent:a}),p=i[t]??i.Image,u=!o.includes(t),d=t=>{let r=e.getResponsiveValueByScreen(n,t,1)??1;return r===l?u?l:p[t]:Math.round(p[t]*r)};return e.DEVICES.map(e=>({device:e,width:d(e),descriptor:r[e]})).sort((e,t)=>e.descriptor-t.descriptor)},S=e=>e.every(e=>e.width===l);exports.ORIGINAL_QUALITY=l,exports.SRCSET_DEVICE_DESCRIPTORS=r,exports.SRCSET_TARGET_WIDTHS=i,exports.appendWidthParam=g,exports.canResizeByShopifyCdn=m,exports.getImageSrcset=({src:t,resolvedSrc:r,sizeTarget:i,qualityType:s,qualityPercent:a})=>{if(!t)return;let o=u.test(t);if(!o&&d.test(t))return;let n=o?e.hasTranslatedLiquid(t)?r:void 0:t;if(!m(n))return;let p=b({sizeTarget:i,qualityType:s,qualityPercent:a});if(!S(p))return p.map(({width:e,descriptor:r})=>{let i=e===l?t:g(t,e);return`${i} ${r}w`}).join(", ")},exports.getQualityMultiplier=c,exports.getSrcsetCandidates=b,exports.isEveryCandidateOriginal=S;
@@ -5,7 +5,7 @@
5
5
  "setting":${JSON.stringify(m)},
6
6
  "styles":${JSON.stringify(f)},
7
7
  "productUrl":{{product.url | json }},
8
- "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
8
+ "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"options":{{ product.options | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
9
9
  "collectionUrl": {{ collection.url | json }},
10
10
  "collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
11
11
  }
@@ -5,7 +5,7 @@
5
5
  "setting":${JSON.stringify(m)},
6
6
  "styles":${JSON.stringify(f)},
7
7
  "productUrl":{{product.url | json }},
8
- "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
8
+ "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"options":{{ product.options | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
9
9
  "collectionUrl": {{ collection.url | json }},
10
10
  "collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
11
11
  }
@@ -1 +1 @@
1
- import{DEVICES as e,hasTranslatedLiquid as t,getResponsiveValueByScreen as r}from"@gem-sdk/core";import{isCannotResizeImageByQuery as i}from"./helpers.js";let l={mobile:768,tablet:1024,desktop:1440},a={Image:{desktop:1280,tablet:1024,mobile:768},HeroBanner:{desktop:1440,tablet:1280,mobile:768},ImageComparison:{desktop:1280,tablet:1024,mobile:480},ProductFeatureImage:{desktop:1440,tablet:1280,mobile:768},GalleryList:{desktop:256,tablet:256,mobile:128},ArticleImage:{desktop:1024,tablet:768,mobile:480}},o="high",s={high:100,medium:70},n=["GalleryList"],d="original",m=/\s*%\s*$/,p=e=>{if("number"==typeof e)return e;let t=Number.parseFloat(String(e??"").replace(m,""));return Number.isFinite(t)?t:100},u=/^\{\{\s*([\s\S]*?)\s*\}\}$/,c=/\{\{|\{%/,b=e=>!!e&&e.includes("cdn.shopify")&&!i(e),f=({qualityType:t,qualityPercent:i})=>{if(!t&&!i)return;let l={};for(let a of e){let e=r(t,a,o)??o;if("finest"===e){l[a]=d;continue}let n="custom"===e?p(r(i,a,100)):s[e]??100;l[a]=(n>0?n:100)/100}return l},g=(e,t)=>{let r=e.match(u);return r?`{{ ${r[1]} | append: '?width=${t}' | replace: '?', '&' | replace_first: '&', '?' }}`:`${e}${e.includes("?")?"&":"?"}width=${t}`},h=({sizeTarget:t="Image",qualityType:i,qualityPercent:o})=>{let s=f({qualityType:i,qualityPercent:o}),m=a[t]??a.Image,p=!n.includes(t),u=e=>{let t=r(s,e,1)??1;return t===d?p?d:m[e]:Math.round(m[e]*t)};return e.map(e=>({device:e,width:u(e),descriptor:l[e]})).sort((e,t)=>e.descriptor-t.descriptor)},I=e=>e.every(e=>e.width===d),S=({src:e,resolvedSrc:r,sizeTarget:i,qualityType:l,qualityPercent:a})=>{if(!e)return;let o=u.test(e);if(!o&&c.test(e))return;let s=o?t(e)?r:void 0:e;if(!b(s))return;let n=h({sizeTarget:i,qualityType:l,qualityPercent:a});if(!I(n))return n.map(({width:t,descriptor:r})=>{let i=t===d?e:g(e,t);return`${i} ${r}w`}).join(", ")};export{d as ORIGINAL_QUALITY,l as SRCSET_DEVICE_DESCRIPTORS,a as SRCSET_TARGET_WIDTHS,g as appendWidthParam,b as canResizeByShopifyCdn,S as getImageSrcset,f as getQualityMultiplier,h as getSrcsetCandidates,I as isEveryCandidateOriginal};
1
+ import{DEVICES as e,hasTranslatedLiquid as t,getResponsiveValueByScreen as r}from"@gem-sdk/core";import{isCannotResizeImageByQuery as i}from"./helpers.js";let l={mobile:768,tablet:1024,desktop:1440},a={Image:{desktop:1280,tablet:1024,mobile:768},HeroBanner:{desktop:1920,tablet:1280,mobile:768},ImageComparison:{desktop:1280,tablet:1024,mobile:480},ProductFeatureImage:{desktop:1440,tablet:1280,mobile:768},GalleryList:{desktop:256,tablet:256,mobile:128},ArticleImage:{desktop:1024,tablet:768,mobile:480}},o="high",s={high:100,medium:70},n=["GalleryList"],d="original",m=/\s*%\s*$/,p=e=>{if("number"==typeof e)return e;let t=Number.parseFloat(String(e??"").replace(m,""));return Number.isFinite(t)?t:100},u=/^\{\{\s*([\s\S]*?)\s*\}\}$/,c=/\{\{|\{%/,b=e=>!!e&&e.includes("cdn.shopify")&&!i(e),f=({qualityType:t,qualityPercent:i})=>{if(!t&&!i)return;let l={};for(let a of e){let e=r(t,a,o)??o;if("finest"===e){l[a]=d;continue}let n="custom"===e?p(r(i,a,100)):s[e]??100;l[a]=(n>0?n:100)/100}return l},g=(e,t)=>{let r=e.match(u);return r?`{{ ${r[1]} | append: '?width=${t}' | replace: '?', '&' | replace_first: '&', '?' }}`:`${e}${e.includes("?")?"&":"?"}width=${t}`},h=({sizeTarget:t="Image",qualityType:i,qualityPercent:o})=>{let s=f({qualityType:i,qualityPercent:o}),m=a[t]??a.Image,p=!n.includes(t),u=e=>{let t=r(s,e,1)??1;return t===d?p?d:m[e]:Math.round(m[e]*t)};return e.map(e=>({device:e,width:u(e),descriptor:l[e]})).sort((e,t)=>e.descriptor-t.descriptor)},I=e=>e.every(e=>e.width===d),S=({src:e,resolvedSrc:r,sizeTarget:i,qualityType:l,qualityPercent:a})=>{if(!e)return;let o=u.test(e);if(!o&&c.test(e))return;let s=o?t(e)?r:void 0:e;if(!b(s))return;let n=h({sizeTarget:i,qualityType:l,qualityPercent:a});if(!I(n))return n.map(({width:t,descriptor:r})=>{let i=t===d?e:g(e,t);return`${i} ${r}w`}).join(", ")};export{d as ORIGINAL_QUALITY,l as SRCSET_DEVICE_DESCRIPTORS,a as SRCSET_TARGET_WIDTHS,g as appendWidthParam,b as canResizeByShopifyCdn,S as getImageSrcset,f as getQualityMultiplier,h as getSrcsetCandidates,I as isEveryCandidateOriginal};
@@ -1,17 +1,17 @@
1
- import{isLocalEnv as e,baseAssetURL as o,template as i,WrapRenderChildren as t,RenderChildren as r}from"@gem-sdk/core";import{getConditionRenderGalleryImages as s,getStyleInsideLayout as a,setDefaultWhenUndefineSetting as l}from"./common/common.js";import p from"./components/feature-gallery/FeatureImageWithGallery.liquid.js";import d from"./components/gallery-carousel/GalleryCarousel.liquid.js";import m from"./components/gallery-grid/GalleryGrid.liquid.js";import{filterPageContext as n,getSettingPreloadData as c}from"../../../helpers.js";import{getShapeByLayout as u,sizeSettingDefaultForNewLayout as g}from"./common/productGallery.js";import{getProductImagesClassName as f}from"./composables/getProductImagesClassName.js";import{getProductImagesStyles as y}from"./composables/getProductImagesStyles.js";import{createAttr as $,LiquidIf as h,createClass as j,If as v,Liquid as S}from"@gem-sdk/system";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=l(C),{setting:G,styles:D,builderProps:b,style:z}=P,{rawChildren:O,pageContext:_}=C,N={...G,...D},A=`
1
+ import{isLocalEnv as e,baseAssetURL as o,template as t,WrapRenderChildren as i,RenderChildren as r}from"@gem-sdk/core";import{getConditionRenderGalleryImages as s,getStyleInsideLayout as a,setDefaultWhenUndefineSetting as l}from"./common/common.js";import p from"./components/feature-gallery/FeatureImageWithGallery.liquid.js";import d from"./components/gallery-carousel/GalleryCarousel.liquid.js";import m from"./components/gallery-grid/GalleryGrid.liquid.js";import{filterPageContext as n,getSettingPreloadData as c}from"../../../helpers.js";import{getShapeByLayout as u,sizeSettingDefaultForNewLayout as g}from"./common/productGallery.js";import{getProductImagesClassName as f}from"./composables/getProductImagesClassName.js";import{getProductImagesStyles as y}from"./composables/getProductImagesStyles.js";import{createAttr as $,LiquidIf as h,createClass as j,If as v,Liquid as S}from"@gem-sdk/system";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=l(C),{setting:G,styles:D,builderProps:b,style:z}=P,{rawChildren:O,pageContext:_}=C,N={...G,...D},A=`
2
2
  {
3
3
  "id":${JSON.stringify(b?.uid)},
4
4
  "pageContext": ${JSON.stringify(n(_))},
5
5
  "setting":${JSON.stringify(G)},
6
6
  "styles":${JSON.stringify(D)},
7
7
  "productUrl":{{product.url | json }},
8
- "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
8
+ "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"options":{{ product.options | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
9
9
  "collectionUrl": {{ collection.url | json }},
10
10
  "collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
11
11
  }
12
- `,B=$({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=s(N?.position,G?.type),q=k?{}:$({"data-only-image":h("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=f(C),w=j({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=j({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=y(N),R=u({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??g,shapeForInside:N.shapeForInside??g},N.position),V=a(N.position,R,N?.spacing),W=()=>i`
13
- ${t({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return i`${r({...e,isInsideProductImage:!0,imageData:{imageShape:D?.ftShape,imageAlign:D?.align,imageLayout:D?.position},dotData:{dotSize:G?.ftDotSize,dotGapToCarousel:G?.ftDotGapToCarousel,dotStyle:G?.ftDotStyle}})}`}))}
14
- `;return i`
12
+ `,B=$({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=s(N?.position,G?.type),q=k?{}:$({"data-only-image":h("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=f(C),w=j({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=j({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=y(N),R=u({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??g,shapeForInside:N.shapeForInside??g},N.position),V=a(N.position,R,N?.spacing),W=()=>t`
13
+ ${i({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return t`${r({...e,isInsideProductImage:!0,imageData:{imageShape:D?.ftShape,imageAlign:D?.align,imageLayout:D?.position},dotData:{dotSize:G?.ftDotSize,dotGapToCarousel:G?.ftDotGapToCarousel,dotStyle:G?.ftDotStyle}})}`}))}
14
+ `;return t`
15
15
  ${v(G?.borderActive?.border!=="none",h("product.media.size > 1",`<style>${F({settings:N,uid:b?.uid,type:"Liquid"})}</style>`),"")}
16
16
  ${S(`
17
17
  {% assign featured_image = product.featured_image %}
@@ -28,7 +28,7 @@ import{isLocalEnv as e,baseAssetURL as o,template as i,WrapRenderChildren as t,R
28
28
  style="${h("product.media.size > 1",I(x),I(L))}"
29
29
  >
30
30
  ${p({builderPropUID:`gp-carousel-${b?.uid}`,...N,children:W(),pageContext:_})}
31
- ${v(!U,i`
31
+ ${v(!U,t`
32
32
  <div
33
33
  class="${J}"
34
34
  style="${I(M)}"
@@ -1,17 +1,17 @@
1
- import{isLocalEnv as e,baseAssetURL as o,template as i,WrapRenderChildren as t,RenderChildren as r}from"@gem-sdk/core";import{getConditionRenderGalleryImages as s,getStyleInsideLayout as a,setDefaultWhenUndefineSetting as l}from"./common/common.js";import p from"./components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js";import d from"./components/gallery-carousel/GalleryCarouselEmbla.liquid.js";import m from"./components/gallery-grid/GalleryGrid.liquid.js";import{filterPageContext as n,getSettingPreloadData as c}from"../../../helpers.js";import{getShapeByLayout as u,sizeSettingDefaultForNewLayout as g}from"./common/productGallery.js";import{getProductImagesClassName as f}from"./composables/getProductImagesClassName.js";import{getProductImagesStyles as y}from"./composables/getProductImagesStyles.js";import{createAttr as $,LiquidIf as h,createClass as j,If as v,Liquid as S}from"@gem-sdk/system";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=l(C),{setting:b,styles:G,builderProps:D,style:z}=P,{rawChildren:O,pageContext:_}=C,E={...b,...G},N=`
1
+ import{isLocalEnv as e,baseAssetURL as o,template as t,WrapRenderChildren as i,RenderChildren as r}from"@gem-sdk/core";import{getConditionRenderGalleryImages as s,getStyleInsideLayout as a,setDefaultWhenUndefineSetting as l}from"./common/common.js";import p from"./components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js";import d from"./components/gallery-carousel/GalleryCarouselEmbla.liquid.js";import m from"./components/gallery-grid/GalleryGrid.liquid.js";import{filterPageContext as n,getSettingPreloadData as c}from"../../../helpers.js";import{getShapeByLayout as u,sizeSettingDefaultForNewLayout as g}from"./common/productGallery.js";import{getProductImagesClassName as f}from"./composables/getProductImagesClassName.js";import{getProductImagesStyles as y}from"./composables/getProductImagesStyles.js";import{createAttr as $,LiquidIf as h,createClass as j,If as v,Liquid as S}from"@gem-sdk/system";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=l(C),{setting:b,styles:G,builderProps:D,style:z}=P,{rawChildren:O,pageContext:_}=C,E={...b,...G},N=`
2
2
  {
3
3
  "id":${JSON.stringify(D?.uid)},
4
4
  "pageContext": ${JSON.stringify(n(_))},
5
5
  "setting":${JSON.stringify(b)},
6
6
  "styles":${JSON.stringify(G)},
7
7
  "productUrl":{{product.url | json }},
8
- "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
8
+ "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"options":{{ product.options | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
9
9
  "collectionUrl": {{ collection.url | json }},
10
10
  "collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
11
11
  }
12
- `,A=$({"section-id":"{{section.id}}","data-id":`${D?.uid}`}),{isOnlyFeatureAllDevices:B,isRenderGalleryGrid:U}=s(E?.position,b?.type),k=U?{}:$({"data-only-image":h("product.media.size > 1","false","true")}),{wrapperClasses:q,productImagesGalleryClasses:J}=f(C),w=j({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=j({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=y(E),R=u({shape:E.shape,shapeForBottom:E.shapeForBottom,shapeFor1Col:E.shapeFor1Col,shapeFor2Col:E.shapeFor2Col,shapeForFtOnly:E.shapeForFtOnly,shapeForInsideBottom:E.shapeForInsideBottom??g,shapeForInside:E.shapeForInside??g},E.position),V=a(E.position,R,E?.spacing),W=()=>i`
13
- ${t({uid:D?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return i`${r({...e,isInsideProductImage:!0,imageData:{imageShape:G?.ftShape,imageAlign:G?.align,imageLayout:G?.position},dotData:{dotSize:b?.ftDotSize,dotGapToCarousel:b?.ftDotGapToCarousel,dotStyle:b?.ftDotStyle}})}`}))}
14
- `;return i`
12
+ `,A=$({"section-id":"{{section.id}}","data-id":`${D?.uid}`}),{isOnlyFeatureAllDevices:B,isRenderGalleryGrid:U}=s(E?.position,b?.type),k=U?{}:$({"data-only-image":h("product.media.size > 1","false","true")}),{wrapperClasses:q,productImagesGalleryClasses:J}=f(C),w=j({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=j({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=y(E),R=u({shape:E.shape,shapeForBottom:E.shapeForBottom,shapeFor1Col:E.shapeFor1Col,shapeFor2Col:E.shapeFor2Col,shapeForFtOnly:E.shapeForFtOnly,shapeForInsideBottom:E.shapeForInsideBottom??g,shapeForInside:E.shapeForInside??g},E.position),V=a(E.position,R,E?.spacing),W=()=>t`
13
+ ${i({uid:D?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return t`${r({...e,isInsideProductImage:!0,imageData:{imageShape:G?.ftShape,imageAlign:G?.align,imageLayout:G?.position},dotData:{dotSize:b?.ftDotSize,dotGapToCarousel:b?.ftDotGapToCarousel,dotStyle:b?.ftDotStyle}})}`}))}
14
+ `;return t`
15
15
  ${v(b?.borderActive?.border!=="none",h("product.media.size > 1",`<style>${F({settings:E,uid:D?.uid,type:"Liquid"})}</style>`),"")}
16
16
  ${S(`
17
17
  {% assign featured_image = product.featured_image %}
@@ -28,7 +28,7 @@ import{isLocalEnv as e,baseAssetURL as o,template as i,WrapRenderChildren as t,R
28
28
  style="${h("product.media.size > 1",I(x),I(L))}"
29
29
  >
30
30
  ${p({builderPropUID:`gp-carousel-${D?.uid}`,...E,children:W(),pageContext:_})}
31
- ${v(!B,i`
31
+ ${v(!B,t`
32
32
  <div
33
33
  class="${J}"
34
34
  style="${I(M)}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "22.0.0-dev.65",
3
+ "version": "22.0.0-dev.68",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",