XML 58 R48.htm IDEA: XBRL DOCUMENT v3.23.2
Notes Payable - Schedule of Notes Payable (Details) - USD ($)
$ in Thousands
Jun. 30, 2023
Dec. 31, 2022
Related Party    
Debt Outstanding [Abstract]    
Unpaid Principal Balance $ 16,555  
Notes payable, less current portion (7,777) $ 0
Notes payable, current portion (8,778) (8,964)
Nonrelated Party    
Debt Outstanding [Abstract]    
Notes payable, less current portion (61,875) (26,008)
Notes payable, current portion (4,905) $ (5,097)
Notes Payable    
Debt Outstanding [Abstract]    
Unpaid Principal Balance 107,783  
Secured SPA Notes, Various Contractual Maturity Dates | Notes Payable    
Debt Outstanding [Abstract]    
Unpaid Principal Balance 101,456  
Fair Value Measurement Adjustments (33,840)  
Original Issue Discount and Proceeds Allocated to Warrants (6,751)  
Net Carrying Value 60,865  
Secured SPA Notes Due on October 27, 2028 At 10.00% | Notes Payable    
Debt Outstanding [Abstract]    
Contractual Interest Rates   10.00%
Unpaid Principal Balance   $ 36,622
Fair Value Measurement Adjustments   264
Original Issue Discount and Proceeds Allocated to Warrants   (10,878)
Net Carrying Value   $ 26,008
Unsecured SPA Notes, Various Contractual Maturity Dates | Notes Payable    
Debt Outstanding [Abstract]    
Unpaid Principal Balance 11,379  
Fair Value Measurement Adjustments (575)  
Original Issue Discount and Proceeds Allocated to Warrants (2,017)  
Net Carrying Value $ 8,787  
Notes Payable, China Various Other, Due On Demand At 0.00% | Notes Payable    
Debt Outstanding [Abstract]    
Contractual Interest Rates 0.00% 0.00%
Unpaid Principal Balance $ 4,816 $ 4,997
Fair Value Measurement Adjustments 0 0
Original Issue Discount and Proceeds Allocated to Warrants 0 0
Net Carrying Value $ 4,816 $ 4,997
Auto Loans Due on October 26, 2026 At 7.00% | Notes Payable    
Debt Outstanding [Abstract]    
Contractual Interest Rates 7.00% 7.00%
Unpaid Principal Balance $ 89 $ 100
Fair Value Measurement Adjustments 0 0
Original Issue Discount and Proceeds Allocated to Warrants 0 0
Net Carrying Value 89 100
Existing Notes Payable Agreements With Third Parties | Notes Payable    
Debt Outstanding [Abstract]    
Unpaid Principal Balance 117,740 41,719
Fair Value Measurement Adjustments (34,415) 264
Original Issue Discount and Proceeds Allocated to Warrants (8,768) (10,878)
Net Carrying Value $ 74,557 $ 31,105
Minimum | Secured SPA Notes, Various Contractual Maturity Dates | Notes Payable    
Debt Outstanding [Abstract]    
Contractual Interest Rates 10.00%  
Minimum | Unsecured SPA Notes, Various Contractual Maturity Dates | Notes Payable    
Debt Outstanding [Abstract]    
Contractual Interest Rates 10.00%  
Maximum | Secured SPA Notes, Various Contractual Maturity Dates | Notes Payable    
Debt Outstanding [Abstract]    
Contractual Interest Rates 15.00%  
Maximum | Unsecured SPA Notes, Various Contractual Maturity Dates | Notes Payable    
Debt Outstanding [Abstract]    
Contractual Interest Rates 15.00%