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