var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import '../../panel/one-row-color-panel.js';
import '../../buttons/tool-icon-button.js';
import '../common/slide-menu.js';
import { WithDisposable } from '@blockeditor/lit';
import { css, html, LitElement, nothing } from 'lit';
import { customElement, property } from 'lit/decorators.js';
let EdgelessTextMenu = class EdgelessTextMenu extends WithDisposable(LitElement) {
    render() {
        if (this.edgeless.edgelessTool.type !== 'text')
            return nothing;
        return html `
      <edgeless-slide-menu .menuWidth=${476}>
        <div class="menu-content">
          <edgeless-one-row-color-panel
            .value=${this.color}
            @select=${(e) => this.onChange({ color: e.detail })}
          ></edgeless-one-row-color-panel>
        </div>
      </edgeless-slide-menu>
    `;
    }
};
EdgelessTextMenu.styles = css `
    :host {
      display: flex;
      position: absolute;
      z-index: -1;
    }
  `;
__decorate([
    property({ attribute: false })
], EdgelessTextMenu.prototype, "edgeless", void 0);
__decorate([
    property({ attribute: false })
], EdgelessTextMenu.prototype, "color", void 0);
__decorate([
    property({ attribute: false })
], EdgelessTextMenu.prototype, "onChange", void 0);
EdgelessTextMenu = __decorate([
    customElement('edgeless-text-menu')
], EdgelessTextMenu);
export { EdgelessTextMenu };
//# sourceMappingURL=text-menu.js.map