XML 24 R9.htm IDEA: XBRL DOCUMENT v3.22.4
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Cash flows from operating activities:      
Net loss $ (315,086) $ (193,369) $ (179,087)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation and amortization 61,608 53,454 52,279
Non-cash lease expense 20,155 9,708 5,328
Write-off of assets related to PPA IIIa and PPA IV 113,514 0 0
Revaluation of derivative contracts (9,583) 17,532 (497)
Stock-based compensation expense 112,259 73,274 73,893
Gain on remeasurement of investment 0 (1,966) 0
Contingent consideration remeasurement 0 (3,623) 0
Interest expense on interest rate swap settlement 0 (641) 0
Loss on extinguishment of debt 8,955 0 11,785
Amortization of warrants and debt issuance costs 3,032 3,797 6,455
Unrealized foreign currency exchange loss (gain) (3,267) 77 19
Other 3,532 0 4,346
Changes in operating assets and liabilities:      
Accounts receivable (162,864) 8,608 (61,702)
Contract assets (21,525) (21,874) 0
Inventories (124,878) (885) (33,004)
Deferred cost of revenue (24,282) 17,567 19,910
Customer financing receivable 2,510 5,428 5,159
Prepaid expenses and other current assets (17,590) 1,520 (3,124)
Other long-term assets (2,617) (2,854) 2,904
Operating lease right-of-use assets and operating lease liabilities 3,016 (12,953) (2,855)
Financing lease liabilities 896 1,142 0
Accounts payable 86,498 13,017 (622)
Accrued warranty 5,586 1,481 (241)
Accrued expenses and other current liabilities 43,243 (2,144) 17,753
Deferred revenue and customer deposits 35,156 (22,677) (12,972)
Other long-term liabilities (9,991) (4,300) (4,523)
Net cash used in operating activities (191,723) (60,681) (98,796)
Cash flows from investing activities:      
Purchase of property, plant and equipment (116,823) (49,810) (37,913)
Net cash acquired from step acquisition 0 3,114 0
Net cash used in investing activities (116,823) (46,696) (37,913)
Cash flows from financing activities:      
Proceeds from issuance of debt 0 135,989 300,000
Proceeds from issuance of debt to related parties 0 0 30,000
Repayment of debt of PPA IIIa and PPA IV (100,705) 0 0
Repayment of debt (19,881) (123,374) (176,522)
Repayment of debt - related parties 0 0 (2,105)
Make-whole payment related to PPA IIIa and PPA IV debt (6,553) 0 0
Debt issuance costs 0 (1,950) (13,247)
Proceeds from financing obligations 3,261 16,849 26,279
Repayment of financing obligations (35,543) (13,642) (10,756)
Contributions from noncontrolling interest 2,815 0 6,513
Distributions to redeemable noncontrolling interests 0 (49) (45)
Distributions and payments to noncontrolling interests (6,854) (5,789) (7,577)
Purchase of noncontrolling interest of PPA IV and PPA V (12,000) 0 0
Proceeds from issuance of common stock 15,279 89,790 23,491
Proceeds from issuance of redeemable convertible preferred stock, net 0 208,551 0
Proceeds from Class A common share offering 385,396 0 0
Public share offering costs (13,775) 0 0
Other (76) 0 0
Net cash provided by financing activities 211,364 306,375 176,031
Effect of exchange rate changes on cash, cash equivalent and restricted cash 434 (594) 0
Net (decrease) increase in cash, cash equivalents and restricted cash (96,748) 198,404 39,322
Beginning of period 615,114 416,710 377,388
End of period 518,366 615,114 416,710
Supplemental disclosure of cash flow information:      
Cash paid during the period for interest 48,980 68,739 71,651
Cash paid for amounts included in the measurement of lease liabilities:      
Operating cash flows from operating leases 14,001 17,416 2,855
Operating cash flows from financing leases 1,085 878 61
Cash paid during the period for income taxes 1,439 576 371
Non-cash investing and financing activities:      
Increase in recourse debt, non-current upon adoption of ASU 2020-06, net 0 121,491 0
Liabilities recorded for property, plant and equipment 10,988 6,095 7,175
Operating lease liabilities arising from obtaining right-of-use assets upon adoption of new lease guidance 0 0 39,775
Transfer from customer financing receivable to property, plant and equipment 42,758 0 0
Forward contract to purchase Class A Common Stock (Note 5) 4,183 0 0
Conversion of Series A Redeemable Convertible Preferred Stock to Class A Common Stock 208,551 0 0
Recognition of operating lease right-of-use asset during the year-to-date period 36,402 82,802 12,829
Recognition of financing lease right-of-use asset during the year-to-date period 896 2,210 385
Conversion of 10% convertible promissory notes into Class A common stock 0 0 252,797
Conversion of 10% convertible promissory notes to related party into Class A common stock 0 0 50,800
Accrued interest for notes 0 0 1,298
Adjustment of embedded derivative related to debt extinguishment $ 0 $ 0 $ 24,071