Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({children:e,label:t,onOpen:n,open:o}){const[c,s]=(0,l.useState)(o),u=n?o:c,i=u?"angle-down":"angle-right",f=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:()=>{(n||s)(!u)},type:"button"},l.default.createElement("span",{className:"c-inner text-truncate",tabIndex:-1},t,l.default.createElement("span",{className:"collapse-icon-".concat(f)},l.default.createElement(a.default,{key:i,symbol:i})))),l.default.createElement("div",{className:"page-editor__collapse__content"},u&&e))};var a=c(n("@frontend-taglib-clay$clayui/icon")),r=c(n("liferay!frontend-js-react-web$classnames")),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=a?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(n,r,l):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n("liferay!frontend-js-react-web$react"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}n("./Collapse.scss")}}));
//# sourceMappingURL=Collapse.js.map