"use strict";var e=require("@gem-sdk/core");const t=e=>{if(e&&e.width&&e.height&&e.src)return`${e.width}/${e.height}`};exports.getDimension=({setting:l,style:a})=>{let{fixedMode:o,height:r,background:i}=l??{},s=o?{"--aspect":t(i?.desktop?.image),"--aspect-tablet":t(i?.tablet?.image),"--aspect-mobile":t(i?.mobile?.image)}:e.makeStyleResponsive("h",r);return{...s,"--d":a?.["--d"]||"block","--d-mobile":a?.["--d-mobile"]||"block","--d-tablet":a?.["--d-tablet"]||"block"}},exports.getStyleContainerBackgoundImage=({setting:t,hasCollectionImage:l})=>{let{hoverDuration:a,background:o,hoverScale:r}=t??{};return{...e.getStyleBackgroundByDevice(o),"--duration":`${a??0}s`,"--scale":`${r??100}%`}},exports.getStyleOverlay=({setting:t})=>{let{overlayOpacity:l,overlayColor:a}=t??{};return{...e.getGlobalColorStateStyle("bgc",a),...e.makeStyleState("op",l)}};
