Liferay.Loader.define("@liferay/object-web@1.0.108/js/components/Layout/LayoutScreen/ObjectLayoutField",["module","exports","require","liferay!frontend-js-react-web$react","../../Panel/Panel","../objectLayoutContext","./HeaderDropdown","./RequiredLabel"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=u(a("liferay!frontend-js-react-web$react")),d=u(a("../../Panel/Panel")),n=a("../objectLayoutContext"),o=u(a("./HeaderDropdown")),r=u(a("./RequiredLabel"));function u(e){return e&&e.__esModule?e:{default:e}}const e=Liferay.ThemeDisplay.getDefaultLanguageId();var i=({boxIndex:t,columnIndex:a,objectFieldId:u,rowIndex:i,tabIndex:c})=>{const[{objectFieldTypes:f,objectFields:s},b]=(0,n.useLayoutContext)(),y=s.find((({id:e})=>e===u)),m=f.find((({businessType:e})=>e===y.businessType));return l.default.createElement(l.default.Fragment,null,l.default.createElement(d.default,{key:"field_".concat(u)},l.default.createElement(d.default.SimpleBody,{contentRight:l.default.createElement(o.default,{deleteElement:()=>{b({payload:{boxIndex:t,columnIndex:a,objectFieldId:u,rowIndex:i,tabIndex:c},type:n.TYPES.DELETE_OBJECT_LAYOUT_FIELD})}}),title:null==y?void 0:y.label[e]},l.default.createElement("small",{className:"text-secondary"},null==m?void 0:m.label," |"," "),l.default.createElement(r.default,{required:null==y?void 0:y.required}))))};t.default=i}}));
//# sourceMappingURL=ObjectLayoutField.js.map