ryptoLearnItemClickTags(t)}get learnItemLink(){const{linkUrl:t,type:e,id:i,indexOfLessonSelected:n}=this.learnItem,r=(0,K.G8)();try{const o=new URL(ah(t||r));return e===p.CrashCourse&&i&&o.searchParams.append("crcoid",`${i}${void 0!==n?","+n:""}`),e===p.Video&&i&&o.searchParams.append("vdcnid",i),o.toString()}catch(t){return r}}}(0,f.gn)([_i.LO],sh.prototype,"learnItem",void 0),(0,f.gn)([_i.LO],sh.prototype,"isDarkModeTheme",void 0);const lh=re.i`
    .item-wrapper {
        text-decoration: none;
        color: ${oe.CHi};
    }

    .crypto-learn-item {
        display: grid;
        box-sizing: border-box;
        grid-template-columns: 196px 48px;
        gap: 8px;
        border-radius: 6px;
        margin: 0 16px 8px;
        padding: 8px;
        align-items: center;
        background: var(--quote-view-background);
    }

    .crsl.crypto-learn-item {
        margin: 0px;
        width: 244px;
        height: 78px;
        grid-template-columns: 152px 76px;
        padding: 6px 8px 4px;
    }
    
    .crypto-learn-item:hover {
        background: var(--quote-view-hover-background);
    }

    .item-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .left-heading {
        padding: 0;
        color: var(--standard-grey);
        display: flex;
        font-size: var(--type-ramp-minus-2-font-size, 10px);
        line-height: var(--type-ramp-minus-2-line-height, 14px);
    }

    .left-heading .heading-logo {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    .left-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
        width: 196px;
        margin-top: 2px;
    }
    
    .item-right {
        position: relative;
        width: 48px;
        height: 48px;
    }

    .play-icon {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 24px;
        width: 24px;
    }
    .crsl .item-right {
        width: 68px;
        height: 68px;
    }
    .crsl .left-title {
        width: 152px;
        -webkit-line-clamp: 3;
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
    }

    .item-right .right-img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 4px;
        object-fit: cover;
    }
`;var ch=i(13988);const dh=Jt.d`
    <a class="item-wrapper"
        href="${t=>t.learnItemLink}" 
        target="${t=>t.openLinksInNewTab?"_blank":"_self"}"
        title="${t=>t.learnItem.title}"
        data-t="${t=>t.getLearnItemTags(t.learnItem.id)}"
    >
        <div class="crypto-learn-item ${t=>t.isCarousel?"crsl":""}">
            <div class="item-left">
                <div class="left-heading">
                    ${(0,ch.g)((t=>t.learnItem.providerName),Jt.d`
                        <img class="heading-logo" src="${t=>t.learnItem.providerLogoUrl}"/>
                        ${t=>t.learnItem.providerName} &middot; ${t=>t.learnItem.type}
                    `)}
                    ${(0,ch.g)((t=>!t.learnItem.providerName),Jt.d`
                        ${t=>t.learnItem.type}
                    `)}
                </div>
                <div class="left-title">
                    ${t=>t.learnItem.title}
                </div>
            </div>
            <div class="item-right">
                ${(0,ch.g)((t=>"Video"===t.learnItem.type),Jt.d`<div class="play-icon">${'<svg width="24" height="24" viewBox="0 0 24 24" fill="none"><g filter="url(#filter0_b_3669_103519)"><circle cx="12" cy="12" r="11" fill="url(#paint0_linear_3669_103519)"/><circle cx="12" cy="12" r="11.5" stroke="url(#paint1_linear_3669_103519)"/></g><path d="M10.5 8a1 1 0 0 0-1.5.86v6.28a1 1 0 0 0 1.5.87l5.49-3.14a1 1 0 0 0 0-1.74L10.49 8Z" fill="#fff"/><defs><linearGradient id="paint0_linear_3669_103519" x1="1" y1="1" x2="23" y2="23" gradientUnits="userSpaceOnUse"><stop stop-opacity=".5"/><stop offset="1" stop-opacity=".7"/></linearGradient><linearGradient id="paint1_linear_3669_103519" x1="12" y1="1" x2="12" y2="23" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity=".4"/><stop offset="1" stop-color="#fff" stop-opacity=".2"/></linearGradient><filter id="filter0_b_3669_103519" x="-10" y="-10" width="44" height="44" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feGaussianBlur in="BackgroundImage" stdDeviation="5"/><feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_3669_103519"/><feBlend in="SourceGraphic" in2="effect1_backgroundBlur_3669_103519" result="shape"/></filter></defs></svg>'}</div>`)}
                <img class="right-img" src="${t=>t.learnItem.imageUrl}" />
            </div>
        </div>
    </a>
`;let uh=class extends sh{};uh=(0,f.gn)([(0,Yd.M)({name:"money-card-crypto-learn-item",template:dh,styles:lh,shadowOptions:{delegatesFocus:!0}})],uh);class hh extends Yd.H{get titleText(){return this.strings[Tt(this.dataFrom)]}getFooterText(){const t=ji(this.config,this.dataFrom);return this.strings[t]}getTabForTelemetry(){return g.cryptoLearn}getLearnItemTags(t){var e;return null===(e=this.telemetryContext)||void 0===e?void 0:e.getCryptoLearnItemClickTags(t)}}(0,f.gn)([_i.LO],hh.prototype,"learnItems",void 0),(0,f.gn)([_i.LO],hh.prototype,"isDarkModeTheme",void 0);var gh=i(22674),ph=i(56201);const fh=re.i`
    .card-options {
        right: 10px;
    }
`,mh=re.i`
    .card-options {
        position: absolute;
        left: 10px;
    }
`,vh=re.i`
    .wdrk .footer-link-gradient, .wdrk .footer-link-megrad {
        color: ${oe.CHi};
    }

    .wdrk.winDsh .footer-link {
        color: #99EBFF; /* the same color as in weather card */
    }
`,yh=(0,hn.Uu)(vh),bh=re.i`
    .cl-tab {
        grid-template-rows: auto 1fr auto;
        display: grid;
        min-height: 100%;
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        outline: none;
        color: ${oe.CHi};
        text-decoration: none;
    }

    .windf.cl-tab {
        grid-template-rows: 1fr auto;
    }

    .title {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 17px);
        color: ${oe.CHi};
        text-decoration: none;
        letter-spacing: 0.7px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 16px 16px 8px;
        outline: none;
    }

    .footer-link {
        font-size: ${oe.cSu}; 
        border-radius: 20px;
        vertical-align: middle;
        text-align: center;
        padding: 0 0 12px;
        margin-bottom: var(--sequence-indicator-padding);
        letter-spacing: 0.3px;
        color: ${oe.goi};
        text-decoration: none;
    }

    .winDsh .footer-link:hover {
        text-decoration: underline;
    }

    .footer-link-gradient:hover,
    .footer-link-gradient:active,
    .footer-link-gradient:${ph.b},
    .footer-link-megrad:hover,
    .footer-link-megrad:active,
    .footer-link-megrad:${ph.b} {
        background-color:  var(--footer-link-hover-background); 
    }
    
    .footer-link-gradient, .footer-link-megrad {
        background-color:  var(--footer-link-background);
        color: ${oe.CHi};
        border-radius: 20px;
        vertical-align: middle;
        padding: 4px 24px;
        margin-right:auto;
        margin-left:auto;
        margin-bottom: 24px;
        max-width: calc(100% - 84px);
    }
`.withBehaviors(yh,new gh.O(fh,mh),(0,hn.vF)(re.i`
            :host {
                forced-color-adjust: auto;
            }

            .title-link:hover, .footer-link:hover {
                text-decoration: underline;
            }

            /* The border is needed in high contrast mode */
            .footer-link {
                padding: 4px 16px;
                border: 1px solid ${vn.H.LinkText}; 
                border-radius: 20px;
                cursor: pointer;
                margin-right: auto;
                margin-left: auto;
                margin-bottom: 24px;
                max-width: 90%;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                z-index: 3;
                box-sizing: border-box;
                color: ${vn.H.ButtonText};
            }

            ::slotted(*[slot="option-button"]) {
                fill: ${vn.H.ButtonText};
            }

            ::slotted([slot="option-button"]:hover) {
                background: ${vn.H.Highlight};
                fill: ${vn.H.HighlightText};
            }
        `));var wh=i(18864);const xh=Jt.d`
    <a  class="title"
        href="${(0,K.G8)()}"
        target="${t=>t.openLinksInNewTab?"_blank":"_self"}"
        data-t="${(t,e)=>{var i;return null===(i=t.telemetryContext)||void 0===i?void 0:i.headerLinkClickTelemetryTags}}"
    >
        <span>
            ${t=>t.titleText}
        </span>
    </a>
`,Ch=Jt.d`
    <a class="footer-link
        ${t=>Pi(t.config,"footer-link",t.config.isDynamicFeed)}"
        href="${(0,K.G8)()}"
        target="${t=>t.openLinksInNewTab?"_blank":"_self"}"
        data-t="${(t,e)=>{var i;return null===(i=t.telemetryContext)||void 0===i?void 0:i.footerLinkClickTelemetryTags}}"
        title="${t=>t.getFooterText()}"
    >
        ${t=>t.getFooterText()}
    </a>
`,Th=Jt.d`
    <money-card-crypto-learn-item
        :config=${(t,e)=>e.parent.config}
        :strings=${(t,e)=>e.parent.strings}
        :dataFrom=${(t,e)=>e.parent.dataFrom}
        :telemetryContext=${(t,e)=>e.parent.telemetryContext}
        :openLinksInNewTab=${(t,e)=>e.parent.openLinksInNewTab}
        :learnItem=${t=>t}
    >
    </money-card-crypto-learn-item>
`,$h=Jt.d`
    <div class="cl-tab 
        ${t=>t.config.disableDarkMode?"":"wdrk"} 
        ${t=>t.isDarkModeTheme?"dark":""}"
        title="${t=>t.titleText}"
        aria-label="${t=>t.titleText}"
    >
        ${(0,ch.g)((t=>!t.config.disableHeader),xh)}
        <div>
            ${(0,wh.rx)((t=>t.learnItems),Th)}
        </div>
        ${Ch}
</div>
`;let kh=class extends hh{};kh=(0,f.gn)([(0,Yd.M)({name:"money-card-crypto-learn-tab",template:$h,styles:bh,shadowOptions:{delegatesFocus:!0}})],kh);class Ih extends Yd.H{connectedCallback(){super.connectedCallback(),this.initListsData()}get riskLevel(){var t,e,i;return Ht[(null===(i=null===(e=null===(t=this.listItems)||void 0===t?void 0:t.performance)||void 0===e?void 0:e.year)||void 0===i?void 0:i.rankInCategory)||0].riskLevelKey}initListsData(){this.listTitleText=this.getListTitleText(),this.listFooterText=this.getFooterTitleText()}getListTitleText(){const t=`${g.Portfolio.valueOf()}TitleText`;return this.strings[t]}getFooterTitleText(){const t=`${g.Portfolio.valueOf()}FooterText`;return this.strings[t]}getChartFillColor(){return yt(this.isDarkModeTheme,this.getReturnData(),this.config.swapGainLossColor,!0)}getQuoteColorValue(){return yt(this.isDarkModeTheme,this.getReturnData(),this.config.swapGainLossColor,!1)}getSymbolNum(){const t=this.strings.listSymbolsStr;return"+"+(this.listItems.quoteNum-3)+" "+t}getSubTitSymbols(){return this.listItems.quoteNum+" "+this.strings.listSymbolsStr}getSubTitFollowers(){return this.listItems.followerNum+" "+this.strings.listFollowersStr}getRiskLevelString(){return this.strings.riskRating[this.riskLevel]}isYearData(){return!(!this.listItems.performance.year||!this.listItems.performance.year.changePercent)}getReturnData(){return this.isYearData()?this.listItems.performance.year.changePercent:this.listItems.performance.day.changePercent}getListReturnText(){return this.isYearData()?this.strings.listAnnualReturnStr:this.strings.listDailyReturnStr}getRiskClass(){return Ht[this.listItems.performance.year.rankInCategory].colorClass||""}}(0,f.gn)([_i.LO],Ih.prototype,"listItems",void 0),(0,f.gn)([_i.LO],Ih.prototype,"imageUrl",void 0),(0,f.gn)([_i.LO],Ih.prototype,"listTitleText",void 0),(0,f.gn)([_i.LO],Ih.prototype,"listFooterText",void 0),(0,f.gn)([_i.LO],Ih.prototype,"isDarkModeTheme",void 0);const Sh=re.i`
    .card-options {
        right: 10px;
    }
`,Lh=re.i`
    .card-options {
        position: absolute;
        left: 10px;
    }
`,Mh=re.i`
    ${pn}
    .wdrk {
        --footer-bg: rgba(255, 255, 255, 0.05);
        --footer-hover-bg: rgba(255, 255, 255, 0.1);
        --listCntr-bg: rgba(0, 69, 172, 0.2);
        --header-border: rgba(255, 255, 255, 0.08);
        --hintText: rgba(255, 255, 255, 0.54);
        --neutral: #FFFFFF;
        --mLow: #C9F1D6;
        --low: #92FDB6;
        --vLow: #3AF277;
        /* --cardBackground: radial-gradient(182.77% 177.99% at 100% 100%, rgba(0, 69, 172, 0.2) 0%, rgba(0, 69, 172, 0) 100%), #1C1C1C; */
    }
`,_h=re.i`
    ${fn}
    :host {
        --footer-bg: rgba(255, 255, 255, 0.5);
        --footer-hover-bg: rgba(255, 255, 255, 0.75);
        --listCntr-bg: rgba(255, 255, 255, 0.36);
        --header-border: rgba(0, 0, 0, 0.09);
        --hintText: rgba(0, 0, 0, 0.55);
        --neutral: #2B2B2B;
        --mLow: #92C8A3;
        --low: #3ABF7F;
        --vLow: #10AB20;
        --cardBackground: radial-gradient(182.77% 177.99% at 100% 100%, rgba(0, 69, 172, 0.2) 0%, rgba(0, 69, 172, 0) 100%); 
    }

    .listTit {
        font-size: var(--type-ramp-minus-1-font-size);
        line-height: var(--type-ramp-minus-1-line-height);
        cursor: pointer;
        text-decoration: none;
        letter-spacing: 0.7px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 16px 16px 7px 16px;
        color: ${oe.CHi};
        outline: none;     
    }

    .title-chevron path {
        fill: ${oe.CHi};
    }
    
    .title-chevron {
        vertical-align: middle;
        background-color: transparent;
      }

    .listFooter {
        color: ${oe.CHi};
        background-color: var(--footer-bg);
        font-size: var(--type-ramp-base-font-size); 
        border-radius: 20px;
        vertical-align: middle;
        padding: 4px 24px;
        margin: 8px auto 24px;
        text-align: center;
        letter-spacing: 0.3px;
        text-decoration: none;
    }
    .listFooter:${ph.b} {
        background-color:  var(--footer-hover-bg); 
    }

    *. {
        margin: 0;
        padding: 0;
    }
    
    .listPage {
        position: relative;
        height: 100%;
        width: 300px; /* 300px is only for ntp */
        border-radius: 6px;
    }
    
    .listLink {
        text-decoration: none;
    }
    
    .listPgCntr {
        display: grid;
        grid-template-rows: auto 1fr auto auto;
        height: 100%;
       }

    .listCntr {
        border-radius: 6px;
        background: rgba(0, 69, 172, 0.2);
        padding: 6px 8px 0 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: hidden;
        margin: 0 18px 0 14px;
        background: var(--quote-view-background);
    }

    .listHeader {
        padding-bottom: 8px;
        flex: none;
        display: flex;
        align-items: center;
        gap: 6px;
        border-bottom: 1px solid;
        border-bottom-color: var(--header-border);
    }

    .listImg {
        width: 52px;
        height: 52px;
        border: 2px solid #63ADE5;
        border-radius: 50%;
        box-sizing: border-box;
        object-fit: cover;
    }

    .listTitle {
        flex: none;
        width: 65%;
    }

    .listName {
        width: 100%;
        font-size: var(--type-ramp-base-font-size);
        font-weight: 600;
        line-height: var(--type-ramp-base-line-height);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        color: ${oe.CHi};
    }

    .subTitle {
        flex: none;
        order: 1;
        flex-grow: 0;
        margin: 2px 0px;
        font-size: 10px;
        line-height: 12px;
        color: var(--hintText); /* ${oe.CHi}; */
    }

    p {
        font-size: 10px;
        line-height: 12px;
    }

    .listContent {
        flex: none;
        display: flex;
        padding-top: 10px;
        justify-content: space-between;
    }

    .leftCntr {
        display: inline-block;
        flex: 1;
    }

    .rightCntr {
        display: inline-block;
        flex: 1;
    }

    .secTit {
        font-size: 12px;
        line-height: 16px;
        font-weight: 600;
        margin: 0;
        padding: 0;
        color: ${oe.CHi};
    }

    .chPct, .risk {
        font-size: 14px;
        line-height: 20px;
        margin: 6px 0 0 0;
        font-weight: 600;
    }

    /* colors for risk levels: veryHigh, high, moderatelyHigh, neutral, moderatelyLow, low, veryLow */
    .vHigh {
        color: #FF6341;
    }

    .high {
        color: #ED7D31;
    }
    
    .mHigh {
        color: #FFB833;
    }

    .neutral {
        color: var(--neutral);
    }

    .mLow {
        color: var(--mLow);
    }

    .low {
        color: var(--low);
    }

    .vLow {
        color: var(--vLow);
    }


    .comments {
        margin: 0;
        padding: 0;
        color: var(--hintText); /* ${oe.CHi}; */
    }

    .logo {
        margin-top: 6px;
        width: 60px;
        height: 24px;
        position: relative;
    }

    .symbol{
        color: ${oe.CHi};
        font-size: 10px;
        line-height: 14px;
    }

    .first, .mid, .last {
        position: absolute;
        width: 20px;
        height: 20px;
        border: 1px solid #fff;
        border-radius: 100%;
    }
    .first {
        left: 0;
    }
    .mid {
        left: 50%;
        transform: translateX(-50%);
    }
    .last {
        right: 0;  
    }

    .chartCntr {
        display: grid;
        grid-template-columns: 1fr auto;
        margin-top: 6px;
        align-items: center;
        font-size: var(--type-ramp-plus-1-font-size);
        height: var(--type-ramp-plus-3-line-height);
    }

    a:visited {
        color: ${oe.CHi}; 
    }

`.withBehaviors((0,hn.Uu)(Mh),new gh.O(Sh,Lh),(0,hn.vF)(re.i`
                :host {
                    forced-color-adjust: auto;
                }

                .title-link:hover {
                    text-decoration: underline;
                }
                ::slotted(*[slot="option-button"]) {
                    fill: ${vn.H.ButtonText};
                }

                ::slotted([slot="option-button"]:hover) {
                    background: ${vn.H.Highlight};
                    fill: ${vn.H.HighlightText};
                }
            `));var Dh='<svg width="16" height="16" viewBox="0 0 16 16"><path d="M5.74 3.7a.75.75 0 0 0-.04 1.06L9.23 8.5 5.7 12.24a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04Z"/></svg>';const Fh=Jt.d`
    <div class="listTit">
        ${t=>t.listTitleText}
        <span class="title-chevron">${Dh}</span>
    </div>
`,Ah=Jt.d`
    <div class="listFooter">
        ${t=>t.listFooterText}
    </div>
`,Oh=Jt.d`
    <img 
        class="listImg" 
        src=${t=>t.listItems.imgUrl} 
        alt=${t=>t.listItems.listDisplayName}>
`,Ph=Jt.d`
    <div class="listTitle">
        <div class="listName">
            ${t=>t.listItems.listDisplayName}
        </div>
        <div class="subTitle">
            ${t=>t.getSubTitSymbols()} &#149; ${t=>t.getSubTitFollowers()} 
        </div>
    </div>
`,qh=Jt.d`
    <div class="listHeader">
        ${Oh}
        ${Ph}
    </div>
`,Nh=Jt.d`
    <div class="symbol">
        ${t=>t.listItems.symbols[0]} /
        ${t=>t.listItems.symbols[1]} /
        ${t=>t.listItems.symbols[2]}
    </div>
`,Hh=Jt.d`
    <div class="leftCntr">
        <p class="secTit">${t=>t.strings.listReturnStr}</p>
        <p class="${t=>t.getQuoteColorValue()} chPct">
            ${(0,ch.g)((t=>t.getReturnData()>0),Jt.d`+`)}${t=>t.getReturnData().toFixed(2)}%
        </p>
        <p class="comments">${t=>t.getListReturnText()}</p>
        <div style="padding: 0 0 10px 0"></div>
        <p class="secTit">${t=>t.strings.listStocksStr}</p>
        ${Nh}
        ${(0,ch.g)((t=>t.listItems.quoteNum>3),Jt.d`
            <p class="comments"> ${t=>t.getSymbolNum()}</p>
        `)}
    </div>
`,zh=Jt.d`
    ${(0,ch.g)((t=>t.listItems.chartData),Jt.d`
        <p class="secTit">${t=>t.strings.listPerformanceStr}</p>
        <div class="chartCntr">
            <msn-stock-chart 
                width=${()=>136}
                height=${()=>34}
                fill-color=${t=>t.getChartFillColor()}
                baseline-color=${t=>t.getChartFillColor()}
                :prices=${t=>t.listItems.chartData.chartData.series}
                :baselinePrice=${t=>t.listItems.chartData.pricePreviousClose}
                :pricesMaxCount=${()=>B}
            />
        </div>
    `)}
`,Qh=Jt.d`
    ${(0,ch.g)((t=>t.riskLevel),Jt.d`
        <p class="secTit">${t=>t.strings.listRiskStr}</p>
        <p class="risk ${t=>t.getRiskClass()}">${t=>t.getRiskLevelString()} </p>
        <p class="comments">${t=>t.strings.listRiskHint}</p>
        <div style="padding: 0 0 10px 0"></div>
    `)}
`,Eh=Jt.d`
    <div class="rightCntr">
        ${Qh}
        
        ${zh}
    </div>
`,jh=Jt.d`
    <div class="listContent">
        ${Hh}
        ${Eh}
    </div>
`,Wh=Jt.d`
   <div class="listPage ${t=>t.config.disableDarkMode?"":"wdrk"}"
        data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.getTabShownTags(g.Portfolio)}}"> 
        <a class="listLink"
            href="${t=>function(t){const e=(0,J.$J)(et.jG.CurrentMarket);return lt(`https://${et.jG.NavTargetHostName}/${et.jG.CurrentMarket}/${e}/listdetails/${t.listName}/fl-${t.listId}?duration=1Y`)}(t.listItems)}"
            target="${t=>t.openLinksInNewTab?"_blank":"_self"}"
            data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.listsPageClickTelemetryTags}}"
            title="${t=>t.listTitleText}"
            aria-label="${t=>t.listTitleText}"
        >
            <div class="listPgCntr">
                ${Fh}
                <div class="listCntr">
                    ${qh}
                    ${jh}
                </div>
                ${Ah}
            </div>
        </a>      
    </div>
`;let Rh=class extends Ih{};Rh=(0,f.gn)([(0,Yd.M)({name:"money-card-lists-page",template:Wh,styles:_h,shadowOptions:{delegatesFocus:!0}})],Rh);class Bh extends Yd.H{connectedCallback(){var t,e;if(super.connectedCallback(),this.initNewsData(),(null===(e=null===(t=this.news.quoteItem)||void 0===t?void 0:t.notifications)||void 0===e?void 0:e.length)>0){if(this.currentQuoteNotification=this.news.quoteItem.notifications[0],this.showNotificationText=!0,this.config.disableNotificationForVp)return}else this.showNotificationText=!1}get currentNotificationType(){var t;return null===(t=this.currentQuoteNotification)||void 0===t?void 0:t.notificationType}get chartData(){var t,e;return null===(t=this.charts)||void 0===t?void 0:t[null===(e=this.news)||void 0===e?void 0:e.quoteId]}get chartSeries(){return this.chartData?this.chartData.chartData.series:null}get chartPricePreviousClose(){return this.chartData?this.chartData.pricePreviousClose:null}initNewsData(){var t;if(this.setImgUrl(),this.newsTitleText=this.getNewsTitleText(),null===(t=this.news.newsList)||void 0===t?void 0:t.length){const t=this.news.newsList,e=this.news.chartData||this.news.quoteItem?this.config.maxNumberOfNews-1:this.config.maxNumberOfNews;this.otherTitles=t.slice(1,t.length<e?t.length:e)}}getChartFillColor(t){if(!t)return null;return yt(!this.config.newMarketBriefUx||this.isDarkModeTheme,t.changePcntNumber,this.config.swapGainLossColor,!0)}getQuoteColorValue(t){return yt(!this.config.newMarketBriefUx||this.isDarkModeTheme,t.changePcntNumber,this.config.swapGainLossColor,!1)}getNewsTitleText(){const t=zi(this.news.newsType);return this.strings[t]}getNewsFooterText(){const t=`${this.news.newsType.valueOf()}FooterText`;return this.strings[t]}getLiveText(){return this.strings.liveText||"Live"}getSummary(){var t;return(null===(t=this.news.newsList)||void 0===t?void 0:t.length)?this.news.newsList[0].title:null}isProvider(){var t;return!!((null===(t=this.news.newsList)||void 0===t?void 0:t.length)&&this.news.newsList[0].providerLogoUrl&&this.news.newsList[0].providerName)}getFirstProviderName(){return this.news.newsList[0].providerName}getFirstProviderLogoUrl(){return this.news.newsList[0].providerLogoUrl}getFirstProviderImgUrl(){return this.news.newsList[0].imageUrl}setImgUrl(){var t;if(!this.imageUrl&&(null===(t=this.news.newsList)||void 0===t?void 0:t.length))for(let t=0;t<this.news.newsList.length&&(this.imageUrl=this.news.newsList[t].imageUrl,!this.imageUrl);t++);}getQuoteChangeNotfClass(){var t;if(null===(t=this.currentQuoteNotification)||void 0===t?void 0:t.notificationType)return this.currentQuoteNotification.notificationType===x.PriceDrop||this.currentQuoteNotification.notificationType===x.PriceSpike?yt(this.isDarkModeTheme,this.news.quoteItem.changePcntNumber,this.config.swapGainLossColor,!1):this.getEventNotificationFillColor(this.currentQuoteNotification.notificationType)}getEventNotificationFillColor(t){var e;if(kt(t)&&(null===(e=this.currentQuoteNotification.notification)||void 0===e?void 0:e.signal)){if(this.currentQuoteNotification.notification.signal===C.Gainer)return this.config.swapGainLossColor?"quote-red":"quote-green";if(this.currentQuoteNotification.notification.signal===C.Loser)return this.config.swapGainLossColor?"quote-green":"quote-red"}return"quote-blue"}getNotificationText(){var t;return(null===(t=this.currentQuoteNotification)||void 0===t?void 0:t.shortHeadline)||""}get showNewsInSpotlight(){var t;return(null===(t=this.news.newsList)||void 0===t?void 0:t.length)>0&&!!this.news.newsList[0].providerName}get showMarketIndexChart(){switch(this.currentWidgetSize){case"medium":return!this.showNewsInSpotlight;case"large":return!0;default:return!1}}currentWidgetSizeChanged(){this.config.enableNewsSpotlightUX&&this.repaintChart()}repaintChart(){const t=this.charts;this.charts=null,setTimeout((()=>this.charts=t))}get showFullSizeMarketIndexChart(){return"large"===this.currentWidgetSize&&!this.isProvider()}getMarketIndexStatusText(){return this.getMarketIndexStatus()===C.Gainer?this.strings.marketIndexUp:this.strings.marketIndexDown}getMarketIndexStatus(){return this.news.quoteItem.changePcntNumber>0?C.Gainer:C.Loser}get iconUrl(){return Ct(this.news.quoteItem.changePcntNumber,x.MarketBrief,this.config.swapGainLossColor)}}(0,f.gn)([_i.LO],Bh.prototype,"newsTitleText",void 0),(0,f.gn)([_i.LO],Bh.prototype,"imageUrl",void 0),(0,f.gn)([_i.LO],Bh.prototype,"news",void 0),(0,f.gn)([_i.LO],Bh.prototype,"charts",void 0),(0,f.gn)([_i.LO],Bh.prototype,"otherTitles",void 0),(0,f.gn)([_i.LO],Bh.prototype,"showNotificationText",void 0),(0,f.gn)([_i.LO],Bh.prototype,"currentQuoteNotification",void 0),(0,f.gn)([_i.LO],Bh.prototype,"currentWidgetSize",void 0);const Gh=re.i`
    .card-options {
        right: 10px;
    }
`,Uh=re.i`
    .card-options {
        position: absolute;
        left: 10px;
    }
`,Vh=re.i`
    ${pn}

    .wdrk .nwsFooter {
        color: ${oe.CHi};
    }

    .wdrk {
        --cardBackground: radial-gradient(182.77% 177.99% at 100% 100%, rgba(0, 69, 172, 0.2) 0%, rgba(0, 69, 172, 0) 100%), #1C1C1C;
    }
    `,Zh=re.i`
    ${fn}

    :host {
        --cardBackground: radial-gradient(182.77% 177.99% at 100% 100%, rgba(0, 69, 172, 0.2) 0%, rgba(0, 69, 172, 0) 100%); 
    }

    /* This is a temporary solution for displaying dark colors in both dark and light modes */
    .newsPage {
        position: relative;
        --starndard-green: #02E176;
        --standard-red: #FFAB8C;
        --standard-blue: #0078D4;
        --standard-grey: rgba(255, 255, 255, 0.54);
    }

    .mcNwsCntr {
        display: grid;
        grid-template-rows: auto 1fr auto auto;
        height: 100%;
        border-radius: 6px;
        background: linear-gradient(180deg, rgba(16, 39, 73, 0) 0%, rgba(16, 39, 73, 0.8) 22.4%, #102749 47.92%);
    }

    .sumTitCntr {
        display: grid;
        align-items: center;
    }

    .newsLink {
        text-decoration: none;
        z-index: 1;
        position: absolute;
        height: var(--card-height);
        width: 100%;
    }
    
    .sumCntr, .tlCntr {
        cursor: pointer;
        text-decoration: none;
        padding: 4px 16px;
        list-style-type: none; 
        text-align: left;
        color: #FFFFFF;
        position: relative;
    }

    .sumCntr {
        font-size: var(--type-ramp-plus-1-font-size);
        line-height: 22px;
        font-weight: 600;
        
    }

    .sumBody {
        display: flex;
    }
    
    .providerLogo {
        width: var(--type-ramp-plus-1-font-size);
        height: var(--type-ramp-plus-1-font-size);
        vertical-align: middle;
        object-fit: cover;
        padding: 4px;
    }

    .newsSummary {
        margin: 0;
        padding: 0 0 0 4px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        white-space: normal;
        text-overflow: ellipsis;
    }

    .tlCntr {
        font-size: var(--type-ramp-base-font-size);
        line-height: var(--type-ramp-plus-1-line-height);
        width: 270px;
        margin: 0;
    }  

    .sumTit {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .nwsTitle {
        font-size: var(--type-ramp-minus-1-font-size);
        line-height: var(--type-ramp-minus-1-line-height);
        cursor: pointer;
        text-decoration: none;
        letter-spacing: 0.7px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 16px;
        color: #FFFFFF;
        
    }

    .nwsTitleNew {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 17px);
        color: ${oe.CHi};
        text-decoration: none;
        letter-spacing: 0.7px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 16px 16px 8px;
        outline: none;
    }

    .live {
        display: inline-block;
        background: linear-gradient(104.92deg, #FF13D9 0%, #FF3D13 100%);
        color: rgba(255, 255, 255, 0.83);
        height: 12px;
        padding: 2px 4px;
        margin: 4px;
        border-radius: 4px;
        text-transform: uppercase;
        font-size: 10px;
        font-weight: 600;
        line-height: 12px;
    }
    
    .nwsFooter {
        color: ${oe.CHi};
        background-color: var(--quote-view-background);
        font-size: var(--type-ramp-base-font-size); 
        border-radius: 20px;
        vertical-align: middle;
        padding: 4px 24px;
        margin: 8px auto 24px;
        text-align: center;
        letter-spacing: 0.3px;
        text-decoration: none;
    }

    .nwsFooter-no-crsl {
        margin: 8px auto 16px;
    }

    .imgCntr {
        height: 160px;
        width: 300px;
        z-index: 0;
    }

    .nwsImg {
        height: 100%;
        width: 100%;
        border-radius: 6px;
        position: absolute;
        left: 0px;
        top: 0px;      
    }

    .chartCntr {
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 4px 16px;
        align-items: center;
        font-size: var(--type-ramp-plus-1-font-size);
        height: var(--type-ramp-plus-3-line-height);
        column-gap: 8px;
    }

    .bigChartCntr {
        display: grid;
        grid-template-rows: 1fr auto;
        padding: 4px 16px;
        align-items: center;
        font-size: var(--type-ramp-plus-1-font-size);
        height: var(--type-ramp-plus-3-line-height);
        margin-bottom: 24px;
    }

    .noChrt .quote {
        display: flex;
        padding: 4px 16px;
        align-items: center;
        justify-content: center;
        font-size: var(--type-ramp-plus-2-font-size);
        height: var(--type-ramp-plus-3-line-height);
    }

    .quote {
        margin-bottom: 16px;
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
    }

    .noChrt .quote .prct {
        padding-left: 8px;
    }

    .syml {
        color: #FFFFFF;
        padding-right: 4px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        text-overflow: ellipsis;
    }

    .title-chevron {
        vertical-align: middle;
        background-color: transparent;
    }
      
    .title-chevron path {
        fill: #FFFFFF;
    } 

    .nwsTitleNew .title-chevron path {
        fill: ${oe.CHi};
    }

    .blink {
        height: 10px;
        width: 10px;
        border-radius: 50%;
        margin-left: 4px;
        vertical-align: middle;
        background-color: #FFFFFF;
        display: inline-block;
        animation-name: blinkAnimation;
        animation-duration: 3s;
        animation-iteration-count: infinite;
    }

    @keyframes blinkAnimation {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    .newNewsPage {
        grid-template-rows: auto auto auto;
        display: grid;
        user-select: none;
        -webkit-user-select: none;
        outline: none;
        text-decoration: none;
        z-index: 1;
        height: var(--card-height);
    }

    .newsItem {
        color: ${oe.CHi};
        display: grid;
        margin: 0 16px;
        padding: 12px 12px 20px;
        border-radius: 6px;
        background: var(--quote-view-background);
    }

    .separatorPadding {
        height: 0;
        margin: 20px 0;
        border: none;
        border-top: 1px solid ${oe.dtw};
    }

    .headerSymbol {
        font-size: var(--type-ramp-plus-1-font-size);
        line-height: var(--type-ramp-plus-1-line-height);
        font-weight: 600;
        color: ${oe.CHi};
    }

    .headerName {
        font-size: var(--type-ramp-base-font-size);
        line-height: var(--type-ramp-base-line-height);
        font-weight: 400;
        color: var(--standard-grey);
    }

    .newsChart {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: space-between;
        align-items: end;
        height: 60px;
    }

    .priceBox {
        display: grid;
    }

    .price {
        font-size: var(--type-ramp-plus-4-font-size);
        line-height: var(--type-ramp-plus-4-line-height);
        font-weight: 600;
    }

    .valuePcnt {
        font-size: var(--type-ramp-plus-1-font-size);
        line-height: var(--type-ramp-plus-1-line-height);
        font-weight: 600;
    }

    .newsArticle {
        display: grid;
        grid-template-columns: auto auto;
        grid-column-gap: 8px;
    }

    .articleImg {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .article {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: var(--type-ramp-base-font-size);
        line-height: var(--type-ramp-base-line-height);
        font-weight: 400;
    }

    .notf .notf-ic {
        margin-right: 4px;
    }

    .notf .notf-tx {
        font-size: var(--type-ramp-plus-1-font-size);
        line-height: var(--type-ramp-plus-1-line-height);
        font-weight: 600;
    }

    .newsItem2 {
        padding: 12px;
    }

    .newsItem2.small {
        padding: 8px 12px;
    }

    .newsItem2.small .newsHeader {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .newsItem2.small .headerSymbol {
        font-size: var(--type-ramp-plus-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }
    
    .newsItem2.medium .headerSymbol {
        font-size: 18px;
        line-height: 24px;
    }

    .newsItem2.large .headerSymbol {
        font-size: var(--type-ramp-plus-2-font-size, 20px);
        line-height: var(--type-ramp-plus-2-line-height, 28px);
    }

    .newsItem2.small .price {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }

    .newsItem2.large .price {
        font-size: 36px;
        line-height: 48px;
    }
    
    .newsItem2 .status {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        margin-top: 4px;
    }
    
    .newsItem2.small .status {
        grid-template-columns: 1fr auto;
    }

    .newsItem2 .statusLeft {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .newsItem2 .statusText {
        font-weight: 600;
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }

    .newsItem2.small .statusText {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .newsItem2.medium .statusText {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .newsItem2.large .statusText {
        font-size: 18px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .newsItem2.small .valuePcnt {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }

    .newsItem2 .indexIcn {
        margin-right: 6px;
    }

    .newsItem2 .indexIcn {
        width: 16px;
        height: 16px;
    }

    .newsItem2.large .indexIcn {
        width: 20px;
        height: 20px;
    }

    .newsItem2 .separatorPadding {
        margin: 18px 0;
    }

    .newsItem2.large .separatorPadding {
        margin: 32px 0;
    }

    .newsItem2 .newsArticle {
        align-items: center;
        margin-bottom: 6px;
    }

    .newsItem2.large .newsArticle {
        align-items: center;
        margin-bottom: 20px;
    }

    .providerDiv {
        display: flex;
        flex-direction: row;
        margin-bottom: 4px;
    }

    .newsItem2 .providerLogo {
        padding: 0px;
        margin-inline-end: 8px; 
    }

    .providerName {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
    }

    .newsItem2 .article {
        font-weight: 600;
    }

    .newsItem2 .articleImg {
        width: 52px;
        height: 52px;
        border-radius: 4px;
        object-fit: cover;
    }

    .newsItem2 .chartBox {
        margin-top: 32px
    }

    .newsItem2 .chartBox.fullSize {
        margin-top: 48px
    }

`.withBehaviors((0,hn.Uu)(Vh),new gh.O(Gh,Uh),(0,hn.vF)(re.i`
                :host {
                    forced-color-adjust: auto;
                }

                .title-link:hover {
                    text-decoration: underline;
                }
                ::slotted(*[slot="option-button"]) {
                    fill: ${vn.H.ButtonText};
                }

                ::slotted([slot="option-button"]:hover) {
                    background: ${vn.H.Highlight};
                    fill: ${vn.H.HighlightText};
                }
            `));var Jh,Xh,Yh=i(60577),Kh=i(34550),tg=i(26872),eg=i(22761),ig=i(18320),ng=i(21950),rg=i(37876),og=i(97497);const ag=Jt.d`
    <span class="notf-ic ${(t,e)=>t.getQuoteChangeNotfClass()}">
        ${(0,ch.g)((t=>t.currentNotificationType===x.PriceDrop),Jt.d`${ig.Z}`)}
        ${(0,ch.g)((t=>t.currentNotificationType===x.PriceSpike),Jt.d`${ng.Z}`)}
        ${(0,ch.g)((t=>{var e;return t.currentNotificationType===x.TechnicalIndicator&&(null===(e=t.currentQuoteNotification.notification)||void 0===e?void 0:e.signal)===C.Gainer}),Jt.d`${ng.Z}`)}
        ${(0,ch.g)((t=>{var e;return t.currentNotificationType===x.TechnicalIndicator&&(null===(e=t.currentQuoteNotification.notification)||void 0===e?void 0:e.signal)===C.Loser}),Jt.d`${ig.Z}`)}
        ${(0,ch.g)((t=>t.currentNotificationType===x.EarningRelease),Jt.d`${tg.Z}`)}
        ${(0,ch.g)((t=>t.currentNotificationType===x.InstitutionalHolding),Jt.d`${eg.Z}`)}
        ${(0,ch.g)((t=>{var e;return t.currentNotificationType===x.Sentiment&&(null===(e=t.currentQuoteNotification.notification)||void 0===e?void 0:e.signal)===C.Loser}),Jt.d`${rg.Z}`)}
        ${(0,ch.g)((t=>{var e;return t.currentNotificationType===x.Sentiment&&(null===(e=t.currentQuoteNotification.notification)||void 0===e?void 0:e.signal)===C.Gainer}),Jt.d`${og.Z}`)}
    </span>
`,sg=Jt.d`
    <span class="notf-tx ${(t,e)=>t.getQuoteChangeNotfClass()}">${t=>t.getNotificationText()}</span>
`,lg=Jt.d`
    <div class="nwsTitle" >
        ${t=>t.newsTitleText}
        ${(0,ch.g)((t=>t.config.showLiveBlink),Jt.d`<span class="blink"></span>`)}
        ${(0,ch.g)((t=>!t.config.showLiveBlink),Jt.d`<span class="title-chevron">${"rtl"===(null===(Jh=null===window||void 0===window?void 0:window.document)||void 0===Jh?void 0:Jh.dir)?Yh.Z:Kh.Z}</span>`)}
        <div class="live">${t=>t.getLiveText()}<div>
    </div>
`,cg=Jt.d`
    <div class="nwsTitleNew" >
        ${t=>t.newsTitleText}
        ${(0,ch.g)((t=>!t.config.showLiveBlink),Jt.d`<span class="title-chevron">${"rtl"===(null===(Xh=null===window||void 0===window?void 0:window.document)||void 0===Xh?void 0:Xh.dir)?Yh.Z:Kh.Z}</span>`)}
    </div>
`,dg=Jt.d`
    <div class="nwsFooter
    ${t=>!t.config.enableFullCarousel||t.isSingleTab?"nwsFooter-no-crsl":""}">
        ${t=>t.getNewsFooterText()}
    </div>
`,ug=Jt.d`
    <li class="sumTit">
        ${(0,ch.g)((t=>t.providerLogoUrl&&t.providerName),Jt.d`
            <img class="providerLogo" src=${t=>t.providerLogoUrl} alt=${t=>t.providerName} />
        `)}
        ${t=>t.title}
    </li>
`,hg=Jt.d`
    ${(0,wh.rx)((t=>t.otherTitles),ug)} 
`,gg=Jt.d`
    <div class="imgCntr">
        <img 
            class="nwsImg"
            src=${t=>t.imageUrl} 
            alt=${t=>t.title}>
    </div>
`,pg=Jt.d`
    ${(0,ch.g)((t=>t.news.quoteItem),Jt.d`
        <div class="quote" 
            title="${t=>t.news.quoteItem.displayName}"
            aria-label="${t=>t.news.quoteItem.displayName}">
            <span class="syml">${t=>t.news.quoteItem.displayName}</span>
            <span class="${t=>t.getQuoteColorValue(t.news.quoteItem)} prct">${t=>t.news.quoteItem.changePcnt}</span>
        </div>
    `)}
`,fg=Jt.d`
    ${(0,ch.g)((t=>!t.chartData),Jt.d`
    <div class="noChrt">
        ${pg}
    </div>
    `)}
`,mg=Jt.d`
    ${(0,ch.g)((t=>t.chartData),Jt.d`
        <div class="chartCntr">
            ${pg}
            <msn-stock-chart 
                width=${()=>100}
                height=${()=>36}
                fill-color=${t=>t.getChartFillColor(t.news.quoteItem)}
                baseline-color=${t=>t.getChartFillColor(t.news.quoteItem)}
                :prices=${t=>t.chartData.chartData.series}
                :baselinePrice=${t=>t.chartData.pricePreviousClose}
                :pricesMaxCount=${()=>B}
            />
        </div>
    `)}
    ${fg}
`,vg=Jt.d`
    ${(0,ch.g)((t=>t.chartData),Jt.d`
        <div class="bigChartCntr">
            ${pg}
            <msn-stock-chart 
                width=${()=>268}
                height=${()=>50}
                fill-color=${t=>t.getChartFillColor(t.news.quoteItem)}
                baseline-color=${t=>t.getChartFillColor(t.news.quoteItem)}
                :prices=${t=>t.chartData.chartData.series}
                :baselinePrice=${t=>t.chartData.pricePreviousClose}
                :pricesMaxCount=${()=>B}
            />
        </div>
    `)}
    ${fg}
`,yg=Jt.d`
    <div class="newsPage ${t=>t.imageUrl?"wImg":"noImg"} ${t=>t.config.disableDarkMode?"":"wdrk"}"
        data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.getTabShownTags(t.news.newsType)}}">
        <a  class= "newsLink"
            href="${t=>Ji(t.config.enableNewsUrlTags,t.news.quoteId,g.Topstories)}"
            target="${t=>t.openLinksInNewTab?"_blank":"_self"}"
            data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.newsPageClickTelemetryTags}}"
            title="${t=>t.getNewsFooterText()}"
            aria-label="${t=>t.getNewsFooterText()}"
        >
            <div class="mcNwsCntr">                   
                    ${lg}
                    <div class="sumTitCntr">
                        <div class="sumCntr" part="sumCntr">
                            <div class="sumBody" >
                                ${(0,ch.g)((t=>t.isProvider()),Jt.d`
                                    <img class="providerLogo" 
                                    alt=${t=>t.getFirstProviderName()} 
                                    src=${t=>t.getFirstProviderLogoUrl()}
                                    />
                                `)}
                                <div class="newsSummary">
                                    ${t=>t.getSummary()}
                                </div>
                            </div>
                        </div>
                        ${(0,ch.g)((t=>{var e;return(null===(e=t.news.newsList)||void 0===e?void 0:e.length)>=2}),Jt.d`
                            <ul class="tlCntr" part="tlCntr">
                                ${hg}
                            </ul>
                            ${mg}
                        `)}
                        ${(0,ch.g)((t=>{var e;return(null===(e=t.news.newsList)||void 0===e?void 0:e.length)<2}),Jt.d`
                            ${vg}
                        `)}
                    </div>                   
                    ${dg}
            </div>
        </a>
        ${(0,ch.g)((t=>t.imageUrl),gg)}
    </div>
`,bg=Jt.d`
    <div class="newsItem">
        <div class="newsHeader">
            <span class="headerSymbol">${t=>t.news.quoteItem.symbol}</span> 
            <span class="headerName">${t=>t.news.quoteItem.displayName}</span>
        </div>
        <div class="newsChart">
            <div class="priceBox">
                <span class="price">${t=>t.news.quoteItem.price}</span>
                ${(0,ch.g)((t=>t.showNotificationText),Jt.d`
                    <span class="notf">
                        ${(0,ch.g)((t=>t.currentNotificationType),ag)}
                        ${sg}
                    </span>
                `)}
                ${(0,ch.g)((t=>!t.showNotificationText),Jt.d`
                    <span class="${t=>t.getQuoteColorValue(t.news.quoteItem)} valuePcnt">${t=>t.news.quoteItem.changeValue} (${t=>t.news.quoteItem.changePcnt})</span>
                `)}
            </div>
            <div class="chartBox">
                ${(0,ch.g)((t=>t.chartData),Jt.d`
                    <msn-stock-chart 
                        width=${()=>72}
                        height=${()=>52}
                        skip-transform=${()=>!0}
                        fill-color=${t=>t.getChartFillColor(t.news.quoteItem)}
                        baseline-color=${t=>t.getChartFillColor(t.news.quoteItem)}
                        :prices=${t=>t.chartData.chartData.series}
                        :baselinePrice=${t=>t.chartData.pricePreviousClose}
                        :pricesMaxCount=${()=>B}
                    />
                `)}   
            </div>
        </div>
        <hr class="separatorPadding">
        <div class="newsArticle">
            ${(0,ch.g)((t=>t.isProvider()),Jt.d`
                <img class="articleImg"
                    alt=${t=>t.getFirstProviderName()} 
                    src=${t=>t.getFirstProviderImgUrl()}
                />
            `)}
            <span class="article">
                ${t=>t.getSummary()}
            </span>
        </div>
    </a>
`,wg=Jt.d`
    <div class="newsItem newsItem2 ${t=>t.currentWidgetSize}">
        <div class="newsHeader">
            <span class="headerSymbol">${t=>t.news.quoteItem.displayName}</span>
            <span class="price">${t=>t.news.quoteItem.price}</span>
        </div>
        <div class="status">
            <div class="statusLeft">
                <img class="indexIcn" src="${t=>t.iconUrl}" alt="" loading=lazy>
                <span class="${t=>t.getQuoteColorValue(t.news.quoteItem)} statusText">${t=>t.getMarketIndexStatusText()}</span>
            </div>
            <span class="${t=>t.getQuoteColorValue(t.news.quoteItem)} valuePcnt">${t=>t.news.quoteItem.changePcnt}</span>
        </div>
    </div>
`,xg=Jt.d`
    <div class="newsItem newsItem2 ${t=>t.currentWidgetSize}">
        <div class="newsHeader">
            <span class="headerSymbol">${t=>t.news.quoteItem.symbol}</span>
            <span class="headerName">${t=>t.news.quoteItem.displayName}</span>
        </div>
        <span class="price">${t=>t.news.quoteItem.price}</span>
        <div class="status">
            <img class="indexIcn" src="${t=>t.iconUrl}" alt="" loading=lazy>
            <span class="${t=>t.getQuoteColorValue(t.news.quoteItem)} statusText">${t=>t.getMarketIndexStatusText()} ${t=>t.news.quoteItem.changePcnt}</span>
        </div>
        ${(0,ch.g)((t=>t.chartData&&t.showMarketIndexChart),Jt.d`
            <div class="chartBox ${t=>t.showFullSizeMarketIndexChart?"fullSize":""}">
                <msn-stock-chart
                    width=${()=>244}
                    height=${t=>t.showFullSizeMarketIndexChart?192:64}
                    skip-transform=${()=>!0}
                    fill-color=${t=>t.getChartFillColor(t.news.quoteItem)}
                    baseline-color=${t=>t.getChartFillColor(t.news.quoteItem)}
                    :prices=${t=>t.chartSeries}
                    :baselinePrice=${t=>t.chartPricePreviousClose}
                    :pricesMaxCount=${()=>B}
                />
            </div>
        `)}
        ${(0,ch.g)((t=>t.showNewsInSpotlight),Jt.d`
            <hr class="separatorPadding">
            <div class="newsArticle">
                <div>
                    <div class="providerDiv">
                        ${(0,ch.g)((t=>t.getFirstProviderLogoUrl()),Jt.d`
                            <img class="providerLogo"
                                alt=${t=>t.getFirstProviderName()} 
                                src=${t=>t.getFirstProviderLogoUrl()}
                            />
                        `)}
                        <div class="providerName">
                            ${t=>t.getFirstProviderName()}
                        </div>
                    </div>
                    <span class="article">
                        ${t=>t.getSummary()}
                    </span>
                </div>
                <img class="articleImg"
                    alt=${t=>t.getFirstProviderName()} 
                    src=${t=>t.getFirstProviderImgUrl()}
                />
            </div>
        `)}
    </div>
`,Cg=Jt.d`
    ${(0,ch.g)((t=>"small"===t.currentWidgetSize),wg)}
    ${(0,ch.g)((t=>"small"!==t.currentWidgetSize),xg)}
`,Tg=Jt.d`
    <div class="${t=>t.config.disableDarkMode?"":"wdrk"} 
        ${t=>t.isDarkModeTheme?"dark":""}
        ${t=>t.currentWidgetSize}
        ${t=>t.config.disableHeader?"noHdr":""}
        ${t=>t.config.isDynamicFeed?"windf":""}"
        data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.getTabShownTags(t.news.newsType)}}"
    >
        <a class= "newNewsPage"
            href="${t=>Ji(t.config.enableNewsUrlTags,t.news.quoteId,g.Topstories)}"
            target="${t=>t.openLinksInNewTab?"_blank":"_self"}"
            data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.newsPageClickTelemetryTags}}"
            title="${t=>t.getNewsFooterText()}"
            aria-label="${t=>t.getNewsFooterText()}"
        >
            ${(0,ch.g)((t=>!t.config.disableHeader),cg)}
            ${t=>t.config.isDynamicFeed&&t.config.enableNewsSpotlightUX?Cg:bg}
            ${dg}
        </a>
    </div>
`,$g=Jt.d`
    ${(0,ch.g)((t=>!t.config.newMarketBriefUx),yg)}
    ${(0,ch.g)((t=>t.config.newMarketBriefUx),Tg)}
`;let kg=class extends Bh{};kg=(0,f.gn)([(0,Yd.M)({name:"money-card-news-page",template:$g,styles:Zh,shadowOptions:{delegatesFocus:!0}})],kg);class Ig extends Yd.H{get titleText(){return this.strings[Tt(this.dataFrom)]}getFooterText(){const t=ji(this.config,this.dataFrom);return this.strings[t]}getTabForTelemetry(){return g.cryptoLearn}}(0,f.gn)([_i.LO],Ig.prototype,"data",void 0),(0,f.gn)([_i.LO],Ig.prototype,"isDarkModeTheme",void 0);const Sg=re.i`
    .card-options {
        right: 10px;
    }
`,Lg=re.i`
    .card-options {
        position: absolute;
        left: 10px;
    }
`,Mg=re.i`
    ${pn}

    .wdrk .footer-link-gradient, .wdrk .footer-link-megrad {
        color: ${oe.CHi};
    }

    .wdrk.winDsh .footer-link {
        color: #99EBFF; /* the same color as in weather card */
    }
`,_g=(0,hn.Uu)(Mg),Dg=re.i`
    ${gn}

    .cl-tab {
        display: grid;
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        outline: none;
        color: ${oe.CHi};
        text-decoration: none;
    }

    .windf.cl-tab {
        grid-template-rows: 1fr auto;
    }

    .title {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 17px);
        color: ${oe.CHi};
        text-decoration: none;
        letter-spacing: 0.7px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 16px 16px 16px 16px;
        outline: none;
    }

    .item-wrapper {
        text-decoration: none;
        color: ${oe.CHi};
    }

    .crypto-nft-item {
        display: grid;
        grid-template-columns: 238px 10px;
        gap: 8px;
        border-radius: 6px;
        margin: 0 16px 5px;
        padding: 0px 6px;
        align-items: center;
        background: var(--quote-view-background);
    }

    
    .crypto-nft-item:hover {
        background: var(--quote-view-hover-background);
    }

    .item-left {
        height: 40px;
        margin: 1px 8px 1px 0px;
        display: flex;
        align-items: center;
    }

    .left-inside-right{
        float: right;
        text-align: left;
        font-weight: 600;
        color: #142a4b;
    }

    .icon .heading-logo {
        width: 28px;
        height: 28px;
        margin-right: 10px;
        border-radius: 50%;
        overflow: hidden;
    }

    .left-heading {
        width: 210px;
        font-weight: 600;
        font-size: var(--type-ramp-base-font-size, 14px);
        padding: 0;
    }

    .left-title {
        width: 210px;
        color: var(--standard-grey);
        font-size: var(--type-ramp-minus-1-font-size, 12px);
    }

    .sign-logo{
        width: 10px;
        height: 10px;
    }

    .left-inside-left{
        display: inline-block;
        width: 120px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        color: #142a4b;
    }
    
    .item-right {
        position: relative;
        height: 20px;
        margin: 6px 0px;
        display: flex;
        align-items: center;
    }

    .footer-link {
        border-radius: 20px;
        vertical-align: middle;
        text-align: center;
        padding: 0 0 12px;
        margin-bottom: var(--sequence-indicator-padding);     
        letter-spacing: 0.3px;
        color: ${oe.goi};
        text-decoration: none;
        max-width: calc(100% - 60px);
    }

    .winDsh .footer-link:hover {
        text-decoration: underline;
    }

    .footer-link-gradient:hover,
    .footer-link-gradient:active,
    .footer-link-gradient:${ph.b},
    .footer-link-megrad:hover,
    .footer-link-megrad:active,
    .footer-link-megrad:${ph.b} {
        background-color:  var(--footer-link-hover-background); 
    }
    
    .footer-link-gradient, .footer-link-megrad {
        background-color:  var(--footer-link-background);
        color: ${oe.CHi};
        font-size: ${oe.cSu};
        border-radius: 20px;
        vertical-align: middle;
        padding: 4px 24px;
        margin-right:auto;
        margin-left:auto;
        margin-bottom: 0px;
        margin-top: 20px;
        max-width: calc(100% - 84px);
    }
`.withBehaviors(_g,new gh.O(Sg,Lg),(0,hn.vF)(re.i`
            :host {
                forced-color-adjust: auto;
            }

            .title-link:hover, .footer-link:hover {
                text-decoration: underline;
            }

            /* The border is needed in high contrast mode */
            .footer-link {
                padding: 4px 16px;
                border: 1px solid ${vn.H.LinkText}; 
                border-radius: 20px;
                cursor: pointer;
                margin-right: auto;
                margin-left: auto;
                margin-bottom: 24px;
                max-width: 90%;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                z-index: 3;
                box-sizing: border-box;
                color: ${vn.H.ButtonText};
            }

            ::slotted(*[slot="option-button"]) {
                fill: ${vn.H.ButtonText};
            }

            ::slotted([slot="option-button"]:hover) {
                background: ${vn.H.Highlight};
                fill: ${vn.H.HighlightText};
            }
        `)),Fg=Jt.d`
    <div class="title">
        <span>
            ${t=>t.titleText}
        </span>
    </div>
`,Ag=Jt.d`
    <a class="item-wrapper"
        href="${t=>t.collectionUrl}"
        target="${(t,e)=>e.parent.openLinksInNewTab?"_blank":"_self"}"
    >
        <div class="crypto-nft-item" >
            <div class="item-left">
                <div class="icon">
                    <img class="heading-logo" src="${t=>t.collectionImageUrl}" />
                </div>
                <div>
                    <div class="left-heading">
                        <span class="left-inside-left">${t=>t.collectionName}</span>
                        <span class="left-inside-right" style=${t=>{var e;return(null===(e=t.volumeTradedRatio)||void 0===e?void 0:e.includes("-"))?"color: #0B7B24":"color: #BF3401"}}>${t=>t.volumeTradedRatio}</span>
                    </div>
                    <div class="left-title">
                        <span class="left-inside-left">
                            ${(0,ch.g)((t=>"ETH"===t.symbol),Jt.d`<img class="sign-logo" src="https://openseauserdata.com/files/6f8e2979d428180222796ff4a33ab929.svg" />`)}
                            ${(0,ch.g)((t=>"SOL"===t.symbol),Jt.d`<img class="sign-logo" src="https://static.opensea.io/solana-just-s-symbol-colored.svg" />`)}
                            ${(0,ch.g)((t=>"KLA"===t.symbol),Jt.d`<img class="sign-logo" src="https://static.opensea.io/tokens/KLAY.png" />`)}
                            Floor Price ${t=>t.latestFloorPrice}
                        </span>
                        <span class="left-inside-right">
                            ${t=>t.latestVolumeTraded}
                        </span>
                    </div>
                </div>
            </div>
            <div class="item-right">
            </div>
        </div>
    </a>

`,Og=Jt.d`
    <a class="footer-link
        ${t=>Pi(t.config,"footer-link",t.config.isDynamicFeed)}""
        href="https://opensea.io"
        target="${t=>t.openLinksInNewTab?"_blank":"_self"}"
    >
        ${t=>t.getFooterText()}
    </a>
`,Pg=Jt.d`
    <a class="cl-tab "wdrk" "dark">
        ${Fg}
        ${(0,wh.rx)((t=>t.data),Ag)}
        ${Og}
    </a>
`;let qg=class extends Ig{};qg=(0,f.gn)([(0,Yd.M)({name:"money-card-nft-tab",template:Pg,styles:Dg,shadowOptions:{delegatesFocus:!0}})],qg);var Ng=i(20490),Hg=i(26007),zg=i(33832),Qg=i(32717);class Eg extends Yd.H{constructor(){super(...arguments),this.showOverlay=!1,this.onOutsideClick=t=>{var e,i;const n=t.composedPath()&&t.composedPath()[0];(null===(e=this.itemElement)||void 0===e?void 0:e.contains(n))||(null===(i=this.overlayElement)||void 0===i?void 0:i.contains(n))||this.toggleOverlay(t,!1)},this.onOverlayKeydown=t=>{"Escape"===t.code&&this.toggleOverlay(t,!1)}}onDataChange(){var t,e;this.config.disableNotificationForVp||this.config.isDynamicFeed&&this.config.enableInlineNotifications&&this.notificationInterval&&(null===(e=null===(t=this.quote)||void 0===t?void 0:t.notifications)||void 0===e?void 0:e.length)>0&&this.restartNotification()}currentWidgetSizeChanged(){this.onDataChange(),this.isSpotlight&&this.repaintChart()}quoteChanged(t,e){t&&e&&t.id===e.id?(this.isPctChanged=t.changePcnt!==e.changePcnt,this.isPriceChanged=t.price!==e.price):(this.isPriceChanged=!1,this.isPctChanged=!1),this.onDataChange()}get isChartDataReady(){var t;return this.chartData&&(null===(t=this.chartData.chartData)||void 0===t?void 0:t.series)}get chartSeries(){return this.isChartDataReady?this.chartData.chartData.series:null}get chartBaseline(){return this.isChartDataReady?this.chartData.pricePreviousClose:null}get chartId(){return this.isChartDataReady?this.chartData.instrumentId:null}get currentNotificationType(){var t;return null===(t=this.currentQuoteNotification)||void 0===t?void 0:t.notificationType}connectedCallback(){var t,e;if(super.connectedCallback(),this.updateCurrencyData(),(null===(e=null===(t=this.quote)||void 0===t?void 0:t.notifications)||void 0===e?void 0:e.length)>0){if(this.config.isDynamicFeed&&this.updateQuoteNotification(this.previewType,this.quote.notifications)||(this.currentQuoteNotification=this.quote.notifications[0]),this.showNotificationText=!0,this.config.disableNotificationForVp)return;"edgeChromium"===et.jG.AppType?(0,Qg.eC)().then((()=>{this.startNotification()})):this.startNotification()}else this.showNotificationText=!1;qi()||(this.themeChangeHandlerBinded=this.themeChangeHandler.bind(this),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",this.themeChangeHandlerBinded))}updateCurrencyData(){try{if(this.isSpotlightCurr&&this.useSymbolTitle()){const[t,e]=this.quote.displayName.split("/"),[i,n]=this.quote.symbol.split("/");this.currencyData={from:{displayName:t,shortName:`${i} ${Z.vR[i]}`,iconUrl:xt(i)},to:{displayName:e,shortName:`${n} ${Z.vR[n]}`,iconUrl:xt(n)}}}}catch(t){(0,V.H)(zt.H1V,`updateCurrencyData: error while parsing displayName and symbol: ${t?t.message:""}`)}}themeChangeHandler(){this.repaintChart()}repaintChart(){const t=this.chartData;this.chartData=null,setTimeout((()=>this.chartData=t))}startNotification(){this.notificationIndex=0,this.isSpotlight||this.config.disableNotificationRotation||(this.notificationInterval=setInterval((()=>this.rotateNotification()),this.config.notificationTextShowTimeInMs))}restartNotification(){this.quote&&this.quote.notifications&&this.quote.notifications[0]&&(this.resetNotification(),this.currentQuoteNotification=this.quote.notifications[0],this.showNotificationText=!0,this.startNotification())}rotateNotification(){try{this.notificationIndex++,this.rotateNotificationTextInOrder()}catch(t){(0,V.H)(zt.Dl5,`exception while rotating notification for quote ${this.quote.id} : ${t?t.message:""}`)}}disconnectedCallback(){super.disconnectedCallback(),this.resetNotification(),qi()||window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",this.themeChangeHandlerBinded),an(this.config,this.overlaySrcUri)&&(document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onOverlayKeydown))}resetNotification(){this.notificationInterval&&(clearInterval(this.notificationInterval),this.notificationInterval=null)}rotateNotificationTextInOrder(){this.config.enableRotateNotf||"small"===this.currentWidgetSize&&!this.isChartDataReady||(this.showNotificationText=!this.showNotificationText);const t=this.quote.notifications.length,e=this.notificationIndex%t;this.currentQuoteNotification=this.quote.notifications[e]}openLink(t){var e;if(!t)return;t.stopPropagation();const i=(0,nt.h_)(this.config.financeWatchlistPage);let n=nn(this.cardType)?(0,K.__)(et.jG.CurrentMarket,ft(this.quote)):ht(this.dataFrom,{cbWatchlist:()=>ut(et.jG.CurrentMarket,this.quote.id,null,i,this.dataFrom),cbGeneral:()=>ut(et.jG.CurrentMarket,this.quote.id,m[this.dataFrom],i,this.dataFrom),cbDefault:()=>this.quote.quoteHref});(null===(e=this.currentQuoteNotification)||void 0===e?void 0:e.notificationType)&&(n=Pt(n,this.dataFrom,this.currentQuoteNotification,zt.wiN,this.config.enableBackendNotificationUrl)),n=St(n),rt.M0.sendActionEvent(t.currentTarget,be.Aw.Click,be.wu.Navigate,n),this.config.isDynamicFeed&&(0,Ng.j)({name:"OnWidgetClick",clickType:1,oneServiceCardType:"MoneyInfo"}),window.open(n,this.openLinksInNewTab?"_blank":"_self")}onKeyDown(t,e,i){switch(null==t?void 0:t.key){case zg.oM:return!0;case" ":case zg.kL:return e?this.watchQuote(t):i?this.toggleOverlay(t):this.openLink(t),!1;default:return!1}}watchQuote(t){t.stopPropagation(),this.watchQuoteCallback(t,this.quote.id),rt.M0.sendActionEvent(t.currentTarget),this.config.isDynamicFeed&&(0,Ng.j)({name:"OnWidgetClick",clickType:1,oneServiceCardType:"MoneyInfo"})}getChartFillColor(){return yt(this.isDarkModeTheme,this.quote.changePcntNumber,this.config.swapGainLossColor,!0)}getChartCntrStyle(){return`width: ${this.chartWidth}px; height: ${this.chartHeight}px`}getQuotePriceClass(){return"quote-title-container"}getQuoteChangeClass(){return yt(this.isDarkModeTheme,this.quote.changePcntNumber,this.config.swapGainLossColor,!1)}getQuoteChangeNotfClass(){var t;if(null===(t=this.currentQuoteNotification)||void 0===t?void 0:t.notificationType)return this.currentQuoteNotification.notificationType===x.PriceDrop||this.currentQuoteNotification.notificationType===x.PriceSpike?yt(this.isDarkModeTheme,this.quote.changePcntNumber,this.config.swapGainLossColor,!1):this.getEventNotificationFillColor(this.currentQuoteNotification.notificationType)}getEventNotificationFillColor(t){var e;if(kt(t)&&(null===(e=this.currentQuoteNotification.notification)||void 0===e?void 0:e.signal)){if(this.currentQuoteNotification.notification.signal===C.Gainer)return this.config.swapGainLossColor?"quote-red":"quote-green";if(this.currentQuoteNotification.notification.signal===C.Loser)return this.config.swapGainLossColor?"quote-green":"quote-red"}return"quote-blue"}getQuoteChangeAriaLabel(){return`${this.quote.changePcnt} ${this.quote.displayName} ${this.quote.changeValue}`}getQuoteRowAriaLabel(){let t="";return t=this.quote.gain||this.quote.unchanged?this.strings.increasedByText:this.strings.decreasedByText,`${this.quote.symbol}, ${this.quote.displayName}. ${this.strings.priceIsText} ${this.quote.price}. ${t} ${this.quote.changePcnt}`}getClass_addButton(){return`watchlist-button ${Pi(this.config,"watchlist-button")}`}getClass_basicQuoteItem(){const t=this.config.enableGradientStyles?"quote-view-gradient":"",e=qi()?"winDsh":"",i=this.config.isDynamicFeed?"dynamic":"",n="winWidgets"===et.jG.AppType?`${this.currentWidgetSize}`:"";return`${this.useGlanceCard?"money-glance-card":"quote-view"} ${t} ${e} ${i} ${n}`}getClass_quoteItem(){const t=at(this.quote.gain,this.quote.unchanged,"qred","qgreen","qgrey",this.config.swapGainLossColor),e=this.config.highlightPriceChange&&this.isPriceChanged?"hltprc":"",i=this.config.highlightPriceChange&&this.isPctChanged?"hltpct":"",n=this.isPriceChanged||this.isPctChanged?"hlt":"";return`${this.getClass_basicQuoteItem()} ${n} ${e} ${i} ${t}`}getClass_notification(t){return t&&x[t]||""}getClass_secTitle(){var t,e,i;return`sec-title-str ${this.config.enableGradientStyles&&!this.config.useStaticGradientBackground?"sec-title-str-gradient":""} ${(null===(e=null===(t=this.currentQuoteNotification)||void 0===t?void 0:t.shortHeadline)||void 0===e?void 0:e.length)?"notf":""} ${this.getClass_notification(null===(i=this.currentQuoteNotification)||void 0===i?void 0:i.notificationType)}`}getNotificationText(){var t,e;return this.config.enableNewNotificationTexts&&this.isSpotlight&&"small"!==this.currentWidgetSize&&(null===(t=this.currentQuoteNotification)||void 0===t?void 0:t.headline)?this.currentQuoteNotification.headline:(null===(e=this.currentQuoteNotification)||void 0===e?void 0:e.shortHeadline)||""}isShowNotiIcon(){return!!this.currentQuoteNotification&&!!this.currentQuoteNotification.notificationType}getSeeMoreGlanceCardTitle(){const t=ji(this.config,this.dataFrom);return this.strings[t]}useSymbolTitle(){return bt(this.quote)&&this.quote.displayName.includes("/")}updateQuoteNotification(t,e){try{if(!t||(null==e?void 0:e.length)<=0)return!1;const[i,n]=t.split(":");if("Finance"!==i)return!1;const[r]=n.split("_");if(!r)return!1;const o=e.filter((t=>t.notificationType===r||Mt(r)&&Mt(t.notificationType)));return 0!==o.length&&(this.currentQuoteNotification=o[0],!0)}catch(t){return(0,V.H)(zt.EsL,`exception while updating quote notification for ${this.quote.id} : ${t?t.message:""}`),!1}}toggleOverlay(t,e){if(!an(this.config,this.overlaySrcUri))return;this.showOverlay=null==e?!this.showOverlay:e;const i=t.currentTarget;this.showOverlay?(this.showOverlayCallback&&this.showOverlayCallback(t,this.index),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.onOverlayKeydown),rt.M0.sendActionEvent(i,be.Aw.Click,be.wu.View,this.overlaySrcUri)):(document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onOverlayKeydown),rt.M0.sendActionEvent(i,be.Aw.Click,be.wu.Close))}getOverlayStyle(){if(!this.config||!this.config.overlayHeight||!this.config.overlayWidth)return"";const{overlayHeight:t,overlayWidth:e}=this.config;return`${`--iframe-height:${t}px`}; ${`--iframe-width:${e}px`}; --overlay-horizontal-offset:300px; --overlay-vertical-offset:-127px`}}(0,f.gn)([_i.LO],Eg.prototype,"chartWidth",void 0),(0,f.gn)([_i.LO],Eg.prototype,"chartHeight",void 0),(0,f.gn)([_i.LO],Eg.prototype,"quote",void 0),(0,f.gn)([_i.LO],Eg.prototype,"watchlistQuoteDict",void 0),(0,f.gn)([_i.LO],Eg.prototype,"showNotificationText",void 0),(0,f.gn)([_i.LO],Eg.prototype,"isInCarouselView",void 0),(0,f.gn)([_i.LO],Eg.prototype,"chartData",void 0),(0,f.gn)([_i.LO],Eg.prototype,"isDarkModeTheme",void 0),(0,f.gn)([_i.LO],Eg.prototype,"index",void 0),(0,f.gn)([_i.LO],Eg.prototype,"currentQuoteNotification",void 0),(0,f.gn)([_i.LO],Eg.prototype,"currentWidgetSize",void 0),(0,f.gn)([_i.LO],Eg.prototype,"isSpotlight",void 0),(0,f.gn)([_i.LO],Eg.prototype,"isSpotlightCurr",void 0),(0,f.gn)([_i.LO],Eg.prototype,"showInlineQuoteIcon",void 0),(0,f.gn)([_i.LO],Eg.prototype,"previewType",void 0),(0,f.gn)([_i.LO],Eg.prototype,"showOverlay",void 0),(0,f.gn)([_i.LO],Eg.prototype,"overlaySrcUri",void 0),(0,f.gn)([_i.LO],Eg.prototype,"currencyData",void 0);const jg=re.i`
    .curr-arr {
        right: 120px;
        transform: rotate(180deg);
    }

    .curr-info .from {
        right: 0px;
    }

    .curr-info .to {
        right: 136px;
    }
`,Wg=re.i`
    .sl-quote.small.curr {
        grid-template-columns: min-content 1fr min-content;
        height: auto;
    }

    .sl-quote.small.curr .notf-tx {
        padding: 0;
        margin-top: 4px;
    }

    .sl-quote.small.curr .price {
        margin-bottom: 4px;
    }

    .sl-quote.small.curr .sec-title-str {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
    }

    .sl-quote.small.curr .price-str {
        line-height: var(--type-ramp-minus-1-line-height, 16px);
    }

    .sl-title-curr {
        grid-template-columns: 1fr;
        grid-gap: 2px;
        margin-bottom: 4px;
    }

    .sl-title-curr .sl-cur-name {
        margin: 0;
    }

    .sl-cur-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: var(--type-ramp-plus-1-font-size, 16px);
        line-height: var(--type-ramp-plus-1-line-height, 22px);
        font-weight: 600;
        margin: 0px 6px;
    }

    .sl-quote.large .sl-cur-name {
        font-size: var(--type-ramp-plus-2-font-size, 20px);
        line-height: var(--type-ramp-plus-2-line-height, 28px);
    }

    .sl-quote .curr-info {
        position: relative;
        height: 38px;
        width: 100%;
        margin-bottom: 6px;
    }

    .large.sl-quote .curr-info {
        height: 52px;
    }

    .sl-quote .curr-top {
        display: flex;
        align-items: center;
    }

    .sl-quote.large .curr-top {
        margin-bottom: 2px;
    }

    .sl-quote .curr-icon {
        height: 18px;
        border-radius: 2px;
    }

    .sl-quote.small.curr .icn,
    .sl-quote.small.curr .icn img {
        width: initial;
        height: 38px;
        border-radius: 2px;
    }

    .curr-arr {
        position: absolute;
        left: 108px;
    }

    .large .curr-arr {
        top: 4px;
    }

    .curr-arr svg {
        width: 16px;
    }

    .curr-info .from {
        position: absolute;
        left: 0px;
    }

    .curr-info .to {
        position: absolute;
        left: 136px;
    }
`,Rg=re.i`
    ${pn}
    .wdrk {
        @keyframes greenAnimation {
            from { background-color: rgba(52, 227, 111, 0.15); }
            to { background-color: transparent; }
        }
    }
`,Bg=re.i`
    .if-container {
        margin-left: var(--overlay-horizontal-offset);
    }

    .close-overlay-btn {
        right: 20px;
    }
`,Gg=re.i`
    .see-more-icon {
        transform: rotateY(180deg);
    }

    .if-container {
        margin-right: var(--overlay-horizontal-offset);
    }
    
    .close-overlay-btn {
        left: 20px;
    }

    ${jg}
`,Ug=re.i`
    ${fn}
    .quote-row {
        cursor: pointer;
        text-decoration: none;
        padding: 0 16px;
    }

    .quote-row.no-crsl {
        padding: 0 12px;
    }

    .quote-row-gradient {
        cursor: pointer;
        text-decoration: none;
        padding: 0 16px;
    }

    .quote-row:hover .quote-view {
        background: ${oe.QpD};
    }

    .quote-title-content {
        display: flex;
        align-items: center;
        color: ${oe.CHi};
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        margin: 0;
        font-size: ${oe.cSu};
        line-height: ${oe.RUt};
        min-width: 66px;
    }

    .chartGlanceCard {
        margin-top: 4px;
        overflow: hidden;
    }

    .notf-ic {
        height: 16px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .notf-ic svg {
        height: 16px;
        width: 16px;
    }

    .money-glance-card .glcn {
        padding-top: 4px;
    }

    .money-glance-card .glcn .notf-ic {
        padding: 0;
        vertical-align: middle;
    }

    .sec-title-str {
        color: ${oe.Q5n};
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        min-width: 66px;
    }

    .sec-title-str-gradient {
        color: ${oe.CHi};
    }

    .windf .sec-title-str-gradient {
        color: currentColor;
    }

    .windf.dark .sec-title-str-gradient {
        color: ${oe.Q5n};
    }

    .price {
        align-items: center;
        justify-content: flex-end;
        display: flex;
    }

    .price-str {
        color: ${oe.CHi};
        font-weight: 600;
        font-size: ${oe.cSu};
        line-height: ${oe.RUt};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .price-str-gradient {
        color: ${oe.CHi};
        font-weight: 600;
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .change-values {
        height: 20px;
        font-family: ${oe.SVJ};
        border-radius: 4px;
        border: 0;
        padding: 0;
        cursor: pointer;
        outline: none;
    }

    .change-values:focus-visible {
        outline-color: ${oe.CHi};
        outline-width: 1px;
        outline-style: auto;
    }

    .change-button-area {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .change-values-percentage {
        display: flex;
        font-size: ${oe.cSu};
        line-height: ${oe.RUt};
        font-weight: 600;
        text-align: end;
        height:20px;
        justify-content: flex-end;
        align-items: center;
    }

    .change-values-percentage-gradient {
        display: flex;
        font-size: ${oe.cSu};
        line-height: ${oe.vgC};
        font-weight: 600;
        text-align: end;
        height:20px;
        justify-content: flex-end;
        align-items: center;
    }

    .quote-view {
        align-items: center;
        display: grid;
        grid-column-gap: 8px;
        grid-template-columns: var(--quote-grid-columns);
        padding: 1px 7px;
        border: 1px solid transparent;
    }

    .quote-view.winDsh {
        padding: 5px 7px;
    }

    .quote-view.winDsh.small {
        padding: 0px 7px !important;
    }

    .quote-view.winDsh.medium {
        padding: 7px 7px !important;
    }

    .quote-view.winDsh.small.dynamic {
        padding: 3px 7px 7px 7px !important;
    }

    .quote-view.quote-view-gradient.winDsh.dynamic {
        padding: 4px 7px !important;
    }

    .sl-quote {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px!important;
        height: 100%;
        margin: 0px 16px;
        box-sizing: border-box;
        background-color:  var(--quote-view-background); 
        border-radius: 6px;
    }

    .sl-quote.small {
        width: 268px;
        display: grid;
        grid-column-gap: 8px;
        grid-template-columns: var(--small-spotlight-grid-columns);
        padding: 9px 12px !important;
        align-items: center;
    }

    .sl-title {
        display: grid;
        grid-template-columns: min-content auto;
        grid-gap: 6px;
        align-items: baseline;
        max-width: 244px;
        font-size: var(--type-ramp-plus-1-font-size, 16px);
        line-height: var(--type-ramp-plus-1-line-height, 22px);
        font-weight: 600;
        margin: 0;
        color: ${oe.CHi};
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .large .sl-title {
        font-size: var(--type-ramp-plus-2-font-size, 20px);
        line-height: var(--type-ramp-plus-2-line-height, 28px);
    }

    .sl-quote .sec-title-str {
        font-weight: 400;
        color: var(--standard-grey);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 120px;
    }

    .winDsh.wdrk.dark .sl-quote .sec-title-str {
        color: ${oe.Q5n};
    }

    .sl-quote.small .sec-title-str {
        font-weight: 600;
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
        color: ${oe.CHi}
    }

    .sl-quote .price-str {
        font-size: var(--type-ramp-plus-4-font-size, 28px);
        line-height: var(--type-ramp-plus-4-line-height, 36px);
    }

    .sl-quote.medium .change-button-area,
    .sl-quote.large .change-button-area {
        margin: 0 -2px;
        bottom: -6px;
        position: relative;
    }

    .sl-quote.small .price-str {
        font-weight: 600;
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }

    .sl-quote.large .price-str {
        font-weight: 600;
        font-size: var(--type-ramp-plus-5-font-size, 32px);
        line-height: var(--type-ramp-plus-5-line-height, 40px);
    }

    .sl-quote.large .change-values-percentage,
    .sl-quote.large .change-values-percentage-gradient {
        font-size: var(--type-ramp-plus-2-font-size, 20px);
        line-height: var(--type-ramp-plus-2-line-height, 28px);
    }

    .sl-price-row {
        display: grid;
        grid-template-columns: repeat(3, min-content);
        grid-gap: 8px;
        align-items: center;
        margin-bottom: 2px;
    }

    .sl-quote .notf-tx {
        font-weight: 600;
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
        padding: 0px 6px;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }

    .sl-quote.small .notf-tx {
        -webkit-line-clamp: 1;
    }

    .sl-quote.large .notf-tx {
        font-size: var(--type-ramp-plus-1-font-size, 16px);
        line-height: var(--type-ramp-plus-1-line-height, 22px);
    }

    .sl-quote .glcn {
        display: flex;
        align-items: center;
    }

    .sl-quote .glcn .notf-ic {
        line-height: 16px;
        padding: 0px;
    }

    .sl-quote .glcn .notf-ic svg {
        width: 16px;
        height: 16px;
    }

    .sl-quote.large .glcn .notf-ic {
        height: 20px;
    }

    .sl-quote.large .glcn .notf-ic svg {
        width: 20px;
        height: 20px;
    }

    .winDsh.quote-view:not(.quote-view-gradient):hover {
        border-radius: 2px;
    }

    .quote-view-gradient {
        background-color:  var(--quote-view-background); 
        border-radius: 6px;
        padding: 2px 7px;
        border: 1px solid transparent;
    }

    .quote-view-gradient:hover,
    .quote-view-gradient:active,
    .quote-view-gradient:${ph.b} {
        background-color:  var(--quote-view-hover-background); 
    }

    .quote-view-gradient {
        margin-bottom: 5px;
    }

    .quote-card-title-row {
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-gap: 8px;
        overflow: visible;
        align-items: center;
    }
    
    .quote-card-price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .title-content {
        font-size: ${oe.sNp};
        font-weight: 400;
        line-height: ${oe.vgC};
        color: ${oe.CHi};
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: var(--glance-card-title-max-lines, 1);
        word-break: break-all;
    }

    .glance-card-pct-change {
        font-size: ${oe.sNp};
    }

    .money-glance-card {
        width: 120px;
        height: 78px;
        flex-grow: 0;
        flex-shrink: 0;
        display: block;
        contain: content;
        content-visibility: auto;
        box-sizing: border-box;
        border-radius: 6px;
        margin-bottom: 0;
        border: 1px solid transparent;
        padding: 5px;
    }

    .see-more-card-link {
        text-decoration: none;
        outline-offset: -2px;
    }

    .see-more-card-link .money-glance-card {
        contain: inherit;
        content-visibility: inherit;
    }

    .see-more-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .see-more-icon {
        width: 28px;
        height: 28px;
    }

    .see-more-icon svg rect {
        fill: none;
        stroke: ${oe.Avx};
    }

    .see-more-icon svg path {
        fill: ${oe.Avx};
    }

    .see-more-icon span {
        width: 29px;
        height: 28px;
    }

    .see-more-text {
        margin-top: 4px;
        font-size: ${oe.sNp};
        font-weight: 400;
        line-height: ${oe.vgC};
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: ${oe.Avx};
    }

    @keyframes greenAnimation {
        from { background-color: rgba(0, 166, 86, 0.15); }
        to { background-color: transparent; }
    }

    @keyframes redAnimation {
        from { background-color: rgba(255, 99, 65, 0.15); }
        to { background-color: transparent; }
    }

    .hlt .change-button-area,
    .hlt .price {
        animation-duration: 2s;
        animation-iteration-count: 1;
    }

    .hltprc.qgreen .change-button-area,
    .hltprc.qgreen .price,
    .hltpct.qgreen .change-button-area,
    .hltpct.qgreen .price {
        animation-name: greenAnimation;
    }
    
    .hltprc.qred .change-button-area,
    .hltprc.qred .price,
    .hltpct.qred .change-button-area,
    .hltpct.qred .price {
        animation-name: redAnimation;
    }

    @keyframes notificationAnimation {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    .notf-tx.anim {
        animation-name: notificationAnimation;
        animation-duration: 1s;
        animation-iteration-count: 1;
    }

    .money-glance-card .notf-tx {
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
    }

    .chartGlanceCard.hide {
        display:none;
    }

    .watchlist-button {
        display: flex;
        width: 20px;
        height: 20px;
        padding: 0;
        border: none;
        background: transparent; 
        cursor: pointer;
        fill: ${oe.akT};
    }
    
    .winDsh .watchlist-button {
        fill: ${oe.Q5n};
    }

    .winDsh.dynamic .watchlist-button.filled {
        fill: ${oe.akT};
    }

    .winDsh .watchlist-button.watchlist-button-megrad,
    .watchlist-button-megrad {
        fill: ${oe.CHi};
    }

    .windf .watchlist-button-megrad {
        fill: currentColor;
    }
    
    .watchlist-button:hover path {
        fill: ${oe.Avx};
    }

    .windf.quote-row-gradient .watchlist-button:hover path {
        fill: ${oe.CHi};
    }

    .icn {
        display: flex;
    }

    .icn, 
    .icn img {
        width: 28px;
        height: 28px;
    }

    .icn img {
        object-fit: contain;
    }

    .if-container {
        width: var(--iframe-width);
        height: var(--iframe-height);
        position: absolute;
        margin-top: var(--overlay-vertical-offset);
        z-index: 100;
        border-radius: 6px;
        box-shadow: 0px 16px 32px rgba(0, 0, 0, 0.14);
    }

    iframe {
        border: 0;
        overflow-y: scroll;
        overflow-x: hidden;
        width: var(--iframe-width);
        height: var(--iframe-height);
        border-radius: 6px;
    }

    .details-overlay-btn {
        width: max-content;
        padding: 8px 20px;
        background: ${oe.Avx};
        color: white;
        border: none;
        cursor: pointer;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 20px;
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
    }

    .close-overlay-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        vertical-align: middle;
        position: absolute;
        top: 8px;
    }

    .close-overlay-btn svg {
        width: 12px;
        height: 12px;
    }

    .close-overlay-btn path {
        fill: #1A1A1A;
    }

    .hide-overlay {
        display: none;
    }

    ${Wg}
    
`.withBehaviors((0,hn.Uu)(Rg),new gh.O(Bg,Gg),(0,hn.vF)(re.i`
                :host {
                    forced-color-adjust: auto;
                }

                .title-link:hover {
                    text-decoration: underline;
                }

                .change-values,
                .quote-row:hover {
                    forced-color-adjust: none;
                    background: ${vn.H.ButtonFace}; 
                    box-shadow: 0 0 0
                        calc((var(--focus-outline-width) - var(--outline-width)) * 1px)
                        ${vn.H.LinkText};
                    
                }

                li.quote-row:hover button.change-values.winDsh,
                li.quote-row-gradient:hover button.change-values.winDsh {
                    background: transparent !important;
                }
            
                .quote-view,
                .quote-view-gradient {
                    background: ${vn.H.ButtonFace};
                    border: 1px solid ${vn.H.ButtonFace};
                }

                .quote-view:hover,
                .quote-view-gradient:hover {
                    background: ${vn.H.ButtonFace};
                    border: 1px solid ${vn.H.LinkText};
                }

                ::slotted(*[slot="option-button"]) {
                    fill: ${vn.H.ButtonText};
                }

                ::slotted([slot="option-button"]:hover) {
                    background: ${vn.H.Highlight};
                    fill: ${vn.H.HighlightText};
                }
            `));var Vg=i(41838),Zg=i.n(Vg),Jg='<svg width="20" height="20" viewBox="0 0 20 20" type="circle-add"><path d="M6 10c0-.28.22-.5.5-.5h3v-3a.5.5 0 0 1 1 0v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3A.5.5 0 0 1 6 10Z"/><path d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-1a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z"/></svg>',Xg='<svg width="20" height="20" viewBox="0 0 20 20" type="circle-completed"><path d="M10 1.67a8.33 8.33 0 1 1 0 16.66 8.33 8.33 0 0 1 0-16.66Zm2.68 5.8L8.96 11.2 7.32 9.56a.62.62 0 1 0-.89.88l2.09 2.09c.24.24.64.24.88 0l4.17-4.17a.62.62 0 1 0-.89-.89Z"/></svg>',Yg=i(545);const Kg=tg.Z,tp=eg.Z,ep=ig.Z,ip=ng.Z,np=og.Z,rp=rg.Z;var op=i(74475);const ap=Jt.d`
    <span class="notf-ic ${(t,e)=>t.getQuoteChangeNotfClass()}">
    ${(0,ch.g)((t=>t.currentNotificationType===x.PriceDrop),Jt.d`${ep}`)}
    ${(0,ch.g)((t=>t.currentNotificationType===x.PriceSpike),Jt.d`${ip}`)}
    ${(0,ch.g)((t=>{var e,i;return t.currentNotificationType===x.TechnicalIndicator&&(null===(i=null===(e=t.currentQuoteNotification)||void 0===e?void 0:e.notification)||void 0===i?void 0:i.signal)===C.Gainer}),Jt.d`${ip}`)}
    ${(0,ch.g)((t=>{var e,i;return t.currentNotificationType===x.TechnicalIndicator&&(null===(i=null===(e=t.currentQuoteNotification)||void 0===e?void 0:e.notification)||void 0===i?void 0:i.signal)===C.Loser}),Jt.d`${ep}`)}
    ${(0,ch.g)((t=>t.currentNotificationType===x.EarningRelease),Jt.d`${Kg}`)}
    ${(0,ch.g)((t=>t.currentNotificationType===x.InstitutionalHolding),Jt.d`${tp}`)}
    ${(0,ch.g)((t=>{var e,i;return t.currentNotificationType===x.Sentiment&&(null===(i=null===(e=t.currentQuoteNotification)||void 0===e?void 0:e.notification)||void 0===i?void 0:i.signal)===C.Loser}),Jt.d`${rp}`)}
    ${(0,ch.g)((t=>{var e,i;return t.currentNotificationType===x.Sentiment&&(null===(i=null===(e=t.currentQuoteNotification)||void 0===e?void 0:e.notification)||void 0===i?void 0:i.signal)===C.Gainer}),Jt.d`${np}`)}
    </span>
`,sp=Jt.d`
    <span class="notf-tx ${(t,e)=>t.getQuoteChangeNotfClass()} ${t=>t.config.enableNotificationAnimation?"anim":""}">${t=>t.getNotificationText()}</span>
`,lp=Jt.d`
    <span class="sec-tx">${t=>t.quote.displayName}</span>
`,cp=Jt.d`
    <div class="quote-title-container">
        <span class="quote-title" >
            <p class="quote-title-content">
                ${t=>t.quote.symbol}
                ${(0,ch.g)((t=>t.showNotificationText&&t.currentNotificationType),ap)}
            </p>
        </span>
        <span class="sec-title">
            <p class="${(t,e)=>t.getClass_secTitle()}">
                ${(0,ch.g)((t=>t.showNotificationText),sp)}
                ${(0,ch.g)((t=>!(t.showNotificationText||t.config.isDynamicFeed&&"small"===t.currentWidgetSize)),lp)}
            </p>
        </span>
    </div>
`,dp=Jt.d`
    <div class="quote-title-container">
        <span class="quote-title" >
            <p class="quote-title-content">
                ${t=>t.quote.symbol}
                ${(0,ch.g)((t=>t.showNotificationText&&t.currentNotificationType),ap)}
            </p>
        </span>
        <span class="sec-title">
            <p class="${(t,e)=>t.getClass_secTitle()}">
                ${sp}
            </p>
        </span>
    </div>
`,up=Jt.d`
    <div class="${t=>t.useGlanceCard?"chartGlanceCard":""} ${t=>t.showNotificationText?"hide":""}"
        style="${t=>t.getChartCntrStyle()}"
    >
        ${(0,ch.g)((t=>t.isChartDataReady),Jt.d`
            <msn-stock-chart 
                chart-id=${t=>t.chartId}
                width=${t=>t.chartWidth}
                height=${t=>t.chartHeight}
                fill-color=${t=>t.getChartFillColor()}
                baseline-color=${t=>t.getChartFillColor()}
                :skipTransform=${t=>t.isSpotlight}
                :prices=${t=>t.chartSeries}
                :baselinePrice=${t=>t.chartBaseline}
                :pricesMaxCount=${()=>B}
            />
        `)}
    </div>
`,hp=Jt.d`
    <div class="icn">
        ${(0,ch.g)((t=>!t.quote.iconUrl),Jt.d`
            ${op.Z}
        `)}
        ${(0,ch.g)((t=>t.quote.iconUrl),Jt.d`
            <img src="${t=>t.quote.iconUrl}"
                alt="${t=>t.quote.displayName}"
                loading=lazy
            />
        `)}
    </div>
`,gp=Jt.d`
    <div class="price">
        <span class="price-str ${(t,e)=>t.config.enableGradientStyles?"price-str-gradient":""}">
            ${t=>t.quote.price}
        </span>
    </div>
`,pp=Jt.d`
    <span class="${(t,e)=>t.getQuoteChangeClass()}"
        aria-label="${(t,e)=>t.getQuoteChangeAriaLabel()}"
    >
        <span class="change-button-area">
            <span class="change-values-percentage-gradient ${(t,e)=>t.useGlanceCard?"glance-card-pct-change":""}">
                &lrm;${t=>t.quote.changePcnt}&lrm;
            </span>
        </span> 
    </span>
`,fp=Jt.d`
    <div class="quote-title-container">
        ${gp}
        ${pp}
    </div>
`,mp=Jt.d`
    <div class="quote-title-container">
        ${pp}
        ${gp}
    </div>
`,vp=Jt.d`
    ${(0,ch.g)(((t,e)=>!t.config.shuffleDeltaFontSize),fp)}
    ${(0,ch.g)(((t,e)=>t.config.shuffleDeltaFontSize),mp)}
`,yp=Jt.d`
    <div class="${(t,e)=>t.getQuotePriceClass()}">
        ${gp}
    </div>
    <div class="change-values
            ${t=>t.getQuoteChangeClass()}
            ${t=>qi()?"winDsh":""}"
    >
        <span class="change-button-area">
            <span class="change-values-percentage">
                &lrm;${t=>t.quote.changePcnt}&lrm;
            </span>
        </span> 
    </div>
`,bp=Jt.d`
    ${(0,ch.g)(((t,e)=>t.config.enableGradientStyles),vp)}
    ${(0,ch.g)(((t,e)=>!t.config.enableGradientStyles),yp)}
`,wp=Jt.d`
    ${(0,ch.g)(((t,e)=>It(t.quote.id,t.watchlistQuoteDict)),Jt.d`
        <button class="watchlist-button filled" 
        tabindex="-1"
        title="${t=>t.strings.watchlistFooterText}"
        >
            ${Xg}
        </button>
    `)}
    ${(0,ch.g)(((t,e)=>!It(t.quote.id,t.watchlistQuoteDict)),Jt.d`
        <button class=${(t,e)=>t.getClass_addButton()}
            part=${(t,e)=>t.getClass_addButton()}
            tabindex="${t=>!t.useGlanceCard||t.isInCarouselView?"0":"-1"}"
            title="${t=>t.strings.watchlistTooltipText}"
            aria-label="${t=>t.strings.watchlistTooltipText}"
            @click="${(t,e)=>t.watchQuote(e.event)}"
            @keydown="${(t,e)=>t.onKeyDown(e.event,!0)}"
            data-t="${(t,e)=>{var i;return null===(i=t.telemetryContext)||void 0===i?void 0:i.addToWatchlistTags(t.quote.symbol,!1,!1)}}"
        >
            ${Jg}
        </button>
    `)}
`,xp=Jt.d`
    <div class=${t=>t.getClass_quoteItem()}
            title="${t=>t.quote.tooltipText}"
        >
            ${(0,ch.g)(((t,e)=>t.config.enableRotateNotf),dp)}
            ${(0,ch.g)((t=>t.showInlineQuoteIcon),hp)}
            ${(0,ch.g)(((t,e)=>!t.config.enableRotateNotf),cp)}
            ${(0,ch.g)((t=>t.config.enableInlineStockChart),up)}
            ${bp}
            ${wp}
    </div>
`,Cp=Jt.d`
<button class="close-overlay-btn"
    tabindex="${t=>t.showOverlay?"0":"-1"}"
    title="${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.closeTooltipText}}"
    aria-label="${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.closeTooltipText}}"
    @click="${(t,e)=>t.toggleOverlay(e.event)}"
    @keydown="${(t,e)=>t.onKeyDown(e.event,!1,!0)}"
    data-t="${t=>{var e,i;return null===(e=t.telemetryContext)||void 0===e?void 0:e.getCloseOverlayTags(null===(i=t.quote)||void 0===i?void 0:i.symbol)}}"
>
        ${Yg.Z}
</button>
`,Tp=Jt.d`
<button class="details-overlay-btn"
    tabindex="${t=>t.showOverlay?"0":"-1"}"
    title="${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.seeDetailsButton}}"
    aria-label="${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.seeDetailsButton}}"
    @click="${(t,e)=>t.openLink(e.event)}"
    @keydown="${(t,e)=>t.onKeyDown(e.event)}"
    data-t="${t=>{var e,i;return null===(e=t.telemetryContext)||void 0===e?void 0:e.getSeeDetailsOverlayTags(null===(i=t.quote)||void 0===i?void 0:i.symbol,ft(t.quote))}}"
>
        ${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.seeDetailsButton}}
</button>
`,$p=Jt.d`
    <div
        class="if-container ${t=>t.showOverlay?"":"hide-overlay"}"
        style="${t=>t.getOverlayStyle()}"
        data-t="${t=>{var e,i;return null===(e=t.telemetryContext)||void 0===e?void 0:e.getQuoteOverlayTags(null===(i=t.quote)||void 0===i?void 0:i.symbol)}}"
        ${(0,Bu.i)("overlayElement")}
    >
        ${Cp}
        ${Tp}
        <iframe
            src="${t=>t.overlaySrcUri}"
        />
    </div>
`,kp=Jt.d`
    <div class="${(t,e)=>t.config.enableGradientStyles?"quote-row-gradient":"quote-row"} 
                ${t=>t.config.disableDarkMode?"":"wdrk"} 
                ${t=>t.config.isDynamicFeed?"windf":""} 
                ${t=>t.isDarkModeTheme?"dark":""}
                ${t=>an(t.config,t.overlaySrcUri)&&t.showOverlay?"overlay-active":""}
                " 
        tabindex="0"
        role="link"
        aria-label="${t=>t.getQuoteRowAriaLabel()}"
        title="${t=>t.quote.tooltipText}"
        @click="${(t,e)=>an(t.config,t.overlaySrcUri)?t.toggleOverlay(e.event):t.openLink(e.event)}"
        @keydown="${(t,e)=>t.onKeyDown(e.event,!1,an(t.config,t.overlaySrcUri))}"
        data-t="${t=>t.quote.telemetryTags}"
        ${(0,Bu.i)("itemElement")}
    >
        ${xp}
    </div>`,Ip=Jt.d`
    <a class="${t=>t.config.disableDarkMode?"":"wdrk"} ${t=>t.isDarkModeTheme?"dark":""} see-more-card-link"
        tabindex="${t=>t.isInCarouselView?"0":"-1"}"
        aria-label="${t=>t.getSeeMoreGlanceCardTitle()}"
        href="${t=>t.navUrl}"
        target=${t=>t.openLinkTarget}
        data-t="${(t,e)=>{var i;return null===(i=t.telemetryContext)||void 0===i?void 0:i.footerLinkClickTelemetryTags}}"
        title="${t=>t.getSeeMoreGlanceCardTitle()}"
    >
        <div class="${t=>t.getClass_basicQuoteItem()}">
            <div class="see-more-container">
                <div class="see-more-icon">
                    <span aria-hidden="true" role="presentation">
                        ${'<svg width="29" height="28" viewBox="0 0 29 28"><rect x="1" y=".5" width="27" height="27" rx="13.5"/><path d="M9 13.5a.5.5 0 0 0 0 1h9.7l-4.03 3.63a.5.5 0 0 0 .66.74l5-4.5a.5.5 0 0 0 0-.74l-5-4.5a.5.5 0 1 0-.66.74l4.03 3.63H9Z"/></svg>'}
                    </span>
                </div>
                <div class="see-more-text">${t=>t.strings.seeMore}</div>
            </div>
        </div>
    </a>
`,Sp=Jt.d`
    <div class="quote-card-title-row">
        <div class="title-content">
            ${t=>t.useSymbolTitle()?t.quote.symbol:t.quote.displayName}
        </div>
        ${wp}
    </div>
`,Lp=Jt.d`
    <div class="quote-card-price-row">
        ${gp}
        ${pp}
    </div>
`,Mp=Jt.d`
    <div class="glcn">
        ${ap}
        ${sp}
    </div>
`,_p=Jt.d`
    <div class="${t=>t.getClass_quoteItem()}">
        ${Sp}
        ${Lp}
        ${(0,ch.g)((t=>t.showNotificationText),Mp)}
        ${up}
    </div>
`,Dp=Jt.d`
    <div class="${t=>t.config.disableDarkMode?"":"wdrk"} 
                ${t=>t.isDarkModeTheme?"dark":""}
                "
        role="link"
        tabindex="${t=>t.isInCarouselView?"0":"-1"}"
        aria-label="${t=>t.getQuoteRowAriaLabel()}"
        title="${t=>t.quote.tooltipText}"
        @click="${(t,e)=>t.openLink(e.event)}"
        @keypress="${(t,e)=>t.onKeyDown(e.event)}"
        data-t="${t=>t.quote.telemetryTags}"
    >
        ${_p}
    </div>
`,Fp=Jt.d`
    <p class="sl-title">
        ${t=>t.quote.symbol}
        <span class="sec-title-str">
            ${t=>t.quote.displayName}
        </span>
    </p>
`,Ap=Jt.d`
    <div class="sl-price-row">
        ${(0,ch.g)((t=>t.isSpotlightCurr&&!t.currencyData),hp)}
        ${gp}
        ${pp}
    </div>
`,Op=Jt.d`
    ${(0,ch.g)((t=>t.isSpotlightCurr),hp)}
    <div class="sl-sm-left">
        <div class="sec-title-str">
            ${t=>t.isSpotlightCurr?t.quote.symbol:t.quote.displayName}
        </div>
        <div>
            ${(0,ch.g)((t=>t.currentQuoteNotification),Jt.d`${t=>t.isSpotlightCurr?sp:Mp}`)}
        </div>
    </div>
    ${(0,ch.g)((t=>!t.isSpotlightCurr&&t.config.enableSmallSpotlightChart),up)}
    <div class="sl-sm-right">
        ${gp}
        ${pp}
    </div>
`,Pp=(t,e)=>Jt.d`
    ${()=>t?Jt.d`
        <img src="${e=>t}"
            alt="${t=>e}"
            class="curr-icon"
            loading=lazy
        />
    `:Jt.d`
        ${op.Z}
    `}
`,qp=Jt.d`
    <div class="curr-info">
        <div class="from">
            <div class="curr-top">
                ${t=>Pp(t.currencyData.from.iconUrl,t.currencyData.from.displayName)}
                <span class="sl-cur-name">${t=>t.currencyData.from.shortName}</span>
            </div>
            <div class="sec-title-str">
                ${t=>t.currencyData.from.displayName}
            </div>
        </div>
        <div class="curr-arr">
            ${Zg()}
        </div>
        <div class="to">
            <div class="curr-top">
                ${t=>Pp(t.currencyData.to.iconUrl,t.currencyData.to.displayName)}
                <span class="sl-cur-name">${t=>t.currencyData.to.shortName}</span>
            </div>
            <div class="sec-title-str">
                ${t=>t.currencyData.to.displayName}
            </div>
        </div>
    </div>
`,Np=Jt.d`
    <p class="sl-title sl-title-curr">
        <span class="sl-cur-name">${t=>t.quote.displayName}</span>
        <span class="sec-title-str">
            ${t=>t.quote.symbol}
        </span>
    </p>
`,Hp=Jt.d`
    <div>
        ${(0,ch.g)((t=>t.isSpotlightCurr),Jt.d`
            ${t=>t.currencyData?Jt.d`
                ${qp}
            `:Jt.d`
                ${Np}
            `}
        `)}
        ${(0,ch.g)((t=>!t.isSpotlightCurr),Fp)}
        ${()=>Ap}
        ${(0,ch.g)((t=>t.currentQuoteNotification),Mp)}
    </div>
    ${up}
`,zp=Jt.d`
    <div
        class="sl-quote
            ${t=>qi()?"winDsh":""}
            ${t=>t.isSpotlightCurr?"curr":""}
            ${t=>t.config.disableDarkMode?"":"wdrk"}
            ${t=>t.isDarkModeTheme?"dark":""}
            ${t=>t.currentWidgetSize}
        "
        role="link"
        tabindex="${t=>t.isInCarouselView?"0":"-1"}"
        aria-label="${t=>t.getQuoteRowAriaLabel()}"
        title="${t=>t.quote.tooltipText}"
    >
        ${(0,ch.g)((t=>"small"===t.currentWidgetSize),Op)}
        ${(0,ch.g)((t=>"small"!==t.currentWidgetSize),Hp)}
    </div>
`,Qp=Jt.d`
    ${(0,ch.g)((t=>t.isSpotlight),Jt.d`${zp}`)}
    ${(0,ch.g)((t=>!t.isSpotlight),Jt.d`
        ${(0,ch.g)((t=>t.quote&&!t.useGlanceCard),Jt.d`
            ${kp}
            ${(0,ch.g)((t=>an(t.config,t.overlaySrcUri)),$p)}
        `)}
        ${(0,ch.g)((t=>t.quote&&t.useGlanceCard),Jt.d`
            ${Dp}
        `)}
        ${(0,ch.g)((t=>t.useGlanceCard&&t.isSeeMoreGlanceCard),Jt.d`
            ${Ip}
        `)}
        `)}
`;let Ep=class extends Eg{};Ep=(0,f.gn)([(0,Yd.M)({name:"money-card-quote-item",template:Qp,styles:Ug,shadowOptions:{delegatesFocus:!0}})],Ep);class jp extends Yd.H{constructor(){super(...arguments),this.watchlistQuoteDict={},this.currentOverlayIndex=-1,this.showOverlayCallback=(t,e)=>{this.currentOverlayIndex=e}}connectedCallback(){super.connectedCallback(),this.showInlineQuoteIcon=this.showInlineIcon()}isInlineIconEnabled(){return!!this.config.enableInlineQuoteIcon&&(!!this.config.enableAllQuotesIcon||(!(!nn(this.cardType)&&!Wi(this.dataFrom))||(this.dataFrom===g.Crypto||this.dataFrom===g.Currencies)))}shouldShowIcon(){var t,e;let i=(null===(t=this.quoteItems)||void 0===t?void 0:t.length)?this.quoteItems.filter((t=>Ot(null==t?void 0:t.iconUrl))).length:0;return i+=this.dataFrom===g.Watchlist&&(null===(e=this.recommendedQuoteItems)||void 0===e?void 0:e.length)?this.recommendedQuoteItems.filter((t=>Ot(null==t?void 0:t.iconUrl))).length:0,i>=this.config.maxNumberOfQuotes-2}showInlineIcon(){return this.isInlineIconEnabled()&&this.shouldShowIcon()}getCardLayout(){return this.cardLayout===ye.NV.half?"half":null}getSuggestionDivider(){var t,e;return"half"===this.getCardLayout()?null:this.quoteItems.length>0&&(null===(t=this.recommendedQuoteItems)||void 0===t?void 0:t.length)>0?"More":0===this.quoteItems.length&&(null===(e=this.recommendedQuoteItems)||void 0===e?void 0:e.length)>2?"Start":null}getChartData(t){return this.charts?this.charts[ft(t)]:null}getTabForTelemetry(){return this.isShowSuggestedTitle()?g.Suggested:this.dataFrom}onClickOnTab(t){if(!t)return!0;const e=t.target;if(!e)return!0;if(this.navUrl===e.href)return!0;const i=e.getAttribute("class");return!i||((i.includes("money-card-quote-page")||i.includes("quote-section")||i.includes("sqis-container")||i.includes("quote-carousel-container"))&&(rt.M0.sendActionEvent(t.currentTarget,be.Aw.Click,be.wu.Navigate,this.navUrl),window.open(this.navUrl,this.openLinksInNewTab?"_blank":"_self")),!0)}isShowSuggestedTitle(){return Yi(this.dataFrom,this.watchlistQuoteDict)===g.Suggested}getNavDisplayText(t){const e=t?Tt(this.dataFrom):$t(this.dataFrom);return t&&this.dataFrom===g.Watchlist&&0===this.quoteItems.length?this.strings.suggestedForYouText:this.strings[e]}getTitleText(){const t=Hi(this.config,this.dataFrom,this.cardType);return this.isShowSuggestedTitle()?this.strings.suggestedForYouText:this.strings[t]}getFooterText(){var t;let e=ji(this.config,this.dataFrom);const i=this.dataFrom===g.Watchlist,n=(null===(t=this.quoteItems)||void 0===t?void 0:t.length)>this.config.maxNumberOfQuotes;return i&&n&&(e="fullWatchlistFooterText"),this.strings[e]}watchQuote(t,e){t.stopPropagation(),this.watchQuoteCallback(t,e),rt.M0.sendActionEvent(t.currentTarget)}getQuoteColor(t,e,i,n,r){return e?r:this.config.swapGainLossColor?t?i:n:t?n:i}getQuotePriceClass(t){return`quote-title-container ${this.getQuoteAnimation(t)}`}getQuoteAnimation(t){return this.config.highlightQuoteChange?(null==t?void 0:t.priceChange)>0?this.getQuoteAnimation_gain():(null==t?void 0:t.priceChange)<0?this.getQuoteAnimation_lose():"":""}getQuoteAnimation_gain(){return this.config.swapGainLossColor?"quoteRedAnimation":"quoteGreenAnimation"}getQuoteAnimation_lose(){return this.config.swapGainLossColor?"quoteGreenAnimation":"quoteRedAnimation"}getQuoteChangeAriaLabel(t,e,i){return this.showChangeValue?`${t} ${e} ${i}`:`${i} ${e} ${t}`}getQuoteGridColumns(){let t=this.config.enableGradientStyles&&!this.config.enableInlineStockChart?3:4;t=this.showInlineQuoteIcon?t+1:t;const e=(this.config.isDynamicFeed?298:300)-24-24-8*(t-1),i=20,n=this.config.enableInlineStockChart?44:0,r=this.showInlineQuoteIcon?27:0,o=this.config.enableGradientStyles?0:56+4*(this.maxChangeStringLength-6),a=8*this.maxValueStringLength;return`--quote-grid-columns: ${[r,e-a-o-i-n-r,n,a,o,i].filter((t=>t>0)).map((t=>`${t}px`)).join(" ")}`}getClass_addButton(){return`watchlist-button ${Pi(this.config,"watchlist-button")}`}getClass_dividerAddButton(){return`vertical-span-svg ${Pi(this.config,"vertical-span-svg")}`}getClass_wLine(){const t=this.config.enableNoSuggestionDividerBorder?"no-sugg-dvdr-w-box":"no-sugg-dvdr-cntr-w-line";return`${t} ${Pi(this.config,t)}`}getShowOverlay(t){return on(this.config)&&this.currentOverlayIndex===t}}(0,f.gn)([_i.LO],jp.prototype,"quoteItems",void 0),(0,f.gn)([_i.LO],jp.prototype,"recommendedQuoteItems",void 0),(0,f.gn)([_i.LO],jp.prototype,"watchlistQuoteDict",void 0),(0,f.gn)([_i.LO],jp.prototype,"currentWidgetSize",void 0),(0,f.gn)([_i.LO],jp.prototype,"charts",void 0),(0,f.gn)([_i.LO],jp.prototype,"isDarkModeTheme",void 0),(0,f.gn)([_i.LO],jp.prototype,"showInlineQuoteIcon",void 0),(0,f.gn)([_i.LO],jp.prototype,"currentOverlayIndex",void 0);const Wp=re.i`
    .card-options {
        right: 10px;
    }
`,Rp=re.i`
    .card-options {
        position: absolute;
        left: 10px;
    }
`,Bp=re.i`
    .wdrk .footer-link-gradient, .wdrk .footer-link-megrad {
        color: ${oe.CHi};
    }

    .wdrk.winDsh .footer-link {
        color: #99EBFF; /* the same color as in weather card */
    }
`,Gp=(0,hn.Uu)(Bp),Up=re.i`
    .title-link {
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        cursor: pointer;
        text-decoration: none;
        letter-spacing: 0.7px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 16px;
        color: ${oe.Q5n};
        outline: none;
    }

    .title-link-gradient {
        color: ${oe.CHi};
        padding: 16px 16px 12px 16px;
    }
    
    .title-link-text {
        display: inline-block;
        vertical-align: top;
        max-width: 220px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .title-chevron {
      vertical-align: middle;
      background-color: transparent;
    }
    
    .title-chevron path {
        fill: ${oe.CHi};
    }

    .quote-section-gradient {
        padding-bottom: 7px;
    }

    .windf .quote-section-gradient {
        padding: 12px 0;
    }

    .winDsh .footer-link {
        height: auto;
        line-height: 1em;
        padding: 4px 24px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 1em; // --sequence-indicator-padding not apply to Prong2
    }

    .footer-link {
        font-size: ${oe.cSu}; 
        border-radius: 20px;
        vertical-align: middle;
        text-align: center;
        padding: 0 0 12px;
        margin-bottom: var(--sequence-indicator-padding);     
        letter-spacing: 0.3px;
        color: ${oe.goi};
        text-decoration: none;
        margin-right:auto;
        margin-left:auto;
        max-width: calc(100% - 60px);
    }

    .winDsh .footer-link:hover {
        text-decoration: underline;
    }

    .footer-link-gradient:hover,
    .footer-link-gradient:active,
    .footer-link-gradient:${ph.b},
    .footer-link-megrad:hover,
    .footer-link-megrad:active,
    .footer-link-megrad:${ph.b} {
        background-color:  var(--footer-link-hover-background); 
    }
    
    .footer-link-gradient, .footer-link-megrad {
        background-color:  var(--footer-link-background);
        color: ${oe.CHi};
        font-size: ${oe.cSu}; 
        border-radius: 20px;
        vertical-align: middle;
        padding: 4px 24px;
        margin-right:auto;
        margin-left:auto;
        margin-bottom: 24px;
        max-width: calc(100% - 84px);
    }

    .footer-link-bold {
        font-weight: bold;
    }

    .footer-link-caps {
        text-transform: uppercase;
    }
    
    .sugg-dvdr-cntr {
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        padding: 8px 16px;
        letter-spacing: 0.7px;
        color: ${oe.Q5n};
        font-weight: 600;
    }

    .winDsh .sugg-dvdr-cntr {
        padding: 8px 16px 8px 24px;
    }

    .sugg-dvdr-cntr-gradient {
        color: ${oe.CHi};
    }

    .no-sugg-dvdr-cntr {
        box-sizing: border-box;
        text-align: center;
        padding: 4px;
        margin: 2px;
        width: 100%;
    }

    .no-sugg-dvdr-cntr-w-line::before, .no-sugg-dvdr-cntr-w-line::after {
        content: '';
        display: inline-block;
        width: 100%;
        height: 1px;
        position: absolute;
        background: ${oe.akT};
        top: 50%;
    }

    .winDsh .no-sugg-dvdr-cntr-w-line::before, .winDsh .no-sugg-dvdr-cntr-w-line::after {
        background: ${oe.Q5n};
    }

    .no-sugg-dvdr-cntr-w-line::before {
        margin-left: -10px;
        transform: translateX(-100%);
    }

    .no-sugg-dvdr-cntr-w-line::after{
        margin-left: 10px;
    }

    /* only for medium gradient */
    .no-sugg-dvdr-cntr-w-line-megrad::before, .no-sugg-dvdr-cntr-w-line-megrad::after {
        background: ${oe.goi};
    }

    /* only for default gradient */
    .no-sugg-dvdr-cntr-gradient {
        color: ${oe.CHi};
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
    }
    
    .no-sugg-dvdr-cntr-w-line {
        padding: 2px 4px;
        position: relative;
        overflow: hidden;
        margin: 2px 24px;
        width: 252px;
    }

    .no-sugg-dvdr-w-box {
        padding: 4px;
        position: relative;
        overflow: hidden;
        margin: 0 20px 4px;
        width: 260px;
        border-radius: 6px;
        border: 1px solid ${oe.akT};
        font-size: 12px;
    }

    .vertical-span, .vertical-span-svg {
        vertical-align: middle;
        display: inline-block;
    }

    .vertical-span-svg {
        height: 20px;
    }

    .vertical-span-svg path {
        fill: ${oe.akT};
    }

    .winDsh .vertical-span-svg path {
        fill: ${oe.Q5n};
    }

    .vertical-span-svg-megrad path {
        fill: ${oe.goi};
    }
    
    .money-card-quote-page {
        min-height: 100%;
        display: grid;
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        cursor: pointer;
        outline: none;
    }

    .money-card-quote-page:not(.noHdr) {
        grid-template-rows: auto 1fr auto;
    }

    .money-card-quote-page.noHdr {
        align-items: start;
        grid-template-rows: 1fr auto;
    }

    /* change styles when disable footer for .money-card-quote-page */
    .noFtr {
        align-items: start;
        grid-template-rows: auto 1fr;
    }

    .money-card-quote-page.grdt {
        min-height: 0;
        height: 100%;
    }

    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    .quote-list {
        display: grid;
        quote-grid-columns: var(--quote-grid-columns);
    }

    .winDsh.money-card-quote-page .quote-list-disSugDiv {
        padding: 0;
    }
    
    .quote-row {
        cursor: pointer;
        text-decoration: none;
        padding: 0 16px;
    }

    .quote-row.no-crsl {
        padding: 0 12px;
    }

    .quote-row-gradient {
        cursor: pointer;
        text-decoration: none;
        padding: 0 16px;
    }

    .quote-row:hover .quote-view {
        background: ${oe.QpD};
    }

    .quote-title-content {
        display: flex;
        align-items: center;
        color: ${oe.CHi};
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        margin: 0;
        font-size: ${oe.cSu};
        line-height: ${oe.RUt};
    }

    .notf-ic {
        height: 16px;
        padding-left: 4px;
    }

    .sec-title-str {
        color: ${oe.Q5n};
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
    }

    .sec-title-str-gradient {
        color: ${oe.CHi};
    }

    .price {
        align-items: center;
        justify-content: flex-end;
        display: flex;
    }

    .price-str {
        color: ${oe.CHi};
        font-weight: 600;
        font-size: ${oe.cSu};
        line-height: ${oe.RUt};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .price-str-gradient {
        color: ${oe.CHi};
        font-weight: 600;
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .change-values {
        height: 20px;
        font-family: ${oe.SVJ};
        border-radius: 4px;
        border: 0;
        padding: 0;
        cursor: pointer;
        outline: none;
    }

    .change-values:focus-visible {
        outline-color: ${oe.CHi};
        outline-width: 1px;
        outline-style: auto;
    }

    .change-button-area {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .change-values-percentage {
        display: flex;
        font-size: ${oe.cSu};
        line-height: ${oe.RUt};
        font-weight: 600;
        text-align: end;
        height:20px;
        justify-content: flex-end;
        align-items: center;
    }

    .change-values-percentage-gradient {
        display: flex;
        font-size: ${oe.cSu};
        line-height: ${oe.vgC};
        font-weight: 600;
        text-align: end;
        height:20px;
        justify-content: flex-end;
        align-items: center;
    }

    .quote-view {
        align-items: center;
        display: grid;
        grid-column-gap: 8px;
        grid-template-columns: var(--quote-grid-columns);
        padding: 2px 8px;
    }

    .quote-view-gradient {
        background-color:  var(--quote-view-background); 
        border-radius: 6px;
        padding: 3px 8px;
    }

    .quote-view-gradient:hover,
    .quote-view-gradient:active,
    .quote-view-gradient:${ph.b} {
        background-color:  var(--quote-view-hover-background); 
    }

    .quote-list>.quote-row-gradient ~.quote-row-gradient>.quote-view-gradient{
        margin-top: 5px;
    }

    .EarningRelease .notf-tx, .InstitutionalHolding .notf-tx, .Sentiment .notf-tx {
        color: #0078D4;
    }

    .PriceDrop .notf-tx {
        color: rgb(255, 99, 65);
    }

    .PriceSpike .notf-tx{
        color: rgb(0, 166, 86);
    }

    .watchlist-button {
        display: flex;
        width: 20px;
        height: 20px;
        padding: 0;
        border: none;
        background: transparent; 
        cursor: pointer;
        fill: ${oe.akT};
    }

    .watchlist-button-megrad {
        fill: ${oe.CHi};
    }

    .watchlist-button:hover path {
        fill: ${oe.Avx};
    }

    @keyframes quote-red-animation {
        from { background-color: #F7DBD7; }
        to { background-color: transparent; }
    }

    .quoteRedAnimation {
        animation-name: quote-red-animation;
        animation-duration: 2s;
        animation-iteration-count: 1;
    }

    @keyframes quote-green-animation {
        from { background-color: #D2EEDA; }
        to { background-color: transparent; }
    }

    .quoteGreenAnimation {
        animation-name: quote-green-animation;
        animation-duration: 2s;
        animation-iteration-count: 1;
    }
    
`.withBehaviors(Gp,new gh.O(Wp,Rp),(0,hn.vF)(re.i`
            :host {
                forced-color-adjust: auto;
            }

            .title-link:hover, .footer-link:hover {
                text-decoration: underline;
            }

            .change-values,
            .quote-row:hover {
                forced-color-adjust: none;
                background: ${vn.H.ButtonFace}; 
                box-shadow: 0 0 0
                    calc((${oe.vxp} - ${oe.Han}) * 1px)
                    ${vn.H.LinkText};
                color: ${vn.H.ButtonText};
            }

            /* The border is needed in high contrast mode */
            .footer-link {
                padding: 4px 16px;
                border: 1px solid ${vn.H.LinkText}; 
                border-radius: 20px;
                cursor: pointer;
                margin-right: auto;
                margin-left: auto;
                margin-bottom: 24px;
                max-width: 90%;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                z-index: 3;
                box-sizing: border-box;
                color: ${vn.H.ButtonText};
            }

            ::slotted(*[slot="option-button"]) {
                fill: ${vn.H.ButtonText};
            }

            ::slotted([slot="option-button"]:hover) {
                background: ${vn.H.Highlight};
                fill: ${vn.H.HighlightText};
            }
        `)),Vp=Jt.d`
<li>    
    <money-card-quote-item 
        :config=${(t,e)=>e.parent.config}
        :strings=${(t,e)=>e.parent.strings}
        :openLinkTarget=${(t,e)=>e.parent.openLinkTarget}
        :openLinksInNewTab=${(t,e)=>e.parent.openLinksInNewTab}
        :maxChangeStringLength=${(t,e)=>e.parent.maxChangeStringLength}
        :maxValueStringLength=${(t,e)=>e.parent.maxValueStringLength}
        :dataFrom=${(t,e)=>e.parent.dataFrom}
        :telemetryContext=${(t,e)=>e.parent.telemetryContext}
        :watchQuoteCallback=${(t,e)=>e.parent.watchQuoteCallback}
        :watchlistQuoteDict=${(t,e)=>e.parent.watchlistQuoteDict}
        :quote=${t=>t}
        :currentWidgetSize=${(t,e)=>e.parent.currentWidgetSize}
        :chartData=${(t,e)=>e.parent.getChartData(t)}
        :chartWidth=${()=>45}
        :chartHeight=${()=>30}
        :isDarkModeTheme=${(t,e)=>e.parent.isDarkModeTheme}
        :showInlineQuoteIcon=${(t,e)=>e.parent.showInlineQuoteIcon}
        :cardType=${(t,e)=>e.parent.cardType}
        :showOverlay=${(t,e)=>e.parent.getShowOverlay(e.index)}
        :overlaySrcUri=${(t,e)=>Nt(t)}
        :showOverlayCallback=${(t,e)=>e.parent.showOverlayCallback}
        :index=${(t,e)=>on(e.parent.config)?e.index:void 0}
    />
</li>
`,Zp=Jt.d`
    <div class="sugg-dvdr-cntr
        ${(t,e)=>t.config.enableGradientStyles?"sugg-dvdr-cntr-gradient":""}
        ${(t,e)=>{var i;return(null===(i=e.parent)||void 0===i?void 0:i.enableAddIconToStartWatchlist)?"w-line":""}}"
    >
        <span>${t=>t.strings.suggestedForYouText}</span>
    </div>
`,Jp=Jt.d`
    <div class="no-sugg-dvdr-cntr ${t=>t.getClass_wLine()}">
        ${(0,ch.g)((t=>t.config.enableAddIconToStartWatchlist),Jt.d`
            <span class="vertical-span">${t=>t.strings.addToWatchlistWithIconText.split("{icon}")[0]}</span>
            <span class=${t=>t.getClass_dividerAddButton()}>${Jg}</span>
            <span class="vertical-span">${t=>t.strings.addToWatchlistWithIconText.split("{icon}")[1]}</span>
        `)}
        ${(0,ch.g)((t=>!t.config.enableAddIconToStartWatchlist),Jt.d`<span>${t=>t.strings.suggestedForYouText}</span>`)}
    </div>
`,Xp=Jt.d`
    <ul class="quote-list ${t=>t.config.disableSuggestedDivider&&"half"!==t.getCardLayout()?"quote-list-disSugDiv":""}"> 
        ${(0,wh.rx)((t=>t.quoteItems),Vp,{positioning:!0})} 
    </ul>
`,Yp=Jt.d`
    <ul class="quote-list ${t=>t.config.disableSuggestedDivider&&"half"!==t.getCardLayout()?"quote-list-disSugDiv":""}"> 
        ${(0,wh.rx)((t=>t.quoteItems),Vp)} 
    </ul> 
`,Kp=Jt.d`
    <ul class="quote-list ${t=>t.config.disableSuggestedDivider&&"half"!==t.getCardLayout()?"quote-list-disSugDiv":""}">
        ${(0,wh.rx)((t=>t.recommendedQuoteItems),Vp)}        
    </ul>
`,tf=Jt.d`
    ${(0,ch.g)((t=>t.quoteItems.length>=0),Yp)}
    ${(0,ch.g)((t=>{var e;return(null===(e=t.recommendedQuoteItems)||void 0===e?void 0:e.length)>=0}),Jt.d`
        ${(0,ch.g)((t=>!t.config.disableSuggestedDivider),Jt.d`
            ${(0,ch.g)((t=>"Start"===t.getSuggestionDivider()),Jp)}
            ${(0,ch.g)((t=>"More"===t.getSuggestionDivider()),Zp)}
            
        `)}
        ${Kp}
    `)}
`,ef=Jt.d`
    <a class="title-link ${t=>t.config.enableGradientStyles?"title-link-gradient":""}"
        href=${t=>t.navUrl}
        target=${t=>t.openLinkTarget}
        data-t="${(t,e)=>{var i;return null===(i=t.telemetryContext)||void 0===i?void 0:i.headerLinkClickTelemetryTags}}"
    >
        <span class="title-link-text"
        tabindex="0"
        title=${t=>t.getTitleText()}
        >${t=>t.getTitleText()}</span>
        ${(0,ch.g)((t=>t.config.enableGradientStyles),Jt.d`<span class="title-chevron">${Dh}</span>`)}
    </a>
`,nf=Jt.d`
    <a class="footer-link
        ${t=>Pi(t.config,"footer-link",t.config.isDynamicFeed)}
        ${t=>t.config.enableCapFooterText?"footer-link-caps":""}
        ${t=>t.config.enableBoldFooterText?"footer-link-bold":""}"
        href="${t=>t.navUrl}"
        target=${t=>t.openLinkTarget}
        data-t="${(t,e)=>{var i;return null===(i=t.telemetryContext)||void 0===i?void 0:i.footerLinkClickTelemetryTags}}"
        title="${t=>t.getFooterText()}"
        >
        ${t=>t.getFooterText()}
    </a>
`,rf=Jt.d`
    <div class="money-card-quote-page 
            ${t=>t.config.enableGradientStyles?"grdt":""}
            ${t=>t.config.disableHeader?"noHdr":""}
            ${t=>t.config.isDynamicFeed?"windf":""}
            ${t=>t.config.disableFooter?"noFtr":""}
            ${t=>t.config.disableDarkMode?"":"wdrk"}
            ${t=>qi()?"winDsh":""}
            ${t=>t.config.enableFullCarousel?"":"no-crsl"}
            ${t=>t.config.enableInlineNotifications?"notf":""}"
        style=${t=>t.getQuoteGridColumns()}
        @click=${(t,e)=>t.onClickOnTab(e.event)}
        data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.getTabShownTags(t.getTabForTelemetry())}}"
    >
        ${(0,ch.g)((t=>!t.config.disableHeader),ef)}
        <div class="quote-section ${t=>t.config.enableGradientStyles?"quote-section-gradient":""}">
            ${(0,ch.g)((t=>t.dataFrom===g.Watchlist),tf)}
            ${(0,ch.g)((t=>t.dataFrom!==g.Watchlist),Jt.d`
                ${(0,ch.g)((t=>!on(t.config)),Yp)}
                ${(0,ch.g)((t=>on(t.config)),Xp)}
            `)}
        </div>
        ${(0,ch.g)((t=>!t.config.disableFooter),nf)}
    </div>
`;let of=class extends jp{};of=(0,f.gn)([(0,Yd.M)({name:"money-card-quote-list-tab",template:rf,styles:Up,shadowOptions:{delegatesFocus:!0}})],of);class af extends of{constructor(){super(...arguments),this.cardWidth=300,this.quoteItemWidth=120,this.learnItemWidth=244,this.firstMiniCardMargin=16,this.activePageIndex=0,this.maxPageIndex=-1,this.slideCount=0,this.numberOfFullSlidesVisibleInCarousel=0,this.sequenceIndicators=[]}get isCryproLearn(){var t;return Boolean(null===(t=this.learnItems)||void 0===t?void 0:t.length)}get slideWidth(){return this.isCryproLearn?this.learnItemWidth:this.quoteItemWidth}handleChange(){this.direction=oe.o7V.getValueFor(this)}connectedCallback(){super.connectedCallback(),this.direction=oe.o7V.getValueFor(this),oe.o7V.subscribe(this)}isFlyoutOpenChanged(t,e){e&&this.sequenceIndicators.length&&(this.updateScrAnimTimeout(),this.shiftCarousel(0,!1))}updateScrAnimTimeout(){this.scrAnimTimeout&&clearTimeout(this.scrAnimTimeout),this.isScrAnimDisabled=!0,this.scrAnimTimeout=setTimeout((()=>{this.isScrAnimDisabled=!1}),100)}getFirstMiniCardMargin(){return this.direction===Hg.N.rtl?`margin-right: ${this.firstMiniCardMargin}px`:`margin-left: ${this.firstMiniCardMargin}px`}handleClickOnSequenceIndicator(t,e){t&&(t.stopPropagation(),this.shiftCarousel(e,!0))}flipperClickHandler(t,e){if(!t)return;t.stopPropagation();const i=this.activePageIndex+e;i<0||i>=this.sequenceIndicators.length||(this.shiftCarousel(i,!0),this.config.isDynamicFeed&&(0,Ng.j)({name:"OnWidgetClick",clickType:1,oneServiceCardType:"MoneyInfo"}))}handleMouseOver(t){t&&(t.stopPropagation(),this.showFlippers(!0))}getSqiAriaLabel(t){return`${this.strings.sequenceIndicatorAriaLabel} ${t+1}`}showFlippers(t){if(this.sequenceIndicators.length<=1)return;const e=this.showPreviousFlipper||this.showNextFlipper;this.showPreviousFlipper=(t||e)&&this.activePageIndex>0,this.showNextFlipper=(t||e)&&this.activePageIndex<this.sequenceIndicators.length-1}handleMouseOut(t){t&&(t.stopPropagation(),this.showPreviousFlipper=!1,this.showNextFlipper=!1)}shiftCarousel(t,e){this.firstMiniCardMargin=this.sequenceIndicators[t].moveMargin,this.activePageIndex=t,this.showFlippers(e)}focusOnSequenceIndicator(t){if(this.activePageIndex>=t.length)return;const e=t[this.activePageIndex];e&&e.focus()}moveSequenceIndicatorOnKeyPress(t,e){this.direction===Hg.N.rtl&&e===zg.mr||this.direction!==Hg.N.rtl&&e===zg.BE?0===this.activePageIndex?this.shiftCarousel(this.sequenceIndicators.length-1,!1):this.shiftCarousel(this.activePageIndex-1,!1):(this.direction===Hg.N.rtl&&e===zg.BE||this.direction!==Hg.N.rtl&&e===zg.mr)&&(this.activePageIndex===this.sequenceIndicators.length-1?this.shiftCarousel(0,!1):this.shiftCarousel(this.activePageIndex+1,!1)),this.focusOnSequenceIndicator(t)}sequenceIndicatorKeyDownHandler(t){t.stopPropagation&&t.stopPropagation();if(!t.target)return!0;const e=this.sequenceIndicatorsContainer.querySelectorAll('[role="tab"]');if(!e)return!0;switch(null==t?void 0:t.key){case zg.oM:return!0;case zg.BE:return this.moveSequenceIndicatorOnKeyPress(e,zg.BE),!0;case zg.mr:return this.moveSequenceIndicatorOnKeyPress(e,zg.mr),!0;default:return!1}}getSlidesCount(){return this.isCryproLearn?this.learnItems.length+(this.config.enableQuoteCarouselSeeMoreCard?1:0):this.quoteItems.length+(this.dataFrom===g.Watchlist&&this.recommendedQuoteItems?this.recommendedQuoteItems.length:0)+(this.config.enableQuoteCarouselSeeMoreCard?1:0)}getSequenceIndicators(){this.slideCount=this.getSlidesCount();const t=this.cardWidth-32+4,e=this.slideWidth+4;this.numberOfFullSlidesVisibleInCarousel=Math.floor(t/e);const i=Math.ceil(this.slideCount/this.numberOfFullSlidesVisibleInCarousel);if(i<=1)return[];this.maxPageIndex=i-1;const n=new Array(i);for(let t=0;t<n.length-1;t++){const i=16-this.numberOfFullSlidesVisibleInCarousel*e*t;n[t]={moveMargin:i}}let r=16-(this.slideCount*e-t);return this.config.enableQuoteCarouselSeeMoreCard&&this.isCryproLearn&&(r=r+this.learnItemWidth-this.quoteItemWidth),n[n.length-1]={moveMargin:r},this.sequenceIndicators=n,n}getSuggestedQuoteItemIndex(t){var e;const i=this.dataFrom===g.Watchlist?null===(e=Object.keys(this.watchlistQuoteDict))||void 0===e?void 0:e.length:this.quoteItems.length;return(null!=i?i:0)+t}getSeeMoreCardIndex(){return this.slideCount-1}isSlideInCarouselView(t){if(null==t||null==this.maxPageIndex||null==this.activePageIndex||null==this.slideCount||null==this.numberOfFullSlidesVisibleInCarousel)return!0;let e=this.activePageIndex*this.numberOfFullSlidesVisibleInCarousel,i=(this.activePageIndex+1)*this.numberOfFullSlidesVisibleInCarousel;return this.activePageIndex===this.maxPageIndex&&(e=this.slideCount-this.numberOfFullSlidesVisibleInCarousel,i=this.slideCount),e<=t&&t<i}}(0,f.gn)([_i.LO],af.prototype,"direction",void 0),(0,f.gn)([_i.LO],af.prototype,"firstMiniCardMargin",void 0),(0,f.gn)([_i.LO],af.prototype,"showPreviousFlipper",void 0),(0,f.gn)([_i.LO],af.prototype,"showNextFlipper",void 0),(0,f.gn)([_i.LO],af.prototype,"activePageIndex",void 0),(0,f.gn)([_i.LO],af.prototype,"maxPageIndex",void 0),(0,f.gn)([_i.LO],af.prototype,"slideCount",void 0),(0,f.gn)([_i.LO],af.prototype,"numberOfFullSlidesVisibleInCarousel",void 0),(0,f.gn)([_i.LO],af.prototype,"sequenceIndicators",void 0),(0,f.gn)([_i.LO],af.prototype,"isFlyoutOpen",void 0),(0,f.gn)([_i.LO],af.prototype,"isScrAnimDisabled",void 0),(0,f.gn)([_i.LO],af.prototype,"learnItems",void 0);const sf=re.i`
    .card-options {
        right: 10px;
    }

    money-card-crypto-learn-item:first-child,
    money-card-quote-item:first-child {
        margin-left: 16px;
    }

    .scrAnim money-card-crypto-learn-item:first-child,
    .scrAnim money-card-quote-item:first-child {
        transition: margin-left 500ms;
    }

    money-card-crypto-learn-item:last-child,
    money-card-quote-item:last-child {
        margin-right: 16px;
    }

    .previous-flipper {
        left: 0;
    }

    .next-flipper {
        right: 0;
    }
`,lf=re.i`
    .card-options {
        position: absolute;
        left: 10px;
    }

    money-card-crypto-learn-item:first-child,
    money-card-quote-item:first-child {
        margin-right: 16px;
    }

    .scrAnim money-card-crypto-learn-item:first-child,
    .scrAnim money-card-quote-item:first-child {
        transition: margin-right 700ms;
    }

    money-card-crypto-learn-item:last-child,
    money-card-quote-item:last-child {
        margin-left: 16px;
    }

    .previous-flipper {
        right: 0;
    }

    .next-flipper {
        left: 0;
    }
`,cf=re.i`
    .wdrk .footer-link-gradient, .wdrk .footer-link-megrad {
        color: ${oe.CHi};
    }

    .wdrk.winDsh .footer-link {
        color: #99EBFF; /* the same color as in weather card */
    }
`,df=(0,hn.Uu)(cf),uf=re.i`
    .title-link {
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        cursor: pointer;
        text-decoration: none;
        font-weight: 400;
        font-style: normal;
        padding: 16px;
        color: ${oe.Q5n};
        outline: none;
    }

    .title-link-gradient {
        color: ${oe.CHi};
        padding: 16px 16px 12px 16px;
    }
    
    .title-link-text {
        display: inline-block;
        vertical-align: top;
        max-width: 220px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .money-card-quote-page {
        min-height: 100%;
        display: grid;
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        cursor: pointer;
        outline: none;
    }

    .money-card-quote-page:not(.noHdr) {
        grid-template-rows: auto 1fr auto;
    }

    .money-card-quote-page.noHdr {
        align-items: start;
        grid-template-rows: 1fr auto;
        padding-top: 12px;
    }

    .windf.money-card-quote-page.grdt.small {
        align-items: start;
        grid-template-rows: auto;
        padding-top: 8px;
    }
    
    .quote-carousel-container {
        display: flex;
        overflow: hidden;
        flex-flow: row nowrap;
        margin-bottom: auto;
    }

    money-card-quote-item {
        margin-left: 4px;
    }

    money-card-crypto-learn-item {
        margin-left: 4px;
    }

    .sqi-container {
        width: 12px;
        height: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        padding: 0px;
        margin: 0px;
    }

    .sequence-indicator {
        border-radius: 50%;
        background-color: ${oe.CHi};
        min-height: 4px;
        height: 4px;
        width: 4px;
        min-width: 4px;
        transition: transform 0.2s ease-in-out 0s;
        opacity: 0.4458;
        cursor: pointer;
    }

    .sqi-container:hover .sequence-indicator {
        height: 5px;
        width: 5px;
        min-height: 5px;
        min-width: 5px;
        opacity: 0.6063;
    }

    .sqi-container:active .sequence-indicator {
        height: 3px;
        width: 3px;
        min-height: 3px;
        min-width: 3px;
        opacity: 0.6063;
    }

    .active-sqi {
        z-index: 2;
        opacity: 0.6063;
        min-height: 6px;
        min-width: 6px;
        height: 6px;
        width: 6px;
    }

    .sqi-container:hover .active-sqi {
        width: 7px;
        height: 7px;
    }

    .sqi-container:active .active-sqi {
        opacity: 0.6063;
        width: 5px;
        height: 5px;
    }

    .sqis-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .flippers {
        margin: 0;
        height: 32px;
        width: 16px;
        position: absolute;
        top: calc(50% - 6px);
        z-index: 1;
        display: none;
    }

    .show-flipper {
        display: inline-flex;
    }

    .next-flipper::before,
    .previous-flipper::before {
        border-radius: 3px;
        border: calc(${oe.Han} * 1px) solid transparent;
        background: ${oe.jql};
        opacity: 1;
        transition: opacity 0.2s ease-in-out 0s;
    }

    .next-flipper::part(previous),
    .next-flipper::part(next),
    .previous-flipper::part(previous),
    .previous-flipper::part(next) {
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        opacity: 0.9;
        color: ${oe.CHi}
    }
    
`.withBehaviors(df,new gh.O(sf,lf),(0,hn.vF)(re.i`
            :host {
                forced-color-adjust: auto;
            }

            .title-link:hover, .footer-link:hover {
                text-decoration: underline;
            }

            .next-flipper::part(previous),
            .next-flipper::part(next),
            .previous-flipper::part(previous),
            .previous-flipper::part(next) {
                color: ${vn.H.ButtonText}
            }

            .sequence-indicator {
                background-color: ${vn.H.ButtonText};
            }

            ::slotted(*[slot="option-button"]) {
                fill: ${vn.H.ButtonText};
            }

            ::slotted([slot="option-button"]:hover) {
                background: ${vn.H.Highlight};
                fill: ${vn.H.HighlightText};
            }
        `)),hf=Jt.d`
    <svg
        slot="previous"
        width="8"
        height="8"
        viewBox="0 0 8 8"
        xmlns="http://www.w3.org/2000/svg"
    >
        <path
            d="M0.5 4.5C0.5 4.25781 0.557292 4.02865 0.671875 3.8125C0.786458 3.59635 0.94401 3.41927 1.14453 3.28125L4.92969 0.679687C5.09896 0.559896 5.28906 0.5 5.5 0.5C5.66406 0.5 5.82031 0.539062 5.96875 0.617187C6.13281 0.703125 6.26172 0.824219 6.35547 0.980469C6.45182 1.13672 6.5 1.30729 6.5 1.49219L6.5 7.51172C6.5 7.69401 6.45182 7.86328 6.35547 8.01953C6.26172 8.17578 6.13281 8.29818 5.96875 8.38672C5.81771 8.46224 5.66276 8.5 5.50391 8.5C5.29036 8.5 5.09896 8.4401 4.92969 8.32031L1.14453 5.71875C0.94401 5.58073 0.786458 5.40365 0.671875 5.1875C0.557291 4.97135 0.5 4.74219 0.5 4.5Z"
        />
    </svg>
    <svg
        slot="next"
        width="8"
        height="8"
        viewBox="0 0 8 8"
        xmlns="http://www.w3.org/2000/svg"
    >
        <path
            d="M0.5 1.49219C0.5 1.30729 0.546875 1.13672 0.640625 0.980468C0.736979 0.824218 0.86849 0.703125 1.03516 0.617187C1.18099 0.539062 1.33594 0.5 1.5 0.5C1.71094 0.5 1.90104 0.559896 2.07031 0.679687L5.85547 3.28125C6.05078 3.41667 6.20052 3.59245 6.30469 3.80859C6.40885 4.02474 6.46094 4.25521 6.46094 4.5C6.46094 4.74219 6.40885 4.97135 6.30469 5.1875C6.20052 5.40625 6.05078 5.58333 5.85547 5.71875L2.07031 8.32031C1.90104 8.4401 1.71094 8.5 1.5 8.5C1.34115 8.5 1.1862 8.46224 1.03516 8.38672C0.868489 8.29818 0.736979 8.17578 0.640625 8.01953C0.546875 7.86328 0.5 7.69401 0.5 7.51172L0.5 1.49219Z"
        />
    </svg>
`,gf=Jt.d`
    <button class="sqi-container"
        role="tab"
        aria-selected=${(t,e)=>e.index===e.parent.activePageIndex}
        aria-label="${(t,e)=>e.parent.getSqiAriaLabel(e.index)}"
        title="${(t,e)=>e.parent.getSqiAriaLabel(e.index)}"
        tabindex=${(t,e)=>e.index===e.parent.activePageIndex?0:-1}
        @click=${(t,e)=>e.parent.handleClickOnSequenceIndicator(e.event,e.index)}
        @keypress=${(t,e)=>e.parent.handleClickOnSequenceIndicator(e.event,e.index)}
    >
        <span class="sequence-indicator
            ${(t,e)=>e.index===e.parent.activePageIndex?"active-sqi":""}"
        >
        </span>
    </button>
`,pf=Jt.d`
    <div class="sqis-container"
        ${(0,Bu.i)("sequenceIndicatorsContainer")}
        role="tablist"
        @keydown="${(t,e)=>t.sequenceIndicatorKeyDownHandler(e.event)}"
        >
        ${(0,wh.rx)((t=>t.getSequenceIndicators()),gf,{positioning:!0})}
    </div>
`,ff=Jt.d`
    <money-card-quote-item
        style="${(t,e)=>e.isFirst?e.parent.getFirstMiniCardMargin():""}"
        :config=${(t,e)=>e.parent.config}
        :strings=${(t,e)=>e.parent.strings}
        :openLinkTarget=${(t,e)=>e.parent.openLinkTarget}
        :openLinksInNewTab=${(t,e)=>e.parent.openLinksInNewTab}
        :dataFrom=${(t,e)=>e.parent.dataFrom}
        :telemetryContext=${(t,e)=>e.parent.telemetryContext}
        :watchQuoteCallback=${(t,e)=>e.parent.watchQuoteCallback}
        :watchlistQuoteDict=${(t,e)=>e.parent.watchlistQuoteDict}
        :quote=${t=>t}
        :currentWidgetSize=${(t,e)=>e.parent.currentWidgetSize}
        :useGlanceCard=${(t,e)=>e.parent.useGlanceCard}
        :isInCarouselView=${(t,e)=>e.parent.isSlideInCarouselView(e.index)}
        :chartData=${(t,e)=>e.parent.getChartData(t)}
        :isDarkModeTheme=${(t,e)=>e.parent.isDarkModeTheme}
        :chartWidth=${()=>108}
        :chartHeight=${()=>22}
    >
    </money-card-quote-item>
`,mf=Jt.d`
    <money-card-quote-item
        style="${(t,e)=>0===e.parent.getSuggestedQuoteItemIndex(e.index)?e.parent.getFirstMiniCardMargin():""}"
        :config=${(t,e)=>e.parent.config}
        :strings=${(t,e)=>e.parent.strings}
        :openLinkTarget=${(t,e)=>e.parent.openLinkTarget}
        :openLinksInNewTab=${(t,e)=>e.parent.openLinksInNewTab}
        :dataFrom=${(t,e)=>e.parent.dataFrom}
        :telemetryContext=${(t,e)=>e.parent.telemetryContext}
        :watchQuoteCallback=${(t,e)=>e.parent.watchQuoteCallback}
        :watchlistQuoteDict=${(t,e)=>e.parent.watchlistQuoteDict}
        :quote=${t=>t}
        :currentWidgetSize=${(t,e)=>e.parent.currentWidgetSize}
        :useGlanceCard=${(t,e)=>e.parent.useGlanceCard}
        :isInCarouselView=${(t,e)=>e.parent.isSlideInCarouselView(e.parent.getSuggestedQuoteItemIndex(e.index))}
        :chartData=${(t,e)=>e.parent.getChartData(t)}
        :isDarkModeTheme=${(t,e)=>e.parent.isDarkModeTheme}
        :chartWidth=${()=>108}
        :chartHeight=${()=>22}
    >
    </money-card-quote-item>
`,vf=Jt.d`
    <money-card-quote-item
        class="quote-carousel-item"
        style="${t=>0===t.getSeeMoreCardIndex()?t.getFirstMiniCardMargin():""}"
        :config=${t=>t.config}
        :strings=${t=>t.strings}
        :openLinkTarget=${t=>t.openLinkTarget}
        :openLinksInNewTab=${t=>t.openLinksInNewTab}
        :dataFrom=${t=>t.dataFrom}
        :telemetryContext=${t=>t.telemetryContext}
        :watchQuoteCallback=${t=>t.watchQuoteCallback}
        :watchlistQuoteDict=${t=>t.watchlistQuoteDict}
        :quote=${()=>null}
        :currentWidgetSize=${t=>t.currentWidgetSize}
        :useGlanceCard=${t=>t.useGlanceCard}
        :isInCarouselView=${t=>t.isSlideInCarouselView(t.getSeeMoreCardIndex())}
        :chartData=${t=>t.getChartData(null)}
        :isDarkModeTheme=${t=>t.isDarkModeTheme}
        :chartWidth=${()=>108}
        :chartHeight=${()=>22}
        :navUrl=${t=>t.navUrl}
        :isSeeMoreGlanceCard=${()=>!0}
    >
    </money-card-quote-item>
`,yf=Jt.d`
    <a class="title-link ${t=>t.config.enableGradientStyles?"title-link-gradient":""}"
        href=${t=>t.navUrl}
        target=${t=>t.openLinkTarget}
        data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.headerLinkClickTelemetryTags}}"
    >
        <span class="title-link-text"
        tabindex="0"
        title=${t=>t.getTitleText()}
        >${t=>t.getTitleText()}</span>
    </a>
`,bf=Jt.d`
    <fluent-flipper
        part="previous-flipper"
        class="previous-flipper flippers ${t=>t.showPreviousFlipper?"show-flipper":""}"
        title="${t=>t.strings.previousFlipperTitle}"
        direction="${t=>t.direction===Hg.N.rtl?"next":"previous"}"
        @click="${(t,e)=>t.flipperClickHandler(e.event,-1)}"
    >
        ${hf}
    </fluent-flipper>
`,wf=Jt.d`
    <fluent-flipper
        part="next-flipper"
        class="next-flipper flippers ${t=>t.showNextFlipper?"show-flipper":""}"
        title="${t=>t.strings.nextFlipperTitle}"
        direction="${t=>t.direction===Hg.N.rtl?"previous":"next"}"
        @click="${(t,e)=>t.flipperClickHandler(e.event,1)}"
    >
        ${hf}
    </fluent-flipper>
`,xf=Jt.d`
    ${(0,wh.rx)((t=>t.quoteItems),ff,{positioning:!0})}
`,Cf=Jt.d`
    ${(0,wh.rx)((t=>t.recommendedQuoteItems),mf,{positioning:!0})}
`,Tf=Jt.d`
    ${(0,ch.g)((t=>t.quoteItems.length>=0),xf)}
    ${(0,ch.g)((t=>{var e;return(null===(e=t.recommendedQuoteItems)||void 0===e?void 0:e.length)>=0}),Cf)}
`,$f=Jt.d`
    <money-card-crypto-learn-item
        style="${(t,e)=>e.isFirst?e.parent.getFirstMiniCardMargin():""}"
        :config=${(t,e)=>e.parent.config}
        :strings=${(t,e)=>e.parent.strings}
        :dataFrom=${(t,e)=>e.parent.dataFrom}
        :telemetryContext=${(t,e)=>e.parent.telemetryContext}
        :openLinksInNewTab=${(t,e)=>e.parent.openLinksInNewTab}
        :learnItem=${t=>t}
        :isCarousel=${()=>!0}
    >
    </money-card-crypto-learn-item>
`,kf=Jt.d`
    <div class="money-card-quote-page
        ${t=>t.config.enableGradientStyles?"grdt":""}
        ${t=>t.config.isDynamicFeed?"windf":""}
        ${t=>t.config.disableHeader?"noHdr":""}
        ${t=>t.config.disableFooter?"noFtr":""}
        ${t=>t.config.disableDarkMode?"":"wdrk"}
        ${t=>t.isScrAnimDisabled?"":"scrAnim"}
        ${t=>t.currentWidgetSize}"
        @click=${(t,e)=>t.onClickOnTab(e.event)}
        @mouseover=${(t,e)=>t.handleMouseOver(e.event)}
        @mouseout=${(t,e)=>t.handleMouseOut(e.event)}
    >
        ${(0,ch.g)((t=>!t.config.disableHeader),yf)}
        <div class="quote-carousel-container">
            ${(0,ch.g)((t=>t.dataFrom===g.cryptoLearn),Jt.d`${(0,wh.rx)((t=>t.learnItems),$f,{positioning:!0})}`)}
            ${(0,ch.g)((t=>t.dataFrom===g.Watchlist),Tf)}
            ${(0,ch.g)((t=>t.dataFrom!==g.Watchlist&&t.dataFrom!==g.cryptoLearn),xf)}
            ${(0,ch.g)((t=>t.config.enableQuoteCarouselSeeMoreCard),vf)}
        </div>
        ${pf}
        ${bf}
        ${wf}
    </div>  
`;let If=class extends af{};If=(0,f.gn)([(0,Yd.M)({name:"money-card-quote-carousel",template:kf,styles:uf,shadowOptions:{delegatesFocus:!0}})],If);class Sf extends Yd.H{constructor(){super(...arguments),this.watchlistQuoteDict={}}connectedCallback(){this.isCurrencyTab=this.getIsCurrencyTab(),this.updateChartSize(),super.connectedCallback()}getIsCurrencyTab(){return wt(this.quote)||[g.Currencies,g.Crypto].includes(this.dataFrom)}currentWidgetSizeChanged(){this.updateChartSize()}getChartData(t){var e;if(!this.charts||!t)return null;const i=t.instrumentId||t.quoteId||t.id;return i&&null!==(e=this.charts[i])&&void 0!==e?e:null}getTabForTelemetry(){return g.Spotlight}onClickOnTab(t){var e;if(!t)return;t.stopPropagation(),t.preventDefault();let i=ut(et.jG.CurrentMarket,this.quote.id,m[this.dataFrom],this.config.financeWatchlistPage,this.dataFrom);return(null===(e=this.quote.notifications[0])||void 0===e?void 0:e.notificationType)&&(i=Pt(i,this.dataFrom,this.quote.notifications[0],zt.wiN,this.config.enableBackendNotificationUrl)),i=St(i),rt.M0.sendActionEvent(t.currentTarget,be.Aw.Click,be.wu.Navigate,i),window.open(i,this.openLinkTarget),!1}getTitleText(){return this.dataFrom===g.Suggested?this.strings.trendingStocksTitleText:this.strings[Hi(this.config,this.dataFrom)]}getFooterText(){return this.dataFrom===g.Suggested?this.strings.trendingStocksFooterText:this.strings[ji(this.config,this.dataFrom)]}getQuoteColor(t,e,i,n,r){return at(t,e,i,n,r,this.config.swapGainLossColor)}updateChartSize(){"small"===this.currentWidgetSize?this.chartSize={width:44,height:40}:"large"===this.currentWidgetSize?this.chartSize={width:244,height:176}:this.chartSize={width:244,height:this.isCurrencyTab?48:70}}getSmallSpotlightGridColumns(){const t=this.config.enableSmallSpotlightChart?3:2,e=(this.config.isDynamicFeed?298:300)-28-28-8*(t-1),i=this.config.enableSmallSpotlightChart?44:0,n=8*Math.max(this.maxChangeStringLength,this.maxValueStringLength);return`--small-spotlight-grid-columns: ${[e-n-i,i,n].filter((t=>t>0)).map((t=>`${t}px`)).join(" ")}`}}(0,f.gn)([_i.LO],Sf.prototype,"chartSize",void 0),(0,f.gn)([_i.LO],Sf.prototype,"quote",void 0),(0,f.gn)([_i.LO],Sf.prototype,"watchlistQuoteDict",void 0),(0,f.gn)([_i.LO],Sf.prototype,"currentWidgetSize",void 0),(0,f.gn)([_i.LO],Sf.prototype,"charts",void 0),(0,f.gn)([_i.LO],Sf.prototype,"isDarkModeTheme",void 0),(0,f.gn)([_i.LO],Sf.prototype,"previewType",void 0);const Lf=re.i`
    .card-options {
        right: 10px;
    }
`,Mf=re.i`
    .card-options {
        position: absolute;
        left: 10px;
    }
`,_f=re.i`
    .wdrk .footer-link-gradient, .wdrk .footer-link-megrad {
        color: ${oe.CHi};
    }

    .wdrk.winDsh .footer-link {
        color: #99EBFF; /* the same color as in weather card */
    }
`,Df=(0,hn.Uu)(_f),Ff=re.i`
    .sl-tab {
        grid-template-rows: auto 1fr auto;
        min-height: 100%;
        display: grid;
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        outline: none;
        color: ${oe.CHi};
        text-decoration: none;
    }

    .windf.sl-tab {
        grid-template-rows: 1fr auto;
    }

    .title {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
        color: ${oe.CHi};
        text-decoration: none;
        letter-spacing: 0.7px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 16px 16px 8px;
        outline: none;
    }

    .footer-link {
        font-size: ${oe.cSu};
        text-align: center;
        letter-spacing: 0.3px;
        margin-top: 12px;
        color: ${oe.goi};
        text-decoration: none;
        max-width: 100%;
    }

    .footer-link-no-crsl {
        margin-top: 4px;
    }

    .large .footer-link,
    .medium .footer-link {
        margin-top: 12px;
    }

    .footer-link-gradient, .footer-link-megrad {
        letter-spacing: 0.3px;
        text-decoration: none;
        background-color:  var(--footer-link-background);
        color: ${oe.CHi};
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
        border-radius: 20px;
        padding: 4px 24px;
        margin: 7px auto 24px;
        max-width: calc(100% - 84px);
    }

    .footer-link:hover {
        text-decoration: underline;
    }

    .footer-link-gradient:hover,
    .footer-link-gradient:active,
    .footer-link-gradient:${ph.b},
    .footer-link-megrad:hover,
    .footer-link-megrad:active,
    .footer-link-megrad:${ph.b} {
        text-decoration: none;
        background-color:  var(--footer-link-hover-background);
    }

    .footer-link-gradient.footer-link-no-crsl,
    .footer-link-megrad.footer-link-no-crsl {
        margin-top: 16px;
    }

`.withBehaviors(Df,new gh.O(Lf,Mf),(0,hn.vF)(re.i`
            :host {
                forced-color-adjust: auto;
            }

            .title-link:hover, .footer-link:hover {
                text-decoration: underline;
            }

            /* The border is needed in high contrast mode */
            .footer-link {
                padding: 4px 16px;
                border: 1px solid ${vn.H.LinkText}; 
                border-radius: 20px;
                cursor: pointer;
                margin-right: auto;
                margin-left: auto;
                margin-bottom: 24px;
                max-width: 90%;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                z-index: 3;
                box-sizing: border-box;
                color: ${vn.H.ButtonText};
            }

            ::slotted(*[slot="option-button"]) {
                fill: ${vn.H.ButtonText};
            }

            ::slotted([slot="option-button"]:hover) {
                background: ${vn.H.Highlight};
                fill: ${vn.H.HighlightText};
            }
        `)),Af=Jt.d`
    <div
        class="title"
        title="${t=>t.getTitleText()}"
        aria-label="${t=>t.getTitleText()}"
        data-t="${(t,e)=>{var i;return null===(i=t.telemetryContext)||void 0===i?void 0:i.headerLinkClickTelemetryTags}}"
    >
        <span>
            ${t=>t.getTitleText()}
        </span>
</div>
`,Of=Jt.d`
    <money-card-quote-item 
        :config=${(t,e)=>t.config}
        :strings=${(t,e)=>t.strings}
        :dataFrom=${(t,e)=>t.dataFrom}
        :telemetryContext=${(t,e)=>t.telemetryContext}
        :watchlistQuoteDict=${(t,e)=>t.watchlistQuoteDict}
        :quote=${(t,e)=>t.quote}
        :previewType=${t=>t.previewType}
        :currentWidgetSize=${(t,e)=>t.currentWidgetSize}
        :chartData=${(t,e)=>t.getChartData(t.quote)}
        :chartWidth=${t=>t.chartSize.width}
        :chartHeight=${t=>t.chartSize.height}
        :isDarkModeTheme=${(t,e)=>t.isDarkModeTheme}
        :isSpotlight=${()=>!0}
        :isSpotlightCurr=${t=>t.isCurrencyTab}
    />
`,Pf=Jt.d`
    <div class="footer-link
        ${t=>Pi(t.config,"footer-link",t.config.isDynamicFeed)}
        ${t=>t.config.enableFullCarousel?"":"footer-link-no-crsl"}"
        data-t="${(t,e)=>{var i;return null===(i=t.telemetryContext)||void 0===i?void 0:i.footerLinkClickTelemetryTags}}"
        title="${t=>t.getFooterText()}"
        >
        ${t=>t.getFooterText()}
</div>
`,qf=Jt.d`
    <a class="sl-tab
        ${t=>t.config.disableHeader?"noHdr":""}
        ${t=>t.config.isDynamicFeed?"windf":""}
        ${t=>qi()?"winDsh":""}
        ${t=>t.config.disableDarkMode?"":"wdrk"}
        ${t=>t.currentWidgetSize}"
        data-t="${t=>{var e;return null===(e=t.telemetryContext)||void 0===e?void 0:e.getTabShownTags(t.getTabForTelemetry())}}"
        target="${t=>t.openLinkTarget}"
        href="${t=>t.navUrl}"
        style="${t=>t.getSmallSpotlightGridColumns()}"
        @click="${(t,e)=>t.onClickOnTab(e.event)}"
    >
        ${(0,ch.g)((t=>!t.config.disableHeader),Af)}
        ${(0,ch.g)((t=>t.quote),Of)}
        ${Pf}
    </a>
`;let Nf=class extends Sf{};Nf=(0,f.gn)([(0,Yd.M)({name:"money-card-spotlight-quote-tab",template:qf,styles:Ff,shadowOptions:{delegatesFocus:!0}})],Nf);const Hf=re.i`
    .card-options {
        right: 10px;
    }

    .wolo .qname {
        padding-left: 8px;
    }

    .wls .pcnt-str {
        margin-left: 6px;
    }

    .wls.small .pcnt-str {
        margin-left: 2px;
    }

    .wls.small .lbl {
        margin-left: 8px;
    }
`,zf=re.i`
    .card-options {
        position: absolute;
        left: 10px;
    }

    .wolo .qname {
        padding-right: 8px;
    }

    .wls .pcnt-str {
        margin-right: 6px;
    }

    .wls.small .pcnt-str {
        margin-right: 2px;
    }

    .wls.small .lbl {
        margin-right: 8px;
    }

    .wls .vert .qimg {
        margin-left: 8px;
        margin-right: 0px;
    }

    .wls.large .vert .qimg {
        margin-left: 12px;
        margin-right: 0px;
    }
`,Qf=re.i`
    ${pn}
    .wdrk {
        --footer-bg: rgba(255, 255, 255, 0.05);
        --footer-hover-bg: rgba(255, 255, 255, 0.1);
    }

    .wdrk.winDsh .footer-link {
        color: #99EBFF; /* the same color as in weather card */
    }
`,Ef=re.i`
    ${fn}

    :host {
        --footer-bg: rgba(255, 255, 255, 0.5);
        --footer-hover-bg: rgba(255, 255, 255, 0.75);
    }

    ul {
        list-style: none;
        padding-inline-start: 0;
    }

    .semibold {
        font-weight: 600;
    }

    .prewlLink {
        text-decoration: none;
    }

    .wlPrmoCard {
        position: relative;
        border-radius: 6px;
        display: grid;
        grid-template-rows: 1fr auto;
        padding: 16px 16px 0;
        color: ${oe.CHi};
    }

    .wlPrmoCnt {
        display: grid;
        align-items: center;
    }

    .wlo .wlPrmoCnt.ptvCtr {
        grid-template-rows: 60px auto auto;
        padding: 0;
    }

    .wolo .wlPrmoCnt.ptvCtr {
        grid-template-rows: 74px auto auto;
        padding: 0;
    }

    .prmoTitl {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
        cursor: pointer;
        text-decoration: none;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        outline: none;
        padding-bottom: 6px;
    }

    .titlIcn {
        vertical-align: middle;
        background-color: transparent;
    }

    .titlIcn path {
        fill: ${oe.CHi};
    }

    .prmoFoot {
        background-color: var(--footer-bg);
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
        border-radius: 20px;
        vertical-align: middle;
        padding: 4px 24px;
        margin: auto;
        text-align: center;
        letter-spacing: 0.3px;
        text-decoration: none;
    }
    
    .prmoFoot:${ph.b} {
        background-color:  var(--footer-hover-bg); 
    }

    .prmoTxt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: var(--type-ramp-plus-1-font-size, 16px);
        line-height: var(--type-ramp-plus-1-line-height, 22px);
    }

    .ptvCtr .prmoTxt {
        text-align: center;
        padding-top: 8px;
    }

    .wolo .ptvCtr .prmoTxt {
        padding-top: 16px;
    }

    .qimg {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        box-sizing: border-box;
        object-fit: contain;
    }

    .qimg.ptv {
        width: 32px;
        height: 32px;
    }

    .vlstCtr {
        display: grid;
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
        margin: 0;
        row-gap: 8px;
        padding: 8px 0;
        overflow: hidden;
    }

    .wolo .vlstCtr {
        row-gap: 12px;
    }

    .vlstItm {
        display: grid;
        align-items: center;
    }

    .wolo .vlstItm {
        grid-template-columns: 50px 1fr auto;
    }

    .wlo .vlstItm {
        grid-template-columns: 32px 40px 1fr auto;
    }

    .hlstCtr {
        display: grid;
        justify-content: space-evenly;
        grid-template-columns: repeat(5, auto);
        column-gap: 2px;
        align-items: baseline;
        width: 100%;
        margin: 0;
        overflow: hidden;
    }

    .wlo .hlstCtr {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
        padding: 12px 0; 
    }

    .wolo .hlstCtr {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
        padding: 16px 0;
    }

    .hlstItm {
        display: grid;
        align-items: center;
        justify-content: center;
        justify-self: stretch;
        row-gap: 4px;
    }

    .wolo .hlstItm {
        row-gap: 8px;
    }

    .lstMovCtr {
        border-radius: 6px;
        background: var(--quote-view-background);
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .wlo .lstMovCtr {
        padding: 6px 8px;
    }

    .wolo .lstMovCtr {
        padding: 12px;
    }

    .ret .lbl {
        display: block;
    }

    .ret svg {
        width: 24px;
        height: 16px;
    }

    .ret.hg svg {
        width: 20px;
        height: 16px;
    }

    .ret .pcnt {
        font-size: var(--type-ramp-plus-3-font-size, 24px);
        line-height: var(--type-ramp-plus-3-line-height, 32px);
    }

    .ret.hg .pcnt {
        font-size: var(--type-ramp-plus-2-font-size, 16px);
        line-height: var(--type-ramp-plus-3-line-height, 22px);
    }

    .wlo .qts {
        font-weight: 600;
        text-align: center;
        min-width: 40px;
        max-width: 100%;
    }

    .hlstItm > span, .hlstItm > img {
        justify-self: center;
    }

    .wolo .qts {
        max-width: 100%;
        min-width: 40px;
        color: #FFFFFF;
        border-radius: 4px;
        padding: 2px;
        text-align: center;
    }

    .wolo .qts.qts-sm, .wlo .qts.qts-sm {
        font-size: var(--type-ramp-minus-2-font-size, 10px);
    }

    .wolo .vlstItm:nth-child(5n + 1) .qts,
    .wolo .hlstItm:nth-child(5n + 1) .qts {
        background: #00809D;
    }
    .wolo .vlstItm:nth-child(5n + 2) .qts,
    .wolo .hlstItm:nth-child(5n + 2) .qts {
        background: #5C005C;
    }
    .wolo .vlstItm:nth-child(5n + 3) .qts,
    .wolo .hlstItm:nth-child(5n + 3) .qts {
        background: #FF7E36;
    }
    .wolo .vlstItm:nth-child(5n + 4) .qts,
    .wolo .hlstItm:nth-child(5n + 4) .qts {
        background: #5C2D91;
    }
    .wolo .vlstItm:nth-child(5n) .qts,
    .wolo .hlstItm:nth-child(5n) .qts {
        background: #029DD4;
    }

    .qname,
    .qts {
        overflow: hidden;
        white-space: nowrap;
    }

    .qname {
        text-overflow: ellipsis;
    }

    .wlo .vlstItm .qts {
        text-align: left;
    }

    .wlo .vlstItm .qname {
        padding: 0 8px;
    }

    .qps {
        font-weight: 600;
    }

    .wolo .qps {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }

    .wls {
        height: 100%;
    }

    .wls .wlPrmoCard {
        height: 100%;
        grid-template-rows: auto 1fr auto;
        box-sizing: border-box;
        padding-bottom: 24px;
    }

    .wls.noHdr .wlPrmoCard {
        padding-top: 6px;
        padding-bottom: 0;
        grid-template-rows: 1fr min-content;
    }

    .wls .card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 6px;
        background: var(--quote-view-background);
        padding: 12px;
        width: 268px;
        box-sizing: border-box;
    }

    .wls .vert .hlstItm .qps {
        justify-self: flex-start;
        margin: 0px 6px;
        font-size: var(--type-ramp-plus-1-font-size, 16px);
        line-height: var(--type-ramp-plus-1-line-height, 22px);
    }

    .wls .wolo .qts {
        min-width: 46px;
    }

    .wls .vert .qts {
        text-align: initial;
        min-width: initial;
    }

    .wls .vert .card {
        justify-content: flex-start;
    }

    .wls.small .card {
        padding: 8px 12px;
    }

    .wls .header {
        font-size: var(--type-ramp-plus-2-font-size, 20px);
        line-height: var(--type-ramp-plus-2-line-height, 28px);
        font-weight: 600;
    }

    .wls.large .header {
        font-size: var(--type-ramp-plus-3-font-size, 24px);
        line-height: var(--type-ramp-plus-3-line-height, 32px);
        font-weight: 600;
        margin-bottom: 2px;
    }

    .wls.small .header {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
        font-weight: 600;
    }

    .wls.small .info {
        display: flex;
        justify-content: space-between;
    }

    .wls .prmoFoot {
        margin-top: 16px;
    }

    .wls .pcnt {
        font-size: var(--type-ramp-plus-4-font-size, 28px);
        line-height: var(--type-ramp-plus-4-line-height, 36px);
        display: flex;
        align-items: center;
    }

    .wls.large .pcnt {
        font-size: var(--type-ramp-plus-5-font-size, 32px);
        line-height: var(--type-ramp-plus-5-line-height, 40px);
    }

    .wls.small .pcnt {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }

    .wls .lbl {
        font-weight: 600;
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
        color: var(--standard-grey);
        margin-top: 2px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .large .lbl {
        font-size: var(--type-ramp-plus-2-font-size, 20px);
        line-height: var(--type-ramp-plus-2-line-height, 28px);
        margin-top: 6px;
    }

    .wls.small .lbl {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }

    .wls.winDsh.wdrk.dark .sec-title-str {
        color: ${oe.Q5n};
    }

    .wls.small .sec-title-str {
        font-size: var(--type-ramp-plus-1-font-size, 16px);
        line-height: var(--type-ramp-plus-1-line-height, 22px);
    }

    .wls .hlstCtr {
        grid-template-columns: repeat(4, auto);
        justify-content: flex-start;
        column-gap: 28px;
        overflow: visible;
        padding: 0px 12px;
        margin: 0 -12px;
    }

    .wls .hlstCtr.vert {
        grid-template-columns: 1fr;
        grid-row-gap: 12px;
        margin-top: 22px;
        margin-bottom: auto;
    }

    .wls.large .hlstCtr {
        margin-bottom: 4px;
    }

    .wls.large .vert.hlstCtr {
        margin-top: 32px;
        margin-bottom: auto;
    }

    .wls .wlo .symb {
        font-weight: 600;
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
        max-width: none;
    }

    .wls .wolo .vert .symb {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
        padding: 4px 8px;
        min-width: 70px;
        box-sizing: border-box;
        text-align: center;
    }

    .wls .hlstItm {
        row-gap: 0px;
        width: 40px;
    }

    .wls .vert .hlstItm {
        width: 100%;
        grid-template-columns: 40px min-content 1fr;
    }

    .large.wls .vert .hlstItm {
        grid-template-columns: 52px min-content 1fr;
    }

    .wls .wolo .vert .hlstItm {
        grid-template-columns: 70px 1fr;
    }

    .wls .vert .qimg {
        margin-right: 8px;
        margin-bottom: 0px;
    }

    .wls.large .vert .qimg {
        margin-right: 12px;
        margin-bottom: 0px;
    }

    .wls .wolo .hlstItm {
        row-gap: 2px;
    }

    .wls .curr .qimg {
        border-radius: 0px;
    }

    .wls .qimg,
    .wls .qimg-empty {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
        justify-self: center;
    }

    .large.wls .vert .qimg,
    .large.wls .vert .qimg-empty {
        width: 40px;
        height: 40px;
    }

    .wls .qimg-empty svg {
        width: 100%;
        height: 100%;
    }

    .large.wls .hlstCtr {
        row-gap: 20px;
    }

    .large.wls .vert.hlstCtr {
        row-gap: 14px;
    }

    .large.wls .wolo .hlstCtr {
        row-gap: 28px;
    }

    .wls.large .pcnt svg {
        width: 28px;
        height: 28px;
    }

    .wls .icon {
        width: 24px;
        height: 24px;
        margin-top: 4px;
    }

    .wls.small .icon {
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }

    .wls.large .icon {
        width: 36px;
        height: 36px;
    }

    .footer-link {
        font-size: ${oe.cSu};
        text-align: center;
        letter-spacing: 0.3px;
        margin-top: 8px;
        color: ${oe.goi};
        text-decoration: none;
        max-width: 100%;
    }

    .large .footer-link,
    .medium .footer-link {
        margin-top: 12px;
    }

    .footer-link:hover {
        text-decoration: underline;
    }

`.withBehaviors((0,hn.Uu)(Qf),new gh.O(Hf,zf),(0,hn.vF)(re.i`
                :host {
                    forced-color-adjust: auto;
                }

                .title-link:hover {
                    text-decoration: underline;
                }
                ::slotted(*[slot="option-button"]) {
                    fill: ${vn.H.ButtonText};
                }

                ::slotted([slot="option-button"]:hover) {
                    background: ${vn.H.Highlight};
                    fill: ${vn.H.HighlightText};
                }
            `)),jf=Jt.d`
    ${(0,ch.g)((t=>t.chartData),Jt.d`
        <div class="chartCntr">
            <msn-stock-chart 
                width=${()=>124}
                height=${()=>32}
                fill-color=${t=>t.getChartFillColor()}
                baseline-color=${t=>t.getChartFillColor()}
                skip-transform=${()=>!0}
                :prices=${t=>t.chartData.chartData.series}
                :baselinePrice=${t=>t.chartData.pricePreviousClose}
                :pricesMaxCount=${()=>B}
            />
        </div>
    `)}
`,Wf=Jt.d`
    <div class="lstMovCtr">
        <div class="ret ${t=>t.isHugeReturnValue?"hg":""}">
            <span class="lbl">${t=>t.returnLabelText}</span>
            <span class="pcnt semibold ${t=>t.getListItemClasses(t.firstListItem)}">
                ${(0,ch.g)((t=>t.annualReturn>0),Jt.d`${ng.Z}`)}
                ${(0,ch.g)((t=>t.annualReturn<0),Jt.d`${ig.Z}`)}
                ${t=>t.annualReturnString}
            </span>
        </div>
        ${jf}
    <div>
`,Rf=Jt.d`
    <span class="qps semibold ${(t,e)=>e.parent.getQuoteClasses(t)}">${(t,e)=>e.parent.getPcntValue(t)}</span>
`,Bf=Jt.d`
    <span class="qname">${t=>t.displayName}</span>
`,Gf=Jt.d`
    ${(0,ch.g)(((t,e)=>e.parent.isWithLogo),Jt.d`
        <img class="qimg ${(t,e)=>e.parent.isPositive?"ptv":"neg"}" src="${t=>t.iconUrl}" alt="" loading=lazy />
    `)}
    <span class="qts ${t=>{var e;return(null===(e=t.symbol)||void 0===e?void 0:e.length)>4?"qts-sm":""}}">${t=>t.symbol}<span>
`,Uf=Jt.d`
    <ul class="hlstCtr">
        ${(0,wh.rx)((t=>t.quotes),Jt.d`
            <li class="hlstItm">
                ${Gf}
                ${Rf}
            </li>
        `)}
    </ul>
`,Vf=Jt.d`
    <ul class="vlstCtr">
        ${(0,wh.rx)((t=>t.quotes),Jt.d`
            <li class="vlstItm">
                ${Gf}
                ${Bf}
                ${Rf}
            </li>
        `)}
    </ul>
`,Zf=Jt.d`
    <div class="prmoTxt">${t=>t.promoText}</div>
`,Jf=Jt.d`
    <div class="wlPrmoCnt ptvCtr">
        ${Wf}
        ${Zf}
        ${Uf}
    </div>
`,Xf=Jt.d`
    <div class="wlPrmoCnt negCtr">
        ${Zf}
        ${Vf}
    </div>
`,Yf=Jt.d`
    <div class="prmoTitl semibold">
        ${t=>t.titleText}
        <span class="titlIcn">${Dh}</span>
    </div>
`,Kf=Jt.d`
    <div class="${t=>t.config.isDynamicFeed?"footer-link":"prmoFoot"}">${t=>t.footerText}</div>
`,tm=Jt.d`
    <ul class="hlstCtr ${t=>t.isVerticalList?"vert":""}">
        ${(0,wh.rx)((t=>t.quotes),Jt.d`
            <li class="hlstItm ${t=>bt(t)?"curr":""}">
                ${(0,ch.g)(((t,e)=>e.parent.isWithLogo),Jt.d`
                    ${t=>t.iconUrl?Jt.d`
                        <img class="qimg" src="${t=>t.iconUrl}" alt="" loading=lazy />
                    `:Jt.d`
                        <div class="qimg qimg-empty">
                            ${op.Z}
                        </div>
                    `}
                `)}
                <span class="symb qts">${t=>t.symbol}</span>
                ${Rf}
            </li>
        `)}
    </ul>
`,em=Jt.d`
    ${(0,ch.g)((t=>t.isPositive),Jf)}
    ${(0,ch.g)((t=>!t.isPositive),Xf)}
`,im=Jt.d`
    <div class="card">
        <div>
            <div class="header">
                ${t=>t.strings.watchlistsummaryToday}
            </div>
            <div class="info">
                <span class="pcnt semibold ${t=>t.getListItemClasses(t.firstListItem)}">
                    ${(0,ch.g)((t=>t.annualReturn),Jt.d`
                        <img class="icon" src="${t=>t.iconUrl}" alt="" loading=lazy>
                    `)}
                    <span class="pcnt-str">${t=>t.annualReturnStringForSummary}</span>
                </span>
                <div class="lbl">${t=>t.wlsQuotePerformance}</div>
            </div>
        </div>
        ${(0,ch.g)((t=>"small"!==t.currentWidgetSize),tm)}
    </div>
`,nm=Jt.d`
    <div class="
        ${t=>t.getCardTypeClass()}
        ${t=>qi()?"winDsh":""}
        ${t=>t.config.disableDarkMode?"":"wdrk"}
        ${t=>t.isDarkModeTheme?"dark":""}
        ${t=>t.currentWidgetSize}
        ${t=>t.config.disableHeader?"noHdr":""}
        ${t=>t.config.isDynamicFeed?"windf":""}
    "
        data-t="${t=>t.getTelemetryShownTags()}">
        <a class="prewlLink"
            href="${t=>t.navUrl}"
            target="${t=>t.openLinksInNewTab?"_blank":"_self"}"
            title="${t=>t.titleText}"
            aria-label="${t=>t.titleText}"
            ${(0,Bu.i)("previewLinkRef")}
            @click=${(t,e)=>t.onClickTab(e.event)}
            data-t="${t=>t.getTabLinkTelemetry()}"
        >
            <div class="wlPrmoCard ${t=>t.isWithLogo?"wlo":"wolo"}">
                ${(0,ch.g)((t=>!t.config.disableHeader),Yf)}
                ${(0,ch.g)((t=>t.dataFrom===g.prepopulatedWL),em)}
                ${(0,ch.g)((t=>t.dataFrom===g.wlsummary),im)}
                ${Kf}
            </div>
        </a>
    </div>
`;class rm extends Yd.H{get titleText(){return this.strings[Tt(this.dataFrom)]}get footerText(){return this.strings[$t(this.dataFrom)]}get promoText(){var t;return this.isPositive&&(null===(t=this.firstListItem)||void 0===t?void 0:t.reason)?this.firstListItem.reason:this.strings.prepopulatedwlHintText}get returnLabelText(){return this.strings.prepopulatedReturnLabelText}get listQuoteItem(){var t,e;return null!==(e=null===(t=this.data)||void 0===t?void 0:t.indexQuoteItem)&&void 0!==e?e:null}get firstListItem(){return this.data&&this.data.listItems?this.data.listItems[0]:null}get annualReturn(){const{oneYearReturn:t,oneDayReturn:e}=this.firstListItem||{};return(this.dataFrom===g.prepopulatedWL?t:e)||0}get annualReturnString(){return+(this.annualReturn>1e3?this.annualReturn.toFixed(1):this.annualReturn.toFixed(2))+"%"}get annualReturnStringForSummary(){return this.annualReturn>0?`+${this.annualReturnString}`:this.annualReturnString}get isHugeReturnValue(){return this.annualReturnString.length>6}get chartData(){var t,e;return null===(t=this.charts)||void 0===t?void 0:t[null===(e=this.firstListItem)||void 0===e?void 0:e.listId]}get isPositive(){return this.annualReturn>0}get quotes(){var t,e;if("small"===this.currentWidgetSize&&this.dataFrom===g.wlsummary)return[];const i=null!==(e=null===(t=this.firstListItem)||void 0===t?void 0:t.quotes)&&void 0!==e?e:null;if(!i)return null;return i.length?i.slice(0,this.quotesMaxLength):null}get isWithLogo(){return this.isLogoUrlPresentInQuotes()||"en-us"==(null===et.jG||void 0===et.jG?void 0:et.jG.CurrentMarket.toLowerCase())}get quotesMaxLength(){return this.dataFrom===g.prepopulatedWL?5:this.dataFrom===g.wlsummary?"small"===this.currentWidgetSize?0:"large"===this.currentWidgetSize?8:4:void 0}get isVerticalList(){var t;const e="medium"===this.currentWidgetSize?3:5;return(null===(t=this.quotes)||void 0===t?void 0:t.length)<e}getTabLinkTelemetry(){var t,e;switch(this.dataFrom){case g.prepopulatedWL:return null===(t=this.telemetryContext)||void 0===t?void 0:t.preWlPageClickTelemetryTags;case g.wlsummary:return null===(e=this.telemetryContext)||void 0===e?void 0:e.wlSummaryPageClickTelemetryTags;default:return""}}getTelemetryShownTags(){var t;return null===(t=this.telemetryContext)||void 0===t?void 0:t.getTabShownTags(this.dataFrom)}getCardTypeClass(){return this.dataFrom===g.prepopulatedWL?"prewl":"wls"}isLogoUrlPresentInQuotes(){if(!this.quotes)return null;return this.quotes.map((t=>Ot(t.iconUrl))).filter(Boolean).length/this.quotes.length>.5}getChartFillColor(){return yt(this.isDarkModeTheme,this.annualReturn,this.config.swapGainLossColor,!0)}getQuoteClasses(t){const e=this.getPcnt(t);return at(e>0,0==e,"quote-red","quote-green","quote-grey",this.config.swapGainLossColor)}getListItemClasses(t){return at(this.isPositive,0===this.annualReturn,"quote-red","quote-green","quote-grey",this.config.swapGainLossColor)}getPriceDirection(t){return t>0?"+":""}getPcnt(t){const e=this.dataFrom===g.wlsummary?t.changePcntNumber:t.return1Year;return e?Math.round(e):0}getPcntValue(t){const e=this.getPcnt(t);return`${this.getPriceDirection(e)}${e}%`}get iconUrl(){return Ct(this.annualReturn,x.WatchlistSummary,this.config.swapGainLossColor)}get wlsQuotePerformance(){if(!this.listQuoteItem)return"";const t=this.listQuoteItem.displayName;return`${this.getQuotePerformingText(this.listQuoteItem.changePcntNumber)} ${t}`}getQuotePerformingText(t){return this.annualReturn<t?this.strings.wlsOutPerforming:this.annualReturn>t?this.strings.wlsUnderPerforming:this.strings.wlsMatchedPerforming}createWatchlist(){var t;return(0,f.mG)(this,void 0,void 0,(function*(){let e=!1;const i=null===(t=this.firstListItem)||void 0===t?void 0:t.quoteIds;return(null==i?void 0:i.length)>0&&this.service&&this.service.watchQuotes&&(e=yield this.service.watchQuotes(i),en(!0)),e}))}onClickTab(t){return(0,f.mG)(this,void 0,void 0,(function*(){if(this.isProcessing)return;if(!t)return;this.isProcessing=!0;const e=t.currentTarget;t.preventDefault(),t.stopPropagation(),this.isCreated||(this.isCreated=yield this.createWatchlist()),rt.M0.sendActionEvent(e,be.Aw.Click,be.wu.Navigate,this.navUrl),this.isProcessing=!1,window.open(this.navUrl,this.openLinksInNewTab?"_blank":"_self")}))}}(0,f.gn)([_i.LO],rm.prototype,"currentWidgetSize",void 0),(0,f.gn)([_i.LO],rm.prototype,"data",void 0),(0,f.gn)([_i.LO],rm.prototype,"charts",void 0),(0,f.gn)([_i.LO],rm.prototype,"isDarkModeTheme",void 0);let om=class extends rm{};om=(0,f.gn)([(0,Yd.M)({name:"money-card-wl-promo-tab",template:nm,styles:Ef,shadowOptions:{delegatesFocus:!0}})],om);var am=i(81101),sm=i(84713),lm=i(82419),cm=i(69044),dm=i(53669),um=i(63725),hm=i(33799),gm=i(51671);class pm{constructor(t){return this.quoteMapIdToItem=new Map,pm._instance||(pm._instance=this),pm._instance.config=Object.assign(Object.assign({},pm._instance.config),t),pm._instance}initFinanceServices(t){var e,i;return(0,f.mG)(this,void 0,void 0,(function*(){if(!((null==this?void 0:this.financeUserService)&&(null==this?void 0:this.financeAutoSuggestService)&&(null==this?void 0:this.financeService)&&(null==this?void 0:this.financeFalconService)))try{(0,am.Oo)().config.enableUnsignedWatchlist=null===(e=this.config)||void 0===e?void 0:e.enableUnsignedWatchlist,this.financeUserService=sm.FinanceServices.getFinanceUserService(null===(i=this.config)||void 0===i?void 0:i.enableUnsignedWatchlist),this.financeAutoSuggestService=sm.FinanceServices.getAutoSuggestService(),this.financeService=sm.FinanceServices.getCachedFinanceService(),this.financeFalconService=sm.FinanceServices.getFinanceFalconService(),t&&(this.additionaRequestHeaders=yield(0,ue.ss)(t,!0))}catch(t){(0,V.H)(zt._5B,`Exception while trying to init finance services in money card: ${t&&t.message?t.message:""}`)}}))}initNewsService(){return(0,f.mG)(this,void 0,void 0,(function*(){this.newsCardProvider||(this.config.newsProviderConfig.ocid=(0,tt.ku)(),this.newsCardProvider=new um.d(this.config.newsProviderConfig))}))}getInitialMoneyCardData(t){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices(t);const e={userSignedIn:!1,dataFrom:g.Watchlist,dataTimestamp:null,fullWatchlistQuoteIds:null};this.config.enableUnsignedWatchlist?e.userSignedIn=!0:e.userSignedIn=(yield(0,gm.XJ)())===hm.Hy.SignedIn;let i=[];(e.userSignedIn||this.config.enableUnsignedWatchlist)&&(i=yield this.financeUserService.getWatchlist(!1,void 0,this.additionaRequestHeaders),e.fullWatchlistQuoteIds=i),i&&0!==i.length||this.config.enableUnsignedWatchlist?e.dataFrom=g.Watchlist:e.dataFrom=g.Market;const n=e.dataFrom===g.Watchlist?i:this.config.marketQuoteIds,[r,o]=yield this.getQuoteSummaryForList(n,this.config.recommendedQuoteIds);return e.dataTimestamp=(new Date).getTime(),Et(e.userSignedIn,null,e.dataFrom,n,r,o,null)}))}getQuoteSummaryForList(...t){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices(),this.financeService.cleanCache&&this.financeService.cleanCache.call();const e=[].concat(...t),i=yield this.financeService.getQuoteSummary(e);return[...t.map((t=>this.getQuoteItemsByIds(i,t)))]}))}getQuoteItemsByIds(t,e){if(!t||0===t.length||!e||0===e.length)return[];t=t.filter((t=>null==t?void 0:t.id));const i=e.map((e=>t.find((t=>t.id===e))));return this.config.highlightQuoteChange&&this.addPriceChangeForQuoteItems(i),i}addPriceChangeForQuoteItems(t){t.forEach((t=>{if(this.quoteMapIdToItem.has(t.id)){const e=this.quoteMapIdToItem.get(t.id);t.priceChange=t.priceNumber-e.priceNumber}else t.priceChange=0;this.quoteMapIdToItem.set(t.id,t)}))}getMarketMovers(){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices();const t=yield this.financeService.getMarketMovers();return{activeQuoteIds:t.active||[],gainersQuoteIds:t.gainers||[],losersQuoteIds:t.losers||[]}}))}disableMoneyCard(t){return(0,f.mG)(this,void 0,void 0,(function*(){return yield this.initFinanceServices(),t===Oi.f.FinanceCard?this.financeUserService.enableDisableMoneyCard(!1):this.financeUserService.enableDisableCard(t,!0)}))}updateFinanceInterests(t){return(0,f.mG)(this,void 0,void 0,(function*(){return yield this.financeUserService.updateFinanceInterests(t)}))}autoRetryAddToWatchlist(t){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices();const e=t=>new Promise((e=>setTimeout(e,t)));for(let i=0;i<4;i+=1){if(yield this.financeUserService.addToWatchlist(t,this.additionaRequestHeaders))break;if((yield this.financeUserService.getWatchlist(!1,void 0,this.additionaRequestHeaders)).includes(t))break;yield e(500)}}))}addToWatchlist(t,e){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices(),this.autoRetryAddToWatchlist(t);let i=e.find((e=>e.id===t));return i||(i=(yield this.financeService.getQuoteSummary([t],2))[0]),i}))}watchQuote(t){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices();return yield this.financeUserService.addToWatchlist(t,this.additionaRequestHeaders)}))}watchQuotes(t){return(0,f.mG)(this,void 0,void 0,(function*(){try{return yield this.financeUserService.addListToWatchlist(t,this.additionaRequestHeaders)}catch(t){(0,V.H)(zt.Dzt,`Exception while adding quotes to watchlist: ${t?t.message:""}`)}}))}getQuoteSummary(t){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices();return(yield this.financeService.getQuoteSummary([t],2))[0]}))}deleteFromWatchlist(t){return(0,f.mG)(this,void 0,void 0,(function*(){return yield this.initFinanceServices(),this.financeUserService.deleteFromWatchlist(t,this.additionaRequestHeaders)}))}getWatchlistIds(){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices();return yield this.financeUserService.getWatchlist(!1,void 0,this.additionaRequestHeaders)}))}getAutoSuggestQuotes(t,e){return(0,f.mG)(this,void 0,void 0,(function*(){return yield this.initFinanceServices(),this.financeAutoSuggestService.getAutoSuggest(t,e)}))}getMarketOpenCloseStatus(){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices();return yield this.financeService.getMarketOpenCloseStatus()}))}getTradingStatus(){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices();const t=et.jG.CurrentMarket,e=lm.i[t]||lm.W;return yield this.financeService.getMarketTradingStatus(e)}))}shouldShowFutures(){var t;return(0,f.mG)(this,void 0,void 0,(function*(){const e=yield this.getTradingStatus(),i=null===(t=null==e?void 0:e.currentSession)||void 0===t?void 0:t.marketStatus;return i!==cm.Z.PreHours&&i!==cm.Z.Regular&&i!==cm.Z.AfterHours}))}getClosedExchanges(t,e){return(0,f.mG)(this,void 0,void 0,(function*(){if(!t)return Promise.resolve(null);yield this.initFinanceServices();try{const i=yield this.financeService.getExchanges(t),n=new Date,r=[];return i&&i.forEach((t=>{this.isMarketOpen(t,n,e)||r.push(t._p)})),Promise.resolve(r)}catch(t){return(0,V.H)(zt.v9K,`Exception while fetching exchanges for closed markets: ${t?t.message:""}`),Promise.resolve(null)}}))}isMarketOpen(t,e,i){var n;if(i){const i=dm.QQ.getMarketTradingStatus(t,e),r=null===(n=null==i?void 0:i.currentSession)||void 0===n?void 0:n.marketStatus;if(r)return cm.Z.PreHours===r||cm.Z.Regular===r||cm.Z.AfterHours===r;if((null==i?void 0:i.lastCloseTime)&&(null==i?void 0:i.nextChangeTime)){const t=72e5,n=e.getTime(),r=i.lastCloseTime.getTime(),o=i.nextChangeTime.getTime()-n;return n-r<t||o<t}}const r=dm.QQ.getMarketOpenCloseStatus(t,e);return r&&r.open}fetchSingleQuoteChart(t){return(0,f.mG)(this,void 0,void 0,(function*(){if(!t||!this.financeService)return null;try{const e=yield this.financeService.getChart([t],$.OneDayOneMinute);if(e&&e[0])return Vt(e[0],1);(0,V.H)(zt.lw5,`Chart Data is not available for ${t}`)}catch(e){(0,V.H)(zt.VBI,`Exception while trying to fetch chart data for ${t}: ${e?e.message:""}`)}return null}))}getQuotesChart(t){return(0,f.mG)(this,void 0,void 0,(function*(){if(!t||!t.length)return null;yield this.initFinanceServices();const e={};try{const i=yield this.financeService.getChart(t,$.OneDayOneMinute);if(!i)return(0,V.H)(zt.lw5,"No stock chart data is available"),null;let n=null;i.forEach((t=>{n=Vt(t,1),n&&(e[n.instrumentId]=n)}))}catch(t){(0,V.H)(zt.VBI,`Exception while trying to fetch chart data for all quotes: ${t?t.message:""}`)}return Promise.resolve(e)}))}fetchListChart(t){var e,i,n,r;return(0,f.mG)(this,void 0,void 0,(function*(){if(!this.financeService)return null;if(!(t&&t.quoteIds&&t.quoteIds.length>0))return null;try{let o=null,a=null;a=(null===(i=null===(e=t.performance)||void 0===e?void 0:e.year)||void 0===i?void 0:i.changePercent)?$.OneYear:$.OneDayFiveMinute;const s=a===$.OneDayFiveMinute?5:7200,l=yield this.financeService.getChart(t.quoteIds,a);if(!l)return(0,V.H)(zt.lw5,`Chart Data is not available for ${t.listDisplayName}`),null;if((null==l?void 0:l.length)>0){const t=class{static getMarket(t=!1){if(t){const t=et.jG.CurrentMarket,e=["ar","bn","fa","mr","ne"];return t&&e.some((e=>t.startsWith(e)))?"en-us":t}return(et.jG.CurrentMarket||"en-us").toString()}static aggregatedChart(t,e,i,n){var r;const o=this.getMarket(),a=t.filter((t=>t.market===o)),{startTime:s,endTime:l,chartEndTime:c}=this.calculateTimes(t);let d=s.time;const u=this.generateTimeSpan(i),h=[],g=[];for(a.map((t=>{var e;let i=(null===(e=null==t?void 0:t.series)||void 0===e?void 0:e.items)?[...t.series.items]:null;if((null==i?void 0:i.length)>0){i.sort(((t,e)=>e.date.getTime()-t.date.getTime()));const e=i.findIndex((t=>t.date.getTime()<=d.getTime()));i=i.filter(((t,i)=>i<=e));const n=[];t.pricePreviousClose,i.forEach(((t,e)=>{n.push(Object.assign({},t))})),g.push(Object.assign(Object.assign({},t),{series:Object.assign(Object.assign({},t.series),{items:n})}))}}));d.getTime()<=l.time.getTime();){if(!this.isCloseTime(a,d,i,u)){const t={date:d,close:0,open:0,high:0,low:0,volume:0,total:0};g.map((e=>{var i,n;if((null===(n=null===(i=e.series)||void 0===i?void 0:i.items)||void 0===n?void 0:n.length)>0&&e.series.startTime.getTime()<=d.getTime()&&(e.series.endTime.getTime()>=d.getTime()||d.getTime()-e.series.endTime.getTime()<=u)){const i=[...e.series.items].sort(((t,e)=>e.date.getTime()-t.date.getTime())).find((t=>t.date.getTime()<=d.getTime()));i&&(t.close+=i.close,t.open+=i.open,t.high+=i.high,t.low+=i.low,t.volume+=i.volume,t.total+=1)}})),t.total>0&&h.push({date:t.date,close:t.close/t.total,open:t.open/t.total,high:t.high/t.total,low:t.low/t.total,volume:t.volume/t.total})}d=i!==$.All?new Date(d.getTime()+u):this.nextMonthLastDay(d)}let p=0;t.forEach((t=>{p+=t.pricePreviousClose})),p/=t.length;const f=h.map((t=>t.close)),m=Math.max(...f),v=Math.min(...f),y={startTime:null===(r=h[0])||void 0===r?void 0:r.date,endTime:c.time,items:h,priceHigh:m,priceLow:v};return Object.assign(Object.assign({},a[0]),{pricePreviousClose:p,series:Object.assign({},y),symbol:e,instrumentId:a.map((t=>t.instrumentId)).join("-")})}static calculateTimes(t){const e=[],i=[],n=[];t.forEach((t=>{var r,o,a;if(null===(r=null==t?void 0:t.series)||void 0===r?void 0:r.endTime){const i=e.find((e=>e.time.getTime()===t.series.endTime.getTime()));i?i.total+=1:e.push({time:t.series.endTime,total:1}),e.sort(((t,e)=>e.time.getTime()-t.time.getTime()))}if((null===(a=null===(o=null==t?void 0:t.series)||void 0===o?void 0:o.items)||void 0===a?void 0:a.length)>0){const e=t.series.items,r=i.find((t=>t.time.getTime()===e[0].date.getTime()));r?r.total+=1:i.push({time:e[0].date,total:1}),i.sort(((t,e)=>e.time.getTime()-t.time.getTime()));const o=n.find((t=>t.time.getTime()===e[e.length-1].date.getTime()));o?o.total+=1:n.push({time:e[e.length-1].date,total:1}),n.sort(((t,e)=>e.time.getTime()-t.time.getTime()))}}));let r=Object.assign({},i[0]);i.forEach((t=>{t.total>r.total&&(r=Object.assign({},t))}));let o=Object.assign({},n[0]);n.forEach((t=>{t.total>=o.total&&(o=Object.assign({},t))}));let a=Object.assign({},e[0]);return e.forEach((t=>{t.total>=a.total&&(a=Object.assign({},t))})),{startTime:r,endTime:o,chartEndTime:a}}static isCloseTime(t,e,i,n){let r=!1;if(0!==e.getDay()&&6!==e.getDay()||(r=!0),i===$.FiveDays){const i=[],o=[];if(t.forEach((t=>{var n;if((null===(n=null==t?void 0:t.series)||void 0===n?void 0:n.items.length)>0){const n=[...t.series.items],r=n.find((t=>t.date.getTime()>=e.getTime())),a=n.reverse().find((t=>t.date.getTime()<=e.getTime()));if(a){const t=i.find((t=>t.time.getTime()===a.date.getTime()));t?t.total+=1:i.push({time:a.date,total:1}),i.sort(((t,e)=>e.time.getTime()-t.time.getTime()))}if(r){const t=o.find((t=>t.time.getTime()===r.date.getTime()));t?t.total+=1:o.push({time:r.date,total:1}),o.sort(((t,e)=>e.time.getTime()-t.time.getTime()))}}})),i&&0!==i.length&&o&&0!==o.length){let t=i[0];i.forEach((e=>{e.total>=t.total&&(t=Object.assign({},e))}));let a=o[0];o.forEach((t=>{t.total>a.total&&(a=Object.assign({},t))})),(e.getTime()-t.time.getTime()>n||a.time.getTime()-e.getTime()>n)&&(r=!0)}else r=!0}return r}static generateTimeSpan(t){const e=6e4;switch(t){case $.OneDayOneMinute:return e;case $.OneDayFiveMinute:return 3e5;case $.FiveDays:return 9e5;case $.OneMonth:case $.ThreeMonth:case $.OneYear:return 864e5;case $.ThreeYear:case $.FiveYear:return 6048e5;default:return e}}static nextMonthLastDay(t){let e=t.getFullYear(),i=t.getMonth()+2;return i>12&&(i-=12,e+=1),new Date(e,i,0,t.getHours(),t.getMinutes(),t.getSeconds())}}.aggregatedChart(l,"list chart",a,this.showChangePercentInChart);if((null===(r=null===(n=null==t?void 0:t.series)||void 0===n?void 0:n.items)||void 0===r?void 0:r.length)>0){o=Ut(t,s);const e=t.series.items,i=a===$.OneDayFiveMinute?o.pricePreviousClose:e[0].close;o.pricePreviousClose=t.pricePreviousClose,o.performance=this.showChangePercentInChart?e[e.length-1].close:100*(e[e.length-1].close/i-1),o.chartData=Gt.compress1DChart(t,120,3,s)}}return o}catch(e){(0,V.H)(zt.VBI,`Exception while trying to fetch chart data for ${t.listDisplayName}: ${e?e.message:""}`)}return null}))}getNewsDetails(t){var e;return(0,f.mG)(this,void 0,void 0,(function*(){if(!t)return Promise.resolve(null);if(yield this.initFinanceServices(),!this.config.newsProviderConfig)return Promise.resolve(null);try{if(yield this.initNewsService(),!this.newsCardProvider)return Promise.resolve(null);const i={query:`ef_stock_topic_${t}`},n=yield this.newsCardProvider.fetch(i);if(!((null===(e=null==n?void 0:n.cardMetadata)||void 0===e?void 0:e.length)>0))return Promise.resolve(null);let r=n.cardMetadata;if(!((null==r?void 0:r.length)>0))return(0,V.H)(zt.Kz0,`news data is not available ${t}`),Promise.resolve(null);r=r.filter((t=>function(t){if(!t||!t.cardContent||!t.cardContent.title)return!1;const{images:e}=t.cardContent;return!!((null==e?void 0:e.length)>0&&e[0].url)}(t)));return r.map((t=>{const{title:e,provider:i}=t.cardContent;return{title:e,imageUrl:t.cardContent.images[0].url,providerName:null==i?void 0:i.name,providerLogoUrl:null==i?void 0:i.logoUrl}}))}catch(e){(0,V.H)(zt.O0V,`Exception while trying to fetch news data for ${t}: ${e?e.message:""}`)}return(0,V.H)(zt.Kz0,`news data is not available ${t}`),Promise.resolve(null)}))}getListDetails(t){return(0,f.mG)(this,void 0,void 0,(function*(){if(Array.isArray(t)&&0!==t.length){try{yield this.initFinanceServices();const e=ct(t)[0];let i=yield this.financeService.getLists([e]);return i=i.map((t=>{const e=t.quotes.map((t=>t.symbol));return Object.assign(Object.assign({},t),{symbols:e})})),Promise.resolve(i)}catch(t){(0,V.H)(zt.eDJ,`Exception while trying to fetch listsItem details for portfolio: ${t?t.message:""}`)}return(0,V.H)(zt.rgO,"lists data is not available"),null}}))}getQuoteNotifications(t,e=3){return(0,f.mG)(this,void 0,void 0,(function*(){yield this.initFinanceServices();return this.financeFalconService.getNotificationDataWithTimeout(t,e,3e3)}))}}var fm=i(55096),mm=i.n(fm),vm=i(9610),ym=i(10209),bm=i(97186),wm=i(82423);class xm extends vm.l{constructor(){super(),this.quoteDict={},this.isGA=!1,this.isActionMenuOpen=!1,this.isDismissMenuOpen=!1,this.enableAutoRotation=!1,this.maxChangeStringLengths={},this.maxValueStringLengths={},this.recommendedQuoteItems=[],this.recommendedQuoteItemsInSearch=[],this.collectionItemsInSearchNft=[],this.learnItems=[],this.watchlistQuoteDict={},this.charts={},this.getQuoteLinkTelemetry=(t,e,i,n)=>this.moneyInfoCardWCTelemetryContext?this.moneyInfoCardWCTelemetryContext.getStockClickTags(t,e,i,n):null,this.dismissMenuAction=t=>(0,f.mG)(this,void 0,void 0,(function*(){var e;const i=this.cardFeedDataJson.financeInterests||[],n={moneyCardTabType:t,follow:!1},r=i.findIndex((e=>e.moneyCardTabType===t));-1!==r&&i.splice(r,1),i.push(n);try{const t=yield this.moneyEntryPointService.updateFinanceInterests(i);return t&&(null===(e=this.refreshSDCardSection)||void 0===e||e.call(this)),t}catch(t){(0,V.H)(zt.Ii3,`Exception at updateFinanceInterests ${t?t.message:""}`)}return!1})),this.onOutsideClick=t=>{const e=t.composedPath()&&t.composedPath()[0];t.target instanceof xm||this.actionsMenuButtonElement.contains(e)||this.toggleActionMenu(!1,null)},this.onKeydown=t=>{"Escape"===t.code&&this.toggleActionMenu(!1,null)},this.addSymbolAction=()=>{if(this.config.disableInLineAddWatchlist){const t=St(this.defaultWatchlistPageLink);window.open(t,"_blank")}else this.currentPageType=g.Search;this.toggleActionMenu(!1,null)},this.hideCardAction=t=>(0,f.mG)(this,void 0,void 0,(function*(){const e=yield this.moneyEntryPointService.disableMoneyCard(t);return e&&this.refreshSDCardSection&&this.refreshSDCardSection(),this.toggleActionMenu(!1,null),e})),this.dataProviderAction=()=>{this.toggleActionMenu(!1,null),window.open(this.config.financeDataProviderPage,"_blank")},this.learnSuggAction=()=>{this.toggleActionMenu(!1,null),window.open(this.config.financeLearnSuggPage,"_blank")},this.moreSettingAction=()=>{this.toggleActionMenu(!1,null),this.$emit("goToPersonalizeSettingsCallback")},this.setCurrentPageTypes=t=>{var e;const{addSymbolOptStr:i}=this.strings,{menuSearchAndAddSymbolClickTags:n}=null!==(e=this.moneyInfoCardWCTelemetryContext)&&void 0!==e?e:{},{enableFluentUIIcons:r}=this.config;if(this.currentPageType=t,"nft"===t)this.menuItems=this.menuItems.filter((t=>"addSymbol"!==t.id));else{if(this.menuItems.some((t=>"addSymbol"===t.id)))return null;this.menuItems.unshift({id:"addSymbol",title:i,glyph:r?Ln():Xt,onClick:()=>(0,f.mG)(this,void 0,void 0,(function*(){this.addSymbolAction()})),telemetryTag:n})}},this.sizeChangeHandler=t=>{if(this.widgetSize&&"onSizeChangeEnd"===t)this.adjustToHeight(this.widgetSize.getSize());else if("CardResized"===t.type){const e=t.detail.size;if("MoneyInfo"!=(t&&t.detail.cardType))return;this.adjustToHeight(e)}},this.settingsHandler=t=>{if("onShowSettingsEnd"===t){if(this.config.isContentUnavailable)return void this.widgetSettings.hideSettings();if(this.shouldCardOverflow=this.config.isDynamicFeed&&this.isHalfCard(),this.shouldCardOverflow&&(0,ie.f3)(this.parentElement,this.sizeChangeHandler,"MoneyInfo"),this.closeActionMenu(),this.currentPageType=g.Search,!this.config.isDynamicFeed){const t=(0,ne.eH)("money");t&&rt.M0.sendActionEvent(t,be.Aw.Click,be.wu.Customize)}}else"onHideSettingsEnd"===t&&(this.currentPageType=g.Watchlist)},this.propertiesHandler=t=>{"colorMode"===t&&(this.widgetBackgroundMode=this.widgetProperties.getProperty(t),this.initGradientAttriutes())},this.visibilityHandler=t=>{this.config.isContentUnavailable||("visible"===t?(this.onDashboardVisible(),this.isFlyoutOpen=!0):"notvisible"===t&&(this.isSpotlightUX=!1,this.previewType=null,this.widgetSizeUpdate=!1,this.cancelAutoRefresh(),this.isFlyoutOpen=!1))},this.interactionsHandler=t=>{"titleInteracted"===t?(this.titleLink||(this.titleLink=(0,ne.gd)("finance",this.widgetProperties.activationUrl,this.widgetProperties.title)),rt.M0.sendActionEvent(this.titleLink,be.Aw.Click,be.wu.Navigate)):"settingsInteracted"===t&&(this.seeMoreButton||(this.seeMoreButton=(0,ne.vh)("finance")),rt.M0.sendActionEvent(this.seeMoreButton,be.Aw.Click,be.wu.More))},this.lifecycleHandler=t=>(0,f.mG)(this,void 0,void 0,(function*(){if("removing"===t){this.cancelAutoRefresh();const t=(0,ne.D7)("money");t&&rt.M0.sendActionEvent(t,be.Aw.Click,be.wu.Remove)}})),this.quoteListPageWatchQuote=(t,e)=>(0,f.mG)(this,void 0,void 0,(function*(){if(this.isRefreshingData)return;if(t.preventDefault(),this.isRefreshingData=!0,this.watchlistQuoteDict[e])return void(this.isRefreshingData=!1);const i=yield this.moneyEntryPointService.watchQuote(e);let n=this.quoteDict[e];if(n||(n=yield this.moneyEntryPointService.getQuoteSummary(e)),!i||!n)return this.showWatchlistConfirmation((null==n?void 0:n.symbol)||"",w.FailedToAdd),void(this.isRefreshingData=!1);this.watchlistQuoteDict=Object.assign(Object.assign({},this.watchlistQuoteDict),{[e]:!0}),this.tabNames.includes(g.Watchlist)?this.updateWatchlistTab(n):this.isSpotlightUX&&this.updateRecommendedQuoteItems(),this.showWatchlistConfirmation(n.symbol,w.AddToWatchlist),this.insertSuggestedTab(),this.addInlineStockChart(this.tabNames,!0),en(!0),this.isRefreshingData=!1})),this.closeActionMenu=()=>{this.config.isDynamicFeed&&this.sdCardActionClickHandler&&this.dismissActionMenu&&this.dismissActionMenu()},(0,xi.z)().withShadowRootMode("closed").withElementDisambiguation((()=>ee.h.ignoreDuplicate)).register((0,Ci.QT)(),(0,Ti.ay)(),(0,$i.aV)(),(0,ki.hb)(),(0,Ii.EK)(),(0,Si.k)()),ee.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>ee.h.ignoreDuplicate)).withPrefix("msft").register((0,he.g)(),(0,ge.xb)(),(0,pe.ok)(),(0,fe.M9)(),(0,me.mL)(),(0,ve.gn)())}cardFeedDataJsonChanged(t,e){this.cardFeedDataJson&&sn(t,e)&&this.config&&(this.config.isDynamicFeed&&this.widgetSizeUpdate&&this.isFlyoutOpen?this.widgetSizeUpdate=!1:this.initData_v2())}experienceConnected(){var t;return(0,f.mG)(this,void 0,void 0,(function*(){if(this.isMoneyCardFocused=!1,this.config.isContentUnavailable)return this.$fastController.addStyles(se),this.initWidgetInstance(),this.initGradientAttriutes(),void(0,le.MD)(l.x.moneyInfoCardWC);qi()&&this.isDataReady?(this.connectWidgetEvents(),this.setupAutoRefresh(),this.initCardForDynamicFeed(),this.initGradientAttriutes()):(dt("MoneyInfoCardWC.Start"),this.isGA&&this.config.enableEyeSdCardMask&&(null===(t=this.config.childExperienceReferences)||void 0===t?void 0:t.sdCardMaskWC)&&(yield(0,ym.Fg)(this.config.childExperienceReferences.sdCardMaskWC)),this.initConfig(),qi()&&(this.initWidgetInstance(),this.initCardForDynamicFeed()),this.initTelemetry(),this.initGradientAttriutes(),this.initData_v2()),qi()||(this.themeChangeHandlerBinded=this.themeChangeHandler.bind(this),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",this.themeChangeHandlerBinded)),(0,ce.Z0)()&&this.config.enableForceSpotlight&&this.notifications&&Object.keys(this.notifications).length&&this.forceAddSpotlightTab()}))}themeChangeHandler(){this.initGradientAttriutes()}initConfig(){this.config.useMockData&&(this.config.initialCardHeight==this.config.halfCardHeight&&(this.cardLayout=ye.NV.half),this.cardFeedDataJson=this.config.mockCardFeedDataJson),void 0===this.openLinksInNewTab&&(this.openLinksInNewTab=!0),this.config.enableAutoScroll&&this.config.enableAutoScrollRandomize&&(this.config.enableAutoScroll=!!Math.round(Math.random())),this.saveInitialQuoteValues(),this.isHalfCard()?(this.cardHeight=this.config.halfCardHeight,this.config.maxNumberOfQuotes=this.config.maxNumberOfQuotesHalf,this.config.maxLearnCount=this.config.maxLearnCountSmall,this.currentWidgetSize="small",this.config.isDynamicFeed||(this.config.disableFooter=!0)):(this.cardHeight=this.config.initialCardHeight,qi()||(this.currentWidgetSize="medium"),Ni()&&(this.config.enableFullCarousel=!0),this.restoreInitialQuoteValues()),this.config.apiConfig.maxNumberOfQuotes=this.config.maxNumberOfQuotes,this.config.apiConfig.enableUnsignedWatchlist=this.config.enableUnsignedWatchlist,this.config.apiConfig.highlightQuoteChange=this.config.highlightQuoteChange,this.isMultiTabUXReady=!1,this.defaultWatchlistPageLink=(0,nt.h_)(this.config.financeWatchlistPage)}initTelemetry(){this.moneyInfoCardWCTelemetryContext||this.createMoneyTelemetryContext()}createMoneyTelemetryContext(){var t,e;const i=qi()?this.getWidgetTelemetryExt():null===(e=null===(t=this.parentTelemetry)||void 0===t?void 0:t.contract)||void 0===e?void 0:e.ext;let n=null;this.config.isDynamicFeed&&(n=this.isPinned?"pinned":"feed"),this.moneyInfoCardWCTelemetryContext=((t,e,i,n,r)=>{if(!t)return;const o=(t,e)=>{if(t&&e)return e=Object.assign(Object.assign({},e),{content:Object.assign(Object.assign({},e.content),{type:be.uH.StructuredData,vertical:xe,category:Ce}),ext:n}),t.addOrUpdateChild(e).getMetadataTag()},a=t.addOrUpdateChild(Object.assign(Object.assign({},t.contract),{name:(()=>{switch(r){case b.Crypto:return $e;case b.PreWl:return ke;case b.MarketBrief:return Ie;default:return Te}})(),action:be.Aw.View,behavior:be.wu.Show,zone:i})),s=a.getMetadataTag(),l=t.addOrUpdateChild(Object.assign(Object.assign({},t.contract),{name:Qe,action:be.Aw.View,behavior:be.wu.Show,zone:i})),c=l.getMetadataTag(),d=t.addOrUpdateChild(Object.assign(Object.assign({},t.contract),{name:ze,action:be.Aw.Click,behavior:be.wu.Navigate,zone:i})),u=(a.getMetadataTag(),o(a,{name:Pe,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.Header,zone:i})),h=o(a,{name:qe,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.Header,zone:i}),p=o(a,{name:Ne,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.Header,zone:i}),f=o(a,{name:He,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.Header,zone:i}),m=o(a,{name:Se,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.ActionButton,zone:i}),v=o(a,{name:Le,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.Header,zone:i}),y=o(a,{name:Me,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.Footer,zone:i}),w=o(a,{name:_e,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.ActionButton,content:{headline:fi},zone:i}),x=o(a,{name:Oe,action:be.Aw.View,behavior:be.wu.Show,type:be.c9.Footer,zone:i}),C=o(a,{name:ni,action:be.Aw.Click,behavior:be.wu.Undefined,type:be.c9.Carousel,zone:i}),T=o(a,{name:ri,action:be.Aw.Click,behavior:be.wu.Undefined,type:be.c9.Carousel,zone:i}),$=o(l,{name:Ee,action:be.Aw.Click,behavior:be.wu.Cancel,type:be.c9.ActionButton,content:{headline:pi},zone:i}),k=o(l,{name:We,action:be.Aw.KeyPress,behavior:be.wu.TextSearch,type:be.c9.AutoSuggest,content:{headline:mi},zone:i}),I=o(a,{name:Re,action:be.Aw.Click,behavior:be.wu.More,type:be.c9.ActionButton,content:{headline:li},zone:i}),S=o(a,{name:Be,action:be.Aw.Click,behavior:be.wu.Add,type:be.c9.ActionButton,content:{headline:ci},zone:i}),L=o(a,{name:Ge,action:be.Aw.Click,behavior:be.wu.Undefined,type:be.c9.ActionButton,content:{headline:di},zone:i}),M=o(a,{name:Ue,action:be.Aw.Click,behavior:be.wu.Undefined,type:be.c9.ActionButton,content:{headline:gi},zone:i}),_=o(a,{name:Ve,action:be.Aw.Click,behavior:be.wu.Hide,type:be.c9.ActionButton,overrideDestinationUrl:e.financeDataProviderPage,content:{headline:ui},zone:i}),D=o(a,{name:Ze,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.ActionButton,overrideDestinationUrl:(t=>{let e;if(t.useGlobalSettingsUrl)e=new URL((0,nt.rP)()),(0,tt.ku)()&&e.searchParams.append("ocid",(0,tt.ku)());else{const t=(0,we.L)(),i=new URL("/personalize/settings",window.location.origin);i.search=t.toString(),e=i}return e.href})(e),content:{headline:hi},zone:i});return{quoteListViewShownTags:s,headerLinkClickTelemetryTags:m,landingPageLinkClickTelemetryTags:v,footerLinkClickTelemetryTags:y,seeWatchlistClickTelemetryTags:w,quoteAddedConfirmationShownTags:x,carouselPreviousButtonClickTags:C,carouselNextButtonClickTags:T,newsPageClickTelemetryTags:u,listsPageClickTelemetryTags:h,preWlPageClickTelemetryTags:p,wlSummaryPageClickTelemetryTags:f,searchPageViewShownTags:c,goBackViewTelemetryTags:$,autoSuggestKeyPressTags:k,menuCustomizationClickTags:I,menuSearchAndAddSymbolClickTags:S,menuDataProviderClickTags:L,menuLearnSuggClickTags:M,menuHideClickTags:_,menuMoreSettingsClickTags:D,menuDismissOpenClickTags:o(a,{name:Xe,action:be.Aw.Click,behavior:be.wu.More,type:be.c9.ActionButton,content:{headline:vi},zone:i}),menuDismissCloseClickTags:o(a,{name:Je,action:be.Aw.Click,behavior:be.wu.Cancel,type:be.c9.ActionButton,content:{headline:yi},zone:i}),menuDismissHideClickTags:o(a,{name:ei,action:be.Aw.Click,behavior:be.wu.Hide,type:be.c9.ActionButton,zone:i}),menuDismissCancelClickTags:o(a,{name:ii,action:be.Aw.Click,behavior:be.wu.Cancel,type:be.c9.ActionButton,zone:i}),getMenuDismissBtnTelemetryTags:(t,e)=>{const n={[g.Investing]:Ye,[g.Market]:Ke,[g.Crypto]:ti};return o(a,{name:n[t],action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.ActionButton,overrideDestinationUrl:e,zone:i})},addToWatchlistTags:(t,e,n)=>o(n?l:a,{name:n?je:Ae,action:be.Aw.Click,behavior:be.wu.Add,type:be.c9.ActionButton,content:{headline:t},zone:i}),getStockClickTags:(t,e,n,r)=>{const s=e===g.Search;return o(s?l:a,{name:r?Fe:De,action:be.Aw.Click,behavior:be.wu.Navigate,type:be.c9.Undefined,content:{headline:n,id:t},zone:i})},getTabShownTags:t=>o(a,{name:t,action:be.Aw.View,behavior:be.wu.Show,zone:i}),getCryptoLearnItemClickTags:t=>o(d,{name:ze,action:be.Aw.Click,behavior:be.wu.Navigate,content:{headline:t,id:t},zone:i}),getQuoteOverlayTags:t=>a?o(a,{name:oi,content:{headline:t}}):"",getCloseOverlayTags:t=>a?o(a,{name:ai,action:be.Aw.Click,behavior:be.wu.Close,content:{headline:t}}):"",getSeeDetailsOverlayTags:(t,e)=>a?o(a,{name:si,action:be.Aw.Click,behavior:be.wu.Navigate,content:{headline:t,id:e,type:be.uH.FinanceTicker}}):""}})(this.telemetryObject,this.config,n,i,this.cardType)}getWidgetTelemetryExt(){var t,e,i;return(null===(e=null===(t=this.parentTelemetry)||void 0===t?void 0:t.contract)||void 0===e?void 0:e.ext)||(0,ne.$x)(null===(i=this.widgetSize)||void 0===i?void 0:i.getSize(),this.widgetPosition,this.widgetColumn)}widgetDarkThemeState(){return le.gL&&le.gL.get&&le.gL.get(le.Iq.IsDarkMode)}isInDarkMode(){return!this.config.disableDarkMode&&(qi()&&!(0,ce.Z0)()?"dark"===this.widgetBackgroundMode:function(){if(!window.matchMedia)return;const t=window.matchMedia("(prefers-color-scheme: dark)");return t?!!t.matches:void 0}())}initGradientAttriutes(){var t,e,i,n,r,o;if(this.isDarkModeTheme=this.isInDarkMode(),qi()&&!this.config.enableGradientStyles)return void oe.IfY.setValueFor(this.parentElement,Li.w.from((0,bm.in)(this.isDarkModeTheme?"#2C2C2C":"#F2F2F2")));const a=this.isDarkModeTheme?Mi.h.DarkMode.toString():Mi.h.LightMode.toString();this.baseLayerLuminance=a;const s=this.getGradientBackgroundBaseColor();this.widgetBackgroundGradientBaseColor=s,this.config.isDynamicFeed?this.isDarkModeTheme?(this.$fastController.removeStyles($n),this.$fastController.addStyles(Tn)):(this.$fastController.removeStyles(Tn),this.$fastController.addStyles($n)):this.config.enableGradientStyles&&(null===(i=null===(e=null===(t=this.$fastController)||void 0===t?void 0:t.element)||void 0===e?void 0:e.parentElement)||void 0===i||i.setAttribute("neutral-base-color",s),null===(o=null===(r=null===(n=this.$fastController)||void 0===n?void 0:n.element)||void 0===r?void 0:r.parentElement)||void 0===o||o.setAttribute("base-layer-luminance",a))}getGradientBackgroundBaseColor(){return this.config.isDynamicFeed?this.config.useStaticGradientBackground?this.isDarkModeTheme?"#2C2C2C":"#F2F2F2":this.isDarkModeTheme?"#2E291F":"#0045ac":"#3A76CE"}initCardForDynamicFeed(){try{if(this.config.isDynamicFeed){this.$fastController.addStyles(de.es),this.isPinned=this.supportedSdCardActionMenuItems&&this.supportedSdCardActionMenuItems.includes(ie.B$.Unpin),this.cardSize||(this.cardSize=this.parentElement.getAttribute("cardsize")),this.adjustToHeight((0,ie.US)(this.cardSize));const t=this.widgetDarkThemeState();this.widgetBackgroundMode=t?"dark":"light",document.addEventListener("CardResized",this.sizeChangeHandler),this.handleSpotlightPinnedBinded=this.handleSpotlightPinned.bind(this),document.addEventListener("SpotlightUXForPinnedCards",this.handleSpotlightPinnedBinded)}}catch(t){if(!(0,ce.Z0)()){const e=Object.assign(Object.assign({},zt.aW_),{message:"Finance: "+zt.aW_.message,pb:Object.assign(Object.assign({},zt.aW_.pb),{isPinned:this.isPinned})});(0,V.H)(e,`Finance: error initializing MoneyInfoCard dynamic ranking widget: ${t?t.message:""}`)}}}initWidgetInstance(){try{const t=document.getElementById(this.widgetInstanceId);this.widgetInstance=t&&t.instance,this.widgetProperties=this.widgetInstance.tryGetApi("properties",ue.l1,ue.l1),this.widgetProperties&&(this.widgetProperties.attribution=this.strings.poweredByMsftFinance,this.widgetProperties.activationUrl=this.getWatchlistPageHeaderLink(),this.widgetBackgroundMode=this.widgetProperties.getProperty("colorMode")||"light",this.widgetPosition=this.widgetProperties.getProperty("position"),this.widgetColumn=this.widgetProperties.getProperty("column")),this.widgetSize=this.widgetInstance.tryGetApi("sizes",ue.l1,ue.l1),this.widgetSize&&!this.config.isDynamicFeed&&this.adjustToHeight(this.widgetSize.getSize()),this.widgetStatus=this.widgetInstance.tryGetApi("status",ue.l1,ue.l1),this.widgetSettings=this.widgetInstance.tryGetApi("settings",ue.l1,ue.l1),this.widgetVisibility=this.widgetInstance.tryGetApi("visibility",ue.l1,ue.l1),this.widgetLifecycle=this.widgetInstance.tryGetApi("lifecycle",ue.l1,ue.l1),this.widgetInteractions=this.widgetInstance.tryGetApi("interactions",ue.l1,ue.l1),this.connectWidgetEvents()}catch(t){if(qi()&&(0,ce.Z0)())return;this.config.isDynamicFeed?(0,V.H)(zt.pf,`Finance: Dyanmic Ranking widget instance is not available: ${t?t.message:""}`):(0,V.H)(zt.Yr5,`Finance: error initializing MoneyInfoCard widget: ${t?t.message:""}`)}}initData_v2(){if(this.carouselCardDatas=[],this.tabDict={},this.newsTabDict={},this.listsTabDict={},this.cryptoLearnTabDict={},this.wlPromoTabDict={},this.quoteDict={},this.tabRefreshedTrackerDict={},this.closedMarkets=[],this.charts={},!st(this.cardFeedDataJson)){const t=Qt(this.cardFeedDataJson);return this.parseData(t)}if(tn()||Ni()||this.config.isDynamicFeed)return;qi()&&(this.config.apiConfig.maxNumberOfQuotes=this.config.maxNumberOfQuotesLarge),this.moneyEntryPointService=new pm(this.config.apiConfig);const t=this.moneyEntryPointService.getInitialMoneyCardData(this.widgetInstance);t?t.then((t=>this.parseData(t))):(0,V.H)(zt.xDA,"service promise is null or undefined")}isHalfCard(){return this.cardLayout===ye.NV.half||"small"===this.currentWidgetSize||"half"===this.currentWidgetSize}shadowDomPopulated(){this.moneyEntryPointService||this.config.isContentUnavailable||this.initEntryPointService(),(0,G.l6)(this.getExperienceType())}disconnectedCallback(){super.disconnectedCallback(),this.cancelAutoRefresh(),qi()?this.disconnectWidgetInstance():this.unsetIntersectionObserver(),qi()||window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",this.themeChangeHandlerBinded)}connectWidgetEvents(){this.widgetSize&&this.widgetSize.addEventListener(this.sizeChangeHandler),this.widgetSettings&&this.widgetSettings.addEventListener(this.settingsHandler),this.widgetVisibility&&this.widgetVisibility.addEventListener(this.visibilityHandler),this.widgetLifecycle&&this.widgetLifecycle.addEventListener(this.lifecycleHandler),this.widgetProperties&&this.widgetProperties.addPropertyChangeListener(this.propertiesHandler),this.widgetInteractions&&this.widgetInteractions.addEventListener(this.interactionsHandler)}disconnectWidgetInstance(){var t;this.widgetSize&&this.widgetSize.removeEventListener(this.sizeChangeHandler),this.widgetSettings&&this.widgetSettings.removeEventListener(this.settingsHandler),this.widgetVisibility&&this.widgetVisibility.removeEventListener(this.visibilityHandler),this.widgetLifecycle&&this.widgetLifecycle.removeEventListener(this.lifecycleHandler),this.widgetProperties&&this.widgetProperties.removePropertyChangeListener(this.propertiesHandler),this.widgetInteractions&&this.widgetInteractions.removeEventListener(this.interactionsHandler),(null===(t=this.config)||void 0===t?void 0:t.isDynamicFeed)&&(document.removeEventListener("CardResized",this.sizeChangeHandler),document.removeEventListener("SpotlightUXForPinnedCards",this.handleSpotlightPinnedBinded))}getExperienceType(){return l.x.moneyInfoCardWC}cancelAutoRefresh(){this.autoRefreshCall&&(clearInterval(this.autoRefreshCall),this.autoRefreshCall=null)}getTargetForLink(){return this.openLinksInNewTab?"_blank":"_self"}calculateQuoteMaxStringLengths(t,e){let i=this.maxChangeStringLengths[e]||this.config.maxChangeStringLength,n=this.maxValueStringLengths[e]||this.config.maxValueStringLength;t.forEach((t=>{t.changePcnt&&t.changePcnt.length>i&&(i=t.changePcnt.length),t.changeValue&&t.changeValue.length>i&&(i=t.changeValue.length),t.price&&t.price.length>n&&(n=t.price.length)})),this.maxChangeStringLengths[e]=i,this.maxValueStringLengths[e]=n}getWatchlistPageHeaderLink(t){return nn(this.cardType)?this.getTabHeaderLink(t):(this.watchlistPageHeaderLink||(this.watchlistPageHeaderLink=St(ut(et.jG.CurrentMarket,null,null,this.defaultWatchlistPageLink,t))||this.defaultWatchlistPageLink),this.watchlistPageHeaderLink)}getTabHeaderLink(t){var e;const i=null===(e=this.getQuoteIdsFromTabDetails(t))||void 0===e?void 0:e[0];return nn(this.cardType)?St((0,K.__)(et.jG.CurrentMarket,i)):St(ut(et.jG.CurrentMarket,i,m[t],this.defaultWatchlistPageLink,t))||this.defaultWatchlistPageLink}getPageNavUrl(t){if(nn(this.cardType))return St((0,K.__)(et.jG.CurrentMarket));const e=this.config.tabList.find((e=>e.tabType===t));return ht(t,{cbWatchlist:()=>this.getWatchlistPageHeaderLink(t),cbGeneral:()=>this.getTabHeaderLink(t),cbDefault:()=>St((null==e?void 0:e.headerLink)||this.config.financeLandingPageLink)})}showWatchlistConfirmation(t,e){this.confirmationPopup||(this.confirmationPopup={symbolLabel:null,targetPageLink:{displayText:this.strings.watchlistConfirmationText,href:this.getWatchlistPageHeaderLink(),target:this.getTargetForLink()}});let i="";switch(e){case w.AddToWatchlist:i=this.strings.addToWatchlistActionText.replace("{stock}",t);break;case w.FailedToAdd:i=this.strings.failedToAddActionText.replace("{stock}",t)}this.confirmationPopup=Object.assign(Object.assign({},this.confirmationPopup),{symbolLabel:i}),this.showConfirmation=!0,setTimeout((()=>this.showConfirmation=!1),4e3)}toggleActionMenu(t,e){!this.isDataReady&&this.config.showPreloadUx||(this.config.isDynamicFeed&&this.sdCardActionClickHandler?this.toggleMoneyInfoCardActions(e):(this.isActionMenuOpen=t,t?(this.actionsMenuButtonElement=e&&e.currentTarget,document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.onKeydown)):(this.actionsMenuButtonElement=null,document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onKeydown))))}toggleDismissMenu(t){this.isDismissMenuOpen=t}getDismissMenuButtonTelemetryTag(){var t,e;return this.isDismissMenuOpen?null===(t=this.moneyInfoCardWCTelemetryContext)||void 0===t?void 0:t.menuDismissOpenClickTags:null===(e=this.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.menuDismissCloseClickTags}toggleMoneyInfoCardActions(t){if(t){const e=this.getWidgetTelemetryExt(),i=xe,n={menuItems:(0,ie.aS)(this.supportedSdCardActionMenuItems,this.strings.poweredByMsftFinance,e,i,this.currentWidgetSize,this.settingsHandler),referrerButton:t.currentTarget,requestContext:new wi.fH,cardSize:this.currentWidgetSize};this.sdCardActionClickHandler(n,"MoneyInfo")}}getActionMenuItems(){var t;let e=[];const{addSymbolOptStr:i,hideCardOptStr:n,hideCardNonMoneyOptStr:r,dataProviderOptStr:o,moreSettingOptStr:a,sdCardMoreSettingAriaLabel:s}=this.strings,{menuDataProviderClickTags:l,menuHideClickTags:c,menuMoreSettingsClickTags:d,menuSearchAndAddSymbolClickTags:u}=null!==(t=this.moneyInfoCardWCTelemetryContext)&&void 0!==t?t:{},{enableHideCard:h,enableFluentUIIcons:p,enableMoreSetting:m}=this.config,v=p?_n():Yt;if(this.tabNames.includes(g.Watchlist)&&e.push({id:"addSymbol",title:i,glyph:p?Ln():Xt,onClick:()=>(0,f.mG)(this,void 0,void 0,(function*(){this.addSymbolAction()})),telemetryTag:u}),h){const t=function(t){switch(t){case b.Crypto:return Oi.f.Crypto;case b.MarketBrief:return Oi.f.MarketBrief;case b.MoneyInfo:return Oi.f.FinanceCard;default:return null}}(this.cardType);e.push({id:"hideCard",title:t===Oi.f.FinanceCard?n:r,glyph:p?Fn():Kt,onClick:()=>{this.hideCardAction(t)},telemetryTag:c})}return e=e.concat({id:"dataProvider",title:o,glyph:v,onClick:()=>{this.dataProviderAction()},telemetryTag:l}),m&&e.push({id:"moreSetting",title:a,ariaLabel:s,glyph:p?mm():te,onClick:()=>{this.moreSettingAction()},telemetryTag:d}),this.config.useMockData,e}getDismissMenuItems(){const{dismissMenuInvest:t,dismissMenuMarket:e,dismissMenuCrypto:i}=this.strings,{getMenuDismissBtnTelemetryTags:n}=this.moneyInfoCardWCTelemetryContext||{};return[{id:g.Investing,title:t,onClick:t=>this.goToPageByDataFrom(g.Investing,t),telemetryTag:null==n?void 0:n(g.Investing,this.getDismissMenuItemLink(g.Investing))},{id:g.Market,title:e,onClick:t=>this.goToPageByDataFrom(g.Market,t),telemetryTag:null==n?void 0:n(g.Market,this.getDismissMenuItemLink(g.Market))},{id:g.Crypto,title:i,onClick:t=>this.goToPageByDataFrom(g.Crypto,t),telemetryTag:null==n?void 0:n(g.Crypto,this.getDismissMenuItemLink(g.Crypto))}]}getDismissMenuItemLink(t){switch(t){case g.Investing:return(0,K.hK)();case g.Crypto:return(0,K.__)();case g.Market:return(0,K.SL)();default:return this.getTabHeaderLink(t)}}goToPageByDataFrom(t,e){const i=this.getDismissMenuItemLink(t);window.open(i,this.openLinksInNewTab?"_blank":"_self")}goBackToLastPage(){this.widgetSettings&&this.widgetSettings.hideSettings(),this.currentPageType=g.Watchlist,this.shouldCardOverflow&&(0,ie.gK)(this.parentElement,this.sizeChangeHandler,"MoneyInfo",this.shouldCardOverflow)}isMarketOpen(){return(0,f.mG)(this,void 0,void 0,(function*(){return(yield this.moneyEntryPointService.getMarketOpenCloseStatus()).open}))}isShowFutures(){return(0,f.mG)(this,void 0,void 0,(function*(){if((new Date).getDay()<=4){return yield this.moneyEntryPointService.shouldShowFutures()}return!1}))}getFuturesQuoteIds(){var t;return this.getQuoteIdsFromTabDetails(g.Futures)||(null===(t=this.config.apiConfig)||void 0===t?void 0:t.futuresQuoteIds)}getQuoteIdsFromTabDetails(t){var e,i;if(!this.tablistDetails)return null;const n=this.tablistDetails[t];if(!n)return null;if((null===(e=n.quoteItems)||void 0===e?void 0:e.length)>0){return n.quoteItems.reduce(((t,e)=>ft(e)?t.concat(ft(e)):t),[])}return(null===(i=n.quoteIds)||void 0===i?void 0:i.length)>0?n.quoteIds:null}getMarketQuoteIds(){var t;return this.getQuoteIdsFromTabDetails(g.Market)||(null===(t=this.config.apiConfig)||void 0===t?void 0:t.marketQuoteIds)}getMarketTabQuoteIds(){return(0,f.mG)(this,void 0,void 0,(function*(){if(this.config.enableFuturesTab)return this.getMarketQuoteIds();if(!this.config.enableFutures)return this.getMarketQuoteIds();return(yield this.isShowFutures())?this.getFuturesQuoteIds():this.getMarketQuoteIds()}))}toggleFooterVisibility(){this.config.disableFooter=this.config.enableGradientStyles&&this.isHalfCard()}adjustToHeight(t){let e=null;const i=this.currentWidgetSize,n=this.config.maxNumberOfQuotes;switch(this.isRefreshingData=!0,this.widgetSizeUpdate=!0,this.currentWidgetSize=t,t){case"_1x_3y":case"large":this.config.maxNumberOfQuotes=this.config.maxNumberOfQuotesLarge,this.config.maxAutosuggestionCount=this.config.enableGradientStyles?this.config.maxNumberOfQuotesLarge-1:this.config.maxNumberOfQuotesLarge-2,this.config.maxLearnCount=this.config.maxLearnCountLarge,this.cardLayout=ye.NV.full,e=this.config.cardHeightLarge,this.toggleFooterVisibility();break;case"_1x_1y":case"small":this.config.maxNumberOfQuotes=this.config.maxNumberOfQuotesSmall,this.config.maxAutosuggestionCount=this.config.maxNumberOfQuotesMedium-1,this.config.maxLearnCount=this.config.maxLearnCountSmall,this.cardLayout=ye.NV.half,e=this.config.cardHeightSmall,this.toggleFooterVisibility();break;default:this.config.maxNumberOfQuotes=this.config.maxNumberOfQuotesMedium,this.config.maxAutosuggestionCount=this.config.maxNumberOfQuotesMedium-1,this.config.maxLearnCount=this.config.maxLearnCountMedium,this.cardLayout=ye.NV.full,e=this.config.cardHeightMedium,this.toggleFooterVisibility()}if(!this.isDataReady)return this.cardHeight=e,void(this.isRefreshingData=!1);if(e===this.cardHeight)return void(this.isRefreshingData=!1);const r=this.isHalfCard()&&"small"!==i||!this.isHalfCard()&&"small"===i;if(nn(this.cardType)?(this.cardHeight=e,this.updateCryptoLearnTab(this.currentPageType),r&&this.switchLayout(this.currentPageType)):this.currentPageType===g.Spotlight?this.cardHeight=e:this.config.maxNumberOfQuotes<n?(this.reduceTabQuotes(this.currentPageType,r),this.cardHeight=e):(this.cardHeight=e,this.addTabQuotes(this.currentPageType,r)),rt.M0.addOrUpdateTmplProperty&&rt.M0.addOrUpdateTmplProperty(q,this.currentWidgetSize),!this.config.isDynamicFeed){const e=(0,ne.TU)("money",t);e&&rt.M0.sendActionEvent(e,be.Aw.Click,be.wu.Customize)}this.createMoneyTelemetryContext(),this.isRefreshingData=!1}switchLayout(t,e){var i;let n;switch(t){case g.wlsummary:n=this.getWatchlistPromoTabTemplate(t,this.tablistDetails[t]);break;case g.cryptoLearn:n=this.getCryptoLearnTabTemplate(this.currentPageType,this.cryptoLearnTabDict[this.currentPageType]);break;default:n=Ri(t)?this.getNewsTabTemplate(t,null===(i=this.tablistDetails[t])||void 0===i?void 0:i.newsDetails):this.getCarouselCardData(t,e)}n&&(this.currentSingleTabTemplate=n.tabContent)}addTabQuotes(t,e){const i=[];for(const t in this.quoteDict){const e=this.quoteDict[t];this.watchlistQuoteDict[e.id]&&i.push(e)}this.updateTabDict(t,i),this.updateRecommendedQuoteItems(),e&&this.switchLayout(t,this.tabDict[g.Watchlist]),this.setRecommendedQuoteItemsInSearch()}reduceTabQuotes(t,e){const i=[...this.tabDict[t]]||[];this.updateTabDict(t,i),this.updateRecommendedQuoteItems(),e&&this.switchLayout(t,this.tabDict[g.Watchlist]),this.setRecommendedQuoteItemsInSearch()}onDashboardVisible(){return(0,f.mG)(this,void 0,void 0,(function*(){if(this.widgetSizeUpdate=!1,this.initGradientAttriutes(),!this.isSpotlightUX){if(this.config.enableForceSpotlight&&this.notifications&&Object.keys(this.notifications).length)return void this.forceAddSpotlightTab();const t=!(this.config.isDynamicFeed&&this.config.enableGradientStyles);if(this.deleteTab(g.Spotlight)&&!this.config.enableFullCarousel){this.tabNames=this.savedTabNames;const e=this.tabNames[0];this.currentPageType=e,this.prepareTabs(this.getTabData(e),e),yield this.refreshQuotes(t,!0),this.isSpotlightUX||(yield this.addInlineStockChart(this.tabNames,!0),this.switchLayout(e,this.tabDict[e]))}else yield this.refreshQuotes(t,!0),yield this.addInlineStockChart(this.tabNames,!0)}this.setupAutoRefresh()}))}getShellFeedsApi(){return(0,f.mG)(this,void 0,void 0,(function*(){try{const t=window.__com_microsoft_dsh_widgetModelApiFactory;if(t)return yield t.tryGetApi("widgetshellfeeds",ue.l1,ue.l1)}catch(t){(0,V.H)(zt.PUT,"Exception at WidgetModelApiFactory.tryGetApi")}return null}))}getRotationalPreviews(){return(0,f.mG)(this,void 0,void 0,(function*(){const t=yield this.getShellFeedsApi();if(t)try{const e=yield t.getRotationalPreviewIds();if(e)return e;(0,V.H)(zt.yFJ,"WidgetShellFeeds.getRotationalPreviewIds returned nothing")}catch(t){(0,V.H)(zt.PUT,"Exception at WidgetShellFeeds.getRotationalPreviewIds")}return null}))}getFinancePreviewType(){return(0,f.mG)(this,void 0,void 0,(function*(){const t=yield this.getRotationalPreviews();if(!t)return null;const{previewType:e}=t;if(e){const[t,i]=e.split(":");if("Finance"===t){if(i)return i;(0,V.H)(zt.yFJ,`Invalid previewType: "${e}"`)}}return null}))}forceAddSpotlightTab(){const t=Object.keys(this.notifications),e=t[Math.floor(Math.random()*t.length)],i=`Finance:${this.notifications[e][0].notificationType}_${e}`;setTimeout((()=>{this.forceShowSpotlightTab(i)}),500)}forceShowSpotlightTab(t){var e;let i,n;switch(this.previewType=t,this.isSpotlightUX=!0,this.addSpotlightTab(t),this.spotlightDataFrom){case g.wlsummary:case g.Topstories:i=this.spotlightDataFrom;break;default:i=g.Spotlight,n=null===(e=this.tablistDetails[g.Spotlight])||void 0===e?void 0:e.quoteItems}this.switchLayout(i,n)}setupAutoRefresh(){this.config.enableAutoRefreshQuote&&!this.autoRefreshCall&&(this.autoRefreshCall=setInterval((()=>this.refreshQuotes(!1,!1)),this.config.autoRefreshIntervalInMillis))}deleteTab(t){const e=this.tabNames.indexOf(t),i=-1!==e;return i&&(this.tabNames.splice(e,1),this.carouselCardDatas.splice(e,1),this.tabDict[t]=null),i}parseData(t){var e,i,n,r,o;try{if(st(null==t?void 0:t.tabListDetails))return void(0,V.H)(zt.gvI,"data found is empty while parsing");this.tablistDetails=t.tabListDetails;const a=null===(e=t.fullWatchlistQuoteIds)||void 0===e?void 0:e.length;this.watchlistQuoteDict={},(null===(i=t.fullWatchlistQuoteIds)||void 0===i?void 0:i.length)>0&&t.fullWatchlistQuoteIds.forEach((t=>{this.watchlistQuoteDict[t]=!0})),Ft(this.closedMarkets,zt.Dl5,t.tradingTimeDictionary),this.notifications=t.quoteNotificationDetails,this.config.showMarketFirst&&(null===(n=t.recommendQuoteItems)||void 0===n?void 0:n.length)>0&&(this.config.showMarketFirst=!1),this.tabNames=this.getTabNames(t),this.isSpotlightUX&&this.previewType&&this.addSpotlightTab(this.previewType),this.currentPageType=this.tabNames[0],qi()&&this.updateWidgetTitle(a),this.updateTabNames();const s=t.recommendQuoteItems||[];if(this.tabDict[g.Suggested]=this.modifyQuoteItems(s,g.Suggested),this.updateRecommendedQuoteItems(!0),this.prepareTabs(this.getTabData(this.currentPageType),this.currentPageType),this.setRecommendedQuoteItemsInSearch(),this.cardType===b.PreWl?this.dismissMenuItems=this.getDismissMenuItems():(this.config.isDynamicFeed||!this.config.disableHeader&&!this.config.disableActionsMenu)&&(this.menuItems=this.getActionMenuItems()),!(null===(r=this.carouselCardDatas)||void 0===r?void 0:r.length))return void(0,V.H)(zt.QMo,"carousel tab data array is empty");this.currentSingleTabTemplate=this.carouselCardDatas[0].tabContent,this.isDataReady=!0,qi()?(0,le.MD)(l.x.moneyInfoCardWC):dt("MoneyInfoCardWC.FirstTabReady"),this.config.enableFullCarousel&&(null===(o=this.tabNames)||void 0===o?void 0:o.length)>1?"edgeChromium"===et.jG.AppType?(0,Qg.eC)().then((()=>{this.populateAllTabs()})):setTimeout((()=>this.populateAllTabs()),10):setTimeout((()=>(0,f.mG)(this,void 0,void 0,(function*(){this.isFirstTabNeedsUpdate&&(yield this.updateFirstTab()),this.config.enableInlineStockChart&&this.addInlineStockChart(this.tabNames)}))),10),this.setTmplTelemetry(t),this.config.enableMoneyInfoSharedState&&tn()&&(this.initDataConnector(),this.moneyInfoDataConnector&&this.moneyInfoDataConnector.onMoneyInfoFeedDataReady&&this.moneyInfoDataConnector.onMoneyInfoFeedDataReady(t)),this.setupAutoRefresh()}catch(t){if(this.config.isDynamicFeed){const e=Object.assign(Object.assign({},zt.PwI),{message:"Finance: "+zt.PwI.message,pb:Object.assign(Object.assign({},zt.PwI.pb),{isPinned:this.isPinned})});(0,V.H)(e,`exception while trying to parse data: ${t?t.message:""}`)}else(0,V.H)(zt.PwI,`exception while trying to parse data: ${t?t.message:""}`)}}initDataConnector(){if(!this.moneyInfoDataConnector)try{this.moneyInfoDataConnector=(0,wm.K0)(Zt.z.MoneyInfoSharedState)}catch(t){(0,V.H)(zt.Yp3,"exception while trying get data connector in money card",null==t?void 0:t.message)}}insertSuggestedTab(){if(!this.shouldInsertSuggestedTab())return;const t=this.tabNames.indexOf(g.Watchlist)+1,e=this.getSuggestedOnlyQuotes();if(e.length<this.getMaxQuoteQuantity())return;rt.M0.addOrUpdateTmplProperty(H,"1");const i=this.getCarouselCardData(g.SuggestedOnly,e);i&&!this.config.enableSuggestionsOnlyTabControl&&(this.tabNames.splice(t,0,g.SuggestedOnly),this.carouselCardDatas.splice(t,0,i),this.updateTabCountTmplProperty())}shouldInsertSuggestedTab(){return!!this.config.enableSuggestionsOnlyTab&&(!this.tabNames.includes(g.SuggestedOnly)&&(!!this.tabNames.includes(g.Watchlist)&&!gt(this.watchlistQuoteDict)))}getSuggestedOnlyQuotes(){const t=this.getRecommendQuoteQuantity();return(this.tabDict[g.Suggested]||[]).filter((t=>!this.watchlistQuoteDict[t.id])).slice(t,t+this.getMaxQuoteQuantity())}addSpotlightTab(t){if(rt.M0.addOrUpdateTmplProperty(E,t),!t||this.isPinned&&!this.config.enablePinnedSpotlight)return;let e,[,i]=t.split(":");if(!i)return;if([i]=i.split("_"),!i)return;const n=function(t){switch(t){case x.WatchlistSummary:return g.wlsummary;case x.MarketBrief:return g.Topstories;default:return null}}(i);if(e=n?this.getTabListDetailsForSpotlight(n):this.getSpotlightTabData(t),!e)return void(0,V.H)(zt.RzE,`addSpotlightTab: tab data is not sufficient. PreviewType: ${t}`);const{tabDetails:r,dataFrom:o}=e;this.config.enableFullCarousel?this.tabNames.unshift(g.Spotlight):(this.savedTabNames=this.tabNames,this.tabNames=[g.Spotlight]),this.tablistDetails[g.Spotlight]=r,this.spotlightDataFrom=o,this.currentPageType=g.Spotlight,rt.M0.addOrUpdateTmplProperty(z,o)}getSpotlightTabData(t){var e;const[,i]=t.split("_");if(!i)return void(0,V.H)(zt.RzE,`addSpotlightTab: invalid previewType - ${t}`);const n=[g.Watchlist,g.Suggested,g.Market,g.Currencies,g.Crypto];for(const t of n){const n=null===(e=this.getTabData(t))||void 0===e?void 0:e.quoteItems;if(n){const e=n.find((t=>ft(t)===i));if(e)return{tabDetails:{quoteIds:[ft(e)],quoteItems:[e]},dataFrom:t}}}return null}getTabListDetailsForSpotlight(t){return this.tablistDetails[t]?{dataFrom:t,tabDetails:this.tablistDetails[t]}:null}handleSpotlightPinned(t){var e;return(0,f.mG)(this,void 0,void 0,(function*(){this.isSpotlightUX=!0;let i=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.previewType;if(rt.M0.addOrUpdateTmplProperty(j,i?"1":"0"),i||(i=yield this.getFinancePreviewType()),i){const[t]=i.split(":");"Finance"===t&&this.forceShowSpotlightTab(i)}}))}setTmplTelemetry(t){var e;rt.M0.removeTmplProperty(I),rt.M0.removeTmplProperty(S),rt.M0.removeTmplProperty(M),rt.M0.removeTmplProperty(_),rt.M0.removeTmplProperty(D),rt.M0.removeTmplProperty(H),rt.M0.removeTmplProperty(F),rt.M0.removeTmplProperty(A),rt.M0.removeTmplProperty(Q),rt.M0.addOrUpdateTmplProperty(P,Yi(this.currentPageType,this.watchlistQuoteDict));const i=Yi(this.tabNames[0],this.watchlistQuoteDict);rt.M0.addOrUpdateTmplProperty(O,i),rt.M0.addOrUpdateTmplProperty(q,this.currentWidgetSize),this.updateTabCountTmplProperty(),nn(this.cardType)&&rt.M0.addOrUpdateTmplProperty(F,"1"),rn(this.cardType)&&rt.M0.addOrUpdateTmplProperty(A,"1"),t.isUserInterestedInNews&&rt.M0.addOrUpdateTmplProperty(I,"1"),this.isSpotlightUX&&i===g.Spotlight&&rt.M0.addOrUpdateTmplProperty(Q,"1"),t.userGroup&&rt.M0.addOrUpdateTmplProperty(L,t.userGroup),(null===(e=t.fullWatchlistQuoteIds)||void 0===e?void 0:e.length)&&rt.M0.addOrUpdateTmplProperty(S,"1"),st(t.quoteNotificationDetails)||rt.M0.addOrUpdateTmplProperty(M,"1"),t.isMoneyPortfolioUser&&rt.M0.addOrUpdateTmplProperty(D,"1")}updateTabCountTmplProperty(){rt.M0.addOrUpdateTmplProperty(N,`${this.tabNames?this.tabNames.length:0}`)}updateClosedMarketList(t){var e;return(0,f.mG)(this,void 0,void 0,(function*(){if(!t)return;let i=[].concat(...t);if((null===(e=this.recommendedQuoteItems)||void 0===e?void 0:e.length)&&(i=i.concat(this.recommendedQuoteItems)),!i.length)return;const n=[];if(i.forEach((t=>{t&&t.exchangeId&&!this.closedMarkets.includes(t.exchangeId)&&!n.includes(t.exchangeId)&&n.push(t.exchangeId)})),!n.length)return;const r=yield this.moneyEntryPointService.getClosedExchanges(n,this.config.includeExtendedExchangeHours);(null==r?void 0:r.length)&&this.closedMarkets.push(...r)}))}getTabData(t){return this.tablistDetails[t]}populateAllTabs(){var t;return(0,f.mG)(this,void 0,void 0,(function*(){if(this.addPrepopulatedTabs(),yield this.refreshQuotes(!0,!1),this.insertSuggestedTab(),dt("MoneyInfoCardWC.AllTabsReady"),yield this.addInlineStockChart(this.tabNames),this.config.enableAllQuoteNotifications){const t=Object.keys(this.tabDict);yield this.AddAllQuoteNotifications(t)}this.config.enableSentimentTab&&(yield this.AddAllQuoteNotifications([g.Sentiment])),qi()||this.setIntersectionObserver(),!this.isRefreshingData&&(null===(t=this.carouselCardDatas)||void 0===t?void 0:t.length)>1&&(this.enableAutoRotation=this.config.enableAutoScroll),this.cardType&&dt(`${this.cardType}.RenderCompleted`),dt("MoneyInfoCardWC.RenderCompleted")}))}updateWidgetTitle(t){this.isWatchlistDataAvailable=t>1,this.widgetProperties&&(this.widgetProperties.title=this.getWidgetTitle())}getWidgetTitle(){var t,e;if(this.currentPageType===g.cryptoLearn)return this.strings.learncryptoTitleText;if(this.isSpotlightUX){const e=Hi(this.config,this.spotlightDataFrom||g.Watchlist);return null!==(t=this.strings[e])&&void 0!==t?t:this.strings.suggestedForYouText}const i=this.config.isDynamicFeed&&null!==(e=this.strings.watchlistSuggestionsText)&&void 0!==e?e:this.strings.suggestedForYouText;return this.isWatchlistDataAvailable?this.strings.watchlistTitleText:i}updateTabNames(){this.config.enablePrepopulatedWatchlistTab||this.removeTabName(g.prepopulatedWL),this.config.enablePortfolioTab||this.removeTabName(g.Portfolio)}removeTabName(t){this.tabNames.includes(t)&&this.currentPageType!==t&&this.tabNames.splice(this.tabNames.indexOf(t),1)}getTabNames(t){let e=[];if(t.tabs)return e=this.config.isDynamicFeed&&!this.config.enableFullCarousel?[t.tabs[0]]:t.tabs,e;if(this.config.enableFullCarousel)return e=this.config.defaultTabs||this.config.tabList.map((t=>t.tabType)),e=this.getTabNamesMarketFirst(e),e;return e=[this.config.defaultTabs?this.config.defaultTabs[0]:this.config.tabList[0].tabType],e}getTabNamesMarketFirst(t){const e=t.includes(g.Market),i=0===Object.keys(this.watchlistQuoteDict).length;if(this.config.showMarketFirst&&e&&i){const e=t.indexOf(g.Market);t.splice(e,1),t.splice(0,0,g.Market)}return t}prepareTabs(t,e){var i,n,r,o;if(!e)return;let a=null;if(Ri(e)||this.isNewsTypeSpotlight(e)){this.isNewsTypeSpotlight(e)&&(e=g.Topstories);const r=(null==t?void 0:t.newsDetails)||{newsType:e,quoteId:null===(n=null===(i=this.cardFeedDataJson)||void 0===i?void 0:i.tabListDetails[e])||void 0===n?void 0:n.quoteId,newsList:[]};a=this.getNewsTabTemplate(t.newsDetails.newsType,r)}else if(Bi(e)){const i=(null==t?void 0:t.listItems)||{listIds:null===(o=null===(r=this.cardFeedDataJson)||void 0===r?void 0:r.tabListDetails[e])||void 0===o?void 0:o.listIds,listItems:[]};a=this.getListsTabTemplate(e,i[0])}else if(Gi(e))this.isTabEmpty(e,t)||(a=this.getWatchlistPromoTabTemplate(e,t));else if(this.isWlsummarySpotlight(e))this.isTabEmpty(this.spotlightDataFrom,t)?(0,V.H)(zt.hm9,"dropping watchlist summary tab as quotes are missing"):a=this.getWatchlistPromoTabTemplate(this.spotlightDataFrom,t);else if(Vi(e))this.isTabEmpty(e,t)||(a=this.getCryptoLearnTabTemplate(e,t));else if(Zi(e)){if(!this.isTabEmpty(e,t)){const i=(null==t?void 0:t.NFTCollectionItems)||[];a=this.getNftTemplate(e,i)}}else{let i=(null==t?void 0:t.quoteItems)||[];i=this.modifyQuoteItems(i,e)||[],i.length>this.getMaxQuoteQuantity()&&(i=i.slice(0,this.getMaxQuoteQuantity())),a=this.getCarouselCardData(e,i)}e===this.currentPageType&&this.isTabEmpty(e,t)&&(0,V.H)(zt.kmu,`preparing tabs - first tab data is empty - ${e}`),(null==a?void 0:a.tabContent)&&this.carouselCardDatas.push(a)}isWlsummarySpotlight(t){return t===g.Spotlight&&Ui(this.spotlightDataFrom)}isNewsTypeSpotlight(t){return t===g.Spotlight&&Ri(this.spotlightDataFrom)}isTabEmpty(t,e){var i,n,r,o,a,s,l,c;return(!Ri(t)||!((null===(n=null===(i=e.newsDetails)||void 0===i?void 0:i.newsList)||void 0===n?void 0:n.length)>0||(null===(r=e.newsDetails)||void 0===r?void 0:r.quoteItem)))&&((!Bi(t)||!e.listItems)&&(Gi(t)?e.preWlData&&e.preWlData.indexQuoteItem&&(null===(o=e.preWlData.listItems)||void 0===o?void 0:o.length)>0:Ui(t)?!(null===(s=null===(a=e.listItems)||void 0===a?void 0:a[0].quotes)||void 0===s?void 0:s.length):!(Vi(t)&&(null===(l=e.learnItems)||void 0===l?void 0:l.length)>0)&&(!(Zi(t)&&(null===(c=e.NFTCollectionItems)||void 0===c?void 0:c.length)>0)&&this.isQuoteListTabEmpty(t,e.quoteItems))))}isQuoteListTabEmpty(t,e){var i,n;return!((null==e?void 0:e.length)>0)&&!(t===g.Watchlist&&st(this.watchlistQuoteDict)&&(null===(n=null===(i=this.tabDict)||void 0===i?void 0:i[g.Suggested])||void 0===n?void 0:n.length)>0)}isCryptoQuote(t,e){var i;return e===g.Crypto||(null===(i=t.securityType)||void 0===i?void 0:i.toLowerCase())===X.a.Cryptocurrency.toLowerCase()||(nn(this.cardType)||Wi(e))}isCurrencyQuote(t,e){var i;return e===g.Currencies||(null===(i=t.securityType)||void 0===i?void 0:i.toLowerCase())===X.a.Currency.toLowerCase()}updateIconUrl(t,e){t.iconUrl||(t.icon?t.iconUrl=t.icon:this.isCryptoQuote(t,e)?t.iconUrl=function(t,e=!1){let i="";return e||Z.nc.includes(t)?i=t:Z.$K[t]&&(i=Z.$K[t]),i?`https://assets.msn.com/weathermapdata/1/static/finance/crypto/icons/Crypto${i}Image.png`:null}(ft(t)):this.isCurrencyQuote(t,e)&&(t.iconUrl=xt(t.currency)))}modifyQuoteItems(t,e){return(null==t?void 0:t.length)?((t=pt(t)).forEach((t=>(function(t,e){var i,n;t.securityType.toLowerCase()===X.a.Currency.toLowerCase()&&(null===(i=t.symbol)||void 0===i?void 0:i.length)>=6&&!t.symbol.includes("/")&&(t.symbol=t.symbol.substring(0,3)+"/"+t.symbol.substring(3)),e===g.Crypto&&(null===(n=t.displayName)||void 0===n?void 0:n.includes("/"))&&(t.displayName=t.displayName.substring(0,t.displayName.indexOf("/")))}(t,e),nn(this.cardType)?t.quoteHref=(0,K.__)(et.jG.CurrentMarket,ft(t)):this.config.enableWatchlistLink&&this.watchlistQuoteDict[t.id]?t.quoteHref=ut(et.jG.CurrentMarket,t.id,null,this.defaultWatchlistPageLink,e):this.updateQuoteHrefIfNeeded(t),t.tooltipText=Ki(t.id,t.displayName,t.symbol,this.watchlistQuoteDict,this.strings),t.isWatching=e===g.Watchlist||this.watchlistQuoteDict[t.id],t.isRecommended=e===g.Suggested&&!t.isWatching,this.addQuoteNotifications(t,e),(this.config.enableAllQuotesIcon||this.config.enableInlineQuoteIcon)&&this.updateIconUrl(t,e),t.telemetryTags=this.getQuoteLinkTelemetry(ft(t),e,t.symbol,t.isRecommended),this.quoteDict[t.id]=t,t))),!this.config.disableSort&&this.shouldSort(e)&&this.sortQuotes(t),t):t}addQuoteNotifications(t,e){if(t)try{const e=[],i=function(t,e,i,n){var r;if(n||!t)return!1;if((0,ot.isNullOrUndefined)(t.changePcntNumber)||!wt(t)&&!(0,Y.Ab)(t.timeLastTraded))return!1;const o=Math.abs(t.changePcntNumber);return(null===(r=t.securityType)||void 0===r?void 0:r.toLowerCase())!==X.a.Indices.toLowerCase()||(0,ot.isNullOrUndefined)(e)?!(0,ot.isNullOrUndefined)(i)&&o>=i:o>=e}(t,this.config.pricePctNotfThresholdMarket,this.config.pricePctNotfBaseline,this.config.disableNotificationForVp);if(this.config.enableRotateNotf&&this.config.enableInlineNotifications&&i&&Lt(t,e,this.closedMarkets,this.strings,this.config.enableNewNotificationTexts),this.enableBENotifications(t)&&function(t,e,i){if(!t)return;const n=null==e?void 0:e[t.id];if(n)for(let t=0;t<n.length;t++){const e=n[t];if(e){if("string"==typeof e.notification)try{e.notification=JSON.parse(e.notification)}catch(t){e.notification=null}i.push(e)}}}(t,this.notifications,e),!this.config.enableRotateNotf&&this.config.enableInlineNotifications&&i&&Lt(t,e,this.closedMarkets,this.strings,this.config.enableNewNotificationTexts),this.config.enableRotateNotf){const i={shortHeadline:t.displayName,notificationType:null};e.push(i)}t.notifications=e}catch(e){(0,V.H)(zt.Dl5,`exception while adding notification for quote ${t.id} : ${e?e.message:""}`)}}enableBENotifications(t){var e;return!this.config.disableShowNotification&&!this.config.disableNotificationForVp&&(!!(this.notifications&&(null===(e=this.notifications[t.id])||void 0===e?void 0:e.length)>0)&&this.config.enableInlineNotifications)}updateQuoteHrefIfNeeded(t){var e,i;(null===(e=t.securityType)||void 0===e?void 0:e.toLowerCase())===X.a.Currency.toLowerCase()&&(t.securityType=X.a.Currency),(null===(i=t.quoteHref)||void 0===i?void 0:i.includes(et.jG.NavTargetHostName))||(t.instrumentId=t.id,t.quoteHref=(0,K.VI)(t))}shouldSort(t){if(nn(this.cardType))return!1;return![g.Market,g.Currencies,g.Crypto,g.Futures,g.ArticleSuggested,g.ArticleMentioned,g.ArticleRelated,g.prepopulatedWL,g.wlsummary,g.Suggested,g.SuggestedOnly,g.Watchlist].includes(t)}sortQuotes(t){t.sort(((t,e)=>Math.abs(t.changePcntNumber)>Math.abs(e.changePcntNumber)?-1:1))}getNewsTabTemplate(t,e){const i=this.strings[zi(t)];this.newsTabDict[t]=e;const n=this.getMoneyCardNewsTemplate(e);if(n){return{tabId:t,ariaLabel:i,tabContent:n}}return null}getCryptoLearnTabTemplate(t,e){const i=this.strings[Qi(t)];this.cryptoLearnTabDict[t]=e,this.updateCryptoLearnTab(t);const n=this.getMoneyCardCryptoLearnTabTemplate(e,t);if(n){return{tabId:t,ariaLabel:i,tabContent:n}}return null}getNftTemplate(t,e){const i=this.strings[Qi(t)],n=this.getMoneyCardNftTabTemplate(e,t);if(n){return{tabId:t,ariaLabel:i,tabContent:n}}return null}getListsTabTemplate(t,e){const i=this.strings[Ei(t)];this.listsTabDict[t]=e;const n=this.getMoneyCardListsTemplate(t,e);if(n){return{tabId:t,ariaLabel:i,tabContent:n}}return null}modifyPreWLDataQuotes(t,e){var i;return(null===(i=e.listItems)||void 0===i?void 0:i[0])&&e.listItems.forEach((e=>{e.quotes&&(e.quotes=this.modifyQuoteItems(e.quotes,t))})),e}getWatchlistPromoTabTemplate(t,e){const i=this.strings[Ei(t)];this.modifyPreWLDataQuotes(t,e),this.wlPromoTabDict[t]=e;const n=this.getMoneyCardPreWlTemplate(t,e);return n?{tabId:t,ariaLabel:i,tabContent:n}:null}getCarouselCardData(t,e){const i=Yi(t,this.watchlistQuoteDict)===g.Suggested?this.strings.suggestedForYouText:this.strings[Hi(this.config,t)];this.tabDict[t]=e;const n=this.getTabContent(t,e);if(n){return{tabId:t,ariaLabel:i,tabContent:n}}return null}getTabContent(t,e){return t===g.Spotlight?this.getSpotlightTabTemplate(this.spotlightDataFrom||t,e):this.config.enableHalfCardQuoteCarousel&&this.isHalfCard()?this.getMoneyCardQuoteCarouselTemplate(t,e):this.getQuoteListTabTemplate(t,e)}getSpotlightTabTemplate(t,e){const i=this.getPageNavUrl(t);return this.updateIconUrl(e[0],t),this.calculateQuoteMaxStringLengths(e,t),Jt.d`
            <money-card-spotlight-quote-tab
                :navUrl=${()=>i}
                :quote=${()=>e[0]}
                :previewType=${()=>this.previewType}
                :openLinkTarget=${()=>this.getTargetForLink()}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :charts=${()=>this.charts}
                :dataFrom=${()=>t}
                :telemetryContext=${()=>this.moneyInfoCardWCTelemetryContext}
                :isDarkModeTheme=${()=>this.isDarkModeTheme}
                :currentWidgetSize=${()=>this.currentWidgetSize}
                :maxValueStringLength=${()=>this.maxValueStringLengths[t]}
                :maxChangeStringLength=${()=>this.maxChangeStringLengths[t]}
            ></money-card-spotlight-quote-tab>`}getQuoteListTabTemplate(t,e){if(this.isQuoteListTabEmpty(t,e))return null;this.tabRefreshedTrackerDict[t]=!0;const i=this.getPageNavUrl(t);return this.calculateQuoteMaxStringLengths(e,t),Jt.d`
            <money-card-quote-list-tab style="outline: none;"
                :navUrl=${()=>i}
                :openLinkTarget=${()=>this.getTargetForLink()}
                :openLinksInNewTab = ${()=>this.openLinksInNewTab}
                :maxValueStringLength=${()=>this.maxValueStringLengths[t]}
                :maxChangeStringLength=${()=>this.maxChangeStringLengths[t]}
                :dataFrom=${()=>t}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :telemetryContext=${()=>this.moneyInfoCardWCTelemetryContext}
                :watchQuoteCallback=${()=>this.quoteListPageWatchQuote}
                :quoteItems=${()=>e}
                :charts=${()=>this.charts}
                :recommendedQuoteItems=${()=>this.recommendedQuoteItems}
                :watchlistQuoteDict=${()=>this.watchlistQuoteDict}
                :cardLayout=${()=>this.cardLayout}
                :currentWidgetSize=${()=>this.currentWidgetSize}
                :isDarkModeTheme=${()=>this.isDarkModeTheme}
                :cardType=${()=>this.cardType}
            >
            </money-card-quote-list-tab>
        `}getMoneyCardQuoteCarouselTemplate(t,e){if(this.isQuoteListTabEmpty(t,e))return null;const i=this.getPageNavUrl(t);return Jt.d`
            <money-card-quote-carousel style="outline: none;"
                :navUrl=${()=>i}
                :openLinkTarget=${()=>this.getTargetForLink()}
                :openLinksInNewTab = ${()=>this.openLinksInNewTab}
                :dataFrom=${()=>t}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :telemetryContext=${()=>this.moneyInfoCardWCTelemetryContext}
                :watchQuoteCallback=${()=>this.quoteListPageWatchQuote}
                :quoteItems=${()=>e}
                :recommendedQuoteItems=${()=>this.recommendedQuoteItems}
                :charts=${()=>this.charts}
                :watchlistQuoteDict=${()=>this.watchlistQuoteDict}
                :useGlanceCard=${()=>!0}
                :currentWidgetSize=${()=>this.currentWidgetSize}
                :isDarkModeTheme=${()=>this.isDarkModeTheme}
                :direction=${()=>this.config.layoutDirection}
                :isFlyoutOpen=${()=>this.isFlyoutOpen}
            >
            </money-card-quote-carousel>
        `}getMoneyCardListsTemplate(t,e){return Bi(t)&&e?(this.tabRefreshedTrackerDict[t]=!0,this.isFirstTabNeedsUpdate=!0,Jt.d`
            <money-card-lists-page
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :openLinksInNewTab=${()=>this.openLinksInNewTab}
                :telemetryContext=${()=>this.moneyInfoCardWCTelemetryContext}
                :listItems=${()=>e}
                :isDarkModeTheme=${()=>this.isDarkModeTheme}
            >
            </money-card-lists-page>
        `):null}getMoneyCardPreWlTemplate(t,e){return this.isTabEmpty(t,e)?null:(this.tabRefreshedTrackerDict[t]=!0,this.quoteDict[ft(e.indexQuoteItem)]=e.indexQuoteItem,this.isFirstTabNeedsUpdate=!0,this.initEntryPointService(),Jt.d`
            <money-card-wl-promo-tab
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :openLinksInNewTab=${()=>this.openLinksInNewTab}
                :telemetryContext=${()=>this.moneyInfoCardWCTelemetryContext}
                :navUrl=${()=>this.getPageNavUrl(t)}
                :service=${()=>this.moneyEntryPointService}
                :dataFrom=${()=>t}
                :data=${()=>e}
                :charts=${()=>this.charts}
                :currentWidgetSize=${()=>this.currentWidgetSize}
                :isDarkModeTheme=${()=>this.isDarkModeTheme}
            >
            </money-card-wl-promo-tab>
        `)}getMoneyCardNewsTemplate(t){var e;return t&&t.newsType?((null===(e=t.newsList)||void 0===e?void 0:e.length)>0&&(this.tabRefreshedTrackerDict[t.newsType]=!0),this.addQuoteNotifications(t.quoteItem),this.isFirstTabNeedsUpdate=!0,Jt.d`
                <money-card-news-page
                    :isSingleTab=${()=>1===this.carouselCardDatas.length}
                    :isDarkModeTheme=${()=>this.isDarkModeTheme}
                    :config=${()=>this.config}
                    :strings=${()=>this.strings}
                    :openLinksInNewTab=${()=>this.openLinksInNewTab}
                    :telemetryContext=${()=>this.moneyInfoCardWCTelemetryContext}
                    :news=${()=>t}
                    :charts=${()=>this.charts}
                    :currentWidgetSize=${()=>this.currentWidgetSize}
                >
                </money-card-news-page>
            `):null}getMoneyCardCryptoLearnTabTemplate(t,e){return t?this.config.enableHalfCardQuoteCarousel&&this.isHalfCard()?this.getCryptoLearnTabCarousel(t,e):Jt.d`
                <money-card-crypto-learn-tab
                    :config=${()=>this.config}
                    :strings=${()=>this.strings}
                    :dataFrom=${()=>e}
                    :openLinksInNewTab=${()=>this.openLinksInNewTab}
                    :telemetryContext=${()=>this.moneyInfoCardWCTelemetryContext}
                    :isDarkModeTheme=${()=>this.isDarkModeTheme}
                    :learnItems=${()=>this.learnItems}
                >
                </money-card-crypto-learn-tab>
            `:null}getMoneyCardNftTabTemplate(t,e){return t?(this.collectionItemsInSearchNft=t,Jt.d`
                <money-card-nft-tab
                    :config=${()=>this.config}
                    :strings=${()=>this.strings}
                    :dataFrom=${()=>e}
                    :openLinksInNewTab=${()=>this.openLinksInNewTab}
                    :isDarkModeTheme=${()=>this.isDarkModeTheme}
                    :data=${()=>t}
                >
                </money-card-nft-tab>
            `):null}getCryptoLearnTabCarousel(t,e){var i;if(!(null===(i=t.learnItems)||void 0===i?void 0:i.length))return null;this.tabRefreshedTrackerDict[e]=!0;const n=(0,K.G8)();return Jt.d`
            <money-card-quote-carousel style="outline: none;"
                :navUrl=${()=>n}
                :openLinkTarget=${()=>this.getTargetForLink()}
                :openLinksInNewTab = ${()=>this.openLinksInNewTab}
                :dataFrom=${()=>e}
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :telemetryContext=${()=>this.moneyInfoCardWCTelemetryContext}
                :learnItems=${()=>this.learnItems}
                :quoteItems=${()=>[]}
                :recommendedQuoteItems=${()=>this.recommendedQuoteItems}
                :charts=${()=>this.charts}
                :watchlistQuoteDict=${()=>this.watchlistQuoteDict}
                :useGlanceCard=${()=>!0}
                :currentWidgetSize=${()=>this.currentWidgetSize}
                :isDarkModeTheme=${()=>this.isDarkModeTheme}
                :direction=${()=>this.config.layoutDirection}
                :isFlyoutOpen=${()=>this.isFlyoutOpen}
            >
            </money-card-quote-carousel>
        `}shouldAddChartData(t){return t&&t.quoteId&&(!t.chartData||!this.charts[t.quoteId])}shouldAddListsChartData(t){return t&&t.listId&&!t.chartData}shouldAddPreWlChartData(t){var e,i,n;const r=t&&t.indexQuoteItem&&(null===(e=t.listItems)||void 0===e?void 0:e.length)>0;if(!r)return r;const o=t.listItems[0];return o.listId&&!(null===(i=this.charts)||void 0===i?void 0:i[o.listId])&&(null===(n=null==o?void 0:o.quoteIds)||void 0===n?void 0:n.length)>0}shouldAddListRisksData(t){var e;return t&&t.listId&&(null===(e=t.quoteIds)||void 0===e?void 0:e.length)>0}addNewsChartData(t){var e,i;return(0,f.mG)(this,void 0,void 0,(function*(){if(this.shouldAddChartData(t))try{if(!this.isReadyForChart())return;const n=yield this.moneyEntryPointService.fetchSingleQuoteChart(t.quoteId);n&&n.pricePreviousClose&&(null===(i=null===(e=n.chartData)||void 0===e?void 0:e.series)||void 0===i?void 0:i.length)&&(this.charts||(this.charts={}),this.charts[t.quoteId]=n)}catch(e){(0,V.H)(zt.gsz,`exception while trying to load the chart for ${t.newsType}`)}}))}addListsChartData(t){var e,i;return(0,f.mG)(this,void 0,void 0,(function*(){if(this.shouldAddListsChartData(t))try{if(!this.isReadyForChart())return;const n=yield this.moneyEntryPointService.fetchListChart(t);n&&n.pricePreviousClose&&(null===(i=null===(e=n.chartData)||void 0===e?void 0:e.series)||void 0===i?void 0:i.length)&&(t.chartData=n)}catch(t){(0,V.H)(zt.gsz,"exception while trying to load the chart for List tab")}}))}addPreWlChartData(t){var e,i;return(0,f.mG)(this,void 0,void 0,(function*(){if(this.shouldAddPreWlChartData(t))try{if(!this.isReadyForChart())return;const n=t.listItems[0],r=yield this.moneyEntryPointService.fetchListChart(n);r&&r.pricePreviousClose&&(null===(i=null===(e=r.chartData)||void 0===e?void 0:e.series)||void 0===i?void 0:i.length)&&(this.charts||(this.charts={}),this.charts[n.listId]=r)}catch(t){(0,V.H)(zt.gsz,"exception while trying to load the chart for prepopulated watchlist tab")}}))}fetchQuoteChartById(t){var e,i,n;return(0,f.mG)(this,void 0,void 0,(function*(){if(!(null===(e=this.charts)||void 0===e?void 0:e[t]))try{if(!this.isReadyForChart())return;const e=yield this.moneyEntryPointService.fetchSingleQuoteChart(t);e&&e.pricePreviousClose&&(null===(n=null===(i=e.chartData)||void 0===i?void 0:i.series)||void 0===n?void 0:n.length)&&(this.charts||(this.charts={}),this.charts=Object.assign(Object.assign({},this.charts),{[t]:e}))}catch(e){(0,V.H)(zt.gsz,`exception while trying to load the chart for quoteId: ${t}`)}}))}updateWatchlistTab(t){const e=[...this.tabDict[g.Watchlist]]||[];e.push(t),this.updateTabDict(g.Watchlist,e),this.updateRecommendedQuoteItems(),qi()&&this.updateWidgetTitle(e.length)}getMaxQuoteQuantity(){var t,e;return this.isHalfCard()?null!==(e=null!==(t=this.config.maxNumberOfQuotesSmall)&&void 0!==t?t:this.config.maxNumberOfQuotesHalf)&&void 0!==e?e:2:this.config.maxNumberOfQuotes}updateRecommendedQuoteItems(t){var e;if((null===(e=this.tabDict[g.Suggested])||void 0===e?void 0:e.length)>0){this.config.enableRecommendationRotation&&t&&(this.tabDict[g.Suggested]=ct(this.tabDict[g.Suggested]));const e=this.tabDict[g.Suggested].filter((t=>!this.watchlistQuoteDict[t.id])).slice(0,this.getRecommendQuoteQuantity());e.forEach((t=>this.addQuoteNotifications(t,g.Suggested))),this.recommendedQuoteItems=e}}getWatchlistQuoteQuantity(){let t=0;this.watchlistQuoteDict&&(t=Object.keys(this.watchlistQuoteDict).length);return Math.min(t,this.getMaxQuoteQuantity())}getRecommendQuoteQuantity(){const t=this.getWatchlistQuoteQuantity();let e=0;this.config.disableSuggestedDivider||(e=this.isHalfCard()||this.config.maxNumberOfQuotes==this.config.maxNumberOfQuotesSmall?0:1);return Math.max(0,this.getMaxQuoteQuantity()-e-t)}shouldRefresh(t,e){return!(e&&this.tabRefreshedTrackerDict[t])}initEntryPointService(){this.moneyEntryPointService||(this.moneyEntryPointService=new pm(this.config.apiConfig),this.moneyEntryPointService.initFinanceServices(this.widgetInstance))}updateFirstTab(){return(0,f.mG)(this,void 0,void 0,(function*(){this.isFirstTabNeedsUpdate=!1;const t=this.tabNames[0];switch(t){case g.Portfolio:return yield this.addListsChartData(this.listsTabDict[t]);case g.prepopulatedWL:return yield this.addPreWlChartData(this.wlPromoTabDict[t]);case g.Topstories:return yield this.addNewsChartData(this.newsTabDict[t])}}))}handleFocusIn(){qi()&&(this.isMoneyCardFocused=!0)}handleFocusOut(){qi()&&(this.isMoneyCardFocused=!1)}limitToMaxQuoteIds(t){const e=this.getMaxNumberOfQuotesSupported();return t&&t.length>e?t.slice(0,e):t}getMaxNumberOfQuotesSupported(){return this.config.isDynamicFeed?this.config.maxNumberOfQuotesLarge:this.config.maxNumberOfQuotes}addPrepopulatedTabs(){this.tabNames.forEach((t=>{t!==this.currentPageType&&this.prepareTabs(this.getTabData(t),t)}))}refreshQuotes(t,e){var i;return(0,f.mG)(this,void 0,void 0,(function*(){if(this.isRefreshingData)return Promise.resolve();if((!e||!t)&&this.isMoneyCardFocused)return Promise.resolve();if(!this.tabNames)return Promise.resolve();this.isRefreshingData=!0;try{if(this.initEntryPointService(),!this.moneyEntryPointService)return;const n=[],r=[];let o=[],a=!1,s=!1,l=!1,c=!1,d=!1,u=!1,h=!1,p=null;if(this.config.enableFuturesTab&&(d=yield this.isShowFutures(),d&&this.tabNames.indexOf(g.Futures)<0&&this.tabNames.push(g.Futures)),(null===(i=this.tabDict[g.Suggested])||void 0===i?void 0:i.length)&&(c=!0),this.tabNames.forEach((i=>{if(e||this.shouldRefresh(i,t))switch(i){case g.Movers:case g.Gainers:case g.Losers:a=!0;break;case g.Market:s=!0;break;case g.Watchlist:l=!0;break;case g.Portfolio:h=!0,o=this.getListsTabQuotes(i);break;default:Ri(i)?(u=!0,p=this.getNewsTabQuotes(i)):p=this.getTabQuotes(i),p&&(n.push(this.limitToMaxQuoteIds(p)),r.push(i))}})),l&&e&&!this.config.isDynamicFeed){const e=yield this.moneyEntryPointService.getWatchlistIds();(null==e?void 0:e.length)>0?(n.push(e),r.push(g.Watchlist)):this.updateTabDict(g.Watchlist,[],t),this.watchlistQuoteDict={},null==e||e.forEach((t=>this.watchlistQuoteDict[t]=!0))}else if(l){const e=this.getQuoteIdsForTab(g.Watchlist);(null==e?void 0:e.length)>0?(n.push(this.limitToMaxQuoteIds(e)),r.push(g.Watchlist)):this.updateTabDict(g.Watchlist,[],t)}if(!c||!e&&t||(p=this.getTabQuotes(g.Suggested),n.push(this.limitToMaxQuoteIds(p)),r.push(g.Suggested)),s&&(p=yield this.getMarketTabQuoteIds(),n.push(this.limitToMaxQuoteIds(p)),r.push(g.Market)),a){let{activeQuoteIds:t,gainersQuoteIds:e,losersQuoteIds:i}=yield this.moneyEntryPointService.getMarketMovers();this.tabNames.includes(g.Movers)&&(t=this.limitToMaxQuoteIds(t),n.push(t),r.push(g.Movers),this.tablistDetails[g.Movers]={quoteIds:t}),this.tabNames.includes(g.Gainers)&&(e=this.limitToMaxQuoteIds(e),n.push(e),r.push(g.Gainers),this.tablistDetails[g.Gainers]={quoteIds:e}),this.tabNames.includes(g.Losers)&&(i=this.limitToMaxQuoteIds(i),n.push(i),r.push(g.Losers),this.tablistDetails[g.Losers]={quoteIds:i})}const f=yield this.moneyEntryPointService.getQuoteSummaryForList(...n);this.config.enableExchangeHourCheck&&(null==f?void 0:f.length)&&(yield this.updateClosedMarketList(f)),r.map(((i,n)=>{const r=f[n];(null==r?void 0:r.length)>=0&&this.updateTab(t||e,i,r)})),u&&(yield this.updateNewsTabs(t)),h&&(this.updateListTabDict(o),yield this.updateListsTabs(t)),t&&this.carouselCardDatas.length>1&&(this.maintainTabOrder(),this.isMultiTabUXReady=!0),c&&this.updateRecommendedQuoteItems(),qi()&&this.updateWidgetTitle(this.tabDict[g.Watchlist].length)}catch(t){(0,V.H)(zt.pGg,`Exception while refreshing money card data: ${t?t.message:""}`)}this.isRefreshingData=!1}))}maintainTabOrder(){const t=this.tabNames.map((()=>[]));this.tabNames.forEach(((e,i)=>{const n=this.carouselCardDatas.find((t=>t.tabId===e));t[i]=n})),this.carouselCardDatas=t.filter((t=>t&&t.tabId&&t.tabContent))}isReadyForChart(){return this.initEntryPointService(),!!this.moneyEntryPointService}addInlineStockChart(t,e){return(0,f.mG)(this,void 0,void 0,(function*(){if(!this.config.enableInlineStockChart)return Promise.resolve();try{if(!this.isReadyForChart())return Promise.resolve();const i=this.charts;e&&(this.charts={});const n=this.getQuoteIdsForCharts(t,e),r=yield this.moneyEntryPointService.getQuotesChart(n);this.charts=e?r:Object.assign(Object.assign({},i),r)}catch(t){(0,V.H)(zt.pGg,`Exception while adding inline stock chart: ${t?t.message:""}`)}}))}getQuoteIdsForCharts(t,e){if(!this.tablistDetails)return null;const i=Object.keys(this.tablistDetails).reduce(((e,i)=>{if(!t.includes(i))return e;const n=this.limitToMaxQuoteIds(this.getQuoteIdsForTab(i));return e.concat(n)}),[]),n=this.limitToMaxQuoteIds(this.getQuoteIdsForTab(g.Suggested))||[],r=Array.from(new Set(i.concat(n)));return e?r:r.filter((t=>!(this.charts&&this.charts[t])))}getQuoteIdsForTab(t){return(Ri(t)?this.getNewsTabQuotes(t):this.getTabQuotes(t))||[]}updateNewsTabs(t){return(0,f.mG)(this,void 0,void 0,(function*(){if(!this.newsTabDict)return;const e=Object.keys(this.newsTabDict);0!=e.length&&(yield Promise.all(e.map((e=>(0,f.mG)(this,void 0,void 0,(function*(){this.shouldRefresh(e,t)&&(yield this.updateNewsTabData(e))}))))))}))}updateListsTabs(t){return(0,f.mG)(this,void 0,void 0,(function*(){if(!this.listsTabDict)return;const e=Object.keys(this.listsTabDict);0!=e.length&&(yield Promise.all(e.map((e=>(0,f.mG)(this,void 0,void 0,(function*(){this.shouldRefresh(e,t)&&(yield this.updateListsTabData(e))}))))))}))}updateCryptoLearnTab(t){var e;const i=null===(e=this.cryptoLearnTabDict[t])||void 0===e?void 0:e.learnItems;i&&this.learnItems.splice(0,this.learnItems.length,...i.slice(0,this.config.maxLearnCount))}addOrRemoveTab(t,e){const i=this.getCarouselTabIndex(t);i<0||(e?this.carouselCardDatas.splice(i,1,e):(this.carouselCardDatas.splice(i,1),(0,V.H)(zt.hm9,`dropping tab as data is empty for ${t}`)))}updateNewsTabData(t){return(0,f.mG)(this,void 0,void 0,(function*(){if(!t)return;const e=this.newsTabDict[t],i=yield this.moneyEntryPointService.getNewsDetails(t);if(At(i))return void this.addOrRemoveTab(t);e.newsList=i;const n=this.getNewsTabTemplate(t,e);this.addOrRemoveTab(t,n)}))}updateListsTabData(t){var e,i;return(0,f.mG)(this,void 0,void 0,(function*(){if(!t)return;const n=null===(i=null===(e=this.cardFeedDataJson)||void 0===e?void 0:e.tabListDetails[t])||void 0===i?void 0:i.listIds,r=yield this.moneyEntryPointService.getListDetails(n);if(At(r))return void this.addOrRemoveTab(t);yield this.addListsChartData(r[0]);const o=this.getListsTabTemplate(t,r[0]);this.addOrRemoveTab(t,o)}))}AddAllQuoteNotifications(t){return(0,f.mG)(this,void 0,void 0,(function*(){try{if(!((null==t?void 0:t.length)>0))return;this.notifications||(this.notifications=new Map);const e=this.filterNotifications(t);if(!((null==e?void 0:e.length)>0))return;const i=yield this.moneyEntryPointService.getQuoteNotifications(e);if(this.isObjectNullOrEmpty(i))return;Object.keys(i).forEach((t=>{const e=i[t];(null==e?void 0:e.length)>0&&(this.notifications[t]=e)})),this.UpdateAllQuoteNotifications()}catch(t){(0,V.H)(zt.Dl5,`exception while trying to add notifications data ${t?t.message:""} `)}}))}updateTab(t,e,i){!((i=pt(i))&&i.length>0)&&(i=[]),this.tabNames.includes(e)?this.updateTabDict(e,i,t):e===g.Suggested&&(this.tabDict[e]=this.modifyQuoteItems(i,e),this.updateRecommendedQuoteItems())}getNewsTabQuotes(t){var e,i;return this.tablistDetails&&(null===(i=null===(e=this.tablistDetails[t])||void 0===e?void 0:e.newsDetails)||void 0===i?void 0:i.quoteId)?[this.tablistDetails[t].newsDetails.quoteId]:null}getListsTabQuotes(t){var e;return this.tablistDetails&&(null===(e=this.tablistDetails[t])||void 0===e?void 0:e.listIds)?[this.tablistDetails[t].listIds[0]]:null}getTabQuotes(t){return this.getQuoteIdsFromTabDetails(t)||this.getQuotesFromConfig(t)}getQuotesFromConfig(t){switch(t){case g.Market:return this.config.apiConfig.marketQuoteIds;case g.Futures:return this.config.apiConfig.futuresQuoteIds;case g.Currencies:return this.config.apiConfig.currencyQuoteIds;case g.Crypto:return this.config.apiConfig.cryptoQuoteIds;case g.ETF:return this.config.apiConfig.etfQuoteIds;case g.Suggested:return this.config.apiConfig.recommendedQuoteIds;case g.ArticleSuggested:return this.config.apiConfig.articleRecommendedQuoteIds;default:return null}}updateListTabDict(t){t||(0,V.H)(zt.tpK,"listId is empty for portfolio"),this.listsTabDict[g.Portfolio]={listId:t[0]}}updateTabDict(t,e,i){if(Ri(t)){const i=e[0];return void(this.newsTabDict[t]={newsType:t,quoteId:i.id,quoteItem:i})}if(Bi(t))return;const n=this.isQuoteListTabEmpty(t,e);if(!n||i)if(n&&i&&(0,V.H)(zt.tpK,`tab data is empty for ${t}`),n||(e=this.modifyQuoteItems(e,t),this.tabNames.includes(t)&&e&&e.length>this.getMaxQuoteQuantity()&&(e=e.slice(0,this.getMaxQuoteQuantity()))),i&&this.tabNames.length>1){const i=this.getCarouselCardData(t,e);i?this.addOrRemoveTab(t,i):this.addOrRemoveTab(t)}else i&&this.config.isDynamicFeed?this.switchLayout(t,e):this.tabDict&&this.tabDict[t]&&this.tabDict[t].splice(0,this.tabDict[t].length,...e);else(0,V.H)(zt.rN6,`update tab data is empty for ${t}`)}getCarouselTabIndex(t){const e=this.carouselCardDatas.findIndex((e=>e.tabId===t));return e<0?this.carouselCardDatas.length:e}setRecommendedQuoteItemsInSearch(){const t=this.tabDict[g.Suggested],e=(null==t?void 0:t.length)>0,i=this.getSuggestionNumberToShow();this.recommendedQuoteItemsInSearch=e?t.slice(0,i):[]}getSuggestionNumberToShow(){return qi()?this.config.enableGradientStyles||this.config.maxNumberOfQuotes!==this.config.maxNumberOfQuotesLarge?this.config.maxNumberOfQuotes-1:this.config.maxNumberOfQuotes-2:this.config.enableGradientStyles?this.config.maxNumberOfQuotes:this.config.maxNumberOfQuotes-1}filterNotifications(t){if(this.isObjectNullOrEmpty(this.tabDict)||!((null==t?void 0:t.length)>0))return;const e=new Set,i=[g.Gainers,g.Market,g.Movers,g.Losers,g.Suggested,g.SuggestedOnly,g.Watchlist,g.Sentiment];return t.forEach((t=>{if(i.indexOf(t)>=0){const i=this.tabDict[t];null==i||i.forEach((t=>{var i;if(null==t?void 0:t.id){const n=t.id;e.has(n)||(null===(i=this.notifications[n])||void 0===i?void 0:i.length)>0||e.add(n)}}))}})),Array.from(e)}UpdateAllQuoteNotifications(){this.isObjectNullOrEmpty(this.notifications)||(Object.keys(this.tabDict).forEach((t=>{const e=this.tabDict[t];if((null==e?void 0:e.length)>0){this.updateEachTabQuoteNotifications(e,t)&&this.tabDict[t].splice(0,this.tabDict[t].length,...e)}})),rt.M0.addOrUpdateTmplProperty(_,"1"))}isObjectNullOrEmpty(t){var e;return!(t&&(null===(e=Object.keys(t))||void 0===e?void 0:e.length)>0)}updateEachTabQuoteNotifications(t,e){if(0==(null==t?void 0:t.length))return!1;let i=!1;for(let n=0;n<t.length;n++){const r=t[n];(null==r?void 0:r.id)&&(this.addQuoteNotifications(r,e),!i&&this.isNotificationsAddedToQuote(r)&&(i=!0))}return i}isNotificationsAddedToQuote(t){var e;return(null===(e=t.notifications)||void 0===e?void 0:e.length)>0&&t.notifications.some((t=>t.notificationType==x.EarningRelease||t.notificationType==x.InstitutionalHolding||t.notificationType==x.Sentiment))}setIntersectionObserver(){if(this.intersectionObserver)return;this.intersectionObserver=new IntersectionObserver((t=>{var e;t&&(this.isInViewport=(null===(e=t[0])||void 0===e?void 0:e.intersectionRatio)>0)}),{threshold:[0]}),this.intersectionObserver.observe(this)}unsetIntersectionObserver(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0)}saveInitialQuoteValues(){this.config.maxNumberOfQuotes!==this.config.maxNumberOfQuotesHalf&&(this.config.maxNumberOfQuotesInitial=this.config.maxNumberOfQuotes)}restoreInitialQuoteValues(){Ni()&&this.config.maxNumberOfQuotesInitial&&(this.config.maxNumberOfQuotes=this.config.maxNumberOfQuotesInitial,this.config.disableFooter=!1)}}(0,f.gn)([_i.LO],xm.prototype,"cardFeedDataJson",void 0),(0,f.gn)([_i.LO],xm.prototype,"cardHeight",void 0),(0,f.gn)([_i.LO],xm.prototype,"isGA",void 0),(0,f.gn)([_i.LO],xm.prototype,"isActionMenuOpen",void 0),(0,f.gn)([_i.LO],xm.prototype,"isDismissMenuOpen",void 0),(0,f.gn)([_i.LO],xm.prototype,"isFlyoutOpen",void 0),(0,f.gn)([_i.LO],xm.prototype,"enableAutoRotation",void 0),(0,f.gn)([_i.LO],xm.prototype,"isDataReady",void 0),(0,f.gn)([_i.LO],xm.prototype,"showConfirmation",void 0),(0,f.gn)([_i.LO],xm.prototype,"maxChangeStringLengths",void 0),(0,f.gn)([_i.LO],xm.prototype,"maxValueStringLengths",void 0),(0,f.gn)([_i.LO],xm.prototype,"confirmationPopup",void 0),(0,f.gn)([_i.LO],xm.prototype,"currentPageType",void 0),(0,f.gn)([_i.LO],xm.prototype,"moneyInfoCardWCTelemetryContext",void 0),(0,f.gn)([_i.LO],xm.prototype,"menuItems",void 0),(0,f.gn)([_i.LO],xm.prototype,"dismissMenuItems",void 0),(0,f.gn)([_i.LO],xm.prototype,"recommendedQuoteItems",void 0),(0,f.gn)([_i.LO],xm.prototype,"recommendedQuoteItemsInSearch",void 0),(0,f.gn)([_i.LO],xm.prototype,"collectionItemsInSearchNft",void 0),(0,f.gn)([_i.LO],xm.prototype,"tabDict",void 0),(0,f.gn)([_i.LO],xm.prototype,"newsTabDict",void 0),(0,f.gn)([_i.LO],xm.prototype,"listsTabDict",void 0),(0,f.gn)([_i.LO],xm.prototype,"cryptoLearnTabDict",void 0),(0,f.gn)([_i.LO],xm.prototype,"learnItems",void 0),(0,f.gn)([_i.LO],xm.prototype,"wlPromoTabDict",void 0),(0,f.gn)([_i.LO],xm.prototype,"carouselCardDatas",void 0),(0,f.gn)([_i.LO],xm.prototype,"watchlistQuoteDict",void 0),(0,f.gn)([_i.LO],xm.prototype,"notifications",void 0),(0,f.gn)([_i.LO],xm.prototype,"tabRefreshedTrackerDict",void 0),(0,f.gn)([_i.LO],xm.prototype,"isMultiTabUXReady",void 0),(0,f.gn)([_i.LO],xm.prototype,"isInViewport",void 0),(0,f.gn)([_i.LO],xm.prototype,"currentWidgetSize",void 0),(0,f.gn)([_i.LO],xm.prototype,"isWatchlistDataAvailable",void 0),(0,f.gn)([_i.LO],xm.prototype,"charts",void 0),(0,f.gn)([_i.LO],xm.prototype,"isDarkModeTheme",void 0),(0,f.gn)([_i.LO],xm.prototype,"widgetBackgroundGradientBaseColor",void 0),(0,f.gn)([_i.LO],xm.prototype,"baseLayerLuminance",void 0),(0,f.gn)([_i.LO],xm.prototype,"currentSingleTabTemplate",void 0),(0,f.gn)([_i.LO],xm.prototype,"isSpotlightUX",void 0);var Cm=i(33763),Tm=i(53271),$m=i(10446);class km extends Yd.H{isInViewportChanged(){this.updateAutoScrolling()}enableAutoScrollChanged(){this.updateAutoScrolling()}onMouseEnter(t){t.stopImmediatePropagation(),this.autoScroll=!1}onMouseLeave(t){t.stopImmediatePropagation(),this.autoScroll=!this.config.disableAutoScrollOnAction}onChange(t){var e,i;if(this.setCurrentPageType(t.detail.id),!this.config.disableScrollAnimation){const i=t.target;null===(e=null==i?void 0:i.classList)||void 0===e||e.add("animate"),null==i||i.addEventListener("transitionend",(()=>{var t;return null===(t=null==i?void 0:i.classList)||void 0===t?void 0:t.remove("animate")}))}if(null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.id){this.activeTabId=t.detail.id;const e=Yi(this.activeTabId,this.watchlistQuoteDict);rt.M0.addOrUpdateTmplProperty(P,e)}}connectedCallback(){super.connectedCallback(),this.autoScroll=!1,this.activeTabId=this.carouselPages[0].tabId,this.updateAutoScrolling()}updateAutoScrolling(){"edgeChromium"===et.jG.AppType?(0,Qg.eC)().then((()=>{this.autoScroll=this.enableAutoScroll&&this.isInViewport})):this.autoScroll=this.enableAutoScroll&&this.isInViewport}}(0,f.gn)([_i.LO],km.prototype,"carouselPages",void 0),(0,f.gn)([_i.LO],km.prototype,"moneyInfoCardWCTelemetryContext",void 0),(0,f.gn)([_i.LO],km.prototype,"autoScroll",void 0),(0,f.gn)([_i.LO],km.prototype,"isInViewport",void 0),(0,f.gn)([_i.LO],km.prototype,"enableAutoScroll",void 0),(0,f.gn)([_i.LO],km.prototype,"autoScrollIntervalMs",void 0),(0,f.gn)([_i.LO],km.prototype,"activeTabId",void 0),(0,f.gn)([_i.LO],km.prototype,"watchlistQuoteDict",void 0);const Im=re.i`
    @keyframes carouselShowAnimation {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    .money-card-carousel {
        --sequence-indicator-padding: 8px;
        height: 100%;
    }

    .money-card-carousel.showAnim {
        animation-name: carouselShowAnimation;
        animation-duration: 1s;
        animation-iteration-count: 1;
    }

    msft-carousel-card::after {
        content: "";
        position: absolute;
        background: ${oe.IfY};
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        opacity: 0;
        transition: none;
        pointer-events: none;
        z-index: 1;
        transition: opacity cubic-bezier(0, 0, 0, 1) 1s;
    }

    msft-carousel-card.animate::after {
        opacity: 1;
        transition: opacity cubic-bezier(0, 0, 0, 1) 250ms;
    }

    .money-card-carousel:not(.nmbu)[activeid="topstories"] > msft-carousel-card::part(sequence-indicator) {
        background-color: #FFFFFF;
    }
`,Sm=Jt.d`
    <div class="money-card-carousel ${t=>t.config.enableCarouselShowAnimation?"showAnim":""} ${t=>t.config.newMarketBriefUx?"nmbu":""}" part="money-card-carousel" activeId=${t=>t.activeTabId}>
        ${(0,ch.g)((t=>t.enableAutoScroll),Jt.d`
            <msft-carousel-card auto-scroll=${t=>t.autoScroll}
                @focusin=${(t,e)=>t.onMouseEnter(e.event)}
                @focusout=${(t,e)=>t.onMouseLeave(e.event)}
                @mouseenter=${(t,e)=>t.onMouseEnter(e.event)}
                @mouseleave=${(t,e)=>t.onMouseLeave(e.event)}
                :contentData=${t=>t.carouselPages}
                :previousFlipperTelemetryTag=${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.carouselPreviousButtonClickTags}}
                :nextFlipperTelemetryTag=${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.carouselNextButtonClickTags}}
                auto-scroll-interval-ms=${t=>t.autoScrollIntervalMs}
                @change=${(t,e)=>t.onChange(e.event)}>
            </msft-carousel-card>
        `)}

        ${(0,ch.g)((t=>!t.enableAutoScroll),Jt.d`
            <msft-carousel-card
                :contentData=${t=>t.carouselPages}
                :previousFlipperTelemetryTag=${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.carouselPreviousButtonClickTags}}
                :nextFlipperTelemetryTag=${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.carouselNextButtonClickTags}}
                @change=${(t,e)=>t.onChange(e.event)}>
            </msft-carousel-card>
        `)}
        
    </div>
`;let Lm=class extends km{};Lm=(0,f.gn)([(0,Yd.M)({name:"money-card-page-carousel",template:Sm,styles:Im,shadowOptions:{delegatesFocus:!0}})],Lm);var Mm=i(67020);const _m=re.i`
    .suggestion-market-str {
        right: 0px;
    }
`,Dm=re.i`
    .suggestion-market-str {
        left: 0px;
    }
`,Fm=re.i`
    :host {
        --suggestion-list-shadow: rgba(0, 0, 0, 0.26);
        --search-area-rest: #D6D6D6;
        --search-area-hover: #C6C6C6; 
        --search-area-focus: #E0E0E0; 
    }

    .money-card-page-base {
        --sequence-indicator-padding: 8px;
        height: 100%;
    }

    .no-sugg-dvdr-cntr {
        color: ${oe.Q5n};
        font-weight: 600;
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        padding: 8px 16px;
    }

    .no-sugg-dvdr-cntr-megrad {
        color: ${oe.CHi};
        font-weight: normal;
    }

    .no-sugg-dvdr-cntr-gradient {
        color: ${oe.CHi};
        font-weight: normal;
    }

    ${(0,Mm.j)("grid")} :host {
        box-sizing: border-box;
        position: relative;
        outline: none;
        grid-template-rows: auto 1fr;
    }

    .search-title {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-column-gap: 12px;
        margin: 16px 16px 8px 16px;
    }

    .search-area {
        display: grid;
        grid-template-columns: 32px auto;
        max-width: 215px;
        min-width: 50px;
        height: 32px;
        outline-width: 1px;
        outline-style: solid;
        outline-color: var(--search-area-rest);
    }

    .search-area:hover {
        outline-color: var(--search-area-hover);
    }

    .search-area:focus-within {
        outline-color: var(--search-area-focus);
    }

    .search-icon-area {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    svg[type="search-button"] path {
        fill: ${oe.goi};
    }
    
    .search-input {
        color: ${oe.CHi};
        background: transparent;
        font-size: ${oe.cSu};
        line-height: ${oe.RUt};
        height: 32px;
        padding: 0;
        border: none;
        outline: none;
    }

    input[type="search"]::-webkit-search-decoration,
    input[type="search"]::-webkit-search-cancel-button,
    input[type="search"]::-webkit-search-results-button,
    input[type="search"]::-webkit-search-results-decoration {
        display: none;
    }

    .cancel-button {
        text-align: center;
        font-weight: normal;
        border: none;
        font-size: ${oe.cSu};
        line-height: ${oe.RUt};
        color: ${oe.goi};
        background: transparent;
        cursor: pointer;
        padding: 0;
        width: fit-content;
        outline: none;
    }

    .cancel-button:focus-visible {
        outline-color: ${oe.CHi};
        outline-width: 1px;
        outline-style: auto;
    }

    .screen-reader-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .suggestions-list {
        display: block;
        position: absolute;
        top: 46px;
        margin: 16px;
        outline: none;
        width: 268px;
        padding: 0;
        border-radius: 6px;
        background: ${oe.jql};
        -webkit-box-shadow: 0 0 10px ${oe.dtw};
        -moz-box-shadow: 0 0 10px ${oe.dtw};
        box-shadow: 0px 8px 16px var(--suggestion-list-shadow);
        z-index: 99;
    }

    .add-watchlist-hint-area {
        display: flex;
        height: 30px;
        justify-content: center;
        align-items: center;
    }

    .add-watchlist-hint {
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        display: flex;
        justify-content: center;
        align-items: center;
        color: ${oe.Q5n};
    }
    .add-watchlist-hint-gradient {
        color: ${oe.CHi};
    }

    .add-watchlist-hint:path {
        fill: ${oe.Q5n};
    }

    .no-suggestion-str {
        color: ${oe.CHi};
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        height: 16px;
        margin-top: 5px;
        margin-bottom: 5px;
        margin-inline-end: 0px;
        margin-inline-start: 9px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .suggestion-entry {
        background: transparent;
        list-style: none;
        text-decoration: none;
        cursor: pointer;
        border-top: 1px solid ${oe.dtw};
    }

    .suggestion-entry:hover .suggestion-item,
    .suggestion-entry:hover .default-suggestion-item {
        background: ${oe.XiB};
    }

    .suggestion-entry-selected {
        list-style: none;
        text-decoration: none;
        cursor: pointer;
        border-top: 1px solid ${oe.dtw};
    }

    .suggestion-company {
        display: grid;
        grid-template-rows: 16px 16px;
        text-align: -webkit-match-parent;
    }

    .suggestion-symbol {
        font-weight: 600;
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: ${oe.CHi};
    }

    .suggestion-symbol-gradient {
        color: ${oe.CHi};
    }
    
    .suggestion-name {
        font-size: ${oe.sNp};
        line-height: ${oe.vgC};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: ${oe.yGg};
    }

    .suggestion-name-gradient {
        color: ${oe.CHi};
        font-size: ${oe.G8g};
        line-height: ${oe.MwG};
    }

    .windf .suggestion-name-gradient {
        color: currentColor;
    }

    .suggestion-market {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        text-align: left;
    }

    .suggestion-market-str {
        text-align: end;
        font-size: ${oe.G8g};
        line-height: ${oe.MwG};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: ${oe.yGg};
        text-transform: uppercase;
    }

    .suggestion-market-str-gradient {
        color: ${oe.CHi};
    }

    .suggestion-add-icon {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        fill: currentColor;
    }
    /* only for medium gradient */
    .suggestion-add-icon-megrad {
        fill: ${oe.goi};
    }

    .windf .suggestion-add-icon-megrad {
        fill: currentColor;
    }

    /* change hover color for suggestion-add-icon */
    .suggestion-entry:hover path {
        fill: ${oe.Avx};
    }

    .suggestion-entry {
        list-style: none;
        text-decoration: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        border-top: 1px solid ${oe.dtw};
    }

    .suggestion-entry:hover .suggestion-item {
        border-radius: 2px;
        background: ${oe.XiB};
    }

    .suggestion-item {
        display: grid;
        grid-template-columns: 120px 100px 20px;
        grid-column-gap: 6px;
        padding: 7px 8px;
        text-decoration: none;
        background: transparent;
    }

    .suggestion-item-gradient {
        grid-template-columns: 136px 100px 20px;
    }

    .suggestion-company {
        display: grid;
        grid-template-rows: 16px 16px;
    }

    .default-recommend-area {
        margin: 3px 16px 0;
    }

    .default-recommend-area-gradient {
        margin: 3px 8px 0;
    }

    .default-suggestions-list {
        margin: 0;
        padding: 0;
        grid-template-rows: repeat(4, auto);
    }

    .default-suggestions-list li:first-child {
        border-top: none;
    }

    .vertical-span, .vertical-span-svg {
        vertical-align: middle;
        display: inline-block;
    }

    .vertical-span-svg {
        height: 20px;
    }

    .vertical-span-svg path {
        fill: ${oe.akT};
    }
`.withBehaviors(new gh.O(_m,Dm),(0,hn.vF)(re.i`
            :host {
                forced-color-adjust: auto;
            }

            .title-link:hover {
                text-decoration: underline;
            }

            .suggestion-add-icon{
                fill: ${vn.H.ButtonText};
            }

            svg[type="search-button"] path {
                fill: ${vn.H.ButtonText};
            }

            .change-values,
            .quote-row:hover {
                forced-color-adjust: none;
                background: ${vn.H.ButtonFace};
                box-shadow: 0 0 0
                    calc((${oe.vxp} - ${oe.Han}) * 1px)
                    ${vn.H.LinkText};
                color: ${vn.H.ButtonText};
            }

            ::slotted(*[slot="option-button"]) {
                fill: ${vn.H.ButtonText};
            }

            ::slotted([slot="option-button"]:hover) {
                background: ${vn.H.Highlight};
                fill: ${vn.H.HighlightText};
            }
        `)),Am=Jt.d`
    <svg 
        type="search-button" 
        width="16" 
        height="16" 
        viewBox="0 0 16 16" 
        xmlns="http://www.w3.org/2000/svg"
    >
        <path d="M10.5 0C11.0052 0 11.4922 0.0651042 11.9609 0.195312C12.4297 0.325521 12.8672 0.510417 13.2734 0.75C13.6797 0.989583 14.0495 1.27865 14.3828 1.61719C14.7214 1.95052 15.0104 2.32031 15.25 2.72656C15.4896 3.13281 15.6745 3.57031 15.8047 4.03906C15.9349 4.50781 16 4.99479 16 5.5C16 6.00521 15.9349 6.49219 15.8047 6.96094C15.6745 7.42969 15.4896 7.86719 15.25 8.27344C15.0104 8.67969 14.7214 9.05208 14.3828 9.39062C14.0495 9.72396 13.6797 10.0104 13.2734 10.25C12.8672 10.4896 12.4297 10.6745 11.9609 10.8047C11.4922 10.9349 11.0052 11 10.5 11C9.84896 11 9.22396 10.8906 8.625 10.6719C8.03125 10.4531 7.48438 10.138 6.98438 9.72656L0.851562 15.8516C0.752604 15.9505 0.635417 16 0.5 16C0.364583 16 0.247396 15.9505 0.148438 15.8516C0.0494792 15.7526 0 15.6354 0 15.5C0 15.3646 0.0494792 15.2474 0.148438 15.1484L6.27344 9.01562C5.86198 8.51562 5.54688 7.96875 5.32812 7.375C5.10938 6.77604 5 6.15104 5 5.5C5 4.99479 5.0651 4.50781 5.19531 4.03906C5.32552 3.57031 5.51042 3.13281 5.75 2.72656C5.98958 2.32031 6.27604 1.95052 6.60938 1.61719C6.94792 1.27865 7.32031 0.989583 7.72656 0.75C8.13281 0.510417 8.57031 0.325521 9.03906 0.195312C9.50781 0.0651042 9.99479 0 10.5 0ZM10.5 10C11.1198 10 11.7031 9.88281 12.25 9.64844C12.7969 9.40885 13.2734 9.08594 13.6797 8.67969C14.0859 8.27344 14.4062 7.79688 14.6406 7.25C14.8802 6.70312 15 6.11979 15 5.5C15 4.88021 14.8802 4.29688 14.6406 3.75C14.4062 3.20312 14.0859 2.72656 13.6797 2.32031C13.2734 1.91406 12.7969 1.59375 12.25 1.35938C11.7031 1.11979 11.1198 1 10.5 1C9.88021 1 9.29688 1.11979 8.75 1.35938C8.20312 1.59375 7.72656 1.91406 7.32031 2.32031C6.91406 2.72656 6.59115 3.20312 6.35156 3.75C6.11719 4.29688 6 4.88021 6 5.5C6 6.11979 6.11719 6.70312 6.35156 7.25C6.59115 7.79688 6.91406 8.27344 7.32031 8.67969C7.72656 9.08594 8.20312 9.40885 8.75 9.64844C9.29688 9.88281 9.88021 10 10.5 10Z"/>
    </svg>
`,Om=Jt.d`
    <div class="search-icon-area" part="search-icon-area">
        ${Am}
    </div>
`,Pm=Jt.d`   
    <input ${(0,Bu.i)("textInput")}
        autofocus="autofocus"
        class="search-input"
        part="search-input"
        type="search"
        aria-label=${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.searchPlaceholder}}
        aria-expanded="false"
        aria-autocomplete="list"
        id="countrylist-arrayaria-autocomplete-1-input"
        role="searchbox"
        aria-owns="recommendlist-aria-autocomplete-list"
        aria-controls="recommendlist-aria-autocomplete-list"
        aria-describedby="suggestionlist-aria-autocomplete-screen-reader-assistance"
        @input=${(t,e)=>t.handleTextInput(e.event)}
        @click=${(t,e)=>t.handleTextInput(e.event)}
        @keydown=${(t,e)=>t.handleOnKeyDownSearchBox(e.event)}
        @focusin=${(t,e)=>t.handleInputFocusIn()}
        @focusout=${(t,e)=>t.handleInputFocusOut()}
        placeholder=${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.searchPlaceholder}}
        data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.autoSuggestKeyPressTags}}"
    />
`,qm=Jt.d`
    <button ${(0,Bu.i)("cancelBtn")}
        class="cancel-button"
        part="cancel-button"
        @click=${t=>t.goBackToLastPage()}
        data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.goBackViewTelemetryTags}}"
    >
        <span>
            ${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.quoteSearchCancelText}}
        </span>
    </button>
`,Nm=Jt.d`
    <div class="search-title" part="search-title">
        <div class="search-area" part="search-area">
            ${Om}
            ${Pm}
        </div>
        ${qm}
    </div>
`,Hm=Jt.d`
    <div class="suggestion-company" part="suggestion-company">
        <span class=${(t,e)=>e.parent.getClass_quoteRowSymbol()}
            part=${(t,e)=>e.parent.getClass_quoteRowSymbol()}
        >
            ${t=>t.equitySymbol}
        </span>
        <span class=${(t,e)=>e.parent.getClass_quoteRowName()}
            part=${(t,e)=>e.parent.getClass_quoteRowName()}
        >
            ${t=>t.longName}
        </span>
    </div>
`,zm=Jt.d`
    <div class="suggestion-market" part="suggestion-market">
        <span class=${(t,e)=>e.parent.getClass_quoteRowExchange()}
            part=${(t,e)=>e.parent.getClass_quoteRowExchange()}
        >
            ${t=>t.exchangeName}
        </span>
    </div>
`,Qm=Jt.d`
    <div class=${(t,e)=>e.parent.getClass_quoteRowAddIcon()}
        part=${(t,e)=>e.parent.getClass_quoteRowAddIcon()}
    >
        ${Xg}
    </div>
`,Em=Jt.d`
    <div class=${(t,e)=>e.parent.getClass_quoteRowAddIcon()}
        part=${(t,e)=>e.parent.getClass_quoteRowAddIcon()}
    >
        ${Jg}
    </div>
`,jm=Jt.d`
    <li id="${t=>t.quoteId}"
        tabindex="0"
        title="${(t,e)=>Ki(t.quoteId,t.longName,t.equitySymbol,e.parent.watchlistQuoteDict,e.parent.strings)}"
        role="option"
        active=${(t,e)=>t.quoteId===e.parent.activeId||null}
        class=${(t,e)=>e.parent.getClass_searchedQuoRow(t.quoteId)}
        part=${(t,e)=>e.parent.getClass_searchedQuoRow(t.quoteId)}
        aria-label="${t=>t.longName} ${t=>t.exchangeName}"
        aria-selected=${(t,e)=>e.parent.activeId===t.quoteId}
        @click=${(t,e)=>e.parent.addToWatchlist(e.event,t)}
        @keydown="${(t,e)=>e.parent.onKeyDown(e.event,t,!0)}"
        data-t="${(t,e)=>e.parent.getSearchPageStockTelemetryTags(t)}"
    >
        <div class="suggestion-item" part="suggestion-item" >
            ${Hm}
            ${zm}
            ${(0,ch.g)(((t,e)=>It(t.quoteId,e.parent.watchlistQuoteDict)),Qm)}
            ${(0,ch.g)(((t,e)=>!It(t.quoteId,e.parent.watchlistQuoteDict)),Em)}
        </div>
    </li>
`,Wm=Jt.d`
    <ul class="suggestions-list"
        part="suggestions-list"
        @keydown="${(t,e)=>t.handleOnKeyDownAutoSuggestBox(e.event)}"
        @focusin=${(t,e)=>t.handleInputFocusIn()}
        @focusout=${(t,e)=>t.handleInputFocusOut()}
        ${(0,Bu.i)("selectedSuggestion")}
    >
        <div class="add-watchlist-hint-area" part="add-watchlist-hint-area">
            <span class="add-watchlist-hint ${t=>t.config.enableGradientStyles?"add-watchlist-hint-gradient":""}"
                part="add-watchlist-hint ${t=>t.config.enableGradientStyles?"add-watchlist-hint-gradient":""}"
            >
                ${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.quoteSearchClickHintText}}
            </span>
        </div>
        ${(0,wh.rx)((t=>t.searchSuggestions),jm)}
    </ul>
`,Rm=Jt.d`
    <div class="suggestions-list" part="suggestions-list">
        <div class="no-suggestion-str">
            ${t=>{var e;return null===(e=t.strings)||void 0===e?void 0:e.noSuggestionHint}}
        </div>
    </div>
`,Bm=Jt.d`
    <div class="search-panel" part="search-panel">
        ${Nm}
        ${(0,ch.g)((t=>t.showSuggestions),Wm)}
        ${(0,ch.g)((t=>t.noSuggestion),Rm)}
    </div>        
`,Gm=Jt.d`
    <div class=${t=>t.getClass_divider()}       
        part=${t=>t.getClass_divider()}  
    >
        <span>${t=>t.strings.addPopularSymbolText}</span>
    </div>
`,Um=Jt.d`
    <div class="suggestion-company" part="suggestion-company">
        <span class=${(t,e)=>e.parent.getClass_quoteRowSymbol()}
            part=${(t,e)=>e.parent.getClass_quoteRowSymbol()}
        >
            ${t=>t.symbol}
        </span>
        <span class=${(t,e)=>e.parent.getClass_quoteRowName()}
            part=${(t,e)=>e.parent.getClass_quoteRowName()}
        >
            ${t=>t.displayName}
        </span>
    </div>
`,Vm=Jt.d`
    <div class="suggestion-market" part="suggestion-market">
        <span class=${(t,e)=>e.parent.getClass_quoteRowExchange()}
            part=${(t,e)=>e.parent.getClass_quoteRowExchange()}
        >
            ${t=>t.exchangeName}
        </span>
    </div>
`,Zm=Jt.d`
    <div class=${(t,e)=>e.parent.getClass_quoteRowAddIcon()}
        part=${(t,e)=>e.parent.getClass_quoteRowAddIcon()}
    >
        ${Xg}
    </div>
`,Jm=Jt.d`
    <div class=${(t,e)=>e.parent.getClass_quoteRowAddIcon()}
        part=${(t,e)=>e.parent.getClass_quoteRowAddIcon()}
        title=${(t,e)=>{var i;return null===(i=e.parent.strings)||void 0===i?void 0:i.watchlistTooltipText}}
    >
        ${Jg}
    </div>
`,Xm=Jt.d`
    <li id=${t=>t.id}
        tabindex="0"
        class="suggestion-entry"
        part="suggestion-entry"
        aria-label="${t=>t.displayName} ${t=>t.symbol} ${t=>t.exchangeName}"
        role="option"
        title="${t=>t.tooltipText}"
        @click=${(t,e)=>e.parent.addToWatchlist(e.event,t)}
        data-t="${(t,e)=>e.parent.getSearchPageStockTelemetryTags(t,!0)}"
        @keydown="${(t,e)=>e.parent.onKeyDown(e.event,t,!0)}"
    >
        <div class=${(t,e)=>e.parent.getClass_recommendedQuoteRow()}
            part=${(t,e)=>e.parent.getClass_recommendedQuoteRow()}
            title="${t=>t.displayName} (${t=>t.symbol})"
        >
            ${Um}
            ${Vm}
            ${(0,ch.g)(((t,e)=>It(t.id,e.parent.watchlistQuoteDict)),Zm)}
            ${(0,ch.g)(((t,e)=>!It(t.id,e.parent.watchlistQuoteDict)),Jm)}
        </div>
    </li>
`,Ym=Jt.d`
    <div class="default-recommend-area ${t=>{var e;return(null===(e=t.config)||void 0===e?void 0:e.enableGradientStyles)?"default-recommend-area-gradient":""}}" 
        part="default-recommend-area ${t=>{var e;return(null===(e=t.config)||void 0===e?void 0:e.enableGradientStyles)?"default-recommend-area-gradient":""}}"
    >
        <ul
            id="recommendlist-aria-autocomplete-list"
            aria-label="Search suggestions"
            class="default-suggestions-list"
            part="default-suggestions-list"
            role="listbox"
            @focusin="${t=>t.handleOnFocusInToPopularList()}"
            ${(0,Bu.i)("suggestedQuotes")}
        >
            ${(0,wh.rx)((t=>t.searchRecommendedQuoteItems),Xm)}
        </ul>
    </div>
`,Km=Jt.d`
    <div class="money-card-page-base">
        <div class="search-section ${t=>t.config.isDynamicFeed?"windf":""}" 
             part="search-section"
             ${(0,Bu.i)("searchViewRef")}
             data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.searchPageViewShownTags}}"
        >
            <div>${Bm}</div>
            ${(0,ch.g)((t=>!t.config.isDynamicFeed||"small"!==t.currentWidgetSize),Jt.d`
                <div>${Gm}</div>         
                <div>${Ym}</div>

                <p class="screen-reader-only" aria-live="polite" aria-atomic="true">
                    ${t=>{var e;return t.showSuggestions&&(null===(e=t.searchSuggestions)||void 0===e?void 0:e.length)>0?`${t.searchSuggestions.length} ${t.strings.searchSuggestionResultPopUp}`:""}}
                    ${t=>t.noSuggestion?t.strings.noSuggestionHint:""}
                </p>
                <p id="suggestionlist-aria-autocomplete-screen-reader-assistance" style="display:none;">
                    ${t=>t.strings.searchSuggestionInstruction}
                </p>
            `)}
  
        </div>
    </div>
`;var tv=i(36934);class ev extends Yd.H{constructor(){super(...arguments),this.watchlistQuoteDict={},this.handleTextInput=(0,tv.Z)((t=>(0,f.mG)(this,void 0,void 0,(function*(){if(this.textInput){rt.M0.sendActionEvent(this.textInput);const t=this.textInput.value.trim();if(""===t)return this.searchSuggestions=[],this.showSuggestions=!1,void(this.noSuggestion=!1);try{const e=yield this.moneyEntryPointService.getAutoSuggestQuotes(t,this.config.maxAutosuggestionCount);e&&0!==e.length?(this.searchSuggestions=e,this.showSuggestions=!0,this.noSuggestion=!1):(this.resetSuggestionBox(),this.noSuggestion=!0)}catch(t){this.resetSuggestionBox(),this.noSuggestion=!0}}}))),200)}connectedCallback(){var t;super.connectedCallback(),this.moneyEntryPointService=new pm(null===(t=this.config)||void 0===t?void 0:t.apiConfig),this.showSuggestions=!1,this.noSuggestion=!1,this.focus()}handleInputFocusIn(){this.isFocusOnInput=!0}handleInputFocusOut(){this.isFocusOnInput=!1}resetSuggestionBox(){this.searchSuggestions=[],this.showSuggestions=!1}handleOnKeyDownSearchBox(t){if(qi()&&"Tab"===t.key&&!t.shiftKey)return this.cancelBtn.focus(),!1;if(!this.showSuggestions)return!0;switch(t.keyCode){case zg.$Y:t.preventDefault(),this.activeSuggestion=this.searchSuggestions.length-1,this.activeId=this.searchSuggestions[this.activeSuggestion].quoteId,this.focusSelectedElement();break;case zg.Q6:t.preventDefault(),this.activeSuggestion=0,this.activeId=this.searchSuggestions[this.activeSuggestion].quoteId,this.focusSelectedElement();break;default:return!0}return!0}handleOnKeyDownAutoSuggestBox(t){if("Tab"===t.key)return!0;switch(t.keyCode){case zg.Q6:if(t.preventDefault(),this.searchSuggestions.length>0){if(this.activeSuggestion=(this.activeSuggestion+1)%this.searchSuggestions.length,!this.searchSuggestions[this.activeSuggestion])break;this.activeId=this.searchSuggestions[this.activeSuggestion].quoteId}this.focusSelectedElement();break;case zg.$Y:if(t.preventDefault(),this.searchSuggestions.length>0){if(this.activeSuggestion=(this.activeSuggestion+this.searchSuggestions.length-1)%this.searchSuggestions.length,!this.searchSuggestions[this.activeSuggestion])break;this.activeId=this.searchSuggestions[this.activeSuggestion].quoteId}this.focusSelectedElement();break;case zg.ei:case zg.bq:if(t.preventDefault(),this.searchSuggestions.length>0){this.textInput.value="",this.activeSuggestion=-1;this.selectedSuggestion.querySelectorAll("li").forEach((t=>{if(t.id===this.activeId){t.click()}}))}break;case zg.Lp:t.preventDefault(),t.stopPropagation(),this.activeSuggestion=-1,this.textInput.value="",this.resetSuggestionBox(),this.noSuggestion=!1,this.textInput.focus()}return!1}handleOnFocusInToPopularList(){this.showSuggestions&&this.textInput.focus()}focusSelectedElement(){this.selectedSuggestion.querySelectorAll("li").forEach((t=>{if(t.id===this.activeId){t.focus()}}))}onKeyDown(t,e,i){const n=null===event||void 0===event?void 0:event.currentTarget;switch(null==t?void 0:t.key){case zg.oM:return!0;case" ":case zg.kL:return i?this.addToWatchlist(t,e):this.openFromSearchPage(ft(e),e.quoteHref,n),!1;default:return!1}}getSuggestionClass(t,e,i){return t===this.activeId?i:e}addToWatchlist(t,e){return(0,f.mG)(this,void 0,void 0,(function*(){null==t||t.stopPropagation();const i=null==t?void 0:t.currentTarget;It(ft(e),this.watchlistQuoteDict)?this.openFromSearchPage(ft(e),e.quoteHref,i):(yield this.quoteListPageWatchQuote(t,ft(e)),this.textInput&&(this.textInput.value=""),this.goBackToLastPage(),rt.M0.sendActionEvent(i))}))}openNewTab(t,e){const i=St(t);rt.M0.sendActionEvent(e,be.Aw.Click,be.wu.Navigate,i),window.open(i,this.openLinksInNewTab?"_blank":"_self")}openFromSearchPage(t,e,i){this.config.enableWatchlistLink&&this.watchlistQuoteDict[t]&&(e=ut(et.jG.CurrentMarket,t,null,null,g.Search)),this.openNewTab(e,i)}getSearchPageStockTelemetryTags(t){var e,i;return It(ft(t),this.watchlistQuoteDict)?null===(e=this.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.getStockClickTags(ft(t),g.Search,t.symbol,!1):null===(i=this.moneyInfoCardWCTelemetryContext)||void 0===i?void 0:i.addToWatchlistTags(t.symbol,!0,!0)}getClass_divider(){return`no-sugg-dvdr-cntr ${Pi(this.config,"no-sugg-dvdr-cntr")}`}getClass_dividerText(){return`vertical-span ${Pi(this.config,"vertical-span")}`}getClass_dividerIcon(){return`vertical-span-svg ${Pi(this.config,"vertical-span-svg")}`}getClass_recommendedQuoteRow(){return`suggestion-item ${this.config.enableGradientStyles?"suggestion-item-gradient":""}`}getClass_quoteRowAddIcon(){return`suggestion-add-icon ${Pi(this.config,"suggestion-add-icon")}`}getClass_quoteRowExchange(){return`suggestion-market-str ${this.config.enableGradientStyles?"suggestion-market-str-gradient":""}`}getClass_quoteRowSymbol(){return`suggestion-symbol ${this.config.enableGradientStyles?"suggestion-symbol-gradient":""}`}getClass_quoteRowName(){return`suggestion-name ${this.config.enableGradientStyles?"suggestion-name-gradient":""}`}getClass_searchedQuoRow(t){return this.getSuggestionClass(t,"suggestion-entry","suggestion-entry-selected")}}(0,f.gn)([_i.LO],ev.prototype,"activeId",void 0),(0,f.gn)([_i.LO],ev.prototype,"showSuggestions",void 0),(0,f.gn)([_i.LO],ev.prototype,"isFocusOnInput",void 0),(0,f.gn)([_i.LO],ev.prototype,"noSuggestion",void 0),(0,f.gn)([_i.LO],ev.prototype,"activeSuggestion",void 0),(0,f.gn)([_i.LO],ev.prototype,"searchRecommendedQuoteItems",void 0),(0,f.gn)([_i.LO],ev.prototype,"searchSuggestions",void 0),(0,f.gn)([_i.LO],ev.prototype,"watchlistQuoteDict",void 0),(0,f.gn)([_i.LO],ev.prototype,"moneyInfoCardWCTelemetryContext",void 0),(0,f.gn)([_i.LO],ev.prototype,"currentWidgetSize",void 0);let iv=class extends ev{};iv=(0,f.gn)([(0,Yd.M)({name:"money-card-search-page",template:Km,styles:Fm,shadowOptions:{delegatesFocus:!0}})],iv);var nv='<svg fill="none" viewBox="0 0 16 16"><g clip-path="url(#clip0)"><path fill="url(#paint0_linear)" d="M4.3 5.69a.67.67 0 0 1 .95 0l1.18 1.17c.26.26.26.69 0 .95l-4.01 4a.67.67 0 0 1-.94 0L.3 10.64a.67.67 0 0 1 0-.95l4-4z"/><path fill="url(#paint1_linear)" d="M4.3 5.69a.67.67 0 0 1 .95 0l4.71 4.71c.26.26.26.68 0 .94l-1.18 1.18a.67.67 0 0 1-.94 0L2.65 7.34 4.3 5.69z"/><path fill="url(#paint2_linear)" fill-rule="evenodd" d="M8 3.67c0-.37.3-.67.67-.67h6.66c.37 0 .67.3.67.67v6.66a.67.67 0 0 1-.67.67h-1.66a.67.67 0 0 1-.67-.67V8.3l-4.22 4.22a.67.67 0 0 1-.94 0l-1.65-1.65L11.06 6h-2.4A.67.67 0 0 1 8 5.33V3.67z" clip-rule="evenodd"/></g><defs><linearGradient id="paint0_linear" x1="5.84" x2=".89" y1="6.28" y2="11.22" gradientUnits="userSpaceOnUse"><stop stop-color="#0B6413"/><stop offset="1" stop-color="#107C10"/></linearGradient><linearGradient id="paint1_linear" x1="9" x2="3.5" y1="12" y2="6.5" gradientUnits="userSpaceOnUse"><stop stop-color="#107C10"/><stop offset="1" stop-color="#33990F"/></linearGradient><linearGradient id="paint2_linear" x1="16" x2="7.5" y1="3" y2="11.5" gradientUnits="userSpaceOnUse"><stop stop-color="#78D30C"/><stop offset="1" stop-color="#56B60E"/></linearGradient><clipPath id="clip0"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>',rv=i(94522),ov=i(52468),av=i(81563);Cm.S,ov.a;const sv=Jt.d`
    ${t=>(0,av.O)(t.config.childExperienceReferences.sdCardMaskWC,{properties:{cardType:"Money",isHalfCard:t.isHalfCard(),feedbackTexts:[t.strings.feedbackOption1,t.strings.feedbackOption2,t.strings.feedbackOption3]}})}
`,lv=Jt.d`
    <a class="confirm-pop ${t=>Pi(t.config,"confirm-pop")}"
        tabindex="0"
        href="${t=>t.confirmationPopup.targetPageLink.href}"
        target=${t=>t.confirmationPopup.targetPageLink.target}
        role="region"
        aria-live="polite"
        data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.seeWatchlistClickTelemetryTags}}"
    >
            <span>${t=>t.confirmationPopup.symbolLabel}</span>
            <span class="quote-link">${t=>t.confirmationPopup.targetPageLink.displayText}</span>
    </a>
`,cv=Jt.d`
    <msn-actions-menu 
        :referrerButton=${t=>t.actionsMenuButtonElement}
        :menuItems=${t=>t.menuItems}
    />
`,dv=Jt.d`
    <fluent-button 
        appearance="${t=>t.config.isDynamicFeed?"stealth":"neutral"}"
        class="${t=>t.config.isDynamicFeed?"":"more-options"}"
        part="more-options"
        slot="${t=>t.config.isDynamicFeed?"more-actions":""}"
        @click=${(t,e)=>t.toggleActionMenu&&t.toggleActionMenu(!t.isActionMenuOpen,e.event)}
        title="${t=>t.config.isDynamicFeed?"":t.strings.moreOptionsTitle}"
        aria-label="${t=>t.strings.moreOptionsTitle}"
        role="button"
        data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.menuCustomizationClickTags}}"
        ?disabled=${t=>t.currentPageType===g.Search}
    >
        ${Tm.Z}
    </fluent-button>
`,uv=Jt.d`
    <div class="card-tabs">
        ${(0,ch.g)((t=>!t.isMultiTabUXReady),Jt.d`
            ${(0,ch.g)((t=>t.config.enableHalfCardQuoteCarousel),(t=>t.currentSingleTabTemplate))}
            ${(0,ch.g)((t=>!t.config.enableHalfCardQuoteCarousel),(t=>t.carouselCardDatas[0].tabContent))}
        `)}
        ${(0,ch.g)((t=>t.isMultiTabUXReady),(t=>Jt.d`
            <money-card-page-carousel
                :carouselPages=${()=>t.carouselCardDatas}
                :enableAutoScroll=${()=>t.enableAutoRotation}
                :config=${t=>t.config}
                :watchlistQuoteDict=${t=>t.watchlistQuoteDict}
                :moneyInfoCardWCTelemetryContext=${()=>t.moneyInfoCardWCTelemetryContext}
                :autoScrollIntervalMs=${()=>t.config.autoScrollIntervalMs}
                :isInViewport=${()=>t.isInViewport}
                :setCurrentPageType=${()=>t.setCurrentPageTypes}
            >
            </money-card-page-carousel>
        `))}
    </div>
`,hv=Jt.d`
    <money-card-search-page
        :config=${t=>t.config}
        :strings=${t=>t.strings}
        :openLinksInNewTab = ${t=>t.openLinksInNewTab}
        :searchRecommendedQuoteItems=${t=>t.recommendedQuoteItemsInSearch}
        :watchlistQuoteDict=${t=>t.watchlistQuoteDict}
        :moneyInfoCardWCTelemetryContext=${t=>t.moneyInfoCardWCTelemetryContext}
        :quoteListPageWatchQuote=${t=>t.quoteListPageWatchQuote}
        :goBackToLastPage=${t=>()=>t.goBackToLastPage()}
        :currentWidgetSize=${t=>t.currentWidgetSize}
    />
`,gv=Jt.d`
    ${(0,ch.g)((t=>t.currentPageType===g.Search),hv)}
    ${(0,ch.g)((t=>t.currentPageType!==g.Search),uv)}
`,pv=Jt.d`
    <fluent-button
        appearance="neutral"
        class="dsms-btn"
        part="dismiss"
        slot="dismiss"
        title="${t=>t.strings.dismissMenuHide}"
        aria-label="${t=>t.strings.moreOptionsTitle}"
        role="button"
        @click=${t=>t.toggleDismissMenu(!t.isDismissMenuOpen)}
        data-t="${t=>t.getDismissMenuButtonTelemetryTag()}"
    >
        ${$m.Z}
    </fluent-button>
`,fv=Jt.d`
    <fluent-button
        appearance="neutral"
        part="menu-item"
        slot="navigation"
        class="btn"
        data-t="${t=>t.telemetryTag}"
        @click=${(t,e)=>t.onClick(e.event)}
    >
        ${(t,e)=>t.title}
    </fluent-button>
`,mv=Jt.d`
    <div class="dsms-menu money-card-megrad">
        <div class="title">
            ${t=>t.strings.dismissMenuTitle}
        </div>
        <div class="btns">
            ${(0,wh.rx)((t=>t.dismissMenuItems),fv)}
        </div>
        <div class="cntrs">
            <fluent-button
                appearance="accent"
                part="control"
                slot="dismiss"
                class="cntr hide"
                data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.menuDismissHideClickTags}}"
                @click=${t=>t.dismissMenuAction(g.prepopulatedWL)}
            >
                ${t=>t.strings.dismissMenuHide}
            </fluent-button>
            <fluent-button
                appearance="neutral"
                part="control"
                slot="cancel"
                class="cntr cancel"
                data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.menuDismissCancelClickTags}}"
                @click=${t=>t.toggleDismissMenu(!1)}
            >
                ${t=>t.strings.dismissMenuCancel}
            </fluent-button>
        </div>
    </div>
`,vv=Jt.d`
    <div class="money-card 
        ${t=>Pi(t.config,"money-card",t.noGradient)}
        ${t=>t.config.disableHeader?"noHdr":""}
        ${t=>t.config.disableDarkMode?"":"wdrk"}
        ${t=>qi()?"winDsh":""} 
        ${t=>t.cardType?t.cardType:""}"
        part="money-card ${t=>Pi(t.config,"money-card",t.noGradient)}"
        style=${t=>t.cardHeight?`--card-height:${t.cardHeight}px`:""}
        ${(0,Bu.i)("moneyCardViewRef")}
        data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.quoteListViewShownTags}}"
        @focusin=${t=>t.handleFocusIn()}
        @focusout=${t=>t.handleFocusOut()}
    >
        ${(0,ch.g)((t=>t.config.isContentUnavailable),Jt.d`${t=>{return e=t.strings.contentUnavailableText,Jt.d`
    <div class="widget-unavailable-section">
        ${ae}
        <div class="widget-unavailable-content">
            ${e}
        </div>
    </div>`;var e}}`)}
        ${(0,ch.g)((t=>{var e;return t.currentPageType!==g.Search&&(null===(e=t.menuItems)||void 0===e?void 0:e.length)>0}),Jt.d`
            ${dv}
            ${(0,ch.g)((t=>t.isActionMenuOpen),cv)}
        `)}
        ${(0,ch.g)((t=>{var e;return(null===(e=t.dismissMenuItems)||void 0===e?void 0:e.length)>0}),Jt.d`
            ${pv}
            ${(0,ch.g)((t=>t.isDismissMenuOpen),mv)}
        `)}
        ${(0,ch.g)((t=>t.isDataReady),gv)}
        ${(0,ch.g)((t=>t.showConfirmation),lv)}
        <p class="screen-reader-only" aria-live="polite" aria-atomic="true">
            ${t=>t.showConfirmation?t.strings.itemAddedToWatchlist:""}
        </p>
    </div>
    ${(0,ch.g)((t=>{var e,i;return t.isGA&&(null===(i=null===(e=t.config)||void 0===e?void 0:e.childExperienceReferences)||void 0===i?void 0:i.sdCardMaskWC)}),sv)}
`,yv=Jt.d`
    <div class="header-icon-container" part="header-icon-container" slot="title-icon">
        ${(0,ch.g)((t=>!t.cardType),Jt.d`${nv}`)}
        ${(0,ch.g)((t=>t.cardType===b.Crypto),Jt.d`${'<svg width="72" height="72" viewBox="0 0 72 72" fill="none"><g clip-path="url(#clip0_1205_59852)"><path d="M17.72 3.35c0-1.85 1.5-3.35 3.35-3.35h6.7c1.84 0 3.34 1.5 3.34 3.35v15.07h-13.4V3.35Z" fill="url(#paint0_linear_1205_59852)"/><path d="M41.15 3.35C41.15 1.5 42.65 0 44.5 0h6.7c1.85 0 3.35 1.5 3.35 3.35v15.07h-13.4V3.35Z" fill="url(#paint1_linear_1205_59852)"/><path d="M17.72 53.58H31.1v15.07c0 1.85-1.5 3.35-3.35 3.35h-6.7a3.35 3.35 0 0 1-3.34-3.35V53.58Z" fill="url(#paint2_linear_1205_59852)"/><path d="M41.15 53.58h13.4v15.07c0 1.85-1.5 3.35-3.35 3.35h-6.7a3.35 3.35 0 0 1-3.35-3.35V53.58Z" fill="url(#paint3_linear_1205_59852)"/><path d="M61.32 43.53c2.15 0 3.75 2 2.99 4.02a30.14 30.14 0 1 1 0-21.42c.76 2-.84 4.01-2.99 4.01h-7.65c-1.33 0-2.5-.8-3.2-1.95a16.73 16.73 0 0 0-31.08 8.65 16.74 16.74 0 0 0 31.08 8.64 3.82 3.82 0 0 1 3.2-1.95h7.65Z" fill="url(#paint4_linear_1205_59852)"/></g><defs><linearGradient id="paint0_linear_1205_59852" x1="35.25" y1="0" x2="35.25" y2="72" gradientUnits="userSpaceOnUse"><stop stop-color="#BBDB06"/><stop offset="1" stop-color="#299A2E"/></linearGradient><linearGradient id="paint1_linear_1205_59852" x1="35.25" y1="0" x2="35.25" y2="72" gradientUnits="userSpaceOnUse"><stop stop-color="#BBDB06"/><stop offset="1" stop-color="#299A2E"/></linearGradient><linearGradient id="paint2_linear_1205_59852" x1="35.25" y1="0" x2="35.25" y2="72" gradientUnits="userSpaceOnUse"><stop stop-color="#BBDB06"/><stop offset="1" stop-color="#299A2E"/></linearGradient><linearGradient id="paint3_linear_1205_59852" x1="35.25" y1="0" x2="35.25" y2="72" gradientUnits="userSpaceOnUse"><stop stop-color="#BBDB06"/><stop offset="1" stop-color="#299A2E"/></linearGradient><linearGradient id="paint4_linear_1205_59852" x1="35.25" y1="0" x2="35.25" y2="72" gradientUnits="userSpaceOnUse"><stop stop-color="#BBDB06"/><stop offset="1" stop-color="#299A2E"/></linearGradient><clipPath id="clip0_1205_59852"><path fill="#fff" d="M0 0h72v72H0z"/></clipPath></defs></svg>'}`)}
        ${(0,ch.g)((t=>t.cardType===b.MoneyInfo),Jt.d`${nv}`)}
    </div>
`,bv=Jt.d`${(0,ch.g)((t=>t.config.isDynamicFeed&&t.isPinned),Jt.d`${rv.Z}`)}`,wv=Jt.d`
    <a
        tabIndex="-1"
        class="money-fullcardcover"
        part="money-fullcardcover"
        href="${t=>t.getWatchlistPageHeaderLink()}"
        target=${t=>t.getTargetForLink()}
        data-t="${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.headerLinkClickTelemetryTags}}"
    >
    </a>
`,xv=Jt.d`
    <fluent-design-system-provider
        neutral-base-color="${t=>t.widgetBackgroundGradientBaseColor}"
        base-layer-luminance="${t=>t.baseLayerLuminance}"
        style="padding: 0; width: 100%; height: 100%; margin: 0;"
    >
        <msft-structured-data-card
            ${(0,Bu.i)("moneyCardViewRef")}
            class="money-sdc windf ${t=>t.config.disableDarkMode?"":"wdrk"} ${t=>t.isDarkModeTheme?"dark":""} ${t=>t.config.enableGradientStyles?"grdt":""} ${t=>t.config.useStaticGradientBackground?"st-grdt":""}"
            @focusin=${t=>t.handleFocusIn()}
            @focusout=${t=>t.handleFocusOut()}
            ?pinned="${t=>t.isPinned}"
            :headerTelemetryTag=${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.headerLinkClickTelemetryTags}}
            :seeMoreTelemetryTag=${t=>{var e;return null===(e=t.moneyInfoCardWCTelemetryContext)||void 0===e?void 0:e.menuCustomizationClickTags}}
            :data= ${t=>({titleContent:t.getWidgetTitle(),link:t.getWatchlistPageHeaderLink()})}
        >
            ${yv}
            ${dv}
            ${(0,ch.g)((t=>t.isActionMenuOpen),cv)}
            <div name="pin" slot="pin" role="img" aria-label="${t=>t.strings.pinnedWidgetText||"pinned widget"}">${bv}</div>
            <div class="content" part="content">
                ${(0,ch.g)((t=>t.isDataReady),gv)}
                ${(0,ch.g)((t=>t.showConfirmation),lv)}
            </div>
            ${wv}
        </msft-structured-data-card>
    </fluent-design-system-provider>
`,Cv=Jt.d`
    ${t=>t.config.isDynamicFeed?xv:vv}
`,Tv={experienceConfigSchema:c}},52468:function(t,e,i){"use strict";i.d(e,{a:function(){return h}});var n=i(33940),r=i(9610),o=i(87697),a=i(83227),s=i(38156),l=i(65135),c=i(60483),d=i(65337),u=i(26415);class h extends r.l{constructor(){super(...arguments),this.clickBannerWithin3days=!1,this.sdCardMaskVisible=!0,this.showInitialBanner=!1,this.showContextualFeedback=!1,this.showThankBanner=!1}experienceConnected(){this.telemetryObject=new c.D({name:"SdCardMask"+this.cardType,action:s.Aw.Click,behavior:s.wu.View,content:{headline:this.cardType}}),this.sdCardMaskVisible=!h.visited.has(this.cardType),this.generateTelemetryTags(),this.clickBannerWithin3days=this.checkWhetherClickBannerSdMaskWithin3days(),this.clickBannerWithin3days||setTimeout((()=>{this.showInitialBanner=!0}),2e3)}getExperienceType(){return a.x.sdCardMaskWC}generateTelemetryTags(){this.telemetryObject&&(this.positiveTelemetryTag=this.telemetryObject.addOrUpdateChild({name:"YesButton",action:s.Aw.Click,behavior:s.wu.Customize}).getMetadataTag(),this.negativeTelemetryTag=this.telemetryObject.addOrUpdateChild({name:"NoButton",action:s.Aw.Click,behavior:s.wu.Customize}).getMetadataTag(),this.dismissTelemetryTag=this.telemetryObject.addOrUpdateChild({name:"DismissButton",action:s.Aw.Click,behavior:s.wu.Show}).getMetadataTag(),this.feedbackTexts&&(this.inlineTelemetryTag=this.telemetryObject.addOrUpdateChild({name:"InlineDialogue"+this.cardType,action:s.Aw.Click,behavior:s.wu.View,content:{headline:this.cardType}}).getMetadataTag(),this.feedbackTextswithTelemetry=this.feedbackTexts.map(((t,e)=>({text:t,telemetryTag:this.telemetryObject.addOrUpdateChild({name:"Option"+(e+1).toString(),action:s.Aw.Click,behavior:s.wu.Customize,content:{headline:t}}).getMetadataTag()}))),this.closeFeedbackTelemetryTag=this.telemetryObject.addOrUpdateChild({name:"CloseButton",action:s.Aw.Click,behavior:s.wu.Show}).getMetadataTag(),this.thankBannerCloseTelemetryTag=this.telemetryObject.addOrUpdateChild({name:"CloseThankBanner",action:s.Aw.Click,behavior:s.wu.Show}).getMetadataTag()))}removeSdCardMask(t){l.M0.sendActionEvent(t.currentTarget),this.sdCardMaskVisible=!1,h.visited.add(this.cardType)}closeSdMask(){this.sdCardMaskVisible=!1,this.saveUserClickTime()}openFeedback(){this.showInitialBanner=!1,this.showContextualFeedback=!0,this.saveUserClickTime()}openThankBanner(){this.showContextualFeedback=!1,this.showThankBanner=!0,setTimeout((()=>{this.sdCardMaskVisible=!1}),2e3)}checkWhetherClickBannerSdMaskWithin3days(){try{const t=(0,d.$o)().getObject("isGAStatus");if(!t)return!1;const e=t[this.cardType];if(!e)return!1;const i=new Date,n=new Date(e);if((i.getTime()-n.getTime())/864e5>3)return!1}catch(t){return l.M0.sendAppErrorEvent(Object.assign(Object.assign({},u.Yon),{message:t&&t.message,pb:Object.assign(Object.assign({},u.Yon.pb),{stack:t&&t.stack})})),!0}return!0}saveUserClickTime(){const t=(0,d.$o)().getObject("isGAStatus")||{},e=new Date;t[this.cardType]=e.toString(),(0,d.$o)().setObject("isGAStatus",t)}}h.visited=new Set,(0,n.gn)([o.LO],h.prototype,"clickBannerWithin3days",void 0),(0,n.gn)([o.LO],h.prototype,"sdCardMaskVisible",void 0),(0,n.gn)([o.LO],h.prototype,"showInitialBanner",void 0),(0,n.gn)([o.LO],h.prototype,"showContextualFeedback",void 0),(0,n.gn)([o.LO],h.prototype,"showThankBanner",void 0),(0,n.gn)([o.LO],h.prototype,"feedbackTextswithTelemetry",void 0)},59450:function(t,e,i){"use strict";var n,r;i.d(e,{$:function(){return r},p:function(){return n}}),function(t){t.Aicharacter="aicharacter",t.BingHomepage="bingHomepage",t.Channel="channel",t.Community="community",t.ContentTools="contentTools",t.Edge="edge",t.EdgeChromium="edgeChromium",t.Finance="finance",t.FirstParty="firstParty",t.Gaming="gaming",t.HomePage="homePage",t.Hub="hub",t.Health="health",t.MediaSvc="mediasvc",t.Hybrid="hybrid",t.MicrosoftNews="microsoftNews",t.MMX="mmx",t.NewsAndInterests="newsAndInterests",t.Office="office",t.Personalize="personalize",t.Prism="prism",t.qna="qna",t.Recipes="recipes",t.SharedWidgets="sharedWidgets",t.SuperApp="superApp",t.Shopping="shopping",t.Sports="sports",t.Distribution="distribution",t.Traffic="traffic",t.Travel="travel",t.UGC="ugc",t.Views="views",t.Weather="weather",t.WeatherWidgets="weatherWidgets",t.Windows="windows",t.WindowsNewsPlus="windowsNewsPlus",t.WindowsNewsWidgets="winWidgets",t.WindowsShell="windowsShell",t.WindowsShellV2="windowsShellV2",t.WindowsNewsBar="windowsNewsbar"}(n||(n={})),function(t){t.Default="Default",t.WinDashboard="WinDashboard",t.Edge="Edge"}(r||(r={}))},63725:function(t,e,i){"use strict";i.d(e,{d:function(){return I}});var n=i(33940),r=i(26415),o=i(33954);var a=i(2040),s=i(47903),l=i(16517),c=i(17318),d=i(94788),u=i(54804),h=i(62938),g=i(67267),p=i(63535),f=i(87298),m=i(65135),v=i(75559),y=i(51125),b=i(4875),w=i(51671);class x{constructor(){this.cachedMetadata={}}get(t){const e=C(t);if(e)return this.cachedMetadata[e]}set(t,e){const i=C(t);i&&(this.cachedMetadata[i]=e)}}function C(t){if(t)return JSON.stringify(t)}var T=i(33799),$=i(33379),k=i(12611);class I{constructor(t){this.config=t,this.responseCache=new x,this.requestPathWithoutFeedId="MSN/Feed/me",this.requestPathWithFeedId="MSN/Feed",this.requestPathForFeedLayout="MSN/FeedLayout",this.requestPathForArticleFRE="news/Feed",this.requestPathForNewsFeed="news/Feed"}fetch(t,e){return(0,n.mG)(this,void 0,void 0,(function*(){let i=this.config.initialRequest;if(t&&(t.feedId||!i.feedId||t.nextPageUrl||(t.feedId=i.feedId),i=Object.assign(Object.assign({},i),t)),!i)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.pIg),{message:"default OneService fetch configuration was invalid"}));const d=(null==t?void 0:t.forceEnterpriseCompliance)||(0,b.VQ)(),u=yield g.$.getOneServiceFeedCallHeaders(d);if(d&&!(null==u?void 0:u[a.Yu.authorization])&&!(null==t?void 0:t.forceNoAuthorization))return;const v={credentials:"include",headers:u,method:"GET"},x=i.useNextPageUrl&&i.nextPageUrl,C=i.feedLayoutRequestType;let I;I=!x&&C?this.requestPathForFeedLayout:"feed"===i.query&&i.feedId?this.requestPathForNewsFeed:i.feedId||i.entityId?this.requestPathWithFeedId:"frefeedback"===i.query||"frefeedbackneg"===i.query||"UserFre"===i.query?this.requestPathForArticleFRE:this.requestPathWithoutFeedId;const S=this.responseCache.get(i);if(this.isRequestCacheable(I)&&S)return S;const L=(0,p.fU)(I,null==t?void 0:t.overwriteBaseApiURL),M=(0,y.Ee)();if(x)this.requestQueryParams=new s.h(new URL(x).search),M>0&&this.requestQueryParams.set(y.i$,M.toString()),l.jG.SendFeedCallActivityIdInHeader||this.requestQueryParams.set("activityId",l.jG.ActivityId);else{const{ocid:t,flightData:e,overwriteFlightData:n,muidFallback:r}=i,o=(yield(0,w.XJ)())===T.Hy.SignedIn?g.$.getOneServiceParamsWithAuth(l.jG.UserId,t,!1,e,n):g.$.getOneServiceParamsWithoutAuth(l.jG.UserId||r&&`m-${l.jG.ActivityId}`,t,!1,e,n,d);this.requestQueryParams=new s.h;for(let t=0;t<o.length;t++)this.requestQueryParams.set(o[t].key,o[t].value);if(C&&!i.start)this.requestQueryParams.set("t",C);else if(!i.disableQueryType){const t=i.queryType||"myfeed";this.requestQueryParams.set("queryType",t)}if(this.requestQueryParams.set("wrapodata","false").set("DisableTypeSerialization","true").set("timeOut",`${this.getRequestTimeout(i)}`).set("contentType",i.contentType).set("$select",i.select).set("responseSchema",i.disableFlatViewResponse?h.c.CardView:h.c.FlatView),i.apiKey&&this.requestQueryParams.set("apikey",i.apiKey),i.count&&this.requestQueryParams.set("$top",`${i.count}`),i.contentId&&this.requestQueryParams.set("contentId",i.contentId),this.tryAddQueryInterestParams(i)||this.requestQueryParams.set("ids",i.feedId).set("query",i.query).set("entityids",i.entityId),!C&&!i.disableLocation){const t=g.$.getLocationParams(i.latitude,i.longitude);t&&this.requestQueryParams.set(t.key,t.value)}i.start&&this.requestQueryParams.set("$skip",`${i.start}`),i.infopaneItemCount&&(this.requestQueryParams.set("infopaneCount",`${i.infopaneItemCount}`),!1===i.complexInfopaneEnabled&&this.requestQueryParams.set("cipenabled","false")),M>0&&this.requestQueryParams.set(y.i$,M.toString()),(i.useDelta||i.sessionId)&&(!1!==i.useDelta&&this.requestQueryParams.set("delta","true"),i.sessionId&&this.requestQueryParams.set("session",i.sessionId)),i.channel&&this.requestQueryParams.set("channel",i.channel)}let _,D,F,A;"UserFre"===i.query&&this.requestQueryParams.set("entityIds",i.userFreCandidatesSetId),l.jG.SendFeedCallActivityIdInHeader&&this.requestQueryParams.delete("activityId"),L.search=this.requestQueryParams.toString();try{const t=(0,$.N)()?1e4:800,e=yield(0,f.w)((()=>(0,n.mG)(this,void 0,void 0,(function*(){return this.config.useFetchPromise?yield(0,f.O)(decodeURIComponent(L.href),v,t):yield(0,c.Sm)(decodeURIComponent(L.href),t,v)}))),"OneServiceCardProvider.fetch");if(!e||!e.ok&&404!==e.status){F=e?e.status:null,A=e?e.statusText:null;const t=401===F?r.THd:r.p3y;return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{message:e?"OneService returned error response":"OneService response was null",pb:Object.assign(Object.assign({},t.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:L.href,statusCode:F,statusText:A}})}))}if(204===e.status||404===e.status)_={feedItems:[]},F=e.status,A=e.statusText,m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.n82),{message:204===e.status?"Empty non first-page response":"Empty first-page response",pb:Object.assign(Object.assign({},r.n82.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:L.href,statusCode:F,statusText:A}})}));else{if(i.rawView)return e.json();_=yield e.json()}if(e.headers){e.headers.get("X-Statics-Fallback")&&m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.ovB),{pb:Object.assign(Object.assign({},r.ovB.pb),{customMessage:`Request URL: ${decodeURIComponent(L.href)}`}),message:"Fell back to static content on the feeds call"}));const t=e.headers.get("ddd-tmpl");m.M0.addOrUpdateTmplString(t),D=e.headers.get("ddd-session-id");const i=e.headers.get(a.rD.traceId);this.addOrUpdateIdxId(i);const n=e.headers.get(a.rD.debugId);this.addOrUpdateDebugId(n,!1)}}catch(t){return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.u45),{message:"Error while fetching OneService response",pb:Object.assign(Object.assign({},r.u45.pb),{customMessage:`Error: ${t}`,fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:L.href}})}))}if(!_)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.XFR),{message:"Didn't get valid JSON from response.",pb:Object.assign(Object.assign({},r.XFR.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:L.href}})}));const O=(this.requestQueryParams.get("t")||"").toLowerCase(),P="tabriver"===O||"tabs"===O,q=this.requestQueryParams.get("responseSchema"),{nextPageUrl:N,feedItems:H}=q===h.c.CardView?(0,k.ni)(_,P):_;if(!H)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.yWd),{message:"Didn't get valid feed items list from response.",pb:Object.assign(Object.assign({},r.yWd.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:L.href,responseJson:JSON.stringify(_)}})}));if(!H.length&&!i.start)if(i.isSearchRequest)this.trackEmptyResponseForInterestSearch(i.feedId,i.query,L.href);else if(i.feedId){const{emptyResponseFeedIds:t}=this.config.initialRequest;e||i.feedId.startsWith("Q_")||t&&t.length&&-1!==t.indexOf(i.feedId)||this.trackEmptyResponseForXFeed(i.feedId,L.href)}else i.query?this.trackEmptyResponseForQueryFeed(i.query,L.href):this.trackAppErrorHelper(r.BlE,"OneService returned an empty feed for a myfeed request.",L.href,null,null,"",F,A);if(P)if("tabriver"===O){const t=H.find((t=>"tabbedInfopane"===t.type));t&&t.subItems&&t.subItems.length||m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.$Ej),{pb:Object.assign(Object.assign({},r.$Ej.pb),{feedData:JSON.stringify(_),fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:L.href,responseJson:JSON.stringify(_)}}),message:"TabRiver request returned empty content for tabbed infopane card."}))}else if("tabs"===O){let t=!1;t=!H.length||-1!==H.findIndex((t=>"tabbedInfopane"!==t.type||!t.subItems||!t.subItems.length)),t&&m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.a3w),{pb:Object.assign(Object.assign({},r.a3w.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:L.href,responseJson:JSON.stringify(_)}}),message:"Tabs request returned empty content for one or more tabbed infopane cards."}))}let z;if(H.length>=0?z=Object.assign(Object.assign({},i),{nextPageUrl:N,start:(i.start||0)+i.count}):o.k.log(`River has reached end of content stream. requested: ${i.count}, received: ${H.length}`),i.postRequestGrouping){const{start:t,count:e,type:n}=i.postRequestGrouping,r={type:n,subItems:H.splice(t,e)};H.splice(t,0,r)}const Q={cardMetadata:H,nextPageRequest:z,sessionId:D,feedContext:_.feed};return this.responseCache.set(i,Q),Q}))}fetchFromWebWorker(t,e=1e3,i){return(0,$.N)()?(0,d.ot)({id:t},e).then((t=>{const e=t.payload;if(!t.fetched||!e||!e.feedData)return null;e.responseSchema===h.c.CardView&&(e.feedData=(0,k.ni)(e.feedData,e.isTabbedInfopaneResponse));const{nextPageUrl:n,feedItems:r=[]}=e.feedData;let o,a=this.config.initialRequest;if(i&&(a=Object.assign(Object.assign({},a),i)),n&&r.length&&(o=Object.assign(Object.assign({},a),{start:(a.start||0)+a.count,nextPageUrl:n})),a.postRequestGrouping){const{start:t,count:e,type:i}=a.postRequestGrouping,n={type:i,subItems:r.splice(t,e)};r.splice(t,0,n)}const s=e.traceId;this.addOrUpdateIdxId(s);const l=e.debugId;return this.addOrUpdateDebugId(l,!1),{cardMetadata:r,nextPageRequest:o,sessionId:e.sessionId}})):Promise.resolve(null)}clearCache(){this.responseCache=new x}getRequestTimeout(t){const{timeoutMs:e,isSearchRequest:i,query:n,customFeedTimeoutMs:r}=t;return i&&n&&r?r:e}tryAddQueryInterestParams(t){if(!t.useVerticalAsInterest&&!t.useCategoryAsInterest)return!1;const e=(t.useVerticalAsInterest?u.Al.ClientSettings.verticalKey:u.Al.ClientSettings.categoryKey)||"",i=t.verticalCategoryKeyToInterestMapping[e.toLowerCase()],n=i||"news";return this.requestQueryParams.set("query",encodeURIComponent(n)).set("source",t.contentSource),i||t.useCategoryAsInterest&&!e||m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.US9),{message:"Failed to get content",pb:Object.assign(Object.assign({},r.US9.pb),{customMessage:`Failed to get content for VerticalKey:${l.jG.HostPage.verticalKey} | CategoryKey:${l.jG.HostPage.categoryKey}. Loading fallback views river with ${n} content.`})})),!0}trackAppErrorHelper(t,e,i,n,r,o,a,s){let c="";n&&(c+=`Feed id: ${n}. `),r&&(c+=`Feed query: ${r}. `),m.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{message:e,pb:Object.assign(Object.assign({},t.pb),{customMessage:c,fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:i,responseJson:o,statusCode:a,statusText:s}})}))}trackEmptyResponseForQueryFeed(t,e){this.trackAppErrorHelper(r.huq,"OneService returned an empty feed for a query-powered feed. See property bag for the query.",e,null,t)}trackEmptyResponseForXFeed(t,e){this.trackAppErrorHelper(r.MD5,"OneService returned an empty feed for an x-feed page.",e,t,null)}trackEmptyResponseForInterestSearch(t,e,i){t?this.trackAppErrorHelper(r.L90,"OneService returned an empty feed for a user searched xfeed.",i,t,null):this.trackAppErrorHelper(r.V3_,"OneService returned an empty feed for a user query.",i,null,e)}addOrUpdateIdxId(t){t&&m.M0.addOrUpdateIdxId(t,!1)}addOrUpdateDebugId(t,e){if(e)return delete m.M0.getPageMetadata().joinIdProps[v.ug],void m.M0.addOrUpdateJoinIdProperty(v.ug,t);if(!t)return;const i=m.M0.getPageMetadata().getJoinId(v.ug),n=i?`${i},${t}`:t;m.M0.addOrUpdateJoinIdProperty(v.ug,n)}isRequestCacheable(t){return!this.config.cacheDisabledRequestPaths||!this.config.cacheDisabledRequestPaths.includes(t)}}I.providerName="OneService"},62938:function(t,e,i){"use strict";var n,r;i.d(e,{c:function(){return n}}),function(t){t.CardView="cardview",t.FlatView="flatview"}(n||(n={})),function(t){t.t3="T3",t.t6="T6"}(r||(r={}))},16339:function(t,e,i){"use strict";i.d(e,{Iq:function(){return l},MD:function(){return a},gL:function(){return s}});var n=i(59049),r=i(14675);const o=new n.v("WidgetLoadTracker");function a(t){o.has(t)||("hidden"!==document.visibilityState?(0,r.c)((()=>o.set(t,!0))):o.set(t,!0))}const s=new n.v("WidgetAppState");var l;!function(t){t[t.IsDarkMode=1]="IsDarkMode",t[t.IsDashboardVisible=2]="IsDashboardVisible",t[t.ActionMenuStrings=3]="ActionMenuStrings",t[t.IsDynamicFeed=4]="IsDynamicFeed",t[t.SessionId=5]="SessionId",t[t.NonPeregrineWidgetTelemetryObject=6]="NonPeregrineWidgetTelemetryObject",t[t.FeedRegionWidgets=7]="FeedRegionWidgets",t[t.DefaultPreviewType=8]="DefaultPreviewType",t[t.IsReauthRequired=9]="IsReauthRequired"}(l||(l={}))},79070:function(t,e,i){"use strict";i.d(e,{es:function(){return o}});var n=i(53046),r=i(32804);const o=n.i`
    .widget-header-section {
        position: absolute;
        z-index: 1;
        inset-inline-start: 20px;
        top: 10px;
        display: flex;
        align-items: center;
    }

    .widget-title {
        font-size: 14px;
        color: ${r.CHi};
        text-decoration: none;
        margin-inline-start: 12px;    
    }

    .widget-title:hover {
        text-decoration: underline;
    }

    .widget-icon {
        height: 16px;
        width: 16px;    
    }

    .more-options {
        position: absolute;
        top: 5px;
        border-radius: 3px;
        height: 30px;
        width:30px;
        background: transparent;
        z-index: 2;
        inset-inline-end: 13px;
    }

    .more-options:hover {
        border-radius: 3px;
        background: ${r.wFS};
    }

    .pinned-indicator-icon {
        align-items: center;
        fill: ${r.CHi};
        inset-inline-start: 234px;
        position: absolute; 
        top: 10px;
        z-index: 1;
    }
`},68651:function(t,e,i){"use strict";i.d(e,{B$:function(){return f},f3:function(){return y},US:function(){return v},aS:function(){return p},gK:function(){return b}});var n=i(38156),r=i(16339),o='<svg width="4" height="4" viewBox="0 0 4 4"><rect width="4" height="4" rx="2" fill-opacity=".9"/></svg>',a=i(19456),s=i(53813),l=i(94522),c=i(60483),d=i(64434);let u,h,g;function p(t,e,i,c,d,p){const v=[];let y=0,b=!1;if(!t||!t.length)return;const w=r.gL.get(r.Iq.ActionMenuStrings),x=t.includes(f.Unpin);return g=x?"pinned":"feed",u=i||{},h=c,t.forEach((t=>{switch(t){case f.Small:y++,u.height=146,v.push({id:"small",glyph:d===t?o:void 0,title:w.small||"Small",ariaLabel:w.small||"Small",telemetryTag:m(`size_${f.Small}`,w.small,n.wu.Customize)});break;case f.Medium:y++,u.height=304,v.push({id:"medium",glyph:d===t?o:void 0,title:w.medium||"Medium",ariaLabel:w.medium||"Medium",telemetryTag:m(`size_${f.Medium}`,w.medium,n.wu.Customize)});break;case f.Large:y++,u.height=462,v.push({id:"large",glyph:d===t?o:void 0,title:w.large||"Large",ariaLabel:w.large||"Large",telemetryTag:m(`size_${f.Large}`,w.large,n.wu.Customize)});break;case f.Pin:v.push({id:"pinCard",glyph:l.Z,title:w.pinCard||"Pin widget",ariaLabel:w.pinCard||"Pin widget",telemetryTag:m("pinwidget",w.pinCard,n.wu.Pin)});break;case f.Customize:b=!0,y>1&&v.push({isDivider:!0}),v.push({id:"customize",glyph:a.Z,title:w.customize||"Customize widget",ariaLabel:w.customize||"Customize widget",onClick:()=>p("onShowSettingsEnd"),telemetryTag:m("editwidget",w.customize,n.wu.Customize)});break;case f.Unpin:!b&&y>1&&v.push({isDivider:!0}),v.push({id:"unpinCard",glyph:'<svg width="16" height="20" viewBox="0 0 17 16" fill="none"><path d="M16 15.5c0 .14-.04.25-.14.35-.1.1-.22.15-.35.15a.49.49 0 0 1-.36-.15l-5.03-5.02-1.14 3.81a.5.5 0 0 1-.18.26.46.46 0 0 1-.3.1.48.48 0 0 1-.35-.15L5 11.7.7 16H0v-.71L4.3 11 1.15 7.85A.49.49 0 0 1 1 7.5c0-.1.03-.2.09-.27a.55.55 0 0 1 .22-.18L4.9 5.6.15.85A.48.48 0 0 1 0 .5C0 .36.05.24.15.15A.5.5 0 0 1 .5 0c.13 0 .25.05.35.15l15 15c.1.1.15.21.15.35ZM7.24 5.1l-.75-.75 1.47-3.24A1.48 1.48 0 0 1 9.89.34c.18.08.34.18.48.32L15.3 5.6c.14.14.24.3.32.5a1.49 1.49 0 0 1-.8 1.95L11.52 9.4l-.76-.77 3.66-1.53a.5.5 0 0 0 .3-.46.48.48 0 0 0-.14-.35L9.66 1.38a.46.46 0 0 0-.16-.1.45.45 0 0 0-.19-.05c-.1 0-.19.03-.27.08a.5.5 0 0 0-.18.21L7.23 5.1ZM2.39 7.68l5.87 5.87 1.06-3.53-3.66-3.65L2.4 7.68Z"/></svg>',title:w.unpinCard||"Unpin widget",ariaLabel:w.unpinCard||"Unpin widget",telemetryTag:m("unpinwidget",w.unpinCard,n.wu.Unpin)});break;case f.PoweredBy:v.push({isDivider:!0}),v.push({id:"poweredBy",isText:!0,title:e||"Powered by Microsoft",ariaLabel:e||"Powered by Microsoft"});break;case f.RemoveWidget:v.push({id:f.RemoveWidget,glyph:s.Z,title:w.hideWidget,ariaLabel:w.hideWidget,telemetryTag:m("removewidget",w.hideWidget,n.wu.Hide)})}})),v}var f;function m(t,e,i){return new c.D({name:`${h}>customization_${t}`,type:n.c9.ActionButton,action:n.Aw.Click,behavior:i,zone:g,content:{headline:e,type:n.uH.StructuredData,vertical:h,category:h},destinationUrl:location.href,ext:u}).getMetadataTag()}function v(t){switch(t){case"_1x_1y":case"half":return"small";case"_1x_3y":case"tall":return"large";default:return"medium"}}function y(t,e,i){t&&i&&e&&(e(new CustomEvent("CardResized",{detail:{cardType:i,size:"medium"}})),t.style.zIndex=d.K.Above.toString(),t.style.height="304px")}function b(t,e,i,n){t&&i&&e&&(e(new CustomEvent("CardResized",{detail:{cardType:i,size:"small"}})),!1,t.style.zIndex="",t.style.height="")}!function(t){t.Small="small",t.Medium="medium",t.Large="large",t.Customize="customize",t.Pin="pin",t.Unpin="unpin",t.PoweredBy="poweredBy",t.RemoveWidget="removeWidget"}(f||(f={}))},63051:function(t,e,i){"use strict";i.d(e,{Yn:function(){return s},h1:function(){return l}});var n=i(26415),r=i(59049),o=i(30113),a=i(44772);const s=new r.v("PinnedWidgetSettings"),l={[a.PL.MoneyInfo]:{widgetId:"com.msn.money",isWebXT:!0,isPeregrine:!0,experienceName:"MoneyInfoCardWC",vertical:"finance"},[a.PL.SportsMatch]:{widgetId:"com.msn.sports",isWebXT:!0,isPeregrine:!0,experienceName:"SportsCardWC",vertical:"sports"},[a.PL.TrafficDelays]:{widgetId:"com.msn.traffic",isWebXT:!0,isPeregrine:!0,experienceName:"TrafficCardWC",vertical:"traffic"},[a.PL.WeatherSummary]:{widgetId:"com.msn.weather",isWebXT:!0,isPeregrine:!0,experienceName:"WeatherCardWC",vertical:"weather"},[a.PL.EsportsMatch]:{widgetId:"com.msn.esports",isWebXT:!0,isPeregrine:!0,experienceName:"EsportsCard",vertical:"esports"},[a.PL.EsportsCasualGames]:{widgetId:"com.msn.casualgames",isWebXT:!0,isPeregrine:!0,experienceName:"CasualGamesCard",vertical:"casualgames"},[a.PL.Entertainment]:{widgetId:"com.microsoft.entertainment",isWebXT:!1,isPeregrine:!0,experienceName:"EntertainmentCard",vertical:"entertainmentwidget"},[a.PL.Photos]:{widgetId:"com.msn.photos",isWebXT:!1,isPeregrine:!0,experienceName:"PhotoCard",vertical:"photos"},[a.PL.Family]:{widgetId:"com.microsoft.family",isWebXT:!1,isPeregrine:!0,experienceName:"FamilyCard",vertical:"family"},[a.PL.Calendar]:{widgetId:"com.microsoft.calendar",isWebXT:!1,isPeregrine:!1,experienceName:"Calendar"},[a.PL.ToDo]:{widgetId:"com.microsoft.todo",isWebXT:!1,isPeregrine:!1,experienceName:"ToDo"},[a.PL.Tips]:{widgetId:"com.microsoft.tips",isWebXT:!1,isPeregrine:!0,experienceName:"TipsCard",vertical:"tips"},[a.PL.M365]:{widgetId:"com.microsoft.microsoft365",isWebXT:!1,isPeregrine:!0,experienceName:"WindowsOfficeFeed",vertical:"office"},[a.PL.XboxGamePass]:{widgetId:"com.microsoft.gamepass",isWebXT:!1,isPeregrine:!1,experienceName:"XboxGamePass"}};Object.keys(l),a.PL.WeatherSummary,a.PL.MoneyInfo,a.PL.SportsMatch,a.PL.Photos,a.PL.WeatherSummary,a.PL.MoneyInfo,a.PL.SportsMatch,a.PL.Calendar,o.m.small,o.m.medium,o.m.large,l[a.PL.WeatherSummary].widgetId,n.e8l,l[a.PL.SportsMatch].widgetId,n.nDr,l[a.PL.MoneyInfo].widgetId,n.sg4,l[a.PL.TrafficDelays].widgetId,n.Vl,l[a.PL.EsportsMatch].widgetId,n.OrY,l[a.PL.Calendar].widgetId,n.j0J,l[a.PL.ToDo].widgetId,n.Ijl,l[a.PL.Tips].widgetId,n.Uqx,l[a.PL.Family].widgetId,n.m3w,l[a.PL.Photos].widgetId,n.B0A,l[a.PL.Entertainment].widgetId,n.uBh,l[a.PL.M365].widgetId,n.Q3R,l[a.PL.XboxGamePass].widgetId,n.nFE,l[a.PL.EsportsCasualGames].widgetId,n.Rdf,n.ILq,n.Kdk},75361:function(t,e,i){"use strict";i.d(e,{ss:function(){return L},FK:function(){return k},ZC:function(){return S},l1:function(){return T}});var n=i(26415),r=i(89696),o=i(51223),a=i(65135),s=i(9344),l=i(2040),c=i(16339),d=i(42821),u=i(33954);const h=window.__com_microsoft_dsh_widgetModelApiFactory,g=h&&h.tryGetApi("velocity",1,1);function p(){if(m("Feature_MultiAccount"))return h.tryGetApi("authenticator",1,1)}function f(t,e){e?a.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{pb:Object.assign(Object.assign({},e.pb),{error:t.message,isAuthV2:!0})})):u.k.logError(t.message)}function m(t){return!(!g||!g.isFeatureEnabled(t))}const v="00000000400F9D16",y="service::www.msn.com::MBI_SSL",b="https://www.api.msn.com/",w="3a4d129e-7f50-4e0d-a7fd-033add0a29f4",x="User.Read Userinfo.ReadWrite",C="https://enterprisenews.microsoft.com/",T=1;let $;async function k(t){const e=Object.assign(Object.assign({},n.Rln),{message:"Exception fetching ProviderAuthority",pb:Object.assign(Object.assign({},n.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState})});try{const i=p();if(i)return await async function(t,e){try{if(!t)throw Error("IAuthenticator is null");const e=(0,d.Yb)("GetAccountType_V2"),i=await t.getDefaultAccountIdAsync();return await t.isMSAAccountAsync(i)?(e(),"consumers"):await t.isAADAccountAsync(i)?(e(),"organizations"):(e(),null)}catch(t){return f(t,e),null}}(i,e);if(!t)throw Error("Widget instance is null");const n=M("GetAccountType"),r=t.tryGetApi("authenticator",T,T),o=await r.getProperty("ProviderAuthority");return n(),o}catch(t){return(0,o.Z0)()||a.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{pb:Object.assign(Object.assign({},e.pb),{error:t})})),null}}async function I(t,e,i,r,s=""){const l=Object.assign(Object.assign({},n.Rln),{message:"Exception calling GetToken",pb:Object.assign(Object.assign({},n.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState})});try{const n=p();if(n)return await async function(t,e,i,n,r="",o,a){try{if(!t)throw Error("IAuthenticator is null");const a=(0,d.Yb)("GetToken_V2"),s=await t.getDefaultAccountIdAsync(),l=await t.getAccountTokenAsync(s,e,i,n,r,o||"com.msn.desktopfeed");return a(),l}catch(t){return f(t,a),null}}(n,e,i,r,s,t&&t.widgetId,l);if(!t)throw Error("Widget instance is null");const o=M("GetToken"),a=t.tryGetApi("authenticator",T,T),c=await a.getToken(e,i,r,s);return o(),{token:c,errorResult:0,interactionRequired:!1}}catch(t){return(0,o.Z0)()||a.M0.sendAppErrorEvent(Object.assign(Object.assign({},l),{pb:Object.assign(Object.assign({},l.pb),{error:t})})),null}}async function S(t){const e=M("GetMuid"),i=await async function(t,e){const i=Object.assign(Object.assign({},n.Rln),{message:`Exception calling getProperty api for property: ${e}`,pb:Object.assign(Object.assign({},n.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState,property:`property: ${e}`})});try{const n=p();if(n)return await async function(t,e,i){try{if(!e)throw Error("Property is null");if(!t)throw Error("IAuthenticator is null");const i=(0,d.Yb)("GetProperty_V2"),n=await t.getDefaultAccountIdAsync(),r=await t.getAccountPropertyAsync(n,e);return i(),r}catch(t){return f(t,i),null}}(n,e,i);if(!t)throw Error("Widget instance is null");if(!e)throw Error("Property is null");const r=t.tryGetApi("authenticator",T,T);return await r.getProperty(e)}catch(t){return(0,o.Z0)()||a.M0.sendAppErrorEvent(Object.assign(Object.assign({},i),{pb:Object.assign(Object.assign({},i.pb),{error:t})})),null}}(t,"MUID");return e(),i}async function L(t,e=!1,i){const r={};if(!t)return(0,o.Z0)()||a.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.Zj1),{message:"Failed to retrieve user auth token and MUID from WDX client due to undefined widget instance",pb:Object.assign(Object.assign({},n.Zj1.pb),{windowsSessionId:c.gL.get(c.Iq.SessionId)})})),r;const d=await k(t),u="organizations"===d,h="consumers"===d,g=u&&(e||c.gL.get(c.Iq.IsDynamicFeed));if(h||g){const e=await I(t,u?w:v,u?x:y,u?C:b),o=e&&e.token;if(o)g?r[l.Yu.entAuthorization]=o:h&&(r[l.Yu.rpsToken]=o);else{const e=await async function(){if(!m("Feature_ReauthRequiredUser"))return!1;try{const t=p();return!!t&&await t.getReauthRequiredStatusAsync()}catch(t){return a.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.u4l),{message:"Exception fetching getReauthRequiredStatusAsync",pb:Object.assign(Object.assign({},n.u4l.pb),{error:t})})),!1}}();e&&i&&i("reauthrequiredstatuschanged"),!e&&c.gL.get(c.Iq.IsDashboardVisible)&&h&&a.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.ZSB),{message:"WDX Client failed to return user auth token",pb:Object.assign(Object.assign({},n.ZSB.pb),{widgetId:t.widgetId,widgetInstanceId:t.instanceId,windowsSessionId:c.gL.get(c.Iq.SessionId),widgetState:t.widgetState,isMsaUser:h,isBackgroundRefresh:!c.gL.get(c.Iq.IsDashboardVisible)})}))}}$||($=await S(t));const f=(0,s.jG)();return $?(r[l.Yu.muid]=$,$!==f&&(0,o.nc)($)):f&&(r[l.Yu.muid]=f),r}const M=t=>(0,r.F)(`WidgetApi.${t}`,{logDuration:!0,firstTimeOnly:!0})},20490:function(t,e,i){"use strict";i.d(e,{j:function(){return s}});var n=i(63051);let r,o,a=!1;function s(t){if(!t||!a)return;const{name:e,oneServiceCardType:i,clickType:r,trigger:c}=t;if("WidgetLayoutUpdateCompleted"===e&&"InitialLayout"===c)return void function(t){const{trigger:e,succeeded:i,name:r,ttvrReportedMarkers:a}=t||{};if("InitialLayout"!==e)return;const c=o&&o.filter((t=>t.isInitiallyRendered))||[],d=[];c.forEach((t=>{const i=n.Yn.has(t.oneServiceMetadataType),r=n.h1[t.oneServiceMetadataType]&&n.h1[t.oneServiceMetadataType].isPeregrine,o=a.includes(t.oneServiceMetadataType);o||s({name:"WidgetStateUpdated",oneServiceCardType:t.oneServiceMetadataType,succeeded:!1,state:"Error"}),d.push({widgetId:t.widgetId,widgetInstanceId:t.instanceId&&t.instanceId.toString(),isPinned:i,isPeregrine:r,widgetState:o?"Normal":"Error",widgetStateReason:e})})),l(r,{trigger:e,widgetList:d,layoutUpdateSucceeded:i})}(t);const d=o.findIndex((t=>t.oneServiceMetadataType===i));if(-1===d)return;const u=void 0!==t.isPinned?t.isPinned:n.Yn.has(i),h=n.h1[i]&&n.h1[i].isPeregrine||!1,{widgetId:g,instanceId:p,isInitiallyRendered:f}=o[d],m=p&&p.toString();switch(e){case"OnWidgetClick":l(e,{widgetItem:{widgetId:g,widgetInstanceId:m},clickAction:{clickType:r}});break;case"OnSettingsInteracted":!function(t,e,i,n,r){const{trigger:o,state:a,name:s}=t||{};l(s,{widgetItem:{isPeregrine:n,isPinned:r,widgetId:e,widgetInstanceId:i,widgetState:a,widgetStateReason:o},clickAction:2,settingsAction:Object.assign({},t.settingsAction)})}(t,g,m,h,u);break;case"WidgetStateUpdated":f&&function(t,e,i,n,r){const{trigger:o,state:a,name:s}=t||{};l(s,{widgetId:e,widgetInstanceId:i,isPeregrine:n,isPinned:r,widgetState:a,widgetStateReason:o})}(t,g,m,h,u);break;case"WidgetLayoutUpdateCompleted":!function(t,e,i,n,r){const{trigger:o,succeeded:a,state:s,name:c}=t||{};if("InitialLayout"===o)return;l(c,{trigger:o,widgetList:{widgetItems:[{widgetId:e,widgetInstanceId:i,isPeregrine:n,isPinned:r,widgetState:s,widgetStateReason:o}]},layoutUpdateSucceeded:a})}(t,g,m,h,u)}}function l(t,e){e&&r.sendSignal({name:t,signalType:"WebXT",payload:JSON.stringify(e)})}},27019:function(t,e,i){"use strict";i.d(e,{$x:function(){return u},D7:function(){return d},TU:function(){return l},eH:function(){return c},gd:function(){return s},vh:function(){return a}});var n=i(38156),r=i(75559),o=i(60483);function a(t,e){const i=new o.D({name:`${t}_customization`,type:n.c9.ActionButton,content:{headline:`${t}_customization`,type:n.uH.StructuredData,vertical:e||t}}),a=document.createElement("button");return a.setAttribute(r.qP,i.getMetadataTag()),a}function s(t,e,i,a){const s=new o.D({name:`${t}_header`,type:n.c9.ActionButton,content:{headline:i,type:n.uH.StructuredData,vertical:a||t}}),l=document.createElement("a");return l.href=e,l.setAttribute(r.qP,s.getMetadataTag()),l}function l(t,e){const i=new o.D({name:`${t}_customization_size${e}`,type:n.c9.ActionButton,content:{headline:`${e}`,type:n.uH.StructuredData,vertical:t}}),r=document.createElement("button");return r.setAttribute("data-t",i.getMetadataTag()),r}function c(t){const e=new o.D({name:`${t}_setting}`,type:n.c9.ActionButton,content:{headline:"setting",type:n.uH.StructuredData,vertical:t}}),i=document.createElement("button");return i.setAttribute("data-t",e.getMetadataTag()),i}function d(t){const e=new o.D({name:`${t}_removeWidget`,type:n.c9.ActionButton,content:{headline:"removeWidget",type:n.uH.StructuredData,vertical:t}}),i=document.createElement("button");return i.setAttribute("data-t",e.getMetadataTag()),i}function u(t,e,i){return{width:300,height:h(t),row:e,col:g(i)}}function h(t){return"large"===t?412:"medium"===t?304:"small"===t?146:void 0}function g(t){return"primary"===t?1:"secondary"===t?2:void 0}},51223:function(t,e,i){"use strict";i.d(e,{Z0:function(){return p},nc:function(){return g}});var n,r,o,a,s=i(21712),l=i(76668),c=i(16517),d=i(54804),u=i(76323),h=i(9344);function g(t){var e;const i=c.jG.IsChinaCompliance||"zh-cn"===(null===(e=null===d.Al||void 0===d.Al?void 0:d.Al.Locale)||void 0===e?void 0:e.toLowerCase());t&&(0,h.sq)(s.pA,t,365,i?".msn.cn":".msn.com","/",!0,l.f.None)}!function(t){t[t.none=0]="none",t[t.bgTask=1]="bgTask",t[t.badge=2]="badge",t[t.rotationalPreview=4]="rotationalPreview",t[t.expandedView=8]="expandedView",t[t.fullWv=16]="fullWv",t[t.reauthRequiredUser=32]="reauthRequiredUser"}(n||(n={})),function(t){t[t.header=0]="header",t[t.content=1]="content",t[t.moreOptions=2]="moreOptions"}(r||(r={})),function(t){t[t.resize=0]="resize",t[t.customize=1]="customize",t[t.unpin=2]="unpin",t[t.hide=3]="hide",t[t.pin=4]="pin",t[t.other=5]="other"}(o||(o={})),function(t){t[t.ProfileClicked=0]="ProfileClicked",t[t.AddButtonClicked=1]="AddButtonClicked"}(a||(a={}));const p=(0,u.p)((()=>document.getElementById("widgetGroup-testpage")&&("winWidgets"===c.jG.AppType||"windowsNewsPlus"===c.jG.AppType)));var f;!function(t){t[t.Alert=0]="Alert",t[t.NoAlert=1]="NoAlert",t[t.HighImpact=2]="HighImpact",t[t.Critical=3]="Critical"}(f||(f={}))},94731:function(t,e,i){"use strict";function n(t,e,i){return i<t?e:i>e?t:i}i.d(e,{w:function(){return n}})},30196:function(t,e){var i;t.exports=(i=i||function(t,e){var i=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),n={},r=n.lib={},o=r.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(t,i){t=this.words=t||[],this.sigBytes=i!=e?i:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,r=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<r;o++){var a=i[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o<r;o+=4)e[n+o>>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,n=[],r=function(e){e=e;var i=987654321,n=4294967295;return function(){var r=((i=36969*(65535&i)+(i>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}},o=0;o<e;o+=4){var s=r(4294967296*(i||t.random()));i=987654071*s(),n.push(4294967296*s()|0)}return new a.init(n,e)}}),s=n.enc={},l=s.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var o=e[r>>>2]>>>24-r%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n+=2)i[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new a.init(i,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var o=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n++)i[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new a.init(i,e)}},d=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},u=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,n=i.words,r=i.sigBytes,o=this.blockSize,s=r/(4*o),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,c=t.min(4*l,r);if(l){for(var d=0;d<l;d+=o)this._doProcessBlock(n,d);var u=n.splice(0,l);i.sigBytes-=c}return new a.init(u,c)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),h=(r.Hasher=u.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new h.HMAC.init(t,i).finalize(e)}}}),n.algo={});return n}(Math),i)},50791:function(t,e,i){var n;t.exports=(n=i(30196),function(){var t=n,e=t.lib.WordArray;function i(t,i,n){for(var r=[],o=0,a=0;a<i;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2;r[o>>>2]|=(s|l)<<24-o%4*8,o++}return e.create(r,o)}t.enc.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,n=this._map;t.clamp();for(var r=[],o=0;o<i;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<i;s++)r.push(n.charAt(a>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(t){var e=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return i(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)},59538:function(t,e,i){"use strict";i.d(e,{mL:function(){return d}});var n=i(49944),r=i(77623),o=i(53046),a=i(67020),s=i(40082),l=i(16252);class c extends r.m{}const d=c.compose({baseName:"carousel-card-panel",template:n.o,styles:(t,e)=>o.i`
        ${(0,l.l)(t,e)}

        ${(0,a.j)("flex")} ::slotted(*) {
            width: 100%;
        }
    `.withBehaviors((0,s.vF)(o.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))})},77758:function(t,e,i){"use strict";i.d(e,{gn:function(){return c}});var n=i(13626),r=i(61291),o=i(53046),a=i(67020),s=i(22658);class l extends r.x{}const c=l.compose({baseName:"carousel-card-sequence-indicator",template:n.O,styles:(t,e)=>o.i`
    ${(0,s.o)(t,e)}
    ${(0,a.j)("inline-flex")} :host {
        min-height: 4px;
        height: 4px;
        width: 4px;
        min-width: 4px;
        margin: 0;
        transition: transform 0.2s ease-in-out;
    }

    :host([aria-selected="true"]) {
        z-index: 2;
        opacity: 1;
        min-height: 6px;
        min-width: 6px;
        height: 6px;
        width: 6px;
    }
`})},70590:function(t,e,i){"use strict";i.d(e,{ok:function(){return w}});var n=i(33940),r=i(65620),o=i(4069),a=i(49176),s=i(51208),l=i(39181),c=i(90960),d=i(13988),u=i(58952),h=i(26007);const g=()=>t=>t.orientation!==a.G.vertical?l.d`
            <svg
                slot="previous"
                width="7"
                height="9"
                viewBox="0 0 7 9"
                xmlns="http://www.w3.org/2000/svg"
            >
                <path
                    d="M0.5 4.5C0.5 4.25781 0.557292 4.02865 0.671875 3.8125C0.786458 3.59635 0.94401 3.41927 1.14453 3.28125L4.92969 0.679687C5.09896 0.559896 5.28906 0.5 5.5 0.5C5.66406 0.5 5.82031 0.539062 5.96875 0.617187C6.13281 0.703125 6.26172 0.824219 6.35547 0.980469C6.45182 1.13672 6.5 1.30729 6.5 1.49219L6.5 7.51172C6.5 7.69401 6.45182 7.86328 6.35547 8.01953C6.26172 8.17578 6.13281 8.29818 5.96875 8.38672C5.81771 8.46224 5.66276 8.5 5.50391 8.5C5.29036 8.5 5.09896 8.4401 4.92969 8.32031L1.14453 5.71875C0.94401 5.58073 0.786458 5.40365 0.671875 5.1875C0.557291 4.97135 0.5 4.74219 0.5 4.5Z"
                />
            </svg>
            <svg
                slot="next"
                width="7"
                height="9"
                viewBox="0 0 7 9"
                xmlns="http://www.w3.org/2000/svg"
            >
                <path
                    d="M0.5 1.49219C0.5 1.30729 0.546875 1.13672 0.640625 0.980468C0.736979 0.824218 0.86849 0.703125 1.03516 0.617187C1.18099 0.539062 1.33594 0.5 1.5 0.5C1.71094 0.5 1.90104 0.559896 2.07031 0.679687L5.85547 3.28125C6.05078 3.41667 6.20052 3.59245 6.30469 3.80859C6.40885 4.02474 6.46094 4.25521 6.46094 4.5C6.46094 4.74219 6.40885 4.97135 6.30469 5.1875C6.20052 5.40625 6.05078 5.58333 5.85547 5.71875L2.07031 8.32031C1.90104 8.4401 1.71094 8.5 1.5 8.5C1.34115 8.5 1.1862 8.46224 1.03516 8.38672C0.868489 8.29818 0.736979 8.17578 0.640625 8.01953C0.546875 7.86328 0.5 7.69401 0.5 7.51172L0.5 1.49219Z"
                />
            </svg>
        `:l.d`
            <svg
                slot="previous"
                width="9"
                height="7"
                viewBox="0 0 9 7"
                xmlns="http://www.w3.org/2000/svg"
            >
                <path
                    d="M1.00192 6.60547C0.194077 6.60547 -0.28047 5.6973 0.180865 5.0341L2.81398 1.24898C3.41087 0.390957 4.68026 0.390967 5.27715 1.24899L7.91028 5.0341C8.37156 5.6973 7.89707 6.60547 7.08922 6.60547H1.00192Z"
                />
            </svg>
            <svg
                slot="next"
                width="9"
                height="7"
                viewBox="0 0 9 7"
                xmlns="http://www.w3.org/2000/svg"
            >
                <path
                    d="M1.00192 0.605469C0.194077 0.605469 -0.280471 1.51367 0.180865 2.17683L2.81398 5.96196C3.41087 6.82002 4.68027 6.81992 5.27716 5.96196L7.91029 2.17682C8.37157 1.51367 7.89709 0.605469 7.08924 0.605469H1.00192Z"
                />
            </svg>
        `;var p=i(32804),f=i(53046),m=i(67020),v=i(40082),y=i(28726);class b extends o.EI{}(0,n.gn)([(0,r.Lj)({attribute:"previous-flipper-title"})],b.prototype,"previousFlipperTitle",void 0),(0,n.gn)([(0,r.Lj)({attribute:"next-flipper-title"})],b.prototype,"nextFlipperTitle",void 0);const w=b.compose({baseName:"carousel-card-wrapper",template:(t,e)=>l.d`
    <template
        @mouseover="${(t,e)=>t.handleMouseOver(e.event)}"
        @mouseout="${(t,e)=>t.handleMouseOut(e.event)}"
        @focusin="${(t,e)=>t.handleFocusIn(e.event)}"
        @focusout="${(t,e)=>t.handleFocusOut(e.event)}"
    >
        <slot name="previous-flipper">
            <fluent-flipper
                part="previous-flipper"
                class="previous-flipper"
                title="${t=>t.previousFlipperTitle}"
                direction="${t=>t.direction===h.N.rtl?"next":"previous"}"
                @keypress="${(t,e)=>t.slideKeyPressHandler(e.event,-1)}"
                @click="${(t,e)=>t.slideKeyPressHandler(e.event,-1)}"
                data-t="${t=>t.previousFlipperTelemetryTag}"
            >
                ${g()}
            </fluent-flipper>
        </slot>
        ${s.hX}
        <div class="tablist" part="tablist" role="tablist">
            <slot class="tab" name="tab" part="tab" ${(0,c.Q)("tabs")}></slot>

            ${(0,d.g)((t=>t.activeindicator),l.d`
                    <div
                        ${(0,u.i)("activeIndicatorRef")}
                        class="activeIndicator"
                        part="activeIndicator"
                    ></div>
                `)}
        </div>
        <slot name="next-flipper">
            <fluent-flipper
                part="next-flipper"
                class="next-flipper"
                title="${t=>t.nextFlipperTitle}"
                direction="${t=>t.direction===h.N.rtl?"previous":"next"}"
                @keypress="${(t,e)=>t.slideKeyPressHandler(e.event,1)}"
                @click="${(t,e)=>t.slideKeyPressHandler(e.event,1)}"
                data-t="${t=>t.nextFlipperTelemetryTag}"
            >
                ${g()}
            </fluent-flipper>
        </slot>

        ${s.zq}
        <div class="tabpanel">
            <slot name="tabpanel" part="tabpanel" ${(0,c.Q)("tabpanels")}></slot>
        </div>
    </template>
`,styles:(t,e)=>f.i`
        ${(0,y.o)(t,e)}

        ${(0,m.j)("grid")} :host {
            background: none;
            border-radius: 0;
            box-shadow: none;
            grid-template-rows: 1fr auto;
        }

        ::slotted([slot="previous-flipper"]),
        .previous-flipper {
            margin: 0;
            height: 38px;
            width: 16px;
        }

        ::slotted([slot="next-flipper"]),
        .next-flipper {
            margin: 0;
            height: 38px;
            width: 16px;
        }

        .next-flipper::before,
        .previous-flipper::before {
            border-radius: 3px;
            border: calc(${p.Han} * 1px) solid transparent;
            background: ${p.jql};
        }

        .next-flipper:hover::before,
        .previous-flipper:hover::before {
            background: ${p.QpD};
        }

        .next-flipper:active::before,
        .previous-flipper:active::before {
            background: ${p.sG3};
        }

        .next-flipper::part(previous),
        .next-flipper::part(next),
        .previous-flipper::part(previous),
        .previous-flipper::part(next) {
            width: auto;
            height: auto;
            display: flex;
            align-items: center;
        }

        .tablist {
            grid-row: 2;
            grid-gap: 6px;
            padding: var(--sequence-indicator-padding, 10px);
            align-items: center;
            justify-items: center;
            grid-template-rows: auto;
        }

        .tabpanel {
            grid-row: 1 / span 3;
            grid-column: 1 / span 3;
            position: relative;
        }

        :host([orientation="vertical"]) {
            grid-template-rows: 1fr auto 1fr;
            grid-template-columns: 1fr auto;
        }

        :host([orientation="vertical"]) .tabpanel {
            grid-row: 1/3;
            grid-column-start: 1;
            grid-column-end: 4;
        }

        :host([orientation="vertical"]) .tablist {
            grid-row-start: 2;
            grid-row-end: 2;
            grid-column: 2;
            grid-template-rows: auto;
            padding: 20px 0;
            justify-self: center;
        }

        :host([orientation="vertical"]) .tabpanel {
            grid-column: 1 / span 2;
            grid-row-start: 1;
            grid-row-end: 4;
        }

        :host([orientation="vertical"]) .previous-flipper {
            grid-column: 2;
            grid-row: 1;
            align-self: flex-end;
            height: 16px;
            width: 20px;
            margin: 0 2px;
        }

        :host([orientation="vertical"]) .next-flipper {
            grid-column: 2;
            grid-row: 3;
            align-self: flex-start;
            height: 16px;
            width: 20px;
            margin: 0 2px;
        }
    `.withBehaviors((0,v.vF)(f.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))})},78434:function(t,e,i){"use strict";i.d(e,{V:function(){return a}});var n=i(33940),r=i(87697),o=i(4069);(0,n.gn)([r.LO],class{}.prototype,"tabContent",void 0);class a extends o.EI{contentDataChanged(){this.setTitles(this.activeTabIndex)}changeHandler(t){if(t.defaultPrevented)return!1;if(t.target instanceof o.EI){const e=t.target;return this.setTitles(e.activeTabIndex),!1}return!0}setTitles(t){const e=this.contentData.length,i=0===t?e-1:t-1,n=e-1===t?0:t+1;this.nextFlipperTitle=this.contentData[n].ariaLabel,this.previousFlipperTitle=this.contentData[i].ariaLabel}}(0,n.gn)([r.LO],a.prototype,"contentData",void 0),(0,n.gn)([r.LO],a.prototype,"nextFlipperTitle",void 0),(0,n.gn)([r.LO],a.prototype,"previousFlipperTitle",void 0)},10141:function(t,e,i){"use strict";i.d(e,{M9:function(){return s}});var n=i(78434),r=i(39181),o=i(18864);var a=i(53046);const s=n.V.compose({baseName:"carousel-card",template:(t,e)=>r.d`
    <msft-carousel-card-wrapper
        exportparts="previous-flipper, tablist, next-flipper"
        class="carousel-card-wrapper"
        part="carousel-card-wrapper"
        layout="${t=>t.layout}"
        ?auto-scroll=${t=>t.autoScroll}
        ?activeindicator=${t=>t.activeindicator}
        auto-scroll-interval-ms=${t=>t.autoScrollIntervalMs}
        auto-scroll-delay-ms=${t=>t.autoScrollDelayMs}
        :nextFlipperTelemetryTag=${t=>t.nextFlipperTelemetryTag}
        :previousFlipperTelemetryTag=${t=>t.previousFlipperTelemetryTag}
        previous-flipper-title=${t=>t.previousFlipperTitle}
        next-flipper-title=${t=>t.nextFlipperTitle}
        :direction=${t=>t.direction}
        orientation=${t=>t.orientation}
        activeid=${t=>t.activeid}
        @change=${(t,e)=>t.changeHandler(e.event)}
    >
        ${(0,o.rx)((t=>t.contentData),r.d`<msft-carousel-card-panel
    class="carousel-card-panel"
    part="carousel-card-panel"
    id=${(t,e)=>t.tabPanelId}
    slot="tabpanel"
    >${(t,e)=>t.tabContent}</msft-carousel-card-panel>`)}
        ${(0,o.rx)((t=>t.contentData),r.d`<msft-carousel-card-sequence-indicator
    class="sequence-indicator"
    part="sequence-indicator"
    aria-label=${(t,e)=>t.ariaLabel}
    slot="tab"
    id=${(t,e)=>t.tabId}
></msft-carousel-card-sequence-indicator>`)}
    </msft-carousel-card-wrapper>
`,styles:(t,e)=>a.i``})},77623:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var n=i(43504);class r extends n.x{}},16252:function(t,e,i){"use strict";i.d(e,{l:function(){return a}});var n=i(32804),r=i(53046),o=i(67020);const a=(t,e)=>r.i`
    ${(0,o.j)("flex")} :host {
        box-sizing: border-box;
        font-family: ${n.SVJ};
        font-size: ${n.sNp};
        line-height: ${n.vgC};
        height: 100%;
    }
`},61291:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(26899);class r extends n.O{}},22658:function(t,e,i){"use strict";i.d(e,{o:function(){return c}});var n=i(53046),r=i(15933),o=i(67020),a=i(56201),s=i(40082),l=i(32804);const c=(t,e)=>n.i`
    ${(0,o.j)("inline-flex")} :host {
        box-sizing: border-box;
        font-family: ${l.SVJ};
        min-height: 6px;
        min-width: 6px;
        background-color: ${l.CHi};
        border-radius: 20px;
        opacity: 0.4;
        grid-row: 1;
        z-index: 1;
        margin: 10px 2px;
        border: calc(${l.Han} * 1px) solid transparent;
    }

    :host([aria-selected="true"]) {
        z-index: 2;
        opacity: 1;
        min-width: 30px;
    }

    :host(:hover),
    :host(:active) {
        background: ${l.CHi};
        opacity: 1;
    }

    :host(:${a.b}) {
        outline: none;
        box-shadow: 0 0 0 calc((${l.vxp} - ${l.Han}) * 1px) ${l.IfY}, 0 0 0 calc((${l.vxp} + ${l.Han}) * 1px)
            ${l.yGg};
    }

    :host(:focus) {
        outline: none;
    }
`.withBehaviors((0,s.vF)(n.i`
            :host {
                forced-color-adjust: none;
                background: ${r.H.ButtonText};
                opacity: 1;
            }
            :host(:hover),
            :host([aria-selected="true"]:hover),
            :host([aria-selected="true"]) {
                background: ${r.H.Highlight};
            }
            :host(:${a.b}) {
                border-color: ${r.H.ButtonFace};
                box-shadow: 0 0 0 calc((${l.vxp} - ${l.Han}) * 1px)
                rgba(0,0,0,1), 0 0 0 calc((${l.vxp} + ${l.Han}) * 1px)
                ${r.H.ButtonText};
            }
        `))},4069:function(t,e,i){"use strict";i.d(e,{EI:function(){return h}});var n,r,o=i(33940),a=i(65620),s=i(87697),l=i(33832),c=i(94731),d=i(32804),u=i(48839);!function(t){t._1_column="1_column",t._2_column="2_column"}(n||(n={})),function(t){t.vertical="vertical",t.horizontal="horizontal"}(r||(r={}));class h extends u.I{constructor(){super(...arguments),this.slideKeyPressHandler=(t,e)=>{this.adjust(e)},this.layout=n._2_column,this.orientation=r.horizontal,this.activeindicator=!1,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.isHovered=!1,this.isFocused=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,i)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[i],n=this.tabpanelIds[i];e.setAttribute("id","string"!=typeof t?`tab-${i+1}`:t),e.setAttribute("aria-selected",this.activeTabIndex===i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof n?`panel-${i+1}`:n),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===i?"0":"-1"),this.activeTabIndex===i&&(this.activetab=e)}else this.showActiveIndicator=!1;e.style[t]=`${i+1}`,this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach(((t,e)=>{const i=this.tabIds[e],n=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof n?`panel-${e+1}`:n),t.setAttribute("aria-labelledby","string"!=typeof i?`tab-${e+1}`:i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent()),t.preventDefault()},this.handleTabKeyDown=t=>{const e=t.keyCode;if(this.isHorizontal())switch(e){case l.BJ:t.preventDefault(),this.adjustBackward(t);break;case l.ho:t.preventDefault(),this.adjustForward(t)}else switch(e){case l.$Y:t.preventDefault(),this.adjustBackward(t);break;case l.Q6:t.preventDefault(),this.adjustForward(t)}switch(e){case l.wn:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case l.$B:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}autoScrollChanged(){this.$fastController.isConnected&&this.updateAutoScroll()}autoScrollIntervalMsChanged(){this.$fastController.isConnected&&this.updateAutoScroll()}handleChange(){this.direction=d.o7V.getValueFor(this)}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.direction=d.o7V.getValueFor(this),d.o7V.subscribe(this),this.activeindicator||(this.activeindicator=!1),this.updateAutoScroll()}disconnectedCallback(){d.o7V.unsubscribe(this),window.clearTimeout(this.autoScrollTimer)}activeidChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition(),this.$emit("tabpanels-changed",this.tabpanels))}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return void 0===this.tabs?[null]:this.tabs.map((t=>t.getAttribute("id")))}getTabPanelIds(){return void 0===this.tabpanels?[null]:this.tabpanels.map((t=>t.getAttribute("id")))}setComponent(t){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.change(),this.setTabs(),this.handleActiveIndicatorPosition(),this.setTabPanels(),t||this.focusTab(),this.change())}isHorizontal(){return this.orientation===r.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",n=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const r=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const o=r-n;this.activeIndicatorRef.style.transform=`${e}(${o}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${e}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(t,e){void 0!==this.tabs&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(0,c.w)(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent(e))}focusTab(){this.tabs[this.activeTabIndex].focus()}handleFocusIn(t){this.isFocused=!0,this.updateAutoScroll()}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||(this.isFocused=!1,this.updateAutoScroll())}handleMouseOver(t){this.isHovered=!0,this.updateAutoScroll()}handleMouseOut(t){this.isHovered=!1,this.updateAutoScroll()}updateAutoScroll(){let t=!1;this.isHovered||this.isFocused||!this.autoScroll||(t=!0),t&&void 0===this.autoScrollTimer&&(this.autoScrollTimer=window.setTimeout((()=>{this.autoScrollDelayMs&&(this.autoScrollDelayMs=0),this.adjust(1,!0),this.autoScrollTimer=void 0,this.updateAutoScroll()}),(this.autoScrollDelayMs||0)+(this.autoScrollIntervalMs||6e3))),t||void 0===this.autoScrollTimer||(window.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=void 0)}}(0,o.gn)([a.Lj],h.prototype,"layout",void 0),(0,o.gn)([(0,a.Lj)({attribute:"auto-scroll",mode:"boolean"})],h.prototype,"autoScroll",void 0),(0,o.gn)([(0,a.Lj)({attribute:"auto-scroll-interval-ms",converter:a.Id})],h.prototype,"autoScrollIntervalMs",void 0),(0,o.gn)([(0,a.Lj)({attribute:"auto-scroll-delay-ms",converter:a.Id})],h.prototype,"autoScrollDelayMs",void 0),(0,o.gn)([s.LO],h.prototype,"nextFlipperTelemetryTag",void 0),(0,o.gn)([s.LO],h.prototype,"previousFlipperTelemetryTag",void 0),(0,o.gn)([s.LO],h.prototype,"direction",void 0),(0,o.gn)([a.Lj],h.prototype,"orientation",void 0),(0,o.gn)([a.Lj],h.prototype,"activeid",void 0),(0,o.gn)([s.LO],h.prototype,"tabs",void 0),(0,o.gn)([s.LO],h.prototype,"tabpanels",void 0),(0,o.gn)([(0,a.Lj)({mode:"boolean"})],h.prototype,"activeindicator",void 0),(0,o.gn)([s.LO],h.prototype,"activeIndicatorRef",void 0),(0,o.gn)([s.LO],h.prototype,"showActiveIndicator",void 0)},28726:function(t,e,i){"use strict";i.d(e,{o:function(){return c}});var n=i(53046),r=i(15933),o=i(67020),a=i(40082),s=i(32804),l=i(62734);const c=(t,e)=>n.i`
        ${(0,o.j)("grid")} :host {
            --elevation: 4;
            box-sizing: border-box;
            font-family: ${s.SVJ};
            font-size: ${s.cSu};
            line-height: ${s.RUt};
            color: ${s.CHi};
            background: ${s.$Bw};
            border-radius: calc(${s.rSr} * 1px);
            ${l.XC};
            overflow: hidden;
            height: 100%;
            grid-template-columns: auto 1fr auto;
            grid-template-rows: auto 1fr;
            width: 100%;
        }

        :host(:hover) ::slotted([slot="previous-flipper"]),
        :host(:hover) .previous-flipper,
        :host(:hover) ::slotted([slot="next-flipper"]),
        :host(:hover) .next-flipper {
            opacity: 1;
            transition: opacity 0.2s ease-in-out;
        }

        .tablist {
            display: grid;
            grid-template-rows: auto auto;
            grid-template-columns: auto;
            position: relative;
            width: max-content;
            align-self: center;
            justify-self: center;
            grid-row: 1;
            grid-column: 1 / span 3;
            z-index: 3;
            cursor: pointer;
        }

        ::slotted([slot="previous-flipper"]),
        .previous-flipper {
            margin: 8px;
            grid-column: 1;
            grid-row: 1 / span 2;
            align-self: center;
            z-index: 2;
            opacity: 0;
        }

        ::slotted([slot="next-flipper"]),
        .next-flipper {
            margin: 8px;
            grid-column: 3;
            grid-row: 1 / span 2;
            align-self: center;
            z-index: 2;
            opacity: 0;
        }

        :host([layout="1-column"]) {
            --heading-font-size: ${s.cSu};
            --heading-line-height: ${s.RUt};
        }

        .activeIndicator {
            grid-row: 2;
            grid-column: 1;
            width: 20px;
            height: 3px;
            border-radius: calc(${s.UWU} * 1px);
            justify-self: center;
            background: ${s.Avx};
        }

        .activeIndicatorTransition {
            transition: transform 0.2s ease-in-out;
        }

        .tabpanel {
            grid-row: 1/3;
            grid-column-start: 1;
            grid-column-end: 4;
            position: relative;
        }
    `.withBehaviors((0,a.vF)(n.i`
                .activeIndicator {
                    forced-color-adjust: none;
                    background: ${r.H.Highlight};
                }
                .tablist {
                    background: ${r.H.Canvas};
                }
            `))},19289:function(t,e,i){"use strict";i.d(e,{SD:function(){return p},NV:function(){return n},Lb:function(){return o},WT:function(){return a},aZ:function(){return r}});var n,r,o,a,s=i(33940),l=i(65620),c=i(87697),d=i(48839),u=i(82500);class h extends d.I{}class g extends((0,u.Um)(h)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}!function(t){t.full="full",t.half="half"}(n||(n={})),function(t){t.Currency="currencyPair",t.Commodity="future",t.ETF="etf",t.Funds="fund",t.Indices="index",t.Stocks="stock"}(r||(r={})),function(t){t.ShowData="showData",t.EmptyWatchlist="emptyWatchlist",t.AddWatchlist="addWatchlist"}(o||(o={})),function(t){t.Watchlist="watchlist",t.Market="market"}(a||(a={}));class p extends g{constructor(){super(...arguments),this.layout=n.half,this.optionSwitch=!1,this.target="_blank",this.showChangeValue=!1,this.swapGainLossColor=!1}getQuoteColor(t,e,i,n,r){return e?r:this.swapGainLossColor?t?i:n:t?n:i}optionClicked(){this.$emit("action-click-option");const t=this.titleArea.querySelector("#option-button");t&&t.focus()}blurOption(){const t=this.titleArea.querySelector("#option-button");t&&t.blur()}onBlurOption(){this.$emit("action-blur-option")}onTitleClicked(){this.$emit("action-title-clicked")}changeShowingValue(){this.showChangeValue=!this.showChangeValue}handleTextInput(){this.inputControl&&(this.value=this.inputControl.value,this.$emit("action-text-input",this.inputControl.value))}addToWatchlist(t){this.inputControl&&(this.inputControl.value="",this.value=""),this.$emit("action-add-to-watchlist",t)}addSymbolAction(t){0===t.button&&(this.$emit("action-add-symbol"),this.blurOption())}hideCardAction(t){0===t.button&&(this.$emit("action-hide-card"),this.blurOption())}dataProviderAction(t){0===t.button&&(this.$emit("action-data-provider"),this.blurOption(),window.open(this.dataProviderLink))}moreSettingAction(t){0===t.button&&(this.$emit("action-more-setting"),this.blurOption())}}(0,s.gn)([l.Lj],p.prototype,"layout",void 0),(0,s.gn)([l.Lj],p.prototype,"titleStr",void 0),(0,s.gn)([l.Lj],p.prototype,"titleLink",void 0),(0,s.gn)([(0,l.Lj)({mode:"boolean"})],p.prototype,"userSignedIn",void 0),(0,s.gn)([l.Lj],p.prototype,"dataFrom",void 0),(0,s.gn)([l.Lj],p.prototype,"quoteItems",void 0),(0,s.gn)([(0,l.Lj)({mode:"boolean"})],p.prototype,"optionSwitch",void 0),(0,s.gn)([l.Lj],p.prototype,"cardType",void 0),(0,s.gn)([(0,l.Lj)()],p.prototype,"footer",void 0),(0,s.gn)([(0,l.Lj)()],p.prototype,"footerLink",void 0),(0,s.gn)([(0,l.Lj)()],p.prototype,"dataProviderLink",void 0),(0,s.gn)([l.Lj],p.prototype,"target",void 0),(0,s.gn)([c.LO],p.prototype,"showChangeValue",void 0),(0,s.gn)([(0,l.Lj)({mode:"boolean"})],p.prototype,"swapGainLossColor",void 0),(0,s.gn)([l.Lj],p.prototype,"addSymbolBtnStr",void 0),(0,s.gn)([l.Lj],p.prototype,"emptyWatchlistStr",void 0),(0,s.gn)([l.Lj],p.prototype,"searchSuggestions",void 0),(0,s.gn)([(0,l.Lj)({mode:"boolean"})],p.prototype,"showSuggestions",void 0),(0,s.gn)([l.Lj],p.prototype,"searchPlaceholder",void 0),(0,s.gn)([(0,l.Lj)({mode:"boolean"})],p.prototype,"noSuggestion",void 0),(0,s.gn)([l.Lj],p.prototype,"noSuggestionHint",void 0),(0,s.gn)([l.Lj],p.prototype,"addSymbolOptStr",void 0),(0,s.gn)([l.Lj],p.prototype,"hideCardOptStr",void 0),(0,s.gn)([l.Lj],p.prototype,"dataProviderOptStr",void 0),(0,s.gn)([l.Lj],p.prototype,"moreSettingOptStr",void 0)},22169:function(t,e,i){"use strict";i.d(e,{g:function(){return s}});var n=i(69298),r=i(48657),o=i(32804),a=i(53046);const s=n.Zb.compose({baseName:"prong2-card-wrapper",template:r.O,styles:(t,e)=>a.i`
        ${(0,n.F)(t,e)} :host {
            border-radius: calc(${o.rSr} * 2px);
            box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04);
        }
    `})},16590:function(t,e,i){"use strict";i.d(e,{xb:function(){return m}});var n=i(33940),r=i(65620),o=i(87697),a=i(48839);class s extends a.I{constructor(){super(...arguments),this.pinned=!1}}(0,n.gn)([r.Lj],s.prototype,"target",void 0),(0,n.gn)([(0,r.Lj)({mode:"boolean"})],s.prototype,"pinned",void 0),(0,n.gn)([o.LO],s.prototype,"data",void 0),(0,n.gn)([o.LO],s.prototype,"headerTelemetryTag",void 0),(0,n.gn)([o.LO],s.prototype,"seeMoreTelemetryTag",void 0);var l=i(67020),c=i(56201),d=i(40082),u=i(53046),h=i(15933),g=i(32804);var p=i(39181),f=i(13988);const m=s.compose({baseName:"structured-data-card",template:(t,e)=>p.d`
    <div class="title" part="title">
        ${(0,f.g)((t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.titleContent}),p.d`
                <a
                    class="title-link"
                    part="title-link"
                    href="${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.link}}"
                    target=${t=>t.target}
                    title="${t=>{var e,i,n;return null!==(i=null===(e=t.data)||void 0===e?void 0:e.titleContentHint)&&void 0!==i?i:null===(n=t.data)||void 0===n?void 0:n.titleContent}}"
                    data-t="${t=>t.headerTelemetryTag}"
                >
                    <slot name="title-icon"></slot>
                    <div class="title-content" part="title-content">
                        ${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.titl