import { DateTimeComp as a } from "./c2be1293.js";
import { ButtonComp as l } from "./62f393ec.js";
import { Y as e, h as m, a6 as r, G as i, F as p, bO as n } from "./603b75d9.js";
import "react";
import { BooleanComp as s } from "./56edae87.js";
import { SwitchComp as b } from "./e735e391.js";
import { DateComp as u } from "./11b05d65.js";
import { ImageComp as c } from "./140b48ce.js";
import { LinkComp as d } from "./f5fb28b1.js";
import { ColumnLinksComp as C } from "./930af84f.js";
import { ColumnMarkdownComp as g } from "./9c5ea6de.js";
import { ProgressComp as h } from "./7f1b43fa.js";
import { RatingComp as v } from "./43b58a96.js";
import { BadgeStatusComp as w } from "./19a46fb5.js";
import { ColumnTagsComp as f } from "./98f17e53.js";
import { ColumnSelectComp as T } from "./794d827a.js";
import { SimpleTextComp as x } from "./cf72e8e5.js";
import { ColumnNumberComp as k } from "./84cede66.js";
import { ColumnAvatarsComp as y } from "./3dfed0b7.js";
import { ColumnDropdownComp as V } from "./57f24d28.js";
import "./4963ac97.js";
import "./ffcffc16.js";
import "./26dac75c.js";
import "react-dom";
import "./0cc240d3.js";
import "./00d44232.js";
import "./f9847c56.js";
import "./a4d0e31e.js";
import "./41aba172.js";
import "./cee178c0.js";
import "./0cdeb449.js";
import "./d50792b8.js";
import "./f64a8554.js";
const S = [{
  label: e("table.avatars"),
  value: "avatars"
}, {
  label: e("table.text"),
  value: "text"
}, {
  label: e("table.number"),
  value: "number"
}, {
  label: e("table.link"),
  value: "link"
}, {
  label: e("table.links"),
  value: "links"
}, {
  label: e("table.tag"),
  value: "tag"
}, {
  label: e("table.select"),
  value: "select"
}, {
  label: e("table.dropdown"),
  value: "dropdown"
}, {
  label: e("table.badgeStatus"),
  value: "badgeStatus"
}, {
  label: e("table.button"),
  value: "button"
}, {
  label: e("table.image"),
  value: "image"
}, {
  label: e("table.date"),
  value: "date"
}, {
  label: e("table.dateTime"),
  value: "dateTime"
}, {
  label: "Markdown",
  value: "markdown"
}, {
  label: e("table.boolean"),
  value: "boolean"
}, {
  label: e("table.switch"),
  value: "switch"
}, {
  label: e("table.rating"),
  value: "rating"
}, {
  label: e("table.progress"),
  value: "progress"
}], D = {
  avatars: y,
  text: x,
  number: k,
  button: l,
  badgeStatus: w,
  link: d,
  tag: f,
  select: T,
  dropdown: V,
  links: C,
  image: c,
  markdown: g,
  dateTime: a,
  boolean: s,
  switch: b,
  rating: v,
  progress: h,
  date: u
}, P = m(D, "text");
class ne extends P {
  getView() {
    const o = this.children.comp.getView();
    return {
      view: (t) => o(t),
      value: this.children.comp.getDisplayValue()
    };
  }
  getPropertyView() {
    return /* @__PURE__ */ r(i, {
      children: [/* @__PURE__ */ p(n, {
        showSearch: !0,
        value: this.children.compType.getView(),
        options: S,
        label: e("table.columnType"),
        onChange: (o) => {
          let t = "{{currentCell}}";
          this.children.comp.children.hasOwnProperty("text") && (t = this.children.comp.children.text.toJsonValue()), this.dispatchChangeValueAction({
            compType: o,
            comp: {
              text: t
            }
          });
        }
      }), this.children.comp.getPropertyView()]
    });
  }
}
export {
  ne as ColumnTypeComp,
  D as ColumnTypeCompMap
};
