a.gn)([r.LO],d.prototype,"hoverActionsSlottedNodes",void 0);var l=i(67020),c=i(56201),h=i(40082),p=i(32804),g=i(22674),u=i(53046),m=i(15933);const v=u.i`
    .hover-actions {
        right: 8px;
    }

    .icon {
        left: 0;
    }
`,x=u.i`
    .hover-actions {
        left: 8px;
    }

    .icon {
        right: 0;
    }
`,b=u.i`
    ${(0,l.j)("flex")} :host {
        --icon-size: 24px;
        position: relative;
        width: auto;
        box-sizing: border-box;
        font-family: ${p.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);
    }

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

    .heading-container.heading-animation{
        transition: all 0.5s linear;
        opacity: 1;
    }

    :host([layout="default"]) .body .abstract {
        display: none;
    }

    :host([layout="default"]) .body,
    :host([layout="default"]) .body .has-abstract {
        display: block;
    }

    :host([layout="default"]) .has-abstract .media-wrapper {
        margin-inline-start: 16px;
    }

    :host([image-priority]) .has-abstract .media-wrapper {
        margin-inline-start: 0;
    }

    .carousel-container-background{
        height: 274px;
        margin-top: 30px;
        width: 300px;
        left: 2px;
        position: absolute;
        border-radius: 8px;
        box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(0.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(0.13 * (2 - var(--background-luminance, 1))));
    }

    .footer {
        padding-inline-start: var(--footer-start-padding, 16px);
        padding-inline-end: var(--footer-start-padding, 16px);
        padding-top: 10px;
        padding-bottom: 16px;
        margin-top: auto;
        font-size: var(--footer-font-size, ${p.sNp});
        line-height: var(--footer-line-height, ${p.vgC});
    }

    .footer,
    .start-actions,
    .end-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        color: ${p.Q5n};
        fill: ${p.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: 1;
        display: flex;
        flex-direction: column;
        padding-inline-start: var(--heading-start-padding, 16px);
        padding-inline-end: var(--heading-end-padding, 16px);
        padding-bottom: 0;
        padding-top: 0;
        position: relative;
        margin-top: 12px;
        opacity: 0;
    }

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

    .icon {
        position: absolute;
        display: inline-flex;
        top: auto;
        bottom: 0;
        justify-content: center;
        align-items: center;
        margin: 0 0 4px 0;
        margin-inline-start: 4px;
    }

    .icon_hidden {
        display: none;
    }

    ::slotted([slot="icon"]) {
        width: var(--icon-size);
        height: var(--icon-size);
        fill: #FFF;
    }

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

    ::slotted([slot="abstract"]) {
        margin: 2px 0;
    }

    .media-wrapper {
        grid-row: 1;
        grid-column: 2;
        margin: 0;
    }

    .media-wrapper a{
        outline: none;
    }

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

    :host([image-priority]) {
        --heading-max-lines: 2;
    }

    :host([image-priority]) .body {
        grid-template-columns: 1;
    }

    :host([image-priority]) .media-wrapper {
        grid-row: 1;
        grid-column: span 2;
        margin: 0;
    }

    :host([image-priority]) .heading-container {
        grid-row: 2;
        grid-column: span 2;
        padding-top: 10px;
        padding-inline-start: var(--heading-start-padding, 16px);
    }

    :host([image-priority]) ::slotted([slot="media"]) {
        border-radius: 0px;
    }

    ::slotted([slot="call-to-action"]) {
        width: calc(100% - 32px);
        grid-row: 3;
        z-index: 1;
        grid-column: 1 / span 2;
        margin: 0 16px;
    }

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

    :host([layout="default"]) .has-abstract .abstract {
        display: block;
        padding: 0 16px 16px 16px;
    }

    .abstract {
        position: relative;
        margin: 0;
        font-size: var(--abstract-font-size, ${p.cSu});
        line-height: var(--abstract-line-height, ${p.RUt});
        font-weight: 400;
        grid-column: span 2;
        box-sizing: content-box;
        color: ${p.Q5n};
        padding: 0 16px;
    }

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

    ::slotted([slot="call-to-action"]) {
        z-index: 2;
    }

    ::slotted(fluent-button[slot="start-actions"]),
    ::slotted(fluent-button[slot="end-actions"]) {
        color: ${p.Q5n};
        fill: ${p.Q5n};
    }
    
    ::slotted(fluent-button[appearance="stealth"]:not(:hover)), :slotted([slot="hover-actions"]:not(:hover)) {
        background: transparent;
    }

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

    .mask {
        display: none;
    }

    .heading:hover,
    .heading:${c.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;
    }

`.withBehaviors(new g.O(v,x),(0,h.vF)(u.i`
            .heading {
                color: ${m.H.LinkText};
                background: ${m.H.ButtonFace};
            }
            .abstract {
                color: ${m.H.ButtonText};
            }
            .icon {
                background-color: #000;
                height: fit-content;
            }
            .footer,
            .start-actions,
            .end-actions,
            ::slotted([slot="start-actions"]),
            ::slotted([slot="end-actions"]) {
                background: ${m.H.ButtonFace};
                color: ${m.H.ButtonText};
                fill: currentcolor;
            }
            ::slotted(fluent-button[appearance="stealth"]:not(:hover)) {
                background: ${m.H.ButtonFace};
            }
        `));var f=i(39181),w=i(58952),y=i(81422),C=i(74009),$=i(13988),k=i(90960);const S=f.d`
    <div
        class="footer ${t=>t.hasAbstract?"has-abstract-footer":""} ${t=>t.hasFooter?"":"footer__hidden"}"
        part="footer"
    >
        <span part="start-actions" ${(0,w.i)("startActionsContainer")}>
            <slot
                name="start-actions"
                ${(0,w.i)("startActions")}
                @slotchange=${t=>t.handleStartActionsContentChange()}
            ></slot>
        </span>
        <span part="end-actions" ${(0,w.i)("endActionsContainer")}>
            <slot
                name="end-actions"
                ${(0,w.i)("endActions")}
                @slotchange=${t=>t.handleEndActionsContentChange()}
            ></slot>
        </span>
    </div>
`,I=f.d`
    <template
        ${(0,y.p)({property:"mediaNodes",filter:(0,C.R)("[slot='media'], [slot='icon']")})}
    >
        <span part="background-image" ${(0,w.i)("backgroundImageContainer")}>
            <slot
                name="background-image"
                ${(0,w.i)("backgroundImage")}
                @slotchange=${t=>t.handleBackgroundImageContentChange()}
            ></slot>
        </span>
        <div class="mask" part="mask"></div>
        <div class="carousel-container-background"></div>
        <div class="body ${t=>t.hasAbstract?"has-abstract":""}" part="body">
            ${(0,$.g)((t=>{var e;return(null===(e=t.mediaNodes)||void 0===e?void 0:e.length)>0}),f.d` <div class="media-wrapper" part="media-wrapper">
                    <div part="media" ${(0,w.i)("mediaContainer")}>
                        <a
                            href=${t=>t.href?t.href:void 0}
                            target=${t=>t.target?t.target:void 0}
                            @click=${(t,e)=>t.handleContentCardLinkClick(e.event)}
                            data-t="${t=>t.anchorTelemetryTag}"
                        >
                            <slot
                                name="media"
                                ${(0,w.i)("media")}
                                @slotchange=${t=>t.handleMediaContentChange()}
                            ></slot>
                        </a>
                        <span
                            part="icon"
                            ${(0,w.i)("iconContainer")}
                            class="${t=>t.iconSlottedNodes&&t.iconSlottedNodes.length?"icon":"icon_hidden"}"
                        >
                            <slot
                                name="icon"
                                ${(0,w.i)("icon")}
                                ${(0,k.Q)("iconSlottedNodes")}
                            ></slot>
                        </span>
                    </div>
                </div>`)}
            <div class="heading-animation heading-container" part="heading-container" ${(0,w.i)("headingContainer")}>
                <slot name="attribution"></slot>
                <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.handleContentCardLinkClick&&"function"==typeof t.handleContentCardLinkClick&&t.handleContentCardLinkClick(e.event)}
                    data-t="${t=>t.anchorTelemetryTag}"
                    ><slot></slot
                ></a>
                </span>
            </div>
            <div class="abstract">
                <slot name="abstract" ${(0,k.Q)("abstract")}></slot>
            </div>
            <slot name="call-to-action"></slot>
        </div>
        ${S}
        <span
            part="hover-actions"
            class="${t=>t.hoverActionsSlottedNodes&&t.hoverActionsSlottedNodes.length?"hover-actions":"hover-actions_hidden"}"
        >
            <slot name="hover-actions" ${(0,k.Q)("hoverActionsSlottedNodes")}></slot>
        </span>
    </template>
`;let L=class extends d{};L=(0,a.gn)([(0,n.M)({name:"msn-ad-carousel-card",template:I,styles:b,shadowOptions:{delegatesFocus:!0}})],L)},68129:function(t,e,i){i.r(e),i.d(e,{MsnAdCarousel:function(){return w},MsnAdCarouselSlide:function(){return k}});var o=i(33940),a=i(89346),n=i(13042),s=i(13578),r=i(65620),d=i(87697);const l=(t,e,i)=>{const o=[];for(let a=0;a<t;a+=1)o.push({index:a,active:a===e,onSpotClick:i});return o};class c extends a.H{constructor(){super(...arguments),this.cardId="",this.carouselWidth="300",this.carouselHeight="180",this.slideWidth="120",this.isShowSlideControls=!0,this.activeIndex=0,this.visibleSlideCount="3",this.spots=[],this.hiddenControls=!0,this.onNextClick=()=>{this.activeIndex<this.totalSlideCount-1?this.activeIndex+=1:this.activeIndex=0,this.spots=l(this.totalSlideCount,this.activeIndex,this.onSpotClick),this.updateActiveIndex&&this.updateActiveIndex(this.cardId,this.activeIndex),(0,n.Z)(this.carouselContent.assignedElements(),(t=>{this.updateAttribute(t,{direction:"LTR",isInitial:"1",activeIndex:`${this.activeIndex}`})}))},this.onPreviousClick=()=>{this.activeIndex>0?this.activeIndex-=1:this.activeIndex=this.totalSlideCount-1,this.spots=l(this.totalSlideCount,this.activeIndex,this.onSpotClick),this.updateActiveIndex&&this.updateActiveIndex(this.cardId,this.activeIndex),(0,n.Z)(this.carouselContent.assignedElements(),(t=>{this.updateAttribute(t,{direction:"RTL",isInitial:"1",activeIndex:`${this.activeIndex}`})}))},this.onSpotClick=t=>{const e=this.activeIndex<t?"LTR":"RTL";this.activeIndex=t,this.spots=l(this.totalSlideCount,this.activeIndex,this.onSpotClick),this.updateActiveIndex&&this.updateActiveIndex(this.cardId,this.activeIndex),(0,n.Z)(this.carouselContent.assignedElements(),(t=>{this.updateAttribute(t,{direction:e,isInitial:"1",activeIndex:`${this.activeIndex}`})}))}}connectedCallback(){super.connectedCallback(),this.totalSlideCount=this.carouselContent.assignedElements().length,(0,n.Z)(this.carouselContent.asshbin