P H P U n i t   9 . 5 . 1 1   b y   S e b a s t i a n   B e r g m a n n   a n d   c o n t r i b u t o r s . 
 
 
 
 F F                                                                                                                                     2   /   2   ( 1 0 0 % ) 
 
 
 
 T i m e :   0 0 : 0 1 . 5 6 1 ,   M e m o r y :   3 6 . 0 0   M B 
 
 
 
 T h e r e   w e r e   2   f a i l u r e s : 
 
 
 
 1 )   T e s t s \ U n i t \ T e n a n t P e r m i s s i o n D i s a b l e d U i T e s t : : t e s t _ p e r m i s s i o n _ p r o t e c t e d _ s i d e b a r _ i t e m s _ a r e _ r e n d e r e d _ a s _ d i s a b l e d _ i n s t e a d _ o f _ h i d d e n 
 
 F a i l e d   a s s e r t i n g   t h a t   ' < ! D O C T Y P E   h t m l > \ n 
 
 < h t m l   l a n g = " { {   a p p ( ) - > g e t L o c a l e ( )   } } "   d i r = " { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' r t l '   :   ' l t r '   } } " > \ n 
 
 < h e a d > \ n 
 
         < m e t a   c h a r s e t = " U T F - 8 " > \ n 
 
         < m e t a   n a m e = " v i e w p o r t "   c o n t e n t = " w i d t h = d e v i c e - w i d t h ,   i n i t i a l - s c a l e = 1 . 0 " > \ n 
 
         < m e t a   n a m e = " c s r f - t o k e n "   c o n t e n t = " { {   c s r f _ t o k e n ( )   } } " > \ n 
 
         < s c r i p t > \ n 
 
                 t r y   { \ n 
 
                         i f   ( l o c a l S t o r a g e . g e t I t e m ( ' i w e n t a - s i d e b a r - c o l l a p s e d ' )   = = =   ' 1 '   & &   w i n d o w . m a t c h M e d i a ( ' ( m i n - w i d t h :   9 9 2 p x ) ' ) . m a t c h e s )   { \ n 
 
                                 d o c u m e n t . d o c u m e n t E l e m e n t . c l a s s L i s t . a d d ( ' s i d e b a r - c o l l a p s e d ' ) ; \ n 
 
                         } \ n 
 
                 }   c a t c h   ( e )   { } \ n 
 
         < / s c r i p t > \ n 
 
         < t i t l e > @ y i e l d ( ' t i t l e ' ,   _ _ ( ' D a s h b o a r d ' ) ) < / t i t l e > \ n 
 
         \ n 
 
         < ! - -   B o o t s t r a p   - - > \ n 
 
         @ i f ( a p p ( ) - > g e t L o c a l e ( )   = =   ' a r ' ) \ n 
 
         < l i n k   h r e f = " h t t p s : / / c d n . j s d e l i v r . n e t / n p m / b o o t s t r a p @ 5 . 3 . 0 / d i s t / c s s / b o o t s t r a p . r t l . m i n . c s s "   r e l = " s t y l e s h e e t " > \ n 
 
         @ e l s e \ n 
 
         < l i n k   h r e f = " h t t p s : / / c d n . j s d e l i v r . n e t / n p m / b o o t s t r a p @ 5 . 3 . 0 / d i s t / c s s / b o o t s t r a p . m i n . c s s "   r e l = " s t y l e s h e e t " > \ n 
 
         @ e n d i f \ n 
 
         \ n 
 
         < ! - -   F o n t   A w e s o m e   - - > \ n 
 
         < l i n k   r e l = " s t y l e s h e e t "   h r e f = " h t t p s : / / c d n j s . c l o u d f l a r e . c o m / a j a x / l i b s / f o n t - a w e s o m e / 6 . 4 . 0 / c s s / a l l . m i n . c s s " > \ n 
 
         \ n 
 
         < ! - -   G o o g l e   F o n t s   - - > \ n 
 
         @ i f ( a p p ( ) - > g e t L o c a l e ( )   = =   ' a r ' ) \ n 
 
         < l i n k   h r e f = " h t t p s : / / f o n t s . g o o g l e a p i s . c o m / c s s 2 ? f a m i l y = C a i r o : w g h t @ 3 0 0 ; 4 0 0 ; 6 0 0 ; 7 0 0 ; 8 0 0 & d i s p l a y = s w a p "   r e l = " s t y l e s h e e t " > \ n 
 
         @ e l s e \ n 
 
         < l i n k   h r e f = " h t t p s : / / f o n t s . g o o g l e a p i s . c o m / c s s 2 ? f a m i l y = I n t e r : w g h t @ 3 0 0 ; 4 0 0 ; 5 0 0 ; 6 0 0 ; 7 0 0 ; 8 0 0 & d i s p l a y = s w a p "   r e l = " s t y l e s h e e t " > \ n 
 
         @ e n d i f \ n 
 
         \ n 
 
         < s t y l e > \ n 
 
                 : r o o t   { \ n 
 
                         - - b s - p r i m a r y :   # 1 2 8 c 7 e ; \ n 
 
                         - - b s - p r i m a r y - r g b :   1 8 ,   1 4 0 ,   1 2 6 ; \ n 
 
                         - - b s - l i n k - c o l o r :   # 1 2 8 c 7 e ; \ n 
 
                         - - b s - l i n k - h o v e r - c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                 } \ n 
 
                 *   { \ n 
 
                         @ i f ( a p p ( ) - > g e t L o c a l e ( )   = =   ' a r ' ) \ n 
 
                         f o n t - f a m i l y :   ' C a i r o ' ,   s a n s - s e r i f ; \ n 
 
                         @ e l s e \ n 
 
                         f o n t - f a m i l y :   ' I n t e r ' ,   s a n s - s e r i f ; \ n 
 
                         @ e n d i f \ n 
 
                 } \ n 
 
                 \ n 
 
                 b o d y   { \ n 
 
                         b a c k g r o u n d :   # f 5 f 7 f a ; \ n 
 
                         o v e r f l o w - x :   h i d d e n ; \ n 
 
                 } \ n 
 
 \ n 
 
                 / *   D a s h b o a r d   l i n k s   s t a y   u n d e c o r a t e d   i n   e v e r y   i n t e r a c t i o n   s t a t e .   * / \ n 
 
                 . d a s h b o a r d - u i   a , \ n 
 
                 . d a s h b o a r d - u i   a : h o v e r , \ n 
 
                 . d a s h b o a r d - u i   a : f o c u s , \ n 
 
                 . d a s h b o a r d - u i   a : a c t i v e , \ n 
 
                 . d a s h b o a r d - u i   . b t n - l i n k , \ n 
 
                 . d a s h b o a r d - u i   [ r o l e = " b u t t o n " ] , \ n 
 
                 . d a s h b o a r d - u i   s u m m a r y   { \ n 
 
                         t e x t - d e c o r a t i o n :   n o n e   ! i m p o r t a n t ; \ n 
 
                 } \ n 
 
                 . d a s h b o a r d - u i   a : f o c u s - v i s i b l e   { \ n 
 
                         o u t l i n e :   2 p x   s o l i d   # 1 2 8 c 7 e ; \ n 
 
                         o u t l i n e - o f f s e t :   3 p x ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r   { \ n 
 
                         p o s i t i o n :   f i x e d ; \ n 
 
                         t o p :   0 ; \ n 
 
                         { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' r i g h t :   0 ; '   :   ' l e f t :   0 ; '   } } \ n 
 
                         b o t t o m :   0 ; \ n 
 
                         w i d t h :   2 6 0 p x ; \ n 
 
                         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 8 0 d e g ,   # 0 7 5 e 5 4   0 % ,   # 1 2 8 c 7 e   1 0 0 % ) ; \ n 
 
                         p a d d i n g :   0 ; \ n 
 
                         o v e r f l o w - y :   a u t o ; \ n 
 
                         b o x - s h a d o w :   2 p x   0   1 5 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; \ n 
 
                         z - i n d e x :   1 0 0 0 ; \ n 
 
                         t r a n s i t i o n :   w i d t h   0 . 2 2 s   e a s e ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r : : - w e b k i t - s c r o l l b a r   { \ n 
 
                         w i d t h :   6 p x ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r : : - w e b k i t - s c r o l l b a r - t r a c k   { \ n 
 
                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r : : - w e b k i t - s c r o l l b a r - t h u m b   { \ n 
 
                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 3 ) ; \ n 
 
                         b o r d e r - r a d i u s :   3 p x ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - h e a d e r   { \ n 
 
                         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 1 5 ) ; \ n 
 
                         p a d d i n g :   2 r e m   1 . 5 r e m ; \ n 
 
                         c o l o r :   w h i t e ; \ n 
 
                         t e x t - a l i g n :   c e n t e r ; \ n 
 
                         b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ; \ n 
 
                         p o s i t i o n :   r e l a t i v e ; \ n 
 
                 } \ n 
 
 \ n 
 
                 . s i d e b a r - c o l l a p s e - b t n   { \ n 
 
                         w i d t h :   3 0 p x ; \ n 
 
                         h e i g h t :   3 0 p x ; \ n 
 
                         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 8 ) ; \ n 
 
                         b o r d e r - r a d i u s :   5 0 % ; \ n 
 
                         d i s p l a y :   i n l i n e - f l e x ; \ n 
 
                         a l i g n - i t e m s :   c e n t e r ; \ n 
 
                         j u s t i f y - c o n t e n t :   c e n t e r ; \ n 
 
                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 2 ) ; \ n 
 
                         c o l o r :   # f f f ; \ n 
 
                         c u r s o r :   p o i n t e r ; \ n 
 
                         p o s i t i o n :   a b s o l u t e ; \ n 
 
                         t o p :   1 0 p x ; \ n 
 
                         { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' l e f t :   1 0 p x ; '   :   ' r i g h t :   1 0 p x ; '   } } \ n 
 
                         t r a n s i t i o n :   b a c k g r o u n d   0 . 1 5 s   e a s e ,   c o l o r   0 . 1 5 s   e a s e ,   b o r d e r - c o l o r   0 . 1 5 s   e a s e ; \ n 
 
                 } \ n 
 
 \ n 
 
                 . s i d e b a r - c o l l a p s e - b t n   i   { \ n 
 
                         t r a n s i t i o n :   t r a n s f o r m   0 . 2 2 s   e a s e ; \ n 
 
                         f o n t - s i z e :   0 . 7 5 r e m ; \ n 
 
                 } \ n 
 
 \ n 
 
                 . s i d e b a r - c o l l a p s e - b t n : h o v e r   { \ n 
 
                         b a c k g r o u n d :   # f f f ; \ n 
 
                         c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                         b o r d e r - c o l o r :   # f f f ; \ n 
 
                 } \ n 
 
 \ n 
 
                 @ m e d i a   ( m i n - w i d t h :   9 9 2 p x )   { \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r   { \ n 
 
                                 w i d t h :   7 6 p x ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . m a i n - c o n t e n t   { \ n 
 
                                 { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m a r g i n - r i g h t :   7 6 p x   ! i m p o r t a n t ;   m a r g i n - l e f t :   0   ! i m p o r t a n t ; '   :   ' m a r g i n - l e f t :   7 6 p x   ! i m p o r t a n t ;   m a r g i n - r i g h t :   0   ! i m p o r t a n t ; '   } } \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - h e a d e r   { \ n 
 
                                 p a d d i n g :   4 6 p x   8 p x   1 2 p x ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - l o g o   { \ n 
 
                                 m a x - w i d t h :   3 6 p x ; \ n 
 
                                 m a x - h e i g h t :   3 6 p x ; \ n 
 
                                 m a r g i n :   0   a u t o ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - h e a d e r   h 5 , \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - m e n u   >   d i v , \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - m e n u   >   f o r m , \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - m e n u   >   h r , \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - m e n u   a   >   s p a n : n o t ( . s i d e b a r - u n r e a d - c o u n t ) : n o t ( . v i s u a l l y - h i d d e n ) , \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . p e r m i s s i o n - l o c k   { \ n 
 
                                 d i s p l a y :   n o n e ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - m e n u   a   { \ n 
 
                                 j u s t i f y - c o n t e n t :   c e n t e r ; \ n 
 
                                 m a r g i n :   4 p x   1 0 p x ; \ n 
 
                                 p a d d i n g :   0 . 7 5 r e m   0 ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - m e n u   a   i   { \ n 
 
                                 m a r g i n :   0 ; \ n 
 
                                 w i d t h :   a u t o ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - m e n u   a : h o v e r   { \ n 
 
                                 t r a n s f o r m :   n o n e ; \ n 
 
                                 b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 2 ) ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - c o l l a p s e - b t n   { \ n 
 
                                 l e f t :   5 0 % ; \ n 
 
                                 r i g h t :   a u t o ; \ n 
 
                                 t r a n s f o r m :   t r a n s l a t e X ( - 5 0 % ) ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - c o l l a p s e - b t n   i   { \ n 
 
                                 t r a n s f o r m :   r o t a t e ( 1 8 0 d e g ) ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l . s i d e b a r - c o l l a p s e d   . s i d e b a r - c o l l a p s e - b t n : h o v e r   { \ n 
 
                                 b a c k g r o u n d :   # f f f ; \ n 
 
                                 c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                                 b o r d e r - c o l o r :   # f f f ; \ n 
 
                                 t r a n s f o r m :   t r a n s l a t e X ( - 5 0 % ) ; \ n 
 
                         } \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - h e a d e r   . s i d e b a r - l o g o   { \ n 
 
                         m a x - w i d t h :   1 5 0 p x ; \ n 
 
                         m a x - h e i g h t :   6 0 p x ; \ n 
 
                         w i d t h :   a u t o ; \ n 
 
                         h e i g h t :   a u t o ; \ n 
 
                         m a r g i n :   0   a u t o   1 r e m ; \ n 
 
                         d i s p l a y :   b l o c k ; \ n 
 
                         o b j e c t - f i t :   c o n t a i n ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 @ k e y f r a m e s   p u l s e   { \ n 
 
                         0 % ,   1 0 0 %   {   t r a n s f o r m :   s c a l e ( 1 ) ;   } \ n 
 
                         5 0 %   {   t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ;   } \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - h e a d e r   h 5   { \ n 
 
                         m a r g i n :   0 ; \ n 
 
                         f o n t - w e i g h t :   7 0 0 ; \ n 
 
                         f o n t - s i z e :   1 . 1 r e m ; \ n 
 
                         l e t t e r - s p a c i n g :   0 . 5 p x ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - m e n u   { \ n 
 
                         p a d d i n g :   1 . 5 r e m   0 ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - m e n u   a   { \ n 
 
                         d i s p l a y :   f l e x ; \ n 
 
                         a l i g n - i t e m s :   c e n t e r ; \ n 
 
                         p a d d i n g :   0 . 8 5 r e m   1 . 5 r e m ; \ n 
 
                         c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 8 5 ) ; \ n 
 
                         t e x t - d e c o r a t i o n :   n o n e ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ n 
 
                         m a r g i n :   0 . 2 5 r e m   0 . 7 5 r e m ; \ n 
 
                         b o r d e r - r a d i u s :   8 p x ; \ n 
 
                         f o n t - w e i g h t :   5 0 0 ; \ n 
 
                         f o n t - s i z e :   0 . 9 5 r e m ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - m e n u   a : h o v e r   { \ n 
 
                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 5 ) ; \ n 
 
                         c o l o r :   w h i t e ; \ n 
 
                         t r a n s f o r m :   t r a n s l a t e X ( { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' - 5 p x '   :   ' 5 p x '   } } ) ; \ n 
 
                         b o x - s h a d o w :   0   4 p x   1 0 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - m e n u   a . a c t i v e   { \ n 
 
                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ; \ n 
 
                         c o l o r :   w h i t e ; \ n 
 
                         b o x - s h a d o w :   0   4 p x   1 5 p x   r g b a ( 0 , 0 , 0 , 0 . 2 ) ; \ n 
 
                         { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' b o r d e r - r i g h t :   4 p x   s o l i d   # f f f ; '   :   ' b o r d e r - l e f t :   4 p x   s o l i d   # f f f ; '   } } \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - m e n u   a   i   { \ n 
 
                         w i d t h :   2 0 p x ; \ n 
 
                         { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m a r g i n - l e f t :   1 2 p x ; '   :   ' m a r g i n - r i g h t :   1 2 p x ; '   } } \ n 
 
                         t e x t - a l i g n :   c e n t e r ; \ n 
 
                         f o n t - s i z e :   1 . 1 r e m ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - m e n u   . b t n   { \ n 
 
                         m a r g i n :   0 . 2 5 r e m   0 . 7 5 r e m ; \ n 
 
                         p a d d i n g :   0 . 8 5 r e m   1 . 5 r e m ; \ n 
 
                         t e x t - a l i g n :   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' r i g h t '   :   ' l e f t '   } } ; \ n 
 
                         f o n t - w e i g h t :   5 0 0 ; \ n 
 
                         b o r d e r - r a d i u s :   8 p x ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - m e n u   . b t n : h o v e r   { \ n 
 
                         b a c k g r o u n d :   r g b a ( 2 2 0 , 5 3 , 6 9 , 0 . 2 )   ! i m p o r t a n t ; \ n 
 
                         t r a n s f o r m :   t r a n s l a t e X ( { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' - 5 p x '   :   ' 5 p x '   } } ) ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s i d e b a r - m e n u   . s i d e b a r - u n r e a d - c o u n t   { \ n 
 
                         m a r g i n - i n l i n e - s t a r t :   a u t o ; \ n 
 
                         f l e x - s h r i n k :   0 ; \ n 
 
                         m i n - w i d t h :   2 2 p x ; \ n 
 
                         p a d d i n g :   3 p x   7 p x ; \ n 
 
                         b o r d e r - r a d i u s :   9 9 9 p x ; \ n 
 
                         b a c k g r o u n d :   # d c 3 5 4 5 ; \ n 
 
                         c o l o r :   # f f f ; \ n 
 
                         f o n t - s i z e :   . 7 5 r e m ; \ n 
 
                         f o n t - w e i g h t :   7 0 0 ; \ n 
 
                         l i n e - h e i g h t :   1 . 3 ; \ n 
 
                         t e x t - a l i g n :   c e n t e r ; \ n 
 
                 } \ n 
 
                 . s i d e b a r - m e n u   . s i d e b a r - u n r e a d - c o u n t [ h i d d e n ]   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   } \ n 
 
 \ n 
 
                 . m a i n - c o n t e n t   { \ n 
 
                         { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m a r g i n - r i g h t :   2 6 0 p x ; '   :   ' m a r g i n - l e f t :   2 6 0 p x ; '   } } \ n 
 
                         p a d d i n g :   0 ; \ n 
 
                         m i n - h e i g h t :   1 0 0 v h ; \ n 
 
                         t r a n s i t i o n :   m a r g i n   0 . 2 2 s   e a s e ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . t o p - n a v b a r   { \ n 
 
                         b a c k g r o u n d :   w h i t e ; \ n 
 
                         p a d d i n g :   1 . 2 5 r e m   2 r e m ; \ n 
 
                         b o x - s h a d o w :   0   2 p x   8 p x   r g b a ( 0 , 0 , 0 , 0 . 0 8 ) ; \ n 
 
                         d i s p l a y :   f l e x ; \ n 
 
                         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; \ n 
 
                         a l i g n - i t e m s :   c e n t e r ; \ n 
 
                         m a r g i n - b o t t o m :   2 r e m ; \ n 
 
                         p o s i t i o n :   s t i c k y ; \ n 
 
                         t o p :   0 ; \ n 
 
                         z - i n d e x :   9 9 9 ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . t o p - n a v b a r   h 4   { \ n 
 
                         m a r g i n :   0 ; \ n 
 
                         c o l o r :   # 2 c 3 e 5 0 ; \ n 
 
                         f o n t - w e i g h t :   7 0 0 ; \ n 
 
                         f o n t - s i z e :   1 . 5 r e m ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . u s e r - d r o p d o w n   . b t n - l i n k   { \ n 
 
                         c o l o r :   # 2 c 3 e 5 0 ; \ n 
 
                         f o n t - w e i g h t :   6 0 0 ; \ n 
 
                         p a d d i n g :   0 . 5 r e m   1 r e m ; \ n 
 
                         b o r d e r - r a d i u s :   8 p x ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . u s e r - d r o p d o w n   . b t n - l i n k : h o v e r   { \ n 
 
                         b a c k g r o u n d :   # f 8 f 9 f a ; \ n 
 
                         c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . u s e r - d r o p d o w n   . d r o p d o w n - m e n u   { \ n 
 
                         b o r d e r :   n o n e ; \ n 
 
                         b o x - s h a d o w :   0   8 p x   2 4 p x   r g b a ( 0 , 0 , 0 , 0 . 1 5 ) ; \ n 
 
                         b o r d e r - r a d i u s :   1 2 p x ; \ n 
 
                         p a d d i n g :   0 . 5 r e m ; \ n 
 
                         m i n - w i d t h :   2 0 0 p x ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . u s e r - d r o p d o w n   . d r o p d o w n - i t e m   { \ n 
 
                         p a d d i n g :   0 . 7 5 r e m   1 r e m ; \ n 
 
                         b o r d e r - r a d i u s :   8 p x ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ n 
 
                         f o n t - w e i g h t :   5 0 0 ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . u s e r - d r o p d o w n   . d r o p d o w n - i t e m : h o v e r   { \ n 
 
                         b a c k g r o u n d :   # f 0 f 3 f 7 ; \ n 
 
                         c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . c o n t e n t - w r a p p e r   { \ n 
 
                         p a d d i n g :   0   2 r e m   2 r e m   2 r e m ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . c a r d   { \ n 
 
                         b o r d e r :   n o n e ; \ n 
 
                         b o x - s h a d o w :   0   2 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 8 ) ; \ n 
 
                         b o r d e r - r a d i u s :   1 2 p x ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ n 
 
                         o v e r f l o w :   h i d d e n ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . c a r d : h o v e r   { \ n 
 
                         b o x - s h a d o w :   0   8 p x   2 4 p x   r g b a ( 0 , 0 , 0 , 0 . 1 2 ) ; \ n 
 
                         t r a n s f o r m :   t r a n s l a t e Y ( - 4 p x ) ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . c a r d - h e a d e r   { \ n 
 
                         b a c k g r o u n d :   w h i t e ; \ n 
 
                         b o r d e r - b o t t o m :   2 p x   s o l i d   # f 0 f 3 f 7 ; \ n 
 
                         p a d d i n g :   1 . 2 5 r e m   1 . 5 r e m ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . c a r d - h e a d e r   h 5   { \ n 
 
                         m a r g i n :   0 ; \ n 
 
                         c o l o r :   # 2 c 3 e 5 0 ; \ n 
 
                         f o n t - w e i g h t :   7 0 0 ; \ n 
 
                         f o n t - s i z e :   1 . 1 5 r e m ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s t a t - c a r d   { \ n 
 
                         p a d d i n g :   2 r e m ; \ n 
 
                         b o r d e r - r a d i u s :   1 6 p x ; \ n 
 
                         c o l o r :   w h i t e ; \ n 
 
                         p o s i t i o n :   r e l a t i v e ; \ n 
 
                         o v e r f l o w :   h i d d e n ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s t a t - c a r d : : b e f o r e   { \ n 
 
                         c o n t e n t :   ' ' ; \ n 
 
                         p o s i t i o n :   a b s o l u t e ; \ n 
 
                         t o p :   - 5 0 % ; \ n 
 
                         { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' l e f t :   - 5 0 % ; '   :   ' r i g h t :   - 5 0 % ; '   } } \ n 
 
                         w i d t h :   2 0 0 % ; \ n 
 
                         h e i g h t :   2 0 0 % ; \ n 
 
                         b a c k g r o u n d :   r a d i a l - g r a d i e n t ( c i r c l e ,   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 )   0 % ,   t r a n s p a r e n t   7 0 % ) ; \ n 
 
                         a n i m a t i o n :   r i p p l e   1 5 s   i n f i n i t e ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 @ k e y f r a m e s   r i p p l e   { \ n 
 
                         0 % ,   1 0 0 %   {   t r a n s f o r m :   t r a n s l a t e ( 0 ,   0 ) ;   } \ n 
 
                         5 0 %   {   t r a n s f o r m :   t r a n s l a t e ( - 2 0 p x ,   - 2 0 p x ) ;   } \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s t a t - c a r d   h 3   { \ n 
 
                         f o n t - s i z e :   2 . 5 r e m ; \ n 
 
                         f o n t - w e i g h t :   8 0 0 ; \ n 
 
                         m a r g i n :   0 . 5 r e m   0 ; \ n 
 
                         t e x t - s h a d o w :   0   2 p x   4 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s t a t - c a r d   p   { \ n 
 
                         m a r g i n :   0 ; \ n 
 
                         f o n t - w e i g h t :   6 0 0 ; \ n 
 
                         o p a c i t y :   0 . 9 5 ; \ n 
 
                         f o n t - s i z e :   1 r e m ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . s t a t - c a r d   i   { \ n 
 
                         f o n t - s i z e :   2 . 5 r e m ; \ n 
 
                         o p a c i t y :   0 . 9 ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . a l e r t   { \ n 
 
                         b o r d e r :   n o n e ; \ n 
 
                         b o r d e r - r a d i u s :   1 2 p x ; \ n 
 
                         p a d d i n g :   1 r e m   1 . 5 r e m ; \ n 
 
                         b o x - s h a d o w :   0   2 p x   8 p x   r g b a ( 0 , 0 , 0 , 0 . 0 8 ) ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . a l e r t - s u c c e s s   { \ n 
 
                         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # d 4 e d d a   0 % ,   # c 3 e 6 c b   1 0 0 % ) ; \ n 
 
                         c o l o r :   # 1 5 5 7 2 4 ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . b t n - p r i m a r y   { \ n 
 
                         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 0 7 5 e 5 4   0 % ,   # 1 2 8 c 7 e   1 0 0 % ) ; \ n 
 
                         b o r d e r :   n o n e ; \ n 
 
                         p a d d i n g :   0 . 7 5 r e m   1 . 5 r e m ; \ n 
 
                         f o n t - w e i g h t :   6 0 0 ; \ n 
 
                         b o r d e r - r a d i u s :   1 0 p x ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . b t n - p r i m a r y : h o v e r   { \ n 
 
                         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 0 6 4 e 4 6   0 % ,   # 0 f 7 a 6 e   1 0 0 % ) ; \ n 
 
                         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; \ n 
 
                         b o x - s h a d o w :   0   8 p x   2 0 p x   r g b a ( 7 ,   9 4 ,   8 4 ,   0 . 4 ) ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . b t n - o u t l i n e - p r i m a r y   { \ n 
 
                         b o r d e r :   2 p x   s o l i d   # 1 2 8 c 7 e ; \ n 
 
                         c o l o r :   # 1 2 8 c 7 e ; \ n 
 
                         f o n t - w e i g h t :   6 0 0 ; \ n 
 
                         b o r d e r - r a d i u s :   1 0 p x ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 . b t n - o u t l i n e - p r i m a r y : h o v e r   { \ n 
 
                         b a c k g r o u n d :   # 1 2 8 c 7 e ; \ n 
 
                         b o r d e r - c o l o r :   # 1 2 8 c 7 e ; \ n 
 
                         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; \ n 
 
                         b o x - s h a d o w :   0   8 p x   2 0 p x   r g b a ( 1 8 ,   1 4 0 ,   1 2 6 ,   0 . 3 ) ; \ n 
 
                 } \ n 
 
                 \ n 
 
                 / *   R e s p o n s i v e      m o b i l e   s i d e b a r   d r a w e r   +   f u l l - w i d t h   c o n t e n t   * / \ n 
 
                 . a p p - s i d e b a r - t o g g l e   { \ n 
 
                         c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                         p a d d i n g :   0 . 3 5 r e m   0 . 5 r e m ; \ n 
 
                         l i n e - h e i g h t :   1 ; \ n 
 
                 } \ n 
 
 \ n 
 
                 . s i d e b a r - b a c k d r o p   { \ n 
 
                         d i s p l a y :   n o n e ; \ n 
 
                         p o s i t i o n :   f i x e d ; \ n 
 
                         i n s e t :   0 ; \ n 
 
                         b a c k g r o u n d :   r g b a ( 1 5 ,   2 3 ,   4 2 ,   0 . 4 5 ) ; \ n 
 
                         z - i n d e x :   9 9 9 ; \ n 
 
                 } \ n 
 
 \ n 
 
                 . s i d e b a r - b a c k d r o p . s h o w   { \ n 
 
                         d i s p l a y :   b l o c k ; \ n 
 
                 } \ n 
 
 \ n 
 
                 b o d y . s i d e b a r - o p e n   { \ n 
 
                         o v e r f l o w :   h i d d e n ; \ n 
 
                 } \ n 
 
 \ n 
 
                 @ m e d i a   ( m a x - w i d t h :   9 9 1 . 9 8 p x )   { \ n 
 
                         . s i d e b a r   { \ n 
 
                                 w i d t h :   m i n ( 2 8 0 p x ,   8 8 v w ) ; \ n 
 
                                 t r a n s f o r m :   t r a n s l a t e X ( - 1 1 0 % ) ; \ n 
 
                                 t r a n s i t i o n :   t r a n s f o r m   0 . 2 5 s   e a s e ; \ n 
 
                                 b o x - s h a d o w :   n o n e ; \ n 
 
                         } \ n 
 
 \ n 
 
                         h t m l [ d i r = " r t l " ]   . s i d e b a r   { \ n 
 
                                 t r a n s f o r m :   t r a n s l a t e X ( 1 1 0 % ) ; \ n 
 
                         } \ n 
 
 \ n 
 
                         . s i d e b a r . i s - o p e n   { \ n 
 
                                 t r a n s f o r m :   t r a n s l a t e X ( 0 ) ; \ n 
 
                                 b o x - s h a d o w :   0   0   2 4 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 2 5 ) ; \ n 
 
                         } \ n 
 
 \ n 
 
                         . m a i n - c o n t e n t   { \ n 
 
                                 m a r g i n - l e f t :   0   ! i m p o r t a n t ; \ n 
 
                                 m a r g i n - r i g h t :   0   ! i m p o r t a n t ; \ n 
 
                         } \ n 
 
 \ n 
 
                         . t o p - n a v b a r   { \ n 
 
                                 p a d d i n g :   0 . 8 5 r e m   1 r e m ; \ n 
 
                                 f l e x - w r a p :   w r a p ; \ n 
 
                                 g a p :   0 . 7 5 r e m ; \ n 
 
                         } \ n 
 
 \ n 
 
                         . t o p - n a v b a r   h 4   { \ n 
 
                                 f o n t - s i z e :   1 . 1 r e m ; \ n 
 
                         } \ n 
 
 \ n 
 
                         . t o p - n a v b a r - a c t i o n s   { \ n 
 
                                 f l e x - w r a p :   w r a p ; \ n 
 
                                 j u s t i f y - c o n t e n t :   f l e x - e n d ; \ n 
 
                         } \ n 
 
 \ n 
 
                         . u s e r - d r o p d o w n   . b t n - l i n k   s p a n   { \ n 
 
                                 d i s p l a y :   n o n e ; \ n 
 
                         } \ n 
 
 \ n 
 
                         . c o n t e n t - w r a p p e r   { \ n 
 
                                 p a d d i n g :   0   0 . 8 5 r e m   1 . 2 5 r e m   0 . 8 5 r e m ; \ n 
 
                         } \ n 
 
                 } \ n 
 
 \ n 
 
                 @ m e d i a   ( m a x - w i d t h :   5 7 5 . 9 8 p x )   { \ n 
 
                         . t o p - n a v b a r - a c t i o n s   . c u r r e n c y - s w i t c h e r - w r a p   { \ n 
 
                                 d i s p l a y :   n o n e ; \ n 
 
                         } \ n 
 
                 } \ n 
 
         < / s t y l e > \ n 
 
 \ n 
 
         < l i n k   r e l = " s t y l e s h e e t "   h r e f = " { {   a s s e t ( ' p u b l i c _ a s s e t s / m o d u l e s / w e b s i t e / c s s / w e b s i t e - r e s p o n s i v e . c s s ' )   } } ? v = 2 " > \ n 
 
         \ n 
 
         { { - -   P a g i n a t i o n   s t y l i n g   - - } } \ n 
 
         < s t y l e > \ n 
 
                 . p a g i n a t i o n   {   m a r g i n :   0 ;   g a p :   4 p x ;   f l e x - w r a p :   w r a p ;   j u s t i f y - c o n t e n t :   c e n t e r ;   } \ n 
 
                 . p a g e - i t e m   . p a g e - l i n k   { \ n 
 
                         b o r d e r :   1 p x   s o l i d   # e 2 e 8 f 0 ; \ n 
 
                         c o l o r :   # 4 a 5 5 6 8 ; \ n 
 
                         b o r d e r - r a d i u s :   8 p x   ! i m p o r t a n t ; \ n 
 
                         p a d d i n g :   6 p x   1 2 p x ; \ n 
 
                         f o n t - s i z e :   0 . 8 5 r e m ; \ n 
 
                         f o n t - w e i g h t :   5 0 0 ; \ n 
 
                         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; \ n 
 
                         m i n - w i d t h :   3 6 p x ; \ n 
 
                         t e x t - a l i g n :   c e n t e r ; \ n 
 
                         l i n e - h e i g h t :   1 . 4 ; \ n 
 
                         b a c k g r o u n d :   # f f f ; \ n 
 
                 } \ n 
 
                 . p a g e - i t e m   . p a g e - l i n k : h o v e r   { \ n 
 
                         b a c k g r o u n d :   # 0 7 5 e 5 4 ; \ n 
 
                         b o r d e r - c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                         c o l o r :   # f f f ; \ n 
 
                         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; \ n 
 
                         b o x - s h a d o w :   0   2 p x   6 p x   r g b a ( 7 , 9 4 , 8 4 , 0 . 2 5 ) ; \ n 
 
                 } \ n 
 
                 . p a g e - i t e m . a c t i v e   . p a g e - l i n k   { \ n 
 
                         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 0 7 5 e 5 4 ,   # 1 2 8 c 7 e ) ; \ n 
 
                         b o r d e r - c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                         c o l o r :   # f f f ; \ n 
 
                         b o x - s h a d o w :   0   2 p x   8 p x   r g b a ( 7 , 9 4 , 8 4 , 0 . 3 ) ; \ n 
 
                 } \ n 
 
                 . p a g e - i t e m . d i s a b l e d   . p a g e - l i n k   { \ n 
 
                         b a c k g r o u n d :   # f 8 f a f c ; \ n 
 
                         b o r d e r - c o l o r :   # e 2 e 8 f 0 ; \ n 
 
                         c o l o r :   # c b d 5 e 0 ; \ n 
 
                         c u r s o r :   n o t - a l l o w e d ; \ n 
 
                 } \ n 
 
                 . p a g e - i t e m : f i r s t - c h i l d   . p a g e - l i n k , \ n 
 
                 . p a g e - i t e m : l a s t - c h i l d   . p a g e - l i n k   { \ n 
 
                         b o r d e r - r a d i u s :   8 p x   ! i m p o r t a n t ; \ n 
 
                 } \ n 
 
                 . m a i n - c o n t e n t   . d t - c o n t a i n e r   {   p a d d i n g :   0 . 7 5 r e m   0 . 7 5 r e m   0 . 2 5 r e m ;   } \ n 
 
                 . m a i n - c o n t e n t   . d t - c o n t a i n e r   . d t - s e a r c h   i n p u t , \ n 
 
                 . m a i n - c o n t e n t   . d t - c o n t a i n e r   . d t - l e n g t h   s e l e c t   { \ n 
 
                         b o r d e r :   1 p x   s o l i d   # d 1 d 5 d b ; \ n 
 
                         b o r d e r - r a d i u s :   8 p x ; \ n 
 
                         p a d d i n g :   0 . 3 5 r e m   0 . 6 5 r e m ; \ n 
 
                         m a r g i n - i n l i n e - s t a r t :   0 . 3 5 r e m ; \ n 
 
                 } \ n 
 
                 . m a i n - c o n t e n t   . d t - c o n t a i n e r   . d t - b u t t o n s   {   d i s p l a y :   f l e x ;   f l e x - w r a p :   w r a p ;   g a p :   0 . 3 5 r e m ;   } \ n 
 
                 . m a i n - c o n t e n t   . d t - c o n t a i n e r   . d t - b u t t o n s   . b t n   { \ n 
 
                         b a c k g r o u n d :   # f f f ; \ n 
 
                         b o r d e r :   1 p x   s o l i d   # d 1 d 5 d b ; \ n 
 
                         c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                         b o r d e r - r a d i u s :   8 p x ; \ n 
 
                 } \ n 
 
                 . m a i n - c o n t e n t   . d t - c o n t a i n e r   . d t - b u t t o n s   . b t n : h o v e r , \ n 
 
                 . m a i n - c o n t e n t   . d t - c o n t a i n e r   . d t - b u t t o n s   . b t n : f o c u s   { \ n 
 
                         b a c k g r o u n d :   # 0 7 5 e 5 4 ; \ n 
 
                         b o r d e r - c o l o r :   # 0 7 5 e 5 4 ; \ n 
 
                         c o l o r :   # f f f ; \ n 
 
                 } \ n 
 
                 . m a i n - c o n t e n t   t a b l e . d a t a T a b l e   t h e a d   t h   {   p o s i t i o n :   r e l a t i v e ;   w h i t e - s p a c e :   n o w r a p ;   } \ n 
 
                 . i w - c o l - r e s i z e r   { \ n 
 
                         p o s i t i o n :   a b s o l u t e ; \ n 
 
                         t o p :   0 ; \ n 
 
                         b o t t o m :   0 ; \ n 
 
                         w i d t h :   8 p x ; \ n 
 
                         c u r s o r :   c o l - r e s i z e ; \ n 
 
                         z - i n d e x :   3 ; \ n 
 
                 } \ n 
 
                 h t m l [ d i r = " r t l " ]   . i w - c o l - r e s i z e r   {   l e f t :   0 ;   } \ n 
 
                 h t m l : n o t ( [ d i r = " r t l " ] )   . i w - c o l - r e s i z e r   {   r i g h t :   0 ;   } \ n 
 
         < / s t y l e > \ n 
 
         \ n 
 
         @ s t a c k ( ' s t y l e s ' ) \ n 
 
 \ n 
 
         < s t y l e > \ n 
 
                 . s i d e b a r - t e n a n t - b t n : h o v e r   { \ n 
 
                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 5 )   ! i m p o r t a n t ; \ n 
 
                         t r a n s f o r m :   t r a n s l a t e X ( { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' - 3 p x '   :   ' 3 p x '   } } ) ; \ n 
 
                 } \ n 
 
                 . s i d e b a r - t e n a n t - b t n . a c t i v e   { \ n 
 
                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 )   ! i m p o r t a n t ; \ n 
 
                         { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' b o r d e r - r i g h t :   3 p x   s o l i d   # 2 5 d 3 6 6 ; '   :   ' b o r d e r - l e f t :   3 p x   s o l i d   # 2 5 d 3 6 6 ; '   } } \ n 
 
                 } \ n 
 
         < / s t y l e > \ n 
 
         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . b u t t o n - s y s t e m ' ) \ n 
 
         < s t y l e > \ n 
 
                 . s i d e b a r - m e n u   a . p e r m i s s i o n - d i s a b l e d   { \ n 
 
                         o p a c i t y :   . 4 8 ; \ n 
 
                         c u r s o r :   n o t - a l l o w e d ; \ n 
 
                         f i l t e r :   g r a y s c a l e ( . 5 5 ) ; \ n 
 
                         b a c k g r o u n d :   t r a n s p a r e n t   ! i m p o r t a n t ; \ n 
 
                 } \ n 
 
                 . s i d e b a r - m e n u   a . p e r m i s s i o n - d i s a b l e d : h o v e r   {   c o l o r :   i n h e r i t ;   t r a n s f o r m :   n o n e ;   } \ n 
 
                 . s i d e b a r - m e n u   . p e r m i s s i o n - l o c k   {   m a r g i n - i n l i n e - s t a r t :   a u t o ;   w i d t h :   a u t o ;   f o n t - s i z e :   . 6 8 r e m ;   o p a c i t y :   . 8 5 ;   } \ n 
 
                 . s i d e b a r - c h a n n e l   { \ n 
 
                         p a d d i n g :   0 . 5 5 r e m   1 . 5 r e m   0 . 1 5 r e m ; \ n 
 
                         f o n t - s i z e :   0 . 7 2 r e m ; \ n 
 
                         f o n t - w e i g h t :   8 0 0 ; \ n 
 
                         l e t t e r - s p a c i n g :   0 . 0 8 e m ; \ n 
 
                         t e x t - t r a n s f o r m :   u p p e r c a s e ; \ n 
 
                 } \ n 
 
                 . s i d e b a r - c h a n n e l . s h a r e d   {   c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 5 5 ) ;   } \ n 
 
                 . s i d e b a r - c h a n n e l . w h a t s a p p   {   c o l o r :   # 7 d f f c 3 ;   } \ n 
 
                 . s i d e b a r - c h a n n e l . m e s s e n g e r   {   c o l o r :   # 9 e c 1 f f ;   } \ n 
 
                 . s i d e b a r - c h a n n e l . i n s t a g r a m   {   c o l o r :   # f f b 3 d 9 ;   } \ n 
 
                 . p e r m i s s i o n - d i s a b l e d - c o n t r o l   { \ n 
 
                         o p a c i t y :   . 5 5   ! i m p o r t a n t ; \ n 
 
                         c u r s o r :   n o t - a l l o w e d   ! i m p o r t a n t ; \ n 
 
                         f i l t e r :   g r a y s c a l e ( . 4 5 ) ; \ n 
 
                 } \ n 
 
         < / s t y l e > \ n 
 
 < / h e a d > \ n 
 
 < b o d y   c l a s s = " d a s h b o a r d - u i " > \ n 
 
 @ i n c l u d e ( ' c o r e : : p a r t i a l s . p a g e - l o a d e r ' ) \ n 
 
         < ! - -   S i d e b a r   - - > \ n 
 
         < d i v   c l a s s = " s i d e b a r "   i d = " a p p S i d e b a r " > \ n 
 
                 @ p h p \ n 
 
                         $ _ _ c u r r e n t R o u t e   =   \ R o u t e : : c u r r e n t R o u t e N a m e ( ) ; \ n 
 
                         $ _ _ s i d e b a r U s e r   =   A u t h : : u s e r ( ) ; \ n 
 
                         $ _ _ s i d e b a r T e n a n t s   =   $ _ _ s i d e b a r U s e r   ?   $ _ _ s i d e b a r U s e r - > a c t i v e T e n a n t s ( ) - > g e t ( )   :   c o l l e c t ( ) ; \ n 
 
                         $ _ _ s i d e b a r A c t i v e T e n a n t   =   $ _ _ s i d e b a r U s e r   ?   $ _ _ s i d e b a r U s e r - > g e t A c t i v e T e n a n t ( )   :   n u l l ; \ n 
 
 \ n 
 
                         $ _ _ t e n a n t I d   =   a c t i v e _ t e n a n t _ i d ( ) ; \ n 
 
                         $ _ _ u s e r   =   A u t h : : u s e r ( ) ; \ n 
 
 \ n 
 
                         $ _ _ c a n A u t o m a t i o n   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   ( \ n 
 
                                 $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' a u t o _ r e s p o n s e s . v i e w ' ,   $ _ _ t e n a n t I d ) \ n 
 
                                 | |   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' c h a t b o t _ f l o w s . v i e w ' ,   $ _ _ t e n a n t I d ) \ n 
 
                         ) ; \ n 
 
                         $ _ _ c a n F o r m s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' f o r m s . v i e w ' ,   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n C o n v e r s a t i o n s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   ( \ n 
 
                                 $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' c o n v e r s a t i o n s . v i e w _ a l l ' ,   $ _ _ t e n a n t I d ) \ n 
 
                                 | |   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' c o n v e r s a t i o n s . v i e w _ a s s i g n e d ' ,   $ _ _ t e n a n t I d ) \ n 
 
                         ) ; \ n 
 
                         $ _ _ c a n C o n t a c t s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' c o n t a c t s . v i e w ' ,   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n T e m p l a t e s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' t e m p l a t e s . v i e w ' ,   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n R e p o r t s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' r e p o r t s . v i e w ' ,   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n A p i C l i e n t s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' a p i _ c l i e n t s . v i e w ' ,   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n A g e n t s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' a g e n t s . v i e w ' ,   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n R o l e s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' u s e r s . m a n a g e ' ,   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n S e t t i n g s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' s e t t i n g s . m a n a g e ' ,   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n M e s s e n g e r   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   \ M o d u l e s \ M e s s e n g e r \ S u p p o r t \ M e s s e n g e r A c c e s s : : c a n V i e w I n b o x ( $ _ _ u s e r ,   ( i n t )   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n M a n a g e M e s s e n g e r   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   \ M o d u l e s \ M e s s e n g e r \ S u p p o r t \ M e s s e n g e r A c c e s s : : c a n M a n a g e ( $ _ _ u s e r ,   ( i n t )   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n M a n a g e I n s t a g r a m   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   \ M o d u l e s \ I n s t a g r a m \ S u p p o r t \ I n s t a g r a m A c c e s s : : c a n M a n a g e ( $ _ _ u s e r ,   ( i n t )   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n I n s t a g r a m   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   \ M o d u l e s \ I n s t a g r a m \ S u p p o r t \ I n s t a g r a m A c c e s s : : c a n V i e w I n b o x ( $ _ _ u s e r ,   ( i n t )   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n M a n a g e W h a t s a p p   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > h a s P e r m i s s i o n I n T e n a n t ( ' w h a t s a p p . m a n a g e ' ,   ( i n t )   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n C o n n e c t i o n s   =   $ _ _ c a n M a n a g e W h a t s a p p   | |   $ _ _ c a n M a n a g e M e s s e n g e r   | |   $ _ _ c a n M a n a g e I n s t a g r a m ; \ n 
 
                         $ _ _ c a n W o r k s p a c e A u t o m a t i o n   =   $ _ _ c a n A u t o m a t i o n   | |   $ _ _ c a n M a n a g e M e s s e n g e r   | |   $ _ _ c a n M a n a g e I n s t a g r a m ; \ n 
 
                         $ _ _ i n s t a g r a m C o n n e c t e d   =   ( $ _ _ c a n I n s t a g r a m   | |   $ _ _ c a n M a n a g e I n s t a g r a m )   & &   \ M o d u l e s \ I n s t a g r a m \ E n t i t i e s \ I n s t a g r a m C o n n e c t i o n : : f o r T e n a n t ( ( i n t )   $ _ _ t e n a n t I d ) - > c o n n e c t e d ( ) - > e x i s t s ( ) ; \ n 
 
                         $ _ _ c o n n e c t i o n s A c t i v e   =   $ _ _ c u r r e n t R o u t e   = = =   ' c o n n e c t i o n s . i n d e x ' \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' w h a t s a p p . c o n n e c t ' ) \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' w h a t s a p p . f a c e b o o k ' ) \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' m e s s e n g e r . c o n n e c t ' ) \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' m e s s e n g e r . o a u t h ' ) \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' m e s s e n g e r . c o n n e c t i o n ' ) \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' m e s s e n g e r . p a g e s ' ) \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' i n s t a g r a m . c o n n e c t ' ) \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' i n s t a g r a m . o a u t h ' ) \ n 
 
                                 | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' i n s t a g r a m . c o n n e c t i o n ' ) ; \ n 
 
                         $ _ _ c a n M e s s e n g e r R e p o r t s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   \ M o d u l e s \ M e s s e n g e r \ S u p p o r t \ M e s s e n g e r A c c e s s : : c a n V i e w R e p o r t s ( $ _ _ u s e r ,   ( i n t )   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n I n s t a g r a m R e p o r t s   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   \ M o d u l e s \ I n s t a g r a m \ S u p p o r t \ I n s t a g r a m A c c e s s : : c a n V i e w R e p o r t s ( $ _ _ u s e r ,   ( i n t )   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ c a n B i l l i n g   =   $ _ _ t e n a n t I d   & &   $ _ _ u s e r   & &   $ _ _ u s e r - > o w n s T e n a n t ( ( i n t )   $ _ _ t e n a n t I d ) ; \ n 
 
                         $ _ _ h o m e U r l   =   $ _ _ c a n R e p o r t s   ?   r o u t e ( ' h o m e . p a g e ' )   :   r o u t e ( ' d a s h b o a r d ' ) ; \ n 
 
                         $ _ _ m e m b e r s U r l   =   $ _ _ s i d e b a r A c t i v e T e n a n t \ n 
 
                                 ?   r o u t e ( ' t e n a n t s . s h o w ' ,   $ _ _ s i d e b a r A c t i v e T e n a n t - > i d )   .   ' # t e n a n t - m e m b e r s ' \ n 
 
                                 :   n u l l ; \ n 
 
                         $ _ _ m e m b e r s R o u t e A c t i v e   =   i n _ a r r a y ( $ _ _ c u r r e n t R o u t e ,   [ \ n 
 
                                 ' t e n a n t s . s h o w ' ,   ' t e n a n t s . i n v i t e ' ,   ' t e n a n t s . i n v i t e . p o s t ' , \ n 
 
                                 ' t e n a n t s . u s e r s . u p d a t e - r o l e ' ,   ' t e n a n t s . u s e r s . t o g g l e ' , \ n 
 
                                 ' t e n a n t s . u s e r s . r e m o v e ' ,   ' t e n a n t s . u s e r s . p e r m i s s i o n s ' , \ n 
 
                         ] ,   t r u e ) ; \ n 
 
                 @ e n d p h p \ n 
 
                 < d i v   c l a s s = " s i d e b a r - h e a d e r " > \ n 
 
                         < b u t t o n   t y p e = " b u t t o n "   c l a s s = " s i d e b a r - c o l l a p s e - b t n "   i d = " s i d e b a r C o l l a p s e B t n "   a r i a - l a b e l = " { {   _ _ ( ' H i d e   s i d e b a r ' )   } } "   a r i a - e x p a n d e d = " t r u e "   a r i a - c o n t r o l s = " a p p S i d e b a r " > \ n 
 
                                 < i   c l a s s = " f a s   f a - c h e v r o n - { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' r i g h t '   :   ' l e f t '   } } " > < / i > \ n 
 
                         < / b u t t o n > \ n 
 
                         < a   h r e f = " { {   $ _ _ h o m e U r l   } } "   c l a s s = " d - b l o c k   t e x t - d e c o r a t i o n - n o n e " > \ n 
 
                                 < i m g   s r c = " { {   a s s e t ( ' p u b l i c _ a s s e t s / t e m p / l o g o . p n g ' )   } } "   a l t = " { {   c o n f i g ( ' a p p . n a m e ' ,   ' i w e n t a ' )   } } "   c l a s s = " s i d e b a r - l o g o " > \ n 
 
                       \ n 
 
                         < / a > \ n 
 
                         { { - -   < i m g   s r c = " { { a s s e t ( ' p u b l i c _ a s s e t s / m o d u l e s / i w n t a t h e m e / a s s e t s / i m a g e s / w h a t s a p p . w e b p ' ) } } "   a l t = " { {   c o n f i g ( ' a p p . n a m e ' ,   ' i w e n t a ' )   } } "   c l a s s = " s i d e b a r - l o g o " >   - - } } \ n 
 
   \ n 
 
                         < h 5 > { {   c o n f i g ( ' a p p . n a m e ' ,   ' i w e n t a ' )   } } < / h 5 > \ n 
 
                 < / d i v > \ n 
 
                 \ n 
 
                 < d i v   c l a s s = " s i d e b a r - m e n u " > \ n 
 
 \ n 
 
               \ n 
 
                         < a   h r e f = " { {   r o u t e ( ' d a s h b o a r d ' )   } } "   c l a s s = " { {   $ _ _ c u r r e n t R o u t e   = =   ' d a s h b o a r d '   ?   ' a c t i v e '   :   ' '   } } " > \ n 
 
                                 < i   c l a s s = " f a s   f a - t a c h o m e t e r - a l t " > < / i > \ n 
 
                                 < s p a n > { {   _ _ ( ' D a s h b o a r d ' )   } } < / s p a n > \ n 
 
                         < / a > \ n 
 
 \ n 
 
                               @ i f ( $ _ _ s i d e b a r T e n a n t s - > c o u n t ( )   >   0 ) \ n 
 
                                 < d i v   c l a s s = " t e n a n t - s w i t c h e r - l a b e l " > \ n 
 
                                         < i   c l a s s = " f a s   f a - b u i l d i n g   m e - 1 " > < / i > \ n 
 
                                         { {   _ _ ( ' M y   T e n a n t s ' )   } } \ n 
 
                                 < / d i v > \ n 
 
                                 < f o r m   a c t i o n = " { {   r o u t e ( ' t e n a n t . s w i t c h ' )   } } "   m e t h o d = " P O S T "   c l a s s = " w - 1 0 0 "   i d = " t e n a n t - s w i t c h e r - f o r m " > \ n 
 
                                         @ c s r f \ n 
 
                                         < d i v   c l a s s = " t e n a n t - s w i t c h e r - c o n t r o l " > \ n 
 
                                                 < i n p u t   t y p e = " h i d d e n "   n a m e = " i d "   i d = " t e n a n t - s w i t c h e r - i d "   v a l u e = " { {   $ _ _ s i d e b a r A c t i v e T e n a n t - > i d   ? ?   ' '   } } " > \ n 
 
                                                 < b u t t o n   c l a s s = " t e n a n t - s w i t c h e r - b u t t o n "   t y p e = " b u t t o n "   d a t a - b s - t o g g l e = " d r o p d o w n "   a r i a - e x p a n d e d = " f a l s e " > \ n 
 
                                                         < s p a n   c l a s s = " t e n a n t - s w i t c h e r - c u r r e n t " > \ n 
 
                                                                 < s p a n   c l a s s = " t e n a n t - s w i t c h e r - c u r r e n t - i c o n " > < i   c l a s s = " f a s   f a - b u i l d i n g " > < / i > < / s p a n > \ n 
 
                                                                 < s p a n   c l a s s = " t e n a n t - s w i t c h e r - c u r r e n t - t e x t " > \ n 
 
                                                                         < s t r o n g > { {   $ _ _ s i d e b a r A c t i v e T e n a n t - > n a m e   ? ?   _ _ ( ' S e l e c t   T e n a n t ' )   } } < / s t r o n g > \ n 
 
                                                                         @ i f ( $ _ _ s i d e b a r A c t i v e T e n a n t ) \ n 
 
                                                                         < s m a l l > { {   $ _ _ s i d e b a r U s e r - > o w n s T e n a n t ( $ _ _ s i d e b a r A c t i v e T e n a n t - > i d )   ?   _ _ ( ' O w n e r ' )   :   _ _ ( ' S h a r e d   m e m b e r ' )   } } < / s m a l l > \ n 
 
                                                                         @ e n d i f \ n 
 
                                                                 < / s p a n > \ n 
 
                                                         < / s p a n > \ n 
 
                                                         < i   c l a s s = " f a s   f a - c h e v r o n - d o w n   t e n a n t - s w i t c h e r - c h e v r o n " > < / i > \ n 
 
                                                 < / b u t t o n > \ n 
 
                                                 < d i v   c l a s s = " d r o p d o w n - m e n u   t e n a n t - s w i t c h e r - m e n u " > \ n 
 
                                                         @ f o r e a c h ( $ _ _ s i d e b a r T e n a n t s   a s   $ _ _ s T e n a n t ) \ n 
 
                                                                 @ p h p \ n 
 
                                                                         $ _ _ t e n a n t I s O w n e r   =   $ _ _ s i d e b a r U s e r - > o w n s T e n a n t ( $ _ _ s T e n a n t - > i d ) ; \ n 
 
                                                                         $ _ _ t e n a n t R o l e L a b e l   =   $ _ _ t e n a n t I s O w n e r   ?   _ _ ( ' O w n e r ' )   :   _ _ ( ' S h a r e d   m e m b e r ' ) ; \ n 
 
                                                                         $ _ _ t e n a n t I s A c t i v e   =   $ _ _ s i d e b a r A c t i v e T e n a n t   & &   $ _ _ s i d e b a r A c t i v e T e n a n t - > i d   = =   $ _ _ s T e n a n t - > i d ; \ n 
 
                                                                 @ e n d p h p \ n 
 
                                                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " d r o p d o w n - i t e m   t e n a n t - s w i t c h e r - o p t i o n   { {   $ _ _ t e n a n t I s A c t i v e   ?   ' a c t i v e '   :   ' '   } } " \ n 
 
                                                                                 d a t a - t e n a n t - i d = " { {   $ _ _ s T e n a n t - > i d   } } " > \ n 
 
                                                                         < s p a n   c l a s s = " t e n a n t - o p t i o n - i c o n " > < i   c l a s s = " f a s   { {   $ _ _ t e n a n t I s O w n e r   ?   ' f a - b u i l d i n g '   :   ' f a - u s e r s '   } } " > < / i > < / s p a n > \ n 
 
                                                                         < s p a n   c l a s s = " t e n a n t - o p t i o n - t e x t " > \ n 
 
                                                                                 < s t r o n g > { {   $ _ _ s T e n a n t - > n a m e   } } < / s t r o n g > \ n 
 
                                                                                 < s m a l l > { {   $ _ _ t e n a n t R o l e L a b e l   } } < / s m a l l > \ n 
 
                                                                         < / s p a n > \ n 
 
                                                                         @ i f ( $ _ _ t e n a n t I s A c t i v e ) < i   c l a s s = " f a s   f a - c h e c k - c i r c l e   t e n a n t - o p t i o n - c h e c k " > < / i > @ e n d i f \ n 
 
                                                                 < / b u t t o n > \ n 
 
                                                         @ e n d f o r e a c h \ n 
 
                                                 < / d i v > \ n 
 
                                         < / d i v > \ n 
 
                                 < / f o r m > \ n 
 
                                 < s t y l e > \ n 
 
                                 . t e n a n t - s w i t c h e r - l a b e l   { \ n 
 
                                         p a d d i n g :   0 . 4 5 r e m   1 . 5 r e m   0 . 3 r e m ; \ n 
 
                                         c o l o r :   # f f f ; \ n 
 
                                         f o n t - s i z e :   0 . 7 2 r e m ; \ n 
 
                                         f o n t - w e i g h t :   7 0 0 ; \ n 
 
                                         t e x t - t r a n s f o r m :   u p p e r c a s e ; \ n 
 
                                         l e t t e r - s p a c i n g :   1 p x ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - c o n t r o l   { \ n 
 
                                         p o s i t i o n :   r e l a t i v e ; \ n 
 
                                         m a r g i n :   0 . 3 r e m   0 . 7 5 r e m   0 . 8 r e m ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - b u t t o n   { \ n 
 
                                         w i d t h :   1 0 0 % ; \ n 
 
                                         d i s p l a y :   f l e x ; \ n 
 
                                         a l i g n - i t e m s :   c e n t e r ; \ n 
 
                                         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; \ n 
 
                                         g a p :   0 . 6 5 r e m ; \ n 
 
                                         b o r d e r - r a d i u s :   1 0 p x ; \ n 
 
                                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 4 ) ; \ n 
 
                                         c o l o r :   # f f f ; \ n 
 
                                         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 4 5 ) ; \ n 
 
                                         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 1 2 ) ; \ n 
 
                                         p a d d i n g :   0 . 6 5 r e m   0 . 7 5 r e m ; \ n 
 
                                         t e x t - a l i g n :   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' r i g h t '   :   ' l e f t '   } } ; \ n 
 
                                         t r a n s i t i o n :   b a c k g r o u n d - c o l o r   0 . 2 s ,   b o r d e r - c o l o r   0 . 2 s ,   b o x - s h a d o w   0 . 2 s ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - b u t t o n : h o v e r , \ n 
 
                                 . t e n a n t - s w i t c h e r - b u t t o n [ a r i a - e x p a n d e d = " t r u e " ]   { \ n 
 
                                         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 3 ) ; \ n 
 
                                         b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 7 5 ) ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - b u t t o n : f o c u s   { \ n 
 
                                         o u t l i n e :   n o n e ; \ n 
 
                                         b o r d e r - c o l o r :   # f f f ; \ n 
 
                                         b o x - s h a d o w :   0   0   0   0 . 2 r e m   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 4 ) ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - c u r r e n t , \ n 
 
                                 . t e n a n t - s w i t c h e r - o p t i o n   { \ n 
 
                                         d i s p l a y :   f l e x ; \ n 
 
                                         a l i g n - i t e m s :   c e n t e r ; \ n 
 
                                         m i n - w i d t h :   0 ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - c u r r e n t   {   g a p :   0 . 6 r e m ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - c u r r e n t - i c o n , \ n 
 
                                 . t e n a n t - o p t i o n - i c o n   { \ n 
 
                                         w i d t h :   3 2 p x ; \ n 
 
                                         h e i g h t :   3 2 p x ; \ n 
 
                                         b o r d e r - r a d i u s :   8 p x ; \ n 
 
                                         d i s p l a y :   i n l i n e - f l e x ; \ n 
 
                                         a l i g n - i t e m s :   c e n t e r ; \ n 
 
                                         j u s t i f y - c o n t e n t :   c e n t e r ; \ n 
 
                                         f l e x :   0   0   3 2 p x ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - c u r r e n t - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 8 ) ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - c u r r e n t - t e x t , \ n 
 
                                 . t e n a n t - o p t i o n - t e x t   {   d i s p l a y :   f l e x ;   f l e x - d i r e c t i o n :   c o l u m n ;   m i n - w i d t h :   0 ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - c u r r e n t - t e x t   s t r o n g , \ n 
 
                                 . t e n a n t - o p t i o n - t e x t   s t r o n g   {   f o n t - s i z e :   0 . 8 6 r e m ;   w h i t e - s p a c e :   n o w r a p ;   o v e r f l o w :   h i d d e n ;   t e x t - o v e r f l o w :   e l l i p s i s ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - c u r r e n t - t e x t   s m a l l   {   c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 7 ) ;   f o n t - s i z e :   0 . 6 8 r e m ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - c h e v r o n   {   f o n t - s i z e :   0 . 7 2 r e m ;   t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - b u t t o n [ a r i a - e x p a n d e d = " t r u e " ]   . t e n a n t - s w i t c h e r - c h e v r o n   {   t r a n s f o r m :   r o t a t e ( 1 8 0 d e g ) ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - m e n u   { \ n 
 
                                         w i d t h :   1 0 0 % ; \ n 
 
                                         m a x - h e i g h t :   3 1 0 p x ; \ n 
 
                                         o v e r f l o w - y :   a u t o ; \ n 
 
                                         p a d d i n g :   0 . 4 r e m ; \ n 
 
                                         b o r d e r :   0 ; \ n 
 
                                         b o r d e r - r a d i u s :   1 2 p x ; \ n 
 
                                         b o x - s h a d o w :   0   1 4 p x   3 5 p x   r g b a ( 0 , 0 , 0 , 0 . 2 5 ) ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - o p t i o n   { \ n 
 
                                         p o s i t i o n :   r e l a t i v e ; \ n 
 
                                         g a p :   0 . 6 5 r e m ; \ n 
 
                                         p a d d i n g :   0 . 6 5 r e m ; \ n 
 
                                         m a r g i n - b o t t o m :   0 . 2 r e m ; \ n 
 
                                         b o r d e r - r a d i u s :   9 p x ; \ n 
 
                                         c o l o r :   # 3 3 4 1 5 5 ; \ n 
 
                                 } \ n 
 
                                 . t e n a n t - s w i t c h e r - o p t i o n : l a s t - c h i l d   {   m a r g i n - b o t t o m :   0 ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - o p t i o n : h o v e r   {   b a c k g r o u n d :   # e e f b f 6 ;   c o l o r :   # 0 7 5 e 5 4 ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - o p t i o n . a c t i v e , \ n 
 
                                 . t e n a n t - s w i t c h e r - o p t i o n . a c t i v e : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g , # 0 7 5 e 5 4 , # 1 2 8 c 7 e ) ;   c o l o r :   # f f f ;   } \ n 
 
                                 . t e n a n t - o p t i o n - i c o n   {   b a c k g r o u n d :   # e 8 f 5 f 1 ;   c o l o r :   # 1 2 8 c 7 e ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - o p t i o n . a c t i v e   . t e n a n t - o p t i o n - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 8 ) ;   c o l o r :   # f f f ;   } \ n 
 
                                 . t e n a n t - o p t i o n - t e x t   s m a l l   {   c o l o r :   # 9 4 a 3 b 8 ;   f o n t - s i z e :   0 . 6 8 r e m ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - o p t i o n . a c t i v e   . t e n a n t - o p t i o n - t e x t   s m a l l   {   c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 7 5 ) ;   } \ n 
 
                                 . t e n a n t - o p t i o n - c h e c k   {   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m a r g i n - r i g h t : a u t o ; '   :   ' m a r g i n - l e f t : a u t o ; '   } }   } \ n 
 
                                 . t e n a n t - s w i t c h e r - m e n u : : - w e b k i t - s c r o l l b a r   {   w i d t h :   5 p x ;   } \ n 
 
                                 . t e n a n t - s w i t c h e r - m e n u : : - w e b k i t - s c r o l l b a r - t h u m b   {   b a c k g r o u n d :   # c b d 5 e 1 ;   b o r d e r - r a d i u s :   1 0 p x ;   } \ n 
 
                                 @ m e d i a   ( m a x - w i d t h :   7 6 7 . 9 8 p x )   { \ n 
 
                                         . t e n a n t - s w i t c h e r - m e n u   {   p o s i t i o n :   f i x e d   ! i m p o r t a n t ;   i n s e t :   a u t o   1 2 p x   1 2 p x   1 2 p x   ! i m p o r t a n t ;   w i d t h :   a u t o ;   t r a n s f o r m :   n o n e   ! i m p o r t a n t ;   } \ n 
 
                                 } \ n 
 
                                 < / s t y l e > \ n 
 
                                 < s c r i p t > \ n 
 
                                 d o c u m e n t . a d d E v e n t L i s t e n e r ( ' D O M C o n t e n t L o a d e d ' ,   f u n c t i o n   ( )   { \ n 
 
                                         v a r   f o r m   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' t e n a n t - s w i t c h e r - f o r m ' ) ; \ n 
 
                                         i f   ( ! f o r m )   r e t u r n ; \ n 
 
                                         f o r m . q u e r y S e l e c t o r A l l ( ' [ d a t a - t e n a n t - i d ] ' ) . f o r E a c h ( f u n c t i o n   ( o p t i o n )   { \ n 
 
                                                 o p t i o n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( )   { \ n 
 
                                                         d o c u m e n t . g e t E l e m e n t B y I d ( ' t e n a n t - s w i t c h e r - i d ' ) . v a l u e   =   t h i s . d a t a s e t . t e n a n t I d ; \ n 
 
                                                         f o r m . s u b m i t ( ) ; \ n 
 
                                                 } ) ; \ n 
 
                                         } ) ; \ n 
 
                                 } ) ; \ n 
 
                                 < / s c r i p t > \ n 
 
                                 < a   h r e f = " { {   r o u t e ( ' t e n a n t s . c r e a t e ' )   } } "   c l a s s = " { {   $ _ _ c u r r e n t R o u t e   = =   ' t e n a n t s . c r e a t e '   ?   ' a c t i v e '   :   ' '   } } "   s t y l e = " f o n t - s i z e :   0 . 8 5 r e m ;   p a d d i n g :   0 . 5 r e m   1 . 5 r e m ;   o p a c i t y :   0 . 7 ; " > \ n 
 
                                         < i   c l a s s = " f a s   f a - p l u s "   s t y l e = " w i d t h :   2 0 p x ;   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m a r g i n - l e f t :   1 2 p x ; '   :   ' m a r g i n - r i g h t :   1 2 p x ; '   } }   t e x t - a l i g n :   c e n t e r ; " > < / i > \ n 
 
                                         < s p a n > { {   _ _ ( ' C r e a t e   T e n a n t ' )   } } < / s p a n > \ n 
 
                                 < / a > \ n 
 
                         @ e n d i f \ n 
 
                         \ n 
 
                             < h r   s t y l e = " b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   m a r g i n :   0 . 5 r e m   0 . 7 5 r e m ; " > \ n 
 
                         < d i v   s t y l e = " p a d d i n g :   0 . 4 r e m   1 . 5 r e m   0 . 2 r e m ;   c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 5 ) ;   f o n t - s i z e :   0 . 7 5 r e m ;   f o n t - w e i g h t :   7 0 0 ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   l e t t e r - s p a c i n g :   1 p x ; " > \ n 
 
                                 { {   _ _ ( ' B i l l i n g ' )   } } \ n 
 
                         < / d i v > \ n 
 
 \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n B i l l i n g ,   ' h r e f ' = > r o u t e ( ' b a l a n c e . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' b a l a n c e . ' ) ,   ' i c o n ' = > ' f a s   f a - w a l l e t ' ,   ' l a b e l ' = > _ _ ( ' B a l a n c e ' ) ,   ' p e r m i s s i o n ' = > ' T e n a n t   o w n e r ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n B i l l i n g ,   ' h r e f ' = > r o u t e ( ' b i l l i n g . i n d e x ' ) ,   ' a c t i v e ' = > $ _ _ c u r r e n t R o u t e   = =   ' b i l l i n g . i n d e x ' ,   ' i c o n ' = > ' f a s   f a - c r o w n ' ,   ' l a b e l ' = > _ _ ( ' P r i c i n g   P l a n s ' ) ,   ' p e r m i s s i o n ' = > ' T e n a n t   o w n e r ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n B i l l i n g ,   ' h r e f ' = > r o u t e ( ' b i l l i n g . p a y m e n t s ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' b i l l i n g . ' )   & &   $ _ _ c u r r e n t R o u t e   ! =   ' b i l l i n g . i n d e x ' ,   ' i c o n ' = > ' f a s   f a - f i l e - i n v o i c e - d o l l a r ' ,   ' l a b e l ' = > _ _ ( ' P a y m e n t s ' ) ,   ' p e r m i s s i o n ' = > ' T e n a n t   o w n e r ' ] ) \ n 
 
 \ n 
 
                         < h r   s t y l e = " b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   m a r g i n :   0 . 5 r e m   0 . 7 5 r e m ; " > \ n 
 
                         < d i v   s t y l e = " p a d d i n g :   0 . 4 r e m   1 . 5 r e m   0 . 2 r e m ;   c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 5 ) ;   f o n t - s i z e :   0 . 7 5 r e m ;   f o n t - w e i g h t :   7 0 0 ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   l e t t e r - s p a c i n g :   1 p x ; " > \ n 
 
                                 { {   _ _ ( ' W o r k s p a c e ' )   } } \ n 
 
                         < / d i v > \ n 
 
 \ n 
 
                         < a   h r e f = " { {   r o u t e ( ' t e n a n t s . i n d e x ' )   } } "   c l a s s = " { {   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' t e n a n t s . ' )   & &   ! $ _ _ m e m b e r s R o u t e A c t i v e   ?   ' a c t i v e '   :   ' '   } } " > \ n 
 
                                 < i   c l a s s = " f a s   f a - b u i l d i n g " > < / i > \ n 
 
                                 < s p a n > { {   _ _ ( ' T e n a n t s ' )   } } < / s p a n > \ n 
 
                         < / a > \ n 
 
 \ n 
 
                         @ i f ( $ _ _ m e m b e r s U r l ) \ n 
 
                         < a   h r e f = " { {   $ _ _ m e m b e r s U r l   } } "   c l a s s = " { {   $ _ _ m e m b e r s R o u t e A c t i v e   ?   ' a c t i v e '   :   ' '   } } " > \ n 
 
                                 < i   c l a s s = " f a s   f a - u s e r - f r i e n d s " > < / i > \ n 
 
                                 < s p a n > { {   _ _ ( ' M e m b e r s ' )   } } < / s p a n > \ n 
 
                         < / a > \ n 
 
                         @ e n d i f \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n R o l e s ,   ' h r e f ' = > r o u t e ( ' r b a c . r o l e s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' r b a c . ' ) ,   ' i c o n ' = > ' f a s   f a - u s e r - s h i e l d ' ,   ' l a b e l ' = > _ _ ( ' R o l e s   &   P e r m i s s i o n s ' ) ,   ' p e r m i s s i o n ' = > ' u s e r s . m a n a g e ' ] ) \ n 
 
                         @ i f ( $ _ _ t e n a n t I d ) \ n 
 
                         < a   h r e f = " { {   r o u t e ( ' i n t e g r a t i o n s . c o n n e c t o r s . i n d e x ' )   } } "   c l a s s = " { {   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' i n t e g r a t i o n s . ' )   ?   ' a c t i v e '   :   ' '   } } " > \ n 
 
                                 < i   c l a s s = " f a s   f a - p l u g " > < / i > \ n 
 
                                 < s p a n > { {   _ _ ( ' I n t e g r a t i o n s ' )   } } < / s p a n > \ n 
 
                         < / a > \ n 
 
                         @ i f ( \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' i n t e g r a t i o n s . ' ) ) \ n 
 
                         < a   h r e f = " { {   r o u t e ( ' i n t e g r a t i o n s . s y n c ' )   } } "   c l a s s = " { {   $ _ _ c u r r e n t R o u t e   = = =   ' i n t e g r a t i o n s . s y n c '   ?   ' a c t i v e '   :   ' '   } } "   s t y l e = " p a d d i n g - i n l i n e - s t a r t : 2 . 5 r e m ; f o n t - s i z e : 0 . 8 5 r e m ; " > \ n 
 
                                 < i   c l a s s = " f a s   f a - s y n c - a l t "   s t y l e = " f o n t - s i z e : 0 . 8 r e m ; " > < / i > \ n 
 
                                 < s p a n > { {   _ _ ( ' S y n c   M o n i t o r ' )   } } < / s p a n > \ n 
 
                         < / a > \ n 
 
                         @ e n d i f \ n 
 
                         @ e n d i f \ n 
 
                         < a   h r e f = " { {   r o u t e ( ' n o t i f i c a t i o n s . i n d e x ' )   } } "   c l a s s = " { {   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' n o t i f i c a t i o n s . ' )   ?   ' a c t i v e '   :   ' '   } } " > \ n 
 
                                 < i   c l a s s = " f a s   f a - b e l l " > < / i > \ n 
 
                                 < s p a n > { {   _ _ ( ' N o t i f i c a t i o n s ' )   } } < / s p a n > \ n 
 
                         < / a > \ n 
 
 \ n 
 
                         < h r   s t y l e = " b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   m a r g i n :   0 . 5 r e m   0 . 7 5 r e m ; " > \ n 
 
                         < d i v   c l a s s = " s i d e b a r - c h a n n e l   s h a r e d " > { {   _ _ ( ' I n b o x ' )   } } < / d i v > \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n R e p o r t s ,   ' h r e f ' = > r o u t e ( ' h o m e . p a g e ' ) ,   ' a c t i v e ' = > $ _ _ c u r r e n t R o u t e   = =   ' h o m e . p a g e ' ,   ' i c o n ' = > ' f a s   f a - h o m e ' ,   ' l a b e l ' = > _ _ ( ' H o m e ' ) ,   ' p e r m i s s i o n ' = > ' r e p o r t s . v i e w ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n C o n v e r s a t i o n s   | |   $ _ _ c a n M e s s e n g e r   | |   $ _ _ c a n I n s t a g r a m ,   ' h r e f ' = > r o u t e ( ' i n b o x . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' i n b o x . ' ) ,   ' i c o n ' = > ' f a s   f a - i n b o x ' ,   ' l a b e l ' = > _ _ ( ' C o m b i n e d   i n b o x ' ) ,   ' p e r m i s s i o n ' = > ' c o n v e r s a t i o n s . v i e w _ a l l   /   c o n v e r s a t i o n s . v i e w _ a s s i g n e d   /   m e s s e n g e r . v i e w _ a l l   /   m e s s e n g e r . v i e w _ a s s i g n e d   /   i n s t a g r a m . v i e w _ a l l   /   i n s t a g r a m . v i e w _ a s s i g n e d ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n C o n n e c t i o n s ,   ' h r e f ' = > r o u t e ( ' c o n n e c t i o n s . i n d e x ' ) ,   ' a c t i v e ' = > $ _ _ c o n n e c t i o n s A c t i v e ,   ' i c o n ' = > ' f a s   f a - l i n k ' ,   ' l a b e l ' = > _ _ ( ' C o n n e c t i o n   s e t t i n g s ' ) ,   ' p e r m i s s i o n ' = > ' w h a t s a p p . m a n a g e   /   m e s s e n g e r . m a n a g e   /   i n s t a g r a m . m a n a g e ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n A g e n t s ,   ' h r e f ' = > r o u t e ( ' a g e n t s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' a g e n t s . ' ) ,   ' i c o n ' = > ' f a s   f a - b r a i n ' ,   ' l a b e l ' = > _ _ ( ' A I   A g e n t s ' ) ,   ' p e r m i s s i o n ' = > ' a g e n t s . v i e w ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n W o r k s p a c e A u t o m a t i o n ,   ' h r e f ' = > $ _ _ c a n A u t o m a t i o n   ?   r o u t e ( ' a u t o m a t i o n . d a s h b o a r d ' )   :   ( $ _ _ c a n M a n a g e M e s s e n g e r   ?   r o u t e ( ' m e s s e n g e r . a u t o m a t i o n s . i n d e x ' )   :   r o u t e ( ' i n s t a g r a m . a u t o m a t i o n s . i n d e x ' ) ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' a u t o m a t i o n . ' )   | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' m e s s e n g e r . a u t o m a t i o n s . ' )   | |   \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' i n s t a g r a m . a u t o m a t i o n s . ' ) ,   ' i c o n ' = > ' f a s   f a - b o l t ' ,   ' l a b e l ' = > _ _ ( ' A u t o m a t i o n ' ) ,   ' p e r m i s s i o n ' = > ' a u t o _ r e s p o n s e s . v i e w   /   c h a t b o t _ f l o w s . v i e w   /   m e s s e n g e r . m a n a g e   /   i n s t a g r a m . m a n a g e ' ] ) \ n 
 
 \ n 
 
                         < h r   s t y l e = " b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   m a r g i n :   0 . 5 r e m   0 . 7 5 r e m ; " > \ n 
 
                         < d i v   c l a s s = " s i d e b a r - c h a n n e l   w h a t s a p p " > { {   _ _ ( ' W h a t s A p p ' )   } } < / d i v > \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n C o n v e r s a t i o n s ,   ' h r e f ' = > r o u t e ( ' c o n v e r s a t i o n s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' c o n v e r s a t i o n s . ' ) ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' C h a t s ' ) ,   ' p e r m i s s i o n ' = > ' c o n v e r s a t i o n s . v i e w _ a l l   /   c o n v e r s a t i o n s . v i e w _ a s s i g n e d ' ,   ' u n r e a d ' = > ' c o n v e r s a t i o n s ' ,   ' u n r e a d T i t l e ' = > _ _ ( ' U n r e a d   W h a t s A p p   c o n v e r s a t i o n s ' ) ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n C o n t a c t s ,   ' h r e f ' = > r o u t e ( ' c o n t a c t s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' c o n t a c t s . ' ) ,   ' i c o n ' = > ' f a s   f a - u s e r s ' ,   ' l a b e l ' = > _ _ ( ' C o n t a c t s ' ) ,   ' p e r m i s s i o n ' = > ' c o n t a c t s . v i e w ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n C o n t a c t s ,   ' h r e f ' = > r o u t e ( ' c o n t a c t - g r o u p s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' c o n t a c t - g r o u p s . ' ) ,   ' i c o n ' = > ' f a s   f a - l a y e r - g r o u p ' ,   ' l a b e l ' = > _ _ ( ' C o n t a c t   G r o u p s ' ) ,   ' p e r m i s s i o n ' = > ' c o n t a c t s . v i e w ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n C o n t a c t s ,   ' h r e f ' = > r o u t e ( ' c a m p a i g n s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' c a m p a i g n s . ' ) ,   ' i c o n ' = > ' f a s   f a - b u l l h o r n ' ,   ' l a b e l ' = > _ _ ( ' C a m p a i g n s ' ) ,   ' p e r m i s s i o n ' = > ' c o n t a c t s . v i e w ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n T e m p l a t e s ,   ' h r e f ' = > r o u t e ( ' t e m p l a t e s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' t e m p l a t e s . ' ) ,   ' i c o n ' = > ' f a s   f a - f i l e - a l t ' ,   ' l a b e l ' = > _ _ ( ' T e m p l a t e s ' ) ,   ' p e r m i s s i o n ' = > ' t e m p l a t e s . v i e w ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n F o r m s ,   ' h r e f ' = > r o u t e ( ' f o r m s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' f o r m s . ' )   & &   ! \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' f o r m s . p u b l i c . ' ) ,   ' i c o n ' = > ' f a s   f a - w p f o r m s ' ,   ' l a b e l ' = > _ _ ( ' F o r m s ' ) ,   ' p e r m i s s i o n ' = > ' f o r m s . v i e w ' ,   ' u n r e a d ' = > ' f o r m s ' ,   ' u n r e a d T i t l e ' = > _ _ ( ' U n r e a d   s u b m i s s i o n s ' ) ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n A p i C l i e n t s ,   ' h r e f ' = > r o u t e ( ' a p i - c l i e n t s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' a p i - c l i e n t s . ' ) ,   ' i c o n ' = > ' f a s   f a - k e y ' ,   ' l a b e l ' = > _ _ ( ' A P I   C l i e n t s ' ) ,   ' p e r m i s s i o n ' = > ' a p i _ c l i e n t s . v i e w ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n R e p o r t s ,   ' h r e f ' = > r o u t e ( ' r e p o r t s . i n d e x ' ,   [ ' c h a n n e l '   = >   ' w h a t s a p p ' ] ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' r e p o r t s . ' )   & &   r e q u e s t ( ) - > q u e r y ( ' c h a n n e l ' ,   ' w h a t s a p p ' )   = = =   ' w h a t s a p p ' ,   ' i c o n ' = > ' f a s   f a - c h a r t - c o l u m n ' ,   ' l a b e l ' = > _ _ ( ' R e p o r t s ' ) ,   ' p e r m i s s i o n ' = > ' r e p o r t s . v i e w ' ] ) \ n 
 
 \ n 
 
                         < h r   s t y l e = " b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   m a r g i n :   0 . 5 r e m   0 . 7 5 r e m ; " > \ n 
 
                         < d i v   c l a s s = " s i d e b a r - c h a n n e l   m e s s e n g e r " > { {   _ _ ( ' M e s s e n g e r ' )   } } < / d i v > \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n M e s s e n g e r ,   ' h r e f ' = > r o u t e ( ' m e s s e n g e r . c o n v e r s a t i o n s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' m e s s e n g e r . c o n v e r s a t i o n s . ' ) ,   ' i c o n ' = > ' f a b   f a - f a c e b o o k - m e s s e n g e r ' ,   ' l a b e l ' = > _ _ ( ' C h a t s ' ) ,   ' p e r m i s s i o n ' = > ' m e s s e n g e r . v i e w _ a l l   /   m e s s e n g e r . v i e w _ a s s i g n e d ' ,   ' u n r e a d ' = > ' m e s s e n g e r ' ,   ' u n r e a d T i t l e ' = > _ _ ( ' U n r e a d   M e s s e n g e r   c o n v e r s a t i o n s ' ) ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n M a n a g e M e s s e n g e r ,   ' h r e f ' = > r o u t e ( ' m e s s e n g e r . c a m p a i g n s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' m e s s e n g e r . c a m p a i g n s . ' ) ,   ' i c o n ' = > ' f a s   f a - b u l l h o r n ' ,   ' l a b e l ' = > _ _ ( ' C a m p a i g n s ' ) ,   ' p e r m i s s i o n ' = > ' m e s s e n g e r . m a n a g e ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n M a n a g e M e s s e n g e r ,   ' h r e f ' = > r o u t e ( ' m e s s e n g e r . o p e r a t i o n s . i n d e x ' ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' m e s s e n g e r . o p e r a t i o n s . ' ) ,   ' i c o n ' = > ' f a s   f a - h e a r t - p u l s e ' ,   ' l a b e l ' = > _ _ ( ' m e s s e n g e r : : m e s s a g e s . t a b _ o p e r a t i o n s ' ) ,   ' p e r m i s s i o n ' = > ' m e s s e n g e r . m a n a g e ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n M e s s e n g e r R e p o r t s ,   ' h r e f ' = > r o u t e ( ' r e p o r t s . i n d e x ' ,   [ ' c h a n n e l '   = >   ' m e s s e n g e r ' ] ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' r e p o r t s . ' )   & &   r e q u e s t ( ) - > q u e r y ( ' c h a n n e l ' )   = = =   ' m e s s e n g e r ' ,   ' i c o n ' = > ' f a s   f a - c h a r t - c o l u m n ' ,   ' l a b e l ' = > _ _ ( ' R e p o r t s ' ) ,   ' p e r m i s s i o n ' = > ' m e s s e n g e r . r e p o r t s ' ] ) \ n 
 
 \ n 
 
                         < h r   s t y l e = " b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   m a r g i n :   0 . 5 r e m   0 . 7 5 r e m ; " > \ n 
 
                         < d i v   c l a s s = " s i d e b a r - c h a n n e l   i n s t a g r a m " > { {   _ _ ( ' I n s t a g r a m ' )   } } < / d i v > \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n I n s t a g r a m   | |   $ _ _ c a n M a n a g e I n s t a g r a m ,   ' h r e f ' = > $ _ _ c a n I n s t a g r a m   ?   r o u t e ( ' i n s t a g r a m . c o n v e r s a t i o n s . i n d e x ' )   :   r o u t e ( ' c o n n e c t i o n s . i n d e x ' ) . ' # i n s t a g r a m ' ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' i n s t a g r a m . c o n v e r s a t i o n s . ' ) ,   ' i c o n ' = > ' f a b   f a - i n s t a g r a m ' ,   ' l a b e l ' = > _ _ ( ' C h a t s ' ) ,   ' p e r m i s s i o n ' = > ' i n s t a g r a m . v i e w _ a l l   /   i n s t a g r a m . v i e w _ a s s i g n e d   /   i n s t a g r a m . m a n a g e ' ] ) \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . s i d e b a r - p e r m i s s i o n - l i n k ' ,   [ ' a l l o w e d ' = > $ _ _ c a n I n s t a g r a m R e p o r t s ,   ' h r e f ' = > r o u t e ( ' r e p o r t s . i n d e x ' ,   [ ' c h a n n e l '   = >   ' i n s t a g r a m ' ] ) ,   ' a c t i v e ' = > \ I l l u m i n a t e \ S u p p o r t \ S t r : : s t a r t s W i t h ( $ _ _ c u r r e n t R o u t e ,   ' r e p o r t s . ' )   & &   r e q u e s t ( ) - > q u e r y ( ' c h a n n e l ' )   = = =   ' i n s t a g r a m ' ,   ' i c o n ' = > ' f a s   f a - c h a r t - c o l u m n ' ,   ' l a b e l ' = > _ _ ( ' R e p o r t s ' ) ,   ' p e r m i s s i o n ' = > ' i n s t a g r a m . r e p o r t s ' ] ) \ n 
 
 \ n 
 
                         { { - -   @ i f ( $ _ _ c a n S e t t i n g s ) \ n 
 
                         < a   h r e f = " # " > \ n 
 
                                 < i   c l a s s = " f a s   f a - c o g " > < / i > \ n 
 
                                 < s p a n > { {   _ _ ( ' S e t t i n g s ' )   } } < / s p a n > \ n 
 
                         < / a > \ n 
 
                         @ e n d i f   - - } } \ n 
 
                         \ n 
 
                         < h r   s t y l e = " b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   m a r g i n :   1 r e m   0 . 7 5 r e m ; " > \ n 
 
 { { - -                           \ n 
 
                         < f o r m   a c t i o n = " { {   r o u t e ( ' l o g o u t ' )   } } "   m e t h o d = " P O S T " > \ n 
 
                                 @ c s r f \ n 
 
                                 < b u t t o n   t y p e = " s u b m i t "   c l a s s = " b t n   w - 1 0 0   t e x t - w h i t e   d - f l e x   a l i g n - i t e m s - c e n t e r "   s t y l e = " b a c k g r o u n d :   t r a n s p a r e n t ;   b o r d e r :   n o n e ; " > \ n 
 
                                         < i   c l a s s = " f a s   f a - s i g n - o u t - a l t "   s t y l e = " w i d t h :   2 0 p x ;   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m a r g i n - l e f t :   1 2 p x ; '   :   ' m a r g i n - r i g h t :   1 2 p x ; '   } }   t e x t - a l i g n :   c e n t e r ; " > < / i > \ n 
 
                                         < s p a n > { {   _ _ ( ' L o g o u t ' )   } } < / s p a n > \ n 
 
                                 < / b u t t o n > \ n 
 
                         < / f o r m >   - - } } \ n 
 
                 < / d i v > \ n 
 
         < / d i v > \ n 
 
 \ n 
 
         < d i v   c l a s s = " s i d e b a r - b a c k d r o p "   i d = " a p p S i d e b a r B a c k d r o p "   a r i a - h i d d e n = " t r u e " > < / d i v > \ n 
 
 \ n 
 
         < ! - -   M a i n   C o n t e n t   - - > \ n 
 
         < d i v   c l a s s = " m a i n - c o n t e n t " > \ n 
 
                 < ! - -   T o p   N a v b a r   - - > \ n 
 
                 < d i v   c l a s s = " t o p - n a v b a r " > \ n 
 
                         < d i v   c l a s s = " d - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 2   f l e x - g r o w - 1   m i n - w - 0 " > \ n 
 
                                 < b u t t o n   t y p e = " b u t t o n " \ n 
 
                                                 c l a s s = " b t n   b t n - l i n k   a p p - s i d e b a r - t o g g l e   d - l g - n o n e " \ n 
 
                                                 i d = " a p p S i d e b a r T o g g l e " \ n 
 
                                                 a r i a - l a b e l = " { {   _ _ ( ' M e n u ' )   } } " \ n 
 
                                                 a r i a - e x p a n d e d = " f a l s e " \ n 
 
                                                 a r i a - c o n t r o l s = " a p p S i d e b a r " > \ n 
 
                                         < i   c l a s s = " f a s   f a - b a r s   f a - l g " > < / i > \ n 
 
                                 < / b u t t o n > \ n 
 
                                 < h 4   c l a s s = " m b - 0   t e x t - t r u n c a t e " > @ y i e l d ( ' p a g e - t i t l e ' ,   _ _ ( ' D a s h b o a r d ' ) ) < / h 4 > \ n 
 
                         < / d i v > \ n 
 
                         < d i v   c l a s s = " d - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 2   g a p - m d - 3   f l e x - s h r i n k - 0   t o p - n a v b a r - a c t i o n s " > \ n 
 
                                 < d i v   c l a s s = " c u r r e n c y - s w i t c h e r - w r a p " > \ n 
 
                                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . c u r r e n c y - s w i t c h e r ' ) \ n 
 
                                 < / d i v > \ n 
 
 \ n 
 
                                 < ! - -   T e n a n t   S w i t c h e r   - - > \ n 
 
                                 @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . t e n a n t - s w i t c h e r ' ) \ n 
 
                                 \ n 
 
                                 < ! - -   N o t i f i c a t i o n   B e l l   - - > \ n 
 
                                 @ a u t h \ n 
 
                                 @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . n o t i f i c a t i o n - b e l l ' ) \ n 
 
                                 @ e n d a u t h \ n 
 
                                 \ n 
 
                                 < ! - -   U s e r   D r o p d o w n   - - > \ n 
 
                                 < d i v   c l a s s = " u s e r - d r o p d o w n " > \ n 
 
                                         < b u t t o n   c l a s s = " b t n   b t n - l i n k   t e x t - d e c o r a t i o n - n o n e   d r o p d o w n - t o g g l e "   t y p e = " b u t t o n "   d a t a - b s - t o g g l e = " d r o p d o w n " > \ n 
 
                                                 < i   c l a s s = " f a s   f a - u s e r - c i r c l e   f a - l g " > < / i > \ n 
 
                                                 < s p a n   c l a s s = " { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m e - 2 '   :   ' m s - 2 '   } } " > { {   A u t h : : u s e r ( ) - > n a m e   } } < / s p a n > \ n 
 
                                         < / b u t t o n > \ n 
 
                                         < u l   c l a s s = " d r o p d o w n - m e n u   d r o p d o w n - m e n u - e n d " > \ n 
 
                                                 < l i > < a   c l a s s = " d r o p d o w n - i t e m "   h r e f = " { {   r o u t e ( ' p r o f i l e . e d i t ' )   } } " > < i   c l a s s = " f a s   f a - u s e r   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m s - 2 '   :   ' m e - 2 '   } } " > < / i >   { {   _ _ ( ' P r o f i l e ' )   } } < / a > < / l i > \ n 
 
                                                 { { - -   < l i > < a   c l a s s = " d r o p d o w n - i t e m "   h r e f = " # " > < i   c l a s s = " f a s   f a - c o g   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m s - 2 '   :   ' m e - 2 '   } } " > < / i >   { {   _ _ ( ' S e t t i n g s ' )   } } < / a > < / l i >   - - } } \ n 
 
                                                 < l i > < h r   c l a s s = " d r o p d o w n - d i v i d e r " > < / l i > \ n 
 
                                                 < l i > \ n 
 
                                                         < f o r m   a c t i o n = " { {   r o u t e ( ' l o g o u t ' )   } } "   m e t h o d = " P O S T " > \ n 
 
                                                                 @ c s r f \ n 
 
                                                                 < b u t t o n   t y p e = " s u b m i t "   c l a s s = " d r o p d o w n - i t e m " > \ n 
 
                                                                         < i   c l a s s = " f a s   f a - s i g n - o u t - a l t   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m s - 2 '   :   ' m e - 2 '   } } " > < / i >   { {   _ _ ( ' L o g o u t ' )   } } \ n 
 
                                                                 < / b u t t o n > \ n 
 
                                                         < / f o r m > \ n 
 
                                                 < / l i > \ n 
 
                                         < / u l > \ n 
 
                                 < / d i v > \ n 
 
                         < / d i v > \ n 
 
                 < / d i v > \ n 
 
 \ n 
 
                 < d i v   c l a s s = " c o n t e n t - w r a p p e r " > \ n 
 
                         { { - -   B r e a d c r u m b   - - } } \ n 
 
                         @ h a s S e c t i o n ( ' b r e a d c r u m b ' ) \ n 
 
                         < n a v   a r i a - l a b e l = " b r e a d c r u m b "   c l a s s = " m b - 3 " > \ n 
 
                                 < o l   c l a s s = " b r e a d c r u m b   m b - 0 "   s t y l e = " f o n t - s i z e :   0 . 8 5 r e m ; " > \ n 
 
                                         < l i   c l a s s = " b r e a d c r u m b - i t e m " > < a   h r e f = " { {   $ _ _ h o m e U r l   } } "   c l a s s = " t e x t - d e c o r a t i o n - n o n e " > < i   c l a s s = " f a s   f a - h o m e " > < / i > < / a > < / l i > \ n 
 
                                         @ y i e l d ( ' b r e a d c r u m b ' ) \ n 
 
                                 < / o l > \ n 
 
                         < / n a v > \ n 
 
                         @ e n d i f \ n 
 
 \ n 
 
                         < ! - -   S u c c e s s   M e s s a g e s   - - > \ n 
 
                         @ i f ( s e s s i o n ( ' s u c c e s s ' ) ) \ n 
 
                         < d i v   c l a s s = " a l e r t   a l e r t - s u c c e s s   a l e r t - d i s m i s s i b l e   f a d e   s h o w "   r o l e = " a l e r t " > \ n 
 
                                 < i   c l a s s = " f a s   f a - c h e c k - c i r c l e   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m s - 2 '   :   ' m e - 2 '   } } " > < / i >   { {   s e s s i o n ( ' s u c c e s s ' )   } } \ n 
 
                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n - c l o s e "   d a t a - b s - d i s m i s s = " a l e r t " > < / b u t t o n > \ n 
 
                         < / d i v > \ n 
 
                         @ e n d i f \ n 
 
 \ n 
 
                         < ! - -   E r r o r   M e s s a g e s   - - > \ n 
 
                         @ i f ( s e s s i o n ( ' e r r o r ' ) ) \ n 
 
                         < d i v   c l a s s = " a l e r t   a l e r t - d a n g e r   a l e r t - d i s m i s s i b l e   f a d e   s h o w "   r o l e = " a l e r t " > \ n 
 
                                 < i   c l a s s = " f a s   f a - e x c l a m a t i o n - t r i a n g l e   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m s - 2 '   :   ' m e - 2 '   } } " > < / i >   { {   s e s s i o n ( ' e r r o r ' )   } } \ n 
 
                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n - c l o s e "   d a t a - b s - d i s m i s s = " a l e r t " > < / b u t t o n > \ n 
 
                         < / d i v > \ n 
 
                         @ e n d i f \ n 
 
 \ n 
 
                         < ! - -   W a r n i n g   M e s s a g e s   - - > \ n 
 
                         @ i f ( s e s s i o n ( ' w a r n i n g ' ) ) \ n 
 
                         < d i v   c l a s s = " a l e r t   a l e r t - w a r n i n g   a l e r t - d i s m i s s i b l e   f a d e   s h o w "   r o l e = " a l e r t " > \ n 
 
                                 < i   c l a s s = " f a s   f a - e x c l a m a t i o n - c i r c l e   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m s - 2 '   :   ' m e - 2 '   } } " > < / i >   { {   s e s s i o n ( ' w a r n i n g ' )   } } \ n 
 
                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n - c l o s e "   d a t a - b s - d i s m i s s = " a l e r t " > < / b u t t o n > \ n 
 
                         < / d i v > \ n 
 
                         @ e n d i f \ n 
 
 \ n 
 
                         @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . w h a t s a p p - d i s c o n n e c t e d - a l e r t ' ) \ n 
 
 \ n 
 
                         < ! - -   L o w   B a l a n c e   A l e r t   - - > \ n 
 
                         @ a u t h \ n 
 
                         @ p h p \ n 
 
                                 $ _ _ b a l a n c e T e n a n t   =   $ _ _ s i d e b a r A c t i v e T e n a n t   ? ?   n u l l ; \ n 
 
                                 $ _ _ b a l a n c e T h r e s h o l d   =   ( $ _ _ b a l a n c e T e n a n t   & &   i s s e t ( $ _ _ b a l a n c e T e n a n t - > m e t a [ ' b a l a n c e _ a l e r t _ t h r e s h o l d ' ] ) )   \ n 
 
                                         ?   ( f l o a t )   $ _ _ b a l a n c e T e n a n t - > m e t a [ ' b a l a n c e _ a l e r t _ t h r e s h o l d ' ]   \ n 
 
                                         :   n u l l ; \ n 
 
                                 $ _ _ b a l a n c e C u r r e n t   =   $ _ _ b a l a n c e T e n a n t   ?   ( f l o a t )   $ _ _ b a l a n c e T e n a n t - > b a l a n c e   :   n u l l ; \ n 
 
                         @ e n d p h p \ n 
 
                         @ i f ( $ _ _ s i d e b a r A c t i v e T e n a n t   & &   $ _ _ s i d e b a r U s e r   & &   $ _ _ s i d e b a r U s e r - > o w n s T e n a n t ( $ _ _ s i d e b a r A c t i v e T e n a n t - > i d )   & &   $ _ _ b a l a n c e T e n a n t   & &   $ _ _ b a l a n c e T h r e s h o l d   ! = =   n u l l   & &   $ _ _ b a l a n c e C u r r e n t   ! = =   n u l l   & &   $ _ _ b a l a n c e C u r r e n t   < =   $ _ _ b a l a n c e T h r e s h o l d ) \ n 
 
                         < d i v   c l a s s = " a l e r t   a l e r t - w a r n i n g   a l e r t - d i s m i s s i b l e   f a d e   s h o w   d - f l e x   a l i g n - i t e m s - c e n t e r "   r o l e = " a l e r t "   s t y l e = " b o r d e r - l e f t :   4 p x   s o l i d   # f 5 9 e 0 b   ! i m p o r t a n t ;   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # f e f 3 c d   0 % ,   # f f f 8 e 1   1 0 0 % ) ; " > \ n 
 
                                 < i   c l a s s = " f a s   f a - e x c l a m a t i o n - t r i a n g l e   f a - l g   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m s - 3 '   :   ' m e - 3 '   } } "   s t y l e = " c o l o r :   # f 5 9 e 0 b ; " > < / i > \ n 
 
                                 < d i v   c l a s s = " f l e x - g r o w - 1 " > \ n 
 
                                         < s t r o n g > { {   _ _ ( ' B a l a n c e   i s   r u n n i n g   l o w ! ' )   } } < / s t r o n g > \ n 
 
                                         { {   _ _ ( ' C u r r e n t :   : c u r r e n t      A l e r t   t h r e s h o l d :   : t h r e s h o l d ' ,   [ \ n 
 
                                                 ' c u r r e n t '   = >   d i s p l a y _ m o n e y ( $ _ _ b a l a n c e C u r r e n t ) , \ n 
 
                                                 ' t h r e s h o l d '   = >   d i s p l a y _ m o n e y ( $ _ _ b a l a n c e T h r e s h o l d ) , \ n 
 
                                         ] )   } } \ n 
 
                                         < a   h r e f = " { {   r o u t e ( ' b a l a n c e . i n d e x ' )   } } "   c l a s s = " b t n   b t n - s m   b t n - w a r n i n g   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m e - 2 '   :   ' m s - 2 '   } } "   s t y l e = " f o n t - w e i g h t :   6 0 0 ; " > \ n 
 
                                                 < i   c l a s s = " f a s   f a - w a l l e t   { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' m s - 1 '   :   ' m e - 1 '   } } " > < / i > { {   _ _ ( ' T o p   U p ' )   } } \ n 
 
                                         < / a > \ n 
 
                                 < / d i v > \ n 
 
                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n - c l o s e "   d a t a - b s - d i s m i s s = " a l e r t " > < / b u t t o n > \ n 
 
                         < / d i v > \ n 
 
                         @ e n d i f \ n 
 
                         @ e n d a u t h \ n 
 
 \ n 
 
                         < ! - -   P a g e   C o n t e n t   - - > \ n 
 
                         @ y i e l d ( ' c o n t e n t ' ) \ n 
 
                         @ i f ( r e q u e s t ( ) - > r o u t e I s ( ' a g e n t s . * ' ) ) \ n 
 
                                 @ i n c l u d e ( ' w e b s i t e : : a g e n t s . p a r t i a l s . m o t i o n ' ) \ n 
 
                         @ e n d i f \ n 
 
                 < / d i v > \ n 
 
         < / d i v > \ n 
 
         \ n 
 
         < ! - -   j Q u e r y   ( r e q u i r e d   f o r   S e l e c t 2 )   - - > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c o d e . j q u e r y . c o m / j q u e r y - 3 . 7 . 1 . m i n . j s " > < / s c r i p t > \ n 
 
         < l i n k   r e l = " s t y l e s h e e t "   h r e f = " h t t p s : / / c d n . d a t a t a b l e s . n e t / 2 . 1 . 8 / c s s / d a t a T a b l e s . b o o t s t r a p 5 . m i n . c s s " > \ n 
 
         < l i n k   r e l = " s t y l e s h e e t "   h r e f = " h t t p s : / / c d n . d a t a t a b l e s . n e t / b u t t o n s / 3 . 2 . 0 / c s s / b u t t o n s . b o o t s t r a p 5 . m i n . c s s " > \ n 
 
         < l i n k   r e l = " s t y l e s h e e t "   h r e f = " h t t p s : / / c d n . d a t a t a b l e s . n e t / c o l r e o r d e r / 2 . 0 . 4 / c s s / c o l R e o r d e r . b o o t s t r a p 5 . m i n . c s s " > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . d a t a t a b l e s . n e t / 2 . 1 . 8 / j s / d a t a T a b l e s . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . d a t a t a b l e s . n e t / 2 . 1 . 8 / j s / d a t a T a b l e s . b o o t s t r a p 5 . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . d a t a t a b l e s . n e t / b u t t o n s / 3 . 2 . 0 / j s / d a t a T a b l e s . b u t t o n s . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . d a t a t a b l e s . n e t / b u t t o n s / 3 . 2 . 0 / j s / b u t t o n s . b o o t s t r a p 5 . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n j s . c l o u d f l a r e . c o m / a j a x / l i b s / j s z i p / 3 . 1 0 . 1 / j s z i p . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n j s . c l o u d f l a r e . c o m / a j a x / l i b s / p d f m a k e / 0 . 2 . 1 2 / p d f m a k e . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n j s . c l o u d f l a r e . c o m / a j a x / l i b s / p d f m a k e / 0 . 2 . 1 2 / v f s _ f o n t s . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . d a t a t a b l e s . n e t / b u t t o n s / 3 . 2 . 0 / j s / b u t t o n s . h t m l 5 . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . d a t a t a b l e s . n e t / b u t t o n s / 3 . 2 . 0 / j s / b u t t o n s . p r i n t . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . d a t a t a b l e s . n e t / b u t t o n s / 3 . 2 . 0 / j s / b u t t o n s . c o l V i s . m i n . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . d a t a t a b l e s . n e t / c o l r e o r d e r / 2 . 0 . 4 / j s / d a t a T a b l e s . c o l R e o r d e r . m i n . j s " > < / s c r i p t > \ n 
 
         \ n 
 
         < ! - -   B o o t s t r a p   B u n d l e   J S   - - > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . j s d e l i v r . n e t / n p m / b o o t s t r a p @ 5 . 3 . 0 / d i s t / j s / b o o t s t r a p . b u n d l e . m i n . j s " > < / s c r i p t > \ n 
 
         \ n 
 
         < ! - -   P u s h e r   J S   - - > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / j s . p u s h e r . c o m / 8 . 2 . 0 / p u s h e r . m i n . j s " > < / s c r i p t > \ n 
 
         \ n 
 
         < ! - -   L a r a v e l   E c h o   - - > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / c d n . j s d e l i v r . n e t / n p m / l a r a v e l - e c h o @ 1 . 1 5 . 3 / d i s t / e c h o . i i f e . j s " > < / s c r i p t > \ n 
 
         \ n 
 
         < s c r i p t > \ n 
 
         / /   I n i t i a l i z e   L a r a v e l   E c h o   w i t h   P u s h e r \ n 
 
         @ i f ( c o n f i g ( ' b r o a d c a s t i n g . d e f a u l t ' )   = = =   ' p u s h e r '   & &   c o n f i g ( ' b r o a d c a s t i n g . c o n n e c t i o n s . p u s h e r . k e y ' ) ) \ n 
 
         w i n d o w . E c h o   =   n e w   E c h o ( { \ n 
 
                 b r o a d c a s t e r :   ' p u s h e r ' , \ n 
 
                 k e y :   ' { {   c o n f i g ( ' b r o a d c a s t i n g . c o n n e c t i o n s . p u s h e r . k e y ' )   } } ' , \ n 
 
                 c l u s t e r :   ' { {   c o n f i g ( ' b r o a d c a s t i n g . c o n n e c t i o n s . p u s h e r . o p t i o n s . c l u s t e r ' )   } } ' , \ n 
 
                 f o r c e T L S :   { {   c o n f i g ( ' b r o a d c a s t i n g . c o n n e c t i o n s . p u s h e r . o p t i o n s . u s e T L S ' ,   t r u e )   ?   ' t r u e '   :   ' f a l s e '   } } , \ n 
 
                 e n c r y p t e d :   t r u e , \ n 
 
                 @ a u t h \ n 
 
                 a u t h :   { \ n 
 
                         h e a d e r s :   { \ n 
 
                                 ' X - C S R F - T O K E N ' :   ' { {   c s r f _ t o k e n ( )   } } ' \ n 
 
                         } \ n 
 
                 } , \ n 
 
                 a u t h E n d p o i n t :   ' / b r o a d c a s t i n g / a u t h ' \ n 
 
                 @ e n d a u t h \ n 
 
         } ) ; \ n 
 
         c o n s o l e . l o g ( ' '  L a r a v e l   E c h o   i n i t i a l i z e d   w i t h   P u s h e r ' ) ; \ n 
 
         @ e l s e \ n 
 
         c o n s o l e . w a r n ( ' &    P u s h e r   n o t   c o n f i g u r e d .   R e a l - t i m e   f e a t u r e s   d i s a b l e d . ' ) ; \ n 
 
         @ e n d i f \ n 
 
         < / s c r i p t > \ n 
 
         \ n 
 
         @ s t a c k ( ' s c r i p t s ' ) \ n 
 
         @ y i e l d ( ' s c r i p t s ' ) \ n 
 
 \ n 
 
         < s c r i p t > \ n 
 
         ( f u n c t i o n   ( )   { \ n 
 
                 i f   ( ! w i n d o w . D a t a T a b l e )   r e t u r n ; \ n 
 
                 v a r   i s A r   =   ( d o c u m e n t . d o c u m e n t E l e m e n t . l a n g   | |   ' ' ) . i n d e x O f ( ' a r ' )   = = =   0 ; \ n 
 
                 v a r   l a b e l   =   i s A r \ n 
 
                         ?   {   s e a r c h :   ' (-+' ,   c o p y :   ' F3.' ,   c s v :   ' C S V ' ,   e x c e l :   ' E x c e l ' ,   p d f :   ' P D F ' ,   p r i n t :   ' 7('9)' ,   c o l u m n s :   ' 'D#9E/)' ,   e m p t y :   ' D'  *H,/  (J'F'*' ,   z e r o :   ' D'  *H,/  F*'&,' ,   i n f o :   ' 916  _ S T A R T _   %DI  _ E N D _   EF  _ T O T A L _ ' ,   l e n g t h :   ' 916  _ M E N U _ '   } \ n 
 
                         :   {   s e a r c h :   ' S e a r c h ' ,   c o p y :   ' C o p y ' ,   c s v :   ' C S V ' ,   e x c e l :   ' E x c e l ' ,   p d f :   ' P D F ' ,   p r i n t :   ' P r i n t ' ,   c o l u m n s :   ' C o l u m n s ' ,   e m p t y :   ' N o   d a t a ' ,   z e r o :   ' N o   m a t c h i n g   r o w s ' ,   i n f o :   ' S h o w i n g   _ S T A R T _   t o   _ E N D _   o f   _ T O T A L _ ' ,   l e n g t h :   ' S h o w   _ M E N U _ '   } ; \ n 
 
                 v a r   e x p o r t O p t i o n s   =   { \ n 
 
                         c o l u m n s :   f u n c t i o n   ( i d x ,   d a t a ,   n o d e )   { \ n 
 
                                 v a r   t i t l e   =   ( n o d e   & &   n o d e . t e x t C o n t e n t   ?   n o d e . t e x t C o n t e n t   :   ' ' ) . r e p l a c e ( / \ s + / g ,   '   ' ) . t r i m ( ) . t o L o w e r C a s e ( ) ; \ n 
 
                                 r e t u r n   t i t l e   ! = =   ' '   & &   t i t l e   ! = =   ' a c t i o n s '   & &   t i t l e   ! = =   ' a c t i o n '   & &   t i t l e   ! = =   ' 'D%,1'!'*' ; \ n 
 
                         } , \ n 
 
                         f o r m a t :   { \ n 
 
                                 b o d y :   f u n c t i o n   ( i n n e r ,   r o w I d x ,   c o l I d x ,   n o d e )   { \ n 
 
                                         r e t u r n   n o d e   ?   n o d e . i n n e r T e x t . r e p l a c e ( / \ s + / g ,   '   ' ) . t r i m ( )   :   i n n e r ; \ n 
 
                                 } \ n 
 
                         } \ n 
 
                 } ; \ n 
 
 \ n 
 
                 f u n c t i o n   s e r v e r P a g e d ( t a b l e )   { \ n 
 
                         f u n c t i o n   l a r a v e l ( r o o t )   { \ n 
 
                                 i f   ( ! r o o t   | |   ! r o o t . q u e r y S e l e c t o r A l l )   r e t u r n   f a l s e ; \ n 
 
                                 v a r   l i s t s   =   r o o t . q u e r y S e l e c t o r A l l ( ' u l . p a g i n a t i o n ' ) ; \ n 
 
                                 f o r   ( v a r   i   =   0 ;   i   <   l i s t s . l e n g t h ;   i + + )   { \ n 
 
                                         i f   ( ! l i s t s [ i ] . c l o s e s t ( ' . d t - c o n t a i n e r ' ) )   r e t u r n   t r u e ; \ n 
 
                                 } \ n 
 
                                 r e t u r n   f a l s e ; \ n 
 
                         } \ n 
 
                         v a r   s c o p e   =   t a b l e . c l o s e s t ( ' . c a r d ' )   | |   t a b l e . p a r e n t E l e m e n t ; \ n 
 
                         i f   ( l a r a v e l ( s c o p e ) )   r e t u r n   t r u e ; \ n 
 
                         r e t u r n   l a r a v e l ( s c o p e   ?   s c o p e . n e x t E l e m e n t S i b l i n g   :   n u l l ) ; \ n 
 
                 } \ n 
 
 \ n 
 
                 f u n c t i o n   r e a d y ( t a b l e )   { \ n 
 
                         i f   ( ! t a b l e   | |   t a b l e . d a t a s e t . i w D a t a t a b l e   = = =   ' r e a d y '   | |   t a b l e . d a t a s e t . i w D a t a t a b l e   = = =   ' o f f ' )   r e t u r n   f a l s e ; \ n 
 
                         i f   ( t a b l e . c l o s e s t ( ' [ d a t a - i w - d a t a t a b l e = " o f f " ] ' ) )   r e t u r n   f a l s e ; \ n 
 
                         v a r   h e a d   =   t a b l e . t H e a d   & &   t a b l e . t H e a d . r o w s [ 0 ] ; \ n 
 
                         i f   ( ! h e a d   | |   h e a d . c e l l s . l e n g t h   <   2 )   r e t u r n   f a l s e ; \ n 
 
                         v a r   c o l s   =   h e a d . c e l l s . l e n g t h ; \ n 
 
                         v a r   b o d y   =   t a b l e . t B o d i e s [ 0 ] ; \ n 
 
                         i f   ( ! b o d y )   r e t u r n   f a l s e ; \ n 
 
                         A r r a y . p r o t o t y p e . f o r E a c h . c a l l ( b o d y . r o w s ,   f u n c t i o n   ( r o w )   { \ n 
 
                                 i f   ( r o w . c e l l s . l e n g t h   = = =   1   & &   r o w . c e l l s [ 0 ] . c o l S p a n   > =   c o l s )   r o w . p a r e n t N o d e . r e m o v e C h i l d ( r o w ) ; \ n 
 
                         } ) ; \ n 
 
                         f o r   ( v a r   i   =   0 ;   i   <   b o d y . r o w s . l e n g t h ;   i + + )   { \ n 
 
                                 i f   ( b o d y . r o w s [ i ] . c e l l s . l e n g t h   ! = =   c o l s )   r e t u r n   f a l s e ; \ n 
 
                         } \ n 
 
                         r e t u r n   t r u e ; \ n 
 
                 } \ n 
 
 \ n 
 
                 f u n c t i o n   b i n d R e s i z e ( c o n t a i n e r )   { \ n 
 
                         v a r   r t l   =   d o c u m e n t . d o c u m e n t E l e m e n t . d i r   = = =   ' r t l ' ; \ n 
 
                         c o n t a i n e r . q u e r y S e l e c t o r A l l ( ' t h e a d   t h ' ) . f o r E a c h ( f u n c t i o n   ( t h )   { \ n 
 
                                 i f   ( t h . q u e r y S e l e c t o r ( ' . i w - c o l - r e s i z e r ' ) )   r e t u r n ; \ n 
 
                                 v a r   h a n d l e   =   d o c u m e n t . c r e a t e E l e m e n t ( ' s p a n ' ) ; \ n 
 
                                 h a n d l e . c l a s s N a m e   =   ' i w - c o l - r e s i z e r ' ; \ n 
 
                                 t h . a p p e n d C h i l d ( h a n d l e ) ; \ n 
 
                                 h a n d l e . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( e v e n t )   {   e v e n t . p r e v e n t D e f a u l t ( ) ;   e v e n t . s t o p P r o p a g a t i o n ( ) ;   } ) ; \ n 
 
                                 h a n d l e . a d d E v e n t L i s t e n e r ( ' m o u s e d o w n ' ,   f u n c t i o n   ( e v e n t )   { \ n 
 
                                         e v e n t . p r e v e n t D e f a u l t ( ) ; \ n 
 
                                         e v e n t . s t o p P r o p a g a t i o n ( ) ; \ n 
 
                                         v a r   i n d e x   =   t h . c e l l I n d e x ; \ n 
 
                                         v a r   s t a r t X   =   e v e n t . p a g e X ; \ n 
 
                                         v a r   s t a r t W   =   t h . g e t B o u n d i n g C l i e n t R e c t ( ) . w i d t h ; \ n 
 
                                         f u n c t i o n   m o v e ( e v )   { \ n 
 
                                                 v a r   d e l t a   =   e v . p a g e X   -   s t a r t X ; \ n 
 
                                                 i f   ( r t l )   d e l t a   =   - d e l t a ; \ n 
 
                                                 v a r   w i d t h   =   M a t h . m a x ( 7 0 ,   M a t h . r o u n d ( s t a r t W   +   d e l t a ) ) ; \ n 
 
                                                 c o n t a i n e r . q u e r y S e l e c t o r A l l ( ' t r ' ) . f o r E a c h ( f u n c t i o n   ( r o w )   { \ n 
 
                                                         v a r   c e l l   =   r o w . c h i l d r e n [ i n d e x ] ; \ n 
 
                                                         i f   ( ! c e l l )   r e t u r n ; \ n 
 
                                                         c e l l . s t y l e . w i d t h   =   w i d t h   +   ' p x ' ; \ n 
 
                                                         c e l l . s t y l e . m i n W i d t h   =   w i d t h   +   ' p x ' ; \ n 
 
                                                         c e l l . s t y l e . m a x W i d t h   =   w i d t h   +   ' p x ' ; \ n 
 
                                                 } ) ; \ n 
 
                                         } \ n 
 
                                         f u n c t i o n   s t o p ( )   { \ n 
 
                                                 d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( ' m o u s e m o v e ' ,   m o v e ) ; \ n 
 
                                                 d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( ' m o u s e u p ' ,   s t o p ) ; \ n 
 
                                         } \ n 
 
                                         d o c u m e n t . a d d E v e n t L i s t e n e r ( ' m o u s e m o v e ' ,   m o v e ) ; \ n 
 
                                         d o c u m e n t . a d d E v e n t L i s t e n e r ( ' m o u s e u p ' ,   s t o p ) ; \ n 
 
                                 } ) ; \ n 
 
                         } ) ; \ n 
 
                 } \ n 
 
 \ n 
 
                 f u n c t i o n   e n h a n c e ( t a b l e )   { \ n 
 
                         i f   ( ! r e a d y ( t a b l e ) )   r e t u r n ; \ n 
 
                         v a r   p a g e d   =   s e r v e r P a g e d ( t a b l e ) ; \ n 
 
                         t a b l e . d a t a s e t . i w D a t a t a b l e   =   ' r e a d y ' ; \ n 
 
                         t r y   { \ n 
 
                                 v a r   a p i   =   n e w   D a t a T a b l e ( t a b l e ,   { \ n 
 
                                         o r d e r :   [ ] , \ n 
 
                                         c o l R e o r d e r :   t r u e , \ n 
 
                                         a u t o W i d t h :   f a l s e , \ n 
 
                                         p a g i n g :   ! p a g e d , \ n 
 
                                         i n f o :   ! p a g e d , \ n 
 
                                         l e n g t h C h a n g e :   ! p a g e d , \ n 
 
                                         p a g e L e n g t h :   2 5 , \ n 
 
                                         s c r o l l X :   t r u e , \ n 
 
                                         l a n g u a g e :   { \ n 
 
                                                 s e a r c h :   l a b e l . s e a r c h , \ n 
 
                                                 e m p t y T a b l e :   l a b e l . e m p t y , \ n 
 
                                                 z e r o R e c o r d s :   l a b e l . z e r o , \ n 
 
                                                 i n f o :   l a b e l . i n f o , \ n 
 
                                                 l e n g t h M e n u :   l a b e l . l e n g t h , \ n 
 
                                                 p a g i n a t e :   i s A r   ?   {   p r e v i o u s :   ' 'D3'(B' ,   n e x t :   ' 'D*'DJ'   }   :   {   p r e v i o u s :   ' P r e v i o u s ' ,   n e x t :   ' N e x t '   } \ n 
 
                                         } , \ n 
 
                                         l a y o u t :   { \ n 
 
                                                 t o p S t a r t :   ' b u t t o n s ' , \ n 
 
                                                 t o p E n d :   p a g e d   ?   ' s e a r c h '   :   [ ' p a g e L e n g t h ' ,   ' s e a r c h ' ] , \ n 
 
                                                 b o t t o m S t a r t :   p a g e d   ?   n u l l   :   ' i n f o ' , \ n 
 
                                                 b o t t o m E n d :   p a g e d   ?   n u l l   :   ' p a g i n g ' \ n 
 
                                         } , \ n 
 
                                         b u t t o n s :   [ \ n 
 
                                                 {   e x t e n d :   ' c o p y ' ,   t e x t :   l a b e l . c o p y ,   e x p o r t O p t i o n s :   e x p o r t O p t i o n s   } , \ n 
 
                                                 {   e x t e n d :   ' c s v ' ,   t e x t :   l a b e l . c s v ,   e x p o r t O p t i o n s :   e x p o r t O p t i o n s   } , \ n 
 
                                                 {   e x t e n d :   ' e x c e l ' ,   t e x t :   l a b e l . e x c e l ,   e x p o r t O p t i o n s :   e x p o r t O p t i o n s   } , \ n 
 
                                                 {   e x t e n d :   ' p d f ' ,   t e x t :   l a b e l . p d f ,   o r i e n t a t i o n :   ' l a n d s c a p e ' ,   e x p o r t O p t i o n s :   e x p o r t O p t i o n s   } , \ n 
 
                                                 {   e x t e n d :   ' p r i n t ' ,   t e x t :   l a b e l . p r i n t ,   e x p o r t O p t i o n s :   e x p o r t O p t i o n s   } , \ n 
 
                                                 {   e x t e n d :   ' c o l v i s ' ,   t e x t :   l a b e l . c o l u m n s   } \ n 
 
                                         ] \ n 
 
                                 } ) ; \ n 
 
                                 b i n d R e s i z e ( a p i . t a b l e ( ) . c o n t a i n e r ( ) ) ; \ n 
 
                         }   c a t c h   ( e r r o r )   { \ n 
 
                                 t a b l e . d a t a s e t . i w D a t a t a b l e   =   ' o f f ' ; \ n 
 
                         } \ n 
 
                 } \ n 
 
 \ n 
 
                 f u n c t i o n   s c a n ( r o o t )   { \ n 
 
                         ( r o o t   | |   d o c u m e n t ) . q u e r y S e l e c t o r A l l ( ' . m a i n - c o n t e n t   t a b l e . t a b l e ' ) . f o r E a c h ( e n h a n c e ) ; \ n 
 
                 } \ n 
 
 \ n 
 
                 d o c u m e n t . a d d E v e n t L i s t e n e r ( ' D O M C o n t e n t L o a d e d ' ,   f u n c t i o n   ( )   { \ n 
 
                         s c a n ( d o c u m e n t ) ; \ n 
 
                         v a r   m a i n   =   d o c u m e n t . q u e r y S e l e c t o r ( ' . m a i n - c o n t e n t ' ) ; \ n 
 
                         i f   ( ! m a i n   | |   ! w i n d o w . M u t a t i o n O b s e r v e r )   r e t u r n ; \ n 
 
                         v a r   o b s e r v e r   =   n e w   M u t a t i o n O b s e r v e r ( f u n c t i o n   ( )   {   s c a n ( m a i n ) ;   } ) ; \ n 
 
                         o b s e r v e r . o b s e r v e ( m a i n ,   {   c h i l d L i s t :   t r u e ,   s u b t r e e :   t r u e   } ) ; \ n 
 
                 } ) ; \ n 
 
         } ) ( ) ; \ n 
 
         < / s c r i p t > \ n 
 
 \ n 
 
         < s c r i p t > \ n 
 
         ( f u n c t i o n   ( )   { \ n 
 
                 v a r   s i d e b a r   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' a p p S i d e b a r ' ) ; \ n 
 
                 v a r   t o g g l e   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' a p p S i d e b a r T o g g l e ' ) ; \ n 
 
                 v a r   b a c k d r o p   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' a p p S i d e b a r B a c k d r o p ' ) ; \ n 
 
 \ n 
 
                 i f   ( ! s i d e b a r   | |   ! t o g g l e   | |   ! b a c k d r o p )   { \ n 
 
                         r e t u r n ; \ n 
 
                 } \ n 
 
 \ n 
 
                 f u n c t i o n   c l o s e S i d e b a r ( )   { \ n 
 
                         s i d e b a r . c l a s s L i s t . r e m o v e ( ' i s - o p e n ' ) ; \ n 
 
                         b a c k d r o p . c l a s s L i s t . r e m o v e ( ' s h o w ' ) ; \ n 
 
                         d o c u m e n t . b o d y . c l a s s L i s t . r e m o v e ( ' s i d e b a r - o p e n ' ) ; \ n 
 
                         t o g g l e . s e t A t t r i b u t e ( ' a r i a - e x p a n d e d ' ,   ' f a l s e ' ) ; \ n 
 
                 } \ n 
 
 \ n 
 
                 f u n c t i o n   o p e n S i d e b a r ( )   { \ n 
 
                         s i d e b a r . c l a s s L i s t . a d d ( ' i s - o p e n ' ) ; \ n 
 
                         b a c k d r o p . c l a s s L i s t . a d d ( ' s h o w ' ) ; \ n 
 
                         d o c u m e n t . b o d y . c l a s s L i s t . a d d ( ' s i d e b a r - o p e n ' ) ; \ n 
 
                         t o g g l e . s e t A t t r i b u t e ( ' a r i a - e x p a n d e d ' ,   ' t r u e ' ) ; \ n 
 
                 } \ n 
 
 \ n 
 
                 t o g g l e . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( )   { \ n 
 
                         i f   ( s i d e b a r . c l a s s L i s t . c o n t a i n s ( ' i s - o p e n ' ) )   { \ n 
 
                                 c l o s e S i d e b a r ( ) ; \ n 
 
                         }   e l s e   { \ n 
 
                                 o p e n S i d e b a r ( ) ; \ n 
 
                         } \ n 
 
                 } ) ; \ n 
 
 \ n 
 
                 b a c k d r o p . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   c l o s e S i d e b a r ) ; \ n 
 
 \ n 
 
                 s i d e b a r . q u e r y S e l e c t o r A l l ( ' a ' ) . f o r E a c h ( f u n c t i o n   ( l i n k )   { \ n 
 
                         l i n k . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( )   { \ n 
 
                                 i f   ( w i n d o w . i n n e r W i d t h   <   9 9 2 )   { \ n 
 
                                         c l o s e S i d e b a r ( ) ; \ n 
 
                                 } \ n 
 
                         } ) ; \ n 
 
                 } ) ; \ n 
 
 \ n 
 
                 w i n d o w . a d d E v e n t L i s t e n e r ( ' r e s i z e ' ,   f u n c t i o n   ( )   { \ n 
 
                         i f   ( w i n d o w . i n n e r W i d t h   > =   9 9 2 )   { \ n 
 
                                 c l o s e S i d e b a r ( ) ; \ n 
 
                         } \ n 
 
                 } ) ; \ n 
 
 \ n 
 
                 v a r   c o l l a p s e B t n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' s i d e b a r C o l l a p s e B t n ' ) ; \ n 
 
                 v a r   c o l l a p s e d K e y   =   ' i w e n t a - s i d e b a r - c o l l a p s e d ' ; \ n 
 
 \ n 
 
                 f u n c t i o n   s e t C o l l a p s e d ( c o l l a p s e d )   { \ n 
 
                         d o c u m e n t . d o c u m e n t E l e m e n t . c l a s s L i s t . t o g g l e ( ' s i d e b a r - c o l l a p s e d ' ,   c o l l a p s e d ) ; \ n 
 
                         t r y   {   l o c a l S t o r a g e . s e t I t e m ( c o l l a p s e d K e y ,   c o l l a p s e d   ?   ' 1 '   :   ' 0 ' ) ;   }   c a t c h   ( e )   { } \ n 
 
                         i f   ( c o l l a p s e B t n )   { \ n 
 
                                 c o l l a p s e B t n . s e t A t t r i b u t e ( ' a r i a - e x p a n d e d ' ,   c o l l a p s e d   ?   ' f a l s e '   :   ' t r u e ' ) ; \ n 
 
                                 c o l l a p s e B t n . s e t A t t r i b u t e ( ' a r i a - l a b e l ' ,   c o l l a p s e d   ?   @ j s o n ( _ _ ( ' S h o w   s i d e b a r ' ) )   :   @ j s o n ( _ _ ( ' H i d e   s i d e b a r ' ) ) ) ; \ n 
 
                         } \ n 
 
                 } \ n 
 
 \ n 
 
                 i f   ( w i n d o w . i n n e r W i d t h   > =   9 9 2 )   { \ n 
 
                         t r y   { \ n 
 
                                 i f   ( l o c a l S t o r a g e . g e t I t e m ( c o l l a p s e d K e y )   = = =   ' 1 ' )   s e t C o l l a p s e d ( t r u e ) ; \ n 
 
                         }   c a t c h   ( e )   { } \ n 
 
                 } \ n 
 
 \ n 
 
                 i f   ( c o l l a p s e B t n )   { \ n 
 
                         c o l l a p s e B t n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( )   { \ n 
 
                                 i f   ( w i n d o w . i n n e r W i d t h   <   9 9 2 )   { \ n 
 
                                         c l o s e S i d e b a r ( ) ; \ n 
 
                                         r e t u r n ; \ n 
 
                                 } \ n 
 
                                 s e t C o l l a p s e d ( ! d o c u m e n t . d o c u m e n t E l e m e n t . c l a s s L i s t . c o n t a i n s ( ' s i d e b a r - c o l l a p s e d ' ) ) ; \ n 
 
                         } ) ; \ n 
 
                 } \ n 
 
         } ) ( ) ; \ n 
 
 \ n 
 
         ( f u n c t i o n   ( )   { \ n 
 
                 v a r   w r a p p e r   =   d o c u m e n t . q u e r y S e l e c t o r ( ' . c o n t e n t - w r a p p e r ' ) ; \ n 
 
                 i f   ( ! w r a p p e r )   { \ n 
 
                         r e t u r n ; \ n 
 
                 } \ n 
 
 \ n 
 
                 w r a p p e r . q u e r y S e l e c t o r A l l ( ' t a b l e . t a b l e ' ) . f o r E a c h ( f u n c t i o n   ( t a b l e )   { \ n 
 
                         i f   ( t a b l e . c l o s e s t ( ' . t a b l e - r e s p o n s i v e ,   . i w e n t a - t a b l e - s c r o l l ' ) )   { \ n 
 
                                 r e t u r n ; \ n 
 
                         } \ n 
 
 \ n 
 
                         v a r   p a r e n t   =   t a b l e . p a r e n t E l e m e n t ; \ n 
 
                         i f   ( ! p a r e n t )   { \ n 
 
                                 r e t u r n ; \ n 
 
                         } \ n 
 
 \ n 
 
                         v a r   s c r o l l   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ; \ n 
 
                         s c r o l l . c l a s s N a m e   =   ' i w e n t a - t a b l e - s c r o l l ' ; \ n 
 
                         p a r e n t . i n s e r t B e f o r e ( s c r o l l ,   t a b l e ) ; \ n 
 
                         s c r o l l . a p p e n d C h i l d ( t a b l e ) ; \ n 
 
                 } ) ; \ n 
 
         } ) ( ) ; \ n 
 
         < / s c r i p t > \ n 
 
 \ n 
 
         @ a u t h \ n 
 
         < s t y l e > \ n 
 
                 # m e s s e n g e r S i d e T o a s t s { p o s i t i o n : f i x e d ; z - i n d e x : 1 0 8 0 ; b o t t o m : 1 8 p x ; i n s e t - i n l i n e - s t a r t : 1 8 p x ; d i s p l a y : f l e x ; f l e x - d i r e c t i o n : c o l u m n ; g a p : 8 p x ; w i d t h : m i n ( 3 4 0 p x , c a l c ( 1 0 0 v w   -   3 6 p x ) ) ; p o i n t e r - e v e n t s : n o n e } \ n 
 
                 . m e s s e n g e r - s i d e - t o a s t { p o i n t e r - e v e n t s : a u t o ; d i s p l a y : f l e x ; g a p : 1 0 p x ; a l i g n - i t e m s : f l e x - s t a r t ; b a c k g r o u n d : # f f f ; c o l o r : # 0 5 0 5 0 5 ; b o r d e r - r a d i u s : 1 2 p x ; b o x - s h a d o w : 0   1 2 p x   2 8 p x   r g b a ( 0 , 0 , 0 , . 1 8 ) ; p a d d i n g : 1 2 p x   1 4 p x ; t e x t - d e c o r a t i o n : n o n e ; b o r d e r : 1 p x   s o l i d   r g b a ( 0 , 0 , 0 , . 0 6 ) ; a n i m a t i o n : m e s s e n g e r T o a s t I n   . 1 8 s   e a s e } \ n 
 
                 . m e s s e n g e r - s i d e - t o a s t . h i d e { o p a c i t y : 0 ; t r a n s f o r m : t r a n s l a t e Y ( 8 p x ) ; t r a n s i t i o n : o p a c i t y   . 2 5 s   e a s e , t r a n s f o r m   . 2 5 s   e a s e } \ n 
 
                 . m e s s e n g e r - s i d e - t o a s t   i { c o l o r : # 0 8 6 6 f f ; f o n t - s i z e : 1 . 1 5 r e m ; m a r g i n - t o p : 2 p x } \ n 
 
                 . m e s s e n g e r - s i d e - t o a s t   s t r o n g { d i s p l a y : b l o c k ; f o n t - s i z e : . 9 2 r e m ; l i n e - h e i g h t : 1 . 3 } \ n 
 
                 . m e s s e n g e r - s i d e - t o a s t   s p a n { d i s p l a y : b l o c k ; f o n t - s i z e : . 8 2 r e m ; c o l o r : # 6 5 6 7 6 b ; m a r g i n - t o p : 2 p x ; m a x - h e i g h t : 2 . 6 e m ; o v e r f l o w : h i d d e n } \ n 
 
                 @ k e y f r a m e s   m e s s e n g e r T o a s t I n { f r o m { o p a c i t y : 0 ; t r a n s f o r m : t r a n s l a t e Y ( 8 p x ) } t o { o p a c i t y : 1 ; t r a n s f o r m : n o n e } } \ n 
 
         < / s t y l e > \ n 
 
         < d i v   i d = " m e s s e n g e r S i d e T o a s t s "   a r i a - l i v e = " p o l i t e " > < / d i v > \ n 
 
         < ! - -   F i r e b a s e   C l o u d   M e s s a g i n g   S D K   - - > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / w w w . g s t a t i c . c o m / f i r e b a s e j s / 8 . 1 0 . 0 / f i r e b a s e - a p p . j s " > < / s c r i p t > \ n 
 
         < s c r i p t   s r c = " h t t p s : / / w w w . g s t a t i c . c o m / f i r e b a s e j s / 8 . 1 0 . 0 / f i r e b a s e - m e s s a g i n g . j s " > < / s c r i p t > \ n 
 
         \ n 
 
         < s c r i p t > \ n 
 
         / /    % % %  N o t i f i c a t i o n   S y s t e m   ( F C M   +   P o l l i n g )    % % % % % % % % % % % % % % % % % % % %\ n 
 
         v a r   n o t i f i c a t i o n s L o a d e d   =   f a l s e ; \ n 
 
         v a r   l a s t U n r e a d C o u n t   =   - 1 ; \ n 
 
         \ n 
 
         / /   F i r e b a s e   W e b   C o n f i g   ( f o r   F C M ) \ n 
 
         v a r   f i r e b a s e C o n f i g   =   { \ n 
 
                 a p i K e y :   " { {   c o n f i g ( ' f i r e b a s e . w e b . a p i _ k e y ' )   } } " , \ n 
 
                 a u t h D o m a i n :   " { {   c o n f i g ( ' f i r e b a s e . w e b . a u t h _ d o m a i n ' )   } } " , \ n 
 
                 p r o j e c t I d :   " { {   c o n f i g ( ' f i r e b a s e . w e b . p r o j e c t _ i d ' )   } } " , \ n 
 
                 s t o r a g e B u c k e t :   " { {   c o n f i g ( ' f i r e b a s e . w e b . s t o r a g e _ b u c k e t ' )   } } " , \ n 
 
                 m e s s a g i n g S e n d e r I d :   " { {   c o n f i g ( ' f i r e b a s e . w e b . m e s s a g i n g _ s e n d e r _ i d ' )   } } " , \ n 
 
                 a p p I d :   " { {   c o n f i g ( ' f i r e b a s e . w e b . a p p _ i d ' )   } } " \ n 
 
         } ; \ n 
 
 \ n 
 
         c o n s o l e . l o g ( ' F i r e b a s e   C o n f i g : ' ,   f i r e b a s e C o n f i g ) ; \ n 
 
         \ n 
 
         v a r   f c m E n a b l e d   =   f i r e b a s e C o n f i g . p r o j e c t I d   & &   f i r e b a s e C o n f i g . p r o j e c t I d . l e n g t h   >   0 ; \ n 
 
         \ n 
 
         / /   I n i t i a l i z e   F C M   i f   c o n f i g u r e d \ n 
 
         i f   ( f c m E n a b l e d )   { \ n 
 
                 t r y   { \ n 
 
                         f i r e b a s e . i n i t i a l i z e A p p ( f i r e b a s e C o n f i g ) ; \ n 
 
                         v a r   m e s s a g i n g   =   f i r e b a s e . m e s s a g i n g ( ) ; \ n 
 
                         \ n 
 
                         / /   H a n d l e   f o r e g r o u n d   m e s s a g e s   O N L Y   ( n o   t o k e n   r e g i s t r a t i o n   h e r e ) \ n 
 
                         m e s s a g i n g . o n M e s s a g e ( f u n c t i o n ( p a y l o a d )   { \ n 
 
                                 v a r   t i t l e   =   p a y l o a d . n o t i f i c a t i o n   ?   p a y l o a d . n o t i f i c a t i o n . t i t l e   :   @ j s o n ( _ _ ( ' N e w   N o t i f i c a t i o n ' ) ) ; \ n 
 
                                 v a r   b o d y   =   p a y l o a d . n o t i f i c a t i o n   ?   p a y l o a d . n o t i f i c a t i o n . b o d y   :   ' ' ; \ n 
 
                                 v a r   d a t a P a y l o a d   =   p a y l o a d . d a t a   | |   { } ; \ n 
 
                                 v a r   a c t i o n U r l   =   d a t a P a y l o a d . a c t i o n _ u r l   | |   ' ' ; \ n 
 
                                 \ n 
 
                                 / /   U p d a t e   b a d g e \ n 
 
                                 f e t c h U n r e a d C o u n t ( ) ; \ n 
 
                                 i f   ( d a t a P a y l o a d . t y p e   = = =   ' m e s s e n g e r _ m e s s a g e '   | |   d a t a P a y l o a d . t y p e   = = =   ' i n s t a g r a m _ m e s s a g e '   | |   ( a c t i o n U r l   & &   ( a c t i o n U r l . i n d e x O f ( ' / m e s s e n g e r / c o n v e r s a t i o n s / ' )   ! = =   - 1   | |   a c t i o n U r l . i n d e x O f ( ' / i n s t a g r a m / c o n v e r s a t i o n s / ' )   ! = =   - 1 ) ) )   { \ n 
 
                                         s h o w M e s s e n g e r S i d e T o a s t ( { \ n 
 
                                                 i d :   d a t a P a y l o a d . n o t i f i c a t i o n _ i d   | |   ( ' f c m - '   +   D a t e . n o w ( ) ) , \ n 
 
                                                 t i t l e :   t i t l e , \ n 
 
                                                 b o d y :   b o d y , \ n 
 
                                                 a c t i o n _ u r l :   a c t i o n U r l , \ n 
 
                                                 i c o n :   ( d a t a P a y l o a d . t y p e   = = =   ' i n s t a g r a m _ m e s s a g e '   | |   d a t a P a y l o a d . t y p e   = = =   ' i n s t a g r a m _ f o l l o w _ u p ' )   ?   ' f a b   f a - i n s t a g r a m '   :   ( d a t a P a y l o a d . i c o n   | |   ' ' ) , \ n 
 
                                                 i c o n _ c o l o r :   ( d a t a P a y l o a d . t y p e   = = =   ' m e s s e n g e r _ f o l l o w _ u p '   | |   d a t a P a y l o a d . t y p e   = = =   ' i n s t a g r a m _ f o l l o w _ u p ' )   ?   ' # f 0 a 5 0 0 '   :   ( d a t a P a y l o a d . t y p e   = = =   ' i n s t a g r a m _ m e s s a g e '   ?   ' # c 1 3 5 8 4 '   :   ' ' ) \ n 
 
                                         } ) ; \ n 
 
                                 } \ n 
 
                                 \ n 
 
                                 / /   P l a y   s o u n d \ n 
 
                                 p l a y N o t i f i c a t i o n S o u n d ( ) ; \ n 
 
                                 \ n 
 
                                 / /   S h o w   b r o w s e r   n o t i f i c a t i o n \ n 
 
                                 s h o w B r o w s e r N o t i f i c a t i o n ( t i t l e ,   b o d y ,   a c t i o n U r l ) ; \ n 
 
                                 \ n 
 
                                 / /   R e l o a d   n o t i f i c a t i o n s   l i s t   i f   d r o p d o w n   i s   o p e n \ n 
 
                                 i f   ( n o t i f i c a t i o n s L o a d e d )   { \ n 
 
                                         l o a d N o t i f i c a t i o n s ( ) ; \ n 
 
                                 } \ n 
 
                         } ) ; \ n 
 
 \ n 
 
                         r e g i s t e r W e b F c m T o k e n ( m e s s a g i n g ) ; \ n 
 
                 }   c a t c h   ( e )   { \ n 
 
                         c o n s o l e . w a r n ( ' F C M   i n i t   e r r o r : ' ,   e ) ; \ n 
 
                         f c m E n a b l e d   =   f a l s e ; \ n 
 
                 } \ n 
 
         } \ n 
 
 \ n 
 
         f u n c t i o n   p e r s i s t F c m T o k e n ( t o k e n )   { \ n 
 
                 i f   ( ! t o k e n )   r e t u r n ; \ n 
 
                 l o c a l S t o r a g e . s e t I t e m ( ' i w e n t a _ f c m _ t o k e n ' ,   t o k e n ) ; \ n 
 
                 $ . a j a x ( { \ n 
 
                         u r l :   ' { {   r o u t e ( " n o t i f i c a t i o n s . s a v e - f c m - t o k e n " )   } } ' , \ n 
 
                         m e t h o d :   ' P O S T ' , \ n 
 
                         h e a d e r s :   {   ' X - C S R F - T O K E N ' :   ' { {   c s r f _ t o k e n ( )   } } '   } , \ n 
 
                         d a t a :   { \ n 
 
                                 f c m _ t o k e n :   t o k e n , \ n 
 
                                 d e v i c e _ t y p e :   ' w e b ' \ n 
 
                         } \ n 
 
                 } ) ; \ n 
 
         } \ n 
 
 \ n 
 
         f u n c t i o n   r e g i s t e r W e b F c m T o k e n ( m e s s a g i n g )   { \ n 
 
                 i f   ( ! m e s s a g i n g   | |   N o t i f i c a t i o n . p e r m i s s i o n   ! = =   ' g r a n t e d ' )   { \ n 
 
                         r e t u r n ; \ n 
 
                 } \ n 
 
 \ n 
 
                 n a v i g a t o r . s e r v i c e W o r k e r . r e g i s t e r ( ' / p u b l i c _ a s s e t s / f i r e b a s e - m e s s a g i n g - s w . j s ' ) \ n 
 
                         . t h e n ( f u n c t i o n ( r e g i s t r a t i o n )   { \ n 
 
                                 m e s s a g i n g . u s e S e r v i c e W o r k e r ( r e g i s t r a t i o n ) ; \ n 
 
                                 r e t u r n   m e s s a g i n g . g e t T o k e n ( { \ n 
 
                                         v a p i d K e y :   " { {   c o n f i g ( ' f i r e b a s e . w e b . v a p i d _ k e y ' )   } } " \ n 
 
                                 } ) ; \ n 
 
                         } ) \ n 
 
                         . t h e n ( f u n c t i o n ( t o k e n )   { \ n 
 
                                 i f   ( t o k e n )   { \ n 
 
                                         p e r s i s t F c m T o k e n ( t o k e n ) ; \ n 
 
                                 } \ n 
 
                         } ) \ n 
 
                         . c a t c h ( f u n c t i o n ( e r r )   { \ n 
 
                                 c o n s o l e . w a r n ( ' F C M   t o k e n   r e g i s t r a t i o n   s k i p p e d : ' ,   e r r ) ; \ n 
 
                         } ) ; \ n 
 
         } \ n 
 
 \ n 
 
         f u n c t i o n   a t t a c h F c m T o k e n T o L o g o u t F o r m s ( )   { \ n 
 
                 d o c u m e n t . q u e r y S e l e c t o r A l l ( ' f o r m [ a c t i o n = " { {   r o u t e ( ' l o g o u t ' )   } } " ] ' ) . f o r E a c h ( f u n c t i o n ( f o r m )   { \ n 
 
                         f o r m . a d d E v e n t L i s t e n e r ( ' s u b m i t ' ,   f u n c t i o n ( )   { \ n 
 
                                 v a r   t o k e n   =   l o c a l S t o r a g e . g e t I t e m ( ' i w e n t a _ f c m _ t o k e n ' ) ; \ n 
 
                                 i f   ( ! t o k e n )   r e t u r n ; \ n 
 
 \ n 
 
                                 v a r   i n p u t   =   f o r m . q u e r y S e l e c t o r ( ' i n p u t [ n a m e = " f c m _ t o k e n " ] ' ) ; \ n 
 
                                 i f   ( ! i n p u t )   { \ n 
 
                                         i n p u t   =   d o c u m e n t . c r e a t e E l e m e n t ( ' i n p u t ' ) ; \ n 
 
                                         i n p u t . t y p e   =   ' h i d d e n ' ; \ n 
 
                                         i n p u t . n a m e   =   ' f c m _ t o k e n ' ; \ n 
 
                                         f o r m . a p p e n d C h i l d ( i n p u t ) ; \ n 
 
                                 } \ n 
 
                                 i n p u t . v a l u e   =   t o k e n ; \ n 
 
                                 l o c a l S t o r a g e . r e m o v e I t e m ( ' i w e n t a _ f c m _ t o k e n ' ) ; \ n 
 
                         } ) ; \ n 
 
                 } ) ; \ n 
 
         } \ n 
 
         \ n 
 
         f u n c t i o n   s h o w M e s s e n g e r S i d e T o a s t ( t o a s t )   { \ n 
 
                 i f   ( ! t o a s t )   r e t u r n ; \ n 
 
                 v a r   i d   =   S t r i n g ( t o a s t . i d   | |   ' ' ) ; \ n 
 
                 i f   ( ! i d )   r e t u r n ; \ n 
 
                 w i n d o w . _ _ m e s s e n g e r T o a s t e d   =   w i n d o w . _ _ m e s s e n g e r T o a s t e d   | |   { } ; \ n 
 
                 i f   ( w i n d o w . _ _ m e s s e n g e r T o a s t e d [ i d ] )   r e t u r n ; \ n 
 
                 v a r   a c t i o n U r l   =   t o a s t . a c t i o n _ u r l   | |   ' ' ; \ n 
 
                 v a r   p a t h   =   w i n d o w . l o c a t i o n . p a t h n a m e   | |   ' ' ; \ n 
 
                 i f   ( a c t i o n U r l   & &   p a t h   & &   a c t i o n U r l . i n d e x O f ( p a t h )   ! = =   - 1   & &   / \ / ( m e s s e n g e r | i n s t a g r a m ) \ / c o n v e r s a t i o n s \ / [ 0 - 9 ] + / . t e s t ( p a t h ) )   { \ n 
 
                         w i n d o w . _ _ m e s s e n g e r T o a s t e d [ i d ]   =   t r u e ; \ n 
 
                         r e t u r n ; \ n 
 
                 } \ n 
 
                 v a r   h o s t   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' m e s s e n g e r S i d e T o a s t s ' ) ; \ n 
 
                 i f   ( ! h o s t )   r e t u r n ; \ n 
 
                 w i n d o w . _ _ m e s s e n g e r T o a s t e d [ i d ]   =   t r u e ; \ n 
 
                 v a r   c a r d   =   d o c u m e n t . c r e a t e E l e m e n t ( ' a ' ) ; \ n 
 
                 c a r d . c l a s s N a m e   =   ' m e s s e n g e r - s i d e - t o a s t ' ; \ n 
 
                 c a r d . h r e f   =   a c t i o n U r l   | |   ' # ' ; \ n 
 
                 v a r   i c o n   =   d o c u m e n t . c r e a t e E l e m e n t ( ' i ' ) ; \ n 
 
                 i c o n . c l a s s N a m e   =   t o a s t . i c o n   | |   ' f a b   f a - f a c e b o o k - m e s s e n g e r ' ; \ n 
 
                 i f   ( t o a s t . i c o n _ c o l o r )   i c o n . s t y l e . c o l o r   =   t o a s t . i c o n _ c o l o r ; \ n 
 
                 v a r   c o p y   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ; \ n 
 
                 v a r   t i t l e   =   d o c u m e n t . c r e a t e E l e m e n t ( ' s t r o n g ' ) ; \ n 
 
                 t i t l e . t e x t C o n t e n t   =   t o a s t . t i t l e   | |   ' ' ; \ n 
 
                 v a r   b o d y   =   d o c u m e n t . c r e a t e E l e m e n t ( ' s p a n ' ) ; \ n 
 
                 b o d y . t e x t C o n t e n t   =   t o a s t . b o d y   | |   ' ' ; \ n 
 
                 c o p y . a p p e n d C h i l d ( t i t l e ) ; \ n 
 
                 c o p y . a p p e n d C h i l d ( b o d y ) ; \ n 
 
                 c a r d . a p p e n d C h i l d ( i c o n ) ; \ n 
 
                 c a r d . a p p e n d C h i l d ( c o p y ) ; \ n 
 
                 c a r d . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( e v e n t )   { \ n 
 
                         i f   ( ! a c t i o n U r l )   { \ n 
 
                                 e v e n t . p r e v e n t D e f a u l t ( ) ; \ n 
 
                                 r e t u r n ; \ n 
 
                         } \ n 
 
                         e v e n t . p r e v e n t D e f a u l t ( ) ; \ n 
 
                         i f   ( / ^ [ 0 - 9 ] + $ / . t e s t ( i d ) )   { \ n 
 
                                 c l i c k N o t i f i c a t i o n ( i d ,   a c t i o n U r l ,   f a l s e ) ; \ n 
 
                                 r e t u r n ; \ n 
 
                         } \ n 
 
                         w i n d o w . l o c a t i o n . h r e f   =   a c t i o n U r l ; \ n 
 
                 } ) ; \ n 
 
                 h o s t . a p p e n d C h i l d ( c a r d ) ; \ n 
 
                 s e t T i m e o u t ( f u n c t i o n   ( )   { \ n 
 
                         c a r d . c l a s s L i s t . a d d ( ' h i d e ' ) ; \ n 
 
                         s e t T i m e o u t ( f u n c t i o n   ( )   { \ n 
 
                                 i f   ( c a r d . p a r e n t N o d e )   c a r d . p a r e n t N o d e . r e m o v e C h i l d ( c a r d ) ; \ n 
 
                         } ,   2 8 0 ) ; \ n 
 
                 } ,   5 0 0 0 ) ; \ n 
 
         } \ n 
 
 \ n 
 
         / /   P u s h e r   d e l i v e r s   t h e   t o a s t   i m m e d i a t e l y .   W i t h o u t   i t ,   p o l l   o f t e n   e n o u g h   t o   f e e l   l i v e . \ n 
 
         s e t I n t e r v a l ( f e t c h U n r e a d C o u n t ,   ( t y p e o f   E c h o   = = =   ' u n d e f i n e d ' )   ?   5 0 0 0   :   3 0 0 0 0 ) ; \ n 
 
         @ i f ( a c t i v e _ t e n a n t _ i d ( ) ) \ n 
 
         i f   ( t y p e o f   E c h o   ! = =   ' u n d e f i n e d ' )   { \ n 
 
                 E c h o . p r i v a t e ( ' t e n a n t . { {   a c t i v e _ t e n a n t _ i d ( )   } } ' ) \ n 
 
                         . l i s t e n ( ' . M e s s e n g e r C o n v e r s a t i o n U p d a t e d ' ,   f u n c t i o n   ( )   { \ n 
 
                                 f e t c h U n r e a d C o u n t ( ) ; \ n 
 
                         } ) \ n 
 
                         . l i s t e n ( ' . I n s t a g r a m C o n v e r s a t i o n U p d a t e d ' ,   f u n c t i o n   ( )   { \ n 
 
                                 f e t c h U n r e a d C o u n t ( ) ; \ n 
 
                         } ) ; \ n 
 
         } \ n 
 
         @ e n d i f \ n 
 
         \ n 
 
         / /   L o a d   i n i t i a l   u n r e a d   c o u n t \ n 
 
         d o c u m e n t . a d d E v e n t L i s t e n e r ( ' D O M C o n t e n t L o a d e d ' ,   f u n c t i o n ( )   { \ n 
 
                 f e t c h U n r e a d C o u n t ( ) ; \ n 
 
                 a t t a c h F c m T o k e n T o L o g o u t F o r m s ( ) ; \ n 
 
 \ n 
 
                 / /   F C M   c a n n o t   c r e a t e   a   b r o w s e r   t o k e n   u n t i l   n o t i f i c a t i o n   p e r m i s s i o n   i s \ n 
 
                 / /   g r a n t e d .   T h e   o l d   c o n d i t i o n   r e q u e s t e d   p e r m i s s i o n   o n l y   w h e n   F i r e b a s e \ n 
 
                 / /   w a s   d i s a b l e d ,   w h i c h   p r e v e n t e d   a l l   n e w   d e v i c e s   f r o m   r e g i s t e r i n g . \ n 
 
                 i f   ( f c m E n a b l e d   & &   ' N o t i f i c a t i o n '   i n   w i n d o w   & &   N o t i f i c a t i o n . p e r m i s s i o n   = = =   ' d e f a u l t ' )   { \ n 
 
                         s e t T i m e o u t ( f u n c t i o n ( )   { \ n 
 
                                 N o t i f i c a t i o n . r e q u e s t P e r m i s s i o n ( ) . t h e n ( f u n c t i o n ( p e r m i s s i o n )   { \ n 
 
                                         i f   ( p e r m i s s i o n   = = =   ' g r a n t e d '   & &   t y p e o f   m e s s a g i n g   ! = =   ' u n d e f i n e d ' )   { \ n 
 
                                                 r e g i s t e r W e b F c m T o k e n ( m e s s a g i n g ) ; \ n 
 
                                         } \ n 
 
                                 } ) . c a t c h ( f u n c t i o n ( e r r o r )   { \ n 
 
                                         c o n s o l e . w a r n ( ' N o t i f i c a t i o n   p e r m i s s i o n   r e q u e s t   f a i l e d : ' ,   e r r o r ) ; \ n 
 
                                 } ) ; \ n 
 
                         } ,   3 0 0 0 ) ; \ n 
 
                 }   e l s e   i f   ( f c m E n a b l e d   & &   ' N o t i f i c a t i o n '   i n   w i n d o w   & &   N o t i f i c a t i o n . p e r m i s s i o n   = = =   ' g r a n t e d '   & &   t y p e o f   m e s s a g i n g   ! = =   ' u n d e f i n e d ' )   { \ n 
 
                         r e g i s t e r W e b F c m T o k e n ( m e s s a g i n g ) ; \ n 
 
                 } \ n 
 
         } ) ; \ n 
 
         \ n 
 
 \ n 
 
         \ n 
 
         v a r   u n r e a d C o u n t R e q u e s t P e n d i n g   =   f a l s e ; \ n 
 
         f u n c t i o n   f e t c h U n r e a d C o u n t ( )   { \ n 
 
                 i f   ( u n r e a d C o u n t R e q u e s t P e n d i n g   | |   d o c u m e n t . h i d d e n )   r e t u r n ; \ n 
 
                 u n r e a d C o u n t R e q u e s t P e n d i n g   =   t r u e ; \ n 
 
                 $ . a j a x ( { \ n 
 
                         u r l :   ' { {   r o u t e ( " n o t i f i c a t i o n s . u n r e a d - c o u n t " )   } } ' , \ n 
 
                         m e t h o d :   ' G E T ' , \ n 
 
                         d a t a :   {   s i d e b a r :   1   } , \ n 
 
                         d a t a T y p e :   ' j s o n ' , \ n 
 
                         s u c c e s s :   f u n c t i o n ( d a t a )   { \ n 
 
                                 v a r   s i d e b a r C o u n t s   =   S t r i n g ( d a t a . t e n a n t _ i d )   = = =   S t r i n g ( @ j s o n ( a c t i v e _ t e n a n t _ i d ( ) ) )   ?   d a t a . s i d e b a r _ u n r e a d   :   n u l l ; \ n 
 
                                 d o c u m e n t . q u e r y S e l e c t o r A l l ( ' [ d a t a - s i d e b a r - u n r e a d ] ' ) . f o r E a c h ( f u n c t i o n   ( b a d g e )   { \ n 
 
                                         v a r   c o u n t   =   s i d e b a r C o u n t s   & &   s i d e b a r C o u n t s [ b a d g e . d a t a s e t . s i d e b a r U n r e a d ] ; \ n 
 
                                         b a d g e . h i d d e n   =   ! ( t y p e o f   c o u n t   = = =   ' n u m b e r '   & &   c o u n t   >   0 ) ; \ n 
 
                                         b a d g e . t e x t C o n t e n t   =   b a d g e . h i d d e n   ?   ' '   :   S t r i n g ( c o u n t ) ; \ n 
 
                                 } ) ; \ n 
 
                                 v a r   n e w C o u n t   =   d a t a . u n r e a d _ c o u n t ; \ n 
 
                                 i f   ( d a t a . t o a s t )   { \ n 
 
                                         s h o w M e s s e n g e r S i d e T o a s t ( d a t a . t o a s t ) ; \ n 
 
                                 } \ n 
 
                                 / /   I f   c o u n t   i n c r e a s e d   a n d   F C M   i s   n o t   h a n d l i n g   i t ,   s h o w   n o t i f i c a t i o n \ n 
 
                                 i f   ( ! f c m E n a b l e d   & &   l a s t U n r e a d C o u n t   > =   0   & &   n e w C o u n t   >   l a s t U n r e a d C o u n t )   { \ n 
 
                                         p l a y N o t i f i c a t i o n S o u n d ( ) ; \ n 
 
                                         i f   ( n o t i f i c a t i o n s L o a d e d )   { \ n 
 
                                                 l o a d N o t i f i c a t i o n s ( ) ; \ n 
 
                                         } \ n 
 
                                 } \ n 
 
                                 l a s t U n r e a d C o u n t   =   n e w C o u n t ; \ n 
 
                                 u p d a t e B a d g e ( n e w C o u n t ) ; \ n 
 
                         } , \ n 
 
                         c o m p l e t e :   f u n c t i o n   ( )   {   u n r e a d C o u n t R e q u e s t P e n d i n g   =   f a l s e ;   } \ n 
 
                 } ) ; \ n 
 
         } \ n 
 
         w i n d o w . a d d E v e n t L i s t e n e r ( ' f o c u s ' ,   f e t c h U n r e a d C o u n t ) ; \ n 
 
         w i n d o w . a d d E v e n t L i s t e n e r ( ' p a g e s h o w ' ,   f u n c t i o n   ( e v e n t )   {   i f   ( e v e n t . p e r s i s t e d )   f e t c h U n r e a d C o u n t ( ) ;   } ) ; \ n 
 
         d o c u m e n t . a d d E v e n t L i s t e n e r ( ' v i s i b i l i t y c h a n g e ' ,   f u n c t i o n   ( )   {   i f   ( ! d o c u m e n t . h i d d e n )   f e t c h U n r e a d C o u n t ( ) ;   } ) ; \ n 
 
         \ n 
 
         f u n c t i o n   u p d a t e B a d g e ( c o u n t )   { \ n 
 
                 v a r   b a d g e   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' n o t i f i c a t i o n B a d g e ' ) ; \ n 
 
                 i f   ( ! b a d g e )   r e t u r n ; \ n 
 
                 \ n 
 
                 i f   ( c o u n t   >   0 )   { \ n 
 
                         b a d g e . t e x t C o n t e n t   =   c o u n t   >   9 9   ?   ' 9 9 + '   :   c o u n t ; \ n 
 
                         b a d g e . s t y l e . d i s p l a y   =   ' i n l i n e - b l o c k ' ; \ n 
 
                         b a d g e . c l a s s L i s t . a d d ( ' p u l s e ' ) ; \ n 
 
                         s e t T i m e o u t ( f u n c t i o n ( )   {   b a d g e . c l a s s L i s t . r e m o v e ( ' p u l s e ' ) ;   } ,   5 0 0 ) ; \ n 
 
                 }   e l s e   { \ n 
 
                         b a d g e . s t y l e . d i s p l a y   =   ' n o n e ' ; \ n 
 
                 } \ n 
 
         } \ n 
 
         \ n 
 
         f u n c t i o n   l o a d N o t i f i c a t i o n s ( )   { \ n 
 
                 v a r   l i s t   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' n o t i f i c a t i o n L i s t ' ) ; \ n 
 
                 v a r   l o a d i n g   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' n o t i f i c a t i o n L o a d i n g ' ) ; \ n 
 
                 v a r   e m p t y   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' n o t i f i c a t i o n E m p t y ' ) ; \ n 
 
                 \ n 
 
                 i f   ( ! l i s t )   r e t u r n ; \ n 
 
                 l o a d i n g . s t y l e . d i s p l a y   =   ' b l o c k ' ; \ n 
 
                 e m p t y . s t y l e . d i s p l a y   =   ' n o n e ' ; \ n 
 
                 \ n 
 
                 $ . a j a x ( { \ n 
 
                         u r l :   ' { {   r o u t e ( " n o t i f i c a t i o n s . r e c e n t " )   } } ' , \ n 
 
                         m e t h o d :   ' G E T ' , \ n 
 
                         d a t a T y p e :   ' j s o n ' , \ n 
 
                         s u c c e s s :   f u n c t i o n ( d a t a )   { \ n 
 
                                 l o a d i n g . s t y l e . d i s p l a y   =   ' n o n e ' ; \ n 
 
                                 \ n 
 
                                 i f   ( ! d a t a . n o t i f i c a t i o n s   | |   d a t a . n o t i f i c a t i o n s . l e n g t h   = = =   0 )   { \ n 
 
                                         e m p t y . s t y l e . d i s p l a y   =   ' b l o c k ' ; \ n 
 
                                         l i s t . q u e r y S e l e c t o r A l l ( ' . n o t i f i c a t i o n - i t e m ' ) . f o r E a c h ( f u n c t i o n ( e l )   {   e l . r e m o v e ( ) ;   } ) ; \ n 
 
                                         r e t u r n ; \ n 
 
                                 } \ n 
 
                                 \ n 
 
                                 / /   R e m o v e   o l d   i t e m s \ n 
 
                                 l i s t . q u e r y S e l e c t o r A l l ( ' . n o t i f i c a t i o n - i t e m ' ) . f o r E a c h ( f u n c t i o n ( e l )   {   e l . r e m o v e ( ) ;   } ) ; \ n 
 
                                 \ n 
 
                                 / /   R e n d e r   n o t i f i c a t i o n s \ n 
 
                                 d a t a . n o t i f i c a t i o n s . f o r E a c h ( f u n c t i o n ( n o t i f )   { \ n 
 
                                         v a r   h t m l   =   r e n d e r N o t i f i c a t i o n I t e m ( n o t i f ) ; \ n 
 
                                         l i s t . i n s e r t A d j a c e n t H T M L ( ' b e f o r e e n d ' ,   h t m l ) ; \ n 
 
                                 } ) ; \ n 
 
                                 \ n 
 
                                 u p d a t e B a d g e ( d a t a . u n r e a d _ c o u n t ) ; \ n 
 
                                 n o t i f i c a t i o n s L o a d e d   =   t r u e ; \ n 
 
                         } , \ n 
 
                         e r r o r :   f u n c t i o n ( )   { \ n 
 
                                 l o a d i n g . s t y l e . d i s p l a y   =   ' n o n e ' ; \ n 
 
                                 e m p t y . s t y l e . d i s p l a y   =   ' b l o c k ' ; \ n 
 
                         } \ n 
 
                 } ) ; \ n 
 
         } \ n 
 
         \ n 
 
         f u n c t i o n   r e n d e r N o t i f i c a t i o n I t e m ( n o t i f )   { \ n 
 
                 v a r   r e a d C l a s s   =   n o t i f . i s _ r e a d   ?   ' '   :   ' u n r e a d ' ; \ n 
 
                 v a r   i c o n B g   =   n o t i f . i c o n _ c o l o r   +   ' 2 0 ' ; \ n 
 
                 \ n 
 
                 r e t u r n   ' < d i v   c l a s s = " n o t i f i c a t i o n - i t e m   '   +   r e a d C l a s s   +   ' "   o n c l i c k = " c l i c k N o t i f i c a t i o n ( '   +   n o t i f . i d   +   ' ,   \ ' '   +   ( n o t i f . a c t i o n _ u r l   | |   ' ' )   +   ' \ ' ,   '   +   n o t i f . i s _ r e a d   +   ' ) " > '   + \ n 
 
                         ' < d i v   c l a s s = " n o t i f i c a t i o n - i c o n "   s t y l e = " b a c k g r o u n d :   '   +   i c o n B g   +   ' ; " > '   + \ n 
 
                                 ' < i   c l a s s = " '   +   n o t i f . i c o n   +   ' "   s t y l e = " c o l o r :   '   +   n o t i f . i c o n _ c o l o r   +   ' ; " > < / i > '   + \ n 
 
                         ' < / d i v > '   + \ n 
 
                         ' < d i v   c l a s s = " n o t i f i c a t i o n - c o n t e n t " > '   + \ n 
 
                                 ' < d i v   c l a s s = " t i t l e " > '   +   e s c a p e H t m l ( n o t i f . t i t l e )   +   ' < / d i v > '   + \ n 
 
                                 ( n o t i f . b o d y   ?   ' < d i v   c l a s s = " b o d y " > '   +   e s c a p e H t m l ( n o t i f . b o d y )   +   ' < / d i v > '   :   ' ' )   + \ n 
 
                                 ' < d i v   c l a s s = " t i m e " > < i   c l a s s = " f a r   f a - c l o c k " > < / i >   '   +   n o t i f . t i m e _ a g o   +   ' < / d i v > '   + \ n 
 
                         ' < / d i v > '   + \ n 
 
                 ' < / d i v > ' ; \ n 
 
         } \ n 
 
         \ n 
 
         f u n c t i o n   c l i c k N o t i f i c a t i o n ( i d ,   a c t i o n U r l ,   i s R e a d )   { \ n 
 
                 i f   ( ! i s R e a d )   { \ n 
 
                         $ . a j a x ( { \ n 
 
                                 u r l :   ' { {   r o u t e ( " n o t i f i c a t i o n s . m a r k - r e a d " ,   " : i d " )   } } ' . r e p l a c e ( ' : i d ' ,   i d ) , \ n 
 
                                 m e t h o d :   ' P O S T ' , \ n 
 
                                 d a t a :   {   _ t o k e n :   ' { {   c s r f _ t o k e n ( )   } } '   } , \ n 
 
                                 d a t a T y p e :   ' j s o n ' , \ n 
 
                                 s u c c e s s :   f u n c t i o n ( d a t a )   { \ n 
 
                                         u p d a t e B a d g e ( d a t a . u n r e a d _ c o u n t ) ; \ n 
 
                                 } \ n 
 
                         } ) ; \ n 
 
                 } \ n 
 
                 i f   ( a c t i o n U r l )   { \ n 
 
                         w i n d o w . l o c a t i o n . h r e f   =   a c t i o n U r l ; \ n 
 
                 } \ n 
 
         } \ n 
 
         \ n 
 
         f u n c t i o n   m a r k A l l N o t i f i c a t i o n s R e a d ( )   { \ n 
 
                 $ . a j a x ( { \ n 
 
                         u r l :   ' { {   r o u t e ( " n o t i f i c a t i o n s . m a r k - a l l - r e a d " )   } } ' , \ n 
 
                         m e t h o d :   ' P O S T ' , \ n 
 
                         d a t a :   {   _ t o k e n :   ' { {   c s r f _ t o k e n ( )   } } '   } , \ n 
 
                         d a t a T y p e :   ' j s o n ' , \ n 
 
                         s u c c e s s :   f u n c t i o n ( d a t a )   { \ n 
 
                                 u p d a t e B a d g e ( 0 ) ; \ n 
 
                                 d o c u m e n t . q u e r y S e l e c t o r A l l ( ' . n o t i f i c a t i o n - i t e m . u n r e a d ' ) . f o r E a c h ( f u n c t i o n ( e l )   { \ n 
 
                                         e l . c l a s s L i s t . r e m o v e ( ' u n r e a d ' ) ; \ n 
 
                                 } ) ; \ n 
 
                         } \ n 
 
                 } ) ; \ n 
 
         } \ n 
 
         \ n 
 
         f u n c t i o n   e s c a p e H t m l ( t e x t )   { \ n 
 
                 i f   ( ! t e x t )   r e t u r n   ' ' ; \ n 
 
                 v a r   d i v   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ; \ n 
 
                 d i v . t e x t C o n t e n t   =   t e x t ; \ n 
 
                 r e t u r n   d i v . i n n e r H T M L ; \ n 
 
         } \ n 
 
         \ n 
 
         f u n c t i o n   p l a y N o t i f i c a t i o n S o u n d ( )   { \ n 
 
                 t r y   { \ n 
 
                         v a r   a u d i o   =   n e w   A u d i o ( ' d a t a : a u d i o / w a v ; b a s e 6 4 , U k l G R n o G A A B X Q V Z F Z m 1 0 I B A A A A A B A A E A Q B 8 A A E A f A A A B A A g A Z G F 0 Y Q o G A A C B h Y q F b F 1 f d H 2 J k Z q T j H l y f H + D g 4 F 9 e X h 5 f Y K H i Y q J h 4 N + e X Z 1 d n h 8 g Y S G h 4 e D f n l 1 c 3 R 3 e 4 C G i Y q I h H 5 5 d X N 0 e H y B h Y i J h 4 R + e X V 0 d X h 8 g I W I i I e F g H t 3 d X V 3 e 3 + E i I m I h I F 8 e H V 1 d 3 p + g 4 e J i I a A f H h 1 d X d 6 f o O H i Y i G g H x 4 d X V 3 e n 6 D h 4 m I h o B 8 e H V 1 d 3 p + g 4 e I i I a C f n p 2 d n h 7 f 4 O H i I i G g n 5 6 d n Z 4 e 3 + D h 4 i I h o J + e n Z 2 e H t / g 4 e I i I a C f n p 2 d n h 7 f 4 O H i I i G g n 5 6 d n Z 4 e 3 + D h 4 e I h o J + ' ) ; \ n 
 
                         a u d i o . v o l u m e   =   0 . 3 ; \ n 
 
                         a u d i o . p l a y ( ) . c a t c h ( f u n c t i o n ( )   { } ) ; \ n 
 
                 }   c a t c h ( e )   { } \ n 
 
         } \ n 
 
 \ n 
 
         / /   L o u d ,   r e c o g n i z a b l e   d u a l - t o n e   r i n g t o n e .   W e b   A u d i o   i s   u s e d   i n s t e a d   o f   t h e \ n 
 
         / /   s h o r t   m e s s a g e   b e e p   s o   r i n g i n g   s t a y s   c l e a r   u n t i l   t h e   c a l l   i s   h a n d l e d . \ n 
 
         v a r   i n c o m i n g C a l l R i n g t o n e T i m e r   =   n u l l ; \ n 
 
         v a r   i n c o m i n g C a l l A u d i o C o n t e x t   =   n u l l ; \ n 
 
         v a r   i n c o m i n g C a l l T o n e N o d e s   =   [ ] ; \ n 
 
 \ n 
 
         f u n c t i o n   g e t I n c o m i n g C a l l A u d i o C o n t e x t ( )   { \ n 
 
                 i f   ( ! i n c o m i n g C a l l A u d i o C o n t e x t )   { \ n 
 
                         v a r   A u d i o C o n t e x t C l a s s   =   w i n d o w . A u d i o C o n t e x t   | |   w i n d o w . w e b k i t A u d i o C o n t e x t ; \ n 
 
                         i f   ( A u d i o C o n t e x t C l a s s )   i n c o m i n g C a l l A u d i o C o n t e x t   =   n e w   A u d i o C o n t e x t C l a s s ( ) ; \ n 
 
                 } \ n 
 
                 i f   ( i n c o m i n g C a l l A u d i o C o n t e x t   & &   i n c o m i n g C a l l A u d i o C o n t e x t . s t a t e   = = =   ' s u s p e n d e d ' )   { \ n 
 
                         i n c o m i n g C a l l A u d i o C o n t e x t . r e s u m e ( ) . c a t c h ( f u n c t i o n ( ) { } ) ; \ n 
 
                 } \ n 
 
                 r e t u r n   i n c o m i n g C a l l A u d i o C o n t e x t ; \ n 
 
         } \ n 
 
 \ n 
 
         f u n c t i o n   p l a y I n c o m i n g C a l l T o n e ( )   { \ n 
 
                 v a r   c o n t e x t   =   g e t I n c o m i n g C a l l A u d i o C o n t e x t ( ) ; \ n 
 
                 i f   ( ! c o n t e x t )   {   p l a y N o t i f i c a t i o n S o u n d ( ) ;   r e t u r n ;   } \ n 
 
 \ n 
 
                 v a r   n o w   =   c o n t e x t . c u r r e n t T i m e ; \ n 
 
                 / /   A   b r i g h t ,   W h a t s A p p - W e b - s t y l e   m e l o d i c   p a t t e r n   ( c u s t o m   s y n t h e s i z e d , \ n 
 
                 / /   n o t   a   c o p i e d   a u d i o   a s s e t ) . \ n 
 
                 v a r   n o t e s   =   [ \ n 
 
                         { f r e q u e n c y : 6 5 9 . 2 5 ,   s t a r t : 0 . 0 0 ,   d u r a t i o n : 0 . 2 4 } , \ n 
 
                         { f r e q u e n c y : 7 8 3 . 9 9 ,   s t a r t : 0 . 2 6 ,   d u r a t i o n : 0 . 2 4 } , \ n 
 
                         { f r e q u e n c y : 8 8 0 . 0 0 ,   s t a r t : 0 . 5 2 ,   d u r a t i o n : 0 . 3 8 } , \ n 
 
                         { f r e q u e n c y : 7 8 3 . 9 9 ,   s t a r t : 1 . 0 0 ,   d u r a t i o n : 0 . 2 4 } , \ n 
 
                         { f r e q u e n c y : 6 5 9 . 2 5 ,   s t a r t : 1 . 2 7 ,   d u r a t i o n : 0 . 4 2 } \ n 
 
                 ] ; \ n 
 
 \ n 
 
                 n o t e s . f o r E a c h ( f u n c t i o n ( n o t e )   { \ n 
 
                         v a r   o s c i l l a t o r   =   c o n t e x t . c r e a t e O s c i l l a t o r ( ) ; \ n 
 
                         v a r   g a i n   =   c o n t e x t . c r e a t e G a i n ( ) ; \ n 
 
                         v a r   b e g i n s   =   n o w   +   n o t e . s t a r t ; \ n 
 
                         v a r   e n d s   =   b e g i n s   +   n o t e . d u r a t i o n ; \ n 
 
                         o s c i l l a t o r . t y p e   =   ' t r i a n g l e ' ; \ n 
 
                         o s c i l l a t o r . f r e q u e n c y . s e t V a l u e A t T i m e ( n o t e . f r e q u e n c y ,   b e g i n s ) ; \ n 
 
                         o s c i l l a t o r . c o n n e c t ( g a i n ) ;   g a i n . c o n n e c t ( c o n t e x t . d e s t i n a t i o n ) ; \ n 
 
                         g a i n . g a i n . s e t V a l u e A t T i m e ( 0 . 0 0 0 1 ,   b e g i n s ) ; \ n 
 
                         g a i n . g a i n . e x p o n e n t i a l R a m p T o V a l u e A t T i m e ( 0 . 6 2 ,   b e g i n s   +   0 . 0 2 5 ) ; \ n 
 
                         g a i n . g a i n . s e t V a l u e A t T i m e ( 0 . 6 2 ,   M a t h . m a x ( b e g i n s   +   0 . 0 3 ,   e n d s   -   0 . 0 5 5 ) ) ; \ n 
 
                         g a i n . g a i n . e x p o n e n t i a l R a m p T o V a l u e A t T i m e ( 0 . 0 0 0 1 ,   e n d s ) ; \ n 
 
                         o s c i l l a t o r . s t a r t ( b e g i n s ) ;   o s c i l l a t o r . s t o p ( e n d s   +   0 . 0 2 ) ; \ n 
 
                         i n c o m i n g C a l l T o n e N o d e s . p u s h ( o s c i l l a t o r ,   g a i n ) ; \ n 
 
                 } ) ; \ n 
 
                 s e t T i m e o u t ( f u n c t i o n ( ) {   i n c o m i n g C a l l T o n e N o d e s   =   [ ] ;   } ,   1 9 0 0 ) ; \ n 
 
         } \ n 
 
 \ n 
 
         / /   U n l o c k   a u d i o   a f t e r   t h e   f i r s t   u s e r   i n t e r a c t i o n   s o   b a c k g r o u n d   i n c o m i n g \ n 
 
         / /   c a l l s   c a n   r i n g   u n d e r   m o d e r n   b r o w s e r   a u t o p l a y   p o l i c i e s . \ n 
 
         [ ' c l i c k ' ,   ' k e y d o w n ' ,   ' t o u c h s t a r t ' ] . f o r E a c h ( f u n c t i o n ( e v e n t N a m e )   { \ n 
 
                 d o c u m e n t . a d d E v e n t L i s t e n e r ( e v e n t N a m e ,   f u n c t i o n   u n l o c k I n c o m i n g C a l l A u d i o ( )   { \ n 
 
                         g e t I n c o m i n g C a l l A u d i o C o n t e x t ( ) ; \ n 
 
                         d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( e v e n t N a m e ,   u n l o c k I n c o m i n g C a l l A u d i o ) ; \ n 
 
                 } ,   { p a s s i v e : t r u e } ) ; \ n 
 
         } ) ; \ n 
 
 \ n 
 
         v a r   i n c o m i n g C a l l R i n g t o n e O w n e r s   =   { } ; \ n 
 
         w i n d o w . s t a r t I n c o m i n g C a l l R i n g t o n e   =   f u n c t i o n ( o w n e r )   { \ n 
 
                 i n c o m i n g C a l l R i n g t o n e O w n e r s [ o w n e r   | |   ' d e f a u l t ' ]   =   t r u e ; \ n 
 
                 i f   ( i n c o m i n g C a l l R i n g t o n e T i m e r )   r e t u r n ; \ n 
 
                 p l a y I n c o m i n g C a l l T o n e ( ) ; \ n 
 
                 i n c o m i n g C a l l R i n g t o n e T i m e r   =   s e t I n t e r v a l ( p l a y I n c o m i n g C a l l T o n e ,   2 2 0 0 ) ; \ n 
 
         } ; \ n 
 
         w i n d o w . s t o p I n c o m i n g C a l l R i n g t o n e   =   f u n c t i o n ( o w n e r )   { \ n 
 
                 i f   ( o w n e r )   d e l e t e   i n c o m i n g C a l l R i n g t o n e O w n e r s [ o w n e r ] ; \ n 
 
                 e l s e   i n c o m i n g C a l l R i n g t o n e O w n e r s   =   { } ; \ n 
 
                 i f   ( O b j e c t . k e y s ( i n c o m i n g C a l l R i n g t o n e O w n e r s ) . l e n g t h )   r e t u r n ; \ n 
 
                 i f   ( i n c o m i n g C a l l R i n g t o n e T i m e r )   { \ n 
 
                         c l e a r I n t e r v a l ( i n c o m i n g C a l l R i n g t o n e T i m e r ) ; \ n 
 
                         i n c o m i n g C a l l R i n g t o n e T i m e r   =   n u l l ; \ n 
 
                 } \ n 
 
                 i n c o m i n g C a l l T o n e N o d e s . f o r E a c h ( f u n c t i o n ( n o d e )   { \ n 
 
                         t r y   {   i f   ( t y p e o f   n o d e . s t o p   = = =   ' f u n c t i o n ' )   n o d e . s t o p ( ) ;   }   c a t c h   ( i g n o r e )   { } \ n 
 
                         t r y   {   n o d e . d i s c o n n e c t ( ) ;   }   c a t c h   ( i g n o r e )   { } \ n 
 
                 } ) ; \ n 
 
                 i n c o m i n g C a l l T o n e N o d e s   =   [ ] ; \ n 
 
         } ; \ n 
 
         \ n 
 
         f u n c t i o n   s h o w B r o w s e r N o t i f i c a t i o n ( t i t l e ,   b o d y ,   u r l )   { \ n 
 
                 i f   ( ! ( ' N o t i f i c a t i o n '   i n   w i n d o w ) )   r e t u r n ; \ n 
 
                 \ n 
 
                 i f   ( N o t i f i c a t i o n . p e r m i s s i o n   = = =   ' g r a n t e d ' )   { \ n 
 
                         v a r   n o t i f i c a t i o n   =   n e w   N o t i f i c a t i o n ( t i t l e ,   { \ n 
 
                                 b o d y :   b o d y   | |   ' ' , \ n 
 
                                 i c o n :   ' / f a v i c o n . i c o ' , \ n 
 
                                 t a g :   ' w h a t s a p p - n o t i f i c a t i o n ' \ n 
 
                         } ) ; \ n 
 
                         n o t i f i c a t i o n . o n c l i c k   =   f u n c t i o n ( )   { \ n 
 
                                 w i n d o w . f o c u s ( ) ; \ n 
 
                                 i f   ( u r l )   w i n d o w . l o c a t i o n . h r e f   =   u r l ; \ n 
 
                                 n o t i f i c a t i o n . c l o s e ( ) ; \ n 
 
                         } ; \ n 
 
                         s e t T i m e o u t ( f u n c t i o n ( )   {   n o t i f i c a t i o n . c l o s e ( ) ;   } ,   5 0 0 0 ) ; \ n 
 
                 }   e l s e   i f   ( N o t i f i c a t i o n . p e r m i s s i o n   ! = =   ' d e n i e d ' )   { \ n 
 
                         N o t i f i c a t i o n . r e q u e s t P e r m i s s i o n ( ) ; \ n 
 
                 } \ n 
 
         } \ n 
 
         < / s c r i p t > \ n 
 
 \ n 
 
         { { - -   G l o b a l   i n c o m i n g   c a l l s ;   t h e   o p e n   c o n v e r s a t i o n ' s   o w n   c a l l s   s t a y   i n   i t s   l o c a l   U I .   - - } } \ n 
 
         < d i v   c l a s s = " m o d a l   f a d e "   i d = " g l o b a l W a C a l l M o d a l "   t a b i n d e x = " - 1 "   d a t a - b s - b a c k d r o p = " s t a t i c "   d a t a - b s - k e y b o a r d = " f a l s e "   a r i a - h i d d e n = " t r u e " > \ n 
 
                 < d i v   c l a s s = " m o d a l - d i a l o g   m o d a l - d i a l o g - c e n t e r e d   m o d a l - s m " > \ n 
 
                         < d i v   c l a s s = " m o d a l - c o n t e n t   b o r d e r - 0   s h a d o w - l g " > \ n 
 
                                 < d i v   c l a s s = " m o d a l - b o d y   t e x t - c e n t e r   p - 4 " > \ n 
 
                                         < d i v   c l a s s = " r o u n d e d - c i r c l e   b g - s u c c e s s   b g - o p a c i t y - 1 0   t e x t - s u c c e s s   d - i n l i n e - f l e x   a l i g n - i t e m s - c e n t e r   j u s t i f y - c o n t e n t - c e n t e r   m b - 3 "   s t y l e = " w i d t h : 7 8 p x ; h e i g h t : 7 8 p x " > \ n 
 
                                                 < i   c l a s s = " f a s   f a - p h o n e - a l t   f a - 2 x " > < / i > \ n 
 
                                         < / d i v > \ n 
 
                                         < h 5   i d = " g l o b a l W a C a l l C o n t a c t " > { {   _ _ ( ' I n c o m i n g   W h a t s A p p   c a l l ' )   } } < / h 5 > \ n 
 
                                         < p   c l a s s = " t e x t - m u t e d "   i d = " g l o b a l W a C a l l S t a t e " > { {   _ _ ( ' I n c o m i n g   W h a t s A p p   c a l l & ' )   } } < / p > \ n 
 
                                         < d i v   c l a s s = " d - f l e x   j u s t i f y - c o n t e n t - c e n t e r   g a p - 3 " > \ n 
 
                                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n   b t n - s u c c e s s   r o u n d e d - c i r c l e "   i d = " g l o b a l W a A n s w e r C a l l "   s t y l e = " w i d t h : 5 4 p x ; h e i g h t : 5 4 p x "   t i t l e = " { {   _ _ ( ' A n s w e r ' )   } } " > < i   c l a s s = " f a s   f a - p h o n e " > < / i > < / b u t t o n > \ n 
 
                                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n   b t n - s e c o n d a r y   r o u n d e d - c i r c l e   d - n o n e "   i d = " g l o b a l W a M u t e C a l l "   s t y l e = " w i d t h : 5 4 p x ; h e i g h t : 5 4 p x "   t i t l e = " { {   _ _ ( ' M u t e ' )   } } " > < i   c l a s s = " f a s   f a - m i c r o p h o n e " > < / i > < / b u t t o n > \ n 
 
                                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n   b t n - d a n g e r   r o u n d e d - c i r c l e "   i d = " g l o b a l W a E n d C a l l "   s t y l e = " w i d t h : 5 4 p x ; h e i g h t : 5 4 p x "   t i t l e = " { {   _ _ ( ' R e j e c t   o r   e n d   c a l l ' )   } } " > < i   c l a s s = " f a s   f a - p h o n e - s l a s h " > < / i > < / b u t t o n > \ n 
 
                                         < / d i v > \ n 
 
                                         < d i v   c l a s s = " a l e r t   a l e r t - d a n g e r   m t - 3   m b - 0   s m a l l   d - n o n e "   i d = " g l o b a l W a C a l l E r r o r " > < / d i v > \ n 
 
                                         < a   h r e f = " # "   c l a s s = " b t n   b t n - l i n k   b t n - s m   m t - 2   d - n o n e "   i d = " g l o b a l W a O p e n C o n v e r s a t i o n " > { {   _ _ ( ' O p e n   c o n v e r s a t i o n ' )   } } < / a > \ n 
 
                                         < a u d i o   i d = " g l o b a l W a R e m o t e A u d i o "   a u t o p l a y > < / a u d i o > \ n 
 
                                 < / d i v > \ n 
 
                         < / d i v > \ n 
 
                 < / d i v > \ n 
 
         < / d i v > \ n 
 
 \ n 
 
         < s c r i p t > \ n 
 
         ( f u n c t i o n   ( )   { \ n 
 
                 v a r   c o n v e r s a t i o n M o d a l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' w a C a l l M o d a l ' ) ; \ n 
 
                 v a r   l o c a l C o n v e r s a t i o n I d   =   c o n v e r s a t i o n M o d a l   ?   c o n v e r s a t i o n M o d a l . g e t A t t r i b u t e ( ' d a t a - c o n v e r s a t i o n - i d ' )   :   n u l l ; \ n 
 
                 v a r   i n c o m i n g U r l   =   n e w   U R L ( @ j s o n ( r o u t e ( ' c o n v e r s a t i o n s . c a l l s . i n c o m i n g ' ) ) ,   w i n d o w . l o c a t i o n . h r e f ) ; \ n 
 
                 i f   ( l o c a l C o n v e r s a t i o n I d )   i n c o m i n g U r l . s e a r c h P a r a m s . s e t ( ' e x c l u d e _ c o n v e r s a t i o n _ i d ' ,   l o c a l C o n v e r s a t i o n I d ) ; \ n 
 
                 v a r   p o l l U r l   =   i n c o m i n g U r l . t o S t r i n g ( ) ; \ n 
 
                 v a r   c s r f   =   @ j s o n ( c s r f _ t o k e n ( ) ) ; \ n 
 
                 v a r   m o d a l E l e m e n t   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a C a l l M o d a l ' ) ; \ n 
 
                 i f   ( ! m o d a l E l e m e n t   | |   ! w i n d o w . b o o t s t r a p   | |   ! n a v i g a t o r . m e d i a D e v i c e s )   r e t u r n ; \ n 
 
 \ n 
 
                 v a r   m o d a l   =   n e w   b o o t s t r a p . M o d a l ( m o d a l E l e m e n t ) ; \ n 
 
                 v a r   c u r r e n t C a l l   =   n u l l ,   p e e r   =   n u l l ,   l o c a l S t r e a m   =   n u l l ,   l a s t A l e r t e d C a l l I d   =   n u l l ; \ n 
 
                 v a r   a n s w e r B u t t o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a A n s w e r C a l l ' ) ; \ n 
 
                 v a r   e n d B u t t o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a E n d C a l l ' ) ; \ n 
 
                 v a r   m u t e B u t t o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a M u t e C a l l ' ) ; \ n 
 
                 v a r   s t a t e   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a C a l l S t a t e ' ) ; \ n 
 
                 v a r   e r r o r B o x   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a C a l l E r r o r ' ) ; \ n 
 
 \ n 
 
                 f u n c t i o n   a p i ( u r l ,   m e t h o d ,   b o d y )   { \ n 
 
                         r e t u r n   f e t c h ( u r l ,   { \ n 
 
                                 m e t h o d :   m e t h o d   | |   ' G E T ' ,   c r e d e n t i a l s :   ' s a m e - o r i g i n ' , \ n 
 
                                 h e a d e r s :   { ' A c c e p t ' : ' a p p l i c a t i o n / j s o n ' , ' C o n t e n t - T y p e ' : ' a p p l i c a t i o n / j s o n ' , ' X - C S R F - T O K E N ' : c s r f } , \ n 
 
                                 b o d y :   b o d y   ?   J S O N . s t r i n g i f y ( b o d y )   :   u n d e f i n e d \ n 
 
                         } ) . t h e n ( f u n c t i o n   ( r e s p o n s e )   { \ n 
 
                                 r e t u r n   r e s p o n s e . t e x t ( ) . t h e n ( f u n c t i o n   ( r a w )   { \ n 
 
                                         v a r   d a t a   =   { } ; \ n 
 
                                         t r y   {   d a t a   =   J S O N . p a r s e ( r a w ) ;   }   c a t c h   ( i g n o r e )   { } \ n 
 
                                         i f   ( ! r e s p o n s e . o k   | |   d a t a . s u c c e s s   = = =   f a l s e )   t h r o w   n e w   E r r o r ( d a t a . m e s s a g e   | |   ' { {   _ _ ( ' R e q u e s t   f a i l e d . ' )   } } ' ) ; \ n 
 
                                         r e t u r n   d a t a ; \ n 
 
                                 } ) ; \ n 
 
                         } ) ; \ n 
 
                 } \ n 
 
                 f u n c t i o n   s h o w E r r o r ( m e s s a g e )   {   e r r o r B o x . t e x t C o n t e n t   =   m e s s a g e ;   e r r o r B o x . c l a s s L i s t . r e m o v e ( ' d - n o n e ' ) ;   } \ n 
 
                 f u n c t i o n   c l e a r E r r o r ( )   {   e r r o r B o x . c l a s s L i s t . a d d ( ' d - n o n e ' ) ;   e r r o r B o x . t e x t C o n t e n t   =   ' ' ;   } \ n 
 
                 f u n c t i o n   n o r m a l i z e S d p ( s d p )   { \ n 
 
                         v a r   v a l u e   =   S t r i n g ( s d p   | |   ' ' ) . r e p l a c e ( / \ \ r \ \ n / g , ' \ n ' ) . r e p l a c e ( / \ \ n / g , ' \ n ' ) . r e p l a c e ( / \ \ r / g , ' \ n ' ) \ n 
 
                                 . r e p l a c e ( / \ r \ n / g , ' \ n ' ) . r e p l a c e ( / \ r / g , ' \ n ' ) . r e p l a c e ( / [ \ u 2 0 2 8 \ u 2 0 2 9 ] / g , ' \ n ' ) . r e p l a c e ( / \ u 0 0 0 0 / g , ' ' ) . t r i m ( ) ; \ n 
 
                         v a r   l i n e s   =   v a l u e . s p l i t ( ' \ n ' ) . m a p ( f u n c t i o n ( l i n e ) { r e t u r n   l i n e . t r i m ( ) ; } ) . f i l t e r ( B o o l e a n ) ; \ n 
 
                         i f   ( ! l i n e s . l e n g t h   | |   l i n e s [ 0 ]   ! = =   ' v = 0 ' )   t h r o w   n e w   E r r o r ( ' { {   _ _ ( ' M e t a   r e t u r n e d   a n   i n v a l i d   c a l l   s e s s i o n   d e s c r i p t i o n . ' )   } } ' ) ; \ n 
 
                         r e t u r n   l i n e s . j o i n ( ' \ r \ n ' )   +   ' \ r \ n ' ; \ n 
 
                 } \ n 
 
                 f u n c t i o n   w a i t F o r I c e ( p c )   { \ n 
 
                         i f   ( p c . i c e G a t h e r i n g S t a t e   = = =   ' c o m p l e t e ' )   r e t u r n   P r o m i s e . r e s o l v e ( ) ; \ n 
 
                         r e t u r n   n e w   P r o m i s e ( f u n c t i o n   ( r e s o l v e )   { \ n 
 
                                 v a r   t i m e r   =   s e t T i m e o u t ( r e s o l v e ,   8 0 0 0 ) ; \ n 
 
                                 f u n c t i o n   c h a n g e d ( )   { \ n 
 
                                         i f   ( p c . i c e G a t h e r i n g S t a t e   = = =   ' c o m p l e t e ' )   { \ n 
 
                                                 c l e a r T i m e o u t ( t i m e r ) ;   p c . r e m o v e E v e n t L i s t e n e r ( ' i c e g a t h e r i n g s t a t e c h a n g e ' ,   c h a n g e d ) ;   r e s o l v e ( ) ; \ n 
 
                                         } \ n 
 
                                 } \ n 
 
                                 p c . a d d E v e n t L i s t e n e r ( ' i c e g a t h e r i n g s t a t e c h a n g e ' ,   c h a n g e d ) ; \ n 
 
                         } ) ; \ n 
 
                 } \ n 
 
                 f u n c t i o n   c r e a t e P e e r ( )   { \ n 
 
                         p e e r   =   n e w   R T C P e e r C o n n e c t i o n ( { i c e S e r v e r s : [ { u r l s : ' s t u n : s t u n . l . g o o g l e . c o m : 1 9 3 0 2 ' } ] } ) ; \ n 
 
                         p e e r . o n t r a c k   =   f u n c t i o n   ( e v e n t )   { \ n 
 
                                 v a r   a u d i o   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a R e m o t e A u d i o ' ) ; \ n 
 
                                 a u d i o . s r c O b j e c t   =   e v e n t . s t r e a m s [ 0 ] ;   a u d i o . p l a y ( ) . c a t c h ( f u n c t i o n ( ) { } ) ; \ n 
 
                         } ; \ n 
 
                         p e e r . o n c o n n e c t i o n s t a t e c h a n g e   =   f u n c t i o n   ( )   { \ n 
 
                                 i f   ( p e e r   & &   p e e r . c o n n e c t i o n S t a t e   = = =   ' c o n n e c t e d ' )   { \ n 
 
                                         c l e a r E r r o r ( ) ;   s t a t e . t e x t C o n t e n t   =   ' { {   _ _ ( ' C a l l   c o n n e c t e d ' )   } } ' ; \ n 
 
                                 } \ n 
 
                         } ; \ n 
 
                         r e t u r n   n a v i g a t o r . m e d i a D e v i c e s . g e t U s e r M e d i a ( { a u d i o : { e c h o C a n c e l l a t i o n : t r u e , n o i s e S u p p r e s s i o n : t r u e } , v i d e o : f a l s e } ) \ n 
 
                                 . t h e n ( f u n c t i o n   ( s t r e a m )   { \ n 
 
                                         l o c a l S t r e a m   =   s t r e a m ; \ n 
 
                                         s t r e a m . g e t T r a c k s ( ) . f o r E a c h ( f u n c t i o n ( t r a c k ) { p e e r . a d d T r a c k ( t r a c k ,   s t r e a m ) ; } ) ; \ n 
 
                                 } ) ; \ n 
 
                 } \ n 
 
                 f u n c t i o n   c l e a n u p ( )   { \ n 
 
                         i f   ( t y p e o f   s t o p I n c o m i n g C a l l R i n g t o n e   = = =   ' f u n c t i o n ' )   s t o p I n c o m i n g C a l l R i n g t o n e ( ' g l o b a l ' ) ; \ n 
 
                         i f   ( l o c a l S t r e a m )   l o c a l S t r e a m . g e t T r a c k s ( ) . f o r E a c h ( f u n c t i o n ( t r a c k ) { t r a c k . s t o p ( ) ; } ) ; \ n 
 
                         i f   ( p e e r )   p e e r . c l o s e ( ) ; \ n 
 
                         p e e r   =   n u l l ;   l o c a l S t r e a m   =   n u l l ;   c u r r e n t C a l l   =   n u l l ; \ n 
 
                         a n s w e r B u t t o n . d i s a b l e d   =   f a l s e ;   e n d B u t t o n . d i s a b l e d   =   f a l s e ; \ n 
 
                         a n s w e r B u t t o n . c l a s s L i s t . r e m o v e ( ' d - n o n e ' ) ;   m u t e B u t t o n . c l a s s L i s t . a d d ( ' d - n o n e ' ) ; \ n 
 
                         m o d a l . h i d e ( ) ; \ n 
 
                 } \ n 
 
                 f u n c t i o n   p r e s e n t ( c a l l )   { \ n 
 
                         i f   ( l o c a l C o n v e r s a t i o n I d   & &   S t r i n g ( c a l l . c o n v e r s a t i o n _ i d )   = = =   S t r i n g ( l o c a l C o n v e r s a t i o n I d ) )   r e t u r n ; \ n 
 
                         c u r r e n t C a l l   =   c a l l ; \ n 
 
                         d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a C a l l C o n t a c t ' ) . t e x t C o n t e n t   =   c a l l . c o n t a c t _ n a m e   | |   ' { {   _ _ ( ' I n c o m i n g   W h a t s A p p   c a l l ' )   } } ' ; \ n 
 
                         d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a O p e n C o n v e r s a t i o n ' ) . h r e f   =   c a l l . c o n v e r s a t i o n _ u r l   | |   ' # ' ; \ n 
 
                         d o c u m e n t . g e t E l e m e n t B y I d ( ' g l o b a l W a O p e n C o n v e r s a t i o n ' ) . c l a s s L i s t . t o g g l e ( ' d - n o n e ' ,   ! c a l l . c o n v e r s a t i o n _ u r l ) ; \ n 
 
                         s t a t e . t e x t C o n t e n t   =   c a l l . s t a t u s   = = =   ' a c c e p t e d '   ?   ' { {   _ _ ( ' C a l l   c o n n e c t e d ' )   } } '   :   ' { {   _ _ ( ' I n c o m i n g   W h a t s A p p   c a l l & ' )   } } ' ; \ n 
 
                         c l e a r E r r o r ( ) ;   m o d a l . s h o w ( ) ; \ n 
 
                         i f   ( l a s t A l e r t e d C a l l I d   ! = =   c a l l . i d )   { \ n 
 
                                 l a s t A l e r t e d C a l l I d   =   c a l l . i d ; \ n 
 
                                 i f   ( c a l l . s t a t u s   ! = =   ' a c c e p t e d '   & &   t y p e o f   s t a r t I n c o m i n g C a l l R i n g t o n e   = = =   ' f u n c t i o n ' )   s t a r t I n c o m i n g C a l l R i n g t o n e ( ' g l o b a l ' ) ; \ n 
 
                                 i f   ( t y p e o f   s h o w B r o w s e r N o t i f i c a t i o n   = = =   ' f u n c t i o n ' )   s h o w B r o w s e r N o t i f i c a t i o n ( ' { {   _ _ ( ' I n c o m i n g   W h a t s A p p   c a l l ' )   } } ' ,   c a l l . c o n t a c t _ n a m e   | |   ' ' ,   c a l l . c o n v e r s a t i o n _ u r l   | |   ' ' ) ; \ n 
 
                         } \ n 
 
                 } \ n 
 
                 v a r   i n c o m i n g C a l l P o l l P e n d i n g   =   f a l s e ; \ n 
 
                 f u n c t i o n   p o l l ( )   { \ n 
 
                         / /   S l o w   r e s p o n s e s   m u s t   n o t   a c c u m u l a t e   a n o t h e r   r e q u e s t   e v e r y   f o u r   s e c o n d s . \ n 
 
                         i f   ( i n c o m i n g C a l l P o l l P e n d i n g )   r e t u r n ; \ n 
 
                         i n c o m i n g C a l l P o l l P e n d i n g   =   t r u e ; \ n 
 
                         r e t u r n   a p i ( p o l l U r l ) . t h e n ( f u n c t i o n   ( d a t a )   { \ n 
 
                                 i f   ( d a t a . c a l l   & &   ( ! c u r r e n t C a l l   | |   c u r r e n t C a l l . i d   ! = =   d a t a . c a l l . i d ) )   p r e s e n t ( d a t a . c a l l ) ; \ n 
 
                                 e l s e   i f   ( ! d a t a . c a l l   & &   c u r r e n t C a l l )   c l e a n u p ( ) ; \ n 
 
                                 e l s e   i f   ( d a t a . c a l l )   { \ n 
 
                                         c u r r e n t C a l l   =   d a t a . c a l l ; \ n 
 
                                         i f   ( d a t a . c a l l . s t a t u s   = = =   ' a c c e p t e d ' )   {   i f   ( t y p e o f   s t o p I n c o m i n g C a l l R i n g t o n e   = = =   ' f u n c t i o n ' )   s t o p I n c o m i n g C a l l R i n g t o n e ( ' g l o b a l ' ) ;   c l e a r E r r o r ( ) ;   s t a t e . t e x t C o n t e n t = ' { {   _ _ ( ' C a l l   c o n n e c t e d ' )   } } ' ;   } \ n 
 
                                 } \ n 
 
                         } ) . c a t c h ( f u n c t i o n ( ) { } ) . f i n a l l y ( f u n c t i o n   ( )   {   i n c o m i n g C a l l P o l l P e n d i n g   =   f a l s e ;   } ) ; \ n 
 
                 } \ n 
 
                 w i n d o w . r e f r e s h G l o b a l I n c o m i n g W h a t s A p p C a l l   =   p o l l ; \ n 
 
                 i f   ( ! w i n d o w . r e f r e s h I n c o m i n g W h a t s A p p C a l l )   w i n d o w . r e f r e s h I n c o m i n g W h a t s A p p C a l l   =   p o l l ; \ n 
 
                 @ i f ( a c t i v e _ t e n a n t _ i d ( ) ) \ n 
 
                 i f   ( t y p e o f   E c h o   ! = =   ' u n d e f i n e d ' )   { \ n 
 
                         E c h o . p r i v a t e ( ' t e n a n t . { {   a c t i v e _ t e n a n t _ i d ( )   } } ' ) \ n 
 
                                 . l i s t e n ( ' . W h a t s A p p C a l l U p d a t e d ' ,   f u n c t i o n   ( e v e n t )   { \ n 
 
                                         i f   ( l o c a l C o n v e r s a t i o n I d   & &   e v e n t   & &   S t r i n g ( e v e n t . c o n v e r s a t i o n _ i d )   = = =   S t r i n g ( l o c a l C o n v e r s a t i o n I d ) )   r e t u r n ; \ n 
 
                                         v a r   t e r m i n a l   =   [ ' r e j e c t e d ' , ' f a i l e d ' , ' c o m p l e t e d ' , ' t e r m i n a t e d ' , ' e n d e d ' , ' d i s c o n n e c t e d ' , ' m i s s e d ' , ' c a n c e l l e d ' , ' c a n c e l e d ' , ' b u s y ' , ' n o _ a n s w e r ' , ' n o t _ a n s w e r e d ' ] ; \ n 
 
                                         i f   ( e v e n t   & &   t e r m i n a l . i n d e x O f ( S t r i n g ( e v e n t . s t a t u s   | |   ' ' ) . t o L o w e r C a s e ( ) )   ! = =   - 1 )   { \ n 
 
                                                 i f   ( c u r r e n t C a l l   & &   S t r i n g ( c u r r e n t C a l l . i d )   = = =   S t r i n g ( e v e n t . c a l l _ i d ) )   { \ n 
 
                                                         i f   ( t y p e o f   s t o p I n c o m i n g C a l l R i n g t o n e   = = =   ' f u n c t i o n ' )   s t o p I n c o m i n g C a l l R i n g t o n e ( ' g l o b a l ' ) ; \ n 
 
                                                         s t a t e . t e x t C o n t e n t   =   ' { {   _ _ ( ' C a l l   e n d e d ' )   } } ' ; \ n 
 
                                                         v a r   e n d e d C a l l I d   =   S t r i n g ( e v e n t . c a l l _ i d ) ; \ n 
 
                                                         s e t T i m e o u t ( f u n c t i o n   ( )   {   i f   ( c u r r e n t C a l l   & &   S t r i n g ( c u r r e n t C a l l . i d )   = = =   e n d e d C a l l I d )   c l e a n u p ( ) ;   } ,   2 5 0 ) ; \ n 
 
                                                 } \ n 
 
                                                 r e t u r n ; \ n 
 
                                         } \ n 
 
                                         p o l l ( ) ; \ n 
 
                                 } ) ; \ n 
 
                 } \ n 
 
                 @ e n d i f \ n 
 
                 a n s w e r B u t t o n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( )   { \ n 
 
                         i f   ( ! c u r r e n t C a l l   | |   ! c u r r e n t C a l l . r e m o t e _ s d p   | |   ! c u r r e n t C a l l . a n s w e r _ u r l )   r e t u r n ; \ n 
 
                         i f   ( t y p e o f   s t o p I n c o m i n g C a l l R i n g t o n e   = = =   ' f u n c t i o n ' )   s t o p I n c o m i n g C a l l R i n g t o n e ( ' g l o b a l ' ) ; \ n 
 
                         c l e a r E r r o r ( ) ;   a n s w e r B u t t o n . d i s a b l e d   =   t r u e ;   s t a t e . t e x t C o n t e n t   =   ' { {   _ _ ( ' C o n n e c t i n g & ' )   } } ' ; \ n 
 
                         c r e a t e P e e r ( ) . t h e n ( f u n c t i o n ( ) { r e t u r n   p e e r . s e t R e m o t e D e s c r i p t i o n ( { t y p e : ' o f f e r ' , s d p : n o r m a l i z e S d p ( c u r r e n t C a l l . r e m o t e _ s d p ) } ) ; } ) \ n 
 
                                 . t h e n ( f u n c t i o n ( ) { r e t u r n   p e e r . c r e a t e A n s w e r ( ) ; } ) \ n 
 
                                 . t h e n ( f u n c t i o n ( a n s w e r ) { r e t u r n   p e e r . s e t L o c a l D e s c r i p t i o n ( a n s w e r ) ; } ) \ n 
 
                                 . t h e n ( f u n c t i o n ( ) { r e t u r n   w a i t F o r I c e ( p e e r ) ; } ) \ n 
 
                                 . t h e n ( f u n c t i o n ( ) { r e t u r n   a p i ( c u r r e n t C a l l . a n s w e r _ u r l , ' P O S T ' , { s d p : n o r m a l i z e S d p ( p e e r . l o c a l D e s c r i p t i o n . s d p ) } ) ; } ) \ n 
 
                                 . t h e n ( f u n c t i o n ( d a t a ) { c l e a r E r r o r ( ) ; c u r r e n t C a l l = d a t a . c a l l ; s t a t e . t e x t C o n t e n t = ' { {   _ _ ( ' C a l l   c o n n e c t e d ' )   } } ' ; a n s w e r B u t t o n . c l a s s L i s t . a d d ( ' d - n o n e ' ) ; m u t e B u t t o n . c l a s s L i s t . r e m o v e ( ' d - n o n e ' ) ; } ) \ n 
 
                                 . c a t c h ( f u n c t i o n ( e r r o r ) { s h o w E r r o r ( e r r o r . m e s s a g e ) ; a n s w e r B u t t o n . d i s a b l e d = f a l s e ; s t a t e . t e x t C o n t e n t = ' { {   _ _ ( ' C o u l d   n o t   a n s w e r   t h e   c a l l ' )   } } ' ; } ) ; \ n 
 
                 } ) ; \ n 
 
                 e n d B u t t o n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( )   { \ n 
 
                         i f   ( ! c u r r e n t C a l l   | |   ! c u r r e n t C a l l . e n d _ u r l )   {   c l e a n u p ( ) ;   r e t u r n ;   } \ n 
 
                         c l e a r E r r o r ( ) ;   e n d B u t t o n . d i s a b l e d   =   t r u e ;   s t a t e . t e x t C o n t e n t   =   ' { {   _ _ ( ' E n d i n g   c a l l & ' )   } } ' ; \ n 
 
                         a p i ( c u r r e n t C a l l . e n d _ u r l , ' P O S T ' ) . t h e n ( c l e a n u p ) . c a t c h ( f u n c t i o n ( e r r o r ) { s h o w E r r o r ( e r r o r . m e s s a g e ) ; e n d B u t t o n . d i s a b l e d = f a l s e ; s t a t e . t e x t C o n t e n t = ' { {   _ _ ( ' C o u l d   n o t   e n d   t h e   c a l l ' )   } } ' ; } ) ; \ n 
 
                 } ) ; \ n 
 
                 m u t e B u t t o n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   f u n c t i o n   ( )   { \ n 
 
                         i f   ( ! l o c a l S t r e a m )   r e t u r n ; \ n 
 
                         v a r   t r a c k = l o c a l S t r e a m . g e t A u d i o T r a c k s ( ) [ 0 ] ;   t r a c k . e n a b l e d = ! t r a c k . e n a b l e d ; \ n 
 
                         t h i s . q u e r y S e l e c t o r ( ' i ' ) . c l a s s N a m e = t r a c k . e n a b l e d ? ' f a s   f a - m i c r o p h o n e ' : ' f a s   f a - m i c r o p h o n e - s l a s h ' ; \ n 
 
                 } ) ; \ n 
 
                 s e t I n t e r v a l ( p o l l ,   4 0 0 0 ) ;   p o l l ( ) ; \ n 
 
         } ) ( ) ; \ n 
 
         < / s c r i p t > \ n 
 
         @ e n d a u t h \ n 
 
 @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . a u t h - s e s s i o n - r e f r e s h ' ) \ n 
 
 < / b o d y > \ n 
 
 < / h t m l > \ n 
 
 '   c o n t a i n s   " ' a l l o w e d ' = > $ _ _ c a n A u t o m a t i o n " . 
 
 
 
 H : \ i w e n t a \ i w e n t a \ s y s t e m \ t e s t s \ U n i t \ T e n a n t P e r m i s s i o n D i s a b l e d U i T e s t . p h p : 1 9 
 
 
 
 2 )   T e s t s \ U n i t \ T e n a n t P e r m i s s i o n D i s a b l e d U i T e s t : : t e s t _ h o m e _ q u i c k _ a c t i o n s _ a n d _ s t a t s _ e x p l a i n _ m i s s i n g _ p e r m i s s i o n s 
 
 F a i l e d   a s s e r t i n g   t h a t   ' @ e x t e n d s ( ' w e b s i t e : : l a y o u t s . a p p ' ) \ r \ n 
 
 \ r \ n 
 
 @ s e c t i o n ( ' t i t l e ' ,   _ _ ( ' H o m e ' ) ) \ r \ n 
 
 @ s e c t i o n ( ' p a g e - t i t l e ' ,   _ _ ( ' H o m e ' ) ) \ r \ n 
 
 \ r \ n 
 
 @ s e c t i o n ( ' b r e a d c r u m b ' ) \ r \ n 
 
 < l i   c l a s s = " b r e a d c r u m b - i t e m   a c t i v e " > { {   _ _ ( ' H o m e ' )   } } < / l i > \ r \ n 
 
 @ e n d s e c t i o n \ r \ n 
 
 \ r \ n 
 
 @ p u s h ( ' s t y l e s ' ) \ r \ n 
 
 < s t y l e > \ r \ n 
 
         / *   W e l c o m e   H e r o   * / \ r \ n 
 
         . w e l c o m e - h e r o   { \ r \ n 
 
                 b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 0 7 5 e 5 4   0 % ,   # 1 2 8 c 7 e   5 0 % ,   # 2 5 d 3 6 6   1 0 0 % ) ; \ r \ n 
 
                 b o r d e r - r a d i u s :   2 0 p x ; \ r \ n 
 
                 p a d d i n g :   2 . 5 r e m   2 r e m ; \ r \ n 
 
                 c o l o r :   w h i t e ; \ r \ n 
 
                 p o s i t i o n :   r e l a t i v e ; \ r \ n 
 
                 o v e r f l o w :   h i d d e n ; \ r \ n 
 
         } \ r \ n 
 
         . w e l c o m e - h e r o : : b e f o r e   { \ r \ n 
 
                 c o n t e n t :   ' ' ; \ r \ n 
 
                 p o s i t i o n :   a b s o l u t e ; \ r \ n 
 
                 t o p :   - 4 0 % ; \ r \ n 
 
                 { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' l e f t :   - 2 0 % ; '   :   ' r i g h t :   - 2 0 % ; '   } } \ r \ n 
 
                 w i d t h :   5 0 0 p x ; \ r \ n 
 
                 h e i g h t :   5 0 0 p x ; \ r \ n 
 
                 b a c k g r o u n d :   r a d i a l - g r a d i e n t ( c i r c l e ,   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 8 )   0 % ,   t r a n s p a r e n t   7 0 % ) ; \ r \ n 
 
                 b o r d e r - r a d i u s :   5 0 % ; \ r \ n 
 
         } \ r \ n 
 
         . w e l c o m e - h e r o : : a f t e r   { \ r \ n 
 
                 c o n t e n t :   ' ' ; \ r \ n 
 
                 p o s i t i o n :   a b s o l u t e ; \ r \ n 
 
                 b o t t o m :   - 3 0 % ; \ r \ n 
 
                 { {   a p p ( ) - > g e t L o c a l e ( )   = =   ' a r '   ?   ' r i g h t :   1 0 % ; '   :   ' l e f t :   1 0 % ; '   } } \ r \ n 
 
                 w i d t h :   3 0 0 p x ; \ r \ n 
 
                 h e i g h t :   3 0 0 p x ; \ r \ n 
 
                 b a c k g r o u n d :   r a d i a l - g r a d i e n t ( c i r c l e ,   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 )   0 % ,   t r a n s p a r e n t   7 0 % ) ; \ r \ n 
 
                 b o r d e r - r a d i u s :   5 0 % ; \ r \ n 
 
         } \ r \ n 
 
         . w e l c o m e - h e r o   h 2   { \ r \ n 
 
                 f o n t - s i z e :   1 . 7 5 r e m ; \ r \ n 
 
                 f o n t - w e i g h t :   7 0 0 ; \ r \ n 
 
                 m a r g i n - b o t t o m :   0 . 2 5 r e m ; \ r \ n 
 
         } \ r \ n 
 
         . w e l c o m e - h e r o   p   { \ r \ n 
 
                 o p a c i t y :   0 . 8 5 ; \ r \ n 
 
                 f o n t - s i z e :   1 r e m ; \ r \ n 
 
                 m a r g i n :   0 ; \ r \ n 
 
         } \ r \ n 
 
         . w e l c o m e - h e r o   . w e l c o m e - t i m e   { \ r \ n 
 
                 f o n t - s i z e :   0 . 8 5 r e m ; \ r \ n 
 
                 o p a c i t y :   0 . 7 ; \ r \ n 
 
                 m a r g i n - t o p :   0 . 5 r e m ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         / *   M i n i   S t a t s   * / \ r \ n 
 
         . m i n i - s t a t   { \ r \ n 
 
                 b a c k g r o u n d :   w h i t e ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 6 p x ; \ r \ n 
 
                 p a d d i n g :   1 . 5 r e m ; \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 g a p :   1 r e m ; \ r \ n 
 
                 b o x - s h a d o w :   0   2 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 6 ) ; \ r \ n 
 
                 t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ r \ n 
 
                 b o r d e r :   1 p x   s o l i d   r g b a ( 0 , 0 , 0 , 0 . 0 4 ) ; \ r \ n 
 
         } \ r \ n 
 
         . m i n i - s t a t : h o v e r   { \ r \ n 
 
                 b o x - s h a d o w :   0   8 p x   2 4 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; \ r \ n 
 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; \ r \ n 
 
         } \ r \ n 
 
         . m i n i - s t a t   . s t a t - i c o n   { \ r \ n 
 
                 w i d t h :   5 6 p x ; \ r \ n 
 
                 h e i g h t :   5 6 p x ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 4 p x ; \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   c e n t e r ; \ r \ n 
 
                 f o n t - s i z e :   1 . 4 r e m ; \ r \ n 
 
                 f l e x - s h r i n k :   0 ; \ r \ n 
 
         } \ r \ n 
 
         . m i n i - s t a t   . s t a t - i n f o   h 3   { \ r \ n 
 
                 f o n t - s i z e :   1 . 7 5 r e m ; \ r \ n 
 
                 f o n t - w e i g h t :   8 0 0 ; \ r \ n 
 
                 m a r g i n :   0 ; \ r \ n 
 
                 l i n e - h e i g h t :   1 ; \ r \ n 
 
                 c o l o r :   # 1 a 1 a 2 e ; \ r \ n 
 
         } \ r \ n 
 
         . m i n i - s t a t   . s t a t - i n f o   p   { \ r \ n 
 
                 m a r g i n :   0 . 2 5 r e m   0   0 ; \ r \ n 
 
                 f o n t - s i z e :   0 . 8 r e m ; \ r \ n 
 
                 c o l o r :   # 6 c 7 5 7 d ; \ r \ n 
 
                 f o n t - w e i g h t :   5 0 0 ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         / *   W h a t s A p p   S t a t u s   C a r d   * / \ r \ n 
 
         . w a - s t a t u s - c a r d   { \ r \ n 
 
                 b o r d e r - r a d i u s :   1 6 p x ; \ r \ n 
 
                 o v e r f l o w :   h i d d e n ; \ r \ n 
 
                 b o r d e r :   n o n e ; \ r \ n 
 
         } \ r \ n 
 
         . w a - s t a t u s - c a r d : h o v e r   { \ r \ n 
 
                 t r a n s f o r m :   n o n e ; \ r \ n 
 
         } \ r \ n 
 
         . w a - s t a t u s - h e a d e r   { \ r \ n 
 
                 p a d d i n g :   1 . 2 5 r e m   1 . 5 r e m ; \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; \ r \ n 
 
         } \ r \ n 
 
         . w a - s t a t u s - h e a d e r . c o n n e c t e d   { \ r \ n 
 
                 b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # d c f c e 7 ,   # b b f 7 d 0 ) ; \ r \ n 
 
         } \ r \ n 
 
         . w a - s t a t u s - h e a d e r . d i s c o n n e c t e d   { \ r \ n 
 
                 b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # f e f 3 c 7 ,   # f d e 6 8 a ) ; \ r \ n 
 
         } \ r \ n 
 
         . w a - p h o n e - r o w   { \ r \ n 
 
                 p a d d i n g :   0 . 8 5 r e m   1 . 5 r e m ; \ r \ n 
 
                 b o r d e r - b o t t o m :   1 p x   s o l i d   # f 1 f 5 f 9 ; \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; \ r \ n 
 
                 t r a n s i t i o n :   b a c k g r o u n d   0 . 2 s ; \ r \ n 
 
         } \ r \ n 
 
         . w a - p h o n e - r o w : h o v e r   { \ r \ n 
 
                 b a c k g r o u n d :   # f 8 f a f c ; \ r \ n 
 
         } \ r \ n 
 
         . w a - p h o n e - r o w : l a s t - c h i l d   { \ r \ n 
 
                 b o r d e r - b o t t o m :   n o n e ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         / *   Q u i c k   A c t i o n s   G r i d   * / \ r \ n 
 
         . q a - i t e m   { \ r \ n 
 
                 t e x t - d e c o r a t i o n :   n o n e ; \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   c e n t e r ; \ r \ n 
 
                 p a d d i n g :   1 . 2 5 r e m   0 . 7 5 r e m ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 4 p x ; \ r \ n 
 
                 b a c k g r o u n d :   # f 8 f a f c ; \ r \ n 
 
                 b o r d e r :   1 p x   s o l i d   # e 2 e 8 f 0 ; \ r \ n 
 
                 t r a n s i t i o n :   a l l   0 . 2 5 s   e a s e ; \ r \ n 
 
                 t e x t - a l i g n :   c e n t e r ; \ r \ n 
 
                 m i n - h e i g h t :   1 0 0 p x ; \ r \ n 
 
                 c o l o r :   # 4 7 5 5 6 9 ; \ r \ n 
 
         } \ r \ n 
 
         . q a - i t e m : h o v e r   { \ r \ n 
 
                 b o r d e r - c o l o r :   t r a n s p a r e n t ; \ r \ n 
 
                 c o l o r :   w h i t e ; \ r \ n 
 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 3 p x ) ; \ r \ n 
 
                 b o x - s h a d o w :   0   8 p x   2 0 p x   r g b a ( 0 , 0 , 0 , 0 . 1 2 ) ; \ r \ n 
 
         } \ r \ n 
 
         . q a - i t e m   . q a - i c o n   { \ r \ n 
 
                 w i d t h :   4 4 p x ; \ r \ n 
 
                 h e i g h t :   4 4 p x ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 2 p x ; \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   c e n t e r ; \ r \ n 
 
                 f o n t - s i z e :   1 . 2 r e m ; \ r \ n 
 
                 m a r g i n - b o t t o m :   0 . 5 r e m ; \ r \ n 
 
                 t r a n s i t i o n :   a l l   0 . 2 5 s   e a s e ; \ r \ n 
 
         } \ r \ n 
 
         . q a - i t e m   s p a n   { \ r \ n 
 
                 f o n t - s i z e :   0 . 7 8 r e m ; \ r \ n 
 
                 f o n t - w e i g h t :   6 0 0 ; \ r \ n 
 
                 l i n e - h e i g h t :   1 . 2 ; \ r \ n 
 
         } \ r \ n 
 
         / *   Q u i c k   A c t i o n   c o l o r   t h e m e s   * / \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " b l u e " ] : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 3 b 8 2 f 6 ,   # 2 5 6 3 e b ) ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " b l u e " ]   . q a - i c o n   {   b a c k g r o u n d :   # d b e a f e ;   c o l o r :   # 2 5 6 3 e b ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " b l u e " ] : h o v e r   . q a - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   } \ r \ n 
 
 \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " r e d " ] : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # e f 4 4 4 4 ,   # d c 2 6 2 6 ) ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " r e d " ]   . q a - i c o n   {   b a c k g r o u n d :   # f e e 2 e 2 ;   c o l o r :   # d c 2 6 2 6 ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " r e d " ] : h o v e r   . q a - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   } \ r \ n 
 
 \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " a m b e r " ] : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # f 5 9 e 0 b ,   # d 9 7 7 0 6 ) ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " a m b e r " ]   . q a - i c o n   {   b a c k g r o u n d :   # f e f 3 c 7 ;   c o l o r :   # d 9 7 7 0 6 ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " a m b e r " ] : h o v e r   . q a - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   } \ r \ n 
 
 \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " g r e e n " ] : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 2 2 c 5 5 e ,   # 1 6 a 3 4 a ) ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " g r e e n " ]   . q a - i c o n   {   b a c k g r o u n d :   # d c f c e 7 ;   c o l o r :   # 1 6 a 3 4 a ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " g r e e n " ] : h o v e r   . q a - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   } \ r \ n 
 
 \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " t e a l " ] : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 1 4 b 8 a 6 ,   # 0 d 9 4 8 8 ) ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " t e a l " ]   . q a - i c o n   {   b a c k g r o u n d :   # c c f b f 1 ;   c o l o r :   # 0 d 9 4 8 8 ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " t e a l " ] : h o v e r   . q a - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   } \ r \ n 
 
 \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " p u r p l e " ] : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 8 b 5 c f 6 ,   # 7 c 3 a e d ) ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " p u r p l e " ]   . q a - i c o n   {   b a c k g r o u n d :   # e d e 9 f e ;   c o l o r :   # 7 c 3 a e d ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " p u r p l e " ] : h o v e r   . q a - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   } \ r \ n 
 
 \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " s l a t e " ] : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 6 4 7 4 8 b ,   # 4 7 5 5 6 9 ) ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " s l a t e " ]   . q a - i c o n   {   b a c k g r o u n d :   # f 1 f 5 f 9 ;   c o l o r :   # 4 7 5 5 6 9 ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " s l a t e " ] : h o v e r   . q a - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   } \ r \ n 
 
 \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " w h a t s a p p " ] : h o v e r   {   b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 2 5 d 3 6 6 ,   # 1 2 8 c 7 e ) ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " w h a t s a p p " ]   . q a - i c o n   {   b a c k g r o u n d :   # d 1 f a e 5 ;   c o l o r :   # 1 2 8 c 7 e ;   } \ r \ n 
 
         . q a - i t e m [ d a t a - t h e m e = " w h a t s a p p " ] : h o v e r   . q a - i c o n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;   c o l o r :   w h i t e ;   } \ r \ n 
 
 \ r \ n 
 
         / *   C o n v e r s a t i o n   C o s t s   * / \ r \ n 
 
         . c o s t - c a t e g o r y - c a r d   { \ r \ n 
 
                 b o r d e r - r a d i u s :   1 4 p x ; \ r \ n 
 
                 p a d d i n g :   1 . 2 5 r e m ; \ r \ n 
 
                 t e x t - a l i g n :   c e n t e r ; \ r \ n 
 
                 b o r d e r :   1 p x   s o l i d   # e 2 e 8 f 0 ; \ r \ n 
 
                 b a c k g r o u n d :   w h i t e ; \ r \ n 
 
                 t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ r \ n 
 
         } \ r \ n 
 
         . c o s t - c a t e g o r y - c a r d : h o v e r   { \ r \ n 
 
                 b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 8 ) ; \ r \ n 
 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; \ r \ n 
 
         } \ r \ n 
 
         . c o s t - c a t e g o r y - c a r d   . c o s t - i c o n   { \ r \ n 
 
                 w i d t h :   4 8 p x ; \ r \ n 
 
                 h e i g h t :   4 8 p x ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 2 p x ; \ r \ n 
 
                 d i s p l a y :   i n l i n e - f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   c e n t e r ; \ r \ n 
 
                 f o n t - s i z e :   1 . 2 r e m ; \ r \ n 
 
                 m a r g i n - b o t t o m :   0 . 5 r e m ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         / *   G e t t i n g   S t a r t e d   S t e p s   * / \ r \ n 
 
         . s t e p - c a r d   { \ r \ n 
 
                 b a c k g r o u n d :   w h i t e ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 6 p x ; \ r \ n 
 
                 p a d d i n g :   1 . 5 r e m ; \ r \ n 
 
                 b o r d e r :   1 p x   s o l i d   # e 2 e 8 f 0 ; \ r \ n 
 
                 h e i g h t :   1 0 0 % ; \ r \ n 
 
                 p o s i t i o n :   r e l a t i v e ; \ r \ n 
 
                 t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; \ r \ n 
 
         } \ r \ n 
 
         . s t e p - c a r d : h o v e r   { \ r \ n 
 
                 b o r d e r - c o l o r :   # 2 5 d 3 6 6 ; \ r \ n 
 
                 b o x - s h a d o w :   0   4 p x   1 6 p x   r g b a ( 3 7 ,   2 1 1 ,   1 0 2 ,   0 . 1 2 ) ; \ r \ n 
 
         } \ r \ n 
 
         . s t e p - n u m b e r   { \ r \ n 
 
                 w i d t h :   3 2 p x ; \ r \ n 
 
                 h e i g h t :   3 2 p x ; \ r \ n 
 
                 b o r d e r - r a d i u s :   5 0 % ; \ r \ n 
 
                 b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 0 7 5 e 5 4 ,   # 1 2 8 c 7 e ) ; \ r \ n 
 
                 c o l o r :   w h i t e ; \ r \ n 
 
                 d i s p l a y :   i n l i n e - f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   c e n t e r ; \ r \ n 
 
                 f o n t - w e i g h t :   7 0 0 ; \ r \ n 
 
                 f o n t - s i z e :   0 . 8 5 r e m ; \ r \ n 
 
                 m a r g i n - b o t t o m :   0 . 7 5 r e m ; \ r \ n 
 
         } \ r \ n 
 
         . s t e p - c a r d . c o m p l e t e d   . s t e p - n u m b e r   { \ r \ n 
 
                 b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 2 2 c 5 5 e ,   # 1 6 a 3 4 a ) ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         / *   S e c t i o n   H e a d e r s   * / \ r \ n 
 
         . s e c t i o n - h e a d e r   { \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 g a p :   0 . 5 r e m ; \ r \ n 
 
                 m a r g i n - b o t t o m :   1 r e m ; \ r \ n 
 
         } \ r \ n 
 
         . s e c t i o n - h e a d e r   h 5   { \ r \ n 
 
                 f o n t - s i z e :   1 . 1 r e m ; \ r \ n 
 
                 f o n t - w e i g h t :   7 0 0 ; \ r \ n 
 
                 c o l o r :   # 1 e 2 9 3 b ; \ r \ n 
 
                 m a r g i n :   0 ; \ r \ n 
 
         } \ r \ n 
 
         . s e c t i o n - h e a d e r   . s e c t i o n - i c o n   { \ r \ n 
 
                 w i d t h :   3 6 p x ; \ r \ n 
 
                 h e i g h t :   3 6 p x ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 0 p x ; \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   c e n t e r ; \ r \ n 
 
                 f o n t - s i z e :   0 . 9 5 r e m ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         . f e e d - l i s t   { \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; \ r \ n 
 
                 g a p :   0 . 6 5 r e m ; \ r \ n 
 
                 m a x - h e i g h t :   3 6 0 p x ; \ r \ n 
 
                 o v e r f l o w - y :   a u t o ; \ r \ n 
 
         } \ r \ n 
 
         . f e e d - i t e m   { \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   f l e x - s t a r t ; \ r \ n 
 
                 g a p :   0 . 7 5 r e m ; \ r \ n 
 
                 p a d d i n g :   0 . 7 5 r e m ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 2 p x ; \ r \ n 
 
                 b a c k g r o u n d :   # f 8 f a f c ; \ r \ n 
 
                 b o r d e r :   1 p x   s o l i d   # e e f 2 f 7 ; \ r \ n 
 
                 t e x t - d e c o r a t i o n :   n o n e ; \ r \ n 
 
                 c o l o r :   i n h e r i t ; \ r \ n 
 
                 t r a n s i t i o n :   b a c k g r o u n d   0 . 2 s   e a s e ,   t r a n s f o r m   0 . 2 s   e a s e ; \ r \ n 
 
         } \ r \ n 
 
         a . f e e d - i t e m : h o v e r   { \ r \ n 
 
                 b a c k g r o u n d :   # f 1 f 5 f 9 ; \ r \ n 
 
                 c o l o r :   i n h e r i t ; \ r \ n 
 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; \ r \ n 
 
         } \ r \ n 
 
         . f e e d - i t e m . u n r e a d   { \ r \ n 
 
                 b a c k g r o u n d :   # e f f 6 f f ; \ r \ n 
 
                 b o r d e r - c o l o r :   # b f d b f e ; \ r \ n 
 
         } \ r \ n 
 
         . f e e d - i c o n   { \ r \ n 
 
                 w i d t h :   4 0 p x ; \ r \ n 
 
                 h e i g h t :   4 0 p x ; \ r \ n 
 
                 b o r d e r - r a d i u s :   1 0 p x ; \ r \ n 
 
                 d i s p l a y :   f l e x ; \ r \ n 
 
                 a l i g n - i t e m s :   c e n t e r ; \ r \ n 
 
                 j u s t i f y - c o n t e n t :   c e n t e r ; \ r \ n 
 
                 f l e x - s h r i n k :   0 ; \ r \ n 
 
                 f o n t - s i z e :   0 . 9 5 r e m ; \ r \ n 
 
         } \ r \ n 
 
         . f e e d - c o n t e n t   { \ r \ n 
 
                 f l e x :   1 ; \ r \ n 
 
                 m i n - w i d t h :   0 ; \ r \ n 
 
         } \ r \ n 
 
         . f e e d - t i t l e   { \ r \ n 
 
                 f o n t - w e i g h t :   7 0 0 ; \ r \ n 
 
                 f o n t - s i z e :   0 . 8 8 r e m ; \ r \ n 
 
                 c o l o r :   # 1 e 2 9 3 b ; \ r \ n 
 
                 m a r g i n - b o t t o m :   0 . 1 5 r e m ; \ r \ n 
 
         } \ r \ n 
 
         . f e e d - b o d y   { \ r \ n 
 
                 f o n t - s i z e :   0 . 8 2 r e m ; \ r \ n 
 
                 c o l o r :   # 6 4 7 4 8 b ; \ r \ n 
 
                 m a r g i n - b o t t o m :   0 . 1 5 r e m ; \ r \ n 
 
                 o v e r f l o w :   h i d d e n ; \ r \ n 
 
                 t e x t - o v e r f l o w :   e l l i p s i s ; \ r \ n 
 
                 w h i t e - s p a c e :   n o w r a p ; \ r \ n 
 
         } \ r \ n 
 
         . f e e d - t i m e   { \ r \ n 
 
                 f o n t - s i z e :   0 . 7 2 r e m ; \ r \ n 
 
                 c o l o r :   # 9 4 a 3 b 8 ; \ r \ n 
 
         } \ r \ n 
 
 < / s t y l e > \ r \ n 
 
 @ e n d p u s h \ r \ n 
 
 \ r \ n 
 
 @ s e c t i o n ( ' c o n t e n t ' ) \ r \ n 
 
 \ r \ n 
 
 \ r \ n 
 
 \ r \ n 
 
 \ r \ n 
 
 < ! - -   W e l c o m e   H e r o   - - > \ r \ n 
 
 < d i v   c l a s s = " w e l c o m e - h e r o   m b - 4 " > \ r \ n 
 
         < d i v   c l a s s = " d - f l e x   j u s t i f y - c o n t e n t - b e t w e e n   a l i g n - i t e m s - s t a r t   f l e x - w r a p " > \ r \ n 
 
                 < d i v > \ r \ n 
 
                         @ p h p \ r \ n 
 
                                 $ h o u r   =   t e n a n t _ n o w ( ) - > h o u r ; \ r \ n 
 
                                 $ g r e e t i n g   =   $ h o u r   <   1 2   ?   _ _ ( ' G o o d   M o r n i n g ' )   :   ( $ h o u r   <   1 7   ?   _ _ ( ' G o o d   A f t e r n o o n ' )   :   _ _ ( ' G o o d   E v e n i n g ' ) ) ; \ r \ n 
 
                         @ e n d p h p \ r \ n 
 
                         < h 2 > { {   $ g r e e t i n g   } } ,   { {   A u t h : : u s e r ( ) - > n a m e   } } !   =K< / h 2 > \ r \ n 
 
                         < p > { {   _ _ ( ' H a v e   a   g r e a t   d a y   m a n a g i n g   y o u r   W h a t s A p p   c o n v e r s a t i o n s ' )   } } < / p > \ r \ n 
 
                         < d i v   c l a s s = " w e l c o m e - t i m e " > \ r \ n 
 
                                 < i   c l a s s = " f a r   f a - c a l e n d a r - a l t " > < / i >   { {   t e n a n t _ n o w ( ) - > t r a n s l a t e d F o r m a t ( ' l ,   d   F   Y ' )   } } \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
                 @ i f ( a c t i v e _ t e n a n t _ i d ( ) ) \ r \ n 
 
                 < d i v   c l a s s = " d - n o n e   d - m d - b l o c k   t e x t - e n d "   s t y l e = " p o s i t i o n : r e l a t i v e ;   z - i n d e x : 1 ; " > \ r \ n 
 
                         < d i v   c l a s s = " d - i n l i n e - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 2   p x - 3   p y - 2   r o u n d e d - p i l l "   s t y l e = " b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 5 ) ;   b a c k d r o p - f i l t e r :   b l u r ( 1 0 p x ) ; " > \ r \ n 
 
                                 < i   c l a s s = " f a s   f a - b u i l d i n g " > < / i > \ r \ n 
 
                                 < s p a n   c l a s s = " f w - s e m i b o l d " > { {   A u t h : : u s e r ( ) - > a c t i v e T e n a n t s ( ) - > f i n d ( a c t i v e _ t e n a n t _ i d ( ) ) - > n a m e   ? ?   ' '   } } < / s p a n > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
                 @ e n d i f \ r \ n 
 
         < / d i v > \ r \ n 
 
 < / d i v > \ r \ n 
 
 \ r \ n 
 
 < ! - -   W h a t s A p p   C o n n e c t i o n   S t a t u s   - - > \ r \ n 
 
 @ p h p \ r \ n 
 
         $ f i r s t T e n a n t   =   A u t h : : u s e r ( ) - > a c t i v e T e n a n t s ( ) - > f i r s t ( ) ; \ r \ n 
 
         $ t e n a n t I d   =   a c t i v e _ t e n a n t _ i d ( )   ? :   ( $ f i r s t T e n a n t   ?   $ f i r s t T e n a n t - > i d   :   n u l l ) ; \ r \ n 
 
         $ w a A c c o u n t   =   $ t e n a n t I d   ?   \ M o d u l e s \ W h a t s A p p \ E n t i t i e s \ W a A c c o u n t : : w h e r e ( ' t e n a n t _ i d ' ,   $ t e n a n t I d ) - > f i r s t ( )   :   n u l l ; \ r \ n 
 
 @ e n d p h p \ r \ n 
 
 \ r \ n 
 
 @ i f ( ! $ w a A c c o u n t ) \ r \ n 
 
 < d i v   c l a s s = " c a r d   w a - s t a t u s - c a r d   m b - 4 "   s t y l e = " b o x - s h a d o w :   0   2 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 6 ) ; " > \ r \ n 
 
         < d i v   c l a s s = " w a - s t a t u s - h e a d e r   d i s c o n n e c t e d " > \ r \ n 
 
                 < d i v   c l a s s = " d - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 3 " > \ r \ n 
 
                         < d i v   s t y l e = " w i d t h : 4 8 p x ; h e i g h t : 4 8 p x ; b o r d e r - r a d i u s : 1 2 p x ; b a c k g r o u n d : r g b a ( 2 1 7 , 1 1 9 , 6 , 0 . 1 5 ) ; d i s p l a y : f l e x ; a l i g n - i t e m s : c e n t e r ; j u s t i f y - c o n t e n t : c e n t e r ; " > \ r \ n 
 
                                 < i   c l a s s = " f a b   f a - w h a t s a p p   f a - l g "   s t y l e = " c o l o r : # d 9 7 7 0 6 ; " > < / i > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                         < d i v > \ r \ n 
 
                                 < h 6   c l a s s = " m b - 0   f w - b o l d "   s t y l e = " c o l o r : # 9 2 4 0 0 e ; " > { {   _ _ ( ' W h a t s A p p   N o t   C o n n e c t e d ' )   } } < / h 6 > \ r \ n 
 
                                 < s m a l l   s t y l e = " c o l o r : # a 1 6 2 0 7 ; " > { {   _ _ ( ' C o n n e c t   y o u r   a c c o u n t   t o   s t a r t   m e s s a g i n g ' )   } } < / s m a l l > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
                 < a   h r e f = " { {   r o u t e ( ' w h a t s a p p . c o n n e c t ' )   } } "   c l a s s = " b t n   b t n - w a r n i n g   b t n - s m   p x - 4   f w - s e m i b o l d " > \ r \ n 
 
                         < i   c l a s s = " f a b   f a - w h a t s a p p " > < / i >   { {   _ _ ( ' C o n n e c t   N o w ' )   } } \ r \ n 
 
                 < / a > \ r \ n 
 
         < / d i v > \ r \ n 
 
 < / d i v > \ r \ n 
 
 @ e l s e \ r \ n 
 
 @ p h p \ r \ n 
 
         $ w a P h o n e s   =   $ w a A c c o u n t - > p h o n e N u m b e r s ( ) - > g e t ( ) ; \ r \ n 
 
         $ p h o n e C o u n t   =   $ w a P h o n e s - > c o u n t ( ) ; \ r \ n 
 
         $ d a s h P l a n F e a t u r e s   =   f u n c t i o n _ e x i s t s ( ' t e n a n t _ p l a n _ f e a t u r e s ' )   ?   t e n a n t _ p l a n _ f e a t u r e s ( )   :   [ ] ; \ r \ n 
 
         $ d a s h M a x P h o n e s   =   $ d a s h P l a n F e a t u r e s [ ' m a x _ p h o n e _ n u m b e r s ' ]   ? ?   n u l l ; \ r \ n 
 
         $ d a s h P h o n e L i m i t R e a c h e d   =   $ d a s h M a x P h o n e s   ! = =   n u l l   & &   $ d a s h M a x P h o n e s   ! =   - 1   & &   $ p h o n e C o u n t   > =   $ d a s h M a x P h o n e s ; \ r \ n 
 
 @ e n d p h p \ r \ n 
 
 < d i v   c l a s s = " c a r d   w a - s t a t u s - c a r d   m b - 4 "   s t y l e = " b o x - s h a d o w :   0   2 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 6 ) ; " > \ r \ n 
 
         < d i v   c l a s s = " w a - s t a t u s - h e a d e r   c o n n e c t e d " > \ r \ n 
 
                 < d i v   c l a s s = " d - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 3 " > \ r \ n 
 
                         < d i v   s t y l e = " w i d t h : 4 8 p x ; h e i g h t : 4 8 p x ; b o r d e r - r a d i u s : 1 2 p x ; b a c k g r o u n d : r g b a ( 2 2 , 1 6 3 , 7 4 , 0 . 1 5 ) ; d i s p l a y : f l e x ; a l i g n - i t e m s : c e n t e r ; j u s t i f y - c o n t e n t : c e n t e r ; " > \ r \ n 
 
                                 < i   c l a s s = " f a b   f a - w h a t s a p p   f a - l g "   s t y l e = " c o l o r : # 1 6 a 3 4 a ; " > < / i > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                         < d i v > \ r \ n 
 
                                 < h 6   c l a s s = " m b - 0   f w - b o l d "   s t y l e = " c o l o r : # 1 4 5 3 2 d ; " > \ r \ n 
 
                                         { {   _ _ ( ' W h a t s A p p   C o n n e c t e d ' )   } } \ r \ n 
 
                                         < s p a n   c l a s s = " b a d g e   r o u n d e d - p i l l   m s - 1 "   s t y l e = " b a c k g r o u n d : # 1 6 a 3 4 a ; f o n t - s i z e : 0 . 7 r e m ; " > { {   $ w a A c c o u n t - > n a m e   } } < / s p a n > \ r \ n 
 
                                 < / h 6 > \ r \ n 
 
                                 < s m a l l   s t y l e = " c o l o r : # 1 6 6 5 3 4 ; " > \ r \ n 
 
                                         { {   $ p h o n e C o u n t   } }   { {   _ _ ( ' p h o n e   n u m b e r ( s ) ' )   } } \ r \ n 
 
                                         @ i f ( $ d a s h M a x P h o n e s   ! = =   n u l l   & &   $ d a s h M a x P h o n e s   ! =   - 1 ) \ r \ n 
 
                                                 /   { {   $ d a s h M a x P h o n e s   } }   { {   _ _ ( ' m a x ' )   } } \ r \ n 
 
                                         @ e n d i f \ r \ n 
 
                                 < / s m a l l > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
                 < d i v   c l a s s = " d - f l e x   g a p - 2 " > \ r \ n 
 
                         @ i f ( ! $ d a s h P h o n e L i m i t R e a c h e d ) \ r \ n 
 
                         < a   h r e f = " { {   r o u t e ( ' w h a t s a p p . c o n n e c t ' )   } } "   c l a s s = " b t n   b t n - s u c c e s s   b t n - s m   p x - 3 " > \ r \ n 
 
                                 < i   c l a s s = " f a s   f a - p l u s " > < / i >   { {   _ _ ( ' A d d   N u m b e r ' )   } } \ r \ n 
 
                         < / a > \ r \ n 
 
                         @ e n d i f \ r \ n 
 
                         < a   h r e f = " { {   r o u t e ( ' w h a t s a p p . c o n n e c t ' )   } } "   c l a s s = " b t n   b t n - o u t l i n e - s e c o n d a r y   b t n - s m   p x - 3 " > \ r \ n 
 
                                 < i   c l a s s = " f a s   f a - c o g " > < / i > \ r \ n 
 
                         < / a > \ r \ n 
 
                 < / d i v > \ r \ n 
 
         < / d i v > \ r \ n 
 
 \ r \ n 
 
         @ i f ( $ p h o n e C o u n t   >   0 ) \ r \ n 
 
         < d i v   c l a s s = " c a r d - b o d y   p - 0 " > \ r \ n 
 
                 @ f o r e a c h ( $ w a P h o n e s   a s   $ w p ) \ r \ n 
 
                 < d i v   c l a s s = " w a - p h o n e - r o w "   i d = " d a s h - p h o n e - r o w - { {   $ w p - > i d   } } " > \ r \ n 
 
                         < d i v   c l a s s = " d - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 3 " > \ r \ n 
 
                                 < d i v   s t y l e = " w i d t h : 3 8 p x ; h e i g h t : 3 8 p x ; b o r d e r - r a d i u s : 5 0 % ; b a c k g r o u n d : # f 0 f d f 4 ; d i s p l a y : f l e x ; a l i g n - i t e m s : c e n t e r ; j u s t i f y - c o n t e n t : c e n t e r ; " > \ r \ n 
 
                                         < i   c l a s s = " f a s   f a - p h o n e - a l t "   s t y l e = " c o l o r : # 1 6 a 3 4 a ; f o n t - s i z e : 0 . 8 5 r e m ; " > < / i > \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                                 < d i v > \ r \ n 
 
                                         < d i v   c l a s s = " f w - s e m i b o l d "   s t y l e = " f o n t - s i z e : 0 . 9 r e m ; " > \ r \ n 
 
                                                 @ i n c l u d e ( ' c o r e : : p a r t i a l s . p h o n e - d i s p l a y ' ,   [ ' p h o n e '   = >   $ w p ] ) \ r \ n 
 
                                                 @ i f ( $ w p - > i s _ d e f a u l t ) \ r \ n 
 
                                                         < s p a n   c l a s s = " b a d g e   r o u n d e d - p i l l   b g - p r i m a r y   m s - 1 "   s t y l e = " f o n t - s i z e : 0 . 6 5 r e m ; " > { {   _ _ ( ' D e f a u l t ' )   } } < / s p a n > \ r \ n 
 
                                                 @ e n d i f \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         < s m a l l   c l a s s = " t e x t - m u t e d " > { {   $ w p - > v e r i f i e d _ n a m e   ? ?   $ w p - > d i s p l a y _ n a m e   ? ?   '  '   } } < / s m a l l > \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                         < d i v   c l a s s = " d - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 2 " > \ r \ n 
 
                                 @ i f ( $ w p - > s t a t u s   = = =   ' a c t i v e ' ) \ r \ n 
 
                                         < s p a n   c l a s s = " b a d g e   r o u n d e d - p i l l "   s t y l e = " b a c k g r o u n d : # d c f c e 7 ; c o l o r : # 1 6 a 3 4 a ; f o n t - s i z e : 0 . 7 r e m ; " > \ r \ n 
 
                                                 < i   c l a s s = " f a s   f a - c i r c l e "   s t y l e = " f o n t - s i z e : 6 p x ; v e r t i c a l - a l i g n : m i d d l e ; " > < / i >   { {   _ _ ( ' A c t i v e ' )   } } \ r \ n 
 
                                         < / s p a n > \ r \ n 
 
                                 @ e l s e i f ( $ w p - > s t a t u s   = = =   ' p e n d i n g ' ) \ r \ n 
 
                                         < s p a n   c l a s s = " b a d g e   r o u n d e d - p i l l "   s t y l e = " b a c k g r o u n d : # f e f 3 c 7 ; c o l o r : # d 9 7 7 0 6 ; f o n t - s i z e : 0 . 7 r e m ; " > \ r \ n 
 
                                                 < i   c l a s s = " f a s   f a - c i r c l e "   s t y l e = " f o n t - s i z e : 6 p x ; v e r t i c a l - a l i g n : m i d d l e ; " > < / i >   { {   _ _ ( ' P e n d i n g ' )   } } \ r \ n 
 
                                         < / s p a n > \ r \ n 
 
                                 @ e l s e \ r \ n 
 
                                         < s p a n   c l a s s = " b a d g e   r o u n d e d - p i l l   b g - s e c o n d a r y "   s t y l e = " f o n t - s i z e : 0 . 7 r e m ; " > { {   _ _ ( u c f i r s t ( $ w p - > s t a t u s ) )   } } < / s p a n > \ r \ n 
 
                                 @ e n d i f \ r \ n 
 
                                 @ p h p \ r \ n 
 
                                         $ q C o l o r s   =   [ ' G R E E N '   = >   ' # 1 6 a 3 4 a ' ,   ' Y E L L O W '   = >   ' # d 9 7 7 0 6 ' ,   ' R E D '   = >   ' # d c 2 6 2 6 ' ] ; \ r \ n 
 
                                         $ q B g s   =   [ ' G R E E N '   = >   ' # d c f c e 7 ' ,   ' Y E L L O W '   = >   ' # f e f 3 c 7 ' ,   ' R E D '   = >   ' # f e e 2 e 2 ' ] ; \ r \ n 
 
                                         $ q C o l o r   =   $ q C o l o r s [ $ w p - > q u a l i t y _ r a t i n g ]   ? ?   ' # 6 c 7 5 7 d ' ; \ r \ n 
 
                                         $ q B g   =   $ q B g s [ $ w p - > q u a l i t y _ r a t i n g ]   ? ?   ' # f 1 f 5 f 9 ' ; \ r \ n 
 
                                 @ e n d p h p \ r \ n 
 
                                 < s p a n   c l a s s = " b a d g e   r o u n d e d - p i l l "   s t y l e = " b a c k g r o u n d : { {   $ q B g   } } ; c o l o r : { {   $ q C o l o r   } } ; f o n t - s i z e : 0 . 7 r e m ; " > \ r \ n 
 
                                         { {   $ w p - > q u a l i t y _ r a t i n g   ? ?   '  '   } } \ r \ n 
 
                                 < / s p a n > \ r \ n 
 
                                 @ i f ( ! $ w p - > i s _ d e f a u l t   & &   $ p h o n e C o u n t   >   1 ) \ r \ n 
 
                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n   b t n - l i n k   b t n - s m   p - 0   t e x t - m u t e d " \ r \ n 
 
                                                 o n c l i c k = " d a s h S e t D e f a u l t ( { {   $ w p - > i d   } } ) " \ r \ n 
 
                                                 i d = " d a s h - d e f a u l t - b t n - { {   $ w p - > i d   } } " \ r \ n 
 
                                                 t i t l e = " { {   _ _ ( ' S e t   a s   D e f a u l t ' )   } } " > \ r \ n 
 
                                         < i   c l a s s = " f a r   f a - s t a r "   s t y l e = " f o n t - s i z e : 0 . 8 5 r e m ; " > < / i > \ r \ n 
 
                                 < / b u t t o n > \ r \ n 
 
                                 @ e n d i f \ r \ n 
 
                                 < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n   b t n - l i n k   b t n - s m   p - 0   t e x t - d a n g e r " \ r \ n 
 
                                                 d a t a - p h o n e = " { {   $ w p - > d a s h b o a r d _ s t a c k e d _ l a b e l   } } "   o n c l i c k = " d a s h D i s c o n n e c t P h o n e ( { {   $ w p - > i d   } } ,   t h i s . d a t a s e t . p h o n e ) " \ r \ n 
 
                                                 i d = " d a s h - d i s c o n n e c t - b t n - { {   $ w p - > i d   } } " \ r \ n 
 
                                                 t i t l e = " { {   _ _ ( ' D i s c o n n e c t ' )   } } " > \ r \ n 
 
                                         < i   c l a s s = " f a s   f a - t i m e s "   s t y l e = " f o n t - s i z e : 0 . 8 5 r e m ; " > < / i > \ r \ n 
 
                                 < / b u t t o n > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
                 @ e n d f o r e a c h \ r \ n 
 
         < / d i v > \ r \ n 
 
         @ e l s e \ r \ n 
 
         < d i v   c l a s s = " c a r d - b o d y   t e x t - c e n t e r   p y - 4 " > \ r \ n 
 
                 < i   c l a s s = " f a s   f a - p h o n e - s l a s h   f a - 2 x   t e x t - m u t e d   m b - 2 " > < / i > \ r \ n 
 
                 < p   c l a s s = " t e x t - m u t e d   m b - 2 " > { {   _ _ ( ' N o   p h o n e   n u m b e r s   r e g i s t e r e d   y e t ' )   } } < / p > \ r \ n 
 
                 < a   h r e f = " { {   r o u t e ( ' w h a t s a p p . c o n n e c t ' )   } } "   c l a s s = " b t n   b t n - s u c c e s s   b t n - s m " > \ r \ n 
 
                         < i   c l a s s = " f a s   f a - p l u s - c i r c l e " > < / i >   { {   _ _ ( ' A d d   P h o n e   N u m b e r ' )   } } \ r \ n 
 
                 < / a > \ r \ n 
 
         < / d i v > \ r \ n 
 
         @ e n d i f \ r \ n 
 
 < / d i v > \ r \ n 
 
 \ r \ n 
 
 < d i v   i d = " d a s h - p h o n e - a l e r t "   c l a s s = " a l e r t   a l e r t - d i s m i s s i b l e   f a d e   s h o w   m b - 4 "   s t y l e = " d i s p l a y : n o n e ; "   r o l e = " a l e r t " > \ r \ n 
 
         < s p a n   i d = " d a s h - p h o n e - a l e r t - m s g " > < / s p a n > \ r \ n 
 
         < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n - c l o s e "   d a t a - b s - d i s m i s s = " a l e r t " > < / b u t t o n > \ r \ n 
 
 < / d i v > \ r \ n 
 
 @ e n d i f \ r \ n 
 
 \ r \ n 
 
 < ! - -   S t a t i s t i c s   - - > \ r \ n 
 
 @ p h p \ r \ n 
 
         $ a c t i v e T e n a n t I d   =   a c t i v e _ t e n a n t _ i d ( ) ; \ r \ n 
 
         i f   ( $ a c t i v e T e n a n t I d )   { \ r \ n 
 
                 $ a c t i v e C o n v e r s a t i o n Q u e r y   =   \ M o d u l e s \ C o n v e r s a t i o n \ E n t i t i e s \ C o n v e r s a t i o n : : w h e r e ( ' t e n a n t _ i d ' ,   $ a c t i v e T e n a n t I d ) \ r \ n 
 
                         - > w h e r e ( ' s t a t u s ' ,   ' o p e n ' ) ; \ r \ n 
 
                 i f   ( ! A u t h : : u s e r ( ) - > h a s P e r m i s s i o n I n T e n a n t ( ' c o n v e r s a t i o n s . v i e w _ a l l ' ,   $ a c t i v e T e n a n t I d ) )   { \ r \ n 
 
                         i f   ( ! A u t h : : u s e r ( ) - > h a s P e r m i s s i o n I n T e n a n t ( ' c o n v e r s a t i o n s . v i e w _ a s s i g n e d ' ,   $ a c t i v e T e n a n t I d ) )   { \ r \ n 
 
                                 $ a c t i v e C o n v e r s a t i o n Q u e r y - > w h e r e R a w ( ' 0   =   1 ' ) ; \ r \ n 
 
                         }   e l s e   { \ r \ n 
 
                                 $ a c t i v e C o n v e r s a t i o n Q u e r y - > w h e r e ( f u n c t i o n   ( $ v i s i b l e )   { \ r \ n 
 
                                         $ v i s i b l e - > w h e r e N u l l ( ' a s s i g n e d _ t o ' ) - > o r W h e r e ( ' a s s i g n e d _ t o ' ,   A u t h : : i d ( ) ) ; \ r \ n 
 
                                 } ) ; \ r \ n 
 
                         } \ r \ n 
 
                 } \ r \ n 
 
                 $ a c t i v e C o n v e r s a t i o n s   =   $ a c t i v e C o n v e r s a t i o n Q u e r y - > c o u n t ( ) ; \ r \ n 
 
                 $ t o t a l C o n t a c t s   =   \ M o d u l e s \ C o n t a c t \ E n t i t i e s \ C o n t a c t : : w h e r e ( ' t e n a n t _ i d ' ,   $ a c t i v e T e n a n t I d ) - > c o u n t ( ) ; \ r \ n 
 
                 $ a c t i v e A u t o R e s p o n s e s   =   \ M o d u l e s \ A u t o m a t i o n \ E n t i t i e s \ A u t o R e s p o n s e : : w h e r e ( ' t e n a n t _ i d ' ,   $ a c t i v e T e n a n t I d ) \ r \ n 
 
                         - > w h e r e ( ' i s _ a c t i v e ' ,   t r u e ) \ r \ n 
 
                         - > c o u n t ( ) ; \ r \ n 
 
                 $ s e n t M e s s a g e s   =   \ M o d u l e s \ C o n v e r s a t i o n \ E n t i t i e s \ M e s s a g e : : w h e r e ( ' t e n a n t _ i d ' ,   $ a c t i v e T e n a n t I d ) \ r \ n 
 
                         - > w h e r e ( ' d i r e c t i o n ' ,   ' o u t b o u n d ' ) \ r \ n 
 
                         - > c o u n t ( ) ; \ r \ n 
 
         }   e l s e   { \ r \ n 
 
                 $ a c t i v e C o n v e r s a t i o n s   =   0 ; \ r \ n 
 
                 $ t o t a l C o n t a c t s   =   0 ; \ r \ n 
 
                 $ a c t i v e A u t o R e s p o n s e s   =   0 ; \ r \ n 
 
                 $ s e n t M e s s a g e s   =   0 ; \ r \ n 
 
         } \ r \ n 
 
         $ c a n O p e n H o m e S e c t i o n   =   f u n c t i o n   ( $ p e r m i s s i o n )   u s e   ( $ a c t i v e T e n a n t I d )   { \ r \ n 
 
                 r e t u r n   $ a c t i v e T e n a n t I d   & &   A u t h : : u s e r ( ) - > h a s P e r m i s s i o n I n T e n a n t ( $ p e r m i s s i o n ,   $ a c t i v e T e n a n t I d ) ; \ r \ n 
 
         } ; \ r \ n 
 
         $ c a n O p e n A n y H o m e S e c t i o n   =   f u n c t i o n   ( a r r a y   $ p e r m i s s i o n s )   u s e   ( $ c a n O p e n H o m e S e c t i o n )   { \ r \ n 
 
                 f o r e a c h   ( $ p e r m i s s i o n s   a s   $ p e r m i s s i o n )   { \ r \ n 
 
                         i f   ( $ c a n O p e n H o m e S e c t i o n ( $ p e r m i s s i o n ) )   r e t u r n   t r u e ; \ r \ n 
 
                 } \ r \ n 
 
                 r e t u r n   f a l s e ; \ r \ n 
 
         } ; \ r \ n 
 
         $ s e n t M e s s a g e s U r l   =   n u l l ; \ r \ n 
 
         i f   ( $ c a n O p e n H o m e S e c t i o n ( ' r e p o r t s . v i e w ' ) )   { \ r \ n 
 
                 $ f i r s t S e n t A t   =   \ M o d u l e s \ C o n v e r s a t i o n \ E n t i t i e s \ M e s s a g e : : w h e r e ( ' t e n a n t _ i d ' ,   $ a c t i v e T e n a n t I d ) \ r \ n 
 
                         - > w h e r e ( ' d i r e c t i o n ' ,   ' o u t b o u n d ' ) - > m i n ( ' c r e a t e d _ a t ' ) ; \ r \ n 
 
                 $ s e n t M e s s a g e s U r l   =   r o u t e ( ' r e p o r t s . d e t a i l ' ,   [ \ r \ n 
 
                         ' m e t r i c '   = >   ' p e r i o d _ a c t i v i t y . o u t b o u n d _ m e s s a g e s ' ,   ' p e r i o d '   = >   ' c u s t o m ' , \ r \ n 
 
                         ' f r o m '   = >   $ f i r s t S e n t A t   ?   t e n a n t _ d a t e ( $ f i r s t S e n t A t ,   ' Y - m - d ' )   :   t e n a n t _ n o w ( ) - > t o D a t e S t r i n g ( ) , \ r \ n 
 
                         ' t o '   = >   t e n a n t _ n o w ( ) - > t o D a t e S t r i n g ( ) , \ r \ n 
 
                 ] ) ; \ r \ n 
 
         } \ r \ n 
 
 @ e n d p h p \ r \ n 
 
 < d i v   c l a s s = " r o w   g - 3   m b - 4 " > \ r \ n 
 
         < d i v   c l a s s = " c o l - 6   c o l - l g - 3 " > \ r \ n 
 
                 @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . d a s h b o a r d - s t a t ' ,   [ ' s t a t U r l ' = > $ c a n O p e n A n y H o m e S e c t i o n ( [ ' c o n v e r s a t i o n s . v i e w _ a l l ' , ' c o n v e r s a t i o n s . v i e w _ a s s i g n e d ' ] )   ?   r o u t e ( ' c o n v e r s a t i o n s . i n d e x ' ,   [ ' s t a t u s ' = > ' o p e n ' ] )   :   n u l l ,   ' s t a t P e r m i s s i o n ' = > ' c o n v e r s a t i o n s . v i e w _ a l l   /   c o n v e r s a t i o n s . v i e w _ a s s i g n e d ' ,   ' s t a t V a l u e ' = > $ a c t i v e C o n v e r s a t i o n s ,   ' s t a t L a b e l ' = > _ _ ( ' A c t i v e   W h a t s A p p   c o n v e r s a t i o n s ' ) ,   ' s t a t I c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' s t a t B a c k g r o u n d ' = > ' # d c f c e 7 ' ,   ' s t a t C o l o r ' = > ' # 1 2 8 c 7 e ' ] ) \ r \ n 
 
         < / d i v > \ r \ n 
 
         < d i v   c l a s s = " c o l - 6   c o l - l g - 3 " > \ r \ n 
 
                 @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . d a s h b o a r d - s t a t ' ,   [ ' s t a t U r l ' = > $ c a n O p e n H o m e S e c t i o n ( ' c o n t a c t s . v i e w ' )   ?   r o u t e ( ' c o n t a c t s . i n d e x ' )   :   n u l l ,   ' s t a t P e r m i s s i o n ' = > ' c o n t a c t s . v i e w ' ,   ' s t a t V a l u e ' = > $ t o t a l C o n t a c t s ,   ' s t a t L a b e l ' = > _ _ ( ' W h a t s A p p   C o n t a c t s ' ) ,   ' s t a t I c o n ' = > ' f a s   f a - u s e r s ' ,   ' s t a t B a c k g r o u n d ' = > ' # d c f c e 7 ' ,   ' s t a t C o l o r ' = > ' # 1 6 a 3 4 a ' ] ) \ r \ n 
 
         < / d i v > \ r \ n 
 
         < d i v   c l a s s = " c o l - 6   c o l - l g - 3 " > \ r \ n 
 
                 @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . d a s h b o a r d - s t a t ' ,   [ ' s t a t U r l ' = > $ c a n O p e n H o m e S e c t i o n ( ' a u t o _ r e s p o n s e s . v i e w ' )   ?   r o u t e ( ' a u t o m a t i o n . a u t o - r e s p o n s e s . i n d e x ' )   :   n u l l ,   ' s t a t P e r m i s s i o n ' = > ' a u t o _ r e s p o n s e s . v i e w ' ,   ' s t a t V a l u e ' = > $ a c t i v e A u t o R e s p o n s e s ,   ' s t a t L a b e l ' = > _ _ ( ' W h a t s A p p   a u t o   r e s p o n s e s ' ) ,   ' s t a t I c o n ' = > ' f a s   f a - r o b o t ' ,   ' s t a t B a c k g r o u n d ' = > ' # f e f 3 c 7 ' ,   ' s t a t C o l o r ' = > ' # d 9 7 7 0 6 ' ] ) \ r \ n 
 
         < / d i v > \ r \ n 
 
         < d i v   c l a s s = " c o l - 6   c o l - l g - 3 " > \ r \ n 
 
                 @ i n c l u d e ( ' w e b s i t e : : p a r t i a l s . d a s h b o a r d - s t a t ' ,   [ ' s t a t U r l ' = > $ s e n t M e s s a g e s U r l ,   ' s t a t P e r m i s s i o n ' = > ' r e p o r t s . v i e w ' ,   ' s t a t V a l u e ' = > $ s e n t M e s s a g e s ,   ' s t a t L a b e l ' = > _ _ ( ' W h a t s A p p   s e n t   m e s s a g e s ' ) ,   ' s t a t I c o n ' = > ' f a s   f a - p a p e r - p l a n e ' ,   ' s t a t B a c k g r o u n d ' = > ' # e d e 9 f e ' ,   ' s t a t C o l o r ' = > ' # 7 c 3 a e d ' ] ) \ r \ n 
 
         < / d i v > \ r \ n 
 
 < / d i v > \ r \ n 
 
 \ r \ n 
 
 < ! - -   C o n v e r s a t i o n   C o s t s   T h i s   M o n t h   - - > \ r \ n 
 
 @ i f ( $ a c t i v e T e n a n t I d ) \ r \ n 
 
 @ p h p \ r \ n 
 
         $ c u r r e n t M o n t h   =   t e n a n t _ n o w ( ) - > m o n t h ; \ r \ n 
 
         $ c u r r e n t Y e a r   =   t e n a n t _ n o w ( ) - > y e a r ; \ r \ n 
 
         \ r \ n 
 
         $ c o n v e r s a t i o n C h a r g e s   =   \ M o d u l e s \ B i l l i n g \ E n t i t i e s \ C o n v e r s a t i o n C h a r g e : : w h e r e ( ' t e n a n t _ i d ' ,   $ a c t i v e T e n a n t I d ) \ r \ n 
 
                 - > w h e r e ( ' c u r r e n c y ' ,   \ M o d u l e s \ B i l l i n g \ S e r v i c e s \ W h a t s A p p M e s s a g e B i l l i n g : : w a l l e t C u r r e n c y ( ) ) \ r \ n 
 
                 - > w h e r e ( ' c h a r g e _ y e a r ' ,   $ c u r r e n t Y e a r ) \ r \ n 
 
                 - > w h e r e ( ' c h a r g e _ m o n t h ' ,   $ c u r r e n t M o n t h ) \ r \ n 
 
                 - > c o n f i r m e d C o s t ( ) \ r \ n 
 
                 - > g e t ( ) ; \ r \ n 
 
         \ r \ n 
 
         $ t o t a l C o n v e r s a t i o n C o s t   =   $ c o n v e r s a t i o n C h a r g e s - > s u m ( ' r a t e _ a m o u n t ' ) ; \ r \ n 
 
         $ c o n v e r s a t i o n s B y C a t e g o r y   =   $ c o n v e r s a t i o n C h a r g e s - > g r o u p B y ( ' c a t e g o r y ' ) ; \ r \ n 
 
         \ r \ n 
 
         $ c a t e g o r y C o l o r s   =   [ \ r \ n 
 
                 ' m a r k e t i n g '   = >   [ ' b g '   = >   ' # e d e 9 f e ' ,   ' c o l o r '   = >   ' # 7 c 3 a e d ' ,   ' i c o n '   = >   ' f a s   f a - b u l l h o r n ' ] , \ r \ n 
 
                 ' u t i l i t y '   = >   [ ' b g '   = >   ' # d b e a f e ' ,   ' c o l o r '   = >   ' # 2 5 6 3 e b ' ,   ' i c o n '   = >   ' f a s   f a - c o g ' ] , \ r \ n 
 
                 ' a u t h e n t i c a t i o n '   = >   [ ' b g '   = >   ' # f e f 3 c 7 ' ,   ' c o l o r '   = >   ' # d 9 7 7 0 6 ' ,   ' i c o n '   = >   ' f a s   f a - s h i e l d - a l t ' ] , \ r \ n 
 
                 ' s e r v i c e '   = >   [ ' b g '   = >   ' # d c f c e 7 ' ,   ' c o l o r '   = >   ' # 1 6 a 3 4 a ' ,   ' i c o n '   = >   ' f a s   f a - h e a d s e t ' ] , \ r \ n 
 
         ] ; \ r \ n 
 
 \ r \ n 
 
         $ t o t a l C o n v e r s a t i o n s C o u n t   =   $ c o n v e r s a t i o n C h a r g e s - > c o u n t ( ) ; \ r \ n 
 
 \ r \ n 
 
         $ c u r r e n t T e n a n t B a l a n c e   =   0 ; \ r \ n 
 
         i f   ( $ a c t i v e T e n a n t I d )   { \ r \ n 
 
                 $ t O b j   =   \ M o d u l e s \ T e n a n t \ E n t i t i e s \ T e n a n t : : f i n d ( $ a c t i v e T e n a n t I d ) ; \ r \ n 
 
                 $ c u r r e n t T e n a n t B a l a n c e   =   $ t O b j   ?   ( f l o a t )   $ t O b j - > b a l a n c e   :   0 ; \ r \ n 
 
         } \ r \ n 
 
 @ e n d p h p \ r \ n 
 
 \ r \ n 
 
 < d i v   c l a s s = " r o w   g - 3   m b - 4 " > \ r \ n 
 
         { { - -   C o s t s   C a r d   - - } } \ r \ n 
 
         < d i v   c l a s s = " c o l - l g - 8 " > \ r \ n 
 
                 < d i v   c l a s s = " c a r d   h - 1 0 0 "   s t y l e = " b o x - s h a d o w :   0   2 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 6 ) ; " > \ r \ n 
 
                         < d i v   c l a s s = " c a r d - b o d y " > \ r \ n 
 
                                 < d i v   c l a s s = " s e c t i o n - h e a d e r " > \ r \ n 
 
                                         < d i v   c l a s s = " s e c t i o n - i c o n "   s t y l e = " b a c k g r o u n d : # f 0 f d f 4 ; c o l o r : # 1 6 a 3 4 a ; " > \ r \ n 
 
                                                 < i   c l a s s = " f a s   f a - f i l e - i n v o i c e - d o l l a r " > < / i > \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         < h 5 > @ i f ( $ c a n O p e n H o m e S e c t i o n ( ' r e p o r t s . v i e w ' ) ) < a   s t y l e = " c o l o r : i n h e r i t ; "   h r e f = " { {   r o u t e ( ' r e p o r t s . d e t a i l ' ,   [ ' m e t r i c ' = > ' b i l l i n g _ a u t o m a t i o n . p e r i o d _ c o s t ' ,   ' f r o m ' = > t e n a n t _ n o w ( ) - > s t a r t O f M o n t h ( ) - > t o D a t e S t r i n g ( ) ,   ' t o ' = > t e n a n t _ n o w ( ) - > t o D a t e S t r i n g ( ) ] )   } } " > { {   _ _ ( ' C o n v e r s a t i o n   C o s t s   T h i s   M o n t h ' )   } } < / a > @ e l s e { {   _ _ ( ' C o n v e r s a t i o n   C o s t s   T h i s   M o n t h ' )   } } @ e n d i f < / h 5 > \ r \ n 
 
                                         < s p a n   c l a s s = " b a d g e   r o u n d e d - p i l l   m s - a u t o "   s t y l e = " b a c k g r o u n d : # 1 e 2 9 3 b ; f o n t - s i z e : 0 . 8 5 r e m ; p a d d i n g : 0 . 5 r e m   1 r e m ; " > \ r \ n 
 
                                                 @ m o n e y ( $ t o t a l C o n v e r s a t i o n C o s t   /   1 0 0 ,   4 ) \ r \ n 
 
                                         < / s p a n > \ r \ n 
 
                                 < / d i v > \ r \ n 
 
 \ r \ n 
 
                                 @ i n c l u d e ( ' w e b s i t e : : b i l l i n g . p a r t i a l s . s e r v i c e - f r e e - t i e r ' ) \ r \ n 
 
                                 < d i v   c l a s s = " r o w   g - 3   m t - 1 " > \ r \ n 
 
                                         @ f o r e a c h ( [ ' m a r k e t i n g ' ,   ' u t i l i t y ' ,   ' a u t h e n t i c a t i o n ' ,   ' s e r v i c e ' ]   a s   $ c a t e g o r y ) \ r \ n 
 
                                         @ p h p \ r \ n 
 
                                                 $ c a t C h a r g e s   =   $ c o n v e r s a t i o n s B y C a t e g o r y - > g e t ( $ c a t e g o r y ,   c o l l e c t ( ) ) ; \ r \ n 
 
                                                 $ c a t C o u n t   =   $ c a t C h a r g e s - > c o u n t ( ) ; \ r \ n 
 
                                                 $ c a t C o s t   =   $ c a t C h a r g e s - > s u m ( ' r a t e _ a m o u n t ' ) ; \ r \ n 
 
                                                 $ c c   =   $ c a t e g o r y C o l o r s [ $ c a t e g o r y ] ; \ r \ n 
 
                                                 $ c a t e g o r y U r l   =   $ c a n O p e n H o m e S e c t i o n ( ' r e p o r t s . v i e w ' )   ?   r o u t e ( ' r e p o r t s . d e t a i l ' ,   [ \ r \ n 
 
                                                         ' m e t r i c ' = > ' b i l l i n g _ a u t o m a t i o n . p e r i o d _ c o s t ' ,   ' s e a r c h ' = > $ c a t e g o r y , \ r \ n 
 
                                                         ' f r o m ' = > t e n a n t _ n o w ( ) - > s t a r t O f M o n t h ( ) - > t o D a t e S t r i n g ( ) ,   ' t o ' = > t e n a n t _ n o w ( ) - > t o D a t e S t r i n g ( ) , \ r \ n 
 
                                                 ] )   :   n u l l ; \ r \ n 
 
                                                 $ c a t e g o r y T a g   =   $ c a t e g o r y U r l   ?   ' a '   :   ' d i v ' ; \ r \ n 
 
                                         @ e n d p h p \ r \ n 
 
                                         < d i v   c l a s s = " c o l - 6   c o l - m d - 3 " > \ r \ n 
 
                                                 < { {   $ c a t e g o r y T a g   } }   @ i f ( $ c a t e g o r y U r l )   h r e f = " { {   $ c a t e g o r y U r l   } } "   @ e n d i f   c l a s s = " c o s t - c a t e g o r y - c a r d   d - b l o c k "   s t y l e = " c o l o r : i n h e r i t ; " > \ r \ n 
 
                                                         < d i v   c l a s s = " c o s t - i c o n "   s t y l e = " b a c k g r o u n d : { {   $ c c [ ' b g ' ]   } } ; c o l o r : { {   $ c c [ ' c o l o r ' ]   } } ; " > \ r \ n 
 
                                                                 < i   c l a s s = " { {   $ c c [ ' i c o n ' ]   } } " > < / i > \ r \ n 
 
                                                         < / d i v > \ r \ n 
 
                                                         < d i v   c l a s s = " f w - b o l d   t e x t - m u t e d "   s t y l e = " f o n t - s i z e : 0 . 7 5 r e m ; t e x t - t r a n s f o r m : u p p e r c a s e ; l e t t e r - s p a c i n g : 0 . 5 p x ; " > { {   _ _ ( u c f i r s t ( $ c a t e g o r y ) )   } } < / d i v > \ r \ n 
 
                                                         < d i v   c l a s s = " f w - b o l d   m t - 1 "   s t y l e = " f o n t - s i z e : 1 . 5 r e m ; c o l o r : # 1 e 2 9 3 b ; " > { {   $ c a t C o u n t   } } < / d i v > \ r \ n 
 
                                                         < s m a l l   c l a s s = " t e x t - m u t e d " > @ m o n e y ( $ c a t C o s t   /   1 0 0 ,   4 ) < / s m a l l > \ r \ n 
 
                                                 < / { {   $ c a t e g o r y T a g   } } > \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         @ e n d f o r e a c h \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
         < / d i v > \ r \ n 
 
 \ r \ n 
 
         { { - -   B a l a n c e   C a r d   - - } } \ r \ n 
 
         < d i v   c l a s s = " c o l - l g - 4 " > \ r \ n 
 
                 < d i v   c l a s s = " c a r d   h - 1 0 0 "   s t y l e = " b o x - s h a d o w :   0   2 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 6 ) ; " > \ r \ n 
 
                         < d i v   c l a s s = " c a r d - b o d y   d - f l e x   f l e x - c o l u m n " > \ r \ n 
 
                                 < d i v   c l a s s = " s e c t i o n - h e a d e r " > \ r \ n 
 
                                         < d i v   c l a s s = " s e c t i o n - i c o n "   s t y l e = " b a c k g r o u n d : # d b e a f e ; c o l o r : # 2 5 6 3 e b ; " > \ r \ n 
 
                                                 < i   c l a s s = " f a s   f a - w a l l e t " > < / i > \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         < h 5 > @ i f ( A u t h : : u s e r ( ) - > o w n s T e n a n t ( $ a c t i v e T e n a n t I d ) ) < a   h r e f = " { {   r o u t e ( ' b a l a n c e . i n d e x ' )   } } "   s t y l e = " c o l o r : i n h e r i t ; " > { {   _ _ ( ' B a l a n c e ' )   } } < / a > @ e l s e { {   _ _ ( ' B a l a n c e ' )   } } @ e n d i f < / h 5 > \ r \ n 
 
                                 < / d i v > \ r \ n 
 
 \ r \ n 
 
                                 < d i v   c l a s s = " t e x t - c e n t e r   f l e x - g r o w - 1   d - f l e x   f l e x - c o l u m n   j u s t i f y - c o n t e n t - c e n t e r   p y - 3 " > \ r \ n 
 
                                         < d i v   c l a s s = " f w - b o l d "   s t y l e = " f o n t - s i z e : 2 . 5 r e m ; c o l o r : { {   $ c u r r e n t T e n a n t B a l a n c e   >   0   ?   ' # 1 6 a 3 4 a '   :   ' # d c 2 6 2 6 '   } } ; l i n e - h e i g h t : 1 ; " > \ r \ n 
 
                                                 @ m o n e y ( $ c u r r e n t T e n a n t B a l a n c e ) \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         < d i v   c l a s s = " t e x t - m u t e d   m t - 1 "   s t y l e = " f o n t - s i z e : 0 . 8 5 r e m ; " > { {   _ _ ( ' T e n a n t   B a l a n c e ' )   } } < / d i v > \ r \ n 
 
 \ r \ n 
 
                                         @ i f ( $ c u r r e n t T e n a n t B a l a n c e   < =   0 ) \ r \ n 
 
                                         < d i v   c l a s s = " m t - 3   p x - 3   p y - 2   r o u n d e d - 3 "   s t y l e = " b a c k g r o u n d : # f e e 2 e 2 ; " > \ r \ n 
 
                                                 < s m a l l   c l a s s = " f w - s e m i b o l d "   s t y l e = " c o l o r : # d c 2 6 2 6 ; " > \ r \ n 
 
                                                         < i   c l a s s = " f a s   f a - e x c l a m a t i o n - t r i a n g l e " > < / i >   { {   _ _ ( ' B a l a n c e   e m p t y      t o p   u p   t o   c o n t i n u e ' )   } } \ r \ n 
 
                                                 < / s m a l l > \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         @ e l s e i f ( $ c u r r e n t T e n a n t B a l a n c e   <   5 ) \ r \ n 
 
                                         < d i v   c l a s s = " m t - 3   p x - 3   p y - 2   r o u n d e d - 3 "   s t y l e = " b a c k g r o u n d : # f e f 3 c 7 ; " > \ r \ n 
 
                                                 < s m a l l   c l a s s = " f w - s e m i b o l d "   s t y l e = " c o l o r : # d 9 7 7 0 6 ; " > \ r \ n 
 
                                                         < i   c l a s s = " f a s   f a - e x c l a m a t i o n - c i r c l e " > < / i >   { {   _ _ ( ' B a l a n c e   r u n n i n g   l o w ' )   } } \ r \ n 
 
                                                 < / s m a l l > \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         @ e n d i f \ r \ n 
 
                                 < / d i v > \ r \ n 
 
 \ r \ n 
 
                                 @ i f ( A u t h : : u s e r ( ) - > o w n s T e n a n t ( ( i n t )   $ a c t i v e T e n a n t I d ) ) \ r \ n 
 
                                         < a   h r e f = " { {   r o u t e ( ' b a l a n c e . i n d e x ' )   } } "   c l a s s = " b t n   b t n - p r i m a r y   w - 1 0 0   m t - a u t o " > \ r \ n 
 
                                                 < i   c l a s s = " f a s   f a - p l u s - c i r c l e " > < / i >   { {   _ _ ( ' T o p   U p   B a l a n c e ' )   } } \ r \ n 
 
                                         < / a > \ r \ n 
 
                                 @ e l s e \ r \ n 
 
                                         < b u t t o n   t y p e = " b u t t o n "   c l a s s = " b t n   b t n - p r i m a r y   w - 1 0 0   m t - a u t o   p e r m i s s i o n - d i s a b l e d - c o n t r o l "   d i s a b l e d \ r \ n 
 
                                                         t i t l e = " { {   _ _ ( ' Y o u   d o   n o t   h a v e   p e r m i s s i o n   t o   a c c e s s   t h i s   r e s o u r c e ' )   } }      T e n a n t   o w n e r " > \ r \ n 
 
                                                 < i   c l a s s = " f a s   f a - l o c k " > < / i >   { {   _ _ ( ' T o p   U p   B a l a n c e ' )   } } \ r \ n 
 
                                         < / b u t t o n > \ r \ n 
 
                                 @ e n d i f \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
         < / d i v > \ r \ n 
 
 < / d i v > \ r \ n 
 
 @ e n d i f \ r \ n 
 
 \ r \ n 
 
 < ! - -   Q u i c k   A c t i o n s   - - > \ r \ n 
 
 < d i v   c l a s s = " m b - 4 " > \ r \ n 
 
         < d i v   c l a s s = " s e c t i o n - h e a d e r " > \ r \ n 
 
                 < d i v   c l a s s = " s e c t i o n - i c o n "   s t y l e = " b a c k g r o u n d : # f e f 3 c 7 ; c o l o r : # d 9 7 7 0 6 ; " > \ r \ n 
 
                         < i   c l a s s = " f a s   f a - b o l t " > < / i > \ r \ n 
 
                 < / d i v > \ r \ n 
 
                 < h 5 > { {   _ _ ( ' Q u i c k   A c t i o n s ' )   } } < / h 5 > \ r \ n 
 
         < / d i v > \ r \ n 
 
         < d i v   c l a s s = " r o w   g - 3 " > \ r \ n 
 
                 @ p h p \ r \ n 
 
                         $ h o m e Q u i c k A c t i o n s   =   [ \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' c o n v e r s a t i o n s . i n d e x ' ) ,   ' a l l o w e d ' = > $ c a n O p e n A n y H o m e S e c t i o n ( [ ' c o n v e r s a t i o n s . v i e w _ a l l ' , ' c o n v e r s a t i o n s . v i e w _ a s s i g n e d ' ] ) ,   ' p e r m i s s i o n ' = > ' c o n v e r s a t i o n s . v i e w _ a l l   /   c o n v e r s a t i o n s . v i e w _ a s s i g n e d ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' W h a t s A p p ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' m e s s e n g e r . c o n v e r s a t i o n s . i n d e x ' ) ,   ' a l l o w e d ' = > $ c a n O p e n A n y H o m e S e c t i o n ( [ ' m e s s e n g e r . v i e w _ a l l ' , ' m e s s e n g e r . v i e w _ a s s i g n e d ' ] ) ,   ' p e r m i s s i o n ' = > ' m e s s e n g e r . v i e w _ a l l   /   m e s s e n g e r . v i e w _ a s s i g n e d ' ,   ' t h e m e ' = > ' b l u e ' ,   ' i c o n ' = > ' f a b   f a - f a c e b o o k - m e s s e n g e r ' ,   ' l a b e l ' = > _ _ ( ' M e s s e n g e r ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' i n s t a g r a m . c o n v e r s a t i o n s . i n d e x ' ) ,   ' a l l o w e d ' = > $ c a n O p e n A n y H o m e S e c t i o n ( [ ' i n s t a g r a m . v i e w _ a l l ' , ' i n s t a g r a m . v i e w _ a s s i g n e d ' ] ) ,   ' p e r m i s s i o n ' = > ' i n s t a g r a m . v i e w _ a l l   /   i n s t a g r a m . v i e w _ a s s i g n e d ' ,   ' t h e m e ' = > ' r e d ' ,   ' i c o n ' = > ' f a b   f a - i n s t a g r a m ' ,   ' l a b e l ' = > _ _ ( ' I n s t a g r a m ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' c a m p a i g n s . c r e a t e ' ) ,   ' a l l o w e d ' = > $ c a n O p e n H o m e S e c t i o n ( ' c o n t a c t s . c r e a t e ' ) ,   ' p e r m i s s i o n ' = > ' c o n t a c t s . c r e a t e ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' C r e a t e   W h a t s A p p   C a m p a i g n ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' t e m p l a t e s . c r e a t e ' ) ,   ' a l l o w e d ' = > $ c a n O p e n H o m e S e c t i o n ( ' t e m p l a t e s . m a n a g e ' ) ,   ' p e r m i s s i o n ' = > ' t e m p l a t e s . m a n a g e ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' C r e a t e   W h a t s A p p   T e m p l a t e ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' c o n t a c t s . c r e a t e ' ) ,   ' a l l o w e d ' = > $ c a n O p e n H o m e S e c t i o n ( ' c o n t a c t s . c r e a t e ' ) ,   ' p e r m i s s i o n ' = > ' c o n t a c t s . c r e a t e ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' A d d   W h a t s A p p   C o n t a c t ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' c o n t a c t - g r o u p s . c r e a t e ' ) ,   ' a l l o w e d ' = > $ c a n O p e n H o m e S e c t i o n ( ' c o n t a c t s . c r e a t e ' ) ,   ' p e r m i s s i o n ' = > ' c o n t a c t s . c r e a t e ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' C r e a t e   W h a t s A p p   G r o u p ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' a u t o m a t i o n . a u t o - r e s p o n s e s . c r e a t e ' ) ,   ' a l l o w e d ' = > $ c a n O p e n H o m e S e c t i o n ( ' a u t o _ r e s p o n s e s . m a n a g e ' ) ,   ' p e r m i s s i o n ' = > ' a u t o _ r e s p o n s e s . m a n a g e ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' W h a t s A p p   A u t o   R e s p o n s e ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' a u t o m a t i o n . f l o w s . c r e a t e ' ) ,   ' a l l o w e d ' = > $ c a n O p e n H o m e S e c t i o n ( ' c h a t b o t _ f l o w s . m a n a g e ' ) ,   ' p e r m i s s i o n ' = > ' c h a t b o t _ f l o w s . m a n a g e ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' W h a t s A p p   C h a t b o t   F l o w ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' f o r m s . c r e a t e ' ) ,   ' a l l o w e d ' = > a c t i v e _ t e n a n t _ i d ( )   & &   u s e r _ h a s _ f o r m s _ p e r m i s s i o n ( ' f o r m s . c r e a t e ' ,   a c t i v e _ t e n a n t _ i d ( ) ) ,   ' p e r m i s s i o n ' = > ' f o r m s . c r e a t e ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a b   f a - w h a t s a p p ' ,   ' l a b e l ' = > _ _ ( ' C r e a t e   W h a t s A p p   F o r m ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' r e p o r t s . i n d e x ' ) ,   ' a l l o w e d ' = > $ c a n O p e n H o m e S e c t i o n ( ' r e p o r t s . v i e w ' ) ,   ' p e r m i s s i o n ' = > ' r e p o r t s . v i e w ' ,   ' t h e m e ' = > ' s l a t e ' ,   ' i c o n ' = > ' f a s   f a - c h a r t - l i n e ' ,   ' l a b e l ' = > _ _ ( ' V i e w   R e p o r t s ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' b a l a n c e . i n d e x ' ) ,   ' a l l o w e d ' = > $ a c t i v e T e n a n t I d   & &   A u t h : : u s e r ( ) - > o w n s T e n a n t ( ( i n t )   $ a c t i v e T e n a n t I d ) ,   ' p e r m i s s i o n ' = > ' T e n a n t   o w n e r ' ,   ' t h e m e ' = > ' b l u e ' ,   ' i c o n ' = > ' f a s   f a - w a l l e t ' ,   ' l a b e l ' = > _ _ ( ' M a n a g e   B a l a n c e ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' b i l l i n g . i n d e x ' ) ,   ' a l l o w e d ' = > $ a c t i v e T e n a n t I d   & &   A u t h : : u s e r ( ) - > o w n s T e n a n t ( ( i n t )   $ a c t i v e T e n a n t I d ) ,   ' p e r m i s s i o n ' = > ' T e n a n t   o w n e r ' ,   ' t h e m e ' = > ' p u r p l e ' ,   ' i c o n ' = > ' f a s   f a - c r o w n ' ,   ' l a b e l ' = > _ _ ( ' U p g r a d e   P l a n ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > r o u t e ( ' c o n n e c t i o n s . i n d e x ' ) ,   ' a l l o w e d ' = > $ c a n O p e n A n y H o m e S e c t i o n ( [ ' w h a t s a p p . m a n a g e ' , ' m e s s e n g e r . m a n a g e ' , ' i n s t a g r a m . m a n a g e ' ] ) ,   ' p e r m i s s i o n ' = > ' w h a t s a p p . m a n a g e   /   m e s s e n g e r . m a n a g e   /   i n s t a g r a m . m a n a g e ' ,   ' t h e m e ' = > ' w h a t s a p p ' ,   ' i c o n ' = > ' f a s   f a - l i n k ' ,   ' l a b e l ' = > _ _ ( ' C o n n e c t i o n   s e t t i n g s ' ) ] , \ r \ n 
 
                                 [ ' u r l ' = > $ a c t i v e T e n a n t I d   ?   r o u t e ( ' t e n a n t s . i n v i t e ' ,   $ a c t i v e T e n a n t I d )   :   ' # ' ,   ' a l l o w e d ' = > $ c a n O p e n H o m e S e c t i o n ( ' u s e r s . m a n a g e ' ) ,   ' p e r m i s s i o n ' = > ' u s e r s . m a n a g e ' ,   ' t h e m e ' = > ' b l u e ' ,   ' i c o n ' = > ' f a s   f a - u s e r - f r i e n d s ' ,   ' l a b e l ' = > _ _ ( ' I n v i t e   M e m b e r ' ) ] , \ r \ n 
 
                         ] ; \ r \ n 
 
                 @ e n d p h p \ r \ n 
 
                 @ f o r e a c h ( $ h o m e Q u i c k A c t i o n s   a s   $ a c t i o n ) \ r \ n 
 
                         @ p h p ( $ d i s a b l e d T i t l e   =   _ _ ( ' Y o u   d o   n o t   h a v e   p e r m i s s i o n   t o   a c c e s s   t h i s   r e s o u r c e ' ) . '      ' . $ a c t i o n [ ' p e r m i s s i o n ' ] ) \ r \ n 
 
                         < d i v   c l a s s = " c o l - 4   c o l - m d - 3   c o l - l g - 2 " > \ r \ n 
 
                                 < a   @ i f ( $ a c t i o n [ ' a l l o w e d ' ] )   h r e f = " { {   $ a c t i o n [ ' u r l ' ]   } } "   @ e l s e   r o l e = " l i n k "   a r i a - d i s a b l e d = " t r u e "   t a b i n d e x = " 0 "   t i t l e = " { {   $ d i s a b l e d T i t l e   } } "   @ e n d i f \ r \ n 
 
                                       c l a s s = " q a - i t e m   { {   ! $ a c t i o n [ ' a l l o w e d ' ]   ?   ' p e r m i s s i o n - d i s a b l e d - c o n t r o l '   :   ' '   } } "   d a t a - t h e m e = " { {   $ a c t i o n [ ' t h e m e ' ]   } } " > \ r \ n 
 
                                         < d i v   c l a s s = " q a - i c o n " > < i   c l a s s = " { {   $ a c t i o n [ ' i c o n ' ]   } } " > < / i > < / d i v > \ r \ n 
 
                                         < s p a n > { {   $ a c t i o n [ ' l a b e l ' ]   } }   @ u n l e s s ( $ a c t i o n [ ' a l l o w e d ' ] ) < i   c l a s s = " f a s   f a - l o c k   m s - 1 "   a r i a - h i d d e n = " t r u e " > < / i > @ e n d u n l e s s < / s p a n > \ r \ n 
 
                                 < / a > \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 @ e n d f o r e a c h \ r \ n 
 
         < / d i v > \ r \ n 
 
 < / d i v > \ r \ n 
 
 \ r \ n 
 
 < ! - -   R e c e n t   A c t i v i t y   &   N o t i f i c a t i o n s   - - > \ r \ n 
 
 < d i v   c l a s s = " r o w   g - 3   m b - 4 " > \ r \ n 
 
         < d i v   c l a s s = " c o l - l g - 6 " > \ r \ n 
 
                 < d i v   c l a s s = " c a r d   h - 1 0 0 "   s t y l e = " b o x - s h a d o w :   0   2 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 6 ) ; " > \ r \ n 
 
                         < d i v   c l a s s = " c a r d - b o d y " > \ r \ n 
 
                                 < d i v   c l a s s = " s e c t i o n - h e a d e r   j u s t i f y - c o n t e n t - b e t w e e n " > \ r \ n 
 
                                         < d i v   c l a s s = " d - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 2 " > \ r \ n 
 
                                                 < d i v   c l a s s = " s e c t i o n - i c o n "   s t y l e = " b a c k g r o u n d : # d b e a f e ; c o l o r : # 2 5 6 3 e b ; " > \ r \ n 
 
                                                         < i   c l a s s = " f a s   f a - c l o c k " > < / i > \ r \ n 
 
                                                 < / d i v > \ r \ n 
 
                                                 < h 5 > { {   _ _ ( ' R e c e n t   W h a t s A p p   a c t i v i t y ' )   } } < / h 5 > \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         @ i f ( a c t i v e _ t e n a n t _ i d ( ) ) \ r \ n 
 
                                         @ i f ( $ c a n O p e n A n y H o m e S e c t i o n ( [ ' c o n v e r s a t i o n s . v i e w _ a l l ' , ' c o n v e r s a t i o n s . v i e w _ a s s i g n e d ' ] ) ) \ r \ n 
 
                                         < a   h r e f = " { {   r o u t e ( ' c o n v e r s a t i o n s . i n d e x ' )   } } "   c l a s s = " b t n   b t n - s m   b t n - l i g h t " > { {   _ _ ( ' V i e w   A l l ' )   } } < / a > \ r \ n 
 
                                         @ e n d i f \ r \ n 
 
                                         @ e n d i f \ r \ n 
 
                                 < / d i v > \ r \ n 
 
 \ r \ n 
 
                                 @ i f ( ! a c t i v e _ t e n a n t _ i d ( ) ) \ r \ n 
 
                                 < d i v   c l a s s = " t e x t - c e n t e r   p y - 4 " > \ r \ n 
 
                                         < p   c l a s s = " t e x t - m u t e d   m b - 0 "   s t y l e = " f o n t - s i z e : 0 . 9 r e m ; " > { {   _ _ ( ' S e l e c t   a   t e n a n t   t o   s e e   r e c e n t   a c t i v i t y . ' )   } } < / p > \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                                 @ e l s e i f ( $ r e c e n t A c t i v i t i e s - > i s E m p t y ( ) ) \ r \ n 
 
                                 < d i v   c l a s s = " t e x t - c e n t e r   p y - 4 " > \ r \ n 
 
                                         < d i v   s t y l e = " w i d t h : 6 4 p x ; h e i g h t : 6 4 p x ; b o r d e r - r a d i u s : 5 0 % ; b a c k g r o u n d : # f 1 f 5 f 9 ; d i s p l a y : i n l i n e - f l e x ; a l i g n - i t e m s : c e n t e r ; j u s t i f y - c o n t e n t : c e n t e r ; m a r g i n - b o t t o m : 0 . 7 5 r e m ; " > \ r \ n 
 
                                                 < i   c l a s s = " f a s   f a - i n b o x "   s t y l e = " f o n t - s i z e : 1 . 5 r e m ; c o l o r : # 9 4 a 3 b 8 ; " > < / i > \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         < p   c l a s s = " t e x t - m u t e d   m b - 0 "   s t y l e = " f o n t - s i z e : 0 . 9 r e m ; " > { {   _ _ ( ' N o   c u r r e n t   a c t i v i t i e s ' )   } } < / p > \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                                 @ e l s e \ r \ n 
 
                                 < d i v   c l a s s = " f e e d - l i s t "   i d = " h o m e A c t i v i t y L i s t " > \ r \ n 
 
                                         @ f o r e a c h ( $ r e c e n t A c t i v i t i e s   a s   $ a c t i v i t y ) \ r \ n 
 
                                         @ i f ( ! e m p t y ( $ a c t i v i t y [ ' u r l ' ] ) ) \ r \ n 
 
                                         < a   h r e f = " { {   $ a c t i v i t y [ ' u r l ' ]   } } "   c l a s s = " f e e d - i t e m " > \ r \ n 
 
                                         @ e l s e \ r \ n 
 
                                         < d i v   c l a s s = " f e e d - i t e m " > \ r \ n 
 
                                         @ e n d i f \ r \ n 
 
                                                 < d i v   c l a s s = " f e e d - i c o n "   s t y l e = " b a c k g r o u n d :   { {   $ a c t i v i t y [ ' c o l o r ' ]   } } 2 0 ;   c o l o r :   { {   $ a c t i v i t y [ ' c o l o r ' ]   } } ; " > \ r \ n 
 
                                                         < i   c l a s s = " { {   $ a c t i v i t y [ ' i c o n ' ]   } } " > < / i > \ r \ n 
 
                                                 < / d i v > \ r \ n 
 
                                                 < d i v   c l a s s = " f e e d - c o n t e n t " > \ r \ n 
 
                                                         < d i v   c l a s s = " f e e d - t i t l e " > { {   $ a c t i v i t y [ ' t i t l e ' ]   } } < / d i v > \ r \ n 
 
                                                         @ i f ( ! e m p t y ( $ a c t i v i t y [ ' b o d y ' ] ) ) \ r \ n 
 
                                                         < d i v   c l a s s = " f e e d - b o d y " > { {   $ a c t i v i t y [ ' b o d y ' ]   } } < / d i v > \ r \ n 
 
                                                         @ e n d i f \ r \ n 
 
                                                         < d i v   c l a s s = " f e e d - t i m e " > \ r \ n 
 
                                                                 < i   c l a s s = " f a r   f a - c l o c k " > < / i >   { {   $ a c t i v i t y [ ' c r e a t e d _ a t ' ] - > d i f f F o r H u m a n s ( )   } } \ r \ n 
 
                                                         < / d i v > \ r \ n 
 
                                                 < / d i v > \ r \ n 
 
                                         @ i f ( ! e m p t y ( $ a c t i v i t y [ ' u r l ' ] ) ) \ r \ n 
 
                                         < / a > \ r \ n 
 
                                         @ e l s e \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         @ e n d i f \ r \ n 
 
                                         @ e n d f o r e a c h \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                                 @ e n d i f \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
         < / d i v > \ r \ n 
 
         \ r \ n 
 
         < d i v   c l a s s = " c o l - l g - 6 " > \ r \ n 
 
                 < d i v   c l a s s = " c a r d   h - 1 0 0 "   s t y l e = " b o x - s h a d o w :   0   2 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 0 6 ) ; " > \ r \ n 
 
                         < d i v   c l a s s = " c a r d - b o d y " > \ r \ n 
 
                                 < d i v   c l a s s = " s e c t i o n - h e a d e r   j u s t i f y - c o n t e n t - b e t w e e n " > \ r \ n 
 
                                         < d i v   c l a s s = " d - f l e x   a l i g n - i t e m s - c e n t e r   g a p - 2 " > \ r \ n 
 
                                                 < d i v   c l a s s = " s e c t i o n - i c o n "   s t y l e = " b a c k g r o u n d : # f e f 3 c 7 ; c o l o r : # d 9 7 7 0 6 ; " > \ r \ n 
 
                                                         < i   c l a s s = " f a s   f a - b e l l " > < / i > \ r \ n 
 
                                                 < / d i v > \ r \ n 
 
                                                 < h 5 > { {   _ _ ( ' N o t i f i c a t i o n s ' )   } } < / h 5 > \ r \ n 
 
                                                 @ i f ( ( $ u n r e a d N o t i f i c a t i o n s C o u n t   ? ?   0 )   >   0 ) \ r \ n 
 
                                                 < s p a n   c l a s s = " b a d g e   b g - d a n g e r "   i d = " h o m e U n r e a d B a d g e " > { {   $ u n r e a d N o t i f i c a t i o n s C o u n t   } } < / s p a n > \ r \ n 
 
                                                 @ e l s e \ r \ n 
 
                                                 < s p a n   c l a s s = " b a d g e   b g - d a n g e r   d - n o n e "   i d = " h o m e U n r e a d B a d g e " > 0 < / s p a n > \ r \ n 
 
                                                 @ e n d i f \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         @ i f ( a c t i v e _ t e n a n t _ i d ( ) ) \ r \ n 
 
                                         < a   h r e f = " { {   r o u t e ( ' n o t i f i c a t i o n s . i n d e x ' )   } } "   c l a s s = " b t n   b t n - s m   b t n - l i g h t " > { {   _ _ ( ' V i e w   A l l ' )   } } < / a > \ r \ n 
 
                                         @ e n d i f \ r \ n 
 
                                 < / d i v > \ r \ n 
 
 \ r \ n 
 
                                 @ i f ( ! a c t i v e _ t e n a n t _ i d ( ) ) \ r \ n 
 
                                 < d i v   c l a s s = " t e x t - c e n t e r   p y - 4 " > \ r \ n 
 
                                         < p   c l a s s = " t e x t - m u t e d   m b - 0 "   s t y l e = " f o n t - s i z e : 0 . 9 r e m ; " > { {   _ _ ( ' S e l e c t   a   t e n a n t   t o   s e e   n o t i f i c a t i o n s . ' )   } } < / p > \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                                 @ e l s e \ r \ n 
 
                                 < d i v   i d = " h o m e N o t i f i c a t i o n s E m p t y "   c l a s s = " t e x t - c e n t e r   p y - 4   { {   ( $ r e c e n t N o t i f i c a t i o n s   ? ?   c o l l e c t ( ) ) - > i s N o t E m p t y ( )   ?   ' d - n o n e '   :   ' '   } } " > \ r \ n 
 
                                         < d i v   s t y l e = " w i d t h : 6 4 p x ; h e i g h t : 6 4 p x ; b o r d e r - r a d i u s : 5 0 % ; b a c k g r o u n d : # f 1 f 5 f 9 ; d i s p l a y : i n l i n e - f l e x ; a l i g n - i t e m s : c e n t e r ; j u s t i f y - c o n t e n t : c e n t e r ; m a r g i n - b o t t o m : 0 . 7 5 r e m ; " > \ r \ n 
 
                                                 < i   c l a s s = " f a s   f a - b e l l - s l a s h "   s t y l e = " f o n t - s i z e : 1 . 5 r e m ; c o l o r : # 9 4 a 3 b 8 ; " > < / i > \ r \ n 
 
                                         < / d i v > \ r \ n 
 
                                         < p   c l a s s = " t e x t - m u t e d   m b - 0 "   s t y l e = " f o n t - s i z e : 0 . 9 r e m ; " > { {   _ _ ( ' N o   n e w   n o t i f i c a t i o n s ' )   } } < / p > \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                                 < d i v   c l a s s = " f e e d - l i s t "   i d = " h o m e N o t i f i c a t i o n s L i s t " > \ r \ n 
 
                                         @ f o r e a c h ( $ r e c e n t N o t i f i c a t i o n s   ? ?   [ ]   a s   $ n o t i f i c a t i o n ) \ r \ n 
 
                                         < a   h r e f = " { {   $ n o t i f i c a t i o n - > a c t i o n _ u r l   ? :   r o u t e ( ' n o t i f i c a t i o n s . i n d e x ' )   } } " \ r \ n 
 
                                               c l a s s = " f e e d - i t e m   h o m e - n o t i f i c a t i o n - i t e m   { {   ! $ n o t i f i c a t i o n - > i s _ r e a d   ?   ' u n r e a d '   :   ' '   } } " \ r \ n 
 
                                               d a t a - n o t i f i c a t i o n - i d = " { {   $ n o t i f i c a t i o n - > i d   } } " > \ r \ n 
 
                                                 < d i v   c l a s s = " f e e d - i c o n "   s t y l e = " b a c k g r o u n d :   { {   $ n o t i f i c a t i o n - > i c o n _ c o l o r   } } 2 0 ;   c o l o r :   { {   $ n o t i f i c a t i o n - > i c o n _ c o l o r   } } ; " > \ r \ n 
 
                                                         < i   c l a s s = " { {   $ n o t i f i c a t i o n - > i c o n   } } " > < / i > \ r \ n 
 
                                                 < / d i v > \ r \ n 
 
                                                 < d i v   c l a s s = " f e e d - c o n t e n t " > \ r \ n 
 
                                                         < d i v   c l a s s = " f e e d - t i t l e " > { {   $ n o t i f i c a t i o n - > t i t l e   } } < / d i v > \ r \ n 
 
                                                         @ i f ( $ n o t i f i c a t i o n - > b o d y ) \ r \ n 
 
                                                         < d i v   c l a s s = " f e e d - b o d y " > { {   $ n o t i f i c a t i o n - > b o d y   } } < / d i v > \ r \ n 
 
                                                         @ e n d i f \ r \ n 
 
                                                         < d i v   c l a s s = " f e e d - t i m e " > \ r \ n 
 
                                                                 < i   c l a s s = " f a r   f a - c l o c k " > < / i >   { {   $ n o t i f i c a t i o n - > t i m e _ a g o   } } \ r \ n 
 
                                                         < / d i v > \ r \ n 
 
                                                 < / d i v > \ r \ n 
 
                                         < / a > \ r \ n 
 
                                         @ e n d f o r e a c h \ r \ n 
 
                                 < / d i v > \ r \ n 
 
                                 @ e n d i f \ r \ n 
 
                         < / d i v > \ r \ n 
 
                 < / d i v > \ r \ n 
 
         < / d i v > \ r \ n 
 
 < / d i v > \ r \ n 
 
 \ r \ n 
 
 @ e n d s e c t i o n \ r \ n 
 
 \ r \ n 
 
 @ s e c t i o n ( ' s c r i p t s ' ) \ r \ n 
 
 @ i f ( a c t i v e _ t e n a n t _ i d ( ) ) \ r \ n 
 
 < s c r i p t > \ r \ n 
 
 ( f u n c t i o n ( )   { \ r \ n 
 
         c o n s t   l i s t E l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' h o m e N o t i f i c a t i o n s L i s t ' ) ; \ r \ n 
 
         c o n s t   e m p t y E l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' h o m e N o t i f i c a t i o n s E m p t y ' ) ; \ r \ n 
 
         c o n s t   b a d g e E l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' h o m e U n r e a d B a d g e ' ) ; \ r \ n 
 
         i f   ( ! l i s t E l )   r e t u r n ; \ r \ n 
 
 \ r \ n 
 
         f u n c t i o n   e s c a p e H t m l ( t e x t )   { \ r \ n 
 
                 c o n s t   m a p   =   {   ' & ' :   ' & a m p ; ' ,   ' < ' :   ' & l t ; ' ,   ' > ' :   ' & g t ; ' ,   ' " ' :   ' & q u o t ; ' ,   " ' " :   ' & # 0 3 9 ; '   } ; \ r \ n 
 
                 r e t u r n   S t r i n g ( t e x t   | |   ' ' ) . r e p l a c e ( / [ & < > " ' ] / g ,   f u n c t i o n ( m )   {   r e t u r n   m a p [ m ] ;   } ) ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         c o n s t   n o t i f i c a t i o n s I n d e x U r l   =   @ j s o n ( r o u t e ( ' n o t i f i c a t i o n s . i n d e x ' ) ) ; \ r \ n 
 
 \ r \ n 
 
         f u n c t i o n   r e n d e r H o m e N o t i f i c a t i o n s ( n o t i f i c a t i o n s )   { \ r \ n 
 
                 i f   ( ! n o t i f i c a t i o n s   | |   n o t i f i c a t i o n s . l e n g t h   = = =   0 )   { \ r \ n 
 
                         l i s t E l . i n n e r H T M L   =   ' ' ; \ r \ n 
 
                         i f   ( e m p t y E l )   e m p t y E l . c l a s s L i s t . r e m o v e ( ' d - n o n e ' ) ; \ r \ n 
 
                         r e t u r n ; \ r \ n 
 
                 } \ r \ n 
 
 \ r \ n 
 
                 i f   ( e m p t y E l )   e m p t y E l . c l a s s L i s t . a d d ( ' d - n o n e ' ) ; \ r \ n 
 
 \ r \ n 
 
                 l i s t E l . i n n e r H T M L   =   n o t i f i c a t i o n s . m a p ( f u n c t i o n ( n o t i f )   { \ r \ n 
 
                         c o n s t   h r e f   =   n o t i f . a c t i o n _ u r l   | |   n o t i f i c a t i o n s I n d e x U r l ; \ r \ n 
 
                         c o n s t   u n r e a d C l a s s   =   n o t i f . i s _ r e a d   ?   ' '   :   '   u n r e a d ' ; \ r \ n 
 
                         c o n s t   i c o n B g   =   ( n o t i f . i c o n _ c o l o r   | |   ' # 6 c 7 5 7 d ' )   +   ' 2 0 ' ; \ r \ n 
 
                         c o n s t   i c o n C o l o r   =   n o t i f . i c o n _ c o l o r   | |   ' # 6 c 7 5 7 d ' ; \ r \ n 
 
                         c o n s t   b o d y H t m l   =   n o t i f . b o d y   ?   ` < d i v   c l a s s = " f e e d - b o d y " > $ { e s c a p e H t m l ( n o t i f . b o d y ) } < / d i v > `   :   ' ' ; \ r \ n 
 
 \ r \ n 
 
                         r e t u r n   ` < a   h r e f = " $ { e s c a p e H t m l ( h r e f ) } "   c l a s s = " f e e d - i t e m   h o m e - n o t i f i c a t i o n - i t e m $ { u n r e a d C l a s s } "   d a t a - n o t i f i c a t i o n - i d = " $ { n o t i f . i d } " > `   + \ r \ n 
 
                                 ` < d i v   c l a s s = " f e e d - i c o n "   s t y l e = " b a c k g r o u n d : $ { i c o n B g } ; c o l o r : $ { i c o n C o l o r } ; " > `   + \ r \ n 
 
                                 ` < i   c l a s s = " $ { e s c a p e H t m l ( n o t i f . i c o n   | |   ' f a s   f a - b e l l ' ) } " > < / i > < / d i v > `   + \ r \ n 
 
                                 ` < d i v   c l a s s = " f e e d - c o n t e n t " > `   + \ r \ n 
 
                                 ` < d i v   c l a s s = " f e e d - t i t l e " > $ { e s c a p e H t m l ( n o t i f . t i t l e ) } < / d i v > `   + \ r \ n 
 
                                 b o d y H t m l   + \ r \ n 
 
                                 ` < d i v   c l a s s = " f e e d - t i m e " > < i   c l a s s = " f a r   f a - c l o c k " > < / i >   $ { e s c a p e H t m l ( n o t i f . t i m e _ a g o ) } < / d i v > `   + \ r \ n 
 
                                 ` < / d i v > < / a > ` ; \ r \ n 
 
                 } ) . j o i n ( ' ' ) ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         f u n c t i o n   u p d a t e H o m e U n r e a d B a d g e ( c o u n t )   { \ r \ n 
 
                 i f   ( ! b a d g e E l )   r e t u r n ; \ r \ n 
 
                 i f   ( c o u n t   >   0 )   { \ r \ n 
 
                         b a d g e E l . t e x t C o n t e n t   =   c o u n t ; \ r \ n 
 
                         b a d g e E l . c l a s s L i s t . r e m o v e ( ' d - n o n e ' ) ; \ r \ n 
 
                 }   e l s e   { \ r \ n 
 
                         b a d g e E l . c l a s s L i s t . a d d ( ' d - n o n e ' ) ; \ r \ n 
 
                 } \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         f u n c t i o n   r e f r e s h H o m e N o t i f i c a t i o n s ( )   { \ r \ n 
 
                 f e t c h ( @ j s o n ( r o u t e ( ' n o t i f i c a t i o n s . r e c e n t ' ) ) ,   { \ r \ n 
 
                         h e a d e r s :   {   ' A c c e p t ' :   ' a p p l i c a t i o n / j s o n ' ,   ' X - R e q u e s t e d - W i t h ' :   ' X M L H t t p R e q u e s t '   } , \ r \ n 
 
                 } ) \ r \ n 
 
                 . t h e n ( f u n c t i o n ( r )   {   r e t u r n   r . j s o n ( ) ;   } ) \ r \ n 
 
                 . t h e n ( f u n c t i o n ( d a t a )   { \ r \ n 
 
                         r e n d e r H o m e N o t i f i c a t i o n s ( d a t a . n o t i f i c a t i o n s   | |   [ ] ) ; \ r \ n 
 
                         u p d a t e H o m e U n r e a d B a d g e ( d a t a . u n r e a d _ c o u n t   | |   0 ) ; \ r \ n 
 
                 } ) \ r \ n 
 
                 . c a t c h ( f u n c t i o n ( e r r )   { \ r \ n 
 
                         c o n s o l e . w a r n ( ' H o m e   n o t i f i c a t i o n s   r e f r e s h   f a i l e d ' ,   e r r ) ; \ r \ n 
 
                 } ) ; \ r \ n 
 
         } \ r \ n 
 
 \ r \ n 
 
         r e f r e s h H o m e N o t i f i c a t i o n s ( ) ; \ r \ n 
 
         s e t I n t e r v a l ( r e f r e s h H o m e N o t i f i c a t i o n s ,   3 0 0 0 0 ) ; \ r \ n 
 
 } ) ( ) ; \ r \ n 
 
 < / s c r i p t > \ r \ n 
 
 @ e n d i f \ r \ n 
 
 < s c r i p t > \ r \ n 
 
 f u n c t i o n   d a s h D i s c o n n e c t P h o n e ( p h o n e I d ,   p h o n e N u m b e r )   { \ r \ n 
 
         i f   ( ! c o n f i r m ( ' { {   _ _ ( " A r e   y o u   s u r e   y o u   w a n t   t o   d i s c o n n e c t " )   } }   '   +   p h o n e N u m b e r   +   ' ? ' ) )   r e t u r n ; \ r \ n 
 
 \ r \ n 
 
         c o n s t   b t n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' d a s h - d i s c o n n e c t - b t n - '   +   p h o n e I d ) ; \ r \ n 
 
         b t n . d i s a b l e d   =   t r u e ; \ r \ n 
 
         b t n . i n n e r H T M L   =   ' < i   c l a s s = " f a s   f a - s p i n n e r   f a - s p i n " > < / i > ' ; \ r \ n 
 
 \ r \ n 
 
         f e t c h ( ' { {   u r l ( " / w h a t s a p p / s y s t e m - p h o n e s " )   } } / '   +   p h o n e I d ,   { \ r \ n 
 
                 m e t h o d :   ' D E L E T E ' , \ r \ n 
 
                 h e a d e r s :   { \ r \ n 
 
                         ' X - C S R F - T O K E N ' :   ' { {   c s r f _ t o k e n ( )   } } ' , \ r \ n 
 
                         ' C o n t e n t - T y p e ' :   ' a p p l i c a t i o n / j s o n ' , \ r \ n 
 
                         ' A c c e p t ' :   ' a p p l i c a t i o n / j s o n ' , \ r \ n 
 
                 } , \ r \ n 
 
         } ) \ r \ n 
 
         . t h e n ( r   = >   r . j s o n ( ) ) \ r \ n 
 
         . t h e n ( d a t a   = >   { \ r \ n 
 
                 i f   ( d a t a . s u c c e s s )   { \ r \ n 
 
                         c o n s t   r o w   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' d a s h - p h o n e - r o w - '   +   p h o n e I d ) ; \ r \ n 
 
                         i f   ( r o w )   r o w . r e m o v e ( ) ; \ r \ n 
 
 \ r \ n 
 
                         d a s h S h o w A l e r t ( ' s u c c e s s ' ,   d a t a . m e s s a g e ) ; \ r \ n 
 
 \ r \ n 
 
                         i f   ( d a t a . w a r n i n g )   { \ r \ n 
 
                                 d a s h S h o w A l e r t ( ' w a r n i n g ' ,   d a t a . w a r n i n g ) ; \ r \ n 
 
                         } \ r \ n 
 
 \ r \ n 
 
                         / /   I f   n o   p h o n e s   r e m a i n ,   r e l o a d   t o   s h o w   " n o t   c o n n e c t e d " \ r \ n 
 
                         i f   ( d a t a . r e m a i n i n g   = = =   0 )   { \ r \ n 
 
                                 s e t T i m e o u t ( ( )   = >   w i n d o w . l o c a t i o n . r e l o a d ( ) ,   1 5 0 0 ) ; \ r \ n 
 
                         } \ r \ n 
 
                 }   e l s e   { \ r \ n 
 
                         d a s h S h o w A l e r t ( ' d a n g e r ' ,   d a t a . e r r o r   | |   ' { {   _ _ ( " F a i l e d   t o   d i s c o n n e c t " )   } } ' ) ; \ r \ n 
 
                         b t n . d i s a b l e d   =   f a l s e ; \ r \ n 
 
                         b t n . i n n e r H T M L   =   ' < i   c l a s s = " f a s   f a - t i m e s - c i r c l e " > < / i > ' ; \ r \ n 
 
                 } \ r \ n 
 
         } ) \ r \ n 
 
         . c a t c h ( e r r   = >   { \ r \ n 
 
                 d a s h S h o w A l e r t ( ' d a n g e r ' ,   ' { {   _ _ ( " N e t w o r k   e r r o r .   P l e a s e   t r y   a g a i n . " )   } } ' ) ; \ r \ n 
 
                 b t n . d i s a b l e d   =   f a l s e ; \ r \ n 
 
                 b t n . i n n e r H T M L   =   ' < i   c l a s s = " f a s   f a - t i m e s - c i r c l e " > < / i > ' ; \ r \ n 
 
         } ) ; \ r \ n 
 
 } \ r \ n 
 
 \ r \ n 
 
 f u n c t i o n   d a s h S e t D e f a u l t ( p h o n e I d )   { \ r \ n 
 
         c o n s t   b t n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' d a s h - d e f a u l t - b t n - '   +   p h o n e I d ) ; \ r \ n 
 
         b t n . d i s a b l e d   =   t r u e ; \ r \ n 
 
         b t n . i n n e r H T M L   =   ' < i   c l a s s = " f a s   f a - s p i n n e r   f a - s p i n " > < / i > ' ; \ r \ n 
 
 \ r \ n 
 
         f e t c h ( ' { {   u r l ( " / w h a t s a p p / s y s t e m - p h o n e s " )   } } / '   +   p h o n e I d   +   ' / s e t - d e f a u l t ' ,   { \ r \ n 
 
                 m e t h o d :   ' P O S T ' , \ r \ n 
 
                 h e a d e r s :   { \ r \ n 
 
                         ' X - C S R F - T O K E N ' :   ' { {   c s r f _ t o k e n ( )   } } ' , \ r \ n 
 
                         ' C o n t e n t - T y p e ' :   ' a p p l i c a t i o n / j s o n ' , \ r \ n 
 
                         ' A c c e p t ' :   ' a p p l i c a t i o n / j s o n ' , \ r \ n 
 
                 } , \ r \ n 
 
         } ) \ r \ n 
 
         . t h e n ( r   = >   r . j s o n ( ) ) \ r \ n 
 
         . t h e n ( d a t a   = >   { \ r \ n 
 
                 i f   ( d a t a . s u c c e s s )   { \ r \ n 
 
                         d a s h S h o w A l e r t ( ' s u c c e s s ' ,   d a t a . m e s s a g e ) ; \ r \ n 
 
                         / /   R e l o a d   t o   r e f l e c t   n e w   d e f a u l t \ r \ n 
 
                         s e t T i m e o u t ( ( )   = >   w i n d o w . l o c a t i o n . r e l o a d ( ) ,   1 0 0 0 ) ; \ r \ n 
 
                 }   e l s e   { \ r \ n 
 
                         d a s h S h o w A l e r t ( ' d a n g e r ' ,   d a t a . e r r o r   | |   ' { {   _ _ ( " F a i l e d   t o   s e t   d e f a u l t " )   } } ' ) ; \ r \ n 
 
                         b t n . d i s a b l e d   =   f a l s e ; \ r \ n 
 
                         b t n . i n n e r H T M L   =   ' < i   c l a s s = " f a s   f a - s t a r " > < / i > ' ; \ r \ n 
 
                 } \ r \ n 
 
         } ) \ r \ n 
 
         . c a t c h ( e r r   = >   { \ r \ n 
 
                 d a s h S h o w A l e r t ( ' d a n g e r ' ,   ' { {   _ _ ( " N e t w o r k   e r r o r .   P l e a s e   t r y   a g a i n . " )   } } ' ) ; \ r \ n 
 
                 b t n . d i s a b l e d   =   f a l s e ; \ r \ n 
 
                 b t n . i n n e r H T M L   =   ' < i   c l a s s = " f a s   f a - s t a r " > < / i > ' ; \ r \ n 
 
         } ) ; \ r \ n 
 
 } \ r \ n 
 
 \ r \ n 
 
 f u n c t i o n   d a s h S h o w A l e r t ( t y p e ,   m s g )   { \ r \ n 
 
         c o n s t   e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' d a s h - p h o n e - a l e r t ' ) ; \ r \ n 
 
         c o n s t   m s g E l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' d a s h - p h o n e - a l e r t - m s g ' ) ; \ r \ n 
 
         e l . c l a s s N a m e   =   ' a l e r t   a l e r t - '   +   t y p e   +   '   a l e r t - d i s m i s s i b l e   f a d e   s h o w   m b - 4 ' ; \ r \ n 
 
         m s g E l . i n n e r H T M L   =   ' < i   c l a s s = " f a s   f a - '   +   ( t y p e   = = =   ' s u c c e s s '   ?   ' c h e c k - c i r c l e '   :   ' e x c l a m a t i o n - t r i a n g l e ' )   +   ' " > < / i >   '   +   m s g ; \ r \ n 
 
         e l . s t y l e . d i s p l a y   =   ' b l o c k ' ; \ r \ n 
 
 } \ r \ n 
 
 < / s c r i p t > \ r \ n 
 
 @ e n d s e c t i o n \ r \ n 
 
 '   c o n t a i n s   " ' p e r m i s s i o n ' = > ' w h a t s a p p . m a n a g e ' " . 
 
 
 
 H : \ i w e n t a \ i w e n t a \ s y s t e m \ t e s t s \ U n i t \ T e n a n t P e r m i s s i o n D i s a b l e d U i T e s t . p h p : 3 5 
 
 
 
 F A I L U R E S ! 
 
 T e s t s :   2 ,   A s s e r t i o n s :   9 ,   F a i l u r e s :   2 . 
 
 