(a)
When a minor is adjudged a ward of the court on the ground that he or she is a person described by Section 602, the court may order any of the types of treatment referred to in Section 727, and as an additional alternative, may commit the minor to a juvenile home, ranch, camp, or forestry camp. If there is no county juvenile home, ranch, camp, or forestry camp within the county, the court may commit the minor to the county juvenile hall.
(b)
When a ward described in subdivision (a) is placed under the supervision of the probation officer or committed to the care, custody, and control of the probation officer, the court may make any and all
reasonable orders for the conduct of the ward including the requirement that the ward go to work and earn money for the support of his or her dependents or to effect reparation and in either case that the ward keep an account of his or her earnings and report the same to the probation officer and apply these earnings as directed by the court. The court may impose and require any and all reasonable conditions that it may determine fitting and proper to the end that justice may be done and the reformation and rehabilitation of the ward enhanced.
(c)
When a ward described in subdivision (a) is placed under the supervision of the probation officer or committed to the care, custody, and control of the probation officer, and is required as a condition of probation to participate in community service or graffiti cleanup, the court may impose a
condition that if the minor unreasonably fails to attend or unreasonably leaves prior to completing the assigned daily hours of community service or graffiti cleanup, a law enforcement officer may take the minor into custody for the purpose of returning the minor to the site of the community service or graffiti cleanup.
(d)
When a minor is adjudged or continued as a ward of the court on the ground that he or she is a person described by Section 602 by reason of the commission of rape, sodomy, oral copulation, or an act of sexual penetration specified in Section 289 of the Penal Code, the court shall order the minor
to complete a sex offender treatment program, if the court determines, in consultation with the county probation officer, that suitable programs are available. In determining what type of treatment is appropriate, the court shall consider all of the following: the seriousness and circumstances
of the offense, the vulnerability of the victim, the minor’s criminal history and prior attempts at rehabilitation, the sophistication of the minor, the threat to public safety, the minor’s likelihood of reoffending, and any other relevant information presented. If ordered by the court to complete a sex offender treatment program, the minor shall pay all or a portion of the reasonable costs of the sex offender treatment program after a determination is made of the ability of the minor to pay.