XML 37 R8.htm IDEA: XBRL DOCUMENT v3.23.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Jun. 30, 2021
Operating activities      
Net loss $ (185,715) $ (50,570) $ (82,457)
Adjustments to reconcile net loss to net cash provided by operating activities      
Depreciation and amortization 162,428 175,681 173,212
Share-based compensation expense 42,122 49,766 37,034
Impairment of goodwill 5,609 0 0
Impairment of long-lived assets 0 0 19,882
Deferred taxes 114,912 22,879 (10,284)
(Gain) loss on early extinguishment of debt 6,764 0 (48,343)
Unrealized loss (gain) on derivatives not designated as hedging instruments included in net loss 34,393 (40,408) 17,323
Effect of exchange rate changes on monetary assets and liabilities denominated in non-functional currency (11,988) 537 240
Other non-cash items 13,235 (13,704) (7,041)
Changes in operating assets and liabilities, net of effects of businesses acquired:      
Accounts receivable (4,243) (18,119) (11,474)
Inventory 11,352 (44,089) 16,382
Prepaid expenses and other assets 1,768 (5,989) (2,606)
Accounts payable (28,872) 109,977 29,367
Accrued expenses and other liabilities (17,948) 33,575 23,218
Net cash provided by operating activities 130,289 219,536 265,221
Investing activities      
Purchases of property, plant and equipment (53,772) (54,040) (38,524)
Proceeds from the sale of subsidiaries, net of transaction costs and cash divested (4,130) 0 0
Business acquisitions, net of cash acquired 498 75,258 53,410
Capitalization of software and website development costs (57,787) (65,297) (60,937)
Proceeds from the sale of assets 4,659 37,771 5,696
Purchases of marketable securities 84,030   203,581
Proceeds from maturity of held-to-maturity investments 92,110 151,200  
Proceeds from (payments for) the settlement of derivatives designated as hedging instruments 0 (2,244) (3,291)
Other investing activities (277) (617) (269)
Net cash used in investing activities (103,725) (3,997) (354,316)
Financing activities      
Proceeds from borrowings of debt 48,264 0 665,682
Proceeds from Term Loan B 0 0 1,149,751
Payments of debt (61,310) (14,510) (1,242,606)
Payment for early redemption of senior notes (44,994) 0 (309,000)
Payments of debt issuance costs (51) (1,444) (11,963)
Payments of purchase consideration included in acquisition-date fair value 7,100 43,647 1,205
Payments of withholding taxes in connection with equity awards (4,448) (3,219) (5,757)
Payments of finance lease obligations (8,290) (37,512) (8,000)
Purchase of noncontrolling interests 95,567 2,165 5,063
Proceeds (payments) from issuance of ordinary shares 327   2,280
Distributions to noncontrolling interests 3,652 3,963 4,747
Other financing activities (285) (112) (684)
Net cash (used in) provided by financing activities (177,106) (106,572) 224,128
Effect of exchange rate changes on cash 3,802 (14,937) 2,969
Net (decrease) increase in cash and cash equivalents (146,740) 94,030 138,002
Cash and cash equivalents at beginning of period (277,053) (183,023) (45,021)
Cash and cash equivalents at end of period (130,313) (277,053) (183,023)
Supplemental Cash Flow Elements [Abstract]      
Interest Paid, Excluding Capitalized Interest, Operating Activities 113,952 98,099 116,977
Income Taxes Paid 31,184 32,987 27,870
Interest Received, Operating Activities 11,451 3,230 1,940
Payments to Acquire Equipment on Lease 20,303 7,033 6,996
Capital Expenditures Incurred but Not yet Paid 9,403 12,810 4,462
Capitalized Software Development Costs Incurred but Not yet Paid 185 124 2,830
Amounts accrued related to business acquisitions $ 0 $ 8,425 $ 45,025