XML 58 R47.htm IDEA: XBRL DOCUMENT v3.24.2.u1
Notes Payable - Schedule of Notes Payable (Details) - USD ($)
$ in Thousands
Jun. 30, 2024
Dec. 31, 2023
Related Party    
Debt Instrument [Line Items]    
Unpaid Principal Balance $ 15,159 $ 9,760
Less: Related party notes payable (1,951) (542)
Less: Related party notes payable, current (15,159) (9,760)
Notes payable, less current portion 0 0
Nonrelated Party    
Debt Instrument [Line Items]    
Less: Related party notes payable, current (77,394) (91,150)
Notes payable, less current portion 0 0
Notes Payable    
Debt Instrument [Line Items]    
Unpaid Principal Balance 110,768 118,917
Fair Value Measurement Adjustments (21,717) (14,293)
Original Issue Discount and Proceeds Allocated to Warrants (9,706) (12,932)
Net Carrying Value 79,345 91,692
Notes Payable | Nonrelated Party    
Debt Instrument [Line Items]    
Unpaid Principal Balance 109,267  
Secured SPA Notes | Notes Payable    
Debt Instrument [Line Items]    
Unpaid Principal Balance 74,931 100,052
Fair Value Measurement Adjustments (25,011) (15,501)
Original Issue Discount and Proceeds Allocated to Warrants (7,205) (10,319)
Net Carrying Value $ 42,715 $ 74,232
Secured SPA Notes | Notes Payable | Minimum    
Debt Instrument [Line Items]    
Contractual Interest Rates 10.00% 10.00%
Secured SPA Notes | Notes Payable | Maximum    
Debt Instrument [Line Items]    
Contractual Interest Rates 15.00% 15.00%
Unsecured SPA Notes | Notes Payable    
Debt Instrument [Line Items]    
Unpaid Principal Balance $ 12,815 $ 13,885
Fair Value Measurement Adjustments 189 1,208
Original Issue Discount and Proceeds Allocated to Warrants (2,501) (2,613)
Net Carrying Value $ 10,503 $ 12,480
Unsecured SPA Notes | Notes Payable | Minimum    
Debt Instrument [Line Items]    
Contractual Interest Rates 10.00% 10.00%
Unsecured SPA Notes | Notes Payable | Maximum    
Debt Instrument [Line Items]    
Contractual Interest Rates 15.00% 15.00%
Unsecured Convertible Notes | Notes Payable    
Debt Instrument [Line Items]    
Contractual Interest Rates 4.27%  
Unpaid Principal Balance $ 18,080  
Fair Value Measurement Adjustments 3,105  
Original Issue Discount and Proceeds Allocated to Warrants 0  
Net Carrying Value $ 21,185  
Notes payable – China other | Notes Payable    
Debt Instrument [Line Items]    
Contractual Interest Rates 0.00% 0.00%
Unpaid Principal Balance $ 4,878 $ 4,898
Fair Value Measurement Adjustments 0  
Original Issue Discount and Proceeds Allocated to Warrants 0  
Net Carrying Value $ 4,878 $ 4,898
Auto loans | Notes Payable    
Debt Instrument [Line Items]    
Contractual Interest Rates 7.00% 7.00%
Unpaid Principal Balance $ 64 $ 82
Fair Value Measurement Adjustments 0  
Original Issue Discount and Proceeds Allocated to Warrants 0  
Net Carrying Value $ 64 $ 82