S t a r t :   5 4 6 0 
 
 E n d :   5 4 9 3 
 
                 w i n d o w . o n A b s t r a c t C o n t r a c t C h a n g e   =   a s y n c   f u n c t i o n ( )   { 
 
                         c o n s t   c o n t r a c t S e l e c t   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' a b - c o n t r a c t - i d ' ) ; 
 
                         i f   ( ! c o n t r a c t S e l e c t )   r e t u r n ; 
 
 
 
                         c o n s t   c o n t r a c t I d   =   c o n t r a c t S e l e c t . v a l u e ; 
 
                         i f   ( ! c o n t r a c t I d )   { 
 
                                 w i n d o w . c u r r e n t A b s t r a c t I t e m s   =   [ ] ; 
 
                                 w i n d o w . r e n d e r A b s t r a c t I t e m s T a b l e ( ) ; 
 
                                 r e t u r n ; 
 
                         } 
 
 
 
                         t r y   { 
 
                                 / /   j%4% j%0  j%0% j%/% j%/j%2  j%/% j%c%% j%   % j%0j%/j%$%j%%j%1  % %   % j%/j%c%j% j%1  j%/% j%0% j%/% j%/j%2
 
                                 c o n s t   c o n t r a c t s   =   a w a i t   w i n d o w . D B . g e t A l l ( ' s u b c o n t r a c t s ' )   | |   [ ] ; 
 
                                 c o n s t   c o n t r a c t   =   c o n t r a c t s . f i n d ( c   = >   S t r i n g ( c . i d )   = = =   S t r i n g ( c o n t r a c t I d ) ) ; 
 
 
 
                                 i f   ( ! c o n t r a c t   | |   ! c o n t r a c t . b o q _ i t e m s   | |   c o n t r a c t . b o q _ i t e m s . l e n g t h   = = =   0 )   { 
 
                                         a l e r t ( ' % j%%j%/  j%/% j%c%% j%   % j%/  % j%5j%2% %   j%c%% %   j%0% % j%   % j%%j%4% j%1.   % % % % %   j%-j%b%j%/% j%1  j%/% j%0% % j%   % j% % % j%/% . ' ) ; 
 
                                         w i n d o w . c u r r e n t A b s t r a c t I t e m s   =   [ ] ; 
 
                                 }   e l s e   { 
 
                                         / /   j%%j%5j%0  j%0% % j%   j%/% j%c%% j%   % j%2j%4% % j%%% j%/  % % % j%%j%2j% % j%a%
 
                                         w i n d o w . c u r r e n t A b s t r a c t I t e m s   =   J S O N . p a r s e ( J S O N . s t r i n g i f y ( c o n t r a c t . b o q _ i t e m s ) ) . m a p ( i t e m   = >   ( { 
 
                                                 n a m e :   i t e m . n a m e , 
 
                                                 u n i t :   i t e m . u n i t , 
 
                                                 p r i c e :   p a r s e F l o a t ( i t e m . p r i c e )   | |   0 , 
 
                                                 p r e v _ q t y :   0 ,   / /   % % % % %   j%2j%5j% % j%3% j%/  % j%/j%5% j%/%   % %   % j%%j%2j% % j%a%j%/j%2  j%%j%/j%0% j%1
 
                                                 c u r r e n t _ q t y :   0   
 
                                         } ) ) ; 
 
                                 } 
 
                                 w i n d o w . r e n d e r A b s t r a c t I t e m s T a b l e ( ) ; 
 
                         }   c a t c h   ( e )   { 
 
                                 c o n s o l e . e r r o r ( " j% j%V%j%+  % %   j%4% j%0  j%0% j%/% j%/j%2  j%/% j%c%% j% : " ,   e ) ; 
 
                         } 
 
                 } ; 
 
 