"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:y,z:i,padding:p,margin:n}=e??{},S=e?.["spacing-setting"],g=core.composeAdvanceStyle({pos:t,d:r,op:s,right:l,top:c,left:a,bottom:y,z:i,padding:p,margin:n,"spacing-setting":S});return composeStyles({...g,...core.makeStyleResponsive("ta",o?.align)})},composeTextareaStyles=(e,o,t)=>{let{wrapperBorder:r,borderRadius:s,shadow:l,globalSize:c}=t??{},{border:a,rounded:y,hasBoxShadow:i,boxShadow:p}=e??{},{typography:n,background:S}=o??{},g=core.makeGlobalSize(c),m=core.composeTypographyStyle(o?.typo,n),d=core.composeAdvanceStyle({border:a,rounded:y,hasBoxShadow:i,boxShadow:p});return composeStyles({...g?.width?.["--w"]?g.width:{"--w":"100%"},...g?.height?.["--h"]?g.height:{"--h":"auto"},...g.padding,...core.getGlobalColorStyle(o?.color),...core.makeStyle({tt:o?.transform}),...m,...d,...core.makeStyle({bc:core.getSingleColorVariable(a?.color)}),...core.getBorderStyle(r),...core.getBorderRadiusStyle(s),...core.getStyleShadow({value:l,styleAppliedFor:"box-shadow",isEnableShadow:l?.type!=="none"}),...core.getStyleBackgroundByDevice(S),...core.getGradientBgrStyleByDevice(S)})},getRowsTextArea=e=>e?.textLine;exports.composeContainerStyles=composeContainerStyles,exports.composeTextareaStyles=composeTextareaStyles,exports.getRowsTextArea=getRowsTextArea;
