PageSourceSearch

https://www.fightrealm.com/_next/static/chunks/pages/events-a2407a72149e7ede.js

js fightrealm.com collected 2026-09-24 14:44:01 UTC 15,077 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bdcdac6e-75f6-4ea9-82a6-953a5439c71c",e._sentryDebugIdIdentifier="sentry-dbid-bdcdac6e-75f6-4ea9-82a6-953a5439c71c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7695],{26213:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events",function(){return n(71235)}])},47035:function(e,t,n){"use strict";var r=n(85893);n(67294);var a=n(45697),i=n.n(a),s=function(e){var t=e.className;return(0,r.jsx)("svg",{style:{width:"28px",height:"28px",stroke:"#ffffff",strokWidth:"4px",padding:"0px"},className:t,viewBox:"0 0 30 30",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsxs)("circle",{cx:"15",cy:"15",r:"12",fill:"none",strokeLinecap:"round",children:[(0,r.jsx)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 15 15;180 15 15;720 15 15",keyTimes:"0;0.5;1",dur:"0.9s",begin:"0s",repeatCount:"indefinite"}),(0,r.jsx)("animate",{attributeName:"stroke-dasharray",calcMode:"linear",values:"9 56;46 14;9 56",keyTimes:"0;0.5;1",dur:"0.9s",begin:"0s",repeatCount:"indefinite"})]})})};s.propTypes={className:i().string},s.defaultProps={className:""},t.Z=s},46935:function(e,t,n){"use strict";n.d(t,{Q:function(){return s}});var r=n(93128),a=n(67294),i=n(78459);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EEE, MMM dd yyyy / h:mm a",n=(0,r._)((0,a.useState)(function(){if(!e)return"Date TBD";try{if(e.includes("T")){var n=i.ou.fromISO(e);if(!n.isValid)return console.error("Invalid ISO date:",n.invalidReason,"for:",e),"Date TBD";return n.toUTC().toFormat(t)}var r=i.ou.fromFormat(e,"yyyy-MM-dd HH",{zone:"utc"});if(!r.isValid)return console.error("Invalid date format:",r.invalidReason,"for:",e),"Date TBD";return r.toFormat(t)}catch(t){return console.error("Error formatting date:",t,"for dateString:",e),"Date TBD"}}),2),s=n[0],o=n[1];return(0,a.useEffect)(function(){if(e)try{if(e.includes("T")){if(!(n=i.ou.fromISO(e)).isValid){console.error("Invalid ISO date:",n.invalidReason,"for:",e);return}}else if(!(n=i.ou.fromFormat(e,"yyyy-MM-dd HH",{zone:"utc"})).isValid){console.error("Invalid date format:",n.invalidReason,"for:",e);return}var n,r=n.setZone(i.ou.local().zoneName);o(r.toFormat(t))}catch(t){console.error("Error formatting date:",t,"for dateString:",e)}},[e,t]),s}},71235:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return O},default:function(){return I}});var r,a=n(85893),i=n(9008),s=n.n(i),o=n(58533),l=n(76607),c=n(30396),d=function(e){return c.Z.makeRequest({url:e,method:"GET",headers:{"Content-Type":"application/json"}})},m=function(){var e,t=(0,l.ZP)(function(e,t){return t&&!t.next?null:0===e?"/v2/events/?page_size=30&ordering=-event_time_start":t.next},d,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1,revalidateFirstPage:!1}),n=t.data,r=t.error,a=t.size,i=t.setSize,s=t.isLoading,o=null!==(e=null==n?void 0:n.flatMap(function(e){return(null==e?void 0:e.results)||[]}))&&void 0!==e?e:[],c=n&&n.length>0?n[n.length-1]:null;return{data:o,hasMore:!c||!!c.next,error:r,size:a,setSize:i,isLoading:s}},u=n(67294),g=n(78459),f=n(76341),v=n(67462),h=n(93128),x=n(45697),p=n.n(x),b=n(41664),y=n.n(b),j=n(25675),w=n.n(j);function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var N=e=>u.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 13"},e),u.createElement("g",{style:{mixBlendMode:"screen"}},u.createElement("path",{fill:"url(#vs_svg__a)",d:"m10.939.068-5.778 9.13H2.595L.5.069h2.673L4.49 6.002 8.253.068z",style:{mixBlendMode:"lighten"}})),u.createElement("g",{style:{mixBlendMode:"screen"}},u.createElement("path",{fill:"url(#vs_svg__b)",d:"M9.003 12.513q-1.026-.275-1.673-.704l1.026-1.93q.697.444 1.488.673.789.229 1.579.23c.525 0 .887-.072 1.166-.214q.414-.214.415-.595 0-.326-.375-.508-.374-.18-1.166-.39a13 13 0 0 1-1.488-.477 2.65 2.65 0 0 1-1.02-.737q-.427-.497-.428-1.304.001-.98.541-1.716c.36-.493.873-.87 1.542-1.14q.999-.405 2.345-.406.988.001 1.844.202.855.203 1.476.579l-.948 1.917a4.4 4.4 0 0 0-1.19-.514 5 5 0 0 0-1.336-.177c-.519 0-.922.084-1.219.248q-.44.247-.44.638 0 .34.38.52.382.182 1.185.39.897.224 1.482.456.586.236 1.007.718.422.484.422 1.264.001.965-.547 1.704-.547.739-1.554 1.14-1.007.404-2.338.405-1.145 0-2.173-.273z",style:{mixBlendMode:"lighten"}})),r||(r=u.createElement("defs",null,u.createElement("linearGradient",{id:"vs_svg__a",x1:.5,x2:11.479,y1:4.634,y2:4.634,gradientUnits:"userSpaceOnUse"},u.createElement("stop",{offset:.185,stopColor:"#CFFF3F"}),u.createElement("stop",{offset:1,stopColor:"#F0595E"})),u.createElement("linearGradient",{id:"vs_svg__b",x1:7.33,x2:16.737,y1:8.04,y2:8.04,gradientUnits:"userSpaceOnUse"},u.createElement("stop",{offset:.185,stopColor:"#CFFF3F"}),u.createElement("stop",{offset:1,stopColor:"#F0595E"}
1))))),_=n(90116),k=n(46935),E=function(e){if(null==e||"string"!=typeof e)return!1;var t=e.trim();return t.length>0&&"undefined"!==t},C=function(e,t){if(!e)return{isValid:!1,isPast:!1,isToday:!1};try{var n,r=t?g.ou.local():g.ou.utc(),a=t?g.ou.local().zoneName:"utc";if(!(n=e.includes("T")?g.ou.fromISO(e).setZone(a):g.ou.fromFormat(e,"yyyy-MM-dd HH",{zone:"utc"}).setZone(a)).isValid)return console.error("Invalid date format:",n.invalidReason),{isValid:!1,isPast:!1,isToday:!1};var i=n.hasSame(r,"day");return{isValid:!0,isPast:n<r&&!i,isToday:i}}catch(e){return console.error("Error processing date:",e),{isValid:!1,isPast:!1,isToday:!1}}},B=function(e){var t=e.className,n=e.eventName,r=e.eventTime,i=e.eventLocation,s=e.imgBanner,o=e.fighterA,l=e.fighterB,c=e.href,d=e.disabled,m=e.useAnimatedBorder,g=(0,k.Q)(r),x=(0,h._)((0,u.useState)(function(){return C(r,!1)}),2),p=x[0],b=x[1];(0,u.useEffect)(function(){b(C(r,!0))},[r]);var j=p.isValid,F=p.isPast,B=p.isToday,M=j?d?"Opening Soon":F?"Past Event":B?"Today":null:null,T=m?"relative box-border rounded-[calc(0.75rem-2px)] overflow-hidden bg-darkBg-700":"relative box-border rounded-xl border border-solid bg-gradient-to-r from-[#CFFF3F_19.46%] to-[#F0595E_105.17%] p-1",R=d?"div":y(),S=d?{className:"".concat(T," ").concat(t)}:{className:"".concat(T," ").concat(t," cursor-pointer"),href:c};return(0,a.jsx)(R,(0,v._)((0,f._)({},S),{children:(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-[calc(0.75rem-0.25rem)] bg-darkBg-700",children:[M&&(0,a.jsx)("div",{className:"absolute right-4 top-4 z-10 rounded-full px-3 py-1 text-sm font-semibold shadow-xl ".concat(B?"bg-main-green text-dark":d?"bg-[#FFD62A] text-dark":"bg-black/80 text-white"),children:M}),(0,a.jsx)("div",{className:"relative h-[500px] w-full",children:E(s)?(0,a.jsx)(w(),{src:s,alt:"Event banner",fill:!0,className:"object-cover",sizes:"100vw"}):(0,a.jsx)("div",{className:"bg-darkBg-600 absolute inset-0 object-cover","aria-hidden":!0})}),(0,a.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex w-full flex-col items-center rounded-b-[calc(0.75rem-0.25rem)] bg-black/95 px-4 pb-12 pt-6",children:[(0,a.jsx)("h2",{className:"mb-3 font-bebas text-lg uppercase tracking-wide text-main-red md:text-xl",children:n}),(0,a.jsxs)("div",{className:"mb-4 flex flex-wrap items-center justify-center gap-2 px-4",children:[(0,a.jsx)("span",{className:"text-center font-bebas text-2xl uppercase text-white md:text-3xl",children:o}),(0,a.jsx)(N,{width:17,height:13,className:"shrink-0 text-main-green"}),(0,a.jsx)("span",{className:"break-all text-center font-bebas text-2xl uppercase text-white md:text-3xl",children:l})]}),(0,a.jsxs)("div",{className:"mb-5 text-center text-sm font-light text-gray-400",children:[(0,a.jsx)("p",{children:g}),(0,a.jsx)("p",{children:i})]}),(0,a.jsx)(_.Z,{type:"accent-background-text-black",className:"mt-auto font-bold ".concat(d?"cursor-default":"cursor-pointer"),asSpan:!d,children:F?"View Picks":"Make Picks"})]})]})}))};B.propTypes={className:p().string,eventName:p().string.isRequired,href:p().string,eventTime:p().string.isRequired,eventLocation:p().string.isRequired,imgBanner:p().string,fighterA:p().string,fighterB:p().string,disabled:p().bool,useAnimatedBorder:p().bool},B.defaultProps={className:"",disabled:!1,href:void 0,useAnimatedBorder:!1};var M=n(11095),T=n(44714);function R(e){var t=e.children;return(0,a.jsx)("div",{className:"event-card-animated-border-wrapper",children:(0,a.jsx)("div",{className:"event-card-animated-border-inner",style:{backgroundImage:"linear-gradient(90deg, #CFFF3F 0%, #F0595E 25%, #CFFF3F 50%, #F0595E 75%, #CFFF3F 100%)"},children:(0,a.jsx)("div",{className:"h-full overflow-hidden rounded-[calc(0.75rem-2px)] bg-[#060606]",children:t})})})}var S=function(e){var t=e.events,n=e.limit,r=e.animatedCardBorder,i=function(e){return e?e.includes("T")?g.ou.fromISO(e).setZone(g.ou.local().zoneName):g.ou.fromFormat(e,"yyyy-MM-dd HH",{zone:"utc"}).setZone(g.ou.local().zoneName):g.ou.invalid("no time provided")},s=t.filter(function(e){return Array.isArray(null==e?void 0:e.bouts)&&e.bouts.length>0}).sort(function(e,t){return i(t.event_time_start)-i(e.event_time_start)}),o=n?s.slice(0,n):s;return(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsx)("style",{children:"\n  @keyframes event-card-border-shimmer {\n    0% { background-position: 200% 0; }\n    100% { background-position: -200% 0; }\n  }\n  .event-card-animated-border-wrapper {\n    position: relative;\n    border-radius: 0.75rem;\n    overflow: visible;\n  }\n  .event-card-animated-border-inner {\n    padding: 2px;\n    border-radius: 0.75rem;\n    background-size: 200% 100%;\n    background-repeat: repeat-x;\n    background-position: 200% 0;\n    animation: event-card-border-shimmer 8s linear infinite;\n  }\n"}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 md:gap-5 xl:grid-cols-3 2xl:grid-cols-4",children:o.map(function(e){var t,n,i=e.event_name,s=e.event_time_start,o=e.event_location,l=e.slug,c=e.bouts,d=e.thumbnail,m=e.event_data,g=null!=l?l:"event-".concat(s),f=null!==(n=(0,M.Z)(c||[])[0])&&void 0!==n?n:{},v=(0,T.AL)(f.fighter_a_detail,"Unknown"),h=(0,T.AL)(f.fighter_b_detail,"Unknown"),x=(0,T.uQ)(f),p=(null==m?void 0:m.status)==="pending",b=(0,a.jsx)(B,{imgBanner:null==d?void 0:null===(t=d.rend1)||void 0===t?void 0:t.src,href:p?void 0:"event/".concat(l),className:"w-full min-w-52",eventName:i,eventTime:s,eventLocation:o,weightClass:x,fighterA:v,fighterB:h,disabled:p,useAnimatedBorder:r});return r?(0,a.jsx)(R,{children:b},g):(0,a.jsx)(u.Fragment,{children:b},g)})})]})},z=n(47035),U=n(61153),O=!0;function I(){var e=m(),t=e.data,n=e.size,r=e.setSize,i=e.isLoading,l=e.hasMore,c=(0,U.BY)("/events"),d=(0,U.BY)("/img/preview/events-preview.webp"),u=t.filter(function(e){var t;return(null==e?void 0:null===(t=e.bouts)||void 0===t?void 0:t.length)!==0});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s(),{children:[(0,a.jsx)("title",{children:"Upcoming UFC Events & Fight Cards | Fight Realm"}),(0,a.jsx)("meta",{name:"description",content:"Browse upcoming UFC events and fight cards on Fight Realm. Make fantasy picks, compete in competitions, and track every bout from the full event list."}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:url",content:c}),(0,a.jsx)("meta",{property:"og:title",content:"Upcoming UFC Events & Fight Cards | Fight Realm"}),(0,a.jsx)("meta",{property:"og:description",content:"Browse upcoming UFC events and fight cards on Fight Realm. Make fantasy picks, compete in competitions, and track every bout from the full event list."}),(0,a.jsx)("meta",{property:"og:site_name",content:"Fight Realm"}),(0,a.jsx)("meta",{property:"og:image",content:d}),(0,a.jsx)("meta",{property:"og:image:width",content:"1905"}),(0,a.jsx)("meta",{property:"og:image:height",content:"932"}),(0,a.jsx)("meta",{property:"og:image:type",content:"image/webp"}),(0,a.jsx)("meta",{property:"og:image:alt",content:"Fight Realm Events - Upcoming UFC Fight Cards"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:url",content:c}),(0,a.jsx)("meta",{name:"twitter:title",content:"Upcoming UFC Events & Fight Cards | Fight Realm"}),(0,a.jsx)("meta",{name:"twitter:description",content:"Browse upcoming UFC events and fight cards on Fight Realm. Make fantasy picks, compete in competitions, and track every bout from the full event list."}),(0,a.jsx)("meta",{name:"twitter:image",content:d}),(0,a.jsx)("meta",{name:"twitter:image:alt",content:"Fight Realm Events - Upcoming UFC Fight Cards"}),(0,a.jsx)("meta",{name:"twitter:domain",content:"fightrealm.com"}),(0,a.jsx)("meta",{name:"robots",content:"index, follow"}),(0,a.jsx)("link",{rel:"canonical",href:c})]}),(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("div",{className:"relative hidden bg-[url('/img/Fight-Realm-Banner.jpg')] bg-cover bg-center md:block",children:(0,a.jsx)("div",{className:"container relative py-12 md:py-20",children:(0,a.jsxs)("div",{className:"relative z-20 flex max-w-screen-md flex-col items-start gap-5 md:text-start",children:[(0,a.jsx)("h1",{className:"font-basement text-5xl uppercase leading-[1.1] text-white md:text-7xl md:leading-[1.1]",children:"All Events"}),(0,a.jsx)("p",{className:"font-archivo mb-4 max-w-screen-sm text-lg text-gray-400",children:"Dive into UFC fantasy with Fight Realm! Join the ultimate arena, strategize, connect, and rise as a champion. Step into the Octagon now!"})]})})}),(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"min-h-screen pt-0 md:pt-20",children:[i&&0===u.length&&(0,a.jsx)("div",{className:"flex min-h-[40vh] items-center justify-center",children:(0,a.jsx)(z.Z,{className:"mx-auto my-5"})}),u.length>0&&(0,a.jsx)(o.Z,{dataLength:u.length,next:function(){return!i&&r(n+1)},hasMore:i||l,loader:(0,a.jsx)(z.Z,{className:"mx-auto my-5"}),endMessage:(0,a.jsx)("p",{className:"my-10 text-center text-white"}),children:(0,a.jsx)(S,{events:u})}),!i&&0===u.length&&(0,a.jsxs)("div",{className:"py-20 text-center",children:[(0,a.jsx)("h2",{className:"mb-4 text-2xl text-white",children:"All Events"}),(0,a.jsx)("p",{className:"mb-8 text-neutral-400",children:"No events are available right now. Please check back soon."})]})]})})]})]})}},11095:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(53353);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r._)(e).sort(function(e,t){var n,r,a=Number(null!==(n=null==e?void 0:e.bout_sequence)&&void 0!==n?n:null==e?void 0:e.boutSequence),i=Number(null!==(r=null==t?void 0:t.bout_sequence)&&void 0!==r?r:null==t?void 0:t.boutSequence),s=Number.isFinite(a),o=Number.isFinite(i);return s&&o?a-i:s?-1:o?1:0})}}}
1,function(e){e.O(0,[5068,3424,9774,2888,179],function(){return e(e.s=26213)}),_N_E=e.O()}]);
2//# sourceMappingURL=events-a2407a72149e7ede.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.