A pregnant woman who moved from Westchester to Israel five years ago was shot and seriously wounded by a Palestinian gunman while she was celebrating her brother’s wedding in a Jewish settlement on the West Bank.

Although Dalit Rand was hit at least five times in the weekend attack, her baby miraculously escaped injury, friends here told The Post yesterday.

Dalit and her American-born husband, Yakov, both 23, had gathered with other relatives in Har Bracha, a 60-family settlement near Nablus, to celebrate the marriage of her brother Maor Cayam, friends said.

They were leaving the settlement’s synagogue at 8:30 p.m. Saturday when bullets started flying.

A Palestinian terrorist had used wire cutters to break through a security fence surrounding the settlement, and opened fire when he spotted the couple, authorities said.

Dalit was hit five or six times, and her husband was hit twice when he tried to protect her with his body.

The attack ended when the gunman was shot and killed by a member of the community.

The terrorist was identified as Yousef Attalah, 22, from the Balata refugee camp in Nablus.

Dalit, who was hit in the lung, shoulder, thigh and ear, was in serious but stable condition at a hospital. She may require surgery to remove shrapnel, according to childhood friend Sharon Schechter of The Bronx.

Yakov was hit in the back and leg and was in fair condition.

Dalit – whose maiden name is Comet-Murciano – grew up in New Rochelle.

In 1997, after graduating from Ramaz HS in Manhattan, she moved to Israel and settled in Jerusalem with her parents, two sisters and two brothers.

She has been attending medical school in Jerusalem, following in the footsteps of her father, Dr. Robert Comet-Murciano, a respected pediatrician who practiced in The Bronx before the family moved to Israel.

Dalit – who met Yakov, a law student, on a blind date – had been the first of four siblings to wed over the past 14 months.

Schechter said she was “shaking and crying and in complete shock” when she learned her friend had been shot.

But, she noted, “I knew it was only a matter of time before someone I knew in Israel was a victim of one of these attacks. I knew it would happen to someone I loved.”

She described her friend as “very warm, bubbly, energetic” and “a great person.”

She said she and Dalit had discussed the dangers of living in Israel.

“She told me she took a bulletproof vest with her whenever she went someplace she considered dangerous. She said she was going on with her life, she couldn’t live in fear,” Schechter said.

“It was scary, but she said they had to continue. They were having a baby – life goes on.”

The move to Israel was a family decision, she noted.

“They had been wanting to go for a while. It was where they felt they belonged,” Schechter said.

She added that all their friends have been in touch and saying special prayers for Dalit and her husband.

“They’re very loved,” she said.

Family members changed their surname from Comet-Murciano to Cayam after moving to Israel.