XML 16 R7.htm IDEA: XBRL DOCUMENT v3.22.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended 12 Months Ended
Mar. 31, 2022
Mar. 31, 2021
Mar. 31, 2022
Mar. 31, 2021
Jun. 30, 2021
Jun. 30, 2020
Operating activities            
Net loss $ (69,892) $ (38,841) $ (18,699) $ (15,018) $ (82,457)  
Adjustments to reconcile net loss to net cash provided by operating activities:            
Depreciation and amortization 43,651 42,809 133,397 128,696    
Share-based compensation expense     36,215 23,071    
Impairment of long-lived assets     0 19,882    
Deferred taxes     26,636 2,513    
Unrealized (gain) loss on derivatives not designated as hedging instruments included in net loss     (25,639) 18,280    
Effect of exchange rate changes on monetary assets and liabilities denominated in non-functional currency     (5,847) 2,537 (240)  
Other non-cash items     (8,204) 2,149    
Changes in operating assets and liabilities:            
Accounts receivable     (17,764) (9,651)    
Inventory     (31,964) 4,982    
Prepaid expenses and other assets     (18,776) (5,242)    
Accounts payable     35,860 10,590    
Accrued expenses and other liabilities     26,501 36,159    
Net cash provided by operating activities     131,716 218,948    
Investing activities            
Purchases of property, plant and equipment     (42,142) (22,736)    
Business acquisitions, net of cash acquired     75,258 36,395    
Capitalization of software and website development costs (17,741) (18,876) (49,875) (45,321)    
Proceeds from the sale of assets     27,466 3,574    
Proceeds from maturity of held-to-maturity investments     93,679      
Payments for settlement of derivatives designated as hedging instruments     1,880 0    
Other investing activities     (617) (269)    
Net cash used in investing activities     (48,627) (101,147)    
Financing activities            
Proceeds from borrowings of debt     0 534,051    
Payments of debt     (11,149) (639,519)    
Payments of debt issuance costs     (1,440) (2,461)    
Payments of purchase consideration included in acquisition-date fair value     43,647 1,205    
Payments of withholding taxes in connection with equity awards     (3,098) (5,593)    
Payments of finance lease obligations     (35,099) (5,486)    
Purchase of noncontrolling interests     324 5,063    
Distribution to noncontrolling interest     3,963 4,599    
Other financing activities     (26) (310)    
Net cash used in financing activities     (98,746) (130,185)    
Effect of exchange rate changes on cash     (5,854) 3,727    
Net decrease in cash and cash equivalents     (21,511) (8,657)    
Cash and cash equivalents at beginning of period 161,512 36,364 161,512 36,364 183,023 $ 45,021
Cash and cash equivalents at end of period (161,512) (36,364) (161,512) (36,364) $ (183,023) $ (45,021)
Supplemental disclosures of cash flow information            
Interest     63,498 66,314    
Income taxes     23,587 13,056    
Property and equipment acquired under finance leases     3,755 5,630    
Amounts accrued related to property, plant and equipment     10,115 6,711    
Amounts accrued related to capitalized software development costs     215 1,313    
Amounts accrued related to business acquisitions $ 8,555 $ 44,680 $ 8,555 $ 44,680