(()=>{"use strict";const e=window.wp.data,a={modal:{},upgrade_feature_modal:{},show_upgrade_modal:!1,modalError:null},o={reducer:(e=a,o)=>"SET_MODAL"===o.type?{...e,modal:o.payload}:"SET_UPGRADE_FEATURE_MODAL"===o.type?{...e,upgrade_feature_modal:o.payload}:"SET_MODAL_ERROR"===o.type?{...e,modalError:o.payload}:"SET_SHOW_UPGRADE_MODAL"===o.type?{...e,show_upgrade_modal:o.payload}:e,selectors:{getModal:e=>e?.modal||null,getModalError:e=>e?.modalError||null,getUpgradeFeatureModal:e=>e?.upgrade_feature_modal||null,getShowUpgradeModal:e=>e?.show_upgrade_modal||!1},actions:{setModal:e=>({type:"SET_MODAL",payload:e}),setModalError:e=>({type:"SET_MODAL_ERROR",payload:e}),setUpgradeFeatureModal:e=>({type:"SET_UPGRADE_FEATURE_MODAL",payload:e}),setShowUpgradeModal:e=>({type:"SET_SHOW_UPGRADE_MODAL",payload:e})}};if(void 0!==e.createReduxStore){const a=(0,e.createReduxStore)("firebox_editor",o);(0,e.register)(a)}else(0,e.registerStore)("firebox_editor",o)})();