1var _global;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="219750a8-a4c6-4c5c-b6ed-15c9fe522f08",e._sentryDebugIdIdentifier="sentry-dbid-219750a8-a4c6-4c5c-b6ed-15c9fe522f08")}catch(e){}}(),(_global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"1.30.3.5"},function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="219750a8-a4c6-4c5c-b6ed-15c9fe522f08",e._sentryDebugIdIdentifier="sentry-dbid-219750a8-a4c6-4c5c-b6ed-15c9fe522f08")}catch(e){}}(),(_global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"94c52878174d063fe834ad5b32e500e278fea03b"},(self.webpackChunkbiesse_website=self.webpackChunkbiesse_website||[]).push([[660],{25265:function(e,l,a){a.d(l,{W:function(){return i}});var t=a(90512),n=a(67294),s=a(85893);const r={md:"md:container md:mx-auto",lg:"lg:container lg:mx-auto",xl:"xl:container xl:mx-auto"},i=(0,n.forwardRef)(((e,l)=>{let{children:a,pagePaddingX:n,containerClassName:i,className:c,containerFrom:d="md"}=e;return(0,s.jsx)("div",{className:(0,t.Z)("w-full flex justify-center",n&&"px-8 lg:px-20",c),ref:l,children:(0,s.jsx)("div",{className:(0,t.Z)("w-full",r[d],i),children:a})})}))},37664:function(e,l,a){a.d(l,{c:function(){return d}});var t=a(90512),n=a(20146),s=a(6973),r=a(76251),i=a(85893);const c=e=>{let{icon:l,className:a,active:n=!1,linkUrl:s,label:c,...d}=e;return(0,i.jsxs)("a",{className:(0,t.Z)("rounded-3xl overflow-hidden flex flex-col gap-3 p-5 items-center",n?"bg-primary":"bg-neutral",a),href:s,...d,children:[(0,i.jsx)("div",{className:"bg-light overflow-hidden rounded-full flex justify-center items-center w-24 h-24",children:(0,i.jsx)(r.J,{icon:l,size:45,className:"text-primary"})}),(0,i.jsx)("div",{className:(0,t.Z)("font-light text-lg leading-snug text-center truncate",n?"text-light":"text-primary"),children:c})]})},d=e=>{var l,a,r,d;let{node_locale:o,className:x,currentPage:u,isCorporateAccount:f=!1}=e;const{labels:m}=(0,n.bE)(),g=(0,s.yF)("/personal-area/profile",o),h=(0,s.yF)("/personal-area/calendar",o);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(0,t.Z)("flex justify-center gap-6 w-full invisible lg:visible",x),children:[!f&&(0,i.jsx)(c,{linkUrl:g,label:null!==(l=m["personal-area-profile-tab-cta"])&&void 0!==l?l:"",icon:"profile",active:"profile"===u,className:"flex-[0_0_50%]"}),(0,i.jsx)(c,{linkUrl:h,label:null!==(a=m["personal-area-calendar-tab-cta"])&&void 0!==a?a:"",icon:"calendar-check",className:"flex-[0_0_50%]",active:"calendar"===u})]}),(0,i.jsxs)("div",{className:(0,t.Z)("flex gap-6 w-full lg:invisible visible justify-center",x),children:[!f&&(0,i.jsx)("a",{href:g,className:(0,t.Z)("text-lg leading-tight font-normal p-4","profile"===u?"bg-light text-primary rounded-4xl border border-primary":"text-dark"),children:null!==(r=m["personal-area-profile-tab-cta"])&&void 0!==r?r:""}),(0,i.jsx)("a",{href:h,className:(0,t.Z)("text-lg leading-tight font-normal p-4","calendar"===u?"bg-light text-primary rounded-4xl border border-primary":"text-dark"),children:null!==(d=m["personal-area-calendar-tab-cta"])&&void 0!==d?d:""})]})]})}},82409:function(e,l,a){a.r(l),a.d(l,{default:function(){return z}});var t=a(67294),n=a(10768),s=a(39185),r=a(21550),i=a(20146),c=a(5972),d=a(68152),o=a(35088),x=a(14160),u=a(83063),f=a(9689),m=a(25265),g=a(42234),h=a(63511),p=a(90512),v=a(20757),b=a(28473),j=a(72276),N=a(63049),y=a(76251),w=a(28021),D=a(33822),k=a(82210),I=a(18479);function P(e){const{dateAsString:l,node_locale:a}=e,n=(0,t.useMemo)((()=>l?new Date(l):null),[l]);return(0,t.useMemo)((()=>{if(!n)return null;return Intl.DateTimeFormat(null!=a?a:I.al,{day:"2-digit",month:"short",year:"2-digit"}).format(n)}),[n,a])}var E=a(85893);const C=e=>{let{person:{FirstName:l,LastName:a},checkInDate:t,checkOutDate:n,hotel:s,hotelDescription:r,labels:i,index:c,rooms:d}=e;const o="text-xs font-medium",x="text-xs font-light",u=P({dateAsString:t}),f=P({dateAsString:n});return(0,E.jsxs)("div",{className:"grid grid-cols-6 border border-neutral rounded-2xl p-3 gap-3 w-full",children:[(0,E.jsxs)("div",{className:"flex text-xs flex-col",children:[(0,E.jsx)("b",{className:o,children:`${i["events-guest"]} ${c}`}),(0,E.jsx)("p",{className:x,children:`${l} ${a}`})]}),s?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"flex text-xs flex-col col-span-2",children:[(0,E.jsx)("b",{className:o,children:i["event-hotel"]}),(0,E.jsx)("p",{className:x,children:r})]}),(0,E.jsxs)("div",{className:"flex text-xs flex-col",children:[(0,E.jsx)("b",{className:o,children:i["event-rooms"]}),(0,E.jsx)("p",{className:x,children:d})]}),(0,E.jsxs)("div",{className:"flex text-xs flex-col",children:[(0,E.jsx)("b",{className:o,children:i["event-check-in"]}),(0,E.jsx)("p",{className:x,children:u})]}),(0,E.jsxs)("div",{className:"flex text-xs flex-col",children:[(0,E.jsx)("b",{className:o,children:i["event-check-out"]}),(0,E.jsx)("p",{className:x,children:f})]})]}):(0,E.jsx)("div",{className:"flex text-xs flex-col col-span-5 pt-4",children:(0,E.jsx)("p",{className:x,children:i["event-no-hotel"]})})]})},_=e=>{let{event:l,labels:a,className:t,variant:n,detailPageUrl:s}=e;const{registrationConfirmed:r,title:i,startDate:c,endDate:d,eventType:o,materials:x,country:u,location:f,people:m,checkInDate:g,checkOutDate:h,hotel:v,hotelDescription:I,rooms:P,url:_}=l,{formattedDateRange:S,formattedDateTimeRange:A}=(0,k.d)({startDateEvent:c,endDateEvent:d,startDateSubscription:c,endDateSubscription:d}),F=`https://calendar.google.com/calendar/render?action=TEMPLATE&dates=${c}%2F${d}&text=${i}`;return(0,E.jsxs)("div",{className:(0,p.Z)("rounded-3xl flex flex-col lg:flex-row overflow-hidden items-stretch",t),children:[(0,E.jsxs)("div",{className:"bg-primary-light flex flex-col min-w-92 text-dark p-5 gap-3 justify-between",children:[(0,E.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,E.jsxs)("div",{className:"text-sm font-light",children:[(0,E.jsx)("b",{children:a["event-card-status"]})," ",r?a["event-card-status-confirmed"]:a["event-card-status-unconfirmed"]]}),(0,E.jsx)("div",{className:"flex flex-row items-baseline gap-1",children:(0,E.jsx)("div",{className:"text-4xl font-medium",children:S})}),x.length>0&&(0,E.jsx)("div",{className:"flex gap-2 flex-wrap",children:x.map((e=>{var l,t;const n=w.x[e];return(0,E.jsx)(j.D,{color:null!==(l=null==n?void 0:n.tagColor)&&void 0!==l?l:N.CF.Neutral,checked:!0,readOnly:!0,dimension:N.qu.Small,className:"w-fit",children:null!==(t=a[null==n?void 0:n.label])&&void 0!==t?t:e},e)}))}),(0,E.jsx)("div",{className:"text-2xl font-medium",children:i}),s&&(0,E.jsx)("a",{href:s,className:"text-base text-primary underline",children:a["event-card-event-detail"]})]}),(0,E.jsx)("a",{href:F,className:"self-start",children:(0,E.jsx)(b.P,{variant:"primary-outline",size:"sm",children:a["event-card-add-to-calendar"]})})]}),"upcoming"===n?(0,E.jsxs)("div",{className:"px-5 pt-7 pb-5 bg-light flex flex-col text-sm font-light flex-grow justify-between gap-2 items-start",children:[(0,E.jsxs)("div",{className:"flex flex-col gap-1 self-stretch",children:[(0,E.jsxs)("div",{className:"flex gap-3",children:[(o===D.tw.IN_PERSON||o===D.tw.BOTH)&&(0,E.jsx)(j.D,{color:N.CF.Neutral,dimension:N.qu.Small,children:a["event-card-live-tag"]}),(o===D.tw.DIGITAL||o===D.tw.BOTH)&&(0,E.jsx)(j.D,{color:N.CF.Neutral,dimension:N.qu.Small,children:a["event-card-online-tag"]})]}),(0,E.jsxs)("div",{className:"text-sm font-light flex gap-3",children:[(0,E.jsx)("b",{className:"font-medium",children:a["event-card-hour"]}),(0,E.jsx)("p",{children:A})]}),(u||f)&&(0,E.jsxs)("div",{className:"text-sm font-light flex gap-3",children:[(0,E.jsx)("b",{className:"font-medium",children:a["event-card-location"]}
1),(0,E.jsx)("p",{children:[u,f].filter(Boolean).join(", ")})]}),(0,E.jsxs)("div",{className:"text-sm font-light flex flex-col gap-3",children:[(0,E.jsx)("b",{className:"font-medium",children:a["event-card-people"]}),m.map(((e,l)=>(0,E.jsx)(C,{checkInDate:g,checkOutDate:h,hotel:v,index:l+1,hotelDescription:I,rooms:P,labels:a,person:e},l)))]})]}),(0,E.jsx)("a",{href:_,className:"self-end",children:(0,E.jsx)(b.P,{size:"sm",variant:"primary",children:a["event-card-join-online"]})})]}):(0,E.jsxs)("div",{className:"px-5 pt-7 pb-5 bg-light flex flex-col text-sm font-light flex-grow justify-center gap-2 items-start",children:[(0,E.jsx)("div",{children:a["events-past-event-description"]}),(0,E.jsxs)("a",{href:_,className:"flex flex-row items-center gap-2 text-primary",children:[(0,E.jsx)("p",{children:a["events-relive-cta"]}),(0,E.jsx)(y.J,{icon:"arrow-right",size:20})]})]})]})},S=e=>{let{events:l,labels:a,variant:n,eventDetailPagePath:s}=e;const[r,i]=(0,t.useState)(10);(0,t.useEffect)((()=>{i(10)}),[l]);const c=(0,t.useMemo)((()=>l.slice(0,Math.min(l.length,r))),[l,r]),d=(0,t.useCallback)((e=>`${s}?eventId=${e}`),[s]);return(0,E.jsxs)("div",{className:"pt-8",children:[(0,E.jsx)("div",{className:(0,p.Z)("flex flex-col","gap-5"),children:c.map((e=>(0,E.jsx)(_,{labels:a,variant:n,event:e,detailPageUrl:d(e.eventId)},e.id)))}),0===c.length&&(0,E.jsx)("div",{className:"text-lg lg:text-2xl text-center w-full mt-8",children:a["events-no-results"]}),r<l.length&&(0,E.jsx)("div",{className:"w-full flex justify-center mt-16",children:(0,E.jsx)(v.z,{variant:"primary",onClick:()=>{i((e=>e+10))},children:a["events-load-more"]})})]})},A=e=>{let{labels:l,pastSubscriptions:a,upcomingSubscriptions:n,detailPageId:s}=e;const r=(0,g.JD)(null!=s?s:void 0),i=(0,t.useMemo)((()=>[{id:"upcoming",header:l["events-upcoming-subscriptions-tabs"],body:(0,E.jsx)(S,{labels:l,events:n,variant:"upcoming",eventDetailPagePath:r})},{id:"past",header:l["events-past-subscriptions-tabs"],body:(0,E.jsx)(S,{labels:l,events:a,variant:"past",eventDetailPagePath:r})}]),[l,a,n,r]);return(0,E.jsx)(h.mQ,{variant:h.vI.Pill,tabs:i})};var F=a(18033),L=a(77121),T=a(92363);var $=a(37664),O=a(63659),M=a(6973);const Z=e=>{let{labels:l,locale:a,detailPageId:n}=e;const[s,r,i]=function(){const{locale:e}=(0,L.PE)(),l=(0,F.f)(e),[a,n]=(0,T.O)(),s=(0,t.useMemo)((()=>(new Date).getTime()),[]),r=(0,t.useMemo)((()=>a.filter((e=>s>new Date(e.endDate).getTime())).map((e=>({...e,country:"",location:"",url:""})))),[a,s]),[i,c]=(0,t.useState)(u.ag.LOADING),[d,o]=(0,t.useState)([]);return(0,t.useEffect)((()=>{if(n===u.ag.FAILED)return c(u.ag.FAILED);const e=a.filter((e=>s<=new Date(e.endDate).getTime())),t=(0,u.sT)({withCredentials:!1,headers:{"Accept-Language":l}}),r=e.map((e=>t.get(`${u.zU.EVENTS}/${e.eventId}`).then((l=>{var a,t,n,s,r,i;return{...e,country:null!==(a=null===(t=l.data.data)||void 0===t?void 0:t.country)&&void 0!==a?a:"",location:null!==(n=null===(s=l.data.data)||void 0===s?void 0:s.location)&&void 0!==n?n:"",url:null!==(r=null===(i=l.data.data)||void 0===i?void 0:i.url)&&void 0!==r?r:""}})).catch((l=>(console.log(l),{...e,country:"",location:"",url:""})))));Promise.all(r).then((e=>{o(e),c(u.ag.SUCCESS)}))}),[a,l,s,n]),[r,d,i]}(),{logged:c,checking:d,userInfo:o}=(0,f.Eu)();return(0,t.useEffect)((()=>{!d&&!c&&(0,x.navigate)((0,M.yF)("/",a))}),[d,c,a]),c?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(m.W,{pagePaddingX:!0,children:(0,E.jsxs)("div",{className:"flex flex-col items-center mt-5",children:[(0,E.jsx)($.c,{currentPage:"calendar",node_locale:a,isCorporateAccount:!(null==o||!o.idp),className:"max-w-5xl"}),(0,E.jsx)("div",{className:"flex flex-col py-16 gap-11",children:(0,E.jsxs)("div",{className:"text-center flex flex-col gap-8 items-center",children:[(0,E.jsx)("div",{className:"text-primary text-5xl lg:text-7xl font-medium leading-tight",children:l["personal-area-calendar-title"]}),(0,E.jsx)("div",{className:"text-base lg:text-lg leading-snug font-light",children:l["personal-area-calendar-abstract"]})]})})]})}),i===u.ag.FAILED?(0,E.jsx)("div",{className:"text-lg text-dark font-light mx-auto p-8 text-center",children:l["api-network-error"]}):(0,E.jsx)(m.W,{pagePaddingX:!0,className:"rounded-t-3xl bg-neutral",containerClassName:"pt-8",children:(0,E.jsx)(A,{detailPageId:n,labels:l,pastSubscriptions:s,upcomingSubscriptions:r})})]}):(0,E.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,E.jsx)(O.$,{size:"large",className:"m-auto"})})};var z=e=>{var l;let{data:{allContentfulHeaderMenu:a,allContentfulLabel:x,allContentfulRichTextLabel:u,contentfulStandardPage:f,allContentfulFooter:m},pageContext:{locale:g,allPageNodes:h,localizedUrls:p}}=e;const v=a.nodes.find((e=>e.node_locale===g)),b=m.nodes.find((e=>e.node_locale===g)),j=(0,i.N9)(Array.from(x.nodes),(e=>null!=e?e:"")),N=(0,i.N9)(Array.from(u.nodes),(e=>{var l;return null!==(l=null==e?void 0:e.raw)&&void 0!==l?l:""})),y=(0,c.C)();return(0,t.useEffect)((()=>{y({breadcrumbs:[{label:o.kq.PersonalArea,defaultLocaleLabel:o.kq.PersonalArea,url:""},{label:o.kq.Calendar,defaultLocaleLabel:o.kq.Calendar,url:""}],content_group:d.j.Other,locale:g})}),[y,g]),(0,E.jsxs)(r.B,{labels:j,richTextLabels:N,localizedUrls:p,locale:g,pageNodes:null!=h?h:[],className:"bg-neutral-light",children:[v&&(0,E.jsx)(s.A,{headerMenu:v,internalPagePath:"/pers
1onal-area/calendar",pageContentfulId:null}),(0,E.jsx)(Z,{labels:j,locale:g,detailPageId:null!==(l=null==f?void 0:f.id)&&void 0!==l?l:null}),b&&(0,E.jsx)(n.$,{...b})]})}},68152:function(e,l,a){a.d(l,{j:function(){return t}});let t=function(e){return e.Home="home",e.Content="content",e.NotFound="404",e.Form="form",e.Product="product",e.Events="events",e.Other="other",e}({})}}]); 2//# sourceMappingURL=component---src-templates-personal-area-calendar-page-index-tsx-c7c8fd1104b7f17c13e4.js.map
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.