Rescue teams are searching for survivors as authorities warn people remain trapped in buildings after a deadly magnitude-7.7 earthquake struck off the coast of eastern Indonesia.At least 47 people are dead after the earthquake hit just before 5am local time on Saturday near Flores island, damaging houses and buildings including hospitals, clinics and places of worship, local authorities said. A second strong quake was recorded thousands of kilometres away on Sumatra island in the west of the archipelago nearly 16 hours later, but there were no initial reports of damage or casualties there.Rescuers have inspected heavily damaged buildings in Indonesia's earthquake-stricken East Nusa Tenggara province. (Reuters: Indonesian Search and Rescue Agency)The head of the National Disaster Management Agency, Lieutenant General Suharyanto, who like many Indonesians uses one name, said people were trapped in buildings by the Flores island earthquake."These will be the initial targets of the disaster response teams," he said, adding that two helicopters and a plane were being prepared to help rescue operations.Authorities in Sikka, one of the hardest-hit local government areas, told the ABC they were providing temporary shelters for people affected by the earthquake and were urging them to avoid damaged buildings.Makeshift tents have been established for patients receiving care following the earthquake. (AP: Firdia Lisnawati)Margaretha Movaldes da Maga Bapa, a secretary of Sikka's local government, said facilities including its hospital needed to be repaired as soon as possible so services could resume."We will build temporary tents for the patients," she said."We called for people to remain calm."They can return to their home but should avoid long activity inside the destroyed buildings and avoid staying in the coastal area."'Panic, confusion' as disaster hitJust moments after sunrise on Saturday, panic spread as local people and tourists at popular holiday destination Labuan Bajo in East Nusa Tenggara province felt the earthquake.Aci Fadillah, a resident of the coastal town, told the ABC she was woken by the earthquake and it caused parts of a nearby limestone hill to break off."There was a big shake in my room on the second floor," she said.While she decided not to evacuate her home, Ms Fadillah said she was worried there could be aftershocks, because she could feel minor tremors on Saturday afternoon."I think people need real-time updates from the geophysics agency. That would help to reassure us, because many of us are still on alert and worried."There are still many tourists who are staying here and continuing their holidays, but they seem worried too with the uncertainty."Guests at Hotel Jayakarta in Labuan Bajo evacuated the building following the earthquake. (Reuters)Local man Yasin, who goes by one name, told Indonesian media Detik he saw tourists starting to panic and become confused. "Guests from hotels were also rushing to go outside," he said."I was having coffee at my friend's house when I felt strong shaking that lasted for a few minutes, but it stopped soon after. Then there was another shock."Several local media outlets reported that strong shaking was felt across East Nusa Tenggara, West Nusa Tenggara and parts of South Sulawesi.The earthquake triggered a tsunami warning, with waves of less than one metre recorded in several areas in eastern Indonesia.Videos circulating on social media showed people moving to higher ground after the earthquake. (Reuters: Instagram / @s_ton.i)Indonesia's National Disaster Management Agency said more than 2,000 people had evacuated their homes and moved to safety.The governor of East Nusa Tenggara, Melki Laka Lena, said the northern Flores island was the "worst impacted" area.He said the death toll could grow as the local government continued to search for survivors under rubble.Mr Lena said his focus was to move people to safer areas and to distribute essential items."I've asked shops in the disaster area to distribute food to the victims, and the government will compensate them while we wait for aid distribution," he said.The magnitude-7.7 earthquake damaged buildings in East Nusa Tenggara, in Indonesia's east. (AFP: SELO)People, including children, occupied empty fields, including near school areas, while waiting for support.Others, such as the residents of Mbay village on the north coast of Flores island, reportedly evacuated to hills nearby.Indonesia's Meteorology, Climatology and Geophysics Agency said the earthquake was caused by movement along an active fault off the northern coast of Flores island."An active fault runs along the northern part of the island and it was also the cause of the 1992 earthquake," Arief Tyastama, the head of the Kupang Geophysics Station at the agency told reporters.Trauma for earthquake-stricken communitiesLocal organisations are providing psychological support to communities left traumatised by the strong earthquake and its aftershocks.Former Indonesian tourism ambassador Harisul Qiram told the ABC that 35 volunteers from youth organisation Ruang Aksi Millenial Indonesia were in a village at West Manggarai during the earthquake.While they had been visiting for a different program, Mr Qiram said they were now providing psychological support to local residents."We are trying to help ease their anxiety and emotional distress, particularly school students," he said."We have organised games and entertainment to help reduce the psychological impact after the earthquake."Mr Qiram said many people from the village feared further earthquakes and tsunami and were staying outdoors or had moved to the top of a hill."The village is just off the coast, and they're still worried if there's further earthquake or if the sea suddenly rose, God forbid."Local residents told news agency Reuters the earthquake had left them with trauma, recalling the series of earthquakes that struck the province in 2022.Siti Sulfia Fira said she and her family were still afraid to go home, worrying that there might be more tremors."The trauma is overwhelming," she said."The fear is there, the trauma is there. Even worse is we have small children at home. We're now evacuating with a baby in tow," she said, adding that the infant was less than two months old.A local initiative has urged travel content creators to participate in fundraising for disaster-affected communities through KitaBisa, an Indonesian online fundraising page."Amid the ongoing uncertainty, affected people need support to get through the emergency," the webpage said.It also said the most urgent needs were food, hygiene supplies and medicines.By Saturday evening, they had raised more than 200 million rupiah, or nearly $16,000.East Nusa Tenggara is home to the endangered komodo dragon, protected within Komodo National Park.The province also includes Labuan Bajo, a pristine fishing village that has seen a growing number of tourists in recent years and serves as a departure point to Komodo island.In a statement on Saturday, Indonesia's tourism ministry said cruise activities in Labuan Bajo could resume."However, tourist safety remains our top priority. We urge tourists, tour boat operators, and all residents in Labuan Bajo and Flores area to remain vigilant for possible aftershocks," it said.Local media reported that several resorts and four-star hotels in Labuan Bajo were "severely damaged", including Hotel Jayakarta, where two Chinese citizens were injured and admitted to hospital.