import{getGradientBgrStyleByDevice as e,getStyleBackgroundByDevice as t,makeStyleResponsive as r}from"@gem-sdk/core";import{getBackgroundTranslated as i}from"../../helpers.js";import{CSSCode as o}from"../settings/configs/translate.js";let a=({setting:a,style:l,isLiquid:s,uid:n,pageContext:d,type:m="React"})=>{let{background:g}=a??{},p="Liquid"===m?i({background:g,uid:n,enableTranslate:!!o?.background?.id,pageContext:d,isTranslateVideo:!1})??g:g,b={...t(p,{liquid:s}),...e(p,{desktop:!0,tablet:!0,mobile:!0})};return{...l,...r("ta",a?.align),...b}};export{a as getCodeStyle};
