yle===u.Default?"footer-link oval":"footer-link transparent"}
            href=${e=>e.spotlightCardData&&e.spotlightCardData.url}
            target="_blank"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.footerTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
            >
            ${e=>e.strings.seeMoreEvents}
        <a>
    </div>
`,F=D.d`
    <msn-actions-menu 
        :referrerButton=${e=>e.actionsMenuButtonElement} 
        :menuItems=${e=>e.actionsMenuProps.menuItems}>
    </msn-actions-menu>
`,N=D.d`
    <div class="header-container">
        <a 
            class="header link"
            href=${e=>e.spotlightCardData&&e.spotlightCardData.url}
            target="_blank"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.headerTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
            >
            ${(0,G.g)((e=>e.spotlightCardData&&e.spotlightCardData.headerIcon),D.d`
                <img
                    onerror="this.style.display='none'"
                    width="16px"
                    height="16px"
                    src=${e=>e.spotlightCardData.headerIcon&&e.spotlightCardData.headerIcon.src}
                />
           `)}
            ${(0,G.g)((e=>e.spotlightCardData&&!e.spotlightCardData.headerIcon&&e.cardStaticIcon),D.d`
                <span class="header-icon" title="${e=>e.cardHeadingText}">
                    ${e=>D.d`${e.cardStaticIcon}`}
                </span>
            `)}
            <span class=${e=>e.cardStyle===u.Default?"header-title uppercase":"header-title"} title=${e=>e.cardHeadingText}>${e=>e.cardHeadingText}</span>
        </a>
        ${(0,G.g)((e=>e.shouldShowActionButton),D.d`
            <div class="more-actions">
                <fluent-button
                    appearance="neutral"
                    slot="more-actions"
                    class=${e=>e.cardStyle===u.Default?"toggle-button circle":"toggle-button transparent_bg"}
                    @click=${(e,t)=>e.toggleActionMenu&&e.toggleActionMenu(!e.isActionMenuOpen,t.event)}
                    data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.cardActionsButton}}"
                    title="${e=>e.strings.moreOptions}"
                    aria-label="${e=>e.strings.moreOptions}"
                    role="button"
                    >
                    ${H.Z}
                </fluent-button>
            </div>
        `)}
    </div>
`,q=D.d`
    <div class="footer">${W}</div>
`,j=D.d`
${(0,G.g)((e=>e.spotlightCardData&&e.spotlightCardData.abstract&&e.spotlightCardData.abstract.length>1),D.d`
    ${(0,G.g)((e=>e.cardLayout===m.Nv._1x_2y),D.d`
        <div class="content-abstract" title=${e=>e.spotlightCardData&&e.spotlightCardData.abstract}>
            ${e=>e.spotlightCardData&&e.spotlightCardData.abstract}
        </div>
    `)}
    ${(0,G.g)((e=>e.cardLayout===m.Nv._1x_1y),D.d`
        <a class="content-abstract-semi-bold"
            href="${e=>e.spotlightCardData&&e.spotlightCardData.url}" target="_blank"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.destinationTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
            title=${e=>e.spotlightCardData&&e.spotlightCardData.abstract}>
            ${e=>e.spotlightCardData&&e.spotlightCardData.abstract}
        </a>
    `)}
    ${(0,G.g)((e=>e.cardLayout===m.Nv._2x_2y),D.d`
        <div class="content-abstract2u" title=${e=>e.spotlightCardData&&e.spotlightCardData.abstract}>
            ${e=>e.spotlightCardData&&e.spotlightCardData.abstract}
        </div>
    `)}
`)}`,R=D.d`
    <div class="content-section column">
        ${(0,G.g)((e=>e.spotlightCardData&&e.spotlightCardData.image),D.d`
            <a class="content-image"
                href="${e=>e.spotlightCardData&&e.spotlightCardData.url}" target="_blank"
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.imageTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
                >
                ${e=>B(e.imageSize)}
            </a>
        `)}
        <a class= "text-container"
            href="${e=>e.spotlightCardData&&e.spotlightCardData.url}" target="_blank"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.destinationTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}">
            <span class="content-title" title=${e=>e.spotlightCardData&&e.spotlightCardData.title}>
                ${e=>e.spotlightCardData&&e.spotlightCardData.title}
            </span>
            ${j}
        </a>
    </div>
`,J=D.d`
    <a class="content-section row" href="${e=>e.spotlightCardData&&e.spotlightCardData.url}" target="_blank">
        ${j}
        ${(0,G.g)((e=>e.spotlightCardData&&e.spotlightCardData.image),D.d`
        <a class="content-image"
            href="${e=>e.spotlightCardData&&e.spotlightCardData.url}" target="_blank"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.imageTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
            >
            ${e=>B(e.imageSize)}
        </a>
    `)}
    </a>
`,Y=D.d`
    <div class="content-section row row2u">
        <a class= "text-container column2u"
            href="${e=>e.spotlightCardData&&e.spotlightCardData.url}" target="_blank"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.destinationTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}">
            <span class="content-title2u" title=${e=>e.spotlightCardData&&e.spotlightCardData.title}>
                ${e=>e.spotlightCardData&&e.spotlightCardData.title}
            </span>
            ${j}
        </a>
        ${(0,G.g)((e=>e.spotlightCardData&&e.spotlightCardData.image),D.d`
            <a class="content-image"
                href="${e=>e.spotlightCardData&&e.spotlightCardData.url}" target="_blank"
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.imageTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
                >
                ${e=>B(e.imageSize)}
            </a>
        `)}
    </a>
    </div>
`,z=D.d`
    ${(0,G.g)((e=>e.cardLayout===m.Nv._1x_1y),J)}
    ${(0,G.g)((e=>e.cardLayout===m.Nv._2x_2y),Y)}
    ${(0,G.g)((e=>e.cardLayout!==m.Nv._1x_1y&&e.cardLayout!==m.Nv._2x_2y),R)}
`,B=e=>D.d`
    ${(0,G.g)((e=>{var t,i;return null===(i=null===(t=e.spotlightCardData)||void 0===t?void 0:t.image)||void 0===i?void 0:i.src}),D.d`
        <img
            height="${e.height}"
            width="${e.width}"
            src="${t=>{return t.spotlightCardData&&t.spotlightCardData.image&&t.spotlightCardData.image.src&&(i=e.height,r=e.width,a=t.spotlightCardData.image.src,(0,U.mL)(a,{width:r,height:i,enableDpiScaling:!1}));var i,r,a}}"
            alt="${e=>e.spotlightCardData&&e.spotlightCardData.image&&e.spotlightCardData.image.alt}"
            title="${e=>e.spotlightCardData&&e.spotlightCardData.image&&e.spotlightCardData.image.alt}"
        />
    `)}
`,X=D.d`
    <div
        id="SpotlightCard"
        class=${e=>(e=>{switch(e){case m.Nv._1x_2y:return"card _1x_2y";case m.Nv._2x_2y:return"card _2x_2y";case m.Nv._1x_1y:return"card _1x_1y";default:return"card _1x_2y"}})(e.cardLayout)}
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.componentRoot)||void 0===i?void 0:i.getMetadataTag()}}"
        >
        <a class="container" href="${e=>e.spotlightCardData&&e.spotlightCardData.url}" target="_blank" title=${e=>e.cardLayout===m.Nv._2x_2y&&e.spotlightCardData?e.spotlightCardData.title:""}>
            ${N}
            ${(0,G.g)((e=>e.spotlightCardData),z)}
            ${q}
        </a>
    </div>
    ${(0,G.g)((e=>e.isActionMenuOpen),F)}
`;var Z=i(32804),V=i(53046),K=i(40082);const Q=V.i`
:host {
    --elevated-corner-radius: 8;
}
._1x_1y {
    height: 146px;
    width: 300px;
}
._1x_2y {
    height: 304px;
    width: 300px;
}
._2x_2y {
    height: 304px;
    width: 612px;
}
.card {
    background: linear-gradient(140.53deg, #F0E1F7 9.32%, #CDDFFF 58.45%);
    border-radius: calc(var(--elevated-corner-radius) * 1px);
    box-shadow: 0px 1.6px 3.6px rgba(0, 0, 0, 0.13), 0px 0px 2.9px rgba(0, 0, 0, 0.11);
    color: ${Z.CHi};
}
.container {
    display: block;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/** header */
.header-container {
    align-items: center;
    display: flex;
    height: 40px;
    justify-content: space-between;
    padding: 0 16px;
}
.header {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    height: 16px;
    text-decoration: none;
}
.header > .header-icon > svg {
    height: 16px;
    width: 16px;
}
.header.link {
    align-items: center; 
    display: flex;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
}
.header.link > .header-title:hover {
    text-decoration: underline;
}
.header-title {
    color: ${Z.CHi};
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: 1; 
}
.uppercase {
    text-transform: uppercase
}
.more-actions {
    align-items: center;
    display: flex;
    height: 24px;
    justify-content: space-between;
    width: 24px;
    z-index: 2;
}
.toggle-button {
    height: 20px;
    min-width: 20px;
    padding: 2px;
    width: 20px;
}
.circle {
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.07);;
}
.transparent_bg {
    background: rgba(0, 0, 0, 0);
}
.toggle-button.transparent_bg:hover {
    transform: scale(1.4);
}
.toggle-button.circle:hover {
    background: ${Z.XiB}
}
.toggle-button > svg {
    fill:${Z.CHi};
}

/** content */
.content-section {
    color: ${Z.CHi};
    text-decoration: none;
    padding: 0 16px;
    max-width: 300px
}
.row {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    gap: 8px; 
    justify-content: space-between;
}
.row2u {
    align-items: center;
    margin-top: 16px;
}
.content-image img{
    border-radius: 8px;
    object-fit: cover;
    object-position: center center;
    padding: 4px 0;
}
.content-image:hover {
    opacity: 0.7;
}
.content-image-bg {
    position: absolute;
    height: 304px;
    z-index: -1;
}
.content-image-bg img{
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center center;
}
.container:hover > .content-image-bg {
    opacity: 0.7;
}

.container:hover > .column2u > .text-container > .content-title2u{
    text-decoration: underline;
}

.column {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}
.column2u {
    min-width: 222px;
}

.text-container {
    color: ${Z.CHi};
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
}
.content-title {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    display: -webkit-box;
}
.content-title:hover {
    text-decoration: underline;
}
.content-title2u {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    min-height: 22px;
    max-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
}
.content-title2u:hover {
    text-decoration: underline;
}
.content-abstract {
    color: ${Z.CHi};
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    max-height: 54px;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
}
.content-abstract-semi-bold {
    color: ${Z.CHi};
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    height: 60px;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
}
.content-abstract2u {
    color: ${Z.CHi};
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    max-height: 90px;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    display: -webkit-box;
}
/** footer */
.footer {
    bottom: 0;
    height: 40px;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
}
.footer-link {
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    gap: 8px;
    justify-content: center;
    line-height: 16px;
    padding: 4px 20px;
    text-decoration: none;
}
.oval {
    background: rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    bottom: 12px;
    color: ${Z.CHi};
    height: 16px;
}
.transparent {
    color: #023B8F;
}
.footer-link.oval:hover {
    background: ${Z.XiB};
}
.footer-link.transparent:hover {
    text-decoration: underline;
}
.footer-link:focus {
    text-decoration: underline;
}

`.withBehaviors((0,K.Uu)(V.i`
            .card {
                background: linear-gradient(138.52deg, #512C2C -1.32%, #252C4E 85.77%);
            }
            .footer-link.transparent {
                color: rgba(99, 173, 229, 1);
            }
        `)),ee={experienceConfigSchema:a}},76859:function(e,t,i){i.d(t,{C7:function(){return o},Nv:function(){return r},OO:function(){return s},X9:function(){return d},sn:function(){return n}});var r,a=i(9791);!function(e){e._1x_1y="_1x_1y",e._1x_2y="_1x_2y",e._1x_3y="_1x_3y",e._1x_4y="_1x_4y",e._1x_5y="_1x_5y",e._2x_1y="_2x_1y",e._2x_2y="_2x_2y",e._2x_3y="_2x_3y",e._2x_4y="_2x_4y",e._2x_6y="_2x_6y",e._3x_1y="_3x_1y",e._3x_2y="_3x_2y",e._4x_1y="_4x_1y",e._4x_2y="_4x_2y",e._5x_1y="_5x_1y",e._5x_2y="_5x_2y"}(r||(r={}));const n=146,o=300,s=12,d=(0,a.Z)((e=>Array(e).fill(n)))},30113:function(e,t,i){var r;i.d(t,{m:function(){return r}}),function(e){e.small="OneByOne",e.medium="OneByTwo",e.large="OneByThree"}(r||(r={}))},11708:function(e,t,i){var r;i.d(t,{f:function(){return r}}),function(e){e.AiCharacter="aicharacterCardEnabled",e.AutosMarketplaceCard="autosmarketplaceCardEnabled",e.HoroscopeCard="horoscopeCardEnabled",e.WeatherCard="weatherCardEnabled",e.SportsCard="sportsCardEnabled",e.MoneyCard="moneyCardEnabled",e.FinanceCard="financeCardEnabled",e.OnThisDayCard="onthisdayCardEnabled",e.ShoppingCard="shoppingCardEnabled",e.ShoppingEventCard="eventSDCardShoppingEnabled",e.TrafficCard="trafficCardEnabled",e.EsportsCard="esportsCardEnabled",e.EsportsStreamsCard="esportsStreamsCardEnabled",e.ElectionsCard="genericelectionCardEnabled",e.LotteryCard="lotteryCardEnabled",e.QnaCard="qnaCardEnabled",e.RecipesCard="recipeCardEnabled",e.InspirationCard="inspirationCardEnabled",e.TravelCard="travelCardEnabled",e.HealthCard="healthCardEnabled",e.TopStoriesCard="topstoriesCardEnabled",e.TrendingTopics="TrendingTopicsUpsellEnabled",e.LocalGuideCard="localGuideCardEnabled",e.GroceryCard="groceryCardEnabled",e.RewardsCard="rewardsCardEnabled",e.RecommendedSearchesCard="recommendedSearchesCardEnabled",e.PersonalizedOffersCard="personalizedoffersCardEnabled",e.PollsCard="pollsCardEnabled",e.MarketPlaceCard="marketplaceCardEnabled",e.QuizCard="quizCardEnabled",e.CasualGamesCard="esportsCardEnabled",e.CommuteCard="commuteCardEnabled",e.Crypto="CryptoCard",e.MarketBrief="MarketBriefCard"}(r||(r={}))},83152:function(e,t,i){var r;i.d(t,{L:function(){return r}}),function(e){e.Location="Location",e.Weather="Weather",e.Finance="Finance",e.Team="Team",e.League="League",e.Player="Player",e.Traffic="Traffic",e.Widget="Widget",e.TopicFeed="TopicFeed"}(r||(r={}))},791:function(e,t,i){i.d(t,{N:function(){return x}});var r=i(33940),a=i(33954),n=i(26415),o=i(68364),s=i(33799),d=i(16517),c=i(94788),l=i(67267),h=i(63535),u=i(87298),p=i(83152),g=i(11708),v=i(30113),y=i(65135),f=i(33379),m=i(51671);const x=new class extends class{constructor(e){this.fetchImpl=e,this.userUpdateEndpoint="msn/user",this.pdpServiceEndpoint="graph/actions",this.locationsServiceEndPoint="v1/news/users/me/locations",this.userActionServiceEndPoint="news/users/me/actions",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield l.$.getOneServiceHeaders(),credentials:"include"},i=(0,h.PH)(this.locationsServiceEndPoint);let a;[...l.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{a=yield(0,u.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(i.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: getUserDefaultLocation}`;throw new Error(t)}return e}))),"getUserDefaultLocation")}catch(e){return a}return a}))}addToFavoriteLocation(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){const i="Location",a="Follow",n={method:"POST",body:JSON.stringify({actionType:a,targetType:i,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield l.$.getOneServiceHeaders(),credentials:"include"},o=(0,h.PH)(this.pdpServiceEndpoint);let c;((yield(0,m.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));try{c=yield(0,u.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,n);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: Location`;throw new Error(t)}return e.json()}))),"addToFavoriteLocation")}catch(e){return!1}return!0}))}removeFavoriteLocation(e){return(0,r.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(p.L.Location,"definitionName",[e])}))}removeLocation(e){return(0,r.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(p.L.Location,"definitionName",[e])}))}updatePdpHomeLocation(e,t,i={},a){return(0,r.mG)(this,void 0,void 0,(function*(){const n=p.L.Location,o="Follow",c=yield this.getRequestInit({method:"POST"},i);c.body=JSON.stringify({actionType:o,targetType:n,definitionName:t,degree:"DefaultLocation",metaData:e});const g=(0,h.PH)(this.pdpServiceEndpoint);return((yield(0,m.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=a?a:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=a?a:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)})),yield(0,u.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,c);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(n),!0}))}updateTrafficMyRoutes(e,t,i,n,o,s){return(0,r.mG)(this,void 0,void 0,(function*(){const d=i.replace(/[^a-zA-Z0-9\-.,_]/g,""),c=p.L.Traffic,h="Follow",g={method:"POST",body:JSON.stringify({actionType:h,targetType:c,targetId:d,degree:e,definitionName:t,metadata:n,createdDateTime:s}),headers:yield l.$.getOneServiceHeaders(),credentials:"include"},v=yield this.getTrafficPdpUrl(null,null,o);try{yield(0,u.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(v.href,g);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${c}`;throw new Error(t)}return e.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(c)}catch(e){return a.k.logError(e.message),!1}return!0}))}deleteTrafficMyRoutes(e,t,i){return(0,r.mG)(this,void 0,void 0,(function*(){const a={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},n=yield this.getTrafficPdpUrl(e,t,i);try{yield(0,u.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${p.L.Traffic}`;throw new Error(t)}return e}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(p.L.Traffic)}catch(e){return!1}return!0}))}getTrafficMyRoutes(e,t){var i;return(0,r.mG)(this,void 0,void 0,(function*(){const a={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},n=yield this.getTrafficPdpUrl(e,null,t);try{const e=yield(0,u.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${p.L.Traffic}`;throw new Error(t)}return e}))),"getTrafficFromPdp");return null===(i=yield e.json())||void 0===i?void 0:i.value}catch(e){return null}}))}getTrafficPdpUrl(e,t,i){return(0,r.mG)(this,void 0,void 0,(function*(){const r=(0,h.PH)(this.pdpServiceEndpoint),a=(yield(0,m.XJ)())===s.Hy.SignedIn,n=(0,d.Yq)().UserId,o=a?l.$.getOneServiceParamsWithAuth(n,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(n,this.ocid,!this.ocidOverride);if(e||t){const i=`targetType eq '${p.L.Traffic}'`,a=e?`degree eq '${e}'`:"",n=t?`definitionName eq '${t}'`:"";r.searchParams.set("$filter",`actionType eq 'Follow' and (${i})${a?` and (${a})`:""}${n?` and (${n})`:""}`)}return[...o,...i||[]].forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)})),r}))}addToWatchList(e,t=0,i={},a={}){return(0,r.mG)(this,void 0,void 0,(function*(){const n=p.L.Finance,o="Follow",c={method:"POST",body:JSON.stringify({actionType:o,targetType:n,targetId:e,metadata:Object.assign({securityType:t,tickerId:this.generateUUID()},a)}),headers:yield this.getOneserviceHeaders(i),credentials:"include"},g=(0,h.PH)(this.pdpServiceEndpoint),v="zh-cn"!==(0,d.Yq)().CurrentMarket;let y;((yield(0,m.XJ)())===s.Hy.SignedIn&&v?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAut