/*! phoscon-app 2024-05-27 */

export function getStateHandlers(views,constants,funcs){return new Promise((resolve,reject)=>{const wpA=constants.wpActions,ovA=constants.ovActions;let overviewView=views.find(v=>"overview"==v.el.id),mainSwView=views.find(v=>"navigation"==v.el.id),mainRlView=views.find(v=>"resourcelinks"==v.el.id),mainFuncView=views.find(v=>"rlFunction"==v.el.id),wizardView=views.find(v=>"switchEditorModal"==v.el.id);resolve({OVERVIEW:funcs.overviewHandlerFactory({overviewView:overviewView,mainSwView:mainSwView,mainRlView:mainRlView,mainFuncView:mainFuncView},constants,ovA),PAGE_SWITCHES:funcs.wpSwitchesHandlerFactory(wizardView,constants,wpA),PAGE_BUTTONS:funcs.wpButtonsHandlerFactory(wizardView,constants,wpA),PAGE_FUNCTIONS:funcs.wpFunctionsHandlerFactory(wizardView,constants,wpA),PAGE_GROUPMODE:funcs.wpGroupModeHandlerFactory(wizardView,constants,wpA),PAGE_GROUPMODEINFO:funcs.wpGroupModeInfoHandlerFactory(wizardView,constants,wpA)})})};