v3.22.2.2
NET INCOME (LOSS) PER SHARE - Schedule of Computation of EPS (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Numerator:        
Net (loss) income—basic $ (693) $ 17,660 $ 26,011 $ 47,110
ASU 2020-06 convertible notes if-converted method adjustment 0 0 3,112 0
Adjusted net (loss) income—diluted $ (693) $ 17,660 $ 29,123 $ 47,110
Denominator:        
Weighted average common shares outstanding - basic (in shares) 45,831 44,476 45,400 44,151
Computation of diluted securities:        
Dilutive effect of convertible debt securities (in shares) 0 0 0 51
Weighted average number of shares outstanding - diluted (in shares) 45,831 45,463 52,220 45,674
Net (loss) income per share:        
Basic net (loss) income per common share (in USD per share) $ (0.02) $ 0.40 $ 0.57 $ 1.07
Diluted net (loss) income per common share (in USD per share) $ (0.02) $ 0.39 $ 0.56 $ 1.03
Accounting Standards Update 2020-06        
Computation of diluted securities:        
Dilutive effect of convertible debt securities (in shares) 0 0 5,608 0
Employee Stock Option        
Computation of diluted securities:        
Dilutive effect of share based compensation arrangements (in shares) 0 827 937 1,132
Restricted Stock Units (RSUs)        
Computation of diluted securities:        
Dilutive effect of share based compensation arrangements (in shares) 0 160 272 337
Weighted average ESPP purchase options        
Computation of diluted securities:        
Dilutive effect of share based compensation arrangements (in shares) 0 0 3 3