workplace.js 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838
  1. var se = (e, t, n) => new Promise((a, l) => {
  2. var u = (S) => {
  3. try {
  4. s(n.next(S));
  5. } catch (d) {
  6. l(d);
  7. }
  8. }, f = (S) => {
  9. try {
  10. s(n.throw(S));
  11. } catch (d) {
  12. l(d);
  13. }
  14. }, s = (S) => S.done ? a(S.value) : Promise.resolve(S.value).then(u, f);
  15. s((n = n.apply(e, t)).next());
  16. });
  17. import { defineComponent as q, computed as H, createVNode as o, isVNode as je, inject as rt, ref as j, provide as st, toRef as Re, watch as Ue, resolveComponent as Me, openBlock as B, createBlock as F, withCtx as P, createElementBlock as U, Fragment as be, renderList as Se, normalizeStyle as ct, unref as de, resolveDynamicComponent as qe, createTextVNode as ve, toDisplayString as _, onMounted as dt, createElementVNode as G, createCommentVNode as ye, normalizeClass as We } from "vue";
  18. import { useRouter as ut } from "vue-router";
  19. 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, dp as pe, aN as _e, h as gt, dq as mt, bo as pt, dr as Ye, P as X, c1 as Be, dd as le, F as vt, ds as ft, cI as ht, dt as yt, bF as Ge, aO as bt, ao as Ze, e as $e, ax as Ve, av as St, aw as Pe, l as $t, b as xt, bB as Ct, L as It, aL as At, aM as Et, a3 as Tt, du as wt, bQ as zt, bt as Bt, cU as Fe, B as Ke, bR as Pt, f as ce, ay as Rt, K as Mt, ad as Dt, dv as ue, dw as Lt, n as Ot, C as _t, dx as Ht, dy as Nt, dz as jt, dA as Wt, dB as Gt, dC as Vt } from "./index2.js";
  20. import { T as He, _ as Ft } from "./index11.js";
  21. import { u as Ie, E as Ne, s as Ae, S as V, a as et } from "./Skeleton.js";
  22. import { _ as kt } from "./index5.js";
  23. import { A as Ut } from "./ActionButton.js";
  24. import { C as qt, A as Jt } from "./Col.js";
  25. import { T as Xt } from "./index13.js";
  26. const Qt = (e) => {
  27. const {
  28. antCls: t,
  29. componentCls: n,
  30. cardHeadHeight: a,
  31. cardPaddingBase: l,
  32. cardHeadTabsMarginBottom: u
  33. } = e;
  34. return b(b({
  35. display: "flex",
  36. justifyContent: "center",
  37. flexDirection: "column",
  38. minHeight: a,
  39. marginBottom: -1,
  40. padding: `0 ${l}px`,
  41. color: e.colorTextHeading,
  42. fontWeight: e.fontWeightStrong,
  43. fontSize: e.fontSizeLG,
  44. background: "transparent",
  45. borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,
  46. borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`
  47. }, xe()), {
  48. "&-wrapper": {
  49. width: "100%",
  50. display: "flex",
  51. alignItems: "center"
  52. },
  53. "&-title": b(b({
  54. display: "inline-block",
  55. flex: 1
  56. }, Qe), {
  57. [`
  58. > ${n}-typography,
  59. > ${n}-typography-edit-content
  60. `]: {
  61. insetInlineStart: 0,
  62. marginTop: 0,
  63. marginBottom: 0
  64. }
  65. }),
  66. [`${t}-tabs-top`]: {
  67. clear: "both",
  68. marginBottom: u,
  69. color: e.colorText,
  70. fontWeight: "normal",
  71. fontSize: e.fontSize,
  72. "&-bar": {
  73. borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`
  74. }
  75. }
  76. });
  77. }, Yt = (e) => {
  78. const {
  79. cardPaddingBase: t,
  80. colorBorderSecondary: n,
  81. cardShadow: a,
  82. lineWidth: l
  83. } = e;
  84. return {
  85. width: "33.33%",
  86. padding: t,
  87. border: 0,
  88. borderRadius: 0,
  89. boxShadow: `
  90. ${l}px 0 0 0 ${n},
  91. 0 ${l}px 0 0 ${n},
  92. ${l}px ${l}px 0 0 ${n},
  93. ${l}px 0 0 0 ${n} inset,
  94. 0 ${l}px 0 0 ${n} inset;
  95. `,
  96. transition: `all ${e.motionDurationMid}`,
  97. "&-hoverable:hover": {
  98. position: "relative",
  99. zIndex: 1,
  100. boxShadow: a
  101. }
  102. };
  103. }, Zt = (e) => {
  104. const {
  105. componentCls: t,
  106. iconCls: n,
  107. cardActionsLiMargin: a,
  108. cardActionsIconSize: l,
  109. colorBorderSecondary: u
  110. } = e;
  111. return b(b({
  112. margin: 0,
  113. padding: 0,
  114. listStyle: "none",
  115. background: e.colorBgContainer,
  116. borderTop: `${e.lineWidth}px ${e.lineType} ${u}`,
  117. display: "flex",
  118. borderRadius: `0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `
  119. }, xe()), {
  120. "& > li": {
  121. margin: a,
  122. color: e.colorTextDescription,
  123. textAlign: "center",
  124. "> span": {
  125. position: "relative",
  126. display: "block",
  127. minWidth: e.cardActionsIconSize * 2,
  128. fontSize: e.fontSize,
  129. lineHeight: e.lineHeight,
  130. cursor: "pointer",
  131. "&:hover": {
  132. color: e.colorPrimary,
  133. transition: `color ${e.motionDurationMid}`
  134. },
  135. [`a:not(${t}-btn), > ${n}`]: {
  136. display: "inline-block",
  137. width: "100%",
  138. color: e.colorTextDescription,
  139. lineHeight: `${e.fontSize * e.lineHeight}px`,
  140. transition: `color ${e.motionDurationMid}`,
  141. "&:hover": {
  142. color: e.colorPrimary
  143. }
  144. },
  145. [`> ${n}`]: {
  146. fontSize: l,
  147. lineHeight: `${l * e.lineHeight}px`
  148. }
  149. },
  150. "&:not(:last-child)": {
  151. borderInlineEnd: `${e.lineWidth}px ${e.lineType} ${u}`
  152. }
  153. }
  154. });
  155. }, Kt = (e) => b(b({
  156. margin: `-${e.marginXXS}px 0`,
  157. display: "flex"
  158. }, xe()), {
  159. "&-avatar": {
  160. paddingInlineEnd: e.padding
  161. },
  162. "&-detail": {
  163. overflow: "hidden",
  164. flex: 1,
  165. "> div:not(:last-child)": {
  166. marginBottom: e.marginXS
  167. }
  168. },
  169. "&-title": b({
  170. color: e.colorTextHeading,
  171. fontWeight: e.fontWeightStrong,
  172. fontSize: e.fontSizeLG
  173. }, Qe),
  174. "&-description": {
  175. color: e.colorTextDescription
  176. }
  177. }), en = (e) => {
  178. const {
  179. componentCls: t,
  180. cardPaddingBase: n,
  181. colorFillAlter: a
  182. } = e;
  183. return {
  184. [`${t}-head`]: {
  185. padding: `0 ${n}px`,
  186. background: a,
  187. "&-title": {
  188. fontSize: e.fontSize
  189. }
  190. },
  191. [`${t}-body`]: {
  192. padding: `${e.padding}px ${n}px`
  193. }
  194. };
  195. }, tn = (e) => {
  196. const {
  197. componentCls: t
  198. } = e;
  199. return {
  200. overflow: "hidden",
  201. [`${t}-body`]: {
  202. userSelect: "none"
  203. }
  204. };
  205. }, nn = (e) => {
  206. const {
  207. componentCls: t,
  208. cardShadow: n,
  209. cardHeadPadding: a,
  210. colorBorderSecondary: l,
  211. boxShadow: u,
  212. cardPaddingBase: f
  213. } = e;
  214. return {
  215. [t]: b(b({}, Xe(e)), {
  216. position: "relative",
  217. background: e.colorBgContainer,
  218. borderRadius: e.borderRadiusLG,
  219. [`&:not(${t}-bordered)`]: {
  220. boxShadow: u
  221. },
  222. [`${t}-head`]: Qt(e),
  223. [`${t}-extra`]: {
  224. // https://stackoverflow.com/a/22429853/3040605
  225. marginInlineStart: "auto",
  226. color: "",
  227. fontWeight: "normal",
  228. fontSize: e.fontSize
  229. },
  230. [`${t}-body`]: b({
  231. padding: f,
  232. borderRadius: ` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`
  233. }, xe()),
  234. [`${t}-grid`]: Yt(e),
  235. [`${t}-cover`]: {
  236. "> *": {
  237. display: "block",
  238. width: "100%"
  239. },
  240. img: {
  241. borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`
  242. }
  243. },
  244. [`${t}-actions`]: Zt(e),
  245. [`${t}-meta`]: Kt(e)
  246. }),
  247. [`${t}-bordered`]: {
  248. border: `${e.lineWidth}px ${e.lineType} ${l}`,
  249. [`${t}-cover`]: {
  250. marginTop: -1,
  251. marginInlineStart: -1,
  252. marginInlineEnd: -1
  253. }
  254. },
  255. [`${t}-hoverable`]: {
  256. cursor: "pointer",
  257. transition: `box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,
  258. "&:hover": {
  259. borderColor: "transparent",
  260. boxShadow: n
  261. }
  262. },
  263. [`${t}-contain-grid`]: {
  264. [`${t}-body`]: {
  265. display: "flex",
  266. flexWrap: "wrap"
  267. },
  268. [`&:not(${t}-loading) ${t}-body`]: {
  269. marginBlockStart: -e.lineWidth,
  270. marginInlineStart: -e.lineWidth,
  271. padding: 0
  272. }
  273. },
  274. [`${t}-contain-tabs`]: {
  275. [`> ${t}-head`]: {
  276. [`${t}-head-title, ${t}-extra`]: {
  277. paddingTop: a
  278. }
  279. }
  280. },
  281. [`${t}-type-inner`]: en(e),
  282. [`${t}-loading`]: tn(e),
  283. [`${t}-rtl`]: {
  284. direction: "rtl"
  285. }
  286. };
  287. }, an = (e) => {
  288. const {
  289. componentCls: t,
  290. cardPaddingSM: n,
  291. cardHeadHeightSM: a
  292. } = e;
  293. return {
  294. [`${t}-small`]: {
  295. [`> ${t}-head`]: {
  296. minHeight: a,
  297. padding: `0 ${n}px`,
  298. fontSize: e.fontSize,
  299. [`> ${t}-head-wrapper`]: {
  300. [`> ${t}-extra`]: {
  301. fontSize: e.fontSize
  302. }
  303. }
  304. },
  305. [`> ${t}-body`]: {
  306. padding: n
  307. }
  308. },
  309. [`${t}-small${t}-contain-tabs`]: {
  310. [`> ${t}-head`]: {
  311. [`${t}-head-title, ${t}-extra`]: {
  312. minHeight: a,
  313. paddingTop: 0,
  314. display: "flex",
  315. alignItems: "center"
  316. }
  317. }
  318. }
  319. };
  320. }, ln = Le("Card", (e) => {
  321. const t = Je(e, {
  322. cardShadow: e.boxShadowCard,
  323. cardHeadHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
  324. cardHeadHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
  325. cardHeadPadding: e.padding,
  326. cardPaddingBase: e.paddingLG,
  327. cardHeadTabsMarginBottom: -e.padding - e.lineWidth,
  328. cardActionsLiMargin: `${e.paddingSM}px 0`,
  329. cardActionsIconSize: e.fontSize,
  330. cardPaddingSM: 12
  331. // Fixed padding.
  332. });
  333. return [
  334. // Style
  335. nn(t),
  336. // Size
  337. an(t)
  338. ];
  339. }), on = () => b(b({}, Ae()), {
  340. size: String,
  341. block: Boolean
  342. }), tt = q({
  343. compatConfig: {
  344. MODE: 3
  345. },
  346. name: "ASkeletonButton",
  347. props: Ce(on(), {
  348. size: "default"
  349. }),
  350. setup(e) {
  351. const {
  352. prefixCls: t
  353. } = J("skeleton", e), [n, a] = Ie(t), l = H(() => oe(t.value, `${t.value}-element`, {
  354. [`${t.value}-active`]: e.active,
  355. [`${t.value}-block`]: e.block
  356. }, a.value));
  357. return () => n(o("div", {
  358. class: l.value
  359. }, [o(Ne, W(W({}, e), {}, {
  360. prefixCls: `${t.value}-button`
  361. }), null)]));
  362. }
  363. }), nt = q({
  364. compatConfig: {
  365. MODE: 3
  366. },
  367. name: "ASkeletonInput",
  368. props: b(b({}, Oe(Ae(), ["shape"])), {
  369. size: String,
  370. block: Boolean
  371. }),
  372. setup(e) {
  373. const {
  374. prefixCls: t
  375. } = J("skeleton", e), [n, a] = Ie(t), l = H(() => oe(t.value, `${t.value}-element`, {
  376. [`${t.value}-active`]: e.active,
  377. [`${t.value}-block`]: e.block
  378. }, a.value));
  379. return () => n(o("div", {
  380. class: l.value
  381. }, [o(Ne, W(W({}, e), {}, {
  382. prefixCls: `${t.value}-input`
  383. }), null)]));
  384. }
  385. }), 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({
  386. compatConfig: {
  387. MODE: 3
  388. },
  389. name: "ASkeletonImage",
  390. props: Oe(Ae(), ["size", "shape", "active"]),
  391. setup(e) {
  392. const {
  393. prefixCls: t
  394. } = J("skeleton", e), [n, a] = Ie(t), l = H(() => oe(t.value, `${t.value}-element`, a.value));
  395. return () => n(o("div", {
  396. class: l.value
  397. }, [o("div", {
  398. class: `${t.value}-image`
  399. }, [o("svg", {
  400. viewBox: "0 0 1098 1024",
  401. xmlns: "http://www.w3.org/2000/svg",
  402. class: `${t.value}-image-svg`
  403. }, [o("path", {
  404. d: rn,
  405. class: `${t.value}-image-path`
  406. }, null)])])]));
  407. }
  408. }), sn = () => b(b({}, Ae()), {
  409. shape: String
  410. }), lt = q({
  411. compatConfig: {
  412. MODE: 3
  413. },
  414. name: "ASkeletonAvatar",
  415. props: Ce(sn(), {
  416. size: "default",
  417. shape: "circle"
  418. }),
  419. setup(e) {
  420. const {
  421. prefixCls: t
  422. } = J("skeleton", e), [n, a] = Ie(t), l = H(() => oe(t.value, `${t.value}-element`, {
  423. [`${t.value}-active`]: e.active
  424. }, a.value));
  425. return () => n(o("div", {
  426. class: l.value
  427. }, [o(Ne, W(W({}, e), {}, {
  428. prefixCls: `${t.value}-avatar`
  429. }), null)]));
  430. }
  431. });
  432. V.Button = tt;
  433. V.Avatar = lt;
  434. V.Input = nt;
  435. V.Image = at;
  436. V.Title = et;
  437. V.install = function(e) {
  438. 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;
  439. };
  440. const {
  441. TabPane: cn
  442. } = He, dn = () => ({
  443. prefixCls: String,
  444. title: X.any,
  445. extra: X.any,
  446. bordered: {
  447. type: Boolean,
  448. default: !0
  449. },
  450. bodyStyle: {
  451. type: Object,
  452. default: void 0
  453. },
  454. headStyle: {
  455. type: Object,
  456. default: void 0
  457. },
  458. loading: {
  459. type: Boolean,
  460. default: !1
  461. },
  462. hoverable: {
  463. type: Boolean,
  464. default: !1
  465. },
  466. type: {
  467. type: String
  468. },
  469. size: {
  470. type: String
  471. },
  472. actions: X.any,
  473. tabList: {
  474. type: Array
  475. },
  476. tabBarExtraContent: X.any,
  477. activeTabKey: String,
  478. defaultActiveTabKey: String,
  479. cover: X.any,
  480. onTabChange: {
  481. type: Function
  482. }
  483. }), ie = q({
  484. compatConfig: {
  485. MODE: 3
  486. },
  487. name: "ACard",
  488. inheritAttrs: !1,
  489. props: dn(),
  490. slots: Object,
  491. setup(e, t) {
  492. let {
  493. slots: n,
  494. attrs: a
  495. } = t;
  496. const {
  497. prefixCls: l,
  498. direction: u,
  499. size: f
  500. } = J("card", e), [s, S] = ln(l), d = (g) => g.map(($, E) => je($) && !Ye($) || !je($) ? o("li", {
  501. style: {
  502. width: `${100 / g.length}%`
  503. },
  504. key: `action-${E}`
  505. }, [o("span", null, [$])]) : null), I = (g) => {
  506. var x;
  507. (x = e.onTabChange) === null || x === void 0 || x.call(e, g);
  508. }, h = function() {
  509. let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], x;
  510. return g.forEach(($) => {
  511. $ && pt($.type) && $.type.__ANT_CARD_GRID && (x = !0);
  512. }), x;
  513. };
  514. return () => {
  515. var g, x, $, E, z, O;
  516. const {
  517. headStyle: A = {},
  518. bodyStyle: m = {},
  519. loading: w,
  520. bordered: i = !0,
  521. type: r,
  522. tabList: c,
  523. hoverable: T,
  524. activeTabKey: D,
  525. defaultActiveTabKey: y,
  526. tabBarExtraContent: R = pe((g = n.tabBarExtraContent) === null || g === void 0 ? void 0 : g.call(n)),
  527. title: M = pe((x = n.title) === null || x === void 0 ? void 0 : x.call(n)),
  528. extra: p = pe(($ = n.extra) === null || $ === void 0 ? void 0 : $.call(n)),
  529. actions: v = pe((E = n.actions) === null || E === void 0 ? void 0 : E.call(n)),
  530. cover: L = pe((z = n.cover) === null || z === void 0 ? void 0 : z.call(n))
  531. } = e, N = _e((O = n.default) === null || O === void 0 ? void 0 : O.call(n)), C = l.value, k = {
  532. [`${C}`]: !0,
  533. [S.value]: !0,
  534. [`${C}-loading`]: w,
  535. [`${C}-bordered`]: i,
  536. [`${C}-hoverable`]: !!T,
  537. [`${C}-contain-grid`]: h(N),
  538. [`${C}-contain-tabs`]: c && c.length,
  539. [`${C}-${f.value}`]: f.value,
  540. [`${C}-type-${r}`]: !!r,
  541. [`${C}-rtl`]: u.value === "rtl"
  542. }, te = o(V, {
  543. loading: !0,
  544. active: !0,
  545. paragraph: {
  546. rows: 4
  547. },
  548. title: !1
  549. }, {
  550. default: () => [N]
  551. }), Q = D !== void 0, ne = {
  552. size: "large",
  553. [Q ? "activeKey" : "defaultActiveKey"]: Q ? D : y,
  554. onChange: I,
  555. class: `${C}-head-tabs`
  556. };
  557. let Y;
  558. const ae = c && c.length ? o(He, ne, {
  559. default: () => [c.map((K) => {
  560. const {
  561. tab: re,
  562. slots: Z
  563. } = K, ge = Z == null ? void 0 : Z.tab;
  564. gt(!Z, "Card", "tabList slots is deprecated, Please use `customTab` instead.");
  565. let me = re !== void 0 ? re : n[ge] ? n[ge](K) : null;
  566. return me = mt(n, "customTab", K, () => [me]), o(cn, {
  567. tab: me,
  568. key: K.key,
  569. disabled: K.disabled
  570. }, null);
  571. })],
  572. rightExtra: R ? () => R : null
  573. }) : null;
  574. (M || p || ae) && (Y = o("div", {
  575. class: `${C}-head`,
  576. style: A
  577. }, [o("div", {
  578. class: `${C}-head-wrapper`
  579. }, [M && o("div", {
  580. class: `${C}-head-title`
  581. }, [M]), p && o("div", {
  582. class: `${C}-extra`
  583. }, [p])]), ae]));
  584. const he = L ? o("div", {
  585. class: `${C}-cover`
  586. }, [L]) : null, Ee = o("div", {
  587. class: `${C}-body`,
  588. style: m
  589. }, [w ? te : N]), Te = v && v.length ? o("ul", {
  590. class: `${C}-actions`
  591. }, [d(v)]) : null;
  592. return s(o("div", W(W({
  593. ref: "cardContainerRef"
  594. }, a), {}, {
  595. class: [k, a.class]
  596. }), [Y, he, N && N.length ? Ee : null, Te]));
  597. };
  598. }
  599. }), un = () => ({
  600. prefixCls: String,
  601. title: le(),
  602. description: le(),
  603. avatar: le()
  604. }), De = q({
  605. compatConfig: {
  606. MODE: 3
  607. },
  608. name: "ACardMeta",
  609. props: un(),
  610. slots: Object,
  611. setup(e, t) {
  612. let {
  613. slots: n
  614. } = t;
  615. const {
  616. prefixCls: a
  617. } = J("card", e);
  618. return () => {
  619. const l = {
  620. [`${a.value}-meta`]: !0
  621. }, u = Be(n, e, "avatar"), f = Be(n, e, "title"), s = Be(n, e, "description"), S = u ? o("div", {
  622. class: `${a.value}-meta-avatar`
  623. }, [u]) : null, d = f ? o("div", {
  624. class: `${a.value}-meta-title`
  625. }, [f]) : null, I = s ? o("div", {
  626. class: `${a.value}-meta-description`
  627. }, [s]) : null, h = d || I ? o("div", {
  628. class: `${a.value}-meta-detail`
  629. }, [d, I]) : null;
  630. return o("div", {
  631. class: l
  632. }, [S, h]);
  633. };
  634. }
  635. }), gn = () => ({
  636. prefixCls: String,
  637. hoverable: {
  638. type: Boolean,
  639. default: !0
  640. }
  641. }), fe = q({
  642. compatConfig: {
  643. MODE: 3
  644. },
  645. name: "ACardGrid",
  646. __ANT_CARD_GRID: !0,
  647. props: gn(),
  648. setup(e, t) {
  649. let {
  650. slots: n
  651. } = t;
  652. const {
  653. prefixCls: a
  654. } = J("card", e), l = H(() => ({
  655. [`${a.value}-grid`]: !0,
  656. [`${a.value}-grid-hoverable`]: e.hoverable
  657. }));
  658. return () => {
  659. var u;
  660. return o("div", {
  661. class: l.value
  662. }, [(u = n.default) === null || u === void 0 ? void 0 : u.call(n)]);
  663. };
  664. }
  665. });
  666. ie.Meta = De;
  667. ie.Grid = fe;
  668. ie.install = function(e) {
  669. return e.component(ie.name, ie), e.component(De.name, De), e.component(fe.name, fe), e;
  670. };
  671. const mn = () => ({
  672. avatar: X.any,
  673. description: X.any,
  674. prefixCls: String,
  675. title: X.any
  676. }), pn = q({
  677. compatConfig: {
  678. MODE: 3
  679. },
  680. name: "AListItemMeta",
  681. props: mn(),
  682. displayName: "AListItemMeta",
  683. __ANT_LIST_ITEM_META: !0,
  684. slots: Object,
  685. setup(e, t) {
  686. let {
  687. slots: n
  688. } = t;
  689. const {
  690. prefixCls: a
  691. } = J("list", e);
  692. return () => {
  693. var l, u, f, s, S, d;
  694. 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", {
  695. class: `${a.value}-item-meta-content`
  696. }, [h && o("h4", {
  697. class: `${a.value}-item-meta-title`
  698. }, [h]), g && o("div", {
  699. class: `${a.value}-item-meta-description`
  700. }, [g])]);
  701. return o("div", {
  702. class: I
  703. }, [x && o("div", {
  704. class: `${a.value}-item-meta-avatar`
  705. }, [x]), (h || g) && $]);
  706. };
  707. }
  708. }), it = Symbol("ListContextKey");
  709. var vn = function(e, t) {
  710. var n = {};
  711. for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
  712. if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++)
  713. t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]);
  714. return n;
  715. };
  716. const fn = () => ({
  717. prefixCls: String,
  718. extra: X.any,
  719. actions: X.array,
  720. grid: Object,
  721. colStyle: {
  722. type: Object,
  723. default: void 0
  724. }
  725. }), ot = q({
  726. compatConfig: {
  727. MODE: 3
  728. },
  729. name: "AListItem",
  730. inheritAttrs: !1,
  731. Meta: pn,
  732. props: fn(),
  733. slots: Object,
  734. setup(e, t) {
  735. let {
  736. slots: n,
  737. attrs: a
  738. } = t;
  739. const {
  740. itemLayout: l,
  741. grid: u
  742. } = rt(it, {
  743. grid: j(),
  744. itemLayout: j()
  745. }), {
  746. prefixCls: f
  747. } = J("list", e), s = () => {
  748. var d;
  749. const I = ((d = n.default) === null || d === void 0 ? void 0 : d.call(n)) || [];
  750. let h;
  751. return I.forEach((g) => {
  752. ft(g) && !Ye(g) && (h = !0);
  753. }), h && I.length > 1;
  754. }, S = () => {
  755. var d, I;
  756. const h = (d = e.extra) !== null && d !== void 0 ? d : (I = n.extra) === null || I === void 0 ? void 0 : I.call(n);
  757. return l.value === "vertical" ? !!h : !s();
  758. };
  759. return () => {
  760. var d, I, h, g, x;
  761. const {
  762. class: $
  763. } = a, E = vn(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);
  764. let m = (g = e.actions) !== null && g !== void 0 ? g : _e((x = n.actions) === null || x === void 0 ? void 0 : x.call(n));
  765. m = m && !Array.isArray(m) ? [m] : m;
  766. const w = m && m.length > 0 && o("ul", {
  767. class: `${z}-item-action`,
  768. key: "actions"
  769. }, [m.map((c, T) => o("li", {
  770. key: `${z}-item-action-${T}`
  771. }, [c, T !== m.length - 1 && o("em", {
  772. class: `${z}-item-action-split`
  773. }, null)]))]), i = u.value ? "div" : "li", r = o(i, W(W({}, E), {}, {
  774. class: oe(`${z}-item`, {
  775. [`${z}-item-no-flex`]: !S()
  776. }, $)
  777. }), {
  778. default: () => [l.value === "vertical" && O ? [o("div", {
  779. class: `${z}-item-main`,
  780. key: "content"
  781. }, [A, w]), o("div", {
  782. class: `${z}-item-extra`,
  783. key: "extra"
  784. }, [O])] : [A, w, vt(O, {
  785. key: "extra"
  786. })]]
  787. });
  788. return u.value ? o(qt, {
  789. flex: 1,
  790. style: e.colStyle
  791. }, {
  792. default: () => [r]
  793. }) : r;
  794. };
  795. }
  796. }), hn = (e) => {
  797. const {
  798. listBorderedCls: t,
  799. componentCls: n,
  800. paddingLG: a,
  801. margin: l,
  802. padding: u,
  803. listItemPaddingSM: f,
  804. marginLG: s,
  805. borderRadiusLG: S
  806. } = e;
  807. return {
  808. [`${t}`]: {
  809. border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,
  810. borderRadius: S,
  811. [`${n}-header,${n}-footer,${n}-item`]: {
  812. paddingInline: a
  813. },
  814. [`${n}-pagination`]: {
  815. margin: `${l}px ${s}px`
  816. }
  817. },
  818. [`${t}${n}-sm`]: {
  819. [`${n}-item,${n}-header,${n}-footer`]: {
  820. padding: f
  821. }
  822. },
  823. [`${t}${n}-lg`]: {
  824. [`${n}-item,${n}-header,${n}-footer`]: {
  825. padding: `${u}px ${a}px`
  826. }
  827. }
  828. };
  829. }, yn = (e) => {
  830. const {
  831. componentCls: t,
  832. screenSM: n,
  833. screenMD: a,
  834. marginLG: l,
  835. marginSM: u,
  836. margin: f
  837. } = e;
  838. return {
  839. [`@media screen and (max-width:${a})`]: {
  840. [`${t}`]: {
  841. [`${t}-item`]: {
  842. [`${t}-item-action`]: {
  843. marginInlineStart: l
  844. }
  845. }
  846. },
  847. [`${t}-vertical`]: {
  848. [`${t}-item`]: {
  849. [`${t}-item-extra`]: {
  850. marginInlineStart: l
  851. }
  852. }
  853. }
  854. },
  855. [`@media screen and (max-width: ${n})`]: {
  856. [`${t}`]: {
  857. [`${t}-item`]: {
  858. flexWrap: "wrap",
  859. [`${t}-action`]: {
  860. marginInlineStart: u
  861. }
  862. }
  863. },
  864. [`${t}-vertical`]: {
  865. [`${t}-item`]: {
  866. flexWrap: "wrap-reverse",
  867. [`${t}-item-main`]: {
  868. minWidth: e.contentWidth
  869. },
  870. [`${t}-item-extra`]: {
  871. margin: `auto auto ${f}px`
  872. }
  873. }
  874. }
  875. }
  876. };
  877. }, bn = (e) => {
  878. const {
  879. componentCls: t,
  880. antCls: n,
  881. controlHeight: a,
  882. minHeight: l,
  883. paddingSM: u,
  884. marginLG: f,
  885. padding: s,
  886. listItemPadding: S,
  887. colorPrimary: d,
  888. listItemPaddingSM: I,
  889. listItemPaddingLG: h,
  890. paddingXS: g,
  891. margin: x,
  892. colorText: $,
  893. colorTextDescription: E,
  894. motionDurationSlow: z,
  895. lineWidth: O
  896. } = e;
  897. return {
  898. [`${t}`]: b(b({}, Xe(e)), {
  899. position: "relative",
  900. "*": {
  901. outline: "none"
  902. },
  903. [`${t}-header, ${t}-footer`]: {
  904. background: "transparent",
  905. paddingBlock: u
  906. },
  907. [`${t}-pagination`]: {
  908. marginBlockStart: f,
  909. textAlign: "end",
  910. // https://github.com/ant-design/ant-design/issues/20037
  911. [`${n}-pagination-options`]: {
  912. textAlign: "start"
  913. }
  914. },
  915. [`${t}-spin`]: {
  916. minHeight: l,
  917. textAlign: "center"
  918. },
  919. [`${t}-items`]: {
  920. margin: 0,
  921. padding: 0,
  922. listStyle: "none"
  923. },
  924. [`${t}-item`]: {
  925. display: "flex",
  926. alignItems: "center",
  927. justifyContent: "space-between",
  928. padding: S,
  929. color: $,
  930. [`${t}-item-meta`]: {
  931. display: "flex",
  932. flex: 1,
  933. alignItems: "flex-start",
  934. maxWidth: "100%",
  935. [`${t}-item-meta-avatar`]: {
  936. marginInlineEnd: s
  937. },
  938. [`${t}-item-meta-content`]: {
  939. flex: "1 0",
  940. width: 0,
  941. color: $
  942. },
  943. [`${t}-item-meta-title`]: {
  944. marginBottom: e.marginXXS,
  945. color: $,
  946. fontSize: e.fontSize,
  947. lineHeight: e.lineHeight,
  948. "> a": {
  949. color: $,
  950. transition: `all ${z}`,
  951. "&:hover": {
  952. color: d
  953. }
  954. }
  955. },
  956. [`${t}-item-meta-description`]: {
  957. color: E,
  958. fontSize: e.fontSize,
  959. lineHeight: e.lineHeight
  960. }
  961. },
  962. [`${t}-item-action`]: {
  963. flex: "0 0 auto",
  964. marginInlineStart: e.marginXXL,
  965. padding: 0,
  966. fontSize: 0,
  967. listStyle: "none",
  968. "& > li": {
  969. position: "relative",
  970. display: "inline-block",
  971. padding: `0 ${g}px`,
  972. color: E,
  973. fontSize: e.fontSize,
  974. lineHeight: e.lineHeight,
  975. textAlign: "center",
  976. "&:first-child": {
  977. paddingInlineStart: 0
  978. }
  979. },
  980. [`${t}-item-action-split`]: {
  981. position: "absolute",
  982. insetBlockStart: "50%",
  983. insetInlineEnd: 0,
  984. width: O,
  985. height: Math.ceil(e.fontSize * e.lineHeight) - e.marginXXS * 2,
  986. transform: "translateY(-50%)",
  987. backgroundColor: e.colorSplit
  988. }
  989. }
  990. },
  991. [`${t}-empty`]: {
  992. padding: `${s}px 0`,
  993. color: E,
  994. fontSize: e.fontSizeSM,
  995. textAlign: "center"
  996. },
  997. [`${t}-empty-text`]: {
  998. padding: s,
  999. color: e.colorTextDisabled,
  1000. fontSize: e.fontSize,
  1001. textAlign: "center"
  1002. },
  1003. // ============================ without flex ============================
  1004. [`${t}-item-no-flex`]: {
  1005. display: "block"
  1006. }
  1007. }),
  1008. [`${t}-grid ${n}-col > ${t}-item`]: {
  1009. display: "block",
  1010. maxWidth: "100%",
  1011. marginBlockEnd: x,
  1012. paddingBlock: 0,
  1013. borderBlockEnd: "none"
  1014. },
  1015. [`${t}-vertical ${t}-item`]: {
  1016. alignItems: "initial",
  1017. [`${t}-item-main`]: {
  1018. display: "block",
  1019. flex: 1
  1020. },
  1021. [`${t}-item-extra`]: {
  1022. marginInlineStart: f
  1023. },
  1024. [`${t}-item-meta`]: {
  1025. marginBlockEnd: s,
  1026. [`${t}-item-meta-title`]: {
  1027. marginBlockEnd: u,
  1028. color: $,
  1029. fontSize: e.fontSizeLG,
  1030. lineHeight: e.lineHeightLG
  1031. }
  1032. },
  1033. [`${t}-item-action`]: {
  1034. marginBlockStart: s,
  1035. marginInlineStart: "auto",
  1036. "> li": {
  1037. padding: `0 ${s}px`,
  1038. "&:first-child": {
  1039. paddingInlineStart: 0
  1040. }
  1041. }
  1042. }
  1043. },
  1044. [`${t}-split ${t}-item`]: {
  1045. borderBlockEnd: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,
  1046. "&:last-child": {
  1047. borderBlockEnd: "none"
  1048. }
  1049. },
  1050. [`${t}-split ${t}-header`]: {
  1051. borderBlockEnd: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`
  1052. },
  1053. [`${t}-split${t}-empty ${t}-footer`]: {
  1054. borderTop: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`
  1055. },
  1056. [`${t}-loading ${t}-spin-nested-loading`]: {
  1057. minHeight: a
  1058. },
  1059. [`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]: {
  1060. borderBlockEnd: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}`
  1061. },
  1062. [`${t}-lg ${t}-item`]: {
  1063. padding: h
  1064. },
  1065. [`${t}-sm ${t}-item`]: {
  1066. padding: I
  1067. },
  1068. // Horizontal
  1069. [`${t}:not(${t}-vertical)`]: {
  1070. [`${t}-item-no-flex`]: {
  1071. [`${t}-item-action`]: {
  1072. float: "right"
  1073. }
  1074. }
  1075. }
  1076. };
  1077. }, Sn = Le("List", (e) => {
  1078. const t = Je(e, {
  1079. listBorderedCls: `${e.componentCls}-bordered`,
  1080. minHeight: e.controlHeightLG,
  1081. listItemPadding: `${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,
  1082. listItemPaddingSM: `${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,
  1083. listItemPaddingLG: `${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`
  1084. });
  1085. return [bn(t), hn(t), yn(t)];
  1086. }, {
  1087. contentWidth: 220
  1088. }), $n = () => ({
  1089. bordered: Ve(),
  1090. dataSource: $t(),
  1091. extra: le(),
  1092. grid: $e(),
  1093. itemLayout: String,
  1094. loading: Pe([Boolean, Object]),
  1095. loadMore: le(),
  1096. pagination: Pe([Boolean, Object]),
  1097. prefixCls: String,
  1098. rowKey: Pe([String, Number, Function]),
  1099. renderItem: St(),
  1100. size: String,
  1101. split: Ve(),
  1102. header: le(),
  1103. footer: le(),
  1104. locale: $e()
  1105. }), ee = q({
  1106. compatConfig: {
  1107. MODE: 3
  1108. },
  1109. name: "AList",
  1110. inheritAttrs: !1,
  1111. Item: ot,
  1112. props: Ce($n(), {
  1113. dataSource: [],
  1114. bordered: !1,
  1115. split: !0,
  1116. loading: !1,
  1117. pagination: !1
  1118. }),
  1119. slots: Object,
  1120. setup(e, t) {
  1121. let {
  1122. slots: n,
  1123. attrs: a
  1124. } = t;
  1125. var l, u;
  1126. st(it, {
  1127. grid: Re(e, "grid"),
  1128. itemLayout: Re(e, "itemLayout")
  1129. });
  1130. const f = {
  1131. current: 1,
  1132. total: 0
  1133. }, {
  1134. prefixCls: s,
  1135. direction: S,
  1136. renderEmpty: d
  1137. } = J("list", e), [I, h] = Sn(s), g = H(() => 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);
  1138. Ue(g, () => {
  1139. "current" in g.value && (x.value = g.value.current), "pageSize" in g.value && ($.value = g.value.pageSize);
  1140. });
  1141. const E = [], z = (p) => (v, L) => {
  1142. x.value = v, $.value = L, g.value[p] && g.value[p](v, L);
  1143. }, O = z("onChange"), A = z("onShowSizeChange"), m = H(() => typeof e.loading == "boolean" ? {
  1144. spinning: e.loading
  1145. } : e.loading), w = H(() => m.value && m.value.spinning), i = H(() => {
  1146. let p = "";
  1147. switch (e.size) {
  1148. case "large":
  1149. p = "lg";
  1150. break;
  1151. case "small":
  1152. p = "sm";
  1153. break;
  1154. }
  1155. return p;
  1156. }), r = H(() => ({
  1157. [`${s.value}`]: !0,
  1158. [`${s.value}-vertical`]: e.itemLayout === "vertical",
  1159. [`${s.value}-${i.value}`]: i.value,
  1160. [`${s.value}-split`]: e.split,
  1161. [`${s.value}-bordered`]: e.bordered,
  1162. [`${s.value}-loading`]: w.value,
  1163. [`${s.value}-grid`]: !!e.grid,
  1164. [`${s.value}-rtl`]: S.value === "rtl"
  1165. })), c = H(() => {
  1166. const p = b(b(b({}, f), {
  1167. total: e.dataSource.length,
  1168. current: x.value,
  1169. pageSize: $.value
  1170. }), e.pagination || {}), v = Math.ceil(p.total / p.pageSize);
  1171. return p.current > v && (p.current = v), p;
  1172. }), T = H(() => {
  1173. let p = [...e.dataSource];
  1174. return e.pagination && e.dataSource.length > (c.value.current - 1) * c.value.pageSize && (p = [...e.dataSource].splice((c.value.current - 1) * c.value.pageSize, c.value.pageSize)), p;
  1175. }), D = ht(), y = yt(() => {
  1176. for (let p = 0; p < Ge.length; p += 1) {
  1177. const v = Ge[p];
  1178. if (D.value[v])
  1179. return v;
  1180. }
  1181. }), R = H(() => {
  1182. if (!e.grid)
  1183. return;
  1184. const p = y.value && e.grid[y.value] ? e.grid[y.value] : e.grid.column;
  1185. if (p)
  1186. return {
  1187. width: `${100 / p}%`,
  1188. maxWidth: `${100 / p}%`
  1189. };
  1190. }), M = (p, v) => {
  1191. var L;
  1192. const N = (L = e.renderItem) !== null && L !== void 0 ? L : n.renderItem;
  1193. if (!N) return null;
  1194. let C;
  1195. const k = typeof e.rowKey;
  1196. return k === "function" ? C = e.rowKey(p) : k === "string" || k === "number" ? C = p[e.rowKey] : C = p.key, C || (C = `list-item-${v}`), E[v] = C, N({
  1197. item: p,
  1198. index: v
  1199. });
  1200. };
  1201. return () => {
  1202. var p, v, L, N, C, k, te, Q;
  1203. const ne = (p = e.loadMore) !== null && p !== void 0 ? p : (v = n.loadMore) === null || v === void 0 ? void 0 : v.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 : (k = n.header) === null || k === void 0 ? void 0 : k.call(n), he = _e((te = n.default) === null || te === void 0 ? void 0 : te.call(n)), Ee = !!(ne || e.pagination || Y), Te = oe(b(b({}, r.value), {
  1204. [`${s.value}-something-after-last-item`]: Ee
  1205. }), a.class, h.value), K = e.pagination ? o("div", {
  1206. class: `${s.value}-pagination`
  1207. }, [o(bt, W(W({}, c.value), {}, {
  1208. onChange: O,
  1209. onShowSizeChange: A
  1210. }), null)]) : null;
  1211. let re = w.value && o("div", {
  1212. style: {
  1213. minHeight: "53px"
  1214. }
  1215. }, null);
  1216. if (T.value.length > 0) {
  1217. E.length = 0;
  1218. const ge = T.value.map((we, ze) => M(we, ze)), me = ge.map((we, ze) => o("div", {
  1219. key: E[ze],
  1220. style: R.value
  1221. }, [we]));
  1222. re = e.grid ? o(Jt, {
  1223. gutter: e.grid.gutter
  1224. }, {
  1225. default: () => [me]
  1226. }) : o("ul", {
  1227. class: `${s.value}-items`
  1228. }, [ge]);
  1229. } else !he.length && !w.value && (re = o("div", {
  1230. class: `${s.value}-empty-text`
  1231. }, [((Q = e.locale) === null || Q === void 0 ? void 0 : Q.emptyText) || d("List")]));
  1232. const Z = c.value.position || "bottom";
  1233. return I(o("div", W(W({}, a), {}, {
  1234. class: Te
  1235. }), [(Z === "top" || Z === "both") && K, ae && o("div", {
  1236. class: `${s.value}-header`
  1237. }, [ae]), o(Ze, m.value, {
  1238. default: () => [re, he]
  1239. }), Y && o("div", {
  1240. class: `${s.value}-footer`
  1241. }, [Y]), ne || (Z === "bottom" || Z === "both") && K]));
  1242. };
  1243. }
  1244. });
  1245. ee.install = function(e) {
  1246. return e.component(ee.name, ee), e.component(ee.Item.name, ee.Item), e.component(ee.Item.Meta.name, ee.Item.Meta), e;
  1247. };
  1248. const xn = (e) => {
  1249. const {
  1250. componentCls: t,
  1251. iconCls: n,
  1252. zIndexPopup: a,
  1253. colorText: l,
  1254. colorWarning: u,
  1255. marginXS: f,
  1256. fontSize: s,
  1257. fontWeightStrong: S,
  1258. lineHeight: d
  1259. } = e;
  1260. return {
  1261. [t]: {
  1262. zIndex: a,
  1263. [`${t}-inner-content`]: {
  1264. color: l
  1265. },
  1266. [`${t}-message`]: {
  1267. position: "relative",
  1268. marginBottom: f,
  1269. color: l,
  1270. fontSize: s,
  1271. display: "flex",
  1272. flexWrap: "nowrap",
  1273. alignItems: "start",
  1274. [`> ${t}-message-icon ${n}`]: {
  1275. color: u,
  1276. fontSize: s,
  1277. flex: "none",
  1278. lineHeight: 1,
  1279. paddingTop: (Math.round(s * d) - s) / 2
  1280. },
  1281. "&-title": {
  1282. flex: "auto",
  1283. marginInlineStart: f
  1284. },
  1285. "&-title-only": {
  1286. fontWeight: S
  1287. }
  1288. },
  1289. [`${t}-description`]: {
  1290. position: "relative",
  1291. marginInlineStart: s + f,
  1292. marginBottom: f,
  1293. color: l,
  1294. fontSize: s
  1295. },
  1296. [`${t}-buttons`]: {
  1297. textAlign: "end",
  1298. button: {
  1299. marginInlineStart: f
  1300. }
  1301. }
  1302. }
  1303. };
  1304. }, Cn = Le("Popconfirm", (e) => xn(e), (e) => {
  1305. const {
  1306. zIndexPopupBase: t
  1307. } = e;
  1308. return {
  1309. zIndexPopup: t + 60
  1310. };
  1311. });
  1312. var In = function(e, t) {
  1313. var n = {};
  1314. for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
  1315. if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++)
  1316. t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]);
  1317. return n;
  1318. };
  1319. const An = () => b(b({}, Pt()), {
  1320. prefixCls: String,
  1321. content: ce(),
  1322. title: ce(),
  1323. description: ce(),
  1324. okType: Rt("primary"),
  1325. disabled: {
  1326. type: Boolean,
  1327. default: !1
  1328. },
  1329. okText: ce(),
  1330. cancelText: ce(),
  1331. icon: ce(),
  1332. okButtonProps: $e(),
  1333. cancelButtonProps: $e(),
  1334. showCancel: {
  1335. type: Boolean,
  1336. default: !0
  1337. },
  1338. onConfirm: Function,
  1339. onCancel: Function
  1340. }), En = q({
  1341. compatConfig: {
  1342. MODE: 3
  1343. },
  1344. name: "APopconfirm",
  1345. inheritAttrs: !1,
  1346. props: Ce(An(), b(b({}, zt()), {
  1347. trigger: "click",
  1348. placement: "top",
  1349. mouseEnterDelay: 0.1,
  1350. mouseLeaveDelay: 0.1,
  1351. arrowPointAtCenter: !1,
  1352. autoAdjustOverflow: !0,
  1353. okType: "primary",
  1354. disabled: !1
  1355. })),
  1356. slots: Object,
  1357. // emits: ['update:open', 'visibleChange'],
  1358. setup(e, t) {
  1359. let {
  1360. slots: n,
  1361. emit: a,
  1362. expose: l,
  1363. attrs: u
  1364. } = t;
  1365. const f = j();
  1366. Ct(e.visible === void 0, "Popconfirm", "`visible` will be removed in next major version, please use `open` instead."), l({
  1367. getPopupDomNode: () => {
  1368. var r, c;
  1369. return (c = (r = f.value) === null || r === void 0 ? void 0 : r.getPopupDomNode) === null || c === void 0 ? void 0 : c.call(r);
  1370. }
  1371. });
  1372. const [s, S] = It(!1, {
  1373. value: Re(e, "open")
  1374. }), d = (r, c) => {
  1375. e.open === void 0 && S(r), a("update:open", r), a("openChange", r, c);
  1376. }, I = (r) => {
  1377. d(!1, r);
  1378. }, h = (r) => {
  1379. var c;
  1380. return (c = e.onConfirm) === null || c === void 0 ? void 0 : c.call(e, r);
  1381. }, g = (r) => {
  1382. var c;
  1383. d(!1, r), (c = e.onCancel) === null || c === void 0 || c.call(e, r);
  1384. }, x = (r) => {
  1385. r.keyCode === Mt.ESC && s && d(!1, r);
  1386. }, $ = (r) => {
  1387. const {
  1388. disabled: c
  1389. } = e;
  1390. c || d(r);
  1391. }, {
  1392. prefixCls: E,
  1393. getPrefixCls: z
  1394. } = J("popconfirm", e), O = H(() => z()), A = H(() => z("btn")), [m] = Cn(E), [w] = At("Popconfirm", Et.Popconfirm), i = () => {
  1395. var r, c, T, D, y;
  1396. const {
  1397. okButtonProps: R,
  1398. cancelButtonProps: M,
  1399. title: p = (r = n.title) === null || r === void 0 ? void 0 : r.call(n),
  1400. description: v = (c = n.description) === null || c === void 0 ? void 0 : c.call(n),
  1401. cancelText: L = (T = n.cancel) === null || T === void 0 ? void 0 : T.call(n),
  1402. okText: N = (D = n.okText) === null || D === void 0 ? void 0 : D.call(n),
  1403. okType: C,
  1404. icon: k = ((y = n.icon) === null || y === void 0 ? void 0 : y.call(n)) || o(Bt, null, null),
  1405. showCancel: te = !0
  1406. } = e, {
  1407. cancelButton: Q,
  1408. okButton: ne
  1409. } = n, Y = b({
  1410. onClick: g,
  1411. size: "small"
  1412. }, M), ae = b(b(b({
  1413. onClick: h
  1414. }, Fe(C)), {
  1415. size: "small"
  1416. }), R);
  1417. return o("div", {
  1418. class: `${E.value}-inner-content`
  1419. }, [o("div", {
  1420. class: `${E.value}-message`
  1421. }, [k && o("span", {
  1422. class: `${E.value}-message-icon`
  1423. }, [k]), o("div", {
  1424. class: [`${E.value}-message-title`, {
  1425. [`${E.value}-message-title-only`]: !!v
  1426. }]
  1427. }, [p])]), v && o("div", {
  1428. class: `${E.value}-description`
  1429. }, [v]), o("div", {
  1430. class: `${E.value}-buttons`
  1431. }, [te ? Q ? Q(Y) : o(Ke, Y, {
  1432. default: () => [L || w.value.cancelText]
  1433. }) : null, ne ? ne(ae) : o(Ut, {
  1434. buttonProps: b(b({
  1435. size: "small"
  1436. }, Fe(C)), R),
  1437. actionFn: h,
  1438. close: I,
  1439. prefixCls: A.value,
  1440. quitOnNullishReturnValue: !0,
  1441. emitEvent: !0
  1442. }, {
  1443. default: () => [N || w.value.okText]
  1444. })])]);
  1445. };
  1446. return () => {
  1447. var r;
  1448. const {
  1449. placement: c,
  1450. overlayClassName: T,
  1451. trigger: D = "click"
  1452. } = e, y = In(e, ["placement", "overlayClassName", "trigger"]), R = Oe(y, ["title", "content", "cancelText", "okText", "onUpdate:open", "onConfirm", "onCancel", "prefixCls"]), M = oe(E.value, T);
  1453. return m(o(kt, W(W(W({}, R), u), {}, {
  1454. trigger: D,
  1455. placement: c,
  1456. onOpenChange: $,
  1457. open: s.value,
  1458. overlayClassName: M,
  1459. transitionName: Tt(O.value, "zoom-big", e.transitionName),
  1460. ref: f,
  1461. "data-popover-inject": !0
  1462. }), {
  1463. default: () => [wt(((r = n.default) === null || r === void 0 ? void 0 : r.call(n)) || [], {
  1464. onKeydown: (p) => {
  1465. x(p);
  1466. }
  1467. }, !1)],
  1468. content: i
  1469. }));
  1470. };
  1471. }
  1472. }), Tn = xt(En), wn = {
  1473. __name: "workplace-selector",
  1474. props: {
  1475. value: {
  1476. type: Boolean,
  1477. default: !1
  1478. },
  1479. selectedList: {
  1480. type: Array,
  1481. default: () => []
  1482. }
  1483. },
  1484. emits: ["update:value", "done"],
  1485. setup(e, { emit: t }) {
  1486. const n = e, a = t, l = Dt(), u = (A) => {
  1487. if (!A) return ue;
  1488. const m = A.split("-").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("") + "Outlined", w = Me(m);
  1489. return typeof w == "string" ? ue : w;
  1490. }, f = H({
  1491. get: () => n.value,
  1492. set: (A) => a("update:value", A)
  1493. }), s = j("mm0001"), S = j([]), d = j([]), I = H(() => l.menus), h = H(() => l.clients), g = () => {
  1494. h.value && h.value.length && (S.value = h.value.map((A) => ({ id: A.id, clientId: A.clientId, clientName: A.clientName })));
  1495. }, x = () => {
  1496. f.value = !1;
  1497. }, $ = (A) => {
  1498. A.forEach((m) => {
  1499. m.children && m.children.length > 0 ? $(m.children) : m.href && m.isShow && d.value.push({
  1500. id: m.id,
  1501. name: m.name,
  1502. icon: m.icon,
  1503. href: m.href,
  1504. hoverable: z(m, n.selectedList)
  1505. });
  1506. });
  1507. }, E = (A) => {
  1508. a("done", A);
  1509. }, z = (A = {}, m = []) => !m || m.length < 1 ? !0 : !m.some((w) => w.menu.id === A.id), O = (A) => se(this, null, function* () {
  1510. var i;
  1511. d.value = [];
  1512. const m = window.$utils.ls.get("USER-TOKEN"), w = yield Lt({
  1513. baseURL: window.$utils.env.VITE_APP_API_BASE_URL,
  1514. url: `/${window.$utils.env.VITE_APP_PORTAL_SERVER_NAME}/v1/users/menus`,
  1515. timeout: 60 * 1e3,
  1516. headers: {
  1517. "Content-Type": "application/json;charset=UTF-8",
  1518. "user-token": m,
  1519. "client-id": A
  1520. },
  1521. method: "get",
  1522. data: {}
  1523. });
  1524. $((i = w == null ? void 0 : w.data) == null ? void 0 : i.data);
  1525. });
  1526. return Ue(
  1527. () => n.selectedList,
  1528. () => {
  1529. d.value = [], $(I.value);
  1530. }
  1531. ), g(), (A, m) => {
  1532. const w = Ft, i = He, r = fe, c = ie, T = Ke, D = Me("s-modal");
  1533. return B(), F(D, {
  1534. value: f.value,
  1535. "onUpdate:value": m[1] || (m[1] = (y) => f.value = y),
  1536. title: A.$l("添加快捷导航菜单"),
  1537. width: "80%",
  1538. maskClosable: !1
  1539. }, {
  1540. footer: P(() => [
  1541. o(T, {
  1542. key: "back",
  1543. onClick: x
  1544. }, {
  1545. default: P(() => [
  1546. ve(_(A.$l("关闭")), 1)
  1547. ]),
  1548. _: 1
  1549. })
  1550. ]),
  1551. default: P(() => [
  1552. o(i, {
  1553. activeKey: s.value,
  1554. "onUpdate:activeKey": m[0] || (m[0] = (y) => s.value = y),
  1555. onChange: O
  1556. }, {
  1557. default: P(() => [
  1558. (B(!0), U(be, null, Se(S.value, (y) => (B(), F(w, {
  1559. key: y.clientId,
  1560. tab: y.clientName
  1561. }, null, 8, ["tab"]))), 128))
  1562. ]),
  1563. _: 1
  1564. }, 8, ["activeKey"]),
  1565. o(c, {
  1566. style: { "margin-bottom": "6px" },
  1567. bordered: !1
  1568. }, {
  1569. default: P(() => [
  1570. (B(!0), U(be, null, Se(d.value, (y, R) => (B(), F(r, {
  1571. style: ct({ width: "20%", textAlign: "center", cursor: y.hoverable ? "pointer" : "" }),
  1572. key: y.id + R,
  1573. hoverable: y.hoverable,
  1574. onClick: (M) => y.hoverable ? E(y) : ""
  1575. }, {
  1576. default: P(() => [
  1577. y.icon ? (B(), F(qe(u(y.icon)), { key: 1 })) : (B(), F(de(ue), { key: 0 })),
  1578. ve(" " + _(y.name), 1)
  1579. ]),
  1580. _: 2
  1581. }, 1032, ["style", "hoverable", "onClick"]))), 128))
  1582. ]),
  1583. _: 1
  1584. })
  1585. ]),
  1586. _: 1
  1587. }, 8, ["value", "title"]);
  1588. };
  1589. }
  1590. }, ke = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAB0CAIAAADYY00dAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYm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JXWITxcRDtzwYY/RTghuFyoaTc9f96gZWXEVD2DKEJhN1lG8pxTRqBn/BE8BTy3uVz8aWw9rN7+DcjtV359V52Snd2++J9MTQma3t9xee5t+eY+b1cYE5l6GILiy38CDADXoxCrjDZe8wAAAABJRU5ErkJggg==", zn = { class: "board-layout" }, Bn = {
  1591. key: 0,
  1592. class: "flex-grid-5"
  1593. }, Pn = ["onClick"], Rn = {
  1594. key: 1,
  1595. class: "empty project-content"
  1596. }, Mn = ["src"], Dn = { class: "tabs-wrap" }, Ln = { class: "list-content" }, On = { class: "list-content-item" }, _n = ["onClick"], Hn = { style: { float: "right" } }, Nn = {
  1597. key: 1,
  1598. class: "empty project-content"
  1599. }, jn = ["src"], Wn = {
  1600. __name: "workplace",
  1601. setup(e) {
  1602. const t = ut(), n = (i) => {
  1603. if (!i) return ue;
  1604. const r = i.split("-").map((T) => T.charAt(0).toUpperCase() + T.slice(1)).join("") + "Outlined", c = Me(r);
  1605. return typeof c == "string" ? ue : c;
  1606. }, 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* () {
  1607. s.value = !0;
  1608. const i = yield Ht();
  1609. d.value = i || [], d.value.length < 1 && (h.value = !1), s.value = !1;
  1610. }), $ = (i, r) => {
  1611. try {
  1612. const c = new URL(i);
  1613. c.search = "", c.hash = "";
  1614. let T = c.toString();
  1615. return T.endsWith("/") || (T += "/"), T + r;
  1616. } catch (c) {
  1617. return i + r;
  1618. }
  1619. }, E = (i) => {
  1620. if (i.menu.clientId && i.menu.clientId !== `${window.$utils.env.VITE_APP_CLIENT_ID}`) {
  1621. const r = i.menu.hrefs ? i.menu.hrefs.substring(1, i.menu.hrefs.length) : "";
  1622. window.open($(i.clientRedirectUri, r));
  1623. } else
  1624. t.push({ path: i.menu.hrefs });
  1625. }, z = (i) => {
  1626. a.value = i, O();
  1627. }, O = () => se(this, null, function* () {
  1628. S.value = !0;
  1629. try {
  1630. const i = yield Nt();
  1631. a.value === 1 ? g.value = i.toDealList || [] : g.value = i.toReadList || [], u.value = i.toDealCount || 0, f.value = i.toReadCount || 0;
  1632. } catch (i) {
  1633. g.value = [], console.warn("[workplace] 待办消息获取失败:", i);
  1634. } finally {
  1635. S.value = !1;
  1636. }
  1637. }), A = (i) => se(this, null, function* () {
  1638. I.value = !1, s.value = !0, yield Vt(i).then(() => {
  1639. s.value = !1;
  1640. }), x();
  1641. }), m = (i) => se(this, null, function* () {
  1642. s.value = !0, yield jt({ id: i.id }).then(() => {
  1643. s.value = !1;
  1644. }), x();
  1645. }), w = (i = {}) => {
  1646. if (i.messageTypeCode === "toRead" && Wt([i.id]), i.clientId === "flow") {
  1647. const r = {
  1648. client_id: `${window.$utils.env.VITE_APP_CLIENT_ID}`,
  1649. scope: "snsapi_base"
  1650. };
  1651. Gt(r).then((c) => {
  1652. const T = c && typeof c == "object" ? c.data : c;
  1653. if (!T) {
  1654. location.reload();
  1655. return;
  1656. }
  1657. const D = `code=${T}`, y = r.state ? `&state=${r.state}` : "";
  1658. let R = "";
  1659. if (i.messageTypeCode === "toDeal" ? R = i.toDealUrl : i.messageTypeCode === "toRead" && (R = i.toReadUrl), R && R.includes("?")) {
  1660. let M = `${D}${y}`;
  1661. M && (M = `&${D}${y}`), window.open(R + M);
  1662. } else {
  1663. let M = `${D}${y}`;
  1664. M && (M = `?${D}${y}`), window.open(R + M);
  1665. }
  1666. });
  1667. } else {
  1668. let r = "";
  1669. i.messageTypeCode === "toDeal" ? r = i.toDealUrl : i.messageTypeCode === "toRead" && (r = i.toReadUrl), window.open(r);
  1670. }
  1671. };
  1672. return dt(() => {
  1673. x(), O();
  1674. }), (i, r) => {
  1675. const c = Tn, T = ie, D = fe, y = Ze, R = Xt, M = ot, p = ee;
  1676. return B(), U("div", zn, [
  1677. o(y, { spinning: s.value }, {
  1678. default: P(() => [
  1679. o(T, { class: "project-list" }, {
  1680. title: P(() => [
  1681. ve(_(i.$l("快捷导航")), 1)
  1682. ]),
  1683. extra: P(() => [
  1684. !h.value && d.value.length > 0 ? (B(), U("a", {
  1685. key: 0,
  1686. onClick: r[0] || (r[0] = (v) => h.value = !0)
  1687. }, _(i.$l("修改")), 1)) : ye("", !0),
  1688. h.value ? (B(), U("a", {
  1689. key: 1,
  1690. onClick: r[1] || (r[1] = (v) => h.value = !1)
  1691. }, _(i.$l("返回")), 1)) : ye("", !0),
  1692. !h.value && d.value.length < 10 ? (B(), U("a", {
  1693. key: 2,
  1694. style: { "margin-left": "24px" },
  1695. onClick: r[2] || (r[2] = (v) => I.value = !0)
  1696. }, _(i.$l("添加")), 1)) : ye("", !0)
  1697. ]),
  1698. default: P(() => [
  1699. d.value.length > 0 ? (B(), U("div", Bn, [
  1700. (B(!0), U(be, null, Se(d.value, (v, L) => (B(), F(D, {
  1701. class: "card-grid",
  1702. key: L
  1703. }, {
  1704. default: P(() => [
  1705. o(T, {
  1706. bordered: !1,
  1707. "body-style": { padding: 0, position: "relative" }
  1708. }, {
  1709. default: P(() => [
  1710. G("div", {
  1711. class: "card-item",
  1712. onClick: (N) => E(v)
  1713. }, [
  1714. v.menu.icon ? (B(), F(qe(n(v.menu.icon)), { key: 1 })) : (B(), F(de(ue), { key: 0 })),
  1715. G("a", null, _(v.menu.name), 1)
  1716. ], 8, Pn),
  1717. o(c, {
  1718. title: i.$l("确认要移除此快捷导航吗?"),
  1719. onConfirm: (N) => m(v),
  1720. okText: i.$l("删除"),
  1721. cancelText: i.$l("取消")
  1722. }, {
  1723. icon: P(() => [...r[7] || (r[7] = [
  1724. G("span", null, null, -1)
  1725. ])]),
  1726. default: P(() => [
  1727. h.value ? (B(), F(de(_t), {
  1728. key: 0,
  1729. class: "delete-menu"
  1730. })) : ye("", !0)
  1731. ]),
  1732. _: 1
  1733. }, 8, ["title", "onConfirm", "okText", "cancelText"])
  1734. ]),
  1735. _: 2
  1736. }, 1024)
  1737. ]),
  1738. _: 2
  1739. }, 1024))), 128))
  1740. ])) : (B(), U("div", Rn, [
  1741. G("img", { src: de(ke) }, null, 8, Mn),
  1742. G("h4", null, _(i.$l("您没有设置快捷导航")), 1)
  1743. ]))
  1744. ]),
  1745. _: 1
  1746. })
  1747. ]),
  1748. _: 1
  1749. }, 8, ["spinning"]),
  1750. o(y, { spinning: S.value }, {
  1751. default: P(() => [
  1752. o(T, {
  1753. class: "project-list margin-top-20",
  1754. "body-style": l
  1755. }, {
  1756. title: P(() => [
  1757. G("div", Dn, [
  1758. G("div", {
  1759. class: We(["item", { "s-theme-color": a.value === 1 }]),
  1760. onClick: r[3] || (r[3] = (v) => z(1))
  1761. }, _(i.$l("待处理")) + "(" + _(u.value) + ") ", 3),
  1762. G("div", {
  1763. class: We(["item", { "s-theme-color": a.value === 2 }]),
  1764. onClick: r[4] || (r[4] = (v) => z(2))
  1765. }, _(i.$l("待阅读")) + "(" + _(f.value) + ") ", 3)
  1766. ])
  1767. ]),
  1768. extra: P(() => [
  1769. G("a", {
  1770. onClick: r[5] || (r[5] = (v) => de(t).push({ path: "/message/index" }))
  1771. }, _(i.$l("更多")), 1)
  1772. ]),
  1773. default: P(() => [
  1774. g.value.length > 0 ? (B(), F(p, {
  1775. key: 0,
  1776. style: { "overflow-y": "scroll" },
  1777. size: "large",
  1778. class: "project-content"
  1779. }, {
  1780. default: P(() => [
  1781. (B(!0), U(be, null, Se(g.value, (v, L) => (B(), F(M, { key: L }, {
  1782. default: P(() => [
  1783. G("div", Ln, [
  1784. G("div", On, [
  1785. G("span", null, [
  1786. a.value === 1 ? (B(), F(R, {
  1787. key: 0,
  1788. color: "#2db7f5"
  1789. }, {
  1790. default: P(() => [
  1791. ve(_(i.$l("待处理")), 1)
  1792. ]),
  1793. _: 1
  1794. })) : (B(), F(R, {
  1795. key: 1,
  1796. color: "#2db7f5"
  1797. }, {
  1798. default: P(() => [
  1799. ve(_(i.$l("待阅读")), 1)
  1800. ]),
  1801. _: 1
  1802. })),
  1803. G("a", {
  1804. onClick: (N) => w(v),
  1805. class: "pull-right"
  1806. }, _(v.contentTitle), 9, _n)
  1807. ]),
  1808. G("span", Hn, _(v.createDate), 1)
  1809. ])
  1810. ])
  1811. ]),
  1812. _: 2
  1813. }, 1024))), 128))
  1814. ]),
  1815. _: 1
  1816. })) : (B(), U("div", Nn, [
  1817. G("img", { src: de(ke) }, null, 8, jn),
  1818. G("h4", null, _(i.$l("没有消息")), 1)
  1819. ]))
  1820. ]),
  1821. _: 1
  1822. })
  1823. ]),
  1824. _: 1
  1825. }, 8, ["spinning"]),
  1826. o(wn, {
  1827. value: I.value,
  1828. "onUpdate:value": r[6] || (r[6] = (v) => I.value = v),
  1829. selectedList: d.value,
  1830. onDone: A
  1831. }, null, 8, ["value", "selectedList"])
  1832. ]);
  1833. };
  1834. }
  1835. }, Zn = /* @__PURE__ */ Ot(Wn, [["__scopeId", "data-v-d2094ddd"]]);
  1836. export {
  1837. Zn as default
  1838. };