Liferay.Loader.define("@liferay/object-web@1.0.108/js/components/Panel/objectPanelContext",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.usePanelContext=function(){return(0,n.useContext)(l)},t.default=t.PanelContext=t.TYPES=void 0;var n=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 r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var a=n?Object.getOwnPropertyDescriptor(e,c):null;a&&(a.get||a.set)?Object.defineProperty(r,c,a):r[c]=e[c]}r.default=e,t&&t.set(e,r);return r}(r("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,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let e;t.TYPES=e,function(e){e.CHANGE_PANEL_EXPANDED="CHANGE_PANEL_EXPANDED"}(e||(t.TYPES=e={}));const f={expanded:!0},l=(0,n.createContext)({});t.PanelContext=l;const p=(t,r)=>{switch(r.type){case e.CHANGE_PANEL_EXPANDED:{const{expanded:e}=r.payload;return a(a({},t),{},{expanded:e})}default:return t}};var i=({children:e})=>{const[t,r]=(0,n.useReducer)(p,f);return n.default.createElement(l.Provider,{value:[t,r]},e)};t.default=i}}));
//# sourceMappingURL=objectPanelContext.js.map