In 2008, she was chosen to be his running mate – potentially just a heartbeat away from the presidency.

But now former Alaska Gov. Sarah Palin, like President Trump, has been left off the list of invitees to the funeral of the late US Sen. John McCain, according to multiple reports.

“My guess is, it came from Cindy,” a source close to the McCain family told People magazine, referring to the late senator’s widow. “She is very protective of John’s memory and legacy. She’s also a grieving widow. I think she wants to get through this as best she can.”

The message was sent through an intermediary, not directly from the McCain family, according to the report.

A decade ago, it was McCain’s selection of Palin to be his vice president that catapulted Palin to the national political spotlight from relative obscurity in Alaska.

But their relationship quickly grew strained amid accusations that Palin was often unprepared for media interviews or had “gone rogue” by ignoring the advice of McCain campaign handlers.

Some critics charged that Palin was more interested in advancing her own career – and popularity among conservative voters — than assuring the success of the McCain-Palin ticket, led by the more moderate McCain.

In May, McCain published a book titled “The Restless Wave,” in which he wrote that he regretted choosing Palin as his running mate instead of his close friend former US Sen. Joe Lieberman of Connecticut.

McCain and Palin ultimately lost the White House in 2008 to Barack Obama and Joe Biden.

Ironically, Biden is scheduled to speak Thursday at a McCain memorial service in the senator’s home state of Arizona, while Obama has been invited to deliver a eulogy Saturday at a McCain memorial service in Washington, DC.

Following McCain’s death from brain cancer last Saturday at age 81, Palin issued a pair of Twitter messages.

“Today we lost an American original,” she wrote. “Sen. John McCain was a maverick and a fighter, never afraid to stand for his beliefs. John never took the easy path in life – and through sacrifice and suffering he inspired others to serve something greater than self.”

Later, she wrote: “John McCain was my friend. I will remember the good times. My family and I send prayers for Cindy and the McCain family.”