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