XML 32 R7.htm IDEA: XBRL DOCUMENT v3.22.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Cash flows from operating activities:    
Net loss $ (24,812) $ (51,514)
Less: Net income from discontinued operations 28,959 23,364
Adjustments to reconcile net loss to net cash used in operating activities:    
Stock-based compensation 10,870 13,693
Amortization of premium on investment debt securities 964 2,296
Amortization of deferred financing costs 1,601 1,356
Write-off of fixed assets 2,399  
Depreciation 411 1,661
Non-cash operating lease cost 1,219 2,386
Accretion of debt discount   13,877
Gain on extinguishment of debt (21)  
Gain on lease termination (1,101)  
Provision for allowance of credit losses, net of write-offs (7) 4
Changes in operating assets:    
Accounts receivable 828 550
Prepaid expenses and other current assets 4,845 788
Inventory 215 76
Security deposits 3,656 345
Changes in operating liabilities:    
Accounts payable, accrued expenses and other current liabilities (10,485) (28,635)
Operating lease liabilities (1,449) (3,350)
Interest payable 87  
Net cash used in operating activities - continuing operations (39,739) (69,831)
Net cash provided by operating activities - discontinued operations 34,353 20,028
Net cash used in operating activities (5,386) (49,803)
Cash flows from investing activities:    
Purchases of investment debt securities (239,422) (87,407)
Sales and maturities of investment debt securities 225,155 227,459
Purchases of equipment, leasehold improvements, and furniture and fixtures (531) (397)
Net cash (used in) provided by investing activities - continuing operations (14,798) 139,655
Net cash (used in) provided by investing activities - discontinued operations 0 0
Net cash (used in) provided by investing activities (14,798) 139,655
Cash flows from financing activities:    
Payments of employee withholding taxes related to stock-based awards (345) (1,325)
Proceeds from exercise of options, net   18
Payments for repurchases of convertible senior notes (3,862)  
Payments of debt issuance costs (35)  
Net cash used in financing activities - continuing operations (4,242) (1,307)
Net cash (used in) provided by financing activities - discontinued operations 0 0
Net cash used in financing activities (4,242) (1,307)
Effect of exchange rate changes on cash, cash equivalents and restricted cash (2,977) (522)
Net (decrease) increase in cash, cash equivalents and restricted cash (27,403) 88,023
Cash, cash equivalents and restricted cash at beginning of period 94,409 65,654
Cash, cash equivalents and restricted cash at end of period 67,006 153,677
Less: Cash, cash equivalents and restricted cash of discontinued operations 1,450 1,659
Cash, cash equivalents and restricted cash of continuing operations $ 65,556 $ 152,018