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