1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54844],{73579:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=o.default,a=(null==t?void 0:t.suspense)?{}:{loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};e instanceof Promise?a.loader=function(){return e}:"function"===typeof e?a.loader=e:"object"===typeof e&&(a=r({},a,e));if((a=r({},a,t)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");a.suspense&&(delete a.ssr,delete a.loading);a.loadableGenerated&&delete(a=r({},a,a.loadableGenerated)).loadableGenerated;if("boolean"===typeof a.ssr&&!a.suspense){if(!a.ssr)return delete a.ssr,i(n,a);delete a.ssr}return n(a)},t.noSSR=i;var r=n(6495).Z,a=n(92648).Z,o=(a(n(67294)),a(n(23668)));function i(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3982:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var r=(0,n(92648).Z)(n(67294)).default.createContext(null);t.LoadableContext=r},23668:function(e,t,n){"use strict";var r=n(33227),a=n(88361);function o(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(6495).Z,c=(0,n(92648).Z)(n(67294)),s=n(3982),u=n(61688).useSyncExternalStore,d=[],m=[],f=!1;function p(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}var h=function(){function e(t,n){r(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return a(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=l({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function g(e){return function(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);n.suspense&&(n.lazy=c.default.lazy(n.loader));var r=null;function a(){if(!r){var t=new h(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!f){var i=n.webpack?n.webpack():n.modules;i&&m.push((function(e){var t,n=o(i);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return a()}}catch(l){n.e(l)}finally{n.f()}}))}function d(){a();var e=c.default.useContext(s.LoadableContext);
1e&&Array.isArray(n.modules)&&n.modules.forEach((function(t){e(t)}))}var p=n.suspense?function(e,t){return d(),c.default.createElement(n.lazy,l({},e,{ref:t}))}:function(e,t){d();var a=u(r.subscribe,r.getCurrentValue,r.getCurrentValue);return c.default.useImperativeHandle(t,(function(){return{retry:r.retry}}),[]),c.default.useMemo((function(){return a.loading||a.error?c.default.createElement(n.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?c.default.createElement((t=a.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,a])};return p.preload=function(){return a()},p.displayName="LoadableComponent",c.default.forwardRef(p)}(p,e)}function v(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return v(e,t)}))}g.preloadAll=function(){return new Promise((function(e,t){v(d).then(e,t)}))},g.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return f=!0,t()};v(m,e).then(n,n)}))},window.__NEXT_PRELOADREADY=g.preloadReady;var y=g;t.default=y},71603:function(e,t,n){"use strict";n.d(t,{U_:function(){return x},o6:function(){return y},q4:function(){return _},z$:function(){return w}});var r,a,o,i,l=n(50029),c=n(71383),s=n(87794),u=n.n(s),d=n(39948),m=n(28687),f=(0,m.gql)(r||(r=(0,c.Z)(["\n query ($organizerId: String!, $locale: String) {\n locVenueCollection(\n limit: 1\n locale: $locale\n where: { organizerId: $organizerId }\n ) {\n items {\n name\n organizerId\n countryCode\n heroImage\n description\n eventsCollection {\n items {\n eventId\n ticketingUrl\n }\n }\n }\n }\n }\n"]))),p=(0,m.gql)(a||(a=(0,c.Z)(["\n query ($organizerId: String!, $locale: String) {\n locVenueCollection(\n limit: 1\n locale: $locale\n where: { organizerId: $organizerId }\n ) {\n items {\n name\n organizerId\n countryCode\n heroImage\n description\n eventsCollection {\n items {\n eventId\n ticketingUrl\n }\n }\n location {\n name\n description\n city\n population\n area\n altitude\n websiteUrl\n ticketingUrl\n faqCollection {\n items {\n summary\n text\n }\n }\n }\n }\n }\n }\n"]))),h=(0,m.gql)(o||(o=(0,c.Z)(["\n query ($organizerId: String!, $locale: String) {\n locVenueCollection(\n limit: 1\n locale: $locale\n where: { organizerId: $organizerId }\n ) {\n items {\n name\n organizerId\n countryCode\n heroImage\n description\n eventsCollection {\n items {\n eventId\n ticketingUrl\n }\n }\n arena {\n name\n description\n about\n coordinates {\n lat\n lon\n }\n altitude\n opened\n renovationsCollection {\n items {\n startDate\n endDate\n }\n }\n snowCannonCapacity\n capacity\n worldCups\n worldChampionships\n }\n }\n }\n }\n"]))),g=(0,m.gql)(i||(i=(0,c.Z)(["\n query ($locale: String) {\n locVenueCollection(locale: $locale) {\n items {\n name\n organizerId\n countryCode\n }\n }\n }\n"]))),v=function(){var e=(0,l.Z)(u().mark((function e(t,n,r){var a;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.gc.request(t,{organizerId:n.toUpperCase(),locale:d.Uf.get(null!==r&&void 0!==r?r:"en")});case 2:return a=e.sent,e.abrupt("return",a.locVenueCollection.items.find((function(e){return e.organizerId.toLowerCase()===n.toLowerCase()})));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),y=function(){var e=(0,l.Z)(u().mark((function e(t,n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",v(f,t,n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),_=function(){var e=(0,l.Z)(u().mark((function e(t,n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",v(p,t,n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),x=function(){var e=(0,l.Z)(u().mark((function e(t,n){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",v(h,t,n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),w=function(){var e=(0,l.Z)(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.gc.request(g,{locale:d.Uf.get(null!==t&&void 0!==t?t:"en")});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},89813:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(5152),a=n.n(r)()((function(){return Promise.all([n.e(75461),n.e(5564),n.e(64623)]).then(n.bind(n,64623))}),{ssr:!1,loadableGenerated:{webpack:function(){return[64623]}}})},82705:function(e,t,n){"use strict";n.d(t,{c:function(){return k}});var r=n(19521),a=n(16973),o=n(47323),i=n(41664),l=n.n(i),c=n(54680),s=n(28091),u=n(25675),d=n.n(u),m=(n(67294),n(58888)),f=n(85893),p=r.ZP.span.withConfig({displayName:"CompetitionStatus__RegularStatus",componentId:"sc-1y7g1bx-0"})(["color:",";font-family:",";font-weight:500;font-size:14px;line-height:19px;text-align:left;
1"],c.r.colors.ibuGrey800,c.r.fontFamilies.condensed),h=r.ZP.span.withConfig({displayName:"CompetitionStatus__LiveStatus",componentId:"sc-1y7g1bx-1"})(["align-self:flex-start;background-color:",";border-radius:76px;color:",";font-family:",";font-size:12px;font-weight:700;padding:6px 12px;text-transform:uppercase;"],c.r.colors.ibuAlertRed,c.r.colors.white,c.r.fontFamilies.regular);function g(e){var t=e.competition,n=(0,m.$G)("common").t;return(0,a.p8)(t)?(0,f.jsx)(h,{children:n("competitionStatus_live")}):(0,f.jsx)(p,{children:n(a.nM.get(t.StatusId)||"competitionStatus_unknown")})}var v=n(2046),y=n(15914),_=n.n(y),x=r.ZP.a.withConfig({displayName:"CompetitionListSelectionItem__ItemBody",componentId:"sc-1mh1xa3-0"})(["align-items:center;display:flex;flex-direction:row;&:hover{background-color:",";text-decoration:none;}"],c.r.colors.ibuWhiteItemHover),w=r.ZP.div.withConfig({displayName:"CompetitionListSelectionItem__LeftPane",componentId:"sc-1mh1xa3-1"})(["align-items:center;display:flex;flex-direction:column;",""],(function(e){return e.hideDate?"visibility: hidden":"visibility: visible"})),D=r.ZP.div.withConfig({displayName:"CompetitionListSelectionItem__RightPane",componentId:"sc-1mh1xa3-2"})(["display:flex;align-items:center;flex-grow:1;padding:1.25rem 0;",""],(function(e){return e.noUnderline?"border-bottom: none;":"border-bottom: solid thin ".concat(c.r.colors.ibuSoftBorder,";")})),b=r.ZP.span.withConfig({displayName:"CompetitionListSelectionItem__Month",componentId:"sc-1mh1xa3-3"})(["color:",";font-family:",";font-size:14px;text-transform:uppercase;text-align:center;"],c.r.colors.ibuBlue800,c.r.fontFamilies.condensed),C=r.ZP.span.withConfig({displayName:"CompetitionListSelectionItem__DayOfTheMonth",componentId:"sc-1mh1xa3-4"})(["color:",";font-family:",";font-size:24px;line-height:36px;font-weight:bold;text-align:center;"],c.r.colors.ibuBlue800,c.r.fontFamilies.condensed),S=(0,r.ZP)(b).withConfig({displayName:"CompetitionListSelectionItem__Year",componentId:"sc-1mh1xa3-5"})([""]),I=r.ZP.div.withConfig({displayName:"CompetitionListSelectionItem__Portrait",componentId:"sc-1mh1xa3-6"})(["margin:0 28px;display:flex;flex-direction:column;justify-content:center;@media (max-width:","px){margin:12px;}"],c.r.breakPoints.small),Z=r.ZP.div.withConfig({displayName:"CompetitionListSelectionItem__Content",componentId:"sc-1mh1xa3-7"})(["display:flex;flex-direction:column;flex-grow:1;"]),j=r.ZP.span.withConfig({displayName:"CompetitionListSelectionItem__WeekdayAndTime",componentId:"sc-1mh1xa3-8"})(["color:",";font-family:",";font-weight:500;font-size:14px;line-height:19px;text-align:left;"],c.r.colors.ibuGrey800,c.r.fontFamilies.condensed),P=r.ZP.span.withConfig({displayName:"CompetitionListSelectionItem__CompetitionDescription",componentId:"sc-1mh1xa3-9"})(["color:",";font-family:",";font-weight:500;font-size:1rem;line-height:1.5rem;letter-spacing:0.5px;text-align:left;text-transform:uppercase;@media (max-width:","px){font-size:0.875rem;}"],c.r.colors.ibuBlue900,c.r.fontFamilies.regular,c.r.breakPoints.small),M=r.ZP.img.attrs({src:_(),width:21,height:15,alt:"Link to competition"}).withConfig({displayName:"CompetitionListSelectionItem__ArrowRight",componentId:"sc-1mh1xa3-10"})(["margin-right:1rem;"]);function k(e){var t=e.competition,n=e.event,r=e.noUnderline,i=e.hideDate,c=(0,o.HV)(),u=c.localizeMonthCompact,m=c.localizeWeekdayCompact,p=c.localizeTime,h=(0,s.Ex)(t.RaceId,t.catId,t.DisciplineId),y=function(e,t){if((0,a.p8)(e))return t?(0,v.G)(t,e):"/live";return(0,a.LK)(e)?"results/".concat(e.RaceId):"startlist/".concat(e.RaceId)}(t,n);return(0,f.jsx)(l(),{href:y,passHref:!0,prefetch:!1,children:(0,f.jsxs)(x,{children:[(0,f.jsxs)(w,{hideDate:i,children:[(0,f.jsx)(b,{children:u(new Date(t.StartTime))}),(0,f.jsx)(C,{children:new Date(t.StartTime).getDate()}),(0,f.jsx)(S,{children:new Date(t.StartTime).getFullYear()})]}),(0,f.jsxs)(D,{noUnderline:r,children:[(0,f.jsx)(I,{children:(0,f.jsx)(d(),{src:h,width:65,height:65,loader:s.R,layout:"fixed"})}),(0,f.jsxs)(Z,{children:[(0,f.jsxs)(j,{children:[m(new Date(t.StartTime))," ",p(new Date(t.StartTime))]}
1),(0,f.jsx)(P,{children:t.ShortDescription}),(0,f.jsx)(g,{competition:t})]}),(0,f.jsx)(M,{})]})]})})}},66977:function(e,t,n){"use strict";n.d(t,{J:function(){return c}});var r=n(19521),a=n(54680),o=n(85893),i=r.ZP.div.withConfig({displayName:"NoData__Styled",componentId:"sc-1e5avdx-0"})(["display:flex;justify-content:center;align-items:center;padding:6.25rem 0rem;font-family:",";font-size:1.25rem;color:",";text-transform:uppercase;"],a.r.fontFamilies.condensed,a.r.colors.ibuGrey700),l=r.ZP.img.withConfig({displayName:"NoData__Icon",componentId:"sc-1e5avdx-1"})(["display:block;margin-right:1.25rem;"]);function c(e){var t=e.icon,n=e.children;return(0,o.jsxs)(i,{children:[t?(0,o.jsx)(l,{src:t,alt:"no data",width:42,height:42}):null,n]})}},47323:function(e,t,n){"use strict";n.d(t,{HV:function(){return d},cJ:function(){return u}});var r=n(58888),a=n(36579),o=n(95826),i=n(70879),l=n(75830),c=n(71806);function s(){switch((0,r.$G)().i18n.language){case"en":default:return{locale:o.Z};case"de":return{locale:i.Z};case"fr":return{locale:l.Z};case"ru":return{locale:c.Z}}}function u(e){var t=(0,r.$G)(e||"common").t,n=s();return{localizeTimeRange:function(e){var r=e.startDate,o=e.endDate,i=function(e){var t=e.startDate,n=e.endDate;if(t.getFullYear()!==n.getFullYear())return{startDateFormatKey:"format_date_yearMonthDay",endDateFormatKey:"format_date_yearMonthDay"};if(t.getMonth()!==n.getMonth())return{startDateFormatKey:"format_date_monthDay",endDateFormatKey:"format_date_yearMonthDay"};return{startDateFormatKey:"format_date_day",endDateFormatKey:"format_date_yearMonthDay"}}({startDate:r,endDate:o}),l=i.startDateFormatKey,c=i.endDateFormatKey,s=(0,a.Z)(r,t(l),n),u=(0,a.Z)(o,t(c),n);return t("dateRange",{formattedStartDate:s,formattedEndDate:u})},localizeTimeRangeCompact:function(e){var r=e.startDate,o=e.endDate,i=function(e){var t=e.startDate,n=e.endDate;if(t.getFullYear()!==n.getFullYear())return{startDateFormatKey:"format_date_yearMonthDay_compact",endDateFormatKey:"format_date_yearMonthDay_compact"};if(t.getMonth()!==n.getMonth())return{startDateFormatKey:"format_date_monthDay_compact",endDateFormatKey:"format_date_yearMonthDay_compact"};return{startDateFormatKey:"format_date_day_compact",endDateFormatKey:"format_date_yearMonthDay_compact"}}({startDate:r,endDate:o}),l=i.startDateFormatKey,c=i.endDateFormatKey,s=(0,a.Z)(r,t(l),n),u=(0,a.Z)(o,t(c),n);return t("dateRange_compact",{formattedStartDate:s,formattedEndDate:u})},localizeTimeRangeCompactMonth:function(e){var r=e.startDate,o=e.endDate,i=function(e){var t=e.startDate,n=e.endDate;if(t.getFullYear()!==n.getFullYear())return{startDateFormatKey:"format_date_yearMonthDay_compactMonth",endDateFormatKey:"format_date_yearMonthDay_compactMonth"};if(t.getMonth()!==n.getMonth())return{startDateFormatKey:"format_date_monthDay_compactMonth",endDateFormatKey:"format_date_yearMonthDay_compactMonth"};return{startDateFormatKey:"format_date_day_compact",endDateFormatKey:"format_date_yearMonthDay_compactMonth"}}({startDate:r,endDate:o}),l=i.startDateFormatKey,c=i.endDateFormatKey,s=(0,a.Z)(r,t(l),n),u=(0,a.Z)(o,t(c),n);return t("dateRange",{formattedStartDate:s,formattedEndDate:u})},localizeTimeRangeDateMonth:function(e){var r=e.startDate,o=e.endDate,i=function(e){var t=e.startDate,n=e.endDate;if(t.getMonth()!==n.getMonth())return{startDateFormatKey:"format_date_monthDay_compactMonth",endDateFormatKey:"format_date_monthDay_compactMonth"};return{startDateFormatKey:"format_date_day_compact",endDateFormatKey:"format_date_monthDay_compactMonth"}}({startDate:r,endDate:o}),l=i.startDateFormatKey,c=i.endDateFormatKey,s=(0,a.Z)(r,t(l),n),u=(0,a.Z)(o,t(c),n);return t("dateRange",{formattedStartDate:s,formattedEndDate:u})},localizeTimeRangeCompactYear:function(e){var r=e.startDate,o=e.endDate,i=(0,a.Z)(r,t("format_date_year"),n),l=o?(0,a.Z)(o,t("format_date_year_c
1ompact"),n):null;return r.getFullYear()===(null===o||void 0===o?void 0:o.getFullYear())?i:t("dateRange",{formattedStartDate:i,formattedEndDate:l})}}}function d(e){var t=(0,r.$G)(e||"common").t,n=s();return{localizeDate:function(e){return(0,a.Z)(e,t("format_date_yearMonthDay"),n)},localizeWeekdayCompact:function(e){return(0,a.Z)(e,t("format_date_weekday_compact"),n)},localizeTime:function(e){return(0,a.Z)(e,t("format_date_hourMinute"),n)},localizeTimePrecise:function(e){return(0,a.Z)(e,t("format_date_hourMinuteSecond"),n)},localizeMonth:function(e){return(0,a.Z)(e,t("format_date_month"),n)},localizeMonthCompact:function(e){return(0,a.Z)(e,t("format_date_month_compact"),n)}}}},2046:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(34155).env.NEXT_PUBLIC_SIMULATOR_CLIENT_ID;function a(e,t){var n=r||e.EventId,a=t.RSC;return n&&a?"/live?c=".concat(n,"&u=").concat(a):"/live"}},16412:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return J},default:function(){return W}});var r=n(77622),a=n(64303),o=n(58888),i=n(99701),l=n(78103),c=n(45511),s=n(68439),u=n(64144),d=n(27812),m=n(16835),f=n(98964),p=n(10865),h=n(16973),g=n(19521),v=n(54680),y=n(82705),_=n(41591),x=n.n(_),w=n(95996),D=n.n(w),b=n(85893),C=g.ZP.details.withConfig({displayName:"PreviousCompetitionsList__CompetitionList",componentId:"sc-2c1m42-0"})(['margin-bottom:3rem;cursor:pointer;&:not([open]) > summary > div::after{content:url("','");display:block;margin-left:auto;}&[open] > summary{border-bottom:none;> div{color:',";> div{background-color:",';}&::after{content:url("','");display:block;margin-left:auto;}}}'],x(),v.r.colors.ibuBlue500,v.r.colors.ibuBlue500,D()),S=g.ZP.summary.withConfig({displayName:"PreviousCompetitionsList__CompetitionListSummary",componentId:"sc-2c1m42-1"})(["display:block;padding:1.25rem 0rem;border-bottom:solid thin ",";&::-webkit-details-marker{display:none;}"],v.r.colors.ibuGrey600),I=g.ZP.div.withConfig({displayName:"PreviousCompetitionsList__CompetitionListHeader",componentId:"sc-2c1m42-2"})(["display:flex;align-items:center;width:100%;font-family:",";font-weight:400;font-size:1rem;text-transform:uppercase;color:",";"],v.r.fontFamilies.condensed,v.r.colors.ibuGrey800),Z=g.ZP.div.withConfig({displayName:"PreviousCompetitionsList__CompetitionCount",componentId:"sc-2c1m42-3"})(["display:flex;justify-content:center;align-items:center;background-color:",";color:white;margin-left:1rem;height:1.625rem;width:1.625rem;border-radius:50%;font-family:",";font-size:0.75rem;font-weight:700;"],v.r.colors.ibuGrey800,v.r.fontFamilies.bold),j=g.ZP.nav.withConfig({displayName:"PreviousCompetitionsList__CompetitionListItems",componentId:"sc-2c1m42-4"})([""]);function P(e){var t=e.event,n=e.competitions,r=(0,o.$G)("calendar").t;return n&&0!==n.length?(0,b.jsxs)(C,{children:[(0,b.jsx)(S,{children:(0,b.jsxs)(I,{children:[r("previousCompetitions"),(0,b.jsx)(Z,{children:n.length})]})}),(0,b.jsx)(j,{children:n.map((function(e){return(0,b.jsx)(y.c,{event:t,competition:e},e.RaceId)}))})]}):null}var M=n(70208);function k(e){var t=e.event,n=e.items;return n&&0!==n.length?(0,b.jsx)("div",{children:n.map((function(e,r){return(0,b.jsx)(y.c,{event:t,competition:e,noUnderline:r!==n.length-1,hideDate:0!==r},e.RaceId)}))}):null}var F=n(63805);function L(e){var t=e.title,n=e.icon,r=e.event,a=e.competitions;if(!a||0===a.length)return null;var o=function(e){var t=e.reduce((function(e,t){var n=new Date(t.StartTime).getDate();return e[n]?e[n]=[].concat((0,d.Z)(e[n]),[t]):e[n]=[t],e}),{});return Object.values(t).sort((function(e,t){return+new Date(e[0].StartTime)-+new Date(t[0].StartTime)}))}(a);return(0,b.jsxs)("nav",{children:[t?(0,b.jsx)(M.y,{title:t,icon:n,sponsorId:F.et}):null,o.map((function(e){return(0,b.jsx)(k,{event:r,items:e},JSON.stringify(e))}))]})}var z=n(81896),E=n.n(z),T=n(64610),N=n.n(T),K=n(66977),R=n(92218),O=n.n(R),A=n(94254),$=n(53726);function U(e){var t=e.competitions,n=e.selectedEvent,r=(0,o.$G)("calendar").t,a=t.reduce((function(e,t){var n=(0,m.Z)(e,2),r=n[0],a=n[1];return(0,h.LK)(t)?[[].concat((0,d.Z)(r),[t]),a]:[r,[].concat((0,d.Z)(a),[t])]}),[[],[]]),i=(0,m.Z)(a,2),l=i[0],c=i[1],s="div-gpt-ad-1723218556555-0";return(0,$.dY)($._m.calendarPage,$.Z9.contentPage,s),(0,b.jsx)("div",{children:0!==c.length?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(P,{event:n,competitions:l}),l.length>0&&(0,b.jsx)(A.U,{id:s}),(0,b.jsx)(L,{title:r("upcomingCompetitions"),icon:E(),event:n,competitions:c})]}):(0,b.jsx)(L,{title:r("eventResults"),icon:N(),event:n,competitions:l})})}function G(e){var t=e.initialState,n=(0,o.$G)("calendar"),r=n.t,i=n.i18n,l=a.nd.useContainer(),c=l.selectedEvent,s=l.events,u=(0,p.j$)({EventId:null===c||void 0===c?void 0:c.EventId,Language:i.language,initialState:t,event:c}),d=u.data,m=u.error,h=(0,f.EQ)({events:s,selectedEvent:c,error:m,competitions:d}).when((function(e){var t=e.events;return!(null!==t&&void 0!==t&&t.length)}),(function(){return r("competitionData_notAvailable")})).when((function(e){return!e.selectedEvent}),(function(){return r("error_competitionsList_noEventSelected")})).when((function(e){return e.error}),(function(){return r("error_fetch_competitionList")})).when((function(e){return!e.competitions}),(function(){return r("common:loading")})).when((function(e){var t=e.competitions;return!(null!==t&&void 0!==t&&t.length)}),(function(){return r("competitionData_notAvailable")})).otherwise((function(){}));return h?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(M.y,{title:r("upcomingCompetitions"),icon:E()}),(0,b.jsx)(K.J,{icon:O(),children:h})]}):(0,b.jsx)(U,{competitions:d,selectedEvent:c})}var V=n(71603),B=n(96933),H=n(8100),q=n(11163),Y=n(98164),J=!0;function W(e){var t=e.eventInitialState,n=e.seasonInitialState,d=e.competitionsInitialState,m=e.cupContainerInitialState,f=e.initialContentfulVenues,p=(0,o.$G)("calendar"),h=p.t,g=p.i18n,v=(0,q.useRouter)(),y=(0,H.ZP)(["contentfulVenueList",g.language],(function(){return(0,V.z$)(g.language)}),{fallbackData:f,revalidateOnFocus:!1}).data,_=v.query.EventId,x=t.events,w=t.selectedEvent,D=x.findIndex((function(e){return e.EventId===_})),C=D>
1=0?x[D]:w,S=C?"".concat(h("seoTitle")," - ").concat(C.Organizer,", ").concat(C.NatLong):h("seoTitle"),I=S,Z="".concat((0,B.P)(g.language)).concat(v.asPath),j={ogLocale:v.locale,ogAvailableLocale:v.locales,ogTitle:S,ogDescription:I,ogCanonicalUrl:Z},P={"@context":"https://schema.org","@type":"SportsEvent",name:(null===C||void 0===C?void 0:C.ShortDescription)||(null===C||void 0===C?void 0:C.Description),startDate:null===C||void 0===C?void 0:C.StartDate,endDate:null===C||void 0===C?void 0:C.EndDate,location:{"@type":"Place",name:null===C||void 0===C?void 0:C.NatLong},organizer:{"@type":"Organization",name:null===C||void 0===C?void 0:C.Organizer},description:null===C||void 0===C?void 0:C.Description,url:Z};return(0,$.dY)($._m.calendarPage,$.Z9.contentPage,"div-gpt-ad-1723218556555-0"),(0,b.jsx)(i.u.Provider,{initialState:m,children:(0,b.jsx)(r.A.Provider,{initialState:n,children:(0,b.jsx)(a.nd.Provider,{initialState:t,children:(0,b.jsx)(l.T,{title:S,metaDescription:I,openGraph:j,hero:(0,b.jsx)(c.HM,{contentfulVenues:y}),navigationTab:s.u.Calendar,canonicalUrl:Z,structuredData:P,hrefLangUrl:v.asPath,children:(0,b.jsx)(Y.Z,{adUnitPath:$._m.calendarPage,leftSkyScraperId:"div-gpt-ad-1723218556555-0-left",rightSkyScraperId:"div-gpt-ad-1723218556555-0-right",children:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.Z,{children:(0,b.jsx)(G,{initialState:d})}),(0,b.jsx)(A.U,{id:"div-gpt-ad-1723218556555-0"})]})})})})})})}},63317:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/calendar",function(){return n(16412)}])},5152:function(e,t,n){e.exports=n(73579)},53250:function(e,t,n){"use strict";var r=n(67294);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,i=r.useEffect,l=r.useLayoutEffect,c=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return l((function(){a.value=n,a.getSnapshot=t,s(a)&&u({inst:a})}),[e,n,t]),i((function(){return s(a)&&u({inst:a}),e((function(){s(a)&&u({inst:a})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},61688:function(e,t,n){"use strict";e.exports=n(53250)},15914:function(e){e.exports="data:image/svg+xml,%3csvg width='21' height='15' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.228 14.742a.923.923 0 0 1-.014-1.282l4.804-5.044H.883A.895.895 0 0 1 0 7.51c0-.5.395-.907.883-.907h17.14l-4.8
11-5.064A.923.923 0 0 1 13.23.257a.868.868 0 0 1 1.25.017l6.27 6.603a.914.914 0 0 1 .244.75.913.913 0 0 1-.25.521l-6.266 6.58a.867.867 0 0 1-1.249.014Z' fill='%23023850'/%3e%3c/svg%3e"},41591:function(e){e.exports="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.88 8.59a.8.8 0 0 1 1.13-.07L12 13.813l5.992-5.293a.8.8 0 1 1 1.06 1.2l-6.522 5.76a.8.8 0 0 1-1.059 0L4.95 9.72a.8.8 0 0 1-.07-1.13Z' fill='%23001D2A'/%3e%3c/svg%3e"},95996:function(e){e.exports="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M19.12 15.41a.8.8 0 0 1-1.13.07L12 10.187 6.007 15.48a.8.8 0 0 1-1.06-1.2l6.522-5.76a.8.8 0 0 1 1.059 0l6.521 5.76a.8.8 0 0 1 .07 1.13Z' fill='%23009CD9'/%3e%3c/svg%3e"},92218:function(e){e.exports="data:image/svg+xml,%3csvg width='43' height='44' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.5 39.925c9.9 0 17.925-8.025 17.925-17.925S31.4 4.075 21.5 4.075 3.575 12.1 3.575 22 11.6 39.925 21.5 39.925Zm0 3.2c11.667 0 21.125-9.458 21.125-21.125S33.167.875 21.5.875.375 10.333.375 22 9.833 43.125 21.5 43.125Z' fill='%23B5B5B5'/%3e%3ccircle cx='21.5' cy='31.125' r='2' fill='%23B5B5B5'/%3e%3crect x='19.5' y='8.5' width='4' height='18.125' rx='1' fill='%23B5B5B5'/%3e%3c/svg%3e"},64610:function(e){e.exports="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.704 10c-.718 0-1.304.586-1.304 1.303v2.752a1.273 1.273 0 0 0-.466-.086h-4.63c-.76 0-1.304.648-1.304 1.342v5.661h7.217v-.02H22v-4.224c.03-.745-.583-1.32-1.284-1.32h-4.63c-.164 0-.322.031-.467.087V11.32c.03-.745-.583-1.32-1.284-1.32h-4.63Zm.097 9.552v-8.151h4.416v8.151H9.801Zm-6.4-4.183v4.202h4.416V15.37H3.4Zm12.781 1.44v2.743h4.416v-2.743h-4.416Z' fill='%23001D2A'/%3e%3c/svg%3e"},81896:function(e){e.exports="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23a)'%3e%3cmask id='b' mask-type='alpha' maskUnits='userSpaceOnUse' x='4' y='2' width='12' height='12'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.754 2.027h11.168v11.205H4.754V2.027Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23b)'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.969 13.232c.121.12.242.12.364 0l4.248-5.18 5.22-5.422c.121-.12.121-.241 0-.362l-.121-.24h-.364l-.486.602c-.121.12-.243.12-.364 0l-.122-.241c-.121-.12-.242-.12-.364 0-.121.12-.121.24 0 .361l.122.12c.242.121.242.362.121.362L10.217 7.57l-5.34 4.216c-.122.12-.122.241 0 .362l1.092 1.084Z' fill='%23001D2A'/%3e%3c/g%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.674 4.29c.485 0 .97.36.97.842s-.363.964-.849.964h-.121a.827.827 0 0 1-.85-.843c0-.482.364-.843.85-.964Zm-1.578 1.083c.121.844.85 1.446 1.7 1.446h.12c.85 0 1.578-.843 1.457-1.687-.121-.843-.728-1.566-1.578-1.566h-.121c-.971.12-1.578.844-1.578 1.807Zm-.365 15.904 1.214-3.855c0-.241.122-1.085-.485-1.687l-2.55-2.771 2.307-2.53 1.457 1.325 2.67.361-3.277 9.157H14.73Zm-.85 0H12.79a.364.364 0 0 1 0-.482l1.093-3.735-4.006-3.494c-.364-.24-.486-.602-.486-.964 0-.361.122-.723.365-1.084l2.184-2.53s.85-.964 1.214-1.446c.122-.24.364-.24.607-.24.486 0 1.093.24 1.457.602l2.428 2.289 2.67.361c.122 0 .243.12.243.12.121.121.121.242.121.362 0 .241-.242.362-.485.362h-.364l-2.792-.362-1.942-1.687-3.156 3.615 3.034 3.253c.364.361.122.843.122.964l-1.214 4.096c.121 0 0 0 0 0Zm7.89-.482v.482h-4.976l3.277-9.157h.122c.607 0 1.092-.481 1.214-.963 0-.362 0-.603-.243-.844-.243-.24-.486-.361-.728-.482l-2.428-.361-2.306-2.048c-.486-.482-1.336-.844-1.943-.844-.485 0-.97.241-1.214.482-.364.482-1.213 1.446-1.213 1.446l-2.185 2.65c-.365.482-.607.964-.486 1.567 0 .602.364 1.084.728 1.446l3.642 3.132-.971 3.253a.763.763 0 0 0 0 .723H2.229V22h19.664c.122 0 .243 0 .486-.12.121-.121.243-.241.243-.482v-.603h-.85Z' fill='%23001D2A'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.35 16.699c-.122-.12-.122-.241-.122-.362 0-.12 0-.24.122-.24 0 0 .242-.121.364-.121.364 0 2.792.12 3.641.12a.93.93 0 0 0 .607-.24l.972-1.205c.12.12.242.361.485.482l.121.12c-.364.361-.85.964-1.213 1.325-.122.241-.365.241-.365.241-.364 0-3.641-.12-4.37-.12-.12.12-.242 0-.242 0Zm4.612.843c.122 0 .486 0 .972-.482.606-.602 1.456-1.566 1.699-1.807l-.85-.723c-.364-.361-.607-.723-.728-1.205l-1.7 2.048c0 .12-3.156-.12-3.641-.12-.607 0-1.214.361-1.214 1.084 0 .482.364 1.085 1.092 1.085.729.12 4.37.12 4.37.12Z' fill='%23001D2A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='white' transform='translate(1.5 2)' d='M0 0h21v20H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"},88305:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(67294);function a(e){var t=r.createContext(null);return{Provider:function(n){var a=e(n.initialState);return r.createElement(t.Provider,{value:a},n.children)},useContainer:function(){var e=r.useContext(t);if(null===e)throw new Error("Component must be wrapped with <Container.Provider>");return e}}}}},function(e){e.O(0,[53662,8100,22534,87066,36579,72595,11293,64242,16973,77622,45511,37581,49774,92888,40179],(function(){return t=63317,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.