Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.170/page_editor/plugins/experience/index",["module","exports","require","liferay!frontend-js-react-web$react","../../common/AppContext","./components/ExperienceToolbarSection","./reducers/index"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=_interopRequireDefault(n("liferay!frontend-js-react-web$react")),o=n("../../common/AppContext"),r=_interopRequireDefault(n("./components/ExperienceToolbarSection")),a=_interopRequireDefault(n("./reducers/index"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function renderExperiencesSection(){const{Component:e}=this;return i.default.createElement(e,null,i.default.createElement(r.default,null))}class Experience{constructor({app:e,toolbarPlugin:t}){this.Actions=e.Actions,this.Component=(0,o.Component)(e),this.dispatch=e.dispatch,this.toolbarId=e.config.toolbarId,this.toolbarPluginId=t.toolbarPluginId,void 0!==e.store.availableSegmentsExperiences&&null!==e.store.availableSegmentsExperiences&&!0!==e.config.singleSegmentsExperienceMode&&(this.activate=experiencesActivate.bind(this),this.renderToolbarSection=renderExperiencesSection.bind(this))}deactivate(){this.dispatch(this.Actions.unloadReducer(Experience.name))}}function experiencesActivate(){this.dispatch(this.Actions.loadReducer(a.default,Experience.name))}t.default=Experience}}));
//# sourceMappingURL=index.js.map