' u s e   c l i e n t ' ; 
 
 
 
 i m p o r t   R e a c t ,   {   u s e S t a t e ,   u s e E f f e c t ,   u s e C a l l b a c k   }   f r o m   ' r e a c t ' ; 
 
 i m p o r t   {   u s e R o u t e r   }   f r o m   ' n e x t / n a v i g a t i o n ' ; 
 
 i m p o r t   {   C a r d ,   R o w ,   C o l ,   S t a t i s t i c ,   T y p o g r a p h y ,   L i s t ,   A v a t a r ,   T a g ,   B u t t o n ,   S p a c e ,   B a d g e ,   A l e r t   }   f r o m   ' a n t d ' ; 
 
 i m p o r t   { 
 
     U s e r O u t l i n e d , 
 
     M e s s a g e O u t l i n e d , 
 
     C l o c k C i r c l e O u t l i n e d , 
 
     C h e c k C i r c l e O u t l i n e d , 
 
     D o l l a r O u t l i n e d , 
 
     R i s e O u t l i n e d , 
 
     S t a r O u t l i n e d , 
 
     T e a m O u t l i n e d , 
 
     V i d e o C a m e r a O u t l i n e d , 
 
     E x c l a m a t i o n C i r c l e O u t l i n e d , 
 
 }   f r o m   ' @ a n t - d e s i g n / i c o n s ' ; 
 
 i m p o r t   {   u s e U s e r S t o r e   }   f r o m   ' . . / . . / . . / s t o r e / u s e r S t o r e ' ; 
 
 i m p o r t   {   c o n s u l t A p i ,   t y p e   D o c t o r W o r k b e n c h S t a t s ,   t y p e   P a t i e n t L i s t I t e m   }   f r o m   ' . . / . . / . . / a p i / c o n s u l t ' ; 
 
 
 
 c o n s t   {   T i t l e ,   T e x t   }   =   T y p o g r a p h y ; 
 
 
 
 c o n s t   D o c t o r W o r k b e n c h P a g e :   R e a c t . F C   =   ( )   = >   { 
 
     c o n s t   r o u t e r   =   u s e R o u t e r ( ) ; 
 
     c o n s t   {   u s e r   }   =   u s e U s e r S t o r e ( ) ; 
 
     c o n s t   [ l o a d i n g ,   s e t L o a d i n g ]   =   u s e S t a t e ( t r u e ) ; 
 
     c o n s t   [ s t a t s ,   s e t S t a t s ]   =   u s e S t a t e < D o c t o r W o r k b e n c h S t a t s > ( { 
 
         t o d a y _ c o n s u l t _ c o u n t :   0 , 
 
         w a i t i n g _ c o u n t :   0 , 
 
         i n _ p r o g r e s s _ c o u n t :   0 , 
 
         c o m p l e t e d _ t o d a y :   0 , 
 
         t o t a l _ p a t i e n t s :   0 , 
 
         r a t i n g :   0 , 
 
         i n c o m e _ t o d a y :   0 , 
 
         i n c o m e _ m o n t h :   0 , 
 
     } ) ; 
 
     c o n s t   [ w a i t i n g P a t i e n t s ,   s e t W a i t i n g P a t i e n t s ]   =   u s e S t a t e < P a t i e n t L i s t I t e m [ ] > ( [ ] ) ; 
 
 
 
     / /   Y ̓00\"qiZ@Qt0	v
 
     c o n s t   i s V e r i f i e d   =   u s e r ? . i s _ v e r i f i e d ; 
 
 
 
     / /   ~\G_[0}YHrf? 
 
     c o n s t   f e t c h D a t a   =   u s e C a l l b a c k ( a s y n c   ( )   = >   { 
 
         t r y   { 
 
             c o n s t   [ s t a t s R e s ,   p a t i e n t s R e s ]   =   a w a i t   P r o m i s e . a l l ( [ 
 
                 c o n s u l t A p i . g e t D o c t o r W o r k b e n c h S t a t s ( ) , 
 
                 c o n s u l t A p i . g e t P a t i e n t L i s t ( ) , 
 
             ] ) ; 
 
             s e t S t a t s ( s t a t s R e s . d a t a ) ; 
 
             / /   YE	j~T}0v(REP? 
 
             c o n s t   w a i t i n g   =   ( p a t i e n t s R e s . d a t a   | |   [ ] ) . f i l t e r ( 
 
                 p   = >   p . s t a t u s   = = =   ' p e n d i n g '   | |   p . s t a t u s   = = =   ' w a i t i n g ' 
 
             ) ; 
 
             s e t W a i t i n g P a t i e n t s ( w a i t i n g . s l i c e ( 0 ,   5 ) ) ; 
 
         }   c a t c h   ( e r r o r )   { 
 
             c o n s o l e . e r r o r ( ' ~\G_[0}YHrfQ0? ' ,   e r r o r ) ; 
 
         }   f i n a l l y   { 
 
             s e t L o a d i n g ( f a l s e ) ; 
 
         } 
 
     } ,   [ ] ) ; 
 
 
 
     u s e E f f e c t ( ( )   = >   { 
 
         i f   ( i s V e r i f i e d )   { 
 
             f e t c h D a t a ( ) ; 
 
             c o n s t   t i m e r   =   s e t I n t e r v a l ( f e t c h D a t a ,   1 0 0 0 0 ) ; 
 
             r e t u r n   ( )   = >   c l e a r I n t e r v a l ( t i m e r ) ; 
 
         } 
 
     } ,   [ i s V e r i f i e d ,   f e t c h D a t a ] ) ; 
 
 
 
     c o n s t   f o r m a t W a i t i n g T i m e   =   ( s e c o n d s :   n u m b e r )   = >   { 
 
         c o n s t   m i n u t e s   =   M a t h . f l o o r ( s e c o n d s   /   6 0 ) ; 
 
         r e t u r n   ` $ { m i n u t e s }   RUc` ; 
 
     } ; 
 
 
 
     i f   ( ! i s V e r i f i e d )   { 
 
         r e t u r n   ( 
 
             < d i v   c l a s s N a m e = " s p a c e - y - 3 " > 
 
                 < h 4   c l a s s N a m e = " t e x t - s m   f o n t - b o l d   t e x t - g r a y - 8 0 0   m - 0 " > VdSe[0}? / h 4 > 
 
                 < A l e r t 
 
                     m e s s a g e = " t\S9p~\WtR]t0	v" 
 
                     d e s c r i p t i o n = { 
 
                         < d i v   c l a s s N a m e = " t e x t - x s " > 
 
                             < p   c l a s s N a m e = " m b - 1 " > '1kt@_Op-lmn9p~\WVdSetR]t0	v~\h	Zf4^tCZEPp? / p > 
 
                             < p   c l a s s N a m e = " m b - 2 " > tA_\m0MP(RXm3l	v}Oky͓p	v~YImO[kyk}9p!sr3lC~Z^F]Y}o+[4^t? / p > 
 
                             < B u t t o n   t y p e = " p r i m a r y "   s i z e = " s m a l l "   i c o n = { < E x c l a m a t i o n C i r c l e O u t l i n e d   / > } 
 
                                 o n C l i c k = { ( )   = >   r o u t e r . p u s h ( ' / d o c t o r / c e r t i f i c a t i o n ' ) } > 
 
                                 ~*[F]t0	v
 
                             < / B u t t o n > 
 
                         < / d i v > 
 
                     } 
 
                     t y p e = " w a r n i n g " 
 
                     s h o w I c o n 
 
                 / > 
 
             < / d i v > 
 
         ) ; 
 
     } 
 
 
 
     r e t u r n   ( 
 
         < d i v   c l a s s N a m e = " s p a c e - y - 3 " > 
 
             < d i v   c l a s s N a m e = " f l e x   i t e m s - c e n t e r   j u s t i f y - b e t w e e n " > 
 
                 < h 4   c l a s s N a m e = " t e x t - s m   f o n t - b o l d   t e x t - g r a y - 8 0 0   m - 0 " > VdSe[0}? / h 4 > 
 
                 < s p a n   c l a s s N a m e = " t e x t - x s   t e x t - g r a y - 4 0 0 " > ? 0 ~cVT%1W? / s p a n > 
 
             < / d i v > 
 
 
 
             { / *   ͓?z>~V#r  * / } 
 
             < R o w   g u t t e r = { [ 8 ,   8 ] } > 
 
                 { [ 
 
                     {   t i t l e :   ' `mCZhv' ,   v a l u e :   s t a t s . t o d a y _ c o n s u l t _ c o u n t ,   i c o n :   < M e s s a g e O u t l i n e d   / > ,   c o l o r :   ' # 1 8 9 0 f f ' ,   b g :   ' # e 6 f 7 f f ' ,   s u f f i x :   ' \mp'   } , 
 
                     {   t i t l e :   ' ~
Y}0v' ,   v a l u e :   s t a t s . w a i t i n g _ c o u n t ,   i c o n :   < C l o c k C i r c l e O u t l i n e d   / > ,   c o l o r :   ' # f a 8 c 1 6 ' ,   b g :   ' # f f f 7 e 6 ' ,   s u f f i x :   ' ?   } , 
 
                     {   t i t l e :   ' `mCZh9p~\W' ,   v a l u e :   s t a t s . c o m p l e t e d _ t o d a y ,   i c o n :   < C h e c k C i r c l e O u t l i n e d   / > ,   c o l o r :   ' # 5 2 c 4 1 a ' ,   b g :   ' # f 6 f f e d ' ,   s u f f i x :   ' ?   } , 
 
                     {   t i t l e :   ' `mCZhS' ,   v a l u e :   s t a t s . i n c o m e _ t o d a y ,   i c o n :   < D o l l a r O u t l i n e d   / > ,   c o l o r :   ' # 7 2 2 e d 1 ' ,   b g :   ' # f 9 f 0 f f ' ,   s u f f i x :   ' ?   } , 
 
                 ] . m a p ( ( i t e m ,   i )   = >   ( 
 
                     < C o l   x s = { 1 2 }   s m = { 6 }   k e y = { i } > 
 
                         < d i v   c l a s s N a m e = " b g - w h i t e   r o u n d e d - l g   p - 3   b o r d e r   b o r d e r - [ # e 6 f 0 f a ]   h o v e r : s h a d o w - m d   t r a n s i t i o n - s h a d o w " > 
 
                             < d i v   c l a s s N a m e = " f l e x   i t e m s - c e n t e r   g a p - 2   m b - 2 " > 
 
                                 < d i v   c l a s s N a m e = " w - 7   h - 7   r o u n d e d - m d   f l e x   i t e m s - c e n t e r   j u s t i f y - c e n t e r   t e x t - s m "   s t y l e = { {   b a c k g r o u n d :   i t e m . b g ,   c o l o r :   i t e m . c o l o r   } } > { i t e m . i c o n } < / d i v > 
 
                                 < s p a n   c l a s s N a m e = " t e x t - x s   t e x t - g r a y - 5 0 0 " > { i t e m . t i t l e } < / s p a n > 
 
                             < / d i v > 
 
                             < d i v   c l a s s N a m e = " t e x t - x l   f o n t - b o l d "   s t y l e = { {   c o l o r :   i t e m . c o l o r   } } > 
 
                                 { i t e m . v a l u e }   < s p a n   c l a s s N a m e = " t e x t - [ 1 1 p x ]   t e x t - g r a y - 4 0 0   f o n t - n o r m a l " > { i t e m . s u f f i x } < / s p a n > 
 
                             < / d i v > 
 
                         < / d i v > 
 
                     < / C o l > 
 
                 ) ) } 
 
             < / R o w > 
 
 
 
             { / *   Nq`HrA]  * / } 
 
             < R o w   g u t t e r = { [ 8 ,   8 ] } > 
 
                 { [ 
 
                     {   i c o n :   < T e a m O u t l i n e d   / > ,   c o l o r :   ' # 1 8 9 0 f f ' ,   b g :   ' # e 6 f 7 f f ' ,   l a b e l :   ' ~xᮓ? ,   v a l u e :   s t a t s . t o t a l _ p a t i e n t s   } , 
 
                     {   i c o n :   < S t a r O u t l i n e d   / > ,   c o l o r :   ' # f a d b 1 4 ' ,   b g :   ' # f f f b e 6 ' ,   l a b e l :   ' Nq`tRW' ,   v a l u e :   s t a t s . r a t i n g   } , 
 
                     {   i c o n :   < R i s e O u t l i n e d   / > ,   c o l o r :   ' # 5 2 c 4 1 a ' ,   b g :   ' # f 6 f f e d ' ,   l a b e l :   ' ȓ@nS' ,   v a l u e :   ` |i$ { s t a t s . i n c o m e _ m o n t h } `   } , 
 
                     {   i c o n :   < M e s s a g e O u t l i n e d   / > ,   c o l o r :   ' # 1 3 c 2 c 2 ' ,   b g :   ' # e 6 f f f b ' ,   l a b e l :   ' igm? ,   v a l u e :   s t a t s . i n _ p r o g r e s s _ c o u n t   } , 
 
                 ] . m a p ( ( i t e m ,   i )   = >   ( 
 
                     < C o l   x s = { 1 2 }   s m = { 6 }   k e y = { i } > 
 
                         < d i v   c l a s s N a m e = " b g - w h i t e   r o u n d e d - l g   p - 3   b o r d e r   b o r d e r - [ # e 6 f 0 f a ]   t e x t - c e n t e r " > 
 
                             < d i v   c l a s s N a m e = " w - 8   h - 8   r o u n d e d - l g   f l e x   i t e m s - c e n t e r   j u s t i f y - c e n t e r   m x - a u t o   m b - 1   t e x t - b a s e "   s t y l e = { {   b a c k g r o u n d :   i t e m . b g ,   c o l o r :   i t e m . c o l o r   } } > { i t e m . i c o n } < / d i v > 
 
                             < d i v   c l a s s N a m e = " t e x t - [ 1 1 p x ]   t e x t - g r a y - 4 0 0 " > { i t e m . l a b e l } < / d i v > 
 
                             < d i v   c l a s s N a m e = " t e x t - l g   f o n t - b o l d "   s t y l e = { {   c o l o r :   i t e m . c o l o r   } } > { i t e m . v a l u e } < / d i v > 
 
                         < / d i v > 
 
                     < / C o l > 
 
                 ) ) } 
 
             < / R o w > 
 
 
 
             { / *   ~
Y}0vRDi0  * / } 
 
             < C a r d 
 
                 t i t l e = { < s p a n   c l a s s N a m e = " t e x t - x s   f o n t - s e m i b o l d " > ~
Y}0v  < B a d g e   c o u n t = { s t a t s . w a i t i n g _ c o u n t }   s t y l e = { {   b a c k g r o u n d C o l o r :   ' # f a 8 c 1 6 '   } }   / > < / s p a n > } 
 
                 e x t r a = { < B u t t o n   t y p e = " l i n k "   s i z e = " s m a l l "   o n C l i c k = { ( )   = >   r o u t e r . p u s h ( ' / d o c t o r / c o n s u l t ' ) } > ̓0EnO)14Q< / B u t t o n > } 
 
                 s i z e = " s m a l l " 
 
                 l o a d i n g = { l o a d i n g } 
 
             > 
 
                 < L i s t 
 
                     s i z e = " s m a l l " 
 
                     d a t a S o u r c e = { w a i t i n g P a t i e n t s } 
 
                     l o c a l e = { {   e m p t y T e x t :   ' ƓPh~
Y}0v(REP?   } } 
 
                     r e n d e r I t e m = { ( p a t i e n t )   = >   ( 
 
                         < L i s t . I t e m 
 
                             a c t i o n s = { [ 
 
                                 < B u t t o n   s i z e = " s m a l l "   t y p e = " p r i m a r y "   o n C l i c k = { ( )   = >   r o u t e r . p u s h ( ' / d o c t o r / c o n s u l t ' ) } > 0v< / B u t t o n > , 
 
                             ] } 
 
                         > 
 
                             < L i s t . I t e m . M e t a 
 
                                 a v a t a r = { < A v a t a r   s i z e = " s m a l l "   i c o n = { < U s e r O u t l i n e d   / > }   s t y l e = { {   b a c k g r o u n d C o l o r :   ' # 8 7 d 0 6 8 '   } }   / > } 
 
                                 t i t l e = { 
 
                                     < s p a n   c l a s s N a m e = " t e x t - x s " > 
 
                                         < T e x t   s t r o n g > { p a t i e n t . p a t i e n t _ n a m e } < / T e x t > 
 
                                         < T a g   c l a s s N a m e = " m l - 1 " 
 
                                             i c o n = { p a t i e n t . t y p e   = = =   ' v i d e o '   ?   < V i d e o C a m e r a O u t l i n e d   / >   :   < M e s s a g e O u t l i n e d   / > } 
 
                                             c o l o r = { p a t i e n t . t y p e   = = =   ' v i d e o '   ?   ' b l u e '   :   ' g r e e n ' } 
 
                                         > 
 
                                             { p a t i e n t . t y p e   = = =   ' v i d e o '   ?   ' YtUv'   :   ' epg' } 
 
                                         < / T a g > 
 
                                         < s p a n   c l a s s N a m e = " t e x t - g r a y - 4 0 0   t e x t - [ 1 1 p x ]   m l - 1 " > ~
Y}  { f o r m a t W a i t i n g T i m e ( p a t i e n t . w a i t i n g _ s e c o n d s ) } < / s p a n > 
 
                                     < / s p a n > 
 
                                 } 
 
                                 d e s c r i p t i o n = { < s p a n   c l a s s N a m e = " t e x t - [ 1 1 p x ] " > mfvkp a t i e n t . c h i e f _ c o m p l a i n t   | |   ' ƓPh' } < / s p a n > } 
 
                             / > 
 
                         < / L i s t . I t e m > 
 
                     ) } 
 
                 / > 
 
             < / C a r d > 
 
         < / d i v > 
 
     ) ; 
 
 } ; 
 
 
 
 e x p o r t   d e f a u l t   D o c t o r W o r k b e n c h P a g e ; 
 
 
 
 