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 { css, html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { GeneralStyleIcon, ScribbledStyleIcon, } from '../../../../_common/icons/index.js';
import { ShapeStyle } from '../../../../surface-block/index.js';
let EdgelessShapeStylePanel = class EdgelessShapeStylePanel extends LitElement {
    _onSelect(value) {
        this.value = value;
        if (this.onSelect) {
            this.onSelect(value);
        }
    }
    render() {
        return html `
      <div class="shape-style-container">
        <edgeless-tool-icon-button
          class="general-shape-button"
          .tooltip=${'General'}
          .tipPosition=${'top'}
          .active=${this.value === ShapeStyle.General}
          .activeMode=${'background'}
          .iconContainerPadding=${2}
          @click=${() => {
            this._onSelect(ShapeStyle.General);
        }}
        >
          ${GeneralStyleIcon}
        </edgeless-tool-icon-button>
        <edgeless-tool-icon-button
          class="scribbled-shape-button"
          .tooltip=${'Scribbled'}
          .tipPosition=${'top'}
          .active=${this.value === ShapeStyle.Scribbled}
          .activeMode=${'background'}
          .iconContainerPadding=${2}
          @click=${() => {
            this._onSelect(ShapeStyle.Scribbled);
        }}
        >
          ${ScribbledStyleIcon}
        </edgeless-tool-icon-button>
      </div>
    `;
    }
};
EdgelessShapeStylePanel.styles = css `
    .shape-style-container {
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--affine-background-overlay-panel-color);
      z-index: 2;
      gap: 8px;
      padding: 0;
    }

    edgeless-tool-icon-button svg {
      fill: var(--affine-icon-color);
    }
  `;
__decorate([
    property({ attribute: false })
], EdgelessShapeStylePanel.prototype, "value", void 0);
__decorate([
    property({ attribute: false })
], EdgelessShapeStylePanel.prototype, "onSelect", void 0);
EdgelessShapeStylePanel = __decorate([
    customElement('edgeless-shape-style-panel')
], EdgelessShapeStylePanel);
export { EdgelessShapeStylePanel };
//# sourceMappingURL=shape-style-panel.js.map