import { defineComponent as c, resolveComponent as r, createElementBlock as m, openBlock as p, withModifiers as u, normalizeClass as _, renderSlot as f, createElementVNode as b, createVNode as i } from "vue";
import { _ as w } from "./install-BuMO14Rb.js";
const k = { class: "wt-inline-add-panel__actions" }, v = /* @__PURE__ */ c({
  __name: "wt-inline-add-panel",
  props: {
    disabledAddAction: { type: Boolean, default: !1 },
    direction: { default: "row" }
  },
  emits: [
    "submit",
    "reset"
  ],
  setup(d, { emit: s }) {
    const e = d, t = s;
    function n() {
      t("submit");
    }
    function l() {
      t("reset");
    }
    return (a, A) => {
      const o = r("wt-button");
      return p(), m("form", {
        class: _(["wt-inline-add-panel", [`wt-inline-add-panel--${e.direction}`]]),
        onSubmit: u(n, ["prevent"])
      }, [
        f(a.$slots, "default", {}, void 0, !0),
        b("div", k, [
          i(o, {
            disabled: e.disabledAddAction,
            icon: "tick",
            color: "secondary",
            outlined: "",
            onClick: n
          }, null, 8, ["disabled"]),
          i(o, {
            icon: "close",
            outlined: "",
            color: "secondary",
            onClick: l
          })
        ])
      ], 34);
    };
  }
}), y = /* @__PURE__ */ w(v, [["__scopeId", "data-v-478b9069"]]);
export {
  y as default
};
