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