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

export function initBuschjaegerSwitchOneChannelPages(pageParams){let c=pageParams.constants,s=pageParams.scanStates;return[{id:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_1",url:"devices-switches/buschjaeger/switch-one-channel/page-1.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_1"},{type:c.REMOVE_CLASS_ELEM,data:{identifier:c.MODAL_FOOTER,c:c.DANGER}}]},{event:c.BTN_PREV_PRESSED,actions:[{type:c.CALL_PAGE,data:c.PAGE_BUSCHJAEGER_PRODUCT}]},{event:c.BTN_NEXT_PRESSED,actions:[{type:c.CALL_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_2"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]},{id:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_2",url:"devices-switches/buschjaeger/switch-one-channel/page-2.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_2"}]},{event:c.BTN_PREV_PRESSED,actions:[{type:c.CALL_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_1"}]},{event:c.BTN_NEXT_PRESSED,actions:[{type:c.CALL_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_3"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]},{id:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_3",url:"devices-switches/buschjaeger/switch-one-channel/page-3.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_3"},{type:c.ADD_CLASS_ELEM,data:{identifier:c.BTN_NEXT,c:c.DISABLE}},{type:s.START_SCAN,data:120}]},{event:c.BTN_PREV_PRESSED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_2"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:s.STOP_SCAN},{type:c.CLOSE_MODAL,data:"switchWizardModal"}]},{event:s.DEVICE_ADDED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_4"}],cond:{modelids:["RM01","RB01"]}},{event:s.NO_DEVICE_ADDED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_ERROR"}]},{event:s.DEVICE_UPDATED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_4"}],cond:{modelids:["RM01","RB01"]}},{event:c.BTN_CLOSE_PRESSED,actions:[{type:s.STOP_SCAN},{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]},{id:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_4",url:"devices-switches/buschjaeger/switch-one-channel/page-4.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_4"},{type:c.ADD_CLASS_ELEM,data:{identifier:c.MODAL_FOOTER,c:c.SUCCESS}}]},{event:c.BTN_NEXT_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"},{type:c.CALL_FUNC,data:"routeToDetails"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]},{id:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_ERROR",url:"devices-switches/buschjaeger/switch-one-channel/page-error.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_ERROR"}]},{event:c.BTN_PREV_PRESSED,actions:[{type:c.CALL_PAGE,data:"BUSCHJAEGER_SWITCH_ONE_CHANNEL_PAGE_1"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]}]};