PageSourceSearch

https://buddha.forum/_next/static/chunks/pages/events-bd790686c63580b9.js

js buddha.forum collected 2026-10-07 00:17:01 UTC 12,043 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4787],{95196:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var l,a=s(96540);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var l in s)({}).hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e}).apply(null,arguments)}let c=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),l||(l=a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m12 4-8 8M4 4l8 8"})))}},7370:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/events",function(){return s(12780)}])},66992:(e,t,s)=>{"use strict";s.d(t,{cx:()=>x,n7:()=>r});var l=s(33934),a=s(4020);let{useGetAllEventsQuery:n,useGetEventByIdQuery:c,usePayEventMutation:r,useGetEventsQuery:i}=l.q.injectEndpoints({endpoints:e=>({getAllEvents:e.query({query:e=>{let{fields:t="",populate:s="",filter:l="",page:a=1,pageSize:n=12}=e;return{url:"/events?".concat(s,"&").concat(t,"&").concat(l,"&pagination[page]=").concat(a,"&pagination[pageSize]=").concat(n),method:"GET"}},providesTags:[a.DV]}),getEvents:e.query({query:e=>({url:"/events?".concat(e),method:"GET"})}),getEventById:e.query({query:e=>{let{id:t}=e;return{url:"/events/".concat(t,"?populate=review_rating,preview_image,images&populate=hall.seats&populate=schedules&populate=place, tickets.seats, website_link, organization"),method:"GET"}},providesTags:[a.DV]}),payEvent:e.mutation({query:e=>({url:"/event-payment",method:"POST",body:e}),transformResponse(e){e&&"object"==typeof e&&"redirect_url"in e&&"string"==typeof e.redirect_url&&(window.location.href=e.redirect_url)},invalidatesTags:[a.Q5,a.DV]})})});var o=s(74848),d=s(62666),u=s(91106),h=s.n(u);let x=e=>{let{events:t}=e;return(0,o.jsxs)(o.Fragment,{children:[0===t.length&&(0,o.jsxs)("p",{className:"text-center",children:["Подходящих событий не найдено",(0,o.jsx)("br",{}),"Попробуйте выбрать другой фильтр"]}),(0,o.jsx)("div",{className:"flex-1 list-grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:null==t?void 0:t.map(e=>{var t,s;return(0,o.jsx)(h(),{href:"/events/".concat(e.id),children:(0,o.jsx)(d.Zp,{image:e.preview_image,aspect:"1/1.77",bottom:(0,o.jsxs)("div",{className:"flex gap-2 flex-wrap justify-center",children:[(0,o.jsx)(d.wF,{children:null==e?void 0:e.type}),(0,o.jsx)(d.wF,{children:(null==e?void 0:null===(t=e.schedules[0])||void 0===t?void 0:t.price)!==0?"от ".concat(null==e?void 0:null===(s=e.schedules[0])||void 0===s?void 0:s.price," ₽"):"Бесплатное"})]}),children:(0,o.jsx)("h2",{className:"title text-sm lg:text-lg line-clamp-2",children:null==e?void 0:e.title})})},e.id)})})]})};s(96540),s(62330),s(30501)},12780:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>C,default:()=>E});var l=s(74848),a=s(62666),n=s(66992),c=s(86452),r=s(12573),i=s(96540);let o=["кино","театр","выступление","встреча","праздник","мастер класс"];var d=s(55373),u=s.n(d),h=s(86715),x=s(95196),m=s(10107);let p=()=>{let[e,t]=(0,i.useState)([]),s=e.length>=1,[a,n]=(0,i.useState)(!1),c=(0,h.useRouter)();function r(){t([])}return(0,i.useEffect)(()=>{let t=u().stringify({filters:{$or:e.map(e=>({$or:[{type:e}]}))}});c.push({pathname:c.pathname,query:{...c.query,types:t}})},[e]),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2 mt-6",children:[s?(0,l.jsx)("div",{className:"btn bg-custom-gray rounded-full custom-shadow-btn ",onClick:r,children:(0,l.jsx)(x.A,{className:"w-4 h-4 text-black"})}):null,(0,l.jsxs)("details",{className:"dropdown ".concat(a?"dropdown-open":""),onToggle:e=>n(e.currentTarget.open),children:[(0,l.jsxs)("summary",{className:"btn ".concat(s?"bg-gray-100":"bg-white"," px-6 py-3 rounded-full custom-shadow-btn"),onClick:()=>n(e=>!e),children:[(0,l.jsx)("div",{className:"transition-transform duration-300 ease-in-out",children:s?(0,l.jsx)("div",{onClick:r,children:(0,l.jsx)(x.A,{className:"w-4 h-4 text-gray-500"})}):(0,l.jsx)(m.A,{})}),(0,l.jsx)("span",{children:"Фильтры"}),(0,l.jsx)("span",{className:"font-medium text-gray-500",children:s?e.length:""})]}),(0,l.jsxs)("div",{className:"p-2 mt-3 w-[296] menu dropdown-content z-[1] bg-base-100 rounded-xl max-h-[70vh] custom-shadow-btn overflow-y-auto flex-nowrap",children:[(0,l.jsxs)("label",{className:"space-x-2 cursor-pointer label",children:[(0,l.jsx)("span",{className:"label-text",children:"Все"}),(0,l.jsx)("input",{type:"checkbox",onChange:r,checked:0===e.length,className:"checkbox checkbox-custom"})]}),o.map(s=>(0,l.jsxs)("label",{className:"space-x-2 cursor-pointer label text-nowrap",children:[(0,l.jsx)("span",{className:"label-text",children:s}),(0,l.jsx)("input",{onChange:()=>(function(e){t(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(s),type:"checkbox",checked:null==e?void 0:e.some(e=>e===s),className:"checkbox checkbox-custom"})]},s))]})]})]})};var g=s(30501),j=s(44641);let f=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],b=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],v=e=>{let{className:t="",defaultDate:s}=e,[n,c]=(0,i.useState)(),r=(0,h.useRouter)(),{query:o}=r;function d(e){(null==e?void 0:e.toSeconds())===(null==n?void 0:n.toSeconds())?(c(void 0),r.push({pathname:r.pathname,query:{...o,filters:void 0}})):e&&(c(e),r.push({pathname:r.pathname,query:{...r.query,date:e.toISODate()}}))}(0,i.useEffect)(()=>{s&&d(j.c9.fromFormat(s,"yyyy-MM-dd"))},[s]);let u=(0,i.useMemo)(()=>(0,g.Ck)(),[]),x=Object.keys(u),m=j.c9.local().month,p=x.indexOf(m.toString()),v=x.slice(p).concat(x.slice(0,p));return(0,l.jsx)(a.ox,{children:(0,l.jsx)("div",{className:t+"flex gap-8 mt-9",children:v.map(e=>(0,l.jsxs)("ul",{className:"relative flex gap-2 ",children:[(0,l.jsx)("span",{className:"absolute left-0 ml-2 text-custom-light-gray bottom-full font-normal text-base",children:b[Number(e)-1]}),u[Number(e)].days.map(e=>(0,l.jsxs)("li",{onClick:()=>{d(e)},className:"flex flex-col items-center gap-1 py-1 cursor-pointer rounded select-none mt-2 w-[2.5rem] ".concat((null==n?void 0:n.toISODate())===e.toISODate()?"bg-primary":"hover:bg-base-200"),children:[(0,l.jsx)("span",{className:"text-lg font-medium fb ".concat((null==n?void 0:n.toISODate())===e.toISODate()?"text-white":"text-black"),children:e.day}),(0,l.jsx)("span",{className:"text-xs font-normal fb ".concat((null==n?void 0:n.toISODate())===e.toISODate()?"text-white":e.weekday>5?"text-error":"text-[#7f7f7f]"),children:f[e.weekday-1]})]},e.toSeconds()))]},e))})})};var y=s(76424),N=s(17926),w=s(31446),k=s(4853),S=s(97366);s(28943);let _=()=>{let[e,t]=(0,i.useState)(!1),[s,a]=(0,i.useState)([]),n=s.length>=1,c=(0,h.useRouter)();function r(){a([])}return(0,i.useEffect)(()=>{let e=u().stringify({filters:{$or:s.map(e=>({$or:[{type:e}]}))}});c.push({pathname:c.pathname,query:{...c.query,types:e}})},[s]),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2 justify-start items-center relative mt-6",children:[n?(0,l.jsx)("div",{className:"btn bg-custom-gray rounded-full custom-shadow-btn",onClick:r,children:(0,l.jsx)(x.A,{className:"w-4 h-4 text-black"})}):null,(0,l.jsxs)("button",{className:"btn ".concat(n?"bg-gray-100":"bg-white"," px-6 py-3 rounded-full custom-shadow-btn flex items-center gap-2"),onClick:()=>t(!0),children:[(0,l.jsx)("div",{className:"transition-transform duration-300 ease-in-out",children:n?(0,l.jsx)("div",{onClick:r,className:"flex items-center",children:(0,l.jsx)(x.A,{className:"w-4 h-4 text-gray-500"})}):(0,l.jsx)(m.A,{})}),(0,l.jsx)("span",{children:"Фильтры"}),n&&(0,l.jsx)("span",{className:"font-medium text-gray-500",children:s.length})]}),(0,l.jsx)(S.X,{open:e,onDismiss:()=>t(!1),snapPoints:e=>{let{maxHeight:t}=e;return[.8*t]},className:"z-[1000]",children:(0,l.jsxs)("div",{className:"p-4",children:[(0,l.jsxs)("label",{className:"space-x-2 cursor-pointer label",children:[(0,l.jsx)("span",{className:"label-text",children:"Все"}),(0,l.jsx)("input",{type:"checkbox",onChange:r,checked:!n,className:"checkbox checkbox-custom"})]}),o.map(e=>(0,l.jsxs)("label",{className:"space-x-2 cursor-pointer label text-nowrap",children:[(0,l.jsx)("span",{className:"label-text",children:e}),(0,l.jsx)("input",{onChange:()=>(function(e){a(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e),type:"checkbox",checked:s.includes(e),className:"checkbox checkbox-custom"})]},e))]})})]})};
1var C=!0;function E(e){let t=(0,y.useSearchParams)(),s=(null==t?void 0:t.get("date"))||null,{width:i}=(0,N.vh)(),o=(0,c.G)(r.Wx),{events:d,pagination:u}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(k.bV,{title:"События",description:"Афиша мероприятий и событий в Калмыкии. Выберите интересные события и запланируйте свой отдых.",canonical:"".concat("https://mbf.prod.digital08.ru","/events"),openGraph:{url:"".concat("https://mbf.prod.digital08.ru","/events"),title:"События",description:"Афиша мероприятий и событий в Калмыкии. Выберите интересные события и запланируйте свой отдых."}}),(0,l.jsx)("div",{className:"app-container-s",children:(0,l.jsxs)("section",{children:[(0,l.jsx)(a.rX,{crumbs:[{path:"/",title:"Главная"},{path:"/events",title:"Афиша"}]}),!o&&(0,l.jsx)(a.hE,{children:"Афиша"}),(0,l.jsx)(v,{defaultDate:s}),i>=1024?(0,l.jsx)(p,{}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(_,{})}),(0,l.jsxs)("div",{className:"flex-1 mt-4",children:[d&&(0,l.jsx)(n.cx,{events:d}),!e&&(0,l.jsx)("div",{className:"flex items-center justify-center w-full h-full",children:(0,l.jsx)(a.Rh,{size:"lg"})})]}),u&&u.pageCount>1&&(0,l.jsx)(a.dK,{pageCount:u.pageCount,currentPage:u.page})]})}),(0,l.jsx)(w.y,{})]})}},31446:(e,t,s)=>{"use strict";s.d(t,{y:()=>r});var l=s(74848),a=s(15986),n=s(29965),c=s.n(n);let r=()=>(0,l.jsx)("section",{className:"app-container",children:(0,l.jsxs)("div",{className:"w-full h-700 flex flex-col md:justify-between bg-base-200 my-10 px-5 py-11 gap-0 relative overflow-hidden rounded-2xl -z-20",id:"mobile-app",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold my-4",children:"Твой ГИД в кармане "}),(0,l.jsx)("p",{className:"text-sm md:w-1/2",children:"Создайте свой маршрут, выбирая интересные точки и мероприятия. Слушайте интересные истории о местах, которые вы посещаете, подборка лучших ресторанов, кафе и магазинов рядом с вами. Поиск и навигация по интересным местам с GPS-навигацией"})]}),(0,l.jsxs)("div",{className:"btn shrink-0 bg-white flex w-fit h-auto py-2 px-3  mt-6 z-0 md:mb-16",children:[(0,l.jsx)(a.A,{}),(0,l.jsx)("a",{href:"https://play.google.com/store/apps/details?id=ru.elistory.elistory&pli=1",children:(0,l.jsxs)("div",{className:"text-left",children:[(0,l.jsx)("p",{className:"text-sm font-light",children:"Доступно в"}),(0,l.jsx)("h1",{className:"text-lg",children:"Google Play"})]})})]}),(0,l.jsx)(c(),{src:"/journey-line.png",alt:"",width:1e3,height:1e3,className:"absolute left-0 -bottom-1/4 w-1/2 h-full object-contain object-left hidden md:block -z-10"}),(0,l.jsx)(c(),{src:"/mobile-app-phone-1.png",alt:"",width:1e3,height:1e3,className:"absolute w-40 bottom-5 left-3 xl:right-96 md:right-60 md:left-auto md:bottom-36  xl:w-[250px] xl:h-auto xl:bottom-10"}),(0,l.jsx)(c(),{src:"/mobile-app-phone-2.png",alt:"",width:1e3,height:1e3,className:"absolute w-40 bottom-10 right-3 xl:w-[250px] xl:h-auto md:right-10 md:bottom-48 xl:right-20 xl:bottom-24"})]})})},42634:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[5373,1640,6424,5986,636,6593,8792],()=>t(7370)),_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.