Quarterly report pursuant to Section 13 or 15(d)

STOCKHOLDERS' EQUITY - Warrants (Details)

v3.22.2
STOCKHOLDERS' EQUITY - Warrants (Details)
$ / shares in Units, $ in Thousands
6 Months Ended 12 Months Ended
Feb. 24, 2020
$ / shares
shares
Jun. 30, 2022
USD ($)
D
$ / shares
shares
Jun. 30, 2021
USD ($)
Dec. 31, 2021
USD ($)
$ / shares
shares
Mar. 29, 2021
$ / shares
shares
Class of Warrant or Right [Line Items]          
Common stock par value (in dollars per share)   $ 0.0001   $ 0.0001  
Proceeds from Warrant Exercises | $     $ 170,665    
Divisional Factor for Conversion of Debt to Warrants $ 1.00        
Change in fair value of warrant liabilities | $     56,576    
Common Class A          
Class of Warrant or Right [Line Items]          
Common stock par value (in dollars per share)   0.0001      
Trine Warrants          
Class of Warrant or Right [Line Items]          
Share Price   10.00      
Exercise price $ 11.50 $ 11.50      
Warrant exercisable term   30 days      
Warrants and Rights Outstanding, Term   5 years      
Warrant redemption price   $ 0.01      
Debt Instrument, Convertible, Threshold Trading Days | D   20      
Debt Instrument, Convertible, Threshold Consecutive Trading Days | D   30      
Number of warrants exercised | shares       14,840,589  
Proceeds from Warrant Exercises | $       $ 170,700  
Class of Warrant or Rights, Redeemed | shares         166,905
Redemption Price Per Warrant         $ 0.01
Debt Conversion, Converted Instrument, Warrants or Options Issued | shares 1,500,000        
Trine Warrants | Common Class A          
Class of Warrant or Right [Line Items]          
Number of common stock purchased by each warrant | shares   1      
Common stock par value (in dollars per share)   $ 0.0001      
Trine Warrants | Warrants          
Class of Warrant or Right [Line Items]          
Number of common stock purchased by each warrant | shares   0.5      
Private Placement Warrants          
Class of Warrant or Right [Line Items]          
Number of common stock purchased by each warrant | shares   1      
Exercise price   $ 11.50      
Warrant redemption price   $ 1.00      
Warrants to purchase shares | shares   8,503,000      
Warrants and Rights Outstanding | $   $ 8,503      
Change in fair value of warrant liabilities | $   $ 0 $ 56,600    
Number of shares issued during the period up on exercise of warrants not settle-able in cash. | shares   5,850,346      
Minimum | Trine Warrants | Common Class A          
Class of Warrant or Right [Line Items]          
Share Price   $ 18.00