Liferay.Loader.define("@liferay/object-web@1.0.132/js/components/Layout/LayoutScreen/ObjectLayoutField",["module","exports","require","@frontend-taglib-clay$clayui/label","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","../objectLayoutContext","./HeaderDropdown"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLayoutField=function ObjectLayoutField({boxIndex:t,columnIndex:a,objectFieldName:r,rowIndex:u,tabIndex:c}){var s;const[{objectFieldTypes:y,objectFields:f},b]=(0,d.useLayoutContext)(),m=f.find((({name:e})=>e===r)),p=y.find((({businessType:e})=>e===m.businessType));return o.default.createElement(o.default.Fragment,null,o.default.createElement(n.Panel,{key:"field_".concat(r)},o.default.createElement(n.PanelSimpleBody,{contentRight:o.default.createElement(i.HeaderDropdown,{deleteElement:()=>{b({payload:{boxIndex:t,columnIndex:a,objectFieldName:r,rowIndex:u,tabIndex:c},type:d.TYPES.DELETE_OBJECT_LAYOUT_FIELD})}}),title:null==m?void 0:m.label[e]},o.default.createElement("small",{className:"text-secondary"},null==p?void 0:p.label," |"," "),o.default.createElement(l.default,{className:"label-inside-custom-select",displayType:(null==m?void 0:m.required)?"warning":"success"},(null==m?void 0:m.required)?Liferay.Language.get("mandatory"):Liferay.Language.get("optional")),(null===(s=m.objectFieldSettings)||void 0===s?void 0:s.find((e=>"true"===e.value||"conditional"===e.value)))&&o.default.createElement(l.default,{className:"label-inside-custom-select",displayType:"secondary"},Liferay.Language.get("read-only")))))};var l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/label")),n=a("@liferay/object-js-components-web"),o=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),d=a("../objectLayoutContext"),i=a("./HeaderDropdown");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e=Liferay.ThemeDisplay.getDefaultLanguageId()}}));
//# sourceMappingURL=ObjectLayoutField.js.map