import{filterTruthyStyles as t,makeStyleResponsive as e,makeStyle as r}from"@gem-sdk/core";import{makeTextColor as o,makeFontWeight as n,makeFontSize as i}from"../../common/helper.js";let getContainerStyles=({style:e})=>{if(!e)return{};let r=JSON.parse(JSON.stringify(e));return t(r)},getWrapperStyles=({styles:r})=>t(e("w",r?.width)),getTextStyles=({textAlign:e,typo:l})=>{let s={"word-break":"break-word",...r({ta:e})};if(!l)return t(s);let f={"text-transform":l.textTransform,color:o(l.textColor,l.fontWeight),"font-weight":n(l.fontWeight),"font-size":i(l.fontSize)};return t({...s,...f})};export{getContainerStyles,getTextStyles,getWrapperStyles};
