package Ġser g . ch up rin . fin ances . feature . on boarding . presentation . currency choice . model . view model Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġser g . ch up rin . fin ances . core . api . di . scopes . Screen Scope Ċ import Ġser g . ch up rin . fin ances . core . currency . choice . api . presentation . model . store . Currency Choice Store Intent Dispatcher Ċ import Ġser g . ch up rin . fin ances . core . api . presentation . model . cells . Base Cell Ċ import Ġser g . ch up rin . fin ances . core . api . presentation . model . view model . Base Store ViewModel Ċ import Ġser g . ch up rin . fin ances . feature . on boarding . presentation . currency choice . model . store . Currency Choice On boarding Event Ċ import Ġser g . ch up rin . fin ances . feature . on boarding . presentation . currency choice . model . store . Currency Choice On boarding Intent Ċ import Ġser g . ch up rin . fin ances . feature . on boarding . presentation . currency choice . model . store . Currency Choice On boarding Store Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠSer ge y ĠCh up rin Ġon Ġ 0 6 . 0 4 . 2 0 2 0 . Ċ Ġ*/ Ċ @ Screen Scope Ċ class ĠCurrency Choice On boarding ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġstore : ĠCurrency Choice On boarding Store Ċ ) Ġ: ĠBase Store ViewModel < Currency Choice On boarding Intent >(), ĊĠĠĠ ĠCurrency Choice Store Intent Dispatcher Ġby Ġstore Ġ{ ĊĊĠĠĠ Ġval Ġevents LiveData : ĠLive Data < Currency Choice On boarding Event > Ġ= ĊĠĠĠĠĠĠĠ Ġstore . observe Events As LiveData () ĊĊĠĠĠ Ġval Ġcells LiveData : ĠLive Data < List < Base Cell >> Ġ= ĊĠĠĠĠĠĠĠ Ġstore . observe Part icular State As LiveData Ġ{ Ġstate Ġ-> Ġstate . current Cells Ġ} ĊĊĠĠĠ Ġval Ġdone Button Enabled LiveData : ĠLive Data < Boolean > Ġ= ĊĠĠĠĠĠĠĠ Ġstore . observe Part icular State As LiveData Ġ{ Ġstate Ġ-> Ġstate . done Button IsEnabled Ġ} ĊĊĠĠĠ Ġval Ġchosen Currency DisplayName LiveData : ĠLive Data < String > Ġ= ĊĠĠĠĠĠĠĠ Ġstore . observe Part icular State As LiveData Ġ{ Ġstate Ġ-> Ġstate . chosen Currency DisplayName Ġ} ĊĊĠĠĠ Ġval Ġcurrency Picker Visibility LiveData Ġ= ĊĠĠĠĠĠĠĠ Ġstore . observe Part icular State As LiveData Ġ{ Ġstate Ġ-> Ġstate . currency Picker Is Visible Ġ} ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġstore . start ( int ents Flow (), ĠviewModel Scope ) ĊĠĠĠ Ġ} Ċ Ċ }