gn)([r.Lj],c.prototype,"visibleSlideCount",void 0),(0,o.gn)([d.LO],c.prototype,"totalSlideCount",void 0),(0,o.gn)([d.LO],c.prototype,"spots",void 0),(0,o.gn)([d.LO],c.prototype,"hiddenControls",void 0);var h=i(53046),p=i(58958);const g=h.i`
    .carousel-container{
        display: flex;
        position: relative;
        border-radius: 8px;
    }

    .carousel-content{
        position: relative;
        overflow: hidden;
        z-index: 0;
    }

    .previous{
        left: 0px;
    }

    .next{
        right: 0px;
    }

    .control-bg{
        background: ${(0,p.Y)()?"#FFFFFF":"#2E2E2E"};
        opacity: 0.5;
        height: 100%;
        width: 100%;
    }

    .control-icon{
        height: 20px;
        width: 20px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        fill:  ${(0,p.Y)()?"#2E2E2E":"#FFFFFF"};
    }

    .controls{
        height: 56px;
        width: 30px;
        z-index:1;
        cursor: pointer;
        position: absolute;
        top: 60px;
    }

    .spot-container{
        height: 7px;
        margin-top: 12px;
        position: relative;
    }

    .spot-content{
        height: 7px;
        width: fit-content;
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
    }

    .spot{
        width: 7px;
        height: 7px;
        background: ${(0,p.Y)()?"#7B7B7B":" #DEDEDE"};
        border-radius: 50%;
        margin: 0px 2px;
        cursor: pointer;
    }

    .spot.active{
        background:  ${(0,p.Y)()?"#DEDEDE":"#7E7E7E"};
    }

    .hidden {
        opacity: 0;
    }
`;var u=i(39181),m=i(58952),v=i(13988),x=i(18864);const b=u.d`
    <div class="spot ${t=>t.active?"active":""}"  @click="${t=>t.onSpotClick(t.index)}">  
    </div>
`,f=u.d`
    <div style="width: ${t=>t.carouselWidth}px;" ${(0,m.i)("carouselContainer")}>
        <div class="carousel-container" style="width: ${t=>t.carouselWidth}px; height: ${t=>t.carouselHeight}px;">
            ${(0,v.g)((t=>t.isShowSlideControls),u.d`
                <div class="previous controls ${t=>t.hiddenControls?"hidden":""}" @click="${t=>t.onPreviousClick()}">
                    <div class="control-bg"></div>
                    <div class="control-icon">${'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048">\n<path d="M1443 2045L421 1024 1443 3l90 90-930 931 930 931-90 90z" />\n</svg>\n'}</div>
                </div>`)}
            <div class="carousel-content" style="width: ${t=>t.carouselWidth}px; height: ${t=>t.carouselHeight}px;">
                <slot ${(0,m.i)("carouselContent")}></slot>
            </div>
            ${(0,v.g)((t=>t.isShowSlideControls),u.d`
                <div class="next controls ${t=>t.hiddenControls?"hidden":""}" @click="${t=>t.onNextClick()}">
                    <div class="control-bg"></div>
                    <div class="control-icon">${'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048">\n<path d="M515 1955l930-931L515 93l90-90 1022 1021L605 2045l-90-90z" />\n</svg>\n'}</div>
                </div>`)} 
        </div>
        <div class="spot-container">
            <div class="spot-content">
                ${(0,x.rx)((t=>t.spots),b)}
            </div>
        </div>
    </div>
`;let w=class extends c{};w=(0,o.gn)([(0,a.M)({name:"msn-ad-carousel",template:f,styles:g})],w);class y extends a.H{constructor(){super(...arguments),this.isInitial="0",this.direction="LTR",this.visibleSlideCount="3",this.carouselWidth="300",this.slideWidth="120",this.updateSlideStyle=()=>{if(!this.slideIndex||!this.activeIndex||!this.totalSlideCount)return;const t=parseInt(this.totalSlideCount),e=parseInt(this.visibleSlideCount),i=parseInt(this.slideIndex),o=parseInt(this.activeIndex),a=Math.floor(t/2),n=a-o,s=parseInt(this.carouselWidth),r=parseInt(this.slideWidth),d=((t,e,i)=>{let o=t;return o=i>0?t<e-i?t+i:t+i-e:t>=-i?t+i:t+i+e,o})(i,t,n),l=((t,e,i,o,a,n,s)=>{const r=(n*s-a)/(s-1),d=((o-1)*(n-r)+n-a)/2;let l=0;l=o%2==0?i*(n-r)-(n-r)/2-d:i*(n-r)-d;let c="";return c=t===e?"transform: translateX("+l+"px) perspective(500px) translateZ(164px);":"transform: translateX("+l+"px) perspective(500px) translateZ(0px);",c})(i,o,d,t,s,r,e),c=((t,e,i)=>{let o="";return o=Math.abs(t-e)>Math.floor(i/2)?"visibility: hidden;":"visibility: visible;",o})(d,a,e),h=((t,e,i,o)=>{let a=0;return a=t-Math.abs(i-o)-1,"LTR"===e&&i<=o&&(a+=1),"RTL"===e&&i>=o&&(a+=1),`z-index: ${a};`})(t,this.direction,d,a),p="1"===this.isInitial?"transition: transform 500ms ease 0s, opacity 500ms ease 0s, visibility 500ms ease 0s;":"";const g=this.slideIndex===this.activeIndex?"box-shadow: 0px 0px 1px #888888;":"box-shadow: unset;";const u=((t,e)=>{let i="";return i=t===e?"opacity: 1;":"opacity: 0.6;",i})(i,o);this.slideStyle=l+c+h+p+g+u}}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"activeindex"===t&&(this.activeIndex=i,this.updateSlideStyle())}}(0,o.gn)([r.Lj],y.prototype,"isInitial",void 0),(0,o.gn)([r.Lj],y.prototype,"slideIndex",void 0),(0,o.gn)([r.Lj],y.prototype,"activeIndex",void 0),(0,o.gn)([r.Lj],y.prototype,"direction",void 0),(0,o.gn)([r.Lj],y.prototype,"totalSlideCount",void 0),(0,o.gn)([r.Lj],y.prototype,"visibleSlideCount",void 0),(0,o.gn)([r.Lj],y.prototype,"carouselWidth",void 0),(0,o.gn)([r.Lj],y.prototype,"slideWidth",void 0),(0,o.gn)([d.LO],y.prototype,"slideStyle",void 0);const C=u.d`
    <div 
        class="carousel-slide" 
        style=${t=>t.slideStyle}
    >
		<slot name="carousel-slide-content"/>
	</div>
`,$=h.i`
    .carousel-slide {
       position: absolute;
       width: 120px; 
       height: 120px; 
       margin-top: 30px;
       overflow: hidden;
       object-fit：cover;
       box-sizing: content-box;
       border-radius: 8px;
       left: 0px;
    }
`;let k=class extends y{};k=(0,o.gn)([(0,a.M)({name:"msn-ad-carousel-slide",template:C,styles:$})],k)},99587:function(t,e,i){i.r(e),i.d(e,{MsnPatternOverlayCard:function(){return T}});var o=i(33940),a=i(89346),n=i(65620),s=i(87697);class r extends a.H{constructor(){super(...arguments),this.layout="landscape",this.shopNowText="Shop now",this.headinglevel=3}handleStartActionsContentChange(){this.startActionsContainer.classList.toggle("start-actions",this.startActions.assignedNodes().length>0),this.hasFooter=this.endActions.assignedNodes().length>0}handleEndActionsContentChange(){this.endActionsContainer.classList.toggle("end-actions",this.endActions.assignedNodes().length>0),this.hasFooter=this.endActions.assignedNodes().length>0}handleMediaContentChange(){this.mediaContainer.classList.toggle("media",this.media.assignedNodes().length>0)}handleBackgroundImageContentChange(){this.backgroundImageContainer.classList.toggle("background-image",this.backgroundImage.assignedNodes().length>0)}handlePatternOverlayCardLinkClick(t){return this.$emit("link-invoked",t),!0}}(0,o.gn)([n.Lj],r.prototype,"layout",void 0),(0,o.gn)([n.Lj],r.prototype,"shopNowText",void 0),(0,o.gn)([n.Lj],r.prototype,"price",void 0),(0,o.gn)([(0,n.Lj)({attribute:"heading-level",mode:"fromView",converter:n.Id})],r.prototype,"headinglevel",void 0),(0,o.gn)([(0,n.Lj)({mode:"fromView"})],r.prototype,"href",void 0),(0,o.gn)([s.LO],r.prototype,"anchorTelemetryTag",void 0),(0,o.gn)([s.LO],r.prototype,"mediaNodes",void 0),(0,o.gn)([s.LO],r.prototype,"hasFooter",void 0),(0,o.gn)([s.LO],r.prototype,"iconSlottedNodes",void 0),(0,o.gn)([n.Lj],r.prototype,"target",void 0),(0,o.gn)([s.LO],r.prototype,"hoverActionsSlottedNodes",void 0);var d=i(39181),l=i(58952),c=i(81422),h=i(74009),p=i(13988),g=i(90960);const u=d.d`
    <div class="footer" part="footer" >
        <span part="start-actions" ${(0,l.i)("startActionsContainer")}>
            <slot
                name="start-actions"
                ${(0,l.i)("startActions")}
                @slotchange=${t=>t.handleStartActionsContentChange()}
            ></slot>
        </span>
        <span part="end-actions" ${(0,l.i)("endActionsContainer")}>
            <slot
                name="end-actions"
                ${(0,l.i)("endActions")}
                @slotchange=${t=>t.handleEndActionsContentChange()}
            ></slot>
        </span>
    </div>
`,m=d.d`
    <span
        class="heading-wrapper"
        part="heading-wrapper"
        role="heading"
        aria-level=${t=>t.headinglevel}
    >
        <a
            class="heading"
            part="heading"
            href=${t=>t.href?t.href:void 0}
            target=${t=>t.target?t.target:void 0}
            @click=${(t,e)=>t.handlePatternOverlayCardLinkClick(e.event)}
            data-t="${t=>t.anchorTelemetryTag}"
            ><slot></slot>
        </a>
    </span>
`,v=d.d`
    <fluent-button class="shop-now" part="shop-now" appearance="stealth">
        ${t=>t.shopNowText}
    </fluent-button>
`,x=d.d`
    <template
        ${(0,c.p)({property:"mediaNodes",filter:(0,h.R)("[slot='media']")})}
    >
        <span part="background-image" ${(0,l.i)("backgroundImageContainer")}>
            <slot
                name="background-image"
                ${(0,l.i)("backgroundImage")}
                @slotchange=${t=>t.handleBackgroundImageContentChange()}
            ></slot>
        </span>
        <div class="mask" part="mask"></div>
        <div class="footer-container" part="mask">
            ${u}
            ${(0,p.g)((t=>"landscape"===t.layout),m)}
        </div>
        <div class="body" part="body">
            ${(0,p.g)((t=>{var e;return(null===(e=t.mediaNodes)||void 0===e?void 0:e.length)>0}),d.d`
                <div class="media-wrapper" part="media-wrapper">
                    <div part="media" ${(0,l.i)("mediaContainer")}>
                        <slot
                            name="media"
                            ${(0,l.i)("media")}
                            @slotchange=${t=>t.handleMediaContentChange()}
                        ></slot>
                    </div>
                </div>
            `)}
            <div class="heading-container" part="heading-container">
                <slot name="attribution"></slot>
                ${(0,p.g)((t=>"default"===t.layout),m)}
                ${(0,p.g)((t=>"landscape"===t.layout),v)}
            </div>
        </div>
        <slot name="call-to-action-one-line"></slot>
        <slot name="call-to-action-two-lines"></slot>
        <span
            part="hover-actions"
            class="${t=>t.hoverActionsSlottedNodes&&t.hoverActionsSlottedNodes.length?"hover-actions":"hover-actions_hidden"}"
        >
            <slot name="hover-actions" ${(0,g.Q)("hoverActionsSlottedNodes")}></slot>
        </span>
    </template>
`;var b=i(67020),f=i(56201),w=i(40082),y=i(32804),C=i(22674),$=i(53046),k=i(15933);const S=$.i`
    .hover-actions {
        right: 8px;
    }
`,I=$.i`
    .hover-actions {
        left: 8px;
    }
`,L=$.i`
    ${(0,b.j)("flex")} :host {
        --mask-color: linear-gradient(312.48deg, ${y.XiB} 24.29%, ${y.Gy2} 73.9%);
        position: relative;
        width: auto;
        box-sizing: border-box;
        font-family: ${y.SVJ};
        flex-direction: column;
        outline: none;
        height: 100%;
        overflow: hidden;
    }

    :host(:hover) .hover-actions {
        opacity: 1;
        transition: opacity 0.2s ease-in-out;
    }

    :host(:hover) .background-image,
    :host(:hover) .media {
        filter: brightness(0.9);
    }

    :host .footer-container {
        background: var(--mask-color);
    }

    :host([layout="default"]) .footer-container {
        min-height: 64px;
    }

    :host([layout="landscape"]) .footer-container {
        min-height: 110px;
    }

    .body {
        display: block;
        justify-content: center;
        row-gap: 8px;
        column-gap: 10px;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
    }

    .footer {
        padding-inline-start: var(--footer-start-padding, 16px);
        padding-inline-end: var(--footer-start-padding, 16px);
        height: 32px;
        font-size: var(--footer-font-size, ${y.sNp});
        line-height: var(--footer-line-height, ${y.vgC});
    }

    .footer,
    .start-actions,
    .end-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        color: ${y.Q5n};
        fill: ${y.Q5n};
    }

    .footer__hidden {
        display: none;
    }

    .hover-actions {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 8px;
        z-index: 2;
        opacity: 0;
    }

    .hover-actions_hidden {
        display: none;
    }

    .hover-actions:focus-within {
        opacity: 1;
    }

    .heading-container {
        grid-row: 2;
        grid-column: span 2;
        flex-direction: column;
        padding: 0;
        height: 88px;
        background: var(--mask-color);
    }

    :host([layout="default"]) .heading-container {
        margin-top: -43px;
    }

    :host([layout="landscape"]) .heading-container {
        margin-top: -33px;
    }

    .shop-now {
        margin-top: 38px;
        margin-left: 200px;
        margin-right: 16px;
        border-radius: 100px;
        background-color: rgb(0, 0, 0, 40%);
        color: white;
    }

    :host(:hover) .shop-now {
        background-color: rgb(0, 0, 0, 30%);
    }

    .heading-wrapper a:after {
        bottom: 0;
        content: "";
        height: 100%;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        z-index: 1;
    }
    
    .heading-wrapper a ::slotted(span) {
        font-size: 16px;
        line-height: 22px;
    }

    ::slotted([slot="attribution"]) {
        margin-bottom: 6px
    }

    .media-wrapper {
        grid-row: 1;
        grid-column: 2;
        margin-top: -40px;
        clip-path: polygon(0px 17%, 100% 0%, 100% 82%, 0% 100%);
        background-color: ${y.IfY};
    }

    :host([layout="default"]) .media-wrapper {
        height: 235px;
    }

    :host([layout="landscape"]) .media-wrapper {
        height: 181px;
    }

    .media-wrapper::after {
        content: "";
        display: block;
        height: 40px;
        margin-top: 8px;
        background: var(--mask-color);
        clip-path: polygon(100% 0, 60% 100%, 100% 100%);
        transform: matrix(-1, 0, 0, 1, 0, 0);
    }

    :host([layout="default"]) .media-wrapper::after {
        margin-top: -24px;
    }

    :host([layout="landscape"]) .media-wrapper::after {
        margin-top: -21px;
    }

    .media {
        display: flex;
        position: relative;
    }

    :host([layout="default"]) .media {
        height: 225px;
    }

    :host([layout="landscape"]) .media {
        height: 174px;
    }

    ::slotted([slot="media"]) {
        border-radius: 0px;
        border-radius: calc(var(--content-card-corner-radius, 2) * 2px)
    }

    ::slotted([slot="start-actions"]),
    ::slotted([slot="end-actions"]) {
        z-index: 2;
        display: flex;
        gap: 5px;
        align-items: center;
    }

    ::slotted(fluent-button[slot="start-actions"]),
    ::slotted(fluent-button[slot="end-actions"]) {
        color: ${y.Q5n};
        fill: ${y.Q5n};
    }

    .card-button:hover {
        background: transparent;
    }

    .start-actions {
        width: 80%;
    }
    
    ::slotted(fluent-button[appearance="stealth"]:not(:hover)), :slotted([slot="hover-actions"]:not(:hover)) {
        background: transparent;
    }

    .heading {
        text-decoration: none;
        outline: none;
        color: ${y.CHi};
        font-size: var(--type-ramp-base-font-size, ${y.PwC});
        line-height: var(--heading-line-height, ${y.b3W});
        font-weight: 600;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: initial;
        padding-right: 10px;
        height: 52px;
    }

    :host([layout="default"]) .heading {
        width: 180px;
        padding-top: 30px;
        padding-left: calc(50% - 168px/2 + 35px);
        text-align: right;
        height: 50px;
    }

    :host([layout="landscape"]) .heading {
        width: 200px;
        padding-left: 16px;
    }

    .mask {
        display: none;
    }

    .heading:hover,
    .heading:${f.b} {
        text-decoration: underline;
    }

    .heading::after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .background-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .background-image ::slotted(img) {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    ::slotted([slot="call-to-action-one-line"]), 
    ::slotted([slot="call-to-action-two-lines"]) {
        position: absolute !important;
        width: calc(100% - 32px);
        grid-row: 3;
        grid-column: 1 / span 2;
        margin: 0 16px;
    }
    ::slotted([slot="call-to-action-one-line"]) {
        bottom: 24px;
    }
    ::slotted([slot="call-to-action-two-lines"]) {
        bottom: 14px;
    }

`.withBehaviors(new C.O(S,I),(0,w.vF)($.i`
            .heading {
                color: ${k.H.LinkText};
                background: ${k.H.ButtonFace};
            }
            .footer,
            .start-actions,
            .end-actions,
            ::slotted([slot="start-actions"]),
            ::slotted([slot="end-actions"]) {
                background: ${k.H.ButtonFace};
                color: ${k.H.ButtonText};
                fill: currentcolor;
            }
            ::slotted(fluent-button[appearance="stealth"]:not(:hover)) {
                background: ${k.H.ButtonFace};
            }
        `));let T=class extends r{};T=(0,o.gn)([(0,a.M)({name:"msn-pattern-overlay-card",template:x,styles:L,shadowOptions:{delegatesFocus:!0}})],T)},64322:function(t,e,i){i.r(e),i.d(e,{MsnSlideshow:function(){return N}});var o=i(57905),a=i(26899);class n extends a.O{}var s=i(13626),r=i(67020),d=i(56201),l=i(40082),c=i(32804),h=i(15933),p=i(53046),g=i(58958);const u=p.i`
${(0,r.j)("inline-flex")} :host {
    box-sizing: border-box;
    font-family: ${c.SVJ};
    min-height: 4px;
    background-color: ${c.CHi};
    border-radius: 20px;
    opacity: 0.4;
    grid-row: 1;
    z-index: 1;
    margin: 2px 2px 8px;

    background: ${(0,g.Y)()?"linear-gradient(to right, #DEDDDD 50%, #7E7C7C 50%)":"linear-gradient(to right, #868383 50%, #E8E7E7 50%)"};
    background-size: 200% 100%;
    background-position: right;
    transition-property: background-position;
    transition-duration: 0s;
}

:host([tab-selected="true"]) {
    opacity: 1;
    background-position: left;
    transition-duration: 3s;
}

:host([tab-filled="true"]) {
    background: ${(0,g.Y)()?"#DEDDDD":"#868383"};
    opacity: 1;
}

:host(:active) {
    background: ${(0,g.Y)()?"#DEDDDD":"#868383"};
    opacity: 1;
}

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

:host(:focus) {
    outline: none;
}

:host([tab-selected="false"][is-immersive="true"]){
    background: #FFFFFF;
    border-radius: 100px;
    width: 6px;
    height: 6px;
    margin-right: 6px;
}
:host([tab-selected="true"][is-immersive="true"]){
    background: #FFFFFF;
    border-radius: 100px;   
    width: 30px;
    height: 6px;
    margin-right: 6px;
}
`.withBehaviors((0,l.vF)(p.i`
            :host {
                forced-color-adjust: none;
                border-color: transparent;
                color: ${h.H.ButtonText};
                fill: ${h.H.ButtonText};
            }
            :host(:hover),
            :host([tab-selected="true"]:hover) {
                background: ${h.H.Highlight};
                color: ${h.H.HighlightText};
                fill: ${h.H.HighlightText};
            }
            :host([tab-selected="true"]) {
                background: ${h.H.HighlightText};
                color: ${h.H.Highlight};
                fill: ${h.H.Highlight};
            }
            :host(:${d.b}) {
                border-color: ${h.H.ButtonText};
                box-shadow: none;
            }
        `),(0,l.Uu)(p.i`
        :host([tab-selected="false"][is-immersive="true"]){
            background: #FFFFFF;
            border-radius: 100px;
            width: 6px;
            height: 6px;
            margin-right: 6px;
        }
        :host([tab-selected="true"][is-immersive="true"]){
            background: #FFFFFF;
            border-radius: 100px;   
            width: 30px;
            height: 6px;
            margin-right: 6px;
        }
    }
`)),m=n.compose({baseName:"slideshow-tab",template:s.O,styles:u});var v=i(63070),x=i(33940),b=i(89346),f=i(65620),w=i(87697);const y='<svg width="44" height="43" viewBox="0 0 44 43" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#filter0_dd)"><rect x="4.625" y="2.81641" width="35" height="34" rx="17" fill="black" fill-opacity="0.55"/>\n<path d="M17.7335 12.4303C17.2337 12.1584 16.625 12.5202 16.625 13.0891V26.5414C16.625 27.1103 17.2337 27.4721 17.7335 27.2002L30.095 20.474C30.6171 20.19 30.6171 19.4405 30.095 19.1564L17.7335 12.4303ZM15.125 13.0891C15.125 11.3823 16.9511 10.2969 18.4504 11.1127L30.812 17.8389C32.3781 18.691 32.3781 20.9394 30.812 21.7916L18.4504 28.5178C16.9511 29.3335 15.125 28.2482 15.125 26.5414V13.0891Z" fill="white"/></g><defs><filter id="filter0_dd" x="0.813236" y="0.69876" width="42.6235" height="41.6235" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1.69412"/><feGaussianBlur stdDeviation="1.90588"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="0.317647"/><feGaussianBlur stdDeviation="0.476471"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"/><feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow" result="shape"/></filter></defs>\n</svg>',C='<svg width="44" height="42" viewBox="0 0 44 42" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(#filter0_dd)"><rect x="4.625" y="2.21094" width="35" height="34" rx="17" fill="black" fill-opacity="0.55"/>\n<path d="M15.8711 10.2109C14.9046 10.2109 14.1211 10.9944 14.1211 11.9609V26.4609C14.1211 27.4274 14.9046 28.2109 15.8711 28.2109H19.3711C20.3376 28.2109 21.1211 27.4274 21.1211 26.4609V11.9609C21.1211 10.9944 20.3376 10.2109 19.3711 10.2109H15.8711ZM15.6211 11.9609C15.6211 11.8229 15.733 11.7109 15.8711 11.7109H19.3711C19.5092 11.7109 19.6211 11.8229 19.6211 11.9609V26.4609C19.6211 26.599 19.5092 26.7109 19.3711 26.7109H15.8711C15.733 26.7109 15.6211 26.599 15.6211 26.4609V11.9609Z" fill="white" fill-opacity="0.8"/>\n<path d="M24.8711 10.2109C23.9046 10.2109 23.1211 10.9944 23.1211 11.9609V26.4609C23.1211 27.4274 23.9046 28.2109 24.8711 28.2109H28.3711C29.3376 28.2109 30.1211 27.4274 30.1211 26.4609V11.9609C30.1211 10.9944 29.3376 10.2109 28.3711 10.2109H24.8711ZM24.6211 11.9609C24.6211 11.8229 24.733 11.7109 24.8711 11.7109H28.3711C28.5092 11.7109 28.6211 11.8229 28.6211 11.9609V26.4609C28.6211 26.599 28.5092 26.7109 28.3711 26.7109H24.8711C24.733 26.7109 24.6211 26.599 24.6211 26.4609V11.9609Z" fill="white" fill-opacity="0.8"/></g><defs><filter id="filter0_dd" x="0.813236" y="0.0932908" width="42.6235" height="41.6235" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1.69412"/><feGaussianBlur stdDeviation="1.90588"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="0.317647"/><feGaussianBlur stdDeviation="0.476471"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"/><feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow" result="shape"/></filter></defs>\n</svg>';var $=i(36934),k=i(94731),S=i(38856);class I extends b.H{constructor(){super(...arguments),this.activeTabIndex=0,this.prevActiveTabIndex=0,this.setActiveImage=()=>{const t=this.activeTabIndex===this.images.length?0:this.activeTabIndex,e=this.images[t],i=this.imageContainer,o=this.transitionImageContainer,a=this.backgroundBlurImageContainer;i&&i.src&&e&&e.source&&(o.src=e.source,o.alt=e.altText,a.src=e.source,a.alt=e.altText,i.className="fadeOut",setTimeout((function(){i.src=e.source,i.alt=e.altText,a.src=e.source,a.alt=e.altText,i.className=""}),750))},this.setActiveTab=()=>{this.tabs.forEach(((t,e)=>{if("tab"===t.slot){const i=()=>{t.setAttribute("tab-selected",this.activeTabIndex===e?"true":"false")};"true"!==t.getAttribute("is-immersive")&&t.setAttribute("style",`min-width:${276/this.tabs.length-8}px`),t.setAttribute("tab-filled",this.activeTabIndex>e&&this.activeTabIndex>0?"true":"false"),0===this.activeTabIndex&&0===e?window.setTimeout(i,50):i(),t.addEventListener("click",this.handleTabClick)}}))},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent(),(0,S.O)(t.target,"SlideshowTabClick",`${this.activeTabIndex}`,0)),t.stopPropagation(),this.enableMediaControls&&this.autoScroll&&(this.autoScroll=!1,this.mediaContainer.innerHTML=y)}}connectedCallback(){super.connectedCallback(),this.autoScroll&&(this.setActiveTab(),this.handleUserScroll(),this.autoScrollHandler())}disconnectedCallback(){super.disconnectedCallback(),window.clearTimeout(this.timer),window.removeEventListener("scroll",this.userScrollStartCallback),window.removeEventListener("scroll",this.userScrollStopCallback)}handleUserScroll(){this.userScrollStartCallback=(0,$.Z)((()=>{this.isUserScrolling=!0}),400,{leading:!0,trailing:!1}),this.userScrollStopCallback=(0,$.Z)((()=>{this.isUserScrolling=!1}),400,{leading:!1,trailing:!0}),window.addEventListener("scroll",this.userScrollStartCallback),window.addEventListener("scroll",this.userScrollStopCallback)}autoScrollHandler(){this.timer=window.setTimeout((()=>{this.autoScroll&&!this.isUserScrolling&&this.adjust(),this.autoScrollHandler()}),this.autoScrollIntervalMs||3e3)}get tabs(){return this.tabContainer&&this.tabContainer.children&&this.tabContainer.children.length?Array.from(this.tabContainer.children):[]}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.setActiveImage(),this.enableMediaControls&&this.setActiveTab())}adjust(){const t=this.enableMediaControls?this.images.length-1:this.images.length;this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(0,k.w)(0,t,this.activeTabIndex+1),this.setComponent()}toggleMediaControls(t){t.stopPropagation(),this.enableMediaControls&&(this.autoScroll?(this.autoScroll=!1,this.mediaContainer.innerHTML=y):(this.autoScroll=!0,this.mediaContainer.innerHTML=C),(0,S.O)(t.currentTarget,"SlideshowMediaClick",`${this.autoScroll}`,0))}handleCardLinkClick(t){return this.$emit("link-invoked",t),!0}}(0,x.gn)([f.Lj],I.prototype,"isImmersive",void 0),(0,x.gn)([w.LO],I.prototype,"autoScroll",void 0),(0,x.gn)([w.LO],I.prototype,"autoScrollIntervalMs",void 0),(0,x.gn)([w.LO],I.prototype,"images",void 0),(0,x.gn)([w.LO],I.prototype,"imageData",void 0),(0,x.gn)([w.LO],I.prototype,"enableMediaControls",void 0),(0,x.gn)([w.LO],I.prototype,"anchorTelemetryTag",void 0),(0,x.gn)([w.LO],I.prototype,"destinationUrl",void 0),(0,x.gn)([w.LO],I.prototype,"badge",void 0);const L=p.i`

    msft-attribution {
        position: relative;
        overflow: hidden;
    }

    span.title_1x_2y,
    span.title_1x_3y {
        font-size: 100px;
    }

    ${(0,r.j)("flex")} :host {
        --icon-size: 24px;
        position: relative;
        width: auto;
        box-sizing: border-box;
        font-family: ${c.SVJ};
        flex-direction: column;
        outline: none;
        height: 100%;
        overflow: hidden;
    }

    [slot="image-with-badge"]{
        position: absolute;
        top: 0px;
        left: 0px;
        width: 300px;
        height: 225px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index:-2;
    }

    [name="image-container"] {
        opacity: 1;
        transition: opacity 0.5s linear;
        position: absolute;
        object-fit: contain;
        height: 225px;
        width: 300px;
    }

    [name="transition-image-container"] {
        object-fit: contain;
        height: 225px;
        width: 300px;
    }
    
    [name="image-container"].fadeOut {
        opacity: 0;
    }

    .media-container {
        position: absolute;
        top: 142px;
        right: 5.5px;
        z-index: 2;
        cursor: pointer;
    }

    [class="mask"]{
        position: absolute;
        width: 300px;
        height: 126px;
        margin-top: 100px;
        z-index: 0;
    }
 
    [class="tab-container"] {
        width: 300px;
        margin-left: auto;
        height: 19px;
        margin-top: 238px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .heading-container {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        padding-inline-end: var(--heading-end-padding, 16px);
        padding-bottom: 0;
        padding-top: 0;
        width: 300px;
        height: 225px;
        position: absolute;
        overflow-wrap: break-word;
    }

    .heading-container.no-media-controls {
        padding-top: 10px;
        position: absolute;
    } 

    [class="heading-wrapper"]{
        margin-top: 184px;
        padding: 0px 16px;
    }

    .heading-wrapper a:after {
        bottom: 0;
        content: "";
        height: 304px;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 300px;
        z-index: 1;
    }

    .heading {
        text-decoration: none;
        outline: none;
        color: white;
        font-size: var(--heading-font-size, ${c.PwC});
        line-height: var(--heading-line-height, ${c.b3W});
        font-weight: 600;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: initial;
    }

    .heading:hover,
    .heading:${d.b} {
        text-decoration: underline;
    }

    ::slotted([slot="call-to-action"]) {
        width: calc(100% - 32px);
        margin: 0 16px;
    }

    [name="blur-image-background"]{
        position: absolute;
        left: 0px;
        top: 0px;
        height: 225px;
        width: 300px;
        filter: blur(60px);
        z-index: -1;
    }

    [class="tab-container-mask"]{
        position: absolute;
        left: 0px;
        bottom: 0px;
        height: 79px;
        width: 300px;
        z-index: -1;
    }

    .footer{
        position: absolute;
        padding: 0px 16px 4px;
        height: 40px;
        width: 268px;
        bottom: 0px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;  
        background: #2B2B2B;
    }

    ::slotted([slot="start-actions"]),
    ::slotted([slot="end-actions"]) {
        z-index: 2;
        gap: 5px;
        display: flex;
        align-items: center;
    }
    
    ::slotted([slot="end-actions"]) {
        --neutral-foreground-rest:white;  
        --control-corner-radius: 100;
        --neutral-fill-hover: #484848;
    }


    [part="start-actions"]{
        display: inline-block;
        width: 80%;
    }

    [class="mask"]{
        background: linear-gradient(transparent 0%, rgba(43, 43, 43, 0.8) 62.5%, rgb(43, 43, 43) 100%)
    }

    [class="tab-container-mask"]{
        background: #2B2B2B;
    }

`.withBehaviors((0,l.vF)(p.i`
            .heading {
                color: ${h.H.LinkText};
                background: ${h.H.ButtonFace};
            }
        `),(0,l.Uu)(p.i`
        [class="footer"]{
            background: #2B2B2B;
        }

        [class="mask"]{
            background: linear-gradient(transparent 0%, rgba(43, 43, 43, 0.8) 62.5%, rgb(43, 43, 43) 100%)
        }

        [class="tab-container-mask"]{
            background: #2B2B2B;
        }
    }
`));var T=i(39181),A=i(58952),F=i(13988),B=i(18864);i(35099).Ii;const H=T.d`
    <msn-slideshow-tab tab-filled="false" tab-selected="false" is-immersive="true" ></msn-slideshow-tab>
`,j=T.d`
    <div class=${t=>!0===t.enableMediaControls?"heading-container":"heading-container no-media-controls"} part="heading-container">
        <span
            class="heading-wrapper"
            part="heading-wrapper"
            role="heading"
            aria-level=3
        >
            <a
                class="heading"
                part="heading"
                href=${t=>t.destinationUrl?t.destinationUrl:void 0}
                target="_blank"
                @click=${(t,e)=>t.handleCardLinkClick(e.event)}
                data-t="${t=>t.anchorTelemetryTag}" 
                >
                <slot>
                </slot>
            </a>
        </span>
    </div>
`,M=T.d`
   
    <div class="footer" part="footer">
        <slot name="start-actions"></slot>
        <slot name="end-actions"></slot>
    </div>
`,z=()=>T.d`
    <div slot="image-with-badge">
        <img name="blur-image-background" ${(0,A.i)("backgroundBlurImageContainer")}
            src="${t=>t.images[0]&&t.images[0].source}"
            alt="${t=>t.images[0]&&t.images[0].altText}"
            width="${t=>t.imageData&&t.imageData.imageWidth}"
            height="${t=>t.imageData&&t.imageData.imageHeight}"
        />
        <img name="image-container" ${(0,A.i)("imageContainer")}"
            src="${t=>t.images[0]&&t.images[0].source}"
            alt="${t=>t.images[0]&&t.images[0].altText}"
            width="${t=>t.imageData&&t.imageData.imageWidth}"
            height="${t=>t.imageData&&t.imageData.imageHeight}"
        />
        <img name="transition-image-container" ${(0,A.i)("transitionImageContainer")}"
            src="${t=>t.images[0]&&t.images[0].source}"
            alt="${t=>t.images[0]&&t.images[0].altText}"
            width="${t=>t.imageData&&t.imageData.imageWidth}"
            height="${t=>t.imageData&&t.imageData.imageHeight}"
        />
    <div>
`,O=T.d`
    ${(0,F.g)((t=>t.badge),T.d`
        <msn-image-badge-decorator badgeType=${t=>t.badge.type} text=${t=>t.badge.text}>
            ${t=>z()}
        </msn-image-badge-decorator>
    `)}
    ${(0,F.g)((t=>!t.badge),T.d`
        ${t=>z()}
    `)}
    <div class="mask"></div>
    ${j}
    <div class="tab-container-mask"></div>
    ${(0,F.g)((t=>!0===t.enableMediaControls),T.d`
        <span class="media-container" ${(0,A.i)("mediaContainer")}
            @click="${(t,e)=>t.toggleMediaControls(e.event)}"
        >
            ${C}
        </span>

        <div class="tab-container" ${(0,A.i)("tabContainer")}>
            ${(0,B.rx)((t=>t.images),H)}
        </div>
    `)}
    <slot name="call-to-action"></slot>
    ${M}
`;let N=class extends I{};N=(0,x.gn)([(0,b.M)({name:"msn-slideshow",template:O,styles:L,shadowOptions:{delegatesFocus:!0}})],N),(0,v.z)().withShadowRootMode("closed").withElementDisambiguation((()=>o.h.ignoreDuplicate)).withPrefix("msn").register(m())}}]);A
Eo