import { defineComponent as c, createElementBlock as n, openBlock as i, createElementVNode as t, Fragment as u, renderList as d, normalizeClass as _, toDisplayString as m } from "vue";
const b = { class: "separated-quick-buttons" }, k = { class: "separated-quick-buttons__title" }, f = { class: "separated-quick-buttons__actions scrollbar" }, A = /* @__PURE__ */ c({
  __name: "WABASeparatedQuickButtons",
  props: {
    buttons: {
      type: Array,
      default: []
    }
  },
  emits: ["selectAllVariants"],
  setup(a, { emit: o }) {
    const l = {
      URL: "bi-box-arrow-up-right",
      PHONE_NUMBER: "bi-telephone",
      QUICK_REPLY: "bi-arrow-90deg-left"
    }, r = o;
    return (v, e) => (i(), n("div", b, [
      t("div", k, [
        e[1] || (e[1] = t("p", null, "Все варианты", -1)),
        t("span", {
          class: "pi pi-times",
          onClick: e[0] || (e[0] = (s) => r("selectAllVariants"))
        })
      ]),
      t("div", f, [
        (i(!0), n(u, null, d(a.buttons, (s, p) => (i(), n("div", {
          key: p,
          class: "separated-quick-buttons__action"
        }, [
          t("span", {
            class: _(["pi pi-arrow-up-left", l[s.type]])
          }, null, 2),
          t("p", null, m(s.text), 1)
        ]))), 128))
      ])
    ]));
  }
});
export {
  A as default
};
