v3.22.4
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Operating activities    
Net (loss) income $ (163,281) $ 51,193
Adjustments to reconcile net (loss) income to net cash provided by operating activities    
Depreciation and amortization 81,816 89,746
Share-based compensation expense 22,671 23,511
Deferred taxes 116,927 3,977
Unrealized loss (gain) on derivatives not designated as hedging instruments included in net (loss) income 25,897 (23,020)
Effect of exchange rate changes on monetary assets and liabilities denominated in non-functional currency (4,982) (6,302)
Other non-cash items 11,908 (1,699)
Changes in operating assets and liabilities, net of effects of businesses acquired:    
Accounts receivable (5,465) (13,102)
Inventory (26,249) (23,327)
Prepaid expenses and other assets (13,176) (9,969)
Accounts payable 10,960 69,318
Accrued expenses and other liabilities (1,151) 19,585
Net cash provided by operating activities 55,875 179,911
Investing activities    
Purchases of property, plant and equipment (26,490) (26,539)
Business acquisitions, net of cash acquired 498 68,946
Capitalization of software and website development costs (29,246) (32,134)
Proceeds from the sale of assets 1,365 25,835
Purchases of marketable securities 84,030  
Proceeds from maturity of held-to-maturity investments 32,330 27,000
Payments for (Proceeds from) Hedge, Investing Activities 0 (1,880)
Other investing activities 0 (617)
Net cash used in investing activities (106,569) (77,281)
Financing activities    
Proceeds from borrowings of debt 10,000  
Payments of debt (16,586) (7,671)
Payments of debt issuance costs (51) (1,435)
Payments of purchase consideration included in acquisition-date fair value 225 0
Payments of withholding taxes in connection with equity awards (2,370) (2,898)
Payments of finance lease obligations (4,264) (33,107)
Purchase of noncontrolling interests 95,567 324
Distributions to noncontrolling interests 3,652 3,963
Other financing activities 0 41
Net cash used in financing activities (112,715) (49,357)
Effect of exchange rate changes on cash 1,765 (5,137)
Change in cash held for sale (4,130)  
Net (decrease) increase in cash and cash equivalents (165,774) 48,136
Cash and cash equivalents at beginning of period (277,053) (183,023)
Cash and cash equivalents at end of period (111,279) (231,159)
Supplemental disclosures of cash flow information    
Interest 50,820 49,687
Income taxes 11,166 15,825
Property and equipment acquired under finance leases 8,643 3,596
Amounts accrued related to property, plant and equipment 9,903 9,818
Amounts accrued related to capitalized software development costs 82 475
Amounts accrued related to business acquisitions $ 6,838 $ 52,677