     target=${t=>t.target}
        title="${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.titleContent}}"
        data-t="${t=>t.cardTelemetryTag}"
    >
    </a>
`,styles:(t,e)=>d.i`
        ${(0,u.j)("grid")} :host {
            --elevation: 4;
            display: block;
            contain: content;
            content-visibility: auto;
            height: var(--card-height, 100%);
            width: var(--card-width, 100%);
            box-sizing: border-box;
            background: ${l.IfY};
            color: ${l.CHi};
            border-radius: calc(${l.rSr} * 3px);
            ${c.XC};
            font-family: ${l.SVJ};
            padding: var(--glance-card-content-padding, 12px);
            --more-actions-mobile-target-offset: -8px;
        }

        :host(:hover),
        :host(:focus-within) {
            --elevation: 8;
        }

        :host([acrylic]) {
            backdrop-filter: blur(var(--acrylic-blur, 40px));
        }

        .title {
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr auto;
            grid-gap: 8px;
            overflow: visible;
            align-items: center;
        }

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

        .card-link {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
        }

        ::slotted([slot="more-actions"]) {
            min-width: 24px;
            width: 24px;
            height: 24px;
            --control-corner-radius: 16;
            z-index: 1;
            position: relative;
            background: transparent;
        }

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

        ::slotted([slot="more-actions"]:active) {
            background: ${l.sG3};
        }

        ::slotted([slot="more-actions"])::after {
            top: var(--more-actions-mobile-target-offset);
            left: var(--more-actions-mobile-target-offset);
            right: var(--more-actions-mobile-target-offset);
            bottom: var(--more-actions-mobile-target-offset);
            z-index: 1;
            position: absolute;
            content: "";
        }
    `});var p=o(57905),m=o(84289),v=o(84925),b=o(64690),f=o(12517),y=o(83227);const C=(0,m.ii)("oneRiverInterestsPivotInfo","One River Interests Pivot Info","Config for interests pivot in anaheim",Object.assign(Object.assign(Object.assign({},(0,v.sz)("pivotId","Pivot Id","The ID of the interests pivot")),(0,v.sz)("configIndexHref","Config Index Link","The config index href for the interests experience")),(0,v.sz)("displayName","Interests Pivot Display Name","The display string for the interests pivot"))),w=(0,b.e)(y.x.onThisDayCardSmall,"OnThisDay Small Card Web Component experience",Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,m.G)("autoRotateInterval","Indicates auto rotate inveral in milli seconds")),(0,m.JJ)("autoRotateEnabled","Flag indicating whether event auto rotation is enabled")),(0,v.sz)("headerLinkHref","Link for header title")),(0,v.sz)("cardTarget","link open way")),C),(0,m.JJ)("enableGradientBackground","Flag if we enable colorful OnThisDay Card")),(0,f.u)({moreOptionsTooltip:"Localization for action menu button tool tip"})));var x=o(38156);const T="OnThisDayCard",O="BingAnswerCardInHistory_Customization";var k=o(9610),$=o(33832);class M extends k.l{constructor(){super(...arguments),this.isActionMenuOpen=!1,this.onOutsideClick=t=>{t.target instanceof M||this.actionsMenuButtonElement.contains(t.path[0])||this.toggleActionMenu(!1,null)},this.onKeydown=t=>{t.keyCode===$.Lp&&this.toggleActionMenu(!1,null)}}experienceConnected(){this.generateTelemetryTags()}shadowDomPopulated(){this.glanceCardData.target="_blank",this.glanceCardData.data={link:"https://www.bing.com",titleContent:"On this day!"},this.actionsMenuProps=this.generateActionsMenuProps(),this.description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",this.backgroundImage="https://www.bing.com/th?id=OHR.CuscoCathedral_FR-FR5105761134_1920x1080.jpg&w=360"}getExperienceType(){return y.x.onThisDayCardSmall}toggleActionMenu(t,e){this.isActionMenuOpen=t,this.isActionMenuOpen?(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))}generateActionsMenuProps(){return{menuItems:this.getActionMenuItem()}}generateTelemetryTags(){var t;if(!this.telemetryObject)return;const e=null===(t=this.parentTelemetry)||void 0===t?void 0:t.contract,o=null==e?void 0:e.ext;this.onThisDayCardTelemetryObject=this.telemetryObject.addOrUpdateChild({name:T,content:{type:x.uH.StructuredData},ext:o}),this.onThisDayCardTelemetryTag=this.onThisDayCardTelemetryObject.getMetadataTag(),this.moreSettingTelemetryTag=this.onThisDayCardTelemetryObject.addOrUpdateChild({name:O,behavior:x.wu.More,content:{headline:"More Options",type:x.uH.StructuredData},ext:o}).getMetadataTag()}getActionMenuItem(){return[{id:"more",glyph:'\n<svg width="11" height="3" viewBox="0 0 11 3" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M2.5 1.25C2.5 1.94036 1.94036 2.5 1.25 2.5C0.559644 2.5 0 1.94036 0 1.25C0 0.559644 0.559644 0 1.25 0C1.94036 0 2.5 0.559644 2.5 1.25Z" fill-opacity="0.83"/>\n    <path d="M6.5 1.25C6.5 1.94036 5.94036 2.5 5.25 2.5C4.55964 2.5 4 1.94036 4 1.25C4 0.559644 4.55964 0 5.25 0C5.94036 0 6.5 0.559644 6.5 1.25Z" fill-opacity="0.83"/>\n    <path d="M9.25 2.5C9.94036 2.5 10.5 1.94036 10.5 1.25C10.5 0.559644 9.94036 0 9.25 0C8.55964 0 8 0.559644 8 1.25C8 1.94036 8.55964 2.5 9.25 2.5Z" fill-opacity="0.83"/>\n</svg>\n',title:"More settings",onClick:()=>(0,n.mG)(this,void 0,void 0,(function*(){console.log("more button clicked")})),ariaLabel:"More settings"}]}}(0,n.gn)([r.LO],M.prototype,"description",void 0),(0,n.gn)([r.LO],M.prototype,"backgroundImage",void 0),(0,n.gn)([r.LO],M.prototype,"isActionMenuOpen",void 0),(0,n.gn)([r.LO],M.prototype,"actionsMenuProps",void 0),(0,n.gn)([r.LO],M.prototype,"onThisDayCardTelemetryTag",void 0),(0,n.gn)([r.LO],M.prototype,"moreSettingTelemetryTag",void 0);var I=o(58952),D=o(13988),j=o(11310),L=o.n(j);o(33763).S;const S=g.d`
<msn-actions-menu :referrerButton=${t=>t.actionsMenuButtonElement} :menuItems=${t=>t.actionsMenuProps.menuItems}>
</msn-actions-menu>
`,A=g.d`
<msft-glance-card ${(0,I.i)("glanceCardData")} data-t="${t=>t.onThisDayCardTelemetryTag}">
    <fluent-button
        id="option-button"
        appearance="neutral"
        class="more-actions"
        part="more-actions"
        slot="more-actions"
        @click=${(t,e)=>t.toggleActionMenu&&t.toggleActionMenu(!t.isActionMenuOpen,e.event)}
        title="${t=>t.strings.moreOptionsTooltip}"
        data-t="${t=>t.moreSettingTelemetryTag}"
        aria-label="${t=>t.strings.moreOptionsTooltip}">
        ${L()}
        role="button"
    </fluent-button>
    <img class="image" src="${t=>t.backgroundImage}"/>
    <span class="description">${t=>t.description}</span>
</msft-glance-card>
${(0,D.g)((t=>t.isActionMenuOpen),S)}
`,P=d.i`
:host {
    border-radius: 6px;
}

.description {
    bottom: 12px;
    display: -webkit-box;
    font-size: 13px;
    overflow: hidden;
    position: absolute;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.image {
    height: 146px;
    left: 0;
    position: absolute;
    top: 0;
    width: 144px;
    z-index: -1;
}

msft-glance-card {
    --card-height: 146px;
    --card-width: 144px;
    color: white;
}

svg {
    color: white;
}
`.withBehaviors(),z={experienceConfigSchema:w};p.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>p.h.ignoreDuplicate)).withPrefix("msft").register(h())},69298:function(t,e,o){o.d(e,{Zb:function(){return y},F:function(){return w},ay:function(){return C}});var n=o(33940),i=o(65130),a=o(97186),r=o(22680),s=o(87697),l=o(65620),c=o(48657),d=o(32804),u=o(42355),g=o(42255),h=o(53046),p=o(67020),m=o(40082),v=o(87839),b=o(62734);const f=(t,e)=>h.i`
        ${(0,p.j)("block")} :host {
            --elevation: 4;
            display: block;
            contain: content;
            height: var(--card-height, 100%);
            width: var(--card-width, 100%);
            box-sizing: border-box;
            background: ${d.IfY};
            color: ${d.CHi};
            border-radius: calc(${d.rSr} * 1px);
            ${b.XC}
        }

        :host(:hover) {
            --elevation: 8;
        }

        :host(:focus-within) {
            --elevation: 8;
        }

        :host {
            content-visibility: auto;
        }
    `.withBehaviors((0,m.vF)(h.i`
                :host {
                    forced-color-adjust: none;
                    background: ${v.H.Canvas};
                    box-shadow: 0 0 0 1px ${v.H.CanvasText};
                }
            `));class y extends i.Z{cardFillColorChanged(t,e){if(e){const t=(0,a.in)(e);null!==t&&(this.neutralPaletteSource=e,d.IfY.setValueFor(this,u.w.create(t.r,t.g,t.b)))}}neutralPaletteSourceChanged(t,e){if(e){const t=(0,a.in)(e),o=u.w.create(t.r,t.g,t.b);d.yvm.setValueFor(this,g.v.create(o))}}handleChange(t,e){this.cardFillColor||d.IfY.setValueFor(this,(e=>d.abR.getValueFor(e).evaluate(e,d.IfY.getValueFor(t))))}connectedCallback(){super.connectedCallback();const t=(0,r.T)(this);if(t){const e=s.y$.getNotifier(t);e.subscribe(this,"fillColor"),e.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}(0,n.gn)([(0,l.Lj)({attribute:"card-fill-color",mode:"fromView"}),(0,n.w6)("design:type",String)],y.prototype,"cardFillColor",void 0),(0,n.gn)([(0,l.Lj)({attribute:"neutral-palette-source",mode:"fromView"}),(0,n.w6)("design:type",String)],y.prototype,"neutralPaletteSource",void 0);const C=y.compose({baseName:"card",baseClass:i.Z,template:c.O,styles:f}),w=f},65130:function(t,e,o){o.d(e,{Z:function(){return i}});var n=o(48839);class i extends n.I{}},48657:function(t,e,o){o.d(e,{O:function(){return i}});var n=o(39181);const i=(t,e)=>n.d`
    <slot></slot>
`}}]);A
Eo