1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[698],{700:(e,t,l)=>{"use strict";l.d(t,{SW:()=>c,XF:()=>r,xs:()=>o});var a=l(4359);let s=async()=>{let e=await fetch("".concat("https://apimain.operabale.gov.tr","/v1/web/festivaletkinlik/listele"));if(!e.ok)throw Error("Failed to fetch festivals");let t=await e.json(),l=new Date;return t.filter(e=>new Date(e.seanceDate||e.seanceTime)>=l).sort((e,t)=>new Date(e.seanceDate)-new Date(t.seanceDate)).slice(0,8)},i=async()=>{let e=await fetch("".concat("https://apimain.operabale.gov.tr","/v1/web/festivaletkinlik/listele"));if(!e.ok)throw Error("Failed to fetch festival events");let t=await e.json(),l=new Date;return t.filter(e=>new Date(e.seanceDate||e.seanceTime)>=l).sort((e,t)=>new Date(e.seanceDate)-new Date(t.seanceDate))},n=async()=>{let e=await fetch("".concat("https://apimain.operabale.gov.tr","/v1/web/festival/listele"));if(!e.ok)throw Error("Failed to fetch all festivals");return(await e.json()).data},r=()=>(0,a.I)({queryKey:["festivals"],queryFn:s,staleTime:3e5,cacheTime:6e5}),c=()=>(0,a.I)({queryKey:["allFestivals"],queryFn:n,staleTime:3e5,cacheTime:6e5}),o=()=>(0,a.I)({queryKey:["festivalEvents"],queryFn:i,staleTime:3e5,cacheTime:6e5})},5707:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/festivaller-yarismalar/festivaller/[slugId]",function(){return l(7824)}])},7824:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>y});var a=l(7876),s=l(4232),i=l(8477),n=l(9099),r=l(4359),c=l(7328),o=l.n(c),d=l(7888),m=l(3748),h=l(3568);l(5626),l(1781),l(7152);var x=l(3826),g=l(1376),u=l(2276),f=l(5112),p=l(8950),v=l(6649),w=l(700),b=l(5364);let j=e=>{let{images:t,locale:l}=e,[i,n]=s.useState(7);return(0,a.jsxs)("div",{className:"pt-20",children:[(0,a.jsx)("div",{className:"pl-4 container",children:(0,a.jsx)("h2",{className:"text-4xl lg:text-5xl text-white tracking-tight text-center text-glow font-semibold opacity-0 translate-y-4 animate-[slideUpFade_0.6s_ease-out_0.2s_forwards]",children:"tr"===l?"Galeri":"Gallery"})}),(0,a.jsxs)("div",{className:"py-8 px-4",children:[(0,a.jsx)(h.A,{elementClassNames:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-7 gap-4",plugins:[x.A,g.A],children:t.slice(0,i).map((e,t)=>{let l=t<7;return(0,a.jsx)("a",{"data-src":e.onizlemeLink,className:"aspect-square relative overflow-hidden border border-gray-800 rounded-lg cursor-pointer ".concat(l?"animate-fade-in":""),style:l?{animationDelay:"".concat(t%7*.08,"s")}:void 0,children:(0,a.jsx)("div",{className:"relative w-full h-full",children:(0,a.jsx)("img",{src:e.onizlemeLink,alt:e.tanim||"Gallery image ".concat(t+1),className:"absolute inset-0 w-full h-full object-cover transition-all duration-500 hover:scale-110"})})},e.id||t)})}),i<t.length&&(0,a.jsx)("div",{className:"flex justify-center pb-8 pt-8",children:(0,a.jsx)("button",{onClick:()=>{n(e=>Math.min(e+7,t.length))},className:"h-16 px-8 text-white bg-gray-800 rounded-md hover:bg-gray-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:(0,a.jsx)("span",{children:"tr"===l?"Daha Fazla":"Load More"})})})]})]})},y=()=>{let e,t=(0,n.useRouter)(),{slugId:l}=t.query,c=t.locale||"tr",{data:x,isLoading:y,error:N}=(e=>(0,r.I)({queryKey:["festival",e],queryFn:async()=>(await fetch("".concat("https://apimain.operabale.gov.tr","/v1/web/festival/").concat(e))).json(),enabled:!!e}))(l),k=(null==x?void 0:x.data)||{},{data:E=[]}=(0,w.xs)(),D=e=>(e||"").toLocaleLowerCase("tr").trim(),L=e=>(e||"").toLocaleLowerCase("tr").replace(/ç/g,"c").replace(/\s+/g,""),_=s.useMemo(()=>{let e=E.filter(e=>D(e.cinemaBranchName)&&D(k.baslik).includes(D(e.cinemaBranchName))&&!(e=>L(e.saloonName).includes("genckart")||L(e.cinemaBranchName).includes("genckart")||L(e.filmName).includes("genckart"))(e)),t=new Map;for(let a of e){var l;let e=null!=(l=a.filmId)?l:a.id,s=t.get(e);s?s.some(e=>(e.seanceDate||e.seanceTime)===(a.seanceDate||a.seanceTime)&&e.saloonName===a.saloonName)||s.push(a):t.set(e,[a])}return[...t.values()].map(e=>{let t=e.slice().sort((e,t)=>new Date(e.seanceDate||e.seanceTime)-new Date(t.seanceDate||t.seanceTime));return{...t[0],seances:t}})},[E,k.baslik]),F="tr"===c?k.baslik:k.baslikEn,T=k.gorseller||[],C=k.belgeler||[],z=T.filter(e=>e.width>e.height||e.width>
11e3),[B,M]=(0,s.useState)(!1),[P,A]=(0,s.useState)(null),[I,q]=(0,s.useState)(!1);(0,s.useEffect)(()=>{q(!0)},[]),(0,s.useEffect)(()=>(B?window.document.body.style.overflow="hidden":window.document.body.style.overflow="",()=>{window.document.body.style.overflow=""}),[B]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&G()};return B&&window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[B]);let G=()=>{M(!1),A(null)};return y?(0,a.jsx)("div",{className:"min-h-screen bg-parl flex items-center justify-center",children:(0,a.jsx)("div",{className:"text-white text-xl animate-pulse",children:"tr"===c?"Y\xfckleniyor...":"Loading..."})}):N||!k.id?(0,a.jsx)("div",{className:"min-h-screen bg-parl flex items-center justify-center",children:(0,a.jsx)("div",{className:"text-white text-xl",children:"tr"===c?"Festival bulunamadı":"Festival not found"})}):(0,a.jsxs)("div",{children:[(0,a.jsxs)(o(),{children:[(0,a.jsx)("title",{children:"".concat(F," - DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcÄ\xdc")}),(0,a.jsx)("meta",{name:"description",content:F||"Festival details page"}),(0,a.jsx)("meta",{property:"og:title",content:"".concat(F," | DEVLET OPERA VE BALESİ")}),(0,a.jsx)("meta",{property:"og:description",content:F||"Festival details page"}),T&&T.length>0&&(0,a.jsx)("meta",{property:"og:image",content:T[0].onizlemeLink}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:url",content:"".concat(b.env.NEXT_PUBLIC_SITE_URL).concat(t.asPath)})]}),(0,a.jsx)("section",{className:"relative",children:(0,a.jsx)("div",{className:"grid grid-cols-12 gap-0",children:(0,a.jsxs)("div",{className:"justify-between col-span-12 w-full h-[60vh] lg:h-[90vh] z-100 flex relative flex-col-reverse items-center",children:[(0,a.jsxs)("div",{className:"absolute z-100 top-1/4 text-center px-4",children:[(0,a.jsx)("h1",{className:"text-white text-3xl md:text-5xl font-bold relative main-title flex flex-col animate-fade-in-up text-glow",children:F}),k.tarihBitis&&(0,a.jsx)("h2",{className:"text-white text-xl md:text-2xl font-medium relative main-title flex flex-col animate-fade-in-up animation-delay-200 mt-4",children:(0,u.GP)(new Date(k.tarihBitis),"dd MMMM yyyy",{locale:"tr"===c?f.tr:p.b})})]}),(0,a.jsx)(d.RC,{modules:[m.Ij,m._R],spaceBetween:0,effect:"fade",fadeEffect:{crossFade:!0},freeMode:!0,autoplay:{delay:4e3,disableOnInteraction:!1},loop:z.length>1,breakpoints:{1024:{slidesPerView:1},200:{slidesPerView:1}},children:z&&z.length>0?z.slice(0,5).map((e,t)=>(0,a.jsxs)(d.qr,{children:[(0,a.jsx)("div",{className:"hidden lg:block relative h-[90vh] w-full",children:(0,a.jsx)("img",{src:e.onizlemeLink,alt:e.tanim||"Festival banner ".concat(t+1),className:"brightness-50 main-image highlight-show-inner object-cover object-center absolute inset-0 w-full h-full"})}),(0,a.jsx)("div",{className:"block lg:hidden relative h-[60vh] w-full",children:(0,a.jsx)("img",{src:e.onizlemeLink,alt:e.tanim||"Festival banner ".concat(t+1),className:"brightness-50 main-image highlight-show-inner object-cover object-center absolute inset-0 w-full h-full"})})]},t)):(0,a.jsxs)(d.qr,{children:[(0,a.jsx)("div",{className:"hidden lg:block relative h-[90vh] w-full",children:(0,a.jsx)("img",{src:"/images/banner.jpg",alt:"Default banner",className:"brightness-50 main-image highlight-show-inner object-cover object-bottom absolute inset-0 w-full h-full"})}),(0,a.jsx)("div",{className:"block lg:hidden relative h-[60vh] w-full",children:(0,a.jsx)("img",{src:"/images/banner.jpg",alt:"Default banner",className:"brightness-50 main-image highlight-show-inner object-cover object-center absolute inset-0 w-full h-full"})})]})})]})})}),(0,a.jsxs)("div",{className:"-mt-56 sm:-mt-56 xl:-mt-[32rem] 2xl:-mt-[35rem] bg-show-fade min-h-screen",children:[(0,a.jsx)("section",{className:"justify-center flex w-full",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"flex flex-col items-start lg:p-0 p-2",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,a.jsxs)("div",{className:"w-1/2 z-100 rounded-2xl",children:[T&&T.length>0?(0,a.jsx)(h.A,{plugins:[g.A],elementClassNames:"block w-full aspect-video rounded-2xl transition-transform duration-500 ease-out hover:scale-105",children:(0,a.jsx)("a",{href:T[0].onizlemeLink,"data-src":T[0].onizlemeLink,className:"cursor-zoom-in",children:(0,a.jsx)("img",{src:T[0].onizlemeLink,alt:T[0].tanim||F,className:"w-full h-full object-cover rounded-2xl animate-fade-in shadow-lg"})})}):(0,a.jsx)("div",{className:"w-full aspect-video rounded-2xl bg-gray-800 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-gray-400",children:"tr"===c?"G\xf6rsel Yok":"No Image"})}),C&&C.length>0&&(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[C.map((e,t)=>(0,a.jsx)("button",{className:"cursor-pointer inline-block",onClick:()=>{A(e),M(!0)},children:(0,a.jsx)("div",{className:"bg-yellow-500 px-6 py-3 flex justify-center items-center text-black rounded-lg font-bold hover:bg-yellow-600 transition-colors duration-300",children:"tr"===c?"Belgeyi G\xf6r\xfcnt\xfcle ".concat(C.length>1?"(".concat(t+1,")"):""):"View Document ".concat(C.length>1?"(".concat(t+1,")"):"")})},e.id||t)),(0,a.jsx)("button",{className:"cursor-pointer w-[172px] inline-block",onClick:()=>window.open(C[0].tanim,"_blank","noopener,noreferrer"),children:(0,a.jsx)("div",{className:"bg-yellow-500 px-6 py-3 flex justify-center items-center text-black rounded-lg font-bold hover:bg-yellow-600 transition-colors duration-300",children:"tr"===c?"Bilet Al":"Buy Tickets"})})]})]}),("tr"===c&&k.icerik||"en"===c&&k.icerikEn)&&(0,a.jsx)("div",{className:"w-full z-100 pb-8",children:(0,a.jsx)("div",{className:"bg-gradient-to-br from-gray-900/80 to-gray-800/60 backdrop-blur-sm rounded-2xl p-6 lg:p-8 border border-gray-700/50",children:(0,a.jsxs)("div",{className:"text-gray-300 text-base leading-relaxed prose prose-invert prose-p:my-2 prose-p:text-gray-300 max-w-none",children:["tr"===c&&k.icerik?(0,v.Ay)(k.icerik):null,"en"===c&&k.icerikEn?(0,v.Ay)(k.icerikEn):null]})})})]})})})}),_.length>0&&(0,a.jsx)("section",{className:"justify-center flex w-full pt-12",children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)("h2",{className:"text-3xl lg:text-4xl text-white tracking-tight font-semibold mb-8 lg:p-0 p-2",children:"tr"===c?"Festival Etkinlikleri":"Festival Events"}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 lg:p-0 p-2",children:_.map((e,t)=>(0,a.jsxs)("div",{className:"bg-gradient-to-br from-gray-900/80 to-gray-800/60 rounded-2xl overflow-hidden border border-gray-700/50 flex flex-col",children:[(0,a.jsx)("img",{src:e.imageUrl||"/images/banner.jpg",alt:e.filmName,className:"w-full h-48 object-cover"}),(0,a.jsxs)("div",{className:"p-4 flex flex-col flex-1 gap-3",children:[(0,a.jsx)("h3",{className:"text-white font-bold text-base",children:e.filmName}),(0,a.jsx)("div",{className:"flex flex-col divide-y divide-gray-700/50",children:e.seances.map((e,t)=>{var l;let s=new Date(e.seanceDate||e.seanceTime);return(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 py-2",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("p",{className:"text-gray-200 text-sm",children:[(0,u.GP)(s,"dd.MM.yyyy")," |"," ",(0,u.GP)(s,"HH:mm")]}),(0,a.jsx)("p",{className:"text-gray-400 text-xs uppercase truncate",children:e.saloonName})]}),(0,a.jsx)("a",{href:null!=(l=e.seoFullUrl)?l:"https://biletinial.com/tr-tr/etkinlik-takvimi/713",target:"_blank",rel:"noopener noreferrer",className:"shrink-0",children:(0,a.jsx)("button",{className:"bg-yellow-500 text-black hover:bg-yellow-400 duration-300 rounded-full px-3 py-1.5 text-xs font-semibold",children:"tr"===c?"Bilet Al":"Buy Ticket"})})]},e.id||t)})})]})]},e.filmId||e.id||t))})]})}),T&&T.length>1&&(0,a.jsx)(j,{images:T,locale:c})]}),I&&B&&P&&(0,i.createPortal)((0,a.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/80 backdrop-blur-sm",onClick:G,style:{position:"fixed",top:0,left:0,right:0,bottom:0},children:(0,a.jsxs)("div",{className:"relative w-[95vw] h-[90vh] max-w-6xl bg-gray-900 rounded-2xl overflow-hidden shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 bg-gray-800 border-b border-gray-700",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-white truncate pr-4",children:F}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("a",{href:P.onizlemeLink,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 bg-yellow-500 hover:bg-yellow-400 text-black rounded-lg font-medium transition-colors",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),"tr"===c?"İndir":"Download"]}),(0,a.jsx)("button",{onClick:G,className:"flex items-center justify-center w-10 h-10 rounded-full bg-gray-700 hover:bg-red-500 transition-colors duration-200","aria-label":"Close",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6 text-white",f
1ill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]}),(0,a.jsx)("iframe",{src:(e=P.onizlemeLink,"https://mozilla.github.io/pdf.js/web/viewer.html?file=".concat(encodeURIComponent(e))),className:"w-full h-[calc(90vh-72px)]",title:F,style:{border:"none"},allowFullScreen:!0})]})}),window.document.body)]})}}},e=>{e.O(0,[736,649,554,426,636,593,792],()=>e(e.s=5707)),_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.