1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8889],{83865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/search-tamilPage",function(){return a(46367)}])},46367:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return p}});var n=a(85893),s=a(87066),c=a(9008),r=a.n(c),l=a(67294),i=a(72753),h=a(41035),o=a(1999),d=a.n(o),u=a(2475),x=a(18798),g=a(85604),m=a(96079),f=a(77057),j=a(11037),_=a.n(j),p=!0;t.default=function(e){let{Language:t,LangShort:a,MoreForYouAPI:c}=e,o="article_listing",j="search",[p,S]=(0,l.useState)(""),[y,N]=(0,l.useState)(!1),[v,b]=(0,l.useState)(null),[w,A]=(0,l.useState)("Health"),fetchSearchData=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Health";try{N(!0);let t=(null==e?void 0:e.trim())||"Health",a=await s.Z.get("".concat(i.XL.API_PATH,"api/omh/tags/").concat("ta_IN","/").concat(t,"/0/10"),i.XL.API_TOKEN);b(a.data||[]),A(t)}catch(e){console.log("Search API Error",e),b([])}finally{N(!1)}};(0,l.useEffect)(()=>{fetchSearchData("Health")},[]);let submitSearchForm=async e=>{e.preventDefault();let t=p.trim();if(!t){fetchSearchData("Health");return}await fetchSearchData(t)};return(0,n.jsxs)(h.Z,{Language:t,AdCat:j,PageType:o,children:[(0,n.jsxs)(r(),{children:[(0,n.jsx)("title",{children:"Search Articles - Onlymyhealth"}),(0,n.jsx)("meta",{name:"description",content:"Search health related articles on Onlymyhealth"})]}),(0,n.jsx)(u.default,{webComponent:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"gutterBanner lhs",children:(0,n.jsx)(g.default,{adUnit:"desktop/".concat((0,m.kq)(t),"_").concat(j,"/").concat(o,"/LHS_160x600"),size:[160,600],targetID:"LHS_160x600"})}),(0,n.jsx)("div",{className:"gutterBanner",children:(0,n.jsx)(g.default,{adUnit:"desktop/".concat((0,m.kq)(t),"_").concat(j,"/").concat(o,"/RHS_160x600"),size:[160,600],targetID:"RHS_160x600"})})]})}),(0,n.jsx)("div",{className:_().searchModel,children:(0,n.jsx)("div",{className:_().search,children:(0,n.jsxs)("form",{onSubmit:submitSearchForm,children:[(0,n.jsx)("input",{type:"text",value:p,placeholder:"Search your keyword",onChange:e=>S(e.target.value)}),(0,n.jsx)("button",{type:"submit",children:y?"Loading...":(0,n.jsx)("b",{children:(0,n.jsx)("svg",{children:(0,n.jsx)("use",{href:"/assets/sprite.svg#search"})})})})]})})}),(0,n.jsxs)("div",{className:"container",children:[w&&(0,n.jsxs)("h2",{style:{marginTop:"20px",marginBottom:"20px"},children:["Related Articles : ",w]}),(0,n.jsxs)("section",{className:d().section,children:[(0,n.jsxs)("div",{className:d().article,children:[v&&(0,n.jsx)(f.Z,{subCategory:v,Language:t,PageType:o,AdCat:j,LangShort:a,tagName:w}),!y&&v&&Array.isArray(v)&&0===v.length&&(0,n.jsx)("p",{children:"No articles found."})]}),(0,n.jsx)(u.default,{webComponent:(0,n.jsx)("div",{className:d().asidebar,children:c&&(0,n.jsx)(x.Z,{heading:"More For You",MoreForYouAPI:c,Language:t})})})]})]})]})}}},function(e){e.O(0,[5675,1595,3717,9755,5035,8446,1035,1265,9774,2888,179],function(){return e(e.s=83865)}),_N_E=e.O()}]);
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.