Liferay.Loader.define("@liferay/object-web@1.0.108/js/components/Layout/LayoutScreen/ObjectLayoutRelationship",["module","exports","require","@frontend-taglib-clay$clayui/label","liferay!frontend-js-react-web$react","../../Panel/Panel","../objectLayoutContext"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=u(t("@frontend-taglib-clay$clayui/label")),n=u(t("liferay!frontend-js-react-web$react")),r=u(t("../../Panel/Panel")),o=t("../objectLayoutContext");function u(e){return e&&e.__esModule?e:{default:e}}const e=Liferay.ThemeDisplay.getDefaultLanguageId();var i=({objectRelationshipId:a})=>{const[{objectRelationships:t}]=(0,o.useLayoutContext)(),u=t.find((({id:e})=>e===a));return n.default.createElement(n.default.Fragment,null,n.default.createElement(r.default,{key:"field_".concat(a)},n.default.createElement(r.default.SimpleBody,{title:null==u?void 0:u.label[e]},n.default.createElement("small",{className:"text-secondary"},Liferay.Language.get("relationship")," |"," "),n.default.createElement(l.default,{displayType:Liferay.FeatureFlags["LPS-158478"]?u.reverse?"info":"success":"secondary"},Liferay.FeatureFlags["LPS-158478"]?u.reverse?Liferay.Language.get("child"):Liferay.Language.get("parent"):null==u?void 0:u.type))))};a.default=i}}));
//# sourceMappingURL=ObjectLayoutRelationship.js.map