The heart wants what it wants… And Selena Gomez’s heart wants Justin Bieber and Orlando Bloom!

Even though it seemed like the 23-year-old reconciled with the Biebz, 21, when they were spotted together earlier this month, a source reveals she’s also been getting cozy with the 38-year-old Pirates of the Caribbean actor!

justin bieber

A friend of the starlet tells In Touch she spent all day with Justin and then all night with Orlando on July 11.

“Selena has quietly been seeing both of them,” the pal says.

“She was freaking out when the details of her day came out because she didn’t want Justin to know about Orlando, or vice versa. She really thought she was keeping it all a secret, but now everybody knows — including the guys!”

LISTEN: Selena Gomez Drops Her New Single, ‘Good For You’

The two men have a pretty dramatic history.

Last July, Orlando infamously punched Justin after the pop star allegedly bragged about sleeping with Orlando’s estranged wife, 32-year-old Miranda Kerr.

selena gomez miranda kerr

Now, the tables have turned — and another one of Sel’s friend predicts things are going to get ugly.

“Justin has a jealous side — especially when it comes to women,” the second friend says. “He’s been telling friends that if he sees Orlando out, he’s going to lose it on him.”

RELATED: Justin Bieber’s Pal Injured In Shark Attack!

The whole thing has been especially hard for Selena.

The second friend adds, “She’s very upset. This is all her fault and she knows she needs to start making smart life choices.”

For more on Selena’s love triangle, pick up the new issue of In Touch Weekly, on newsstands now!

For access to all our exclusive celebrity videos and interviews – Subscribe on YouTube!