"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),s=require("classnames"),t=require("./Cell.js"),a=require("./constants.js"),i=require("../../styles/common.scss.js"),n=require("./Grid.scss.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(s),o=function(s){var t=s.gap,u=void 0===t?2:t,o=s.cols,l=void 0===o?12:o,d=s.className,m=s.testId,f=s.children,v=s.alignItems,j=void 0===v?"stretch":v,p=s.justifyItems,q=void 0===p?"stretch":p,C=r.useMemo((function(){var e;return(e={gap:"".concat(u*Number(i.spacing),"px"),gridTemplateColumns:"repeat(".concat(l,", minmax(0, 1fr))"),alignItems:j,justifyItems:q})[a.ColumnCountCssVar]=l,e}),[u,l,j,q]);return e.jsx("div",{className:c.default(n.root,d),style:C,"data-testid":m,children:f})};o.Cell=t.Cell;var l=o;exports.Grid=l;
