"use strict";var core=require("@gem-sdk/core");const getContainerStyles=({style:e,hasDiscount:t})=>({...e,opacity:t?1:.2}),getFeatureImageStyle=e=>({...core.makeStyleResponsive("w",e?.ftWidth)}),getImageListStyle=e=>({flexDirection:e?.vertical?"column":"row",gap:parseInt(e?.gap)}),getImageGridStyle=(e,t)=>({...t,...core.makeStyle({gg:e?.gap}),...core.makeStyle({gtc:`repeat(${e?.itemSlide}, 1fr)`})}),getProductImageLayoutStyle=(e,t)=>({...t,...core.makeStyle({gg:e?.gap})}),getAlignStyle=e=>({"--o":e?.layoutType==="left"?"1":"0","--jc":e?.align==="left"?"flex-start":e?.align==="right"?"flex-end":"center"});exports.getAlignStyle=getAlignStyle,exports.getContainerStyles=getContainerStyles,exports.getFeatureImageStyle=getFeatureImageStyle,exports.getImageGridStyle=getImageGridStyle,exports.getImageListStyle=getImageListStyle,exports.getProductImageLayoutStyle=getProductImageLayoutStyle;
