// Copyright 2026 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';
import { hasAllowedInputs } from './common.js';
export function getHtml() {
    // clang-format off
    return html `<!--_html_template_start_-->
    ${hasAllowedInputs(this.inputState, this.usePecApi) ? html `
      <cr-composebox-contextual-entrypoint-button id="entrypointButton"
          exportparts="context-menu-entrypoint-icon, entrypoint-button"
          .inputState="${this.inputState}"
          .sharedTabs="${this.sharedTabs}"
          .restoredTabs="${this.aimThreadRestoredTabs}"
          .smartTabSharingActive="${this.smartTabSharingActive}"
          @context-menu-entrypoint-click="${this.onContextMenuEntrypointClick_}"
          @context-menu-entrypoint-hover="${this.onContextMenuEntrypointHover_}"
          ?upload-button-disabled="${this.uploadButtonDisabled}"
          ?show-context-menu-description="${this.showContextMenuDescription}"
          .glifAnimationState="${this.glifAnimationState}"
          .energyEffectAnimationEnabled="${this.energyEffectAnimationEnabled}"
          .disableFallbackGlifAnimation="${this.disableFallbackGlifAnimation}">
      </cr-composebox-contextual-entrypoint-button>
    ` : ''}
    <cr-composebox-contextual-action-menu id="menu"
        .fileNum="${this.fileNum}"
        .nonTabFileNum="${this.nonTabFileNum}"
        .isSidePanel="${this.isSidePanel}"
        .disabledTabIds="${this.disabledTabIds}"
        .aimThreadRestoredTabs="${this.aimThreadRestoredTabs}"
        .tabSuggestions="${this.tabSuggestions}"
        .recentTabId="${this.recentTabId}"
        .inputState="${this.inputState}"
        .smartTabSharingActive="${this.smartTabSharingActive}"
        .smartTabSharingVisible="${this.smartTabSharingVisible}"
        .contextManagementInComposeboxEnabled="${this.contextManagementInComposeboxEnabled}"
        .disableAutoReposition="${this.disableAutoReposition}"
        .uploadButtonDisabled="${this.uploadButtonDisabled}"
        .shareTabsFlyoutOpen="${this.shareTabsFlyoutOpen}"
        @close="${this.onMenuClose_}">
    </cr-composebox-contextual-action-menu>
  <!--_html_template_end_-->`;
    // clang-format on
}
