Business segments and geographic information - Schedule of Long-lived Assets by Geographic Areas (Details) - USD ($) $ in Thousands |
Dec. 30, 2022 |
Jun. 24, 2022 |
|---|---|---|
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | $ 302,282 | $ 292,277 |
| Thailand | ||
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | 253,287 | 240,750 |
| U.S. | ||
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | 25,937 | 25,938 |
| China | ||
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | 18,118 | 19,686 |
| Israel | ||
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | 3,361 | 4,025 |
| Others | ||
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | $ 1,579 | $ 1,878 |