1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[715],{295:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let a=l(4252)._(l(4232)),r=l(6581),s=[],n=[],i=!1;function o(e){let t=e(),l={loading:!0,loaded:null,error:null};return l.promise=t.then(e=>(l.loading=!1,l.loaded=e,e)).catch(e=>{throw l.loading=!1,l.error=e,e}),l}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function o(){if(!s){let t=new d(e,l);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!i){let e=l.webpack&&1?l.webpack():l.modules;e&&n.push(t=>{for(let l of e)if(t.includes(l))return o()})}function c(e,t){o();let n=a.default.useContext(r.LoadableContext);n&&Array.isArray(l.modules)&&l.modules.forEach(e=>{n(e)});let i=a.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),a.default.useMemo(()=>{var t;return i.loading||i.error?a.default.createElement(l.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:s.retry}):i.loaded?a.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return c.preload=()=>o(),c.displayName="LoadableComponent",a.default.forwardRef(c)}(o,e)}function u(e,t){let l=[];for(;e.length;){let a=e.pop();l.push(a(t))}return Promise.all(l).then(()=>{if(e.length)return u(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{u(s).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let l=()=>(i=!0,t());u(n,e).then(l,l)})),window.__NEXT_PRELOADREADY=c.preloadReady;let h=c},2240:(e,t,l)=>{"use strict";l.d(t,{Tp:()=>d,an:()=>c,m0:()=>u,yh:()=>o});var a=l(4359);let r="https://apimain.operabale.gov.tr",s=async e=>{let t=await fetch("".concat(r,"/api/web/sanatci/eser/").concat(e));if(!t.ok)throw Error("Failed to fetch people data");return t.json()},n=async e=>{let t=await fetch("".concat(r,"/v1/web/eser/").concat(e));if(!t.ok){if(404===t.status){let e=Error("Show not found");throw e.status=404,e}throw Error("Failed to fetch show details")}return t.json()},i=async e=>{let t=await fetch("".concat(r,"/v1/web/temsil/listele/").concat(e));if(!t.ok)throw Error("Failed to fetch performances");return(await t.json()).data||[]},o=e=>(0,a.I)({queryKey:["showPeople",e],queryFn:()=>s(e),enabled:!!e}),d=e=>(0,a.I)({queryKey:["showDetails",e],queryFn:()=>n(e),enabled:!!e,retry:(e,t)=>(null==t?void 0:t.status)!==404&&e<3}),c=e=>(0,a.I)({queryKey:["showPerformances",e],queryFn:()=>i(e),enabled:!!e}),u=async(e,t)=>{t&&await Promise.all([e.prefetchQuery({queryKey:["showPeople",t],queryFn:()=>s(t)}),e.prefetchQuery({queryKey:["showDetails",t],queryFn:()=>n(t)}),e.prefetchQuery({queryKey:["showPerformances",t],queryFn:()=>i(t)})])}},2496:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{default:function(){return i},noSSR:function(){return n}});let a=l(4252);l(7876),l(4232);let r=a._(l(295));function s(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let l=r.default,a={loading:e=>{let{error:t,isLoading:l,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let i=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated}
1,delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?l({...a,loader:()=>null!=i?i().then(s):Promise.resolve(s(()=>null))}):(delete a.webpack,delete a.modules,n(l,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4060:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/shows/[slugId]",function(){return l(5357)}])},5357:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>F});var a=l(7876);l(4232);var r=l(8230),s=l.n(r),n=l(2276),i=l(5112),o=l(8950),d=l(9099),c=l(3568);l(5626),l(1781);var u=l(1376);let h=e=>{let{eserAdi:t,eserAdiEn:l,mudurlukAdi:r,eserGrupAdi:h,eserGrupAdiEn:f,banners:m,afisler:x,seoUrl:p,file:g,temsiller:b,seoFullUrl:y}=e,w=(0,d.useRouter)(),j=b.sort((e,t)=>new Date(e.oyunTarihi)-new Date(t.oyunTarihi)).filter(e=>new Date(e.oyunTarihi)>=new Date).filter((e,t,l)=>{let a=new Date(e.oyunTarihi),r="".concat(a.getFullYear(),"-").concat(a.getMonth(),"-").concat(a.getDate());return l.findIndex(e=>{let t=new Date(e.oyunTarihi);return"".concat(t.getFullYear(),"-").concat(t.getMonth(),"-").concat(t.getDate())===r})===t}),v=j.slice(0,5),_=j.slice(5),N=(e,t)=>(0,a.jsx)(s(),{className:"lg:mr-0 opacity-0 animate-[fadeIn_0.5s_ease-out_forwards] group",style:{animationDelay:"".concat(100*t,"ms")},href:e.seoFullUrl?e.seoFullUrl:"https://biletinial.com/tr-tr/etkinlik-takvimi/713",target:"_blank",children:(0,a.jsxs)("div",{className:"group-hover:scale-105 transition-transform duration-300 group-hover:underline",children:[(0,a.jsx)("div",{className:"bg-white lg:w-[150px] flex justify-center items-center h-16 lg:h-[120px] p-2 text-black text-center rounded-t-xl",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-base lg:text-3xl font-bold",children:(0,n.GP)(e.oyunTarihi,"dd",{locale:"tr"===w.locale?i.tr:o.b})}),(0,a.jsx)("div",{className:"text-base lg:text-3xl font-bold",children:(0,n.GP)(e.oyunTarihi,"LLLL",{locale:"tr"===w.locale?i.tr:o.b})})]})}),(0,a.jsx)("div",{className:"bg-red-700 text-base lg:text-2xl font-bold lg:w-[150px] flex justify-center items-center h-8 lg:h-[60px] p-2 text-center rounded-b-xl",children:"tr"==w.locale?" Bilet Al":"Buy Ticket"})]})},t);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("section",{className:"justify-center flex w-full",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"flex flex-col items-start lg:p-0 p-2",children:[(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6 w-full",children:[(0,a.jsxs)("div",{className:"w-[40%] lg:w-[25%] z-100 rounded-2xl flex-shrink-0",children:[(0,a.jsx)(c.A,{plugins:[u.A],elementClassNames:"block w-full aspect-[2/3] rounded-2xl transition-transform duration-500 ease-out hover:scale-105",children:(0,a.jsx)("a",{href:x&&x[0]?x[0].onizlemeLink:"/images/banner.jpg","data-src":x&&x[0]?x[0].onizlemeLink:"/images/banner.jpg",className:"cursor-zoom-in",children:(0,a.jsx)("img",{src:x&&x[0]?x[0].onizlemeLink:"/images/banner.jpg",alt:t||"Show poster",className:"w-full h-full object-cover rounded-2xl animate-fade-in"})})}),g?(0,a.jsx)("a",{className:"cursor-pointer",href:null==g?void 0:g.onizlemeLink,target:"_blank",children:(0,a.jsx)("div",{className:"bg-yellow-500 p-4 mt-4 flex justify-center items-center text-black rounded-lg font-bold hover:bg-yellow-600 transition-colors duration-300",children:"tr"==w.locale?"Kitap\xe7ık İndir":"Download Booklet"})}):""]}),(0,a.jsxs)("div",{className:"flex flex-col flex-1 z-100",children:[(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)("h1",{className:"text-white text-2xl md:text-3xl lg:text-4xl xl:text-5xl font-bold animate-fade-in-up",children:"tr"===w.locale?t:l}),(0,a.jsx)("h2",{className:"text-white text-lg md:text-xl lg:text-2xl font-semibold mt-2 animate-fade-in-up animation-delay-200",children:r}),(0,a.jsx)("h3",{className:"text-white text-base md:text-lg lg:text-xl mt-1 animate-fade-in-up animation-delay-400",children:"tr"===w.locale?h:f})]}),v&&v.length>0&&(0,a.jsx)("div",{className:"hidden lg:flex flex-wrap gap-4 mt-auto",children:v.map((e,t)=>N(e,t))})]})]}),j&&j.length>0&&(0,a.jsx)("div",{className:"w-full flex flex-col mt-6 lg:hidden",children:(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-x-4 gap-y-4 z-100",children:j.map((e,t)=>N(e,t))})}),_&&_.length>0&&(0,a.jsx)("div",{className:"w-full hidden lg:flex flex-col mt-6",children:(0,a.jsx)("div",{className:"lg:flex lg:flex-wrap gap-x-4 gap-y-4 z-100",children:_.map((e,t)=>N(e,t+5))})})]})})})})};var f=l(6649);let m=e=>e?e.split(/\r?\n/).filter(e=>""!==e.trim()):[],x=e=>{let{konu:t,konuEn:l}=e,r=(0,d.useRouter)();return("tr"!==r.locale||t)&&("en"!==r.locale||l)?(0,a.jsx)("div",{className:"flex flex-col items-center pt-24",children:(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("div",{className:"pl-4 container people-list lg: pt-4",children:(0,a.jsx)("div",{className:"",children:(0,a.jsx)("h1",{className:"text-4xl lg:text-5xl text-white relative text-glow tracking-tight text-center font-semibold opacity-0 translate-y-4 animate-[slide
1UpFade_0.6s_ease-out_0.2s_forwards]",children:"tr"===r.locale?"Konu":"Synopsis"})})}),(0,a.jsx)("section",{className:"container px-8 pt-12 pb-8 relative overflow-hidden items-center justify-center flex flex-col",children:(0,a.jsx)("div",{className:"w-full text-left flex justify-start flex-col opacity-0 translate-y-4 animate-[slideUpFade_0.6s_ease-out_0.4s_forwards]",children:(0,a.jsxs)("div",{className:"text-left text-lg pb-4",children:["tr"===r.locale&&t?m(t).map((e,t)=>(0,a.jsx)("p",{className:"mb-2",children:(0,f.Ay)(e)},t)):null,"en"===r.locale&&l?m(l).map((e,t)=>(0,a.jsx)("p",{className:"mb-2",children:(0,f.Ay)(e)},t)):null]})})})]})}):null};var p=l(8847),g=l.n(p),b=l(7328),y=l.n(b),w=l(4359);let j=async(e,t)=>{let l=await fetch("".concat("https://apimain.operabale.gov.tr","/v1/web/eser/dosya/listele?EserKodu=").concat(e,"&Tip=").concat(t));if(!l.ok)throw Error("Failed to fetch ".concat(t));return(await l.json()).data||[]};var v=l(7888),_=l(3748);l(7152),l(3826);var N=l(2240),k=l(5364);let E=g()(()=>l.e(311).then(l.bind(l,3311)).then(e=>e.Gallery),{loadableGenerated:{webpack:()=>[3311]}}),L=g()(()=>l.e(20).then(l.bind(l,3020)).then(e=>e.PeopleShow),{loadableGenerated:{webpack:()=>[3020]}}),P=g()(()=>Promise.all([l.e(434),l.e(314)]).then(l.bind(l,1314)).then(e=>e.Video),{loadableGenerated:{webpack:()=>[1314]}}),q=g()(()=>l.e(464).then(l.bind(l,8083)).then(e=>e.Basin),{loadableGenerated:{webpack:()=>[8083]}}),F=()=>{let e=(0,d.useRouter)(),{slugId:t}=e.query,l=e.locale||"tr",r=null==t?void 0:t.split("-").pop(),{data:s=[],isLoading:n}=(0,N.yh)(r),{data:i={},isLoading:o,error:c,isError:u}=(0,N.Tp)(r),{data:f=[],isLoading:m}=(0,N.an)(r),p=u&&(null==c?void 0:c.status)===404,{photos:g,press:b,videos:F,belgeler:T,banners:D,afisler:A,loading:O,error:I}=(e=>{let t=(0,w.I)({queryKey:["show-files",e,"fotograf"],queryFn:()=>j(e,"fotograf"),enabled:!!e}),l=(0,w.I)({queryKey:["show-files",e,"basin"],queryFn:()=>j(e,"basin"),enabled:!!e}),a=(0,w.I)({queryKey:["show-files",e,"video"],queryFn:()=>j(e,"video"),enabled:!!e}),r=(0,w.I)({queryKey:["show-files",e,"belge"],queryFn:()=>j(e,"belge"),enabled:!!e}),s=(0,w.I)({queryKey:["show-files",e,"banner"],queryFn:()=>j(e,"banner"),enabled:!!e}),n=(0,w.I)({queryKey:["show-files",e,"afis"],queryFn:()=>j(e,"afis"),enabled:!!e}),i=t.isLoading||l.isLoading||a.isLoading||r.isLoading||s.isLoading||n.isLoading,o=t.error||l.error||a.error||r.error||s.error||n.error;return{photos:t.data||[],press:l.data||[],videos:a.data||[],belgeler:r.data||[],banners:s.data||[],afisler:n.data||[],loading:i,error:(null==o?void 0:o.message)||null,queries:{photos:t,press:l,videos:a,belgeler:r,banners:s,afisler:n}}})(r),R="tr"===l?i.adi:i.adiEn;return p?(0,a.jsxs)("div",{className:"bg-gray-200 flex flex-col items-center justify-center pt-20 min-h-[800px]",children:[(0,a.jsx)(y(),{children:(0,a.jsx)("title",{children:"404 - DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcÄ\xdc"})}),(0,a.jsx)("h1",{className:"text-4xl lg:text-8xl font-bold text-gray-950",children:"404"}),(0,a.jsx)("p",{className:"text-xl lg:text-2xl font-bold text-gray-500",children:"tr"==e.locale?"AradıÄınız sayfa bulunmamaktadır":"Page not found"})]}):(0,a.jsxs)("div",{children:[(0,a.jsxs)(y(),{children:[(0,a.jsx)("title",{children:"".concat(R," - DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcÄ\xdc")}),(0,a.jsx)("meta",{name:"description",content:i.konu||"Show details page"}),(0,a.jsx)("meta",{property:"og:title",content:"".concat(R," | DEVLET OPERA VE BALESİ")}),(0,a.jsx)("meta",{property:"og:description",content:i.konu||"Show 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(k.env.NEXT_PUBLIC_SITE_URL).concat(e.asPath)})]}),(0,a.jsx)("section",{className:"relative",children:(0,a.jsx)("div",{className:"grid grid-cols-12 gap-0",children:(0,a.jsx)("div",{className:"justify-between col-span-12 w-full h-[60vh] lg:h-[85vh] z-100 flex relative flex-col-reverse items-center",children:(0,a.jsx)(v.RC,{modules:[_.Ij,_._R],spaceBetween:0,effect:"fade",fadeEffect:{crossFade:!0},freeMode:!0,autoplay:{delay:4e3,disableOnInteraction:!1},loop:!1,breakpoints:{1024:{slidesPerView:1},200:{slidesPerView:1}},children:D&&D[0]?D.slice(0,5).map((e,t)=>(0,a.jsxs)(v.qr,{children:[(0,a.jsx)("div",{className:"hidden lg:block relative h-[85vh] w-full",children:(0,a.jsx)("img",{src:e.onizlemeLink,alt:"Show banner ".concat(t+1),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:e.onizlemeLink,alt:"Show 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)(v.qr,{children:[(0,a.jsx)("div",{className:"hidden lg:block relative h-[85vh] 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-48 sm:-mt-56 lg:-mt-[22rem] xl:-mt-[28rem] 2xl:-mt-[32rem] bg-show-fade min-h-screen",children:[(0,a.jsx)(h,{eserAdi:i.adi,eserAdiEn:i.adiEn,afisler:A,banners:D,eserGrupAdi:i.grup,eserGrupAdiEn:i.grupEn,file:T[0],mudurlukAdi:i.mudurlukAdi,seoUrl:i.seoUrl,seoFullUrl:i.seoFullUrl,temsiller:f}),(0,a.jsx)(x,{konu:i.konu,konuEn:i.konuEn}),(0,a.jsx)(L,{locale:l,people:s,isLoading:n}),g&&g.length>0&&(0,a.jsx)(E,{files:g}),F&&F.length>0&&(0,a.jsx)(P,{locale:e.locale,files:F}),b&&b.length>0&&(0,a.jsx)(q,{locale:e.locale,files:b})]})]})}},6581:(e,t,l)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=l(4252)._(l(4232)).default.createContext(null)},8847:(e,t,l)=>{e.exports=l(2496)}},e=>{e.O(0,[736,649,554,426,636,593,792],()=>e(e.s=4060)),_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.