PageSourceSearch

https://bnr.bg/_next/static/chunks/pages/[program]/notifications-26344284d804a76a.js

js bnr.bg collected 2026-10-01 10:17:27 UTC 8,709 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[687],{77576:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[program]/notifications",function(){return s(18547)}])},9154:function(e,t,s){"use strict";s.d(t,{Z:function(){return x}});var l=s(85893),r=s(24895),n=s(47950);let a=e=>t=>{var s;return null===(s=t.ads)||void 0===s?void 0:s[e]};var i=s(20931),o=s(11163),c=s(67294),d=s(45007),x=e=>{let{withoutRequest:t}=e,{query:s}=(0,o.useRouter)(),x=s.program||r.settings.defaultProgram,u=(0,d.v9)(a(x)),m=(0,d.I0)();return((0,c.useEffect)(()=>{x&&!t&&m((0,n.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}},54658:function(e,t,s){"use strict";var l=s(85893);s(67294);var r=s(2348),n=s(4682),a=s(15987),i=s(10291),o=s(59060);t.Z=e=>{let{date:t,dateTimeFormat:s}=e,{dateLocale:c}=(0,o.P)();if(!t)return null;let d=new Date(t);return(0,n.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,a.Q)(d,{addSuffix:!0,locale:c}):(0,i.WU)(d,"dd.MM.yy, HH:mm",{locale:c})})]}):null}},97399:function(e,t,s){"use strict";var l=s(85893),r=s(70829);t.Z=e=>{let{beforeTitle:t,afterTitle:s,title:n,className:a="text-lg",baforeTitleClassName:i="text-base-600",afterTitleClassName:o="text-base-600",titleTag:c}=e;return(0,l.jsxs)("div",{className:a,children:[t&&(0,l.jsxs)("span",{className:i,children:[t,(0,l.jsx)(r.Z,{className:"mx-1"})]}),(0,l.jsx)(null!=c?c:"span",{className:c?"font-serif-bold inline":"font-serif-bold",children:n}),s&&(0,l.jsxs)("span",{className:o,children:[(0,l.jsx)(r.Z,{className:"mx-1"}),s]})]})}},17004: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"})})}},74010: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"})})}},2348: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:n}=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:n,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})})]})}},97651:function(e,t,s){"use strict";var l=s(85893),r=s(6135),n=s(17004),a=s(74010),i=s(11163);s(67294),t.Z=e=>{var t;let{totalPages:s,pathname:o="",shallow:c,hash:d,pageKey:x="page",scroll:u=!0}=e,m=(0,i.useRouter)(),f=Number(null==m?void 0:null===(t=m.query)||void 0===t?void 0:t[x])||1;if(s<=1)return null;let h=Array(s).fill("").map((e,t)=>t+1);s>9&&(h=f<=5?[1,2,3,4,5,6,null,s]:s-f<5?[1,null,s-5,s-4,s-3,s-2,s-1,s]:[1,null,f-1,f,f+1,null,s]);let p={pathname:o};d&&(p.hash=d);let j=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!==f&&(0,l.jsx)("li",{children:(0,l.jsx)(r.Z,{shallow:c,scroll:u,href:{...p,query:j(f-1>0?f-1:1)},children:(0,l.jsx)(n.Z,{className:"size-4",stroke:"#626467"})})}),h.map((e,t)=>e?(0,l.jsx)(r.Z,{shallow:c,scroll:u,href:{...p,query:j(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===f?"text-white bg-base-600":"border-base-600"),children:e})},e):(0,l.jsx)("li",{children:"..."},"dots_".concat(t))),f<s&&(0,l.jsx)("li",{children:(0,l.jsx)(r.Z,{shallow:c,scroll:u,href:{...p,query:j(f>=s?s:f+1)},children:(0,l.jsx)(a.Z,{className:"size-4",stroke:"#626467"})})})]})}},18351:function(e,t,s){"use strict";s.d(t,{a:function(){return a}});var l=s(85893),r=s(24180);let n=e=>{let{title:t,cms:s}=e;return(0,l.jsx)("div",{className:" border-b py-4 border-base-400",...s,children:(0,l.jsx)("h1",{className:"text-2xl md:text-3xl font-serif-bold",children:t})})};t.Z=n;let a={component:n,childrenType:!1,label:"Заглавие на страница",properties:{title:{label:"Текст",type:r.ip.string}}}},58393: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("&")},18547:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return Z},default:function(){return k}});var l=s(85893),r=s(47248),n=s(9154),a=s(6135),i=s(97399),o=s(54658),c=s(18351),d=s(94514),x=s(97651),u=s(75666),m=s(75994),f=s(24895),h=s(58393);let p=async(e,t)=>{let s=(0,h.n)(t),l="".concat(m.X.apiUrl,"/notifications?").concat(s);return await f.Lp.get(e,l)};var j=s(81627),g=s(9008),w=s.n(g),b=s(11163),v=s(67294),N=s(45007),y=()=>{let{requestPermission:e,token:t,permission:s,isSupported:m}=(0,d.f)(),{query:f}=(0,b.useRouter)(),{page:h}=f,g=(0,j.T_)(),[y,Z]=(0,v.useState)(null),k=(0,N.I0)(),_=async()=>
1{if(!t)return;let e=await p(k,{CurrentPage:Number(h)||1,PerPage:8,Token:t,Topic:r.Xd.domainType});if(e.ok&&e.data){Z(e.data);return}Z({Items:[],TotalPages:0})};return(0,v.useEffect)(()=>{f&&t&&_()},[f,t]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(w(),{children:[(0,l.jsx)("title",{children:g("notifications.page.metaTitle")}),(0,l.jsx)("meta",{name:"robots",content:"noindex, follow"},"robots")]}),(0,l.jsx)("div",{className:"lg:px-6 flex-1",children:(0,l.jsxs)(u.Z,{className:"bg-white px-4 pb-4",children:[(0,l.jsx)(c.Z,{title:g("notifications.page.title")}),"denied"===s&&m&&(0,l.jsx)("div",{className:"text-lg whitespace-pre-wrap font-sans-semibold p-5 bg-secondary/20  rounded-xl w-full max-w-xl my-5 mx-auto ",children:g("notifications.page.deniedText")}),"default"===s&&m&&(0,l.jsxs)("div",{className:"text-lg whitespace-pre-wrap font-sans-semibold p-5 border rounded-xl w-full max-w-xl my-5 mx-auto shadow-lg",children:[(0,l.jsx)("h2",{className:"text-lg font-serif-bold mb-4",children:g("notifications.banner.title")}),(0,l.jsx)("div",{className:"flex justify-center gap-4",children:(0,l.jsx)("button",{onClick:async()=>{await e()},className:"bg-primary text-white px-4 py-2 rounded",children:g("notifications.banner.message")})})]}),y&&0===y.Items.length&&(0,l.jsx)("p",{className:"text-lg text-base-600 text-center p-4",children:g("notifications.page.noResults")}),y&&y.Items.length>0&&(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4",children:[(0,l.jsx)("div",{className:" flex-1",children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"",children:y.Items.map(e=>(0,l.jsx)(a.Z,{href:e.DestinationUrl||"",children:(0,l.jsx)("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:"flex flex-col justify-between flex-1 sm:px-4",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(i.Z,{title:e.Title,titleTag:"h3"}),e.ShortDescription&&(0,l.jsx)("p",{children:e.ShortDescription}),(0,l.jsx)(o.Z,{date:e.CreatedOn})]})})})},e.Id))}),(0,l.jsx)(x.Z,{totalPages:y.TotalPages||0,shallow:!0})]})}),(0,l.jsx)("div",{className:"flex justify-start items-center 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)(n.Z,{})})]})]})})]})},Z=!0,k=()=>(0,l.jsx)(y,{})}},function(e){e.O(0,[291,5987,2888,9774,179],function(){return e(e.s=77576)}),_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.