XML 16 R7.htm IDEA: XBRL DOCUMENT v3.23.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Cash flows from operating activities    
Net loss $ (56,660) $ (62,418)
Adjustments to reconcile net loss to net cash used in operating activities:    
Stock-based compensation 4,936 8,776
Depreciation and amortization 3,238 929
Amortization of contract acquisition costs 4,069 1,219
Amortization of debt issuance costs 1,109 517
Deferred tax assets 43 80
Provision for credit losses 2,514 409
Loss on sale of property and equipment 0 63
Loss on extinguishment of convertible notes 0 34,423
Non-cash interest income (1,995) 0
Changes in assets and liabilities:    
Accounts receivable (10,031) (1,108)
Inventories, net (5,040) (17,501)
Other current assets and prepaid expenses (878) (3,034)
Other long-term assets (4,782) (1,071)
Accounts payable (1,666) 14,771
Accrued liabilities (3,806) (6,878)
Operating leases, net (30) 36
Deferred revenue 649 702
Net cash used in operating activities (68,330) (30,085)
Cash flows from investing activities    
Acquisition of property and equipment (25,908) (8,238)
Proceeds from maturities of marketable investments 155,000 0
Purchase of marketable investments (23,467) (203,309)
Net cash provided by (used in) investing activities 105,625 (211,547)
Cash flows from financing activities    
Proceeds from exercise of stock options and employee stock purchase plan 858 1,440
Taxes paid related to net share settlement of equity awards (3,186) (4,234)
Purchase of capped call 0 (31,671)
Proceeds from issuance of convertible notes 0 240,000
Payment of issuance costs of convertible notes 0 (6,956)
Extinguishment of convertible notes 0 (45,777)
Payments on finance lease obligations (237) (284)
Net cash provided by (used in) financing activities (2,565) 152,518
Net increase (decrease) in cash, cash equivalents and restricted cash 34,730 (89,114)
Cash, cash equivalents, and restricted cash at beginning of period 146,624 164,864
Cash, cash equivalents, and restricted cash at end of period 181,354 75,750
Supplemental non-cash investing and financing activities:    
Assets acquired under finance lease 68 437
Assets acquired under operating lease 57 549
Transfer of inventory to property and equipment 0 12,180
Debt issuance costs accrued 0 646
Acquisition of property and equipment 6,301 0
Capped call costs accrued 0 353
Supplemental disclosure of cash flow information:    
Cash paid for interest 5,731 1,903
Cash paid for income taxes $ 483 $ 1,230