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