package Ġcom . h end ra angg rian . open p ss . ui . w age Ċ Ċ import Ġcom . h end ra angg rian . open p ss . Fx Component Ċ import Ġcom . h end ra angg rian . open p ss . PATTERN _ TIME Ċ import Ġcom . h end ra angg rian . open p ss . R 2 Ċ import Ġcom . h end ra angg rian . open p ss . api . Open PSS Api Ċ import Ġcom . h end ra angg rian . open p ss . schema . Re cess Ċ import Ġcom . h end ra angg rian . open p ss . ui . Table Dialog Ċ import Ġcom . h end ra angg rian . open p ss . util . string Cell Ċ import Ġkotlinx . coroutines . Coroutine Scope Ċ import Ġk tf x . collections . to Mutable Observable List Ċ Ċ class ĠEdit Re cess Dialog ( component : ĠF x Component ) Ġ: ĠTable Dialog < Re cess >( component , ĠR 2 . string . re cess ) Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠgetString ( R 2 . string . start )< String > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġstring Cell Ġ{ Ġstart . toString ( PATTERN _ TIME ) Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ ĠgetString ( R 2 . string . end )< String > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġstring Cell Ġ{ Ġend . toString ( PATTERN _ TIME ) Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun ĠCor outine Scope . refresh (): ĠList < Re cess > Ġ= ĠOpen PSS Api . get Re cesses (). to Mutable Observable List () ĊĊĠĠĠ Ġoverride Ġfun Ġadd () Ġ= ĠAdd Re cess Pop Over ( this ). show ( add Button ) Ġ{ Ġpair Ġ-> ĊĠĠĠĠĠĠĠ Ġtable . items . add ( Open PSS Api . add Re cess ( pair !!. first , Ġpair . second )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun ĠCor outine Scope . delete ( selected : ĠRe cess ): ĠBoolean Ġ= ĠOpen PSS Api . delete Re cess ( selected . id ) Ċ } Ċ