Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Cash flows from operating activities:    
Net loss $ (26,948) $ (32,470)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 2,792 2,502
Provision for doubtful accounts 477 758
Provision for inventory obsolescence 93 1,512
Share-based compensation 7,377 4,534
Loss from disposal of property and equipment 133 152
Unrealized foreign currency loss, net 3,317 5,043
Amortization of right-to-use asset 305 256
Change in fair value of derivative instruments (546) (442)
Change in fair value of contingent consideration 0 (304)
Amortization of debt discount 1,512 1,232
Changes in operating assets and liabilities:    
Accounts receivable (6,795) 3,291
Inventory (5,289) (1,722)
Prepaid expenses and other current assets (3,320) 1,043
Other assets 204 (30)
Accounts payable 660 (3,267)
Accrued liabilities 6,828 1,725
Operating lease liabilities (309) (218)
Other liabilities (314) 461
Net cash used in operating activities (19,823) (15,944)
Cash flows from investing activities:    
Purchases of property and equipment (2,667) (2,136)
Cash used in asset acquisitions (434) (1,652)
Cost incurred for intangible assets (447) (647)
Net cash used in investing activities (3,548) (4,435)
Cash flows from financing activities:    
Repayments on finance leases (163) (224)
Proceeds from issuance of ordinary shares, net of issuance costs 0 63,855
Proceeds from stock option exercises 4,096 566
Tax payments related to shares withheld upon vesting of restricted stock (88) (65)
Net cash provided by financing activities 3,845 64,132
Effect of exchange rate changes on cash (374) 23
Net (decrease)/increase in cash (19,900) 43,776
Cash at beginning of period 84,523 37,655
Cash at end of period 64,623 81,431
Supplemental disclosures:    
Cash paid for interest 5,182 5,213
Cash paid for income taxes 429 2
Supplemental disclosures of non-cash investing and financing activities:    
Unpaid balance for property and equipment 34 252
Issuance of common stock, net of underwriters’ discount and issuance costs 0 618
Inventory acquired in an asset acquisition 0 1,009
Intangible assets acquired in an asset acquisition 0 138
Consideration payable related to asset acquisition 412 818
Cashless option exercises $ 1,640 $ 0