XML 16 R6.htm IDEA: XBRL DOCUMENT v3.21.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended 12 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2021
Jun. 30, 2020
Dec. 31, 2020
Cash flows from operating activities          
Net loss     $ (51,151) $ (65,951)  
Adjustments to reconcile net loss to net cash used in operating activities          
Depreciation and amortization $ 1,149 $ 1,184 2,250 2,480  
Amortization of operating lease assets     1,838 1,666  
Stock-based compensation expense     20,271 18,572  
Amortization of premium (accretion of discount) on short-term investments     703 (41)  
Provision for doubtful accounts     (970) 1,967  
Write-down of inventory     3,037 3,278  
Loss on disposal of equipment       12  
Amortization of debt discount and issuance costs     8,376 6,206  
Unrealized (gains) losses on foreign currency transactions     2,006 (607)  
Changes in operating assets and liabilities          
Accounts receivable     13,111 23,750  
Inventories     (14,712) (3,553)  
Prepaid expenses and other current assets     (3,930) 3,740  
Other assets     (237) 1,863  
Accounts payable     14,193 3,223  
Accrued liabilities     (4,070) (16,858)  
Other long-term liabilities     (2,075) (1,751)  
Net cash used in operating activities     (11,360) (22,004) $ (1,200)
Cash flows from investing activities          
Purchases of short-term investments     (197,784) (237,017)  
Proceeds from maturity of short-term investments     488,851 123,884  
Repayment from (investment in) private company       7,500  
Purchases of property and equipment     (6,935) (1,993)  
Net cash provided by (used in) investing activities     284,132 (107,626)  
Cash flows from financing activities          
Proceeds from issuance of common stock in public offering, net       147,144  
Proceeds from issuance of convertible notes       189,750  
Convertible notes debt issuance costs       (6,105)  
Proceeds from issuance of warrants       34,933  
Purchase of convertible note hedges       (52,390)  
Repayment of convertible notes     (172,500)    
Minimum tax withholding paid on behalf of employees for net share settlement     (5,115) (2,738)  
Proceeds from issuance of common stock to employees     6,283 30,411  
Net cash provided by financing activities     (171,332) 341,005  
Effect of exchange rate changes on cash and cash equivalents     (20) (233)  
Net increase (decrease) in cash, cash equivalents and restricted cash     101,420 211,142  
Cash, cash equivalents and restricted cash          
Cash, cash equivalents and restricted cash at beginning of period     45,203 66,329 66,329
Cash, cash equivalents and restricted cash at end of period $ 146,623 $ 277,471 146,623 277,471 $ 45,203
Significant non-cash transactions          
Purchases of property and equipment in accounts payable     $ 1,446 $ 453