import{__rest as s}from"../_virtual/_tslib.js";import{camelCase as e}from"es-toolkit";import t from"classnames";import i,{forwardRef as a,useRef as r}from"react";import{DialogType as o,DialogSize as d}from"../Dialog/DialogConstants.js";import l from"./DialogContentContainer.module.scss.js";import{withStaticProps as m}from"../../../../shared/dist/types/withStaticProps.js";import{getTestId as p}from"../../../../shared/dist/tests/test-ids-utils.js";import{ComponentDefaultTestId as n}from"../../../../shared/dist/tests/constants.js";import{useMergeRef as c}from"../../../../shared/dist/hooks/useMergeRef.js";import{getStyle as y}from"../../../../shared/dist/utils/typesciptCssModulesHelper.js";var f=m(a((function(a,o){var d=a.id,m=a.className,f=void 0===m?"":m,b=a.ariaLabelledby,v=void 0===b?"":b,u=a.ariaDescribedby,g=void 0===u?"":u,h=a.type,j=void 0===h?"popover":h,C=a.size,D=void 0===C?"small":C,N=a.children,_=a.style,z=a.role,O=a["data-testid"],T=void 0===O?p(n.DIALOG_CONTENT_CONTAINER,d):O,E=s(a,["id","className","ariaLabelledby","ariaDescribedby","type","size","children","style","role","data-testid"]),L=r(null),k=c(o,L);return i.createElement("div",Object.assign({id:d,role:null===z?void 0:z||"dialog","data-testid":T,"aria-labelledby":v,"aria-describedby":g,ref:k,style:_,className:t(l.dialogContentContainer,f,y(l,e("type--"+j)),y(l,e("size--"+D)))},E),N)})),{types:o,sizes:d});export{f as default};
//# sourceMappingURL=DialogContentContainer.js.map
