Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/plugins/experience/index",["module","exports","require","liferay!frontend-js-react-web$react","../../core/AppContext","./components/ExperienceToolbarSection","./reducers/index"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n("liferay!frontend-js-react-web$react")),i=n("../../core/AppContext"),a=c(n("./components/ExperienceToolbarSection")),r=c(n("./reducers/index"));function c(e){return e&&e.__esModule?e:{default:e}}function s(){const{Component:e}=this,t="".concat(this.toolbarId,"_").concat(this.toolbarPluginId);return o.default.createElement(e,null,o.default.createElement(a.default,{selectId:t}))}class e{constructor({app:e,toolbarPlugin:t}){this.Actions=e.Actions,this.Component=(0,i.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=d.bind(this),this.renderToolbarSection=s.bind(this))}deactivate(){this.dispatch(this.Actions.unloadReducer(e.name))}}function d(){this.dispatch(this.Actions.loadReducer(r.default,e.name))}t.default=e}}));
//# sourceMappingURL=index.js.map