Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.151/page_editor/common/components/Collapse",["module","exports","require","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","./Collapse.scss"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function Collapse({children:e,label:t,onOpen:a,open:o}){const[c,i]=(0,l.useState)(o),u=a?o:c,s=u?"angle-down":"angle-right",d=u?"open":"closed";return l.default.createElement("div",{className:(0,r.default)("panel-group panel-group-flush page-editor__collapse")},l.default.createElement("button",{"aria-expanded":u,className:(0,r.default)("btn","btn-unstyled","collapse-icon","sheet-subtitle",{collapsed:!u}),onClick:()=>{(a||i)(!u)},type:"button"},l.default.createElement("span",{className:"c-inner text-truncate",tabIndex:-1},t,l.default.createElement("span",{className:"collapse-icon-".concat(d)},l.default.createElement(n.default,{key:s,symbol:s})))),l.default.createElement("div",{className:"page-editor__collapse__content"},u&&e))};var n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),r=_interopRequireDefault(a("liferay!frontend-js-react-web$classnames")),l=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(a,r,l):a[r]=e[r]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}a("./Collapse.scss")}}));
//# sourceMappingURL=Collapse.js.map