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

const{actions:actions}=XState,{send:send,sendParent:sendParent,log:log,raise:raise,assign:assign}=actions;export const generalStatesBackup={initial:"idle",states:{idle:{on:{GENERAL_BACKUP_GW:"page1"},onEntry:["callBackupView"]},page1:{on:{CREATE_BACKUP_PAGE_1:"pageCreate1",LOAD_BACKUP_PAGE_1:"pageLoad1",CLOSE_PRESSED:{actions:["callBackupView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callBackupView"]},pageCreate1:{on:{CREATE_BACKUP_SUCCESS:{actions:["callBackupViewCreate1"]},CREATE_BACKUP_FAIL:{actions:["callBackupViewCreate1"]},CREATE_BACKUP_PAGE_2:"pageCreateOk",CREATE_BACKUP_PAGE_3:"pageCreateFail",IDLE:"idle"},onEntry:["callBackupViewCreate1"]},pageCreateOk:{on:{NEXT_PRESSED:"pageCreateOk",ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CREATE_BACKUP_PAGE_2_AFTER_DOWNLOAD:"pageCreateOkAfterDownload",IDLE:"idle"},onEntry:["callBackupViewCreateOk"]},pageCreateOkAfterDownload:{on:{NEXT_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CLOSE_PRESSED:{actions:["callBackupView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callBackupViewCreateOkAfterDownload"]},pageCreateFail:{on:{NEXT_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CLOSE_PRESSED:{actions:["callBackupView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callBackupViewCreateFail"]},pageLoad1:{on:{LOAD_BACKUP_PAGE_2_INVALID:"pageLoad2Invalid",NEXT_PRESSED:{actions:["callBackupViewLoad1"]},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CLOSE_PRESSED:{actions:["callBackupView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callBackupViewLoad1"]},pageLoad2Invalid:{on:{LOAD_BACKUP_PAGE_2_VALID:"pageLoad2Valid",CLOSE_PRESSED:{actions:["callBackupView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callBackupViewLoad2Invalid"]},pageLoad2Valid:{on:{LOAD_BACKUP_PAGE_2_INVALID:"pageLoad2Invalid",LOAD_BACKUP_PAGE_3:"pageLoad3",NEXT_PRESSED:{actions:["callBackupViewLoad2Valid"]},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CLOSE_PRESSED:{actions:["callBackupView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callBackupViewLoad2Valid"]},pageLoad3:{on:{LOAD_BACKUP_SUCCESS:"pageLoad3",LOAD_BACKUP_FAIL:"pageLoad3",LOAD_BACKUP_PAGE_4:"pageLoadOk",LOAD_BACKUP_PAGE_5:"pageLoadFail",IDLE:"idle"},onEntry:["callBackupViewLoad3"]},pageLoadOk:{on:{NEXT_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CLOSE_PRESSED:{actions:["callBackupView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callBackupViewLoadOk"]},pageLoadFail:{on:{NEXT_PRESSED:{actions:send("CLOSE_PRESSED")},ENTER_PRESSED:{actions:send("NEXT_PRESSED")},CLOSE_PRESSED:{actions:["callBackupView"]},ESC_PRESSED:{actions:send("CLOSE_PRESSED")},IDLE:"idle"},onEntry:["callBackupViewLoadFail"]}}};