@chase-shao/vue-component-lib 1.2.86 → 1.2.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
- import { ref as m, getCurrentInstance as pe, defineComponent as E, mergeModels as ce, useModel as ye, resolveComponent as C, createBlock as F, openBlock as d, onMounted as ue, computed as G, withCtx as y, createElementBlock as w, Fragment as O, renderList as W, createVNode as B, nextTick as lt, createTextVNode as re, inject as me, normalizeStyle as qe, normalizeClass as Ye, createElementVNode as k, useTemplateRef as Fe, createCommentVNode as ne, toDisplayString as Z, resolveDynamicComponent as He, renderSlot as de, reactive as ct, onActivated as dt } from "vue";
2
- import ut from "axios";
3
- import { defineStore as ft } from "pinia";
4
- import { Modal as pt } from "@arco-design/web-vue";
5
- import { useRouter as mt } from "vue-router";
6
- const gt = ft("main", () => ({
1
+ import { ref as m, getCurrentInstance as pe, defineComponent as K, mergeModels as le, useModel as we, resolveComponent as k, createBlock as D, openBlock as d, onMounted as ue, computed as q, withCtx as y, createElementBlock as h, Fragment as $, renderList as z, createVNode as U, nextTick as dt, createTextVNode as oe, inject as me, normalizeStyle as Qe, normalizeClass as Ye, createElementVNode as S, useTemplateRef as He, createCommentVNode as ne, toDisplayString as X, resolveDynamicComponent as Le, renderSlot as de, reactive as ut, onActivated as ft } from "vue";
2
+ import pt from "axios";
3
+ import { defineStore as mt } from "pinia";
4
+ import { Modal as gt } from "@arco-design/web-vue";
5
+ import { useRouter as _t } from "vue-router";
6
+ const vt = mt("main", () => ({
7
7
  token: m(void 0)
8
- })), _t = async (t) => new Promise((n) => setTimeout(n, t)), vt = async (t, n, a, e = void 0) => {
8
+ })), bt = async (t) => new Promise((n) => setTimeout(n, t)), ht = async (t, n, a, e = void 0) => {
9
9
  if (t[n] === void 0)
10
10
  try {
11
11
  t[n] = null, t[n] = await a() || e;
@@ -13,27 +13,27 @@ const gt = ft("main", () => ({
13
13
  console.error(o), t[n] = void 0;
14
14
  }
15
15
  for (; t[n] === null; )
16
- await _t(100);
16
+ await bt(100);
17
17
  return t[n];
18
- }, he = (t) => {
18
+ }, ye = (t) => {
19
19
  const n = `0${t}`;
20
20
  return n.substring(n.length - 2);
21
- }, ke = (t, n = "yyyy-MM-dd hh:mm:ss") => {
21
+ }, Ce = (t, n = "yyyy-MM-dd hh:mm:ss") => {
22
22
  if (!t || typeof t == "string" && t.length === 0)
23
23
  return "";
24
24
  try {
25
25
  const a = new Date(t), e = [
26
26
  ["yyyy", a.getFullYear()],
27
27
  ["yy", a.getFullYear().toString().substring(2)],
28
- ["MM", he(a.getMonth() + 1)],
28
+ ["MM", ye(a.getMonth() + 1)],
29
29
  ["M", a.getMonth() + 1],
30
- ["dd", he(a.getDate())],
30
+ ["dd", ye(a.getDate())],
31
31
  ["d", a.getDate()],
32
- ["hh", he(a.getHours())],
32
+ ["hh", ye(a.getHours())],
33
33
  ["h", a.getHours()],
34
- ["mm", he(a.getMinutes())],
34
+ ["mm", ye(a.getMinutes())],
35
35
  ["m", a.getMinutes()],
36
- ["ss", he(a.getSeconds())],
36
+ ["ss", ye(a.getSeconds())],
37
37
  ["s", a.getSeconds()]
38
38
  ];
39
39
  for (const [o, l] of e)
@@ -42,28 +42,28 @@ const gt = ft("main", () => ({
42
42
  } catch {
43
43
  return t.toLocaleString();
44
44
  }
45
- }, bt = (t, n) => {
45
+ }, yt = (t, n) => {
46
46
  let a;
47
47
  t instanceof Blob ? a = t : a = new Blob([t]);
48
48
  const e = document.createElement("a"), o = window.URL.createObjectURL(a);
49
49
  e.href = o, e.download = n, e.click(), window.URL.revokeObjectURL(o);
50
50
  };
51
- let Be = {};
52
- function ht(t) {
53
- Be = { ...Be, ...t };
51
+ let Fe = {};
52
+ function wt(t) {
53
+ Fe = { ...Fe, ...t };
54
54
  }
55
- function Le() {
56
- return Be;
55
+ function Re() {
56
+ return Fe;
57
57
  }
58
- const yt = pe();
59
- function Qe() {
60
- const t = Le();
58
+ const kt = pe();
59
+ function Je() {
60
+ const t = Re();
61
61
  return {
62
62
  apiBase: t.apiBase || void 0 || "",
63
63
  appSecret: t.appSecret || void 0 || ""
64
64
  };
65
65
  }
66
- function wt(t) {
66
+ function Ct(t) {
67
67
  if (!t?.data?.statusCode)
68
68
  return t;
69
69
  switch (t.data.statusCode) {
@@ -71,22 +71,22 @@ function wt(t) {
71
71
  return t.data.data = t.data.result, t.data;
72
72
  case 0:
73
73
  default:
74
- return yt?.appContext.config.globalProperties.$notification.error(t.data.msg), null;
74
+ return kt?.appContext.config.globalProperties.$notification.error(t.data.msg), null;
75
75
  }
76
76
  }
77
- function Je() {
78
- const { apiBase: t } = Qe(), n = ut.create({
77
+ function Xe() {
78
+ const { apiBase: t } = Je(), n = pt.create({
79
79
  baseURL: t,
80
80
  timeout: 20 * 1e3,
81
81
  // 20s
82
82
  // headers: { 'Content-Type': 'application/json' },
83
83
  withCredentials: !0
84
84
  });
85
- return n.interceptors.response.use(wt), n;
85
+ return n.interceptors.response.use(Ct), n;
86
86
  }
87
- const Xe = async () => {
88
- const { apiBase: t, appSecret: n } = Qe(), a = Je(), e = gt();
89
- return await vt(e, "token", async () => {
87
+ const Ze = async () => {
88
+ const { apiBase: t, appSecret: n } = Je(), a = Xe(), e = vt();
89
+ return await ht(e, "token", async () => {
90
90
  const o = await a.get(`${t}/GenerateToken`, {
91
91
  params: {
92
92
  appid: "bpm",
@@ -97,44 +97,44 @@ const Xe = async () => {
97
97
  e.token = void 0;
98
98
  }, (o.data?.expireSeconds ?? 3600) * 1e3), o?.data?.token;
99
99
  });
100
- }, z = async () => {
101
- const t = await Xe(), n = Je();
100
+ }, W = async () => {
101
+ const t = await Ze(), n = Xe();
102
102
  return n.defaults.headers.common.Authorization = `Bearer ${t}`, n;
103
- }, Pe = {
103
+ }, Ne = {
104
104
  CurrentUserEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
105
105
  CurrentUserPositionCode: (t) => t.bpmStore()?.positionCode ?? 888,
106
106
  CurrentDatetime: () => (/* @__PURE__ */ new Date()).toISOString(),
107
107
  ApproverEmail: (t) => t.svrStore()?.userInfo?.email_address ?? "test.email@dataGetter.ts",
108
108
  ApproverPositionCode: (t) => t.bpmStore()?.positionCode ?? 999,
109
109
  RejectReason: () => "Test Reject Reason"
110
- }, K = [];
110
+ }, G = [];
111
111
  for (let t = 0; t < 256; ++t)
112
- K.push((t + 256).toString(16).slice(1));
113
- function kt(t, n = 0) {
114
- return (K[t[n + 0]] + K[t[n + 1]] + K[t[n + 2]] + K[t[n + 3]] + "-" + K[t[n + 4]] + K[t[n + 5]] + "-" + K[t[n + 6]] + K[t[n + 7]] + "-" + K[t[n + 8]] + K[t[n + 9]] + "-" + K[t[n + 10]] + K[t[n + 11]] + K[t[n + 12]] + K[t[n + 13]] + K[t[n + 14]] + K[t[n + 15]]).toLowerCase();
112
+ G.push((t + 256).toString(16).slice(1));
113
+ function St(t, n = 0) {
114
+ return (G[t[n + 0]] + G[t[n + 1]] + G[t[n + 2]] + G[t[n + 3]] + "-" + G[t[n + 4]] + G[t[n + 5]] + "-" + G[t[n + 6]] + G[t[n + 7]] + "-" + G[t[n + 8]] + G[t[n + 9]] + "-" + G[t[n + 10]] + G[t[n + 11]] + G[t[n + 12]] + G[t[n + 13]] + G[t[n + 14]] + G[t[n + 15]]).toLowerCase();
115
115
  }
116
- let Ne;
117
- const Ct = new Uint8Array(16);
118
- function St() {
119
- if (!Ne) {
116
+ let Ue;
117
+ const xt = new Uint8Array(16);
118
+ function At() {
119
+ if (!Ue) {
120
120
  if (typeof crypto > "u" || !crypto.getRandomValues)
121
121
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
122
- Ne = crypto.getRandomValues.bind(crypto);
122
+ Ue = crypto.getRandomValues.bind(crypto);
123
123
  }
124
- return Ne(Ct);
124
+ return Ue(xt);
125
125
  }
126
- const xt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ee = { randomUUID: xt };
127
- function Ze(t, n, a) {
128
- if (Ee.randomUUID && !t)
129
- return Ee.randomUUID();
126
+ const Vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ze = { randomUUID: Vt };
127
+ function et(t, n, a) {
128
+ if (ze.randomUUID && !t)
129
+ return ze.randomUUID();
130
130
  t = t || {};
131
- const e = t.random ?? t.rng?.() ?? St();
131
+ const e = t.random ?? t.rng?.() ?? At();
132
132
  if (e.length < 16)
133
133
  throw new Error("Random bytes length must be >= 16");
134
- return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, kt(e);
134
+ return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, St(e);
135
135
  }
136
136
  var Y = /* @__PURE__ */ ((t) => (t[t.Submit = 0] = "Submit", t[t.Link = 1] = "Link", t[t.Button = 2] = "Button", t))(Y || {}), fe = /* @__PURE__ */ ((t) => (t[t.Create = 0] = "Create", t[t.Update = 1] = "Update", t[t.Details = 2] = "Details", t[t.List = 3] = "List", t[t.ReCreate = 5] = "ReCreate", t))(fe || {});
137
- function At(t, n, a) {
137
+ function It(t, n, a) {
138
138
  const e = {
139
139
  pageType: "",
140
140
  fields: {},
@@ -158,7 +158,7 @@ function At(t, n, a) {
158
158
  const l = o.showToRoles.split(",").map((c) => c.trim()), s = a.bpmStore().employeeInfo.roleList.some((c) => l.includes(c.name)) || o.showToRoles === "";
159
159
  if (o.widget === "Tab") {
160
160
  e.tabs || (e.tabs = []), s && e.tabs.push({
161
- key: Ze(),
161
+ key: et(),
162
162
  title: o.title,
163
163
  filters: o.filters ? JSON.parse(o.filters) : [],
164
164
  order: o.order
@@ -181,7 +181,7 @@ function At(t, n, a) {
181
181
  eventName: o.eventName
182
182
  });
183
183
  }
184
- } else o.attributeType === "Banner" && (e.banner.title = o.title, n === 0 || n === 5 ? e.banner.subTitle = o.subTitle : e.banner.subTitle = Re(o.subTitle, t.workflowId.propertyValue));
184
+ } else o.attributeType === "Banner" && (e.banner.title = o.title, n === 0 || n === 5 ? e.banner.subTitle = o.subTitle : e.banner.subTitle = je(o.subTitle, t.workflowId.propertyValue));
185
185
  }), e.tabs && (e.tabs = e.tabs.sort((o, l) => o.order - l.order)), Object.entries(t).forEach(([o, l]) => {
186
186
  if (o === "__ClassAttributes" || o === "className" || o === "id" || o === "deleteFlag" || o === "status" || o === "workFlowReason" || n !== 3 && o === "workflowId")
187
187
  return;
@@ -203,26 +203,26 @@ function At(t, n, a) {
203
203
  s.modelValue = i;
204
204
  break;
205
205
  }
206
- o === "onBehalf" && n === 0 && (s.modelValue = Pe.CurrentUserEmail(a)), (n === 1 || n === 5) && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
206
+ o === "onBehalf" && n === 0 && (s.modelValue = Ne.CurrentUserEmail(a)), (n === 1 || n === 5) && (o === "directReports" || o === "employeesInTheTeam") && s.modelValue && (s.modelValue = Number(s.modelValue)), c?.forEach((r) => {
207
207
  r.order || r.Order ? s.order = r.order ?? r.Order : r.attributeType === "UIControl" ? s.widget = {
208
208
  ...r,
209
209
  column: !0
210
210
  } : r.attributeType === "UIValidationControl" && n !== 3 ? s.widget?.widget !== "CheckBox" && s.validations.push(r) : r.attributeType === "UIListed" ? s.widget = {
211
211
  ...r,
212
212
  column: !0
213
- } : r.attributeType === "UIFiltered" ? (s.isFiltered = !0, s.operator = r.operatorType) : r.dependentType ? s.dependent = Pe[r.dependentType] ? Pe[r.dependentType](a) : "" : r.eventType === "Change" && s.triggers?.push({
213
+ } : r.attributeType === "UIFiltered" ? (s.isFiltered = !0, s.operator = r.operatorType) : r.dependentType ? s.dependent = Ne[r.dependentType] ? Ne[r.dependentType](a) : "" : r.eventType === "Change" && s.triggers?.push({
214
214
  event: "change",
215
215
  handlerName: r.eventName
216
216
  });
217
217
  }), e.fields[o] = s;
218
218
  }), e;
219
219
  }
220
- const ze = async (t, n, a, e) => {
221
- const l = await (await z()).get(`/General/${n}/${t}/page`, { params: e });
222
- return At(l?.data, t, a);
223
- }, Vt = async (t, n, a) => (await (await z()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
224
- async function It(t, n) {
225
- const e = await (await z()).post(`/General/${t}/list`, n);
220
+ const Ke = async (t, n, a, e) => {
221
+ const l = await (await W()).get(`/General/${n}/${t}/page`, { params: e });
222
+ return It(l?.data, t, a);
223
+ }, Tt = async (t, n, a) => (await (await W()).post(`/${n}/${t}/button/List`, null, { params: a }))?.data;
224
+ async function Pt(t, n) {
225
+ const e = await (await W()).post(`/General/${t}/list`, n);
226
226
  return {
227
227
  data: e.data.data,
228
228
  totalCount: e.data.totalCount
@@ -241,111 +241,111 @@ async function It(t, n) {
241
241
  // ),
242
242
  };
243
243
  }
244
- async function Tt(t, n, a) {
245
- return (await (await z()).post(a, n, {
244
+ async function Nt(t, n, a) {
245
+ return (await (await W()).post(a, n, {
246
246
  params: {
247
247
  className: t
248
248
  }
249
249
  })).data;
250
250
  }
251
- async function Pt(t, n, a, e) {
252
- const o = await z(), l = Re(e, n);
251
+ async function Ut(t, n, a, e) {
252
+ const o = await W(), l = je(e, n);
253
253
  return (await o.put(l, a))?.data;
254
254
  }
255
- function Re(t, n) {
255
+ function je(t, n) {
256
256
  return t.replace(/{WorkflowId}/g, n);
257
257
  }
258
- function Nt(t, n) {
258
+ function Dt(t, n) {
259
259
  return t.replace(/{ApproverEmail}/g, encodeURIComponent(n));
260
260
  }
261
- function Ut(t, n) {
261
+ function Bt(t, n) {
262
262
  return t.replace(/{WorkFlowReason}/g, encodeURIComponent(n));
263
263
  }
264
- function Dt(t, n) {
264
+ function Ft(t, n) {
265
265
  return t.replace(/{Status}/g, n);
266
266
  }
267
- function Bt(t, n) {
267
+ function Ht(t, n) {
268
268
  return t.replace(/{IfTriggerGlobal_RandP_Approval}/g, n);
269
269
  }
270
- function Ft(t, n) {
270
+ function Lt(t, n) {
271
271
  return t.replace(/{ClassName}/g, encodeURIComponent(n));
272
272
  }
273
- async function Ht(t, n, a, e, o, l, s, c) {
274
- const i = await z();
275
- let r = Re(l, n);
276
- return r = Nt(r, a), r = Ut(r, e), r = Dt(r, s), r = Bt(r, c), r = Ft(r, t), (await i.put(r, o))?.data;
273
+ async function Rt(t, n, a, e, o, l, s, c) {
274
+ const i = await W();
275
+ let r = je(l, n);
276
+ return r = Dt(r, a), r = Bt(r, e), r = Ft(r, s), r = Ht(r, c), r = Lt(r, t), (await i.put(r, o))?.data;
277
277
  }
278
- async function Lt(t, n) {
279
- const o = (await (await z()).get(t, { params: { value: n } }))?.data;
278
+ async function jt(t, n) {
279
+ const o = (await (await W()).get(t, { params: { value: n } }))?.data;
280
280
  return Object.entries(o).map(([l, s]) => ({
281
281
  value: l,
282
282
  label: s
283
283
  }));
284
284
  }
285
- async function Rt(t, n) {
286
- return (await (await z()).get(`/General/${t}/${n}/process`))?.data;
285
+ async function Ot(t, n) {
286
+ return (await (await W()).get(`/General/${t}/${n}/process`))?.data;
287
287
  }
288
- function jt(t) {
288
+ function $t(t) {
289
289
  return {
290
- uid: t.id ?? Ze(),
290
+ uid: t.id ?? et(),
291
291
  name: t.attachmentName ?? "unknown",
292
292
  url: t.attachmentKey ?? ""
293
293
  };
294
294
  }
295
- async function $t(t, n) {
296
- return (await (await z()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
295
+ async function Mt(t, n) {
296
+ return (await (await W()).get(`/General/${t}/${n}/upload/get`))?.data.reduce((l, s) => {
297
297
  const { category: c } = s;
298
- return l[c] || (l[c] = []), l[c].push(jt(s)), l;
298
+ return l[c] || (l[c] = []), l[c].push($t(s)), l;
299
299
  }, {});
300
300
  }
301
- async function Ot(t, n) {
302
- return (await z()).post(`/General/${t}/${n}/delete/attachment`);
301
+ async function Et(t, n) {
302
+ return (await W()).post(`/General/${t}/${n}/delete/attachment`);
303
303
  }
304
- async function Mt() {
305
- const n = await (await z()).get("/Grading/dropdown/approvers");
304
+ async function zt() {
305
+ const n = await (await W()).get("/Grading/dropdown/approvers");
306
306
  return Object.entries(n?.data).map(([a, e]) => ({
307
307
  label: a,
308
308
  value: e
309
309
  }));
310
310
  }
311
- async function Et(t, n) {
312
- return await (await z()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
311
+ async function Kt(t, n) {
312
+ return await (await W()).post(`Grading/AssignComments/${t}/${encodeURIComponent(n)}`);
313
313
  }
314
- async function zt(t, n, a) {
315
- return await (await z()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, a, {
314
+ async function Wt(t, n, a) {
315
+ return await (await W()).post(`Grading/AddComments/${t}/${encodeURIComponent(n)}`, a, {
316
316
  headers: { "Content-Type": "application/json;charset=UTF-8" }
317
317
  });
318
318
  }
319
- async function Kt(t) {
320
- return (await (await z()).get(`Grading/GetComments/${t}`))?.data;
319
+ async function Gt(t) {
320
+ return (await (await W()).get(`Grading/GetComments/${t}`))?.data;
321
321
  }
322
- async function Wt(t) {
323
- return (await (await z()).get(`Grading/GetAssociator/${t}`))?.data;
322
+ async function qt(t) {
323
+ return (await (await W()).get(`Grading/GetAssociator/${t}`))?.data;
324
324
  }
325
- async function Gt(t) {
326
- return await (await z()).delete(`Grading/DeleteAssociator/${t}`);
325
+ async function Qt(t) {
326
+ return await (await W()).delete(`Grading/DeleteAssociator/${t}`);
327
327
  }
328
- async function qt(t, n = null) {
329
- const e = await (await z()).post(t, n, {
328
+ async function Yt(t, n = null) {
329
+ const e = await (await W()).post(t, n, {
330
330
  responseType: "blob"
331
331
  });
332
- bt(e?.data, "WorkflowData.xlsx");
332
+ yt(e?.data, "WorkflowData.xlsx");
333
333
  }
334
334
  const ge = (t, n) => {
335
335
  let a = "";
336
336
  return { res: t.every((o) => {
337
- const l = Yt(o, n);
337
+ const l = Jt(o, n);
338
338
  return l || (a = o.errorMessage), l;
339
339
  }), errorMessages: a };
340
- }, Yt = (t, n) => {
340
+ }, Jt = (t, n) => {
341
341
  const { ruleName: a, ruleParameter: e } = t;
342
- return Qt[a](e, n);
343
- }, Qt = {
342
+ return Xt[a](e, n);
343
+ }, Xt = {
344
344
  Regex: (t, n) => new RegExp(t).test(n),
345
345
  Required: (t, n) => !!n
346
- }, Jt = /* @__PURE__ */ E({
346
+ }, Zt = /* @__PURE__ */ K({
347
347
  __name: "InputText",
348
- props: /* @__PURE__ */ ce({
348
+ props: /* @__PURE__ */ le({
349
349
  fieldKey: {},
350
350
  modelValue: {},
351
351
  config: {},
@@ -356,9 +356,9 @@ const ge = (t, n) => {
356
356
  modelValue: {},
357
357
  modelModifiers: {}
358
358
  }),
359
- emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
359
+ emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
360
360
  setup(t, { expose: n, emit: a }) {
361
- const e = t, o = a, l = ye(t, "modelValue"), s = (u) => ge(e.validations, u), c = (u) => {
361
+ const e = t, o = a, l = we(t, "modelValue"), s = (u) => ge(e.validations, u), c = (u) => {
362
362
  o("input", u);
363
363
  }, i = (u) => {
364
364
  const g = s(u);
@@ -375,15 +375,15 @@ const ge = (t, n) => {
375
375
  const r = { props: e, emits: o, model: l, validate: s, inputHandler: c, changeHandler: i };
376
376
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
377
377
  }
378
- }), Q = (t, n) => {
378
+ }), J = (t, n) => {
379
379
  const a = t.__vccOpts || t;
380
380
  for (const [e, o] of n)
381
381
  a[e] = o;
382
382
  return a;
383
383
  };
384
- function Xt(t, n, a, e, o, l) {
385
- const s = C("AInput");
386
- return d(), F(s, {
384
+ function en(t, n, a, e, o, l) {
385
+ const s = k("AInput");
386
+ return d(), D(s, {
387
387
  modelValue: e.model,
388
388
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
389
389
  "allow-clear": "",
@@ -392,9 +392,9 @@ function Xt(t, n, a, e, o, l) {
392
392
  onChange: e.changeHandler
393
393
  }, null, 8, ["modelValue", "disabled"]);
394
394
  }
395
- const Ke = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "InputText.vue"]]), Zt = /* @__PURE__ */ E({
395
+ const We = /* @__PURE__ */ J(Zt, [["render", en], ["__file", "InputText.vue"]]), tn = /* @__PURE__ */ K({
396
396
  __name: "InputNumber",
397
- props: /* @__PURE__ */ ce({
397
+ props: /* @__PURE__ */ le({
398
398
  fieldKey: {},
399
399
  modelValue: {},
400
400
  config: {},
@@ -405,9 +405,9 @@ const Ke = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "InputText.vue"]]),
405
405
  modelValue: {},
406
406
  modelModifiers: {}
407
407
  }),
408
- emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
408
+ emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
409
409
  setup(t, { expose: n, emit: a }) {
410
- const e = t, o = a, l = ye(t, "modelValue"), s = m(100), c = m(1);
410
+ const e = t, o = a, l = we(t, "modelValue"), s = m(100), c = m(1);
411
411
  ue(() => {
412
412
  e.validations && e.validations.forEach((_) => {
413
413
  _.ruleName === "Max" && (s.value = _.ruleParameter), _.ruleName === "Min" && (c.value = _.ruleParameter);
@@ -416,9 +416,9 @@ const Ke = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "InputText.vue"]]),
416
416
  const i = (_) => ge(e.validations, _), r = (_) => {
417
417
  o("input", _);
418
418
  }, u = (_) => {
419
- const S = i(_);
420
- o("error", S.res ? "" : S.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
421
- f.event === "change" && o(f.event, f.handlerName, _);
419
+ const x = i(_);
420
+ o("error", x.res ? "" : x.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
421
+ p.event === "change" && o(p.event, p.handlerName, _);
422
422
  });
423
423
  };
424
424
  n({
@@ -431,9 +431,9 @@ const Ke = /* @__PURE__ */ Q(Jt, [["render", Xt], ["__file", "InputText.vue"]]),
431
431
  return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
432
432
  }
433
433
  });
434
- function en(t, n, a, e, o, l) {
435
- const s = C("AInputNumber");
436
- return d(), F(s, {
434
+ function nn(t, n, a, e, o, l) {
435
+ const s = k("AInputNumber");
436
+ return d(), D(s, {
437
437
  modelValue: e.model,
438
438
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
439
439
  clearable: "",
@@ -443,9 +443,9 @@ function en(t, n, a, e, o, l) {
443
443
  onChange: e.changeHandler
444
444
  }, null, 8, ["modelValue", "disabled", "min"]);
445
445
  }
446
- const tn = /* @__PURE__ */ Q(Zt, [["render", en], ["__file", "InputNumber.vue"]]), nn = /* @__PURE__ */ E({
446
+ const on = /* @__PURE__ */ J(tn, [["render", nn], ["__file", "InputNumber.vue"]]), an = /* @__PURE__ */ K({
447
447
  __name: "SelectList",
448
- props: /* @__PURE__ */ ce({
448
+ props: /* @__PURE__ */ le({
449
449
  fieldKey: {},
450
450
  modelValue: {},
451
451
  config: {},
@@ -456,41 +456,41 @@ const tn = /* @__PURE__ */ Q(Zt, [["render", en], ["__file", "InputNumber.vue"]]
456
456
  modelValue: {},
457
457
  modelModifiers: {}
458
458
  }),
459
- emits: /* @__PURE__ */ ce(["update:modelValue", "change"], ["update:modelValue"]),
459
+ emits: /* @__PURE__ */ le(["update:modelValue", "change"], ["update:modelValue"]),
460
460
  setup(t, { expose: n, emit: a }) {
461
- const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = ye(t, "modelValue"), i = (S) => ge(e.validations, S), r = G(() => {
462
- const S = {};
463
- return e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
464
- S[f.event] = (p) => {
465
- o(f.event, f.handlerName, p);
466
- const V = i(p);
467
- o("error", V.res ? "" : V.errorMessages);
461
+ const e = t, o = a, l = m(!1), s = m(e.config.options ?? []), c = we(t, "modelValue"), i = (x) => ge(e.validations, x), r = q(() => {
462
+ const x = {};
463
+ return e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
464
+ x[p.event] = (f) => {
465
+ o(p.event, p.handlerName, f);
466
+ const b = i(f);
467
+ o("error", b.res ? "" : b.errorMessages);
468
468
  };
469
- }), S;
469
+ }), x;
470
470
  }), u = async () => {
471
- e.config.dataSourceProvider && (s.value = await Lt(e.config.dataSourceProvider));
471
+ e.config.dataSourceProvider && (s.value = await jt(e.config.dataSourceProvider));
472
472
  };
473
473
  ue(u);
474
- const g = (S) => {
475
- o("update:modelValue", S);
476
- const f = i(S);
477
- o("error", f.res ? "" : f.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((p) => {
478
- p.event === "change" && o(p.event, p.handlerName, S);
474
+ const g = (x) => {
475
+ o("update:modelValue", x);
476
+ const p = i(x);
477
+ o("error", p.res ? "" : p.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((f) => {
478
+ f.event === "change" && o(f.event, f.handlerName, x);
479
479
  });
480
480
  };
481
481
  n({
482
482
  validate() {
483
- const S = i(e.modelValue);
484
- return o("error", S.res ? "" : S.errorMessages), S.res;
483
+ const x = i(e.modelValue);
484
+ return o("error", x.res ? "" : x.errorMessages), x.res;
485
485
  }
486
486
  });
487
487
  const _ = { props: e, emits: o, loading: l, _options: s, model: c, validate: i, eventHandlers: r, loadOptions: u, changeHandler: g };
488
488
  return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
489
489
  }
490
490
  });
491
- function on(t, n, a, e, o, l) {
492
- const s = C("AOption"), c = C("ASelect");
493
- return d(), F(c, {
491
+ function rn(t, n, a, e, o, l) {
492
+ const s = k("AOption"), c = k("ASelect");
493
+ return d(), D(c, {
494
494
  "allow-clear": "",
495
495
  modelValue: e.model,
496
496
  "onUpdate:modelValue": n[0] || (n[0] = (i) => e.model = i),
@@ -501,7 +501,7 @@ function on(t, n, a, e, o, l) {
501
501
  onChange: e.changeHandler
502
502
  }, {
503
503
  default: y(() => [
504
- (d(!0), w(O, null, W(e._options, (i) => (d(), F(s, {
504
+ (d(!0), h($, null, z(e._options, (i) => (d(), D(s, {
505
505
  key: i.value,
506
506
  value: i.value,
507
507
  label: i.label
@@ -510,7 +510,7 @@ function on(t, n, a, e, o, l) {
510
510
  _: 1
511
511
  }, 8, ["modelValue", "loading", "disabled"]);
512
512
  }
513
- const We = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "SelectList.vue"]]), an = /* @__PURE__ */ E({
513
+ const Ge = /* @__PURE__ */ J(an, [["render", rn], ["__file", "SelectList.vue"]]), sn = /* @__PURE__ */ K({
514
514
  __name: "Cascader",
515
515
  props: {
516
516
  modelValue: {},
@@ -525,7 +525,7 @@ const We = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "SelectList.vue"]])
525
525
  if (e.config) {
526
526
  const r = e.config.dataSourceProvider;
527
527
  if (r) {
528
- const g = await (await z()).get(r);
528
+ const g = await (await W()).get(r);
529
529
  l.value = g.data;
530
530
  }
531
531
  }
@@ -540,14 +540,14 @@ const We = /* @__PURE__ */ Q(nn, [["render", on], ["__file", "SelectList.vue"]])
540
540
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
541
541
  }
542
542
  });
543
- function rn(t, n, a, e, o, l) {
544
- const s = C("ACascader"), c = C("ASpace");
545
- return d(), F(c, {
543
+ function ln(t, n, a, e, o, l) {
544
+ const s = k("ACascader"), c = k("ASpace");
545
+ return d(), D(c, {
546
546
  direction: "vertical",
547
547
  size: "large"
548
548
  }, {
549
549
  default: y(() => [
550
- B(s, {
550
+ U(s, {
551
551
  "field-names": e.fieldNames,
552
552
  "model-value": a.modelValue,
553
553
  options: e._options,
@@ -559,7 +559,7 @@ function rn(t, n, a, e, o, l) {
559
559
  _: 1
560
560
  });
561
561
  }
562
- const sn = /* @__PURE__ */ Q(an, [["render", rn], ["__file", "Cascader.vue"]]), ln = /* @__PURE__ */ E({
562
+ const cn = /* @__PURE__ */ J(sn, [["render", ln], ["__file", "Cascader.vue"]]), dn = /* @__PURE__ */ K({
563
563
  __name: "FileUpload",
564
564
  props: {
565
565
  className: {},
@@ -574,66 +574,66 @@ const sn = /* @__PURE__ */ Q(an, [["render", rn], ["__file", "Cascader.vue"]]),
574
574
  setup(t, { expose: n, emit: a }) {
575
575
  const e = t, o = a, l = m({});
576
576
  ue(async () => {
577
- const x = await Xe();
577
+ const A = await Ze();
578
578
  l.value = {
579
- Authorization: `Bearer ${x}`
579
+ Authorization: `Bearer ${A}`
580
580
  };
581
581
  });
582
- const s = (x) => ge(e.validations, x), c = Le(), i = c.apiBase, r = m(null), u = m("");
583
- function g(x, b, h) {
584
- return x.replace(/{WorkflowId}/g, b).replace(/{ClassName}/g, h);
582
+ const s = (A) => ge(e.validations, A), c = Re(), i = c.apiBase, r = m(null), u = m("");
583
+ function g(A, w, C) {
584
+ return A.replace(/{WorkflowId}/g, w).replace(/{ClassName}/g, C);
585
585
  }
586
- const _ = G(() => {
586
+ const _ = q(() => {
587
587
  if (e.config.uploadURL) {
588
- const x = i + e.config.uploadURL;
589
- return g(x, u.value, e.className);
588
+ const A = i + e.config.uploadURL;
589
+ return g(A, u.value, e.className);
590
590
  }
591
591
  return "";
592
- }), S = (x) => {
593
- x.stopPropagation(), r.value.submit();
592
+ }), x = (A) => {
593
+ A.stopPropagation(), r.value.submit();
594
594
  };
595
- function f(x) {
596
- const { file: b, name: h } = x, I = h ?? b.name;
597
- return new Promise((A, U) => {
598
- pt.confirm({
595
+ function p(A) {
596
+ const { file: w, name: C } = A, I = C ?? w.name;
597
+ return new Promise((V, B) => {
598
+ gt.confirm({
599
599
  title: "Confirm Delete",
600
600
  content: `Are you sure you want to delete ${I}?`,
601
601
  async onOk() {
602
- if (x.status !== "init" && e.config.removeFile)
603
- return await e.config.removeFile(x.uid), A(!0);
604
- A(!0);
602
+ if (A.status !== "init" && e.config.removeFile)
603
+ return await e.config.removeFile(A.uid), V(!0);
604
+ V(!0);
605
605
  },
606
- onCancel: () => U("cancel")
606
+ onCancel: () => B("cancel")
607
607
  });
608
608
  });
609
609
  }
610
- const p = m(null), V = m(null), J = (x) => {
611
- p.value && (p.value(x), p.value = null, V.value = null);
612
- }, ee = (x) => {
613
- V.value && (V.value(x), p.value = null, V.value = null);
614
- }, $ = m([]), X = (x) => {
615
- $.value = x.filter((b) => b.status === "init");
610
+ const f = m(null), b = m(null), j = (A) => {
611
+ f.value && (f.value(A), f.value = null, b.value = null);
612
+ }, ee = (A) => {
613
+ b.value && (b.value(A), f.value = null, b.value = null);
614
+ }, M = m([]), Z = (A) => {
615
+ M.value = A.filter((w) => w.status === "init");
616
616
  };
617
617
  n({
618
- submit(x) {
619
- return new Promise((b, h) => {
620
- r.value ? (e.config.uploadURL && (u.value = x), p.value = b, V.value = h, $.value.length ? lt(() => {
618
+ submit(A) {
619
+ return new Promise((w, C) => {
620
+ r.value ? (e.config.uploadURL && (u.value = A), f.value = w, b.value = C, M.value.length ? dt(() => {
621
621
  r.value?.submit();
622
- }) : b(x)) : b(x);
622
+ }) : w(A)) : w(A);
623
623
  });
624
624
  },
625
625
  validate() {
626
- const x = e.config.files ?? [], b = [...$.value, ...x].length > 0 ? "hasFile" : "", h = s(b);
627
- return o("error", h.res ? "" : h.errorMessages), h.res;
626
+ const A = e.config.files ?? [], w = [...M.value, ...A].length > 0 ? "hasFile" : "", C = s(w);
627
+ return o("error", C.res ? "" : C.errorMessages), C.res;
628
628
  }
629
629
  });
630
- const oe = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: _, submit: S, onBeforeRemove: f, uploadPromiseResolve: p, uploadPromiseReject: V, handleUploadSuccess: J, handleUploadError: ee, readyFiles: $, onChange: X };
631
- return Object.defineProperty(oe, "__isScriptSetup", { enumerable: !1, value: !0 }), oe;
630
+ const ae = { props: e, emits: o, headers: l, validate: s, config: c, ApiBase: i, uploadRef: r, id: u, replaceIdAndClassName: g, action: _, submit: x, onBeforeRemove: p, uploadPromiseResolve: f, uploadPromiseReject: b, handleUploadSuccess: j, handleUploadError: ee, readyFiles: M, onChange: Z };
631
+ return Object.defineProperty(ae, "__isScriptSetup", { enumerable: !1, value: !0 }), ae;
632
632
  }
633
633
  });
634
- function cn(t, n, a, e, o, l) {
635
- const s = C("a-button"), c = C("a-upload");
636
- return d(), F(c, {
634
+ function un(t, n, a, e, o, l) {
635
+ const s = k("a-button"), c = k("a-upload");
636
+ return d(), D(c, {
637
637
  ref: "uploadRef",
638
638
  "default-file-list": e.props.config.files,
639
639
  action: e.action,
@@ -648,9 +648,9 @@ function cn(t, n, a, e, o, l) {
648
648
  }, {
649
649
  "start-icon": y(() => n[0] || (n[0] = [])),
650
650
  "upload-button": y(() => [
651
- B(s, { type: "primary" }, {
651
+ U(s, { type: "primary" }, {
652
652
  default: y(() => n[1] || (n[1] = [
653
- re("Select File", -1)
653
+ oe("Select File", -1)
654
654
  ])),
655
655
  _: 1,
656
656
  __: [1]
@@ -659,7 +659,7 @@ function cn(t, n, a, e, o, l) {
659
659
  _: 1
660
660
  }, 8, ["default-file-list", "action", "limit", "headers"]);
661
661
  }
662
- const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "FileUpload.vue"]]), un = /* @__PURE__ */ E({
662
+ const fn = /* @__PURE__ */ J(dn, [["render", un], ["__file", "FileUpload.vue"]]), pn = /* @__PURE__ */ K({
663
663
  __name: "TextArea",
664
664
  props: {
665
665
  fieldKey: {},
@@ -690,9 +690,9 @@ const dn = /* @__PURE__ */ Q(ln, [["render", cn], ["__file", "FileUpload.vue"]])
690
690
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
691
691
  }
692
692
  });
693
- function fn(t, n, a, e, o, l) {
694
- const s = C("ATextarea");
695
- return d(), F(s, {
693
+ function mn(t, n, a, e, o, l) {
694
+ const s = k("ATextarea");
695
+ return d(), D(s, {
696
696
  "model-value": e.props.modelValue,
697
697
  placeholder: "Please enter something",
698
698
  "allow-clear": "",
@@ -701,9 +701,9 @@ function fn(t, n, a, e, o, l) {
701
701
  onChange: e.changeHandler
702
702
  }, null, 8, ["model-value", "disabled"]);
703
703
  }
704
- const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "TextArea.vue"]]), mn = /* @__PURE__ */ E({
704
+ const gn = /* @__PURE__ */ J(pn, [["render", mn], ["__file", "TextArea.vue"]]), _n = /* @__PURE__ */ K({
705
705
  __name: "CheckBox",
706
- props: /* @__PURE__ */ ce({
706
+ props: /* @__PURE__ */ le({
707
707
  fieldKey: {},
708
708
  modelValue: {},
709
709
  config: {},
@@ -714,9 +714,9 @@ const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "TextArea.vue"]]),
714
714
  modelValue: {},
715
715
  modelModifiers: {}
716
716
  }),
717
- emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
717
+ emits: /* @__PURE__ */ le(["update:modelValue", "change", "error", "input"], ["update:modelValue"]),
718
718
  setup(t, { expose: n, emit: a }) {
719
- const e = t, o = a, l = ye(t, "modelValue"), s = (r) => ge(e.validations, r), c = (r) => {
719
+ const e = t, o = a, l = we(t, "modelValue"), s = (r) => ge(e.validations, r), c = (r) => {
720
720
  const u = s(r);
721
721
  o("error", u.res ? "" : u.errorMessages), e.triggers && e.triggers.length > 0 && e.triggers.forEach((g) => {
722
722
  g.event === "change" && o(g.event, g.handlerName, r);
@@ -732,9 +732,9 @@ const pn = /* @__PURE__ */ Q(un, [["render", fn], ["__file", "TextArea.vue"]]),
732
732
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
733
733
  }
734
734
  });
735
- function gn(t, n, a, e, o, l) {
736
- const s = C("ACheckbox");
737
- return d(), F(s, {
735
+ function vn(t, n, a, e, o, l) {
736
+ const s = k("ACheckbox");
737
+ return d(), D(s, {
738
738
  modelValue: e.model,
739
739
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
740
740
  clearable: "",
@@ -742,26 +742,26 @@ function gn(t, n, a, e, o, l) {
742
742
  onChange: e.changeHandler
743
743
  }, {
744
744
  default: y(() => n[1] || (n[1] = [
745
- re("Yes", -1)
745
+ oe("Yes", -1)
746
746
  ])),
747
747
  _: 1,
748
748
  __: [1]
749
749
  }, 8, ["modelValue", "disabled"]);
750
750
  }
751
- const _n = /* @__PURE__ */ Q(mn, [["render", gn], ["__file", "CheckBox.vue"]]), vn = Symbol("ArcoConfigProvider"), bn = "arco", hn = "$arco", et = (t) => {
751
+ const bn = /* @__PURE__ */ J(_n, [["render", vn], ["__file", "CheckBox.vue"]]), hn = Symbol("ArcoConfigProvider"), yn = "arco", wn = "$arco", tt = (t) => {
752
752
  var n, a, e;
753
- const o = pe(), l = me(vn, void 0);
754
- return `${(e = (a = l?.prefixCls) != null ? a : (n = o?.appContext.config.globalProperties[hn]) == null ? void 0 : n.classPrefix) != null ? e : bn}-${t}`;
755
- }, yn = Object.prototype.toString;
756
- function tt(t) {
757
- return yn.call(t) === "[object Number]" && t === t;
753
+ const o = pe(), l = me(hn, void 0);
754
+ return `${(e = (a = l?.prefixCls) != null ? a : (n = o?.appContext.config.globalProperties[wn]) == null ? void 0 : n.classPrefix) != null ? e : yn}-${t}`;
755
+ }, kn = Object.prototype.toString;
756
+ function nt(t) {
757
+ return kn.call(t) === "[object Number]" && t === t;
758
758
  }
759
- var nt = (t, n) => {
759
+ var ot = (t, n) => {
760
760
  for (const [a, e] of n)
761
761
  t[a] = e;
762
762
  return t;
763
763
  };
764
- const wn = E({
764
+ const Cn = K({
765
765
  name: "IconQuestionCircle",
766
766
  props: {
767
767
  size: {
@@ -788,9 +788,9 @@ const wn = E({
788
788
  click: (t) => !0
789
789
  },
790
790
  setup(t, { emit: n }) {
791
- const a = et("icon"), e = G(() => [a, `${a}-question-circle`, { [`${a}-spin`]: t.spin }]), o = G(() => {
791
+ const a = tt("icon"), e = q(() => [a, `${a}-question-circle`, { [`${a}-spin`]: t.spin }]), o = q(() => {
792
792
  const s = {};
793
- return t.size && (s.fontSize = tt(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
793
+ return t.size && (s.fontSize = nt(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
794
794
  });
795
795
  return {
796
796
  cls: e,
@@ -800,32 +800,32 @@ const wn = E({
800
800
  }
801
801
  };
802
802
  }
803
- }), kn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
804
- function Cn(t, n, a, e, o, l) {
805
- return d(), w("svg", {
803
+ }), Sn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
804
+ function xn(t, n, a, e, o, l) {
805
+ return d(), h("svg", {
806
806
  viewBox: "0 0 48 48",
807
807
  fill: "none",
808
808
  xmlns: "http://www.w3.org/2000/svg",
809
809
  stroke: "currentColor",
810
810
  class: Ye(t.cls),
811
- style: qe(t.innerStyle),
811
+ style: Qe(t.innerStyle),
812
812
  "stroke-width": t.strokeWidth,
813
813
  "stroke-linecap": t.strokeLinecap,
814
814
  "stroke-linejoin": t.strokeLinejoin,
815
815
  onClick: n[0] || (n[0] = (...s) => t.onClick && t.onClick(...s))
816
816
  }, n[1] || (n[1] = [
817
- k("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
818
- k("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
819
- ]), 14, kn);
817
+ S("path", { d: "M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }, null, -1),
818
+ S("path", { d: "M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465" }, null, -1)
819
+ ]), 14, Sn);
820
820
  }
821
- var Ue = /* @__PURE__ */ nt(wn, [["render", Cn]]);
822
- const Sn = Object.assign(Ue, {
821
+ var De = /* @__PURE__ */ ot(Cn, [["render", xn]]);
822
+ const at = Object.assign(De, {
823
823
  install: (t, n) => {
824
824
  var a;
825
825
  const e = (a = n?.iconPrefix) != null ? a : "";
826
- t.component(e + Ue.name, Ue);
826
+ t.component(e + De.name, De);
827
827
  }
828
- }), xn = E({
828
+ }), An = K({
829
829
  name: "IconDownload",
830
830
  props: {
831
831
  size: {
@@ -852,9 +852,9 @@ const Sn = Object.assign(Ue, {
852
852
  click: (t) => !0
853
853
  },
854
854
  setup(t, { emit: n }) {
855
- const a = et("icon"), e = G(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = G(() => {
855
+ const a = tt("icon"), e = q(() => [a, `${a}-download`, { [`${a}-spin`]: t.spin }]), o = q(() => {
856
856
  const s = {};
857
- return t.size && (s.fontSize = tt(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
857
+ return t.size && (s.fontSize = nt(t.size) ? `${t.size}px` : t.size), t.rotate && (s.transform = `rotate(${t.rotate}deg)`), s;
858
858
  });
859
859
  return {
860
860
  cls: e,
@@ -864,33 +864,33 @@ const Sn = Object.assign(Ue, {
864
864
  }
865
865
  };
866
866
  }
867
- }), An = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
868
- function Vn(t, n, a, e, o, l) {
869
- return d(), w("svg", {
867
+ }), Vn = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
868
+ function In(t, n, a, e, o, l) {
869
+ return d(), h("svg", {
870
870
  viewBox: "0 0 48 48",
871
871
  fill: "none",
872
872
  xmlns: "http://www.w3.org/2000/svg",
873
873
  stroke: "currentColor",
874
874
  class: Ye(t.cls),
875
- style: qe(t.innerStyle),
875
+ style: Qe(t.innerStyle),
876
876
  "stroke-width": t.strokeWidth,
877
877
  "stroke-linecap": t.strokeLinecap,
878
878
  "stroke-linejoin": t.strokeLinejoin,
879
879
  onClick: n[0] || (n[0] = (...s) => t.onClick && t.onClick(...s))
880
880
  }, n[1] || (n[1] = [
881
- k("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
882
- ]), 14, An);
881
+ S("path", { d: "m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6" }, null, -1)
882
+ ]), 14, Vn);
883
883
  }
884
- var De = /* @__PURE__ */ nt(xn, [["render", Vn]]);
885
- const In = Object.assign(De, {
884
+ var Be = /* @__PURE__ */ ot(An, [["render", In]]);
885
+ const Tn = Object.assign(Be, {
886
886
  install: (t, n) => {
887
887
  var a;
888
888
  const e = (a = n?.iconPrefix) != null ? a : "";
889
- t.component(e + De.name, De);
889
+ t.component(e + Be.name, Be);
890
890
  }
891
- }), Tn = /* @__PURE__ */ E({
891
+ }), Pn = /* @__PURE__ */ K({
892
892
  __name: "index",
893
- props: /* @__PURE__ */ ce({
893
+ props: /* @__PURE__ */ le({
894
894
  config: {},
895
895
  className: {},
896
896
  fieldKey: {},
@@ -902,46 +902,46 @@ const In = Object.assign(De, {
902
902
  modelValue: {},
903
903
  modelModifiers: {}
904
904
  }),
905
- emits: /* @__PURE__ */ ce(["update:modelValue", "change", "error"], ["update:modelValue"]),
905
+ emits: /* @__PURE__ */ le(["update:modelValue", "change", "error"], ["update:modelValue"]),
906
906
  setup(t, { expose: n, emit: a }) {
907
- const e = t, o = a, l = ye(t, "modelValue"), s = Fe("widgetRef"), c = G(() => {
907
+ const e = t, o = a, l = we(t, "modelValue"), s = He("widgetRef"), c = q(() => {
908
908
  switch (e.config?.widget?.widget) {
909
909
  case "TextBox":
910
- return Ke;
910
+ return We;
911
911
  case "Number":
912
- return tn;
912
+ return on;
913
913
  case "SelectList":
914
- return We;
914
+ return Ge;
915
915
  case "Cascade":
916
- return sn;
916
+ return cn;
917
917
  case "File":
918
- return dn;
918
+ return fn;
919
919
  case "TextArea":
920
- return pn;
920
+ return gn;
921
921
  case "DropDown":
922
- return We;
922
+ return Ge;
923
923
  case "CheckBox":
924
- return _n;
924
+ return bn;
925
925
  default:
926
- return Ke;
926
+ return We;
927
927
  }
928
- }), i = m(""), r = (f) => {
929
- i.value = f;
930
- }, u = (f, p) => {
931
- o("change", f, p);
928
+ }), i = m(""), r = (p) => {
929
+ i.value = p;
930
+ }, u = (p, f) => {
931
+ o("change", p, f);
932
932
  };
933
933
  function g() {
934
934
  return e.config?.widget?.widget === "File";
935
935
  }
936
- function _(f) {
937
- return f === "OtherInformationText" ? "Other Information" : f === "Other Information" ? "" : f;
936
+ function _(p) {
937
+ return p === "OtherInformationText" ? "Other Information" : p === "Other Information" ? "" : p;
938
938
  }
939
939
  n({
940
940
  isFileUpload() {
941
941
  return e.config?.widget?.widget === "File";
942
942
  },
943
- submit(f) {
944
- return g() ? s.value.submit(f) : Promise.resolve(f);
943
+ submit(p) {
944
+ return g() ? s.value.submit(p) : Promise.resolve(p);
945
945
  },
946
946
  validate() {
947
947
  return s.value?.validate();
@@ -950,36 +950,39 @@ const In = Object.assign(De, {
950
950
  return e?.config?.widget?.title;
951
951
  }
952
952
  });
953
- const S = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: g, formatTitle: _, get IconQuestionCircle() {
954
- return Sn;
953
+ const x = { props: e, emits: o, model: l, widgetRef: s, curComp: c, errMsg: i, errHandler: r, changeHandler: u, isFileUpload: g, formatTitle: _, get IconQuestionCircle() {
954
+ return at;
955
955
  } };
956
- return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
956
+ return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
957
957
  }
958
- }), Pn = { class: "title" }, Nn = {
958
+ }), Nn = { class: "title" }, Un = {
959
959
  key: 0,
960
960
  class: "required"
961
- }, Un = {
961
+ }, Dn = {
962
962
  key: 0,
963
963
  class: "err-msg"
964
964
  };
965
- function Dn(t, n, a, e, o, l) {
966
- const s = C("a-tooltip");
967
- return d(), w("div", null, [
968
- k("div", Pn, [
969
- re(Z(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
970
- e.props.config.validations.length ? (d(), w("span", Nn, "*")) : ne("", !0),
971
- e.props.config.widget.isVisible ? (d(), F(s, { key: 1 }, {
965
+ function Bn(t, n, a, e, o, l) {
966
+ const s = k("a-tooltip");
967
+ return d(), h("div", null, [
968
+ S("div", Nn, [
969
+ oe(X(e.formatTitle(e.props?.config?.widget?.title)) + " ", 1),
970
+ e.props.config.validations.length ? (d(), h("span", Un, "*")) : ne("", !0),
971
+ e.props.config.widget.isVisible ? (d(), D(s, {
972
+ key: 1,
973
+ "background-color": "#7A00E6"
974
+ }, {
972
975
  content: y(() => [
973
- (d(!0), w(O, null, W(e.props.config.widget.outputText, (c) => (d(), w("div", null, Z(c), 1))), 256))
976
+ (d(!0), h($, null, z(e.props.config.widget.outputText, (c) => (d(), h("div", null, X(c), 1))), 256))
974
977
  ]),
975
978
  default: y(() => [
976
- B(e.IconQuestionCircle, { class: "icon" })
979
+ U(e.IconQuestionCircle, { class: "icon" })
977
980
  ]),
978
981
  _: 1
979
982
  })) : ne("", !0)
980
983
  ]),
981
- k("div", null, [
982
- (d(), F(He(e.curComp), {
984
+ S("div", null, [
985
+ (d(), D(Le(e.curComp), {
983
986
  ref: "widgetRef",
984
987
  modelValue: e.model,
985
988
  "onUpdate:modelValue": n[0] || (n[0] = (c) => e.model = c),
@@ -991,11 +994,11 @@ function Dn(t, n, a, e, o, l) {
991
994
  onError: e.errHandler,
992
995
  onChange: e.changeHandler
993
996
  }, null, 40, ["modelValue", "field-key", "config", "validations", "triggers", "class-name"])),
994
- e.errMsg.length > 0 ? (d(), w("div", Un, Z(e.errMsg), 1)) : ne("", !0)
997
+ e.errMsg.length > 0 ? (d(), h("div", Dn, X(e.errMsg), 1)) : ne("", !0)
995
998
  ])
996
999
  ]);
997
1000
  }
998
- const je = /* @__PURE__ */ Q(Tn, [["render", Dn], ["__scopeId", "data-v-03fe127c"], ["__file", "index.vue"]]), Bn = /* @__PURE__ */ E({
1001
+ const Oe = /* @__PURE__ */ J(Pn, [["render", Bn], ["__scopeId", "data-v-9e5e8c37"], ["__file", "index.vue"]]), Fn = /* @__PURE__ */ K({
999
1002
  __name: "SubmitButton",
1000
1003
  props: {
1001
1004
  url: {},
@@ -1013,9 +1016,9 @@ const je = /* @__PURE__ */ Q(Tn, [["render", Dn], ["__scopeId", "data-v-03fe127c
1013
1016
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
1014
1017
  }
1015
1018
  });
1016
- function Fn(t, n, a, e, o, l) {
1017
- const s = C("AButton");
1018
- return d(), F(s, {
1019
+ function Hn(t, n, a, e, o, l) {
1020
+ const s = k("AButton");
1021
+ return d(), D(s, {
1019
1022
  loading: a.loading,
1020
1023
  type: "primary",
1021
1024
  onClick: e.clickHandler
@@ -1026,7 +1029,7 @@ function Fn(t, n, a, e, o, l) {
1026
1029
  _: 3
1027
1030
  }, 8, ["loading"]);
1028
1031
  }
1029
- const Ge = /* @__PURE__ */ Q(Bn, [["render", Fn], ["__file", "SubmitButton.vue"]]), Hn = /* @__PURE__ */ E({
1032
+ const qe = /* @__PURE__ */ J(Fn, [["render", Hn], ["__file", "SubmitButton.vue"]]), Ln = /* @__PURE__ */ K({
1030
1033
  __name: "DetailLink",
1031
1034
  props: {
1032
1035
  url: {},
@@ -1044,16 +1047,16 @@ const Ge = /* @__PURE__ */ Q(Bn, [["render", Fn], ["__file", "SubmitButton.vue"]
1044
1047
  return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
1045
1048
  }
1046
1049
  });
1047
- function Ln(t, n, a, e, o, l) {
1048
- const s = C("ALink");
1049
- return d(), F(s, { onClick: e.clickHandler }, {
1050
+ function Rn(t, n, a, e, o, l) {
1051
+ const s = k("ALink");
1052
+ return d(), D(s, { onClick: e.clickHandler }, {
1050
1053
  default: y(() => [
1051
1054
  de(t.$slots, "default")
1052
1055
  ]),
1053
1056
  _: 3
1054
1057
  });
1055
1058
  }
1056
- const Rn = /* @__PURE__ */ Q(Hn, [["render", Ln], ["__file", "DetailLink.vue"]]), jn = /* @__PURE__ */ E({
1059
+ const jn = /* @__PURE__ */ J(Ln, [["render", Rn], ["__file", "DetailLink.vue"]]), On = /* @__PURE__ */ K({
1057
1060
  __name: "index",
1058
1061
  props: {
1059
1062
  config: {},
@@ -1066,50 +1069,50 @@ const Rn = /* @__PURE__ */ Q(Hn, [["render", Ln], ["__file", "DetailLink.vue"]])
1066
1069
  function l(u, g) {
1067
1070
  o("click", e.config.widget, u, g, e.config.title);
1068
1071
  }
1069
- const s = G(() => {
1072
+ const s = q(() => {
1070
1073
  switch (e.config.location) {
1071
1074
  case "InOperation":
1072
- return Ge;
1075
+ return qe;
1073
1076
  case "InTable":
1074
- return Rn;
1077
+ return jn;
1075
1078
  default:
1076
- return Ge;
1079
+ return qe;
1077
1080
  }
1078
- }), c = G(() => e.config.widget === Y.Submit ? e.config.requestUrl ?? "" : e.config.widget === Y.Link ? e.config.redirectUrl ?? "" : ""), i = G(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
1081
+ }), c = q(() => e.config.widget === Y.Submit ? e.config.requestUrl ?? "" : e.config.widget === Y.Link ? e.config.redirectUrl ?? "" : ""), i = q(() => e.config.redirectType ?? "Details"), r = { props: e, emits: o, clickHandler: l, curComp: s, curUrl: c, redirectType: i };
1079
1082
  return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
1080
1083
  }
1081
1084
  });
1082
1085
  function $n(t, n, a, e, o, l) {
1083
- return d(), F(He(e.curComp), {
1086
+ return d(), D(Le(e.curComp), {
1084
1087
  url: e.curUrl,
1085
1088
  "redirect-type": e.redirectType,
1086
1089
  loading: a.loading,
1087
1090
  onClick: e.clickHandler
1088
1091
  }, {
1089
1092
  default: y(() => [
1090
- re(Z(e.props.config.title), 1)
1093
+ oe(X(e.props.config.title), 1)
1091
1094
  ]),
1092
1095
  _: 1
1093
1096
  }, 8, ["url", "redirect-type", "loading"]);
1094
1097
  }
1095
- const Se = /* @__PURE__ */ Q(jn, [["render", $n], ["__file", "index.vue"]]), ot = Symbol("library-router");
1096
- function xe() {
1097
- const t = me(ot, null);
1098
- return t || mt();
1098
+ const xe = /* @__PURE__ */ J(On, [["render", $n], ["__file", "index.vue"]]), rt = Symbol("library-router");
1099
+ function Ae() {
1100
+ const t = me(rt, null);
1101
+ return t || _t();
1099
1102
  }
1100
- const at = Symbol("library-triggers");
1103
+ const st = Symbol("library-triggers");
1101
1104
  function $e() {
1102
- const t = me(at, null);
1105
+ const t = me(st, null);
1103
1106
  return t || {};
1104
1107
  }
1105
- const On = Symbol("library-pinia"), rt = Symbol("library-bpmStore"), st = Symbol("library-svrStore");
1106
- function Ae() {
1107
- return me(rt, null);
1108
- }
1108
+ const Mn = Symbol("library-pinia"), it = Symbol("library-bpmStore"), lt = Symbol("library-svrStore");
1109
1109
  function Ve() {
1110
- return me(st, null);
1110
+ return me(it, null);
1111
1111
  }
1112
- const Mn = /* @__PURE__ */ E({
1112
+ function Ie() {
1113
+ return me(lt, null);
1114
+ }
1115
+ const En = /* @__PURE__ */ K({
1113
1116
  __name: "TopBar",
1114
1117
  props: {
1115
1118
  title: {},
@@ -1121,27 +1124,27 @@ const Mn = /* @__PURE__ */ E({
1121
1124
  const a = {};
1122
1125
  return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
1123
1126
  }
1124
- }), En = { class: "top-bar" }, zn = { class: "banner-info" }, Kn = { class: "page-title" }, Wn = { class: "page-subtitle" }, Gn = { class: "avatar-wrapper" }, qn = { class: "user-email" };
1127
+ }), zn = { class: "top-bar" }, Kn = { class: "banner-info" }, Wn = { class: "page-title" }, Gn = { class: "page-subtitle" }, qn = { class: "avatar-wrapper" }, Qn = { class: "user-email" };
1125
1128
  function Yn(t, n, a, e, o, l) {
1126
- const s = C("a-avatar"), c = C("a-popover");
1127
- return d(), w("div", En, [
1128
- k("div", zn, [
1129
- k("div", Kn, Z(a.title), 1),
1130
- k("div", Wn, Z(a.subTitle), 1)
1129
+ const s = k("a-avatar"), c = k("a-popover");
1130
+ return d(), h("div", zn, [
1131
+ S("div", Kn, [
1132
+ S("div", Wn, X(a.title), 1),
1133
+ S("div", Gn, X(a.subTitle), 1)
1131
1134
  ]),
1132
- k("div", Gn, [
1133
- B(c, { trigger: "click" }, {
1135
+ S("div", qn, [
1136
+ U(c, { trigger: "click" }, {
1134
1137
  content: y(() => [
1135
- k("div", qn, Z(a.email), 1)
1138
+ S("div", Qn, X(a.email), 1)
1136
1139
  ]),
1137
1140
  default: y(() => [
1138
- B(s, {
1141
+ U(s, {
1139
1142
  size: 48,
1140
1143
  autoFixFontSize: "",
1141
1144
  style: { cursor: "pointer", background: "#165DFF", color: "#fff" }
1142
1145
  }, {
1143
1146
  default: y(() => [
1144
- re(Z(a.email.charAt(0).toUpperCase()), 1)
1147
+ oe(X(a.email.charAt(0).toUpperCase()), 1)
1145
1148
  ]),
1146
1149
  _: 1
1147
1150
  })
@@ -1151,9 +1154,9 @@ function Yn(t, n, a, e, o, l) {
1151
1154
  ])
1152
1155
  ]);
1153
1156
  }
1154
- const Ie = /* @__PURE__ */ Q(Mn, [["render", Yn], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1155
- function Oe(t) {
1156
- const n = Le(), a = [];
1157
+ const Te = /* @__PURE__ */ J(En, [["render", Yn], ["__scopeId", "data-v-c0457235"], ["__file", "TopBar.vue"]]);
1158
+ function Me(t) {
1159
+ const n = Re(), a = [];
1157
1160
  if (n.fieldsGroup) {
1158
1161
  n.fieldsGroup.forEach((l) => {
1159
1162
  const s = l.keys.map((c) => t.find((i) => i.fieldKey === c)).filter(Boolean);
@@ -1163,7 +1166,7 @@ function Oe(t) {
1163
1166
  return o.length && a.push({ name: "Previous Grading (if applicable)", fields: o }), a;
1164
1167
  }
1165
1168
  }
1166
- class Te {
1169
+ class Pe {
1167
1170
  pageActionType;
1168
1171
  className = "";
1169
1172
  store = { svrStore: {}, bpmStore: {} };
@@ -1184,10 +1187,10 @@ class Te {
1184
1187
  return this.opt = n, this;
1185
1188
  }
1186
1189
  build() {
1187
- return this.pageActionType ? this.opt.workflowId ? new Ce(this.pageActionType, this.className, this.store, this.opt) : new Ce(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new Ce(fe.ReCreate, this.className, this.store, this.opt) : new Ce(fe.Create, this.className, this.store);
1190
+ return this.pageActionType ? this.opt.workflowId ? new Se(this.pageActionType, this.className, this.store, this.opt) : new Se(this.pageActionType, this.className, this.store) : this.opt.workflowId ? new Se(fe.ReCreate, this.className, this.store, this.opt) : new Se(fe.Create, this.className, this.store);
1188
1191
  }
1189
1192
  }
1190
- class Ce {
1193
+ class Se {
1191
1194
  pageActionType;
1192
1195
  className;
1193
1196
  store;
@@ -1202,40 +1205,40 @@ class Ce {
1202
1205
  this.pageActionType = n, this.className = a, this.store = e, o && (this.opt = o);
1203
1206
  }
1204
1207
  getPageData() {
1205
- return this.opt ? ze(this.pageActionType, this.className, this.store, this.opt) : ze(this.pageActionType, this.className, this.store);
1208
+ return this.opt ? Ke(this.pageActionType, this.className, this.store, this.opt) : Ke(this.pageActionType, this.className, this.store);
1206
1209
  }
1207
1210
  getBtnList() {
1208
- return Vt(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
1211
+ return Tt(this.pageActionType, this.className, { workflowId: this.getWorkflowId(), email: this.getApproverEmail() });
1209
1212
  }
1210
1213
  getFiles() {
1211
- return this.getWorkflowId() ? $t(this.className, this.getWorkflowId()) : Promise.resolve({});
1214
+ return this.getWorkflowId() ? Mt(this.className, this.getWorkflowId()) : Promise.resolve({});
1212
1215
  }
1213
1216
  removeFile(n) {
1214
- return Ot(this.className, n);
1217
+ return Et(this.className, n);
1215
1218
  }
1216
1219
  getProcess() {
1217
- return Rt(this.className, this.getWorkflowId());
1220
+ return Ot(this.className, this.getWorkflowId());
1218
1221
  }
1219
1222
  getCommentsHistory() {
1220
- return Kt(this.getWorkflowId());
1223
+ return Gt(this.getWorkflowId());
1221
1224
  }
1222
1225
  getAssociator() {
1223
- return Wt(this.getWorkflowId());
1226
+ return qt(this.getWorkflowId());
1224
1227
  }
1225
1228
  getApprovers() {
1226
- return Mt();
1229
+ return zt();
1227
1230
  }
1228
1231
  assignApprover(n) {
1229
- return Et(this.getWorkflowId(), n);
1232
+ return Kt(this.getWorkflowId(), n);
1230
1233
  }
1231
1234
  addComments(n) {
1232
- return zt(this.getWorkflowId(), this.getApproverEmail(), n);
1235
+ return Wt(this.getWorkflowId(), this.getApproverEmail(), n);
1233
1236
  }
1234
1237
  deleteAssociator(n) {
1235
- return Gt(n);
1238
+ return Qt(n);
1236
1239
  }
1237
1240
  }
1238
- const Qn = /* @__PURE__ */ E({
1241
+ const Jn = /* @__PURE__ */ K({
1239
1242
  __name: "CreateView",
1240
1243
  props: {
1241
1244
  className: {},
@@ -1243,7 +1246,7 @@ const Qn = /* @__PURE__ */ E({
1243
1246
  },
1244
1247
  setup(t, { expose: n }) {
1245
1248
  n();
1246
- const a = Ae(), e = Ve(), o = xe(), l = $e(), s = Fe("dataWidgets"), c = pe(), i = t, r = m({
1249
+ const a = Ve(), e = Ie(), o = Ae(), l = $e(), s = He("dataWidgets"), c = pe(), i = t, r = m({
1247
1250
  pageType: "",
1248
1251
  fields: {},
1249
1252
  globalValidations: [],
@@ -1252,103 +1255,103 @@ const Qn = /* @__PURE__ */ E({
1252
1255
  subTitle: ""
1253
1256
  }
1254
1257
  }), u = m([]), g = m({});
1255
- function _(h) {
1256
- return h ? Object.entries(h).map(([A, U]) => ({
1257
- fieldKey: A,
1258
- ...U
1259
- })).filter((A) => A.widget && A.widget.widget !== "Hidden").filter((A) => !X.value.includes(A.fieldKey)) : [];
1258
+ function _(C) {
1259
+ return C ? Object.entries(C).map(([V, B]) => ({
1260
+ fieldKey: V,
1261
+ ...B
1262
+ })).filter((V) => V.widget && V.widget.widget !== "Hidden").filter((V) => !Z.value.includes(V.fieldKey)) : [];
1260
1263
  }
1261
- function S(h) {
1262
- return h ? Object.entries(h).filter(([A, U]) => U.dependent).reduce((A, [U, j]) => (A[U] = j.dependent, A), {}) : [];
1264
+ function x(C) {
1265
+ return C ? Object.entries(C).filter(([V, B]) => B.dependent).reduce((V, [B, O]) => (V[B] = O.dependent, V), {}) : [];
1263
1266
  }
1264
- const f = G(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), V = m(!1);
1267
+ const p = q(() => r.value?.actions ? [...r.value.actions].reverse() : []), f = m({}), b = m(!1);
1265
1268
  ue(async () => {
1266
- V.value = !0;
1267
- const h = new Te().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
1268
- r.value = await h.getPageData(), u.value = _(r.value.fields), g.value = S(r.value.fields);
1269
+ b.value = !0;
1270
+ const C = new Pe().setWorkflowId(i.workflowId).setClassName(i.className).setStore({ svrStore: e, bpmStore: a }).build();
1271
+ r.value = await C.getPageData(), u.value = _(r.value.fields), g.value = x(r.value.fields);
1269
1272
  for (const I in r.value.fields) {
1270
1273
  if (r.value.fields[I].widget?.widget === "File") {
1271
- const A = u.value.find((U) => U.fieldKey === I);
1272
- A && A.widget && (A.widget.files = []);
1274
+ const V = u.value.find((B) => B.fieldKey === I);
1275
+ V && V.widget && (V.widget.files = []);
1273
1276
  }
1274
- p.value[I] = r.value.fields[I].modelValue;
1277
+ f.value[I] = r.value.fields[I].modelValue;
1275
1278
  }
1276
- V.value = !1;
1279
+ b.value = !1;
1277
1280
  });
1278
- function J() {
1281
+ function j() {
1279
1282
  return e()?.userInfo?.email_address ?? "";
1280
1283
  }
1281
- async function ee(h, I, A, U, j) {
1284
+ async function ee(C, I, V, B, O) {
1282
1285
  switch (I) {
1283
1286
  case Y.Submit:
1284
1287
  let L = !0;
1285
- if (s.value?.forEach((q) => {
1286
- q?.validate && (q.validate() || (L = !1));
1288
+ if (s.value?.forEach((Q) => {
1289
+ Q?.validate && (Q.validate() || (L = !1));
1287
1290
  }), !L) {
1288
1291
  c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1289
1292
  return;
1290
1293
  }
1291
- V.value = !0;
1294
+ b.value = !0;
1292
1295
  try {
1293
- const q = await Tt(i.className, { ...p.value, ...g.value }, A), se = s.value?.map((ie) => ie?.submit ? ie.submit(q.toString()) : Promise.resolve()) || [];
1294
- await Promise.all(se), V.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${q.toString()}.`), o.push({ name: "Details", params: { workflowId: q.toString() } });
1296
+ const Q = await Nt(i.className, { ...f.value, ...g.value }, V), se = s.value?.map((ie) => ie?.submit ? ie.submit(Q.toString()) : Promise.resolve()) || [];
1297
+ await Promise.all(se), b.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${Q.toString()}.`), o.push({ name: "Details", params: { workflowId: Q.toString() } });
1295
1298
  } catch {
1296
- c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), V.value = !1;
1299
+ c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), b.value = !1;
1297
1300
  }
1298
1301
  break;
1299
1302
  case Y.Link:
1300
1303
  try {
1301
- await l[h.eventName || ""]?.(p.value, X), o.push({ name: U, params: { className: i.className } });
1302
- } catch (q) {
1303
- console.error("Error in link action trigger:", q);
1304
+ await l[C.eventName || ""]?.(f.value, Z), o.push({ name: B, params: { className: i.className } });
1305
+ } catch (Q) {
1306
+ console.error("Error in link action trigger:", Q);
1304
1307
  }
1305
1308
  break;
1306
1309
  default:
1307
1310
  console.warn("Unknown action type:", I);
1308
1311
  }
1309
1312
  }
1310
- const $ = [
1313
+ const M = [
1311
1314
  "jobScpope",
1312
1315
  "currentWorkdayId",
1313
1316
  "originalGrade",
1314
1317
  "jobTitlePrevious",
1315
1318
  "jobAttachmentPrevious",
1316
1319
  "positionId"
1317
- ], X = m($);
1318
- function oe(h, I) {
1319
- l[h]?.({ fieldValue: I, hiddenFields: X, formData: p }), r.value && (u.value = _(r.value.fields));
1320
+ ], Z = m(M);
1321
+ function ae(C, I) {
1322
+ l[C]?.({ fieldValue: I, hiddenFields: Z, formData: f }), r.value && (u.value = _(r.value.fields));
1320
1323
  }
1321
- const x = G(() => Oe(u.value)), b = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: S, reversedActions: f, _data: p, loading: V, getApproverEmail: J, clickHandler: ee, newHiddenFields: $, hiddenFields: X, changeHandler: oe, groupedFields: x, DataWidgets: je, ActionButton: Se, TopBar: Ie };
1322
- return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
1324
+ const A = q(() => Me(u.value)), w = { bpmStore: a, svrStore: e, router: o, triggers: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: x, reversedActions: p, _data: f, loading: b, getApproverEmail: j, clickHandler: ee, newHiddenFields: M, hiddenFields: Z, changeHandler: ae, groupedFields: A, DataWidgets: Oe, ActionButton: xe, TopBar: Te };
1325
+ return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
1323
1326
  }
1324
- }), Jn = { class: "page-container" }, Xn = { class: "page-body" }, Zn = { class: "form-card" }, eo = { class: "form-fields-vertical" }, to = { class: "form-fields" }, no = {
1327
+ }), Xn = { class: "page-container" }, Zn = { class: "page-body" }, eo = { class: "form-card" }, to = { class: "form-fields-vertical" }, no = { class: "form-fields" }, oo = {
1325
1328
  key: 0,
1326
1329
  class: "form-content"
1327
- }, oo = { class: "page-footer" }, ao = { class: "action-container" }, ro = { class: "action-buttons" };
1328
- function so(t, n, a, e, o, l) {
1329
- const s = C("a-card"), c = C("a-spin");
1330
- return d(), w("div", Jn, [
1331
- B(e.TopBar, {
1330
+ }, ao = { class: "page-footer" }, ro = { class: "action-container" }, so = { class: "action-buttons" };
1331
+ function io(t, n, a, e, o, l) {
1332
+ const s = k("a-card"), c = k("a-spin");
1333
+ return d(), h("div", Xn, [
1334
+ U(e.TopBar, {
1332
1335
  title: e.pageData.banner.title,
1333
1336
  subTitle: e.pageData.banner.subTitle,
1334
1337
  email: e.getApproverEmail()
1335
1338
  }, null, 8, ["title", "subTitle", "email"]),
1336
- k("div", Xn, [
1337
- B(c, {
1339
+ S("div", Zn, [
1340
+ U(c, {
1338
1341
  loading: e.loading,
1339
1342
  class: "form-container"
1340
1343
  }, {
1341
1344
  default: y(() => [
1342
- k("div", Zn, [
1343
- k("div", eo, [
1344
- (d(!0), w(O, null, W(e.groupedFields, (i) => (d(), F(s, {
1345
+ S("div", eo, [
1346
+ S("div", to, [
1347
+ (d(!0), h($, null, z(e.groupedFields, (i) => (d(), D(s, {
1345
1348
  key: i.name,
1346
1349
  title: i.name,
1347
1350
  style: { "margin-bottom": "24px" }
1348
1351
  }, {
1349
1352
  default: y(() => [
1350
- k("div", to, [
1351
- (d(!0), w(O, null, W(i.fields, (r) => (d(), F(e.DataWidgets, {
1353
+ S("div", no, [
1354
+ (d(!0), h($, null, z(i.fields, (r) => (d(), D(e.DataWidgets, {
1352
1355
  key: r.fieldKey,
1353
1356
  ref_for: !0,
1354
1357
  ref: "dataWidgets",
@@ -1365,7 +1368,7 @@ function so(t, n, a, e, o, l) {
1365
1368
  _: 2
1366
1369
  }, 1032, ["title"]))), 128))
1367
1370
  ]),
1368
- t.$slots.content ? (d(), w("div", no, [
1371
+ t.$slots.content ? (d(), h("div", oo, [
1369
1372
  de(t.$slots, "content", {}, void 0, !0)
1370
1373
  ])) : ne("", !0)
1371
1374
  ])
@@ -1373,11 +1376,11 @@ function so(t, n, a, e, o, l) {
1373
1376
  _: 3
1374
1377
  }, 8, ["loading"])
1375
1378
  ]),
1376
- k("div", oo, [
1377
- k("div", ao, [
1379
+ S("div", ao, [
1380
+ S("div", ro, [
1378
1381
  de(t.$slots, "action", {}, void 0, !0),
1379
- k("div", ro, [
1380
- (d(!0), w(O, null, W(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1382
+ S("div", so, [
1383
+ (d(!0), h($, null, z(e.reversedActions, (i) => (d(), D(e.ActionButton, {
1381
1384
  key: i.title,
1382
1385
  loading: e.loading,
1383
1386
  config: i,
@@ -1389,7 +1392,7 @@ function so(t, n, a, e, o, l) {
1389
1392
  ])
1390
1393
  ]);
1391
1394
  }
1392
- const io = /* @__PURE__ */ Q(Qn, [["render", so], ["__scopeId", "data-v-2fce8732"], ["__file", "CreateView.vue"]]), lo = /* @__PURE__ */ E({
1395
+ const lo = /* @__PURE__ */ J(Jn, [["render", io], ["__scopeId", "data-v-2fce8732"], ["__file", "CreateView.vue"]]), co = /* @__PURE__ */ K({
1393
1396
  __name: "UpdateView",
1394
1397
  props: {
1395
1398
  className: {},
@@ -1397,7 +1400,7 @@ const io = /* @__PURE__ */ Q(Qn, [["render", so], ["__scopeId", "data-v-2fce8732
1397
1400
  },
1398
1401
  setup(t, { expose: n }) {
1399
1402
  n();
1400
- const a = xe(), e = $e(), o = Ve(), l = Ae(), s = Fe("dataWidgets"), c = pe(), i = t, r = m({
1403
+ const a = Ae(), e = $e(), o = Ie(), l = Ve(), s = He("dataWidgets"), c = pe(), i = t, r = m({
1401
1404
  pageType: "",
1402
1405
  fields: {},
1403
1406
  globalValidations: [],
@@ -1406,102 +1409,102 @@ const io = /* @__PURE__ */ Q(Qn, [["render", so], ["__scopeId", "data-v-2fce8732
1406
1409
  subTitle: ""
1407
1410
  }
1408
1411
  }), u = m([]), g = m({});
1409
- function _(b) {
1410
- return b ? Object.entries(b).map(([I, A]) => ({
1412
+ function _(w) {
1413
+ return w ? Object.entries(w).map(([I, V]) => ({
1411
1414
  fieldKey: I,
1412
- ...A
1413
- })).filter((I) => I.widget && I.widget.widget !== "Hidden").filter((I) => !$.value.includes(I.fieldKey)) : [];
1415
+ ...V
1416
+ })).filter((I) => I.widget && I.widget.widget !== "Hidden").filter((I) => !M.value.includes(I.fieldKey)) : [];
1414
1417
  }
1415
- function S(b) {
1416
- return b ? Object.entries(b).filter(([I, A]) => A.dependent).reduce((I, [A, U]) => (I[A] = U.dependent, I), {}) : [];
1418
+ function x(w) {
1419
+ return w ? Object.entries(w).filter(([I, V]) => V.dependent).reduce((I, [V, B]) => (I[V] = B.dependent, I), {}) : [];
1417
1420
  }
1418
- const f = G(() => r.value?.actions ? [...r.value.actions].reverse() : []), p = m({}), V = m(!1);
1421
+ const p = q(() => r.value?.actions ? [...r.value.actions].reverse() : []), f = m({}), b = m(!1);
1419
1422
  ue(async () => {
1420
- V.value = !0;
1421
- const b = new Te().setPageActionType(fe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
1422
- r.value = await b.getPageData();
1423
- const h = await b.getBtnList(), I = await b.getFiles();
1424
- r.value.actions = r.value.actions?.filter((U) => {
1425
- const j = h.find((L) => L.button === U.title);
1426
- return j ? j.isShow : !0;
1423
+ b.value = !0;
1424
+ const w = new Pe().setPageActionType(fe.Update).setClassName(i.className).setStore({ svrStore: o, bpmStore: l }).setWorkflowId(i.workflowId).build();
1425
+ r.value = await w.getPageData();
1426
+ const C = await w.getBtnList(), I = await w.getFiles();
1427
+ r.value.actions = r.value.actions?.filter((B) => {
1428
+ const O = C.find((L) => L.button === B.title);
1429
+ return O ? O.isShow : !0;
1427
1430
  });
1428
- const A = r.value.fields.requestType.modelValue;
1429
- e.Test?.({ fieldValue: A, hiddenFields: $, formData: p }), u.value = _(r.value.fields), g.value = S(r.value.fields);
1430
- for (const U in r.value.fields) {
1431
- if (r.value.fields[U].widget?.widget === "File") {
1432
- const j = u.value.find((L) => L.fieldKey === U);
1433
- j && j.widget && (j.widget.files = I[U] ?? [], j.widget.removeFile = (L) => b.removeFile(L));
1431
+ const V = r.value.fields.requestType.modelValue;
1432
+ e.Test?.({ fieldValue: V, hiddenFields: M, formData: f }), u.value = _(r.value.fields), g.value = x(r.value.fields);
1433
+ for (const B in r.value.fields) {
1434
+ if (r.value.fields[B].widget?.widget === "File") {
1435
+ const O = u.value.find((L) => L.fieldKey === B);
1436
+ O && O.widget && (O.widget.files = I[B] ?? [], O.widget.removeFile = (L) => w.removeFile(L));
1434
1437
  }
1435
- p.value[U] = r.value.fields[U].modelValue;
1438
+ f.value[B] = r.value.fields[B].modelValue;
1436
1439
  }
1437
- V.value = !1;
1440
+ b.value = !1;
1438
1441
  });
1439
- function J() {
1442
+ function j() {
1440
1443
  return o()?.userInfo?.email_address ?? "";
1441
1444
  }
1442
- async function ee(b, h, I, A, U) {
1443
- switch (h) {
1445
+ async function ee(w, C, I, V, B) {
1446
+ switch (C) {
1444
1447
  case Y.Submit:
1445
- let j = !0;
1448
+ let O = !0;
1446
1449
  if (s.value?.forEach((L) => {
1447
- L?.validate && (L.validate() || (j = !1));
1448
- }), !j) {
1450
+ L?.validate && (L.validate() || (O = !1));
1451
+ }), !O) {
1449
1452
  c?.appContext.config.globalProperties.$message.error("form validation failed, please check the input fields");
1450
1453
  return;
1451
1454
  }
1452
- V.value = !0;
1455
+ b.value = !0;
1453
1456
  try {
1454
- const L = await Pt(i.className, i.workflowId, { ...p.value, ...g.value }, I), q = s.value?.map((se) => se?.submit ? se.submit(L.toString()) : Promise.resolve()) || [];
1455
- await Promise.all(q), V.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${L.toString()}.`);
1457
+ const L = await Ut(i.className, i.workflowId, { ...f.value, ...g.value }, I), Q = s.value?.map((se) => se?.submit ? se.submit(L.toString()) : Promise.resolve()) || [];
1458
+ await Promise.all(Q), b.value = !1, c?.appContext.config.globalProperties.$notification.success(`Your grading request has been submitted, ID is ${L.toString()}.`);
1456
1459
  } catch {
1457
- c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), V.value = !1;
1460
+ c?.appContext.config.globalProperties.$notification.error("Failed to submit your grading request"), b.value = !1;
1458
1461
  }
1459
1462
  break;
1460
1463
  case Y.Link:
1461
1464
  try {
1462
- await e[b.eventName || ""]?.(p.value, $), a.push({ name: A, params: { className: i.className } });
1465
+ await e[w.eventName || ""]?.(f.value, M), a.push({ name: V, params: { className: i.className } });
1463
1466
  } catch {
1464
1467
  }
1465
1468
  break;
1466
1469
  default:
1467
- console.warn("Unknown action type:", h);
1470
+ console.warn("Unknown action type:", C);
1468
1471
  }
1469
1472
  }
1470
- const $ = m([]);
1471
- function X(b, h) {
1472
- e[b]?.({ fieldValue: h, hiddenFields: $, formData: p }), r.value && (u.value = _(r.value.fields));
1473
+ const M = m([]);
1474
+ function Z(w, C) {
1475
+ e[w]?.({ fieldValue: C, hiddenFields: M, formData: f }), r.value && (u.value = _(r.value.fields));
1473
1476
  }
1474
- const oe = G(() => Oe(u.value)), x = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: S, reversedActions: f, _data: p, loading: V, getApproverEmail: J, clickHandler: ee, hiddenFields: $, changeHandler: X, groupedFields: oe, DataWidgets: je, ActionButton: Se, TopBar: Ie };
1475
- return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
1477
+ const ae = q(() => Me(u.value)), A = { router: a, triggers: e, svrStore: o, bpmStore: l, dataWidgetsRefs: s, instance: c, props: i, pageData: r, _fields: u, _dependent: g, genField: _, genDependentField: x, reversedActions: p, _data: f, loading: b, getApproverEmail: j, clickHandler: ee, hiddenFields: M, changeHandler: Z, groupedFields: ae, DataWidgets: Oe, ActionButton: xe, TopBar: Te };
1478
+ return Object.defineProperty(A, "__isScriptSetup", { enumerable: !1, value: !0 }), A;
1476
1479
  }
1477
- }), co = { class: "page-container" }, uo = { class: "page-body" }, fo = { class: "form-card" }, po = { class: "form-fields-vertical" }, mo = { class: "form-fields" }, go = {
1480
+ }), uo = { class: "page-container" }, fo = { class: "page-body" }, po = { class: "form-card" }, mo = { class: "form-fields-vertical" }, go = { class: "form-fields" }, _o = {
1478
1481
  key: 0,
1479
1482
  class: "form-content"
1480
- }, _o = { class: "page-footer" }, vo = { class: "action-container" }, bo = { class: "action-buttons" };
1481
- function ho(t, n, a, e, o, l) {
1482
- const s = C("a-card"), c = C("a-spin");
1483
- return d(), w("div", co, [
1484
- B(e.TopBar, {
1483
+ }, vo = { class: "page-footer" }, bo = { class: "action-container" }, ho = { class: "action-buttons" };
1484
+ function yo(t, n, a, e, o, l) {
1485
+ const s = k("a-card"), c = k("a-spin");
1486
+ return d(), h("div", uo, [
1487
+ U(e.TopBar, {
1485
1488
  title: e.pageData.banner.title,
1486
1489
  subTitle: e.pageData.banner.subTitle,
1487
1490
  email: e.getApproverEmail()
1488
1491
  }, null, 8, ["title", "subTitle", "email"]),
1489
- k("div", uo, [
1490
- B(c, {
1492
+ S("div", fo, [
1493
+ U(c, {
1491
1494
  loading: e.loading,
1492
1495
  class: "form-container"
1493
1496
  }, {
1494
1497
  default: y(() => [
1495
- k("div", fo, [
1496
- k("div", po, [
1497
- (d(!0), w(O, null, W(e.groupedFields, (i) => (d(), F(s, {
1498
+ S("div", po, [
1499
+ S("div", mo, [
1500
+ (d(!0), h($, null, z(e.groupedFields, (i) => (d(), D(s, {
1498
1501
  key: i.name,
1499
1502
  title: i.name,
1500
1503
  style: { "margin-bottom": "24px" }
1501
1504
  }, {
1502
1505
  default: y(() => [
1503
- k("div", mo, [
1504
- (d(!0), w(O, null, W(i.fields, (r) => (d(), F(e.DataWidgets, {
1506
+ S("div", go, [
1507
+ (d(!0), h($, null, z(i.fields, (r) => (d(), D(e.DataWidgets, {
1505
1508
  key: r.fieldKey,
1506
1509
  ref_for: !0,
1507
1510
  ref: "dataWidgets",
@@ -1518,7 +1521,7 @@ function ho(t, n, a, e, o, l) {
1518
1521
  _: 2
1519
1522
  }, 1032, ["title"]))), 128))
1520
1523
  ]),
1521
- t.$slots.content ? (d(), w("div", go, [
1524
+ t.$slots.content ? (d(), h("div", _o, [
1522
1525
  de(t.$slots, "content", {}, void 0, !0)
1523
1526
  ])) : ne("", !0)
1524
1527
  ])
@@ -1526,11 +1529,11 @@ function ho(t, n, a, e, o, l) {
1526
1529
  _: 3
1527
1530
  }, 8, ["loading"])
1528
1531
  ]),
1529
- k("div", _o, [
1530
- k("div", vo, [
1532
+ S("div", vo, [
1533
+ S("div", bo, [
1531
1534
  de(t.$slots, "action", {}, void 0, !0),
1532
- k("div", bo, [
1533
- (d(!0), w(O, null, W(e.reversedActions, (i) => (d(), F(e.ActionButton, {
1535
+ S("div", ho, [
1536
+ (d(!0), h($, null, z(e.reversedActions, (i) => (d(), D(e.ActionButton, {
1534
1537
  key: i.title,
1535
1538
  loading: e.loading,
1536
1539
  config: i,
@@ -1542,11 +1545,11 @@ function ho(t, n, a, e, o, l) {
1542
1545
  ])
1543
1546
  ]);
1544
1547
  }
1545
- const yo = /* @__PURE__ */ Q(lo, [["render", ho], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), it = Symbol("library-custom-comp");
1546
- function wo() {
1547
- return me(it, null);
1548
+ const wo = /* @__PURE__ */ J(co, [["render", yo], ["__scopeId", "data-v-a0ee3911"], ["__file", "UpdateView.vue"]]), ct = Symbol("library-custom-comp");
1549
+ function ko() {
1550
+ return me(ct, null);
1548
1551
  }
1549
- const ko = /* @__PURE__ */ E({
1552
+ const Co = /* @__PURE__ */ K({
1550
1553
  __name: "DetailView",
1551
1554
  props: {
1552
1555
  className: {},
@@ -1554,7 +1557,7 @@ const ko = /* @__PURE__ */ E({
1554
1557
  },
1555
1558
  setup(t, { expose: n }) {
1556
1559
  n();
1557
- const a = Ve(), e = Ae(), o = $e(), l = xe(), s = wo(), c = pe(), i = t;
1560
+ const a = Ie(), e = Ve(), o = $e(), l = Ae(), s = ko(), c = pe(), i = t;
1558
1561
  let r;
1559
1562
  const u = m({
1560
1563
  pageType: "",
@@ -1565,17 +1568,17 @@ const ko = /* @__PURE__ */ E({
1565
1568
  subTitle: ""
1566
1569
  }
1567
1570
  }), g = m([]);
1568
- function _(P) {
1569
- return P ? Object.entries(P).map(([M, T]) => (typeof T.modelValue == "boolean" ? T.fieldValue = T.modelValue ? "Yes" : "No" : T.fieldValue = T.modelValue, {
1570
- fieldKey: M,
1571
- ...T
1572
- })).filter((M) => M.widget && M.widget.widget !== "Hidden").filter((M) => !b.value.includes(M.fieldKey)) : [];
1571
+ function _(T) {
1572
+ return T ? Object.entries(T).map(([E, P]) => (typeof P.modelValue == "boolean" ? P.fieldValue = P.modelValue ? "Yes" : "No" : P.fieldValue = P.modelValue, {
1573
+ fieldKey: E,
1574
+ ...P
1575
+ })).filter((E) => E.widget && E.widget.widget !== "Hidden").filter((E) => !w.value.includes(E.fieldKey)) : [];
1573
1576
  }
1574
- const S = G(() => Oe(g.value)), f = G(() => u.value?.actions ? [...u.value.actions].reverse() : []), p = m(!0), V = (P, H) => {
1575
- const M = P.findIndex((T) => T.isCurrent);
1576
- return P.map((T, ae) => {
1577
- const D = {
1578
- id: T.id,
1577
+ const x = q(() => Me(g.value)), p = q(() => u.value?.actions ? [...u.value.actions].reverse() : []), f = m(!0), b = (T, H) => {
1578
+ const E = T.findIndex((P) => P.isCurrent);
1579
+ return T.map((P, re) => {
1580
+ const F = {
1581
+ id: P.id,
1579
1582
  title: "",
1580
1583
  proxy: "",
1581
1584
  sub: "",
@@ -1583,82 +1586,82 @@ const ko = /* @__PURE__ */ E({
1583
1586
  status: 1,
1584
1587
  time: ""
1585
1588
  };
1586
- D.title = T.workflowProcessApprovers[0]?.name;
1587
- const ve = T.workflowProcessApprovers[T.workflowProcessApprovers.length - 1], we = T.workflowHistorys[T.workflowHistorys.length - 1], be = we?.workflowHistoryApprovers[we?.workflowHistoryApprovers?.length - 1];
1588
- if (ve && be && ve?.email?.toLowerCase() !== be?.approverEmail?.toLowerCase() && (D.title = `${be.name}`, D.proxy = `Proxy: ${ve.name}`), T.sort > 1 ? D.sub = "Approver Role: " + T.nodeName.replace("Submit", "").replace("Approve", "") : D.sub = "Submit Application", T.isCurrent && H !== -1)
1589
- D.desc = "In Approval", D.status = 1;
1589
+ F.title = P.workflowProcessApprovers[0]?.name;
1590
+ const be = P.workflowProcessApprovers[P.workflowProcessApprovers.length - 1], ke = P.workflowHistorys[P.workflowHistorys.length - 1], he = ke?.workflowHistoryApprovers[ke?.workflowHistoryApprovers?.length - 1];
1591
+ if (be && he && be?.email?.toLowerCase() !== he?.approverEmail?.toLowerCase() && (F.title = `${he.name}`, F.proxy = `Proxy: ${be.name}`), P.sort > 1 ? F.sub = "Approver Role: " + P.nodeName.replace("Submit", "").replace("Approve", "") : F.sub = "Submit Application", P.isCurrent && H !== -1)
1592
+ F.desc = "In Approval", F.status = 1;
1590
1593
  else {
1591
- const te = T.workflowHistorys[T.workflowHistorys.length - 1];
1594
+ const te = P.workflowHistorys[P.workflowHistorys.length - 1];
1592
1595
  if (te && te.status === 100)
1593
- D.time = ke(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 2, D.desc = "approve success!";
1596
+ F.time = Ce(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), F.status = 2, F.desc = "approve success!";
1594
1597
  else if (te && te.status === 999)
1595
- D.time = ke(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), D.status = 0, D.desc = "approve reject!";
1598
+ F.time = Ce(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), F.status = 0, F.desc = "approve reject!";
1596
1599
  else if (te)
1597
- if (D.time = ke(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), T.sort === 1)
1598
- D.status = 2, D.desc = "";
1600
+ if (F.time = Ce(te.takeActionAt, "yyyy-MM-dd hh:mm:ss"), P.sort === 1)
1601
+ F.status = 2, F.desc = "";
1599
1602
  else {
1600
- const Me = te.workflowHistoryApprovers[0];
1601
- D.status = 3, D.desc = Me?.reason ? `Rejected reason: ${Me.reason}` : "Rejected";
1603
+ const Ee = te.workflowHistoryApprovers[0];
1604
+ F.status = 3, F.desc = Ee?.reason ? `Rejected reason: ${Ee.reason}` : "Rejected";
1602
1605
  }
1603
- else ae < M || M === -1 ? (D.status = 0, D.desc = "Skipped") : (D.status = 0, D.desc = "Pending Approval");
1606
+ else re < E || E === -1 ? (F.status = 0, F.desc = "Skipped") : (F.status = 0, F.desc = "Pending Approval");
1604
1607
  te && te.status;
1605
1608
  }
1606
- return D;
1609
+ return F;
1607
1610
  });
1608
- }, J = m([]), ee = m(!1), $ = m(!1), X = m(!1), oe = m(!1);
1609
- async function x() {
1610
- const P = await r.getBtnList();
1611
+ }, j = m([]), ee = m(!1), M = m(!1), Z = m(!1), ae = m(!1);
1612
+ async function A() {
1613
+ const T = await r.getBtnList();
1611
1614
  u.value.actions = u.value.actions?.filter((H) => {
1612
- const M = P.find((T) => T.button === H.title);
1613
- return M ? M.isShow : !0;
1614
- }), ee.value = P.find((H) => H.button === "IsGlobal")?.isShow ?? !1, $.value = P.find((H) => H.button === "AssignButton")?.isShow ?? !1, X.value = P.find((H) => H.button === "AssignList")?.isShow ?? !1, oe.value = P.find((H) => H.button === "AddCommentsButton")?.isShow ?? !1;
1615
+ const E = T.find((P) => P.button === H.title);
1616
+ return E ? E.isShow : !0;
1617
+ }), ee.value = T.find((H) => H.button === "IsGlobal")?.isShow ?? !1, M.value = T.find((H) => H.button === "AssignButton")?.isShow ?? !1, Z.value = T.find((H) => H.button === "AssignList")?.isShow ?? !1, ae.value = T.find((H) => H.button === "AddCommentsButton")?.isShow ?? !1;
1615
1618
  }
1616
- const b = m([]);
1617
- async function h() {
1618
- p.value = !0, r = new Te().setPageActionType(fe.Details).setClassName(i.className).setStore({ svrStore: a, bpmStore: e }).setWorkflowId(i.workflowId).build(), u.value = await r.getPageData();
1619
- const P = await r.getFiles();
1620
- se.value = await r.getApprovers(), L.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), x();
1619
+ const w = m([]);
1620
+ async function C() {
1621
+ f.value = !0, r = new Pe().setPageActionType(fe.Details).setClassName(i.className).setStore({ svrStore: a, bpmStore: e }).setWorkflowId(i.workflowId).build(), u.value = await r.getPageData();
1622
+ const T = await r.getFiles();
1623
+ se.value = await r.getApprovers(), L.value = await r.getCommentsHistory(), ie.value = await r.getAssociator(), A();
1621
1624
  const H = u.value.fields.requestType.modelValue;
1622
- o.Test?.({ fieldValue: H, hiddenFields: b }), g.value = _(u.value.fields);
1623
- for (const T in u.value.fields)
1624
- if (u.value.fields[T].widget?.widget === "File") {
1625
- const ae = g.value.find((D) => D.fieldKey === T);
1626
- ae && ae.widget && (ae.widget.files = P[T] ?? []);
1625
+ o.Test?.({ fieldValue: H, hiddenFields: w }), g.value = _(u.value.fields);
1626
+ for (const P in u.value.fields)
1627
+ if (u.value.fields[P].widget?.widget === "File") {
1628
+ const re = g.value.find((F) => F.fieldKey === P);
1629
+ re && re.widget && (re.widget.files = T[P] ?? []);
1627
1630
  }
1628
- const M = await r.getProcess();
1629
- J.value = V(M, 0), p.value = !1;
1631
+ const E = await r.getProcess();
1632
+ j.value = b(E, 0), f.value = !1;
1630
1633
  }
1631
- ue(h);
1632
- async function I(P, H) {
1633
- return o[P]?.(H);
1634
+ ue(C);
1635
+ async function I(T, H) {
1636
+ return o[T]?.(H);
1634
1637
  }
1635
- function A() {
1638
+ function V() {
1636
1639
  return a()?.userInfo?.email_address ?? "";
1637
1640
  }
1638
- async function U(P, H, M, T, ae) {
1641
+ async function B(T, H, E, P, re) {
1639
1642
  try {
1640
1643
  switch (H) {
1641
1644
  case Y.Submit:
1642
- const { reason: D, ifGlobal: ve } = await I(ae, { isGlobal: ee.value });
1643
- p.value = !0;
1644
- const we = ae === "Approve" ? "100" : "-1";
1645
- await Ht(i.className, i.workflowId, A(), D, [Number(i.workflowId)], M, we, ve), p.value = !1;
1646
- const be = ae === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1647
- c?.appContext.config.globalProperties.$notification.success(be), h();
1645
+ const { reason: F, ifGlobal: be } = await I(re, { isGlobal: ee.value });
1646
+ f.value = !0;
1647
+ const ke = re === "Approve" ? "100" : "-1";
1648
+ await Rt(i.className, i.workflowId, V(), F, [Number(i.workflowId)], E, ke, be), f.value = !1;
1649
+ const he = re === "Approve" ? `Request ID ${i.workflowId} has been approved.` : `Request ID ${i.workflowId} has been rejected.`;
1650
+ c?.appContext.config.globalProperties.$notification.success(he), C();
1648
1651
  break;
1649
1652
  case Y.Link:
1650
1653
  try {
1651
- await o[P.eventName || ""]?.(), l.push({ name: T, params: { className: i.className, workflowId: i.workflowId } });
1654
+ await o[T.eventName || ""]?.(), l.push({ name: P, params: { className: i.className, workflowId: i.workflowId } });
1652
1655
  } catch (te) {
1653
1656
  console.error("Error in link action trigger:", te);
1654
1657
  }
1655
1658
  break;
1656
1659
  case Y.Button:
1657
- await o[P.eventName || ""]?.({
1660
+ await o[T.eventName || ""]?.({
1658
1661
  approvers: se,
1659
1662
  associators: ie,
1660
- isShowAssignSelect: $,
1661
- isShowAssignList: X,
1663
+ isShowAssignSelect: M,
1664
+ isShowAssignList: Z,
1662
1665
  assignCallback: _e,
1663
1666
  deleteAssociatorCallback: N
1664
1667
  });
@@ -1669,15 +1672,15 @@ const ko = /* @__PURE__ */ E({
1669
1672
  } catch {
1670
1673
  }
1671
1674
  }
1672
- const j = m(""), L = m([]), q = m(""), se = m([]), ie = m([]);
1673
- async function _e(P) {
1674
- if (!P) {
1675
+ const O = m(""), L = m([]), Q = m(""), se = m([]), ie = m([]);
1676
+ async function _e(T) {
1677
+ if (!T) {
1675
1678
  c?.appContext.config.globalProperties.$message.error("Please select an approver");
1676
1679
  return;
1677
1680
  }
1678
1681
  await v("Confirm Assign Approver", "Do you want to assign the selected approver?");
1679
1682
  try {
1680
- await r.assignApprover(P), ie.value = await r.getAssociator(), x(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1683
+ await r.assignApprover(T), ie.value = await r.getAssociator(), A(), c?.appContext.config.globalProperties.$notification.success("Assign Approver clicked!");
1681
1684
  } catch (H) {
1682
1685
  if (H.status === 409) {
1683
1686
  c?.appContext.config.globalProperties.$notification.error("This user is already an associator");
@@ -1686,111 +1689,130 @@ const ko = /* @__PURE__ */ E({
1686
1689
  c?.appContext.config.globalProperties.$notification.error("Failed to assign approver");
1687
1690
  }
1688
1691
  }
1689
- async function v(P, H) {
1690
- const { Modal: M } = await import("@arco-design/web-vue");
1691
- return new Promise((T, ae) => {
1692
- M.confirm({
1693
- title: P,
1692
+ async function v(T, H) {
1693
+ const { Modal: E } = await import("@arco-design/web-vue");
1694
+ return new Promise((P, re) => {
1695
+ E.confirm({
1696
+ title: T,
1694
1697
  content: H,
1695
1698
  okText: "OK",
1696
1699
  cancelText: "Cancel",
1697
- onOk: () => T(!0),
1698
- onCancel: () => ae()
1700
+ onOk: () => P(!0),
1701
+ onCancel: () => re()
1699
1702
  });
1700
1703
  });
1701
1704
  }
1702
- async function N(P) {
1705
+ async function N(T) {
1703
1706
  try {
1704
1707
  await v("Confirm Delete Associator", "Do you want to delete this associator?");
1705
1708
  } catch {
1706
1709
  return;
1707
1710
  }
1708
1711
  try {
1709
- await r.deleteAssociator(P.toString()), ie.value = await r.getAssociator(), c?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1712
+ await r.deleteAssociator(T.toString()), ie.value = await r.getAssociator(), c?.appContext.config.globalProperties.$notification.success("Associator deleted successfully!");
1710
1713
  } catch {
1711
1714
  c?.appContext.config.globalProperties.$notification.error("Failed to delete associator");
1712
1715
  }
1713
1716
  }
1714
1717
  async function R() {
1715
- if (!j.value.trim()) {
1718
+ if (!O.value.trim()) {
1716
1719
  c?.appContext.config.globalProperties.$message.error("Comment cannot be empty");
1717
1720
  return;
1718
1721
  }
1719
- await r.addComments(j.value.trim()), j.value = "", L.value = await r.getCommentsHistory(), c?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1722
+ await r.addComments(O.value.trim()), O.value = "", L.value = await r.getCommentsHistory(), c?.appContext.config.globalProperties.$notification.success("Add Comment clicked!");
1720
1723
  }
1721
- const le = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, get page() {
1724
+ function ce(T) {
1725
+ return T ? T === "OtherInformationText" ? "Other Information" : T === "Other Information" ? "" : T : "";
1726
+ }
1727
+ const ve = { svrStore: a, bpmStore: e, triggers: o, router: l, customComps: s, instance: c, props: i, get page() {
1722
1728
  return r;
1723
- }, set page(P) {
1724
- r = P;
1725
- }, pageData: u, _fields: g, genField: _, groupedFields: S, reversedActions: f, loading: p, mapWorkflowSteps: V, steps: J, isGlobal: ee, isShowAssignSelect: $, isShowAssignList: X, isShowCommentTextArea: oe, reloadButtonList: x, hiddenFields: b, load: h, triggerFn: I, getApproverEmail: A, clickHandler: U, comment: j, commentsHistory: L, selectedApprover: q, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: v, onDeleteAssociator: N, onAddComment: R, ActionButton: Se, get IconDownload() {
1726
- return In;
1727
- }, TopBar: Ie, get formatDate() {
1728
- return ke;
1729
+ }, set page(T) {
1730
+ r = T;
1731
+ }, pageData: u, _fields: g, genField: _, groupedFields: x, reversedActions: p, loading: f, mapWorkflowSteps: b, steps: j, isGlobal: ee, isShowAssignSelect: M, isShowAssignList: Z, isShowCommentTextArea: ae, reloadButtonList: A, hiddenFields: w, load: C, triggerFn: I, getApproverEmail: V, clickHandler: B, comment: O, commentsHistory: L, selectedApprover: Q, approvers: se, associators: ie, onAssignApprover: _e, confirmDialog: v, onDeleteAssociator: N, onAddComment: R, formatTitle: ce, ActionButton: xe, get IconDownload() {
1732
+ return Tn;
1733
+ }, TopBar: Te, get formatDate() {
1734
+ return Ce;
1735
+ }, get IconQuestionCircle() {
1736
+ return at;
1729
1737
  } };
1730
- return Object.defineProperty(le, "__isScriptSetup", { enumerable: !1, value: !0 }), le;
1738
+ return Object.defineProperty(ve, "__isScriptSetup", { enumerable: !1, value: !0 }), ve;
1731
1739
  }
1732
- }), Co = { class: "page-container" }, So = { class: "page-body" }, xo = { class: "detail-card" }, Ao = { class: "form-fields-vertical" }, Vo = { class: "detail-fields" }, Io = { class: "detail-field" }, To = { class: "field-label" }, Po = {
1740
+ }), So = { class: "page-container" }, xo = { class: "page-body" }, Ao = { class: "detail-card" }, Vo = { class: "form-fields-vertical" }, Io = { class: "detail-fields" }, To = { class: "detail-field" }, Po = { class: "field-label" }, No = {
1733
1741
  key: 1,
1734
1742
  class: "field-value"
1735
- }, No = {
1743
+ }, Uo = {
1736
1744
  key: 2,
1737
1745
  class: "detail-field-wrapper"
1738
- }, Uo = { class: "detail-field" }, Do = {
1746
+ }, Do = { class: "detail-field" }, Bo = {
1739
1747
  key: 0,
1740
1748
  class: "detail-content"
1741
- }, Bo = { class: "page-footer" }, Fo = { class: "action-container" }, Ho = { class: "action-buttons" };
1742
- function Lo(t, n, a, e, o, l) {
1743
- const s = C("a-link"), c = C("a-space"), i = C("a-card");
1744
- C("a-option"), C("a-select");
1745
- const r = C("a-button"), u = C("a-list-item"), g = C("a-list"), _ = C("a-textarea"), S = C("a-spin");
1746
- return d(), w("div", Co, [
1747
- B(e.TopBar, {
1749
+ }, Fo = { class: "page-footer" }, Ho = { class: "action-container" }, Lo = { class: "action-buttons" };
1750
+ function Ro(t, n, a, e, o, l) {
1751
+ const s = k("a-tooltip"), c = k("a-link"), i = k("a-space"), r = k("a-card");
1752
+ k("a-option"), k("a-select");
1753
+ const u = k("a-button"), g = k("a-list-item"), _ = k("a-list"), x = k("a-textarea"), p = k("a-spin");
1754
+ return d(), h("div", So, [
1755
+ U(e.TopBar, {
1748
1756
  title: e.pageData.banner.title,
1749
1757
  subTitle: e.pageData.banner.subTitle,
1750
1758
  email: e.getApproverEmail()
1751
1759
  }, null, 8, ["title", "subTitle", "email"]),
1752
- k("div", So, [
1753
- B(S, {
1760
+ S("div", xo, [
1761
+ U(p, {
1754
1762
  loading: e.loading,
1755
1763
  class: "detail-container"
1756
1764
  }, {
1757
1765
  default: y(() => [
1758
- k("div", xo, [
1759
- (d(), F(He(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1760
- k("div", Ao, [
1761
- (d(!0), w(O, null, W(e.groupedFields, (f) => (d(), F(i, {
1766
+ S("div", Ao, [
1767
+ (d(), D(Le(e.customComps.Steps), { steps: e.steps }, null, 8, ["steps"])),
1768
+ S("div", Vo, [
1769
+ (d(!0), h($, null, z(e.groupedFields, (f) => (d(), D(r, {
1762
1770
  key: f.name,
1763
1771
  title: f.name,
1764
1772
  style: { "margin-bottom": "24px" }
1765
1773
  }, {
1766
1774
  default: y(() => [
1767
- k("div", Vo, [
1768
- (d(!0), w(O, null, W(f.fields, (p) => (d(), w("div", {
1769
- key: p.fieldKey,
1775
+ S("div", Io, [
1776
+ (d(!0), h($, null, z(f.fields, (b) => (d(), h("div", {
1777
+ key: b.fieldKey,
1770
1778
  class: "detail-field-wrapper"
1771
1779
  }, [
1772
- k("div", Io, [
1773
- k("div", To, Z(p.widget?.title), 1),
1774
- p.widget?.widget === "File" ? (d(!0), w(O, { key: 0 }, W(p.widget.files, (V) => (d(), w("div", {
1780
+ S("div", To, [
1781
+ S("div", Po, [
1782
+ oe(X(e.formatTitle(b.widget?.title)) + " ", 1),
1783
+ b.widget?.isVisible ? (d(), D(s, {
1784
+ key: 0,
1785
+ "background-color": "#7A00E6"
1786
+ }, {
1787
+ content: y(() => [
1788
+ (d(!0), h($, null, z(b.widget?.outputText, (j) => (d(), h("div", { key: j }, X(j), 1))), 128))
1789
+ ]),
1790
+ default: y(() => [
1791
+ U(e.IconQuestionCircle, { class: "icon" })
1792
+ ]),
1793
+ _: 2
1794
+ }, 1024)) : ne("", !0)
1795
+ ]),
1796
+ b.widget?.widget === "File" ? (d(!0), h($, { key: 0 }, z(b.widget.files, (j) => (d(), h("div", {
1775
1797
  class: "field-value",
1776
- key: V.id
1798
+ key: j.id
1777
1799
  }, [
1778
- B(c, null, {
1800
+ U(i, null, {
1779
1801
  default: y(() => [
1780
- re(Z(V.name) + " ", 1),
1781
- B(s, {
1782
- href: V.url,
1802
+ oe(X(j.name) + " ", 1),
1803
+ U(c, {
1804
+ href: j.url,
1783
1805
  target: "_blank"
1784
1806
  }, {
1785
1807
  default: y(() => [
1786
- B(e.IconDownload, { style: { color: "#7A00E6" } })
1808
+ U(e.IconDownload, { style: { color: "#7A00E6" } })
1787
1809
  ]),
1788
1810
  _: 2
1789
1811
  }, 1032, ["href"])
1790
1812
  ]),
1791
1813
  _: 2
1792
1814
  }, 1024)
1793
- ]))), 128)) : (d(), w("div", Po, Z(p.fieldValue), 1))
1815
+ ]))), 128)) : (d(), h("div", No, X(b.fieldValue), 1))
1794
1816
  ])
1795
1817
  ]))), 128))
1796
1818
  ])
@@ -1799,35 +1821,35 @@ function Lo(t, n, a, e, o, l) {
1799
1821
  }, 1032, ["title"]))), 128)),
1800
1822
  ne("", !0),
1801
1823
  ne("", !0),
1802
- e.isShowCommentTextArea ? (d(), w("div", No, [
1803
- k("div", Uo, [
1804
- n[6] || (n[6] = k("div", { class: "field-label" }, "Comment", -1)),
1805
- B(_, {
1824
+ e.isShowCommentTextArea ? (d(), h("div", Uo, [
1825
+ S("div", Do, [
1826
+ n[6] || (n[6] = S("div", { class: "field-label" }, "Comment", -1)),
1827
+ U(x, {
1806
1828
  modelValue: e.comment,
1807
1829
  "onUpdate:modelValue": n[1] || (n[1] = (f) => e.comment = f)
1808
1830
  }, null, 8, ["modelValue"]),
1809
- B(r, {
1831
+ U(u, {
1810
1832
  type: "primary",
1811
1833
  onClick: e.onAddComment
1812
1834
  }, {
1813
1835
  default: y(() => n[5] || (n[5] = [
1814
- re("Add Comment", -1)
1836
+ oe("Add Comment", -1)
1815
1837
  ])),
1816
1838
  _: 1,
1817
1839
  __: [5]
1818
1840
  })
1819
1841
  ])
1820
1842
  ])) : ne("", !0),
1821
- e.commentsHistory.length ? (d(), F(g, { key: 3 }, {
1843
+ e.commentsHistory.length ? (d(), D(_, { key: 3 }, {
1822
1844
  header: y(() => n[7] || (n[7] = [
1823
- re(" Comments History ", -1)
1845
+ oe(" Comments History ", -1)
1824
1846
  ])),
1825
1847
  default: y(() => [
1826
- (d(!0), w(O, null, W(e.commentsHistory, (f) => (d(), F(u, {
1848
+ (d(!0), h($, null, z(e.commentsHistory, (f) => (d(), D(g, {
1827
1849
  key: f.associator
1828
1850
  }, {
1829
1851
  default: y(() => [
1830
- re(Z(f.associator) + ": " + Z(f.comments) + " (" + Z(e.formatDate(f.createdAt)) + ") ", 1)
1852
+ oe(X(f.associator) + ": " + X(f.comments) + " (" + X(e.formatDate(f.createdAt)) + ") ", 1)
1831
1853
  ]),
1832
1854
  _: 2
1833
1855
  }, 1024))), 128))
@@ -1835,7 +1857,7 @@ function Lo(t, n, a, e, o, l) {
1835
1857
  _: 1
1836
1858
  })) : ne("", !0)
1837
1859
  ]),
1838
- t.$slots.content ? (d(), w("div", Do, [
1860
+ t.$slots.content ? (d(), h("div", Bo, [
1839
1861
  de(t.$slots, "content", {}, void 0, !0)
1840
1862
  ])) : ne("", !0)
1841
1863
  ])
@@ -1843,23 +1865,23 @@ function Lo(t, n, a, e, o, l) {
1843
1865
  _: 3
1844
1866
  }, 8, ["loading"])
1845
1867
  ]),
1846
- k("div", Bo, [
1847
- k("div", Fo, [
1868
+ S("div", Fo, [
1869
+ S("div", Ho, [
1848
1870
  de(t.$slots, "action", {}, void 0, !0),
1849
- k("div", Ho, [
1850
- (d(!0), w(O, null, W(e.reversedActions, (f) => (d(), F(e.ActionButton, {
1871
+ S("div", Lo, [
1872
+ (d(!0), h($, null, z(e.reversedActions, (f) => (d(), D(e.ActionButton, {
1851
1873
  key: f.title,
1852
1874
  loading: e.loading,
1853
1875
  config: f,
1854
1876
  class: "action-button",
1855
- onClick: (...p) => e.clickHandler(f, ...p)
1877
+ onClick: (...b) => e.clickHandler(f, ...b)
1856
1878
  }, null, 8, ["loading", "config", "onClick"]))), 128))
1857
1879
  ])
1858
1880
  ])
1859
1881
  ])
1860
1882
  ]);
1861
1883
  }
1862
- const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d"], ["__file", "DetailView.vue"]]), jo = /* @__PURE__ */ E({
1884
+ const jo = /* @__PURE__ */ J(Co, [["render", Ro], ["__scopeId", "data-v-f3f30431"], ["__file", "DetailView.vue"]]), Oo = /* @__PURE__ */ K({
1863
1885
  name: "ListView",
1864
1886
  __name: "ListView",
1865
1887
  props: {
@@ -1867,7 +1889,7 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1867
1889
  },
1868
1890
  setup(t, { expose: n }) {
1869
1891
  n();
1870
- const a = Ve(), e = Ae(), o = xe(), l = pe(), s = t, c = m(), i = ct({
1892
+ const a = Ie(), e = Ve(), o = Ae(), l = pe(), s = t, c = m(), i = ut({
1871
1893
  current: 1,
1872
1894
  total: 0,
1873
1895
  pageSize: 10,
@@ -1877,10 +1899,10 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1877
1899
  filters: []
1878
1900
  });
1879
1901
  function r() {
1880
- const v = Object.entries(A.value).filter(([, { value: N }]) => N && N !== "").map(([N, { value: R, operator: le }]) => ({
1902
+ const v = Object.entries(V.value).filter(([, { value: N }]) => N && N !== "").map(([N, { value: R, operator: ce }]) => ({
1881
1903
  key: N,
1882
1904
  value: R,
1883
- operator: le
1905
+ operator: ce
1884
1906
  // 根据实际需要调整操作符
1885
1907
  }));
1886
1908
  return {
@@ -1893,15 +1915,15 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1893
1915
  }]
1894
1916
  };
1895
1917
  }
1896
- const u = G(() => ({
1897
- x: S.value.length * 150 + 250
1918
+ const u = q(() => ({
1919
+ x: x.value.length * 150 + 250
1898
1920
  // 只设置横向滚动
1899
1921
  // 移除 y 属性,让表格高度自适应
1900
1922
  })), g = (v) => {
1901
- const N = Object.entries(v).filter(([, R]) => R.widget?.column).map(([R, le], P) => ({
1902
- title: le.widget.title,
1923
+ const N = Object.entries(v).filter(([, R]) => R.widget?.column).map(([R, ce], ve) => ({
1924
+ title: ce.widget.title,
1903
1925
  dataIndex: R.charAt(0).toLowerCase() + R.slice(1),
1904
- order: le.order,
1926
+ order: ce.order,
1905
1927
  ellipsis: !0,
1906
1928
  tooltip: !0,
1907
1929
  width: 150,
@@ -1909,7 +1931,7 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1909
1931
  // 启用最小宽度
1910
1932
  resizable: !0
1911
1933
  // 启用列宽调整
1912
- })).sort((R, le) => R.order - le.order);
1934
+ })).sort((R, ce) => R.order - ce.order);
1913
1935
  N.push({
1914
1936
  title: "Actions",
1915
1937
  slotName: "optional",
@@ -1918,37 +1940,37 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1918
1940
  minWidth: 200,
1919
1941
  fixed: "right",
1920
1942
  resizable: !1
1921
- }), S.value = N;
1922
- }, _ = m([]), S = m([]), f = m(!0), p = m(!0), V = m(), J = async () => {
1923
- p.value = !0;
1924
- const v = await It(s.className, r());
1925
- _.value = v.data, i.total = v.totalCount, p.value = !1;
1943
+ }), x.value = N;
1944
+ }, _ = m([]), x = m([]), p = m(!0), f = m(!0), b = m(), j = async () => {
1945
+ f.value = !0;
1946
+ const v = await Pt(s.className, r());
1947
+ _.value = v.data, i.total = v.totalCount, f.value = !1;
1926
1948
  }, ee = m(!1);
1927
1949
  ue(async () => {
1928
- f.value = !0;
1929
- const v = new Te().setPageActionType(fe.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
1930
- c.value = await v.getPageData(), g(c.value.fields), j(c.value.fields), L(), I(c.value?.tabs?.[0]?.key || ""), V.value = c.value.actions, f.value = !1, ee.value = !0;
1931
- }), dt(() => {
1932
- ee.value && J();
1950
+ p.value = !0;
1951
+ const v = new Pe().setPageActionType(fe.List).setClassName(s.className).setStore({ svrStore: a, bpmStore: e }).build();
1952
+ c.value = await v.getPageData(), g(c.value.fields), O(c.value.fields), L(), I(c.value?.tabs?.[0]?.key || ""), b.value = c.value.actions, p.value = !1, ee.value = !0;
1953
+ }), ft(() => {
1954
+ ee.value && j();
1933
1955
  });
1934
- const $ = (v) => {
1935
- i.current = v, J();
1936
- }, X = (v) => {
1937
- i.pageSize = v, J();
1956
+ const M = (v) => {
1957
+ i.current = v, j();
1958
+ }, Z = (v) => {
1959
+ i.pageSize = v, j();
1938
1960
  };
1939
- function oe(v, N, R, le, P) {
1961
+ function ae(v, N, R, ce, ve) {
1940
1962
  switch (v) {
1941
1963
  case Y.Link:
1942
- o.push({ name: R, params: { workflowId: P } });
1964
+ o.push({ name: R, params: { workflowId: ve } });
1943
1965
  break;
1944
1966
  default:
1945
1967
  console.warn("Unknown action type:", v);
1946
1968
  }
1947
1969
  }
1948
- function x(v, N, R) {
1970
+ function A(v, N, R) {
1949
1971
  switch (v) {
1950
1972
  case Y.Submit:
1951
- qt(N, { filters: [{ key: "approverList", value: b(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
1973
+ Yt(N, { filters: [{ key: "approverList", value: w(), operator: 2 }] }), l?.appContext.config.globalProperties.$notification.success("submit success!");
1952
1974
  break;
1953
1975
  case Y.Link:
1954
1976
  o.push({ name: R });
@@ -1957,61 +1979,61 @@ const Ro = /* @__PURE__ */ Q(ko, [["render", Lo], ["__scopeId", "data-v-180a216d
1957
1979
  console.warn("Unknown action type:", v);
1958
1980
  }
1959
1981
  }
1960
- function b() {
1982
+ function w() {
1961
1983
  return a()?.userInfo?.email_address ?? "";
1962
1984
  }
1963
- function h(v, N) {
1985
+ function C(v, N) {
1964
1986
  return typeof v != "string" || v.indexOf("{currentUserEmail}") === -1 ? v : v.replace(/{currentUserEmail}/g, N);
1965
1987
  }
1966
1988
  function I(v) {
1967
1989
  const N = c.value?.tabs?.find((R) => R.key === v)?.filters;
1968
1990
  i.filters = N?.map((R) => ({
1969
1991
  ...R,
1970
- value: h(R.value, b())
1971
- })) || [], i.current = 1, J();
1992
+ value: C(R.value, w())
1993
+ })) || [], i.current = 1, j();
1972
1994
  }
1973
- const A = m({}), U = m([]);
1974
- function j(v) {
1995
+ const V = m({}), B = m([]);
1996
+ function O(v) {
1975
1997
  if (!v) return [];
1976
- U.value = Object.entries(v).filter(([, N]) => N.isFiltered).map(([N, R]) => ({ fieldKey: N, fieldConfig: R }));
1998
+ B.value = Object.entries(v).filter(([, N]) => N.isFiltered).map(([N, R]) => ({ fieldKey: N, fieldConfig: R }));
1977
1999
  }
1978
2000
  const L = () => {
1979
2001
  const v = {};
1980
- U.value.forEach(({ fieldKey: N, fieldConfig: R }) => {
2002
+ B.value.forEach(({ fieldKey: N, fieldConfig: R }) => {
1981
2003
  v[N] = {}, v[N].value = R.modelValue, v[N].operator = R.operator;
1982
- }), A.value = v;
1983
- }, q = () => {
1984
- i.current = 1, J();
2004
+ }), V.value = v;
2005
+ }, Q = () => {
2006
+ i.current = 1, j();
1985
2007
  }, se = () => {
1986
- c.value && L(), q();
2008
+ c.value && L(), Q();
1987
2009
  };
1988
2010
  function ie(v, N) {
1989
2011
  return !(v.location !== "InTable" || v.title === "Update" && (N.status === 100 || N.status === -1));
1990
2012
  }
1991
- const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: _, _columns: S, loadingPage: f, loadingTable: p, actions: V, loadData: J, mounted: ee, pageChangeHandler: $, pageSizeChangeHandler: X, clickHandler: oe, createHandler: x, getApproverEmail: b, replaceEmail: h, tabHandler: I, searchForm: A, searchableFields: U, mapSearchableFields: j, initSearchForm: L, handleSearch: q, handleReset: se, judgeHiddenActions: ie, ActionButton: Se, DataWidgets: je, TopBar: Ie };
2013
+ const _e = { svrStore: a, bpmStore: e, router: o, instance: l, props: s, pageData: c, paging: i, createListParams: r, scroll: u, mapColumns: g, _data: _, _columns: x, loadingPage: p, loadingTable: f, actions: b, loadData: j, mounted: ee, pageChangeHandler: M, pageSizeChangeHandler: Z, clickHandler: ae, createHandler: A, getApproverEmail: w, replaceEmail: C, tabHandler: I, searchForm: V, searchableFields: B, mapSearchableFields: O, initSearchForm: L, handleSearch: Q, handleReset: se, judgeHiddenActions: ie, ActionButton: xe, DataWidgets: Oe, TopBar: Te };
1992
2014
  return Object.defineProperty(_e, "__isScriptSetup", { enumerable: !1, value: !0 }), _e;
1993
2015
  }
1994
- }), $o = { class: "list-container" }, Oo = { class: "query-title" };
1995
- function Mo(t, n, a, e, o, l) {
1996
- const s = C("a-space"), c = C("a-col"), i = C("a-button"), r = C("a-row"), u = C("a-card"), g = C("a-tab-pane"), _ = C("a-tabs"), S = C("a-table");
1997
- return d(), w("div", $o, [
1998
- B(e.TopBar, {
2016
+ }), $o = { class: "list-container" }, Mo = { class: "query-title" };
2017
+ function Eo(t, n, a, e, o, l) {
2018
+ const s = k("a-space"), c = k("a-col"), i = k("a-button"), r = k("a-row"), u = k("a-card"), g = k("a-tab-pane"), _ = k("a-tabs"), x = k("a-table");
2019
+ return d(), h("div", $o, [
2020
+ U(e.TopBar, {
1999
2021
  title: e.pageData?.banner.title ?? "",
2000
2022
  subTitle: e.pageData?.banner.subTitle ?? "",
2001
2023
  email: e.getApproverEmail()
2002
2024
  }, null, 8, ["title", "subTitle", "email"]),
2003
- B(u, null, {
2025
+ U(u, null, {
2004
2026
  default: y(() => [
2005
- k("div", Oo, [
2006
- n[0] || (n[0] = k("h3", null, "Search Conditions", -1)),
2007
- B(s, { size: "medium" }, {
2027
+ S("div", Mo, [
2028
+ n[0] || (n[0] = S("h3", null, "Search Conditions", -1)),
2029
+ U(s, { size: "medium" }, {
2008
2030
  default: y(() => [
2009
- (d(!0), w(O, null, W(e.actions, (f) => (d(), w(O, {
2010
- key: f.title
2031
+ (d(!0), h($, null, z(e.actions, (p) => (d(), h($, {
2032
+ key: p.title
2011
2033
  }, [
2012
- f.location === "InOperation" ? (d(), F(e.ActionButton, {
2034
+ p.location === "InOperation" ? (d(), D(e.ActionButton, {
2013
2035
  key: 0,
2014
- config: f,
2036
+ config: p,
2015
2037
  onClick: e.createHandler
2016
2038
  }, null, 8, ["config"])) : ne("", !0)
2017
2039
  ], 64))), 128))
@@ -2019,48 +2041,48 @@ function Mo(t, n, a, e, o, l) {
2019
2041
  _: 1
2020
2042
  })
2021
2043
  ]),
2022
- B(r, { gutter: [24, 20] }, {
2044
+ U(r, { gutter: [24, 20] }, {
2023
2045
  default: y(() => [
2024
- (d(!0), w(O, null, W(e.searchableFields, (f) => (d(), F(c, {
2025
- key: f.fieldKey,
2046
+ (d(!0), h($, null, z(e.searchableFields, (p) => (d(), D(c, {
2047
+ key: p.fieldKey,
2026
2048
  span: 6,
2027
2049
  class: "search-col"
2028
2050
  }, {
2029
2051
  default: y(() => [
2030
- B(e.DataWidgets, {
2031
- name: f.fieldKey,
2032
- config: f.fieldConfig,
2033
- modelValue: e.searchForm[f.fieldKey].value,
2034
- "onUpdate:modelValue": (p) => e.searchForm[f.fieldKey].value = p,
2052
+ U(e.DataWidgets, {
2053
+ name: p.fieldKey,
2054
+ config: p.fieldConfig,
2055
+ modelValue: e.searchForm[p.fieldKey].value,
2056
+ "onUpdate:modelValue": (f) => e.searchForm[p.fieldKey].value = f,
2035
2057
  class: "form-field"
2036
2058
  }, null, 8, ["name", "config", "modelValue", "onUpdate:modelValue"])
2037
2059
  ]),
2038
2060
  _: 2
2039
2061
  }, 1024))), 128)),
2040
- B(c, {
2062
+ U(c, {
2041
2063
  span: 6,
2042
2064
  class: "search-col form-buttons"
2043
2065
  }, {
2044
2066
  default: y(() => [
2045
- B(s, { size: "medium" }, {
2067
+ U(s, { size: "medium" }, {
2046
2068
  default: y(() => [
2047
- B(i, {
2069
+ U(i, {
2048
2070
  type: "primary",
2049
2071
  size: "medium",
2050
2072
  onClick: e.handleSearch
2051
2073
  }, {
2052
2074
  default: y(() => n[1] || (n[1] = [
2053
- re(" Search ", -1)
2075
+ oe(" Search ", -1)
2054
2076
  ])),
2055
2077
  _: 1,
2056
2078
  __: [1]
2057
2079
  }),
2058
- B(i, {
2080
+ U(i, {
2059
2081
  size: "medium",
2060
2082
  onClick: e.handleReset
2061
2083
  }, {
2062
2084
  default: y(() => n[2] || (n[2] = [
2063
- re(" Reset ", -1)
2085
+ oe(" Reset ", -1)
2064
2086
  ])),
2065
2087
  _: 1,
2066
2088
  __: [2]
@@ -2077,19 +2099,19 @@ function Mo(t, n, a, e, o, l) {
2077
2099
  ]),
2078
2100
  _: 1
2079
2101
  }),
2080
- B(_, {
2102
+ U(_, {
2081
2103
  size: "large",
2082
2104
  onTabClick: e.tabHandler
2083
2105
  }, {
2084
2106
  default: y(() => [
2085
- (d(!0), w(O, null, W(e.pageData?.tabs, (f) => (d(), F(g, {
2086
- key: f.key,
2087
- title: f.title
2107
+ (d(!0), h($, null, z(e.pageData?.tabs, (p) => (d(), D(g, {
2108
+ key: p.key,
2109
+ title: p.title
2088
2110
  }, null, 8, ["title"]))), 128))
2089
2111
  ]),
2090
2112
  _: 1
2091
2113
  }),
2092
- B(S, {
2114
+ U(x, {
2093
2115
  columns: e._columns,
2094
2116
  data: e._data,
2095
2117
  stripe: "",
@@ -2108,17 +2130,17 @@ function Mo(t, n, a, e, o, l) {
2108
2130
  onPageChange: e.pageChangeHandler,
2109
2131
  onPageSizeChange: e.pageSizeChangeHandler
2110
2132
  }, {
2111
- optional: y(({ record: f }) => [
2112
- B(s, { size: "small" }, {
2133
+ optional: y(({ record: p }) => [
2134
+ U(s, { size: "small" }, {
2113
2135
  default: y(() => [
2114
- (d(!0), w(O, null, W(e.actions, (p) => (d(), w(O, {
2115
- key: p.title
2136
+ (d(!0), h($, null, z(e.actions, (f) => (d(), h($, {
2137
+ key: f.title
2116
2138
  }, [
2117
- e.judgeHiddenActions(p, f) ? (d(), F(e.ActionButton, {
2139
+ e.judgeHiddenActions(f, p) ? (d(), D(e.ActionButton, {
2118
2140
  key: 0,
2119
- config: p,
2141
+ config: f,
2120
2142
  size: "small",
2121
- onClick: (...V) => e.clickHandler(...V, f.workflowId)
2143
+ onClick: (...b) => e.clickHandler(...b, p.workflowId)
2122
2144
  }, null, 8, ["config", "onClick"])) : ne("", !0)
2123
2145
  ], 64))), 128))
2124
2146
  ]),
@@ -2129,9 +2151,9 @@ function Mo(t, n, a, e, o, l) {
2129
2151
  }, 8, ["columns", "data", "pagination", "loading", "scroll"])
2130
2152
  ]);
2131
2153
  }
2132
- const Eo = /* @__PURE__ */ Q(jo, [["render", Mo], ["__scopeId", "data-v-639f4f42"], ["__file", "ListView.vue"]]), Yo = {
2154
+ const zo = /* @__PURE__ */ J(Oo, [["render", Eo], ["__scopeId", "data-v-639f4f42"], ["__file", "ListView.vue"]]), Yo = {
2133
2155
  install(t, n = {}) {
2134
- n.config && ht(n.config), n.router && t.provide(ot, n.router), n.pinia && t.provide(On, n.pinia), n.useBpmStore && t.provide(rt, n.useBpmStore), n.useSvrStore && t.provide(st, n.useSvrStore), n.triggers && t.provide(at, n.triggers), n.customComps && t.provide(it, n.customComps), t.component("CreateView", io), t.component("UpdateView", yo), t.component("DetailView", Ro), t.component("ListView", Eo);
2156
+ n.config && wt(n.config), n.router && t.provide(rt, n.router), n.pinia && t.provide(Mn, n.pinia), n.useBpmStore && t.provide(it, n.useBpmStore), n.useSvrStore && t.provide(lt, n.useSvrStore), n.triggers && t.provide(st, n.triggers), n.customComps && t.provide(ct, n.customComps), t.component("CreateView", lo), t.component("UpdateView", wo), t.component("DetailView", jo), t.component("ListView", zo);
2135
2157
  }
2136
2158
  };
2137
2159
  export {