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