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 '../buttons/tool-icon-button.js';
import { WithDisposable } from '@blockeditor/lit';
import { css, html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { getEmbedCardIcons } from '../../../../_common/utils/url.js';
let EmbedCardStylePanel = class EmbedCardStylePanel extends WithDisposable(LitElement) {
    render() {
        const { EmbedCardHorizontalIcon, EmbedCardListIcon, EmbedCardVerticalIcon, EmbedCardCubeIcon, } = getEmbedCardIcons();
        return html `
      <icon-button
        width="76px"
        height="76px"
        class=${classMap({
            selected: this.value === 'horizontal',
        })}
        @click=${() => this.onSelect('horizontal')}
      >
        ${EmbedCardHorizontalIcon}
        <affine-tooltip .offset=${4}
          >${'Large horizontal style'}</affine-tooltip
        >
      </icon-button>

      <icon-button
        width="76px"
        height="76px"
        class=${classMap({
            selected: this.value === 'list',
        })}
        @click=${() => this.onSelect('list')}
      >
        ${EmbedCardListIcon}
        <affine-tooltip .offset=${4}
          >${'Small horizontal style'}</affine-tooltip
        >
      </icon-button>

      <icon-button
        width="76px"
        height="76px"
        class=${classMap({
            selected: this.value === 'vertical',
        })}
        @click=${() => this.onSelect('vertical')}
      >
        ${EmbedCardVerticalIcon}
        <affine-tooltip .offset=${4}>${'Large vertical style'}</affine-tooltip>
      </icon-button>

      <icon-button
        width="76px"
        height="76px"
        class=${classMap({
            selected: this.value === 'cube',
        })}
        @click=${() => this.onSelect('cube')}
      >
        ${EmbedCardCubeIcon}
        <affine-tooltip .offset=${4}>${'Small vertical style'}</affine-tooltip>
      </icon-button>
    `;
    }
};
EmbedCardStylePanel.styles = css `
    :host {
      border-radius: 8px;
      padding: 8px;
      gap: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--affine-background-overlay-panel-color);
      box-shadow: var(--affine-shadow-2);
    }

    icon-button {
      padding: var(--1, 0px);
    }

    icon-button.selected {
      border: 1px solid var(--affine-brand-color);
    }
  `;
__decorate([
    property({ attribute: false })
], EmbedCardStylePanel.prototype, "value", void 0);
__decorate([
    property({ attribute: false })
], EmbedCardStylePanel.prototype, "onSelect", void 0);
EmbedCardStylePanel = __decorate([
    customElement('embed-card-style-panel')
], EmbedCardStylePanel);
export { EmbedCardStylePanel };
//# sourceMappingURL=embed-card-style-panel.js.map