/*! phoscon-app 2024-02-26 */

export const DEVICE_ADDED="DEVICE_ADDED";export const DEVICE_UPDATED="DEVICE_UPDATED";export const DEVICE_NO_UPDATED="DEVICE_NO_UPDATED";export const NO_DEVICE_ADDED="NO_DEVICE_ADDED";export const START_SCAN="START_SCAN";export const STOP_SCAN="STOP_SCAN";export const START_TIMER="START_TIMER";export function getScanStates(actions){return{initial:"scan-off",id:"scanner",states:{"scan-off":{on:{START_SCAN:{target:"scan-on",actions:actions.startScanAction}}},"scan-on":{on:{STOP_SCAN:{target:"scan-off",actions:actions.stopScanAction},DEVICE_ADDED:{target:"scan-off",actions:[actions.deviceAddedAction,actions.startUpdateTimerAction]},NO_DEVICE_ADDED:{target:"scan-off",actions:actions.noDeviceAddedAction}}}}}};