/*! phoscon-app 2025-05-20 */

const{actions:actions}=XState,{send:send,sendParent:sendParent,log:log,raise:raise,assign:assign}=actions;export const restartGwStates={initial:"idle",states:{idle:{on:{RESTART_GW:{actions:["callRestartGwView"]},RESTART_GW_PAGE_1:"page1"},onEntry:["callRestartGwView"]},page1:{on:{RESTART_GW_PAGE_2:"page2",NEXT_PRESSED:{actions:["callRestartGwViewPage1"]},PREV_PRESSED:{actions:["callRestartGwViewPage1"]},CLOSE_PRESSED:{actions:["callRestartGwView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},IDLE:"idle"},onEntry:["callRestartGwViewPage1"]},page2:{on:{RESTART_GW_SUCCESS:"page2",RESTART_GW_FAIL:"page2",RESTART_GW_PAGE_3:"page3",RESTART_GW_PAGE_4:"page4",IDLE:"idle"},onEntry:["callRestartGwViewPage2"]},page3:{on:{CLOSE_PRESSED:{actions:["callRestartGwView"]},ENTER_PRESSED:{actions:send("CLOSE_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callRestartGwViewPage3"]},page4:{on:{CLOSE_PRESSED:{actions:["callRestartGwView"]},ENTER_PRESSED:{actions:send("CLOSE_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callRestartGwViewPage4"]}}};export const shutdownGwStates={initial:"idle",states:{idle:{on:{SHUTDOWN_GW:{actions:["callShutdownGwView"]},SHUTDOWN_GW_PAGE_1:"page1"},onEntry:["callShutdownGwView"]},page1:{on:{SHUTDOWN_GW_SUCCESS:"page1",SHUTDOWN_GW_FAIL:"page1",SHUTDOWN_GW_PAGE_2:"page2",SHUTDOWN_GW_PAGE_3:"page3",NEXT_PRESSED:{actions:["callShutdownGwViewPage1"]},PREV_PRESSED:{actions:["callShutdownGwViewPage1"]},CLOSE_PRESSED:{actions:["callShutdownGwView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},IDLE:"idle"},onEntry:["callShutdownGwViewPage1"]},page2:{on:{CLOSE_PRESSED:{actions:["callShutdownGwView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:["callShutdownGwViewPage2"]},IDLE:"idle"},onEntry:["callShutdownGwViewPage2"]},page3:{on:{CLOSE_PRESSED:{actions:["callShutdownGwView"]},ENTER_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callShutdownGwViewPage3"]}}};