1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[960],{481:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/kurumsal/duyurular",function(){return a(4084)}])},4084:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>v});var n=a(7876),r=a(4232),l=a(4463),i=a(8112),s=a(8813),c=a(9099),o=a(7328),d=a.n(o),u=a(8230),m=a.n(u),h=a(2276),x=a(5112),y=a(8950),f=a(4138),p=a(5364);let g=e=>{let{announces:t,locale:a}=e;return(0,s.L)(()=>{let e=i.Ay.context(()=>{i.Ay.timeline().to(".announce-card-inner",{top:0,opacity:1,duration:.5,stagger:.3})});return()=>e.revert()},[]),(0,n.jsx)("div",{className:"grid grid-cols-1 announce-grid lg:grid-cols-3 gap-8",children:t&&Array.isArray(t)?t.map((e,t)=>(0,n.jsx)(m(),{href:{pathname:"/kurumsal/duyurular/[slug]",query:{title:e.baslik||"",slug:e.id||""}},children:(0,n.jsxs)("div",{className:"announce-card relative w-full rounded-2xl",children:[(0,n.jsxs)("div",{className:"h-full w-2/5 justify-center items-center flex flex-col bg-gray-800 relative main-image rounded-l-2xl",children:[(0,n.jsx)("h1",{className:"text-4xl font-bold text-white tracking-tight text-center",children:e.tarih?(0,h.GP)(new Date(e.tarih),"dd"):""}),"tr"===a?(0,n.jsx)("h1",{className:"text-6xl font-bold text-white tracking-tight text-center",children:e.tarih?(0,h.GP)(new Date(e.tarih),"MMM",{locale:x.tr}):""}):(0,n.jsx)("h1",{className:"text-6xl font-bold text-white tracking-tight text-center",children:e.tarih?(0,h.GP)(new Date(e.tarih),"MMM",{locale:y.b}):""}),(0,n.jsx)("h1",{className:"text-4xl font-bold text-white tracking-tight text-center",children:e.tarih?(0,h.GP)(new Date(e.tarih),"yyyy"):""})]}),(0,n.jsx)("div",{className:"bg-gray-200 w-3/5",children:(0,n.jsx)("div",{className:"caption justify-center items-center flex h-full p-8 relative",children:(0,n.jsx)("h1",{className:"text-xs text-black tracking-tighter text-center h-full justify-center items-center flex font-bold",children:"tr"==a?e.baslik:e.baslikEn?e.baslikEn:e.baslik})})})]})},"".concat(e.id,"-").concat(t))):""})},v=()=>{var e;let t=(0,c.useRouter)(),a=(0,r.useRef)(null),{data:o,isLoading:u,isError:m,fetchNextPage:h,hasNextPage:x,isFetchingNextPage:y}=(0,f.yx)({pageSize:10}),v=(null==o||null==(e=o.pages)?void 0:e.flatMap(e=>{var t;return(null==(t=e.data)?void 0:t.data)||[]}))||[],b=(0,r.useCallback)(e=>{let[t]=e;t.isIntersecting&&x&&!y&&h()},[h,x,y]);return(0,r.useEffect)(()=>{let e=a.current;if(!e)return;let t=new IntersectionObserver(b,{root:null,rootMargin:"100px",threshold:0});return t.observe(e),()=>{e&&t.unobserve(e)}},[b]),(0,s.L)(()=>{let e=i.Ay.context(()=>{i.Ay.timeline().to(".announce-title",{top:0,opacity:1,duration:.5})});return()=>e.revert()},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d(),{children:[(0,n.jsx)("title",{children:"tr"==t.locale?"Duyurular | DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcÄ\xdc":"Announcements | DEVLET OPERA VE BALESİ GENEL M\xdcD\xdcRL\xdcÄ\xdc"}),(0,n.jsx)("meta",{name:"description",content:"tr"==t.locale?"Devlet Opera ve Balesi Genel M\xfcd\xfcrl\xfcÄ\xfc ge\xe7miÅ duyuruları, haberler ve arÅiv bilgileri":"State Opera and Ballet General Directorate past announcements, news and archive information"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,n.jsx)("meta",{name:"keywords",content:"tr"==t.locale?"duyurular, ge\xe7miÅ duyurular, opera haberleri, bale haberleri, arÅiv":"announcements, past announcements, opera news, ballet news, archive"}),(0,n.jsx)("link",{rel:"canonical",href:"".concat(p.env.NEXT_PUBLIC_SITE_URL).concat(t.asPath)})]}),(0,n.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,n.jsxs)("div",{className:"flex items-center justify-between flex-row container",children:[(0,n.jsx)("div",{className:"w-1/2",children:(0,n.jsx)("h2",{className:"text-white relative text-3xl",children:"tr"==t.locale?"Duyurular":"Announcements"})}),(0,n.jsx)("div",{className:"flex text-white flex-row"})]})}),(0,n.jsx)(l.A,{color:"filler-gray fixed top-0"}),(0,n.jsx)("div",{className:"top-12 relative",style:{background:"#f3f3f3"},children:(0,n.jsx)("div",{style:{background:"#f3f3f3"},className:"container bg-white",children:(0,n.jsx)("div",{className:"relative h-max pt-16 pb-16 grid grid-cols-1",children:(0,n.jsx)("div",{className:"flex-col flex justify-center items-start",children:(0,n.jsx)("h1",{className:"text-black relative top-16 announce-title title-main opacity-0 font-semibold text-5xl",children:"tr"==t.locale?"Duyurular":"Announcements"})})})})}),(0,n.jsx)("div",{className:"bg-white pt-8 lg:pt-24 pb-16",children:(0,n.jsxs)("div",{className:"container bg-white",children:[(0,n.jsxs)("div",{className:"flex-col flex lg:hidden justify-center mb-16 items-start",children:[(0,n.jsx)("h1",{className:"text-black font-semibold text-5xl"}),(0,n.jsx)("h1",{className:"text-gray-600 text-3xl"})]}),u?(0,n.jsx)("div",{className:"flex justify-center items-center py-16",children:(0,n.jsx)("div",{className:"text-gray-600 text-xl",children:"tr"==t.locale?"Y\xfckleniyor...":"Loading..."})}
1):m?(0,n.jsx)("div",{className:"flex justify-center items-center py-16",children:(0,n.jsx)("div",{className:"text-red-600 text-xl",children:"tr"==t.locale?"Duyurular y\xfcklenirken bir hata oluÅtu":"An error occurred while loading announcements"})}):v.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g,{locale:t.locale,announces:v}),(0,n.jsx)("div",{ref:a,className:"flex justify-center items-center py-8 mt-8",children:y?(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,n.jsx)("div",{className:"w-8 h-8 border-4 border-gray-300 border-t-gray-800 rounded-full animate-spin"}),(0,n.jsx)("span",{className:"text-gray-600",children:"tr"==t.locale?"Daha fazla y\xfckleniyor...":"Loading more..."})]}):x?(0,n.jsx)("span",{className:"text-gray-400",children:"tr"==t.locale?"Daha fazla duyuru i\xe7in aÅaÄı kaydırın":"Scroll down for more announcements"}):v.length>0?(0,n.jsx)("span",{className:"text-gray-500 font-medium",children:"tr"==t.locale?"T\xfcm duyurular y\xfcklendi":"All announcements loaded"}):null})]}):(0,n.jsx)("div",{className:"flex justify-center items-center py-16",children:(0,n.jsx)("div",{className:"text-gray-600 text-xl",children:"tr"==t.locale?"Duyurular bulunamadı":"No announcements found in archive"})})]})})]})}},4138:(e,t,a)=>{"use strict";a.d(t,{Cl:()=>o,R4:()=>u,cD:()=>s,hT:()=>h,tN:()=>y,yx:()=>p});var n=a(4359),r=a(9596),l=a(1040);let i=async e=>{let{total:t}=e,a=await l.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,n.I)({queryKey:["announcements",t],queryFn:()=>i({total:t})})},c=async e=>{let t=await l.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},o=e=>(0,n.I)({queryKey:["announcement",e],queryFn:()=>c(e),enabled:!!e}),d=async e=>{let t=await l.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,n.I)({queryKey:["announcement-images",e],queryFn:()=>d(e),enabled:!!e}),m=async e=>{let t=await l.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,n.I)({queryKey:["announcement-documents",e],queryFn:()=>m(e),enabled:!!e}),x=async e=>{let t=await l.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},y=e=>(0,n.I)({queryKey:["announcement-videos",e],queryFn:()=>x(e),enabled:!!e}),f=async e=>{let{pageParam:t=1,pageSize:a=10}=e,n=await l.A.get("".concat("https://apimain.operabale.gov.tr","/v1/web/duyuru/listele"),{params:{page:t,limit:a}});if(!n.data)throw Error("Failed to fetch archive announcements");return n.data},p=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 f({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 n=a(7876);a(4232);let r=e=>(0,n.jsx)("div",{className:"h-24 ".concat(e.color," w-full")})},8813:(e,t,a)=>{"use strict";a.d(t,{L:()=>d});var n=a(4232),r=a(8112);let l="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,i=e=>e&&!Array.isArray(e)&&"object"==typeof e,s=[],c={},o=r.Ay,d=(e,t=s)=>{let a=c;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}
1=a,[u,m]=(0,n.useState)(!1);e&&"function"!=typeof e&&console.warn("First parameter must be a function or config object");let h=o.context(()=>{},r),x=()=>h.revert(),y=t&&t.length&&!d;return l(()=>{if(e&&h.add(e,r),!y||!u)return x},t),y&&l(()=>(m(!0),x),s),{context:h,contextSafe:e=>h.add(null,e)}};d.register=e=>{o=e},d.headless=!0},8950:(e,t,a)=>{"use strict";a.d(t,{b:()=>o});var n=a(2895),r=a(6598),l=a(6390),i=a(4544),s=a(273);let c={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"})},o={code:"en-GB",formatDistance:n.B,formatLong:c,formatRelative:r.o,localize:l.k,match:i.Y,options:{weekStartsOn:1,firstWeekContainsDate:4}}}},e=>{e.O(0,[736,689,636,593,792],()=>e(e.s=481)),_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.