/*! phoscon-app 2024-10-07 */

const{actions:actions}=XState,{send:send,sendParent:sendParent,log:log,raise:raise,assign:assign}=actions;export const generalStatesUpdate={initial:"idle",states:{idle:{on:{UPDATE_SW:{actions:["callUpdateView"]},UPDATE_SW_PAGE_1:"page1",UPDATE_FW:{actions:["callUpdateView"]},UPDATE_FW_PAGE_1:"page1Fw"},onEntry:["callUpdateView"]},page1:{on:{UPDATE_SW_PAGE_BACKUP_1:"pageBackup1",UPDATE_SW_PAGE_2:"page2",NEXT_PRESSED:{actions:["callUpdateViewPage1"]},PREV_PRESSED:{actions:["callUpdateViewPage1"]},SKIP_PRESSED:{actions:["callUpdateViewPage1"]},CLOSE_PRESSED:{actions:["callUpdateView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},IDLE:"idle"},onEntry:["callUpdateViewPage1"]},page1Fw:{on:{UPDATE_FW_PAGE_BACKUP_1:"pageBackup1Fw",UPDATE_FW_PAGE_2:"page2",NEXT_PRESSED:{actions:["callUpdateViewPage1Fw"]},PREV_PRESSED:{actions:["callUpdateViewPage1Fw"]},SKIP_PRESSED:{actions:["callUpdateViewPage1Fw"]},CLOSE_PRESSED:{actions:["callUpdateView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},IDLE:"idle"},onEntry:["callUpdateViewPage1Fw"]},pageBackup1:{on:{CREATE_BACKUP_SUCCESS:"pageBackup1",CREATE_BACKUP_FAIL:"pageBackup1",UPDATE_SW_PAGE_BACKUP_2:"pageBackup2",UPDATE_SW_PAGE_BACKUP_3:"pageBackup3",UPDATE_FW_PAGE_BACKUP_3:"pageBackup3Fw",IDLE:"idle"},onEntry:["callUpdateViewPageBackup1"]},pageBackup1Fw:{on:{CREATE_BACKUP_SUCCESS:"pageBackup1Fw",CREATE_BACKUP_FAIL:"pageBackup1Fw",UPDATE_FW_PAGE_BACKUP_2:"pageBackup2Fw",UPDATE_FW_PAGE_BACKUP_3:"pageBackup3Fw",IDLE:"idle"},onEntry:["callUpdateViewPageBackup1Fw"]},pageBackup2:{on:{NEXT_PRESSED:"pageBackup2",ENTER_PRESSED:{actions:send("NEXT_PRESSED")},UPDATE_SW_PAGE_BACKUP_2_AFTER_DOWNLOAD:"pageBackup2afterDownload",IDLE:"idle"},onEntry:["callUpdateViewPageBackup2"]},pageBackup2Fw:{on:{NEXT_PRESSED:"pageBackup2Fw",ENTER_PRESSED:{actions:send("NEXT_PRESSED")},UPDATE_FW_PAGE_BACKUP_2_AFTER_DOWNLOAD:"pageBackup2afterDownloadFw",IDLE:"idle"},onEntry:["callUpdateViewPageBackup2Fw"]},pageBackup2afterDownload:{on:{UPDATE_SW_PAGE_2:"page2",NEXT_PRESSED:{actions:["callUpdateViewPageBackup2afterDownload"]},PREV_PRESSED:{actions:["callUpdateViewPageBackup2afterDownload"]},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CLOSE_PRESSED:{actions:["callUpdateView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callUpdateViewPageBackup2afterDownload"]},pageBackup2afterDownloadFw:{on:{UPDATE_FW_PAGE_2:"page2",NEXT_PRESSED:{actions:["callUpdateViewPageBackup2afterDownloadFw"]},PREV_PRESSED:{actions:["callUpdateViewPageBackup2afterDownloadFw"]},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CLOSE_PRESSED:{actions:["callUpdateView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callUpdateViewPageBackup2afterDownloadFw"]},pageBackup3:{on:{UPDATE_SW_PAGE_1:"page1",UPDATE_SW_PAGE_2:"page2",NEXT_PRESSED:{actions:["callUpdateViewPageBackup3"]},PREV_PRESSED:{actions:["callUpdateViewPageBackup3"]},CLOSE_PRESSED:{actions:["callUpdateView"]},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callUpdateViewPageBackup3"]},pageBackup3Fw:{on:{UPDATE_FW_PAGE_1:"page1Fw",UPDATE_FW_PAGE_2:"page2",NEXT_PRESSED:{actions:["callUpdateViewPageBackup3Fw"]},PREV_PRESSED:{actions:["callUpdateViewPageBackup3Fw"]},CLOSE_PRESSED:{actions:["callUpdateView"]},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callUpdateViewPageBackup3Fw"]},page2:{on:{UPDATE_SUCCESS:"page2",UPDATE_FAIL:"page2",UPDATE_SW_PAGE_3:"page3",UPDATE_SW_PAGE_4:"page4",IDLE:"idle"},onEntry:["callUpdateViewPage2"]},page3:{on:{CLOSE_PRESSED:{actions:["callUpdateView"]},ENTER_PRESSED:{actions:send("CLOSE_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callUpdateViewPage3"]},page4:{on:{CLOSE_PRESSED:{actions:["callUpdateView"]},ENTER_PRESSED:{actions:send("CLOSE_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callUpdateViewPage4"]}}};