// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { html } from '//resources/lit/v3_0/lit.rollup.js';
export function getHtml() {
    // clang-format off
    return html `<!--_html_template_start_-->
    ${this.result?.matches.map((item, index) => html `
      <div part="match-wrapper" style="--match-wrapper-index: ${index};">
        <cr-composebox-match
            id="match${index}"
            aria-label="${this.computeAriaLabel_(item)}"
            exportparts="match-text-container, match-container,
                match-icon-container, match-focus-indicator,
                match-icon, match-remove-button"
            style="--loading-bar-animation-delay: ${index + 1};"
            tabindex="0"
            role="option"
            .match="${item}"
            .matchIndex="${index}"
            .toolMode="${this.toolMode}"
            .overrideClampLineNum="${this.overrideClampLineNum}"
            ?selected="${this.isSelected_(item)}"
            ?is-last="${this.isLastMatch_(index)}"
            ?hidden="${this.hideVerbatimMatch_(index) ||
        index > this.getMaxVisibleIndex_()}">
        </cr-composebox-match>
      </div>
    `)}
  <!--_html_template_end_-->`;
    // clang-format on
}
