import { defineComponent as n, computed as p, openBlock as r, createElementBlock as o, normalizeStyle as s, normalizeClass as c, unref as d, Fragment as m, renderList as i, createBlock as f, createCommentVNode as y } from "vue";
import "../../../config-provider/index.mjs";
import "../ApStatus.vue.mjs";
import { useNamespace as g } from "../../../config-provider/hooks/use-namespace.mjs";
import _ from "../ApStatus.vue2.mjs";
const w = /* @__PURE__ */ n({
  name: "ApStatusGroup",
  __name: "ApStatusGroup",
  props: {
    padding: { default: 8 },
    currentValue: { default: 0 },
    statusList: { default: null },
    style: {},
    show: { type: Boolean, default: !0 }
  },
  setup(a) {
    const t = a, u = p(() => ({
      ...t.style
    })), { b: l } = g("ap-status-group");
    return (k, x) => t.statusList ? (r(), o("div", {
      key: 0,
      class: c([d(l)()]),
      style: s(u.value)
    }, [
      (r(!0), o(m, null, i(t.statusList, (e) => (r(), f(_, {
        key: e.value,
        show: e.value === a.currentValue,
        color: e.color,
        text: e.text,
        padding: t.padding,
        style: s(t.style)
      }, null, 8, ["show", "color", "text", "padding", "style"]))), 128))
    ], 6)) : y("", !0);
  }
});
export {
  w as default
};
