The sentence enforcement judge may grant the detainee permission to leave under mobile electronic surveillance for one or more days in order to maintain family ties or to prepare for the end of the detention period. This permission may be subject to one or more conditions and in particular the obligations set out in 2°, 3°, 9°, 13° and 14° of Article 132-45 of the Penal Code. The installation of the device provided for by Article R. 61-22 takes place one week before the execution of the leave of absence. The provisions set out in articles R. 61-21 to R. 61-31 are applicable, subject to the necessary adaptations resulting from the specific nature of the regime for detained persons.