Liferay.Loader.define("@liferay/object-js-components-web@1.0.33/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:u},f]=(0,c.usePanelContext)();return o.default.createElement("div",{className:(0,r.default)("object-admin-panel__header",{"object-admin-panel__header--expanded":u&&"regular"===s})},o.default.createElement("div",{className:(0,r.default)("object-admin-panel__header__content-left",{"object-admin-panel__header__content-left--disabled":t})},"regular"===s&&o.default.createElement(l.ClayButtonWithIcon,{"aria-label":Liferay.Util.sub(Liferay.Language.get("drag-x"),d),displayType:"unstyled",symbol:"drag"}),o.default.createElement("h3",{className:(0,r.default)("object-admin-panel__title",{"ml-3":"regular"!==s})},d),"categorization"===s&&o.default.createElement(i.ClayTooltipProvider,null,o.default.createElement("span",{className:"ml-2",title:Liferay.Language.get("visibility-and-permissions-can-affect-how-the-categorization-block-will-be-displayed")},o.default.createElement(n.default,{className:"object-admin-panel__tooltip-icon",symbol:"info-panel-open"}))),e&&o.default.createElement("span",{className:"align-items-center d-flex ml-2"},e)),o.default.createElement("div",{className:"object-admin-panel__header__content-right"},a&&o.default.createElement("span",{className:"align-items-center d-flex ml-2"},a),"regular"===s&&o.default.createElement(l.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("collapse"),displayType:"unstyled",onClick:()=>f({payload:{expanded:!u},type:c.TYPES.CHANGE_PANEL_EXPANDED}),symbol:u?"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"),r=_interopRequireDefault(t("liferay!frontend-js-react-web$classnames")),o=_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