PageSourceSearch

https://www.sportsnet.ca/_next/static/chunks/pages/mma/ufc/ppv-b3d985ba9541e7b9.js

js sportsnet.ca collected 2026-09-24 08:54:59 UTC 4,976 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6946],{6054:function(s,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mma/ufc/ppv",function(){return a(4596)}])},2491:function(s,e,a){"use strict";a.d(e,{Z:function(){return j}});var n=a(5893),t=a(6444),l=a(7294),i=a(906),r=a(7285),c=a(8371),d=a(8093),u=a.n(d);function o(s){if(null==s)return 0;let e=String(s);if(-1!==e.indexOf(":")){let s=e.split(":");return 60*(parseInt(s[0],10)||0)+(parseInt(s[1],10)||0)}return parseInt(e,10)||0}function v(s){let{label:e,left:a,right:t}=s,l=o(a),r=o(t),c=0===l&&0===r;return(0,n.jsxs)("div",{className:u().stat,children:[(0,n.jsxs)("div",{className:u()["stat-vals"],children:[(0,n.jsx)("span",{className:u()["stat-val"],children:null!=a?a:"—"}),(0,n.jsx)("span",{className:u()["stat-label"],children:e}),(0,n.jsx)("span",{className:(0,i.Ez)(u()["stat-val"],u()["stat-val-right"]),children:null!=t?t:"—"})]}),(0,n.jsxs)("div",{className:u()["stat-bar"],children:[(c||l>0)&&(0,n.jsx)("span",{className:u()["stat-bar-left"],style:{flexGrow:c?1:l}}),(c||r>0)&&(0,n.jsx)("span",{className:u()["stat-bar-right"],style:{flexGrow:c?1:r}})]})]})}function h(s){let{side:e,won:a}=s;return(0,n.jsx)("span",{className:(0,i.Ez)(u().rarrow,u()["rarrow-".concat(e)],a?"":u()["rarrow-off"]),"aria-label":a?"Winner":void 0,"aria-hidden":a?void 0:"true"})}function m(s){var e,a;let{bout:t}=s,[d,o]=(0,l.useState)(!1),m=t.result,p=t.stats,x=!!(null===(e=t.red)||void 0===e?void 0:e.isWinner),j=!!(null===(a=t.blue)||void 0===a?void 0:a.isWinner);return(0,n.jsxs)("div",{className:(0,i.Ez)(u().bout,u()["bout-results"]),children:[(0,n.jsxs)("div",{className:u().rbadges,children:[t.isMainEvent&&(0,n.jsx)("span",{className:u()["main-badge"],children:"Main Event"}),(0,n.jsx)("span",{className:u().rweight,children:t.weightClass})]}),(0,n.jsxs)("div",{className:u().rfighters,children:[(0,n.jsx)(r.f_,{f:t.red,side:"left",variant:"results",isWinner:x}),(0,n.jsxs)("div",{className:u().rcenter,children:[(0,n.jsx)(h,{side:"left",won:x}),(0,n.jsxs)("div",{className:u()["rmethod-wrap"],children:[(0,n.jsx)("span",{className:(0,i.Ez)(u().rmethod,(null==m?void 0:m.decided)===!1?u()["rmethod-void"]:""),children:null==m?void 0:m.method}),m&&(m.round||m.clock)&&(0,n.jsxs)("span",{className:u().rtime,children:[(0,n.jsxs)("span",{children:["R",m.round]}),(0,n.jsx)("span",{className:u()["rtime-div"]}),(0,n.jsx)("span",{children:m.clock})]})]}),(0,n.jsx)(h,{side:"right",won:j})]}),(0,n.jsx)(r.f_,{f:t.blue,side:"right",variant:"results",isWinner:j})]}),p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{type:"button",className:u()["see-stats"],onClick:()=>o(s=>!s),children:[d?"Hide stats":"See stats",(0,n.jsx)("span",{className:(0,i.Ez)(u()["see-stats-caret"],d?u()["see-stats-caret-up"]:"")})]}),d&&(0,n.jsx)("div",{className:u().stats,children:c.j6.map(s=>{let{key:e,label:a}=s;return(0,n.jsx)(v,{label:a,left:p[e][0],right:p[e][1]},e)})})]})]})}function p(s){var e;let{bout:a}=s,t=(null===(e=a.result)||void 0===e?void 0:e.decided)===!1;return(0,n.jsxs)("div",{className:u().bout,children:[(0,n.jsxs)("div",{className:u().badges,children:[a.isMainEvent&&(0,n.jsx)("span",{className:u()["main-badge"],children:"Main Event"}),t&&(0,n.jsx)("span",{className:u()["cancel-badge"],children:"Cancelled"}),(0,n.jsx)("span",{className:u().weight,children:a.weightClass}),(0,n.jsx)("span",{className:u()["bout-vdiv"]}),(0,n.jsxs)("span",{className:u().rounds,children:[a.rounds," Round",1===a.rounds?"":"s"]})]}),(0,n.jsxs)("div",{className:u().fighters,children:[(0,n.jsx)(r.f_,{f:a.red,side:"left"}),(0,n.jsx)(r.f_,{f:a.blue,side:"right"})]})]})}function x(s){let{events:e=[],error:a,mode:t,isPpvOnly:c=!1}=s,[d,o]=(0,l.useState)(c?"ppv":"all"),v="results"===t?m:p,h=e.filter(s=>(0,r.kp)(s,d));return(0,n.jsxs)("div",{className:u().cont,children:[!c&&(0,n.jsx)("div",{className:u().top,children:(0,n.jsx)("div",{className:u().filters,children:r.Oq.map(s=>(0,n.jsx)("button",{type:"button",className:(0,i.Ez)(u().filter,d===s.value?u()["filter-active"]:""),onClick:()=>o(s.value),children:s.label},s.value))})}),a?(0,n.jsx)("div",{className:u().empty,children:"Unable to load events right now."}):h.length>0?h.map(s=>(0,n.jsx)(r.K7,{event:s,Bout:v},s.id)):(0,n.jsx)("div",{className:u().empty,children:"results"===t?"No results found.":"No upcoming events found."})]})}function j(s){let{mode:e,isPpvOnly:a=!1,events:l,error:i,title:r,de
1scription:c,pagePath:d}=s;return(0,n.jsx)(t.Z,{title:r,description:c,pagePath:d,children:(0,n.jsx)(x,{events:l,error:i,mode:e,isPpvOnly:a})})}},4596:function(s,e,a){"use strict";a.r(e),a.d(e,{__N_SSP:function(){return l}});var n=a(5893),t=a(2491),l=!0;e.default=s=>{let{events:e,error:a}=s;return(0,n.jsx)(t.Z,{mode:"schedule",isPpvOnly:!0,events:e,error:a,title:"UFC Pay-Per-View",description:"Upcoming UFC pay-per-view events",pagePath:"/mma/ufc/ppv/"})}}},function(s){s.O(0,[6673,9646,144,5340,2888,9774,179],function(){return s(s.s=6054)}),_N_E=s.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.