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