XML 58 R43.htm IDEA: XBRL DOCUMENT
v3.22.1

Net (Loss) Income Per Share Attributable to Common Stockholders (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Earnings Per Share [Abstract] |
Schedule of Earnings Per Share, Basic and Diluted | The following table shows the computation of basic and diluted net (loss) income per share attributable to common stockholders (in thousands, except per share amounts):
| Year Ended December 31,
| 2021 |  | 2020 |  | 2019
Numerator: |  |  |  |  |
Net (loss) income | $ | (108,664) |  |  | $ | 9,896 |  |  | $ | 7,443 |
Less: amounts attributable to redeemable convertible preferred stock | — |  |  | (2,673) |  |  | (2,021) |
Net (loss) income attributable to common stockholders—basic | (108,664) |  |  | 7,223 |  |  | 5,422 |
Add: undistributed earnings reallocated to common stockholders | — |  |  | 39 |  |  | 54 |
Net (loss) income attributable to common stockholders—diluted | $ | (108,664) |  |  | $ | 7,262 |  |  | $ | 5,476 |
Denominator: |  |  |  |  |
Weighted-average common stock used in computing net (loss) income per share attributable to common stockholders—basic | 161,424 |  |  | 124,709 |  |  | 123,826 |
Effect of potentially dilutive securities: |  |  |  |  |
Stock options | — |  |  | 2,444 |  |  | 4,161 |
Restricted stock units | — |  |  | 106 |  |  | 559 |
Weighted-average common stock used in computing net (loss) income per share attributable to common stockholders—diluted | 161,424 |  |  | 127,259 |  |  | 128,546 |
Net (loss) income per share attributable to common stockholders—basic and diluted | $ | (0.67) |  |  | $ | 0.06 |  |  | $ | 0.04 |
Net (loss) income per share attributable to common stockholders—diluted | $ | (0.67) |  |  | $ | 0.06 |  |  | $ | 0.04 |
Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share | The following table presents the number of options, RSUs and restricted stock excluded from the calculation of diluted net (loss) income per share attributable to common stockholders because they are anti-dilutive (in thousands):
| As of December 31,
| 2021 |  | 2020 |  | 2019
Options to purchase common stock | 15,274 |  |  | 12,529 |  |  | 7,256 |
Restricted stock units | 3,577 |  |  | 2,235 |  |  | 884 |
Employee stock purchase plan | 96 |  |  | — |  |  | — |
Restricted stock | 50 |  |  | 100 |  |  | 200 |
Total | 18,997 |  |  | 14,864 |  |  | 8,340 |

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration