var se = (e, t, n) => new Promise((a, l) => { var u = (S) => { try { s(n.next(S)); } catch (d) { l(d); } }, f = (S) => { try { s(n.throw(S)); } catch (d) { l(d); } }, s = (S) => S.done ? a(S.value) : Promise.resolve(S.value).then(u, f); s((n = n.apply(e, t)).next()); }); import { defineComponent as q, computed as _, createVNode as o, isVNode as je, inject as rt, ref as j, provide as st, toRef as Me, watch as Ue, resolveComponent as Re, openBlock as P, createBlock as k, withCtx as B, createElementBlock as U, Fragment as be, renderList as Se, normalizeStyle as ct, unref as de, resolveDynamicComponent as qe, createTextVNode as pe, toDisplayString as H, onMounted as dt, createElementVNode as G, createCommentVNode as ye, normalizeClass as We } from "vue"; import { useRouter as ut } from "vue-router"; import { g as Le, m as Je, d as b, r as Xe, aH as xe, t as Qe, u as J, c as oe, _ as W, i as Ce, o as Oe, dn as ve, aN as He, h as gt, dp as mt, bn as vt, dq as Ye, P as X, c0 as Pe, dc as le, F as pt, dr as ft, cH as ht, ds as yt, bE as Ge, dt as bt, ao as Ze, e as $e, ax as Ve, av as St, aw as Be, l as $t, b as xt, bA as Ct, L as It, aL as At, aM as Et, a3 as Tt, du as wt, bP as zt, bs as Pt, cT as ke, B as Ke, bQ as Bt, f as ce, ay as Mt, K as Rt, ad as Dt, dv as ue, dw as Lt, n as Ot, C as Ht, dx as _t, dy as Nt, dz as jt, dA as Wt, dB as Gt, dC as Vt } from "./index2.js"; import { T as _e, _ as kt } from "./index11.js"; import { u as Ie, E as Ne, s as Ae, S as V, a as et } from "./Skeleton.js"; import { _ as Ft } from "./index5.js"; import { A as Ut } from "./ActionButton.js"; import { C as qt, A as Jt } from "./Col.js"; import { T as Xt } from "./index13.js"; const Qt = (e) => { const { antCls: t, componentCls: n, cardHeadHeight: a, cardPaddingBase: l, cardHeadTabsMarginBottom: u } = e; return b(b({ display: "flex", justifyContent: "center", flexDirection: "column", minHeight: a, marginBottom: -1, padding: `0 ${l}px`, color: e.colorTextHeading, fontWeight: e.fontWeightStrong, fontSize: e.fontSizeLG, background: "transparent", borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`, borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0` }, xe()), { "&-wrapper": { width: "100%", display: "flex", alignItems: "center" }, "&-title": b(b({ display: "inline-block", flex: 1 }, Qe), { [` > ${n}-typography, > ${n}-typography-edit-content `]: { insetInlineStart: 0, marginTop: 0, marginBottom: 0 } }), [`${t}-tabs-top`]: { clear: "both", marginBottom: u, color: e.colorText, fontWeight: "normal", fontSize: e.fontSize, "&-bar": { borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}` } } }); }, Yt = (e) => { const { cardPaddingBase: t, colorBorderSecondary: n, cardShadow: a, lineWidth: l } = e; return { width: "33.33%", padding: t, border: 0, borderRadius: 0, boxShadow: ` ${l}px 0 0 0 ${n}, 0 ${l}px 0 0 ${n}, ${l}px ${l}px 0 0 ${n}, ${l}px 0 0 0 ${n} inset, 0 ${l}px 0 0 ${n} inset; `, transition: `all ${e.motionDurationMid}`, "&-hoverable:hover": { position: "relative", zIndex: 1, boxShadow: a } }; }, Zt = (e) => { const { componentCls: t, iconCls: n, cardActionsLiMargin: a, cardActionsIconSize: l, colorBorderSecondary: u } = e; return b(b({ margin: 0, padding: 0, listStyle: "none", background: e.colorBgContainer, borderTop: `${e.lineWidth}px ${e.lineType} ${u}`, display: "flex", borderRadius: `0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px ` }, xe()), { "& > li": { margin: a, color: e.colorTextDescription, textAlign: "center", "> span": { position: "relative", display: "block", minWidth: e.cardActionsIconSize * 2, fontSize: e.fontSize, lineHeight: e.lineHeight, cursor: "pointer", "&:hover": { color: e.colorPrimary, transition: `color ${e.motionDurationMid}` }, [`a:not(${t}-btn), > ${n}`]: { display: "inline-block", width: "100%", color: e.colorTextDescription, lineHeight: `${e.fontSize * e.lineHeight}px`, transition: `color ${e.motionDurationMid}`, "&:hover": { color: e.colorPrimary } }, [`> ${n}`]: { fontSize: l, lineHeight: `${l * e.lineHeight}px` } }, "&:not(:last-child)": { borderInlineEnd: `${e.lineWidth}px ${e.lineType} ${u}` } } }); }, Kt = (e) => b(b({ margin: `-${e.marginXXS}px 0`, display: "flex" }, xe()), { "&-avatar": { paddingInlineEnd: e.padding }, "&-detail": { overflow: "hidden", flex: 1, "> div:not(:last-child)": { marginBottom: e.marginXS } }, "&-title": b({ color: e.colorTextHeading, fontWeight: e.fontWeightStrong, fontSize: e.fontSizeLG }, Qe), "&-description": { color: e.colorTextDescription } }), en = (e) => { const { componentCls: t, cardPaddingBase: n, colorFillAlter: a } = e; return { [`${t}-head`]: { padding: `0 ${n}px`, background: a, "&-title": { fontSize: e.fontSize } }, [`${t}-body`]: { padding: `${e.padding}px ${n}px` } }; }, tn = (e) => { const { componentCls: t } = e; return { overflow: "hidden", [`${t}-body`]: { userSelect: "none" } }; }, nn = (e) => { const { componentCls: t, cardShadow: n, cardHeadPadding: a, colorBorderSecondary: l, boxShadow: u, cardPaddingBase: f } = e; return { [t]: b(b({}, Xe(e)), { position: "relative", background: e.colorBgContainer, borderRadius: e.borderRadiusLG, [`&:not(${t}-bordered)`]: { boxShadow: u }, [`${t}-head`]: Qt(e), [`${t}-extra`]: { // https://stackoverflow.com/a/22429853/3040605 marginInlineStart: "auto", color: "", fontWeight: "normal", fontSize: e.fontSize }, [`${t}-body`]: b({ padding: f, borderRadius: ` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px` }, xe()), [`${t}-grid`]: Yt(e), [`${t}-cover`]: { "> *": { display: "block", width: "100%" }, img: { borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0` } }, [`${t}-actions`]: Zt(e), [`${t}-meta`]: Kt(e) }), [`${t}-bordered`]: { border: `${e.lineWidth}px ${e.lineType} ${l}`, [`${t}-cover`]: { marginTop: -1, marginInlineStart: -1, marginInlineEnd: -1 } }, [`${t}-hoverable`]: { cursor: "pointer", transition: `box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`, "&:hover": { borderColor: "transparent", boxShadow: n } }, [`${t}-contain-grid`]: { [`${t}-body`]: { display: "flex", flexWrap: "wrap" }, [`&:not(${t}-loading) ${t}-body`]: { marginBlockStart: -e.lineWidth, marginInlineStart: -e.lineWidth, padding: 0 } }, [`${t}-contain-tabs`]: { [`> ${t}-head`]: { [`${t}-head-title, ${t}-extra`]: { paddingTop: a } } }, [`${t}-type-inner`]: en(e), [`${t}-loading`]: tn(e), [`${t}-rtl`]: { direction: "rtl" } }; }, an = (e) => { const { componentCls: t, cardPaddingSM: n, cardHeadHeightSM: a } = e; return { [`${t}-small`]: { [`> ${t}-head`]: { minHeight: a, padding: `0 ${n}px`, fontSize: e.fontSize, [`> ${t}-head-wrapper`]: { [`> ${t}-extra`]: { fontSize: e.fontSize } } }, [`> ${t}-body`]: { padding: n } }, [`${t}-small${t}-contain-tabs`]: { [`> ${t}-head`]: { [`${t}-head-title, ${t}-extra`]: { minHeight: a, paddingTop: 0, display: "flex", alignItems: "center" } } } }; }, ln = Le("Card", (e) => { const t = Je(e, { cardShadow: e.boxShadowCard, cardHeadHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2, cardHeadHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2, cardHeadPadding: e.padding, cardPaddingBase: e.paddingLG, cardHeadTabsMarginBottom: -e.padding - e.lineWidth, cardActionsLiMargin: `${e.paddingSM}px 0`, cardActionsIconSize: e.fontSize, cardPaddingSM: 12 // Fixed padding. }); return [ // Style nn(t), // Size an(t) ]; }), on = () => b(b({}, Ae()), { size: String, block: Boolean }), tt = q({ compatConfig: { MODE: 3 }, name: "ASkeletonButton", props: Ce(on(), { size: "default" }), setup(e) { const { prefixCls: t } = J("skeleton", e), [n, a] = Ie(t), l = _(() => oe(t.value, `${t.value}-element`, { [`${t.value}-active`]: e.active, [`${t.value}-block`]: e.block }, a.value)); return () => n(o("div", { class: l.value }, [o(Ne, W(W({}, e), {}, { prefixCls: `${t.value}-button` }), null)])); } }), nt = q({ compatConfig: { MODE: 3 }, name: "ASkeletonInput", props: b(b({}, Oe(Ae(), ["shape"])), { size: String, block: Boolean }), setup(e) { const { prefixCls: t } = J("skeleton", e), [n, a] = Ie(t), l = _(() => oe(t.value, `${t.value}-element`, { [`${t.value}-active`]: e.active, [`${t.value}-block`]: e.block }, a.value)); return () => n(o("div", { class: l.value }, [o(Ne, W(W({}, e), {}, { prefixCls: `${t.value}-input` }), null)])); } }), rn = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", at = q({ compatConfig: { MODE: 3 }, name: "ASkeletonImage", props: Oe(Ae(), ["size", "shape", "active"]), setup(e) { const { prefixCls: t } = J("skeleton", e), [n, a] = Ie(t), l = _(() => oe(t.value, `${t.value}-element`, a.value)); return () => n(o("div", { class: l.value }, [o("div", { class: `${t.value}-image` }, [o("svg", { viewBox: "0 0 1098 1024", xmlns: "http://www.w3.org/2000/svg", class: `${t.value}-image-svg` }, [o("path", { d: rn, class: `${t.value}-image-path` }, null)])])])); } }), sn = () => b(b({}, Ae()), { shape: String }), lt = q({ compatConfig: { MODE: 3 }, name: "ASkeletonAvatar", props: Ce(sn(), { size: "default", shape: "circle" }), setup(e) { const { prefixCls: t } = J("skeleton", e), [n, a] = Ie(t), l = _(() => oe(t.value, `${t.value}-element`, { [`${t.value}-active`]: e.active }, a.value)); return () => n(o("div", { class: l.value }, [o(Ne, W(W({}, e), {}, { prefixCls: `${t.value}-avatar` }), null)])); } }); V.Button = tt; V.Avatar = lt; V.Input = nt; V.Image = at; V.Title = et; V.install = function(e) { return e.component(V.name, V), e.component(V.Button.name, tt), e.component(V.Avatar.name, lt), e.component(V.Input.name, nt), e.component(V.Image.name, at), e.component(V.Title.name, et), e; }; const { TabPane: cn } = _e, dn = () => ({ prefixCls: String, title: X.any, extra: X.any, bordered: { type: Boolean, default: !0 }, bodyStyle: { type: Object, default: void 0 }, headStyle: { type: Object, default: void 0 }, loading: { type: Boolean, default: !1 }, hoverable: { type: Boolean, default: !1 }, type: { type: String }, size: { type: String }, actions: X.any, tabList: { type: Array }, tabBarExtraContent: X.any, activeTabKey: String, defaultActiveTabKey: String, cover: X.any, onTabChange: { type: Function } }), ie = q({ compatConfig: { MODE: 3 }, name: "ACard", inheritAttrs: !1, props: dn(), slots: Object, setup(e, t) { let { slots: n, attrs: a } = t; const { prefixCls: l, direction: u, size: f } = J("card", e), [s, S] = ln(l), d = (g) => g.map(($, E) => je($) && !Ye($) || !je($) ? o("li", { style: { width: `${100 / g.length}%` }, key: `action-${E}` }, [o("span", null, [$])]) : null), I = (g) => { var x; (x = e.onTabChange) === null || x === void 0 || x.call(e, g); }, h = function() { let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], x; return g.forEach(($) => { $ && vt($.type) && $.type.__ANT_CARD_GRID && (x = !0); }), x; }; return () => { var g, x, $, E, z, O; const { headStyle: A = {}, bodyStyle: m = {}, loading: w, bordered: i = !0, type: r, tabList: c, hoverable: T, activeTabKey: D, defaultActiveTabKey: y, tabBarExtraContent: M = ve((g = n.tabBarExtraContent) === null || g === void 0 ? void 0 : g.call(n)), title: R = ve((x = n.title) === null || x === void 0 ? void 0 : x.call(n)), extra: v = ve(($ = n.extra) === null || $ === void 0 ? void 0 : $.call(n)), actions: p = ve((E = n.actions) === null || E === void 0 ? void 0 : E.call(n)), cover: L = ve((z = n.cover) === null || z === void 0 ? void 0 : z.call(n)) } = e, N = He((O = n.default) === null || O === void 0 ? void 0 : O.call(n)), C = l.value, F = { [`${C}`]: !0, [S.value]: !0, [`${C}-loading`]: w, [`${C}-bordered`]: i, [`${C}-hoverable`]: !!T, [`${C}-contain-grid`]: h(N), [`${C}-contain-tabs`]: c && c.length, [`${C}-${f.value}`]: f.value, [`${C}-type-${r}`]: !!r, [`${C}-rtl`]: u.value === "rtl" }, te = o(V, { loading: !0, active: !0, paragraph: { rows: 4 }, title: !1 }, { default: () => [N] }), Q = D !== void 0, ne = { size: "large", [Q ? "activeKey" : "defaultActiveKey"]: Q ? D : y, onChange: I, class: `${C}-head-tabs` }; let Y; const ae = c && c.length ? o(_e, ne, { default: () => [c.map((K) => { const { tab: re, slots: Z } = K, ge = Z == null ? void 0 : Z.tab; gt(!Z, "Card", "tabList slots is deprecated, Please use `customTab` instead."); let me = re !== void 0 ? re : n[ge] ? n[ge](K) : null; return me = mt(n, "customTab", K, () => [me]), o(cn, { tab: me, key: K.key, disabled: K.disabled }, null); })], rightExtra: M ? () => M : null }) : null; (R || v || ae) && (Y = o("div", { class: `${C}-head`, style: A }, [o("div", { class: `${C}-head-wrapper` }, [R && o("div", { class: `${C}-head-title` }, [R]), v && o("div", { class: `${C}-extra` }, [v])]), ae])); const he = L ? o("div", { class: `${C}-cover` }, [L]) : null, Ee = o("div", { class: `${C}-body`, style: m }, [w ? te : N]), Te = p && p.length ? o("ul", { class: `${C}-actions` }, [d(p)]) : null; return s(o("div", W(W({ ref: "cardContainerRef" }, a), {}, { class: [F, a.class] }), [Y, he, N && N.length ? Ee : null, Te])); }; } }), un = () => ({ prefixCls: String, title: le(), description: le(), avatar: le() }), De = q({ compatConfig: { MODE: 3 }, name: "ACardMeta", props: un(), slots: Object, setup(e, t) { let { slots: n } = t; const { prefixCls: a } = J("card", e); return () => { const l = { [`${a.value}-meta`]: !0 }, u = Pe(n, e, "avatar"), f = Pe(n, e, "title"), s = Pe(n, e, "description"), S = u ? o("div", { class: `${a.value}-meta-avatar` }, [u]) : null, d = f ? o("div", { class: `${a.value}-meta-title` }, [f]) : null, I = s ? o("div", { class: `${a.value}-meta-description` }, [s]) : null, h = d || I ? o("div", { class: `${a.value}-meta-detail` }, [d, I]) : null; return o("div", { class: l }, [S, h]); }; } }), gn = () => ({ prefixCls: String, hoverable: { type: Boolean, default: !0 } }), fe = q({ compatConfig: { MODE: 3 }, name: "ACardGrid", __ANT_CARD_GRID: !0, props: gn(), setup(e, t) { let { slots: n } = t; const { prefixCls: a } = J("card", e), l = _(() => ({ [`${a.value}-grid`]: !0, [`${a.value}-grid-hoverable`]: e.hoverable })); return () => { var u; return o("div", { class: l.value }, [(u = n.default) === null || u === void 0 ? void 0 : u.call(n)]); }; } }); ie.Meta = De; ie.Grid = fe; ie.install = function(e) { return e.component(ie.name, ie), e.component(De.name, De), e.component(fe.name, fe), e; }; const mn = () => ({ avatar: X.any, description: X.any, prefixCls: String, title: X.any }), vn = q({ compatConfig: { MODE: 3 }, name: "AListItemMeta", props: mn(), displayName: "AListItemMeta", __ANT_LIST_ITEM_META: !0, slots: Object, setup(e, t) { let { slots: n } = t; const { prefixCls: a } = J("list", e); return () => { var l, u, f, s, S, d; const I = `${a.value}-item-meta`, h = (l = e.title) !== null && l !== void 0 ? l : (u = n.title) === null || u === void 0 ? void 0 : u.call(n), g = (f = e.description) !== null && f !== void 0 ? f : (s = n.description) === null || s === void 0 ? void 0 : s.call(n), x = (S = e.avatar) !== null && S !== void 0 ? S : (d = n.avatar) === null || d === void 0 ? void 0 : d.call(n), $ = o("div", { class: `${a.value}-item-meta-content` }, [h && o("h4", { class: `${a.value}-item-meta-title` }, [h]), g && o("div", { class: `${a.value}-item-meta-description` }, [g])]); return o("div", { class: I }, [x && o("div", { class: `${a.value}-item-meta-avatar` }, [x]), (h || g) && $]); }; } }), it = Symbol("ListContextKey"); var pn = function(e, t) { var n = {}; for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]); return n; }; const fn = () => ({ prefixCls: String, extra: X.any, actions: X.array, grid: Object, colStyle: { type: Object, default: void 0 } }), ot = q({ compatConfig: { MODE: 3 }, name: "AListItem", inheritAttrs: !1, Meta: vn, props: fn(), slots: Object, setup(e, t) { let { slots: n, attrs: a } = t; const { itemLayout: l, grid: u } = rt(it, { grid: j(), itemLayout: j() }), { prefixCls: f } = J("list", e), s = () => { var d; const I = ((d = n.default) === null || d === void 0 ? void 0 : d.call(n)) || []; let h; return I.forEach((g) => { ft(g) && !Ye(g) && (h = !0); }), h && I.length > 1; }, S = () => { var d, I; const h = (d = e.extra) !== null && d !== void 0 ? d : (I = n.extra) === null || I === void 0 ? void 0 : I.call(n); return l.value === "vertical" ? !!h : !s(); }; return () => { var d, I, h, g, x; const { class: $ } = a, E = pn(a, ["class"]), z = f.value, O = (d = e.extra) !== null && d !== void 0 ? d : (I = n.extra) === null || I === void 0 ? void 0 : I.call(n), A = (h = n.default) === null || h === void 0 ? void 0 : h.call(n); let m = (g = e.actions) !== null && g !== void 0 ? g : He((x = n.actions) === null || x === void 0 ? void 0 : x.call(n)); m = m && !Array.isArray(m) ? [m] : m; const w = m && m.length > 0 && o("ul", { class: `${z}-item-action`, key: "actions" }, [m.map((c, T) => o("li", { key: `${z}-item-action-${T}` }, [c, T !== m.length - 1 && o("em", { class: `${z}-item-action-split` }, null)]))]), i = u.value ? "div" : "li", r = o(i, W(W({}, E), {}, { class: oe(`${z}-item`, { [`${z}-item-no-flex`]: !S() }, $) }), { default: () => [l.value === "vertical" && O ? [o("div", { class: `${z}-item-main`, key: "content" }, [A, w]), o("div", { class: `${z}-item-extra`, key: "extra" }, [O])] : [A, w, pt(O, { key: "extra" })]] }); return u.value ? o(qt, { flex: 1, style: e.colStyle }, { default: () => [r] }) : r; }; } }), hn = (e) => { const { listBorderedCls: t, componentCls: n, paddingLG: a, margin: l, padding: u, listItemPaddingSM: f, marginLG: s, borderRadiusLG: S } = e; return { [`${t}`]: { border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`, borderRadius: S, [`${n}-header,${n}-footer,${n}-item`]: { paddingInline: a }, [`${n}-pagination`]: { margin: `${l}px ${s}px` } }, [`${t}${n}-sm`]: { [`${n}-item,${n}-header,${n}-footer`]: { padding: f } }, [`${t}${n}-lg`]: { [`${n}-item,${n}-header,${n}-footer`]: { padding: `${u}px ${a}px` } } }; }, yn = (e) => { const { componentCls: t, screenSM: n, screenMD: a, marginLG: l, marginSM: u, margin: f } = e; return { [`@media screen and (max-width:${a})`]: { [`${t}`]: { [`${t}-item`]: { [`${t}-item-action`]: { marginInlineStart: l } } }, [`${t}-vertical`]: { [`${t}-item`]: { [`${t}-item-extra`]: { marginInlineStart: l } } } }, [`@media screen and (max-width: ${n})`]: { [`${t}`]: { [`${t}-item`]: { flexWrap: "wrap", [`${t}-action`]: { marginInlineStart: u } } }, [`${t}-vertical`]: { [`${t}-item`]: { flexWrap: "wrap-reverse", [`${t}-item-main`]: { minWidth: e.contentWidth }, [`${t}-item-extra`]: { margin: `auto auto ${f}px` } } } } }; }, bn = (e) => { const { componentCls: t, antCls: n, controlHeight: a, minHeight: l, paddingSM: u, marginLG: f, padding: s, listItemPadding: S, colorPrimary: d, listItemPaddingSM: I, listItemPaddingLG: h, paddingXS: g, margin: x, colorText: $, colorTextDescription: E, motionDurationSlow: z, lineWidth: O } = e; return { [`${t}`]: b(b({}, Xe(e)), { position: "relative", "*": { outline: "none" }, [`${t}-header, ${t}-footer`]: { background: "transparent", paddingBlock: u }, [`${t}-pagination`]: { marginBlockStart: f, textAlign: "end", // https://github.com/ant-design/ant-design/issues/20037 [`${n}-pagination-options`]: { textAlign: "start" } }, [`${t}-spin`]: { minHeight: l, textAlign: "center" }, [`${t}-items`]: { margin: 0, padding: 0, listStyle: "none" }, [`${t}-item`]: { display: "flex", alignItems: "center", justifyContent: "space-between", padding: S, color: $, [`${t}-item-meta`]: { display: "flex", flex: 1, alignItems: "flex-start", maxWidth: "100%", [`${t}-item-meta-avatar`]: { marginInlineEnd: s }, [`${t}-item-meta-content`]: { flex: "1 0", width: 0, color: $ }, [`${t}-item-meta-title`]: { marginBottom: e.marginXXS, color: $, fontSize: e.fontSize, lineHeight: e.lineHeight, "> a": { color: $, transition: `all ${z}`, "&:hover": { color: d } } }, [`${t}-item-meta-description`]: { color: E, fontSize: e.fontSize, lineHeight: e.lineHeight } }, [`${t}-item-action`]: { flex: "0 0 auto", marginInlineStart: e.marginXXL, padding: 0, fontSize: 0, listStyle: "none", "& > li": { position: "relative", display: "inline-block", padding: `0 ${g}px`, color: E, fontSize: e.fontSize, lineHeight: e.lineHeight, textAlign: "center", "&:first-child": { paddingInlineStart: 0 } }, [`${t}-item-action-split`]: { position: "absolute", insetBlockStart: "50%", insetInlineEnd: 0, width: O, height: Math.ceil(e.fontSize * e.lineHeight) - e.marginXXS * 2, transform: "translateY(-50%)", backgroundColor: e.colorSplit } } }, [`${t}-empty`]: { padding: `${s}px 0`, color: E, fontSize: e.fontSizeSM, textAlign: "center" }, [`${t}-empty-text`]: { padding: s, color: e.colorTextDisabled, fontSize: e.fontSize, textAlign: "center" }, // ============================ without flex ============================ [`${t}-item-no-flex`]: { display: "block" } }), [`${t}-grid ${n}-col > ${t}-item`]: { display: "block", maxWidth: "100%", marginBlockEnd: x, paddingBlock: 0, borderBlockEnd: "none" }, [`${t}-vertical ${t}-item`]: { alignItems: "initial", [`${t}-item-main`]: { display: "block", flex: 1 }, [`${t}-item-extra`]: { marginInlineStart: f }, [`${t}-item-meta`]: { marginBlockEnd: s, [`${t}-item-meta-title`]: { marginBlockEnd: u, color: $, fontSize: e.fontSizeLG, lineHeight: e.lineHeightLG } }, [`${t}-item-action`]: { marginBlockStart: s, marginInlineStart: "auto", "> li": { padding: `0 ${s}px`, "&:first-child": { paddingInlineStart: 0 } } } }, [`${t}-split ${t}-item`]: { borderBlockEnd: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`, "&:last-child": { borderBlockEnd: "none" } }, [`${t}-split ${t}-header`]: { borderBlockEnd: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}` }, [`${t}-split${t}-empty ${t}-footer`]: { borderTop: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}` }, [`${t}-loading ${t}-spin-nested-loading`]: { minHeight: a }, [`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]: { borderBlockEnd: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}` }, [`${t}-lg ${t}-item`]: { padding: h }, [`${t}-sm ${t}-item`]: { padding: I }, // Horizontal [`${t}:not(${t}-vertical)`]: { [`${t}-item-no-flex`]: { [`${t}-item-action`]: { float: "right" } } } }; }, Sn = Le("List", (e) => { const t = Je(e, { listBorderedCls: `${e.componentCls}-bordered`, minHeight: e.controlHeightLG, listItemPadding: `${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`, listItemPaddingSM: `${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`, listItemPaddingLG: `${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px` }); return [bn(t), hn(t), yn(t)]; }, { contentWidth: 220 }), $n = () => ({ bordered: Ve(), dataSource: $t(), extra: le(), grid: $e(), itemLayout: String, loading: Be([Boolean, Object]), loadMore: le(), pagination: Be([Boolean, Object]), prefixCls: String, rowKey: Be([String, Number, Function]), renderItem: St(), size: String, split: Ve(), header: le(), footer: le(), locale: $e() }), ee = q({ compatConfig: { MODE: 3 }, name: "AList", inheritAttrs: !1, Item: ot, props: Ce($n(), { dataSource: [], bordered: !1, split: !0, loading: !1, pagination: !1 }), slots: Object, setup(e, t) { let { slots: n, attrs: a } = t; var l, u; st(it, { grid: Me(e, "grid"), itemLayout: Me(e, "itemLayout") }); const f = { current: 1, total: 0 }, { prefixCls: s, direction: S, renderEmpty: d } = J("list", e), [I, h] = Sn(s), g = _(() => e.pagination && typeof e.pagination == "object" ? e.pagination : {}), x = j((l = g.value.defaultCurrent) !== null && l !== void 0 ? l : 1), $ = j((u = g.value.defaultPageSize) !== null && u !== void 0 ? u : 10); Ue(g, () => { "current" in g.value && (x.value = g.value.current), "pageSize" in g.value && ($.value = g.value.pageSize); }); const E = [], z = (v) => (p, L) => { x.value = p, $.value = L, g.value[v] && g.value[v](p, L); }, O = z("onChange"), A = z("onShowSizeChange"), m = _(() => typeof e.loading == "boolean" ? { spinning: e.loading } : e.loading), w = _(() => m.value && m.value.spinning), i = _(() => { let v = ""; switch (e.size) { case "large": v = "lg"; break; case "small": v = "sm"; break; } return v; }), r = _(() => ({ [`${s.value}`]: !0, [`${s.value}-vertical`]: e.itemLayout === "vertical", [`${s.value}-${i.value}`]: i.value, [`${s.value}-split`]: e.split, [`${s.value}-bordered`]: e.bordered, [`${s.value}-loading`]: w.value, [`${s.value}-grid`]: !!e.grid, [`${s.value}-rtl`]: S.value === "rtl" })), c = _(() => { const v = b(b(b({}, f), { total: e.dataSource.length, current: x.value, pageSize: $.value }), e.pagination || {}), p = Math.ceil(v.total / v.pageSize); return v.current > p && (v.current = p), v; }), T = _(() => { let v = [...e.dataSource]; return e.pagination && e.dataSource.length > (c.value.current - 1) * c.value.pageSize && (v = [...e.dataSource].splice((c.value.current - 1) * c.value.pageSize, c.value.pageSize)), v; }), D = ht(), y = yt(() => { for (let v = 0; v < Ge.length; v += 1) { const p = Ge[v]; if (D.value[p]) return p; } }), M = _(() => { if (!e.grid) return; const v = y.value && e.grid[y.value] ? e.grid[y.value] : e.grid.column; if (v) return { width: `${100 / v}%`, maxWidth: `${100 / v}%` }; }), R = (v, p) => { var L; const N = (L = e.renderItem) !== null && L !== void 0 ? L : n.renderItem; if (!N) return null; let C; const F = typeof e.rowKey; return F === "function" ? C = e.rowKey(v) : F === "string" || F === "number" ? C = v[e.rowKey] : C = v.key, C || (C = `list-item-${p}`), E[p] = C, N({ item: v, index: p }); }; return () => { var v, p, L, N, C, F, te, Q; const ne = (v = e.loadMore) !== null && v !== void 0 ? v : (p = n.loadMore) === null || p === void 0 ? void 0 : p.call(n), Y = (L = e.footer) !== null && L !== void 0 ? L : (N = n.footer) === null || N === void 0 ? void 0 : N.call(n), ae = (C = e.header) !== null && C !== void 0 ? C : (F = n.header) === null || F === void 0 ? void 0 : F.call(n), he = He((te = n.default) === null || te === void 0 ? void 0 : te.call(n)), Ee = !!(ne || e.pagination || Y), Te = oe(b(b({}, r.value), { [`${s.value}-something-after-last-item`]: Ee }), a.class, h.value), K = e.pagination ? o("div", { class: `${s.value}-pagination` }, [o(bt, W(W({}, c.value), {}, { onChange: O, onShowSizeChange: A }), null)]) : null; let re = w.value && o("div", { style: { minHeight: "53px" } }, null); if (T.value.length > 0) { E.length = 0; const ge = T.value.map((we, ze) => R(we, ze)), me = ge.map((we, ze) => o("div", { key: E[ze], style: M.value }, [we])); re = e.grid ? o(Jt, { gutter: e.grid.gutter }, { default: () => [me] }) : o("ul", { class: `${s.value}-items` }, [ge]); } else !he.length && !w.value && (re = o("div", { class: `${s.value}-empty-text` }, [((Q = e.locale) === null || Q === void 0 ? void 0 : Q.emptyText) || d("List")])); const Z = c.value.position || "bottom"; return I(o("div", W(W({}, a), {}, { class: Te }), [(Z === "top" || Z === "both") && K, ae && o("div", { class: `${s.value}-header` }, [ae]), o(Ze, m.value, { default: () => [re, he] }), Y && o("div", { class: `${s.value}-footer` }, [Y]), ne || (Z === "bottom" || Z === "both") && K])); }; } }); ee.install = function(e) { return e.component(ee.name, ee), e.component(ee.Item.name, ee.Item), e.component(ee.Item.Meta.name, ee.Item.Meta), e; }; const xn = (e) => { const { componentCls: t, iconCls: n, zIndexPopup: a, colorText: l, colorWarning: u, marginXS: f, fontSize: s, fontWeightStrong: S, lineHeight: d } = e; return { [t]: { zIndex: a, [`${t}-inner-content`]: { color: l }, [`${t}-message`]: { position: "relative", marginBottom: f, color: l, fontSize: s, display: "flex", flexWrap: "nowrap", alignItems: "start", [`> ${t}-message-icon ${n}`]: { color: u, fontSize: s, flex: "none", lineHeight: 1, paddingTop: (Math.round(s * d) - s) / 2 }, "&-title": { flex: "auto", marginInlineStart: f }, "&-title-only": { fontWeight: S } }, [`${t}-description`]: { position: "relative", marginInlineStart: s + f, marginBottom: f, color: l, fontSize: s }, [`${t}-buttons`]: { textAlign: "end", button: { marginInlineStart: f } } } }; }, Cn = Le("Popconfirm", (e) => xn(e), (e) => { const { zIndexPopupBase: t } = e; return { zIndexPopup: t + 60 }; }); var In = function(e, t) { var n = {}; for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]); return n; }; const An = () => b(b({}, Bt()), { prefixCls: String, content: ce(), title: ce(), description: ce(), okType: Mt("primary"), disabled: { type: Boolean, default: !1 }, okText: ce(), cancelText: ce(), icon: ce(), okButtonProps: $e(), cancelButtonProps: $e(), showCancel: { type: Boolean, default: !0 }, onConfirm: Function, onCancel: Function }), En = q({ compatConfig: { MODE: 3 }, name: "APopconfirm", inheritAttrs: !1, props: Ce(An(), b(b({}, zt()), { trigger: "click", placement: "top", mouseEnterDelay: 0.1, mouseLeaveDelay: 0.1, arrowPointAtCenter: !1, autoAdjustOverflow: !0, okType: "primary", disabled: !1 })), slots: Object, // emits: ['update:open', 'visibleChange'], setup(e, t) { let { slots: n, emit: a, expose: l, attrs: u } = t; const f = j(); Ct(e.visible === void 0, "Popconfirm", "`visible` will be removed in next major version, please use `open` instead."), l({ getPopupDomNode: () => { var r, c; return (c = (r = f.value) === null || r === void 0 ? void 0 : r.getPopupDomNode) === null || c === void 0 ? void 0 : c.call(r); } }); const [s, S] = It(!1, { value: Me(e, "open") }), d = (r, c) => { e.open === void 0 && S(r), a("update:open", r), a("openChange", r, c); }, I = (r) => { d(!1, r); }, h = (r) => { var c; return (c = e.onConfirm) === null || c === void 0 ? void 0 : c.call(e, r); }, g = (r) => { var c; d(!1, r), (c = e.onCancel) === null || c === void 0 || c.call(e, r); }, x = (r) => { r.keyCode === Rt.ESC && s && d(!1, r); }, $ = (r) => { const { disabled: c } = e; c || d(r); }, { prefixCls: E, getPrefixCls: z } = J("popconfirm", e), O = _(() => z()), A = _(() => z("btn")), [m] = Cn(E), [w] = At("Popconfirm", Et.Popconfirm), i = () => { var r, c, T, D, y; const { okButtonProps: M, cancelButtonProps: R, title: v = (r = n.title) === null || r === void 0 ? void 0 : r.call(n), description: p = (c = n.description) === null || c === void 0 ? void 0 : c.call(n), cancelText: L = (T = n.cancel) === null || T === void 0 ? void 0 : T.call(n), okText: N = (D = n.okText) === null || D === void 0 ? void 0 : D.call(n), okType: C, icon: F = ((y = n.icon) === null || y === void 0 ? void 0 : y.call(n)) || o(Pt, null, null), showCancel: te = !0 } = e, { cancelButton: Q, okButton: ne } = n, Y = b({ onClick: g, size: "small" }, R), ae = b(b(b({ onClick: h }, ke(C)), { size: "small" }), M); return o("div", { class: `${E.value}-inner-content` }, [o("div", { class: `${E.value}-message` }, [F && o("span", { class: `${E.value}-message-icon` }, [F]), o("div", { class: [`${E.value}-message-title`, { [`${E.value}-message-title-only`]: !!p }] }, [v])]), p && o("div", { class: `${E.value}-description` }, [p]), o("div", { class: `${E.value}-buttons` }, [te ? Q ? Q(Y) : o(Ke, Y, { default: () => [L || w.value.cancelText] }) : null, ne ? ne(ae) : o(Ut, { buttonProps: b(b({ size: "small" }, ke(C)), M), actionFn: h, close: I, prefixCls: A.value, quitOnNullishReturnValue: !0, emitEvent: !0 }, { default: () => [N || w.value.okText] })])]); }; return () => { var r; const { placement: c, overlayClassName: T, trigger: D = "click" } = e, y = In(e, ["placement", "overlayClassName", "trigger"]), M = Oe(y, ["title", "content", "cancelText", "okText", "onUpdate:open", "onConfirm", "onCancel", "prefixCls"]), R = oe(E.value, T); return m(o(Ft, W(W(W({}, M), u), {}, { trigger: D, placement: c, onOpenChange: $, open: s.value, overlayClassName: R, transitionName: Tt(O.value, "zoom-big", e.transitionName), ref: f, "data-popover-inject": !0 }), { default: () => [wt(((r = n.default) === null || r === void 0 ? void 0 : r.call(n)) || [], { onKeydown: (v) => { x(v); } }, !1)], content: i })); }; } }), Tn = xt(En), wn = { __name: "workplace-selector", props: { value: { type: Boolean, default: !1 }, selectedList: { type: Array, default: () => [] } }, emits: ["update:value", "done"], setup(e, { emit: t }) { const n = e, a = t, l = Dt(), u = (A) => { if (!A) return ue; const m = A.split("-").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("") + "Outlined", w = Re(m); return typeof w == "string" ? ue : w; }, f = _({ get: () => n.value, set: (A) => a("update:value", A) }), s = j("mm0001"), S = j([]), d = j([]), I = _(() => l.menus), h = _(() => l.clients), g = () => { h.value && h.value.length && (S.value = h.value.map((A) => ({ id: A.id, clientId: A.clientId, clientName: A.clientName }))); }, x = () => { f.value = !1; }, $ = (A) => { A.forEach((m) => { m.children && m.children.length > 0 ? $(m.children) : m.href && m.isShow && d.value.push({ id: m.id, name: m.name, icon: m.icon, href: m.href, hoverable: z(m, n.selectedList) }); }); }, E = (A) => { a("done", A); }, z = (A = {}, m = []) => !m || m.length < 1 ? !0 : !m.some((w) => w.menu.id === A.id), O = (A) => se(this, null, function* () { var i; d.value = []; const m = window.$utils.ls.get("USER-TOKEN"), w = yield Lt({ baseURL: window.$utils.env.VITE_APP_API_BASE_URL, url: `/${window.$utils.env.VITE_APP_PORTAL_SERVER_NAME}/v1/users/menus`, timeout: 60 * 1e3, headers: { "Content-Type": "application/json;charset=UTF-8", "user-token": m, "client-id": A }, method: "get", data: {} }); $((i = w == null ? void 0 : w.data) == null ? void 0 : i.data); }); return Ue( () => n.selectedList, () => { d.value = [], $(I.value); } ), g(), (A, m) => { const w = kt, i = _e, r = fe, c = ie, T = Ke, D = Re("s-modal"); return P(), k(D, { value: f.value, "onUpdate:value": m[1] || (m[1] = (y) => f.value = y), title: A.$l("添加快捷导航菜单"), width: "80%", maskClosable: !1 }, { footer: B(() => [ o(T, { key: "back", onClick: x }, { default: B(() => [ pe(H(A.$l("关闭")), 1) ]), _: 1 }) ]), default: B(() => [ o(i, { activeKey: s.value, "onUpdate:activeKey": m[0] || (m[0] = (y) => s.value = y), onChange: O }, { default: B(() => [ (P(!0), U(be, null, Se(S.value, (y) => (P(), k(w, { key: y.clientId, tab: y.clientName }, null, 8, ["tab"]))), 128)) ]), _: 1 }, 8, ["activeKey"]), o(c, { style: { "margin-bottom": "6px" }, bordered: !1 }, { default: B(() => [ (P(!0), U(be, null, Se(d.value, (y, M) => (P(), k(r, { style: ct({ width: "20%", textAlign: "center", cursor: y.hoverable ? "pointer" : "" }), key: y.id + M, hoverable: y.hoverable, onClick: (R) => y.hoverable ? E(y) : "" }, { default: B(() => [ y.icon ? (P(), k(qe(u(y.icon)), { key: 1 })) : (P(), k(de(ue), { key: 0 })), pe(" " + H(y.name), 1) ]), _: 2 }, 1032, ["style", "hoverable", "onClick"]))), 128)) ]), _: 1 }) ]), _: 1 }, 8, ["value", "title"]); }; } }, Fe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAB0CAIAAADYY00dAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iI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EYUD6QM4BFCTo6iSjpZJ0/l5FAf+gLeUau0UUHKBh6Rhfl5N2cguplRPT//SXRxFCHKtkqrd5aWlhYWngzKoMODlBk83Ih8w+FRe86mvQlOZ2dnyUOUhQpHenzctv9dXV29czTDgJQZPHJxOAC3VUrHaxO0NdzV9D6Dqyqt7T/cPbCrYjhIWcIzPT2FAaVxApP7x2rrUNeLi3NX+3u5oKq0tynanP8My0EgZQ7PXKWS1gnJKT77nGFlgFxxClul1Tt6kCuN7wdJBMQ+PyjV2EO+yGXTfhZU6g+o10Pjrq4ukzN1IpPd4lm6XeYh7i6QsDruQnbsP7AlDXj0bFU8WzYzZOXM0ns91vf6mn+dhFC128cnJ6eB99fW1trtdnrwoA3T0x5ZNm4t49nLcvaTBXpgOW6q07lOYl79j4tPAx6MxvP413sOcV4H0ZbzndFRUDFo9SQS12DEbJXWITxcRDtzwYY/RTghuFyoaTc9f96gZWXEVD2DKEJhN1lG8pxTRqBn/BE8BTy3uVz8aWw9rN7+DcjtV359V52Snd2++J9MTQma3t9xee5t+eY+b1cYE5l6GILiy38CDADXoxCrjDZe8wAAAABJRU5ErkJggg==", zn = { class: "board-layout" }, Pn = { key: 0, class: "flex-grid-5" }, Bn = ["onClick"], Mn = { key: 1, class: "empty project-content" }, Rn = ["src"], Dn = { class: "tabs-wrap" }, Ln = { class: "list-content" }, On = { class: "list-content-item" }, Hn = ["onClick"], _n = { style: { float: "right" } }, Nn = { key: 1, class: "empty project-content" }, jn = ["src"], Wn = { __name: "workplace", setup(e) { const t = ut(), n = (i) => { if (!i) return ue; const r = i.split("-").map((T) => T.charAt(0).toUpperCase() + T.slice(1)).join("") + "Outlined", c = Re(r); return typeof c == "string" ? ue : c; }, a = j(1), l = { padding: 0 }, u = j(0), f = j(0), s = j(!1), S = j(!1), d = j([]), I = j(!1), h = j(!1), g = j([]), x = () => se(this, null, function* () { s.value = !0; const i = yield _t(); d.value = i || [], d.value.length < 1 && (h.value = !1), s.value = !1; }), $ = (i, r) => { try { const c = new URL(i); c.search = "", c.hash = ""; let T = c.toString(); return T.endsWith("/") || (T += "/"), T + r; } catch (c) { return i + r; } }, E = (i) => { if (i.menu.clientId && i.menu.clientId !== `${window.$utils.env.VITE_APP_CLIENT_ID}`) { const r = i.menu.hrefs ? i.menu.hrefs.substring(1, i.menu.hrefs.length) : ""; window.open($(i.clientRedirectUri, r)); } else t.push({ path: i.menu.hrefs }); }, z = (i) => { a.value = i, O(); }, O = () => se(this, null, function* () { S.value = !0; try { const i = yield Nt(); a.value === 1 ? g.value = i.toDealList || [] : g.value = i.toReadList || [], u.value = i.toDealCount || 0, f.value = i.toReadCount || 0; } catch (i) { g.value = [], console.warn("[workplace] 待办消息获取失败:", i); } finally { S.value = !1; } }), A = (i) => se(this, null, function* () { I.value = !1, s.value = !0, yield Vt(i).then(() => { s.value = !1; }), x(); }), m = (i) => se(this, null, function* () { s.value = !0, yield jt({ id: i.id }).then(() => { s.value = !1; }), x(); }), w = (i = {}) => { if (i.messageTypeCode === "toRead" && Wt([i.id]), i.clientId === "flow") { const r = { client_id: `${window.$utils.env.VITE_APP_CLIENT_ID}`, scope: "snsapi_base" }; Gt(r).then((c) => { const T = c && typeof c == "object" ? c.data : c; if (!T) { location.reload(); return; } const D = `code=${T}`, y = r.state ? `&state=${r.state}` : ""; let M = ""; if (i.messageTypeCode === "toDeal" ? M = i.toDealUrl : i.messageTypeCode === "toRead" && (M = i.toReadUrl), M && M.includes("?")) { let R = `${D}${y}`; R && (R = `&${D}${y}`), window.open(M + R); } else { let R = `${D}${y}`; R && (R = `?${D}${y}`), window.open(M + R); } }); } else { let r = ""; i.messageTypeCode === "toDeal" ? r = i.toDealUrl : i.messageTypeCode === "toRead" && (r = i.toReadUrl), window.open(r); } }; return dt(() => { x(), O(); }), (i, r) => { const c = Tn, T = ie, D = fe, y = Ze, M = Xt, R = ot, v = ee; return P(), U("div", zn, [ o(y, { spinning: s.value }, { default: B(() => [ o(T, { class: "project-list" }, { title: B(() => [ pe(H(i.$l("快捷导航")), 1) ]), extra: B(() => [ !h.value && d.value.length > 0 ? (P(), U("a", { key: 0, onClick: r[0] || (r[0] = (p) => h.value = !0) }, H(i.$l("修改")), 1)) : ye("", !0), h.value ? (P(), U("a", { key: 1, onClick: r[1] || (r[1] = (p) => h.value = !1) }, H(i.$l("返回")), 1)) : ye("", !0), !h.value && d.value.length < 10 ? (P(), U("a", { key: 2, style: { "margin-left": "24px" }, onClick: r[2] || (r[2] = (p) => I.value = !0) }, H(i.$l("添加")), 1)) : ye("", !0) ]), default: B(() => [ d.value.length > 0 ? (P(), U("div", Pn, [ (P(!0), U(be, null, Se(d.value, (p, L) => (P(), k(D, { class: "card-grid", key: L }, { default: B(() => [ o(T, { bordered: !1, "body-style": { padding: 0, position: "relative" } }, { default: B(() => [ G("div", { class: "card-item", onClick: (N) => E(p) }, [ p.menu.icon ? (P(), k(qe(n(p.menu.icon)), { key: 1 })) : (P(), k(de(ue), { key: 0 })), G("a", null, H(p.menu.name), 1) ], 8, Bn), o(c, { title: i.$l("确认要移除此快捷导航吗?"), onConfirm: (N) => m(p), okText: i.$l("删除"), cancelText: i.$l("取消") }, { icon: B(() => [...r[7] || (r[7] = [ G("span", null, null, -1) ])]), default: B(() => [ h.value ? (P(), k(de(Ht), { key: 0, class: "delete-menu" })) : ye("", !0) ]), _: 1 }, 8, ["title", "onConfirm", "okText", "cancelText"]) ]), _: 2 }, 1024) ]), _: 2 }, 1024))), 128)) ])) : (P(), U("div", Mn, [ G("img", { src: de(Fe) }, null, 8, Rn), G("h4", null, H(i.$l("您没有设置快捷导航")), 1) ])) ]), _: 1 }) ]), _: 1 }, 8, ["spinning"]), o(y, { spinning: S.value }, { default: B(() => [ o(T, { class: "project-list margin-top-20", "body-style": l }, { title: B(() => [ G("div", Dn, [ G("div", { class: We(["item", { "s-theme-color": a.value === 1 }]), onClick: r[3] || (r[3] = (p) => z(1)) }, H(i.$l("待处理")) + "(" + H(u.value) + ") ", 3), G("div", { class: We(["item", { "s-theme-color": a.value === 2 }]), onClick: r[4] || (r[4] = (p) => z(2)) }, H(i.$l("待阅读")) + "(" + H(f.value) + ") ", 3) ]) ]), extra: B(() => [ G("a", { onClick: r[5] || (r[5] = (p) => de(t).push({ path: "/message/index" })) }, H(i.$l("更多")), 1) ]), default: B(() => [ g.value.length > 0 ? (P(), k(v, { key: 0, style: { "overflow-y": "scroll" }, size: "large", class: "project-content" }, { default: B(() => [ (P(!0), U(be, null, Se(g.value, (p, L) => (P(), k(R, { key: L }, { default: B(() => [ G("div", Ln, [ G("div", On, [ G("span", null, [ a.value === 1 ? (P(), k(M, { key: 0, color: "#2db7f5" }, { default: B(() => [ pe(H(i.$l("待处理")), 1) ]), _: 1 })) : (P(), k(M, { key: 1, color: "#2db7f5" }, { default: B(() => [ pe(H(i.$l("待阅读")), 1) ]), _: 1 })), G("a", { onClick: (N) => w(p), class: "pull-right" }, H(p.contentTitle), 9, Hn) ]), G("span", _n, H(p.createDate), 1) ]) ]) ]), _: 2 }, 1024))), 128)) ]), _: 1 })) : (P(), U("div", Nn, [ G("img", { src: de(Fe) }, null, 8, jn), G("h4", null, H(i.$l("没有消息")), 1) ])) ]), _: 1 }) ]), _: 1 }, 8, ["spinning"]), o(wn, { value: I.value, "onUpdate:value": r[6] || (r[6] = (p) => I.value = p), selectedList: d.value, onDone: A }, null, 8, ["value", "selectedList"]) ]); }; } }, Zn = /* @__PURE__ */ Ot(Wn, [["__scopeId", "data-v-d2094ddd"]]); export { Zn as default };