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

export function initBlindSwitchEditorPages(pageParams){let c=pageParams.constants;return[{id:"CHOSE_SWITCH",url:"devices-blinds/blind-switch-editor/page-1.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"CHOSE_SWITCH"},{type:c.CALL_FUNC,data:"initSwitchList"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"blindWizardModal"}]},{event:c.BTN_PREV_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"blindWizardModal"}]},{event:c.BTN_SWITCH_PRESSED,actions:[{type:c.CALL_PAGE,data:"CHOSE_BUTTON"}]}]},{id:"CHOSE_BUTTON",url:"devices-blinds/blind-switch-editor/page-2.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"CHOSE_BUTTON"},{type:c.CALL_FUNC,data:"initSwitchButton"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"blindWizardModal"}]},{event:c.BTN_PREV_PRESSED,actions:[{type:c.CALL_PAGE,data:"CHOSE_SWITCH"}]},{event:c.BTN_NEXT_PRESSED,actions:[{type:c.CALL_PAGE,data:"CHOSE_FUNC"}]},{event:"SWITCH_BTN_PRESSED",actions:[{type:c.REMOVE_CLASS_ELEM,data:{identifier:c.BTN_NEXT,c:c.DISABLE}}]}]},{id:"CHOSE_FUNC",url:"devices-blinds/blind-switch-editor/page-3.html",eventHandler:[{event:c.ON_ENTRY,actions:[{type:c.SHOW_PAGE,data:"CHOSE_FUNC"}]},{event:c.BTN_CLOSE_PRESSED,actions:[{type:c.CLOSE_MODAL,data:"blindWizardModal"}]},{event:"BTN_FUNC_PRESSED",actions:[{type:c.REMOVE_CLASS_ELEM,data:{identifier:c.BTN_NEXT,c:c.DISABLE}}]},{event:"INPUT_MINUS_PRESSED",actions:[{type:c.CALL_FUNC,data:"setInputMinus"}]},{event:"INPUT_PLUS_PRESSED",actions:[{type:c.CALL_FUNC,data:"setInputPlus"}]},{event:"INPUT_CHANGED",actions:[{type:c.REMOVE_CLASS_ELEM,data:{identifier:c.BTN_NEXT,c:c.DISABLE}}]},{event:c.BTN_NEXT_PRESSED,actions:[{type:c.CALL_FUNC,data:"setRuleToSwitch"},{type:c.CLOSE_MODAL,data:"blindWizardModal"}]},{event:c.BTN_PREV_PRESSED,actions:[{type:c.CALL_PAGE,data:"CHOSE_BUTTON"}]}]}]};