/*! phoscon-app 2025-10-13 */

const{actions:actions}=XState,{send:send,sendParent:sendParent,log:log,raise:raise,assign:assign}=actions;export const generalStatesChangePassword={initial:"idle",states:{idle:{on:{GENERAL_CHANGE_PASSWORD:"changePassword",PASSWORD_CHANGED:{actions:["callChangePasswordView"]}}},changePassword:{on:{GENERAL_CHANGE_PASSWORD_PAGE_1_VALID:"page1Valid",GENERAL_CHANGE_PASSWORD_PAGE_1_INVALID:"page1Invalid"},onEntry:["callChangePasswordView"]},page1Valid:{on:{GENERAL_CHANGE_PASSWORD_PAGE_2:"page2",GENERAL_CHANGE_PASSWORD_PAGE_1_INVALID:"page1Invalid",PASSWORD_CHANGED:{actions:["callChangePasswordViewPage1Valid"]},NEXT_PRESSED:{actions:["callChangePasswordViewPage1Valid"]},GENERAL_FAIL:{actions:["callChangePasswordViewPage1Valid"]},OLD_PW_FAIL:{actions:["callChangePasswordViewPage1Valid"]},OLD_PW_SUCCESS:{actions:["callChangePasswordViewPage1Valid"]},CANCEL_PRESSED:{actions:["callChangePasswordViewPage1Valid"]},CLOSE_PRESSED:{actions:["callChangePasswordViewPage1Valid"]},IDLE:"idle",ENTER_PRESSED:{actions:send("NEXT_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")}},onEntry:["callChangePasswordViewPage1Valid"]},page1Invalid:{on:{GENERAL_CHANGE_PASSWORD_PAGE_1_VALID:"page1Valid",PASSWORD_CHANGED:{actions:["callChangePasswordViewPage1Invalid"]},CANCEL_PRESSED:{actions:["callChangePasswordViewPage1Invalid"]},CLOSE_PRESSED:{actions:["callChangePasswordViewPage1Invalid"]},IDLE:"idle",ESC_PRESSED:{actions:send("CLOSE_PRESSED")}},onEntry:["callChangePasswordViewPage1Invalid"]},page2:{on:{GENERAL_CHANGE_PASSWORD_PAGE_2_VALID:"page2Valid",GENERAL_CHANGE_PASSWORD_PAGE_2_INVALID:"page2Invalid",CANCEL_PRESSED:{actions:["callChangePasswordViewPage2"]},CLOSE_PRESSED:{actions:["callChangePasswordViewPage2"]},IDLE:"idle",ESC_PRESSED:{actions:send("CLOSE_PRESSED")}},onEntry:["callChangePasswordViewPage2"]},page2Valid:{on:{GENERAL_CHANGE_PASSWORD_PAGE_SUCCESS:"pageSuccess",GENERAL_CHANGE_PASSWORD_PAGE_ERROR:"pageError",GENERAL_CHANGE_PASSWORD_PAGE_2_VALID:"page2Valid",GENERAL_CHANGE_PASSWORD_PAGE_2_INVALID:"page2Invalid",PASSWORD_CHANGED:{actions:["callChangePasswordViewPage2Valid"]},NEXT_PRESSED:{actions:["callChangePasswordViewPage2Valid"]},GENERAL_FAIL:{actions:["callChangePasswordViewPage2Valid"]},NEW_PW_FAIL:{actions:["callChangePasswordViewPage2Valid"]},NEW_PW_SUCCESS:{actions:["callChangePasswordViewPage2Valid"]},CANCEL_PRESSED:{actions:["callChangePasswordViewPage2Valid"]},CLOSE_PRESSED:{actions:["callChangePasswordViewPage2Valid"]},IDLE:"idle",ENTER_PRESSED:{actions:send("NEXT_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")}},onEntry:["callChangePasswordViewPage2Valid"]},page2Invalid:{on:{GENERAL_CHANGE_PASSWORD_PAGE_2_VALID:"page2Valid",GENERAL_CHANGE_PASSWORD_PAGE_2_INVALID:"page2Invalid",PASSWORD_CHANGED:{actions:["callChangePasswordViewPage2Invalid"]},CANCEL_PRESSED:{actions:["callChangePasswordViewPage2Invalid"]},CLOSE_PRESSED:{actions:["callChangePasswordViewPage2Invalid"]},IDLE:"idle",ESC_PRESSED:{actions:send("CLOSE_PRESSED")}},onEntry:["callChangePasswordViewPage2Invalid"]},pageSuccess:{on:{NEXT_PRESSED:{actions:["callChangePasswordViewPageSuccess"]},CLOSE_PRESSED:{actions:["callChangePasswordViewPageSuccess"]},IDLE:"idle",ENTER_PRESSED:{actions:send("NEXT_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")}},onEntry:["callChangePasswordViewPageSuccess"]},pageError:{on:{NEXT_PRESSED:{actions:["callChangePasswordViewPageError"]},CLOSE_PRESSED:{actions:["callChangePasswordViewPageError"]},IDLE:"idle",ENTER_PRESSED:{actions:send("NEXT_PRESSED")},ESC_PRESSED:{actions:send("CLOSE_PRESSED")}},onEntry:["callChangePasswordViewPageError"]}}};