1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[928],{2969:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>g});var l=a(7876);a(4232);var r=a(8112),n=a(6142),i=a(4463);a(8813);var s=a(2276),o=a(8230),c=a.n(o),d=a(9099),u=a(5112),m=a(8950),h=a(7328),f=a.n(h),x=a(4138),p=a(6649),y=a(5364);r.Ay.registerPlugin(n.ScrollToPlugin);let g=()=>{var e,t;let a=(0,d.useRouter)(),{slug:r}=a.query,{data:n,isLoading:o,error:h}=(0,x.Cl)(r),{data:g,isLoading:v,error:b}=(0,x.R4)(r),{data:j,isLoading:w,error:N}=(0,x.hT)(r),{data:k,isLoading:E,error:T}=(0,x.tN)(r),A=(null==n?void 0:n.baslik)||"",P=(null==n?void 0:n.baslikEn)||"";if(o)return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("header",{className:" breadcrumb-header border-t flex bg-black top-12 sticky 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.jsxs)("h2",{className:"text-white text-3xl",children:[" ","tr"==a.locale?"Duyurular":"Announcements"]})}),(0,l.jsx)("div",{className:"flex text-white flex-row"})]})}),(0,l.jsx)(i.A,{color:"filler-gray fixed top-0"}),(0,l.jsx)("div",{className:"top-12 relative",style:{background:"#f3f3f3"},children:(0,l.jsx)("div",{style:{background:"#f3f3f3"},className:"container bg-white",children:(0,l.jsx)("div",{className:"relative h-max pt-16 p-16 grid grid-cols-1 ",children:(0,l.jsxs)("div",{className:" flex-col flex justify-center items-center gap-4",children:[(0,l.jsx)("div",{className:"h-10 w-3/4 bg-gray-200 rounded animate-pulse"}),(0,l.jsx)("div",{className:"h-10 w-1/2 bg-gray-200 rounded animate-pulse"})]})})})}),(0,l.jsx)("div",{className:"bg-white pt-8 lg:pt-24 pb-16",children:(0,l.jsxs)("div",{className:"container bg-white ",children:[(0,l.jsx)("div",{className:" w-[120px] h-[120px] justify-center items-center flex flex-col bg-gray-200 relative main-image rounded-2xl animate-pulse"}),(0,l.jsx)("div",{className:"grid relative mt-8 grid-cols-1 text-black lg:grid-cols-1 gap-4",children:(0,l.jsxs)("div",{className:"space-y-4 w-full",children:[Array.from({length:5}).map((e,t)=>(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse"},t)),(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse w-5/6"})]})}),(0,l.jsx)("div",{className:"flex flex-col mt-8 space-y-4",children:Array.from({length:2}).map((e,t)=>(0,l.jsx)("div",{className:"p-6 bg-gray-100 border border-gray-200 rounded-md animate-pulse"},t))}),(0,l.jsx)("div",{className:"mb-8 relative mt-16 space-y-6",children:Array.from({length:2}).map((e,t)=>(0,l.jsx)("div",{className:"w-full h-64 bg-gray-200 rounded-2xl animate-pulse"},t))}),(0,l.jsx)("div",{className:"flex flex-col mt-4 space-y-8",children:Array.from({length:3}).map((e,t)=>(0,l.jsx)("div",{className:"w-full h-80 bg-gray-200 rounded-2xl animate-pulse"},t))})]})})]});if(h)return(0,l.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold text-red-600",children:"tr"===a.locale?"Bir hata oluÅtu":"An error occurred"}),(0,l.jsx)("p",{className:"mt-2 text-gray-600",children:h.message||"Failed to load announcement"})]})});if(!n)return(0,l.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"tr"===a.locale?"Duyuru bulunamadı":"Announcement not found"})})});let L=e=>e?e.split(" ").slice(0,2).join(" "):"";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f(),{children:[(0,l.jsx)("title",{children:"tr"==a.locale?"".concat(L(A)," | DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcÄ\xdc"):"".concat(L(P)," | DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcÄ\xdc")}),(0,l.jsx)("meta",{name:"description",content:"tr"==a.locale?(null==(e=n.icerik)?void 0:e.replace(/<[^>]*>/g,"").slice(0,160))||"":(null==(t=n.icerikEn)?void 0:t.replace(/<[^>]*>/g,"").slice(0,160))||""}),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,l.jsx)("meta",{name:"keywords",content:"tr"==a.locale?"duyuru, opera, bale, etkinlik, haber, devlet opera ve balesi":"announcement, opera, ballet, event, news, state opera and ballet"}
1),(0,l.jsx)("link",{rel:"canonical",href:"".concat(y.env.NEXT_PUBLIC_SITE_URL).concat(a.asPath)})]}),(0,l.jsx)("header",{className:" breadcrumb-header border-t flex bg-black top-12 sticky 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.jsxs)("h2",{className:"text-white text-3xl",children:[" ","tr"==a.locale?"Duyurular":"Announcements"]})}),(0,l.jsx)("div",{className:"flex text-white flex-row"})]})}),(0,l.jsx)(i.A,{color:"filler-gray fixed top-0"}),(0,l.jsx)("div",{className:"top-12 relative",style:{background:"#f3f3f3"},children:(0,l.jsx)("div",{style:{background:"#f3f3f3"},className:"container bg-white",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-black relative title-main font-semibold text-5xl text-center",children:"tr"==a.locale?A:P})})})})}),(0,l.jsx)("div",{className:"bg-white pt-8 lg:pt-24 pb-16",children:(0,l.jsxs)("div",{className:"container bg-white ",children:[(0,l.jsxs)("div",{className:" w-[120px] h-[120px] justify-center items-center flex flex-col bg-gray-800 relative main-image rounded-2xl ",children:[(0,l.jsx)("h1",{className:"text-3xl font-bold text-white tracking-tight text-center ",children:(0,s.GP)(new Date(n.tarih),"dd")}),(0,l.jsx)("h1",{className:"text-3xl font-bold text-white tracking-tight text-center ",children:(0,s.GP)(new Date(n.tarih),"MMM",{locale:"tr"===a.locale?u.tr:m.b})}),(0,l.jsx)("h1",{className:"text-3xl font-bold text-white tracking-tight text-center ",children:(0,s.GP)(new Date(n.tarih),"yyyy")})]}),(0,l.jsx)("div",{className:"grid relative mt-8 grid-cols-1 text-black lg:grid-cols-1 gap-4",children:(0,l.jsx)("div",{children:"tr"==a.locale?(0,p.Ay)(n.icerik):(0,p.Ay)(n.icerikEn)})}),(0,l.jsx)("div",{className:"flex flex-col mt-8",children:!w&&j&&j.length>0&&j.map((e,t)=>(0,l.jsx)(c(),{className:"p-2 text-main relative border mb-4 rounded-md border-gray-900",href:"".concat(e.onizlemeLink),children:e.tanim},t))}),!E&&k&&k.length>0&&(0,l.jsx)("div",{className:"mb-8 relative mt-16",children:k.map((e,t)=>(0,l.jsx)("video",{src:e.onizlemeLink,controls:!0},t))}),!v&&g&&g.length>0&&(0,l.jsx)("div",{className:"flex flex-col mt-4",children:g.map((e,t)=>(0,l.jsx)("div",{className:"mb-8 relative mt-16",children:(0,l.jsx)("img",{src:e?"".concat(e.onizlemeLink):"",alt:""})},t))})]})})]})}},4138:(e,t,a)=>{"use strict";a.d(t,{Cl:()=>c,R4:()=>u,cD:()=>s,hT:()=>h,tN:()=>x,yx:()=>y});var l=a(4359),r=a(9596),n=a(1040);let i=async e=>{let{total:t}=e,a=await n.A.get("".concat("https://apimain.operabale.gov.tr","/v1/web/duyuru/listele"),{params:{total:t}});if(!a.data)throw Error("Failed to fetch announcements");return(await a.data).data||null},s=e=>{let{total:t}=e;return(0,l.I)({queryKey:["announcements",t],queryFn:()=>i({total:t})})},o=async e=>{let t=await n.A.get("".concat("https://apimain.operabale.gov.tr","/v1/web/duyuru/").concat(e));if(!t.data)throw Error("Failed to fetch announcement detail");return t.data.data||null},c=e=>(0,l.I)({queryKey:["announcement",e],queryFn:()=>o(e),enabled:!!e}),d=async e=>{let t=await n.A.post("".concat("https://apimain.operabale.gov.tr","/v1/web/duyuru/gorsel-liste"),{duyuruId:e,tip:"fotograf"},{headers:{"Content-Type":"application/json",accept:"text/plain"}});if(!t.data)throw Error("Failed to fetch announcement images");return t.data.data||null},u=e=>(0,l.I)({queryKey:["announcement-images",e],queryFn:()=>d(e),enabled:!!e}),m=async e=>{let t=await n.A.post("".concat("https://apimain.operabale.gov.tr","/v1/web/duyuru/belge-liste"),{duyuruId:e,tip:"belge"},{headers:{"Content-Type":"application/json",accept:"text/plain"}});if(!t.data)throw Error("Failed to fetch announcement documents");return t.data.data||null},h=e=>(0,l.I)({queryKey:["announcement-documents",e],queryFn:()=>m(e),enabled:!!e}),f=async e=>{let t=await n.A.post("".concat("https://apimain.operabale.gov.tr","/v1/web/duyuru/video-liste"),{duyuruId:e,tip:"video"});if(!t.data)throw Error("Failed to fetch announcement videos");return t.data.data||null},x=e=>(0,l.I)({queryKey:["announcement-videos",e],queryFn:()=>f(e),enabled:!!e}),p=async e=>{let{pageParam:t=1,pageSize:a=10}=e,l=await n.A.get("".concat("https://apimain.operabale.gov.tr","/v1/web/duyuru/listele"),{params:{page:t,limit:a}});if(!l.data)throw Error("Failed to fetch archive announcements");return l.data},y=function(){let{pageSize:e=10}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.q)({queryKey:["archive-announcements",e],queryFn:t=>{let{pageParam:a}=t;return p({pageParam:a,pageSize:e})},initialPageParam:1,getNextPageParam:e=>{let t=null==e?void 0:e.data;if(!t)return;let a=t.simdikiSayfaNo;return a<t.toplamSayfaSayisi?a+1:void 0}})}},4463:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(7876);a(4232);let r=e=>(0,l.jsx)("div",{className:"h-24 ".concat(e.color," w-full")})},6142:function(e,t){(function(e){"use strict";var t,a,l,r,n,i,s,o,c=function(){return"undefined"!=typeof window},d=function(){return t||c()&&(t=window.gsap)&&t.registerPlugin&&t},u=function(e){return"string"==typeof e},m=function(e){return"function"==typeof e},h=function(e,t){var a="x"===t?"Width":"Height",i="scroll"+a,s="client"+a;return e===l||e===r||e===n?Math.max(r[i],n[i])-(l["inner"+a]||r[s]||n[s]):e[i]-e["offset"+a]},f=function(e,t){var a="scroll"+("x"===t?"Left":"Top");return e===l&&(null!=e.pageXOffset?a="page"+t.toUpperCase()+"Offset":e=null!=r[a]?r:n),function(){return e[a]}},x=function(e,t,a,l){if(m(e)&&(e=e(t,a,l)),"object"!=typeof e)return u(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};
1if(e.nodeType)return{y:e,x:e};var r,n={};for(r in e)n[r]="onAutoKill"!==r&&m(e[r])?e[r](t,a,l):e[r];return n},p=function(e,t){if(!(e=i(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var a=e.getBoundingClientRect(),s=!t||t===l||t===n,o=s?{top:r.clientTop-(l.pageYOffset||r.scrollTop||n.scrollTop||0),left:r.clientLeft-(l.pageXOffset||r.scrollLeft||n.scrollLeft||0)}:t.getBoundingClientRect(),c={x:a.left-o.left,y:a.top-o.top};return!s&&t&&(c.x+=f(t,"x")(),c.y+=f(t,"y")()),c},y=function(e,t,a,l,r){return isNaN(e)||"object"==typeof e?u(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+l-r:"max"===e?h(t,a)-r:Math.min(h(t,a),p(e,t)[a]-r):parseFloat(e)-r},g=function(){t=d(),c()&&t&&"undefined"!=typeof document&&document.body&&(l=window,n=document.body,r=document.documentElement,i=t.utils.toArray,t.config({autoKillThreshold:7}),s=t.config(),a=1)},v={version:"3.12.5",name:"scrollTo",rawVars:1,register:function(e){t=e,g()},init:function(e,r,n,i,s){a||g();var c=t.getProperty(e,"scrollSnapType");this.isWin=e===l,this.target=e,this.tween=n,r=x(r,i,e,s),this.vars=r,this.autoKill=!!r.autoKill,this.getX=f(e,"x"),this.getY=f(e,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),o||(o=t.core.globals().ScrollTrigger),"smooth"===t.getProperty(e,"scrollBehavior")&&t.set(e,{scrollBehavior:"auto"}),c&&"none"!==c&&(this.snap=1,this.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=r.x?(this.add(this,"x",this.x,y(r.x,e,"x",this.x,r.offsetX||0),i,s),this._props.push("scrollTo_x")):this.skipX=1,null!=r.y?(this.add(this,"y",this.y,y(r.y,e,"y",this.y,r.offsetY||0),i,s),this._props.push("scrollTo_y")):this.skipY=1},render:function(e,t){for(var a,r,n,i,c,d=t._pt,u=t.target,m=t.tween,f=t.autoKill,x=t.xPrev,p=t.yPrev,y=t.isWin,g=t.snap,v=t.snapInline;d;)d.r(e,d.d),d=d._next;a=y||!t.skipX?t.getX():x,n=(r=y||!t.skipY?t.getY():p)-p,i=a-x,c=s.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),f&&(!t.skipX&&(i>c||i<-c)&&a<h(u,"x")&&(t.skipX=1),!t.skipY&&(n>c||n<-c)&&r<h(u,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(m.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(m,t.vars.onAutoKillParams||[]))),y?l.scrollTo(t.skipX?a:t.x,t.skipY?r:t.y):(t.skipY||(u.scrollTop=t.y),t.skipX||(u.scrollLeft=t.x)),g&&(1===e||0===e)&&(r=u.scrollTop,a=u.scrollLeft,v?u.style.scrollSnapType=v:u.style.removeProperty("scroll-snap-type"),u.scrollTop=r+1,u.scrollLeft=a+1,u.scrollTop=r,u.scrollLeft=a),t.xPrev=t.x,t.yPrev=t.y,o&&o.update()},kill:function(e){var t="scrollTo"===e,a=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),a>-1&&this._props.splice(a,1),!this._props.length}};v.max=h,v.getOffset=p,v.buildGetter=f,d()&&t.registerPlugin(v),e.ScrollToPlugin=v,e.default=v,Object.defineProperty(e,"__esModule",{value:!0})})(t)},8296:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/kurumsal/duyurular/[slug]",function(){return a(2969)}])},8813:(e,t,a)=>{"use strict";a.d(t,{L:()=>d});var l=a(4232),r=a(8112);let n="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,i=e=>e&&!Array.isArray(e)&&"object"==typeof e,s=[],o={},c=r.Ay,d=(e,t=s)=>{let a=o;i(e)?(a=e,e=null,t="dependencies"in a?a.dependencies:s):i(t)&&(t="dependencies"in(a=t)?a.dependencies:s);let{scope:r,revertOnUpdate:d}=a,[u,m]=(0,l.useState)(!1);e&&"function"!=typeof e&&console.warn("First parameter must be a function or config object");let h=c.context(()=>{},r),f=()=>h.revert(),x=t&&t.length&&!d;return n(()=>{if(e&&h.add(e,r),!x||!u)return f},t),x&&n(()=>(m(!0),f),s),{context:h,contextSafe:e=>h.add(null,e)}};d.register=e=>{c=e},d.headless=!0},8950:(e,t,a)=>{"use strict";a.d(t,{b:()=>c});var l=a(2895),r=a(6598),n=a(6390),i=a(4544),s=a(273);let o={date:(0,s.k)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,s.k)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,s.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={code:"en-GB",formatDistance:l.B,formatLong:o,formatRelative:r.o,localize:n.k,match:i.Y,options:{weekStartsOn:1,firstWeekContainsDate:4}}}},e=>{e.O(0,[736,689,649,636,593,792],()=>e(e.s=8296)),_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.