1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e208efac-a723-4dd1-856b-0aa5577faec2",e._sentryDebugIdIdentifier="sentry-dbid-e208efac-a723-4dd1-856b-0aa5577faec2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1517],{38116:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events/my-events",function(){return r(19649)}])},19649:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSG:function(){return j}});var d=r(24476),l=r(64660),i=r(75891),t=r(3980),s=r(596),o=r(82973),a=r(55943),c=r(60905),u=r(50775),x=r(77659),f=r(48455),h=r(49341),v=r(75312),b=r(12688),p=r(89778),y=r(82698),g=r(40841),j=!0;n.default=()=>{let[e,n]=(0,l.useState)(new Date),{user:{employee:r}}=(0,y.aC)(),{attendingEvents:j}=(0,g.Ei)({employeeId:r}),{organizedEvents:_}=(0,g.LD)({employeeId:r}),m=e?null==j?void 0:j.filter(n=>{var r;let d=null==n?void 0:null===(r=n.node)||void 0===r?void 0:r.endDate;if(e&&d)return new Date(d)>=e}):j,w=e?null==_?void 0:_.filter(n=>{let r=null==n?void 0:n.endDate;if(e&&r)return new Date(r)>=e}):_;return(0,d.jsxs)(i.k,{pt:"8rem",px:{base:4,xl:14},flexDirection:"column",gap:4,color:"greyText",children:[(0,d.jsx)(i.k,{alignItems:"center",gap:"2",mb:"4",children:(0,d.jsx)(t.x,{color:"primary",fontWeight:"bold",fontSize:"2xl",children:"Events"})}),(0,d.jsx)(s.x,{maxWidth:80,pb:4,children:(0,d.jsx)(p.Mt,{label:"Nur Events anzeigen nach dem",selected:e,setSelected:n})}),(0,d.jsxs)(o.m,{width:"full",isLazy:!0,children:[(0,d.jsx)(a.t,{border:"none",children:["Meine Anmeldungen","Meine erstellten Events"].map(e=>(0,d.jsx)(c.O,{_selected:{background:"secondary60"},_hover:{background:"secondary60"},color:"primary",fontWeight:"600",px:4,mr:2,py:2,borderRadius:"bubble",children:e},e))}),(0,d.jsxs)(u.n,{children:[(0,d.jsx)(x.x,{children:(0,d.jsxs)(f.M,{minChildWidth:"400px",gap:4,children:[!m&&(0,d.jsx)(h.$,{}),Array.isArray(m)&&(null==m?void 0:m.length)>0?m.map(e=>{var n;return(0,d.jsx)(b.Zb,{event:null==e?void 0:e.node},null==e?void 0:null===(n=e.node)||void 0===n?void 0:n.objectId)}):(0,d.jsxs)(v.K,{children:[(0,d.jsx)(t.x,{as:"span",color:"gray.600",fontSize:"xl",children:"Keine Events gefunden"}),(0,d.jsx)(p.rU,{href:"/events",fontSize:"md",children:"zur Event-\xdcbersicht â"})]})]})}),(0,d.jsx)(x.x,{children:(0,d.jsxs)(f.M,{minChildWidth:"400px",gap:4,children:[!w&&(0,d.jsx)(h.$,{}),Array.isArray(w)&&(null==w?void 0:w.length)>0?w.map(e=>(0,d.jsx)(b.Zb,{event:e},null==e?void 0:e.objectId)):(0,d.jsx)(v.K,{children:(0,d.jsx)(t.x,{as:"span",color:"gray.600",fontSize:"xl",children:"Keine Events gefunden"})})]})})]})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=38116)}),_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.