1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[826],{957:(t,e,r)=>{"use strict";r.d(e,{A:()=>a,N_:()=>s,Qd:()=>n,Zt:()=>i});let a={siteUrl:"https://kursradio.live",about:"/about",soundcloud:"https://soundcloud.com/kurs_radio",youtube:"https://www.youtube.com/@KURSradio",telegram:"https://t.me/kurs_radio",chat:"https://t.me/+huvEH1T0mys5ZmQ6",stream:"https://listen9.myradio24.com/kursradio",support:"https://boosty.to/kurs_radio/donate",airtimeAPI:"https://kursradio.airtime.pro/api/live-info-v2",aeza:"https://aeza.net/ru",kultura:"https://kulturarecordstore.ru/",store:"https://kulturarecordstore.ru/store?tfc_sort%5B197833805%5D=created:desc&tfc_storepartuid%5B197833805%5D=KURS+Radio&tfc_div=:::"},n=90,i=[8,20],s=14},2947:(t,e,r)=>{"use strict";r.d(e,{P:()=>n});let a=r(8400).A.create({baseURL:"".concat("https://api.kursradio.live","/api/broadcasts")}),n={getBroadcastsById:async t=>(await a.get("/".concat(t))).data,getSearchBroadcasts:async t=>(await a.get("/search",{params:t})).data,getSchedule:async()=>(await a.get("/schedule")).data,getStreamUrl:async t=>(await a.get("/".concat(t,"/audio-stream-url"))).data.streamUrl}},3555:(t,e,r)=>{"use strict";r.d(e,{default:()=>h});var a=r(4289),n=r(8875),i=r(957),s=r(7829);let o=[i.Zt[0]+3,i.Zt[1]+3];function l(t){return"".concat(t.getFullYear(),"-").concat((t.getMonth()+1).toString().padStart(2,"0"),"-").concat(t.getDate().toString().padStart(2,"0"))}function u(t){let{event:e}=t,{top:r,height:n}=function(t,e){let r=60*o[0],a=(o[1]-o[0])*60,n=t=>{let e=60*t.getHours()+t.getMinutes();return e<r?e+1440-r:e-r},i=n(t.start);return{top:i/60*e+1,height:Math.max((Math.min(n(t.end),a)-i)/60*e-1,1)}}(e,i.Qd);return(0,a.jsxs)("div",{className:(0,s.cn)("text-foreground bg-gray-light text-tag absolute left-0 box-border flex h-[80px] w-full flex-col justify-between overflow-hidden p-2 leading-93",e.isCurrent&&"bg-primary-dark-blue border-primary-dark-blue text-white"),style:{top:"".concat(r,"px"),height:"".concat(n,"px")},children:[(0,a.jsxs)("div",{className:"text-14 mb-1",children:[e.start.toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),"â",e.end.toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"})]}),(0,a.jsxs)("div",{className:"text-base leading-108 text-ellipsis",children:[e.title,e.host&&(0,a.jsx)("div",{children:e.host})]})]})}function c(t){let{day:e}=t,r=function(t){let e=t.toLocaleDateString("en-US",{weekday:"long"}),r=t.toLocaleDateString("en-US",{day:"2-digit"}),a=t.toLocaleDateString("en-US",{month:"long"});return{weekday:(0,s.ZH)(e),day:r,month:a}}(e.date);return(0,a.jsxs)("div",{className:"mr-[10px] flex min-w-[238px] snap-start flex-col overflow-hidden last:mr-0 md:min-w-[320px]",children:[(0,a.jsxs)("div",{className:"md:text-26 relative z-1 box-border h-[35px] text-center text-[20px] text-[#6b7280]",children:[(0,a.jsxs)("span",{className:"text-black",children:[r.month," ",r.day,","]})," ",r.weekday]}),(0,a.jsx)("div",{className:"relative flex-1",children:e.events.map(t=>(0,a.jsx)(u,{event:t},t.id))})]})}function d(t){let{days:e}=t,r=function(){let t=[];for(let e=o[0];e<=o[1];e++){let r=e%24;r<0&&(r=(r+24)%24);let a=r.toString().padStart(2,"0");t.push("".concat(a,":00"))}return t}();return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"text-[12px] text-[#111827]",children:[(0,a.jsx)("div",{className:"relative z-1 h-[35px]",children:(0,a.jsx)("span",{className:"text-14 absolute top-0.5 left-3 h-[35px] text-[#6b7280] md:text-[20px]",children:"GMT+3"})}),r.slice(0,-1).map(t=>(0,a.jsx)("div",{style:{height:i.Qd},className:"box-border flex items-start border-t border-black pt-2 pl-3 text-[20px] leading-93",children:t},t))]}),(0,a.jsx)("div",{className:"absolute top-0 left-[80px] h-full w-[calc(100%-80px)]",children:(0,a.jsx)("div",{className:"no-scrollbar flex h-full w-auto [scroll-snap-type:x_mandatory] flex-nowrap overflow-scroll",children:e.map(t=>(0,a.jsx)(c,{day:t},t.date.toDateString()))})})]})}function h(){let{data:t}=(0,n.Gh)(),e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.N_,a=new Map;if(t&&t.length){for(let e of t){let t=l(new Date(e.startTime));a.has(t)||a.set(t,[]),a.get(t).push(function(t){var e,r,a;let n=new Date(t.startTime),i=new Date(t.endTime),s=(null!=(a=t.authors)?a:[]).map(t=>
1t.name).filter(Boolean),o=function(t){if(0===t.length)return"";if(1===t.length)return t[0];if(2===t.length)return"".concat(t[0]," & ").concat(t[1]);let e=t.slice(0,-1).join(", "),r=t[t.length-1];return"".concat(e," & ").concat(r)}(s),l=(null==(e=t.show)?void 0:e.name)||(null==(r=t.kursEvent)?void 0:r.name)||o||"Untitled",u=t.show&&s.length?"w/ ".concat(o):null,c=new Date;return{id:t.id,title:l,host:u,start:n,end:i,isCurrent:c>=n&&c<i}}(e))}for(let[,t]of a)t.sort((t,e)=>t.start.getTime()-e.start.getTime())}let n=[];for(let t=0;t<r;t++){var s;let r=function(t,e){let r=new Date(t);return r.setDate(r.getDate()+e),r}(e,t),i=l(r);n.push({date:r,events:null!=(s=a.get(i))?s:[]})}return n}(t);return(0,a.jsx)("div",{className:"relative bg-white text-[#0a0a0a]",children:(0,a.jsx)(d,{days:e})})}},5376:(t,e,r)=>{Promise.resolve().then(r.bind(r,1570)),Promise.resolve().then(r.bind(r,9784)),Promise.resolve().then(r.bind(r,4946)),Promise.resolve().then(r.bind(r,1675)),Promise.resolve().then(r.bind(r,1401)),Promise.resolve().then(r.bind(r,5215)),Promise.resolve().then(r.bind(r,1688)),Promise.resolve().then(r.bind(r,1805)),Promise.resolve().then(r.bind(r,4110)),Promise.resolve().then(r.bind(r,5089)),Promise.resolve().then(r.bind(r,9241)),Promise.resolve().then(r.bind(r,1393)),Promise.resolve().then(r.bind(r,4817)),Promise.resolve().then(r.bind(r,3555))},7829:(t,e,r)=>{"use strict";r.d(e,{DT:()=>s,ZH:()=>o,Zy:()=>l,cn:()=>i,fU:()=>u,m6:()=>c,pU:()=>d,u:()=>h});var a=r(6783),n=r(9061);let i=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return(0,n.QP)((0,a.$)(e))},s=()=>{let t=new Date,e=new Date(t);return e.setSeconds(0,0),t.getMinutes()>=1&&e.setHours(t.getHours()+1),e.setMinutes(0),e.getTime()-t.getTime()};function o(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,e){return Number.isFinite(t)?Math.floor(t):e}function u(t){if(!Number.isFinite(t))return"00:00:00";let e=Math.max(0,Math.floor(t)),r=Math.floor(e/3600),a=Math.floor(e%3600/60);return"".concat(r.toString().padStart(2,"0"),":").concat(a.toString().padStart(2,"0"),":").concat((e%60).toString().padStart(2,"0"))}function c(t,e){var r,a,n;let i=0===(n=(null!=(a=t.authors)?a:[]).map(t=>t.name).filter(Boolean)).length?"":1===n.length?n[0]:2===n.length?n.join(" & "):"".concat(n.slice(0,-1).join(", ")," & ").concat(n.at(-1)),s=(null==(r=t.show)?void 0:r.name)||(null==e?void 0:e.fallbackShowName)||"";return s?{title:s,authorsText:i?"w/ ".concat(i):""}:{title:i||"",authorsText:""}}function d(t,e){let{title:r,authorsText:a}=c(t,e),n=h(t.startTime),i=n?new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"2-digit",year:"2-digit"}).format(n):"";return[[r,a].filter(Boolean).join(" "),i].filter(Boolean).join(" ")}function h(t){if(!t)return null;let e=new Date(t);return Number.isNaN(e.getTime())?null:e}},8875:(t,e,r)=>{"use strict";r.d(e,{Gh:()=>l,T4:()=>o,xT:()=>u});var a=r(5089),n=r(1401),i=r(7829),s=r(2947);function o(t){return(0,a.useQuery)({queryKey:["broadcasts",t],queryFn:()=>s.P.getSearchBroadcasts(t)})}function l(){return(0,a.useQuery)({queryKey:["schedule"],queryFn:()=>s.P.getSchedule()})}function u(t){return(0,n.useInfiniteQuery)({queryKey:["broadcasts","infinite",t],queryFn:e=>{let{pageParam:r}=e,a=(0,i.Zy)("number"==typeof r?r:0,0);return s.P.getSearchBroadcasts({...t,page:a})},initialPageParam:0,getNextPageParam:t=>{let e=(0,i.Zy)(t.number,0),r=(0,i.Zy)(t.totalPages,0),a=e+1;if(!(r<=0)&&!(a>=r))return a}})}}},t=>{t.O(0,[579,400,329,291,864,279,358],()=>t(t.s=5376)),_N_E=t.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.