var D = Object.defineProperty;
var u = Object.getOwnPropertySymbols;
var B = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
var p = (t, e, d) => e in t ? D(t, e, { enumerable: !0, configurable: !0, writable: !0, value: d }) : t[e] = d, _ = (t, e) => {
  for (var d in e || (e = {}))
    B.call(e, d) && p(t, d, e[d]);
  if (u)
    for (var d of u(e))
      S.call(e, d) && p(t, d, e[d]);
  return t;
};
var w = (t, e, d) => new Promise((V, s) => {
  var n = (r) => {
    try {
      a(d.next(r));
    } catch (l) {
      s(l);
    }
  }, c = (r) => {
    try {
      a(d.throw(r));
    } catch (l) {
      s(l);
    }
  }, a = (r) => r.done ? V(r.value) : Promise.resolve(r.value).then(n, c);
  a((d = d.apply(t, e)).next());
});
import { l as _export_sfc, c5 as getOfficeTreeData, aM as levelOneChildren, aN as levelTwoChildren, a_ as get, U as Button } from "./index2.js";
import { h, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode } from "vue";
import { _ as __unplugin_components_2, a as __unplugin_components_5 } from "./index17.js";
import { C as Card } from "./index25.js";
const _sfc_main = {
  name: "TodoCommon",
  data() {
    return {
      drawer1Visible: !1,
      drawerVisible: !1,
      modalVisible: !1,
      iconModalVisible: !1,
      userValue: "",
      userIds: [],
      treeValue: "",
      treeSelectValue: "",
      content: "",
      options: [],
      emptyIcon: new URL("../static/img/empty.png", import.meta.url).href
    };
  },
  methods: {
    handSModalCancel(t) {
      console.log(t);
    },
    recursionChildren(t, e) {
      return getOfficeTreeData(t, e);
    },
    levelOneChildren(t) {
      return levelOneChildren(t);
    },
    levelTwoChildren(t) {
      return levelTwoChildren(t);
    },
    initOptions() {
      return w(this, null, function* () {
        this.options = yield getOfficeTreeData();
      });
    },
    handDrawerConfirm() {
      this.$message.success("点击了确定");
    },
    showMessage(t) {
      const e = typeof t == "object" ? t.method : t, d = _({
        method: e,
        content: `${t.content || e}`
      }, t);
      d.key || (d.key = "1"), d.method === "destroy" ? this.$message[d.method](d.key) : this.$message[d.method](d);
    },
    showNotice(t) {
      const e = typeof t == "object" ? t : {
        method: t
      };
      e.key || (e.key = "1"), e.method === "close" && this.$notice.close(e.key), this.$notice[e.method]({
        key: e.key,
        message: e.message || "提示",
        description: e.description || `点击了【${e.method}】按钮`
      });
    },
    showModal(t) {
      let e = {};
      typeof t == "object" ? e = t : e = {
        method: t
      };
      const d = _({
        title: e.method,
        content: h("div", {}, ["测试modal确认框"]),
        onOk() {
          console.log("ok");
        }
      }, e);
      this.$modal[e.method](d);
    },
    handUserChange(t, e, d) {
      this.userValue = e, this.userIds = d;
    },
    resultFn(str, data) {
      for (var reg = /\{(.+?)\}/, reg_g = /\{(.+?)\}/g, result = str.match(reg_g) || [], i = 0; i < result.length; i++) {
        var item = result[i];
        const t = item.match(reg)[1], e = get(data, t);
        str = str.replace(`{${t}}`, e);
      }
      try {
        return eval(str);
      } catch (t) {
        return console.log(t), !1;
      }
    }
  },
  mounted() {
    this.initOptions();
    const t = {
      amount: 3,
      answer: "option2",
      recordMap: {
        name: "张三1"
      }
    };
    this.resultFn("'{amount}' > 1 && '{recordMap.name}' === '张三1'", t);
  }
}, _hoisted_1 = { class: "todo-common" }, _hoisted_2 = { class: "mt-20 mb-20" }, _hoisted_3 = { class: "message-wrap" }, _hoisted_4 = { class: "item" }, _hoisted_5 = { class: "item" }, _hoisted_6 = { class: "item" }, _hoisted_7 = { class: "item" }, _hoisted_8 = { class: "message-wrap" }, _hoisted_9 = { class: "item" }, _hoisted_10 = { class: "item" }, _hoisted_11 = { class: "item" }, _hoisted_12 = { class: "item" }, _hoisted_13 = { class: "item" }, _hoisted_14 = { class: "item" }, _hoisted_15 = { class: "message-wrap" }, _hoisted_16 = { class: "item" }, _hoisted_17 = { class: "item" }, _hoisted_18 = { class: "item" }, _hoisted_19 = { class: "item" }, _hoisted_20 = { class: "item" }, _hoisted_21 = { class: "item" }, _hoisted_22 = { class: "drawer-list" }, _hoisted_23 = { class: "item" }, _hoisted_24 = { class: "icon-wrap" }, _hoisted_25 = { class: "item" }, _hoisted_26 = { class: "icon-wrap" }, _hoisted_27 = { class: "item" }, _hoisted_28 = { class: "icon-wrap" }, _hoisted_29 = { class: "icon-list" }, _hoisted_30 = { class: "item" }, _hoisted_31 = { class: "icon-wrap" }, _hoisted_32 = { class: "item" }, _hoisted_33 = { class: "item" }, _hoisted_34 = { class: "icon-wrap" }, _hoisted_35 = { class: "select-wrap" }, _hoisted_36 = { class: "item" }, _hoisted_37 = { class: "user-select-wrap mb-50" }, _hoisted_38 = { class: "tree-select" }, _hoisted_39 = { class: "item" }, _hoisted_40 = { class: "user-select-wrap mb-50" }, _hoisted_41 = { class: "tree-select" }, _hoisted_42 = { class: "item" }, _hoisted_43 = { class: "cascader-wrap mb-50" }, _hoisted_44 = { class: "cascader-cont" }, _hoisted_45 = { class: "tree-wrap mb-50" }, _hoisted_46 = { class: "tree-select" }, _hoisted_47 = { class: "tree-select-wrap mb-50" }, _hoisted_48 = { class: "tree-select" }, _hoisted_49 = { class: "editor-wrap mb-50" }, _hoisted_50 = { class: "empty-wrap mb-50" }, _hoisted_51 = { class: "item" }, _hoisted_52 = { class: "item-cont" }, _hoisted_53 = { class: "item" }, _hoisted_54 = { class: "item-cont" }, _hoisted_55 = { class: "item" }, _hoisted_56 = { class: "item-cont" }, _hoisted_57 = { class: "item" }, _hoisted_58 = { class: "item-cont" }, _hoisted_59 = { class: "item" }, _hoisted_60 = { class: "item-cont" }, _hoisted_61 = { class: "item" }, _hoisted_62 = { class: "item-cont" };
function _sfc_render(t, e, d, V, s, n) {
  const c = resolveComponent("router-link"), a = __unplugin_components_2, r = __unplugin_components_5, l = Button, N = resolveComponent("s-drawer"), C = resolveComponent("s-modal"), f = resolveComponent("s-icon-select"), E = resolveComponent("s-icon-modal"), x = resolveComponent("s-icon"), g = resolveComponent("s-office-select"), b = resolveComponent("s-user-select"), k = resolveComponent("s-cascader"), T = resolveComponent("s-tree"), y = resolveComponent("s-tree-select"), M = resolveComponent("s-editor"), m = resolveComponent("s-empty"), v = resolveComponent("s-file-upload"), U = resolveComponent("s-copper-upload"), O = resolveComponent("s-dragger-upload"), I = Card;
  return openBlock(), createElementBlock("div", _hoisted_1, [
    createVNode(I, { title: "代办页" }, {
      default: withCtx(() => [
        createVNode(r, null, {
          default: withCtx(() => [
            createVNode(a, { span: 2 }, {
              default: withCtx(() => [
                createVNode(c, { to: "/workbench/index" }, {
                  default: withCtx(() => [
                    createTextVNode(toDisplayString(t.$l("工作台", "workbench")), 1)
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            createVNode(a, { span: 2 }, {
              default: withCtx(() => [
                createVNode(c, { to: "/housing/listings" }, {
                  default: withCtx(() => [
                    createTextVNode(toDisplayString(t.$l("业务页", "business")), 1)
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          _: 1
        }),
        createElementVNode("div", _hoisted_2, [
          e[74] || (e[74] = createElementVNode("div", { class: "mb-20" }, [
            createTextVNode(" this.$modal.xxxx(config) || window.$modal.xxxx(config); "),
            createElementVNode("br")
          ], -1)),
          createElementVNode("div", _hoisted_3, [
            createElementVNode("div", _hoisted_4, [
              createVNode(l, {
                onClick: e[0] || (e[0] = (o) => n.showModal({ method: "success" }))
              }, {
                default: withCtx(() => e[31] || (e[31] = [
                  createTextVNode(" success ")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_5, [
              createVNode(l, {
                onClick: e[1] || (e[1] = (o) => n.showModal("error"))
              }, {
                default: withCtx(() => e[32] || (e[32] = [
                  createTextVNode("error")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_6, [
              createVNode(l, {
                onClick: e[2] || (e[2] = (o) => n.showModal("info"))
              }, {
                default: withCtx(() => e[33] || (e[33] = [
                  createTextVNode("info")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_7, [
              createVNode(l, {
                onClick: e[3] || (e[3] = (o) => n.showModal("warning"))
              }, {
                default: withCtx(() => e[34] || (e[34] = [
                  createTextVNode("warning")
                ])),
                _: 1
              })
            ])
          ]),
          e[75] || (e[75] = createElementVNode("div", { class: "mb-20" }, "this.$notice.xxxx(config) || window.$notice.xxxx(config)", -1)),
          createElementVNode("div", _hoisted_8, [
            createElementVNode("div", _hoisted_9, [
              createVNode(l, {
                onClick: e[4] || (e[4] = (o) => n.showNotice({ method: "success" }))
              }, {
                default: withCtx(() => e[35] || (e[35] = [
                  createTextVNode("success")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_10, [
              createVNode(l, {
                onClick: e[5] || (e[5] = (o) => n.showNotice("error"))
              }, {
                default: withCtx(() => e[36] || (e[36] = [
                  createTextVNode("error")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_11, [
              createVNode(l, {
                onClick: e[6] || (e[6] = (o) => n.showNotice("info"))
              }, {
                default: withCtx(() => e[37] || (e[37] = [
                  createTextVNode("info")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_12, [
              createVNode(l, {
                onClick: e[7] || (e[7] = (o) => n.showNotice("warn"))
              }, {
                default: withCtx(() => e[38] || (e[38] = [
                  createTextVNode("warn")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_13, [
              createVNode(l, {
                onClick: e[8] || (e[8] = (o) => n.showNotice("open"))
              }, {
                default: withCtx(() => e[39] || (e[39] = [
                  createTextVNode("open")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_14, [
              createVNode(l, {
                onClick: e[9] || (e[9] = (o) => n.showNotice("close"))
              }, {
                default: withCtx(() => e[40] || (e[40] = [
                  createTextVNode("close open")
                ])),
                _: 1
              })
            ])
          ]),
          e[76] || (e[76] = createElementVNode("div", { class: "mb-20" }, "this.$message.xxxx(config) || window.$message.xxxx(config)", -1)),
          createElementVNode("div", _hoisted_15, [
            createElementVNode("div", _hoisted_16, [
              createVNode(l, {
                onClick: e[10] || (e[10] = (o) => n.showMessage("success"))
              }, {
                default: withCtx(() => e[41] || (e[41] = [
                  createTextVNode("success")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_17, [
              createVNode(l, {
                onClick: e[11] || (e[11] = (o) => n.showMessage("error"))
              }, {
                default: withCtx(() => e[42] || (e[42] = [
                  createTextVNode("error")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_18, [
              createVNode(l, {
                onClick: e[12] || (e[12] = (o) => n.showMessage("info"))
              }, {
                default: withCtx(() => e[43] || (e[43] = [
                  createTextVNode("info")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_19, [
              createVNode(l, {
                onClick: e[13] || (e[13] = (o) => n.showMessage("warn"))
              }, {
                default: withCtx(() => e[44] || (e[44] = [
                  createTextVNode("warn")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_20, [
              createVNode(l, {
                onClick: e[14] || (e[14] = (o) => n.showMessage("loading"))
              }, {
                default: withCtx(() => e[45] || (e[45] = [
                  createTextVNode("loading")
                ])),
                _: 1
              })
            ]),
            createElementVNode("div", _hoisted_21, [
              createVNode(l, {
                onClick: e[15] || (e[15] = (o) => n.showMessage("destroy"))
              }, {
                default: withCtx(() => e[46] || (e[46] = [
                  createTextVNode("close message")
                ])),
                _: 1
              })
            ])
          ]),
          createElementVNode("div", _hoisted_22, [
            createElementVNode("div", _hoisted_23, [
              e[49] || (e[49] = createElementVNode("div", { class: "title mb-20" }, "抽屉组件 - footer默认模式", -1)),
              createElementVNode("div", _hoisted_24, [
                createVNode(l, {
                  onClick: e[16] || (e[16] = (o) => s.drawer1Visible = !0)
                }, {
                  default: withCtx(() => e[47] || (e[47] = [
                    createTextVNode("打开抽屉")
                  ])),
                  _: 1
                }),
                createVNode(N, {
                  value: s.drawer1Visible,
                  "onUpdate:value": e[17] || (e[17] = (o) => s.drawer1Visible = o),
                  footer: "",
                  onConfirm: n.handDrawerConfirm,
                  title: "抽屉组件"
                }, {
                  default: withCtx(() => e[48] || (e[48] = [
                    createElementVNode("div", { class: "content" }, "抽屉中得内容", -1)
                  ])),
                  _: 1
                }, 8, ["value", "onConfirm"])
              ])
            ]),
            createElementVNode("div", _hoisted_25, [
              e[54] || (e[54] = createElementVNode("div", { class: "title mb-20" }, "抽屉组件 - footer插槽模式", -1)),
              createElementVNode("div", _hoisted_26, [
                createVNode(l, {
                  onClick: e[18] || (e[18] = (o) => s.drawerVisible = !0)
                }, {
                  default: withCtx(() => e[50] || (e[50] = [
                    createTextVNode("打开抽屉")
                  ])),
                  _: 1
                }),
                createVNode(N, {
                  value: s.drawerVisible,
                  "onUpdate:value": e[19] || (e[19] = (o) => s.drawerVisible = o),
                  title: "抽屉组件"
                }, {
                  footer: withCtx(() => [
                    createVNode(l, null, {
                      default: withCtx(() => e[51] || (e[51] = [
                        createTextVNode("取消")
                      ])),
                      _: 1
                    }),
                    createVNode(l, { type: "primary" }, {
                      default: withCtx(() => e[52] || (e[52] = [
                        createTextVNode("确定")
                      ])),
                      _: 1
                    })
                  ]),
                  default: withCtx(() => [
                    e[53] || (e[53] = createElementVNode("div", { class: "content" }, "抽屉中得内容", -1))
                  ]),
                  _: 1
                }, 8, ["value"])
              ])
            ]),
            createElementVNode("div", _hoisted_27, [
              e[56] || (e[56] = createElementVNode("div", { class: "title mb-20" }, "可拖拽可全屏弹窗Modal", -1)),
              createElementVNode("div", _hoisted_28, [
                createVNode(l, {
                  onClick: e[20] || (e[20] = (o) => s.modalVisible = !0)
                }, {
                  default: withCtx(() => e[55] || (e[55] = [
                    createTextVNode("打开弹窗")
                  ])),
                  _: 1
                }),
                createVNode(C, {
                  value: s.modalVisible,
                  "onUpdate:value": e[21] || (e[21] = (o) => s.modalVisible = o),
                  title: "弹窗组件"
                }, null, 8, ["value"])
              ])
            ])
          ]),
          createElementVNode("div", _hoisted_29, [
            createElementVNode("div", _hoisted_30, [
              e[57] || (e[57] = createElementVNode("div", { class: "title mb-20" }, "icon下拉列表", -1)),
              createElementVNode("div", _hoisted_31, [
                createVNode(f, { width: 300 })
              ])
            ]),
            createElementVNode("div", _hoisted_32, [
              e[59] || (e[59] = createElementVNode("div", { class: "title mb-20" }, "Icon弹窗组件", -1)),
              createVNode(l, {
                onClick: e[22] || (e[22] = (o) => s.iconModalVisible = !0)
              }, {
                default: withCtx(() => e[58] || (e[58] = [
                  createTextVNode("查看图标")
                ])),
                _: 1
              }),
              createVNode(E, {
                value: s.iconModalVisible,
                "onUpdate:value": e[23] || (e[23] = (o) => s.iconModalVisible = o)
              }, null, 8, ["value"])
            ]),
            createElementVNode("div", _hoisted_33, [
              e[60] || (e[60] = createElementVNode("div", { class: "title mb-20" }, "icon组件 默认size 16px， color 为主题色", -1)),
              createElementVNode("div", _hoisted_34, [
                createVNode(x, {
                  name: "AccountBookFilled",
                  size: 32,
                  color: "red"
                })
              ])
            ])
          ]),
          createElementVNode("div", _hoisted_35, [
            createElementVNode("div", _hoisted_36, [
              createElementVNode("div", _hoisted_37, [
                e[61] || (e[61] = createElementVNode("div", { class: "title mb-20" }, "岗位选择", -1)),
                createElementVNode("div", _hoisted_38, [
                  createVNode(g, {
                    onChange: n.handUserChange,
                    ids: s.userIds,
                    "onUpdate:ids": e[24] || (e[24] = (o) => s.userIds = o),
                    names: s.userValue,
                    "onUpdate:names": e[25] || (e[25] = (o) => s.userValue = o)
                  }, null, 8, ["onChange", "ids", "names"])
                ])
              ])
            ]),
            createElementVNode("div", _hoisted_39, [
              createElementVNode("div", _hoisted_40, [
                e[62] || (e[62] = createElementVNode("div", { class: "title mb-20" }, "人员选择", -1)),
                createElementVNode("div", _hoisted_41, [
                  createVNode(b, {
                    onChange: n.handUserChange,
                    ids: s.userIds,
                    "onUpdate:ids": e[26] || (e[26] = (o) => s.userIds = o),
                    names: s.userValue,
                    "onUpdate:names": e[27] || (e[27] = (o) => s.userValue = o)
                  }, null, 8, ["onChange", "ids", "names"])
                ])
              ])
            ]),
            createElementVNode("div", _hoisted_42, [
              createElementVNode("div", _hoisted_43, [
                e[63] || (e[63] = createElementVNode("div", { class: "title mb-20" }, "联级选择", -1)),
                createElementVNode("div", _hoisted_44, [
                  createVNode(k, { options: s.options }, null, 8, ["options"])
                ])
              ])
            ])
          ]),
          createElementVNode("div", _hoisted_45, [
            e[64] || (e[64] = createElementVNode("div", { class: "title mb-20" }, "tree树", -1)),
            createElementVNode("div", _hoisted_46, [
              createVNode(T, {
                levelOneChildren: n.levelOneChildren,
                levelTwoChildren: n.levelTwoChildren,
                modelValue: s.treeValue,
                "onUpdate:modelValue": e[28] || (e[28] = (o) => s.treeValue = o)
              }, null, 8, ["levelOneChildren", "levelTwoChildren", "modelValue"])
            ])
          ]),
          createElementVNode("div", _hoisted_47, [
            e[65] || (e[65] = createElementVNode("div", { class: "title mb-20" }, "下拉树", -1)),
            createElementVNode("div", _hoisted_48, [
              createVNode(y, {
                modelValue: s.treeSelectValue,
                "onUpdate:modelValue": e[29] || (e[29] = (o) => s.treeSelectValue = o),
                recursionChildren: n.recursionChildren
              }, null, 8, ["modelValue", "recursionChildren"])
            ])
          ]),
          createElementVNode("div", _hoisted_49, [
            e[66] || (e[66] = createElementVNode("div", { class: "title mb-20" }, "富文本", -1)),
            createVNode(M, {
              modelValue: s.content,
              "onUpdate:modelValue": e[30] || (e[30] = (o) => s.content = o)
            }, null, 8, ["modelValue"])
          ]),
          e[77] || (e[77] = createElementVNode("div", { class: "title mb-20" }, "空数据组件", -1)),
          createElementVNode("div", _hoisted_50, [
            createElementVNode("div", _hoisted_51, [
              e[67] || (e[67] = createElementVNode("div", { class: "item-title" }, "默认", -1)),
              createElementVNode("div", _hoisted_52, [
                createVNode(m)
              ])
            ]),
            createElementVNode("div", _hoisted_53, [
              e[68] || (e[68] = createElementVNode("div", { class: "item-title" }, "无描述", -1)),
              createElementVNode("div", _hoisted_54, [
                createVNode(m, { desc: "" })
              ])
            ]),
            createElementVNode("div", _hoisted_55, [
              e[69] || (e[69] = createElementVNode("div", { class: "item-title" }, "第二种图标", -1)),
              createElementVNode("div", _hoisted_56, [
                createVNode(m, { type: "2" })
              ])
            ]),
            createElementVNode("div", _hoisted_57, [
              e[70] || (e[70] = createElementVNode("div", { class: "item-title" }, "自定义描述", -1)),
              createElementVNode("div", _hoisted_58, [
                createVNode(m, { desc: "没有数据" })
              ])
            ]),
            createElementVNode("div", _hoisted_59, [
              e[72] || (e[72] = createElementVNode("div", { class: "item-title" }, "自定义插槽描述", -1)),
              createElementVNode("div", _hoisted_60, [
                createVNode(m, null, {
                  default: withCtx(() => e[71] || (e[71] = [
                    createTextVNode("无数据")
                  ])),
                  _: 1
                })
              ])
            ]),
            createElementVNode("div", _hoisted_61, [
              e[73] || (e[73] = createElementVNode("div", { class: "item-title" }, "自定义图标", -1)),
              createElementVNode("div", _hoisted_62, [
                createVNode(m, { icon: s.emptyIcon }, null, 8, ["icon"])
              ])
            ])
          ]),
          e[78] || (e[78] = createElementVNode("div", { class: "mb-50" }, null, -1)),
          createVNode(v, {
            listType: "picture-card",
            label: t.$l("卡片附件列表")
          }, null, 8, ["label"]),
          e[79] || (e[79] = createElementVNode("div", { class: "mb-50" }, null, -1)),
          createVNode(v, {
            listType: "picture",
            label: t.$l("行附件列表")
          }, null, 8, ["label"]),
          e[80] || (e[80] = createElementVNode("div", { class: "mb-50" }, null, -1)),
          createVNode(U, { label: "裁切上传附件列表" }),
          e[81] || (e[81] = createElementVNode("div", { class: "mb-50" }, null, -1)),
          createVNode(O, { label: "拖拽上传附件列表" })
        ])
      ]),
      _: 1
    })
  ]);
}
const todo = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5e5fc79b"]]);
export {
  todo as default
};
