ame-time">
                                ${t=>t.gameStartTime}
                            </div>
                            <div class="sports-match-detail-attribute-game-tv-channel">
                                ${t=>t.tvChannel}
                            </div>
                        </div>
                    `)}
                ${(0,J.g)((t=>t.gameStateCatetory==p.inprogressGame),O.d`
                        <div class="sports-match-detail-attributes inprogress-game">
                            <div class="sports-match-detail-attribute-game-clock">
                                ${t=>t.gamePeriodAndClock}
                            </div>
                            <div class="sports-match-detail-attribute-game-tv-channel">
                                ${t=>t.tvChannel}
                            </div>
                        </div>
                    `)}
                ${(0,J.g)((t=>t.gameStateCatetory==p.postGame),O.d`
                        <div class="sports-match-detail-attributes post-game">
                            <div class="sports-match-detail-attribute-game-state">
                                ${t=>t.gameState}
                            </div>
                            <div class="sports-match-detail-attribute-game-date">
                                ${t=>t.gameDate}
                            </div>
                        </div>
                    `)}
            </div>
        </div>
    </a>
`,Q=(t,e)=>O.d`
    <fluent-anchor
        class="sd-action"
        part="sd-action"
        href=${t=>{var e;return null===(e=t.sportsMatchupCardData)||void 0===e?void 0:e.seeMoreClickthroughUrl}}
        target=${t=>t.clickthroughTarget}
        data-t="${t=>t.seeMoreTelemetryTag}"
    >
        ${t=>{var e;return null===(e=t.sportsMatchupCardData)||void 0===e?void 0:e.seeMoreText}}
    </fluent-anchor>
`,tt=A.compose({baseName:"sports-matchup-card",template:(t,e)=>O.d`
    <div class="sports-matchup-card">
        <div class="sports-matchup-card-header">
            ${Y}
        </div>
        <div class="sports-matches">
            ${(0,Z.rx)((t=>t.sportsMatchData),K)}
        </div>
        <div class="sports-matchup-card-footer">
            ${Q}
        </div>
    </div>
`,styles:(t,e)=>H.i`
    ${z.U}
    :host {
        font-family: ${U.SVJ};
    }

    .sports-matchup-card {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        padding: 12px 0;
        height: 100%;
    }

    :host([background="dynamic"]) .sports-matchup-card {
        background: ${B.w_};
    }

    :host([background="gradient"]) .sports-matchup-card {
        background: ${B.Sf};
    }

    .sports-matchup-card-header {
        display: flex;
        flex-direction: row;
        min-height: 24px;
        padding: 0 16px;
    }

    ::slotted([slot="sports-header-icon"]) {
        padding-inline-end: 6px;
        margin-top: 6px;
    }

    .sports-matchup-card-header-title-link {
        color: ${U.CHi};
        display: flex;
        flex: 1;
        min-width: 0;
        text-decoration: none;
        font-weight: 500;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        z-index: 2;
    }

    .sports-matchup-card-header-title {
        font-size: ${U.sNp};
        line-height: ${U.vgC};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-inline-end: 12px;
    }

    .sports-matchup-card-header-title-link:hover,
    .sports-matchup-card-header-title-link:active,
    .sports-matchup-card-header-title-link:${G.b} {
        text-decoration: underline;
        outline: none;
    }

    .sports-matchup-card-header-action-button {
        z-index: 2;
        display: flex;
        margin-top: -4px;
    }

    .sports-match-clickthrough-link {
        color: ${U.CHi};
        text-decoration: none;
        z-index: 2;
        overflow: hidden;
        margin: 0 6px;
    }

    .sports-match-clickthrough-link a::after {
        position: absolute;
        content: "";
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
    }

    .sports-match-clickthrough-link:hover,
    .sports-match-clickthrough-link:${G.b} {
        background: ${U.QpD};
        border-radius: calc(${U.UWU} * 2px);
        overflow: hidden;
    }

    .sports-matches {
        display: grid;
        row-gap: 14px;
        padding-top: 12px;
    }

    :host([uxstyle="widget"]):host([card-layout="1x_1y"]) .sports-matches {
        padding-top: 28px;
    }

    :host([uxstyle="widget"]):host([card-layout="1x_3y"]) .sports-matches {
        row-gap: 20px;
        padding-top: 14px;
    }

    .sports-match {
        align-items: center;
        display: flex;
        flex-direction: row;
        padding: 0 16px;
    }

    .sports-match-dual-participants {
        display: flex;
        flex-direction: column;
        padding: 2px 0;
        width: 204px;
        gap: 4px;
    }

    .sports-match-participant {
        align-items: center;
        display: flex;
        flex-direction: row;
        height: 28px;
    }

    .sports-match-participant-image {
        height: 28px;
        padding-inline-end: 8px;
        width: 28px;
    }

    .sports-match-participant-image img {
        width: 100%;
    }

    .sports-match-participant-name {
        flex: 1;
        font-size: ${U.cSu};
        line-height: ${U.RUt};
        overflow: hidden;
        padding-inline-end: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sports-match-score-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .sports-match-participant-score {
        font-size: ${U.cSu};
        line-height: ${U.RUt};
        overflow: hidden;
        padding-inline-end: 4px;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sports-match-participant-name.winner,
    .sports-match-participant-score.winner,
    .sports-match-detail-attribute-game-time {
        font-weight: bold;
    }

    .long-score .sports-match-participant-name {
        font-size: ${U.sNp};
        line-height: ${U.vgC};
    }

    .long-score .sports-match-participant-score {
        font-size: ${U.sNp};
        line-height: ${U.vgC};
    }

    .long-score .sports-match-participant-name.winner,
    .long-score .sports-match-participant-score.winner {
        font-weight: 600;
    }

    .sports-match-participant-winner-tag {
        padding-inline-end: 4px;
        width: 5px;
        height: 24px;
    }

    .sports-match-participant-winner-tag > svg > path {
        fill: currentColor;
    }

    .sports-match-participant-name.loser,
    .sports-match-participant-score.loser {
        color: ${U.CHi};
    }

    .sports-match-details {
        font-size: ${U.sNp};
        width: 64px;
        color: ${U.CHi};
    }

    .sports-match-detail-attributes {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .sports-match-detail-attribute {
        flex: 1;
        min-width: 0;
    }

    .sports-match-detail-attribute-game-clock,
    .sports-match-detail-attribute-game-state,
    .sports-match-detail-attribute-game-date,
    .sports-match-detail-attribute-game-time,
    .sports-match-detail-attribute-game-tv-channel {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
        color: ${U.CHi};
    }

    .inprogress-game .sports-match-detail-attribute-game-clock {
        color: #cc0000;
        font-weight: bold;
    }

    .sports-matchup-card-footer {
        display: flex;
        justify-content: center;
        padding: 0 16px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 8px;
    }

    .sports-matchup-card-footer-seemore-arrow > svg > path {
        fill: currentcolor;
    }

    ::slotted([slot="more-actions"]) {
        --control-corner-radius: 20;
        height: 24px;
        width: 24px;
        min-width: 24px;
        background: ${U.wFS};
    }

    ::slotted([slot="more-actions"])::part(control) {
        padding: 0;
    }

    ::slotted([slot="more-actions"]:hover) {
        background: ${U.XiB};
    }

    .sd-action {
        height: 24px;
    }

    .sd-action::part(control) {
        padding: 0 24px;
    }

    .sd-action::part(control)::after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    :host([uxstyle="widget"]) .sd-action {
        background: transparent
    }
`.withBehaviors(new W.Y(V,q),new N.O(j,_),(0,R.vF)(H.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))});var et=a(16590),at=a(8876),it=a(68364),rt=a(26415),st=a(19388),nt=a(42355),ot=a(63070),lt=a(12306),dt=a(7511),ct=a(69298),pt=a(1393),ht=a(65135),ut=a(38156),gt=a(75559),mt=a(60483),vt=a(18536),ft=a(36068),yt=a(58958),wt=a(49088),bt=a(16614),St=a(81492),xt=a(40340),Ct=a.n(xt),$t=a(26785),kt=a.n($t),Tt=a(11773),Dt=a(56993),Mt=a.n(Dt),It=a(66707),Lt=a(55096),Ft=a.n(Lt);class Ot{constructor(t,e){this.TeeTime_Text="Tee Time",this.getIdentifier=t=>null==t?void 0:t.name,this.getLiveGameLogo=()=>O.d`<div>${'<svg width="23" height="8" viewBox="0 0 23 8" fill="none"><path d="M2.31 6.7h3.42V8H.7V.18H2.3v6.53ZM8.37 8h-1.6V.18h1.6V8Zm4.4-1.94L14.52.18h1.8L13.6 8h-1.69L9.22.18H11l1.76 5.88Zm9-1.45h-3.09v2.1h3.63V8h-5.24V.18h5.23v1.3h-3.62v1.87h3.1V4.6Z" fill="#C80000"/></svg>'}</div>`,this.getNonLiveGameLogo=()=>{},this.getParticipantRank=t=>null==t?void 0:t.rank,this.getParticipantName=t=>null==t?void 0:t.name,this.isWinner=(t,e)=>(null==t?void 0:t.isWinner)&&this.isPostGame(e),this.isGameSubheaderBold=t=>{},this.isGameLive=t=>(null==t?void 0:t.gameStateCatetory)===m.w_.inprogressGame,this.isPostGame=t=>(null==t?void 0:t.gameStateCatetory)===m.w_.postGame,this.isPreGame=t=>(null==t?void 0:t.gameStateCatetory)===m.w_.preGame,this.getGameImageUrl=t=>null==t?void 0:t.tournamentImageUrl,this.getGameName=t=>null==t?void 0:t.name,this.getGameSubheader=t=>null==t?void 0:t.locationName,this.getGameClickThrough=t=>null==t?void 0:t.matchClickthroughUrl,this.getGameId=t=>null==t?void 0:t.gameId,this.getCountryFlagForParticipant=t=>t.countryFlagImageId,this.displayParticpantCountryFlag=()=>this.isLeaderBoard(),this.displayParticpantScoreTag=()=>!1,this.displayGenericLiveGameIcon=t=>this.isGameLive(t),this.displayGameDate=()=>!1,this.getGameProgress=()=>{var t;const e=null===(t=this.sportMatchData[0])||void 0===t?void 0:t.round;return null!=e?"Round: "+e:this.TeeTime_Text},this.getGameDate=t=>(null==t?void 0:t.gameStateCatetory)===m.w_.postGame?null==t?void 0:t.endDateTime:(null==t?void 0:t.currentDateTime)>(null==t?void 0:t.gameDate)&&(null==t?void 0:t.currentDateTime)<=(null==t?void 0:t.endDateTime)?null==t?void 0:t.currentDateTime:null==t?void 0:t.gameDate,this.isLeaderBoard=()=>this.sportCardData.dataType===m.O7.leaderboard,this.getParticipantsList=(t,e)=>e.participants.slice(0,t),this.getParticipantScore=(t,e)=>{if((null==t?void 0:t.gameStateCatetory)===m.w_.preGame)return null==e?void 0:e.teetime;let a="";return e?(a=`${e.total}`,a):a},this.getGameDetails=(t,e)=>{const a=(new Date).getDate()===new Date(t.gameDate).getDate();let i="",r="";switch(t.gameStateCatetory){case m.w_.preGame:i=a?t.gameStartTime:t.gameDate,r=t.tvChannel;break;case m.w_.inprogressGame:i=t.round,r=t.tvChannel;break;case m.w_.postGame:i=e,r=t.endDateTime}return{timeOrState:i,channelOrDate:r}},this.sportCardData=t,this.sportMatchData=e}}class Pt{constructor(t,e){this.getIdentifier=t=>null==t?void 0:t.driverNumber,this.getLiveGameLogo=()=>O.d`<div>${'<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><g clip-path="url(#clip0)"><path d="M13.33 0H1.67v10h11.66a1.33 1.33 0 0 0 1.34-1.33V1.33A1.33 1.33 0 0 0 13.33 0Z" fill="#13A10E"/><path d="M1.67 1v14" stroke="#AAA" stroke-width="3" stroke-miterlimit="10" stroke-linecap="round"/></g><defs><clipPath id="clip0"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>'}</div>`,this.getNonLiveGameLogo=()=>O.d`<div>${'<svg width="16" height="17" viewBox="0 0 16 17" fill="none"><g clip-path="url(#clip0)"><path d="M14.67.86h-13v10.67h13A1.33 1.33 0 0 0 16 10.19v-8A1.33 1.33 0 0 0 14.67.86Z" fill="#E7E7E7"/><path d="M2 .86h3.33v2.67H2V.86Zm6 0h2.67v2.67H8V.86ZM5.33 3.53H8v2.66H5.33V3.53Zm5.34 0h2.66v2.66h-2.66V3.53ZM8 6.19h2.67v2.67H8V6.2Zm-5.33 0h2.66v2.67H2.67V6.2Zm8 2.67h2.66v2.67h-2.66V8.86Zm-5.34 0H8v2.67H5.33V8.86Zm8-2.67H16v2.67h-2.67V6.2Zm0-5.33h1.34A1.33 1.33 0 0 1 16 2.2v1.34h-2.67V.86Z" fill="#111"/><path d="M1.67 1.86v14" stroke="#AAA" stroke-width="3" stroke-miterlimit="10" stroke-linecap="round"/></g><defs><clipPath id="clip0"><path fill="#fff" transform="translate(0 .86)" d="M0 0h16v16H0z"/></clipPath></defs></svg>'}</div>`,this.getParticipantRank=t=>null==t?void 0:t.rank,this.getParticipantName=t=>null==t?void 0:t.driverName,this.isWinner=t=>(null==t?void 0:t.isWinner)||"0"==(null==t?void 0:t.timeDifferenceFromLeader),this.getGameProgress=()=>{var t;return null===(t=this.sportMatchData[0])||void 0===t?void 0:t.laps},this.isGameLive=t=>(null==t?void 0:t.gameStateCatetory)===m.w_.inprogressGame,this.isPreGame=t=>(null==t?void 0:t.gameStateCatetory)===m.w_.preGame,this.isPostGame=t=>(null==t?void 0:t.gameStateCatetory)===m.w_.postGame,this.getGameImageUrl=t=>null==t?void 0:t.raceImageUrl,this.isGameSubheaderBold=t=>this.isPostGame(t)&&!!this.getGameWinner(t),this.getGameName=t=>null==t?void 0:t.raceName,this.getGameSubheader=t=>{let e=t.locationName;if(this.isPostGame(t)){const a=this.getGameWinner(t);e=a&&a.driverName?`${a.rank||"1"}. ${a.driverName||""}`:e}return e},this.getGameWinner=t=>t.participants&&t.participants.filter((t=>t.isWinner))[0],this.getGameClickThrough=t=>null==t?void 0:t.matchClickthroughUrl,this.getGameId=t=>null==t?void 0:t.gameId,this.getGameDate=t=>null==t?void 0:t.gameDate,this.isLeaderBoard=()=>this.sportCardData.dataType===m.x_.singleRace,this.getParticipantsList=(t,e)=>e.participants&&e.participants.slice(0,t),this.getCountryFlagForParticipant=t=>{},this.displayParticpantCountryFlag=()=>!1,this.displayParticpantScoreTag=()=>this.isLeaderBoard(),this.displayGenericLiveGameIcon=t=>!1,this.displayGameDate=()=>!0,this.getParticipantScore=(t,e,a,i,r)=>{let s="";return e?(s=this.isGameLive()?e.isWinner?a:`-${e.timeDifferenceFromLeader||""}${r}`:`${e.points||"-"} ${i}`,s):s},this.getGameDetails=(t,e)=>{const a=(new Date).getDate()===new Date(t.gameDate).getDate();let i="",r="";switch(t.gameStateCatetory){case m.w_.preGame:i=a?t.gameStartTime:t.gameDate,r=t.tvChannel;break;case m.w_.inprogressGame:i=t.laps,r=t.tvChannel;break;case m.w_.postGame:i=e,r=t.gameDate}return{timeOrState:i,channelOrDate:r}},this.sportCardData=t,this.sportMatchData=e}}class At{static getLeaderBoardSportContext(t,e){const a=t.dataType;return a==m.x_.singleRace||a==m.x_.raceList?new Pt(t,e):a==m.O7.leaderboard||a==m.O7.scheduledTournaments?new Ot(t,e):void(0,it.H)(rt.bf5,`Sports Context not created due to unsupported Sports Data Type: ${a}`)}}var Et=a(9610),Ut=a(63535),Nt=a(85663),Ht=a(10209),Gt=a(97186);class Rt extends Et.l{constructor(){super(),this.isGA=!1,this.isActionMenuOpen=!1,this.isShowReminder=!1,this.isShowDataErrorReminder=!1,this.sportsMatchUXType=m.mW.Default,this.sportsUXTypeForTelemetry=m.mW.Default,this.isShowingEntityList=!1,this.SportsIndexedDbStoreName=`${(0,T.Yq)().CurrentRequestTargetScope.pageType}.${l.x.sportsCardWC}.store`,this.SportsIndexedDbName=`${(0,T.Yq)().CurrentRequestTargetScope.pageType}.${l.x.sportsCardWC}`,this.postDomTasks=()=>(0,u.mG)(this,void 0,void 0,(function*(){var t,e,a;this.loadDelayLoadViews(),this.uxstyle==at.n9.widget&&this.fetchSportsMatchData(this.widgetSportsEntityId),this.config.enableHoverNav&&this.sportsMatchCardData&&this.sportsMatchCardData.primaryEntityId&&this.saveEntityData(this.sportsMatchCardData.primaryEntityId,this.sportsData),this.initActionMenuItems(),this.fetchSportsRecommendations(null===(e=null===(t=this.sportsData)||void 0===t?void 0:t.sportsMatchupCardData)||void 0===e?void 0:e.primaryEntityId),this.fetchFollowedSports(this.config.ocid,null),this.flightId=T.jG&&(null===(a=T.jG.CurrentRequestTargetScope)||void 0===a?void 0:a.pageExperiments)?T.jG.CurrentRequestTargetScope.pageExperiments.filter((t=>t.startsWith("prg-1sw"))).join(","):void 0})),this.getSliceIndexes=(t,e,a)=>{if(null==t||t<=0||null==a)return[0,e];const i=(t-1)*e;let r=i+e;return r=r>a?a:r,[i,r]},this.enableSortFlight=()=>this.config&&(this.config.liveTodayFirst||this.config.preTodayFirst||this.config.finalTodayFirst),this.getSportsSeeMore=()=>this.config.seeMoreOnMsn?{seeMoreOnMsn:!0,seeMoreText:this.strings.sportsSeeMoreOnMsn}:this.config.seeMoreContent?{seeMoreOnMsn:!0,seeMoreText:this.strings.SportsSeeMoreContent}:this.config.clickSeeMoreContent?{seeMoreOnMsn:!0,seeMoreText:this.strings.clickForSportsContent}:{seeMoreOnMsn:!1,seeMoreText:null},this.getChampionBackgroundGradient=t=>{var e,a;if(t&&t.gameStateCatetory==m.w_.postGame){let i=1==t.participantOne.isWinner?null===(e=t.participantOne)||void 0===e?void 0:e.primaryColor:null;if(i||(i=1==t.participantTwo.isWinner?null===(a=t.participantTwo)||void 0===a?void 0:a.primaryColor:null),i)return`linear-gradient(180deg,\n                    ${(0,ft.a7)(i,this.isDarkMode?.75:.06)} 0%,\n                    ${(0,ft.a7)(i,this.isDarkMode?.75:.075)} 48.7%,\n                    ${(0,ft.a7)(i,this.isDarkMode?.6:.105)} 100%)`}return null},this.colorSchemeChangeHandler=()=>{this.isDarkMode=this.shouldUseDarkMode(),this.colormode=this.getColorMode();const t=(0,Gt.in)(this.colormode===at.wF.dark?"#2C2C2C":"#F2F2F2");U.IfY.setValueFor(this,nt.w.from(t)),this.teamColorGradientBackgrdStyle=this.getMatchupCardGradientBackground()},this.shouldUseDarkMode=()=>this.widgetInstance?y.gL.get(y.Iq.IsDarkMode):(0,yt.Y)(),this.navigationListFollowSports=t=>(0,u.mG)(this,void 0,void 0,(function*(){(yield this.followSports(t))&&this.config.hoverNavFollowRefresh&&this.fetchSportsMatchData(this.selectedEntity.id,!0),this.isShowingEntityList=!1,this.showNavList=!1})),this.followSports=(t,e=!1)=>(0,u.mG)(this,void 0,void 0,(function*(){var a,i;let r;if(this.isShowReminder=!1,this.unfollowedSuggest=null,t&&t.id){const e=this.uxstyle===at.n9.feed?this.widgetMuid&&[{key:Rt.muidKey,value:this.widgetMuid}]:yield this.getWidgetOneServiceHeaders();r=yield g.d.postActionRequest(t.id,t.name,m.Us.Follow,t.type,this.config.ocid,!1,e),this.followedSuggest=t,this.selectedEntity={id:t.id,name:t.name,type:t.type},r&&(null===(a=this.allRecommendations)||void 0===a||a.forEach((e=>(e.id&&e.id===t.id||e.yId&&e.yId===t.yId)&&(e.hasExplicitInterest=!0))))}if(this.uxstyle===at.n9.widget?(this.widgetSportsEntityId=null==t?void 0:t.id,this.refreshEntityIdCache(),this.fetchSportsMatchData(this.widgetSportsEntityId)):e&&t&&t.id&&this.fetchSportsMatchData(t.id),this.widgetSettings?this.widgetSettings.hideSettings():this.switchToMatchCard(),this.uxstyle===at.n9.feed){const t=this.widgetMuid?[{key:Rt.muidKey,value:this.widgetMuid}]:null;this.fetchFollowedSports(this.config.ocid,t),this.isShowReminder=null!=r&&!(0,wt.T)(null===(i=this.followedSuggest)||void 0===i?void 0:i.name),this.reminderTimer&&clearTimeout(this.reminderTimer),this.reminderTimer=setTimeout((()=>{this.isShowReminder=!1,this.followedSuggest=null}),5e3)}return r})),this.isSportsFollowed=(t,e)=>{const a=this.followedSports&&this.followedSports.filter((a=>a.id&&a.id===t||a.yId&&a.yId===e));return a&&a.length>0},this.selectEntityCallback=t=>{t&&t.id&&g.d.postActionRequest(t.id,t.name,m.Us.Follow,t.type,this.config.ocid,!1)},this.doneSelectionCallback=()=>{this.config.announceFreInViewport||this.announceFRESeen(),this.refreshFeedCard()},this.closeReminder=t=>{this.followedSuggest=null,this.unfollowedSuggest=null,t&&(this.isShowReminder=!1,ht.M0.sendActionEvent(t.target,ut.Aw.Click,ut.wu.Customize))},this.closeErrorReminder=t=>{this.isShowDataErrorReminder=!1},this.getFollowReminderTelemetry=()=>{var t,e,a,i;const r=this.config.showPersonalizeEntryPoint?(0,D.rP)():null===(t=this.currentSportsMatchupData)||void 0===t?void 0:t.sportsMatchupCardData.seeMoreSportsClickthroughUrl;return this.followedSuggest?null===(i=(0,m.Fd)(this.telemetryObject,this.followedSuggest,null!==(a=null===(e=this.currentSportsMatchupData)||void 0===e?void 0:e.sportsMatchupCardData.primaryEntityId)&&void 0!==a?a:"",this.getTelemetryExt(),{zone:this.zoneType,fallbackUrl:r}))||void 0===i?void 0:i.getMetadataTag():""},this.getRevertFollowTelemetry=()=>{var t,e,a;return null===(a=(0,m.d)(this.telemetryObject,this.unfollowedSuggest,null!==(e=null===(t=this.currentSportsMatchupData)||void 0===t?void 0:t.sportsMatchupCardData.primaryEntityId)&&void 0!==e?e:"",this.getTelemetryExt(),{zone:this.zoneType}))||void 0===a?void 0:a.getMetadataTag()},this.getFollowReminderText=()=>{var t,e,a,i;return this.strings.sportsAddedToast&&((null===(t=this.followedSuggest)||void 0===t?void 0:t.displayText)||(null===(e=this.followedSuggest)||void 0===e?void 0:e.name))?(0,X.WU)(this.strings.sportsAddedToast,this.followedSuggest.displayText||this.followedSuggest.name):this.strings.sportsUnfollowingToast&&((null===(a=this.unfollowedSuggest)||void 0===a?void 0:a.displayText)||(null===(i=this.unfollowedSuggest)||void 0===i?void 0:i.name))?(0,X.WU)(this.strings.sportsUnfollowingToast,this.unfollowedSuggest.displayText||this.unfollowedSuggest.name):void 0},this.unfollowToastClick=t=>{this.isShowReminder=!1,t&&ht.M0.sendActionEvent(t.target,ut.Aw.Click,ut.wu.Follow),this.followSports(this.unfollowedSuggest,!1)},this.getRevertFollowTitle=()=>this.unfollowedSuggest&&this.strings.sportsUnfollowingToastLink?(0,X.WU)(this.strings.sportsUnfollowingToastLink,this.unfollowedSuggest.displayText||this.unfollowedSuggest.name):this.strings.sportsCTA,this.navigationListUnfollowSports=(t,e)=>{this.unfollowSports(t),this.isShowingEntityList=!1,this.showNavList=!1},this.unfollowSports=(t,e=!1)=>(0,u.mG)(this,void 0,void 0,(function*(){var a;if(this.isShowReminder=!1,this.followedSuggest=null,t&&(t.id||t.yId)&&this.uxstyle===at.n9.feed){const i=this.followedSports.filter((e=>e.id&&e.id===t.id||e.yId&&e.yId===t.yId));if(i&&i.length>0){const e=yield g.d.deleteActionRequest(i[0].feedId,m.Us.Follow,i[0].type||"",this.config.ocid,!1),r=this.widgetMuid?[{key:Rt.muidKey,value:this.widgetMuid}]:null;this.fetchFollowedSports(this.config.ocid,r),e&&(null===(a=this.allRecommendations)||void 0===a||a.forEach((e=>(e.id&&e.id===t.id||e.yId&&e.yId===t.yId)&&(e.hasExplicitInterest=!1))),this.unfollowedSuggest=t,this.isShowReminder=!0,this.reminderTimer&&clearTimeout(this.reminderTimer),this.reminderTimer=setTimeout((()=>{this.isShowReminder=!1,this.unfollowedSuggest=null}),5e3))}return this.selectedEntity=null,this.switchToMatchCard(),void(e&&this.refreshFeedCard())}this.uxstyle==at.n9.widget&&(this.widgetSportsEntityId=null,this.selectedEntity=null,this.refreshEntityIdCache(),this.fetchSportsMatchData(this.widgetSportsEntityId)),this.widgetSettings?this.widgetSettings.hideSettings():this.switchToMatchCard()})),this.cancelSetting=()=>(0,u.mG)(this,void 0,void 0,(function*(){this.widgetSettings?this.widgetSettings.hideSettings():this.switchToMatchCard()})),this.sizeChangeHandler=t=>{let e;if(this.widgetSize&&"onSizeChangeEnd"===t){if(!this.widgetSize)return;e=this.widgetSize.getSize()}else{if("CardResized"!==t.type)return;e=t&&t.detail.size;if("SportsMatch"!=(t&&t.detail.cardType)||this.cardSize==e)return}this.isCardSizeJustChanged=!0,this.cardSize=e||this.cardSize,this.getCurrentLayout(),this.currentSportsMatchupData=this.getCurrentSportsMatchupData(),this.telemetryContext=this.getSportsCardTelemetry(),this.getContentTemplate(),this.teamColorGradientBackgrdStyle=this.getMatchupCardGradientBackground()},this.getMatchClassNameByDataType=t=>(0,ft.jY)(t)?"long-score":"",this.getMatchClassNameForWinner=t=>t&&!0===t.participantOne.isWinner?"winner":t&&!1===t.participantOne.isWinner&&t.gameStateCatetory==m.w_.postGame?"loser":"",this.isMotorSportsCard=()=>{const t=this.sportsMatchupData&&this.sportsMatchupData[0].sportsMatchupCardData;return t&&(t.dataType===m.x_.raceList||t.dataType===m.x_.singleRace)},this.isGolfSportsCard=()=>{const t=this.sportsMatchupData&&this.sportsMatchupData[0].sportsMatchupCardData;return t&&(t.dataType===m.O7.leaderboard||t.dataType===m.O7.scheduledTournaments)},this.isLeaderBoardSportsCard=()=>this.isMotorSportsCard()||this.isGolfSportsCard(),this.shouldRenderSideBySide=()=>{const t=this.sportsMatchupData&&this.sportsMatchupData.length>0&&this.sportsMatchupData[0].sportsMatchupCardData;return t&&this.config.enableSideBySideLayout&&(0,at.$t)(t.dataType,t.sportType,t.leagueId,at.QU.SideBySide)},this.shouldRenderVideo=()=>this.config.enableVideo&&this.shouldRenderSideBySide()&&this.sportsMatchupData[0].sportsMatchWithVideoData&&this.sportsMatchupData[0].sportsMatchWithVideoData.length>0&&!this.sportsMatchupData[0].sportsMatchOverallData.some((t=>t.sportsMatchData.gameStateCatetory==m.w_.inprogressGame)),this.shouldRenderColdStart=()=>this.config.enableColdStart&&this.currentSportsMatchupData&&this.currentSportsMatchupData.sportsFREData&&this.currentSportsMatchupData.sportsFREData.length>0,this.shouldRenderTabs=()=>{var t;return!this.shouldRenderVideo()&&(null===(t=this.sportsMatchupData)||void 0===t?void 0:t.length)&&this.sportsMatchupData[0].sportsTabData&&this.sportsMatchupData[0].sportsTabData.size>0},this.shouldRenderLeaderboardBlendedUX=()=>{var t,e;return(null===(t=this.config)||void 0===t?void 0:t.enableFormular1UX)&&(null===(e=this.sportsMatchupData)||void 0===e?void 0:e.length)&&this.sportsMatchupData[0].sportsMatchupCardData&&this.sportsMatchupData[0].sportsMatchupCardData.primaryEntityId==m.eD},this.shouldRenderSeriesFinals=()=>{const t=this.sportsMatchupData&&this.sportsMatchupData[0].sportsMatchupCardData||{};if(this.sportsUXTypeForTelemetry=this.sportsMatchUXType,(1==t.useSuperDesign||this.isSuperDesignEntity(t.leagueSatoriId))&&m.TV.has(t.leagueId)){const e=(this.shouldRenderTabs()?this.sportsMatchupData[0].sportsTabData.get(m.Zt.SportsMatches):this.sportsMatchupData[0].sportsMatchOverallData).some((t=>"final"==t.sportsMatchData.bracketPhase.toLowerCase()));return e&&(this.sportsUXTypeForTelemetry=this.getSeriesUXType(t)),e}return!1},this.getSeriesUXType=t=>{const e=t&&t.leagueId;return e==m.UN.NBA?m.mW.NBAFinals:e==m.UN.NHL?m.mW.NHLFinals:void 0},this.getSeriesFinalsName=t=>{const e=t&&t.leagueId;return e==m.UN.NBA?(0,X.WU)(this.strings.nbaFinals,"").trim():e==m.UN.NHL?this.strings.nhlFinals:void 0},this.getLinkClickTarget=()=>this.openLinksInNewTab?"_blank":"_self",this.getSDCardTemplateClass=()=>this.showNavButton?this.showNavList?`sd-card-template sd-card-template-nav nav-showing ${this.sportsCardLayout}`:`sd-card-template sd-card-template-nav ${this.sportsCardLayout}`:`sd-card-template ${this.sportsCardLayout}`,this.getPopularLeagues=()=>this.allRecommendations&&this.allRecommendations.filter((t=>{const e=this.isSportsFollowed(t.id,t.yId);return t.hasExplicitInterest!=e&&(0,it.H)(rt.EW7,"Sports entity inconsistent interest state",`id=${t.id} Y_Id=${t.yId} HasExplicitInterest=${t.hasExplicitInterest}, IsFollow=${e}`),t.type.toLowerCase()==m.fs.League.toLowerCase()&&!(0,wt.T)(t.imageUrl)&&!t.hasExplicitInterest&&!this.isSportsFollowed(t.id,t.yId)}))||[],this.getExplicitInterests=()=>this.allRecommendations&&this.allRecommendations.filter((t=>{const e=this.isSportsFollowed(t.id,t.yId);return t.hasExplicitInterest!=e&&(0,it.H)(rt.EW7,"Sports entity inconsistent interest state",`id=${t.id} Y_Id=${t.yId} HasExplicitInterest=${t.hasExplicitInterest}, IsFollow=${e}`),(t.hasExplicitInterest||this.isSportsFollowed(t.id,t.yId))&&!(0,wt.T)(t.imageUrl)}))||[],this.getHoverNavItemClassName=t=>{let e=this.showFollowIconForHoverNav()?"sports-nav-item nav-with-follow-icon":"sports-nav-item";return t==this.selectedNavEntityId&&(e+=" sports-nav-item nav-active"),e},this.showFollowIconForHoverNav=()=>this.config.hoverNavFollow||this.config.hoverNavFollowRefresh,this.getMatchContentTemplate=(t,e)=>{if(this.sportsMatchUXType!=m.mW.Combined)return this.mapForTemplate[this.sportsMatchUXType](t,e)},this.getMatchDefaultContentTemplate=(t,e)=>{const a=this.getCardMatchData(e);return O.d`
            <sports-match
                class="${()=>this.showCardHeader||this.config.isDynamicFeed?"sports-match-content":"sports-widget-content"}"
                style="width: 100%; height: 100%; margin: 0;"
                uxstyle="${()=>this.uxstyle}"
                cardlayout="${()=>this.sportsCardLayout}"
                colormode=${()=>this.colormode}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :matchUXType="${()=>m.mW.Default}"
                :telemetryContext=${()=>this.telemetryContext}
                :linkTarget="${()=>this.getLinkClickTarget()}"
                :cardData="${()=>t}"
                :cardSize="${()=>this.cardSize}"
                :paginationStyle=${()=>this.enableSportsCarousel?"with-pagination":""}
                :matchData="${()=>a&&a.map((t=>t.sportsMatchData))}"
            >
            </sports-match>
        `},this.getSideBySideContentTemplate=(t,e)=>{const a=this.getCardMatchData(e);return O.d`
            <sports-side-by-side class="${()=>this.showCardHeader||this.config.isDynamicFeed?"sports-match-content":"sports-widget-content"}"
                style="width: 100%; height: 100%; margin: 0;"
                uxstyle="${()=>this.uxstyle}"
                cardlayout="${()=>this.sportsCardLayout}"
                colormode=${()=>this.colormode}
                ?carouselmode="${()=>this.enableSportsCarousel}"
                :config=${()=>this.config}
                :paginationStyle=${()=>this.getCarouselPaginationClass()}
                :strings=${()=>this.strings}
                :matchUXType="${()=>m.mW.SideBySide}"
                :telemetryContext=${()=>this.telemetryContext}
                :linkTarget="${()=>this.getLinkClickTarget()}"
                :cardData="${()=>t}"
                :matchData="${()=>a&&a.map((t=>t.sportsMatchData))}"
                :followSportsCallback=${()=>this.followSports}
                :unfollowSportsCallback=${()=>this.unfollowSports}
                :isSportsFollowed=${()=>this.isSportsFollowed}
            />
        `},this.getLeaderBoardContentTemplate=(t,e)=>{const a=e&&this.getCardMatchData(e).map((t=>t.sportsMatchData));return O.d`
            <sports-leaderboardsports class="${()=>this.showCardHeader||this.config.isDynamicFeed?"sports-match-content":"sports-widget-content"}"
                style="width: 100%; height: 100%; margin: 0;"
                uxstyle="${()=>this.uxstyle}"
                cardlayout="${()=>this.sportsCardLayout}"
                colormode=${()=>this.colormode}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :matchUXType="${()=>m.mW.LeaderBoard}"
                :telemetryContext=${()=>this.telemetryContext}
                :linkTarget="${()=>this.getLinkClickTarget()}"
                :cardSize="${()=>this.cardSize}"
                :cardData="${()=>t}"
                :sportMatchData="${()=>a}"
                :sportContext="${()=>At.getLeaderBoardSportContext(t,a)}"
                :cardClickHandler="${()=>this.cardClickHandler}"
            >
            </sports-leaderboardsports>
        `},this.getVideoContentTemplate=(t,e)=>{const a=this.getCardMatchData(e);return O.d`
            <sports-match-video class="${()=>this.showCardHeader||this.config.isDynamicFeed?"sports-match-content":"sports-widget-content"}"
                style="width: 100%; height: 100%; margin: 0;"
                uxstyle="${()=>this.uxstyle}"
                cardlayout="${()=>this.sportsCardLayout}"
                colormode=${()=>this.colormode}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :matchUXType="${()=>m.mW.Video}"
                :paginationStyle=${()=>this.enableSportsCarousel?"with-pagination":""}
                :followSportsCallback=${()=>this.followSports}
                :unfollowSportsCallback=${()=>this.unfollowSports}
                :isSportsFollowed=${()=>this.isSportsFollowed}
                :telemetryContext=${()=>this.telemetryContext}
                :linkTarget="${()=>this.getLinkClickTarget()}"
                :cardData="${()=>t}"
                :matchData="${()=>a&&a.map((t=>t.sportsMatchData))}"
                :cardClickHandler="${()=>this.cardClickHandler}"
            >
            </sports-match-video>
        `},this.getSuperBowlContentTemplate=(t,e)=>{const a=v._.getSuperDesignMatchData(e);return O.d`
            <sports-superbowl class="${()=>this.showCardHeader||this.config.isDynamicFeed?"sports-match-content":"sports-widget-content"}"
                style="width: 100%; height: 100%; margin: 0; ${()=>this.sportsCardLayout==m.J4.Medium&&a.sportsMatchData.gameStateCatetory!=m.w_.postGame?"padding-top: 32px;":""}"
                uxstyle="${()=>this.uxstyle}"
                cardlayout="${()=>this.sportsCardLayout}"
                colormode=${()=>this.colormode}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :telemetryContext=${()=>this.telemetryContext}
                :linkTarget="${()=>this.getLinkClickTarget()}"
                :cardData="${()=>t}"
                :matchData="${()=>a.sportsMatchData}"
                :followSportsCallback=${()=>this.followSports}
                :unfollowSportsCallback=${()=>this.unfollowSports}
                :isSportsFollowed=${()=>this.isSportsFollowed}
                :cardClickHandler="${()=>this.cardClickHandler}"
            />
        `},this.getMarchMadnessContentTemplate=(t,e)=>{const a=this.getCardMatchData(e);return O.d`
            <sports-marchmadness class="${()=>this.showCardHeader||this.config.isDynamicFeed?"sports-match-content":"sports-widget-content"}"
                style="width: 100%; height: 100%; margin: 0;"
                uxstyle="${()=>this.uxstyle}"
                cardlayout="${()=>this.sportsCardLayout}"
                colormode=${()=>this.colormode}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :matchUXType="${()=>m.mW.MarchMadness}"
                :telemetryContext=${()=>this.telemetryContext}
                :linkTarget="${()=>this.getLinkClickTarget()}"
                :cardData="${()=>t}"
                :matchData="${()=>a&&a.map((t=>t.sportsMatchData))}"
                :isSportsCardDarkMode=${()=>this.isDarkMode}
                :followSportsCallback=${()=>this.followSports}
                :unfollowSportsCallback=${()=>this.unfollowSports}
                :isSportsFollowed=${()=>this.isSportsFollowed}
                :cardClickHandler="${()=>this.cardClickHandler}"
            />
        `},this.getNFLDraftContentTemplate=(t,e)=>O.d`
            <sports-article
                role="button"
                style="width: 100%; height: 100%; margin: 0;"
                uxstyle="${()=>this.uxstyle}"
                cardlayout="${()=>this.sportsCardLayout}"
                colormode=${()=>this.colormode}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :matchUXType="${()=>m.mW.NFLDraft}"
                :linkTarget=${()=>this.getLinkClickTarget()}
                :rtl=${()=>document.dir}
                :telemetryContext=${()=>this.telemetryContext}
                :cardData=${()=>t}
                :articleData=${()=>this.currentSportsMatchupData.articleData}
                :showOverview="${()=>!0}"
                :showPublisherOnBottom="${()=>!0}"
                :cardClickHandler="${()=>this.cardClickHandler}"
            >
            </sports-article>
        `,this.getSeriesFinalsContentTemplate=(t,e)=>{const a=this.getSeriesUXType(t);let i="";return this.sportsCardLayout==m.J4.Large?i="width: 100%; height: 370px; margin: 0; display: block;":this.uxstyle==at.n9.widget&&(i=this.sportsCardLayout==m.J4.Small?"margin-top: 48px;":"margin-top: 32px;"),O.d`
            <sports-series-finals
                role="button"
                style="${()=>i}"
                uxstyle="${()=>this.uxstyle}"
                cardlayout="${()=>this.sportsCardLayout}"
                colormode=${()=>this.colormode}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
  PNG
