XML 17 R8.htm IDEA: XBRL DOCUMENT v3.24.0.1
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2023
Sep. 30, 2022
Cash flows from operating activities    
Net loss $ (105,600) $ (74,552)
Adjustments to reconcile net loss to net cash used in operating activities:    
Stock-based compensation 6,552 13,021
Depreciation and amortization 5,225 1,603
Amortization of contract acquisition costs 7,085 1,815
Amortization of debt issuance costs 1,670 917
Unrealized gain on foreign exchange forward 0 (292)
Deferred tax assets 62 152
Provision for credit losses 5,488 677
Loss on sale of property and equipment 0 86
Loss on extinguishment of convertible notes 0 34,423
Accretion of discount on investment securities and investment income, net 1,048 0
Changes in assets and liabilities:    
Accounts receivable (9,755) (5,104)
Inventories 1,781 (28,615)
Other current assets and prepaid expenses 4,352 (8,835)
Other long-term assets (5,642) (3,644)
Accounts payable (4,735) 20,442
Accrued liabilities (10,963) (3,684)
Operating leases, net (44) 46
Deferred revenue (390) 1,576
Net cash used in operating activities (103,866) (49,968)
Cash flows from investing activities    
Acquisition of property and equipment (30,642) (14,107)
Proceeds from maturities of marketable investments 193,903 47,000
Purchase of marketable investments (23,467) (252,282)
Net cash provided by (used in) investing activities 139,794 (219,389)
Cash flows from financing activities    
Proceeds from exercise of stock options and employee stock purchase plan 1,323 1,687
Taxes paid related to net share settlement of equity awards (3,273) (4,820)
Purchase of capped call 0 (31,671)
Payment of issuance costs of capped calls 0 (353)
Proceeds from issuance of convertible notes 0 240,000
Payment of issuance costs of convertible notes 0 (7,602)
Extinguishment of convertible notes 0 (45,777)
Payments on finance lease obligations (386) (391)
Net cash provided by (used in) financing activities (2,336) 151,073
Net increase (decrease) in cash, cash equivalents and restricted cash 33,592 (118,284)
Cash, cash equivalents, and restricted cash at beginning of period 146,624 164,864
Cash, cash equivalents, and restricted cash at end of period 180,216 46,580
Supplemental non-cash investing and financing activities:    
Assets acquired under finance lease 1,428 689
Assets acquired under operating lease 57 549
Transfer of inventory to property and equipment 0 12,180
Acquisition of property and equipment 6,503 5,843
Supplemental disclosure of cash flow information:    
Cash paid for interest 6,509 2,685
Cash paid for income taxes $ 1,160 $ 1,909