XML 31 R7.htm IDEA: XBRL DOCUMENT v3.20.4
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Cash flows from operating activities:      
Net loss $ (179,087) $ (323,466) $ (291,276)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization 52,279 78,584 53,887
Non-Cash Lease Expense 5,328    
Write-off of property, plant and equipment, net 38 3,117 939
Impairment of equity method investment 4,236 11,302 0
Write-off of PPA II and PPA IIIb decommissioned assets 0 70,543 0
Debt make-whole expense 0 5,934 0
Revaluation of derivative contracts (497) 2,779 29,021
Stock-based compensation 73,893 196,291 168,482
Loss on long-term REC purchase contract 72 53 200
Revaluation of stock warrants 0 0 (9,108)
Loss on extinguishment of debt 11,785 0 0
Amortization of debt issuance and premium cost, net 6,455 22,130 25,437
Changes in operating assets and liabilities:      
Accounts receivable (61,685) 51,952 (55,023)
Inventories (33,004) 18,425 (36,974)
Deferred cost of revenue 19,910 (21,992) 14,223
Customer financing receivable and other 5,159 5,520 4,878
Prepaid expenses and other current assets (3,124) 8,643 (8,032)
Other long-term assets 2,904 3,618 (202)
Accounts payable (620) (11,310) 18,307
Accrued warranty (241) (6,603) 1,498
Accrued expenses and other current liabilities 17,753 6,728 (5,984)
Deferred revenue and customer deposits (12,972) 37,146 (21,774)
Operating lease liabilities (2,855) 0 0
Other long-term liabilities (4,523) 4,376 19,553
Net cash provided by (used in) operating activities (98,796) 163,770 (91,948)
Cash flows from investing activities:      
Purchase of property, plant and equipment (37,913) (51,053) (45,205)
Payments for acquisition of intangible assets 0 0 (3,256)
Purchase of marketable securities 0 0 (103,914)
Proceeds from maturity of marketable securities 0 104,500 27,000
Net cash provided by (used in) investing activities (37,913) 53,447 (125,375)
Cash flows from financing activities:      
Proceeds from issuance of debt 300,000 0 0
Proceeds from issuance of debt to related parties 30,000 0 0
Repayment of debt (176,522) (119,277) (18,770)
Repayment of debt to related parties (2,105) (2,200) (1,390)
Debt make-whole payment 0 (5,934) 0
Debt issuance costs (13,247) 0 0
Proceeds from financing obligations 26,279 72,334 70,265
Repayment of financing obligations (10,756) (8,954) (6,188)
Contribution from noncontrolling interest 6,513 0 0
Payments to noncontrolling and redeemable noncontrolling interests 0 (56,459) 0
Distributions to noncontrolling and redeemable noncontrolling interests (7,622) (12,537) (15,250)
Proceeds from issuance of common stock 23,491 12,713 1,521
Proceeds from public offerings, net of underwriting discounts and commissions 0 0 292,529
Payments of initial public offering issuance costs 0 0 (5,521)
Net cash provided by (used in) financing activities 176,031 (120,314) 317,196
Net increase in cash, cash equivalents, and restricted cash 39,322 96,903 99,873
Beginning of period 377,388 280,485 180,612
End of period 416,710 377,388 280,485
Supplemental disclosure of cash flow information:      
Cash paid during the period for interest 71,651 69,851 59,549
Operating cash flows from operating leases 2,855 0 0
Operating cash flows from financing leases 16 0 0
Financing cash flows from financing leases 45 0 0
Cash paid during the period for income taxes 371 860 1,748
Non-cash investing and financing activities:      
Liabilities recorded for property, plant and equipment 7,175 1,745 12,236
Operating lease liabilities arising from obtaining right-of-use assets upon adoption of new lease guidance 39,775    
Recognition of operating lease right-of-use asset during the year 12,829    
Recognition of financing lease right-of-use asset during the year 385    
Liabilities recorded for noncontrolling and redeemable noncontrolling interest 0 0 3,180
Reclassification of redeemable convertible preferred stock warrant liability to additional paid-in capital 0 0 882
Conversion of redeemable convertible preferred stock into additional paid-in capital 0 0 1,465,841
Conversion of 6% and 8% convertible promissory notes into additional paid-in capital to related parties 0 6,933 40,110
Conversion of 10% convertible promissory notes to related party into Class A common stock 50,800 0 0
Reclassification of derivative liability into additional paid-in capital 0 0 177,208
Reclassification of prior year prepaid initial public offering costs to additional paid-in capital 0 0 4,732
Accrued distributions to equity investors 0 373 576
Accrued interest for notes 1,298 1,812 19,041
Accrued interest for notes to related parties 0 0 2,733
Adjustment of embedded derivative related to debt extinguishment 24,071 0 0
Convertible Promissory Notes, Interest Rate at 8% | Convertible promissory notes      
Non-cash investing and financing activities:      
Conversion of convertible promissory note into equity 0 0 181,469
Convertible Promissory Notes Interest Rate 10% Due December 2021 | Convertible promissory notes      
Non-cash investing and financing activities:      
Conversion of convertible promissory note into equity $ 252,797 $ 0 $ 0