Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/views/table/dnd_table/Row",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./Cell","./TableContext"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r("liferay!frontend-js-react-web$classnames")),a=(i(r("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=n?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),l=i(r("./Cell")),f=i(r("./TableContext"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}function d({children:e,className:t,paddingLeftCells:r}){const{columnDefinitions:o,columnNames:i,isFixed:d}=(0,a.useContext)(f.default),u=(0,a.useMemo)((()=>{let e=0;if(d)for(let t=0;t<r;t++)e+=o.get(i[t]).width;return e}),[o,i,d,r]),s=u?{marginLeft:u,minWidth:"calc(100% - ".concat(u,"px)")}:{},c=[];if(!d)for(let e=0;e<r;e++)c.push(a.default.createElement(l.default,{key:e}));return a.default.createElement("div",{className:(0,n.default)("dnd-tr",t),style:s},c,e)}d.defaultProps={paddingLeftCells:0};var u=d;t.default=u}}));
//# sourceMappingURL=Row.js.map