(1) A state attorney shall refer a person to the department for civil commitment proceedings if:(a) The state attorney receives an arrest alert on the person pursuant to s. 394.926(4); and (b) The person is subsequently sentenced to a term of imprisonment in a county or municipal jail for any criminal offense.
(2) A state attorney may refer a person to the department for civil commitment proceedings if the person:(a) Is required to register as a sexual offender pursuant to s. 943.0435; (b) Has previously been convicted of a sexually violent offense as defined in s. 394.912(9)(a)-(h); and (c) Has been sentenced to a term of imprisonment in a county or municipal jail for any criminal offense.
(3) A state attorney who refers a person for civil commitment pursuant to subsection (1) or subsection (2) shall notify the county or municipal jail to which the person has been sentenced within 24 hours after the referral is made.
(4)(a) If a person is sentenced to a term of imprisonment in a county or municipal jail but is not subsequently totally confined in the jail due to receiving credit for time served, the state attorney may file a petition with the circuit court within 120 hours after such person’s sentencing proceeding requesting the court to order such person into the department’s custody for purposes of initiating civil commitment proceedings.
(b) If the judge determines that there is probable cause to believe that the person should have been referred to the department pursuant to subsection (1) or subsection (2) but that the referral was not made because the person was not totally confined in a county or municipal jail due to receiving credit for time served, the judge shall order that the person be taken into custody and delivered to the custody of the department for civil commitment proceedings.