A teenage Palestinian girl on trial for slapping an Israeli soldier accepted a plea deal on Wednesday under which she will be sentenced to eight months in prison, Israel's Haaretz news website said.

Ahed Tamimi's lawyer was not immediately available to comment. The attorney told Reuters earlier that a plea bargain over the December incident, which turned Tamimi into a hero to Palestinians, had been offered by military prosecutors.

Her father said Tuesday he had visited his daughter and wife in an Israeli prison for the first time since they were both arrested in December.

Bassem Tamimi said he spoke to his wife and daughter for 45 minutes on Monday, using a telephone as they sat on the other side of a window. He said the Red Cross helped him obtain a permit to make two visits over a three-month period.

With files from The Associated Press