1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[141,2948],{19032:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(67294);function r({controlled:e,default:t,name:n,state:r="value"}){let{current:s}=a.useRef(void 0!==e),[i,o]=a.useState(t),c=a.useCallback(e=>{s||o(e)},[]);return[s?e:i,c]}},92996:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a,r=n(67294);let s=0,i={...a||(a=n.t(r,2))}.useId;function o(e){if(void 0!==i){let t=i();return e??t}return function(e){let[t,n]=r.useState(e),a=e||t;return r.useEffect(()=>{null==t&&(s+=1,n(`mui-${s}`))},[t]),a}(e)}},60951:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/races/run/[slug]/[year]/reviews",function(){return n(26828)}])},85206:function(e,t,n){"use strict";var a=n(19032);t.Z=a.Z},42783:function(e,t,n){"use strict";var a=n(92996);t.Z=a.Z},26828:function(e,t,n){"use strict";n.r(t),n.d(t,{RaceReviewsPage:function(){return S},__N_SSG:function(){return R},default:function(){return k}});var a=n(85893),r=n(9008),s=n.n(r),i=n(41664),o=n.n(i),c=n(14960),u=n(9729),l=n(67294),d=n(42195),m=n(46873),x=n(21485),h=n(45979),p=n(68429),w=n(94324),f=n(11224),v=n(5068),g=n(73991),j=n(97182),_=n(98725),y=n(28321),$=n(37839),Z=n(41218),b=n(96306),R=!0;function S(e){let{raceData:t}=e,n=(0,d.Z)(`(max-width: ${m.ST}px)`),[r,i]=(0,l.useState)(0),[_,R]=(0,l.useState)([]),{data:S,error:k,isLoading:G}=(0,v.ZP)(`https://back.runzy.com/mg/event/${t?.slug}/reviews?offset=${r}`,g._,{revalidateOnMount:!0,revalidateOnFocus:!1});return(0,l.useEffect)(()=>{S?.data&&R(e=>[...e,...S.data])},[S]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s(),{children:[(0,a.jsx)("title",{children:`${t?.race_name} ${t?.year} Reviews & Ratings | MarathonGuide`}),(0,a.jsx)("meta",{name:"description",content:`Runner reviews and ratings for ${t?.race_name} ${t?.year}. See what participants say about this marathon on MarathonGuide.com.`}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("meta",{name:"robots",content:"index, follow"}),(0,a.jsx)("link",{rel:"canonical",href:`https://marathonguide.com/races/run/${t.slug}/${t.year}/reviews/`}),(0,a.jsx)("meta",{property:"og:title",content:`${t?.race_name} ${t?.year} Reviews & Ratings | MarathonGuide`}),(0,a.jsx)("meta",{property:"og:description",content:`Runner reviews and ratings for ${t?.race_name} ${t?.year}. See what participants say about this marathon on MarathonGuide.com.`}),(0,a.jsx)("meta",{property:"og:image",content:(0,Z.xY)(t)}),(0,a.jsx)("meta",{property:"og:url",content:`https://marathonguide.com/races/run/${t.slug}/${t.year}/reviews/`}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:site_name",content:"MarathonGuide.com"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:`${t?.race_name} ${t?.year} Reviews & Ratings | MarathonGuide`}),(0,a.jsx)("meta",{name:"twitter:description",content:`Runner reviews and ratings for ${t?.race_name} ${t?.year}. See what participants say about this marathon on MarathonGuide.com.`}),(0,a.jsx)("meta",{name:"twitter:image",content:(0,Z.xY)(t)}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,b.B)((0,$.yH)(t,"https://marathonguide.com","reviews"))}})]}),(0,a.jsxs)(c.I,{eventHasAds:t.ads_enabled,children:[(0,a.jsx)(y.J,{raceData:t}),(0,a.jsxs)(u.Z,{sx:f.U.wrapper,children:[(0,a.jsx)(u.Z,{sx:h.$.headline,children:(0,a.jsxs)(x.Z,{className:"title",component:"h1",children:[t.race_name," - Race Reviews"]})}),t.reviews?.reviews?.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.Z,{sx:f.U.reviewHeader,children:[(0,a.jsx)(u.Z,{sx:f.U.reviewRating,children:t.reviews.meta.general}),(0,a.jsxs)(u.Z,{component:"span",children:["Average rating based on ",t?.reviews?.total_count," Reviews"]})]}),(0,a.jsx)(u.Z,{component:o(),href:`/races/run/${t.slug}/${t.year}/write-review/`,sx:f.U.buttonDetails,children:"Write a review"}),(0,a.jsx)(u.Z,{sx:{marginTop:"24px"},children:_?.map((e,t)=>a.jsx(w.Z,{comment:e,size:"big"},t))})]}):(0,a.jsxs)(u.Z,{sx:{},children:[(0,a.jsx)(x.Z,{sx:{padding:"24px 0px"},children:"No reviews available for this race yet."}),(0,a.jsx)(u.Z,{component:o(),href:`/races/run/${t.slug}/${t.year}/write-review/`,sx:f.U.buttonDetails,children:"Write a review"})]}),G&&(0,a.jsx)(j.Z,{sx:f.U.loadingIcon}),r<S?.next_offset?(0,a.jsx)(u.Z,{sx:f.U.buttonDetails,onClick:function(){i(S?.next_offset)},children:"Read more"}):null]}),t.ads_enabled&&(0,a.jsx)(p.Z,{variant:n?"square":"rectangle",stylesObj:{margin:"20px auto"}})]})]})}function k(e){let{raceData:t,eventGone:n}=e;return n?(0,a.jsx)(_.Z,{eventGone:n}):(0,a.jsx)(S,{raceData:t})}}},function(e){e.O(0,[5333,8439,5068,1664,9888,5283,9725,231,1290,3798,9759,3830,9199,2919,2888,9774,179],function(){return e(e.s=60951)}),_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.