1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[493],{700:(e,t,r)=>{"use strict";r.d(t,{SW:()=>o,XF:()=>s,xs:()=>c});var l=r(4359);let n=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(),r=new Date;return t.filter(e=>new Date(e.seanceDate||e.seanceTime)>=r).sort((e,t)=>new Date(e.seanceDate)-new Date(t.seanceDate)).slice(0,8)},a=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(),r=new Date;return t.filter(e=>new Date(e.seanceDate||e.seanceTime)>=r).sort((e,t)=>new Date(e.seanceDate)-new Date(t.seanceDate))},i=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},s=()=>(0,l.I)({queryKey:["festivals"],queryFn:n,staleTime:3e5,cacheTime:6e5}),o=()=>(0,l.I)({queryKey:["allFestivals"],queryFn:i,staleTime:3e5,cacheTime:6e5}),c=()=>(0,l.I)({queryKey:["festivalEvents"],queryFn:a,staleTime:3e5,cacheTime:6e5})},817:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/festivaller-yarismalar/festivaller",function(){return r(5687)}])},2226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let l=r(4232),n=l.useLayoutEffect,a=l.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let n=l.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(n,e))}}return n(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),n(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},3169:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:l=!1}=void 0===e?{}:e;return t||r&&l}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},4461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return l}});let l=r(4252)._(r(4232)).default.createContext({})},5364:(e,t,r)=>{"use strict";var l,n;e.exports=(null==(l=r.g.process)?void 0:l.env)&&"object"==typeof(null==(n=r.g.process)?void 0:n.env)?r.g.process:r(5861)},5687:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var l=r(7876),n=r(4232),a=r(8477),i=r(8230),s=r.n(i),o=r(9099);r(3568),r(5626),r(1781),r(7152),r(1376),r(3826);let c=e=>{var t,r;let i,{festival:c}=e,{locale:d}
1=(0,o.useRouter)(),[u,f]=(0,n.useState)(!1),[h,v]=(0,n.useState)(!1),m=null==(t=c.gorseller)?void 0:t[0],p=null==(r=c.belgeler)?void 0:r[0];(0,n.useEffect)(()=>{v(!0)},[]),(0,n.useEffect)(()=>(u?window.document.body.style.overflow="hidden":window.document.body.style.overflow="",()=>{window.document.body.style.overflow=""}),[u]);let x=e=>{e&&(e.preventDefault(),e.stopPropagation()),f(!1)};return(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&x()};return u&&window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[u]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s(),{href:"/festivaller-yarismalar/festivaller/".concat(c.id),children:(0,l.jsxs)("div",{className:"repertoire-card-inner relative w-full rounded-2xl mb-8 flex flex-col",style:{height:350},children:[(0,l.jsx)("div",{className:"h-[200px] w-full relative rounded-t-2xl overflow-hidden flex-shrink-0",children:(0,l.jsx)("img",{src:null==m?void 0:m.onizlemeLink,alt:c.baslik||"Festival image",className:"w-full h-full object-cover main-image"})}),(0,l.jsx)("div",{className:"bg-gray-800 flex-1 rounded-b-2xl",children:(0,l.jsxs)("div",{className:"caption h-full p-8 relative",children:[(0,l.jsx)("div",{className:"h-20",children:(0,l.jsx)("h1",{className:"text-lg text-white tracking-tight text-left font-bold",children:"tr"==d?c.baslik:c.baslikEn})}),(0,l.jsx)("div",{className:"top-4 flex flex-row items-center gap-4",children:p&&(0,l.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),f(!0)},className:"text-gld shadow-xl main-button relative border border-gld hover:bg-yellow-400 duration-300 hover:text-black rounded-full py-2 px-6 text-lg lg:text-xl font-semibold",children:"tr"==d?"BroÅ\xfcr\xfc G\xf6r\xfcnt\xfcle":"View Brochure"})})]})})]})}),h&&u&&p&&(0,a.createPortal)((0,l.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/80 backdrop-blur-sm",onClick:x,style:{position:"fixed",top:0,left:0,right:0,bottom:0},children:(0,l.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,l.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 bg-gray-800 border-b border-gray-700",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold text-white truncate pr-4",children:"tr"==d?c.baslik:c.baslikEn}),(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.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,l.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,l.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"==d?"İndir":"Download"]}),(0,l.jsx)("button",{onClick:x,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,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]}),(0,l.jsx)("iframe",{src:(i=p.onizlemeLink,"https://mozilla.github.io/pdf.js/web/viewer.html?file=".concat(encodeURIComponent(i))),className:"w-full h-[calc(90vh-72px)]",title:"tr"==d?c.baslik:c.baslikEn,style:{border:"none"},allowFullScreen:!0})]})}),window.document.body)]})},d=()=>(0,l.jsx)("div",{children:(0,l.jsxs)("div",{style:{height:350},className:"repertoire-card-inner relative h-full w-full rounded-2xl animate-pulse",children:[(0,l.jsx)("div",{className:"h-[200px] w-full relative rounded-t-2xl overflow-hidden bg-gray-700"}),(0,l.jsx)("div",{className:"bg-gray-800 h-1/2 rounded-b-2xl",children:(0,l.jsxs)("div",{className:"caption h-full p-8 relative",children:[(0,l.jsxs)("div",{className:"h-20",children:[(0,l.jsx)("div",{className:"h-6 bg-gray-700 rounded w-3/4 mb-2"}),(0,l.jsx)("div",{className:"h-4 bg-gray-700 rounded w-1/2"})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)("div",{className:"ml-4 top-4 relative h-10 bg-gray-700 rounded-full w-32"})})]})})]})}),u=e=>{let{festivals:t,isLoading:r}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"grid grid-cols-1 relative announce-grid lg:grid-cols-2 z-50 gap-8",children:r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d,{}),(0,l.jsx)(d,{})]}):null==t?void 0:t.filter(e=>Date.now()<new Date(e.tarihBitis).getTime()).map((e,t)=>(0,l.jsx)(c,{festival:e},t))})})},f=e=>{let{festivals:t,isLoading:r}=e;return r||0!==t.length?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"grid grid-cols-1 relative announce-grid lg:grid-cols-2 z-50 gap-8",children:r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d,{}),(0,l.jsx)(d,{})]}):null==t?void 0:t.filter(e=>Date.now()>new Date(e.tarihBitis).getTime()).map((e,t)=>(0,l.jsx)(c,{festival:e},t))})}):(0,l.jsx)("div",{children:"No festivals found"})};var h=r(7328),v=r.n(h),m=r(700),p=r(5364);let x=e=>{let t=(0,o.useRouter)(),{data:r,isLoading:n,error:a}=(0,m.SW)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(v(),{children:[(0,l.jsxs)("title",{children:["tr"==t.locale?"Festivaller":"Festivals"," | DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcÄ\xdc"]}),(0,l.jsx)("meta",{name:"description",content:"tr"==t.locale?"Devlet Opera ve Balesi festivalleri. Opera, bale ve m\xfczik festivalleri hakkında bilgi alın.":"State Opera and Ballet festivals. Get information about opera, ballet and music festivals."}),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,l.jsx)("meta",{name:"keywords",content:"tr"==t.locale?"opera festivali, bale festivali, m\xfczik festivali, k\xfclt\xfcr sanat festivali, devlet opera ve balesi festivalleri":"opera festival, ballet festival, music festival, cultural arts festival, state opera and ballet festivals"}),(0,l.jsx)("link",{rel:"canonical",href:"".concat(p.env.NEXT_PUBLIC_SITE_URL).concat(t.asPath)})]}),(0,l.jsx)("header",{className:" breadcrumb-header border-t flex bg-black border-white border-opacity-20 flex-row items-center w-full justify-between h-12 lg:h-12 lg:flex ",children:(0,l.jsxs)("div",{className:"flex items-center justify-between flex-row container",children:[(0,l.jsx)("div",{className:"w-1/2",children:(0,l.jsx)("h2",{className:"text-white text-3xl",children:"tr"==t.locale?"Festivaller":"Festivals"})}),(0,l.jsx)("div",{className:"flex text-white flex-row"})]})}),r&&r.length>
10&&r.filter(e=>new Date(e.tarihBitis)>=new Date).length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:" relative bg-parl1",children:(0,l.jsx)("div",{className:"container bg-parl1",children:(0,l.jsx)("div",{className:"relative h-max pt-16 pb-16 grid grid-cols-1 ",children:(0,l.jsx)("div",{className:" flex-col flex justify-center items-center",children:(0,l.jsx)("h1",{className:"text-white text-glow text-center relative top-16 announce-title title-main font-semibold text-5xl",children:"tr"==t.locale?"Festivaller":"Festivals"})})})})}),(0,l.jsx)("div",{className:"bg-parl pt-8 lg:pt-24 pb-16",children:(0,l.jsx)("div",{className:"container ",children:(0,l.jsx)(u,{festivals:r,isLoading:n})})})]}),r&&r.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:" relative bg-parl1",children:(0,l.jsx)("div",{className:"container bg-parl1",children:(0,l.jsx)("div",{className:"relative h-max pt-16 pb-16 grid grid-cols-1 ",children:(0,l.jsx)("div",{className:" flex-col flex justify-center items-center",children:(0,l.jsx)("h1",{className:"text-white text-glow text-center relative top-16 announce-title title-main font-semibold text-5xl",children:"tr"==t.locale?"Ge\xe7miÅ Festivaller":"Past Festivals"})})})})}),(0,l.jsx)("div",{className:"bg-parl pt-8 lg:pt-24 pb-16",children:(0,l.jsx)("div",{className:"container ",children:(0,l.jsx)(f,{festivals:r,isLoading:n})})})]})]})}},5861:e=>{!function(){var t={229:function(e){var t,r,l,n=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var o=[],c=!1,d=-1;function u(){c&&l&&(c=!1,l.length?o=l.concat(o):d=-1,o.length&&f())}function f(){if(!c){var e=s(u);c=!0;for(var t=o.length;t;){for(l=o,o=[];++d<t;)l&&l[d].run();d=-1,t=o.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.push(new h(e,t)),1!==o.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=v,n.addListener=v,n.once=v,n.off=v,n.removeListener=v,n.removeAllListeners=v,n.emit=v,n.prependListener=v,n.prependOnceListener=v,n.listeners=function(e){return[]},n.binding=function(e){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw Error("process.chdir is not supported")},n.umask=function(){return 0}}},r={};function l(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,l),i=!1}finally{i&&delete r[e]}return a.exports}l.ab="//",e.exports=l(229)}()},7328:(e,t,r)=>{e.exports=r(9269)},9269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return u}});let l=r(4252),n=r(8365),a=r(7876),i=n._(r(4232)),s=l._(r(2226)),o=r(4461),c=r(7965),d=r(3169);function u(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(6201);let h=["name","httpEquiv","charSet","itemProp"];function v(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(u(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,l={};return n=>{let a=!0,i=!1;if(n.key&&"number"!=typeof n.key&&n.key.indexOf("$")>0){i=!0;let t=n.key.slice(n.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(n.type){case"title":case"base":t.has(n.type)?a=!1:t.add(n.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(n.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?a=!1:r.add(t);else{let e=n.props[t],r=l[t]||new Set;("name"!==t||!i)&&r.has(e)?a=!1:(r.add(e),l[t]=r)}}}return a}}()).reverse().map((e,t)=>{let r=e.key||t;return i.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,i.useContext)(o.AmpStateContext),l=(0,i.useContext)(c.HeadManagerContext);return(0,a.jsx)(s.default,{reduceComponentsToState:v,headManager:l,inAmpMode:(0,d.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[426,636,593,792],()=>e(e.s=817)),_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.