PageSourceSearch

https://www.aselsan.com/_next/static/chunks/pages/events-7bd9d1a34b4fdf23.js

js aselsan.com collected 2026-10-02 07:11:47 UTC 5,122 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4787],{21995:(e,t,a)=>{"use strict";a.d(t,{h:()=>n.A});var n=a(55323)},53057:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/events",function(){return a(93298)}])},93298:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>x});var n=a(37876),l=a(14232),o=a(89099),i=a(19002),r=a(34846),s=a(76203),u=a(91176),c=a(77558),d=a(5966),g=a(41080),p=a(21995),_=a(373),m=a(97412),y=a.n(m),v=a(97),h=a(91607);let k=e=>{let t=new Date,a=new Date(t.getFullYear(),t.getMonth(),1),n=t.getMonth()+e,l=new Date(t.getFullYear(),n,0,23,59,59);return{from:a.toISOString(),to:l.toISOString()}};function x(){let e=(0,o.useRouter)(),{locale:t}=e.query,a=Array.isArray(t)?t[0]:t,m=window.location.pathname.split("/").filter(Boolean)[0],x=(0,u.kW)(a||m),{t:L}=(0,r.Bd)(),[f,C]=(0,l.useState)(0),[I,A]=(0,l.useState)(null),[S,P]=(0,l.useState)(null),[b,j]=(0,l.useState)(null),[w,E]=(0,l.useState)("all"),[D,T]=(0,l.useState)("all"),O=(0,l.useRef)(null),[F,M]=(0,l.useState)(0);(0,l.useEffect)(()=>{let e=O.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e)M(t.contentRect.height)});return t.observe(e),()=>t.disconnect()},[]);let{from:R,to:q}=(0,l.useMemo)(()=>k(d.K),[]),N=(0,l.useCallback)(()=>{let e=new URLSearchParams({from:R,to:q});return"true"===w&&e.set("isInternational","true"),"all"!==D&&e.set("eventTypeId",D),"/".concat(x,"/events?").concat(e.toString())},[x,R,q,w,D]),{data:W,isLoading:B}=(0,i.Ay)(N(),async e=>{let t=await s.A.get(e);return Array.isArray(t.data)?t.data:[]},{revalidateOnFocus:!1}),{data:H}=(0,i.Ay)("/".concat(x,"/events/types"),async e=>{let t=await s.A.get(e);return Array.isArray(t.data)?t.data:[]},{revalidateOnFocus:!1}),K=(0,l.useMemo)(()=>(null!=W?W:[]).map(e=>({id:e.id,slug:e.slug,startDate:e.startDate,endDate:e.endDate,isInternational:e.isInternational,coverImage:e.coverImage,eventType:e.eventType,translations:e.translations})),[W]),U=(0,l.useCallback)(e=>{C(e),A(null)},[]),G=(0,l.useCallback)((e,t)=>{e!==f&&C(e),A(t)},[f]),z=(0,l.useCallback)(t=>{t.slug&&e.push((0,c.Ji)(x,t.slug))},[e,x]),X=(0,l.useCallback)(e=>{j(null),requestAnimationFrame(()=>{j(e.id)})},[]),Q=e=>{var t,a;let n=null!=(t=e.translations.find(e=>e.locale===x))?t:e.translations[0];return null!=(a=null==n?void 0:n.name)?a:e.slug},V=L("Page.Events.Title"),Y=(0,l.useMemo)(()=>{let e="/:locale/events?from=".concat(R,"&to=").concat(q);return"true"===w&&(e+="&isInternational=true"),"all"!==D&&(e+="&eventTypeId=".concat(D)),e},[R,q,w,D]),J=(0,h._)("events",{metaTitle:"Etkinlikler | ASELSAN"});return(0,n.jsxs)("div",{children:[(0,n.jsx)(v.A,{title:J.metaTitle||"Etkinlikler | ASELSAN",description:J.metaDescription,keywords:J.metaKeywords,schemaType:J.schemaType||"CollectionPage",ogImageUrl:J.ogImageUrl}),(0,n.jsx)("div",{className:y().heroWrapper,children:(0,n.jsx)(g.A,{imageUrl:void 0,defaultImage:"/images/header/header-background.png",title:V,description:L("Page.Events.Description"),showOverlay:!0,locale:x,crumbSection:V})}),(0,n.jsxs)("div",{style:{maxWidth:1200,margin:"0 auto",padding:"40px 20px"},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:12,marginBottom:24},children:[(0,n.jsxs)("select",{value:w,onChange:e=>E(e.target.value),style:{padding:"8px 12px",border:"1px solid #e2e8f0",fontSize:13,fontFamily:"inherit"},children:[(0,n.jsx)("option",{value:"all",children:L("Common.All")}),(0,n.jsxs)("option",{value:"true",children:["\uD83C\uDF0D ",L("Common.International")]})]}),(0,n.jsxs)("select",{value:D,onChange:e=>T(e.target.value),style:{padding:"8px 12px",border:"1px solid #e2e8f0",fontSize:13,fontFamily:"inherit"},children:[(0,n.jsx)("option",{value:"all",children:L("Common.AllTypes")}),null==H?void 0:H.map(e=>(0,n.jsx)("option",{value:e.id,children:Q(e)},e.id))]})]}),B&&(0,n.jsx)("div",{style:{padding:40,textAlign:"center",color:"#94a3b8"},children:L("Common.Loading")}),!B&&(0,n.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"360px 1fr",gap:28,alignItems:"start"},children:[(0,n.jsx)("div",{ref:O,style:{position:"sticky",top:20},children:(0,n.jsx)(p.h,{apiEndpoint:Y,locale:x,accentColor:"#FF5620",hideRightPanel:!0,hideMiniList:!0,onEventClick:X})}),(0,n.jsx)(_.A,{events:K,locale:x,monthCount:d.K,activeMonthIdx:f,onMonthChange:U,selectedDay:I,onSelectDay:G,hoveredEventId:S,onHoverEvent:P,onEventClick:z,accentColor:"#FF5620",secondaryAccent:"#003087",focusEventId:b,scrollMaxHeight:F>0?F:void 0})]})]})]})}},97412:e=>{e.exports={root:"PageLayout_root__lTsyI",heroWrapper:"PageLayout_heroWrapper__pLIoQ",pageContainer:"PageLayout_pageContainer__t_Ku1",contentGrid:"PageLayout_contentGrid__O9ard",menuColumn:"PageLayout_menuColumn__Vi_an",contentColumn:"PageLayout_contentColumn__iBiKj",contentWrapper:"PageLayout_contentWrapper__dNyDO",rootRtl:"PageLayout_rootRtl__voIRO",quickLinks:"PageLayout_quickLinks__betbQ",quickLink:"PageLayout_quickLink__oXZno",quickLinkItem:"PageLayout_quickLinkItem__TGHoG",quickLinkIcon:"PageLayout_quickLinkIcon__NBg65",rootIRHideLeftOnMobile:"PageLayout_rootIRHideLeftOnMobile__0VW_U"}}},e=>{var t=t=>e(e.s=t);e.O(0,[4124,7370,636,6593,8792],()=>t(53057)),_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.