@rytass/bpm-core-react 0.16.2 → 0.17.1

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.
Files changed (247) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +54 -6
  3. package/dist/chunks/admin-pickers-BRHk3qKq.cjs +2 -0
  4. package/dist/chunks/admin-pickers-BRHk3qKq.cjs.map +1 -0
  5. package/dist/chunks/{admin-pickers-DxhzECkD.js → admin-pickers-Djq3h-UR.js} +41 -39
  6. package/dist/chunks/admin-pickers-Djq3h-UR.js.map +1 -0
  7. package/dist/chunks/{categories-DjENouRm.cjs → categories-AxxhqjLZ.cjs} +2 -2
  8. package/dist/chunks/{categories-DjENouRm.cjs.map → categories-AxxhqjLZ.cjs.map} +1 -1
  9. package/dist/chunks/{categories-1gKxeEqw.js → categories-riC33J_j.js} +2 -2
  10. package/dist/chunks/{categories-1gKxeEqw.js.map → categories-riC33J_j.js.map} +1 -1
  11. package/dist/chunks/{compose-DUH9cQ-L.cjs → compose-B7TtrpQJ.cjs} +2 -2
  12. package/dist/chunks/{compose-DUH9cQ-L.cjs.map → compose-B7TtrpQJ.cjs.map} +1 -1
  13. package/dist/chunks/{compose-DO6n0NJi.js → compose-_pREPtfN.js} +2 -2
  14. package/dist/chunks/{compose-DO6n0NJi.js.map → compose-_pREPtfN.js.map} +1 -1
  15. package/dist/chunks/{delegations-BLzYnOae.cjs → delegations-V9HIe3_P.cjs} +2 -2
  16. package/dist/chunks/delegations-V9HIe3_P.cjs.map +1 -0
  17. package/dist/chunks/{delegations-_b4_xBit.js → delegations-xUt1tj8d.js} +2 -1
  18. package/dist/chunks/{delegations-_b4_xBit.js.map → delegations-xUt1tj8d.js.map} +1 -1
  19. package/dist/chunks/{designer-B-cfiob9.js → designer-BiywgNXs.js} +1003 -949
  20. package/dist/chunks/designer-BiywgNXs.js.map +1 -0
  21. package/dist/chunks/designer-ttAqv859.cjs +65 -0
  22. package/dist/chunks/designer-ttAqv859.cjs.map +1 -0
  23. package/dist/chunks/detail-DRCTnuKm.cjs +2 -0
  24. package/dist/chunks/detail-DRCTnuKm.cjs.map +1 -0
  25. package/dist/chunks/{detail-C6NdVijG.js → detail-DScLf42P.js} +183 -156
  26. package/dist/chunks/detail-DScLf42P.js.map +1 -0
  27. package/dist/chunks/orgs-C8usknWb.cjs +2 -0
  28. package/dist/chunks/orgs-C8usknWb.cjs.map +1 -0
  29. package/dist/chunks/{orgs-Bpp1U60k.js → orgs-Lg7tXv2u.js} +584 -544
  30. package/dist/chunks/orgs-Lg7tXv2u.js.map +1 -0
  31. package/dist/chunks/users-DRbuDYF1.js +422 -0
  32. package/dist/chunks/users-DRbuDYF1.js.map +1 -0
  33. package/dist/chunks/users-DVQicZIo.cjs +2 -0
  34. package/dist/chunks/users-DVQicZIo.cjs.map +1 -0
  35. package/dist/components/admin-pickers.d.cts +65 -0
  36. package/dist/components/approval-instance-list-page.d.cts +17 -0
  37. package/dist/components/bpm-form-field.d.cts +10 -0
  38. package/dist/components/bpm-notification-bell-button.d.cts +22 -0
  39. package/dist/components/dashboard-page.d.cts +7 -0
  40. package/dist/components/notification-drawer.d.cts +11 -0
  41. package/dist/components/org-unit-tree-draft-editor.d.cts +24 -0
  42. package/dist/components/org-unit-tree-draft-editor.d.ts +1 -1
  43. package/dist/components/pdf-preview.d.cts +12 -0
  44. package/dist/index.cjs +1 -1
  45. package/dist/index.d.cts +15 -0
  46. package/dist/index.d.ts +15 -15
  47. package/dist/index.js +1 -1
  48. package/dist/lib/auth-provider.d.cts +37 -0
  49. package/dist/lib/format-date-time.d.cts +5 -0
  50. package/dist/lib/format-member-label.d.cts +12 -0
  51. package/dist/lib/member-profile-resolution.d.cts +48 -0
  52. package/dist/lib/notification-drawer-provider.d.cts +27 -0
  53. package/dist/lib/notification-unread-provider.d.cts +25 -0
  54. package/dist/lib/org-tree-draft.d.cts +27 -0
  55. package/dist/lib/providers.d.cts +31 -0
  56. package/dist/lib/router-adapter.d.cts +47 -0
  57. package/dist/lib/routes-config.d.cts +117 -0
  58. package/dist/lib/task-node-label.d.cts +10 -0
  59. package/dist/lib/use-bpm-logout.d.cts +12 -0
  60. package/dist/lib/use-bpm-member.d.cts +17 -0
  61. package/dist/next/BPMNextProviders.d.cts +51 -0
  62. package/dist/next/index.d.cts +2 -0
  63. package/dist/next/index.d.ts +2 -2
  64. package/dist/next/workflow-chat-route.d.cts +17 -0
  65. package/dist/pages/admin/delegations/index.cjs +1 -1
  66. package/dist/pages/admin/delegations/index.d.cts +4 -0
  67. package/dist/pages/admin/delegations/index.js +1 -1
  68. package/dist/pages/admin/orgs/index.cjs +1 -1
  69. package/dist/pages/admin/orgs/index.d.cts +4 -0
  70. package/dist/pages/admin/orgs/index.js +1 -1
  71. package/dist/pages/admin/users/index.cjs +1 -1
  72. package/dist/pages/admin/users/index.d.cts +4 -0
  73. package/dist/pages/admin/users/index.js +1 -1
  74. package/dist/pages/admin/webhook-endpoints/index.d.cts +4 -0
  75. package/dist/pages/cc/index.d.cts +16 -0
  76. package/dist/pages/dashboard/index.d.cts +16 -0
  77. package/dist/pages/delegations/index.d.cts +4 -0
  78. package/dist/pages/inbox/index.d.cts +16 -0
  79. package/dist/pages/instances/detail/index.cjs +1 -1
  80. package/dist/pages/instances/detail/index.d.cts +23 -0
  81. package/dist/pages/instances/detail/index.js +1 -1
  82. package/dist/pages/instances/new/index.d.cts +20 -0
  83. package/dist/pages/login/index.d.cts +21 -0
  84. package/dist/pages/root/index.d.cts +18 -0
  85. package/dist/pages/search/index.d.cts +16 -0
  86. package/dist/pages/sent/index.d.cts +16 -0
  87. package/dist/pages/settings/notifications/index.d.cts +4 -0
  88. package/dist/pages/templates/categories/index.cjs +1 -1
  89. package/dist/pages/templates/categories/index.d.cts +4 -0
  90. package/dist/pages/templates/categories/index.js +1 -1
  91. package/dist/pages/templates/compose/index.cjs +1 -1
  92. package/dist/pages/templates/compose/index.d.cts +25 -0
  93. package/dist/pages/templates/compose/index.js +1 -1
  94. package/dist/pages/templates/designer/index.cjs +1 -1
  95. package/dist/pages/templates/designer/index.d.cts +8 -0
  96. package/dist/pages/templates/designer/index.js +1 -1
  97. package/dist/pages/templates/index.d.cts +4 -0
  98. package/dist/pages/templates/versions/index.d.cts +8 -0
  99. package/dist/views/admin/delegations/AdminDelegationsView.d.cts +2 -0
  100. package/dist/views/admin/delegations/index.cjs +1 -1
  101. package/dist/views/admin/delegations/index.d.cts +1 -0
  102. package/dist/views/admin/delegations/index.d.ts +1 -1
  103. package/dist/views/admin/delegations/index.js +1 -1
  104. package/dist/views/admin/index.cjs +1 -1
  105. package/dist/views/admin/index.d.cts +4 -0
  106. package/dist/views/admin/index.d.ts +4 -4
  107. package/dist/views/admin/index.js +3 -3
  108. package/dist/views/admin/orgs/AdminOrgsView.d.cts +2 -0
  109. package/dist/views/admin/orgs/index.cjs +1 -1
  110. package/dist/views/admin/orgs/index.d.cts +1 -0
  111. package/dist/views/admin/orgs/index.d.ts +1 -1
  112. package/dist/views/admin/orgs/index.js +1 -1
  113. package/dist/views/admin/users/AdminUsersView.d.cts +2 -0
  114. package/dist/views/admin/users/MemberTaskReassignModal.d.cts +13 -0
  115. package/dist/views/admin/users/MemberTaskReassignModal.d.ts +13 -0
  116. package/dist/views/admin/users/index.cjs +1 -1
  117. package/dist/views/admin/users/index.d.cts +1 -0
  118. package/dist/views/admin/users/index.d.ts +1 -1
  119. package/dist/views/admin/users/index.js +1 -1
  120. package/dist/views/admin/webhook-endpoints/AdminWebhookEndpointsView.d.cts +8 -0
  121. package/dist/views/admin/webhook-endpoints/index.d.cts +1 -0
  122. package/dist/views/admin/webhook-endpoints/index.d.ts +1 -1
  123. package/dist/views/cc/CcView.d.cts +7 -0
  124. package/dist/views/cc/index.d.cts +1 -0
  125. package/dist/views/cc/index.d.ts +1 -1
  126. package/dist/views/dashboard/DashboardView.d.cts +7 -0
  127. package/dist/views/dashboard/index.d.cts +1 -0
  128. package/dist/views/dashboard/index.d.ts +1 -1
  129. package/dist/views/delegations/DelegationsView.d.cts +2 -0
  130. package/dist/views/delegations/index.d.cts +1 -0
  131. package/dist/views/delegations/index.d.ts +1 -1
  132. package/dist/views/forms/builder/FormBuilderView.d.cts +18 -0
  133. package/dist/views/forms/builder/index.d.cts +1 -0
  134. package/dist/views/forms/builder/index.d.ts +1 -1
  135. package/dist/views/forms/builder/json-code-editor.d.cts +11 -0
  136. package/dist/views/forms/renderer/FormRendererView.d.cts +24 -0
  137. package/dist/views/forms/renderer/FormRendererView.d.ts +1 -1
  138. package/dist/views/forms/renderer/form-data-source-field.d.cts +65 -0
  139. package/dist/views/forms/renderer/form-field-link.d.cts +16 -0
  140. package/dist/views/forms/renderer/index.d.cts +2 -0
  141. package/dist/views/forms/renderer/index.d.ts +2 -2
  142. package/dist/views/forms/renderer/member-field-options.d.cts +39 -0
  143. package/dist/views/forms/renderer/member-field.d.cts +21 -0
  144. package/dist/views/inbox/InboxView.d.cts +7 -0
  145. package/dist/views/inbox/index.d.cts +1 -0
  146. package/dist/views/inbox/index.d.ts +1 -1
  147. package/dist/views/instances/detail/InstanceDetailView.d.cts +27 -0
  148. package/dist/views/instances/detail/index.cjs +1 -1
  149. package/dist/views/instances/detail/index.d.cts +7 -0
  150. package/dist/views/instances/detail/index.d.ts +7 -7
  151. package/dist/views/instances/detail/index.js +1 -1
  152. package/dist/views/instances/detail/sections/InstanceAttachmentsSection.d.cts +15 -0
  153. package/dist/views/instances/detail/sections/InstanceFormSection.d.cts +36 -0
  154. package/dist/views/instances/detail/sections/InstanceFormSection.d.ts +1 -1
  155. package/dist/views/instances/detail/sections/InstanceHistorySection.d.cts +29 -0
  156. package/dist/views/instances/detail/sections/InstanceSignaturesSection.d.cts +14 -0
  157. package/dist/views/instances/detail/sections/InstanceTasksSection.d.cts +55 -0
  158. package/dist/views/instances/detail/sections/InstanceWebhookDeliveriesSection.d.cts +20 -0
  159. package/dist/views/instances/detail/sections/container-helpers.d.cts +10 -0
  160. package/dist/views/instances/detail/sections/container-helpers.d.ts +1 -1
  161. package/dist/views/instances/detail/sections/shared.d.cts +141 -0
  162. package/dist/views/instances/detail/submitted-by.d.cts +23 -0
  163. package/dist/views/instances/index.d.cts +1 -0
  164. package/dist/views/instances/index.d.ts +1 -1
  165. package/dist/views/instances/new/InstanceNewView.d.cts +15 -0
  166. package/dist/views/instances/new/index.d.cts +1 -0
  167. package/dist/views/instances/new/index.d.ts +1 -1
  168. package/dist/views/login/LoginView.d.cts +47 -0
  169. package/dist/views/login/index.d.cts +1 -0
  170. package/dist/views/login/index.d.ts +1 -1
  171. package/dist/views/root/RootView.d.cts +10 -0
  172. package/dist/views/root/index.d.cts +1 -0
  173. package/dist/views/root/index.d.ts +1 -1
  174. package/dist/views/search/SearchView.d.cts +7 -0
  175. package/dist/views/search/index.d.cts +1 -0
  176. package/dist/views/search/index.d.ts +1 -1
  177. package/dist/views/sent/SentView.d.cts +7 -0
  178. package/dist/views/sent/index.d.cts +1 -0
  179. package/dist/views/sent/index.d.ts +1 -1
  180. package/dist/views/settings/index.d.cts +1 -0
  181. package/dist/views/settings/index.d.ts +1 -1
  182. package/dist/views/settings/notifications/SettingsNotificationsView.d.cts +2 -0
  183. package/dist/views/settings/notifications/index.d.cts +1 -0
  184. package/dist/views/settings/notifications/index.d.ts +1 -1
  185. package/dist/views/templates/TemplatesView.d.cts +7 -0
  186. package/dist/views/templates/categories/TemplateCategoriesView.d.cts +2 -0
  187. package/dist/views/templates/categories/index.cjs +1 -1
  188. package/dist/views/templates/categories/index.d.cts +1 -0
  189. package/dist/views/templates/categories/index.d.ts +1 -1
  190. package/dist/views/templates/categories/index.js +1 -1
  191. package/dist/views/templates/compose/TemplateComposeWizardView.d.cts +21 -0
  192. package/dist/views/templates/compose/index.cjs +1 -1
  193. package/dist/views/templates/compose/index.d.cts +2 -0
  194. package/dist/views/templates/compose/index.d.ts +2 -2
  195. package/dist/views/templates/compose/index.js +1 -1
  196. package/dist/views/templates/compose/steps/ComposeFormStep.d.cts +15 -0
  197. package/dist/views/templates/compose/steps/ComposeReviewStep.d.cts +12 -0
  198. package/dist/views/templates/compose/steps/ComposeWorkflowStep.d.cts +22 -0
  199. package/dist/views/templates/compose/use-template-compose-wizard.d.cts +46 -0
  200. package/dist/views/templates/designer/NotifyWebhookTargetsEditor.d.cts +20 -0
  201. package/dist/views/templates/designer/NotifyWebhookTargetsEditor.d.ts +1 -1
  202. package/dist/views/templates/designer/TemplateDesignerView.d.cts +65 -0
  203. package/dist/views/templates/designer/chrome-workflow-chat.d.cts +12 -0
  204. package/dist/views/templates/designer/chrome-workflow-chat.d.ts +1 -1
  205. package/dist/views/templates/designer/decision-policy-options.d.cts +8 -0
  206. package/dist/views/templates/designer/designer-version-labels.d.cts +12 -0
  207. package/dist/views/templates/designer/dry-run-assignee-label.d.cts +28 -0
  208. package/dist/views/templates/designer/dry-run-sample-data.d.cts +9 -0
  209. package/dist/views/templates/designer/dynamic-form-resolver-options.d.cts +35 -0
  210. package/dist/views/templates/designer/index.cjs +1 -1
  211. package/dist/views/templates/designer/index.d.cts +1 -0
  212. package/dist/views/templates/designer/index.d.ts +1 -1
  213. package/dist/views/templates/designer/index.js +1 -1
  214. package/dist/views/templates/designer/notify-webhook-designer.d.cts +74 -0
  215. package/dist/views/templates/designer/position-level-options.d.cts +17 -0
  216. package/dist/views/templates/designer/use-workflow-chat.d.cts +21 -0
  217. package/dist/views/templates/designer/use-workflow-chat.d.ts +1 -1
  218. package/dist/views/templates/designer/use-workflow-designer-controller.d.cts +41 -0
  219. package/dist/views/templates/designer/workflow-chat-drawer.d.cts +16 -0
  220. package/dist/views/templates/designer/workflow-chat-drawer.d.ts +1 -1
  221. package/dist/views/templates/index.cjs +1 -1
  222. package/dist/views/templates/index.d.cts +3 -0
  223. package/dist/views/templates/index.d.ts +3 -3
  224. package/dist/views/templates/index.js +1 -1
  225. package/dist/views/templates/versions/TemplateVersionsView.d.cts +5 -0
  226. package/dist/views/templates/versions/index.d.cts +1 -0
  227. package/dist/views/templates/versions/index.d.ts +1 -1
  228. package/dist/views/workflow/index.d.cts +4 -0
  229. package/dist/views/workflow/index.d.ts +4 -4
  230. package/package.json +387 -147
  231. package/dist/chunks/admin-pickers-DxhzECkD.js.map +0 -1
  232. package/dist/chunks/admin-pickers-qe3j--gX.cjs +0 -2
  233. package/dist/chunks/admin-pickers-qe3j--gX.cjs.map +0 -1
  234. package/dist/chunks/delegations-BLzYnOae.cjs.map +0 -1
  235. package/dist/chunks/designer-2YvjP_GU.cjs +0 -65
  236. package/dist/chunks/designer-2YvjP_GU.cjs.map +0 -1
  237. package/dist/chunks/designer-B-cfiob9.js.map +0 -1
  238. package/dist/chunks/detail-C6NdVijG.js.map +0 -1
  239. package/dist/chunks/detail-DKobK4Cg.cjs +0 -2
  240. package/dist/chunks/detail-DKobK4Cg.cjs.map +0 -1
  241. package/dist/chunks/orgs-Bpp1U60k.js.map +0 -1
  242. package/dist/chunks/orgs-ywaE1_02.cjs +0 -2
  243. package/dist/chunks/orgs-ywaE1_02.cjs.map +0 -1
  244. package/dist/chunks/users-BSVo_eNe.js +0 -215
  245. package/dist/chunks/users-BSVo_eNe.js.map +0 -1
  246. package/dist/chunks/users-DFSBTDMy.cjs +0 -2
  247. package/dist/chunks/users-DFSBTDMy.cjs.map +0 -1
@@ -345,7 +345,7 @@ function Y(e) {
345
345
  return t === -1 ? e.length : t;
346
346
  }
347
347
  function yt(e) {
348
- return e.eventType === "INSTANCE_STARTED" || e.eventType === "TASK_DECIDED" || e.eventType === "SLA_TRIGGERED" || e.eventType === "TASK_CANDIDATE_ACTIVATED" || bt(e) || Z(e.eventType, wt(e));
348
+ return e.eventType === "INSTANCE_STARTED" || e.eventType === "INSTANCE_CANCELLED" || e.eventType === "INSTANCE_EXPIRED" || e.eventType === "TASK_DECIDED" || e.eventType === "SLA_TRIGGERED" || e.eventType === "TASK_CANDIDATE_ACTIVATED" || e.eventType === "TASK_REASSIGNED" || bt(e) || Z(e.eventType, wt(e));
349
349
  }
350
350
  function bt(e) {
351
351
  return e.eventType === "TASK_CREATED" && rt(wt(e), "sequentialCandidateMemberIds").length > 0;
@@ -375,6 +375,8 @@ function Ct(e) {
375
375
  }
376
376
  function Q(e, t) {
377
377
  if (e === "INSTANCE_STARTED") return "案件已發起";
378
+ if (e === "INSTANCE_CANCELLED") return "案件已取消";
379
+ if (e === "INSTANCE_EXPIRED") return "案件逾期,已由系統終止";
378
380
  if (e === "TOKEN_CREATED") return "流程路徑已建立";
379
381
  if (e === "ENGINE_PROCESS_REQUESTED") return "流程引擎已處理";
380
382
  if (e === "TOKEN_ADVANCED") return "流程已前進";
@@ -382,6 +384,7 @@ function Q(e, t) {
382
384
  if (e === "TASK_CANDIDATE_ACTIVATED") return "輪到下一位簽核";
383
385
  if (e === "TASK_DECIDED") return Ct(R(t, "action"));
384
386
  if (e === "SLA_TRIGGERED") return "時限提醒已觸發";
387
+ if (e === "TASK_REASSIGNED") return "管理者改派待辦";
385
388
  if (Z(e, t)) {
386
389
  let n = St(t);
387
390
  return e === "SERVICE_TASK_EXECUTED" ? `已通知外部系統:${n}` : e === "SERVICE_TASK_FAILED" ? `通知外部系統失敗:${n}` : `管理者重新傳送外部系統通知:${n}`;
@@ -397,7 +400,7 @@ function wt(e) {
397
400
  }
398
401
  }
399
402
  function Tt(e, t) {
400
- return e.eventType === "SLA_TRIGGERED" || e.eventType === "SERVICE_TASK_FAILED" && Z(e.eventType, t) || R(t, "action") === "REJECTED" || R(t, "instanceState") === "REJECTED";
403
+ return e.eventType === "SLA_TRIGGERED" || e.eventType === "INSTANCE_EXPIRED" || e.eventType === "SERVICE_TASK_FAILED" && Z(e.eventType, t) || R(t, "action") === "REJECTED" || R(t, "instanceState") === "REJECTED";
401
404
  }
402
405
  function Et(e) {
403
406
  return t(e);
@@ -458,7 +461,7 @@ function Ot(e, t, n, r, i, a, o) {
458
461
  function $(e, t, n, r, i) {
459
462
  if (e.type === "startEvent" || i.has(e.id)) return !1;
460
463
  if (r === "REJECTED") return !0;
461
- let a = Lt(e, t, n, r);
464
+ let a = Rt(e, t, n, r);
462
465
  return a.tone === "neutral" || a.tone === "waiting";
463
466
  }
464
467
  function kt(e, t, n, r, i) {
@@ -542,36 +545,60 @@ function It(e, t, n, r, i, a, o, s, c) {
542
545
  ...f
543
546
  ];
544
547
  }
545
- function Lt(e, t, n, r) {
548
+ var Lt = {
549
+ APPROVED: {
550
+ statusLabel: "已完成",
551
+ tone: "completed"
552
+ },
553
+ CANCELLED: {
554
+ statusLabel: "已取消",
555
+ tone: "cancelled"
556
+ },
557
+ EXPIRED: {
558
+ statusLabel: "已逾期終止",
559
+ tone: "cancelled"
560
+ },
561
+ REJECTED: {
562
+ statusLabel: "已拒絕",
563
+ tone: "cancelled"
564
+ }
565
+ };
566
+ function Rt(e, t, n, r) {
546
567
  let i = t.filter((t) => t.nodeId === e.id), a = i.find((e) => e.status === "PENDING" || e.status === "IN_PROGRESS"), o = i.find((e) => e.status === "CANCELLED"), s = i.find((e) => e.status === "COMPLETED"), c = n.filter((t) => t.currentNodeId === e.id), l = c.find((e) => e.status === "ACTIVE"), u = c.find((e) => e.status === "WAITING");
547
- return a ? {
568
+ if (a) return {
548
569
  secondaryLabel: `處理者 ${W(a)}`,
549
570
  statusLabel: "待處理",
550
571
  tone: "current"
551
- } : o ? {
572
+ };
573
+ if (o) return {
552
574
  secondaryLabel: `已取消 ${W(o)}`,
553
575
  statusLabel: "已取消",
554
576
  tone: "cancelled"
555
- } : s ? {
577
+ };
578
+ if (s) return {
556
579
  secondaryLabel: `已完成 ${W(s)}`,
557
580
  statusLabel: "已完成",
558
581
  tone: "completed"
559
- } : l ? {
582
+ };
583
+ if (l) return {
560
584
  secondaryLabel: `token ${l.id}`,
561
585
  statusLabel: "執行中",
562
586
  tone: "current"
563
- } : u ? {
587
+ };
588
+ if (u) return {
564
589
  secondaryLabel: `token ${u.id}`,
565
590
  statusLabel: "等待前置",
566
591
  tone: "waiting"
567
- } : e.type === "startEvent" ? {
592
+ };
593
+ if (e.type === "startEvent") return {
568
594
  secondaryLabel: "流程已發起",
569
595
  statusLabel: "已發起",
570
596
  tone: "completed"
571
- } : e.type === "endEvent" && r !== "RUNNING" ? {
572
- secondaryLabel: r,
573
- statusLabel: r === "REJECTED" ? "已拒絕" : "已完成",
574
- tone: r === "REJECTED" ? "cancelled" : "completed"
597
+ };
598
+ let d = e.type === "endEvent" ? Lt[r] : void 0;
599
+ return d ? {
600
+ ...d,
601
+ secondaryLabel: r
575
602
  } : {
576
603
  secondaryLabel: H(e.type),
577
604
  statusLabel: "未抵達",
@@ -580,7 +607,7 @@ function Lt(e, t, n, r) {
580
607
  }
581
608
  //#endregion
582
609
  //#region src/views/instances/detail/sections/container-helpers.ts
583
- async function Rt({ activityLogs: e, adhocDirectives: t = [], instance: n, tasks: r }) {
610
+ async function zt({ activityLogs: e, adhocDirectives: t = [], instance: n, tasks: r }) {
584
611
  let i = [...new Set([
585
612
  n?.initiatorMemberId ?? null,
586
613
  n?.submittedByMemberId ?? null,
@@ -590,7 +617,7 @@ async function Rt({ activityLogs: e, adhocDirectives: t = [], instance: n, tasks
590
617
  ...r.map((e) => e.originalAssigneeMemberId),
591
618
  ...r.flatMap((e) => e.candidateMemberIds),
592
619
  ...r.flatMap((e) => nt(e.delegationChainJson).flatMap((e) => [e.from, e.to])),
593
- ...t.flatMap((e) => [e.createdByMemberId, ...zt(e.targetValueJson)])
620
+ ...t.flatMap((e) => [e.createdByMemberId, ...Bt(e.targetValueJson)])
594
621
  ].filter(z))];
595
622
  try {
596
623
  return await xe(i);
@@ -598,17 +625,17 @@ async function Rt({ activityLogs: e, adhocDirectives: t = [], instance: n, tasks
598
625
  return [];
599
626
  }
600
627
  }
601
- function zt(e) {
628
+ function Bt(e) {
602
629
  try {
603
630
  return (JSON.parse(e).memberIds ?? []).filter((e) => typeof e == "string");
604
631
  } catch {
605
632
  return [];
606
633
  }
607
634
  }
608
- async function Bt(e) {
635
+ async function Vt(e) {
609
636
  return (await Promise.all(e.map((e) => pe(e.id)))).flat();
610
637
  }
611
- function Vt(e) {
638
+ function Ht(e) {
612
639
  return e.reduce((e, t) => {
613
640
  let n = e.get(t.taskId), r = !n || new Date(t.decidedAt).getTime() > new Date(n.decidedAt).getTime() ? t : n;
614
641
  return new Map(e).set(t.taskId, r);
@@ -616,17 +643,17 @@ function Vt(e) {
616
643
  }
617
644
  //#endregion
618
645
  //#region src/views/instances/detail/sections/InstanceFormSection.tsx
619
- var Ht = {
646
+ var Ut = {
620
647
  display: "grid",
621
648
  gap: 16
622
- }, Ut = {
649
+ }, Wt = {
623
650
  display: "flex",
624
651
  flexWrap: "wrap",
625
652
  gap: 8
626
653
  };
627
- function Wt({ canResubmitInstance: e, deciding: t, error: n, instance: r, loading: i, onDataSourceStateChange: a, onResubmitFormChange: o, onResubmitInstance: c, onUploadAttachment: l, resubmitFormData: u, resubmitFormErrors: d }) {
654
+ function Gt({ canResubmitInstance: e, deciding: t, error: n, instance: r, loading: i, onDataSourceStateChange: a, onResubmitFormChange: o, onResubmitInstance: c, onUploadAttachment: l, resubmitFormData: u, resubmitFormErrors: d }) {
628
655
  return /* @__PURE__ */ E("div", {
629
- style: Ht,
656
+ style: Ut,
630
657
  children: [
631
658
  n ? /* @__PURE__ */ T(C, {
632
659
  color: "text-error",
@@ -656,7 +683,7 @@ function Wt({ canResubmitInstance: e, deciding: t, error: n, instance: r, loadin
656
683
  uiSchema: r.formDefinitionSnapshot.uiSchema,
657
684
  value: e ? u : r.formData
658
685
  }), e ? /* @__PURE__ */ T("div", {
659
- style: Ut,
686
+ style: Wt,
660
687
  children: /* @__PURE__ */ T(_, {
661
688
  disabled: t,
662
689
  icon: Pe,
@@ -675,11 +702,11 @@ function Wt({ canResubmitInstance: e, deciding: t, error: n, instance: r, loadin
675
702
  }
676
703
  //#endregion
677
704
  //#region src/views/instances/detail/sections/InstanceAttachmentsSection.tsx
678
- var Gt = {
705
+ var Kt = {
679
706
  display: "grid",
680
707
  gap: 16
681
708
  };
682
- function Kt({ attachments: e, onDownload: n, onPreview: r }) {
709
+ function qt({ attachments: e, onDownload: n, onPreview: r }) {
683
710
  let i = p(() => e.map((e) => ({
684
711
  attachment: e,
685
712
  createdAt: e.createdAt,
@@ -737,7 +764,7 @@ function Kt({ attachments: e, onDownload: n, onPreview: r }) {
737
764
  width: 160
738
765
  }), [n, r]);
739
766
  return /* @__PURE__ */ E("div", {
740
- style: Gt,
767
+ style: Kt,
741
768
  children: [/* @__PURE__ */ T(C, {
742
769
  component: "h2",
743
770
  variant: "h3",
@@ -756,44 +783,44 @@ function Kt({ attachments: e, onDownload: n, onPreview: r }) {
756
783
  }
757
784
  //#endregion
758
785
  //#region src/views/instances/detail/sections/InstanceTasksSection.tsx
759
- var qt = {
786
+ var Jt = {
760
787
  display: "grid",
761
788
  gap: 12,
762
789
  width: "100%"
763
- }, Jt = {
790
+ }, Yt = {
764
791
  minWidth: "100%",
765
792
  width: "100%"
766
- }, Yt = {
793
+ }, Xt = {
767
794
  display: "grid",
768
795
  gap: 12,
769
796
  width: "100%"
770
- }, Xt = { marginTop: 12 }, Zt = { marginTop: 24 };
771
- function Qt(e) {
797
+ }, Zt = { marginTop: 12 }, Qt = { marginTop: 24 };
798
+ function $t(e) {
772
799
  e && (e.style.width = "100%");
773
800
  }
774
- var $t = {
801
+ var en = {
775
802
  COMPLETION_NOTIFY: "結案通知",
776
803
  COUNTERSIGN: "臨時會簽",
777
804
  PRE_APPROVAL: "臨時加簽",
778
805
  STAGE_NOTIFY: "階段完成通知"
779
- }, en = {
806
+ }, tn = {
780
807
  COMPLETION_NOTIFY: "本張單到達結案狀態(核准 / 拒絕 / 取消)後,通知指定對象。",
781
808
  COUNTERSIGN: "指定對象會併入下一層簽核,下一層需所有人都完成才會繼續。",
782
809
  PRE_APPROVAL: "指定對象需先完成加簽,本階段才會往下一層繼續。",
783
810
  STAGE_NOTIFY: "本階段完成後(不論通過與否)通知指定對象。"
784
- }, tn = [{
811
+ }, nn = [{
785
812
  id: "REJECT_INSTANCE",
786
813
  name: "加簽拒絕時整單駁回"
787
814
  }, {
788
815
  id: "RETURN_TO_ORIGIN",
789
816
  name: "加簽拒絕時退回給我重新處理"
790
- }], nn = [{
817
+ }], rn = [{
791
818
  id: "MEMBER",
792
819
  name: "指定成員"
793
820
  }, {
794
821
  id: "WEBHOOK",
795
822
  name: "Webhook"
796
- }], rn = l(function({ adhocDirectives: e, currentMemberId: r, instance: i, memberProfilesById: o, onChanged: s, tasks: c }, l) {
823
+ }], an = l(function({ adhocDirectives: e, currentMemberId: r, instance: i, memberProfilesById: o, onChanged: s, tasks: c }, l) {
797
824
  let [u, d] = h(!1), [m, g] = h(null), [te, b] = h(""), [ne, re] = h(!1), [S, se] = h(""), [de, fe] = h(null), [pe, me] = h(!1), [he, ge] = h(""), [_e, ve] = h(!1), [xe, Se] = h(null), [Ce, Te] = h(""), [Ee, De] = h(null), [Oe, ke] = h(!1), [Ae, D] = h([]), [je, Me] = h(!1), [Ne, Pe] = h(""), [O, Fe] = h([]), [Ie, Le] = h(!1), [Re, ze] = h([]), [Be, Ve] = h(!1), [k, He] = h("COUNTERSIGN"), [Ue, We] = h("REJECT_INSTANCE"), [A, Ge] = h(!1), [Ke, qe] = h("MEMBER"), [Je, j] = h(""), M = S.trim(), Ye = he.trim(), Xe = Ce.trim(), N = p(() => c.find((e) => ft(e, r) && (e.status === "PENDING" || e.status === "IN_PROGRESS")) ?? null, [r, c]), P = p(() => N && i ? i.workflowSnapshot.nodes.find((e) => e.id === N.nodeId) ?? null : null, [N, i]), F = p(() => P && i ? G(i.workflowSnapshot, P) : [], [P, i]), Ze = P?.type === "userTask" && P.data.returnBehavior.allowReturn, I = P?.type === "userTask" && P.data.allowReject !== !1, Qe = P?.type === "userTask" && P.data.allowTransfer !== !1, L = P?.type === "userTask" && P.data.returnBehavior.requireComment === !0, $e = P?.type === "userTask" && P.data.allowAddSigner, et = p(() => e.filter((e) => e.status === "PENDING"), [e]), tt = F.find((e) => e.id === xe) ?? F[0] ?? null, nt = p(() => c.map((e) => ({
798
825
  ...e,
799
826
  assigneeLabel: W(e, o),
@@ -844,8 +871,8 @@ var $t = {
844
871
  ...e,
845
872
  createdByLabel: U(e.createdByMemberId, o),
846
873
  key: e.id,
847
- targetLabel: an(e, o),
848
- typeLabel: $t[e.type]
874
+ targetLabel: on(e, o),
875
+ typeLabel: en[e.type]
849
876
  })), [o, et]), it = p(() => [
850
877
  {
851
878
  dataIndex: "typeLabel",
@@ -1066,7 +1093,7 @@ var $t = {
1066
1093
  N,
1067
1094
  u
1068
1095
  ]);
1069
- let Q = k === "STAGE_NOTIFY" || k === "COMPLETION_NOTIFY", wt = Q && Ke === "WEBHOOK" ? !Je.trim() : O.length === 0, Tt = tn.find((e) => e.id === Ue) ?? tn[0], Et = nn.find((e) => e.id === Ke) ?? nn[0];
1096
+ let Q = k === "STAGE_NOTIFY" || k === "COMPLETION_NOTIFY", wt = Q && Ke === "WEBHOOK" ? !Je.trim() : O.length === 0, Tt = nn.find((e) => e.id === Ue) ?? nn[0], Et = rn.find((e) => e.id === Ke) ?? rn[0];
1070
1097
  return /* @__PURE__ */ E(w, { children: [
1071
1098
  /* @__PURE__ */ T(C, {
1072
1099
  component: "h2",
@@ -1079,7 +1106,7 @@ var $t = {
1079
1106
  children: m
1080
1107
  }) : null,
1081
1108
  /* @__PURE__ */ T("div", {
1082
- style: Xt,
1109
+ style: Zt,
1083
1110
  children: /* @__PURE__ */ T(ie, {
1084
1111
  columns: R,
1085
1112
  dataSource: nt,
@@ -1088,11 +1115,11 @@ var $t = {
1088
1115
  }),
1089
1116
  et.length > 0 ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(C, {
1090
1117
  component: "h3",
1091
- style: Zt,
1118
+ style: Qt,
1092
1119
  variant: "h3",
1093
1120
  children: "待生效的臨時設定"
1094
1121
  }), /* @__PURE__ */ T("div", {
1095
- style: Xt,
1122
+ style: Zt,
1096
1123
  children: /* @__PURE__ */ T(ie, {
1097
1124
  columns: it,
1098
1125
  dataSource: rt,
@@ -1119,7 +1146,7 @@ var $t = {
1119
1146
  variant: "body",
1120
1147
  children: m
1121
1148
  }) : null, /* @__PURE__ */ T("div", {
1122
- style: qt,
1149
+ style: Jt,
1123
1150
  children: /* @__PURE__ */ T(n, {
1124
1151
  label: "簽核意見",
1125
1152
  name: "approveComment",
@@ -1127,10 +1154,10 @@ var $t = {
1127
1154
  autoFocus: !0,
1128
1155
  onChange: (e) => b(e.target.value),
1129
1156
  placeholder: "選填,例如補充核准的條件或提醒事項",
1130
- ref: Qt,
1157
+ ref: $t,
1131
1158
  resize: "vertical",
1132
1159
  rows: 4,
1133
- style: Jt,
1160
+ style: Yt,
1134
1161
  value: te
1135
1162
  })
1136
1163
  })
@@ -1156,7 +1183,7 @@ var $t = {
1156
1183
  supportingText: "拒絕案件時必須留下原因,供發起人與後續追蹤查看。",
1157
1184
  title: "拒絕原因",
1158
1185
  children: /* @__PURE__ */ E("div", {
1159
- style: qt,
1186
+ style: Jt,
1160
1187
  children: [/* @__PURE__ */ T(n, {
1161
1188
  label: "拒絕原因",
1162
1189
  name: "rejectReason",
@@ -1167,10 +1194,10 @@ var $t = {
1167
1194
  se(e.target.value), fe(null);
1168
1195
  },
1169
1196
  placeholder: "請說明拒絕原因",
1170
- ref: Qt,
1197
+ ref: $t,
1171
1198
  resize: "vertical",
1172
1199
  rows: 4,
1173
- style: Jt,
1200
+ style: Yt,
1174
1201
  type: de ? "error" : "default",
1175
1202
  value: S
1176
1203
  })
@@ -1197,7 +1224,7 @@ var $t = {
1197
1224
  supportingText: "轉派後,原任務會保留轉派紀錄,新的待簽任務會指派給指定成員。",
1198
1225
  title: "轉派簽核",
1199
1226
  children: /* @__PURE__ */ E("div", {
1200
- style: Yt,
1227
+ style: Xt,
1201
1228
  children: [/* @__PURE__ */ T(n, {
1202
1229
  label: "轉派對象",
1203
1230
  name: "transferToMemberId",
@@ -1232,10 +1259,10 @@ var $t = {
1232
1259
  children: /* @__PURE__ */ T(ae, {
1233
1260
  onChange: (e) => Te(e.target.value),
1234
1261
  placeholder: "可補充轉派原因",
1235
- ref: Qt,
1262
+ ref: $t,
1236
1263
  resize: "vertical",
1237
1264
  rows: 4,
1238
- style: Jt,
1265
+ style: Yt,
1239
1266
  value: Ce
1240
1267
  })
1241
1268
  })]
@@ -1257,7 +1284,7 @@ var $t = {
1257
1284
  supportingText: "退回後,流程會回到指定節點並等待重新處理。",
1258
1285
  title: "退回簽核",
1259
1286
  children: /* @__PURE__ */ E("div", {
1260
- style: Yt,
1287
+ style: Xt,
1261
1288
  children: [/* @__PURE__ */ T(n, {
1262
1289
  label: "退回節點",
1263
1290
  name: "returnTargetNodeId",
@@ -1278,10 +1305,10 @@ var $t = {
1278
1305
  children: /* @__PURE__ */ T(ae, {
1279
1306
  onChange: (e) => ge(e.target.value),
1280
1307
  placeholder: L ? "請說明退回原因" : "可補充需要修改的內容",
1281
- ref: Qt,
1308
+ ref: $t,
1282
1309
  resize: "vertical",
1283
1310
  rows: 4,
1284
- style: Jt,
1311
+ style: Yt,
1285
1312
  value: he
1286
1313
  })
1287
1314
  })]
@@ -1300,10 +1327,10 @@ var $t = {
1300
1327
  showModalFooter: !0,
1301
1328
  showModalHeader: !0,
1302
1329
  size: "regular",
1303
- supportingText: en[k],
1304
- title: $t[k],
1330
+ supportingText: tn[k],
1331
+ title: en[k],
1305
1332
  children: /* @__PURE__ */ E("div", {
1306
- style: Yt,
1333
+ style: Xt,
1307
1334
  children: [
1308
1335
  Q ? /* @__PURE__ */ T(n, {
1309
1336
  label: "通知時機",
@@ -1315,14 +1342,14 @@ var $t = {
1315
1342
  onChange: (e) => He(e?.id === "COMPLETION_NOTIFY" ? "COMPLETION_NOTIFY" : "STAGE_NOTIFY"),
1316
1343
  options: [{
1317
1344
  id: "STAGE_NOTIFY",
1318
- name: $t.STAGE_NOTIFY
1345
+ name: en.STAGE_NOTIFY
1319
1346
  }, {
1320
1347
  id: "COMPLETION_NOTIFY",
1321
- name: $t.COMPLETION_NOTIFY
1348
+ name: en.COMPLETION_NOTIFY
1322
1349
  }],
1323
1350
  value: {
1324
1351
  id: k,
1325
- name: $t[k]
1352
+ name: en[k]
1326
1353
  }
1327
1354
  })
1328
1355
  }) : null,
@@ -1334,7 +1361,7 @@ var $t = {
1334
1361
  clearable: !1,
1335
1362
  fullWidth: !0,
1336
1363
  onChange: (e) => qe(e?.id === "WEBHOOK" ? "WEBHOOK" : "MEMBER"),
1337
- options: [...nn],
1364
+ options: [...rn],
1338
1365
  value: Et
1339
1366
  })
1340
1367
  }) : null,
@@ -1386,7 +1413,7 @@ var $t = {
1386
1413
  clearable: !1,
1387
1414
  fullWidth: !0,
1388
1415
  onChange: (e) => We(e?.id === "RETURN_TO_ORIGIN" ? "RETURN_TO_ORIGIN" : "REJECT_INSTANCE"),
1389
- options: [...tn],
1416
+ options: [...nn],
1390
1417
  value: Tt
1391
1418
  })
1392
1419
  }) : null,
@@ -1396,10 +1423,10 @@ var $t = {
1396
1423
  children: /* @__PURE__ */ T(ae, {
1397
1424
  onChange: (e) => Pe(e.target.value),
1398
1425
  placeholder: "可補充原因",
1399
- ref: Qt,
1426
+ ref: $t,
1400
1427
  resize: "vertical",
1401
1428
  rows: 3,
1402
- style: Jt,
1429
+ style: Yt,
1403
1430
  value: Ne
1404
1431
  })
1405
1432
  })
@@ -1408,7 +1435,7 @@ var $t = {
1408
1435
  })
1409
1436
  ] });
1410
1437
  });
1411
- function an(e, t) {
1438
+ function on(e, t) {
1412
1439
  try {
1413
1440
  let n = JSON.parse(e.targetValueJson);
1414
1441
  if (n.memberIds?.length) return n.memberIds.map((e) => U(e, t)).join("、");
@@ -1420,11 +1447,11 @@ function an(e, t) {
1420
1447
  }
1421
1448
  //#endregion
1422
1449
  //#region src/views/instances/detail/sections/InstanceSignaturesSection.tsx
1423
- var on = {
1450
+ var sn = {
1424
1451
  display: "grid",
1425
1452
  gap: 16
1426
1453
  };
1427
- function sn({ signatureVerification: e, signatures: n }) {
1454
+ function cn({ signatureVerification: e, signatures: n }) {
1428
1455
  let r = p(() => n.map((e) => ({
1429
1456
  algorithm: e.algorithm,
1430
1457
  hashLabel: ct(e.signedPayloadHash),
@@ -1465,7 +1492,7 @@ function sn({ signatureVerification: e, signatures: n }) {
1465
1492
  }
1466
1493
  ], []);
1467
1494
  return /* @__PURE__ */ E("div", {
1468
- style: on,
1495
+ style: sn,
1469
1496
  children: [
1470
1497
  /* @__PURE__ */ T(C, {
1471
1498
  component: "h2",
@@ -1487,35 +1514,35 @@ function sn({ signatureVerification: e, signatures: n }) {
1487
1514
  }
1488
1515
  //#endregion
1489
1516
  //#region src/views/instances/detail/sections/InstanceHistorySection.tsx
1490
- var cn = {
1517
+ var ln = {
1491
1518
  display: "grid",
1492
1519
  gap: 16
1493
- }, ln = {
1520
+ }, un = {
1494
1521
  cursor: "help",
1495
1522
  textDecoration: "underline dotted",
1496
1523
  textUnderlineOffset: 3
1497
- }, un = {
1524
+ }, dn = {
1498
1525
  borderLeftColor: "var(--mzn-color-border)",
1499
1526
  borderLeftStyle: "solid",
1500
1527
  borderLeftWidth: 2,
1501
1528
  marginTop: 4,
1502
1529
  paddingLeft: 8,
1503
1530
  whiteSpace: "pre-wrap"
1504
- }, dn = { color: "var(--mzn-color-text-secondary)" }, fn = {
1505
- ...un,
1531
+ }, fn = { color: "var(--mzn-color-text-secondary)" }, pn = {
1532
+ ...dn,
1506
1533
  borderLeftColor: "var(--mzn-color-text-error)",
1507
1534
  color: "var(--mzn-color-text-error)"
1508
1535
  };
1509
- function pn(...e) {
1536
+ function mn(...e) {
1510
1537
  return e.filter((e) => z(e ?? null)).join(" ");
1511
1538
  }
1512
- var mn = l(function({ className: e, descriptionParts: t, error: n, forcePending: r = !1, index: i = 0, orientation: a, status: o = "pending", title: s, type: l = "number", ...u }, d) {
1539
+ var hn = l(function({ className: e, descriptionParts: t, error: n, forcePending: r = !1, index: i = 0, orientation: a, status: o = "pending", title: s, type: l = "number", ...u }, d) {
1513
1540
  let f = r ? "pending" : o, p = t.filter((e) => e.type !== "comment"), m = t.filter((e) => e.type === "comment");
1514
1541
  return /* @__PURE__ */ E("div", {
1515
1542
  ...u,
1516
- className: pn(j.host, l === "dot" ? j.dot : null, n && f !== "processing" ? j.error : null, a === "horizontal" ? j.horizontal : null, l === "number" ? j.number : null, f === "pending" ? j.pending : null, f === "processing" ? j.processing : null, n && f === "processing" ? j.processingError : null, !n && f === "succeeded" ? j.succeeded : null, a === "vertical" ? j.vertical : null, e),
1543
+ className: mn(j.host, l === "dot" ? j.dot : null, n && f !== "processing" ? j.error : null, a === "horizontal" ? j.horizontal : null, l === "number" ? j.number : null, f === "pending" ? j.pending : null, f === "processing" ? j.processing : null, n && f === "processing" ? j.processingError : null, !n && f === "succeeded" ? j.succeeded : null, a === "vertical" ? j.vertical : null, e),
1517
1544
  ref: d,
1518
- children: [l === "dot" ? /* @__PURE__ */ T("span", { className: pn(j.statusIndicator, j.statusIndicatorDot) }) : /* @__PURE__ */ T("span", {
1545
+ children: [l === "dot" ? /* @__PURE__ */ T("span", { className: mn(j.statusIndicator, j.statusIndicatorDot) }) : /* @__PURE__ */ T("span", {
1519
1546
  className: j.statusIndicator,
1520
1547
  children: i + 1
1521
1548
  }), /* @__PURE__ */ E("div", {
@@ -1529,13 +1556,13 @@ var mn = l(function({ className: e, descriptionParts: t, error: n, forcePending:
1529
1556
  p.length > 0 ? /* @__PURE__ */ T(C, {
1530
1557
  className: j.description,
1531
1558
  variant: "caption",
1532
- children: p.map((e, t) => /* @__PURE__ */ E(c, { children: [t > 0 ? " · " : null, hn(e)] }, `${e.type}-${t}`))
1559
+ children: p.map((e, t) => /* @__PURE__ */ E(c, { children: [t > 0 ? " · " : null, gn(e)] }, `${e.type}-${t}`))
1533
1560
  }) : null,
1534
1561
  m.map((e, t) => /* @__PURE__ */ E(C, {
1535
- style: e.tone === "danger" ? fn : un,
1562
+ style: e.tone === "danger" ? pn : dn,
1536
1563
  variant: "body",
1537
1564
  children: [/* @__PURE__ */ E("span", {
1538
- style: e.tone === "danger" ? void 0 : dn,
1565
+ style: e.tone === "danger" ? void 0 : fn,
1539
1566
  children: [e.label, ":"]
1540
1567
  }), e.text]
1541
1568
  }, `comment-${t}`))
@@ -1543,7 +1570,7 @@ var mn = l(function({ className: e, descriptionParts: t, error: n, forcePending:
1543
1570
  })]
1544
1571
  });
1545
1572
  });
1546
- function hn(e) {
1573
+ function gn(e) {
1547
1574
  return e.type === "text" ? e.text : e.email?.trim() ? /* @__PURE__ */ E(w, { children: [
1548
1575
  e.prefix,
1549
1576
  ":",
@@ -1553,19 +1580,19 @@ function hn(e) {
1553
1580
  ...n,
1554
1581
  "data-testid": e.memberId ? `member-tooltip-${e.memberId}` : void 0,
1555
1582
  ref: t,
1556
- style: ln,
1583
+ style: un,
1557
1584
  children: e.label
1558
1585
  })
1559
1586
  })
1560
1587
  ] }) : `${e.prefix}:${e.label}`;
1561
1588
  }
1562
- function gn({ activityLogs: e, instanceState: t, memberProfilesById: n, signatureVerification: r, signaturesById: i, taskDecisionsByTaskId: a, tasks: o, workflowSnapshot: s, workflowTokens: c }) {
1589
+ function _n({ activityLogs: e, instanceState: t, memberProfilesById: n, signatureVerification: r, signaturesById: i, taskDecisionsByTaskId: a, tasks: o, workflowSnapshot: s, workflowTokens: c }) {
1563
1590
  let l = It(e, o, c, s, t, n, a, i, r), u = Y(l), d = l.map((e) => ({
1564
1591
  ...e,
1565
1592
  descriptionParts: e.descriptionParts.filter(J)
1566
1593
  }));
1567
1594
  return /* @__PURE__ */ E("div", {
1568
- style: cn,
1595
+ style: ln,
1569
1596
  children: [/* @__PURE__ */ T(C, {
1570
1597
  component: "h2",
1571
1598
  variant: "h3",
@@ -1574,7 +1601,7 @@ function gn({ activityLogs: e, instanceState: t, memberProfilesById: n, signatur
1574
1601
  currentStep: u,
1575
1602
  orientation: "vertical",
1576
1603
  type: "dot",
1577
- children: d.map((e) => /* @__PURE__ */ T(mn, {
1604
+ children: d.map((e) => /* @__PURE__ */ T(hn, {
1578
1605
  descriptionParts: e.descriptionParts,
1579
1606
  error: e.error,
1580
1607
  forcePending: e.forcePending,
@@ -1589,17 +1616,17 @@ function gn({ activityLogs: e, instanceState: t, memberProfilesById: n, signatur
1589
1616
  }
1590
1617
  //#endregion
1591
1618
  //#region src/views/instances/detail/sections/InstanceWebhookDeliveriesSection.tsx
1592
- var _n = {
1619
+ var vn = {
1593
1620
  display: "grid",
1594
1621
  gap: 16
1595
- }, vn = {
1622
+ }, yn = {
1596
1623
  display: "grid",
1597
1624
  gap: 2
1598
- }, yn = {
1625
+ }, bn = {
1599
1626
  overflowWrap: "anywhere",
1600
1627
  whiteSpace: "pre-wrap"
1601
1628
  };
1602
- function bn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1629
+ function xn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1603
1630
  let [r, i] = h(null), [a, o] = h(!1), [s, c] = h(null), l = p(() => e.map((e) => ({
1604
1631
  delivery: e,
1605
1632
  key: e.id
@@ -1607,7 +1634,7 @@ function bn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1607
1634
  {
1608
1635
  key: "endpoint",
1609
1636
  render: ({ delivery: e }) => /* @__PURE__ */ E("div", {
1610
- style: vn,
1637
+ style: yn,
1611
1638
  children: [/* @__PURE__ */ T(C, {
1612
1639
  component: "span",
1613
1640
  variant: "body",
@@ -1631,7 +1658,7 @@ function bn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1631
1658
  },
1632
1659
  {
1633
1660
  key: "status",
1634
- render: ({ delivery: e }) => /* @__PURE__ */ T(xn, { status: e.status }),
1661
+ render: ({ delivery: e }) => /* @__PURE__ */ T(Sn, { status: e.status }),
1635
1662
  title: "狀態",
1636
1663
  width: 120
1637
1664
  },
@@ -1648,7 +1675,7 @@ function bn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1648
1675
  {
1649
1676
  key: "lastError",
1650
1677
  render: ({ delivery: e }) => e.lastErrorCode && e.status !== "SENT" ? /* @__PURE__ */ E("div", {
1651
- style: vn,
1678
+ style: yn,
1652
1679
  children: [/* @__PURE__ */ T(C, {
1653
1680
  color: "text-error",
1654
1681
  component: "span",
@@ -1657,7 +1684,7 @@ function bn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1657
1684
  }), e.lastErrorDetail ? /* @__PURE__ */ T(C, {
1658
1685
  color: "text-neutral",
1659
1686
  component: "span",
1660
- style: yn,
1687
+ style: bn,
1661
1688
  variant: "caption",
1662
1689
  children: e.lastErrorDetail
1663
1690
  }) : null]
@@ -1675,7 +1702,7 @@ function bn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1675
1702
  render: ({ delivery: e }) => /* @__PURE__ */ T(C, {
1676
1703
  component: "span",
1677
1704
  variant: "body",
1678
- children: Sn(e)
1705
+ children: Cn(e)
1679
1706
  }),
1680
1707
  title: "時間",
1681
1708
  width: 220
@@ -1706,7 +1733,7 @@ function bn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1706
1733
  }
1707
1734
  }
1708
1735
  return /* @__PURE__ */ E("div", {
1709
- style: _n,
1736
+ style: vn,
1710
1737
  children: [
1711
1738
  /* @__PURE__ */ T(C, {
1712
1739
  component: "h2",
@@ -1754,7 +1781,7 @@ function bn({ deliveries: e, onRetry: t, readNodeLabel: n }) {
1754
1781
  ]
1755
1782
  });
1756
1783
  }
1757
- function xn({ status: e }) {
1784
+ function Sn({ status: e }) {
1758
1785
  return e === "SENT" ? /* @__PURE__ */ T(g, {
1759
1786
  size: "sub",
1760
1787
  text: "已送達",
@@ -1769,15 +1796,15 @@ function xn({ status: e }) {
1769
1796
  variant: "dot-info"
1770
1797
  });
1771
1798
  }
1772
- function Sn(e) {
1799
+ function Cn(e) {
1773
1800
  return e.sentAt ? `送達:${t(e.sentAt)}` : e.status === "PENDING" && e.nextRetryAt ? `下次重試:${t(e.nextRetryAt)}` : e.lastAttemptAt ? `最後嘗試:${t(e.lastAttemptAt)}` : `建立:${t(e.createdAt)}`;
1774
1801
  }
1775
1802
  //#endregion
1776
1803
  //#region src/views/instances/detail/InstanceDetailView.tsx
1777
- var Cn = 3e3, wn = 40, Tn = 184, En = 96, Dn = {
1804
+ var wn = 3e3, Tn = 40, En = 184, Dn = 96, On = {
1778
1805
  display: "grid",
1779
1806
  gap: 16
1780
- }, On = {
1807
+ }, kn = {
1781
1808
  background: "#f8fafc",
1782
1809
  border: "1px solid #e2e8f0",
1783
1810
  borderRadius: 8,
@@ -1785,7 +1812,7 @@ var Cn = 3e3, wn = 40, Tn = 184, En = 96, Dn = {
1785
1812
  minHeight: 440,
1786
1813
  overflow: "hidden",
1787
1814
  width: "min(80vw, 1040px)"
1788
- }, kn = {
1815
+ }, An = {
1789
1816
  background: "#ffffff",
1790
1817
  border: "1px solid #cbd5e1",
1791
1818
  borderRadius: 8,
@@ -1795,24 +1822,24 @@ var Cn = 3e3, wn = 40, Tn = 184, En = 96, Dn = {
1795
1822
  minHeight: 82,
1796
1823
  padding: 12,
1797
1824
  width: 184
1798
- }, An = {
1825
+ }, jn = {
1799
1826
  borderRadius: 999,
1800
1827
  fontSize: 12,
1801
1828
  fontWeight: 600,
1802
1829
  justifySelf: "start",
1803
1830
  lineHeight: "18px",
1804
1831
  padding: "0 8px"
1805
- }, jn = {
1832
+ }, Mn = {
1806
1833
  color: "#64748b",
1807
1834
  fontSize: 12,
1808
1835
  overflow: "hidden",
1809
1836
  textOverflow: "ellipsis",
1810
1837
  whiteSpace: "nowrap"
1811
- }, Mn = { opacity: 0 }, Nn = {
1838
+ }, Nn = { opacity: 0 }, Pn = {
1812
1839
  display: "flex",
1813
1840
  flexWrap: "wrap",
1814
1841
  gap: 8
1815
- }, Pn = {
1842
+ }, Fn = {
1816
1843
  alignItems: "center",
1817
1844
  background: "#ffffff",
1818
1845
  border: "1px solid #cbd5e1",
@@ -1824,19 +1851,19 @@ var Cn = 3e3, wn = 40, Tn = 184, En = 96, Dn = {
1824
1851
  gap: 6,
1825
1852
  lineHeight: "20px",
1826
1853
  padding: "4px 8px"
1827
- }, Fn = {
1854
+ }, In = {
1828
1855
  display: "grid",
1829
1856
  gap: 16
1830
- }, In = { workflowRuntime: Kn };
1831
- function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHistory: c = !0, showSignatures: l = !0, showTasks: f = !0, showWebhookDeliveries: ee = !0 }) {
1857
+ }, Ln = { workflowRuntime: qn };
1858
+ function Rn({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHistory: c = !0, showSignatures: l = !0, showTasks: f = !0, showWebhookDeliveries: ee = !0 }) {
1832
1859
  let { member: g } = e(), v = g?.memberId ?? null, x = ee && r(g), [re, ie] = h([]), [S, oe] = h(null), [ce, le] = h([]), [ue, pe] = h([]), [ye, be] = h([]), [xe, we] = h([]), [Oe, ke] = h(null), [D, je] = h([]), [O, Le] = h([]), [Re, Ve] = h([]), [We, A] = h(null), [Ke, qe] = h(!0), [Je, j] = h(!1), [M, Ye] = h(!1), [Xe, N] = h(""), [P, F] = h(!1), [Ze, I] = h({}), [L, $e] = h({}), [tt, nt] = h({}), [R, rt] = h(null), [it, at] = h(null), [ot, st] = h([]), ct = Xe.trim(), V = m(null), ut = m(0), H = xe.some((e) => e.status === "PENDING" || e.status === "DELIVERY_IN_PROGRESS");
1833
1860
  d(() => {
1834
1861
  X();
1835
1862
  }, [v, i]), d(() => {
1836
- if (!x || !H || ut.current >= wn) return;
1863
+ if (!x || !H || ut.current >= Tn) return;
1837
1864
  let e = setTimeout(() => {
1838
1865
  ut.current += 1, Ct();
1839
- }, Cn);
1866
+ }, wn);
1840
1867
  return () => clearTimeout(e);
1841
1868
  }, [
1842
1869
  x,
@@ -1856,20 +1883,20 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
1856
1883
  }
1857
1884
  };
1858
1885
  });
1859
- }, []), W = p(() => D.find((e) => ft(e, v) && (e.status === "PENDING" || e.status === "IN_PROGRESS")) ?? null, [v, D]), G = p(() => W && S ? S.workflowSnapshot.nodes.find((e) => e.id === W.nodeId) ?? null : null, [W, S]), pt = G?.type === "userTask" && G.data.returnBehavior.allowReturn, mt = G?.type === "userTask" && G.data.allowReject !== !1, ht = G?.type === "userTask" && G.data.allowTransfer !== !1, gt = G?.type === "userTask" && G.data.allowAddSigner, _t = !(!S || S.initiatorMemberId !== v || S.state !== "RUNNING" && S.state !== "RETURNED"), K = !!(S && S.initiatorMemberId === v && S.state === "RETURNED"), q = p(() => new Map(Re.map((e) => [e.memberId, e])), [Re]), vt = p(() => Vt(ce), [ce]), J = p(() => new Map(ye.map((e) => [e.id, e])), [ye]), Y = p(() => S ? Hn(S.workflowSnapshot) : null, [S]), yt = p(() => S && Y ? Vn(Y, D, O, S.state) : [], [
1886
+ }, []), W = p(() => D.find((e) => ft(e, v) && (e.status === "PENDING" || e.status === "IN_PROGRESS")) ?? null, [v, D]), G = p(() => W && S ? S.workflowSnapshot.nodes.find((e) => e.id === W.nodeId) ?? null : null, [W, S]), pt = G?.type === "userTask" && G.data.returnBehavior.allowReturn, mt = G?.type === "userTask" && G.data.allowReject !== !1, ht = G?.type === "userTask" && G.data.allowTransfer !== !1, gt = G?.type === "userTask" && G.data.allowAddSigner, _t = !(!S || S.initiatorMemberId !== v || S.state !== "RUNNING" && S.state !== "RETURNED"), K = !!(S && S.initiatorMemberId === v && S.state === "RETURNED"), q = p(() => new Map(Re.map((e) => [e.memberId, e])), [Re]), vt = p(() => Ht(ce), [ce]), J = p(() => new Map(ye.map((e) => [e.id, e])), [ye]), Y = p(() => S ? Un(S.workflowSnapshot) : null, [S]), yt = p(() => S && Y ? Hn(Y, D, O, S.state) : [], [
1860
1887
  S,
1861
1888
  Y,
1862
1889
  D,
1863
1890
  O
1864
- ]), bt = p(() => Y ? Un(Y) : [], [Y]), xt = p(() => S ? zn(S.workflowSnapshot) : [], [S]);
1891
+ ]), bt = p(() => Y ? Wn(Y) : [], [Y]), xt = p(() => S ? Bn(S.workflowSnapshot) : [], [S]);
1865
1892
  async function X() {
1866
1893
  qe(!0), A(null);
1867
1894
  try {
1868
1895
  let e = await he(i);
1869
1896
  ie(e.activityLogs), oe(e.instance), je(e.tasks), Le(e.workflowTokens);
1870
1897
  let t = await de(e.instance.id), [n, r, a, o, s] = await Promise.all([
1871
- Bt(e.tasks),
1872
- Rt({
1898
+ Vt(e.tasks),
1899
+ zt({
1873
1900
  ...e,
1874
1901
  adhocDirectives: t
1875
1902
  }),
@@ -2047,7 +2074,7 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
2047
2074
  ]
2048
2075
  }) }),
2049
2076
  /* @__PURE__ */ E(ne, { children: [
2050
- s ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(Wt, {
2077
+ s ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(Gt, {
2051
2078
  canResubmitInstance: K,
2052
2079
  deciding: Je,
2053
2080
  error: We,
@@ -2062,7 +2089,7 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
2062
2089
  resubmitFormData: L,
2063
2090
  resubmitFormErrors: Ze
2064
2091
  }) }) : null,
2065
- a ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(Kt, {
2092
+ a ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(qt, {
2066
2093
  attachments: ue,
2067
2094
  onDownload: (e) => {
2068
2095
  wt(e);
@@ -2071,7 +2098,7 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
2071
2098
  Tt(e);
2072
2099
  }
2073
2100
  }) }) : null,
2074
- f ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(rn, {
2101
+ f ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(an, {
2075
2102
  adhocDirectives: ot,
2076
2103
  currentMemberId: v,
2077
2104
  instance: S,
@@ -2080,16 +2107,16 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
2080
2107
  ref: V,
2081
2108
  tasks: D
2082
2109
  }) }) : null,
2083
- l ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(sn, {
2110
+ l ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(cn, {
2084
2111
  signatureVerification: Oe,
2085
2112
  signatures: ye
2086
2113
  }) }) : null,
2087
- x && xe.length > 0 ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(bn, {
2114
+ x && xe.length > 0 ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(xn, {
2088
2115
  deliveries: xe,
2089
2116
  onRetry: St,
2090
2117
  readNodeLabel: (e) => dt(e, S?.workflowSnapshot ?? null)
2091
2118
  }) }) : null,
2092
- c ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(gn, {
2119
+ c ? /* @__PURE__ */ T(b, { children: /* @__PURE__ */ T(_n, {
2093
2120
  activityLogs: re,
2094
2121
  instanceState: S?.state ?? "RUNNING",
2095
2122
  memberProfilesById: q,
@@ -2110,9 +2137,9 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
2110
2137
  supportingText: `${lt(S.state)} · ${t(S.startedAt)}`,
2111
2138
  title: "流程圖",
2112
2139
  children: /* @__PURE__ */ E("div", {
2113
- style: Dn,
2140
+ style: On,
2114
2141
  children: [/* @__PURE__ */ T("div", {
2115
- style: On,
2142
+ style: kn,
2116
2143
  children: /* @__PURE__ */ E(Ge, {
2117
2144
  edges: bt,
2118
2145
  fitView: !0,
@@ -2122,15 +2149,15 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
2122
2149
  nodes: yt,
2123
2150
  nodesDraggable: !1,
2124
2151
  nodesFocusable: !1,
2125
- nodeTypes: In,
2152
+ nodeTypes: Ln,
2126
2153
  panOnDrag: !0,
2127
2154
  proOptions: { hideAttribution: !0 },
2128
2155
  children: [/* @__PURE__ */ T(He, {}), /* @__PURE__ */ T(Ue, { showInteractive: !1 })]
2129
2156
  })
2130
2157
  }), xt.length > 0 ? /* @__PURE__ */ T("div", {
2131
- style: Nn,
2158
+ style: Pn,
2132
2159
  children: xt.map((e) => /* @__PURE__ */ T("span", {
2133
- style: Pn,
2160
+ style: Fn,
2134
2161
  children: e
2135
2162
  }, e))
2136
2163
  }) : null]
@@ -2168,7 +2195,7 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
2168
2195
  supportingText: "取消後會關閉目前待簽任務與候選簽核人。",
2169
2196
  title: "取消案件",
2170
2197
  children: /* @__PURE__ */ E("div", {
2171
- style: Fn,
2198
+ style: In,
2172
2199
  children: [/* @__PURE__ */ E(C, {
2173
2200
  variant: "body",
2174
2201
  children: [
@@ -2191,21 +2218,21 @@ function Ln({ instanceId: i, showAttachments: a = !0, showForm: s = !0, showHist
2191
2218
  })
2192
2219
  ] });
2193
2220
  }
2194
- function Rn(e) {
2195
- return e.data.label ? e.data.label : e.data.isDefault ? "其他情況" : e.data.condition ?? "";
2196
- }
2197
2221
  function zn(e) {
2198
- return e.edges.map(Rn).filter((e) => e.trim().length > 0);
2222
+ return e.data.label ? e.data.label : e.data.isDefault ? "其他情況" : e.data.condition ?? "";
2199
2223
  }
2200
2224
  function Bn(e) {
2225
+ return e.edges.map(zn).filter((e) => e.trim().length > 0);
2226
+ }
2227
+ function Vn(e) {
2201
2228
  return e === "startEvent" ? "開始" : e === "endEvent" ? "完成" : e === "userTask" ? "簽核節點" : e === "serviceTask" ? "知會節點" : e === "exclusiveGateway" ? "條件分流" : "平行處理";
2202
2229
  }
2203
- function Vn(e, t, n, r) {
2230
+ function Hn(e, t, n, r) {
2204
2231
  return e.nodes.map((e) => {
2205
- let i = Lt(e, t, n, r);
2232
+ let i = Rt(e, t, n, r);
2206
2233
  return {
2207
2234
  data: {
2208
- kindLabel: Bn(e.type),
2235
+ kindLabel: Vn(e.type),
2209
2236
  label: e.data.label,
2210
2237
  secondaryLabel: i.secondaryLabel,
2211
2238
  statusLabel: i.statusLabel,
@@ -2219,7 +2246,7 @@ function Vn(e, t, n, r) {
2219
2246
  };
2220
2247
  });
2221
2248
  }
2222
- function Hn(e) {
2249
+ function Un(e) {
2223
2250
  let t = new Ke.graphlib.Graph();
2224
2251
  return t.setDefaultEdgeLabel(() => ({})), t.setGraph({
2225
2252
  nodesep: 56,
@@ -2227,8 +2254,8 @@ function Hn(e) {
2227
2254
  ranksep: 120
2228
2255
  }), e.nodes.forEach((e) => {
2229
2256
  t.setNode(e.id, {
2230
- height: En,
2231
- width: Tn
2257
+ height: Dn,
2258
+ width: En
2232
2259
  });
2233
2260
  }), e.edges.forEach((e) => {
2234
2261
  t.setEdge(e.source, e.target);
@@ -2239,16 +2266,16 @@ function Hn(e) {
2239
2266
  return n ? {
2240
2267
  ...e,
2241
2268
  position: {
2242
- x: n.x - Tn / 2,
2243
- y: n.y - En / 2
2269
+ x: n.x - En / 2,
2270
+ y: n.y - Dn / 2
2244
2271
  }
2245
2272
  } : e;
2246
2273
  })
2247
2274
  };
2248
2275
  }
2249
- function Un(e) {
2276
+ function Wn(e) {
2250
2277
  return e.edges.map((e) => {
2251
- let t = Rn(e);
2278
+ let t = zn(e);
2252
2279
  return {
2253
2280
  animated: !1,
2254
2281
  id: e.id,
@@ -2276,25 +2303,25 @@ function Un(e) {
2276
2303
  };
2277
2304
  });
2278
2305
  }
2279
- function Wn(e) {
2306
+ function Gn(e) {
2280
2307
  return e === "current" ? {
2281
- ...kn,
2308
+ ...An,
2282
2309
  border: "1px solid var(--mzn-color-primary, #0057ff)",
2283
2310
  boxShadow: "0 0 0 3px rgba(0, 87, 255, 0.14)"
2284
2311
  } : e === "completed" ? {
2285
- ...kn,
2312
+ ...An,
2286
2313
  border: "1px solid #16a34a"
2287
2314
  } : e === "cancelled" ? {
2288
- ...kn,
2315
+ ...An,
2289
2316
  border: "1px solid #dc2626",
2290
2317
  opacity: .72
2291
2318
  } : e === "waiting" ? {
2292
- ...kn,
2319
+ ...An,
2293
2320
  border: "1px dashed #64748b"
2294
- } : kn;
2321
+ } : An;
2295
2322
  }
2296
- function Gn(e) {
2297
- let t = An;
2323
+ function Kn(e) {
2324
+ let t = jn;
2298
2325
  return e === "current" ? {
2299
2326
  ...t,
2300
2327
  background: "#eff6ff",
@@ -2317,14 +2344,14 @@ function Gn(e) {
2317
2344
  color: "#64748b"
2318
2345
  };
2319
2346
  }
2320
- function Kn({ data: e }) {
2347
+ function qn({ data: e }) {
2321
2348
  return /* @__PURE__ */ E("div", {
2322
- style: Wn(e.tone),
2349
+ style: Gn(e.tone),
2323
2350
  children: [
2324
2351
  /* @__PURE__ */ T(We, {
2325
2352
  isConnectable: !1,
2326
2353
  position: A.Left,
2327
- style: Mn,
2354
+ style: Nn,
2328
2355
  type: "target"
2329
2356
  }),
2330
2357
  /* @__PURE__ */ T(C, {
@@ -2335,24 +2362,24 @@ function Kn({ data: e }) {
2335
2362
  children: e.label
2336
2363
  }),
2337
2364
  /* @__PURE__ */ T("span", {
2338
- style: Gn(e.tone),
2365
+ style: Kn(e.tone),
2339
2366
  children: e.statusLabel
2340
2367
  }),
2341
2368
  /* @__PURE__ */ T("span", {
2342
2369
  title: e.secondaryLabel,
2343
- style: jn,
2370
+ style: Mn,
2344
2371
  children: e.secondaryLabel || e.kindLabel
2345
2372
  }),
2346
2373
  /* @__PURE__ */ T(We, {
2347
2374
  isConnectable: !1,
2348
2375
  position: A.Right,
2349
- style: Mn,
2376
+ style: Nn,
2350
2377
  type: "source"
2351
2378
  })
2352
2379
  ]
2353
2380
  });
2354
2381
  }
2355
2382
  //#endregion
2356
- export { rn as a, sn as i, bn as n, Kt as o, gn as r, Wt as s, Ln as t };
2383
+ export { an as a, cn as i, xn as n, qt as o, _n as r, Gt as s, Rn as t };
2357
2384
 
2358
- //# sourceMappingURL=detail-C6NdVijG.js.map
2385
+ //# sourceMappingURL=detail-DScLf42P.js.map