XML 19 R8.htm IDEA: XBRL DOCUMENT v3.22.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Cash flows from operating activities:    
Net loss $ (203,912) $ (88,202)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 30,697 26,808
Non-cash lease expense 8,800 4,520
Gain on sale of property, plant and equipment (523) 0
Write-off of assets related to PPA IIIa 44,800 0
Revaluation of derivative liabilities 1,680 462
Stock-based compensation 57,774 36,343
Loss on extinguishment of debt 4,233 0
Amortization of warrants and debt issuance costs 1,651 1,900
Other 3,487 0
Changes in operating assets and liabilities:    
Accounts receivable 9,817 41,718
Contract assets (8,173) (15,311)
Inventories (62,824) (21,026)
Deferred cost of revenue (8,995) 4,984
Customer financing receivable 2,510 2,636
Prepaid expenses and other assets (5,813) 6,246
Operating lease right-of-use assets and operating lease liabilities 2,422 (5,140)
Finance lease liabilities 48 0
Accounts payable 51,982 29,449
Accrued expenses and other liabilities (18,017) (17,261)
Deferred revenue and customer deposits (10,158) (43,428)
Net cash used in operating activities (98,514) (35,302)
Cash flows from investing activities:    
Purchase of property, plant and equipment (44,728) (34,460)
Net cash used in investing activities (44,728) (34,460)
Cash flows from financing activities:    
Repayment of debt of PPA IIIa (30,212) 0
Repayment of debt (10,729) (7,838)
Debt make-whole payment related to PPA IIIa debt (2,413) 0
Proceeds from financing obligations 0 7,123
Repayment of financing obligations (16,475) (6,387)
Distributions to redeemable noncontrolling interests 0 (17)
Distributions to noncontrolling interests (4,415) (4,745)
Proceeds from issuance of common stock 5,981 65,668
Proceeds from exercise of options 1,317 0
Net cash (used in) provided by financing activities (56,946) 53,804
Effect of exchange rate changes on cash, cash equivalent and restricted cash (747) (224)
Net decrease in cash, cash equivalents and restricted cash (200,935) (16,182)
Beginning of period 615,114 416,710
End of period 414,179 400,528
Supplemental disclosure of cash flow information:    
Cash paid during the period for interest 25,938 27,219
Cash paid for amounts included in the measurement of lease liabilities:    
Operating cash flows from operating leases 4,387 6,132
Operating cash flows from finance leases 462 259
Cash paid during the period for income taxes 982 185
Non-cash investing and financing activities:    
Transfer of customer financing receivable to property, plant and equipment, net 42,758 0
Increase in recourse debt, non-current upon adoption of ASU 2020-06, net 0 121,491
Liabilities recorded for property, plant and equipment, net 15,988 11
Recognition of operating lease right-of-use asset during the year-to-date period 11,192 40,762
Recognition of finance lease right-of-use asset during the year-to-date period $ 0 $ 1,335