package Ġcom . jd agn ogo . we lov em ar athon . be ach . presentation Ċ Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . runtime . collect As State Ċ import Ġandroidx . compose . runtime . getValue Ċ import Ġandroidx . compose . ui . Modifier Ċ import Ġandroidx . navigation . Nav Controller Ċ import Ġcom . google . ac comp an ist . pager . Experimental Pager Api Ċ import Ġcom . jd agn ogo . we lov em ar athon . activities . presentation . Activities Ui Event Ċ import Ġcom . jd agn ogo . we lov em ar athon . common . ui . component . Main Dest inations Ċ import Ġcom . jd agn ogo . we lov em ar athon . map . domain . Map Type Ċ import Ġkotlinx . coroutines . Internal Cor outines Api Ċ Ċ @ Experimental Pager Api Ċ @ Internal Cor outines Api Ċ @ Composable Ċ fun ĠBe aches Bar Screen ( ĊĠĠĠ ĠviewModel : ĠBe ach ViewModel , ĊĠĠĠ Ġnav Controller : ĠNav Controller , ĊĠĠĠ Ġmodifier : ĠModifier Ġ= ĠModifier , Ċ ) Ġ{ ĊĠĠĠ Ġval Ġstate Ġby ĠviewModel . state . collect As State () ĊĠĠĠ ĠBe aches Bar Content ( ĊĠĠĠĠĠĠĠ Ġstate Ġ= Ġstate , ĊĠĠĠĠĠĠĠ Ġon Map Selected Ġ= Ġ{ Ġnav Controller . navigate ( Main Dest inations . Map . create Route ( Map Type . Be ach . key )) Ġ}, ĊĠĠĠĠĠĠĠ Ġon Back Pressed Ġ= Ġ{ Ġnav Controller . pop Back Stack () Ġ}, ĊĠĠĠĠĠĠĠ Ġon Filter Clicked Ġ= Ġ{ ĠviewModel . dispatchEvent ( Be ach Ui Event . On Filter Clicked ( it )) Ġ}, ĊĠĠĠĠĠĠĠ Ġon Reset Selected Ġ= Ġ{ ĠviewModel . dispatchEvent ( Be ach Ui Event . On Reset Clicked ) Ġ}, ĊĠĠĠĠĠĠĠ Ġon Filters Selected Ġ= Ġ{ ĠviewModel . dispatchEvent ( Be ach Ui Event . On Filters Selected ( it )) Ġ}, ĊĠĠĠĠĠĠĠ Ġon Dismiss Filter Request Ġ= Ġ{ ĠviewModel . dispatchEvent ( Be ach Ui Event . On Filter Clicked ( false )) Ġ}, ĊĠĠĠĠĠĠĠ Ġon Like Clicked Ġ= Ġ{ ĊĠĠĠĠĠĠĠĠĠĠ ĠviewModel . dispatchEvent ( Be ach Ui Event . On Like Clicked ( it )) ĊĠĠĠĠĠĠĠ Ġ}, ĊĠĠĠĠĠĠĠ Ġmodifier Ġ= Ġmodifier ĊĠĠĠ Ġ) Ċ } Ċ