.LO],T.prototype,"enableDisplay",void 0),(0,l.gn)([u.LO],T.prototype,"topStickyBreakpoint",void 0);var k=e(39181),x=e(58952),B=e(13988),v=e(1938),w=e(82204),f=e(99150),m=e(38156),$=e(60483);const y=()=>new $.D({name:"BackToTopButton",behavior:m.wu.Navigate}).getMetadataTag(),C=t=>k.d`<div class="button-root-wrapper 
    ${t=>`${"backToTop"===t.config.icon?"backToTop":"icon"}\n    ${t.enableDisplay&&!t.config.isControl?"":"hide"}\n    `}" part="button-root-wrapper">
    <output role="alert" aria-label="${t.strings.backToTopAriaLabel}">
    ${(0,B.g)((t=>"backToTop"===t.config.icon),(t=>k.d`<fluent-button class="button-text-root" part="button-text-root" tabindex="0"
    title="${t.strings.backToTopTooltip}"
    aria-label="${t.strings.backToTopAriaLabel}"
    ${(0,x.i)("backToTopButton")}
    data-t="${()=>y()}"
    @click="${o=>t.backToTopButtonProps.onClick(o,p.BackToTop)}">
    ${v.Z}
    <span class="text">${t.strings[t.config.text]}</span>
</fluent-button>`)(t))}
    ${(0,B.g)((t=>"search"===t.config.icon),(t=>k.d`<fluent-button class="search-svg" part="button-root" tabindex="0"
    title="${t.strings.openSearchBoxTooltip}"
    aria-label="${t.strings.openSearchBoxAriaLabel}"
    ${(0,x.i)("openSearchButton")}
    data-t="${()=>y()}"
    @click="${o=>t.backToTopButtonProps.onClick(o,p.OpenSearchBox)}">
    ${w.Z}
</fluent-button>`)(t))}
    ${(0,B.g)((t=>"arrow"===t.config.icon),(t=>k.d`<fluent-button class="arrow-svg" part="button-root" tabindex="0"
    title="${t.strings.backToTopTooltip}"
    aria-label="${t.strings.backToTopAriaLabel}"
    ${(0,x.i)("backToTopArrowButton")}
    data-t="${()=>y()}"
    @click="${o=>t.backToTopButtonProps.onClick(o,p.BackToTop)}">
    ${f.Z}
</fluent-button>`)(t))}
    </output>
</div>`,S=k.d`${t=>t.backToTopButtonProps?C(t):""}`;var H=e(22674),O=e(32804),L=e(53046),D=e(40082);const F={bottom:40,right:100,height:32,width:143,color:"#FFFFFF",shadow:"0 0 0 1px rgb(0 0 0 / 8%), 0 4px 12px 1px rgb(0 0 0 / 20%)"},P=L.i`
    .button-root-wrapper {
        right: var(--right, ${F.right+"px"});
    }
`,Z=L.i`
    .button-root-wrapper {
        left: var(--right, ${F.right+"px"});
    }

    div.hide {
        transform: translateX(-100px);
    }
`,j=L.i`
.button-root-wrapper {
    box-sizing: border-box;
    z-index: 100;
    max-width: 95%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius, 20px);

    position: fixed;
    bottom: var(--bottom, ${F.bottom+"px"});
    width: var(--width, ${F.width+"px"});
    height: var(--height, ${F.height+"px"});
    margin: var(--margin);
    border: var(--border);
    box-shadow: var(--boxShadow, ${F.shadow});
    background: var(--bgColor, ${F.color});
    color: var(--color, #000000);
    padding: var(--padding);
    opacity: 1;
    transform: none;
    transition: transform .4s cubic-bezier(.3,.55,.1,1), opacity .1s;
    --elevation: 4;
    --srchbtn-color: #0078D4;
}

.button-root-wrapper:hover {
    background: var(--hoverBgColor, #F2f2F2);
}

.button-text-root {
    --svgWidth: 10px;
    --svgHeight: 13px;
}

div.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateX(100px);
}

.backToTop {
    --border: 1px solid #0078D4;
    --color: #0078D4;
    --lineHeight: 16px;
}

.icon {
    --width: 56px;
    --height: 56px;
    --border-radius: 999px;
}

output {
    width: 100%
}

fluent-button {
    width: 100%;
    font-size: var(--fontSize, 12px);
    line-height: var(--lineHeight);
    color: var(--color, #000000);
    background-color: unset;
    -webkit-tap-highlight-color: transparent;
}

fluent-button .text {
    margin-left: 3px;
}

svg {
    width: var(--svgWidth);
    height: var(--svgHeight);
}

.search-svg {
    --svgWidth: 24px;
    --svgHeight: 24px;
}

.arrow-svg {
    --svgWidth: 20px;
    --svgHeight: 23px;
}

`.withBehaviors(new H.O(P,Z),(0,D.Uu)(L.i`
        .button-root-wrapper {
            background: #2b2b2b;
            --srchbtn-color: ${O.CHi};
        }
        .button-root-wrapper:hover {
            background: var(--hoverBgColor, #3d3d3d);
        }
        .backToTop {
            --border: 1px solid #636363;
            --color: ${O.CHi};
        }
        .icon {
            --color: ${O.CHi};
        }
    `)),A={experienceConfigSchema:s}}}]);A
Eo