XML 25 R8.htm IDEA: XBRL DOCUMENT v3.22.4
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Cash flows from operating activities:      
Net income (loss) $ 28,182 $ 13,254 $ (29,271)
Adjustments to reconcile net income to net cash provided by operating activities:      
Depreciation 12,260 12,546 11,737
Amortization of intangibles 0 507 3,970
Stock-based compensation 25,212 24,056 18,040
Amortization of convertible debt discount 1,171 6,308 7,058
Amortization of warrant 1,734 1,741 1,746
Foreign currency remeasurement (2,685) (5,126) 6,391
Loss on convertible debt extinguishment 0 0 1,362
Deferred income taxes, net 4,894 (6,197) (105)
Provision for expected credit losses and returns 1,954 4,142 1,666
Provision for excess and obsolete inventories 5,988 3,460 1,847
Gain on sale of investment in equity securities (4,370) 0 0
Other adjustments 513 181 409
Changes in operating assets and liabilities:      
Accounts receivable (23,136) (26,722) 21,186
Inventories (54,431) (39,338) (8,195)
Other assets (8,402) (3,096) 11,556
Accounts payable 5,837 42,303 (18,173)
Deferred revenues 2,610 15,014 19,751
Other liabilities 8,145 (2,016) (11,812)
Net cash provided by operating activities 5,476 41,017 39,163
Cash flows from investing activities:      
Proceeds from sale of investment 7,962 0 0
Purchases of property and equipment (9,250) (12,975) (32,205)
Net cash used in investing activities (1,288) (12,975) (32,205)
Cash flows from financing activities:      
Payment of convertible debt (37,707) 0 (7,999)
Payment of convertible debt issuance costs 0 0 (672)
Proceeds from other debts 3,499 3,861 9,398
Repayment of other debts (4,583) (6,169) (6,646)
Repurchase of common stock (5,133) 0 0
Proceeds from common stock issued to employees 7,092 12,311 5,472
Taxes paid related to net share settlement of equity awards (6,301) (2,064) (1,662)
Net cash provided by (used in) financing activities (43,133) 7,939 (2,109)
Effect of exchange rate changes on cash and cash equivalents (4,900) (1,195) 738
Net increase (decrease) in cash and cash equivalents (43,845) 34,786 5,587
Cash and cash equivalents, beginning of the year 133,431 98,645 93,058
Cash and cash equivalents, end of the year 89,586 133,431 98,645
Supplemental disclosure of cash flow information:      
Income tax payments (refunds), net 9,036 2,525 (17)
Interest payments, net 3,796 4,095 4,221
Supplemental schedule of non-cash investing and financing activities:      
Capital expenditures incurred but not yet paid 1,075 751 1,155
Fair value of 2022 Notes used to settle 2020 Notes $ 0 $ 0 $ 44,357