A woman who dug her fingernails into the hand of a security guard had spiralled into heroin use after the sudden death of a second partner.
Lisa Griffin (33) turned to heroin to cope following the death of one partner to sudden adult death syndrome seven years ago.
She had managed to get clean, but relapsed last year after her fiance of five years died from a suspected heart condition.
Judge Anne Watkin ordered a probation report and adjourned sentencing to a date in April.
The defendant, of Cedar House, Marlborough Street, Dublin 1, admitted before Dun Laoghaire District Court to possession of stolen property and assaulting a security guard.
The incident took place on the bridge over Ballinteer Road, Dundrum, last October 18.
Sgt Peadar McCann said security staff in Dundrum Town Centre tracked a man and a woman who were acting suspiciously in Vodafone, where a pair of earphones were taken.
Sgt McCann said two security officers followed Griffin and a male accomplice on to Ballinteer Road.
Griffin turned to the security guards and told them: "Here's your stuff, I'm going now."
The court heard there was a struggle and Griffin started screaming "let me go" and tried to run away.
The security guards called for assistance.
The victim arrived at the scene and saw Griffin struggling with his two colleagues.
Sgt McCann said Griffin pinched the security guard, digging her fingernails into his right hand, breaking the skin and leaving him bleeding and sore.
The court heard Griffin had 11 previous convictions.
Defence lawyer Kim Moloney said Griffin's problems began when she became homeless after her family home burned down in 2010.
She was then traumatised by the death of her partner from sudden adult death syndrome in 2011, and her heroin problem spiralled.
The court heard Griffin had been doing well and was stabilised on methadone, but her fiance of five years died six months ago from a suspected heart problem and she started using heroin again.
She was still grieving that loss, the lawyer said.
Ms Moloney said Griffin's co-accused was now in custody and she was no longer hanging out with him. They pair had been using drugs together.