a(39181),oe=a(13988);const re=ne.d`
    <img
        alt=${e=>e.leadImageAltText}
        class="coachmark_lead_image"
        src=${e=>e.leadImage}
        style="width:${e=>e.leadImageWidth}"
    />
`,se=ne.d`
    <img
        alt=${e=>e.mainImageAltText}
        class="coachmark-mainImage"
        src=${e=>e.mainImage}
        style="height:${e=>e.mainImageHeight};width:${e=>e.mainImageWidth}"
    />
`,ce=ne.d`
    <div class="pointerContainer">
        <svg
            class="pointer"
            height="26"
            id="coachmarkPointerElement"
            style="filter:${e=>e.pointerDropShadow}"
            viewBox="0 0 26 26"
            width="26"
        >
            <polygon points="${e=>e.pointerPoints}"></polygon>
        </svg>
    </div>
`,he=ne.d`
    ${(0,oe.g)((e=>e.mainImage),se)}
`,de=ne.d`
    <fluent-button
        appearance="accent"
        aria-label=${e=>e.ctaButtonOneText}
        role="button"
        class="ctaButton"
        style="width:${e=>e.coachmarkButtonWidth}"
        id="ctaButton"
        tabindex="0"
        title=${e=>e.ctaButtonOneText}
        @click=${(e,t)=>e.ctaButtonHandler(t.event,0,null)}
        @keydown=${(e,t)=>e.ctaButtonKeyDownHandler(t.event,0)}
        data-t="${e=>e.ctaButtonOneTelemetryTag.getMetadataTag()}"
    >
        ${e=>e.ctaButtonOneText}
    </fluent-button>
`,me=ne.d`
    <fluent-anchor
        appearance="accent"
        aria-label=${e=>e.ctaButtonOneText}
        class="ctaButton"
        style="width:${e=>e.coachmarkButtonWidth}"
        href=${e=>e.ctaButtonOneURL}
        id="ctaButton"
        tabindex="0"
        target="_blank"
        title=${e=>e.ctaButtonOneText}
        @click=${(e,t)=>e.ctaButtonHandler(t.event,0,null)}
        @keydown=${(e,t)=>e.ctaButtonKeyDownHandler(t.event,0)}
        data-t="${e=>e.ctaButtonOneTelemetryTag.getMetadataTag()}"
    >
        ${e=>e.ctaButtonOneText}
    </fluent-anchor>
`,le=ne.d`
    <fluent-button
        appearance="neutral"
        aria-label=${e=>e.ctaButtonTwoText}
        role="button"
        class="ctaButton"
        style="width:${e=>e.coachmarkButtonWidth}"
        id="ctaButtonTwo"
        tabindex="0"
        title=${e=>e.ctaButtonTwoText}
        @click=${(e,t)=>e.isSecondaryButtonAction?e.ctaButtonHandler(t.event,1,null):e.closeCoachmark(t.event,l.M.Dismiss,C.Aw.Click,C.wu.Hide,!0)}
        @keydown=${(e,t)=>e.isSecondaryButtonAction?e.ctaButtonKeyDownHandler(t.event,1):e.lastElementKeyDownHandler(t.event)}
        data-t="${e=>e.ctaButtonTwoTelemetryTag.getMetadataTag()}"
    >
        ${e=>e.ctaButtonTwoText}
    </fluent-button>
`,ue=ne.d`
    <div class="footer-actions">
        ${(0,oe.g)((e=>e.ctaButtonOneText&&!e.ctaButtonOneURL),de)}
        ${(0,oe.g)((e=>e.ctaButtonOneText&&e.ctaButtonOneURL),me)}
        ${(0,oe.g)((e=>e.ctaButtonTwoText),le)}
    </div>
`,ge=ne.d`
    <div class="coachmark">
        ${(0,oe.g)((e=>e.showPointer),ce)}
        <fluent-dialog
            class="dialog"
            id="coachmarkElement"
            role="dialog"
            aria-labelledby=${e=>e.head}
            part="dialog"
            style="width:${e=>e.coachmarkWidth}"
            @keydown=${(e,t)=>e.keyDownHandler(t.event)}
            data-t="${e=>e.coachmarkDialogTelemetryTag.getMetadataTag()}"
            modal="${e=>e.isModal}"
        >
        ${(0,oe.g)((e=>e.showPointer||e.mainImage),he)}
            <div class="main-container">
            <div class="coachmark_content">
                    <div class="${e=>e.leadImage?"header_lead_image":"header"}">
                        ${(0,oe.g)((e=>e.leadImage),re)}
                        <div class="coachmark_title_head_container">
                            <h1 class="coachmark_title">
                                ${e=>e.head}
                            </h1>
                            <div class="input-container">
                                ${e=>e.body}
                            </div>
                        </div>
                    </div>
                </div>
                ${(0,oe.g)((e=>e.ctaButtonOneText||e.ctaButtonTwoText),ue)}
            </div>
            <fluent-button
                    appearance="stealth"
                    aria-label=${e=>e.closeText}
                    role="button"
                    class="close-button ${e=>e.mainImage?"close-button-with-img":""}"
                    id="closeButton"
                    tabindex="0"
                    title=${e=>e.closeText}
                    @click=${(e,t)=>e.closeCoachmark(t.event,l.M.Dismiss,C.Aw.Click,C.wu.Close,!1,!0)}
                    @keydown=${(e,t)=>e.closeButtonKeyDownHandler(t.event)}
                    data-t="${e=>e.closeButtonTelemetryTag.getMetadataTag()}"
                >
                    <svg viewBox="0 0 16 16" width="16px" height="16px" xmlns="http://www.w3.org/2000/svg"><path d="M14.1016 1.60156L8.20312 7.5L14.1016 13.3984L13.3984 14.1016L7.5 8.20312L1.60156 14.1016L0.898438 13.3984L6.79688 7.5L0.898438 1.60156L1.60156 0.898438L7.5 6.79688L13.3984 0.898438L14.1016 1.60156Z"></path></svg>
                </fluent-button>
        </fluent-dialog>
    </div>
`,pe=ne.d`
    ${(0,oe.g)((e=>e.addCoachmarkToPage),ge)}
`;var ke=a(32804),ve=a(22674),fe=a(53046);const Ce=fe.i`
    .close-button {
        left: auto;
        right: 4px;
    }
    .coachmark_lead_image {
        margin-left: auto;
        margin-right: 16px;
    }
`,ye=fe.i`
    .close-button {
        left: 4px;
        right: auto;
    }
    .coachmark_lead_image {
        margin-left: 16px;
        margin-right: auto;
    }
`,we=fe.i`
    .close-button {
        background: transparent;
        height: 24px;
        min-width: 24px;
        position: absolute;
        top: 4px;
    }
    .close-button::part(control) {
        margin: 0;
        padding: 0;
    }
    .close-button svg {
        height: 12px;
        width: 12px;
    }
    .close-button-with-img svg {
        color: rgb(38, 38, 38);
    }
    .coachmark: {
        z-index: var(--top-site-dialog-z-index);
    }
    .coachmark-mainImage {
        display: grid;
        -webkit-user-drag: none;
    }
    .coachmark_content {
        display: grid;
        grid-template-columns: max-content auto;
    }
    .ctaButton {
        font-size: 12px;
        height: auto;
        line-height: 16px;
        min-height: 32px;
    }
    .ctaButton::part(control) {
        white-space: normal;
        word-break: break-word;
    }
    .dialog {
        bottom: var(--dialog-bottom, auto);
        left: var(--dialog-left, auto);
        position: fixed;
        right: var(--dialog-right, auto);
        top: var(--dialog-top, auto);
        --dialog-height: var(--top-site-dialog-height, auto);
    }
    fluent-dialog::part(positioning-region) {
        border-radius: 2px;
        overflow: unset;
        position: var(--dialog-position, relative);
        width: inherit;
    }
    fluent-dialog::part(control) {
        border: none;
        height: auto;
        width: auto;
    }
    .footer-actions {
        margin-top: 14px;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .header {
        grid-column: 2;
        grid-row: 1;
        letter-spacing: 0.6px;
        line-height: 20px;
    }
    .header_lead_image:has(> img) {
        grid-column: 2;
    }
    .header_lead_image {
        display: grid;
        grid-column: 2;
        grid-row: 1;
    }
    .coachmark_lead_image {
        grid-column: 1;
        grid-row: 1;
    }
    .coachmark_title_head_container{
        display: grid;
        grid-column: 2;
        grid-row: 1;
        letter-spacing: 0.6px;
        line-height: 20px;
        text-align: left;
    }
    .coachmark_title {
        letter-spacing: 0.6px;
        line-height: 24px;
        margin-bottom: 12px;
        -webkit-user-select: none;
    }
    .input-container {
        color: ${ke.CHi};
        font-family: ${ke.SVJ};
        font-size: ${ke.cSu};
        justify-content: space-between;
        line-height: 20px;
        -webkit-user-select: none;
    }
    :host {
        position: relative;
        --control-corner-radius: 2;
        --dialog-z-index: 0;
        --layer-corner-radius: 4;
    }
    h1 {
        color: ${ke.CHi};
        cursor: default;
        font-size: 16px;
        font-weight: 600;
        line-height: 20px;
        margin-bottom: 0;
        margin-top: 0;
    }
    .main-container {
        background-color: ${ke.s55};
        display: grid;
        padding: 14px 16px;
    }
    .pointer {
        fill: var(--neutral-layer-floating);
        position: fixed;
        z-index: 2;
    }
    .pointerContainer {
        height: 13px;
    }
`.withBehaviors(new ve.O(Ce,ye)),be={experienceConfigSchema:c}},90042:function(e,t,a){a.d(t,{S:function(){return c}});var i=a(33940),n=a(65135),o=a(17440),r=a(75192),s=a(26415);const c=new class{constructor(e){this.userNurturingManager=e}getAllLocalCoachmarkCampaignsByKey(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!(yield this.userNurturingManager.isApiAvailableToUse()))return this.sendClientLogEvent(`User's preference for local campaign ${e} could not be fetched.`),this.buildKeyErrorResponse();const t=yield this.userNurturingManager.getPreferenceSetting(e);return t&&t.value}))}getLocalCoachmarkCampaignByKeyAndName(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!(yield this.userNurturingManager.isApiAvailableToUse()))return this.sendClientLogEvent(`User's preference for local campaign ${e} and name ${t} could not be fetched.`),this.buildErrorResponse();const a=yield this.userNurturingManager.getPreferenceSetting(e),i=a&&a.value;return i&&i.find((e=>e&&e.name===t))}))}setLocalCoachmarkCampaignByKeyAndName(e,t,a,n){return(0,i.mG)(this,void 0,void 0,(function*(){if(!(yield this.userNurturingManager.isApiAvailableToUse()))return void this.sendClientLogEvent(`User's preference for local campaign key ${e} and name ${t} could not be set.`);const i=yield this.userNurturingManager.getPreferenceSetting(e),o=i&&i.value?i.value:[],r=o.find((e=>e&&e.name===t)),s=o.indexOf(r),c=r&&r.count||0,h={name:t,count:c+1,source:a,time:n||(new Date).getTime()};s>-1?o[s]=h:o.push(h),this.userNurturingManager.savePreferenceSetting(e,o)}))}clearLocalCoachmarkCampaignByKeyAndName(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!(yield this.userNurturingManager.isApiAvailableToUse()))return void this.sendClientLogEvent(`User's preference for local campaign ${e} and name ${t} could not be cleared.`);const a=yield this.userNurturingManager.getPreferenceSetting(e),i=a&&a.value,n=i&&i.filter((e=>e&&e.name!==t));n&&this.userNurturingManager.savePreferenceSetting(e,n)}))}clearAllLocalCoachmarkCampaignsByKey(e){return(0,i.mG)(this,void 0,void 0,(function*(){(yield this.userNurturingManager.isApiAvailableToUse())?this.userNurturingManager.deleteKeyValueFromPSL(e):this.sendClientLogEvent(`User's preference for local campaign ${e} could not be cleared.`)}))}sendClientLogEvent(e,t){const a={message:e,type:"information",pb:Object.assign(Object.assign({},(0,s.mnt)()),{customMessage:t})};n.M0.sendClientLogEvent(a)}buildKeyErrorResponse(){return[this.buildErrorResponse(!0)]}buildErrorResponse(e=!1){const t=e?"getAllLocalCoachmarkCampaignsByKey":"clearLocalCoachmarkCampaignByKeyAndName";return{count:-1,name:r.rr.apiError,source:t,time:(new Date).getTime()}}}(o.U)},35618:function(e,t,a){a.d(t,{Ar:function(){return s},He:function(){return m},L$:function(){return d},Pg:function(){return g},VU:function(){return n},Y0:function(){return r},gn:function(){return o},rp:function(){return i},t9:function(){return l},u3:function(){return h},xG:function(){return u},xn:function(){return c}});const i="myfeed",n="OnLoadAutoScrollPromptSeen",o=760,r=300,s="OptInStickPromptLoad",c="OnLoadAutoScrollPrompt",h="OptInStickMetadata",d="OnLoadAutoScrollMetadata",m="sticky_peek",l=3,u=30,g=new Set([s,c])},53146:function(e,t,a){a.d(t,{H:function(){return C},Ie:function(){return B},Ms:function(){return w},Qb:function(){return T},WL:function(){return I},Wi:function(){return p},Wr:function(){return f},cj:function(){return x},cs:function(){return E},mX:function(){return y},oW:function(){return u},pS:function(){return g}});var i=a(33940),n=a(90042),o=a(58155),r=a(70694),s=a(65337),c=a(16517),h=a(35618),d=a(61366),m=a(65135),l=a(12884);function u(e,t){return function(e){return h.Pg.has(e)}(e)&&t<=h.gn}function g(e,t){if(!e||void 0===(null==t?void 0:t.selectedFeedDisplaySetting))return h.Ar;return e&&e.find((e=>e&&e.name===h.Ar))&&"peek"!==(null==t?void 0:t.selectedFeedDisplaySetting)?h.xn:h.Ar}function p(e,t,a,i,n){if("always"===(null==t?void 0:t.selectedFeedDisplaySetting))return!1;if(!o.c.getQueryParameterByName("vptest",(0,l.zp)())&&!a&&n<h.t9)return!1;const c=null==a?void 0:a.find((e=>e&&e.name===h.Ar)),d=null==a?void 0:a.find((e=>e&&e.name===h.xn)),m=((null==c?void 0:c.count)||0)+((null==d?void 0:d.count)||0);if(!k(c)||!k(d)||m>2)return!1;const u=innerHeight>h.gn;return!(!t||r.p.isDhpPage()||!u||i&&i.toLocaleLowerCase()!==h.rp)&&function(e,t,a){const i=(0,s.$o)().getObject(v(e));if(!i)return!0;return i.nextEligible<t&&i.timesSeen<a}(e,(new Date).getTime(),3)}function k(e){if(!e)return!0;return(new Date).getTime()>new Date(e.time+24*h.xG*60*60*1e3).getTime()}function v(e){return e===h.xn?h.L$:h.u3}function f(e){const t=v(e);let a=(0,s.$o)().getObject(t);a||(a={nextEligible:0,timesSeen:0});const i=a&&a.timesSeen+1,n=(new Date).getTime(),o=new Date(n+24*h.xG*60*60*1e3).getTime();a.timesSeen=i,a.nextEligible=o,(0,s.$o)().setObject(t,a)}function C(){let e=(0,s.$o)().getItem("spVisitsMetadata")?+(0,s.$o)().getItem("spVisitsMetadata"):0;return e++,(0,s.$o)().setItem("spVisitsMetadata",e.toString()),e}function y(e){(0,s.$o)().setItem(e,"true")}function w(){return(0,i.mG)(this,void 0,void 0,(function*(){return n.S.getAllLocalCoachmarkCampaignsByKey(h.He)}))}function b(){return(0,i.mG)(this,void 0,void 0,(function*(){yield n.S.clearAllLocalCoachmarkCampaignsByKey(h.He)}))}function T(e){if(!e)return;const t=`${e}Seen`;(0,s.$o)().getItem(t)&&m.M0.addOrUpdateTmplProperty(t,"1")}function E(e){if(!e)return;const t=`${e}Seen`;m.M0.addOrUpdateTmplProperty(t,"1")}function x(){return"1"===o.c.getQueryParameterByName("forceImageTest",(0,l.zp)())||"1"===o.c.getQueryParameterByName("vptest",(0,l.zp)())||"vp"===o.c.getQueryParameterByName("reqsrc",(0,l.zp)())}function I(){return(0,i.mG)(this,void 0,void 0,(function*(){const e=o.c.getQueryParameterByName("clearStickyPeekPref",(0,l.zp)());e?yield function(e){return(0,i.mG)(this,void 0,void 0,(function*(){yield n.S.clearLocalCoachmarkCampaignByKeyAndName(h.He,e)}))}(e):"1"===o.c.getQueryParameterByName("clearAllStickyPeekPrefs",(0,l.zp)())&&(yield b());o.c.getQueryParameterByName("isAutoScrollTest",(0,l.zp)())&&((0,s.$o)().removeItem(h.u3),(0,s.$o)().removeItem(h.L$),yield b(),yield n.S.setLocalCoachmarkCampaignByKeyAndName(h.He,h.Ar,"ntp",1))}))}function B(){var e;return(null===(e=null===c.jG||void 0===c.jG?void 0:c.jG.CurrentRequestTargetScope)||void 0===e?void 0:e.audienceMode)===d.F.Enterprise}}}]);A
Eo