1import{a as k,_ as D}from"./Footer.Di9fgfvH.js";import{_ as F}from"./AdsCard.BbXES6xK.js";import{S as N,_ as S}from"./SearchCard.C_ogqE2V.js";import{_ as C}from"./CardHeader.CgzZWIxA.js";import{_ as E}from"./Spotlight.AxjRWN7E.js";import{r as l,D as R,E as B,g as $,c as s,b as o,a as t,t as H,F as u,m as I,h as L,o as a}from"./entry.kAWBoaet.js";import{s as T}from"./spotlight.D1_8dA-a.js";import"./nuxt-link.BjA7-0dx.js";import"./logo.DvBKQaXg.js";import"./glossary.BjP3h-vJ.js";import"./dateFormat.B8EODN1w.js";const V={class:"mx-auto mt-40"},j={class:"container m-auto"},q={key:0,class:"grid grid-cols-3 gap-4 w-full mb-14"},A={key:1},J={class:"flex gap-6 m-auto lg:flex-row flex-col"},M={class:"lg:w-2/3"},P={key:0,class:"mb-14"},z=t("div",{class:"text-primary justify-between font-bold border-solid border-b-[0.5px] border-primary flex items-center py-2"},[t("p",{class:"uppercase font-bold text-lg md:text-2xl font-sans"}," News ")],-1),G={class:"md:grid md:grid-cols-3 md:gap-4 mt-8 md:mt-4"},K={key:1,class:"uppercase font-bold text-lg md:text-2xl font-sans"},O={class:"flex flex-col gap-4 w-full lg:w-1/3 h-full"},Q={class:"my-2 lg:my-0"},U=!1,it={__name:"index",setup(W){const i=l([]),_=l(null),d=l(""),r=l(!0),m=l(null),f=R(),h=async e=>{r.value=!0;try{if(e){const{data:c}=await L.get(`/api/get-data?datatype=news&search=${e}`);i.value=c||[]}}catch(c){console.error("Error fetching search results: ",c)}finally{r.value=!1}};B(()=>f.query.id,e=>{e&&(d.value=e,h(e))},{immediate:!0});const v=async()=>{try{U||(_.value=getItems(T,1))}catch(e){m.value=e}finally{r.value=!1}};return $(()=>{v()}),(e,c)=>{const g=k,p=F,x=S,y=C,w=E,b=D;return a(),s(u,null,[o(g),t("div",V,[t("div",j,[o(p,{position:"center"}),r.value?(a(),s("div",q,[o(x)])):(a(),s("div",A,[t("div",null,[t("div",null,[t("span",null,' Search Results Found For "'+H(d.value)+'" under News',1)]),t("div",J,[t("div",M,[i.value.length?(a(),s("div",P,[z,t("div",G,[(a(!0),s(u,null,I(i.value,(n,X)=>(a(),s("div",{key:n.ID},[o(N,{data:n,EventType:(n==null?void 0:n.NewsType)==1?"latest-news":"top-stories"},null,8,["data","EventType"])]))),128))])])):(a(),s("div",K," No Result Found "))]),t("div",O,[o(y,{heading:"company spotlight"}),o(w,{data:_.value},null,8,["data"]),t("div",Q,[o(p,{position:"left"})])])])])]))])]),o(b)],64)}}};export{it as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.