import { defineComponent as g, ref as a, createBlock as v, openBlock as x, unref as s, withCtx as y, createTextVNode as c, createElementVNode as D, toDisplayString as r } from "vue";
import { DasDialog as C } from "@das-fed/ui/packages/components/dialog/index";
import { t as V } from "@das-fed/web/packages/i18n/index";
const b = {
  name: "deleteDialog"
}, B = /* @__PURE__ */ g({
  ...b,
  emits: ["confirm", "cancel", "close"],
  setup(k, { expose: i, emit: f }) {
    const t = a(""), e = a(!1), l = f, m = () => {
      e.value = !1, l("cancel");
    }, u = () => {
      e.value = !1, l("confirm");
    }, d = (n) => {
      t.value = n, e.value = !0;
    }, p = () => {
      console.log("close"), l("close");
    };
    return i({
      open: d
    }), (n, o) => (x(), v(s(C), {
      onClose: p,
      onCancel: m,
      onConfirm: u,
      defaultFooter: "",
      size: "mini",
      feedType: "delete",
      modelValue: e.value,
      "onUpdate:modelValue": o[0] || (o[0] = (_) => e.value = _),
      type: "feedback",
      "destroy-on-close": "",
      bodyStyle: "font-size: 16px;"
    }, {
      default: y(() => [
        c(
          r(t.value),
          1
          /* TEXT */
        ),
        o[1] || (o[1] = D(
          "br",
          null,
          null,
          -1
          /* CACHED */
        )),
        c(
          r(s(V)("确定要删除吗？")),
          1
          /* TEXT */
        )
      ]),
      _: 1,
      __: [1]
    }, 8, ["modelValue"]));
  }
});
export {
  B as default
};
