PageSourceSearch

https://operabale.gov.tr/_next/static/chunks/pages/program-1335164902ed4d39.js

js operabale.gov.tr collected 2026-10-02 10:55:25 UTC 13,884 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[860],{2240:(e,r,t)=>{"use strict";t.d(r,{Tp:()=>d,an:()=>c,m0:()=>u,yh:()=>o});var l=t(4359);let a="https://apimain.operabale.gov.tr",s=async e=>{let r=await fetch("".concat(a,"/api/web/sanatci/eser/").concat(e));if(!r.ok)throw Error("Failed to fetch people data");return r.json()},n=async e=>{let r=await fetch("".concat(a,"/v1/web/eser/").concat(e));if(!r.ok){if(404===r.status){let e=Error("Show not found");throw e.status=404,e}throw Error("Failed to fetch show details")}return r.json()},i=async e=>{let r=await fetch("".concat(a,"/v1/web/temsil/listele/").concat(e));if(!r.ok)throw Error("Failed to fetch performances");return(await r.json()).data||[]},o=e=>(0,l.I)({queryKey:["showPeople",e],queryFn:()=>s(e),enabled:!!e}),d=e=>(0,l.I)({queryKey:["showDetails",e],queryFn:()=>n(e),enabled:!!e,retry:(e,r)=>(null==r?void 0:r.status)!==404&&e<3}),c=e=>(0,l.I)({queryKey:["showPerformances",e],queryFn:()=>i(e),enabled:!!e}),u=async(e,r)=>{r&&await Promise.all([e.prefetchQuery({queryKey:["showPeople",r],queryFn:()=>s(r)}),e.prefetchQuery({queryKey:["showDetails",r],queryFn:()=>n(r)}),e.prefetchQuery({queryKey:["showPerformances",r],queryFn:()=>i(r)})])}},7342:(e,r,t)=>{"use strict";t.d(r,{n:()=>d});var l=t(7876),a=t(8230),s=t.n(a),n=t(2276),i=t(7768),o=t(2240);let d=e=>{var r;let{event:t,locale:a,idx:d}=e,c=(0,i.jE)(),u=null==(r=t.seoUrl)?void 0:r.split("-").pop(),h=async()=>{u&&await (0,o.m0)(c,u)};return(0,l.jsxs)("div",{className:"top-16 relative h-full w-full rounded-2xl opacity-0 animate-fadeInUp bg-black/40 backdrop-blur-md border border-gld/20 shadow-xl overflow-hidden flex flex-col",style:{animationDelay:d<10?"".concat(.1*d,"s"):"100ms",animationFillMode:"forwards"},children:[(0,l.jsx)(s(),{href:"".concat("tr"==a?"/eser":"/shows","/").concat("tr"==a?t.seoUrl:t.seoUrlEn?t.seoUrlEn:t.seoUrl),onMouseEnter:h,children:(0,l.jsx)("div",{className:"relative h-[300px] md:h-[420px] lg:h-[420px] w-full overflow-hidden",children:(0,l.jsx)("img",{src:t.afisler[0]||"/images/banner.jpg",alt:"tr"==a?t.eserAdi:t.eserAdiEn,className:"w-full h-full object-cover",quality:75})})}),(0,l.jsx)("div",{className:"flex flex-col min-h-[200px] h-full",children:(0,l.jsxs)("div",{className:"caption flex p-2 relative flex-col flex-1",children:[(0,l.jsx)("div",{className:"flex-1 mb-4",children:(0,l.jsxs)("div",{className:"p-4",children:[(0,l.jsx)("h1",{className:"text-lg lg:text-xl text-white tracking-tight text-left font-bold mb-3 leading-tight overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},title:"tr"==a?t.eserAdi:t.eserAdiEn,children:"tr"==a?t.eserAdi:t.eserAdiEn}),(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-3 sm:gap-4 pt-3 pb-4 border-t border-gld/20",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",children:[(0,l.jsx)("div",{className:"w-1 h-1 rounded-full bg-gld flex-shrink-0"}),(0,l.jsx)("span",{className:"text-sm text-white/90 font-medium tracking-tight whitespace-nowrap",children:(0,n.GP)(t.oyunTarihi,"dd.MM.yyyy")})]}),(0,l.jsx)("div",{className:"hidden sm:block w-px h-4 bg-gld/30 flex-shrink-0"}),(0,l.jsx)("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",children:(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"text-xs text-gld/60",children:"•"}),(0,l.jsx)("span",{className:"text-sm text-white font-semibold tracking-tight whitespace-nowrap",children:t.oyunSaatleri.map(e=>e).join(", ")})]})})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2.5 pt-3 border-t border-gld/20",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,l.jsxs)("svg",{className:"w-4 h-4 text-gld flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,l.jsx)("span",{className:"text-sm text-white/90 font-medium tracking-tight truncate",children:t.mudurlukAdi})]}),(0,l.jsxs)("div",{className:"flex items-start gap-2 min-w-0",children:[(0,l.jsx)("svg",{className:"w-4 h-4 text-gld flex-shrink-0 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})}),(0,l.jsx)("span",{className:"text-sm text-white/90 font-medium tracking-tight break-words",children:t.sahneAdi})]})]})]})}),(0,l.jsxs)("div",{className:"event-card-buttons flex flex-col xl:flex-row items-center gap-3 mt-auto px-4 pb-4",children:[(0,l.jsx)(s(),{target:"_blank",href:t.seoFullUrl?t.seoFullUrl:"https://biletinial.com/tr-tr/etkinlik-takvimi/713",className:"flex-1",children:(0,l.jsxs)("button",{className:"w-full bg-gld text-black shadow-lg hover:bg-yellow-400 duration-300 hover:shadow-xl hover:scale-[1.02] rounded-lg px-4 py-2.5 text-sm font-semibold transition-all flex items-center justify-center gap-2 whitespace-nowrap",children:[(0,l.jsx)("span",{children:"tr"==a?"Bilet Al":"Buy Ticket"}),(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})})]})}),(0,l.jsx)(s(),{href:"".concat("tr"==a?"/eser":"/shows","/").concat("tr"==a?t.seoUrl:t.seoUrlEn?t.seoUrlEn:t.seoUrl),onMouseEnter:h,className:"flex-1",children:(0,l.jsxs)("button",{className:"w-full bg-black/40 backdrop-blur-sm border border-gld/40 text-gld hover:bg-gld/10 hover:border-gld duration-300 hover:shadow-lg hover:scale-[1.02] rounded-lg px-4 py-2.5 text-sm font-semibold transition-all flex items-center justify-center gap-2",children:[(0,l.jsx)("span",{children:"tr"==a?"Detay":"Details"}),(0,l.jsxs)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})]})})]})]})})]})}},8575:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/program",function(){return t(9021)}])},9021:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>p});
1var l=t(7876),a=t(4232),s=t(7342);let n=e=>{let{shows:r,loading:t,locale:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"grid grid-cols-2 announce-grid md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-12",children:!0!==t&&r&&r.length>0?r.map((e,r)=>(0,l.jsx)(s.n,{event:e,locale:a,idx:r},r)):t?Array.from({length:8}).map((e,r)=>(0,l.jsxs)("div",{className:"relative animate-pulse mb-8 w-full rounded-2xl",children:[(0,l.jsx)("div",{className:"w-full bg-gray-900 h-[590px] md:h-[420px] lg:h-[420px] bg-cover relative main-image rounded-t-2xl"}),(0,l.jsx)("div",{className:"bg-gray-800 animate-pulse h-[120px] rounded-b-2xl",children:(0,l.jsxs)("div",{className:"caption h-full p-8 relative",children:[(0,l.jsx)("h1",{className:"text-lg text-black tracking-tight text-left font-bold"}),(0,l.jsx)("h1",{className:"text-base text-black tracking-tight text-left"}),(0,l.jsx)("h1",{className:"text-base text-black tracking-tight text-left"}),(0,l.jsx)("h1",{className:"text-base text-black tracking-tight text-left"})]})})]},r)):null}),!0!==t&&0===r.length&&(0,l.jsx)("div",{className:"bg-gray-900 p-4 w-full text-center rounded-md",children:"Aradığınız kriterlerde sonu\xe7 bulunmamaktadır."})]})};var i=t(9099),o=t(4359),d=t(9596),c=t(7328),u=t.n(c),h=t(1040),x=t(5364);let m=async e=>{let{sehir:r,sahne:t,grup:l,tur:a,pageParam:s=1}=e;return(await h.A.get("".concat("https://apimain.operabale.gov.tr","/v1/web/temsil/program/listele"),{params:{sehir:r,sahne:t,grup:l,tur:a,page:s,limit:20}})).data},g=async()=>(await h.A.get("".concat("https://apimain.operabale.gov.tr","/v1/web/programfiltre/tumu"))).data,p=()=>{let e=(0,i.useRouter)(),{data:r,isLoading:t}=(0,o.I)({queryKey:["programFilters"],queryFn:g,staleTime:36e5}),s=(null==r?void 0:r.mudurlukler)||[],c=(null==r?void 0:r.sahneler)||[],h=(null==r?void 0:r.eserAnaGruplar)||[],p=(null==r?void 0:r.eserOyunTurleri)||[],v=e.query.sehir||"",f=e.query.sahne||"",b=e.query.grup||"",j=e.query.tur||"",{data:w,isFetching:y,error:k,fetchNextPage:N,hasNextPage:E,isFetchingNextPage:A}=(e=>{let{sehir:r,sahne:t,grup:l,tur:a}=e;return(0,d.q)({queryKey:["program",{sehir:r,sahne:t,grup:l,tur:a}],queryFn:e=>{let{pageParam:s=1}=e;return m({sehir:r,sahne:t,grup:l,tur:a,pageParam:s})},getNextPageParam:(e,r)=>{if(Array.isArray(e)&&e.length>0||(null==e?void 0:e.hasMore)||(null==e?void 0:e.data)&&e.data.length>0)return r.length+1},initialPageParam:1})})({sehir:v,sahne:f,grup:b,tur:j}),q=(0,a.useRef)(null),L=(null==w?void 0:w.pages.map(e=>e.data).flat())||[];(0,a.useEffect)(()=>{let e=new IntersectionObserver(e=>{e[0].isIntersecting&&E&&!A&&(console.log("fetching next page"),N())},{threshold:.1});return q.current&&e.observe(q.current),()=>{q.current&&e.unobserve(q.current)}},[E,A,N]);let F=(r,t)=>{let l={...e.query};""===t?(delete l[r],"sehir"===r&&delete l.sahne):(l[r]=t,"sehir"===r&&(delete l.sahne,delete l.grup,delete l.tur)),"sahne"===r&&(delete l.grup,delete l.tur),"grup"===r&&delete l.tur,e.push({pathname:e.pathname,query:l},void 0,{shallow:!0})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(u(),{children:[(0,l.jsx)("title",{children:(e.locale,"Program | DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcĞ\xdc")}),(0,l.jsx)("meta",{name:"description",content:"tr"==e.locale?"Devlet Opera ve Balesi Genel M\xfcd\xfcrl\xfcğ\xfc g\xfcncel program ve etkinlik takvimi. Opera, bale ve diğer sanatsal etkinliklerin programını g\xf6r\xfcnt\xfcleyin.":"State Opera and Ballet General Directorate current program and event calendar. View the schedule of opera, ballet and other artistic events."}),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,l.jsx)("meta",{name:"keywords",content:"tr"==e.locale?"program, etkinlik takvimi, opera programı, bale programı, sanat etkinlikleri":"program, event calendar, opera schedule, ballet schedule, art events"}),(0,l.jsx)("link",{rel:"canonical",href:"".concat(x.env.NEXT_PUBLIC_SITE_URL).concat(e.asPath)})]}),(0,l.jsx)("header",{className:"breadcrumb-header border-t flex bg-black border-white border-opacity-20 items-center justify-between h-12 lg:h-12",children:(0,l.jsx)("div",{className:"container flex items-center justify-between",children:(0,l.jsx)("h2",{className:"text-white text-3xl",children:"Program"})})}),(0,l.jsx)("div",{className:"bg-parl pt-8 lg:pt-24 pb-16",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-4 mb-8",children:[(0,l.jsxs)("select",{disabled:y||t,value:v,onCh
1ange:e=>{F("sehir",e.target.value)},className:"bg-gray-400 border border-gray-300 text-gray-900 text-sm rounded-lg block w-full p-2.5",children:[(0,l.jsx)("option",{value:"",children:"tr"==e.locale?"Şehir Se\xe7in":"Select City"},"sehir-select"),s.map((e,r)=>{var t,a;return(0,l.jsx)("option",{value:e.mudurlukAdi,children:e.mudurlukAdi},null!=(a=null!=(t=e.Id)?t:e.id)?a:"mudurluk-".concat(r))})]}),(0,l.jsxs)("select",{disabled:y||t,value:f,onChange:e=>{F("sahne",e.target.value)},className:"bg-gray-400 border border-gray-300 text-gray-900 text-sm rounded-lg block w-full p-2.5",children:[(0,l.jsx)("option",{value:"",children:"tr"==e.locale?"Sahne Se\xe7in":"Select Scene"},"sahne-select"),c.filter(e=>{var r;return!v||e.salonMudurlukId===(null==(r=s.find(e=>e.mudurlukAdi===v))?void 0:r.mudurlukKodu)}).map((e,r)=>{var t,a;return(0,l.jsx)("option",{value:e.salonAdi,children:e.salonAdi},null!=(a=null!=(t=e.Id)?t:e.id)?a:"sahne-".concat(r))})]}),(0,l.jsxs)("select",{disabled:y||t,value:b,onChange:e=>{F("grup",e.target.value)},className:"bg-gray-400 border border-gray-300 text-gray-900 text-sm rounded-lg block w-full p-2.5",children:[(0,l.jsx)("option",{value:"",children:"tr"==e.locale?"Grup Se\xe7in":"Select Group"},"grup-select"),h.map((e,r)=>{var t,a;return(0,l.jsx)("option",{value:e.eserAnaGrupAdi,children:e.eserAnaGrupAdi},null!=(a=null!=(t=e.Id)?t:e.id)?a:"grup-".concat(r))})]}),(0,l.jsxs)("select",{disabled:y||t,value:j,onChange:e=>{F("tur",e.target.value)},className:"bg-gray-400 border border-gray-300 text-gray-900 text-sm rounded-lg block w-full p-2.5",children:[(0,l.jsx)("option",{value:"",children:"tr"==e.locale?"T\xfcr Se\xe7in":"Select Genre"},"tur-select"),p.map((e,r)=>{var t,a;return(0,l.jsx)("option",{value:e.eserOyunTuruAdi,children:e.eserOyunTuruAdi},null!=(a=null!=(t=e.Id)?t:e.id)?a:"tur-".concat(r))})]})]}),k?(0,l.jsx)("div",{className:"text-red-500",children:"Error fetching data"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n,{loading:y&&!A,shows:L,locale:e.locale}),(0,l.jsx)("div",{ref:q,className:"h-20 flex items-center justify-center pt-24 pb-12",children:A&&(0,l.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,l.jsxs)("div",{className:"relative w-8 h-8",children:[(0,l.jsx)("div",{className:"absolute inset-0 border-4 border-gray-700 rounded-full"}),(0,l.jsx)("div",{className:"absolute inset-0 border-4 border-transparent border-t-yellow-400 rounded-full animate-spin"})]}),(0,l.jsx)("span",{className:"text-white text-xl",children:"tr"===e.locale?"Y\xfckleniyor...":"Loading..."})]})})]})]})})]})}}},e=>{e.O(0,[736,689,636,593,792],()=>e(e.s=8575)),_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.