XML 34 R7.htm IDEA: XBRL DOCUMENT v3.21.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2019
Operating activities      
Net (loss) income $ (74,939) $ 83,995 $ 93,480
Adjustments to reconcile net (loss) income to net cash provided by operating activities:      
Depreciation and amortization 173,212 167,943 173,771
Impairment of goodwill 0 100,842 7,503
Share-based compensation expense 37,034 34,874 21,716
Impairment of long-lived assets 19,882    
Deferred taxes (10,284) (106,864) 6,838
Loss on early extinguishment of debt 48,343 0 0
Unrealized loss (gain) on derivatives not designated as hedging instruments included in net (loss) income 17,323 7,731 (5,358)
Effect of exchange rate changes on monetary assets and liabilities denominated in non-functional currency (7,278) (802) (4,364)
Other non-cash items 7,041 11,229 9,209
Changes in operating assets and liabilities:      
Accounts receivable (11,474) 26,659 (4,186)
Inventory 16,382 (18,328) (3,627)
Prepaid expenses and other assets (2,606) 11,946 4,475
Accounts payable 29,367 (17,547) 19,835
Accrued expenses and other liabilities 23,218 36,766 11,803
Net cash provided by operating activities 265,221 338,444 331,095
Investing activities      
Purchases of property, plant and equipment (38,524) (50,467) (70,563)
Proceeds from the sale of subsidiaries, net of transaction costs and cash divested 0 (1,124) 0
Business acquisitions, net of cash acquired (53,410) (4,272) (289,920)
Capitalization of software and website development costs (60,937) (43,992) (48,652)
Purchases of marketable securities (203,581) 0 0
Proceeds from the sale of assets 5,696 1,644 640
(Payments of) proceeds from settlement of derivatives designated as hedging instruments 3,291 29,791 12,016
Other investing activities (269) 1,556 (345)
Net cash used in investing activities (354,316) (66,864) (420,166)
Financing activities      
Proceeds from borrowings of debt 665,682 1,281,490 1,140,607
Proceeds from Term Loan B 1,149,751 0 0
Proceeds from issuance of senior notes 0 210,500 0
Proceeds from issuance of second lien notes 0 271,568 0
Proceeds from issuance of warrants 0 22,432 0
Payments of debt (1,242,606) (1,337,334) (947,696)
Payments for early redemption of second lien notes (309,000) 0 0
Payments of debt issuance costs (11,963) (22,570) (2,729)
Payments of purchase consideration included in acquisition-date fair value 1,205 358 3,282
Payments of withholding taxes in connection with equity awards (5,757) (41,709) (5,979)
Payments of finance lease obligations (8,000) (9,511) (17,063)
Purchase of noncontrolling interests (5,063) 0 (85,520)
Proceeds from sale of noncontrolling interest 0 0 57,046
Purchase of ordinary shares 0 (627,056) (55,567)
Proceeds from issuance of ordinary shares 2,280 6 3,403
Distribution to noncontrolling interest 4,747 3,955 3,375
Other financing activities (684) (1,758) 2,144
Net cash provided by (used in) financing activities 224,128 (258,255) 81,989
Effect of exchange rate changes on cash 2,969 (3,583) (1,866)
Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect, Total 138,002 9,742 (8,948)
Cash and cash equivalents at beginning of period 45,021 35,279 44,227
Cash and cash equivalents at end of period 183,023 45,021 35,279
Supplemental disclosures of cash flow information      
Interest 116,977 72,906 63,940
Income taxes 27,870 13,520 26,369
Capitalization of construction costs related to financing lease obligation (1)     13,448
Property and equipment acquired under finance leases 6,996 1,605 11,871
Amounts accrued related to business acquisitions $ 45,025 $ 2,289 $ 5,564