PageSourceSearch

https://tatarstan24.tv/_next/static/chunks/1982-cf62bd1a23e5b45b.js

js tatarstan24.tv collected 2026-10-02 06:19:37 UTC 15,144 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1982],{29783:function(e,t,n){"use strict";n.d(t,{H:function(){return a},q:function(){return s}});var r=n(10055);let s=async(e,t)=>{try{return(await r.Z.get("/api/ads/getAdsBanner",{params:{type:e,limit:t}})).data}catch(e){return{error:!0}}},a=async e=>{try{await r.Z.get("/api/ads/clickAdsBanner",{params:{id:e}})}catch(e){return{error:!0}}}},15337:function(e,t,n){"use strict";n.d(t,{CF:function(){return u},IM:function(){return s},Jo:function(){return l},TA:function(){return a},ci:function(){return c},li:function(){return o},tW:function(){return i}});var r=n(10055);let s=async e=>{try{return(await r.Z.get("/api/news/getListNewsOnSearch",{params:{text:e}})).data}catch(e){return{error:!0}}},a=async(e,t)=>{try{return(await r.Z.get("/api/news/getListNews",{params:{count:e,time:t}})).data}catch(e){return{error:!0}}},i=async()=>{try{return(await r.Z.get("/api/news/getLastNews")).data}catch(e){return{error:!0}}},c=async(e,t,n)=>{try{return(await r.Z.get("/api/news/getNewsOnTheme",{params:{link:e,count:t,time:n}})).data}catch(e){return{error:!0}}},l=async(e,t,n)=>{try{return(await r.Z.get("/api/news/getNewsOnAuthor",{params:{id:e,count:t,time:n}})).data}catch(e){return{error:!0}}},o=async e=>{try{return(await r.Z.get("/api/news/getComments",{params:{id:e}})).data}catch(e){return{error:!0}}},u=async(e,t,n,s)=>{try{await r.Z.post("/api/news/sendComment",{id:e,text:t}),n()}catch(e){return s(e.response.data.message)}}},7345:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(57437),s=n(2265);n(83834);var a=n(16480),i=n.n(a),c=n(20703);n(34018);var l=n(90306),o=n(29783);function u(e){let{data:t,isRight:n}
1=e,a=(0,s.useRef)(null),[u,d]=(0,s.useState)(0),[h,f]=(0,s.useState)(0),[w,x]=(0,s.useState)(window.innerWidth);(0,s.useEffect)(()=>(window.addEventListener("scroll",p),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",C)}),[]);let p=()=>{if(a.current){let e=window.scrollY,t=document.body.scrollHeight-a.current.clientHeight-40-513;d(e),f(t)}},C=()=>x(window.innerWidth),g=()=>{(0,o.H)(t.id),window.open(t.url,"_blank")},m="";m=u>80?u>h?"bottom":"fixed":"top";let v=((w-1440)/2-200)/2,j={};return(j=n?{right:"".concat(v,"px")}:{left:"".concat(v,"px")},v<=5)?null:(0,r.jsx)("button",{ref:a,className:i()("FixedAd",m),style:j,onClick:()=>{g()},children:(0,r.jsx)("div",{className:"item",children:(0,r.jsx)(c.default,{src:(0,l.Z)("/public/ads/banners/".concat(t.id,"/image.png")),width:512,height:512,alt:"",layout:"intrinsic",className:"icon"})})})}function d(){let[e,t]=(0,s.useState)(!1),[n,a]=(0,s.useState)([]);return((0,s.useEffect)(()=>{(async function(){let e=await (0,o.q)(1,2);!e.error&&(e.banners<1||(a(e.banners),t(!0)))})()},[]),e)?(0,r.jsxs)(s.Fragment,{children:[n[0]&&(0,r.jsx)(u,{data:n[0],isRight:!1}),n[1]&&(0,r.jsx)(u,{data:n[1],isRight:!0})]}):null}},34018:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(57437),s=n(16480),a=n.n(s);function i(e){let{isVideo:t=!1,isBlack:n=!1,isAdaptive:s=!1}=e;return(0,r.jsx)("div",{className:a()("ContainerOpen",{video:t},{black:n},{adaptive:s}),children:t?(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9895 5.14668L4.00153 0.284373C2.66418 -0.529167 1 0.500109 1 2.13789V11.862C1 13.5019 2.66418 14.5291 4.00153 13.7155L11.9895 8.85566C13.3369 8.03572 13.3369 5.96662 11.9895 5.14668Z",fill:"white"})}):(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M1.34428 12.6568L12.658 1.34307M12.658 1.34307L2.85951 1.24205M12.658 1.34307L12.759 11.1415",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}n(51925)},5728:function(e,t,n){"use strict";n.r(t);var r=n(57437),s=n(2265),a=n(16480),i=n.n(a);n(72624),t.default=()=>{let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{localStorage.getItem("cookieAccepted")||setTimeout(()=>t(!0),100)},[]),(0,r.jsxs)("div",{className:i()("cookie-popup",{visible:e}),children:[(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1166 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.75 2.24167 9.52498 2.725 8.32498C3.20833 7.12498 3.88333 6.05414 4.75 5.11248C5.61667 4.17081 6.65833 3.41248 7.875 2.83748C9.09167 2.26248 10.425 1.97498 11.875 1.97498C12.225 1.97498 12.5833 1.99164 12.95 2.02498C13.3167 2.05831 13.6917 2.11664 14.075 2.19998C13.925 2.94998 13.975 3.65831 14.225 4.32498C14.475 4.99164 14.85 5.54581 15.35 5.98748C15.85 6.42914 16.4458 6.73331 17.1375 6.89998C17.8292 7.06664 18.5417 7.02498 19.275 6.77498C18.8417 7.75831 18.9042 8.69998 19.4625 9.59998C20.0208 10.5 20.85 10.9666 21.95 11C21.9667 11.1833 21.9792 11.3541 21.9875 11.5125C21.9958 11.6708 22 11.8416 22 12.025C22 13.3916 21.7375 14.6791 21.2125 15.8875C20.6875 17.0958 19.975 18.1541 19.075 19.0625C18.175 19.9708 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM10.5 9.99998C10.9167 9.99998 11.2708 9.85414 11.5625 9.56248C11.8542 9.27081 12 8.91664 12 8.49998C12 8.08331 11.8542 7.72914 11.5625 7.43748C11.2708 7.14581 10.9167 6.99998 10.5 6.99998C10.0833 6.99998 9.72917 7.14581 9.4375 7.43748C9.14583 7.72914 9 8.08331 9 8.49998C9 8.91664 9.14583 9.27081 9.4375 9.56248C9.72917 9.85414 10.0833 9.99998 10.5 9.99998ZM8.5 15C8.91667 15 9.27083 14.8541 9.5625 14.5625C9.85417 14.2708 10 13.9166 10 13.5C10 13.0833 9.85417 12.7291 9.5625 12.4375C9.27083 12.1458 8.91667 12 8.5 12C8.08333 12 7.72917 12.1458 7.4375 12.4375C7.14583 12.7291 7 13.0833 7 13.5C7 13.9166 7.14583 14.2708 7.4375 14.5625C7.72917 14.8541 8.08333 15 8.5 15ZM15 16C15.2833 16 15.5208 15.9041 15.7125 15.7125C15.9042 
115.5208 16 15.2833 16 15C16 14.7166 15.9042 14.4791 15.7125 14.2875C15.5208 14.0958 15.2833 14 15 14C14.7167 14 14.4792 14.0958 14.2875 14.2875C14.0958 14.4791 14 14.7166 14 15C14 15.2833 14.0958 15.5208 14.2875 15.7125C14.4792 15.9041 14.7167 16 15 16ZM12 20C14.0333 20 15.8375 19.3 17.4125 17.9C18.9875 16.5 19.85 14.7166 20 12.55C19.1667 12.1833 18.5125 11.6833 18.0375 11.05C17.5625 10.4166 17.2417 9.70831 17.075 8.92498C15.7917 8.74164 14.6917 8.19164 13.775 7.27498C12.8583 6.35831 12.2917 5.25831 12.075 3.97498C10.7417 3.94164 9.57083 4.18331 8.5625 4.69998C7.55417 5.21664 6.7125 5.87914 6.0375 6.68748C5.3625 7.49581 4.85417 8.37498 4.5125 9.32498C4.17083 10.275 4 11.1666 4 12C4 14.2166 4.77917 16.1041 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20Z",fill:"black"})}),(0,r.jsx)("div",{className:"text",children:"Этот сайт использует cookie для хранения данных. Продолжая использовать сайт, Вы даете согласие на работу с этими файлами."}),(0,r.jsx)("button",{onClick:()=>{localStorage.setItem("cookieAccepted","true"),t(!1)},children:"Принять и закрыть"})]})}},42560:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(57437),s=n(2265),a=n(20703),i=n(8792);n(29367);var c={src:"/_next/static/media/background_logo.22e66e46.svg",height:80,width:414,blurWidth:0,blurHeight:0},l={src:"/_next/static/media/logo.6aa0e121.svg",height:39,width:298,blurWidth:0,blurHeight:0};function o(e){let{isOpenSearch:t,setIsOpenSearch:n,searchText:a,setSearchText:i}=e,[c,l]=(0,s.useState)(Date.now()),o=e=>{c>Date.now()||(n(e),l(Date.now()+500))};return(0,r.jsx)("div",{className:"header-search",children:(0,r.jsx)("div",{className:"search",children:(0,r.jsx)("button",{className:"container ".concat(t?"open":""),onClick:()=>{o(!0)},children:(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)("svg",{className:"icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8.45744 16.9149C9.91021 16.9163 11.3385 16.5409 12.6029 15.8255L16.1104 19.3327C16.5377 19.76 17.1172 20 17.7215 20C18.3258 20 18.9054 19.76 19.3326 19.3327C19.7599 18.9054 20 18.326 20 17.7217C20 17.1175 19.7599 16.538 19.3326 16.1107L15.8251 12.6035C16.8282 10.8229 17.1522 8.73923 16.7373 6.73812C16.3224 4.73702 15.1966 2.95392 13.5683 1.71878C11.94 0.483647 9.91933 -0.119913 7.88028 0.0197868C5.84123 0.159487 3.9218 1.03299 2.47717 2.47866C1.29437 3.66132 0.48886 5.16815 0.162519 6.80858C-0.163823 8.449 0.00365857 10.1494 0.643783 11.6946C1.28391 13.2399 2.36792 14.5606 3.75875 15.4898C5.14957 16.419 6.78473 16.915 8.45744 16.9149ZM3.96566 3.96702C5.0048 2.92845 6.37192 2.28226 7.8341 2.13855C9.29628 1.99485 10.7631 2.36251 11.9845 3.17891C13.206 3.99531 14.1066 5.20992 14.5329 6.61583C14.9592 8.02173 14.8848 9.53194 14.3224 10.8892C13.76 12.2464 12.7444 13.3666 11.4486 14.059C10.1528 14.7515 8.65701 14.9732 7.21603 14.6865C5.77505 14.3999 4.47805 13.6225 3.54601 12.4868C2.61396 11.3512 2.10454 9.92752 2.10453 8.45842C2.10198 7.62386 2.26518 6.7971 2.58466 6.0261C2.90415 5.2551 3.37356 4.55521 3.96566 3.96702Z",fill:"white"})}),t&&(0,r.jsx)("input",{type:"text",value:a,onChange:e=>{i(e.target.value)},placeholder:"Поисковый запрос",onBlur:()=>{o(!1)},autoFocus:!0})]})})})})}n(21721);var u=n(34018),d=n(90306),h=n(15337),f=n(70066);function w(){let[e,t]=(0,s.useState)(!1),[n,w]=(0,s.useState)(""),[x,p]=(0,s.use
1State)([]),C=async e=>{let t=await (0,h.IM)(e);if(t.error)return p([]);p(t.list)};(0,s.useEffect)(()=>{e?C(""):(w(""),p([]))},[e]),(0,s.useEffect)(()=>{e&&(p([]),C(n))},[e,n]);let g=x.map((e,t)=>(0,r.jsxs)(i.default,{href:"/news/".concat(e.url),className:"item",children:[(0,r.jsx)("div",{className:"icon",children:(0,r.jsx)("div",{className:"img-background",children:(0,r.jsx)(a.default,{src:(0,d.Z)("/public/news/".concat(e.id,"/cover.png")),fill:!0,sizes:d.e.thumb,alt:""})})}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)("span",{className:"title",children:e.title}),(0,r.jsxs)("div",{className:"info",children:[(0,r.jsx)("span",{children:(0,f.XT)(e.time_published)}),(0,r.jsx)("span",{children:(0,f._3)(e.time_published)}),(0,r.jsx)("span",{children:e.theme})]}),(0,r.jsx)(u.Z,{})]})]},t));return(0,r.jsxs)("header",{children:[(0,r.jsxs)("div",{className:"container",children:[(0,r.jsxs)("div",{className:"left-content",children:[(0,r.jsxs)("div",{className:"logo",children:[(0,r.jsx)(a.default,{src:c,width:414,height:80,alt:"",className:"background"}),(0,r.jsx)(i.default,{href:"/",className:"logo",children:(0,r.jsx)(a.default,{src:l,width:298,height:39,alt:""})})]}),!e&&(0,r.jsxs)("nav",{children:[(0,r.jsx)(i.default,{href:"/news",children:"Новости"}),(0,r.jsx)(i.default,{href:"/themes/articles",children:"Статьи"}),(0,r.jsx)(i.default,{href:"/themes/incidents",children:"Происшествия"}),(0,r.jsx)(i.default,{href:"/contacts",children:"Контакты"})]})]}),(0,r.jsxs)("div",{className:"right-content",children:[(0,r.jsx)("div",{className:"background-container",children:(0,r.jsx)("div",{className:"background"})}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)(o,{isOpenSearch:e,setIsOpenSearch:e=>{t(e)},searchText:n,setSearchText:e=>{w(e)}}),(0,r.jsx)("nav",{children:(0,r.jsx)(i.default,{href:"/live",children:(0,r.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_3767_3936)",children:[(0,r.jsx)("path",{d:"M5 39H34",stroke:"white",strokeWidth:"2",strokeLinecap:"round"}),(0,r.jsx)("rect",{x:"1",y:"1",width:"38",height:"34",rx:"9",stroke:"white",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M19.744 15.944H16.288V25H13.664V15.944H10.192V13.64H19.744V15.944ZM22.6735 13.64L25.3455 21.928L27.9855 13.64H30.7535L26.6255 25H24.0495L19.8895 13.64H22.6735Z",fill:"white"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_3767_3936",children:(0,r.jsx)("rect",{width:"40",height:"40",fill:"white"})})})]})})})]})]})]}),e&&g.length>0&&(0,r.jsx)("div",{className:"search-list",onMouseDown:e=>{e.preventDefault()},children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"list",children:g})})})]})}},71992:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2265),s=n(47907);function a(){let e=(0,s.usePathname)(),t=(0,s.useSearchParams)(),n=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(n.current){n.current=!1;return}"undefined"!=typeof document&&function(){let e="undefined"==typeof screen?"":";s".concat(screen.width,"*").concat(screen.height,"*").concat(screen.colorDepth||screen.pixelDepth);new Image().src="https://counter.yadro.ru/hit?r="+e+";u".concat(escape(document.URL))+";h".concat(escape(document.title.substring(0,150)))+";".concat(Math.random())}()},[e,t]),null}},50318:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2265),s=n(47907);function a(){let e=(0,s.usePathname)(),t=(0,s.useSearchParams)();return(0,r.useEffect)(()=>{let n="".concat(e,"?").concat(t);ym(45623958,"hit",n)},[e,t]),null}},10055:function(e,t,n){"use strict";var r=n(73107),s=n(56329);let a=r.Z.create({timeout:5e3}),i=()=>s.JA,c=e=>{try{return new URL(e).origin}catch(e){return null}};a.interceptors.request.use(e=>{"undefined"!=typeof FormData&&e.data instanceof FormData&&(e.timeout=0);let t=i(),n=c(t),r=c(s.JA),a=c(s.Tg),l=e.url||"";if(/^https?:\/\//i.test(l)){let s=c(l);if(s===r||s===a)try{let n=new URL(l);n.protocol=new URL(t).protocol,n.host=new URL(t).host,e.url=n.toString()}catch(t){e.url=l.replace(r,n).replace(a,n)}return e}try{let n=new URL(l,t).toString();e.url=n,e.baseURL=void 0}catch(n){e.baseURL=t}return e}),t.Z=a},90306:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},e:function(){return i}});var r=n(56329);let s=r.kG||r.JA;function a(e){return"".concat(s).concat(e)}let i={hero:"(max-width: 768px) 100vw, (max-width: 1440px) 66vw, 960px",card:"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 480px",thumb:"(max-width: 768px) 120px, 280px"}},70066:function(e,t,n){"use strict";n.d(t,{$9:function(){return i},PC:function(){return a},XT:function(){return r},_3:function(){return s}});let r=e=>{let t=new Date(e),n="0"+t.getHours(),r="0"+t.getMinutes();return"".concat(n.substr(-2),":").concat(r.substr(-2))},s=e=>{let t=new Date(e),n=t.getFullYear(),r="0"+(t.getMonth()+1),s="0"+t.getDate();return"".concat(s.substr(-2),".").concat(r.substr(-2),".").concat(n)},a=e=>{let t=new Date(e),n=t.getFullYear(),r="0"+(t.getMonth()+1),s="0"+t.getDate();return"".concat(s.substr(-2),".").concat(r.substr(-2),".").concat(n.toString().slice(2))},i=e=>{var t=(e=new Date(e)).getDay(),n=e.getDate()-t+(0==t?-6:1);return new Date(e.setDate(n))}},83834:function(){},51925:function(){},72624:function(){},88563:function(){},29367:function(){},21721:function(){},56329:function(e){"use strict";e.exports=JSON.parse('{"Tg":"http://127.0.0.1:1234","JA":"https://tatarstan24.tv","kG":"http://127.0.0.1:1234","AZ":1024,"Ol":768}')}}]);

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.