PageSourceSearch

https://bnrnews.bg/_next/static/chunks/pages/[program]/search-63e7354794669d74.js

js bnrnews.bg collected 2026-10-02 04:09:32 UTC 13,509 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{48970:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[program]/search",function(){return s(60454)}])},38615:function(e,t,s){"use strict";s.d(t,{Z:function(){return x}});var l=s(85893),r=s(70727),a=s(98634);let n=e=>t=>{var s;return null===(s=t.ads)||void 0===s?void 0:s[e]};var i=s(56969),c=s(11163),o=s(67294),d=s(45007),x=e=>{let{withoutRequest:t}=e,{query:s}=(0,c.useRouter)(),x=s.program||r.settings.defaultProgram,u=(0,d.v9)(n(x)),m=(0,d.I0)();return((0,o.useEffect)(()=>{x&&!t&&m((0,a.b)({programName:x}))},[x]),u)?u.map((e,t)=>(0,l.jsx)("a",{className:"max-w-80",href:e.Url,target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("img",{alt:"Реклама "+(t+1),src:(0,i.ZP)(e.MediaInstanceId,"large"),className:"w-full rounded-2xl aspect-6/5 object-cover",loading:"lazy",style:{width:"300px"}})},e.Id)):null}},49325:function(e,t,s){"use strict";var l=s(85893);s(67294);var r=s(87134);t.Z=e=>{let{children:t}=e;return(0,l.jsxs)(r.Z,{innerWrapperClassName:"items-center justify-center relative",outerWrapperClassName:"md:px-6 bg-base-200  md:px-6 ",children:[(0,l.jsx)("div",{className:"absolute top-0 left-0 right-0 w-full h-7 rounded-b-2xl bg-white px-4",children:(0,l.jsx)("hr",{})}),(0,l.jsx)("div",{className:"absolute bottom-0 left-0 right-0 w-full h-7 rounded-t-2xl bg-white px-4"}),(0,l.jsx)("div",{className:"flex items-center justify-center gap-5 p-5 flex-wrap w-full relative",children:t})]})}},58150:function(e,t,s){"use strict";var l=s(85893);s(67294);var r=s(17355),a=s(2013),n=s(36259),i=s(52156),c=s(42772);t.Z=e=>{let{date:t,dateTimeFormat:s}=e,{dateLocale:o}=(0,c.P)();if(!t)return null;let d=new Date(t);return(0,a.J)(d)?(0,l.jsxs)("div",{className:"text-base-600 flex gap-1 mt-2",children:[(0,l.jsx)(r.Z,{}),(0,l.jsx)("p",{className:"text-xs",children:"fromNow"===s?(0,n.Q)(d,{addSuffix:!0,locale:o}):(0,i.WU)(d,"dd.MM.yy, HH:mm",{locale:o})})]}):null}},76179:function(e,t,s){"use strict";var l=s(85893),r=s(56969);s(67294),t.Z=e=>{let{imageId:t,className:s,alt:a,isSquare:n,priority:i}=e;return(0,l.jsx)("img",{src:(0,r.ZP)(t),alt:a||"",loading:i?"eager":"lazy",...i?{fetchpriority:"high"}:{},className:"".concat(n?"aspect-square":"aspect-video"," object-cover shrink-0 ").concat(s)})}},12321:function(e,t,s){"use strict";var l=s(85893),r=s(45263);t.Z=e=>{let{beforeTitle:t,afterTitle:s,title:a,className:n="text-lg",baforeTitleClassName:i="text-base-600",afterTitleClassName:c="text-base-600",titleTag:o}=e;return(0,l.jsxs)("div",{className:n,children:[t&&(0,l.jsxs)("span",{className:i,children:[t,(0,l.jsx)(r.Z,{className:"mx-1"})]}),(0,l.jsx)(null!=o?o:"span",{className:o?"font-serif-bold inline":"font-serif-bold",children:a}),s&&(0,l.jsxs)("span",{className:c,children:[(0,l.jsx)(r.Z,{className:"mx-1"}),s]})]})}},69163:function(e,t,s){"use strict";var l=s(85893);s(67294),t.Z=e=>{let{className:t="size-6",stroke:s="currentColor"}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:s,className:t,children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})})}},97023:function(e,t,s){"use strict";var l=s(85893);s(67294),t.Z=e=>{let{className:t="size-6",stroke:s="currentColor"}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:s,className:t,children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}},17355:function(e,t,s){"use strict";var l=s(85893);s(67294),t.Z=e=>{let{size:t=16,className:s,color:r="#626467",onClick:a}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:t,height:t,className:s,viewBox:"0 0 16 16",onClick:a,children:[(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip-timestamp-icon",children:(0,l.jsx)("rect",{width:"16",height:"16"})})}),(0,l.jsx)("g",{id:"timestamp-icon",clipPath:"url(#clip-timestamp-icon)",children:(0,l.jsx)("path",{id:"clock-rotate-left-solid",d:"M2.117,2.117l-.96-.96A.678.678,0,0,0,0,1.634V4.742a.676.676,0,0,0,.677.677H3.785a.678.678,0,0,0,.48-1.157L3.4,3.393a5.419,5.419,0,1,1,.734,8.282.9.9,0,1,0-1.036,1.482,7.228,7.228,0,1,0-.977-11.04Zm5.109,1.5a.676.676,0,0,0-.677.677V7.227a.677.677,0,0,0,.2.48L8.779,9.739a.677.677,0,0,0,.957-.957L7.9,6.947V4.291a.676.676,0,0,0-.677-.677Z",transform:"translate(1 0.773)",fill:r})})]})}},26972:function(e,t,s){"use strict";var l=s(85893);t.Z=e=>{let{children:t,removeDefaultPadding:s,className:r=""}=e;return(0,l.jsx)("div",{className:"flex flex-col lg:flex-1 ".concat(s?"":"p-5"," ").concat(r),children:t})}},40422:function(e,t,s){"use strict";var l=s(85893),r=s(70671),a=s(69163),n=s(97023),i=s(11163);s(67294),t.Z=e=>{var t;let{totalPages:s,pathname:c="",shallow:o,hash:d,pageKey:x="page",scroll:u=!0}=e,m=(0,i.useRouter)(),h=Number(null==m?void 0:null===(t=m.query)||void 0===t?void 0:t[x])||1;if(s<=1)return null;let f=Array(s).fill("").map((e,t)=>t+1);s>9&&(f=h<=5?[1,2,3,4,5,6,null,s]:s-h<5?[1,null,s-5,s-4,s-3,s-2,s-1,s]:[1,null,h-1,h,h+1,null,s]);let p={pathname:c};d&&(p.hash=d);let g=e=>{if(1===e){let{[x]:e,...t}=m.query;return t}return{...m.query,[x]:e}};return(0,l.jsxs)("ul",{className:"my-5 flex flex-wrap items-center justify-center gap-2",children:[1!==h&&(0,l.jsx)("li",{children:(0,l.jsx)(r.Z,{shallow:o,scroll:u,href:{...p,query:g(h-1>0?h-1:1)},children:(0,l.jsx)(a.Z,{className:"size-4",stroke:"#626467"})})}),f.map((e,t)=>e?(0,l.jsx)(r.Z,{shallow:o,scroll:u,href:{...p,query:g(e)},children:(0,l.jsx)("li",{className:"hover:border-base-600 border text-base-600 rounded-lg min-w-8 px-2 break-all text-center ".concat(e===h?"text-white bg-base-600":"border-base-600"),children:e})},e):(0,l.jsx)("li",{children:"..."},"dots_".concat(t))),h<s&&(0,l.jsx)("li",{children:(0,l.jsx)(r.Z,{shallow:o,scroll:u,href:{...p,query:g(h>=s?s:h+1)},children:(0,l.jsx)(n.Z,{className:"size-4",stroke:"#626467"})})})]})}},87134:function(e,t,s){"use strict";var l=s(85893),r=s(84345);t.Z=e=>{let{children:t,outerWrapperClassName:s,innerWrapperClassName:a,removeDefaultInnerClasses:n,id:i}=e;return(0,l.jsx)("div",{className:s||"",...i&&{id:i},children:(0,l.jsx)(r.Z,{className:"".concat(n?"":"flex flex-col lg:flex-row"," ").concat(a||""),children:t})})}},73171:function(e,t,s){"use strict";var l=s(85893);t.Z=e=>{let{children:t,className:s="",removePadding:r}=e;return(0,l.jsx)("div",{className:"".concat(r?"":"px-5 lg:px-7 lg:py-5"," lg:w-[268px] flex flex-col justify-between shrink-0 ").concat(s),children:t})}},9589:function(e,t,s){"use strict";s.d(t,{Wr:function(){return v},bi:function(){return N},ne:function(){return w}});let l="News",r="Event",a="Interview",n="Analysis",i="Report",c="Comment",o="PodcastEpisode",d="Broadcast",x="Podcast",u="JobOffer",m="AdministrativeItemTender",h="AdministrativeItemReport",f="Article",p="Feature",g="Section",b="PaidPublication",j="PartnerPublication",v={[l]:"Новина",[r]:"Събитие",[a]:"Интервю",[n]:"Анализ",[i]:"Репортаж",[c]:"Коментар",[o]:"Епизод",[d]:"Предаване",[x]:"Подкаст",[u]:"Обява за работа",[m]:"Търг",[h]:"Отчет",[f]:"Статия",[p]:"Фичър",[g]:"Раздел",[b]:"Платена публикация",[j]:"Партньорска публикация"},w={[l]:"bg-primary text-white",[r]:"bg-accentSecond text-white",[a]:"bg-primary/80 text-white",[n]:"bg-accentSecond text-white",[i]:"bg-base-200 text-black",[c]:"bg-secondary/80 text-white",[o]:"bg-secondary text-white",[d]:"bg-accentFirst/80 text-white",[x]:"bg-accentFirst text-white",[u]:"bg-primary text-white",[m]:"bg-base-600 text-white",[h]:"bg-base-500 text-white",[f]:"bg-base-600 text-white",[p]:"bg-base-600 text-white",[g]:"bg-base-600 text-white",[b]:"bg-secondary text-black",[j]:"bg-secondary text-black"},N={[l]:!0,[r]:!0,[a]:!0,[n]:!0,[i]:!0,[c]:!0,[o]:!0,[d]:!0,[x]:!0,[u]:!1,[m]:!1,[h]:!1,[f]:!0,[p]:!0,[g]:!0,[b]:!0,[j]:!0}},12087:function(e,t,s){"use strict";s.d(t,{$:function(){return n},c:function(){return i}});var l=s(70727),r=s(61920),a=s(61182);let n=async(e,t)=>{let{ProgramUrlName:s,...n}=t;if(!s)throw Error("Missing ProgramUrlName");let i=(0,r.n)({ProgramUrlName:s,...n}),c="".concat(a.X.apiUrl,"/materials/search?").concat(i);return await l.Lp.get(e,c)},i=async(e,t,s)=>{if(!t)throw Error("Missing ProgramUrlName");let n=(0,r.n)({...s}),i="".concat(a.X.apiUrl,"/programs/search/").concat(t,"?").concat(n);return await l.Lp.get(e,i)}},61920:function(e,t,s){"use strict";s.d(t,{n:function(){return l}});let l=e=>Object.keys(e).filter(t=>null!==e[t]&&void 0!==e[t]&&""!==e[t]).map(t=>Array.isArray(e[t])?e[t].map(e=>"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))).join("&")},60454:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return k},default:function(){return P}});var l=s(85893),r=s(38615),a=s(49325),n=s(70671),i=s(76179),c=s(12321),o=s(58150),d=s(76266),x=s(67373),u=s(26972),m=s(40422),h=s(73171),f=s(84345),p=s(9589),g=s(12087),b=s(81627),j=s(9008),v=s.n(j),w=s(11163),N=s(67294),y=s(45007),Z=()=>{var e,t,s,j,Z,k;let{query:P}=(0,w.useRouter)(),{page:I,q:C,program:_}=P,[T,U]=(0,N.useState)(null),[M,E]=(0,N.useState)(!1),R=(0,y.I0)(),S=async()=>{E(!0);let e=await (0,g.c)(R,_,{PerPage:8,CurrentPage:Number(I)||1,Text:C,CmsPerPage:8,CmsCurrentPage:Number(I)||1});if(E(!1),e.ok&&e.data){U(e.data);return}U({Materials:{Items:[],TotalPages:0},Cms:{Items:[],TotalPages:0}})};(0,N.useEffect)(()=>{P&&S()},[P]);let L=(0,b.T_)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(v(),{children:[(0,l.jsx)("title",{children:L("search.head")}),(0,l.jsx)("meta",{name:"robots",content:"noindex, follow"},"robots")]}),(0,l.jsx)("div",{className:"bg-base-400 md:px-6",children:(0,l.jsx)(f.Z,{className:"bg-base-200 px-4 md:px-7 py-3",children:(0,l.jsx)("h1",{className:"text-2xl md:text-3xl font-serif-bold",children:L("search.title")})})}),(0,l.jsx)("div",{className:"bg-base-200 md:px-6",children:(0,l.jsxs)(f.Z,{className:"bg-white xl:flex 2xl:pr-20",children:[(0,l.jsx)(h.Z,{children:(0,l.jsxs)("h2",{className:" text-xl mt-3",children:[(0,l.jsx)("span",{className:"text-base-600 block font-serif",children:L("search.results")}),(0,l.jsxs)("span",{className:"block font-serif-bold",children:["„",C,"“"]})]})}),(0,l.jsx)(u.Z,{className:"",children:(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4",children:[(0,l.jsx)("div",{className:" flex-1",children:(null==T?void 0:null===(t=T.Materials)||void 0===t?void 0:null===(e=t.Items)||void 0===e?void 0:e.length)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"",children:null==T?void 0:null===(s=T.Materials)||void 0===s?void 0:s.Items.map(e=>(0,l.jsx)(n.Z,{href:"".concat(p.bi[e.Type]?"/".concat(_):"").concat(e.Url),children:(0,l.jsxs)("div",{className:"flex border-b border-b-base-400 py-4 duration-300 hover:border-b-primary group flex-col sm:flex-row gap-4 h-fit",children:[(0,l.jsx)("div",{className:"max-w-96 sm:w-44 h-full",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(i.Z,{alt:e.Title,imageId:e.MediaInstanceId,className:"w-full max-w-96 sm:w-44  roun
1ded-lg object-cover shrink-0 group-hover:scale-105 duration-300 mb-4"}),(0,l.jsx)(o.Z,{date:e.Date})]})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-1 sm:px-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Z,{title:e.Title,titleTag:"h3"}),e.ShortDescription&&(0,l.jsx)("p",{children:e.ShortDescription})]}),(0,l.jsx)("p",{className:"w-fit rounded-lg text-xs px-2 py-1 ".concat(p.ne[e.Type]),children:p.Wr[e.Type]})]})]})},e.Id))}),(0,l.jsx)(m.Z,{totalPages:T.Materials.TotalPages,shallow:!0})]}):(0,l.jsx)("div",{className:"min-h-36",children:M?(0,l.jsx)("div",{className:"flex flex-col gap-5",children:[1,2,3,4].map(e=>(0,l.jsx)("div",{className:"h-36 w-full animate-pulse bg-base-200"},e))}):(0,l.jsx)("p",{className:"text-lg text-base-600 text-center",children:L("search.noResults")})})}),(0,l.jsxs)("div",{className:"flex justify-start flex-col gap-5 p-5 w-full lg:w-96 min-h-96 bg-base-200 rounded-lg relative overflow-hidden",children:[(0,l.jsx)(d.W,{className:"size-96 fill-secondary/40 absolute bottom-10 -right-16 "}),(0,l.jsxs)("div",{className:"relative min-h-48",children:[(0,l.jsx)("p",{className:"font-serif-bold text-2xl mb-3",children:L("search.pages")}),(null==T?void 0:null===(Z=T.Cms)||void 0===Z?void 0:null===(j=Z.Items)||void 0===j?void 0:j.length)?(0,l.jsxs)(l.Fragment,{children:[null==T?void 0:null===(k=T.Cms)||void 0===k?void 0:k.Items.map(e=>(0,l.jsxs)(n.Z,{href:"/".concat(_,"/page/").concat(e.Url),className:"block border-t border-base-400 py-2.5 hover:underline duration-300",children:[(0,l.jsx)("span",{className:"mr-2",children:e.Title}),(0,l.jsx)(x.Z,{color:"current-color",className:"fill-accentFirst inline-block "})]},e.Url)),(0,l.jsx)(m.Z,{totalPages:T.Cms.TotalPages,shallow:!0})]}):(0,l.jsx)("div",{className:"",children:M?(0,l.jsx)("div",{className:"flex flex-col gap-5",children:[1,2,3,4].map(e=>(0,l.jsx)("div",{className:"h-14 w-full animate-pulse bg-base-400/50"},e))}):(0,l.jsx)("p",{className:"text-lg text-base-600 text-center",children:L("search.noResults")})})]})]})]})})]})}),(0,l.jsx)(a.Z,{children:(0,l.jsx)(r.Z,{})})]})},k=!0,P=()=>(0,l.jsx)(Z,{})}},function(e){e.O(0,[2156,6259,2888,9774,179],function(){return e(e.s=48970)}),_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.