A teenage Palestinian girl who was filmed kicking and slapping an Israeli soldier in the occupied West Bank has accepted a plea deal under which she will be sentenced to eight months in prison, her lawyer said.
Ahed Tamimi, 17, became a hero to Palestinians after the 15 December incident outside her home in the village of Nabi Saleh was streamed live on Facebook by her mother.
The soldiers had deployed during a weekly Palestinian protest in the village against Israeli policy on settlements in the West Bank, one of the most heated issues in the Israeli-Palestinian conflict.
Ms Tamimi was 16 at the time of the offence.
Her trial began last month and she faced 12 charges, including aggravated assault.
Ms Tamimi, handcuffed and shackled, shouted to reporters in court: "No justice under occupation!"
Her attorney Gaby Lasky said that under the deal approved by the court, Ms Tamimi will plead guilty to a reduced charge sheet that includes assault and would be sentenced to eight months in jail and pay a fine.
The Israeli military confirmed the details of the deal.
Ms Lasky said the jail term included the time Ms Tamimi has spent in detention since her arrest in December.
Ms Tamimi's case drew global attention. Amnesty International called her the "Rosa Parks of Palestine", and the small courtroom was often packed with journalists, diplomats and international observers during hearings.
A group of American cultural figures, including actors Danny Glover and Rosario Dawson and novelist Alice Walker, signed a petition calling for her release and comparing her case to those of "the children of immigrants and communities of color who face police brutality in the United States".
Ms Tamimi's family are veterans of protests against an Israeli settlement near their home. An Israeli watchtower stands at the entrance to the village and there are often soldiers in the area.
Her mother, Nariman, and a cousin were also arrested.
Both have accepted plea bargains, a family lawyer said.
"When the European people see my daughter, blonde and blue-eyed, they are shaken, because they saw their children in front of them. It broke the stereotyped image of the Palestinian in the international community," Ms Tamimi's father, Bassem Tamimi said.
The images of Ms Tamimi striking the soldier had also made an impact on Israelis, who debated whether the officer should have hit back. The army said the soldier acted professionally by showing restraint but right-wing politicians described his behavior as humiliating.
"The honour of Israel's army cannot be trampled" Israeli Culture Minister Miri Regev said on her Facebook page after the incident. "We cannot have a situation in which soldiers are humiliated and hit and they do not act at that moment and arrest those who hurt them."
Palestinians want the West Bank for a future state, along with East Jerusalem and the Gaza Strip. Most countries consider as illegal the Israeli settlements built in the territory which Israel captured in the 1967 Middle East war.
Israel disputes that its settlements are illegal and says their future should be determined in peace talks with the Palestinians. Negotiations collapsed in 2014 and efforts by the White House to restart them have showed little progress.