PageSourceSearch

https://aziintargoviste.ro/_next/static/chunks/pages/cauta-65e1fb9ec0828158.js

js aziintargoviste.ro collected 2026-10-09 04:42:51 UTC 3,120 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7736],{1595:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/cauta",function(){return i(9643)}])},9643:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>m,default:()=>x});var n=i(7876),l=i(4232),r=i(8230),s=i.n(r),a=i(6043),c=i(5767),o=i(1478),u=i(1196),p=i(9486);let d={ă:"a",â:"a",î:"i",ș:"s",ț:"t",ş:"s",Ă:"a",Â:"a",Î:"i",Ș:"s",Ț:"t",Ş:"s"};function h(e){return String(e||"").split("").map(e=>d[e]||e).join("").toLowerCase()}var m=!0;function x({initialItems:e}){let[t,i]=(0,l.useState)(""),[r,d]=(0,l.useState)(""),m=(0,l.useMemo)(()=>{let i=h(t).trim();if(!i)return[];let n=i.split(/\s+/).filter(Boolean);return(e||[]).filter(e=>!r||e.contentType===r).map(e=>{let t=0,i=e._search||h([e.title,e.description,e.category].join(" "));for(let l of n)i.includes(l)&&(t+=2),h(e.title).includes(l)&&(t+=3),"news"!==e.contentType&&(t+=1);return{...e,score:t}}).filter(e=>e.score>0).sort((e,t)=>t.score-e.score).slice(0,30)},[t,r,e]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{metaTitle:"Căutare",metaDesc:`Căutare internă pe ${u.A.publicationName}.`,ogUrl:(0,p.KQ)("/cauta/"),canonicalUrl:(0,p.KQ)("/cauta/")}),(0,n.jsx)(c.A,{}),(0,n.jsx)("main",{className:"section-gap",children:(0,n.jsxs)("div",{className:"container",style:{maxWidth:800},children:[(0,n.jsx)("h1",{children:"Căutare"}),(0,n.jsx)("p",{children:"Căutați știri, ghiduri și pagini locale. Rezultatele căutării nu sunt pagini separate indexabile."}),(0,n.jsxs)("form",{role:"search",onSubmit:e=>e.preventDefault(),className:"m-b-xs-30",children:[(0,n.jsx)("label",{htmlFor:"q",className:"form-label",children:"Termen de căutare"}),(0,n.jsx)("input",{id:"q",className:"form-control m-b-xs-20",value:t,onChange:e=>i(e.target.value),placeholder:`ex. primărie, transport, ${u.A.city}`,autoComplete:"off"}),(0,n.jsx)("label",{htmlFor:"type",className:"form-label",children:"Tip de conținut"}),(0,n.jsxs)("select",{id:"type",className:"form-control",value:r,onChange:e=>d(e.target.value),children:[(0,n.jsx)("option",{value:"",children:"Toate"}),(0,n.jsx)("option",{value:"news",children:"Știri"}),(0,n.jsx)("option",{value:"guide",children:"Ghiduri"}),(0,n.jsx)("option",{value:"institution",children:"Instituții"}),(0,n.jsx)("option",{value:"place",children:"Locuri"}),(0,n.jsx)("option",{value:"service",children:"Servicii publice"}),(0,n.jsx)("option",{value:"event",children:"Evenimente"}),(0,n.jsx)("option",{value:"explainer",children:"Explicații"})]})]}),t.trim()?m.length?(0,n.jsx)("ul",{className:"list-unstyled",children:m.map(e=>(0,n.jsxs)("li",{className:"m-b-xs-20",children:[(0,n.jsx)("p",{style:{fontSize:12,marginBottom:4},children:e.contentType}),(0,n.jsx)("h2",{style:{fontSize:20},children:(0,n.jsx)(s(),{href:e.url,children:e.title})}),(0,n.jsx)("p",{children:e.description})]},e.url+e.slug))}):(0,n.jsxs)("p",{children:["Niciun rezultat pentru „",t,"”."]}):(0,n.jsx)("p",{children:"Introduceți un termen pentru a \xeencepe căutarea."})]})}),(0,n.jsx)(o.A,{})]})}}},e=>{e.O(0,[8329,1540,4194,636,6593,8792],()=>e(e.s=1595)),_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.