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 { h } from '@stencil/core';
import { MapToComponentField, VegaSlimmer } from 'vega-slimmer/core';
const buttonList = [
  'rte-table-column',
  'rte-table-row',
  'rte-table-merge-cells',
  'rte-table-properties',
  'rte-table-cell-properties',
  'rte-table-caption',
];
export class VegaRichTextTableSettingRenderer extends VegaSlimmer {
  render() {
    return (h("vega-flex", { gap: "size-8", class: "rte-table-setting-content" }, buttonList.map((item) => this.renderButton(item))));
  }
  renderButton(item) {
    switch (item) {
      case 'rte-table-column':
        return this.columnButtonSlimmer.render();
      case 'rte-table-row':
        return this.rowButtonSlimmer.render();
      case 'rte-table-merge-cells':
        return this.mergeCellsButtonSlimmer.render();
      case 'rte-table-properties':
        return this.tablePropertiesButtonSlimmer.render();
      case 'rte-table-cell-properties':
        return this.cellPropertiesButtonSlimmer.render();
      default:
        return this.captionButtonSlimmer.render();
    }
  }
}
__decorate([
  MapToComponentField()
], VegaRichTextTableSettingRenderer.prototype, "captionButtonSlimmer", void 0);
__decorate([
  MapToComponentField()
], VegaRichTextTableSettingRenderer.prototype, "columnButtonSlimmer", void 0);
__decorate([
  MapToComponentField()
], VegaRichTextTableSettingRenderer.prototype, "rowButtonSlimmer", void 0);
__decorate([
  MapToComponentField()
], VegaRichTextTableSettingRenderer.prototype, "tablePropertiesButtonSlimmer", void 0);
__decorate([
  MapToComponentField()
], VegaRichTextTableSettingRenderer.prototype, "cellPropertiesButtonSlimmer", void 0);
__decorate([
  MapToComponentField()
], VegaRichTextTableSettingRenderer.prototype, "mergeCellsButtonSlimmer", void 0);
