import{filterTruthy as e}from"../../../common/helpers.js";import{composeAdvanceStyle as o,makeStyleResponsive as t,composeTypographyStyle as s,makeGlobalSize as r,getGlobalColorStyle as l,composeSize as p,makeStyle as a,getSingleColorVariable as i,getStyleShadow as m}from"@gem-sdk/core";let composeStyles=o=>e(o),composeContainerStyles=(e,s)=>{let{pos:r,d:l,op:p,right:a,top:i,left:m,bottom:c,z:n,padding:y,margin:d}=e??{},S=e?.["spacing-setting"],g=o({pos:r,d:l,op:p,right:a,top:i,left:m,bottom:c,z:n,padding:y,margin:d,"spacing-setting":S});return composeStyles({...g,...t("ta",s?.align)})},composeTextareaStyles=(e,t,c)=>{let{border:n,rounded:y,hasBoxShadow:d,boxShadow:S}=e??{},{typography:g}=t??{},{globalSize:h}=c??{},w=s(t?.typo,g),u=o({border:n,rounded:y,hasBoxShadow:d,boxShadow:S}),x=r(h);return composeStyles({...x?.width?.["--w"]?x.width:{},...x.padding,...l(t?.color),...t?.size?.type?{}:p(t?.size?.custom),...a({tt:t?.transform}),...w,...u,...a({bc:i(n?.color)}),...m({value:S,styleAppliedFor:"box-shadow",isEnableShadow:d})})};export{composeContainerStyles,composeTextareaStyles};
