| Schedule of segment reporting information | The following tables present the operating results of the Company’s segments: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | For the three months ended June 30, 2022 |  
|  |      | Cannabis |      | Accessories |      | Corporate |      | Other |      | Total |  
| Revenue |  | $ |  12,223 |  | $ |  35,084 |  | $ |  — |  | $ |  — |  | $ |  47,307 |  
| Inter-segment revenue |  |  |  — |  |  |  (252) |  |  |  — |  |  |  — |  |  |  (252) |  
| Net revenue |  | $ |  12,223 |  | $ |  34,832 |  | $ |  — |  | $ |  — |  | $ |  47,055 |  
| Share-based compensation |  |  |  — |  |  |  — |  |  |  525 |  |  |  261 |  |  |  786 |  
| Depreciation and amortization |  |  |  647 |  |  |  3,709 |  |  |  13 |  |  |  191 |  |  |  4,560 |  
| Wages and benefits |  |  |  1,719 |  |  |  1,252 |  |  |  3,364 |  |  |  — |  |  |  6,335 |  
| Impairment loss |  |  |  — |  |  |  6,669 |  |  |  — |  |  |  — |  |  |  6,669 |  
| Interest expense |  |  |  601 |  |  |  602 |  |  |  2,593 |  |  |  — |  |  |  3,796 |  
| Loan receivable losses |  |  |  — |  |  |  — |  |  |  504 |  |  |  — |  |  |  504 |  
| Net income (loss) |  |  |  (1,940) |  |  |  (11,048) |  |  |  6,103 |  |  |  (169) |  |  |  (7,054) |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | For the three months ended June 30, 2021 |  
|  |      | Cannabis |      | Accessories |      | Corporate |      | Other |      | Total |  
| Revenue |  | $ |  10,005 |  | $ |  38,841 |  | $ |  — |  | $ |  — |  | $ |  48,846 |  
| Inter-segment revenue |  |  |  — |  |  |  (377) |  |  |  — |  |  |  — |  |  |  (377) |  
| Net revenue |  | $ |  10,005 |  | $ |  38,464 |  | $ |  — |  | $ |  — |  | $ |  48,469 |  
| Share-based compensation |  |  |  — |  |  |  — |  |  |  675 |  |  |  — |  |  |  675 |  
| Depreciation and amortization |  |  |  541 |  |  |  3,676 |  |  |  17 |  |  |  166 |  |  |  4,400 |  
| Wages and benefits |  |  |  747 |  |  |  1,233 |  |  |  2,569 |  |  |  — |  |  |  4,549 |  
| Impairment loss |  |  |  — |  |  |  — |  |  |  — |  |  |  — |  |  |  — |  
| Interest expense |  |  |  57 |  |  |  41 |  |  |  2,222 |  |  |  — |  |  |  2,320 |  
| Loan losses |  |  |  — |  |  |  — |  |  |  — |  |  |  — |  |  |  — |  
| Net loss |  |  |  440 |  |  |  (1,619) |  |  |  2,242 |  |  |  (29) |  |  |  1,034 |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | For the six months ended June 30, 2022 |  
|  |      | Cannabis |      | Accessories |      | Corporate |      | Other |      | Total |  
| Revenue |  | $ |  23,482 |  | $ |  66,708 |  | $ |  — |  | $ |  — |  | $ |  90,190 |  
| Inter-segment revenue |  |  |  — |  |  |  (783) |  |  |  — |  |  |  — |  |  |  (783) |  
| Net revenue |  | $ |  23,482 |  | $ |  65,925 |  | $ |  — |  | $ |  — |  | $ |  89,407 |  
| Share-based compensation |  |  |  — |  |  |  — |  |  |  1,494 |  |  |  518 |  |  |  2,012 |  
| Depreciation and amortization |  |  |  1,295 |  |  |  7,409 |  |  |  27 |  |  |  387 |  |  |  9,118 |  
| Wages and benefits |  |  |  3,251 |  |  |  2,420 |  |  |  5,832 |  |  |  — |  |  |  11,503 |  
| Impairment loss |  |  |  697 |  |  |  6,669 |  |  |  — |  |  |  — |  |  |  7,366 |  
| Interest expense |  |  |  688 |  |  |  840 |  |  |  5,049 |  |  |  — |  |  |  6,577 |  
| Loan losses |  |  |  — |  |  |  — |  |  |  1,021 |  |  |  — |  |  |  1,021 |  
| Net loss |  |  |  (3,161) |  |  |  (15,749) |  |  |  723 |  |  |  (501) |  |  |  (18,688) |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | For the six months ended June 30, 2021 |  
|  |      | Cannabis |      | Accessories |      | Corporate |      | Other |      | Total |  
| Revenue |  | $ |  21,739 |  | $ |  74,142 |  | $ |  — |  | $ |  — |  | $ |  95,881 |  
| Inter-segment revenue |  |  |  — |  |  |  (595) |  |  |  — |  |  |  — |  |  |  (595) |  
| Net revenue |  | $ |  21,739 |  | $ |  73,547 |  | $ |  — |  | $ |  — |  | $ |  95,286 |  
| Share-based compensation |  |  |  — |  |  |  — |  |  |  1,557 |  |  |  — |  |  |  1,557 |  
| Depreciation and amortization |  |  |  1,101 |  |  |  7,343 |  |  |  67 |  |  |  321 |  |  |  8,832 |  
| Wages and benefits |  |  |  1,561 |  |  |  2,413 |  |  |  4,658 |  |  |  — |  |  |  8,632 |  
| Interest expense |  |  |  451 |  |  |  84 |  |  |  4,240 |  |  |  — |  |  |  4,775 |  
| Net income (loss) |  |  |  2,423 |  |  |  (3,182) |  |  |  (15,205) |  |  |  (59) |  |  |  (16,023) |  | 
| Schedule of revenue by geographic information | The following table presents financial information relating to geographic areas in which the Company operated for the three and six months ended June 30, 2022 and 2021, respectively:  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | For the three months ended June 30, 2022 |  
|  |  | US |  | Canada |  | Other |  | Total |  
| Revenue |  | $ |  43,370 |  | $ |  3,585 |  | $ |  100 |  | $ |  47,055 |  
| Gross profit |  |  |  9,963 |  |  |  940 |  |  |  42 |  |  |  10,945 |   
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | For the three months ended June 30, 2021 |  
|  |  | US |  | Canada |  | Other |  | Total |  
| Revenue |  | $ |  45,315 |  | $ |  3,087 |  | $ |  67 |  | $ |  48,469 |  
| Gross profit |  |  |  11,390 |  |  |  1,471 |  |  |  28 |  |  |  12,889 |    
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | For the six months ended June 30, 2022 |  
|  |  | US |  | Canada |  | Other |  | Total |  
| Revenue |  | $ |  83,277 |  | $ |  5,880 |  | $ |  250 |  | $ |  89,407 |  
| Gross profit |  |  |  18,590 |  |  |  1,609 |  |  |  99 |  |  |  20,298 |   
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | For the six months ended June 30, 2021 |  
|  |  | US |  | Canada |  | Other |  | Total |  
| Revenue |  | $ |  89,811 |  | $ |  5,326 |  | $ |  149 |  | $ |  95,286 |  
| Gross profit |  |  |  24,641 |  |  |  1,731 |  |  |  62 |  |  |  26,434 |  |