| RELATED PARTY BALANCES AND TRANSACTIONS - Additional Information (Detail) - USD ($) $ in Thousands | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019 | |
| Related Party Transaction [Line Items] | |||
| Revenue from related party | $ 4,500 | $ (12,014) | $ 1,002 | 
| Trade receivables from related party current | 420 | 1,146 | |
| Revenue to be recognized in the future non current related party | 3,864 | 3,473 | |
| Trade Accounts Receivable [Member] | |||
| Related Party Transaction [Line Items] | |||
| Trade receivables from related party current | $ 420 | $ 1,146 | |
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of receivables arising from transactions with related parties due within one year or the normal operating cycle, if longer. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of revenue, fees and commissions earned from transactions between (a) a parent company and its subsidiaries; (b) subsidiaries of a common parent; (c) an entity and trusts for the benefit of employees, for example, but not limited to, pension and profit-sharing trusts that are managed by or under the trusteeship of the entity's management; (d) an entity and its principal, owners, management, or members of their immediate families; and (e) affiliates. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Details 
 |