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

export function initdeLightingPages(pageParams){let c=pageParams.constants,s=pageParams.scanStates;return[{id:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_1",url:"devices-switches/dresden-elektronik/lighting-switch/page-1.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_1"},{type:c.ADD_CLASS_ELEM,data:{identifier:c.BTN_NEXT,c:c.DISABLE}},{type:c.REMOVE_CLASS_ELEM,data:{identifier:c.MODAL_FOOTER,c:c.DANGER}},{type:s.START_SCAN,data:120}]},{event:c.BTN_PREV_PRESSED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:c.PAGE_DRESDEN_ELEKTRONIK_PRODUCT}]},{event:s.DEVICE_ADDED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_2"}],cond:{modelids:["Lighting Switch"]}},{event:s.NO_DEVICE_ADDED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_ERROR"}]},{event:s.DEVICE_UPDATED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_2"},{type:c.CALL_FUNC,data:"blinkAllLights"}],cond:{buttonevent:1002,modelids:["Lighting Switch"]}},{event:c.BTN_CLOSE_PRESSED,actions:[{type:s.STOP_SCAN},{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]},{id:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_2",url:"devices-switches/dresden-elektronik/lighting-switch/page-2.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_2"},{type:c.REMOVE_CLASS_ELEM,data:{identifier:c.MODAL_FOOTER,c:c.SUCCESS}}]},{event:s.DEVICE_UPDATED,actions:[{type:c.REMOVE_CLASS_ELEM,data:{identifier:c.BTN_NEXT,c:c.DISABLE}},{type:c.ADD_CLASS_ELEM,data:{identifier:c.MODAL_FOOTER,c:c.SUCCESS}},{type:c.REMOVE_CLASS_ELEM,data:{identifier:c.ELEM_INFO,c:c.HIDE}},{type:c.ADD_CLASS_ELEM,data:{identifier:c.BTN_NEXT,c:c.BTN_PRIMARY}}],cond:{buttonevent:4002,modelids:["Lighting Switch"]}},{event:c.BTN_NEXT_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"},{type:c.CALL_FUNC,data:"routeToDetails"},{type:c.REMOVE_CLASS_ELEM,data:{identifier:".modal-body",c:"start-animation"}}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]},{id:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_ERROR",url:"devices-switches/dresden-elektronik/lighting-switch/page-error.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_ERROR"}]},{event:c.BTN_PREV_PRESSED,actions:[{type:c.CALL_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_1"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:s.STOP_SCAN},{type:c.CLOSE_MODAL,data:"switchWizardModal"}]},{event:c.BTN_PROBLEM_PRESSED,actions:[{type:s.STOP_SCAN},{type:c.CALL_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_RESET_1"}]}]},{id:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_RESET_1",url:"devices-switches/dresden-elektronik/lighting-switch/page-reset-1.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_RESET_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:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_1"}]},{event:c.BTN_NEXT_PRESSED,actions:[{type:c.CALL_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_RESET_2"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]},{id:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_RESET_2",url:"devices-switches/dresden-elektronik/lighting-switch/page-reset-2.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_RESET_2"}]},{event:c.BTN_PREV_PRESSED,actions:[{type:c.CALL_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_RESET_1"}]},{event:c.BTN_NEXT_PRESSED,actions:[{type:c.CALL_PAGE,data:"DRESDEN_ELEKTRONIK_LIGHTING_SWITCH_PAGE_1"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"switchWizardModal"}]}]}]};