XML 33 R8.htm IDEA: XBRL DOCUMENT v3.22.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Jun. 30, 2020
Operating activities      
Net (loss) income $ (50,570) $ (82,457) $ 83,995
Adjustments to reconcile net (loss) income to net cash provided by operating activities:      
Depreciation and amortization 175,681 173,212 167,943
Impairment of goodwill 0 0 100,842
Share-based compensation expense 49,766 37,034 34,874
Impairment of long-lived assets 0 19,882  
Deferred taxes 22,879 (10,284) (106,864)
Loss on early extinguishment of debt 0 48,343 0
Unrealized (gain) loss on derivatives not designated as hedging instruments included in net (loss) income (40,408) 17,323 7,731
Effect of exchange rate changes on monetary assets and liabilities denominated in non-functional currency 537 240 (802)
Other non-cash items (13,704) 7,041 (11,229)
Changes in operating assets and liabilities, net of effects of businesses acquired:      
Accounts receivable (18,119) (11,474) 26,659
Inventory (44,089) 16,382 (18,328)
Prepaid expenses and other assets (5,989) (2,606) 11,946
Accounts payable 109,977 29,367 (17,547)
Accrued expenses and other liabilities 33,575 23,218 36,766
Net cash provided by operating activities 219,536 265,221 338,444
Investing activities      
Purchases of property, plant and equipment (54,040) (38,524) (50,467)
Proceeds from the sale of subsidiaries, net of transaction costs and cash divested 0 0 (1,124)
Business acquisitions, net of cash acquired (75,258) (53,410) (4,272)
Capitalization of software and website development costs (65,297) (60,937) (43,992)
Proceeds from the sale of assets 37,771 5,696 1,644
Proceeds from maturity of held-to-maturity investments 151,200    
Payments for settlement of derivatives designated as hedging instruments (2,244) (3,291) (29,791)
Other investing activities (617) (269) 1,556
Net cash used in investing activities (3,997) (354,316) (66,864)
Financing activities      
Proceeds from borrowings of debt 0 665,682 1,281,490
Proceeds from Term Loan B 0 1,149,751 0
Proceeds from issuance of senior notes 0 0 210,500
Proceeds from issuance of 12% Senior Secured Notes due 2025 0 0 271,568
Payments of early redemption fees for senior notes 0 (309,000) 0
Proceeds from issuance of warrants 0 0 22,432
Payments of debt (14,510) (1,242,606) (1,337,334)
Payments of debt issuance costs (1,444) (11,963) (22,570)
Payments of purchase consideration included in acquisition-date fair value 43,647 1,205 358
Payments of withholding taxes in connection with equity awards (3,219) (5,757) (41,709)
Payments of finance lease obligations (37,512) (8,000) (9,511)
Purchase of noncontrolling interests 2,165 5,063 0
Purchase of ordinary shares 0 0 627,056
Proceeds from issuance of ordinary shares 0 (2,280) (6)
Distribution to noncontrolling interest 3,963 4,747 3,955
Other financing activities (112) (684) (1,758)
Net cash (used in) provided by financing activities (106,572) 224,128 (258,255)
Effect of exchange rate changes on cash (14,937) 2,969 (3,583)
Net increase in cash and cash equivalents 94,030 138,002 9,742
Cash and cash equivalents at beginning of period (183,023) (45,021) (35,279)
Cash and cash equivalents at end of period (277,053) (183,023) (45,021)
Supplemental disclosures of cash flow information      
Interest 98,099 116,977 72,906
Income taxes 32,987 27,870 13,520
Property and equipment acquired under finance leases 7,033 6,996 1,605
Amounts accrued related to property, plant and equipment 12,810 4,462 8,371
Amounts accrued related to capitalized software development costs 124 2,830 0
Amounts accrued related to business acquisitions $ 8,425 $ 45,025 $ 2,289