Liferay.Loader.define("@liferay/object-web@1.0.153/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:e,columnIndex:t,objectFieldName:a,rowIndex:r,tabIndex:u}){var c;const[{creationLanguageId:s,objectFieldTypes:y,objectFields:f},b]=(0,d.useLayoutContext)(),m=f.find((({name:e})=>e===a)),p=y.find((({businessType:e})=>e===m.businessType));return o.default.createElement(o.default.Fragment,null,o.default.createElement(n.Panel,{key:"field_".concat(a)},o.default.createElement(n.PanelSimpleBody,{contentRight:o.default.createElement(i.HeaderDropdown,{deleteElement:()=>{b({payload:{boxIndex:e,columnIndex:t,objectFieldName:a,rowIndex:r,tabIndex:u},type:d.TYPES.DELETE_OBJECT_LAYOUT_FIELD})}}),title:(0,n.getLocalizableLabel)(s,m.label,m.name)},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===(c=m.objectFieldSettings)||void 0===c?void 0:c.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}}}}));
//# sourceMappingURL=ObjectLayoutField.js.map