Quarterly report pursuant to Section 13 or 15(d)

CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS

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 $ (102,369) $ (367,216)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 26,965 25,602
Stockbased compensation 19,016 26,917
Goodwill impairment   229,500
Amortization (accretion) of discount on investments (484) 390
Amortization of deferred costs on convertible notes 365 39
Provision for bad debt 962 554
Loss on disposal of property and equipment 496 156
Net increase (decrease) in accrued interest related to marketable securities 238 917
Net unrealized (gain) loss on equity investment 148 5,080
Net unrealized (gain) loss on other investments   800
Deferred tax benefit (534) (2,188)
Change in fair value of contingent consideration 0 4
Foreign currency transaction (gain) loss 97 430
Changes in operating assets and liabilities:    
Accounts receivable (3,661) 8,250
Inventory (8,760) (25,384)
Prepaid expenses and other current assets (675) (2,994)
Other assets 1,595 1,117
Accounts payable (407) (2,767)
Accrued expenses and other current liabilities 1,097 (7,337)
Customer deposits (2,322) (1,412)
Deferred revenue (918) (70)
Change in right of use assets and lease liabilities, net (3,110) (1,467)
Other liabilities 1,767 30
Net cash used in operating activities (70,494) (111,049)
Cash flows from investing activities:    
Purchases of property and equipment (1,305) (6,747)
Proceeds from sale of property and equipment 9,942 6
Purchase of marketable securities (4,973) (126,771)
Proceeds from sales and maturities of marketable securities 107,719 177,150
Cash paid for acquisitions, net of cash acquired (500) (23)
Net cash provided by investing activities 110,883 43,615
Cash flows from financing activities:    
Proceeds from the exercise of stock options 1,157 1,266
Payment of taxes related to net share settlement upon vesting of restricted stock units (108) (191)
Repayment of loans (328) (231)
Proceeds from issuance of convertible notes   115,000
Costs incurred in connection with the issuance of convertible notes   (3,619)
Net cash provided by financing activities 721 112,225
Effect of exchange rate changes on cash, cash equivalents and restricted cash 73 (819)
Net increase (decrease) in cash, cash equivalents, and restricted cash 41,183 43,972
Cash, cash equivalents, and restricted cash at beginning of period 81,913 68,258
Cash, cash equivalents, and restricted cash at end of period 123,096 112,230
Supplemental disclosures of cash flow information    
Cash and cash equivalents 121,660 107,966
Restricted cash included in other current assets 824 3,152
Restricted cash included in other noncurrent assets 612 1,112
Total cash, cash equivalents and restricted cash shown in the condensed consolidated statements of cash flows 123,096 112,230
Noncash investing and financing activities:    
Net unrealized (gain) loss on investments (337) 29
Common Stock issued for settlement of contingent consideration 797 500
Deferred contract costs   1,341
Additions to right of use assets and lease liabilities 8,489 7,784
Purchase of property and equipment included in accounts payable 365 1,022
Purchase of property and equipment included in accrued expense 32  
Transfers from property and equipment to inventory 841 1,954
Transfers from inventory to property and equipment $ 1,345 $ 1,531