Liferay.Loader.define("@liferay/object-js-components-web@1.0.58/components/Panel/PanelHeader",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/tooltip","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","./objectPanelContext","./Panel.scss"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.PanelHeader=function PanelHeader({contentLeft:e,contentRight:a,disabled:t=!1,title:d,type:s}){const[{expanded:f},u]=(0,c.usePanelContext)();return r.default.createElement("div",{className:(0,o.default)("object-admin-panel__header",{"object-admin-panel__header--expanded":f&&"regular"===s})},r.default.createElement("div",{className:(0,o.default)("object-admin-panel__header__content-left",{"object-admin-panel__header__content-left--disabled":t})},r.default.createElement("h3",{className:(0,o.default)("object-admin-panel__title",{"ml-3":"regular"!==s})},d),"categorization"===s&&r.default.createElement(i.ClayTooltipProvider,null,r.default.createElement("span",{className:"ml-2",title:Liferay.Language.get("visibility-and-permissions-can-affect-how-the-categorization-block-will-be-displayed")},r.default.createElement(n.default,{className:"object-admin-panel__tooltip-icon",symbol:"info-panel-open"}))),e&&r.default.createElement("span",{className:"align-items-center d-flex ml-2"},e)),r.default.createElement("div",{className:"object-admin-panel__header__content-right"},a&&r.default.createElement("span",{className:"align-items-center d-flex ml-2"},a),"regular"===s&&r.default.createElement(l.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("collapse"),displayType:"unstyled",onClick:()=>u({payload:{expanded:!f},type:c.TYPES.CHANGE_PANEL_EXPANDED}),symbol:f?"angle-down":"angle-right"})))};var l=t("@frontend-taglib-clay$clayui/button"),n=_interopRequireDefault(t("@frontend-taglib-clay$clayui/icon")),i=t("@frontend-taglib-clay$clayui/tooltip"),o=_interopRequireDefault(t("liferay!frontend-js-react-web$classnames")),r=_interopRequireDefault(t("liferay!frontend-js-react-web$react")),c=t("./objectPanelContext");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t("./Panel.scss")}}));
//# sourceMappingURL=PanelHeader.js.map