/*! phoscon-app 2025-08-29 */

export var overviewHandlerFactory=(views,constants,actions)=>(ctx,event)=>{let ev=event.type,rlid=event.rlid,swid=event.swid||app.session.swid||views.mainSwView.getFirstSwid(),oid=event.oid,aid=event.addoid;var aFuncs={"xstate.init":actions.overviewInit(views,constants,ctx),OVERVIEW:actions.overviewInit(views,constants),[constants.States.ACTIVESW]:actions.overviewSwInit(views,constants,ctx),[constants.States.ACTIVERL]:actions.overviewRlInit(views,constants,ctx),[constants.Events.SW_PRESSED]:actions.ovSwPressed(views,constants,ctx),[constants.Events.RL_PRESSED]:actions.ovRlPressed(views,constants,ctx),[constants.Events.FUNC_PRESSED]:actions.ovFuncPressed(views,constants,ctx),BTN_DISMISS_PRESSED:actions.ovDismissPressed(views,constants,ctx),BTN_SAVE_PRESSED:actions.ovSavePressed(views,constants,ctx),BTN_REMOVE_SW_PRESSED:actions.ovDeleteSwRules(views,constants,ctx)},params={swid:swid,rlid:rlid,oid:oid,aid:aid};aFuncs[ev]&&aFuncs[ev](params)};