import{defineProperty as a,toConsumableArray as s}from"../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as r}from"../_virtual/_tslib.js";import t,{forwardRef as o,useRef as i}from"react";import{camelCase as e}from"es-toolkit";import d from"classnames";import{BorderColor as n,Rounded as l,Shadow as m,Margin as p,MarginX as g,MarginY as c,MarginTop as f,MarginEnd as u,MarginBottom as b,MarginStart as y,Padding as B,PaddingX as P,PaddingY as h,PaddingTop as j,PaddingEnd as M,PaddingBottom as v,PaddingStart as x,BackgroundColor as C,BoxTextColor as S,SizePrefixMapping as T}from"./BoxConstants.js";import _ from"./Box.module.scss.js";import{withStaticProps as k}from"../../../../shared/dist/types/withStaticProps.js";import{useMergeRef as E}from"../../../../shared/dist/hooks/useMergeRef.js";import{getTestId as X}from"../../../../shared/dist/tests/test-ids-utils.js";import{ComponentDefaultTestId as Y}from"../../../../shared/dist/tests/constants.js";var w=o((function(o,n){var l=o.className,m=o.id,p=o.elementType,g=void 0===p?"div":p,c=o.children,f=o.disabled,u=o.border,b=o.scrollable,y=o.style,B=o["data-testid"],P=r(o,["className","id","elementType","children","disabled","border","scrollable","style","data-testid"]),h=i(null),j=E(n,h);return t.createElement(g,{"data-testid":B||X(Y.BOX,m),ref:j,className:d.apply(void 0,[_.box,l,a(a(a({},_.opacityDisabled,f),_.scrollable,b),_.border,u)].concat(s(function(a,s){return Object.keys(s).filter((function(a){return s[a]})).map((function(r){var t=s[r],o=T[r];return o&&"string"==typeof t?a[e("".concat(o,"-").concat(t))]:a[t]})).filter(Boolean)}(_,P)))),id:m,style:y},c)})),N=k(w,{borderColors:n,roundeds:l,shadows:m,margins:p,marginXs:g,marginYs:c,marginTops:f,marginEnds:u,marginBottoms:b,marginStarts:y,paddings:B,paddingXs:P,paddingYs:h,paddingTops:j,paddingEnds:M,paddingBottoms:v,paddingStarts:x,backgroundColors:C,textColors:S});export{N as default};
//# sourceMappingURL=Box.js.map
