iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.cbc.ca/a/scripts/oc-pages-Detail-component.567b4cf60d4d23cd4777.js
!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]="1574f4b6-a323-4bb2-9c23-5d6b2dc171d1",e._sentryDebugIdIdentifier="sentry-dbid-1574f4b6-a323-4bb2-9c23-5d6b2dc171d1")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[(new _sentryModuleMetadataGlobal.Error).stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[(new _sentryModuleMetadataGlobal.Error).stack],{"_sentryBundlerPluginAppKey:ocelot":!0,scopeId:"scope-ocelot",release:"ocelot@47ae0b87fc116dc0f4a103b089866ef3d48e2cfe"});var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"ocelot@47ae0b87fc116dc0f4a103b089866ef3d48e2cfe"},(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[827,1560],{27422:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(29439),i=r(35098),s=(r(83464),r(95566),r(19496),function(e,t){var r=new IntersectionObserver((function(n){n.forEach((function(n){n.isIntersecting&&(r.unobserve(e),t())}))}));r.observe(e);var n=function(){r.unobserve(e),n=function(){}};return n});var o=r(56552);const a=function(e){var t=(0,i.useState)(!1),r=(0,n.Z)(t,2),a=r[0],l=r[1],c=(0,i.useRef)(),u=function(){};return(0,i.useEffect)((function(){if(u(),c.current&&!a)return"IntersectionObserver"in window?u=s(c.current,(function(){return l(!0)})):l(!0),function(){u()}}),[]),a?e.children?e.children:null:(0,o.jsx)("div",{ref:c,className:"lazy-load"})}},51391:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(29439),i=r(35098);function s(){var e=(0,i.useState)(!1),t=(0,n.Z)(e,2),r=t[0],s=t[1],o=(0,i.useTransition)(),a=(0,n.Z)(o,2)[1];return(0,i.useEffect)((function(){a((function(){s(!0)}))}),[]),r}},66655:(e,t,r)=>{r.d(t,{O:()=>l});var n=r(29439),i=r(42820),s=r(93849),o=r(35098),a=(0,s.KF)("Client.environment.domain"),l=function(){var e=(0,o.useState)("".concat(a,"/")),t=(0,n.Z)(e,2),r=t[0],s=t[1];(0,o.useEffect)((function(){s("".concat(window.location.origin,"/"))}),[]);var l=(0,i.useSelector)((function(e){return e.app.path})),c="/account/signup?referrer=",u="/account/login?referrer=";return"homepage"===l?{signinUrl:u+r,signupUrl:c+r}:{signinUrl:u+r+l,signupUrl:c+r+l}}},91382:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Jr});var n=r(35098),i=r(42820),s=r(92972),o=r.n(s),a=r(14507),l=r.n(a),c=r(46484),u=r(89920),d=r(1122),p=r(15667),f=r(11121),h=r(60612),v=r(57633),m=r(26574),b=r(56552);function j(e){var t=e.external,r=e.name,n=void 0===r?"A Sponsor":r,i=e.description,s=e.url,o=e.logo,a=void 0===o?"":o,l=e.enableLink,c=(0,b.jsx)("span",{className:"sponsorAboutLogo",children:(0,b.jsx)("img",{src:a,alt:n,loading:"lazy"})});return l&&(c=(0,b.jsx)(m.default,{url:s,external:t,className:"sponsorLink",target:"_blank",children:c})),i?(0,b.jsxs)("div",{className:"sponsorAboutBox",children:[c,(0,b.jsx)("h2",{children:"About the Advertiser"}),(0,b.jsx)("div",{children:(0,b.jsx)("p",{children:i})})]}):null}j.propTypes={external:o().bool.isRequired,name:o().string,description:o().string,url:o().string.isRequired,logo:o().string.isRequired,enableLink:o().bool};const y=j;var g=r(73592),x=r(27023),O=(r(9867),r(7231),r(88101)),w=function(e){return e.authorList&&e.authorList.length?(0,b.jsx)("span",{className:"authorText","data-cy":"author-text",children:e.authorList.map((function(t,r){var i,s=r+1!==e.authorList.length&&", ";return t.url&&"string"===typeof t.url&&(i=(i=(0,O.wP)(t.url))||"/"),(0,b.jsxs)(n.Fragment,{children:[i?(0,b.jsx)(m.default,{url:i,external:!!(0,O.sD)(i),children:t.name}):t.name,s]},"".concat(t.name,"-").concat(r))}))}):null};const k=function(){return(0,b.jsx)("span",{className:"bullet",children:" \xb7 "})};var P=r(39588),S=r(89238),N="bioandphoto",_="photo",E="bio",D=r(28679);const A=(0,D.g)((function(e){var t=e.updatedAt,r=void 0===t?0:t,n=e.publishedAt,i=void 0===n?0:n,s=e.text,o=void 0===s?"":s,a=e.authorDisplay,l=void 0===a?"":a,c=e.authorList,u=void 0===c?[]:c,d=e.publishedAtVerbal,p=void 0===d?"":d,f=(0,S.Z)(),h=u.length?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(w,{authorList:u})," ",(0,b.jsx)(k,{})]}):null,v=o?(0,b.jsxs)(b.Fragment,{children:[o," ",(0,b.jsx)(k,{})]}):null,m=function(){var e=p,t=(0,P.uY)();if(!f&&i&&t){var n=(0,P.W)(i,t);n&&(e=n)}return(0,b.jsx)(g.Z,{updated:r,publishedAtVerbal:e})}();return h||v||m?(0,b.jsxs)("div",{className:"byline",children:[function(){var e,t=[N,_].includes(l),r=(null===u||void 0===u||null===(e=u[0])||void 0===e||null===(e=e.photoDerivatives)||void 0===e||null===(e=e.square_140)||void 0===e?void 0:e.fileurl)||"";return t&&r?(0,b.jsx)(x.Z,{src:r}):null}(),(0,b.jsxs)("div",{className:"bylineDetails",children:[h,v,m]})]}):null}));var I=r(46924),C=(r(58109),r(95566),r(68438),r(83464),r(19496),r(4942)),Z=r(69019),F=r(32137);function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const T=function(){var e,t=(0,i.useSelector)((function(e){return e.detail.content.sponsorBio}));if(!t||0===Object.keys(t).length)return null;var r=null!==(e=t.image)&&void 0!==e&&null!==(e=e.aspects)&&void 0!==e&&null!==(e=e.ratioCustom)&&void 0!==e&&e.url?"".concat(t.image.aspects.ratioCustom.url,"Resize%3D300"):"",n={external:!0,name:t.name,url:t.link,label:(0,I.z)(t.label),logo:r,enableLink:(0,F.M_)(t.link)};return(0,b.jsx)(Z.Z,function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=e.toLowerCase(),n=M.includes(r),i="breaking"===r;return(0,b.jsxs)("span",{children:[t&&(0,b.jsx)("span",{children:"\xb7"}),(0,b.jsx)("span",{"data-live":"".concat(n),"data-breaking":"".concat(i),children:e})]})}(t,!n)),(0,b.jsxs)("span",{className:"detail-link-label sclt-storySectionLink",children:[s?(0,b.jsx)("a",{href:R.wF,title:R.Sq,children:(0,b.jsx)("span",{className:"sponsored-content",children:R.gQ})}):null,!n&&(0,b.jsx)(m.default,{url:u,external:s,children:(0,b.jsx)("span",{title:s?R.Sq:null,children:s?R.gQ:d})}),p]})};const H=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).insideBreadcrumbs,t=(0,i.useSelector)((function(e){return e.detail.content.sponsorBio})),r=(0,i.useSelector)((function(e){return e.detail.content.departments})),n=(0,i.useSelector)((function(e){return e.detail.content.flag}));return(0,I.Hv)(t)?(0,b.jsx)(T,{}):(0,b.jsx)(B,{departments:r,label:n,insideBreadcrumbs:e})};var U=r(91167),V=r(87166);function W(e){return(0,b.jsx)("h1",{className:"detailHeadline",lang:e.lang,"data-cy":"detailHeadline",children:e.text})}W.propTypes={text:o().string.isRequired,lang:o().string};const J=W;function G(e){return(0,b.jsx)("div",{className:"detailSummary",children:e.text})}G.propTypes={text:o().string.isRequired};var Q=r(88873),Y=r(87536),K=r(2305),X=r(24515),$=r(22468),ee=function(e){return e+" is required."},te="Please enter a valid email.",re={email:{name:"email",labelText:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("p",{children:"We may contact you for clarification"}),(0,b.jsx)("p",{children:"Email:"})]}),type:"text",zendesk_id:360028518814,schema:$.Z_().email(te).required(ee("email"))},polopolyId:{zendesk_id:360028575073},typo_dropdown:{name:"typo_dropdown",labelText:"Please select the option that best describes the error:",placeholder:"Select type",type:"select",zendesk_id:5587295322779,schema:$.Z_().required(ee("type of correction")),options:[{name:"Error in a headline",value:"typo_in_headline"},{name:"Error in a photo description",value:"typo_in_a_photo_caption"},{name:"Error in someone's name or title",value:"factual_error_in_someone_s_name_or_title"},{name:"Error in story text",value:"typo_in_story_text"},{name:"Error in a graphic",value:"factual_error_in_a_graphic"},{name:"Error in a video",value:"typo_in_a_video"},{name:"Error in a quote",value:"typo_in_a_quote"}]},description:{name:"description",labelText:(0,b.jsx)("p",{children:"Please describe the error (1200 character limit): "}),type:"text",zendesk_id:"description",schema:$.Z_().required(ee("description")).max(1200)},url:{zendesk_id:360022791294}},ne={typoConfig:{zendesk_id:360001354433,formTags:["typo-form"],staticFields:{polopolyId:re.polopolyId,url:re.url},fields:{typo_dropdown:re.typo_dropdown,description:re.description},schema:$.Ry().shape({typo_dropdown:re.typo_dropdown.schema,description:re.description.schema})}},ie="Your error report has been submitted.",se=function(e){var t=e.field;return(0,b.jsx)("label",{className:"field",htmlFor:"field_"+t.zendesk_id,id:"feedbackFormLabel"+t.zendesk_id,children:t.labelText},"label"+t.zendesk_id)};se.propTypes={field:o().shape({zendesk_id:o().oneOfType([o().number,o().string]).isRequired,labelText:o().oneOfType([o().string,o().element]).isRequired}).isRequired};const oe=se;var ae=function(e){var t=e.inputError,r=e.field;return t?(0,b.jsxs)("p",{id:"zendeskFormInputErrorMsg"+r.zendesk_id,className:"feedbackFormInputErrorMsg",children:["Error: ",t||""," "]}):null};ae.propTypes={inputError:o().string,field:o().shape({zendesk_id:o().oneOfType([o().number,o().string]).isRequired,schema:o().object.isRequired})};const le=ae;var ce=r(85161);const ue=function(e){return e.inputError?(0,b.jsx)(ce.default,{type:"exclamation"}):null};function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t"]})]}),(0,b.jsx)("button",{className:"zendeskFormBtn1 zendeskFormSubmit",children:"Submit"})]}):o.submissionMsg===ie?(0,b.jsx)(Fe,{message:o.submissionMsg,userName:c}):(0,b.jsx)(Ze,{message:o.submissionMsg})]})};var Te=function(e){var t=e.children,r=e.className,i=e.isOpen,s=e.label,o=void 0===s?"More Details":s,a=e.dataTestAttribute,l=(0,n.useState)(i),c=(0,z.Z)(l,2),u=c[0],d=c[1];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("button",{onClick:function(){d(!u)},className:r,"aria-expanded":u,"data-cy":a,children:[o,(0,b.jsx)(ce.default,{type:"expand",label:"expand",points:u?"up":"down"})]}),(0,b.jsx)("div",{className:"accordionContainer accordionOpen-".concat(u),children:u?(0,b.jsx)("div",{className:"expandedAccordionContainer",role:"dialog","aria-modal":"true",children:t}):null})]})};Te.propTypes={className:o().string,children:o().element,label:o().string,isOpen:o().bool};var ze=r(97767),Re="/news/corrections-clarifications-1.5893564",Me=r(25538),qe=r(33574),Be=r(41718);const He="authDialog-Nxx4m",Ue="signupText-Od9p3",Ve="signInContainer-HVJ2c";var We=r(83110),Je=r(66655);const Ge=function(){var e=(0,We.useLocation)().pathname,t=(0,Je.O)(),r=t.signinUrl+"&returnto="+e,n=t.signupUrl+"&returnto="+e;return(0,b.jsxs)("div",{className:He,children:[(0,b.jsx)("h2",{children:"Sign in to report an error"}),(0,b.jsx)("p",{children:"When you sign in, it helps us address your concern and contact you if we need more information about your report."}),(0,b.jsx)("div",{className:Ve,children:(0,b.jsx)(m.default,{url:r,external:!1,children:"Sign in"})}),(0,b.jsx)("p",{className:Ue,children:"New to CBC?"}),(0,b.jsx)(m.default,{url:n,external:!1,children:"Create a free account"})]})},Qe={contentFeedback:"contentFeedback-RoTQP",feedback:"feedback-zFPSt",reportIssue:"reportIssue-xC8cZ",journalistLink:"journalistLink-WCERZ",trustProjectLink:"trustProjectLink-QxM0q",separator:"separator-NZujE",bottomSeparator:"bottomSeparator-FdM_L"};function Ye(e){var t=e.baseSection,r=void 0===t?"":t,s=ze.SA[r],o=s?s.contentFeedbackLink:null,a=s?s.connectUrl:null,c=s?s.journalistStandards:null,u=s?s.trustProject:null,d=c&&u?(0,b.jsx)("span",{className:Qe.separator,children:"|"}):null,p=(0,i.useSelector)(Me.Z),f=(0,i.useDispatch)();if((0,n.useEffect)((function(){(0,qe.loadMembershipActionsLR)().then((function(e){(0,e.checkLoggedInStatus)()(f)})).catch((function(e){Be.default.error("(ContentFeedback)",new Error("(ContentFeedback) Failed to check authentication status - ".concat(e.message)))}))}),[]),!o&&!a&&!c&&!u)return null;var h=l()({bottomSeparator:o||a});return(0,b.jsxs)("div",{className:Qe.contentFeedback,children:[(0,b.jsxs)("div",{className:Qe[h],children:[Xe(c),d,Ke(u,r)]}),et(r,p)]})}function Ke(e,t){if(e){var r=t&&ze.SA[t]?(0,O.fm)(t):"";if(r)return(0,b.jsxs)(m.default,{className:Qe.trustProjectLink,url:e,external:!0,children:["About CBC ",r]})}return null}function Xe(e){return e?(0,b.jsx)(m.default,{className:Qe.journalistLink,url:e,external:!0,children:"CBC's Journalistic Standards and Practices"}):null}var $e=function(){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m.default,{className:Qe.reportIssue,url:"https://www.cbc.ca/news/email-cbc-contact-phone-tips-news-story-1.6466536",external:!1,children:"Submit a news tip"}),(0,b.jsx)("span",{className:Qe.separator,children:"|"})]})};function et(e,t){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m.default,{className:Qe.reportIssue,url:Re,external:!1,children:"Corrections and clarifications"}),(0,b.jsx)("span",{className:Qe.separator,children:"|"}),"news"===e?$e():null,(0,b.jsx)(Te,{className:Qe.reportIssue,isOpen:!1,children:null!==t&&void 0!==t&&t.isAuthenticated?(0,b.jsx)(Le,{}):(0,b.jsx)(Ge,{}),label:"Report error",dataTestAttribute:"reportIssue"})]})}Ye.propTypes={baseSection:o().string};var tt=r(68254),rt=r(69422),nt=r(50503),it=r(90955);const st=function(e){return e.sourceInfo?(0,b.jsx)("div",{className:"source",children:(0,b.jsx)("p",{children:e.sourceInfo})}):null};const ot=function(e){var t=e.json;if(!t||!Array.isArray(t)||0===t.length)return null;var r=t.map((function(e){return(0,b.jsxs)("li",{className:"correction-item",children:[(0,b.jsx)("div",{className:"correction-text",children:e.correction}),(0,b.jsx)("div",{className:"correction-date",children:e.date})]},"".concat(e.correction,"-").concat(e.date))}));return(0,b.jsxs)("div",{className:"corrections",children:[(0,b.jsx)("h3",{children:"Corrections"}),(0,b.jsx)("ul",{className:"corrections-list",children:r})]})};const at=function(e){var t=e.json;if(!Array.isArray(t)||0===(null===t||void 0===t?void 0:t.length))return null;var r=t.map((function(e){return(0,b.jsxs)("li",{className:"clarification-item",children:[(0,b.jsx)("div",{className:"clarification-text",children:e.clarification}),(0,b.jsx)("div",{className:"clarification-date",children:e.date})]},"".concat(e.clarification,"-").concat(e.date))}));return r.length>0?(0,b.jsxs)("div",{className:"clarifications",children:[(0,b.jsx)("h3",{children:"Clarifications"}),(0,b.jsx)("ul",{className:"clarifications-list",children:r})]}):null};var lt=r(67530);const ct=function(){var e=(0,i.useSelector)((function(e){return e.detail.content.type})),t=(0,i.useSelector)((function(e){return e.detail.content.segments})),r=(0,i.useSelector)((function(e){var t;return null===(t=e.detail.content)||void 0===t?void 0:t.episode})),n=(0,i.useSelector)((function(e){return e.app.contentId})),s=function(e){var t=e.type,r=e.episode;if("segment"!==t)return[];if(r){var n=Object.assign({},r);return n.title="FULL EPISODE: "+n.title,[n]}}({type:e,episode:r}),o=Array.isArray(t)?t.filter((function(e){return e.sourceId!==n})):[];return(0,b.jsx)(p.Z,{intlinks:o,eplinks:s,heading:lt.Fo})};r(2041),r(2612);var ut=r(77008);function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;te.length?t.path:e}),"").split("/").map((function(e,t){return{url:"/".concat(s.slice(0,t+1).join("/")),text:e}}));return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("ul",{className:"breadcrumbs",children:o.map((function(e){return(0,b.jsx)("li",{children:(0,b.jsx)(m.default,pt(pt({},(0,ut.Z)({position:null,name:"link",instance:"breadcrumb"})),{},{url:e.url,children:e.text}))},e.text)}))}),(0,b.jsx)("span",{className:"breadcrumb-flags",children:t({insideBreadcrumbs:!0})})]})}));var ht=r(30091);const vt=function(e){var t=(0,i.useSelector)((function(e){return e.app.meta["vf:container_id"]}));(0,n.useEffect)((function(){""!==t&&(ht.default._isViafouraLoaded()?ht.default.reset():ht.default.addOnReadyCallback((function(){ht.default.reset()})))}),[e,t])};var mt=r(53374),bt=r(79508);function jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:5,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var r=(0,At.Z)(Ct().mark((function r(n){var i,s,o,a,l,c,u,d,p,f;return Ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=(0,Ht.getUserFromCookie)()){r.next=5;break}return Be.default.error("(fetch_recommended_ml_driven_items) no visitor cookie"),n((0,Bt.Ly)()),r.abrupt("return",(function(){}));case 5:return r.prev=5,r.next=8,Mt();case 8:return a=r.sent,r.next=11,(0,Ut.h0)(Ft.OW.RECOMMENDED,{algorithmType:a,userId:i.id},e);case 11:l=r.sent,c=l.data,u=null===c||void 0===c||null===(s=c.mlDrivenItems)||void 0===s?void 0:s.type,d=(0,Zt.H9)(null===c||void 0===c||null===(o=c.mlDrivenItems)||void 0===o?void 0:o.items),p=d.filter((function(e){return"sponsoredcontent"!==(null===e||void 0===e?void 0:e.itemType)})),f=(0,Vt.h)(p,Wt.Jl,t),n((0,Bt.hX)({json:f,rectype:u})),r.next=24;break;case 20:r.prev=20,r.t0=r.catch(5),n((0,Bt.Ly)()),Be.default.error("(fetch_recommended_ml_driven_items) failed for ".concat(t),r.t0);case 24:case"end":return r.stop()}}),r,null,[[5,20]])})));return function(e){return r.apply(this,arguments)}}()}(o,p))};(0,n.useEffect)((function(){var e;l&&(null!==(e=window.CBC)&&void 0!==e&&null!==(e=e.APP)&&void 0!==e&&null!==(e=e.PubSub)&&void 0!==e&&e.subscribe&&window.CBC.APP.PubSub.subscribe("READ",h),h());return function(){var e;null!==(e=window.CBC)&&void 0!==e&&null!==(e=e.APP)&&void 0!==e&&null!==(e=e.PubSub)&&void 0!==e&&e.unsubscribe&&window.CBC.APP.PubSub.unsubscribe("READ",h)}}),[]);var v=(0,i.useSelector)((function(e){return Kt(e,u)}));return f?v&&v.length?(0,b.jsxs)("div",{className:"recommendations",children:[(0,b.jsx)(Gt.Z,{level:"h2",children:r}),(0,b.jsx)(Jt,{disclaimer:"We\u2019re experimenting with a new recommendation system that will offer a better way to browse and discover content that interests you."}),(0,b.jsx)(Qt.Z,{layout:Wt.Jl,items:v,featureAttributionData:u})]}):null:(0,b.jsx)("div",{className:"recommendations",children:(0,b.jsx)(Yt.Z,{numLoadingCards:o})})};var $t=r(38346),er=r(69912);const tr=function(){var e=(0,i.useSelector)((function(e){return e.app.path})),t=(0,i.useSelector)((function(e){return e.video.trendingClips.items})),r=(0,i.useSelector)((function(e){return e.video.trendingClips.isLoaded})),s=(0,i.useDispatch)(),o={instance:Ft.OW.TRENDING};return(0,n.useEffect)((function(){s((0,er.h)(5,e,Wt.Jl))}),[]),r?null!==t&&void 0!==t&&t.length?(0,b.jsxs)("div",{className:"horizontal trending",children:[(0,b.jsx)(Gt.Z,{level:"h2",children:"Trending Videos"}),(0,b.jsx)(Qt.Z,{layout:Wt.Jl,items:t,featureAttributionData:o})]}):void 0:(0,b.jsx)("div",{className:"horizontal trending",children:(0,b.jsx)(Yt.Z,{numLoadingCards:5})})};var rr=function(){var e=(0,i.useSelector)((function(e){return e.app})),t=e.baseSection,r=e.section;if((0,i.useSelector)((function(e){return e.detail.content.isPreview})))return null;if(ze.SA[t]){var n,s=null!==(n=ze.SA[r])&&void 0!==n&&n.displayLocalTrending?r:t;return(0,b.jsx)(St.Z,{children:(0,b.jsx)(Nt.VM,{section:s,trendingHeaderOverride:ze.SA[s].trendingSidebarLabel||null})})}};const nr=function(e){var t=e.components,r=void 0===t?[]:t,n={trending:(0,b.jsx)(rr,{}),trendingVideos:(0,b.jsx)(tr,{}),recommendations:(0,b.jsx)(Xt,{}),comments:(0,b.jsx)($t.Z,{}),discoverMore:(0,b.jsx)(_t.W,{})};return 0===r.length?null:r.map((function(e){return(0,b.jsx)("div",{className:"detailDiscovery",children:n[e]},e)}))};var ir=new Error("Failed to turn on ReadJS"),sr={cms:"polopoly"},or={el:".story",spa:!0,strict:!1,thresholds:{domNode:100,domPolling:100,maxTimeInView:20,minTimeInView:3,readingPoint:400,scrollDepth:30,viewport:15},activity:{scrollDepth:30,increment:100,averageReadSpeed:5},debug:{overlay:!1,console:!1},timeInterval:1.5},ar=function(e,t){return window.readJSConfig=Object.assign({cb:function(){!function(e){e=Object.assign({},sr,e);try{window.CBC.APP.SC.EventTracker.trackEvent("READ",{content:e})}catch(t){Be.default.error("(trackEvent)",new Error("Failed to track READ event"))}}(e),"function"===typeof t&&t()}},or),Promise.all([r.e(6284),r.e(6563),r.e(8382),r.e(8922)]).then(r.t.bind(r,17111,23)).then((function(){if(!window.readJS.isOn()&&!window.readJS.turnOn())throw ir}))};const lr=function(e){return(0,n.useEffect)((function(){var t,r,n,i,s;return ar((t=e.url,r=e.type,n=e.id,i=e.headline,s=e.pubdate,{url:t,type:r,id:n,title:i,pubdate:s}),e.onRead).catch((function(){return Be.default.error("(InRead)",ir)})),function(){return function(){try{window.readJS.turnOff()}catch(e){Be.default.error("(turnOff)",new Error("Failed to turn off ReadJS"))}}()}}),[]),e.children};r(53145),r(62153),r(23744),r(84350),r(89891),r(35275),r(85095),r(61399),r(57273),r(50791),r(39752),r(20816),r(75152),r(28997),r(23433),r(54367),r(46900),r(69898);var cr=r(18066),ur="read",dr=r(79349),pr=r(31646),fr=r(71714),hr=r(73478),vr=r(84819);function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function br(e){for(var t=1;t0;return(0,b.jsxs)("div",{"data-cy":"storyWrapper",children:[(0,b.jsx)(Pt,{}),!r&&(0,b.jsx)(Fr,{storyId:n.id,isPreview:n.isPreview}),!r&&a&&(0,b.jsx)(bt.Z,Tr(Tr({},s),{},{isLead:!0,autoPlay:!1,forcePersistence:!0,showcaption:!1,position:1})),!r&&l&&(0,b.jsx)(_r,{list:o}),(0,b.jsx)(Pr,{noAds:r})]})}));var Rr=r(34637),Mr=r(94481),qr=r(91189);function Br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Hr=function(e){var t,r,i=e.lineupSlug,s=e.pageSize,o=(0,n.useState)([]),a=(0,z.Z)(o,2),l=a[0],c=a[1],u=function(){var e=(0,At.Z)(Ct().mark((function e(){var t,r,n;return Ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,qr.Q)({lineupSlug:i,pageSize:s});case 2:t=e.sent,r=t.allContentItems,[],n=(0,Zt.H9)(r.nodes),c(n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,n.useEffect)((function(){u()}),[]);var d={items:l,fetchSection:!1,headline:(null===(t=l[0])||void 0===t?void 0:t.flag)||"",itemCount:1,title:(null===(r=l[0])||void 0===r?void 0:r.flag)||"",hideTitle:!0,loadMore:!1,showImage:!0,forcedImageAspectRatio:"100",cardClickHandler:null};return l&&(0,b.jsx)(Mr.Z,function(e){for(var t=1;t0&&(0,b.jsx)(y,{external:!0,name:M.name,description:M.description||"",url:M.link,logo:ge,enableLink:(0,F.M_)(M.link)})]})}),(0,b.jsx)("div",{className:"withFlex",children:(0,b.jsxs)("div",{className:"detailSideRail",children:[(0,b.jsx)("div",{className:"stickyContainer stickyRailAd",children:(0,b.jsx)(h.Z,{type:"bigbox-sticky",targeting:{type:"ocelot",contentId:_,rmtype:"bigboxfixed",subject:(0,c.ks)(ue),gs_categories:pe,gs_keywords:fe,plc:"right"},responsive:!0,lazy:!0,exclusions:de})}),(0,b.jsx)(we,{}),(0,b.jsx)("div",{className:"stickyContainer",children:(0,b.jsx)(nr,{components:lt.QY})})]})})]}),(0,b.jsx)("div",{className:"detailBodyContainer",children:(0,b.jsxs)("div",{className:"withFlex",children:[(0,b.jsx)(nr,{components:lt.N3}),(0,b.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:xe})]})}),(0,b.jsx)(tt.ZP,{}),O&&(0,b.jsx)(rt.default,{dtmData:be,type:nt.TYPE_DETAIL})]})})};Wr.propTypes={imageUrl:o().string,noAds:o().bool,analyticsEnabled:o().bool};const Jr=(0,D.g)(Wr,{suspenseProps:{fallback:(0,b.jsx)(Rr.default,{statusCode:500})},errorBoundaryProps:{fallback:(0,b.jsx)(Rr.default,{statusCode:500})}})},11121:(e,t,r)=>{r.d(t,{Z:()=>h});r(2041),r(95566),r(2612);var n=r(92972),i=r.n(n),s=r(2902),o=r(97240),a=r(26574),l=[300,460,620],c=["258px"],u=r(88101),d=r(56552);function p(e){var t,r=e.json,n=void 0===r?{}:r,i=e.heading,u=void 0===i?"ABOUT THE AUTHOR":i,p=e.authorProfilePage,h=void 0!==p&&p,v=n,m=(null===v||void 0===v||null===(t=v.photoDerivatives)||void 0===t||null===(t=t.square_620)||void 0===t?void 0:t.fileurl.split("Resize%3D")[0])||"",b=m?(0,d.jsx)("div",{className:"authorprofile-image-container",children:(0,d.jsx)(s.Z,{url:m,derivativeWidths:l,sizesRatio:"square",sizes:c,type:"author-image"})}):null;if(v&&v.name){if(h)return(0,d.jsx)("div",{className:"authorprofile","data-cy":"author-profile",children:(0,d.jsxs)("div",{className:"authorprofile-container",children:[b,(0,d.jsxs)("div",{className:"authorprofile-name-container",children:[(0,d.jsx)("p",{className:"authorprofile-name",children:v.name}),(0,d.jsx)("p",{className:"authorprofile-title",children:v.title}),(0,d.jsx)("p",{className:"authorprofile-biography",children:v.biography}),f(v.links)]})]})});if(v.biography){var j=v.url?(0,d.jsx)(a.default,{url:v.url,children:v.name}):(0,d.jsx)("p",{className:"authorprofile-name",children:v.name});return(0,d.jsxs)("div",{className:"authorprofile",children:[(0,d.jsx)(o.Z,{level:"h2",children:u}),(0,d.jsxs)("div",{className:"authorprofile-container",children:[b,(0,d.jsxs)("div",{className:"authorprofile-name-container",children:[j,(0,d.jsx)("p",{className:"authorprofile-title",children:v.title})]})]}),(0,d.jsx)("p",{className:"authorprofile-biography",children:v.biography}),f(v.links)]})}}return null}function f(e){var t=function(e){if(!e||!e.length)return;return e.reduce((function(e,t){var r=(0,u.wP)(t.url),n=!!(0,u.sD)(r);return"link"===t.type&&e.push((0,d.jsx)("li",{className:"authorprofile-linkitem",children:(0,d.jsx)(a.default,{url:r,external:n,className:"authorprofile-item",children:t.title})},"".concat(t.title,"-").concat(r))),e}),[])}(e);return(0,d.jsx)("ul",{className:"authorprofile-links",children:t})}p.propTypes={json:i().object.isRequired,heading:i().string,authorProfilePage:i().bool};const h=p},38346:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(51341),i=r(42820),s=r.n(i),o=r(60612),a=r(46484),l=r(56552),c=(0,n.ZP)({resolved:{},chunkName:function(){return"app-components-Comments-component"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:function(){return r.e(1250).then(r.bind(r,43265))},requireAsync:function(e){var t=this,r=this.resolve(e);return this.resolved[r]=!1,this.importAsync(e).then((function(e){return t.resolved[r]=!0,e}))},requireSync:function e(t){var n=this.resolve(t);return r(n)},resolve:function e(){return 43265}},{ssr:!1}),u=function(){var e=(0,i.useSelector)((function(e){return e.detail.content})),t=(0,i.useSelector)((function(e){return e.app})).contentId;return null!==e&&void 0!==e&&e.displayComments?(0,l.jsxs)("div",{className:"commentsWrapper withSidebar",children:[(0,l.jsx)("div",{className:"withFlex",children:(0,l.jsx)("div",{className:"detailMainCol",children:(0,l.jsx)(c,{storyId:e.id})})}),(0,l.jsx)("div",{className:"withFlex",children:(0,l.jsx)("div",{className:"detailSideRail",children:(0,l.jsx)("div",{className:"stickyContainer stickyRailAd",children:(0,l.jsx)(o.Z,{type:"bigbox-sticky",targeting:{type:"ocelot",contentId:t,rmtype:"bigboxfixed",subject:(0,a.ks)(e.subject),gs_categories:e.gs_categories,gs_keywords:e.gs_keywords,plc:"comments"},responsive:!0,lazy:!0,exclusions:e.adExclusions})})})})]}):null};const d=u},15667:(e,t,r)=>{r.d(t,{Z:()=>N});r(58109),r(95566),r(68438),r(83464),r(19496);var n=r(4942),i=r(92972),s=r.n(i),o=r(97240),a=(r(9867),r(7231),r(89720)),l=r(26574),c=r(88101),u=r(57241),d=["nonpolopolyURL","link","stub"],p=r(56552);function f(e){var t=e.flag,r=e.external,n=void 0!==r&&r,i=e.type,s=e.url,o=e.shareHeadline,f=e.title,h=(0,u.nZ)({shareHeadline:o,title:f}),v=n||d.includes(i),m=c.wP(s),b=v?s:m;return(0,p.jsx)("li",{className:"relatedListItem",children:(0,p.jsxs)(l.default,{className:"relatedLink",external:v,url:b,children:[(0,p.jsx)(a._,{flag:t||"",external:v})," ",h]})})}f.propTypes={url:s().string.isRequired,title:s().string,flag:s().string,external:s().bool};const h=f;function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){var t=e.links.map((function(e){var t=e.url.slice(e.url.lastIndexOf("-")+1);return(0,p.jsx)(h,function(e){for(var t=1;t0?(0,p.jsx)(b,{links:l}):null,u=(null===s||void 0===s?void 0:s.length)>0?(0,p.jsx)(b,{links:s}):null,d=(null===a||void 0===a?void 0:a.length)>0?(0,p.jsx)(x,{links:a}):null;return d||u||c?(0,p.jsxs)("div",P(P({className:"relatedlinks"},(0,w.Z)({name:"link",instance:"related-link"})),{},{children:[(0,p.jsx)(o.Z,{level:"h2",children:r}),(0,p.jsxs)("ul",{className:"relatedList",children:[c,u,d]})]})):null}S.propTypes={relatedItems:s().array,intlinks:s().array,eplinks:s().array,externalLinks:s().array,heading:s().string},S.defaultProps={relatedItems:null,heading:"Related Stories"};const N=(0,O.g)(S)},25538:(e,t,r)=>{function n(e){return e.membership}r.d(t,{Z:()=>n})}}]); //# sourceMappingURL=../../sourcemaps/oc-pages-Detail-component.567b4cf60d4d23cd4777.js.map