import*as ComponentHelpers from"../../../ui/components/helpers/helpers.js";import*as LitHtml from"../../../ui/lit-html/lit-html.js";import elementsPanelLinkStyles from"./elementsPanelLink.css.js";export class ElementsPanelLink extends HTMLElement{static litTagName=LitHtml.literal`devtools-elements-panel-link`;#e=this.attachShadow({mode:"open"});#n=()=>{};#t=()=>{};#l=()=>{};set data(e){this.#n=e.onElementRevealIconClick,this.#t=e.onElementRevealIconMouseEnter,this.#l=e.onElementRevealIconMouseLeave,this.#o()}#o(){this.#s()}connectedCallback(){this.#e.adoptedStyleSheets=[elementsPanelLinkStyles]}#s(){LitHtml.render(LitHtml.html`
      <span
        class="element-reveal-icon"
        @click=${this.#n}
        @mouseenter=${this.#t}
        @mouseleave=${this.#l}></span>
      `,this.#e,{host:this})}}ComponentHelpers.CustomElements.defineComponent("devtools-elements-panel-link",ElementsPanelLink);