import '@das-fed/ui/packages/business-components/user-org-dialog/style.css';
import { ref as i, defineComponent as Z, computed as S, createElementBlock as B, openBlock as V, createVNode as c, unref as l, isRef as ke, withCtx as h, withDirectives as Te, toDisplayString as E, h as se, onMounted as pe, watch as ve, nextTick as ge, createElementVNode as I, createBlock as Q, mergeProps as ze, createCommentVNode as De, createTextVNode as oe } from "vue";
import { withInstall as Oe } from "@das-fed/utils/with-install/index";
import { i18n as D, t as Y, setI18nRule as we } from "@das-fed/web/packages/i18n/index";
import { DasTabs as Ne } from "@das-fed/ui/packages/components/tabs/index";
import { DasButton as re } from "@das-fed/ui/packages/components/button/index";
import { DasDialog as Ve } from "@das-fed/ui/packages/components/dialog/index";
import { getProjectInfo as Ue } from "@das-fed/utils/common-info";
import { DasSearch as fe } from "@das-fed/ui/packages/components/search/index";
import { DasSpin as me } from "@das-fed/ui/packages/components/spin/index";
import { DasSplitPanel as he } from "@das-fed/ui/packages/components/split-panel/index";
import { DasTable as be, DasTableColumn as j } from "@das-fed/ui/packages/components/table/index";
import { DasTree as Ce } from "@das-fed/ui/packages/components/tree/index";
import { DasSelectList as Pe } from "@das-fed/ui/packages/components/select-list/index";
import { vDasTooltip as Ie } from "@das-fed/ui/packages/components/text-tooltip/index";
import { enterpriseright as $e } from "@das-fed/utils/api-services/modules/enterpriseright";
import { createService as xe } from "@das-fed/utils/create-api-service";
import { DasTooltip as Re } from "@das-fed/ui/packages/components/tooltip/index";
const _ = i([]), Le = { class: "select-list-container" }, Ae = { class: "check-text" }, Be = { key: 0 }, Ee = { key: 1 }, Ke = { key: 2 }, qe = { key: 3 }, je = {
  name: "selectList"
}, Fe = /* @__PURE__ */ Z({
  ...je,
  props: {
    isSelectedSensitive: { type: Boolean, default: !0 }
  },
  emits: ["itemRemove", "clearCheck"],
  setup(y, { emit: O }) {
    const u = y, r = S(() => u.isSelectedSensitive), m = O, k = (U) => {
      console.log("移除的数据-itemRemove", U), m("itemRemove", U);
    }, T = (U) => {
      console.log("移除的数据-clearCheck", U), m("clearCheck");
    };
    return (U, w) => (V(), B("div", Le, [
      c(l(Pe), {
        modelValue: l(_),
        "onUpdate:modelValue": w[0] || (w[0] = (d) => ke(_) ? _.value = d : null),
        width: "100%",
        height: "100%",
        "custom-style": { border: "none" },
        onItemRemove: k,
        onRemoveAll: T
      }, {
        default: h(({ item: d }) => [
          Te((V(), B("div", Ae, [
            d.identityType == 2 ? (V(), B(
              "span",
              Be,
              E(d.name),
              1
              /* TEXT */
            )) : d.identityType == 1 && r.value ? (V(), B(
              "span",
              Ee,
              E(d.name) + E(d.sensitivePhone ? `(${d.sensitivePhone})` : ""),
              1
              /* TEXT */
            )) : d.identityType == 1 && !r.value ? (V(), B(
              "span",
              Ke,
              E(d.name) + E(d.phone ? `(${d.phone})` : ""),
              1
              /* TEXT */
            )) : (V(), B(
              "span",
              qe,
              E(d.name),
              1
              /* TEXT */
            ))
          ])), [
            [l(Ie)]
          ])
        ]),
        _: 1
        /* STABLE */
      }, 8, ["modelValue"])
    ]));
  }
}), ee = (y, O) => {
  const u = y.__vccOpts || y;
  for (const [r, m] of O)
    u[r] = m;
  return u;
}, Me = /* @__PURE__ */ ee(Fe, [["__scopeId", "data-v-5b1d2b02"]]), ue = i(null), Se = (y, O, u) => ({
  selectListRef: ue,
  selectListVue: () => se(Me, {
    isSelectedSensitive: y,
    onItemRemove: O,
    onClearCheck: u,
    ref: ue
  })
}), Ge = "v1", He = `/api/fms/base/interface//${Ge}`, _e = xe(`${He}`), ye = _e.post("/organization/authtree"), Je = $e.post("/organization/user"), Qe = _e.post("/organization/organizationpage"), We = { class: "select-org-container" }, Xe = { class: "split-left-content" }, Ye = { class: "split-right-box" }, Ze = { class: "split-table" }, et = { class: "table-searc-box" }, tt = { class: "split-table-content" }, at = { class: "split-checkd" }, lt = {
  name: "selectOrg"
}, ot = /* @__PURE__ */ Z({
  ...lt,
  props: {
    projectId: { default: "" },
    isSelectedSensitive: { type: Boolean, default: !0 },
    initProps: {}
  },
  setup(y, { expose: O }) {
    const u = y, r = S(() => {
      var t;
      return ((t = u.initProps) == null ? void 0 : t.isCustomApi) || !1;
    }), m = S(() => {
      var t;
      return ((t = u.initProps) == null ? void 0 : t.disabledNodeLabel) || "optional";
    }), k = S(() => {
      var t, s;
      return (s = (t = u.initProps) == null ? void 0 : t.customApiOptions) == null ? void 0 : s.orgTree;
    }), T = S(() => {
      var t, s;
      return (s = (t = u.initProps) == null ? void 0 : t.customApiOptions) == null ? void 0 : s.orgTable;
    }), U = S(() => u.isSelectedSensitive), w = i(!1), d = i([]), p = i(""), K = i(""), v = i(""), $ = i([]), b = i([]), N = i(20), g = i(1), x = i(0);
    pe(() => {
      console.log("onMounted-selectOrgRef"), W(), R();
    });
    const R = () => {
      b.value = _.value.filter((t) => t.identityType == 2);
    }, F = (t) => {
      t && t instanceof Array && (b.value = t.filter((s) => s.identityType == 1));
    }, M = (t) => {
      console.log("itemRemove-移除的数据org：", t), b.value = b.value.filter((s) => s.id != t.id);
    }, G = () => {
      console.log("clearCheck"), _.value = [], b.value = [];
    }, { selectListVue: H } = Se(U.value, M, G), J = (t) => {
      var e, a, o;
      const s = r.value && ((e = k.value) != null && e.disabledOrgTypes) && ((a = k.value) == null ? void 0 : a.disabledOrgTypes.length) > 0 ? (o = k.value) == null ? void 0 : o.disabledOrgTypes : [1, 2, 3, 4, 5, 6];
      t._disabled = !t[m.value] || s.includes(t.type), !t._disabled && !p.value && (p.value = t.id), t.children && t.children.length && t.children.forEach((n) => {
        J(n);
      });
    }, W = async () => {
      var o, n;
      w.value = !0;
      let t = {};
      if (console.log(k.value, "customOrgTree.value"), r.value && k.value) {
        const { params: f = {}, query: A = {} } = k.value;
        t = { ...f, ...A };
      } else
        t = {
          name: "",
          parentId: "",
          implicit: !1
        };
      const s = r.value && ((o = k.value) != null && o.api) ? (n = k.value) == null ? void 0 : n.api : ye, [e, a] = await s(t).run();
      if (e) {
        w.value = !1;
        return;
      }
      a && a.length && a.forEach((f) => {
        J(f);
      }), d.value = a, console.log("getTree", a), P();
    }, C = async () => {
      var o, n;
      if (!p.value) {
        w.value = !1, $.value = [], x.value = 0;
        return;
      }
      w.value = !0;
      let t = {};
      if (r.value && T.value) {
        const { params: f = {}, query: A = {}, treeKey: q = "", searchKey: z = "" } = T.value;
        t = { ...f, ...A }, q ? t[q] = p.value : t.parentId = p.value, z ? t[z] = v.value : t.search = v.value;
      } else
        t = {
          parentId: p.value,
          // 树id
          search: v.value
          // 名称
        };
      t.pageIndex = g.value, t.pageSize = N.value;
      const s = r.value && ((o = T.value) != null && o.api) ? (n = T.value) == null ? void 0 : n.api : Qe, [e, a] = await s(t).run();
      if (console.log("getList", e, a), e) {
        w.value = !1;
        return;
      }
      $.value = a.data.map((f) => (f.identityType = 2, f)), x.value = Number(a.totalCount), w.value = !1;
    }, P = () => {
      console.log("---------resetSearch 查询"), v.value = "", K.value = "", $.value = [], N.value = 20, g.value = 1, L();
    }, L = () => {
      console.log("---------change 查询"), g.value = 1, C();
    }, te = (t) => {
      console.log("handleSizeChange", t), g.value = 1, N.value = t, C();
    }, X = (t) => {
      console.log("handleCurrentChange", t), g.value = t, C();
    }, ae = (t) => {
      console.log("handleSelectionChange", t);
      let s = [], e = [];
      t.forEach((a) => {
        s.push(a.id);
      }), $.value.forEach((a) => {
        s.includes(a.id) || e.push(a.id);
      }), _.value = _.value.filter((a) => !e.includes(a.id)), t.forEach((a) => {
        _.value.some((o) => o.id === a.id) || (console.log("2222222222222"), _.value.push(a));
      });
    };
    return ve(
      () => p,
      () => {
        ge(() => {
          C();
        });
      },
      {
        immediate: !0,
        deep: !0
      }
    ), O({
      setSelectData: F
    }), (t, s) => (V(), B("div", We, [
      c(l(me), { spinning: w.value }, {
        default: h(() => [
          c(l(he), {
            defaultSplit: { first: 223 },
            canFold: !0,
            canDrag: !0,
            boxStyle: {
              border: "none"
            }
          }, {
            firstSlot: h(() => [
              I("div", Xe, [
                c(l(Ce), {
                  ref: "organizationTree",
                  data: d.value,
                  isFilter: "",
                  "node-key": "id",
                  props: { disabled: "_disabled" },
                  inputOptions: { placeholder: l(D)("搜索组织名称").value },
                  modelValue: p.value,
                  "onUpdate:modelValue": s[0] || (s[0] = (e) => p.value = e),
                  "filter-value": K.value,
                  "onUpdate:filterValue": s[1] || (s[1] = (e) => K.value = e),
                  "is-ellipsis": ""
                }, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
              ])
            ]),
            secondSlot: h(() => [
              I("div", Ye, [
                I("div", Ze, [
                  I("div", et, [
                    c(l(fe), {
                      modelValue: v.value,
                      "onUpdate:modelValue": s[2] || (s[2] = (e) => v.value = e),
                      searchType: "basis",
                      isIconLeft: "",
                      size: "small",
                      placeholder: l(D)("搜索组织名称/组织编码").value,
                      onChange: L
                    }, null, 8, ["modelValue", "placeholder"])
                  ]),
                  I("div", tt, [
                    c(l(be), {
                      height: "100%",
                      data: $.value,
                      total: x.value,
                      selection: "",
                      "pagination-props": { layout: "prev,next,sizes", small: !0 },
                      "current-page": g.value,
                      "onUpdate:currentPage": s[3] || (s[3] = (e) => g.value = e),
                      "selection-rows": b.value,
                      "onUpdate:selectionRows": s[4] || (s[4] = (e) => b.value = e),
                      "page-size": N.value,
                      "onUpdate:pageSize": s[5] || (s[5] = (e) => N.value = e),
                      onSizeChange: te,
                      onSelectionChange: ae,
                      onCurrentPageChange: X
                    }, {
                      default: h(() => [
                        c(l(j), {
                          label: l(D)("组织名称").value,
                          prop: "name"
                        }, null, 8, ["label"]),
                        c(l(j), {
                          label: l(D)("组织编码").value,
                          prop: "code"
                        }, null, 8, ["label"]),
                        c(l(j), {
                          label: l(D)("组织路径").value,
                          prop: "pathName"
                        }, null, 8, ["label"])
                      ]),
                      _: 1
                      /* STABLE */
                    }, 8, ["data", "total", "current-page", "selection-rows", "page-size"])
                  ])
                ]),
                I("div", at, [
                  c(l(H))
                ])
              ])
            ]),
            _: 1
            /* STABLE */
          })
        ]),
        _: 1
        /* STABLE */
      }, 8, ["spinning"])
    ]));
  }
}), st = /* @__PURE__ */ ee(ot, [["__scopeId", "data-v-2677514c"]]), ce = i(null), nt = (y, O, u) => ({
  selectOrgRef: ce,
  selectOrgVue: () => se(st, {
    projectId: y,
    isSelectedSensitive: O,
    ref: ce,
    initProps: u
  })
}), it = { class: "select-user-container" }, rt = { class: "split-left-content" }, ut = { class: "split-right-box" }, ct = { class: "split-table" }, dt = { class: "table-searc-box" }, pt = { class: "split-checkd" }, vt = {
  name: "selectUser"
}, gt = /* @__PURE__ */ Z({
  ...vt,
  props: {
    projectId: { default: "" },
    isTableSensitive: { type: Boolean, default: !0 },
    isSelectedSensitive: { type: Boolean, default: !0 },
    initProps: {}
  },
  setup(y, { expose: O }) {
    const u = y, r = i(), m = S(() => {
      var e;
      return ((e = u.initProps) == null ? void 0 : e.isCustomApi) || !1;
    }), k = S(() => {
      var e;
      return ((e = u.initProps) == null ? void 0 : e.disabledNodeLabel) || "optional";
    }), T = S(() => {
      var e, a;
      return (a = (e = u.initProps) == null ? void 0 : e.customApiOptions) == null ? void 0 : a.orgTree;
    }), U = S(() => {
      var e, a;
      return (a = (e = u.initProps) == null ? void 0 : e.customApiOptions) == null ? void 0 : a.userTable;
    }), w = S(() => u.isTableSensitive), d = S(() => u.isSelectedSensitive), p = i(!1), K = i([]), v = i(""), $ = i(""), b = i(""), N = i([]), g = i([]), x = i(20), R = i(1), F = i(0);
    pe(() => {
      console.log("onMounted-selectUser"), P(), M();
    });
    const M = () => {
      g.value = _.value.filter((e) => e.identityType == 1);
    }, G = (e) => {
      e && e instanceof Array && (g.value = e.filter((a) => a.identityType == 1));
    }, H = (e) => {
      console.log("itemRemove-移除的数据user：", e), g.value = g.value.filter((a) => a.id != e.id);
    }, J = () => {
      console.log("clearCheck"), _.value = [], g.value = [];
    }, { selectListVue: W } = Se(d.value, H, J), C = (e) => {
      var o, n, f;
      const a = m.value && ((o = T.value) != null && o.disabledOrgTypes) && ((n = T.value) == null ? void 0 : n.disabledOrgTypes.length) > 0 ? (f = T.value) == null ? void 0 : f.disabledOrgTypes : [1, 2, 3, 4, 5, 6];
      e._disabled = !e[k.value] || a.includes(e.type), !e._disabled && !v.value && (v.value = e.id), e.children && e.children.length && e.children.forEach((A) => {
        C(A);
      });
    }, P = async () => {
      var f, A;
      p.value = !0;
      let e = {};
      if (m.value && T.value) {
        const { params: q = {}, query: z = {} } = T.value;
        e = { ...q, ...z };
      } else
        e = {
          name: "",
          parentId: "",
          implicit: !1
        };
      const a = m.value && ((f = T.value) != null && f.api) ? (A = T.value) == null ? void 0 : A.api : ye, [o, n] = await a(e).run();
      if (o) {
        p.value = !1;
        return;
      }
      n && n.length && n.forEach((q) => {
        C(q);
      }), K.value = n, console.log("getTree", n), te();
    }, L = async () => {
      var f, A, q;
      if (!v.value) {
        p.value = !1, N.value = [], F.value = 0;
        return;
      }
      p.value = !0;
      let e = {};
      if (m.value && U.value) {
        const { params: z = {}, query: le = {}, treeKey: ne = "", searchKey: ie = "" } = U.value;
        e = { ...z, ...le }, ne ? e[ne] = v.value : e.id = v.value, ie ? e[ie] = b.value : e.filterValue = b.value;
      } else
        e = {
          id: v.value,
          //组织id
          filterValue: b.value
          //账号或姓名
        };
      e.pageIndex = R.value, e.pageSize = x.value, e.statusList = [1, 2];
      const a = m.value && ((f = U.value) != null && f.api) ? (A = U.value) == null ? void 0 : A.api : Je, [o, n] = await a(e).run();
      if (console.log("getList", o, n), o) {
        p.value = !1;
        return;
      }
      p.value = !1, N.value = (q = n == null ? void 0 : n.data) == null ? void 0 : q.map((z) => {
        z.identityType = 1;
        let le = z.status == 1 ? Y("das-user-org-dialog-user-normal") : z.status == 2 ? Y("das-user-org-dialog-user-locked") : z.status == 3 ? Y("das-user-org-dialog-user-disable") : "";
        return z.statusName = (z == null ? void 0 : z.statusName) || le, z;
      }), F.value = Number(n.totalCount);
    }, te = () => {
      console.log("---------resetSearch 查询"), b.value = "", $.value = "", N.value = [], x.value = 20, R.value = 1, X();
    }, X = () => {
      console.log("---------change 查询"), R.value = 1, L();
    }, ae = (e) => {
      console.log("handleSizeChange", e), R.value = 1, x.value = e, L();
    }, t = (e) => {
      console.log("handleCurrentChange", e), R.value = e, L();
    }, s = (e) => {
      console.log("handleSelectionChange", e);
      let a = [], o = [];
      e.forEach((n) => {
        a.push(n.id);
      }), N.value.forEach((n) => {
        a.includes(n.id) || o.push(n.id);
      }), _.value = _.value.filter((n) => !o.includes(n.id)), e.forEach((n) => {
        _.value.some((f) => f.id === n.id) || (console.log("2222222222222"), _.value.push(n));
      });
    };
    return ve(
      () => v,
      () => {
        ge(() => {
          L();
        });
      },
      {
        immediate: !0,
        deep: !0
      }
    ), O({
      setSelectData: G
    }), (e, a) => (V(), B("div", it, [
      c(l(me), { spinning: p.value }, {
        default: h(() => [
          c(l(he), {
            defaultSplit: { first: 223 },
            canFold: !0,
            canDrag: !0,
            boxStyle: {
              border: "none"
            }
          }, {
            firstSlot: h(() => [
              I("div", rt, [
                c(l(Ce), {
                  ref: "organizationTree",
                  data: K.value,
                  isFilter: "",
                  "node-key": "id",
                  props: { disabled: "_disabled" },
                  inputOptions: { placeholder: l(D)("搜索组织名称").value },
                  modelValue: v.value,
                  "onUpdate:modelValue": a[0] || (a[0] = (o) => v.value = o),
                  "filter-value": $.value,
                  "onUpdate:filterValue": a[1] || (a[1] = (o) => $.value = o),
                  "is-ellipsis": ""
                }, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
              ])
            ]),
            secondSlot: h(() => [
              I("div", ut, [
                I("div", ct, [
                  I("div", dt, [
                    c(l(fe), {
                      modelValue: b.value,
                      "onUpdate:modelValue": a[2] || (a[2] = (o) => b.value = o),
                      searchType: "basis",
                      isIconLeft: "",
                      size: "small",
                      placeholder: l(D)("搜索姓名/账号").value,
                      onChange: X
                    }, null, 8, ["modelValue", "placeholder"])
                  ]),
                  I(
                    "div",
                    {
                      class: "split-table-content",
                      ref_key: "splitTableRef",
                      ref: r
                    },
                    [
                      c(l(be), {
                        height: "100%",
                        ref: "treeTableRef",
                        data: N.value,
                        total: F.value,
                        selection: "",
                        "pagination-props": { layout: "prev,next,sizes", small: !0 },
                        "current-page": R.value,
                        "onUpdate:currentPage": a[3] || (a[3] = (o) => R.value = o),
                        "selection-rows": g.value,
                        "onUpdate:selectionRows": a[4] || (a[4] = (o) => g.value = o),
                        "page-size": x.value,
                        "onUpdate:pageSize": a[5] || (a[5] = (o) => x.value = o),
                        onSizeChange: ae,
                        onSelectionChange: s,
                        onCurrentPageChange: t
                      }, {
                        default: h(() => [
                          c(l(j), {
                            label: l(D)("姓名").value,
                            prop: "name"
                          }, null, 8, ["label"]),
                          c(l(j), {
                            label: l(D)("账号").value,
                            prop: "userName"
                          }, null, 8, ["label"]),
                          w.value ? (V(), Q(l(j), {
                            key: 0,
                            label: l(D)("手机号").value,
                            prop: "sensitivePhone"
                          }, {
                            default: h(({ row: o }) => [
                              c(l(Re), {
                                placement: "top",
                                content: o.phone,
                                "append-to": r.value
                              }, {
                                default: h(() => [
                                  I(
                                    "span",
                                    null,
                                    E(o.sensitivePhone),
                                    1
                                    /* TEXT */
                                  )
                                ]),
                                _: 2
                                /* DYNAMIC */
                              }, 1032, ["content", "append-to"])
                            ]),
                            _: 1
                            /* STABLE */
                          }, 8, ["label"])) : (V(), Q(l(j), {
                            key: 1,
                            label: l(D)("手机号").value,
                            prop: "phone"
                          }, null, 8, ["label"])),
                          c(l(j), {
                            label: l(D)("状态").value,
                            prop: "statusName"
                          }, null, 8, ["label"])
                        ]),
                        _: 1
                        /* STABLE */
                      }, 8, ["data", "total", "current-page", "selection-rows", "page-size"])
                    ],
                    512
                    /* NEED_PATCH */
                  )
                ]),
                I("div", pt, [
                  c(l(W))
                ])
              ])
            ]),
            _: 1
            /* STABLE */
          })
        ]),
        _: 1
        /* STABLE */
      }, 8, ["spinning"])
    ]));
  }
}), ft = /* @__PURE__ */ ee(gt, [["__scopeId", "data-v-7e5b1660"]]), de = i(null), mt = (y, O, u, r) => ({
  selectUserRef: de,
  selectUserVue: () => se(ft, {
    projectId: y,
    isTableSensitive: O,
    isSelectedSensitive: u,
    ref: de,
    initProps: r
  })
}), ht = { class: "select-org-user-dialog-box" }, bt = {
  key: 0,
  class: "select-org-user-dialog-content"
}, Ct = { class: "foot-btn-box" }, St = {
  name: "selectOrganizationAndUser"
}, _t = /* @__PURE__ */ Z({
  ...St,
  props: {
    header: { default: "" },
    selectData: { default: [] },
    isTableSensitive: { type: Boolean, default: !0 },
    isSelectedSensitive: { type: Boolean, default: !0 },
    disabledNodeLabel: {},
    isCustomApi: { type: Boolean, default: !1 },
    customApiOptions: {},
    singleTabKey: { default: "" }
  },
  emits: ["update:modelValue", "selectConfirm", "selectCancel"],
  setup(y, { expose: O, emit: u }) {
    const r = y, m = u, k = i(!1), T = S(() => r.header || Y("添加组织/用户")), U = S(() => r.isTableSensitive), w = S(() => r.isSelectedSensitive), d = S(() => r.singleTabKey), p = S({
      get: () => r.modelValue,
      set: (C) => m("update:modelValue", C)
    }), K = Ue().id, { selectOrgVue: v, selectOrgRef: $ } = nt(K, w.value, r), { selectUserVue: b, selectUserRef: N } = mt(
      K,
      U.value,
      w.value,
      r
    ), g = i(1), x = [
      {
        key: 1,
        tab: D("组织").value,
        contentSlot: "contentSlot1"
      },
      {
        key: 2,
        tab: D("用户").value,
        contentSlot: "contentSlot2"
      }
    ], R = () => {
      m("selectCancel");
    }, F = async () => {
      m("selectConfirm", _.value);
    }, M = (C) => {
      console.log("menuClick", C);
    }, G = () => {
      console.log("handleCloseDialog"), g.value = 1, k.value = !1, m("selectCancel");
    }, H = () => {
      console.log("handleOpenDialog"), _.value = r.selectData, k.value = !0;
    };
    return O({
      setUserSelectData: (C) => {
        var P;
        (P = N == null ? void 0 : N.value) == null || P.setSelectData(C);
      },
      setOrgSelectData: (C) => {
        var P;
        (P = $ == null ? void 0 : $.value) == null || P.setSelectData(C);
      }
    }), (C, P) => (V(), B("div", ht, [
      c(l(Ve), ze({
        modelValue: p.value,
        "onUpdate:modelValue": P[1] || (P[1] = (L) => p.value = L)
      }, C.$attrs, {
        customClass: "select-org-user-dialog",
        type: "basic",
        size: "small",
        width: 961,
        height: 580,
        bodyStyle: {
          padding: "0"
        },
        onClose: G,
        onOpen: H
      }), {
        header: h(() => [
          oe(
            E(T.value),
            1
            /* TEXT */
          )
        ]),
        footer: h(() => [
          I("div", Ct, [
            c(l(re), {
              size: "middle",
              onClick: R
            }, {
              default: h(() => [
                oe(
                  E(l(D)("取消").value),
                  1
                  /* TEXT */
                )
              ]),
              _: 1
              /* STABLE */
            }),
            c(l(re), {
              btnType: "primary",
              size: "middle",
              onClick: F
            }, {
              default: h(() => [
                oe(
                  E(l(D)("确定").value),
                  1
                  /* TEXT */
                )
              ]),
              _: 1
              /* STABLE */
            })
          ])
        ]),
        default: h(() => [
          k.value ? (V(), B("div", bt, [
            d.value == 1 ? (V(), Q(l(v), { key: 0 })) : d.value == 2 ? (V(), Q(l(b), { key: 1 })) : (V(), Q(l(Ne), {
              key: 2,
              activeKey: g.value,
              "onUpdate:activeKey": P[0] || (P[0] = (L) => g.value = L),
              isStrict: "",
              hideAdd: "",
              options: x,
              onChange: M
            }, {
              contentSlot1: h(() => [
                c(l(v))
              ]),
              contentSlot2: h(() => [
                c(l(b))
              ]),
              _: 1
              /* STABLE */
            }, 8, ["activeKey"]))
          ])) : De("v-if", !0)
        ]),
        _: 1
        /* STABLE */
      }, 16, ["modelValue"])
    ]));
  }
}), yt = /* @__PURE__ */ ee(_t, [["__scopeId", "data-v-139fae42"]]), kt = {
  搜索姓名: { "zh-CN": "搜索姓名", en: "Search name", _appCode: "framework" },
  账号: { "zh-CN": "账号", en: "Account", _appCode: "framework" },
  姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
  手机号: { "zh-CN": "手机号", en: "Phone Number", _appCode: "framework" },
  状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
  搜索组织名称: { "zh-CN": "搜索组织名称", en: "Search organization name", _appCode: "framework" },
  组织编码: { "zh-CN": "组织编码", en: "Organization Code", _appCode: "framework" },
  组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
  组织路径: { "zh-CN": "组织路径", en: "Organization Path", _appCode: "framework" },
  取消: { "zh-CN": "取消", en: "Cancel", _appCode: "framework" },
  确定: { "zh-CN": "确定", en: "OK", _appCode: "framework" },
  组织: { "zh-CN": "组织", en: "Organization", _appCode: "framework" },
  "添加组织/用户": { "zh-CN": "添加组织/用户", en: "Add organization/user", _appCode: "framework" },
  "搜索组织名称/组织编码": {
    "zh-CN": "搜索组织名称/组织编码",
    en: "Search organization name/code",
    _appCode: "framework"
  },
  "搜索姓名/账号": { "zh-CN": "搜索姓名/账号", en: "Search name/account", _appCode: "framework" },
  "das-user-org-dialog-user-normal": { "zh-CN": "正常", en: "Normal", _appCode: "framework" },
  "das-user-org-dialog-user-locked": { "zh-CN": "锁定", en: "Locked", _appCode: "framework" },
  "das-user-org-dialog-user-disable": { "zh-CN": "禁用", en: "Disabled", _appCode: "framework" }
};
we(kt);
const Kt = () => i(null), qt = Oe(yt);
export {
  qt as DasUserOrgDialog,
  Kt as DasUserOrgDialogRef
};
