PageSourceSearch

https://www.etvbharat.com/_next/static/chunks/pages/search/%5BsearchQuery%5D-aaecb660bdc92af6.js

js etvbharat.com collected 2026-10-02 04:12:28 UTC 17,646 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2103],{42526:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/[searchQuery]",function(){return t(46840)}])},69249:function(e,i,t){"use strict";var a=t(85893),r=t(40645),l=t.n(r),d=t(37821);t(67294);var s=t(11178);i.Z=e=>{let{featured:i,language:t,state:r,targetBlank:o,layoutType:n}=e;return(0,a.jsxs)("div",{className:"jsx-5f3639d3fbd118 featured",children:[i.slice(0,4).map((e,i)=>{let l=(0,d.og)(e,{language:t,state:r}),n="object"==typeof l?null==l?void 0:l.pathname:null==l?void 0:l.replace(/https:\/\/(staging|www)\.etvbharat\.com/,""),c=["te","hi"].includes((n=((null==n?void 0:n.slice(0,1))!=="/"?"/":"")+n).split("-").pop().slice(0,2)),f="object"==typeof n?(0,d.Sr)(n,""):n,b=(0,d.lu)(null==e?void 0:e.thumbnails,"small_3_2");return(0,a.jsx)("div",{className:"jsx-5f3639d3fbd118 featured__item",children:(0,a.jsx)(s.default,{title:null==e?void 0:e.display_title,direction:"aside",image:null==b?void 0:b.url,alt:(null==b?void 0:b.alt_tags)||(null==e?void 0:e.display_title),category:null==e?void 0:e.category,friendly_id:null==e?void 0:e.friendly_id,content_id:null==e?void 0:e.content_id,read_time:null==e?void 0:e.read_time,publish_date_string:null==e?void 0:e.publish_date_string,urlV2:f,language:t,state:r,native_tag:null==e?void 0:e.native_tag,isNationalScope:c,targetBlank:o,content_type:e.content_type,article_meta:e.article_meta,publish_date_uts:null==e?void 0:e.publish_date_uts,update_date_uts:null==e?void 0:e.update_date_uts},(null==e?void 0:e.id)+""+i)},(null==e?void 0:e.id)+""+i)}),(0,a.jsx)(l(),{id:"5f3639d3fbd118",children:".featured.jsx-5f3639d3fbd118{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.featured__item.jsx-5f3639d3fbd118{border-bottom:1px solid#f0f0f0;padding-bottom:.5rem;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.featured__item.jsx-5f3639d3fbd118:last-child{border-bottom:none}"})]})}},7879:function(e,i,t){"use strict";t.d(i,{Z:function(){return j}});var a=t(85893),r=t(67294),l=t(40645),d=t.n(l),s=t(94077),o=t(91109),n=t(37821),c=t(69249),f=t(11163),b=t(58261),u=t(32601),x=t(43927),m=e=>{var i,t,r,l,m,_,h,p,g,v,j,k;let{searchQuery:w,flag:y,totalItems:z,submit:N,searchInput:S,setSearchInput:P,language:C,state:Z,isLoadingMore:E,setSize:F,data:J,size:L}=e,D=(0,f.useRouter)(),Q=null==J?void 0:null===(t=J[0])||void 0===t?void 0:null===(i=t.poll)||void 0===i?void 0:i.iframe,R=(0,n.kt)(C);return(0,a.jsxs)("div",{className:"jsx-bd5fff09c1c9ed3f search",children:[(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__background",children:(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__container",children:(0,a.jsxs)("div",{className:"jsx-bd5fff09c1c9ed3f search__layout",children:[(0,a.jsxs)("div",{className:"jsx-bd5fff09c1c9ed3f search__left",children:[(0,a.jsxs)("div",{className:"jsx-bd5fff09c1c9ed3f search__header",children:[(0,a.jsxs)("h1",{className:"jsx-bd5fff09c1c9ed3f search__heading",children:["Search Results for: ",w]}),!y&&(0,a.jsxs)("p",{className:"jsx-bd5fff09c1c9ed3f search__result-count",children:["Showing ",z," results for your search"]})]}),(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__bar",children:(0,a.jsxs)("form",{onSubmit:N,className:"jsx-bd5fff09c1c9ed3f search__form",children:[(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__icon",children:(0,a.jsx)(s.w75,{size:28})}),(0,a.jsx)("label",{htmlFor:"first-checkbox",className:"jsx-bd5fff09c1c9ed3f search__input-label",children:(0,a.jsx)("input",{id:"first-checkbox",type:"text",placeholder:"Search Headlines, News...",value:S,onChange:e=>P(e.target.value),className:"jsx-bd5fff09c1c9ed3f search__input"})}),(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__submit-container",children:(0,a.jsx)("button",{type:"submit",className:"jsx-bd5fff09c1c9ed3f search__submit-btn",children:"Search"})})]})}),(0,a.jsx)("section",{className:"jsx-bd5fff09c1c9ed3f search__results",children:y?(0,a.jsx)("p",{className:"jsx-bd5fff09c1c9ed3f search__no-input",children:"Please enter search..."}):z>0?(0,a.jsxs)(a.Fragment,{children:[null==J?void 0:J.map((e,i)=>{var t;return(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__grid",children:null==e?void 0:null===(t=e.searchResult)||void 0===t?void 0:t.map(e=>{var i,t;let r=(0,n.lu)(null==e?void 0:e.thumbnails,"small_3_2"),l=(0,n.og)(e,{language:C,state:Z});return(0,a.jsx)(o.Z,{image:{src:null==r?void 0:r.url,alt:(null==r?void 0:r.alt_tags)||(null==e?void 0:e.display_title)},title:null==e?void 0:e.display_title,author:null==e?void 0:null===(t=e.author_info)||void 0===t?void 0:null===(i=t.author_details)||void 0===i?void 0:i.name,date:null==e?void 0:e.publish_date_string,read_time:null==e?void 0:e.read_time,subcategory:"Search",friendly_id:null==e?void 0:e.friendly_id,content_id:null==e?void 0:e.content_id,category:null==e?void 0:e.category,url
1V2:l,elm:e,language:C,state:Z,has_videos:null==e?void 0:e.has_videos,article_meta:null==e?void 0:e.article_meta,content_type:null==e?void 0:e.content_type,publish_date_uts:null==e?void 0:e.publish_date_uts,update_date_uts:null==e?void 0:e.update_date_uts},null==e?void 0:e.content_id)})},i)}),(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__load-more",children:J&&(null===(l=J[(null==J?void 0:J.length)-1])||void 0===l?void 0:null===(r=l.result)||void 0===r?void 0:r.length)<18?(0,a.jsx)("p",{className:"jsx-bd5fff09c1c9ed3f",children:null}):(0,a.jsx)("button",{onClick:()=>F(L+1),disabled:E,className:"jsx-bd5fff09c1c9ed3f search__load-more-btn",children:E?"Loading...":(0,u.m)(C,"ViewMore")})})]}):(0,a.jsx)("p",{className:"jsx-bd5fff09c1c9ed3f search__no-results",children:"No results found..."})})]}),(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f "+"search__right ".concat(R?"search__right--rtl":""),children:(0,a.jsxs)("div",{className:"jsx-bd5fff09c1c9ed3f search__sidebar",children:[(null==J?void 0:null===(_=J[0])||void 0===_?void 0:null===(m=_.poll)||void 0===m?void 0:m.is_active)==="true"&&Q&&(0,a.jsx)(b.Z,{props:{src:Q,id:"search-listing-poll",path:null==D?void 0:D.asPath}}),(null==J?void 0:null===(h=J[0])||void 0===h?void 0:h.you_may_be_interested_in)&&(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__sidebar-card",children:(0,a.jsx)(x.Z,{latestList:null==J?void 0:null===(p=J[0])||void 0===p?void 0:p.you_may_be_interested_in,language:C,state:Z})}),(null==J?void 0:null===(g=J[0])||void 0===g?void 0:g.featured)&&(0,a.jsxs)("div",{className:"jsx-bd5fff09c1c9ed3f search__featured-wrapper",children:[(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f "+"search__featured-heading ".concat(R?"search__featured-heading--rtl":""),children:(0,a.jsx)("h3",{className:"jsx-bd5fff09c1c9ed3f search__editors-h3",children:C?(0,u.m)(C,"EditorsPick"):"Editor's Pick"})}),(null==J?void 0:null===(j=J[0])||void 0===j?void 0:null===(v=j.featured)||void 0===v?void 0:v.length)>0&&(0,a.jsx)(c.Z,{featured:null==J?void 0:null===(k=J[0])||void 0===k?void 0:k.featured,language:C,state:Z,targetBlank:"_blank"})]})]})})]})})}),(0,a.jsx)("div",{className:"jsx-bd5fff09c1c9ed3f search__bottom-border"}),(0,a.jsx)(d(),{id:"bd5fff09c1c9ed3f",children:'.search__background.jsx-bd5fff09c1c9ed3f::before{content:"";position:absolute;inset:0 0 0 0;background:var(--bgMain);background-repeat:no-repeat;background-position:50%;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;background-attachment:scroll;bottom:1.75rem;pointer-events:none;z-index:-1}.search__container.jsx-bd5fff09c1c9ed3f{width:100%;display:block}@media(min-width:1280px){.search__container.jsx-bd5fff09c1c9ed3f{margin-left:auto;margin-right:auto;max-width:1280px}}.search__layout.jsx-bd5fff09c1c9ed3f{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:.5rem}@media(min-width:1024px){.search__layout.jsx-bd5fff09c1c9ed3f{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.search__left.jsx-bd5fff09c1c9ed3f{width:100%}@media(min-width:1024px){.search__left.jsx-bd5fff09c1c9ed3f{width:70%}}.search__right.jsx-bd5fff09c1c9ed3f{width:100%;margin-top:.5rem}@media(min-width:1024px){.search__right.jsx-bd5fff09c1c9ed3f{width:30%;padding-left:.75rem;border-left:2px solid#e5e7eb}.search__right--rtl.jsx-bd5fff09c1c9ed3f{padding-left:0;padding-right:.75rem;border-left:none;border-right:2px solid#e5e7eb}}.search__header.jsx-bd5fff09c1c9ed3f{text-align:center;margin-bottom:1.5rem;display:block}.search__heading.jsx-bd5fff09c1c9ed3f{font-size:1.875rem;font-weight:500;font-style:normal;text-transform:none}.search__result-count.jsx-bd5fff09c1c9ed3f{margin-top:.5rem;display:block;color:#666}.search__bar.jsx-bd5fff09c1c9ed3f{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;
1-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.search__form.jsx-bd5fff09c1c9ed3f{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--white);-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;width:630px;height:56px;-webkit-box-shadow:rgba(0,0,0,.12)0px 0px 40px;-moz-box-shadow:rgba(0,0,0,.12)0px 0px 40px;box-shadow:rgba(0,0,0,.12)0px 0px 40px}.search__icon{padding-left:1rem;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.search__input-label.jsx-bd5fff09c1c9ed3f{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.search__input.jsx-bd5fff09c1c9ed3f{position:relative;width:100%;border:none;outline:none;padding:0 1rem;font-size:1rem;border-right:2px solid#b30c07;height:1.25rem}.search__submit-container.jsx-bd5fff09c1c9ed3f{position:relative;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.search__submit-btn.jsx-bd5fff09c1c9ed3f{padding:5px 20px;background:transparent;font-weight:600;border:none;cursor:pointer;height:100%}.search__submit-btn.jsx-bd5fff09c1c9ed3f:hover{background-color:#b30c07;color:#fff;-webkit-border-radius:.75rem;-moz-border-radius:.75rem;border-radius:.75rem}.search__results.jsx-bd5fff09c1c9ed3f{padding:0 1.25rem;margin-top:1.25rem}.search__grid.jsx-bd5fff09c1c9ed3f{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}@media(min-width:640px){.search__grid.jsx-bd5fff09c1c9ed3f{grid-template-columns:repeat(3,1fr)}}.search__load-more.jsx-bd5fff09c1c9ed3f{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:1.25rem 0}.search__load-more-btn.jsx-bd5fff09c1c9ed3f{background-color:#e21b22;color:#fff;padding:2px 8px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.search__sidebar-card.jsx-bd5fff09c1c9ed3f{padding:.7rem;margin-bottom:.5rem;border:1px solid#f0f0f0;-webkit-border-radius:1rem;-moz-border-radius:1rem;border-radius:1rem;background:#fff}.search__editors-h3.jsx-bd5fff09c1c9ed3f{margin:0 .5rem;font-size:1.2rem;font-weight:700;line-height:1.25rem;font-family:var(--font-pt-serif)}.search__featured-wrapper.jsx-bd5fff09c1c9ed3f{padding:.7rem;-webkit-border-radius:1rem;-moz-border-radius:1rem;border-radius:1rem;background:var(--th-bgMain);border:1px solid#f0f0f0}.search__featured-heading.jsx-bd5fff09c1c9ed3f{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;border-left:6px solid#b30c07;margin-bottom:1.25rem}.search__featured-heading--rtl.jsx-bd5fff09c1c9ed3f{border-left:none;border-right:6px solid#b30c07}.search__featured-heading.jsx-bd5fff09c1c9ed3f h3.jsx-bd5fff09c1c9ed3f{font-size:1.2rem;font-weight:500;margin-left:.5rem}.search__bottom-border.jsx-bd5fff09c1c9ed3f{height:4px;background:#f6f8fc;margin-top:.5rem}'})]})}
1,_=t(39332),h=t(90628),p=t(44593),g=t(9008),v=t.n(g),j=e=>{let{searchData:i,language:t,state:l}=e,d=(0,h.ZP)(),{params:s}=d.query,o=(0,_.useParams)(),c=(t?Array.isArray(s)&&s[2]:null==o?void 0:o.searchQuery)||"",[f,b]=(0,r.useState)(c),[u,x]=(0,r.useState)(c),g=null==i?void 0:i.total_count,[j,k]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e;let i=(null==s?void 0:null===(e=s.slice(-1))||void 0===e?void 0:e[0])||(null==o?void 0:o.searchQuery)||c||"";x(i),b(i)},[c]);let{data:w,error:y,size:z,setSize:N}=(0,p.ZP)((e,i)=>{var a;return i&&(null==i?void 0:null===(a=i.articles)||void 0===a?void 0:a.length)===0?null:{url:"/api/search",payload:{page:e,page_size:18,state_code:l?(0,n.l0)(l):"na",item_languages:t||"en",searchQuery:u.split(" ").join("-")}}},n._i,{fallbackData:[i],revalidateFirstPage:!1}),S=!w&&!y||z>0&&w&&void 0===w[z-1];return y?(0,a.jsx)("div",{children:"Failed to load data"}):w?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(v(),{children:[(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,a.jsx)("meta",{name:"googlebot",content:"noindex, nofollow"}),(0,a.jsx)("meta",{name:"googlebot-news",content:"noindex, nofollow"})]}),(0,a.jsx)(m,{searchQuery:u,flag:j,totalItems:g,submit:e=>{e.preventDefault(),f?(x(f),t?d.push("/".concat(t,"/").concat(l,"/search/").concat(f)):d.push("/search/".concat(f)),k(!1)):(k(!0),x(f))},searchInput:f,setSearchInput:b,language:t,state:l,size:z,setSize:N,isLoadingMore:S,data:w})]}):null}},46840:function(e,i,t){"use strict";t.r(i),t.d(i,{__N_SSP:function(){return s}});var a=t(85893);t(67294);var r=t(7879),l=t(9008),d=t.n(l),s=!0;i.default=e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d(),{children:[(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,a.jsx)("meta",{name:"googlebot",content:"noindex, nofollow"}),(0,a.jsx)("meta",{name:"googlebot-news",content:"noindex, nofollow"})]}),(0,a.jsx)(r.Z,{state:"",searchData:e.data})]})},44593:function(e,i,t){"use strict";t.d(i,{ZP:function(){return n}});var a=t(67294),r=t(95591),l=t(11753),d=t(61688);let s=e=>(0,l.qC)(e?e(0,null):null)[0],o=Promise.resolve(),n=(0,l.xD)(r.ZP,e=>(i,t,r)=>{let n;let c=(0,a.useRef)(!1),{cache:f,initialSize:b=1,revalidateAll:u=!1,persistSize:x=!1,revalidateFirstPage:m=!0,revalidateOnMount:_=!1,parallel:h=!1}=r,[,,,p]=l.DY.get(l.Fs);try{(n=s(i))&&(n=l.UG+n)}catch(e){}let[g,v,j]=(0,l.JN)(f,n),k=(0,a.useCallback)(()=>(0,l.o8)(g()._l)?b:g()._l,[f,n,b]);(0,d.useSyncExternalStore)((0,a.useCallback)(e=>n?j(n,()=>{e()}):()=>{},[f,n]),k,k);let w=(0,a.useCallback)(()=>{let e=g()._l;return(0,l.o8)(e)?b:e},[n,b]),y=(0,a.useRef)(w());(0,l.LI)(()=>{if(!c.current){c.current=!0;return}n&&v({_l:x?y.current:w()})},[n,f]);let z=_&&!c.current,N=e(n,async e=>{let a=g()._i,d=[],s=w(),[o]=(0,l.JN)(f,e),n=o().data,c=[],b=null;for(let e=0;e<s;++e){let[s,o]=(0,l.qC)(i(e,h?null:b));if(!s)break;let[x,_]=(0,l.JN)(f,s),g=x().data,v=u||a||(0,l.o8)(g)||m&&!e&&!(0,l.o8)(n)||z||n&&!(0,l.o8)(n[e])&&!r.compare(n[e],g);if(t&&v){let i=async()=>{if(s in p){let e=p[s];delete p[s],g=await e}else g=await t(o);_({data:g,_k:o}),d[e]=g};h?c.push(i):await i()}else d[e]=g;h||(b=g)}return h&&await Promise.all(c.map(e=>e())),v({_i:l.i_}),d},r),S=(0,a.useCallback)(function(e,i){let t="boolean"==typeof i?{revalidate:i}:i||{},a=!1!==t.revalidate;return n?(a&&((0,l.o8)(e)?v({_i:!0}):v({_i:!1})),arguments.length?N.mutate(e,{...t,revalidate:a}):N.mutate()):o},[n,f]),P=(0,a.useCallback)(e=>{let t;if(!n)return o;let[,a]=(0,l.JN)(f,n);if((0,l.mf)(e)?t=e(w()):"number"==typeof e&&(t=e),"number"!=typeof t)return o;a({_l:t}),y.current=t;let r=[],[d]=(0,l.JN)(f,n),s=null;for(let e=0;e<t;++e){let[t]=(0,l.qC)(i(e,s)),[a]=(0,l.JN)(f,t),o=t?a().data:l.i_;if((0,l.o8)(o))return S(d().data);r.push(o),s=o}return S(r)},[n,f,S,w]);return{size:w(),setSize:P,mutate:S,get data(){return N.data},get error(){return N.error},get isValidating(){return N.isValidating},get isLoading(){return N.isLoading}}})}},function(e){e.O(0,[1827,1778,9401,8258,5591,1178,3223,1109,2888,9774,179],function(){return e(e.s=42526)}),_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.