PageSourceSearch

https://asketch.ai/_nuxt/DlyvmAlQ.js

js asketch.ai collected 2026-10-05 11:52:25 UTC 67,332 bytes, 1,719 lines download raw bytes

1import { m as C, d1 as $e, cg as Me, dE as De, d5 as Be, cV as Ve, dn as Fe, cR as je, di as We, dB as qe, dC as Ke, dj as Ye, cS as He, dk as Ge, fT as Je, dF as Xe, cq as b, __tla as __tla_0 } from "./D9BjAukf.js";
2import { i as Z, __tla as __tla_1 } from "./CevamKTt.js";
3import { C as Qe, T as Ze } from "./D9kWfWpX.js";
4import { g as et, __tla as __tla_2 } from "./C8YOVL51.js";
5import { g as tt, __tla as __tla_3 } from "./DqfEaorF.js";
6import { __tla as __tla_4 } from "./DJ8WZ0_y.js";
7import { S as at, __tla as __tla_5 } from "./DTHlv_UL.js";
8import { _ as lt, __tla as __tla_6 } from "./-JoaR9qC.js";
9import { _ as nt, __tla as __tla_7 } from "./Ck92sr5C.js";
10let jt;
11let __tla = Promise.all([
12  (() => {
13    try {
14      return __tla_0;
15    } catch {
16    }
17  })(),
18  (() => {
19    try {
20      return __tla_1;
21    } catch {
22    }
23  })(),
24  (() => {
25    try {
26      return __tla_2;
27    } catch {
28    }
29  })(),
30  (() => {
31    try {
32      return __tla_3;
33    } catch {
34    }
35  })(),
36  (() => {
37    try {
38      return __tla_4;
39    } catch {
40    }
41  })(),
42  (() => {
43    try {
44      return __tla_5;
45    } catch {
46    }
47  })(),
48  (() => {
49    try {
50      return __tla_6;
51    } catch {
52    }
53  })(),
54  (() => {
55    try {
56      return __tla_7;
57    } catch {
58    }
59  })()
60]).then(async () => {
61  let Q, it, ot, st, _t, pt, ct, dt, rt, ut, gt, mt, ft, A, Ft, n, g, i, l, I, P, p, w, E, u, h, ce, vt, yt, bt, kt, ht, wt, xt, Ct, St, It, Et, Ut, r, de, Tt, Rt, Ot, zt;
62  Q = [
63    {
64      label: "\u7CFB\u7EDF",
65      value: "SYSTEM"
66    },
67    {
68      label: "\u8D22\u52A1",
69      value: "FINANCE"
70    },
71    {
72      label: "\u5BA1\u6838",
73      value: "AUDIT"
74    },
75    {
76      label: "\u4E92\u52A8",
77      value: "INTERACTION"
78    },
79    {
80      label: "\u8FD0\u7EF4",
81      value: "OPS"
82    }
83  ];
84  it = [
85    {
86      label: "\u6307\u5B9A\u4F1A\u8BDD",
87      value: "specified"
88    },
89    {
90      label: "\u5168\u90E8\u6620\u5C04\u4F1A\u8BDD",
91      value: "all_mapped_users"
92    },
93    {
94      label: "\u5F53\u4E8B\u7528\u6237\u4F1A\u8BDD",
95      value: "receiver"
96    }
97  ];
98  ot = [
99    {
100      label: "\u7CFB\u7EDF",
101      value: "system"
102    },
103    {
104      label: "\u81EA\u5B9A\u4E49",
105      value: "custom"
106    }
107  ];
108  st = [
109    {
110      label: "\u7CFB\u7EDF\u516C\u544A",
111      value: "SYSTEM_NOTICE"
112    },
113    {
114      label: "\u4F5C\u54C1\u53D1\u5E03\u7533\u8BF7",
115      value: "WORK_AUDIT_APPLY"
116    },
117    {
118      label: "\u4F5C\u54C1\u5BA1\u6838\u901A\u8FC7",
119      value: "WORK_AUDIT_PASS"
120    },
121    {
122      label: "\u4F5C\u54C1\u5BA1\u6838\u9A73\u56DE",
123      value: "WORK_AUDIT_REJECT"
124    },
125    {
126      label: "\u63D0\u73B0\u6210\u529F",
127      value: "WITHDRAWAL_SUCCESS"
128    },
129    {
130      label: "\u63D0\u73B0\u5931\u8D25",
131      value: "WITHDRAWAL_FAILED"
132    },
133    {
134      label: "\u652F\u4ED8\u6210\u529F",
135      value: "PAYMENT_SUCCESS"
136    },
137    {
138      label: "\u4F59\u989D\u4E0D\u8DB3\u63D0\u9192",
139      value: "BALANCE_LOW"
140    },
141    {
142      label: "\u56DE\u590D\u6211\u7684",
143      value: "COMMENT_REPLY"
144    },
145    {
146      label: "\u6A21\u578B\u8FD4\u56FE",
147      value: "MODEL_RETURN"
148    },
149    {
150      label: "\u6536\u5230\u7684\u8D5E",
151      value: "LIKE_RECEIVED"
152    },
153    {
154      label: "\u6536\u5230\u7684\u6536\u85CF",
155      value: "FAVORITE_RECEIVED"
156    },
157    {
158      label: "\u5173\u6CE8\u6211\u7684",
159      value: "USER_FOLLOW"
160    }
161  ];
162  _t = [
163    {
164      label: "\u7BA1\u7406\u5458",
165      value: "admin"
166    },
167    {
168      label: "\u8FD0\u8425",
169      value: "manager"
170    },
171    {
172      label: "\u64CD\u4F5C\u5458",
173      value: "operator"
174    }
175  ];
176  pt = async (c) => {
177    const v = new URLSearchParams();
178    return (c == null ? void 0 : c.page) != null && v.set("page", String(c.page)), (c == null ? void 0 : c.pageSize) != null && v.set("pageSize", String(c.pageSize)), (c == null ? void 0 : c.event_category) && v.set("event_category", c.event_category), (c == null ? void 0 : c.event_type) && v.set("event_type", c.event_type), (c == null ? void 0 : c.enabled) && c.enabled !== "all" && v.set("enabled", c.enabled), (c == null ? void 0 : c.rule_type) && c.rule_type !== "all" && v.set("rule_type", c.rule_type), C(`/ops/event-notifications?${v.toString()}`);
179  };
180  ct = async (c) => C(`/ops/event-notifications/${c}`);
181  dt = async (c) => C("/ops/event-notifications", {
182    method: "POST",
183    body: c
184  });
185  rt = async (c, v) => C(`/ops/event-notifications/${c}`, {
186    method: "PUT",
187    body: v
188  });
189  ut = async (c) => C(`/ops/event-notifications/${c}`, {
190    method: "DELETE"
191  });
192  gt = async (c, v) => C(`/ops/event-notifications/${c}/toggle`, {
193    method: "PATCH",
194    body: {
195      enabled: v
196    }
197  });
198  mt = async (c) => C("/ops/event-notifications/test", {
199    method: "POST",
200    body: c
201  });
202  ({ defineComponent: ft } = await Z("vue"));
203  ({ createElementVNode: A, resolveComponent: Ft, createVNode: n, createTextVNode: g, withCtx: i, unref: l, isRef: I, toDisplayString: P, openBlock: p, createBlock: w, createCommentVNode: E, createElementBlock: u, Fragment: h, renderList: ce }
203 = await Z("vue"));
204  vt = {
205    class: "max-w-[1400px] mx-auto p-4"
206  };
207  yt = {
208    class: "flex items-center justify-between mb-4"
209  };
210  bt = {
211    class: "flex items-center gap-2"
212  };
213  kt = {
214    class: "flex flex-wrap gap-2 mb-4"
215  };
216  ht = {
217    key: 1,
218    class: "text-gray-400"
219  };
220  wt = {
221    key: 1,
222    class: "text-gray-400"
223  };
224  xt = {
225    key: 1,
226    class: "text-gray-400"
227  };
228  Ct = {
229    key: 1,
230    class: "text-gray-400"
231  };
232  St = {
233    key: 1,
234    class: "text-gray-400"
235  };
236  It = {
237    key: 8
238  };
239  Et = {
240    key: 9,
241    class: "flex items-center justify-center gap-1 flex-wrap"
242  };
243  Ut = {
244    class: "flex items-center justify-between mb-2 mt-3"
245  };
246  ({ ref: r, onMounted: de, watch: Tt, reactive: Rt, computed: Ot } = await Z("vue"));
247  zt = ft({
248    __name: "eventNotificationConfig",
249    setup(c) {
250      const v = r(false), ee = r([]), te = r(0), F = r(1), U = r(20), L = r(void 0), $ = r("all"), M = r("all"), T = async () => {
251        v.value = true;
252        try {
253          const o = await pt({
254            page: F.value,
255            pageSize: U.value,
256            event_category: L.value,
257            enabled: $.value,
258            rule_type: M.value
259          });
260          o && (ee.value = o.list, te.value = o.total);
261        } finally {
262          v.value = false;
263        }
264      };
265      de(T), Tt([
266        F,
267        U,
268        L,
269        $,
270        M
271      ], T);
272      const re = (o) => {
273        const e = Number((o == null ? void 0 : o.current) || 1), s = Number((o == null ? void 0 : o.pageSize) || U.value), y = s !== U.value;
274        U.value = s, F.value = y ? 1 : e;
275      }, D = r([]), ue = async () => {
276        try {
277          const o = await et({
278            enabled: "true",
279            limit: 100
280          });
281          (o == null ? void 0 : o.items) && (D.value = o.items);
282        } catch {
283        }
284      }, ae = r([]), K = r([]), ge = async () => {
285        try {
286          const o = await C("/im-sessions/distinct-groups");
287          o && (ae.value = o);
288        } catch {
289        }
290      }, me = async (o) => {
291        try {
292          const e = o ? `?channel_id=${encodeURIComponent(o)}` : "", s = await C(`/im-user-mappings/pushable-users${e}`);
293          s && (K.value = s);
294        } catch {
295        }
296      }, fe = (o) => {
297        var _a;
298        const e = (_a = o.channel_id) == null ? void 0 : _a.trim();
299        return o.target_type === "group" ? ae.value.filter((s) => !e || s.channel_id === e).map((s) => ({
300          label: s.group_id,
301          value: s.group_id
302        })) : K.value.filter((s) => !e || s.channel_id == null || String(s.channel_id) === e).map((s) => ({
303          label: s.display_name ? `${s.display_name} (${s.platform_user_id})` : s.platform_user_id,
304          value: s.platform_user_id
305        }));
306      }, ve = () => {
307        const o = (a.im_config.channel_ids || []).map((e) => String(e).trim()).filter(Boolean);
308        return K.value.filter((e) => o.length === 0 || e.channel_id != null && o.includes(String(e.channel_id))).map((e) => ({
309          label: e.display_name ? `${e.display_name} (${e.platform_user_id})` : e.platform_user_id,
310          value: e.platform_user_id
311        }));
312      }, R = r(false), Y = r(false), S = r(false), H = r(""), j = r("basic"), le = {
313        enabled: false,
314        targets: [],
315        channel_ids: [],
316        private_chat_policy: void 0,
317        private_target_ids: [],
318        use_dynamic_recipient: false
319      }, ne = {
320        enabled: false,
321        recipients: [],
322        use_dynamic_recipient: false
323      }, ie = {
324        enabled: false,
325        recipients: [],
326        content_template: "EasyAI {event_label}:{title}",
327        use_dynamic_recipient: false
328      }, oe = {
329        enabled: false,
330        receiver_roles: []
331      }, se = {
332        enabled: false,
333        category: "exception",
334        priority: "high"
335      }, O = r(""), z = r(""), a = Rt({
336        event_type: "",
337        event_label: "",
338        event_category: "OPS",
339        description: "",
340        enabled: true,
341        im_config: {
342          ...le,
343          targets: []
344        },
345        email_config: {
346          ...ne,
347          recipients: []
348        },
349        sms_config: {
350          ...ie,
351          recipients: []
352        },
353        in_app_config: {
354          ...oe
355        },
356        governance_task_config: {
357          ...se
358        }
359      }), ye = () => {
360        a.event_type = "", a.event_label = "", a.event_category = "OPS", a.description = "", a.enabled = true, a.im_config = {
361          ...le,
362          targets: []
363        }, a.email_config = {
364          ...ne,
365          recipients: []
366        }, a.sms_config = {
367          ...ie,
368          recipients: []
369        }, a.in_app_config = {
370          ...oe,
371          receiver_roles: []
372        }, a.governance_task_config = {
373          ...se
374        }, O.value = "", z.value = "", j.value = "basic";
375      }, be = () => {
376        ye(), S.value = false, H.value = "", R.value = true;
377      }, ke = async (o) => {
378        var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u, _v, _w, _x, _y;
379        S.value = true, H.value = o._id;
380        const e = await ct(o._id);
381        a.event_type = e.event_type, a.event_label = e.event_label, a.event_category = e.event_category, a.description = e.description || "", a.enabled = e.enabled, a.im_config = {
382          enabled: ((_a = e.im_config) == null ? void 0 : _a.enabled) ?? false,
383          targets: (((_b = e.im_config) == null ? void 0 : _b.targets) || []).map((s) => ({
384            channel_id: s.channel_id || "",
385            target_type: s.target_type,
386            target_id: s.target_id || "",
387            bot_id: s.bot_id
388          })),
389          content_type: (_c = e.im_config) == null ? void 0 : _c.content_type,
390          template: (_d = e.im_config) == null ? void 0 : _d.template,
391          channel_ids: [
392            ...((_e = e.im_config) == null ? void 0 : _e.channel_ids) || []
393          ],
394          private_chat_policy: (_f = e.im_config) == null ? void 0 : _f.private_chat_policy,
395          private_target_ids: [
396            ...((_g = e.im_config) == null ? void 0 : _g.private_target_ids) || []
397          ],
398          use_dynamic_recipient: ((_h = e.im_config) == null ? void 0 : _h.use_dynamic_recipient) ?? false
399        }, a.email_config = {
400          enabled: ((_i = e.email_config) == null ? void 0 : _i.enabled) ?? false,
401          recipients: [
402            ...((_j = e.email_config) == null ? void 0 : _j.recipients) || []
403          ],
404          subject_template: (_k = e.email_config) == null ? void 0 : _k.subject_template,
405          body_template: (_l = e.email_config) == null ? void 0 : _l.body_template,
406          use_dynamic_recipient: ((_m = e.email_config) == null ? void 0 : _m.use_dynamic_recipient) ?? false
407        }, O.value = (((_n = e.email_config) == null ? void 0 : _n.recipients) || []).join(", "), a.sms_config = {
408          enabled: ((_o = e.sms_config) == null ? void 0 : _o.enabled) ?? false,
409          recipients: [
410            ...((_p = e.sms_config) == null ? void 0 : _p.recipients) || []
411          ],
412          content_template: ((_q = e.sms_config) == null ? void 0 : _q.content_template) ?? "EasyAI {event_label}:{title}",
413          use_dynamic_recipient: ((_r = e.sms_config) == null ? void 0 : _r.use_dynamic_recipient) ?? false
414        }, z.value = (((_s = e.sms_config) == null ? void 0 : _s.recipients) || []).join(", "), a.in_app_config = {
415          enabled: ((_t2 = e.in_app_config) == null ? void 0 : _t2.enabled) ?? false,
416          receiver_roles: ((_u = e.in_app_config) == null ? void 0 : _u.receiver_roles) || [],
417          biz_type: (_v = e.in_app_config) == null ? void 0 : _v.biz_type
418        }, a.governance_task_config = {
419          enabled: ((_w = e.governance_task_config) == null ? void 0 : _w.enabled) ?? false,
420          category: ((_x = e.governance_task_config) == null ? void 0 : _x.category) || "exception",
421          priority: ((_y = e.governance_task_config) == null ? void 0 : _y.priority) || "high"
422        }, R.value = true;
423      }, he = () => {
424        var _a;
425        const o = ((_a = D.value[0]) == null ? void 0 : _a._id) || "";
426        a.im_config.targets.push({
427          channel_id: o,
428          target_type: "group",
429          target_id: ""
430        });
431      }, we = (o) => {
432        a.im_config.targets.splice(o, 1);
433      }, B = r(false), G = r([]), W = r([]), xe = async () => {
434        B.value = true, W.value = [];
435        const o = await tt({
436          limit: 100
437        });
438        G.value = (o == null ? void 0 : o.items) || [];
439      }, Ce = (o) => {
440        W.value = o.map((e) => String(e));
441      }, Se = () => {
442        var _a;
443        const o = G.value.filter((e) => W.value.includes(e._id));
444        for (const e of o) {
445          const s = e.channel_id || ((_a = D.value[0]) == null ? void 0 : _a._id) || "", y = e.chat_type === "group" ? "group" : "user", m = y === "group" ? e.chat_id : e.platform_user_id || "";
446          !m && y === "user" || a.im_config.targets.some((k) => k.channel_id === s && k.target_type === y && k.target_id === m) || a.im_config.targets.push({
447            channel_id: s,
448            target_type: y,
449            target_id: m
450          });
451        }
452        B.value = false;
453      }, Ie = async () => {
454        var _a, _b, _c;
455        if (!a.event_label.trim()) {
456          b({
457            type: "warning",
458            message: "\u8BF7\u586B\u5199\u4E8B\u4EF6\u540D\u79F0"
459          });
460          return;
461        }
462        if (!S.value && !a.event_type.trim()) {
463          b({
464            type: "warning",
465            message: "\u8BF7\u586B\u5199\u4E8B\u4EF6\u7C7B\u578B"
466          });
467          return;
468        }
469        if (a.im_config.enabled && a.im_config.private_chat_policy === "specified" && !(((_a = a.im_config.channel_ids) == null ? void 0 : _a.length) && ((_b = a.im_config.private_target_ids) == null ? void 0 : _b.length))) {
470          b({
471            type: "warning",
472            message: "IM \u5355\u804A\u7B56\u7565\u4E3A\u6307\u5B9A\u4F1A\u8BDD\u65F6\uFF0C\u8BF7\u9009\u62E9\u673A\u5668\u4EBA\u6E20\u9053\u548C\u4F1A\u8BDD\u7528\u6237"
473          });
474          return;
475        }
476        if (a.im_config.enabled && a.im_config.private_chat_policy === "all_mapped_users" && !((_c = a.im_config.channel_ids) == null ? void 0 : _c.length)) {
477          b({
478            type: "warning",
479            message: "IM \u5355\u804A\u7B56\u7565\u4E3A\u5168\u90E8\u6620\u5C04\u4F1A\u8BDD\u65F6\uFF0C\u8BF7\u5148\u9009\u62E9\u673A\u5668\u4EBA\u6E20\u9053"
480          });
481          return;
482        }
483        Y.value = true;
484        try {
485          const o = {
486            event_type: a.event_type,
487            event_label: a.event_label,
488            event_category: a.event_category,
489            description: a.description || void 0,
490            enabled: a.enabled,
491            im_config: {
492              ...a.im_config,
493              channel_ids: (a.im_config.channel_ids || []).map((e) => String(e).trim()).filter(Boolean),
494              private_target_ids: (a.im_config.private_target_ids || []).map((e) => String(e).trim()).filter(Boolean),
495              targets: a.im_config.targets.filter((e) => {
496                var _a2, _b2;
497                return ((_a2 = e.channel_id) == null ? void 0 : _a2.trim()) && ((_b2 = e.target_id) == null ? void 0 : _b2.trim());
498              })
499            },
500            email_config: {
501              ...a.email_config,
502              recipients: O.value.split(/[,,]/).map((e) => e.trim()).filter(Boolean)
503            },
504            sms_config: {
505              ...a.sms_config,
506              recipients: z.value.split(/[,,;\s]/).map((e) => e.trim()).filter((e) => e.length >= 11)
507            },
508            in_app_config: {
509              ...a.in_app_config,
510              receiver_roles: a.in_app_config.receiver_roles || []
511            },
512            governance_task_config: a.governance_task_config
513          };
514          S.value ? (await rt(H.value, o), b({
515            type: "success",
516            message: "\u5DF2\u66F4\u65B0"
517          })) : (await dt(o), b({
518            type: "success",
519            message: "\u5DF2\u521B\u5EFA"
520          })), R.value = false, T();
521        } catch (o) {
522          b({
523            type: "error",
524            message: (o == null ? void 0 : o.message) || "\u64CD\u4F5C\u5931\u8D25"
525          });
526        } finally {
527          Y.value = false;
528        }
529      }, Ee = async (o) => {
530        try {
531          await gt(o._id, !o.enabled), b({
532            type: "success",
533            message: o.enabled ? "\u5DF2\u7981\u7528" : "\u5DF2\u542F\u7528"
534          }), T();
535        } catch (e) {
536          b({
537            type: "error",
538            message: (e == null ? void 0 : e.message) || "\u64CD\u4F5C\u5931\u8D25"
539          });
540        }
541      }, Ue = async (o) => {
542        try {
543          await ut(o), b({
544            type: "success",
545            message: "\u5DF2\u5220\u9664"
546          }), T();
547        } catch (e) {
548          b({
549            type: "error",
550            message: (e == null ? void 0 : e.message) || "\u5220\u9664\u5931\u8D25"
551          });
552        }
553      }, J = r(null), Te = async (o) => {
554        J.value = o._id;
555        try {
556          const e = await mt({
557            event_type: o.event_type,
558            title: `\u6D4B\u8BD5\uFF1A${o.event_label}`,
559            message: "\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u901A\u77E5\u6D88\u606F"
560          });
561          (e == null ? void 0 : e.success) ? b({
562            type: "success",
563            message: e.message || "\u6D4B\u8BD5\u6210\u529F"
564          }) : b({
565            type: "error",
566            message: (e == null ? void 0 : e.message) || "\u6D4B\u8BD5\u5931\u8D25"
567          });
568        } catch (e) {
569          b({
570            type: "error",
571            message: (e == null ? void 0 : e.message) || "\u53D1\u9001\u5931\u8D25"
572          });
573        } finally {
574          J.value = null;
575        }
576      };
577      de(() => {
578        ue(), ge(), me();
579      });
580      const Re = Object.fromEntries(Q.map((o) => [
581        o.value,
582        o.label
583      ])), Oe = Ot(() => [
584        {
585          title: "\u4E8B\u4EF6\u7C7B\u578B",
586          dataIndex: "event_type",
587          key: "event_type",
588          width: 160,
589          ellipsis: true
590        },
591        {
592          title: "\u4E8B\u4EF6\u540D\u79F0",
593          dataIndex: "event_label",
594          key: "event_label",
595          width: 120
596        },
597        {
598          title: "\u6765\u6E90",
599          dataIndex: "rule_type",
600          key: "rule_type",
601          width: 70,
602          align: "center"
603        },
604        {
605          title: "\u5206\u7C7B",
606          dataIndex: "event_category",
607          key: "event_category",
608          width: 80
609        },
610        {
611          title: "\u72B6\u6001",
612          dataIndex: "enabled",
613          key: "enabled",
614          width: 70,
615          align: "center"
616        },
617        {
618          title: "IM",
619          key: "im",
620          width: 60,
621          align: "center"
622        },
623        {
624          title: "\u90AE\u4EF6",
625          key: "email",
626          width: 60,
627          align: "center"
628        },
629        {
630          title: "\u77ED\u4FE1",
631          key: "sms",
632          width: 60,
633          align: "center"
634        },
635        {
636          title: "\u7AD9\u5185",
637          key: "in_app",
638          width: 60,
639          align: "center"
640        },
641        {
642          title: "\u6CBB\u7406",
643          key: "governance_task",
644          width: 60,
645          align: "center"
646        },
647        {
648          title: "\u66F4\u65B0\u65F6\u95F4",
649          dataIndex: "updated_at",
650          key: "updated_at",
651          width: 170
652        },
653        {
654          title: "\u64CD\u4F5C",
655          key: "action",
656          width: 220,
657          align: "center",
658          fixed: "right"
659        }
660      ]);
661      return (o, e) => {
662        const s = Me, y = $e, m = De, k = Ve, ze = lt, _e = Be, V = He, d = Ye, q = Ge, x = Je, N = Ke, Ne = at, X = Xe, Ae = qe, Pe = We, pe = je;
663        return p(), u("div", vt, [
664          A("div", yt, [
665            e[34] || (e[34] = A("h2", {
666              class: "text-lg font-semibold"
667            }, " \u4E8B\u4EF6\u901A\u77E5\u914D\u7F6E ", -1)),
668            A("div", bt, [
669              n(y, {
670                type: "primary",
671                onClick: be
672              }, {
673                icon: i(() => [
674                  n(s, {
675                    name: "ant-design:plus-outlined"
676                  })
677                ]),
678                default: i(() => [
679                  e[32] || (e[32] = g(" \u65B0\u589E\u89C4\u5219 ", -1))
680                ]),
681                _: 1
682              }),
683              n(y, {
684                loading: l(v),
685                onClick: T
686              }, {
687                icon: i(() => [
688                  n(s, {
689                    name: "ant-design:reload-outlined"
690                  })
691                ]),
692                default: i(() => [
693                  e[33] || (e[33] = g(" \u5237\u65B0 ", -1))
694                ]),
695                _: 1
696              }, 8, [
697                "loading"
698              ])
699            ])
700          ]),
701          A("div", kt, [
702            n(m, {
703              value: l(L),
704              "onUpdate:value": e[0] || (e[0] = (t) => I(L) ? L.value = t : null),
705              placeholder: "\u4E8B\u4EF6\u5206\u7C7B",
706              "allow-clear": "",
707              style: {
708                width: "120px"
709              },
710              options: l(Q).map((t) => ({
711                label: t.label,
712                value: t.value
713              }))
714            }, null, 8, [
715              "value",
716              "options"
717            ]),
718            n(m, {
719              value: l(M),
720              "onUpdate:value": e[1] || (e[1] = (t) => I(M) ? M.value = t : null),
721              placeholder: "\u89C4\u5219\u6765\u6E90",
722              style: {
723                width: "100px"
724              },
725              options: [
726                {
727                  label: "\u5168\u90E8",
728                  value: "all"
729                },
730                ...l(ot).map((t) => ({
731                  label: t.label,
732                  value: t.value
733                }))
734              ]
735            }, null, 8, [
736              "value",
737              "options"
738            ]),
739            n(m, {
740              value: l($),
741              "onUpdate:value": e[2] || (e[2] = (t) => I($) ? $.value = t : null),
742              placeholder: "\u542F\u7528\u72B6\u6001",
743              style: {
744                width: "110px"
745              },
746              options: [
747                {
748                  label: "\u5168\u90E8",
749                  value: "all"
750                },
751                {
752                  label: "\u5DF2\u542F\u7528",
753                  value: "true"
754                },
755                {
756                  label: "\u5DF2\u7981\u7528",
757                  value: "false"
758                }
759              ]
760            }, null, 8, [
761              "value"
762            ])
763          ]),
764          n(_e, {
765            class: "event-notification-table text-sm",
766            columns: l(Oe),
767            "data-source": l(ee),
768            "row-key": (t) => t._id,
769            loading: l(v),
770            scroll: {
771              x: 1100
772            },
773            size: "small",
774            bordered: "",
775            pagination: {
776              current: l(F),
777              pageSize: l(U),
778              total: l(te),
779              showSizeChanger: true,
780              showTotal: (t) => `\u5171 ${t} \u6761`
781            },
782            onChange: re
783          }, {
784            bodyCell: i(({ column: t, record: _ }) => {
785              var _a, _b, _c, _d, _e2, _f, _g, _h;
786              return [
787                t.key === "rule_type" ? (p(), w(k, {
788                  key: 0,
789                  color: _.rule_type === "system" ? "blue" : "default"
790                }, {
791                  default: i(() => [
792                    g(P(_.rule_type === "system" ? "\u7CFB\u7EDF" : "\u81EA\u5B9A\u4E49"), 1)
793                  ]),
794                  _: 2
795                }, 1032, [
796                  "color"
797                ])) : t.key === "event_category" ? (p(), w(k, {
798                  key: 1
799                }, {
800                  default: i(() => [
801                    g(P(l(Re)[_.event_category] || _.event_category), 1)
802                  ]),
803                  _: 2
804                }, 1024)) : t.key === "enabled" ? (p(), w(k, {
805                  key: 2,
806                  color: _.enabled ? "green" : "gold"
807                }, {
808                  default: i(() => [
809                    g(P(_.enabled ? "\u542F\u7528" : "\u7981\u7528"), 1)
810                  ]),
811                  _: 2
812                }, 1032, [
813                  "color"
814                ])) : t.key === "im" ? (p(), u(h, {
815                  key: 3
816                }, [
817                  ((_a = _.im_config) == null ? void 0 : _a.enabled) && (((_b = _.im_config.targets) == null ? void 0 : _b.length) || _.im_config.use_dynamic_recipient || _.im_config.private_chat_policy) ? (p(), w(k, {
818                    key: 0,
819                    color: "blue"
820                  }, {
821                    default: i(() => [
822                      ...e[35] || (e[35] = [
823                        g(" \u5F00 ", -1)
824                      ])
825                    ]),
826                    _: 1
827                  })) : (p(), u("span", ht, "-"))
828                ], 64)) : t.key === "email" ? (p(), u(h, {
829                  key: 4
830                }, [
831                  ((_c = _.email_config) == null ? void 0 : _c.enabled) && (((_d = _.email_config.recipients) == null ? void 0 : _d.length) || _.email_config.use_dynamic_recipient) ? (p(), w(k, {
832                    key: 0,
833                    color: "orange"
834                  }, {
835                    default: i(() => [
836                      ...e[36] || (e[36] = [
837                        g(" \u5F00 ", -1)
838                      ])
839                    ]),
840                    _: 1
841                  })) : (p(), u("span", wt, "-"))
842                ], 64)) : t.key === "sms" ? (p(), u(h, {
843                  key: 5
844                }, [
845                  ((_e2 = _.sms_config) == null ? void 0 : _e2.enabled) && (((_f = _.sms_config.recipients) == null ? void 0 : _f.length) || _.sms_config.use_dynamic_recipient) ? (p(), w(k, {
846                    key: 0,
847                    color: "green"
848                  }, {
849                    default: i(() => [
850                      ...e[37] || (e[37] = [
851                        g(" \u5F00 ", -1)
852                      ])
853                    ]),
854                    _: 1
855                  })) : (p(), u("span", xt, "-"))
856                ], 64)) : t.key === "in_app" ? (p(), u(h, {
857                  key: 6
858                }, [
859                  ((_g = _.in_app_config) == null ? void 0 : _g.enabled) ? (p(), w(k, {
860                    key: 0,
861                    color: "cyan"
862                  }, {
863                    default: i(() => [
864                      ...e[38] || (e[38] = [
865                        g(" \u5F00 ", -1)
866                      ])
867                    ]),
868                    _: 1
869                  })) : (p(), u("span", Ct, "-"))
870                ], 64)) : t.key === "governance_task" ? (p(), u(h, {
871                  key: 7
872                }, [
873                  ((_h = _.governance_task_config) == null ? void 0 : _h.enabled) ? (p(), w(k, {
874                    key: 0,
875                    color: "purple"
876                  }, {
877                    default: i(() => [
878                      ...e[39] || (e[39] = [
879                        g(" \u5F00 ", -1)
880                      ])
881                    ]),
882                    _: 1
883                  })) : (p(), u("span", St, "-"))
884                ], 64)) : t.key === "updated_at" ? (p(), u("span", It, P(_.updated_at ? l(Fe)(_.updated_at) : "-"), 1)) : t.key === "action" ? (p(), u("div", Et, [
885                  n(y, {
886                    type: "link",
887                    size: "small",
888                    onClick: (f) => ke(_)
889                  }, {
890                    default: i(() => [
891                      ...e[40] || (e[40] = [
892                        g(" \u7F16\u8F91 ", -1)
893                      ])
894                    ]),
895                    _: 1
896                  }, 8, [
897                    "onClick"
898                  ]),
899                  n(y, {
900                    type: "link",
901                    size: "small",
902                    onClick: (f) => Ee(_)
903                  }, {
904                    default: i(() => [
905                      g(P(_.enabled ? "\u7981\u7528" : "\u542F\u7528"), 1)
906                    ]),
907                    _: 2
908                  }, 1032, [
909                    "onClick"
910                  ]),
911                  n(y, {
912                    type: "link",
913                    size: "small",
914                    loading: l(J) === _._id,
915                    onClick: (f) => Te(_)
916                  }, {
917                    default: i(() => [
918                      ...e[41] || (e[41] = [
919                        g(" \u6D4B\u8BD5 ", -1)
920                      ])
921                    ]),
922                    _: 1
923                  }, 8, [
924                    "loading",
925                    "onClick"
926                  ]),
927                  _.rule_type !== "system" ? (p(), w(ze, {
928                    key: 0,
929                    title: "\u786E\u5B9A\u5220\u9664\uFF1F",
930                    onConfirm: (f) => Ue(_._id)
931                  }, {
932                    default: i(() => [
933                      n(y, {
934                        type: "link",
935                        size: "small",
936                        danger: ""
937                      }, {
938                        default: i(() => [
939                          ...e[42] || (e[42] = [
940                            g(" \u5220\u9664 ", -1)
941                          ])
942                        ]),
943                        _: 1
944                      })
945                    ]),
946                    _: 1
947                  }, 8, [
948                    "onConfirm"
949                  ])) : E("", true)
950                ])) : E("", true)
951              ];
952            }),
953            _: 1
954          }, 8, [
955            "columns",
956            "data-source",
957            "row-key",
958            "loading",
959            "pagination"
960          ]),
961          n(pe, {
962            open: l(R),
963            "onUpdate:open": e[30] || (e[30] = (t) => I(R) ? R.value = t : null),
964            title: l(S) ? "\u7F16\u8F91\u4E8B\u4EF6\u901A\u77E5\u89C4\u5219" : "\u65B0\u589E\u4E8B\u4EF6\u901A\u77E5\u89C4\u5219",
965            width: "720px",
966            "confirm-loading": l(Y),
967            "ok-text": l(S) ? "\u4FDD\u5B58" : "\u521B\u5EFA",
968            "cancel-text": "\u53D6\u6D88",
969            "body-style": {
970              maxHeight: "calc(100vh - 200px)",
971              overflowY: "auto"
972            },
973            centered: "",
974            onOk: Ie
975          }, {
976            default: i(() => [
977              n(Pe, {
978                layout: "vertical"
979              }, {
980                default: i(() => [
981                  n(Ae, {
982                    "active-key": l(j),
983                    "onUpdate:activeKey": e[29] || (e[29] = (t) => I(j) ? j.value = t : null),
984                    size: "small"
985                  }, {
986                    default: i(() => [
987                      n(N, {
988                        key: "basic",
989                        tab: "\u57FA\u672C\u4FE1\u606F"
990                      }, {
991                        default: i(() => [
992                          n(d, {
993                            label: "\u4E8B\u4EF6\u7C7B\u578B",
994                            required: !l(S)
995                          }, {
996                            default: i(() => [
997                              n(V, {
998                                value: l(a).event_type,
999                                "onUpdate:value": e[3] || (e[3] = (t) => l(a).event_type = t),
1000                                placeholder: "\u5982 EXCEPTION_ALERT",
1001                                disabled: l(S)
1002                              }, null, 8, [
1003                                "value",
1004                                "disabled"
1005                              ])
1006                            ]),
1007                            _: 1
1008                          }, 8, [
1009                            "required"
1010                          ]),
1011                          n(d, {
1012                            label: "\u4E8B\u4EF6\u540D\u79F0",
1013                            required: ""
1014                          }, {
1015                            default: i(() => [
1016                              n(V, {
1017                                value: l(a).event_label,
1018                                "onUpdate:value": e[4] || (e[4] = (t) => l(a).event_label = t),
1019                                placeholder: "\u5982 \u5F02\u5E38\u544A\u8B66"
1020                              }, null, 8, [
1021                                "value"
1022                              ])
1023                            ]),
1024                            _: 1
1025                          }),
1026                          n(d, {
1027                            label: "\u4E8B\u4EF6\u5206\u7C7B"
1028                          }, {
1029                            default: i(() => [
1030                              n(m, {
1031                                value: l(a).event_category,
1032                                "onUpdate:value": e[5] || (e[5] = (t) => l(a).event_category = t),
1033                                options: l(Q).map((t) => ({
1034                                  label: t.label,
1035                                  value: t.value
1036                                })),
1037                                style: {
1038                                  width: "100%"
1039                                }
1040                              }, null, 8, [
1041                                "value",
1042                                "options"
1043                              ])
1044                            ]),
1045                            _: 1
1046                          }),
1047                          n(d, {
1048                            label: "\u63CF\u8FF0"
1049                          }, {
1050                            default: i(() => [
1051                              n(q, {
1052                                value: l(a).description,
1053                                "onUpdate:value": e[6] || (e[6] = (t) => l(a).description = t),
1054                                rows: 2,
1055                                placeholder: "\u53EF\u9009"
1056                              }, null, 8, [
1057                                "value"
1058                              ])
1059                            ]),
1060                            _: 1
1061                          }),
1062                          n(d, {
1063                            label: "\u542F\u7528"
1064                          }, {
1065                            default: i(() => [
1066                              n(x, {
1067                                checked: l(a).enabled,
1068                                "onUpdate:checked": e[7] || (e[7] = (t) => l(a).enabled = t)
1069                              }, null, 8, [
1070                                "checked"
1071                              ])
1072                            ]),
1073                            _: 1
1074                          })
1075                        ]),
1076                        _: 1
1077                      }),
1078                      n(N, {
1079                        key: "im",
1080                        tab: "IM \u63A8\u9001"
1081                      }, {
1082                        default: i(() => [
1083                          n(d, {
1084                            label: "\u542F\u7528 IM \u63A8\u9001"
1085                          }, {
1086                            default: i(() => [
1087                              n(x, {
1088                                checked: l(a).im_config.enabled,
1089                                "onUpdate:checked": e[8] || (e[8] = (t) => l(a).im_config.enabled = t)
1090                              }, null, 8, [
1091                                "checked"
1092                              ])
1093                            ]),
1094                            _: 1
1095                          }),
1096                          l(a).im_config.enabled ? (p(), u(h, {
1097                            key: 0
1098                          }, [
1099                            n(d, {
1100                              label: "\u5355\u804A\u7B56\u7565",
1101                              help: "\u540E\u7AEF\u5B57\u6BB5 private_chat_policy\uFF1A\u6307\u5B9A\u4F1A\u8BDD/\u5168\u90E8\u6620\u5C04\u4F1A\u8BDD/\u5F53\u4E8B\u7528\u6237\u4F1A\u8BDD"
1102                            }, {
1103                              default: i(() => [
1104                                n(m, {
1105                                  value: l(a).im_config.private_chat_policy,
1106                                  "onUpdate:value": e[9] || (e[9] = (t) => l(a).im_config.private_chat_policy = t),
1107                                  "allow-clear": "",
1108                                  placeholder: "\u4E0D\u914D\u7F6E\u5219\u53EA\u6309\u4E0B\u65B9\u56FA\u5B9A\u76EE\u6807\u53D1\u9001",
1109                                  options: l(it).map((t) => ({
1110                                    label: t.label,
1111                                    value: t.value
1112                                  }))
1113                                }, null, 8, [
1114                                  "value",
1115                                  "options"
1116                                ])
1117                              ]),
1118                              _: 1
1119                            }),
1120                            n(d, {
1121                              label: "\u5355\u804A\u7B56\u7565\u673A\u5668\u4EBA\u6E20\u9053",
1122                              help: "\u540E\u7AEF\u5B57\u6BB5 channel_ids\u3002\u7528\u4E8E all_mapped_users/receiver/specified \u4E09\u79CD\u7B56\u7565"
1123                            }, {
1124                              default: i(() => [
1125                                n(m, {
1126                                  value: l(a).im_config.channel_ids,
1127                                  "onUpdate:value": e[10] || (e[10] = (t) => l(a).im_config.channel_ids = t),
1128                                  mode: "multiple",
1129                                  "allow-clear": "",
1130                                  placeholder: "\u9009\u62E9\u673A\u5668\u4EBA\u6E20\u9053",
1131                                  options: l(D).map((t) => ({
1132                                    label: t.name,
1133                                    value: t._id
1134                                  }))
1135                                }, null, 8, [
1136                                  "value",
1137                                  "options"
1138                                ])
1139                              ]),
1140                              _: 1
1141                            }),
1142                            l(a).im_config.private_chat_policy === "specified" ? (p(), w(d, {
1143                              key: 0,
1144                              label: "\u6307\u5B9A\u5355\u804A\u4F1A\u8BDD",
1145                              help: "\u540E\u7AEF\u5B57\u6BB5 private_target_ids\uFF08\u5E73\u53F0\u7528\u6237 ID\uFF09"
1146                            }, {
1147                              default: i(() => [
1148                                n(m, {
1149                                  value: l(a).im_config.private_target_ids,
1150                                  "onUpdate:value": e[11] || (e[11] = (t) => l(a).im_config.private_target_ids = t),
1151                                  mode: "multiple",
1152                                  "show-search": "",
1153                                  "allow-clear": "",
1154                                  placeholder: "\u9009\u62E9\u5355\u804A\u7528\u6237\u4F1A\u8BDD",
1155                                  options: ve(),
1156                                  "filter-option": (t, _) => String((_ == null ? void 0 : _.label) || "").toLowerCase().includes(t.toLowerCase())
1157                                }, null, 8, [
1158                                  "value",
1159                                  "options",
1160                                  "filter-option"
1161                                ])
1162                              ]),
1163                              _: 1
1164                            })) : E("", true),
1165                            n(d, {
1166                              label: "\u517C\u5BB9\u52A8\u6001\u6536\u4EF6\u4EBA",
1167                              help: "\u65E7\u5B57\u6BB5 use_dynamic_recipient\u3002\u5EFA\u8BAE\u4F18\u5148\u4F7F\u7528\u5355\u804A\u7B56\u7565 receiver"
1168                            }, {
1169                              default: i(() => [
1170                                n(x, {
1171                                  checked: l(a).im_config.use_dynamic_recipient,
1172                                  "onUpdate:checked": e[12] || (e[12] = (t) => l(a).im_config.use_dynamic_recipient = t)
1173                                }, null, 8, [
1174                                  "checked"
1175                                ])
1176                              ]),
1177                              _: 1
1178                            }),
1179                            A("div", Ut, [
1180                              e[45] || (e[45] = A("span", {
1181                                class: "text-sm"
1182                              }, "\u56FA\u5B9A\u76EE\u6807\uFF08\u5355\u804A/\u7FA4\u804A\uFF09", -1)),
1183                              n(Ne, null, {
1184                                default: i(() => [
1185                                  n(y, {
1186                                    type: "dashed",
1187                                    size: "small",
1188                                    onClick: he
1189                                  }, {
1190                                    default: i(() => [
1191                                      n(s, {
1192                                        name: "ant-design:plus-outlined"
1193                                      }),
1194                                      e[43] || (e[43] = g(" \u6DFB\u52A0\u56FA\u5B9A\u76EE\u6807 ", -1))
1195                                    ]),
1196                                    _: 1
1197                                  }),
1198                                  n(y, {
1199                                    type: "dashed",
1200                                    size: "small",
1201                                    onClick: xe
1202                                  }, {
1203                                    default: i(() => [
1204                                      n(s, {
1205                                        name: "ant-design:message-outlined"
1206                                      }),
1207                                      e[44] || (e[44] = g(" \u4ECE\u4F1A\u8BDD\u9009\u62E9 ", -1))
1208                                    ]),
1209                                    _: 1
1210                                  })
1211                                ]),
1212                                _: 1
1213                              })
1214                            ]),
1215                            (p(true), u(h, null, ce(l(a).im_config.targets, (t, _) => (p(), u("div", {
1216                              key: _,
1217                              class: "flex items-center gap-2 mb-2 p-2 bg-gray-50 dark:bg-gray-800 rounded"
1218                            }, [
1219                              n(m, {
1220                                value: t.channel_id,
1221                                "onUpdate:value": (f) => t.channel_id = f,
1222                                placeholder: "\u6E20\u9053",
1223                                size: "small",
1224                                style: {
1225                                  width: "140px"
1226                                },
1227                                onChange: (f) => t.target_id = ""
1228                              }, {
1229                                default: i(() => [
1230                                  (p(true), u(h, null, ce(l(D), (f) => (p(), w(X, {
1231                                    key: f._id,
1232                                    value: f._id
1233                                  }, {
1234                                    default: i(() => [
1235                                      g(P(f.name), 1)
1236                                    ]),
1237                                    _: 2
1238                                  }, 1032, [
1239                                    "value"
1240                                  ]))), 128))
1241                                ]),
1242                                _: 1
1243                              }, 8, [
1244                                "value",
1245                                "onUpdate:value",
1246                                "onChange"
1247                              ]),
1248                              n(m, {
1249                                value: t.target_type,
1250                                "onUpdate:value": (f) => t.target_type = f,
1251                                placeholder: "\u5355\u804A/\u7FA4\u804A",
1252                                size: "small",
1253                                style: {
1254                                  width: "90px"
1255                                },
1256                                onChange: (f) => t.target_id = ""
1257                              }, {
1258                                default: i(() => [
1259                                  n(X, {
1260                                    value: "group"
1261                                  }, {
1262                                    default: i(() => [
1263                                      ...e[46] || (e[46] = [
1264                                        g("\u7FA4\u804A", -1)
1265                                      ])
1266                                    ]),
1267                                    _: 1
1268                                  }),
1269                                  n(X, {
1270                                    value: "user"
1271                                  }, {
1272                                    default: i(() => [
1273                                      ...e[47] || (e[47] = [
1274                                        g("\u5355\u804A", -1)
1275                                      ])
1276                                    ]),
1277                                    _: 1
1278                                  })
1279                                ]),
1280                                _: 1
1281                              }, 8, [
1282                                "value",
1283                                "onUpdate:value",
1284                                "onChange"
1285                              ]),
1286                              n(m, {
1287                                value: t.target_id,
1288                                "onUpdate:value": (f) => t.target_id = f,
1289                                placeholder: t.target_type === "group" ? "\u9009\u62E9\u7FA4\uFF08\u7FA4\u804A\u5FC5\u987B\u6307\u5B9A\uFF09" : "\u9009\u62E9\u7528\u6237\u4F1A\u8BDD",
1290                                size: "small",
1291                                "show-search": "",
1292                                style: {
1293                                  width: "160px"
1294                                },
1295                                options: fe(t),
1296                                "filter-option": (f, Le) => String((Le == null ? void 0 : Le.label) || "").toLowerCase().includes(f.toLowerCase())
1297                              }, null, 8, [
1298                                "value",
1299                                "onUpdate:value",
1300                                "placeholder",
1301                                "options",
1302                                "filter-option"
1303                              ]),
1304                              n(y, {
1305                                type: "text",
1306                                danger: "",
1307                                size: "small",
1308                                onClick: (f) => we(_)
1309                              }, {
1310                              
1310  default: i(() => [
1311                                  n(s, {
1312                                    name: "ant-design:delete-outlined"
1313                                  })
1314                                ]),
1315                                _: 1
1316                              }, 8, [
1317                                "onClick"
1318                              ])
1319                            ]))), 128)),
1320                            n(d, {
1321                              label: "\u6D88\u606F\u6A21\u677F",
1322                              help: "\u53EF\u7528\u53D8\u91CF\uFF1A{title} {message} {time} {event_type} {event_label} {alertType} {payload}"
1323                            }, {
1324                              default: i(() => [
1325                                n(V, {
1326                                  value: l(a).im_config.template,
1327                                  "onUpdate:value": e[13] || (e[13] = (t) => l(a).im_config.template = t),
1328                                  placeholder: "[{event_label}] {title} {message}"
1329                                }, null, 8, [
1330                                  "value"
1331                                ])
1332                              ]),
1333                              _: 1
1334                            })
1335                          ], 64)) : E("", true)
1336                        ]),
1337                        _: 1
1338                      }),
1339                      n(N, {
1340                        key: "email",
1341                        tab: "\u90AE\u4EF6\u901A\u77E5"
1342                      }, {
1343                        default: i(() => [
1344                          n(d, {
1345                            label: "\u542F\u7528\u90AE\u4EF6\u901A\u77E5"
1346                          }, {
1347                            default: i(() => [
1348                              n(x, {
1349                                checked: l(a).email_config.enabled,
1350                                "onUpdate:checked": e[14] || (e[14] = (t) => l(a).email_config.enabled = t)
1351                              }, null, 8, [
1352                                "checked"
1353                              ])
1354                            ]),
1355                            _: 1
1356                          }),
1357                          l(a).email_config.enabled ? (p(), u(h, {
1358                            key: 0
1359                          }, [
1360                            n(d, {
1361                              label: "\u540C\u65F6\u53D1\u9001\u7ED9\u5F53\u4E8B\u4EBA",
1362                              help: "\u4E8B\u4EF6\u6D89\u53CA\u67D0\u7528\u6237\u65F6\uFF0C\u53D1\u9001\u5230\u8BE5\u7528\u6237\u7684\u6CE8\u518C\u90AE\u7BB1"
1363                            }, {
1364                              default: i(() => [
1365                                n(x, {
1366                                  checked: l(a).email_config.use_dynamic_recipient,
1367                                  "onUpdate:checked": e[15] || (e[15] = (t) => l(a).email_config.use_dynamic_recipient = t)
1368                                }, null, 8, [
1369                                  "checked"
1370                                ])
1371                              ]),
1372                              _: 1
1373                            }),
1374                            n(d, {
1375                              label: "\u6307\u5B9A\u6536\u4EF6\u90AE\u7BB1\uFF08\u591A\u4E2A\u7528\u9017\u53F7\u5206\u9694\uFF09"
1376                            }, {
1377                              default: i(() => [
1378                                n(q, {
1379                                  value: l(O),
1380                                  "onUpdate:value": e[16] || (e[16] = (t) => I(O) ? O.value = t : null),
1381                                  rows: 2,
1382                                  placeholder: "[email protected],[email protected]"
1383                                }, null, 8, [
1384                                  "value"
1385                                ])
1386                              ]),
1387                              _: 1
1388                            }),
1389                            n(d, {
1390                              label: "\u90AE\u4EF6\u4E3B\u9898\u6A21\u677F",
1391                              help: "\u53EF\u7528\u53D8\u91CF\uFF1A{title} {message} {time} {event_type} {event_label} {alertType} {payload}"
1392                            }, {
1393                              default: i(() => [
1394                                n(V, {
1395                                  value: l(a).email_config.subject_template,
1396                                  "onUpdate:value": e[17] || (e[17] = (t) => l(a).email_config.subject_template = t),
1397                                  placeholder: "[EasyAI] {event_label} - {title}"
1398                                }, null, 8, [
1399                                  "value"
1400                                ])
1401                              ]),
1402                              _: 1
1403                            }),
1404                            n(d, {
1405                              label: "\u90AE\u4EF6\u6B63\u6587\u6A21\u677F",
1406                              help: "\u4EFB\u52A1\u5F02\u5E38\u7B49\u5
140673A\u666F\u53EF\u7528 {payload} \u8F93\u51FA\u5B8C\u6574\u4E0A\u4E0B\u6587"
1407                            }, {
1408                              default: i(() => [
1409                                n(q, {
1410                                  value: l(a).email_config.body_template,
1411                                  "onUpdate:value": e[18] || (e[18] = (t) => l(a).email_config.body_template = t),
1412                                  rows: 4,
1413                                  placeholder: "<h2>{title}</h2><p>{message}</p><p>\u4E8B\u4EF6\uFF1A{event_label}</p><pre>{payload}</pre>"
1414                                }, null, 8, [
1415                                  "value"
1416                                ])
1417                              ]),
1418                              _: 1
1419                            })
1420                          ], 64)) : E("", true)
1421                        ]),
1422                        _: 1
1423                      }),
1424                      n(N, {
1425                        key: "sms",
1426                        tab: "\u77ED\u4FE1\u901A\u77E5"
1427                      }, {
1428                        default: i(() => [
1429                          n(d, {
1430                            label: "\u542F\u7528\u77ED\u4FE1\u901A\u77E5"
1431                          }, {
1432                            default: i(() => [
1433                              n(x, {
1434                                checked: l(a).sms_config.enabled,
1435                                "onUpdate:checked": e[19] || (e[19] = (t) => l(a).sms_config.enabled = t)
1436                              }, null, 8, [
1437                                "checked"
1438                              ])
1439                            ]),
1440                            _: 1
1441                          }),
1442                          l(a).sms_config.enabled ? (p(), u(h, {
1443                            key: 0
1444                          }, [
1445                            n(d, {
1446                              label: "\u540C\u65F6\u53D1\u9001\u7ED9\u5F53\u4E8B\u4EBA",
1447                              help: "\u4E8B\u4EF6\u6D89\u53CA\u67D0\u7528\u6237\u65F6\uFF0C\u53D1\u9001\u5230\u8BE5\u7528\u6237\u7684\u6CE8\u518C\u624B\u673A\u53F7"
1448                            }, {
1449                              default: i(() => [
1450                                n(x, {
1451                                  checked: l(a).sms_config.use_dynamic_recipient,
1452                                  "onUpdate:checked": e[20] || (e[20] = (t) => l(a).sms_config.use_dynamic_recipient = t)
1453                                }, null, 8, [
1454                                  "checked"
1455                                ])
1456                              ]),
1457                              _: 1
1458                            }),
1459                            n(d, {
1460                              label: "\u6307\u5B9A\u624B\u673A\u53F7\uFF08\u591A\u4E2A\u7528\u9017\u53F7\u5206\u9694\uFF09"
1461                            }, {
1462                              default: i(() => [
1463                                n(q, {
1464                                  value: l(z),
1465                                  "onUpdate:value": e[21] || (e[21] = (t) => I(z) ? z.value = t : null),
1466                                  rows: 2,
1467                                  placeholder: "13800138000,13900139000"
1468                                }, null, 8, [
1469                                  "value"
1470                                ])
1471                              ]),
1472                              _: 1
1473                            }),
1474                            n(d, {
1475                              label: "\u77ED\u4FE1\u5185\u5BB9\u6A21\u677F\uFF08\u9650 70 \u5B57\uFF09",
1476                              help: "\u53EF\u7528\u53D8\u91CF\uFF1A{title} {message} {event_type} {event_label} {alertType}"
1477                            }, {
1478                              default: i(() => [
1479                                n(V, {
1480                                  value: l(a).sms_config.content_template,
1481                                  "onUpdate:value": e[22] || (e[22] = (t) => l(a).sms_config.content_template = t),
1482                                  placeholder: "EasyAI {event_label}:{title}"
1483                                }, null, 8, [
1484                                  "value"
1485                                ])
1486                              ]),
1487                              _: 1
1488                            })
1489                          ], 64)) : E("", true)
1490                        ]),
1491                        _: 1
1492                      }),
1493                      n(N, {
1494                        key: "in_app",
1495                        tab: "\u7AD9\u5185\u901A\u77E5"
1496                      }, {
1497                        default: i(() => [
1498                          n(d, {
1499                            label: "\u542F\u7528\u7AD9\u5185\u901A\u77E5"
1500                          }, {
1501                            default: i(() => [
1502                              n(x, {
1503                                checked: l(a).in_app_config.enabled,
1504                                "onUpdate:checked": e[23] || (e[23] = (t) => l(a).in_app_config.enabled = t)
1505                              }, null, 8, [
1506                                "checked"
1507                              ])
1508                            ]),
1509                            _: 1
1510                          }),
1511                          l(a).in_app_config.enabled ? (p(), u(h, {
1512                            key: 0
1513                          }, [
1514                            n(d, {
1515                              label: "\u4E1A\u52A1\u7C7B\u578B"
1516                            }, {
1517                              default: i(() => [
1518                                n(m, {
1519                                  value: l(a).in_app_config.biz_type,
1520                                  "onUpdate:value": e[24] || (e[24] = (t) => l(a).in_app_config.biz_type = t),
1521                                  placeholder: "\u9009\u62E9\u4E1A\u52A1\u7C7B\u578B",
1522                                  "allow-clear": "",
1523                                  style: {
1524                                    width: "100%"
1525                                  },
1526                                  options: l(st).map((t) => ({
1527                                    label: t.label,
1528                                    value: t.value
1529                                  }))
1530                                }, null, 8, [
1531                                  "value",
1532                                  "options"
1533                                ])
1534                              ]),
1535                              _: 1
1536                            }),
1537                            n(d, {
1538                              label: "\u63A5\u6536\u89D2\u8272",
1539                              help: "\u56FA\u5B9A\u53D1\u9001\u7ED9\u
15396307\u5B9A\u89D2\u8272\u7684\u7528\u6237\uFF0C\u53EF\u591A\u9009"
1540                            }, {
1541                              default: i(() => [
1542                                n(m, {
1543                                  value: l(a).in_app_config.receiver_roles,
1544                                  "onUpdate:value": e[25] || (e[25] = (t) => l(a).in_app_config.receiver_roles = t),
1545                                  mode: "multiple",
1546                                  placeholder: "\u9009\u62E9\u89D2\u8272",
1547                                  "allow-clear": "",
1548                                  style: {
1549                                    width: "100%"
1550                                  },
1551                                  options: l(_t).map((t) => ({
1552                                    label: t.label,
1553                                    value: t.value
1554                                  }))
1555                                }, null, 8, [
1556                                  "value",
1557                                  "options"
1558                                ])
1559                              ]),
1560                              _: 1
1561                            })
1562                          ], 64)) : E("", true)
1563                        ]),
1564                        _: 1
1565                      }),
1566                      n(N, {
1567                        key: "governance_task",
1568                        tab: "\u6CBB\u7406\u4EFB\u52A1"
1569                      }, {
1570                        default: i(() => [
1571                          n(d, {
1572                            label: "\u542F\u7528\u6CBB\u7406\u4EFB\u52A1"
1573                          }, {
1574                            default: i(() => [
1575                              n(x, {
1576                                checked: l(a).governance_task_config.enabled,
1577                                "onUpdate:checked": e[26] || (e[26] = (t) => l(a).governance_task_config.enabled = t)
1578                              }, null, 8, [
1579                                "checked"
1580                              ])
1581                            ]),
1582                            _: 1
1583                          }),
1584                          l(a).governance_task_config.enabled ? (p(), u(h, {
1585                            key: 0
1586                          }, [
1587                            n(d, {
1588                              label: "\u4EFB\u52A1\u5206\u7C7B"
1589                            }, {
1590                              default: i(() => [
1591                                n(m, {
1592                                  value: l(a).governance_task_config.category,
1593                                  "onUpdate:value": e[27] || (e[27] = (t) => l(a).governance_task_config.category = t),
1594                                  placeholder: "\u9009\u62E9\u5206\u7C7B",
1595                                  style: {
1596                                    width: "160px"
1597                                  },
1598                                  options: l(Qe).map((t) => ({
1599                                    label: t.label,
1600                                    value: t.value
1601                                  }))
1602                                }, null, 8, [
1603                                  "value",
1604                                  "options"
1605                                ])
1606                              ]),
1607                              _: 1
1608                            }),
1609                            n(d, {
1610                              label: "\u4F18\u5148\u7EA7"
1611                            }, {
1612                              default: i(() => [
1613                                n(m, {
1614                                  value: l(a).governance_task_config.priority,
1615                                  "onUpdate:value": e[28] || (e[28] = (t) => l(a).governance_task_config.priority = t),
1616                                  placeholder: "\u9009\u62E9\u4F18\u5148\u7EA7",
1617                                  style: {
1618                                    width: "120px"
1619                                  },
1620                                  options: l(Ze).map((t) => ({
1621                                    label: t.label,
1622                                    value: t.value
1623                                  }))
1624                                }, null, 8, [
1625                                  "value",
1626                                  "options"
1627                                ])
1628                              ]),
1629                              _: 1
1630                            })
1631                          ], 64)) : E("", true)
1632                        ]),
1633                        _: 1
1634                      })
1635                    ]),
1636                    _: 1
1637                  }, 8, [
1638                    "active-key"
1639                  ])
1640                ]),
1641                _: 1
1642              })
1643            ]),
1644            _: 1
1645          }, 8, [
1646            "open",
1647            "title",
1648            "confirm-loading",
1649            "ok-text"
1650          ]),
1651          n(pe, {
1652            open: l(B),
1653            "onUpdate:open": e[31] || (e[31] = (t) => I(B) ? B.value = t : null),
1654            title: "\u4ECE\u73B0\u6709\u4F1A\u8BDD\u9009\u62E9",
1655            width: "600px",
1656            "ok-text": "\u6DFB\u52A0\u9009\u4E2D",
1657            onOk: Se
1658          }, {
1659            default: i(() => [
1660              n(_e, {
1661                columns: [
1662                  {
1663                    title: "\u5E73\u53F0",
1664                    dataIndex: "platform",
1665                    key: "platform",
1666                    width: 90
1667                  },
1668                  {
1669                    title: "\u7C7B\u578B",
1670                    dataIndex: "chat_type",
1671                    key: "chat_type",
1672                    width: 70,
1673                    customRender: ({ text: t }) => t === "group" ? "\u7FA4\u804A" : "\u5355\u804A"
1674                  },
1675                  {
1676                    title: "\u4F1A\u8BDDID",
1677                    dataIndex: "chat_id",
1678                    key: "chat_id",
1679                    ellipsis: true
1680                  }
1681                ],
1682                "data-source": l(G),
1683                "row-selection": {
1684                  selectedRowKeys: l(W),
1685                  onChange: Ce,
1686                  getCheckboxProps: (t) => ({
1687                    disabled: t.chat_type !== "group" && !t.platform_user_id
1688                  })
1689                },
1690                "row-key": "_id",
1691                size: "small",
1692                pagination: {
1693                  pageSize: 10
1694                }
1695              }, null, 8, [
1696                "columns",
1697                "data-source",
1698                "row-selection"
1699              ])
1700            ]),
1701            _: 1
1702          }, 8, [
1703            "open"
1704          ])
1705        ]);
1706      };
1707    }
1708  });
1709  jt = nt(zt, [
1710    [
1711      "__scopeId",
1712      "data-v-728cba17"
1713    ]
1714  ]);
1715});
1716export {
1717  __tla,
1718  jt as default
1719};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.