PageSourceSearch

https://www.sportsnet.ca/_next/static/chunks/9245.4283d4d2a2e83b80.js

js sportsnet.ca collected 2026-10-01 10:19:41 UTC 5,898 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9245],{9245:function(e,a,t){t.r(a),t.d(a,{LinkedMeta:function(){return x},MetaInfo:function(){return j},default:function(){return p}});var l=t(5893),r=t(7294),s=t(9646),n=t(9600),i=t(8407),o=t(2495),d=t(9192),c=t(7990),u=t(7722),m=t(4357),h=t(906),g=t(1100),_=t(9435),v=t.n(_);function p(e){let{post:a,onVideoPlay:t}=e,{useAdConfig:s,useAdTargets:n}=(0,c.I)(),[i,o]=(0,r.useState)(!1);if(!a)return(0,l.jsx)(l.Fragment,{});let d=a&&a.collection_data.map(e=>(0,l.jsx)("div",{className:v().row,children:(0,l.jsx)(x,{item:e,useAdTargets:n,useAdConfig:s,setIsGameCardLayout:o,onVideoPlay:t})},e.ID)),u=a.heading.sn_collection_heading,m=!!a.heading.sn_collection_readmore_url&&a.heading.sn_collection_readmore_url,h=i?"row "+v()["collection-two-layout"]+" "+v()["collection-two-layout-with-cards"]:"row "+v()["collection-two-layout"];return(0,l.jsxs)(l.Fragment,{children:[u?(0,l.jsx)("div",{className:"row "+v()["collection-heading"],children:(0,l.jsxs)("div",{className:"col-md-12",children:[(0,l.jsx)("h2",{children:u}),m?(0,l.jsx)("div",{children:(0,l.jsx)("a",{href:m,children:"See more"})}):(0,l.jsx)(l.Fragment,{})]})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)("div",{className:h,children:(0,l.jsx)("div",{className:v().equal_height_box,children:d})})]})}function x(e){var a,t,n,i,d,c,u,_,v,p;let{item:x,useAdTargets:f,useAdConfig:b,setIsGameCardLayout:y,onVideoPlay:k}=e,{data:w,isLoading:N}=(0,o.Z)(x.league_slug,x.game_card_id),L=!1!==x.game_card_id&&!1!==x.league_slug,S=!N&&w&&null!==w.data.game&&"In-Progress"===w.data.game.details.status,T=x.blackout_live_game,C=!N&&(null==w?void 0:null===(n=w.data)||void 0===n?void 0:null===(t=n.game)||void 0===t?void 0:null===(a=t.details)||void 0===a?void 0:a.status)==="In-Progress"&&(null==w?void 0:null===(u=w.data)||void 0===u?void 0:null===(c=u.game)||void 0===c?void 0:null===(d=c.details)||void 0===d?void 0:null===(i=d.broadcast)||void 0===i?void 0:i.length)>0&&(0,s.getBroadcaster)(null==w?void 0:null===(p=w.data)||void 0===p?void 0:null===(v=p.game)||void 0===v?void 0:null===(_=v.details)||void 0===_?void 0:_.broadcast).url_sportsnet_now_event,[I,F]=(0,r.useState)({autoplay:!1,hidePlayer:!0}),P=(0,m.e)(),[G,A]=(0,r.useState)({}),[D,Z]=(0,r.useState)({adpath:"",callLetter:"",currentShowName:"",currentShowTime:"",stationLogo:"",stationName:"",streamUrl:""});return((0,r.useEffect)(()=>{async function e(){await y(!0)}L&&e()},[]),(0,r.useEffect)(()=>{D.callLetter&&A({...D})},[D]),S&&C)?(0,l.jsx)(j,{isLiveURL:C,item:x,isLiveGameOn:S,isGameCardOn:L,useAdTargets:f,useAdConfig:b,isBlackoutGame:T}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("a",{href:x.bc_video_id?"#":x.sn_custom_permalink,onClick:e=>{x.bc_video_id&&(e.preventDefault(),k(x.bc_video_id)),x.sn_custom_permalink.includes("?player=true")&&(e.preventDefault(),(0,g.D)(x,P,Z),F({autoplay:!0,hidePlayer:!1})),(0,h.b1)("moduleClick","".concat(x.data.title.toLowerCase()," : collection two"))},children:(0,l.jsx)(j,{isLiveURL:C,item:x,isLiveGameOn:S,isGameCardOn:L,useAdTargets:f,useAdConfig:b,isBlackoutGame:T})}),G.adpath&&(0,l.jsx)(s.RadioPlayer,{adpath:G.adpath,callLetter:G.callLetter,currentShowName:G.currentShowName,currentShowTime:G.currentShowTime,stationLogo:G.stationLogo,stationName:G.stationName,autoplay:!0,onDismiss:()=>setTimeout(()=>{F({hidePlayer:!0,autoplay:!1})},300),streamUrl:G.streamUrl,hidePlayer:I.hidePlayer,dismissable:!0})]})}function j(e){var a;let t;let{isLiveURL:r,item:s,isLiveGameOn:o,isGameCardOn:c,useAdTargets:m,useAdConfig:g,isBlackoutGame:_}=e,p=s&&void 0!==s.label&&!1!==s.label?(0,l.jsx)("span",{className:v()["label-text"],children:s.label}):(0,l.jsx)(l.Fragment,{});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:v().image,children:[o&&r?_?(0,l.jsx)("a",{href:s.sn_custom_permalink,target:"_blank",rel:"noreferrer",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:s.images.large}})}):(0,l.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:s.images.large}})}):(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:s.images.large}}),p,o?(0,l.jsx)("span",{className:v()["on-live"]}):"",c?o&&r?(0,l.jsx)("a",{href:s.sn_custom_permalink,target:"_blank",rel:"noreferrer",children:(0,l.jsx)(i.Z,{league:s.league_slug,id:s.game_card_id,theme:"light",classes:"two-override"})}):(0,l.jsx)(i.Z,{league:s.league_slug,id:s.game_card_id,theme:"light",classes:"two-override"}):(t=null,"bc-video"===s.wp_post_type?t=(0,l.jsx)(n.Z,{duration:s.video_duration}):"sn-audio"===s.wp_post_type&&(t=(0,l.jsx)(n.Z,{duration:s.audio_duration,type:"audio"})),t)]}),(0,l.jsx)("div",{className:v().meta,children:(0,l.jsxs)("div",{className:v()["meta-wrap"],children:[(0,l.jsxs)("span",{children:[s.importance?(0,l.jsx)("strong",{className:v()["breaking-badge"],children:s.importance}):s.league?(0,l.jsx)("strong",{className:"league-badge",children:(0,u.p1)(s.league)}):"",(0,l.jsx)("strong",{className:"author",children:s.data.author.data.display_name?!0===(0,h.hR)(s.data.author.data.display_name)?"":s.data.author.data.display_name:""})]}),(0,l.jsx)("h3",{children:o&&r?_?(0,l.jsx)("a",{href:s.sn_custom_permalink,target:"_blank",rel:"noreferrer",children:(0,u.p1)(s.data.title)}):(0,l.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",children:(0,u.p1)(s.data.title)}):"string"==typeof(null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.title)?(0,u.p1)(s.data.title):""}),(0,l.jsx)("div",{className:v()["sponsorship-badge"],children:(0,l.jsx)(d.Z,{id:s.ID,adTargets:m,config:g,postTags:s.sponsor_tags})}),o&&r&&!_?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",className:v()["btn-live"],children:"Watch on SN+"}),(0,l.jsx)("a",{href:s.sn_custom_permalink,rel:"noreferrer",className:v()["btn-tracker"],children:"Live Tracker"})]}):(0,l.jsx)(l.Fragment,{})]})})]})}}}]);

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.