XML 18 R8.htm IDEA: XBRL DOCUMENT v3.22.2.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Cash flows from operating activities:    
Net loss $ (264,304) $ (144,864)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 46,182 40,079
Non-cash lease expense 18,153 7,161
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 (9,640) 486
Stock-based compensation 81,460 57,309
Gain on remeasurement of investment 0 (1,966)
Loss on extinguishment of debt 4,233 0
Amortization of warrants and debt issuance costs 2,355 2,824
Unrealized foreign currency exchange loss 3,086 184
Other 3,487 0
Changes in operating assets and liabilities:    
Accounts receivable 15,758 34,236
Contract assets (567) (24,418)
Inventories (110,797) (39,953)
Deferred cost of revenue (8,856) 7,307
Customer financing receivable 2,510 4,022
Prepaid expenses and other current assets (15,766) 236
Other long-term assets (730) (374)
Operating lease right-of-use assets and operating lease liabilities 2,162 (7,593)
Finance lease liabilities 499 0
Accounts payable 38,642 37,795
Accrued warranty 1,597 (2,357)
Accrued expenses and other current liabilities 502 (26,178)
Deferred revenue and customer deposits (12,716) (53,181)
Other long-term liabilities (9,980) 1,289
Net cash used in operating activities (168,453) (107,956)
Cash flows from investing activities:    
Purchase of property, plant and equipment (80,907) (44,625)
Net cash acquired from step acquisition 0 3,114
Net cash used in investing activities (80,907) (41,511)
Cash flows from financing activities:    
Repayment of debt of PPA IIIa (30,212) 0
Repayment of debt (17,262) (11,017)
Debt make-whole payment related to PPA IIIa debt (2,413) 0
Proceeds from financing obligations 0 7,534
Repayment of financing obligations (28,821) (10,174)
Contributions from noncontrolling interest 2,815 0
Distributions to redeemable noncontrolling interests 0 (37)
Distributions and payments to noncontrolling interests (5,972) (5,285)
Proceeds from issuance of common stock 15,150 72,109
Proceeds from public share offering (Note 1) 385,396 0
Public share offering costs (Note 1) (13,407) 0
Other (63) 0
Net cash provided by financing activities 305,211 53,130
Effect of exchange rate changes on cash, cash equivalent and restricted cash (1,643) (472)
Net decrease in cash, cash equivalents and restricted cash 54,208 (96,809)
Beginning of period 615,114 416,710
End of period 669,322 319,901
Supplemental disclosure of cash flow information:    
Cash paid during the period for interest 39,664 42,598
Cash paid for amounts included in the measurement of lease liabilities:    
Operating cash flows from operating leases 11,759 10,332
Operating cash flows from finance leases 788 643
Cash paid during the period for income taxes 1,296 372
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
Forward to purchase Class A Common Stock (Note 5) 4,183 0
Liabilities recorded for property, plant and equipment, net 13,373 6,188
Recognition of operating lease right-of-use asset during the year-to-date period 17,623 43,660
Recognition of finance lease right-of-use asset during the year-to-date period $ 0 $ 1,961