@abtnode/blocklet-services 1.16.40-beta-20250303-132654-d0e1975b → 1.16.40-beta-20250305-001025-5ee639c9

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 (195) hide show
  1. package/api/index.js +25 -6
  2. package/api/libs/email.js +8 -0
  3. package/api/routes/openevent.js +2 -2
  4. package/api/routes/user-session.js +2 -1
  5. package/api/services/notification/queue.js +11 -3
  6. package/api/socket/channel/did.js +72 -53
  7. package/api/socket/channel/eventbus.js +6 -0
  8. package/api/util/attach-shared-utils.js +2 -0
  9. package/dist/assets/{Add-Ek8OCMuT.js → Add-Cip-Q3Dt.js} +1 -1
  10. package/dist/assets/{ArrowDropDown-DZq1hKFM.js → ArrowDropDown-_ravVKaf.js} +1 -1
  11. package/dist/assets/{CheckCircle-h-5wsEcS.js → CheckCircle-CFF65I7d.js} +1 -1
  12. package/dist/assets/{ChevronLeft-DIOt0Dnm.js → ChevronLeft-DyVK0SyV.js} +1 -1
  13. package/dist/assets/{ChevronRight-C-nvqavT.js → ChevronRight-CMCOlQoz.js} +1 -1
  14. package/dist/assets/{DeleteOutline-BOp68orT.js → DeleteOutline-f6Nb7LK2.js} +1 -1
  15. package/dist/assets/{Done-BvLqpK-v.js → Done-DcyOV4wB.js} +1 -1
  16. package/dist/assets/{Download-DqMayZA9.js → Download-BcZsjfbS.js} +1 -1
  17. package/dist/assets/{EditIcon-lehrw0S5.js → EditIcon-CMs1pbEF.js} +1 -1
  18. package/dist/assets/{Error-C5z3wYEl.js → Error-tDg6ei77.js} +1 -1
  19. package/dist/assets/ExpandLess-RenWdANb.js +1 -0
  20. package/dist/assets/{Google-DW0b3C6a.js → Google-1jzD6KC8.js} +1 -1
  21. package/dist/assets/{InfoOutlined-9i-3RhVQ.js → InfoOutlined-B6WkOk1K.js} +1 -1
  22. package/dist/assets/{Launch-_IZJK_Vx.js → Launch-COjc0xnX.js} +1 -1
  23. package/dist/assets/{LaunchOutlined-CBNlUm6c.js → LaunchOutlined-DnsoPOkc.js} +1 -1
  24. package/dist/assets/{LockIcon-D4mzr6Ds.js → LockIcon-8k0MoCr8.js} +1 -1
  25. package/dist/assets/{MoreHoriz-CTCrqJvG.js → MoreHoriz-CdM4YEUS.js} +1 -1
  26. package/dist/assets/{PlayArrow-hvgEYgZA.js → PlayArrow-BtE24rss.js} +1 -1
  27. package/dist/assets/{QuestionMarkCircle-CVX4b3Jp.js → QuestionMarkCircle-DRDWkVkn.js} +1 -1
  28. package/dist/assets/{ServerLogo-CwSdifJS.js → ServerLogo-zTW7vice.js} +1 -1
  29. package/dist/assets/{ViewList-B-PdukqA.js → ViewList-BZ5ZAyNP.js} +1 -1
  30. package/dist/assets/{access-control-Bay4zhnb.js → access-control-DGnu8R-_.js} +1 -1
  31. package/dist/assets/actions-B1PhmGqt.js +1 -0
  32. package/dist/assets/add-component-core-Bbl0KUAk.js +765 -0
  33. package/dist/assets/add-resource-DtMCqT6r.js +1 -0
  34. package/dist/assets/{addon-C-LGA5c4.js → addon-DQmVM60-.js} +1 -1
  35. package/dist/assets/{analytics-BZ-j-os_.js → analytics-BpE1mSK8.js} +1 -1
  36. package/dist/assets/api-C4EBZ3D8.js +1 -0
  37. package/dist/assets/{ar-DKCGhCQr.js → ar-BvRDrl-h.js} +2 -2
  38. package/dist/assets/{audit-logs-C1Gyw98-.js → audit-logs-BniXTgud.js} +2 -2
  39. package/dist/assets/{base32-C1jmVeew.js → base32-BaFZoAVl.js} +1 -1
  40. package/dist/assets/{branding-DybmEyd0.js → branding-Bo2bC8bs.js} +2 -2
  41. package/dist/assets/{bundle-avatar-D5YGq25H.js → bundle-avatar-Sre-N_aE.js} +1 -1
  42. package/dist/assets/button-CtIW722z.js +1 -0
  43. package/dist/assets/click-to-copy-_PxhgXLr.js +1 -0
  44. package/dist/assets/cloneDeep-6qDcDoTp.js +1 -0
  45. package/dist/assets/{complete-Bnl2464f.js → complete-Bt6vm6Xh.js} +1 -1
  46. package/dist/assets/{component-CsbE8XV6.js → component-Dc-fRks0.js} +68 -68
  47. package/dist/assets/config-Bs1nzYyR.js +32 -0
  48. package/dist/assets/{config-DLsLRfYV.js → config-Ds5GJ36d.js} +1 -1
  49. package/dist/assets/{config-navigation-BM8q4Kld.js → config-navigation-WPDlQ1RJ.js} +4 -4
  50. package/dist/assets/{config-space-B21-FlA8.js → config-space-BwYNAO5S.js} +1 -1
  51. package/dist/assets/confirm-D9nnIOvs.js +7 -0
  52. package/dist/assets/{connect-DjpFqYv_.js → connect-BDN-wehP.js} +1 -1
  53. package/dist/assets/connect-CyW5d5Dv.js +1 -0
  54. package/dist/assets/{connect-to-CgQDh1qk.js → connect-to-Bl1JCiMg.js} +1 -1
  55. package/dist/assets/{content-layout-Dw7m52fz.js → content-layout-B8euliPp.js} +1 -1
  56. package/dist/assets/{dashboard-BRJbjsNF.js → dashboard-DyGi-puS.js} +11 -11
  57. package/dist/assets/{de-CCvzUauh.js → de-D18LzkQY.js} +2 -2
  58. package/dist/assets/{delete-confirm-CycQm1zC.js → delete-confirm-DZNkTsic.js} +1 -1
  59. package/dist/assets/{did-address-daPXJuXF.js → did-address-nBrtfdFs.js} +1 -1
  60. package/dist/assets/domain-CoZiXxyK.js +9 -0
  61. package/dist/assets/domain-action-card-DatWnWEH.js +17 -0
  62. package/dist/assets/domains-Cczdqu0Z.js +1 -0
  63. package/dist/assets/{email-BEDMCssb.js → email-DALnM6tC.js} +3 -3
  64. package/dist/assets/{es-Wou6JEaC.js → es-is1Q8RnK.js} +2 -2
  65. package/dist/assets/{exchange-passport-DpkACXar.js → exchange-passport-Bf-YSqcM.js} +1 -1
  66. package/dist/assets/{form-text-input-CL5UNLXF.js → form-text-input-gQXonEjr.js} +2 -2
  67. package/dist/assets/{format-error-C0Ke3VXF.js → format-error-LAoTjvJe.js} +1 -1
  68. package/dist/assets/{fr-Cvr2WC4J.js → fr-Buu4BG5m.js} +2 -2
  69. package/dist/assets/{fuel-OhNSkspC.js → fuel-DqVOAgbE.js} +1 -1
  70. package/dist/assets/{fullpage-C3gtnvua.js → fullpage-BcQv9PGo.js} +1 -1
  71. package/dist/assets/{get-safe-url-B21BiB8i.js → get-safe-url-COD6BqDE.js} +1 -1
  72. package/dist/assets/{get-safe-url-C2JaquA2.js → get-safe-url-DnoVfY5w.js} +1 -1
  73. package/dist/assets/{hi-ka40k8ho.js → hi-DGeeysYm.js} +1 -1
  74. package/dist/assets/{home-CqU5Kdbi.js → home-D5ywxuTl.js} +1 -1
  75. package/dist/assets/{id-u0hazIXA.js → id-NlIgbQ92.js} +2 -2
  76. package/dist/assets/{iframe-BP6lX9jz.js → iframe-BW5fhB2Q.js} +1 -1
  77. package/dist/assets/{index-CJtxyUnG.js → index-BUDaVPaJ.js} +4 -4
  78. package/dist/assets/{index-ISNTpwcS.js → index-BZu4MJFr.js} +1 -1
  79. package/dist/assets/{index-Dtw3nWy-.js → index-BmW4nkqT.js} +3 -3
  80. package/dist/assets/index-C-jNyGNZ.js +5 -0
  81. package/dist/assets/{index-CV3ZYUK0.js → index-C24CwgC5.js} +1 -1
  82. package/dist/assets/{index-CMCh4RTY.js → index-C6PabcPO.js} +1 -1
  83. package/dist/assets/index-CNtFrfyH.js +1 -0
  84. package/dist/assets/{index-CVcY_VTn.js → index-CR8UpawY.js} +8 -8
  85. package/dist/assets/{index-Cv9hbnTq.js → index-CpfGTKUf.js} +22 -22
  86. package/dist/assets/index-CsCfuYnX.js +138 -0
  87. package/dist/assets/{index-70BdZ2Qz.js → index-Cszfyf7Q.js} +1 -1
  88. package/dist/assets/{index-DdqHlWJ9.js → index-D-W1QzOs.js} +1 -1
  89. package/dist/assets/{index-Cj11xhYV.js → index-DPFaqs63.js} +1 -1
  90. package/dist/assets/{index-DrWKVSz_.js → index-DZeG-UP6.js} +1 -1
  91. package/dist/assets/{index-BPho8CPY.js → index-DmFVT2Y_.js} +1 -1
  92. package/dist/assets/{index-B33NNRC0.js → index-Mj8Kilqv.js} +1 -1
  93. package/dist/assets/{index-BvF7InmW.js → index-Y6bMeXBB.js} +1 -1
  94. package/dist/assets/{index-DiX6J9w5.js → index-Zz9qzQ_9.js} +30 -30
  95. package/dist/assets/{index-DHVQZzdw.js → index-a-qtpRvq.js} +3 -3
  96. package/dist/assets/index-bZdsGPmc.js +11 -0
  97. package/dist/assets/{index-BX3rOdw-.js → index-gpG3AUyG.js} +7 -7
  98. package/dist/assets/{index-DVYdq7IA.js → index-pV_0wOyY.js} +1 -1
  99. package/dist/assets/{index-DoZ2YM4T.js → index-tUQxVYYQ.js} +1 -1
  100. package/dist/assets/index.esm-CWepf7I_.js +1 -0
  101. package/dist/assets/{invitation-CjI5duN4.js → invitation-WgaVpLz-.js} +5 -5
  102. package/dist/assets/{invite-CPun5Od6.js → invite-CvRmEUzI.js} +1 -1
  103. package/dist/assets/{isEmail-BWNRBSAy.js → isEmail-DKEyei-O.js} +1 -1
  104. package/dist/assets/issue-passport-DvrxTzgL.js +1 -0
  105. package/dist/assets/{item-DyrFoThQ.js → item-BmR66mZ6.js} +1 -1
  106. package/dist/assets/{ja-D0tI3uZZ.js → ja-ZWJjus9M.js} +2 -2
  107. package/dist/assets/{ko-CMI6XHkl.js → ko-BhHmR8oQ.js} +2 -2
  108. package/dist/assets/{launch-result-message-BqgwRruP.js → launch-result-message-DgQUOIWL.js} +1 -1
  109. package/dist/assets/{layout-CzzCZbOO.js → layout-DTwYq-9q.js} +1 -1
  110. package/dist/assets/{list-DbowpmDP.js → list-BQIfnrdu.js} +4 -4
  111. package/dist/assets/{list-header-Dd-jrV-1.js → list-header-ZN_SAqiN.js} +1 -1
  112. package/dist/assets/localization-CP5Fgk5j.js +1 -0
  113. package/dist/assets/{log-CreobbQA.js → log-MmG2K3Cy.js} +1 -1
  114. package/dist/assets/{login-CRHjT4oe.js → login-D-xY5H2J.js} +1 -1
  115. package/dist/assets/login-bg-CBktcoss.jpg +0 -0
  116. package/dist/assets/{login-oauth-callback-CZ0U8oeZ.js → login-oauth-callback-C0RSY-FN.js} +1 -1
  117. package/dist/assets/{logo-uploader-hK9XhJ02.js → logo-uploader-COOjI78W.js} +3 -3
  118. package/dist/assets/{lost-passport-s5aUXZEv.js → lost-passport-XYMkiTwo.js} +4 -4
  119. package/dist/assets/{lottie-react.esm-CHpXrEmm.js → lottie-react.esm-CPHH620R.js} +1 -1
  120. package/dist/assets/omit-CxKFl3YR.js +1 -0
  121. package/dist/assets/{open-window-DwSZt4WB.js → open-window-DFyxvWDW.js} +1 -1
  122. package/dist/assets/{overview-D8oAW2La.js → overview-DhXk6dxJ.js} +1 -1
  123. package/dist/assets/{page-header-CEu1Ykmz.js → page-header-Bqi4eBBo.js} +1 -1
  124. package/dist/assets/{permission-c7HixHEA.js → permission-DfwAG69G.js} +1 -1
  125. package/dist/assets/{preferences-BinWMaZ6.js → preferences-CgrDODoo.js} +1 -1
  126. package/dist/assets/{pt-D1oQRAQ3.js → pt-BhvKzxfK.js} +1 -1
  127. package/dist/assets/publish-resource-mmACXheB.js +1 -0
  128. package/dist/assets/{raf-schd.esm-Cxhj8umC.js → raf-schd.esm-GV-XhwE0.js} +1 -1
  129. package/dist/assets/{react-beautiful-dnd.esm-CEqeHST8.js → react-beautiful-dnd.esm-Drgsy606.js} +1 -1
  130. package/dist/assets/{relative-time-CQJdt3Wa.js → relative-time-7jETcOaL.js} +1 -1
  131. package/dist/assets/{ru-BckdJ2zI.js → ru-Cc01DBPA.js} +1 -1
  132. package/dist/assets/sdk-BAIH7jDs.js +1 -0
  133. package/dist/assets/session-BqpWYLN3.js +1 -0
  134. package/dist/assets/setup-fPLYIoHX.js +19 -0
  135. package/dist/assets/{shorten-label-CRTt8ftG.js → shorten-label-DXP5M5GB.js} +1 -1
  136. package/dist/assets/simple-select-NHdBjvAy.js +1 -0
  137. package/dist/assets/{slicedToArray-C4pirt-5.js → slicedToArray-DPt500Gd.js} +1 -1
  138. package/dist/assets/{start-Q_P2Vv9q.js → start-R4emxzL_.js} +1 -1
  139. package/dist/assets/{status-Dcdkhvdh.js → status-Cn67FaBl.js} +1 -1
  140. package/dist/assets/{step-actions-Bw3C3mC4.js → step-actions-BzTrLOhC.js} +1 -1
  141. package/dist/assets/{studio-CcB75dSa.js → studio-CMXW7rb0.js} +1 -1
  142. package/dist/assets/{switch-control-ChDs2LUa.js → switch-control-DdM1x1I2.js} +1 -1
  143. package/dist/assets/{th-DcDC9AAH.js → th-DMmvF5EW.js} +1 -1
  144. package/dist/assets/{traffic-CcaFrARg.js → traffic-DgHqx0ot.js} +3 -3
  145. package/dist/assets/{transfer-CO1mYUp7.js → transfer-CFTVWUIN.js} +1 -1
  146. package/dist/assets/{unsubscribe-CrySuEC_.js → unsubscribe-ClBSlk0u.js} +1 -1
  147. package/dist/assets/{use-mobile-B37G6FHz.js → use-mobile-B-PzRAbm.js} +1 -1
  148. package/dist/assets/{useAsync-DIcJhKIm.js → useAsync-HJBQVHgn.js} +1 -1
  149. package/dist/assets/{useAsyncRetry-DCwz7CH3.js → useAsyncRetry-ru9OmM2c.js} +2 -2
  150. package/dist/assets/{useLocalStorage-fTkn9UDn.js → useLocalStorage-Cd_KRSFh.js} +1 -1
  151. package/dist/assets/{useSetState-Crt4S51m.js → useSetState-BL3ktMon.js} +1 -1
  152. package/dist/assets/{user-center-Cz68llKL.js → user-center-DlZwK1g7.js} +3 -3
  153. package/dist/assets/{util-BHPEeQvS.js → util-CuX2h5UG.js} +1 -1
  154. package/dist/assets/{util-B33zKhsE.js → util-b7UGzXHn.js} +1 -1
  155. package/dist/assets/vendor-arcblock-Bv04Mkff.js +3399 -0
  156. package/dist/assets/vendor-hooks-DlxYXMPL.js +7 -0
  157. package/dist/assets/{vendor-mui-core-BWT1QT-d.js → vendor-mui-core-Dh3XBxY7.js} +21 -21
  158. package/dist/assets/{vendor-mui-x-VJmvJUkN.js → vendor-mui-x-l1ezRCJc.js} +1 -1
  159. package/dist/assets/{vendor-react-D-afvo_7.js → vendor-react-DoD83n6N.js} +1 -1
  160. package/dist/assets/{vendor-utils-CzbloUV0.js → vendor-utils-oUOK1Lc7.js} +6 -6
  161. package/dist/assets/{vi-rd14DF59.js → vi-Bxs4l6dO.js} +1 -1
  162. package/dist/assets/wrap-locale-CkbmGs8Q.js +1 -0
  163. package/dist/assets/{zh-CP_Wl4iq.js → zh-Cw2E9SuI.js} +2 -2
  164. package/dist/assets/{zh-tw-Bm8MIAqQ.js → zh-tw-Dqct16yD.js} +2 -2
  165. package/dist/index.html +6 -6
  166. package/dist/service-worker.js +1 -1
  167. package/package.json +40 -40
  168. package/dist/assets/actions-C7XSyka2.js +0 -1
  169. package/dist/assets/add-component-core-wq0EAE8F.js +0 -765
  170. package/dist/assets/add-resource-aVrooseW.js +0 -1
  171. package/dist/assets/api-CSRyy6oj.js +0 -1
  172. package/dist/assets/button-CfubhTZK.js +0 -1
  173. package/dist/assets/click-to-copy-CWibjXuG.js +0 -1
  174. package/dist/assets/cloneDeep-DvDcCvik.js +0 -1
  175. package/dist/assets/config-DikFZPU7.js +0 -32
  176. package/dist/assets/confirm-DXc_P68H.js +0 -7
  177. package/dist/assets/connect--AWGAxeh.js +0 -1
  178. package/dist/assets/domain-CnpR2-Pn.js +0 -9
  179. package/dist/assets/domain-action-card-l5TDZbeH.js +0 -15
  180. package/dist/assets/domains-DYymQ_65.js +0 -1
  181. package/dist/assets/index-9jpmSx0L.js +0 -11
  182. package/dist/assets/index-CrKuY_PA.js +0 -5
  183. package/dist/assets/index-Dbwcynb7.js +0 -1
  184. package/dist/assets/issue-passport-DNmeWSmt.js +0 -1
  185. package/dist/assets/localization-DSADUTc6.js +0 -1
  186. package/dist/assets/login-bg-BMPVKR1k.svg +0 -5
  187. package/dist/assets/omit-C3h2fvu1.js +0 -1
  188. package/dist/assets/publish-resource-fOMJD2KN.js +0 -1
  189. package/dist/assets/sdk-B9ocVXGO.js +0 -1
  190. package/dist/assets/session-CsQYB5hx.js +0 -1
  191. package/dist/assets/setup-Bljvcr7F.js +0 -19
  192. package/dist/assets/simple-select-wXoKpx5r.js +0 -1
  193. package/dist/assets/vendor-arcblock-THecWMPk.js +0 -3500
  194. package/dist/assets/vendor-hooks-6khEvbqa.js +0 -7
  195. package/dist/assets/wrap-locale-CBhgBt-i.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-D8oAW2La.js","assets/vendor-mui-core-BWT1QT-d.js","assets/vendor-react-D-afvo_7.js","assets/vendor-arcblock-THecWMPk.js","assets/vendor-utils-CzbloUV0.js","assets/vendor-hooks-6khEvbqa.js","assets/vendor-arcblock-DhgPdlEj.css","assets/status-Dcdkhvdh.js","assets/omit-C3h2fvu1.js","assets/index-Cj11xhYV.js","assets/index-Cv9hbnTq.js","assets/did-address-daPXJuXF.js","assets/useLocalStorage-fTkn9UDn.js","assets/confirm-DXc_P68H.js","assets/format-error-C0Ke3VXF.js","assets/PlayArrow-hvgEYgZA.js","assets/get-safe-url-B21BiB8i.js","assets/index-BvF7InmW.js","assets/session-CsQYB5hx.js","assets/useAsyncRetry-DCwz7CH3.js","assets/useAsync-DIcJhKIm.js","assets/InfoOutlined-9i-3RhVQ.js","assets/useSetState-Crt4S51m.js","assets/domains-DYymQ_65.js","assets/domain-action-card-l5TDZbeH.js","assets/permission-c7HixHEA.js","assets/actions-C7XSyka2.js","assets/MoreHoriz-CTCrqJvG.js","assets/delete-confirm-CycQm1zC.js","assets/click-to-copy-CWibjXuG.js","assets/shorten-label-CRTt8ftG.js","assets/util-BHPEeQvS.js","assets/Add-Ek8OCMuT.js","assets/api-CSRyy6oj.js","assets/CheckCircle-h-5wsEcS.js","assets/index-DiX6J9w5.js","assets/index-DoZ2YM4T.js","assets/ViewList-B-PdukqA.js","assets/list-header-Dd-jrV-1.js","assets/DeleteOutline-BOp68orT.js","assets/util-B33zKhsE.js","assets/base32-C1jmVeew.js","assets/sdk-B9ocVXGO.js","assets/index-70BdZ2Qz.js","assets/index-BX3rOdw-.js","assets/EditIcon-lehrw0S5.js","assets/LockIcon-D4mzr6Ds.js","assets/Google-DW0b3C6a.js","assets/cloneDeep-DvDcCvik.js","assets/index-CVcY_VTn.js","assets/iframe-BP6lX9jz.js","assets/config-DLsLRfYV.js","assets/form-text-input-CL5UNLXF.js","assets/Done-BvLqpK-v.js","assets/logo-uploader-hK9XhJ02.js","assets/ArrowDropDown-DZq1hKFM.js","assets/ChevronRight-C-nvqavT.js","assets/bundle-avatar-D5YGq25H.js","assets/simple-select-wXoKpx5r.js","assets/isEmail-BWNRBSAy.js","assets/switch-control-ChDs2LUa.js","assets/audit-logs-C1Gyw98-.js","assets/index-DdqHlWJ9.js","assets/index-D4PP6P2d.css","assets/relative-time-CQJdt3Wa.js","assets/index-B33NNRC0.js","assets/index-DrWKVSz_.js","assets/list-DbowpmDP.js","assets/index-CV3ZYUK0.js","assets/traffic-CcaFrARg.js","assets/LaunchOutlined-CBNlUm6c.js","assets/ChevronLeft-DIOt0Dnm.js","assets/index-BPho8CPY.js","assets/vendor-mui-x-VJmvJUkN.js","assets/log-CreobbQA.js","assets/Download-DqMayZA9.js","assets/log-D33dFtt_.css","assets/index-CJtxyUnG.js","assets/Error-C5z3wYEl.js","assets/react-beautiful-dnd.esm-CEqeHST8.js","assets/raf-schd.esm-Cxhj8umC.js","assets/QuestionMarkCircle-CVX4b3Jp.js","assets/item-DyrFoThQ.js","assets/Launch-_IZJK_Vx.js","assets/config-navigation-BM8q4Kld.js","assets/slicedToArray-C4pirt-5.js","assets/index-ISNTpwcS.js","assets/index-CrKuY_PA.js","assets/use-mobile-B37G6FHz.js","assets/connect-to-CgQDh1qk.js","assets/config-space-B21-FlA8.js","assets/component-CsbE8XV6.js","assets/add-component-core-wq0EAE8F.js","assets/launch-result-message-BqgwRruP.js","assets/page-header-CEu1Ykmz.js","assets/index-9jpmSx0L.js","assets/content-layout-Dw7m52fz.js","assets/add-component-core-D-IRi6XF.css","assets/analytics-BZ-j-os_.js"])))=>i.map(i=>d[i]);
2
- import{z as Ge,f as M,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F as On,G as fe,H as $n,I as as,o as je,J as cs,K as ls,k as ln,g as us,j as ds,m as un,l as fs,n as ps,L as Oe,e as Re,M as hs,_ as z,O as ms,Q as dn,N as gs,c as fn}from"./index-Cv9hbnTq.js";import{a1 as U,j as o,E as m,aa as te,I as vt,ak as xs,ad as Mn,ah as yt,al as vs,bm as ys,a2 as re,bn as bs,bq as js,T as N,bx as ws,aN as pn,by as hn,a3 as I,a4 as ze,bz as Ss,t as Q,Z as Qe,bA as Cs,a5 as _s,bB as Is,bp as bt,am as Nn,bC as Es,aq as Ls,as as Ts,bD as zn,bE as Bn,bF as Un,A as ae,aj as Hn,aK as Ps}from"./vendor-mui-core-BWT1QT-d.js";import{a0 as H,ab as Rs,a2 as jt,ac as Ds,a3 as wt,b as $,z as mn,j as ee,e as X,_ as ks,ad as As,ae as Fn,af as Os,ag as $s,E as St,ah as Vn,ai as Ms,aj as Ns,ak as zs,C as Be,al as Bs,W as Us,am as Hs,an as Fs,H as Vs,R as qs,ao as Ws}from"./vendor-arcblock-THecWMPk.js";import{r as g,L as qn,k as Wn,f as Ks,l as Gs}from"./vendor-react-D-afvo_7.js";import{e as Ue,t as Qs}from"./vendor-hooks-6khEvbqa.js";import{x as Ct,a6 as Zs,a7 as Xs,y as $e,w as Js}from"./vendor-utils-CzbloUV0.js";import{_ as gn}from"./useLocalStorage-fTkn9UDn.js";import{C as xn}from"./confirm-DXc_P68H.js";import{d as Ys}from"./PlayArrow-hvgEYgZA.js";import{g as vn}from"./get-safe-url-B21BiB8i.js";import{f as _t}from"./format-error-C0Ke3VXF.js";import{c as ye,s as He,H as eo,h as Fe,f as Kn,p as Gn,B as to}from"./index-BvF7InmW.js";import{u as Qn}from"./session-CsQYB5hx.js";import{D as no,_ as Zn}from"./useAsyncRetry-DCwz7CH3.js";import{d as ro}from"./InfoOutlined-9i-3RhVQ.js";import{_ as Xn}from"./useSetState-Crt4S51m.js";var It={},so=U;Object.defineProperty(It,"__esModule",{value:!0});var Jn=It.default=void 0,oo=so(H()),io=o;Jn=It.default=(0,oo.default)((0,io.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Et={},ao=U;Object.defineProperty(Et,"__esModule",{value:!0});var Yn=Et.default=void 0,co=ao(H()),lo=o;Yn=Et.default=(0,co.default)((0,lo.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Lt={},uo=U;Object.defineProperty(Lt,"__esModule",{value:!0});var er=Lt.default=void 0,fo=uo(H()),po=o;er=Lt.default=(0,fo.default)((0,po.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Tt={},ho=U;Object.defineProperty(Tt,"__esModule",{value:!0});var tr=Tt.default=void 0,mo=ho(H()),go=o;tr=Tt.default=(0,mo.default)((0,go.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Pt={},xo=U;Object.defineProperty(Pt,"__esModule",{value:!0});var nr=Pt.default=void 0,vo=xo(H()),yo=o;nr=Pt.default=(0,vo.default)((0,yo.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Rt={},bo=U;Object.defineProperty(Rt,"__esModule",{value:!0});var rr=Rt.default=void 0,jo=bo(H()),wo=o;rr=Rt.default=(0,jo.default)((0,wo.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Dt={},So=U;Object.defineProperty(Dt,"__esModule",{value:!0});var sr=Dt.default=void 0,Co=So(H()),_o=o;sr=Dt.default=(0,Co.default)((0,_o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var kt={};Object.defineProperty(kt,"__esModule",{value:!0});var or=kt.default=void 0;Io(g);var yn=o;function Io(e){return e&&e.__esModule?e:{default:e}}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bn(Object(n),!0).forEach(function(r){Eo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eo(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lo(e){var t=To(e,"string");return typeof t=="symbol"?t:t+""}function To(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var At=function(t){return(0,yn.jsx)("svg",jn(jn({},t),{},{children:(0,yn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})}))};At.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};At.displayName="dashboard";or=kt.default=At;var Ot={},Po=U;Object.defineProperty(Ot,"__esModule",{value:!0});var ir=Ot.default=void 0,Ro=Po(H()),Do=o;ir=Ot.default=(0,Ro.default)((0,Do.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const de={Start:Ys,Stop:Jn,Restart:Yn,Reload:er,Remove:Rs,Config:tr,Log:nr,Group:rr,Cancel:sr,Dashboard:or,Overview:ir},ko=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),s=new URL(Ct(n.origin,t));return s.search=r.toString(),s.toString()},Ao="internal",Oo="external";function $t({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:s,getComponentUrl:i,useBlockletUrlEvaluation:a,...c}){const l=Ge(),[u,d]=g.useState(null),[f,p]=g.useState(null),[v,w]=g.useState(!1),[h,S]=g.useState(null),{t:y}=g.useContext(jt),[T]=gn("skip-blocklet-setup",!1),{loading:E,recommendedUrl:R}=a(e),[k]=gn("blocklet-type-filter",Ao),j=M.isInProgress(e.status),[b,C]=g.useState(!1);g.useEffect(()=>{var D,B;if(!(e!=null&&e.controller))return;C(((B=(D=e==null?void 0:e.controller)==null?void 0:D.status)==null?void 0:B.value)===Y.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var q,J,oe;try{const W=await l.api.getLauncherSession({input:{launcherSessionId:(q=e==null?void 0:e.controller)==null?void 0:q.launcherSessionId,launcherUrl:(J=e==null?void 0:e.controller)==null?void 0:J.launcherUrl}});if(W!=null&&W.error){console.error("get launcher session failed",W.error);return}C([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((oe=W==null?void 0:W.launcherSession)==null?void 0:oe.status))}catch(W){console.error("call getLauncherSession error",W)}})()},[]);const{inService:_}=l,L=(x,D,B=!1)=>async()=>{const q=async Le=>{var Pe;t({action:x,blocklet:e}),w(!0),p(x);let Te=!1;try{if(x==="remove")await D(Le);else if(x==="start"){if(!M.hasRunnableComponent(e)){ee.error(y("blocklet.noComponent"));return}if(!_&&!T&&!((Pe=e.settings)!=null&&Pe.initialized)&&e.mode!==Y.BLOCKLET_MODES.DEVELOPMENT){if(!R||!mn(R)){ee.error(y("blocklet.gotoVisitError"));return}const G=rs(l.info),cn=new URL(R);cn.searchParams.set("serverUrl",G),window.open(vn(cn.href,{allowDomains:null})),n({action:x,blocklet:e});return}const ie=e.children.filter(G=>!M.isInProgress(G.status)&&G.status!=="running").map(G=>G.meta.did),ue={did:e.meta.did,componentDids:ie};await D({input:ue})}else if(["stop","restart","reload"].includes(x)){const ie=e.children.filter(G=>G.status==="running").map(G=>G.meta.did),ue={did:e.meta.did,componentDids:ie};await D({input:ue})}else{const ie={did:e.meta.did};await D({input:ie})}x==="remove"?Te=!0:await ss(1e3),x==="reload"&&ee.success(y("blocklet.reloadSuccess")),S(null),n({action:x,blocklet:e})}catch(ie){const ue=`Blocklet ${x} failed: ${_t(ie)}`;throw n({action:x,blocklet:e,error:new Error(ue)}),new Error(ue)}finally{Te||w(!1)}},J=()=>{w(!1),S(null)},oe=M.getDisplayName(e,!0),W=e.mode===Y.BLOCKLET_MODES.DEVELOPMENT?{description:()=>o.jsx(N,{component:"div",children:o.jsx(N,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(Le,Te)=>o.jsxs(N,{component:"div",children:[o.jsx(N,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")}),o.jsxs(ws,{name:"removeType",value:Le.removeType,onChange:Pe=>Te({...Le,removeType:Pe.target.value}),children:[o.jsx(pn,{value:"backup",control:o.jsx(hn,{}),label:y("blocklet.action.removeApplicationAfterBackup")}),o.jsx(pn,{value:"complete",control:o.jsx(hn,{}),label:y("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ns={stop:{title:`${y("common.stop")} ${oe}`,description:y("blocklet.action.stopDescription"),confirm:y("blocklet.action.confirmStop"),cancel:y("common.cancel"),onConfirm:q,onCancel:J},restart:{title:`${y("common.restart")} ${oe}`,description:y("blocklet.action.restartDescription"),confirm:y("blocklet.action.confirmRestart"),cancel:y("common.cancel"),onConfirm:q,onCancel:J},remove:{title:`${y("common.remove")} ${oe}`,confirm:y("blocklet.action.confirmRemove"),cancel:y("common.cancel"),onConfirm:q,onCancel:J,...W},cancelDownload:{title:`${y("common.cancel")}`,description:y("blocklet.action.cancelDownloadDescription",{name:oe}),confirm:y("common.confirm"),cancel:y("common.cancel"),onConfirm:q,onCancel:J}};B?S(ns[x]):await q()},P=!!u,F=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(x.currentTarget)},V=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(null)},Ie=async(x,D)=>{try{D.stopPropagation(),D.preventDefault()}catch{}if(typeof x.handler=="function")try{w(!0),p(x.action),await x.handler()}catch(B){console.error(`Blocklet ${x.name} failed: `,B)}finally{w(!1),d(null)}else d(null)},Jr=!_&&M.isDeletableBlocklet(e)?{action:"remove",icon:de.Remove,name:y("common.remove"),handler:L("remove",async({removeType:x})=>{x==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:j}:null,Yr={action:"remove",icon:({sx:x,...D})=>o.jsx(de.Cancel,{sx:{...x,paddingRight:"2px",zoom:.95},...D}),name:y("common.cancel"),handler:L("cancelDownload",l.api.cancelDownloadBlocklet,!0)},es=M.getAppMissingConfigs(e),ts=()=>{var q;const x=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=i==null?void 0:i({mountPoint:x,blocklet:e});if(!D||!mn(D)){ee.error(y("blocklet.gotoVisitError"));return}const B=(q=e==null?void 0:e.site)==null?void 0:q.domainAliases;window.open(vn(ko(D,".well-known/service/admin"),{allowDomains:B==null?void 0:B.map(J=>J.value)}))};let Ee=[{action:"start",icon:de.Start,inExternal:!0,name:y("common.start"),handler:L("start",l.api.startBlocklet),disabled:b||e.children.every(x=>x.status==="running")||et(e.status)||E||j},{action:"stop",icon:de.Stop,inExternal:!0,name:y("common.stop"),handler:L("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:de.Restart,name:y("common.restart"),handler:L("restart",l.api.restartBlocklet,!0),disabled:b||e.status!=="running"},et(e.status)?Yr:Jr,{separator:!0},_?null:{action:"dashboard",icon:({style:x,...D})=>o.jsx(de.Dashboard,{...D,style:{...x,width:"26px",height:"26px",paddingRight:"3px"}}),name:y("sidebar.dashboard"),handler:ts}].filter(Boolean);return k===Oo&&(Ee=Ee.filter(x=>x.inExternal)),r==="menu"?o.jsxs(wn,{"data-cy":"blocklet-actions",children:[o.jsx(vt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:F,size:"small",disabled:!s||!et(e.status)&&v,children:o.jsx(Ds,{})}),o.jsxs(xs,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:P,onClose:V,PaperProps:{},children:[es.length>0&&o.jsxs(Mn,{style:{maxWidth:"400px"},severity:"error",children:[y("blocklet.config.missingRequired"),o.jsx("br",{}),o.jsx(qn,{to:`/blocklets/${e.meta.did}/components`,children:y("blocklet.config.gotoFix")})]}),Ee.map((x,D)=>x.separator?o.jsx(yt,{},`separator-${D}`):o.jsxs(vs,{dense:!0,onClick:B=>Ie(x,B),disabled:v||x.disabled,"data-cy":`${x.action}-blocklet`,children:[o.jsx(ys,{style:{minWidth:24},children:f===x.action&&v?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(x.icon,{fontSize:"small"})}),o.jsx(bs,{primary:x.name})]},x.name))]}),h&&o.jsx(xn,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]}):o.jsxs(wn,{"data-cy":"blocklet-actions",...c,children:[o.jsx(js,{children:Ee.filter(x=>!x.separator&&!x.onlyInMenu).map(x=>o.jsxs(wt,{title:x.name,"data-cy":`${x.action}-blocklet`,onClick:()=>Ie(x),disabled:!!x.disabled||v,children:[f===x.action&&v?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(x.icon,{}),o.jsx("span",{className:"blocklet-action-text",children:x.name})]},x.name))}),h&&o.jsx(xn,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}$t.propTypes={getComponentUrl:m.func,blocklet:m.object.isRequired,onStart:m.func.isRequired,onComplete:m.func.isRequired,variant:m.oneOf(["menu","group"]),hasPermission:m.bool,useBlockletUrlEvaluation:m.func};$t.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const wn=te.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-DhXk6dxJ.js","assets/vendor-mui-core-Dh3XBxY7.js","assets/vendor-react-DoD83n6N.js","assets/vendor-arcblock-Bv04Mkff.js","assets/vendor-utils-oUOK1Lc7.js","assets/vendor-hooks-DlxYXMPL.js","assets/vendor-arcblock-DhgPdlEj.css","assets/status-Cn67FaBl.js","assets/omit-CxKFl3YR.js","assets/index-DPFaqs63.js","assets/index-CpfGTKUf.js","assets/did-address-nBrtfdFs.js","assets/useLocalStorage-Cd_KRSFh.js","assets/confirm-D9nnIOvs.js","assets/format-error-LAoTjvJe.js","assets/PlayArrow-BtE24rss.js","assets/get-safe-url-DnoVfY5w.js","assets/index-Y6bMeXBB.js","assets/session-BqpWYLN3.js","assets/useAsyncRetry-ru9OmM2c.js","assets/useAsync-HJBQVHgn.js","assets/InfoOutlined-B6WkOk1K.js","assets/useSetState-BL3ktMon.js","assets/domains-Cczdqu0Z.js","assets/domain-action-card-DatWnWEH.js","assets/ExpandLess-RenWdANb.js","assets/permission-DfwAG69G.js","assets/actions-B1PhmGqt.js","assets/MoreHoriz-CdM4YEUS.js","assets/delete-confirm-DZNkTsic.js","assets/click-to-copy-_PxhgXLr.js","assets/shorten-label-DXP5M5GB.js","assets/util-CuX2h5UG.js","assets/Add-Cip-Q3Dt.js","assets/api-C4EBZ3D8.js","assets/CheckCircle-CFF65I7d.js","assets/index-Zz9qzQ_9.js","assets/index-tUQxVYYQ.js","assets/ViewList-BZ5ZAyNP.js","assets/list-header-ZN_SAqiN.js","assets/DeleteOutline-f6Nb7LK2.js","assets/util-b7UGzXHn.js","assets/base32-BaFZoAVl.js","assets/sdk-BAIH7jDs.js","assets/index-Cszfyf7Q.js","assets/index-gpG3AUyG.js","assets/EditIcon-CMs1pbEF.js","assets/LockIcon-8k0MoCr8.js","assets/Google-1jzD6KC8.js","assets/cloneDeep-6qDcDoTp.js","assets/index-CR8UpawY.js","assets/iframe-BW5fhB2Q.js","assets/config-Ds5GJ36d.js","assets/form-text-input-gQXonEjr.js","assets/Done-DcyOV4wB.js","assets/logo-uploader-COOjI78W.js","assets/ArrowDropDown-_ravVKaf.js","assets/ChevronRight-CMCOlQoz.js","assets/bundle-avatar-Sre-N_aE.js","assets/index.esm-CWepf7I_.js","assets/isEmail-DKEyei-O.js","assets/switch-control-DdM1x1I2.js","assets/simple-select-NHdBjvAy.js","assets/audit-logs-BniXTgud.js","assets/index-D-W1QzOs.js","assets/index-D4PP6P2d.css","assets/relative-time-7jETcOaL.js","assets/index-Mj8Kilqv.js","assets/index-DZeG-UP6.js","assets/list-BQIfnrdu.js","assets/index-C24CwgC5.js","assets/traffic-DgHqx0ot.js","assets/LaunchOutlined-DnsoPOkc.js","assets/ChevronLeft-DyVK0SyV.js","assets/index-DmFVT2Y_.js","assets/vendor-mui-x-l1ezRCJc.js","assets/log-MmG2K3Cy.js","assets/Download-BcZsjfbS.js","assets/log-D33dFtt_.css","assets/index-BUDaVPaJ.js","assets/Error-tDg6ei77.js","assets/react-beautiful-dnd.esm-Drgsy606.js","assets/raf-schd.esm-GV-XhwE0.js","assets/QuestionMarkCircle-DRDWkVkn.js","assets/item-BmR66mZ6.js","assets/Launch-COjc0xnX.js","assets/config-navigation-WPDlQ1RJ.js","assets/slicedToArray-DPt500Gd.js","assets/index-BZu4MJFr.js","assets/index-C-jNyGNZ.js","assets/use-mobile-B-PzRAbm.js","assets/connect-to-Bl1JCiMg.js","assets/config-space-BwYNAO5S.js","assets/index-CsCfuYnX.js","assets/component-Dc-fRks0.js","assets/add-component-core-Bbl0KUAk.js","assets/launch-result-message-DgQUOIWL.js","assets/page-header-Bqi4eBBo.js","assets/index-bZdsGPmc.js","assets/content-layout-B8euliPp.js","assets/add-component-core-D-IRi6XF.css","assets/analytics-BpE1mSK8.js"])))=>i.map(i=>d[i]);
2
+ import{z as Ge,f as z,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F as On,G as fe,H as $n,I as as,o as je,J as cs,K as ls,k as ln,g as us,j as ds,m as un,l as fs,n as ps,L as Oe,e as Re,M as hs,_ as M,O as ms,Q as dn,N as gs,c as fn}from"./index-CpfGTKUf.js";import{a1 as H,j as o,E as m,aa as te,I as vt,bk as xs,ad as Mn,am as yt,ak as vs,bi as ys,a2 as re,bj as bs,bn as js,T as B,bu as ws,aI as pn,bv as hn,a3 as C,a4 as ze,bw as Ss,t as Q,Z as Qe,bx as Cs,a5 as _s,by as Is,bm as bt,bz as Nn,bA as Es,ai as Ls,ab as Ts,bB as zn,bC as Bn,bD as Un,A as ae,bh as Hn,aE as Ps}from"./vendor-mui-core-Dh3XBxY7.js";import{a0 as F,ab as Rs,a2 as jt,ac as ks,a3 as wt,b as $,z as mn,j as ee,e as X,_ as Ds,ad as As,ae as Fn,af as Os,ag as $s,E as St,ah as Vn,ai as Ms,aj as Ns,ak as zs,C as Be,al as Bs,W as Us,am as Hs,an as Fs,H as Vs,R as qs,ao as Ws}from"./vendor-arcblock-Bv04Mkff.js";import{r as g,L as qn,k as Wn,u as Ks,l as Gs}from"./vendor-react-DoD83n6N.js";import{e as Ue,v as Qs}from"./vendor-hooks-DlxYXMPL.js";import{x as Ct,a7 as Zs,a8 as Xs,y as $e,w as Js}from"./vendor-utils-oUOK1Lc7.js";import{_ as gn}from"./useLocalStorage-Cd_KRSFh.js";import{C as xn}from"./confirm-D9nnIOvs.js";import{d as Ys}from"./PlayArrow-BtE24rss.js";import{g as vn}from"./get-safe-url-DnoVfY5w.js";import{f as _t}from"./format-error-LAoTjvJe.js";import{c as ye,s as He,H as eo,h as Fe,f as Kn,p as Gn,B as to}from"./index-Y6bMeXBB.js";import{u as Qn}from"./session-BqpWYLN3.js";import{D as no,_ as Zn}from"./useAsyncRetry-ru9OmM2c.js";import{d as ro}from"./InfoOutlined-B6WkOk1K.js";import{_ as Xn}from"./useSetState-BL3ktMon.js";var It={},so=H;Object.defineProperty(It,"__esModule",{value:!0});var Jn=It.default=void 0,oo=so(F()),io=o;Jn=It.default=(0,oo.default)((0,io.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Et={},ao=H;Object.defineProperty(Et,"__esModule",{value:!0});var Yn=Et.default=void 0,co=ao(F()),lo=o;Yn=Et.default=(0,co.default)((0,lo.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Lt={},uo=H;Object.defineProperty(Lt,"__esModule",{value:!0});var er=Lt.default=void 0,fo=uo(F()),po=o;er=Lt.default=(0,fo.default)((0,po.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Tt={},ho=H;Object.defineProperty(Tt,"__esModule",{value:!0});var tr=Tt.default=void 0,mo=ho(F()),go=o;tr=Tt.default=(0,mo.default)((0,go.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Pt={},xo=H;Object.defineProperty(Pt,"__esModule",{value:!0});var nr=Pt.default=void 0,vo=xo(F()),yo=o;nr=Pt.default=(0,vo.default)((0,yo.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Rt={},bo=H;Object.defineProperty(Rt,"__esModule",{value:!0});var rr=Rt.default=void 0,jo=bo(F()),wo=o;rr=Rt.default=(0,jo.default)((0,wo.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var kt={},So=H;Object.defineProperty(kt,"__esModule",{value:!0});var sr=kt.default=void 0,Co=So(F()),_o=o;sr=kt.default=(0,Co.default)((0,_o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});var or=Dt.default=void 0;Io(g);var yn=o;function Io(e){return e&&e.__esModule?e:{default:e}}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bn(Object(n),!0).forEach(function(r){Eo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eo(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lo(e){var t=To(e,"string");return typeof t=="symbol"?t:t+""}function To(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var At=function(t){return(0,yn.jsx)("svg",jn(jn({},t),{},{children:(0,yn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})}))};At.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};At.displayName="dashboard";or=Dt.default=At;var Ot={},Po=H;Object.defineProperty(Ot,"__esModule",{value:!0});var ir=Ot.default=void 0,Ro=Po(F()),ko=o;ir=Ot.default=(0,Ro.default)((0,ko.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const de={Start:Ys,Stop:Jn,Restart:Yn,Reload:er,Remove:Rs,Config:tr,Log:nr,Group:rr,Cancel:sr,Dashboard:or,Overview:ir},Do=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),s=new URL(Ct(n.origin,t));return s.search=r.toString(),s.toString()},Ao="internal",Oo="external";function $t({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:s,getComponentUrl:i,useBlockletUrlEvaluation:a,...c}){const l=Ge(),[u,d]=g.useState(null),[f,p]=g.useState(null),[y,w]=g.useState(!1),[h,S]=g.useState(null),{t:b}=g.useContext(jt),[T]=gn("skip-blocklet-setup",!1),{loading:I,recommendedUrl:R}=a(e),[D]=gn("blocklet-type-filter",Ao),j=z.isInProgress(e.status),[E,x]=g.useState(!1);g.useEffect(()=>{var k,U;if(!(e!=null&&e.controller))return;x(((U=(k=e==null?void 0:e.controller)==null?void 0:k.status)==null?void 0:U.value)===Y.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var q,J,oe;try{const W=await l.api.getLauncherSession({input:{launcherSessionId:(q=e==null?void 0:e.controller)==null?void 0:q.launcherSessionId,launcherUrl:(J=e==null?void 0:e.controller)==null?void 0:J.launcherUrl}});if(W!=null&&W.error){console.error("get launcher session failed",W.error);return}x([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((oe=W==null?void 0:W.launcherSession)==null?void 0:oe.status))}catch(W){console.error("call getLauncherSession error",W)}})()},[]);const{inService:_}=l,L=(v,k,U=!1)=>async()=>{const q=async Le=>{var Pe;t({action:v,blocklet:e}),w(!0),p(v);let Te=!1;try{if(v==="remove")await k(Le);else if(v==="start"){if(!z.hasRunnableComponent(e)){ee.error(b("blocklet.noComponent"));return}if(!_&&!T&&!((Pe=e.settings)!=null&&Pe.initialized)&&e.mode!==Y.BLOCKLET_MODES.DEVELOPMENT){if(!R||!mn(R)){ee.error(b("blocklet.gotoVisitError"));return}const G=rs(l.info),cn=new URL(R);cn.searchParams.set("serverUrl",G),window.open(vn(cn.href,{allowDomains:null})),n({action:v,blocklet:e});return}const ie=e.children.filter(G=>!z.isInProgress(G.status)&&G.status!=="running").map(G=>G.meta.did),ue={did:e.meta.did,componentDids:ie};await k({input:ue})}else if(["stop","restart","reload"].includes(v)){const ie=e.children.filter(G=>G.status==="running").map(G=>G.meta.did),ue={did:e.meta.did,componentDids:ie};await k({input:ue})}else{const ie={did:e.meta.did};await k({input:ie})}v==="remove"?Te=!0:await ss(1e3),v==="reload"&&ee.success(b("blocklet.reloadSuccess")),S(null),n({action:v,blocklet:e})}catch(ie){const ue=`Blocklet ${v} failed: ${_t(ie)}`;throw n({action:v,blocklet:e,error:new Error(ue)}),new Error(ue)}finally{Te||w(!1)}},J=()=>{w(!1),S(null)},oe=z.getDisplayName(e,!0),W=e.mode===Y.BLOCKLET_MODES.DEVELOPMENT?{description:()=>o.jsx(B,{component:"div",children:o.jsx(B,{gutterBottom:!0,children:b("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(Le,Te)=>o.jsxs(B,{component:"div",children:[o.jsx(B,{gutterBottom:!0,children:b("blocklet.action.removeApplicationDescription")}),o.jsxs(ws,{name:"removeType",value:Le.removeType,onChange:Pe=>Te({...Le,removeType:Pe.target.value}),children:[o.jsx(pn,{value:"backup",control:o.jsx(hn,{}),label:b("blocklet.action.removeApplicationAfterBackup")}),o.jsx(pn,{value:"complete",control:o.jsx(hn,{}),label:b("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ns={stop:{title:`${b("common.stop")} ${oe}`,description:b("blocklet.action.stopDescription"),confirm:b("blocklet.action.confirmStop"),cancel:b("common.cancel"),onConfirm:q,onCancel:J},restart:{title:`${b("common.restart")} ${oe}`,description:b("blocklet.action.restartDescription"),confirm:b("blocklet.action.confirmRestart"),cancel:b("common.cancel"),onConfirm:q,onCancel:J},remove:{title:`${b("common.remove")} ${oe}`,confirm:b("blocklet.action.confirmRemove"),cancel:b("common.cancel"),onConfirm:q,onCancel:J,...W},cancelDownload:{title:`${b("common.cancel")}`,description:b("blocklet.action.cancelDownloadDescription",{name:oe}),confirm:b("common.confirm"),cancel:b("common.cancel"),onConfirm:q,onCancel:J}};U?S(ns[v]):await q()},P=!!u,V=v=>{try{v.stopPropagation(),v.preventDefault()}catch{}d(v.currentTarget)},N=v=>{try{v.stopPropagation(),v.preventDefault()}catch{}d(null)},Ie=async(v,k)=>{try{k.stopPropagation(),k.preventDefault()}catch{}if(typeof v.handler=="function")try{w(!0),p(v.action),await v.handler()}catch(U){console.error(`Blocklet ${v.name} failed: `,U)}finally{w(!1),d(null)}else d(null)},Jr=!_&&z.isDeletableBlocklet(e)?{action:"remove",icon:de.Remove,name:b("common.remove"),handler:L("remove",async({removeType:v})=>{v==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:j}:null,Yr={action:"remove",icon:({sx:v,...k})=>o.jsx(de.Cancel,{sx:{...v,paddingRight:"2px",zoom:.95},...k}),name:b("common.cancel"),handler:L("cancelDownload",l.api.cancelDownloadBlocklet,!0)},es=z.getAppMissingConfigs(e),ts=()=>{var q;const v=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),k=i==null?void 0:i({mountPoint:v,blocklet:e});if(!k||!mn(k)){ee.error(b("blocklet.gotoVisitError"));return}const U=(q=e==null?void 0:e.site)==null?void 0:q.domainAliases;window.open(vn(Do(k,".well-known/service/admin"),{allowDomains:U==null?void 0:U.map(J=>J.value)}))};let Ee=[{action:"start",icon:de.Start,inExternal:!0,name:b("common.start"),handler:L("start",l.api.startBlocklet),disabled:E||e.children.every(v=>v.status==="running")||et(e.status)||I||j},{action:"stop",icon:de.Stop,inExternal:!0,name:b("common.stop"),handler:L("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:de.Restart,name:b("common.restart"),handler:L("restart",l.api.restartBlocklet,!0),disabled:E||e.status!=="running"},et(e.status)?Yr:Jr,{separator:!0},_?null:{action:"dashboard",icon:({style:v,...k})=>o.jsx(de.Dashboard,{...k,style:{...v,width:"26px",height:"26px",paddingRight:"3px"}}),name:b("sidebar.dashboard"),handler:ts}].filter(Boolean);return D===Oo&&(Ee=Ee.filter(v=>v.inExternal)),r==="menu"?o.jsxs(wn,{"data-cy":"blocklet-actions",children:[o.jsx(vt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:V,size:"small",disabled:!s||!et(e.status)&&y,children:o.jsx(ks,{})}),o.jsxs(xs,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:P,onClose:N,PaperProps:{},children:[es.length>0&&o.jsxs(Mn,{style:{maxWidth:"400px"},severity:"error",children:[b("blocklet.config.missingRequired"),o.jsx("br",{}),o.jsx(qn,{to:`/blocklets/${e.meta.did}/components`,children:b("blocklet.config.gotoFix")})]}),Ee.map((v,k)=>v.separator?o.jsx(yt,{},`separator-${k}`):o.jsxs(vs,{dense:!0,onClick:U=>Ie(v,U),disabled:y||v.disabled,"data-cy":`${v.action}-blocklet`,children:[o.jsx(ys,{style:{minWidth:24},children:f===v.action&&y?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(v.icon,{fontSize:"small"})}),o.jsx(bs,{primary:v.name})]},v.name))]}),h&&o.jsx(xn,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]}):o.jsxs(wn,{"data-cy":"blocklet-actions",...c,children:[o.jsx(js,{children:Ee.filter(v=>!v.separator&&!v.onlyInMenu).map(v=>o.jsxs(wt,{title:v.name,"data-cy":`${v.action}-blocklet`,onClick:()=>Ie(v),disabled:!!v.disabled||y,children:[f===v.action&&y?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(v.icon,{}),o.jsx("span",{className:"blocklet-action-text",children:v.name})]},v.name))}),h&&o.jsx(xn,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}$t.propTypes={getComponentUrl:m.func,blocklet:m.object.isRequired,onStart:m.func.isRequired,onComplete:m.func.isRequired,variant:m.oneOf(["menu","group"]),hasPermission:m.bool,useBlockletUrlEvaluation:m.func};$t.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const wn=te.div`
3
3
  display: flex;
4
4
  align-items: center;
5
5
 
@@ -9,7 +9,7 @@ import{z as Ge,f as M,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F a
9
9
  font-size: 10px;
10
10
  }
11
11
  }
12
- `,$o=g.memo($t),Mo=e=>{const t={};let n=null;return M.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=M.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},No=(e,t,n)=>{var i;const{hostname:r,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!c)return s;const l=c[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith($.DEFAULT_DID_DOMAIN))||"").replace(`.${$.DEFAULT_DID_DOMAIN}`,"");return d?s.replace(r,`${d}-${l}.${$.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function ar(){const{t:e}=X(),{api:t}=Qn(),{blocklet:n}=os(),{inService:r}=Ge(),[s,i]=g.useState(!1),[a,c]=g.useState(5),l=n&&n.structVersion!==$.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){ee.error(e("blocklet.migrate.tip.running"));return}const p=Mo(n);if(p){ee.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){ee.error(_t(p))}},d=()=>{const p=No(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),c(5),setInterval(()=>{c(v=>v-1)},1e3)},f=()=>i(!1);return[l&&o.jsxs(Mn,{severity:"warning",style:{margin:"12px 0"},children:[o.jsxs(I,{display:"flex",alignItems:"center",children:[o.jsx(wt,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),o.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>o.jsx(I,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&o.jsx(ks,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:is(n,!0),title:M.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:a>=0?e("blocklet.migrate.success",{sec:a}):"Redirecting..."},onClose:f},"connect")]}ar.propTypes={};function Mt({children:e,style:t,...n}){return o.jsx(As,{style:t,...n,children:e})}Mt.propTypes={children:m.any.isRequired,style:m.object};Mt.defaultProps={style:{}};const A={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"};function Nt({isResource:e,status:t,variant:n,source:r,progress:s,...i}){const{t:a}=g.useContext(jt),c={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:A.grey,waiting:A.yellow,downloading:A.yellow,extracting:A.yellow,downloaded:A.grey,installing:A.yellow,installed:A.grey,starting:A.yellow,running:A.running,stopping:A.yellow,stopped:A.reverse,error:A.error,upgrading:A.yellow,restarting:A.yellow,corrupted:A.error,deleting:A.yellow,resource:A.primary},u=M.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=a(`blocklet.status.${d}`);return n==="pin"?o.jsx(ze,{title:a("blocklet.statusTip",{status:f}),children:o.jsxs(I,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...i,children:[o.jsx(I,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:l[d],style:{opacity:.15}}),o.jsx(I,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:l[d]})]})}):n==="dot"?o.jsx(ze,{title:a("blocklet.statusTip",{status:f}),children:o.jsx(no,{color:l[d],...i})}):o.jsxs(Mt,{type:c[d],...i,children:[u&&o.jsx(re,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&s?o.jsx("div",{style:{marginLeft:5},children:`${s} %`}):null]})}Nt.propTypes={status:m.string.isRequired,variant:m.oneOf(["dot","tag","pin"]),source:m.string,progress:m.number,isResource:m.bool};Nt.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};const cr=g.createContext({});function zt({children:e,type:t}){const[n,r]=g.useState([]),s=g.useRef([]),i=l=>{if(!s.current.includes(l)){const u=[...s.current,l];r(u),s.current=u}},a=l=>{if(s.current.includes(l)){const u=s.current.filter(d=>d!==l);r(u),s.current=u}},c=l=>{const u=n.filter(f=>l.find(p=>p===f));Zs(u,n).forEach(f=>a(f))};return o.jsx(cr.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:a,matchDeletingDid:c},children:e})}zt.propTypes={type:m.string,children:m.node.isRequired};zt.defaultProps={type:"blocklets"};function Oc(){return g.useContext(cr)}function zo(){const e=Ss();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const s=Q(e.breakpoints.up(r));return!n&&s?r:n},null)||"xs"}function Bo(e){return o.jsx(Qe,{...e,children:o.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})})}function Uo(e){return o.jsx(Qe,{...e,children:o.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Ho(e){return o.jsx(Qe,{...e,children:o.jsx("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})})}function Fo(e){return o.jsx(Qe,{...e,children:o.jsx("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z"})})}const De={fontSize:20,marginInlineEnd:8},Vo={success:o.jsx(Bo,{style:De}),warning:o.jsx(Uo,{style:De}),error:o.jsx(Ho,{style:De}),info:o.jsx(Fo,{style:De})},qo=Cs(e=>{const t={xl:"400px",lg:"400px",md:"400px",sm:"300px"},n=e.palette.background.default;return{lessPadding:{paddingLeft:8*2.5},contentRoot:{...e.typography.body2,display:"flex",backgroundColor:n,color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},success:r=>({backgroundColor:`${_s[600]} !important`,width:t[r.breakpoint]}),error:r=>({backgroundColor:`${e.palette.error.dark} !important`,width:t[r.breakpoint]}),info:r=>({backgroundColor:`${e.palette.primary.main} !important`,width:t[r.breakpoint]}),warning:r=>({backgroundColor:`${Is[700]} !important`,width:t[r.breakpoint]}),icon:{fontSize:20},message:{display:"flex",alignItems:"center",padding:"8px 0",flex:1,width:0},action:{display:"flex",alignItems:"center",marginLeft:"auto",marginRight:-8,width:44}}});function Bt({keyId:e,notification:t={},viewAllUrl:n,content:r},s){const i=qo({breakpoint:zo()}),a=[i.contentRoot,i.lessPadding,i[t.severity]].join(" "),c=Vo[t.severity],{closeSnackbar:l}=Fn(),u=()=>l(e),d=Wn(),f=()=>{l(e),d(n)};return o.jsxs(Os,{ref:s,className:a,children:[o.jsxs("div",{className:i.message,children:[c,o.jsxs(Ko,{onClick:f,children:[o.jsx("span",{className:"title",children:t.title}),r||o.jsx("span",{className:"desc",children:t.description})]})]}),o.jsx("div",{className:i.action,children:o.jsx(vt,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:o.jsx($s,{className:i.icon})},"close")})]})}const Wo=g.forwardRef(Bt);Bt.propTypes={viewAllUrl:m.string.isRequired,keyId:m.number.isRequired,notification:m.object.isRequired,content:m.node};Bt.defaultProps={content:null};const Ko=te.div`
12
+ `,$o=g.memo($t),Mo=e=>{const t={};let n=null;return z.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=z.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},No=(e,t,n)=>{var i;const{hostname:r,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!c)return s;const l=c[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith($.DEFAULT_DID_DOMAIN))||"").replace(`.${$.DEFAULT_DID_DOMAIN}`,"");return d?s.replace(r,`${d}-${l}.${$.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function ar(){const{t:e}=X(),{api:t}=Qn(),{blocklet:n}=os(),{inService:r}=Ge(),[s,i]=g.useState(!1),[a,c]=g.useState(5),l=n&&n.structVersion!==$.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){ee.error(e("blocklet.migrate.tip.running"));return}const p=Mo(n);if(p){ee.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){ee.error(_t(p))}},d=()=>{const p=No(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},f=()=>i(!1);return[l&&o.jsxs(Mn,{severity:"warning",style:{margin:"12px 0"},children:[o.jsxs(C,{display:"flex",alignItems:"center",children:[o.jsx(wt,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),o.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>o.jsx(C,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&o.jsx(Ds,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:is(n,!0),title:z.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:a>=0?e("blocklet.migrate.success",{sec:a}):"Redirecting..."},onClose:f},"connect")]}ar.propTypes={};function Mt({children:e,style:t,...n}){return o.jsx(As,{style:t,...n,children:e})}Mt.propTypes={children:m.any.isRequired,style:m.object};Mt.defaultProps={style:{}};const A={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"};function Nt({isResource:e,status:t,variant:n,source:r,progress:s,...i}){const{t:a}=g.useContext(jt),c={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:A.grey,waiting:A.yellow,downloading:A.yellow,extracting:A.yellow,downloaded:A.grey,installing:A.yellow,installed:A.grey,starting:A.yellow,running:A.running,stopping:A.yellow,stopped:A.reverse,error:A.error,upgrading:A.yellow,restarting:A.yellow,corrupted:A.error,deleting:A.yellow,resource:A.primary},u=z.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=a(`blocklet.status.${d}`);return n==="pin"?o.jsx(ze,{title:a("blocklet.statusTip",{status:f}),children:o.jsxs(C,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...i,children:[o.jsx(C,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:l[d],style:{opacity:.15}}),o.jsx(C,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:l[d]})]})}):n==="dot"?o.jsx(ze,{title:a("blocklet.statusTip",{status:f}),children:o.jsx(no,{color:l[d],...i})}):o.jsxs(Mt,{type:c[d],...i,children:[u&&o.jsx(re,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&s?o.jsx("div",{style:{marginLeft:5},children:`${s} %`}):null]})}Nt.propTypes={status:m.string.isRequired,variant:m.oneOf(["dot","tag","pin"]),source:m.string,progress:m.number,isResource:m.bool};Nt.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};const cr=g.createContext({});function zt({children:e,type:t}){const[n,r]=g.useState([]),s=g.useRef([]),i=l=>{if(!s.current.includes(l)){const u=[...s.current,l];r(u),s.current=u}},a=l=>{if(s.current.includes(l)){const u=s.current.filter(d=>d!==l);r(u),s.current=u}},c=l=>{const u=n.filter(f=>l.find(p=>p===f));Zs(u,n).forEach(f=>a(f))};return o.jsx(cr.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:a,matchDeletingDid:c},children:e})}zt.propTypes={type:m.string,children:m.node.isRequired};zt.defaultProps={type:"blocklets"};function $c(){return g.useContext(cr)}function zo(){const e=Ss();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const s=Q(e.breakpoints.up(r));return!n&&s?r:n},null)||"xs"}function Bo(e){return o.jsx(Qe,{...e,children:o.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})})}function Uo(e){return o.jsx(Qe,{...e,children:o.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Ho(e){return o.jsx(Qe,{...e,children:o.jsx("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})})}function Fo(e){return o.jsx(Qe,{...e,children:o.jsx("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z"})})}const ke={fontSize:20,marginInlineEnd:8},Vo={success:o.jsx(Bo,{style:ke}),warning:o.jsx(Uo,{style:ke}),error:o.jsx(Ho,{style:ke}),info:o.jsx(Fo,{style:ke})},qo=Cs(e=>{const t={xl:"400px",lg:"400px",md:"400px",sm:"300px"},n=e.palette.background.default;return{lessPadding:{paddingLeft:8*2.5},contentRoot:{...e.typography.body2,display:"flex",backgroundColor:n,color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},success:r=>({backgroundColor:`${_s[600]} !important`,width:t[r.breakpoint]}),error:r=>({backgroundColor:`${e.palette.error.dark} !important`,width:t[r.breakpoint]}),info:r=>({backgroundColor:`${e.palette.primary.main} !important`,width:t[r.breakpoint]}),warning:r=>({backgroundColor:`${Is[700]} !important`,width:t[r.breakpoint]}),icon:{fontSize:20},message:{display:"flex",alignItems:"center",padding:"8px 0",flex:1,width:0},action:{display:"flex",alignItems:"center",marginLeft:"auto",marginRight:-8,width:44}}});function Bt({keyId:e,notification:t={},viewAllUrl:n,content:r},s){const i=qo({breakpoint:zo()}),a=[i.contentRoot,i.lessPadding,i[t.severity]].join(" "),c=Vo[t.severity],{closeSnackbar:l}=Fn(),u=()=>l(e),d=Wn(),f=()=>{l(e),d(n)};return o.jsxs(Os,{ref:s,className:a,children:[o.jsxs("div",{className:i.message,children:[c,o.jsxs(Ko,{onClick:f,children:[o.jsx("span",{className:"title",children:t.title}),r||o.jsx("span",{className:"desc",children:t.description})]})]}),o.jsx("div",{className:i.action,children:o.jsx(vt,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:o.jsx($s,{className:i.icon})},"close")})]})}const Wo=g.forwardRef(Bt);Bt.propTypes={viewAllUrl:m.string.isRequired,keyId:m.number.isRequired,notification:m.object.isRequired,content:m.node};Bt.defaultProps={content:null};const Ko=te.div`
13
13
  cursor: pointer;
14
14
  display: flex;
15
15
  flex-direction: column;
@@ -29,7 +29,7 @@ import{z as Ge,f as M,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F a
29
29
  -webkit-box-orient: vertical;
30
30
  word-break: break-word;
31
31
  }
32
- `;function lr({attachment:e}){const{data:t}=e;let n="";try{n=new URL(t.url).host}catch{n=t.url}return o.jsxs(bt,{target:"_blank",rel:"noopener noreferrer",href:t.url,className:"link",style:{wordBreak:"break-all"},children:[!!n&&o.jsx("span",{className:"url",children:n}),!!t.title&&o.jsx(I,{className:"title",style:{whiteSpace:"unset"},children:t.title}),!!t.description&&o.jsx(I,{className:"description",style:{whiteSpace:"unset",color:"rgba(75, 85, 99, 1)"},children:t.description}),!!t.image&&o.jsx("img",{src:An.getImagePath(t.image),alt:t.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}lr.propTypes={attachment:m.object.isRequired};function ur({attachment:e}){const{data:t}=e;return o.jsx("img",{src:An.getImagePath(t.url),alt:t.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}ur.propTypes={attachment:m.object.isRequired};function Ut({attachment:e,...t}){var c;const{data:n}=e,r=((c=n.color)==null?void 0:c.toLowerCase())||t.color,s=n.size||t.size,i=n.fontWeight||t.fontWeight||400;let a="14px";return s==="small"?a="12px":s==="normal"?a="14px":s==="big"?a="16px":s==="large"&&(a="18px"),o.jsx("span",{className:"title",style:{fontSize:a,color:r,whiteSpace:"unset",fontWeight:i},children:n.text})}Ut.propTypes={attachment:m.object.isRequired};Ht.propTypes={locale:m.string,data:m.object.isRequired};Ht.defaultProps={locale:"en"};function Ht({locale:e="en",data:t}){const n={zh:"来自",en:"from"}[e]||"from",r={zh:"接收",en:"Received"}[e]||"Received",i=`https://${ye.getUrlHost(t.chainHost)||ye.getChainHost(t.chainId)}/explorer/tokens/${t.address}/tx`;let a=t.amount;t.decimal&&(a=t.amount/10**t.decimal);const c=Ue(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return o.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:o.jsxs(I,{display:"flex",flexDirection:"column",children:[o.jsxs(I,{sx:c,children:[o.jsx(N,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:r}),o.jsxs(N,{component:"div",align:"right",style:He.summaryStyle,flex:1,children:["+",a," ",t.symbol]})]}),o.jsxs(I,{sx:c,children:[o.jsx(N,{component:"div",style:{...He.remarkStyle,fontSize:14},children:n}),o.jsx(I,{sx:{maxWidth:"252px",fontSize:"14px"},children:o.jsx(St,{did:t.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}Ft.propTypes={locale:m.string,data:m.object.isRequired};Ft.defaultProps={locale:"en"};function Ft({locale:e,data:t}){var l,u;const n={zh:"接收",en:"Received"}[e]||"Received",r={zh:"来自",en:"from"}[e]||"from",s=ye.getUrlHost(t.chainHost)||ye.getChainHost(t.chainId),i=t.did||((u=(l=t==null?void 0:t.credential)==null?void 0:l.issuer)==null?void 0:u.id)||"",a=`https://${s}/explorer/assets/${i}`,c=Ue(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return o.jsx(I,{sx:{pr:1},children:o.jsx("a",{href:a,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},rel:"noreferrer",children:o.jsxs(I,{display:"flex",flexDirection:"column",children:[o.jsxs(I,{sx:c,children:[o.jsx(N,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:n}),o.jsx(N,{component:"div",align:"right",style:He.summaryStyle,children:"+1 Asset"})]}),i?o.jsxs(I,{sx:c,children:[o.jsx(N,{component:"div",style:{...He.remarkStyle,fontSize:14},children:r}),o.jsx(I,{sx:{maxWidth:"252px",fontSize:"14px"},children:o.jsx(St,{did:i,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}dr.propTypes={data:m.object.isRequired,locale:m.string};function dr({data:e,locale:t="en"}){return o.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},rel:"noreferrer",children:[o.jsx("img",{className:"image",src:e.logo,width:50,height:50,alt:""}),o.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[o.jsx("div",{style:{marginBottom:"6px"},children:e.title}),o.jsx("div",{style:{color:"#a5a5a5",fontSize:10,maxWidth:"252px"},children:o.jsx(St,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:t})})]})]})}Vt.propTypes={locale:m.string,data:m.object.isRequired};Vt.defaultProps={locale:"en"};function Vt({locale:e,data:t}){const n=ye.getChainHost(t.chainId),r=`https://${n}/explorer/txs/${t.hash}`,s={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",i={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash";return o.jsxs("a",{href:r,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block",fontSize:14},rel:"noreferrer",children:[o.jsx("h6",{style:{color:"#a5a5a5",margin:0},children:n}),o.jsx("p",{style:{color:"#4598fa",margin:0},children:s}),o.jsxs("div",{style:{wordBreak:"break-all"},children:[i,": ",t.hash]})]})}function fr({data:e,isMd:t=!1}){return o.jsx(I,{display:"flex",flexDirection:t?"row":"column",justifyContent:"space-between",sx:{width:t?"100%":"auto"},children:e.items.map((n,r)=>o.jsx(Ut,{attachment:n,color:r===0?"rgba(156, 163, 175, 1)":"",size:r===0?"normal":"big",fontWeight:r===0?400:600},r))})}fr.propTypes={data:m.array.isRequired,isMd:m.bool};function pr({attachment:e,...t}){const{local:n}=g.useContext(jt),r=Q(s=>s.breakpoints.down("md"));return o.jsxs(Go,{"data-testid":"attachment-preview",...t,isMd:r,children:[e.type==="link"&&o.jsx(lr,{attachment:e,...t,isMd:r}),e.type==="image"&&o.jsx(ur,{attachment:e,isMd:r}),e.type==="text"&&o.jsx(Ut,{attachment:e,isMd:r}),e.type==="token"&&o.jsx(Ht,{data:e.data,local:n,isMd:r}),e.type==="asset"||e.type==="vc"?o.jsx(Ft,{data:e.data,local:n,isMd:r}):null,e.type==="dapp"&&o.jsx(dr,{data:e.data,local:n,isMd:r}),e.type==="transaction"&&o.jsx(Vt,{data:e.data,local:n,...t,isMd:r}),e.type==="divider"&&o.jsx(yt,{sx:{mb:1,mt:1},style:{color:Vn.dividerColor}}),e.type==="combined"&&o.jsx(fr,{data:e,isMd:r})]})}const Go=te.div`
32
+ `;function lr({attachment:e}){const{data:t}=e;let n="";try{n=new URL(t.url).host}catch{n=t.url}return o.jsxs(bt,{target:"_blank",rel:"noopener noreferrer",href:t.url,className:"link",style:{wordBreak:"break-all"},children:[!!n&&o.jsx("span",{className:"url",children:n}),!!t.title&&o.jsx(C,{className:"title",style:{whiteSpace:"unset"},children:t.title}),!!t.description&&o.jsx(C,{className:"description",style:{whiteSpace:"unset",color:"rgba(75, 85, 99, 1)"},children:t.description}),!!t.image&&o.jsx("img",{src:An.getImagePath(t.image),alt:t.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}lr.propTypes={attachment:m.object.isRequired};function ur({attachment:e}){const{data:t}=e;return o.jsx("img",{src:An.getImagePath(t.url),alt:t.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}ur.propTypes={attachment:m.object.isRequired};function Ut({attachment:e,...t}){var c;const{data:n}=e,r=((c=n.color)==null?void 0:c.toLowerCase())||t.color,s=n.size||t.size,i=n.fontWeight||t.fontWeight||400;let a="14px";return s==="small"?a="12px":s==="normal"?a="14px":s==="big"?a="16px":s==="large"&&(a="18px"),o.jsx("span",{className:"title",style:{fontSize:a,color:r,whiteSpace:"unset",fontWeight:i},children:n.text})}Ut.propTypes={attachment:m.object.isRequired};Ht.propTypes={locale:m.string,data:m.object.isRequired};Ht.defaultProps={locale:"en"};function Ht({locale:e="en",data:t}){const n={zh:"来自",en:"from"}[e]||"from",r={zh:"接收",en:"Received"}[e]||"Received",i=`https://${ye.getUrlHost(t.chainHost)||ye.getChainHost(t.chainId)}/explorer/tokens/${t.address}/tx`;let a=t.amount;t.decimal&&(a=t.amount/10**t.decimal);const c=Ue(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return o.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:o.jsxs(C,{display:"flex",flexDirection:"column",children:[o.jsxs(C,{sx:c,children:[o.jsx(B,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:r}),o.jsxs(B,{component:"div",align:"right",style:He.summaryStyle,flex:1,children:["+",a," ",t.symbol]})]}),o.jsxs(C,{sx:c,children:[o.jsx(B,{component:"div",style:{...He.remarkStyle,fontSize:14},children:n}),o.jsx(C,{sx:{maxWidth:"252px",fontSize:"14px"},children:o.jsx(St,{did:t.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}Ft.propTypes={locale:m.string,data:m.object.isRequired};Ft.defaultProps={locale:"en"};function Ft({locale:e,data:t}){var l,u;const n={zh:"接收",en:"Received"}[e]||"Received",r={zh:"来自",en:"from"}[e]||"from",s=ye.getUrlHost(t.chainHost)||ye.getChainHost(t.chainId),i=t.did||((u=(l=t==null?void 0:t.credential)==null?void 0:l.issuer)==null?void 0:u.id)||"",a=`https://${s}/explorer/assets/${i}`,c=Ue(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return o.jsx(C,{sx:{pr:1},children:o.jsx("a",{href:a,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},rel:"noreferrer",children:o.jsxs(C,{display:"flex",flexDirection:"column",children:[o.jsxs(C,{sx:c,children:[o.jsx(B,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:n}),o.jsx(B,{component:"div",align:"right",style:He.summaryStyle,children:"+1 Asset"})]}),i?o.jsxs(C,{sx:c,children:[o.jsx(B,{component:"div",style:{...He.remarkStyle,fontSize:14},children:r}),o.jsx(C,{sx:{maxWidth:"252px",fontSize:"14px"},children:o.jsx(St,{did:i,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}dr.propTypes={data:m.object.isRequired,locale:m.string};function dr({data:e,locale:t="en"}){return o.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},rel:"noreferrer",children:[o.jsx("img",{className:"image",src:e.logo,width:50,height:50,alt:""}),o.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[o.jsx("div",{style:{marginBottom:"6px"},children:e.title}),o.jsx("div",{style:{color:"#a5a5a5",fontSize:10,maxWidth:"252px"},children:o.jsx(St,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:t})})]})]})}Vt.propTypes={locale:m.string,data:m.object.isRequired};Vt.defaultProps={locale:"en"};function Vt({locale:e,data:t}){const n=ye.getChainHost(t.chainId),r=`https://${n}/explorer/txs/${t.hash}`,s={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",i={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash";return o.jsxs("a",{href:r,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block",fontSize:14},rel:"noreferrer",children:[o.jsx("h6",{style:{color:"#a5a5a5",margin:0},children:n}),o.jsx("p",{style:{color:"#4598fa",margin:0},children:s}),o.jsxs("div",{style:{wordBreak:"break-all"},children:[i,": ",t.hash]})]})}function fr({data:e,isMd:t=!1}){return o.jsx(C,{display:"flex",flexDirection:t?"row":"column",justifyContent:"space-between",sx:{width:t?"100%":"auto"},children:e.items.map((n,r)=>o.jsx(Ut,{attachment:n,color:r===0?"rgba(156, 163, 175, 1)":"",size:r===0?"normal":"big",fontWeight:r===0?400:600},r))})}fr.propTypes={data:m.array.isRequired,isMd:m.bool};function pr({attachment:e,...t}){const{local:n}=g.useContext(jt),r=Q(s=>s.breakpoints.down("md"));return o.jsxs(Go,{"data-testid":"attachment-preview",...t,isMd:r,children:[e.type==="link"&&o.jsx(lr,{attachment:e,...t,isMd:r}),e.type==="image"&&o.jsx(ur,{attachment:e,isMd:r}),e.type==="text"&&o.jsx(Ut,{attachment:e,isMd:r}),e.type==="token"&&o.jsx(Ht,{data:e.data,local:n,isMd:r}),e.type==="asset"||e.type==="vc"?o.jsx(Ft,{data:e.data,local:n,isMd:r}):null,e.type==="dapp"&&o.jsx(dr,{data:e.data,local:n,isMd:r}),e.type==="transaction"&&o.jsx(Vt,{data:e.data,local:n,...t,isMd:r}),e.type==="divider"&&o.jsx(yt,{sx:{mb:1,mt:1},style:{color:Vn.dividerColor}}),e.type==="combined"&&o.jsx(fr,{data:e,isMd:r})]})}const Go=te.div`
33
33
  display: ${({sx:e={}})=>e.display||"flex"};
34
34
  flex-direction: ${({sx:e={}})=>e.flexDirection||"column"};
35
35
  gap: ${({sx:e={}})=>e.gap||1};
@@ -37,7 +37,7 @@ import{z as Ge,f as M,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F a
37
37
  &:last-child {
38
38
  margin-bottom: 0;
39
39
  }
40
- `;pr.propTypes={attachment:m.object.isRequired};function hr({data:e,...t}){const{items:n}=e;return o.jsx(Qo,{...t,children:n.map(r=>o.jsxs(Nn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128},children:[o.jsxs(I,{display:"flex",alignItems:"center",gap:1,children:[r.icon?o.jsx("img",{src:r.icon,alt:r.title,style:{width:16,height:16}}):null,o.jsxs(I,{className:"metric-name",display:"flex",alignItems:"center",children:[r.title,r.subtitle?o.jsx(ze,{title:r.subtitle,arrow:!0,placement:"top",children:o.jsx(ro,{fontSize:"small",sx:{fontSize:14,ml:.5}})}):null]})]}),o.jsxs(I,{className:"metric-number",sx:{color:r.content_color||"rgba(3, 7, 18, 1)"},children:[r.content,r.sub_content?o.jsxs("span",{className:"sub-content",style:{color:r.sub_content_color||"rgba(156, 163, 175, 1)"},children:["(",r.sub_content,")"]}):null]})]},r.title))})}const Qo=te(I)`
40
+ `;pr.propTypes={attachment:m.object.isRequired};function hr({data:e,...t}){const{items:n}=e;return o.jsx(Qo,{...t,children:n.map(r=>o.jsxs(Nn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128},children:[o.jsxs(C,{display:"flex",alignItems:"center",gap:1,children:[r.icon?o.jsx("img",{src:r.icon,alt:r.title,style:{width:16,height:16}}):null,o.jsxs(C,{className:"metric-name",display:"flex",alignItems:"center",children:[r.title,r.subtitle?o.jsx(ze,{title:r.subtitle,arrow:!0,placement:"top",children:o.jsx(ro,{fontSize:"small",sx:{fontSize:14,ml:.5}})}):null]})]}),o.jsxs(C,{className:"metric-number",sx:{color:r.content_color||"rgba(3, 7, 18, 1)"},children:[r.content,r.sub_content?o.jsxs("span",{className:"sub-content",style:{color:r.sub_content_color||"rgba(156, 163, 175, 1)"},children:["(",r.sub_content,")"]}):null]})]},r.title))})}const Qo=te(C)`
41
41
  display: flex;
42
42
  justify-content: flex-start;
43
43
  flex-wrap: wrap;
@@ -63,7 +63,7 @@ import{z as Ge,f as M,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F a
63
63
  &:last-child {
64
64
  margin-bottom: 0;
65
65
  }
66
- `;qt.propTypes={data:m.object.isRequired,feedType:m.string};qt.defaultProps={feedType:"data-tracker"};const Xo=e=>{let t="rgba(0, 0, 0, 0.12)";return e==="warning"?t="#DE9E37":e==="error"?t="#F16E6E":t="rgba(0, 0, 0, 0.12)",t},Jo=e=>e.every(t=>t.type==="text"),Yo=e=>e.every(t=>t.type==="image"),ei=e=>Xs(e,2).map(t=>({type:"combined",items:t})),ti=e=>{if(!e.length||e.length<=1)return!1;const t=e[0].type;return e.every(n=>n.type===t)},ni=async(e,t)=>{const r=new Ms().user;if(r)try{return await r.getUserPublicInfo({did:e})?await r.getProfileUrl({did:e,locale:t}):void 0}catch(s){console.error(s);return}};function Wt({notification:e,severity:t,showSke:n=!0}){const{attachments:r,data:s,...i}=e,a=Q(d=>d.breakpoints.down("md"));if((!r||!r.length)&&$e(s))return null;const c=Xo(t),l=(d,f=!1)=>{if(!d&&!Array.isArray(d))return null;let p=d,v={},w="horizontal";f&&Jo(d)&&(p=ei(d),w="vertical",v={display:"flex",gap:1,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%"});const h=ti(p);return o.jsx(I,{sx:{display:"flex",gap:1,flexDirection:f?"row":"column",justifyContent:"flex-start",alignItems:f?"center":"unset",flexWrap:"wrap"},children:p.map((S,y)=>S.type==="section"?o.jsx(g.Fragment,{children:l(S.fields,!0)},y):o.jsxs(g.Fragment,{children:[o.jsx(pr,{attachment:S,sx:v,...i}),!(a&&w==="vertical")&&h&&p.length>1&&y!==p.length-1?o.jsx(yt,{orientation:w,style:{color:Vn.dividerColor},sx:w==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},y))})},u=Yo(r);return o.jsx(ri,{children:o.jsxs("div",{className:"message-in-list",children:[r.length>0&&o.jsx("div",{className:"message-container",children:u?l(r):o.jsx(Nn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:c},children:l(r)})}),!$e(s)&&o.jsx("div",{className:"message-container",children:o.jsx("div",{className:"data-container",children:o.jsx(qt,{data:s,feedType:e.feedType})})}),r.length===0&&$e(s)&&n&&o.jsx(Ts,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const ri=te.div`
66
+ `;qt.propTypes={data:m.object.isRequired,feedType:m.string};qt.defaultProps={feedType:"data-tracker"};const Xo=e=>{let t="rgba(0, 0, 0, 0.12)";return e==="warning"?t="#DE9E37":e==="error"?t="#F16E6E":t="rgba(0, 0, 0, 0.12)",t},Jo=e=>e.every(t=>t.type==="text"),Yo=e=>e.every(t=>t.type==="image"),ei=e=>Xs(e,2).map(t=>({type:"combined",items:t})),ti=e=>{if(!e.length||e.length<=1)return!1;const t=e[0].type;return e.every(n=>n.type===t)},ni=async(e,t)=>{const r=new Ms().user;if(r)try{return await r.getUserPublicInfo({did:e})?await r.getProfileUrl({did:e,locale:t}):void 0}catch(s){console.error(s);return}};function Wt({notification:e,severity:t,showSke:n=!0}){const{attachments:r,data:s,...i}=e,a=Q(d=>d.breakpoints.down("md"));if((!r||!r.length)&&$e(s))return null;const c=Xo(t),l=(d,f=!1)=>{if(!d&&!Array.isArray(d))return null;let p=d,y={},w="horizontal";f&&Jo(d)&&(p=ei(d),w="vertical",y={display:"flex",gap:1,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%"});const h=ti(p);return o.jsx(C,{sx:{display:"flex",gap:1,flexDirection:f?"row":"column",justifyContent:"flex-start",alignItems:f?"center":"unset",flexWrap:"wrap"},children:p.map((S,b)=>S.type==="section"?o.jsx(g.Fragment,{children:l(S.fields,!0)},b):o.jsxs(g.Fragment,{children:[o.jsx(pr,{attachment:S,sx:y,...i}),!(a&&w==="vertical")&&h&&p.length>1&&b!==p.length-1?o.jsx(yt,{orientation:w,style:{color:Vn.dividerColor},sx:w==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},b))})},u=Yo(r);return o.jsx(ri,{children:o.jsxs("div",{className:"message-in-list",children:[r.length>0&&o.jsx("div",{className:"message-container",children:u?l(r):o.jsx(Nn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:c},children:l(r)})}),!$e(s)&&o.jsx("div",{className:"message-container",children:o.jsx("div",{className:"data-container",children:o.jsx(qt,{data:s,feedType:e.feedType})})}),r.length===0&&$e(s)&&n&&o.jsx(Ts,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const ri=te.div`
67
67
  display: flex;
68
68
  flex-direction: column;
69
69
  .message-in-list {
@@ -115,7 +115,7 @@ import{z as Ge,f as M,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F a
115
115
  margin-right: 8px;
116
116
  }
117
117
  }
118
- `;Wt.propTypes={severity:m.string.isRequired,notification:m.object.isRequired,showSke:m.bool};Wt.defaultProps={showSke:!0};const tt=e=>Ns.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),si=async(e,t)=>{const{type:n,did:r}=e;return Kn.isSameAddr(n,"did")?await ni(r,t)||Fe.getLink(e):Fe.getLink(e)},oi=async(e,t,n=!0)=>{const r=Fe.toTextList(e);return await Promise.all(r.map(async i=>{if(i instanceof Fe.Link){if(n){const a=await si(i,t),{type:c,chainId:l,did:u}=i;return Kn.isSameAddr(c,"dapp")?`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`:a?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${a}">${i.text}</a>`:`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))};gr.propTypes={notification:m.object,rows:m.number,minimal:m.bool};function gr({notification:e,rows:t=2,minimal:n=!1}){const[r,s]=g.useState(!1),[i,a]=g.useState(""),{t:c,locale:l}=X(),u=g.useMemo(()=>{const{attachments:S}=e||{};if(!S)return!1;try{return S.length>0}catch{return!1}},[e]),d=g.useMemo(()=>{const{blocks:S}=e||{};if(!S)return!1;try{return S.length>0}catch{return!1}},[e]),f=g.useMemo(()=>{const{description:S}=e||{};return!!S},[e]),p=g.useMemo(()=>{const{data:S}=e||{};return!$e(S)},[e]),v=g.useMemo(()=>u||d||f||p,[u,d,f,p]);if(g.useEffect(()=>{oi((e==null?void 0:e.description)??"",l).then(S=>{a(S)})},[e==null?void 0:e.description,l]),!v)return null;const w=()=>t===0?"":r?`<span class='toggle-btn' data-name='toggle-expanded'>${c("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${c("common.expand")}</span>`,h=S=>{const{target:y}=S;y.getAttribute("data-name")==="toggle-expanded"&&s(!r)};return o.jsxs(ii,{color:n?"#fff":"",children:[o.jsx(I,{className:"text-container",children:o.jsx(I,{component:"div",sx:{marginBottom:"4px"},onClick:h,children:i&&(!r&&t>0?o.jsx(eo,{basedOn:"letters",unsafeHTML:tt(i),maxLine:t,ellipsisHTML:tt(w())}):o.jsx(N,{component:"div",className:`content ${t===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important",fontSize:"14px"},dangerouslySetInnerHTML:{__html:tt(`${i}${w()}`)}}))})}),!n&&(u||p)?o.jsx(Wt,{severity:e.severity,notification:e}):null]})}const ii=te(I)`
118
+ `;Wt.propTypes={severity:m.string.isRequired,notification:m.object.isRequired,showSke:m.bool};Wt.defaultProps={showSke:!0};const tt=e=>Ns.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),si=async(e,t)=>{const{type:n,did:r}=e;return Kn.isSameAddr(n,"did")?await ni(r,t)||Fe.getLink(e):Fe.getLink(e)},oi=async(e,t,n=!0)=>{const r=Fe.toTextList(e);return await Promise.all(r.map(async i=>{if(i instanceof Fe.Link){if(n){const a=await si(i,t),{type:c,chainId:l,did:u}=i;return Kn.isSameAddr(c,"dapp")?`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`:a?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${a}">${i.text}</a>`:`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))};gr.propTypes={notification:m.object,rows:m.number,minimal:m.bool};function gr({notification:e,rows:t=2,minimal:n=!1}){const[r,s]=g.useState(!1),[i,a]=g.useState(""),{t:c,locale:l}=X(),u=g.useMemo(()=>{const{attachments:S}=e||{};if(!S)return!1;try{return S.length>0}catch{return!1}},[e]),d=g.useMemo(()=>{const{blocks:S}=e||{};if(!S)return!1;try{return S.length>0}catch{return!1}},[e]),f=g.useMemo(()=>{const{description:S}=e||{};return!!S},[e]),p=g.useMemo(()=>{const{data:S}=e||{};return!$e(S)},[e]),y=g.useMemo(()=>u||d||f||p,[u,d,f,p]);if(g.useEffect(()=>{oi((e==null?void 0:e.description)??"",l).then(S=>{a(S)})},[e==null?void 0:e.description,l]),!y)return null;const w=()=>t===0?"":r?`<span class='toggle-btn' data-name='toggle-expanded'>${c("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${c("common.expand")}</span>`,h=S=>{const{target:b}=S;b.getAttribute("data-name")==="toggle-expanded"&&s(!r)};return o.jsxs(ii,{color:n?"#fff":"",children:[o.jsx(C,{className:"text-container",children:o.jsx(C,{component:"div",sx:{marginBottom:"4px"},onClick:h,children:i&&(!r&&t>0?o.jsx(eo,{basedOn:"letters",unsafeHTML:tt(i),maxLine:t,ellipsisHTML:tt(w())}):o.jsx(B,{component:"div",className:`content ${t===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important",fontSize:"14px"},dangerouslySetInnerHTML:{__html:tt(`${i}${w()}`)}}))})}),!n&&(u||p)?o.jsx(Wt,{severity:e.severity,notification:e}):null]})}const ii=te(C)`
119
119
  margin-bottom: 6px;
120
120
  color: ${e=>e.color?e.color:"rgba(75, 85, 99, 1)"};
121
121
  .text-container {
@@ -151,7 +151,7 @@ import{z as Ge,f as M,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F a
151
151
  *
152
152
  * @license MIT
153
153
  * @version 3.1.1
154
- */const xr=Object.freeze({left:0,top:0,width:16,height:16}),Ve=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),we=Object.freeze({...xr,...Ve}),it=Object.freeze({...we,body:"",hidden:!1});function ci(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Sn(e,t){const n=ci(e,t);for(const r in it)r in Ve?r in e&&!(r in n)&&(n[r]=Ve[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function li(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function i(a){if(n[a])return s[a]=[];if(!(a in s)){s[a]=null;const c=r[a]&&r[a].parent,l=c&&i(c);l&&(s[a]=[c].concat(l))}return s[a]}return Object.keys(n).concat(Object.keys(r)).forEach(i),s}function ui(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let i={};function a(c){i=Sn(r[c]||s[c],i)}return a(t),n.forEach(a),Sn(e,i)}function di(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=li(e);for(const s in r){const i=r[s];i&&(t(s,ui(e,s,i)),n.push(s))}return n}const ge=/^[a-z0-9]+(-[a-z0-9]+)*$/,he=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),l=s.pop(),u={provider:s.length>0?s[0]:r,prefix:l,name:c};return t&&!Me(u)?null:u}const i=s[0],a=i.split("-");if(a.length>1){const c={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Me(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:i};return t&&!Me(c,n)?null:c}return null},Me=(e,t)=>e?!!((e.provider===""||e.provider.match(ge))&&(t&&e.prefix===""||e.prefix.match(ge))&&e.name.match(ge)):!1,fi={provider:"",aliases:{},not_found:{},...xr};function rt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function pi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!rt(e,fi))return null;const n=t.icons;for(const s in n){const i=n[s];if(!s.match(ge)||typeof i.body!="string"||!rt(i,it))return null}const r=t.aliases||Object.create(null);for(const s in r){const i=r[s],a=i.parent;if(!s.match(ge)||typeof a!="string"||!n[a]&&!r[a]||!rt(i,it))return null}return t}const qe=Object.create(null);function hi(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Z(e,t){const n=qe[e]||(qe[e]=Object.create(null));return n[t]||(n[t]=hi(e,t))}function Kt(e,t){return pi(t)?di(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function mi(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function gi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(qe)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(qe[s]||{})).forEach(a=>{const c=Z(s,a);n=n.concat(Object.keys(c.icons).map(l=>(s!==""?"@"+s+":":"")+a+":"+l))})}),n}let Gt=!1;function xi(e){return Gt}function Se(e){const t=typeof e=="string"?he(e,!0,Gt):e;if(t){const n=Z(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function vi(e,t){const n=he(e,!0,Gt);if(!n)return!1;const r=Z(n.provider,n.prefix);return mi(r,n.name,t)}function vr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Me({provider:t,prefix:n,name:"a"}))return!1;const r=Z(t,n);return!!Kt(r,e)}function yi(e){return!!Se(e)}function bi(e){const t=Se(e);return t?{...we,...t}:null}const yr=Object.freeze({width:null,height:null}),br=Object.freeze({...yr,...Ve}),ji=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wi=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function at(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(ji);if(r===null||!r.length)return e;const s=[];let i=r.shift(),a=wi.test(i);for(;;){if(a){const c=parseFloat(i);isNaN(c)?s.push(i):s.push(Math.ceil(c*t*n)/n)}else s.push(i);if(i=r.shift(),i===void 0)return s.join("");a=!a}}const Si=e=>e==="unset"||e==="undefined"||e==="none";function Ze(e,t){const n={...we,...e},r={...br,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(w=>{const h=[],S=w.hFlip,y=w.vFlip;let T=w.rotate;S?y?T+=2:(h.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),h.push("scale(-1 1)"),s.top=s.left=0):y&&(h.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),h.push("scale(1 -1)"),s.top=s.left=0);let E;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:E=s.height/2+s.top,h.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:h.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:E=s.width/2+s.left,h.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}T%2===1&&(s.left!==s.top&&(E=s.left,s.left=s.top,s.top=E),s.width!==s.height&&(E=s.width,s.width=s.height,s.height=E)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const a=r.width,c=r.height,l=s.width,u=s.height;let d,f;a===null?(f=c===null?"1em":c==="auto"?u:c,d=at(f,l/u)):(d=a==="auto"?l:a,f=c===null?at(d,u/l):c==="auto"?u:c);const p={},v=(w,h)=>{Si(h)||(p[w]=h.toString())};return v("width",d),v("height",f),p.viewBox=s.left.toString()+" "+s.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Ci=/\sid="(\S+)"/g,_i="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ii=0;function jr(e,t=_i){const n=[];let r;for(;r=Ci.exec(e);)n.push(r[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(Ii++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+a+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const ce={local:!0,session:!0},wr={local:new Set,session:new Set};let Qt=!1;function Ei(e){Qt=e}const Cn="iconify2",be="iconify",Sr=be+"-count",_n=be+"-version",Cr=36e5,Li=168;function ct(e,t){try{return e.getItem(t)}catch{}}function Zt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function In(e,t){try{e.removeItem(t)}catch{}}function lt(e,t){return Zt(e,Sr,t.toString())}function ut(e){return parseInt(ct(e,Sr))||0}let ke=typeof window>"u"?{}:window;function _r(e){const t=e+"Storage";try{if(ke&&ke[t]&&typeof ke[t].length=="number")return ke[t]}catch{}ce[e]=!1}function Ir(e,t){const n=_r(e);if(!n)return;const r=ct(n,_n);if(r!==Cn){if(r){const c=ut(n);for(let l=0;l<c;l++)In(n,be+l.toString())}Zt(n,_n,Cn),lt(n,0);return}const s=Math.floor(Date.now()/Cr)-Li,i=c=>{const l=be+c.toString(),u=ct(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>s&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,c))return!0}catch{}In(n,l)}};let a=ut(n);for(let c=a-1;c>=0;c--)i(c)||(c===a-1?(a--,lt(n,a)):wr[e].add(c))}function Er(){if(!Qt){Ei(!0);for(const e in ce)Ir(e,t=>{const n=t.data,r=t.provider,s=n.prefix,i=Z(r,s);if(!Kt(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Lr(e,t){switch(e){case"local":case"session":ce[e]=t;break;case"all":for(const n in ce)ce[n]=t;break}}const dt=Object.create(null);function Tr(e,t){dt[e]=t}function ft(e){return dt[e]||dt[""]}function Xt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Xe=Object.create(null),me=["https://api.simplesvg.com","https://api.unisvg.com"],Ne=[];for(;me.length>0;)me.length===1||Math.random()>.5?Ne.push(me.shift()):Ne.push(me.pop());Xe[""]=Xt({resources:["https://api.iconify.design"].concat(Ne)});function Pr(e,t){const n=Xt(t);return n===null?!1:(Xe[e]=n,!0)}function Je(e){return Xe[e]}function Ti(){return Object.keys(Xe)}const Pi=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let We=Pi();function Ri(e){We=e}function Di(){return We}function ki(e,t){const n=Je(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(a=>{s=Math.max(s,a.length)});const i=t+".json?icons=";r=n.maxURL-s-n.path.length-i.length}return r}function Ai(e){return e===404}const Oi=(e,t,n)=>{const r=[],s=ki(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,u)=>{c+=l.length+1,c>=s&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},c=l.length),a.icons.push(l)}),r.push(a),r};function $i(e){if(typeof e=="string"){const t=Je(e);if(t)return t.path}return"/"}const Mi=(e,t,n)=>{if(!We){n("abort",424);return}let r=$i(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let s=503;We(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(Ai(a)?"abort":"next",a)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",s)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",s)})},Ni={prepare:Oi,send:Mi};function zi(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const i=s.provider,a=s.prefix,c=s.name,l=n[i]||(n[i]=Object.create(null)),u=l[a]||(l[a]=Z(i,a));let d;c in u.icons?d=t.loaded:a===""||u.missing.has(c)?d=t.missing:d=t.pending;const f={provider:i,prefix:a,name:c};d.push(f)}),t}function Rr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function Bi(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(i=>{const a=i.icons,c=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==s)return!0;const u=l.name;if(e.icons[u])a.loaded.push({provider:r,prefix:s,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:s,name:u});else return n=!0,!0;return!1}),a.pending.length!==c&&(n||Rr([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let Ui=0;function Hi(e,t,n){const r=Ui++,s=Rr.bind(null,n,r);if(!t.pending.length)return s;const i={id:r,icons:t,callback:e,abort:s};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),s}function Fi(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const i=typeof s=="string"?he(s,t,n):s;i&&r.push(i)}),r}var Vi={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function qi(e,t,n,r){const s=e.resources.length,i=e.random?Math.floor(Math.random()*s):e.index;let a;if(e.random){let j=e.resources.slice(0);for(a=[];j.length>1;){const b=Math.floor(Math.random()*j.length);a.push(j[b]),j=j.slice(0,b).concat(j.slice(b+1))}a=a.concat(j)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let l="pending",u=0,d,f=null,p=[],v=[];typeof r=="function"&&v.push(r);function w(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),w(),p.forEach(j=>{j.status==="pending"&&(j.status="aborted")}),p=[]}function S(j,b){b&&(v=[]),typeof j=="function"&&v.push(j)}function y(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:S,abort:h}}function T(){l="failed",v.forEach(j=>{j(void 0,d)})}function E(){p.forEach(j=>{j.status==="pending"&&(j.status="aborted")}),p=[]}function R(j,b,C){const _=b!=="success";switch(p=p.filter(L=>L!==j),l){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(b==="abort"){d=C,T();return}if(_){d=C,p.length||(a.length?k():T());return}if(w(),E(),!e.random){const L=e.resources.indexOf(j.resource);L!==-1&&L!==e.index&&(e.index=L)}l="completed",v.forEach(L=>{L(C)})}function k(){if(l!=="pending")return;w();const j=a.shift();if(j===void 0){if(p.length){f=setTimeout(()=>{w(),l==="pending"&&(E(),T())},e.timeout);return}T();return}const b={status:"pending",resource:j,callback:(C,_)=>{R(b,C,_)}};p.push(b),u++,f=setTimeout(k,e.rotate),n(j,t,b.callback)}return setTimeout(k),y}function Dr(e){const t={...Vi,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function s(c,l,u){const d=qi(t,c,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(c){return n.find(l=>c(l))||null}return{query:s,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function En(){}const st=Object.create(null);function Wi(e){if(!st[e]){const t=Je(e);if(!t)return;const n=Dr(t),r={config:t,redundancy:n};st[e]=r}return st[e]}function kr(e,t,n){let r,s;if(typeof e=="string"){const i=ft(e);if(!i)return n(void 0,424),En;s=i.send;const a=Wi(e);a&&(r=a.redundancy)}else{const i=Xt(e);if(i){r=Dr(i);const a=e.resources?e.resources[0]:"",c=ft(a);c&&(s=c.send)}}return!r||!s?(n(void 0,424),En):r.query(t,s,n)().abort}function Ki(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in ce)Ir(r,s=>{const i=s.data;return s.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function Gi(e,t){Qt||Er();function n(r){let s;if(!ce[r]||!(s=_r(r)))return;const i=wr[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=ut(s),!lt(s,a+1))return;const c={cached:Math.floor(Date.now()/Cr),provider:e.provider,data:t};return Zt(s,be+a.toString(),JSON.stringify(c))}t.lastModified&&!Ki(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ln(){}function Qi(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Bi(e)}))}function Zi(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,s=e.iconsToLoad;delete e.iconsToLoad;let i;if(!s||!(i=ft(n)))return;i.prepare(n,r,s).forEach(c=>{kr(n,c,l=>{if(typeof l!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=Kt(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),Gi(e,l)}catch(u){console.error(u)}Qi(e)})})}))}const Xi=e=>{const n=Z(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Jt=(e,t)=>{const n=Fi(e,!0,xi()),r=zi(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Ln)}),()=>{l=!1}}const s=Object.create(null),i=[];let a,c;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===c&&u===a)return;a=u,c=d,i.push(Z(u,d));const f=s[u]||(s[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=Z(u,d),v=p.pendingIcons||(p.pendingIcons=new Set);v.has(f)||(v.add(f),s[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;s[u][d].length&&Zi(l,s[u][d])}),t?Hi(t,r,i):Ln},Ji=e=>new Promise((t,n)=>{const r=typeof e=="string"?he(e,!0):e;if(!r){n(e);return}Jt([r||e],s=>{if(s.length&&r){const i=Se(r);if(i){t({...we,...i});return}}n(e)})});function Ar(e,t){const n={...e};for(const r in t){const s=t[r],i=typeof s;r in yr?(s===null||s&&(i==="string"||i==="number"))&&(n[r]=s):i===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const Ye={...br,inline:!1},ot="iconify",pt="iconify-inline",se="iconifyData"+Date.now();let le=[];function Ce(e){for(let t=0;t<le.length;t++){const n=le[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Or(e,t=!1){let n=Ce(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},le.push(n),n)}function Yi(){if(document.documentElement)return Or(document.documentElement);le.push({node:()=>document.documentElement})}function ea(e){le=le.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function _e(){return le}function ta(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let xe=null;const na={childList:!0,subtree:!0,attributes:!0};function $r(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,xe&&xe(e)}))}function ra(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const s=t[r];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[se]!==void 0){n.paused||$r(e);return}}}function Mr(e,t){e.observer.instance.observe(t,na)}function Ke(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(ra.bind(null,e)),Mr(e,n),t.paused||$r(e))}function Tn(){_e().forEach(Ke)}function Nr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function sa(e){const t=xe!==null;if(xe!==e&&(xe=e,t&&_e().forEach(Nr)),t){Tn();return}ta(Tn)}function ht(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function oa(e){if(e){const t=Ce(e);t&&ht(t)}else ht()}function mt(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){Ke(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Mr(t,r):Ke(t);else return}})}function ia(e){if(e){const t=Ce(e);t&&mt(t)}else mt()}function zr(e,t=!1){const n=Or(e,t);return Ke(n),n}function Br(e){const t=Ce(e);t&&(Nr(t),ea(e))}function aa(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const s in Ye)if(n[s]!==r[s])return!0;return!1}function ca(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/s,i%1===0?r(i):0)}}return t}const la=/[\s,]+/;function ua(e,t){t.split(la).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const da=["width","height"],fa=["inline","hFlip","vFlip"];function pa(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function ha(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&he(t,!0);if(!n)return null;const r={...Ye,inline:e.classList&&e.classList.contains(pt)};da.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(r.rotate=ca(s));const i=e.getAttribute("data-flip");typeof i=="string"&&ua(r,i),fa.forEach(c=>{const l="data-"+c,u=pa(e.getAttribute(l),l);typeof u=="boolean"&&(r[c]=u)});const a=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:a}}const ma="svg."+ot+", i."+ot+", span."+ot+", i."+pt+", span."+pt;function ga(e){const t=[];return e.querySelectorAll(ma).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?ha(n):null;r&&t.push({node:n,props:r})}),t}function Ur(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let ve;function xa(){try{ve=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ve=null}}function va(e){return ve===void 0&&xa(),ve?ve.createHTML(e):e}function Hr(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Fr(e,t,n,r){const s=e.classList;if(r){const a=r.classList;Array.from(a).forEach(c=>{s.add(c)})}const i=[];return t.forEach(a=>{s.contains(a)?n.has(a)&&i.push(a):(s.add(a),i.push(a))}),n.forEach(a=>{t.has(a)||s.remove(a)}),i}function Vr(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const s=[];for(const i in t)r.getPropertyValue(i)||(s.push(i),r.setProperty(i,t[i]));return s}function qr(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const s=t.customisations,i=Ze(n,s),a=e[se],c=Ur(jr(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=va(c);const l=r.childNodes[0],u=e.attributes;for(let w=0;w<u.length;w++){const h=u.item(w),S=h.name;S!=="class"&&!l.hasAttribute(S)&&l.setAttribute(S,h.value)}const d=Hr(t.icon),f=Fr(l,d,new Set(a&&a.addedClasses),e),p=Vr(l,s.inline?{"vertical-align":"-0.125em"}:{},a&&a.addedStyles),v={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=v,e.parentNode&&e.parentNode.replaceChild(l,e),l}function ya(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ba(e){return"data:image/svg+xml,"+ya(e)}function ja(e){return'url("'+ba(e)+'")'}const wa={display:"inline-block"},gt={"background-color":"currentColor"},Wr={"background-color":"transparent"},Pn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Rn={"-webkit-mask":gt,mask:gt,background:Wr};for(const e in Rn){const t=Rn[e];for(const n in Pn)t[e+"-"+n]=Pn[n]}function Dn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Sa(e,t,n,r){const s=t.customisations,i=Ze(n,s),a=i.attributes,c=e[se],l=Ur(i.body,{...a,width:n.width+"",height:n.height+""}),u=Hr(t.icon),d=Fr(e,u,new Set(c&&c.addedClasses)),p={"--svg":ja(l),width:Dn(a.width),height:Dn(a.height),...wa,...r?gt:Wr};s.inline&&(p["vertical-align"]="-0.125em");const v=Vr(e,p,c&&c.addedStyles),w={...t,status:"loaded",addedClasses:d,addedStyles:v};return e[se]=w,e}let Ae=!1;function Ca(){Ae||(Ae=!0,setTimeout(()=>{Ae&&(Ae=!1,pe())}))}function pe(e,t=!1){const n=Object.create(null);function r(s,i){const{provider:a,prefix:c,name:l}=s,u=Z(a,c),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!Xi(s)){const f=n[a]||(n[a]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:_e()).forEach(s=>{const i=typeof s.node=="function"?s.node():s.node;if(!i||!i.querySelectorAll)return;let a=!1,c=!1;function l(u,d,f){if(c||(c=!0,ht(s)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,v=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof v=="boolean"){Sa(u,d,{...we,...f},v);return}}qr(u,d,f)}ga(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:v,icon:w}=r(d.icon,!0);if(w){l(u,d,w);return}a=a||v==="loading",u[se]={...d,status:v};return}let p;if(aa(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){a=a||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),s.temporary&&!a?Br(i):t&&a?zr(i,!0):c&&s.observer&&mt(s)});for(const s in n){const i=n[s];for(const a in i){const c=i[a];Jt(Array.from(c).map(l=>({provider:s,prefix:a,name:l})),Ca)}}}function _a(e){const t=Ce(e);t?pe(t):pe({node:e,temporary:!0},!0)}function Kr(e,t,n=!1){const r=Se(e);if(!r)return null;const s=he(e),i=Ar(Ye,t||{}),a=qr(document.createElement("span"),{name:e,icon:s,customisations:i},r);return n?a.outerHTML:a}function Ia(){return"3.1.1"}function Ea(e,t){return Kr(e,t,!1)}function La(e,t){return Kr(e,t,!0)}function Ta(e,t){const n=Se(e);if(!n)return null;const r=Ar(Ye,t||{});return Ze(n,r)}function Pa(e){e?_a(e):pe()}if(typeof document<"u"&&typeof window<"u"){Yi();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!vr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{sa(pe),pe()})}function Ra(e,t){Lr(e,t!==!1)}function Da(e){Lr(e,!0)}Tr("",Ni);if(typeof document<"u"&&typeof window<"u"){Er();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;Pr(n,s)||console.error(r)}catch{console.error(r)}}}}const ka={getAPIConfig:Je,setAPIModule:Tr,sendAPIQuery:kr,setFetch:Ri,getFetch:Di,listAPIProviders:Ti},Aa={_api:ka,addAPIProvider:Pr,loadIcons:Jt,loadIcon:Ji,iconExists:yi,getIcon:bi,listIcons:gi,addIcon:vi,addCollection:vr,replaceIDs:jr,calculateSize:at,buildIcon:Ze,getVersion:Ia,renderSVG:Ea,renderHTML:La,renderIcon:Ta,scan:Pa,observe:zr,stopObserving:Br,pauseObserver:oa,resumeObserver:ia,enableCache:Ra,disableCache:Da};try{self.Iconify===void 0&&(self.Iconify=Aa)}catch{}var Yt={},Oa=U;Object.defineProperty(Yt,"__esModule",{value:!0});var Gr=Yt.default=void 0,$a=Oa(H()),Ma=o;Gr=Yt.default=(0,$a.default)((0,Ma.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function en({infos:e}){const{t}=X(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(s=>{n.searchParams.set(s.label,s.value)});const r=e.map(s=>`* ${s.label}: ${s.value}`).join(`
154
+ */const xr=Object.freeze({left:0,top:0,width:16,height:16}),Ve=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),we=Object.freeze({...xr,...Ve}),it=Object.freeze({...we,body:"",hidden:!1});function ci(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Sn(e,t){const n=ci(e,t);for(const r in it)r in Ve?r in e&&!(r in n)&&(n[r]=Ve[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function li(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function i(a){if(n[a])return s[a]=[];if(!(a in s)){s[a]=null;const c=r[a]&&r[a].parent,l=c&&i(c);l&&(s[a]=[c].concat(l))}return s[a]}return Object.keys(n).concat(Object.keys(r)).forEach(i),s}function ui(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let i={};function a(c){i=Sn(r[c]||s[c],i)}return a(t),n.forEach(a),Sn(e,i)}function di(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=li(e);for(const s in r){const i=r[s];i&&(t(s,ui(e,s,i)),n.push(s))}return n}const ge=/^[a-z0-9]+(-[a-z0-9]+)*$/,he=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),l=s.pop(),u={provider:s.length>0?s[0]:r,prefix:l,name:c};return t&&!Me(u)?null:u}const i=s[0],a=i.split("-");if(a.length>1){const c={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Me(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:i};return t&&!Me(c,n)?null:c}return null},Me=(e,t)=>e?!!((e.provider===""||e.provider.match(ge))&&(t&&e.prefix===""||e.prefix.match(ge))&&e.name.match(ge)):!1,fi={provider:"",aliases:{},not_found:{},...xr};function rt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function pi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!rt(e,fi))return null;const n=t.icons;for(const s in n){const i=n[s];if(!s.match(ge)||typeof i.body!="string"||!rt(i,it))return null}const r=t.aliases||Object.create(null);for(const s in r){const i=r[s],a=i.parent;if(!s.match(ge)||typeof a!="string"||!n[a]&&!r[a]||!rt(i,it))return null}return t}const qe=Object.create(null);function hi(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Z(e,t){const n=qe[e]||(qe[e]=Object.create(null));return n[t]||(n[t]=hi(e,t))}function Kt(e,t){return pi(t)?di(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function mi(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function gi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(qe)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(qe[s]||{})).forEach(a=>{const c=Z(s,a);n=n.concat(Object.keys(c.icons).map(l=>(s!==""?"@"+s+":":"")+a+":"+l))})}),n}let Gt=!1;function xi(e){return Gt}function Se(e){const t=typeof e=="string"?he(e,!0,Gt):e;if(t){const n=Z(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function vi(e,t){const n=he(e,!0,Gt);if(!n)return!1;const r=Z(n.provider,n.prefix);return mi(r,n.name,t)}function vr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Me({provider:t,prefix:n,name:"a"}))return!1;const r=Z(t,n);return!!Kt(r,e)}function yi(e){return!!Se(e)}function bi(e){const t=Se(e);return t?{...we,...t}:null}const yr=Object.freeze({width:null,height:null}),br=Object.freeze({...yr,...Ve}),ji=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wi=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function at(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(ji);if(r===null||!r.length)return e;const s=[];let i=r.shift(),a=wi.test(i);for(;;){if(a){const c=parseFloat(i);isNaN(c)?s.push(i):s.push(Math.ceil(c*t*n)/n)}else s.push(i);if(i=r.shift(),i===void 0)return s.join("");a=!a}}const Si=e=>e==="unset"||e==="undefined"||e==="none";function Ze(e,t){const n={...we,...e},r={...br,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(w=>{const h=[],S=w.hFlip,b=w.vFlip;let T=w.rotate;S?b?T+=2:(h.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),h.push("scale(-1 1)"),s.top=s.left=0):b&&(h.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),h.push("scale(1 -1)"),s.top=s.left=0);let I;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:I=s.height/2+s.top,h.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:h.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:I=s.width/2+s.left,h.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}T%2===1&&(s.left!==s.top&&(I=s.left,s.left=s.top,s.top=I),s.width!==s.height&&(I=s.width,s.width=s.height,s.height=I)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const a=r.width,c=r.height,l=s.width,u=s.height;let d,f;a===null?(f=c===null?"1em":c==="auto"?u:c,d=at(f,l/u)):(d=a==="auto"?l:a,f=c===null?at(d,u/l):c==="auto"?u:c);const p={},y=(w,h)=>{Si(h)||(p[w]=h.toString())};return y("width",d),y("height",f),p.viewBox=s.left.toString()+" "+s.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Ci=/\sid="(\S+)"/g,_i="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ii=0;function jr(e,t=_i){const n=[];let r;for(;r=Ci.exec(e);)n.push(r[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(Ii++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+a+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const ce={local:!0,session:!0},wr={local:new Set,session:new Set};let Qt=!1;function Ei(e){Qt=e}const Cn="iconify2",be="iconify",Sr=be+"-count",_n=be+"-version",Cr=36e5,Li=168;function ct(e,t){try{return e.getItem(t)}catch{}}function Zt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function In(e,t){try{e.removeItem(t)}catch{}}function lt(e,t){return Zt(e,Sr,t.toString())}function ut(e){return parseInt(ct(e,Sr))||0}let De=typeof window>"u"?{}:window;function _r(e){const t=e+"Storage";try{if(De&&De[t]&&typeof De[t].length=="number")return De[t]}catch{}ce[e]=!1}function Ir(e,t){const n=_r(e);if(!n)return;const r=ct(n,_n);if(r!==Cn){if(r){const c=ut(n);for(let l=0;l<c;l++)In(n,be+l.toString())}Zt(n,_n,Cn),lt(n,0);return}const s=Math.floor(Date.now()/Cr)-Li,i=c=>{const l=be+c.toString(),u=ct(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>s&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,c))return!0}catch{}In(n,l)}};let a=ut(n);for(let c=a-1;c>=0;c--)i(c)||(c===a-1?(a--,lt(n,a)):wr[e].add(c))}function Er(){if(!Qt){Ei(!0);for(const e in ce)Ir(e,t=>{const n=t.data,r=t.provider,s=n.prefix,i=Z(r,s);if(!Kt(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Lr(e,t){switch(e){case"local":case"session":ce[e]=t;break;case"all":for(const n in ce)ce[n]=t;break}}const dt=Object.create(null);function Tr(e,t){dt[e]=t}function ft(e){return dt[e]||dt[""]}function Xt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Xe=Object.create(null),me=["https://api.simplesvg.com","https://api.unisvg.com"],Ne=[];for(;me.length>0;)me.length===1||Math.random()>.5?Ne.push(me.shift()):Ne.push(me.pop());Xe[""]=Xt({resources:["https://api.iconify.design"].concat(Ne)});function Pr(e,t){const n=Xt(t);return n===null?!1:(Xe[e]=n,!0)}function Je(e){return Xe[e]}function Ti(){return Object.keys(Xe)}const Pi=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let We=Pi();function Ri(e){We=e}function ki(){return We}function Di(e,t){const n=Je(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(a=>{s=Math.max(s,a.length)});const i=t+".json?icons=";r=n.maxURL-s-n.path.length-i.length}return r}function Ai(e){return e===404}const Oi=(e,t,n)=>{const r=[],s=Di(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,u)=>{c+=l.length+1,c>=s&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},c=l.length),a.icons.push(l)}),r.push(a),r};function $i(e){if(typeof e=="string"){const t=Je(e);if(t)return t.path}return"/"}const Mi=(e,t,n)=>{if(!We){n("abort",424);return}let r=$i(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let s=503;We(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(Ai(a)?"abort":"next",a)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",s)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",s)})},Ni={prepare:Oi,send:Mi};function zi(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const i=s.provider,a=s.prefix,c=s.name,l=n[i]||(n[i]=Object.create(null)),u=l[a]||(l[a]=Z(i,a));let d;c in u.icons?d=t.loaded:a===""||u.missing.has(c)?d=t.missing:d=t.pending;const f={provider:i,prefix:a,name:c};d.push(f)}),t}function Rr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function Bi(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(i=>{const a=i.icons,c=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==s)return!0;const u=l.name;if(e.icons[u])a.loaded.push({provider:r,prefix:s,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:s,name:u});else return n=!0,!0;return!1}),a.pending.length!==c&&(n||Rr([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let Ui=0;function Hi(e,t,n){const r=Ui++,s=Rr.bind(null,n,r);if(!t.pending.length)return s;const i={id:r,icons:t,callback:e,abort:s};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),s}function Fi(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const i=typeof s=="string"?he(s,t,n):s;i&&r.push(i)}),r}var Vi={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function qi(e,t,n,r){const s=e.resources.length,i=e.random?Math.floor(Math.random()*s):e.index;let a;if(e.random){let j=e.resources.slice(0);for(a=[];j.length>1;){const E=Math.floor(Math.random()*j.length);a.push(j[E]),j=j.slice(0,E).concat(j.slice(E+1))}a=a.concat(j)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let l="pending",u=0,d,f=null,p=[],y=[];typeof r=="function"&&y.push(r);function w(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),w(),p.forEach(j=>{j.status==="pending"&&(j.status="aborted")}),p=[]}function S(j,E){E&&(y=[]),typeof j=="function"&&y.push(j)}function b(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:S,abort:h}}function T(){l="failed",y.forEach(j=>{j(void 0,d)})}function I(){p.forEach(j=>{j.status==="pending"&&(j.status="aborted")}),p=[]}function R(j,E,x){const _=E!=="success";switch(p=p.filter(L=>L!==j),l){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){d=x,T();return}if(_){d=x,p.length||(a.length?D():T());return}if(w(),I(),!e.random){const L=e.resources.indexOf(j.resource);L!==-1&&L!==e.index&&(e.index=L)}l="completed",y.forEach(L=>{L(x)})}function D(){if(l!=="pending")return;w();const j=a.shift();if(j===void 0){if(p.length){f=setTimeout(()=>{w(),l==="pending"&&(I(),T())},e.timeout);return}T();return}const E={status:"pending",resource:j,callback:(x,_)=>{R(E,x,_)}};p.push(E),u++,f=setTimeout(D,e.rotate),n(j,t,E.callback)}return setTimeout(D),b}function kr(e){const t={...Vi,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function s(c,l,u){const d=qi(t,c,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(c){return n.find(l=>c(l))||null}return{query:s,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function En(){}const st=Object.create(null);function Wi(e){if(!st[e]){const t=Je(e);if(!t)return;const n=kr(t),r={config:t,redundancy:n};st[e]=r}return st[e]}function Dr(e,t,n){let r,s;if(typeof e=="string"){const i=ft(e);if(!i)return n(void 0,424),En;s=i.send;const a=Wi(e);a&&(r=a.redundancy)}else{const i=Xt(e);if(i){r=kr(i);const a=e.resources?e.resources[0]:"",c=ft(a);c&&(s=c.send)}}return!r||!s?(n(void 0,424),En):r.query(t,s,n)().abort}function Ki(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in ce)Ir(r,s=>{const i=s.data;return s.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function Gi(e,t){Qt||Er();function n(r){let s;if(!ce[r]||!(s=_r(r)))return;const i=wr[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=ut(s),!lt(s,a+1))return;const c={cached:Math.floor(Date.now()/Cr),provider:e.provider,data:t};return Zt(s,be+a.toString(),JSON.stringify(c))}t.lastModified&&!Ki(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ln(){}function Qi(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Bi(e)}))}function Zi(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,s=e.iconsToLoad;delete e.iconsToLoad;let i;if(!s||!(i=ft(n)))return;i.prepare(n,r,s).forEach(c=>{Dr(n,c,l=>{if(typeof l!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=Kt(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),Gi(e,l)}catch(u){console.error(u)}Qi(e)})})}))}const Xi=e=>{const n=Z(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Jt=(e,t)=>{const n=Fi(e,!0,xi()),r=zi(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Ln)}),()=>{l=!1}}const s=Object.create(null),i=[];let a,c;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===c&&u===a)return;a=u,c=d,i.push(Z(u,d));const f=s[u]||(s[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=Z(u,d),y=p.pendingIcons||(p.pendingIcons=new Set);y.has(f)||(y.add(f),s[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;s[u][d].length&&Zi(l,s[u][d])}),t?Hi(t,r,i):Ln},Ji=e=>new Promise((t,n)=>{const r=typeof e=="string"?he(e,!0):e;if(!r){n(e);return}Jt([r||e],s=>{if(s.length&&r){const i=Se(r);if(i){t({...we,...i});return}}n(e)})});function Ar(e,t){const n={...e};for(const r in t){const s=t[r],i=typeof s;r in yr?(s===null||s&&(i==="string"||i==="number"))&&(n[r]=s):i===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const Ye={...br,inline:!1},ot="iconify",pt="iconify-inline",se="iconifyData"+Date.now();let le=[];function Ce(e){for(let t=0;t<le.length;t++){const n=le[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Or(e,t=!1){let n=Ce(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},le.push(n),n)}function Yi(){if(document.documentElement)return Or(document.documentElement);le.push({node:()=>document.documentElement})}function ea(e){le=le.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function _e(){return le}function ta(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let xe=null;const na={childList:!0,subtree:!0,attributes:!0};function $r(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,xe&&xe(e)}))}function ra(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const s=t[r];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[se]!==void 0){n.paused||$r(e);return}}}function Mr(e,t){e.observer.instance.observe(t,na)}function Ke(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(ra.bind(null,e)),Mr(e,n),t.paused||$r(e))}function Tn(){_e().forEach(Ke)}function Nr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function sa(e){const t=xe!==null;if(xe!==e&&(xe=e,t&&_e().forEach(Nr)),t){Tn();return}ta(Tn)}function ht(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function oa(e){if(e){const t=Ce(e);t&&ht(t)}else ht()}function mt(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){Ke(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Mr(t,r):Ke(t);else return}})}function ia(e){if(e){const t=Ce(e);t&&mt(t)}else mt()}function zr(e,t=!1){const n=Or(e,t);return Ke(n),n}function Br(e){const t=Ce(e);t&&(Nr(t),ea(e))}function aa(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const s in Ye)if(n[s]!==r[s])return!0;return!1}function ca(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/s,i%1===0?r(i):0)}}return t}const la=/[\s,]+/;function ua(e,t){t.split(la).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const da=["width","height"],fa=["inline","hFlip","vFlip"];function pa(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function ha(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&he(t,!0);if(!n)return null;const r={...Ye,inline:e.classList&&e.classList.contains(pt)};da.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(r.rotate=ca(s));const i=e.getAttribute("data-flip");typeof i=="string"&&ua(r,i),fa.forEach(c=>{const l="data-"+c,u=pa(e.getAttribute(l),l);typeof u=="boolean"&&(r[c]=u)});const a=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:a}}const ma="svg."+ot+", i."+ot+", span."+ot+", i."+pt+", span."+pt;function ga(e){const t=[];return e.querySelectorAll(ma).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?ha(n):null;r&&t.push({node:n,props:r})}),t}function Ur(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let ve;function xa(){try{ve=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ve=null}}function va(e){return ve===void 0&&xa(),ve?ve.createHTML(e):e}function Hr(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Fr(e,t,n,r){const s=e.classList;if(r){const a=r.classList;Array.from(a).forEach(c=>{s.add(c)})}const i=[];return t.forEach(a=>{s.contains(a)?n.has(a)&&i.push(a):(s.add(a),i.push(a))}),n.forEach(a=>{t.has(a)||s.remove(a)}),i}function Vr(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const s=[];for(const i in t)r.getPropertyValue(i)||(s.push(i),r.setProperty(i,t[i]));return s}function qr(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const s=t.customisations,i=Ze(n,s),a=e[se],c=Ur(jr(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=va(c);const l=r.childNodes[0],u=e.attributes;for(let w=0;w<u.length;w++){const h=u.item(w),S=h.name;S!=="class"&&!l.hasAttribute(S)&&l.setAttribute(S,h.value)}const d=Hr(t.icon),f=Fr(l,d,new Set(a&&a.addedClasses),e),p=Vr(l,s.inline?{"vertical-align":"-0.125em"}:{},a&&a.addedStyles),y={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=y,e.parentNode&&e.parentNode.replaceChild(l,e),l}function ya(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ba(e){return"data:image/svg+xml,"+ya(e)}function ja(e){return'url("'+ba(e)+'")'}const wa={display:"inline-block"},gt={"background-color":"currentColor"},Wr={"background-color":"transparent"},Pn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Rn={"-webkit-mask":gt,mask:gt,background:Wr};for(const e in Rn){const t=Rn[e];for(const n in Pn)t[e+"-"+n]=Pn[n]}function kn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Sa(e,t,n,r){const s=t.customisations,i=Ze(n,s),a=i.attributes,c=e[se],l=Ur(i.body,{...a,width:n.width+"",height:n.height+""}),u=Hr(t.icon),d=Fr(e,u,new Set(c&&c.addedClasses)),p={"--svg":ja(l),width:kn(a.width),height:kn(a.height),...wa,...r?gt:Wr};s.inline&&(p["vertical-align"]="-0.125em");const y=Vr(e,p,c&&c.addedStyles),w={...t,status:"loaded",addedClasses:d,addedStyles:y};return e[se]=w,e}let Ae=!1;function Ca(){Ae||(Ae=!0,setTimeout(()=>{Ae&&(Ae=!1,pe())}))}function pe(e,t=!1){const n=Object.create(null);function r(s,i){const{provider:a,prefix:c,name:l}=s,u=Z(a,c),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!Xi(s)){const f=n[a]||(n[a]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:_e()).forEach(s=>{const i=typeof s.node=="function"?s.node():s.node;if(!i||!i.querySelectorAll)return;let a=!1,c=!1;function l(u,d,f){if(c||(c=!0,ht(s)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,y=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Sa(u,d,{...we,...f},y);return}}qr(u,d,f)}ga(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:y,icon:w}=r(d.icon,!0);if(w){l(u,d,w);return}a=a||y==="loading",u[se]={...d,status:y};return}let p;if(aa(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){a=a||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),s.temporary&&!a?Br(i):t&&a?zr(i,!0):c&&s.observer&&mt(s)});for(const s in n){const i=n[s];for(const a in i){const c=i[a];Jt(Array.from(c).map(l=>({provider:s,prefix:a,name:l})),Ca)}}}function _a(e){const t=Ce(e);t?pe(t):pe({node:e,temporary:!0},!0)}function Kr(e,t,n=!1){const r=Se(e);if(!r)return null;const s=he(e),i=Ar(Ye,t||{}),a=qr(document.createElement("span"),{name:e,icon:s,customisations:i},r);return n?a.outerHTML:a}function Ia(){return"3.1.1"}function Ea(e,t){return Kr(e,t,!1)}function La(e,t){return Kr(e,t,!0)}function Ta(e,t){const n=Se(e);if(!n)return null;const r=Ar(Ye,t||{});return Ze(n,r)}function Pa(e){e?_a(e):pe()}if(typeof document<"u"&&typeof window<"u"){Yi();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!vr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{sa(pe),pe()})}function Ra(e,t){Lr(e,t!==!1)}function ka(e){Lr(e,!0)}Tr("",Ni);if(typeof document<"u"&&typeof window<"u"){Er();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;Pr(n,s)||console.error(r)}catch{console.error(r)}}}}const Da={getAPIConfig:Je,setAPIModule:Tr,sendAPIQuery:Dr,setFetch:Ri,getFetch:ki,listAPIProviders:Ti},Aa={_api:Da,addAPIProvider:Pr,loadIcons:Jt,loadIcon:Ji,iconExists:yi,getIcon:bi,listIcons:gi,addIcon:vi,addCollection:vr,replaceIDs:jr,calculateSize:at,buildIcon:Ze,getVersion:Ia,renderSVG:Ea,renderHTML:La,renderIcon:Ta,scan:Pa,observe:zr,stopObserving:Br,pauseObserver:oa,resumeObserver:ia,enableCache:Ra,disableCache:ka};try{self.Iconify===void 0&&(self.Iconify=Aa)}catch{}var Yt={},Oa=H;Object.defineProperty(Yt,"__esModule",{value:!0});var Gr=Yt.default=void 0,$a=Oa(F()),Ma=o;Gr=Yt.default=(0,$a.default)((0,Ma.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function en({infos:e}){const{t}=X(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(s=>{n.searchParams.set(s.label,s.value)});const r=e.map(s=>`* ${s.label}: ${s.value}`).join(`
155
155
  `);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
156
156
 
157
157
 
@@ -161,7 +161,7 @@ import{z as Ge,f as M,h as Y,A as et,B as rs,b as ss,C as os,D as is,E as An,F a
161
161
  ${r}
162
162
  * Page: ${window.location.href}
163
163
  -->
164
- `),O(I,{sx:{mx:{xs:0,md:2}},children:O(bt,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}en.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};en.defaultProps={infos:[]};var tn={},Na=U;Object.defineProperty(tn,"__esModule",{value:!0});var xt=tn.default=void 0,za=Na(H()),kn=o;xt=tn.default=(0,za.default)([(0,kn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,kn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ne({children:e}){return Q(n=>n.breakpoints.down("md"))?o.jsx(ze,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:o.jsx(I,{sx:{display:"flex",alignItems:"center",gap:1},children:o.jsx(xt,{fontSize:"small"})})}):o.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(xt,{fontSize:"small"}),e]})}ne.propTypes={children:m.node.isRequired};const Ba="https://launcher.arcblock.io/",Ua=30*24*60*60*1e3;function nn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var k,j,b,C,_,L;const{t:i,locale:a}=X(),c=Ge(),[l,u]=Xn({safeIframeRef:null,popoverAnchorEl:null}),d=g.useRef(null),f=Q(P=>P.breakpoints.down("md")),{sx:p={},...v}=s,w=f?"mobile":"desktop",h=Zn(async()=>{const[P,F]=await Promise.all([c.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),On({launcherUrl:e||Ba,nftDid:n,launcherSessionId:r,locale:a})]);if(P!=null&&P.error)throw new Error(P.error);return{launcherSession:P.launcherSession,subscriptionURL:F}},[a]);if(h.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!f&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${w}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const S=P=>{u({popoverAnchorEl:P.currentTarget})},y=()=>{u({popoverAnchorEl:null})},T=(k=h.value)==null?void 0:k.launcherSession;let E="success";[$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((b=(j=h.value)==null?void 0:j.launcherSession)==null?void 0:b.status)&&(E="error");let R=null;if(T.expirationDate&&!T.subscription){const P=fe(T.expirationDate).diff(fe(),"ms");R=i(`expiration.${w}.tips.${E}`,{validity:Gn(P,{locale:$n(a),compact:!0,verbose:!0})}),P>0&&P<=Ua&&(E="warning")}return o.jsxs(o.Fragment,{children:[o.jsx(ae,{label:o.jsx(ne,{children:R||((_=(C=T==null?void 0:T.subscription)==null?void 0:C.product)==null?void 0:_.name)||i("common.subscription")}),color:E,variant:E!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:S}),o.jsx(Hn,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(L=h.value)==null?void 0:L.subscriptionURL})})]})}nn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};nn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const Ha=30*24*60*60*1e3,Fa="https://launcher.arcblock.io/";function rn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var j,b,C,_,L,P,F;const{t:i,locale:a}=X(),[c,l]=Xn({safeIframeRef:null,popoverAnchorEl:null}),u=g.useRef(null),d=Q(V=>V.breakpoints.down("md")),f=Ge(),{sx:p={},...v}=s,w=d?"mobile":"desktop",h=Zn(async()=>{const[V,Ie]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),On({launcherUrl:e||Fa,nftDid:n,launcherSessionId:r,locale:a})]);if(V!=null&&V.error)throw new Error(V.error);return{launcherSession:V.launcherSession,subscriptionURL:Ie}},[a]);if(h.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!d&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${w}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const S=(b=(j=h.value)==null?void 0:j.launcherSession)==null?void 0:b.expirationDate,y=fe(S).isBefore(fe()),T=fe(S).diff(fe(),"ms");let E="success";T<=Ha&&(E="warning"),y&&(E="error");const R=V=>{l({popoverAnchorEl:V.currentTarget})},k=()=>{l({popoverAnchorEl:null})};return o.jsxs(o.Fragment,{children:[((_=(C=h.value)==null?void 0:C.launcherSession)==null?void 0:_.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i("expiration.desktop.nextInvoice",{date:as(S,a)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...v,onClick:R}),!((P=(L=h.value)==null?void 0:L.launcherSession)!=null&&P.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${w}.tips.${E}`,{validity:Gn(T,{locale:$n(a),compact:!0,verbose:!0})})}),color:E,variant:E!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:R}),o.jsx(Hn,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:k,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(F=h.value)==null?void 0:F.subscriptionURL})})]})}rn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};rn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var sn={},Va=U;Object.defineProperty(sn,"__esModule",{value:!0});var Qr=sn.default=void 0,qa=Va(H()),Wa=o;Qr=sn.default=(0,qa.default)((0,Wa.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var on={},Ka=U;Object.defineProperty(on,"__esModule",{value:!0});var Zr=on.default=void 0,Ga=Ka(H()),Qa=o;Zr=on.default=(0,Ga.default)((0,Qa.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");function Za(){const{inFullPage:e,toggleFullPage:t}=Hs();return O(vt,{onClick:t,children:e?O(Zr,{sx:{transform:"scale(1.3)"}}):O(Qr,{sx:{transform:"scale(1.3)"}})})}function an({children:e}){var E,R,k;const{t}=X(),{loading:n,error:r,actions:{refreshBlocklet:s},env:i,blocklet:a}=je(),{info:c}=cs(),l=Ks(),u=Q(j=>j.breakpoints.down("md")),[d,f]=g.useState(null),{appId:p,version:v}=i,w=[{label:"App ID",value:p},{label:"App Version",value:v},{label:"App Bundle Name",value:(E=a==null?void 0:a.meta)==null?void 0:E.bundleName},{label:"Server Id",value:c.did},{label:"Server Version",value:c.version}],h=j=>{var C,_,L,P;const b=Array.isArray(j)?j:[j];if(u||b.unshift(O(Za,{})),a){const F={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};ls(a)?b.unshift(O(nn,{chainHost:(C=a==null?void 0:a.controller)==null?void 0:C.chainHost,nftId:(_=a==null?void 0:a.controller)==null?void 0:_.nftId,launcherSessionId:(L=a==null?void 0:a.controller)==null?void 0:L.launcherSessionId,launcherUrl:(P=a==null?void 0:a.controller)==null?void 0:P.launcherUrl,sx:F})):c.ownerNft&&c.launcher&&b.unshift(O(rn,{chainHost:c.launcher.chainHost,launcherUrl:c.launcher.url,nftId:c.ownerNft.did,launcherSessionId:c.ownerNft.launcherSessionId,sx:F}))}return b},S=(R=((a==null?void 0:a.environments)||[]).find(j=>j.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:R.value,y=(k=((a==null?void 0:a.environments)||[]).find(j=>j.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:k.value;return g.useEffect(()=>{if(u)f(null);else{const{appLogo:j,appLogoRect:b}=window.blocklet??{};(b||j)&&f(`${b||j}&v=${Date.now()}`)}},[S,y,u]),nt(Xa,{legacy:!1,fullWidth:!0,headerAddons:h,headerProps:{logo:d?O("img",{src:d,alt:"logo"}):null},isMobile:u,footerProps:{addon:O(en,{infos:w})},children:[!a&&n&&O(Be,{relative:"parent",children:O(re,{})}),!a&&r&&nt(Be,{relative:"parent",children:[nt(I,{display:"flex",alignItems:"center",children:[O(Gr,{color:"error",sx:{marginRight:1}}),_t(r)]}),O(wt,{onClick:()=>s(),children:O("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!a&&O(I,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:O(Bs,{FallbackComponent:Us,resetKeys:[l.pathname],children:e})})]})}an.propTypes={children:m.any};an.defaultProps={children:null};const Xa=te(zs)`
164
+ `),O(C,{sx:{mx:{xs:0,md:2}},children:O(bt,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}en.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};en.defaultProps={infos:[]};var tn={},Na=H;Object.defineProperty(tn,"__esModule",{value:!0});var xt=tn.default=void 0,za=Na(F()),Dn=o;xt=tn.default=(0,za.default)([(0,Dn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Dn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ne({children:e}){return Q(n=>n.breakpoints.down("md"))?o.jsx(ze,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:o.jsx(C,{sx:{display:"flex",alignItems:"center",gap:1},children:o.jsx(xt,{fontSize:"small"})})}):o.jsxs(C,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(xt,{fontSize:"small"}),e]})}ne.propTypes={children:m.node.isRequired};const Ba="https://launcher.arcblock.io/",Ua=30*24*60*60*1e3;function nn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var D,j,E,x,_,L;const{t:i,locale:a}=X(),c=Ge(),[l,u]=Xn({safeIframeRef:null,popoverAnchorEl:null}),d=g.useRef(null),f=Q(P=>P.breakpoints.down("md")),{sx:p={},...y}=s,w=f?"mobile":"desktop",h=Zn(async()=>{const[P,V]=await Promise.all([c.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),On({launcherUrl:e||Ba,nftDid:n,launcherSessionId:r,locale:a})]);if(P!=null&&P.error)throw new Error(P.error);return{launcherSession:P.launcherSession,subscriptionURL:V}},[a]);if(h.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!f&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...y});if(h.error)return console.error(h.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${w}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...y,onClick:()=>h.retry()});const S=P=>{u({popoverAnchorEl:P.currentTarget})},b=()=>{u({popoverAnchorEl:null})},T=(D=h.value)==null?void 0:D.launcherSession;let I="success";[$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((E=(j=h.value)==null?void 0:j.launcherSession)==null?void 0:E.status)&&(I="error");let R=null;if(T.expirationDate&&!T.subscription){const P=fe(T.expirationDate).diff(fe(),"ms");R=i(`expiration.${w}.tips.${I}`,{validity:Gn(P,{locale:$n(a),compact:!0,verbose:!0})}),P>0&&P<=Ua&&(I="warning")}return o.jsxs(o.Fragment,{children:[o.jsx(ae,{label:o.jsx(ne,{children:R||((_=(x=T==null?void 0:T.subscription)==null?void 0:x.product)==null?void 0:_.name)||i("common.subscription")}),color:I,variant:I!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...y,onClick:S}),o.jsx(Hn,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:b,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx(C,{sx:{width:{xs:"360px",md:"450px"}},children:o.jsx("iframe",{ref:d,title:i("common.subscription"),width:"100%",height:"600px",style:{border:0},src:(L=h.value)==null?void 0:L.subscriptionURL})})})]})}nn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};nn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const Ha=30*24*60*60*1e3,Fa="https://launcher.arcblock.io/";function rn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var j,E,x,_,L,P,V;const{t:i,locale:a}=X(),[c,l]=Xn({safeIframeRef:null,popoverAnchorEl:null}),u=g.useRef(null),d=Q(N=>N.breakpoints.down("md")),f=Ge(),{sx:p={},...y}=s,w=d?"mobile":"desktop",h=Zn(async()=>{const[N,Ie]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),On({launcherUrl:e||Fa,nftDid:n,launcherSessionId:r,locale:a})]);if(N!=null&&N.error)throw new Error(N.error);return{launcherSession:N.launcherSession,subscriptionURL:Ie}},[a]);if(h.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!d&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...y});if(h.error)return console.error(h.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${w}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...y,onClick:()=>h.retry()});const S=(E=(j=h.value)==null?void 0:j.launcherSession)==null?void 0:E.expirationDate,b=fe(S).isBefore(fe()),T=fe(S).diff(fe(),"ms");let I="success";T<=Ha&&(I="warning"),b&&(I="error");const R=N=>{l({popoverAnchorEl:N.currentTarget})},D=()=>{l({popoverAnchorEl:null})};return o.jsxs(o.Fragment,{children:[((_=(x=h.value)==null?void 0:x.launcherSession)==null?void 0:_.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i("expiration.desktop.nextInvoice",{date:as(S,a)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...y,onClick:R}),!((P=(L=h.value)==null?void 0:L.launcherSession)!=null&&P.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${w}.tips.${I}`,{validity:Gn(T,{locale:$n(a),compact:!0,verbose:!0})})}),color:I,variant:I!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...y,onClick:R}),o.jsx(Hn,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:D,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx(C,{sx:{width:{xs:"360px",md:"450px"}},children:o.jsx("iframe",{ref:u,title:i("common.subscription"),width:"100%",height:"600px",style:{border:0},src:(V=h.value)==null?void 0:V.subscriptionURL})})})]})}rn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};rn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var sn={},Va=H;Object.defineProperty(sn,"__esModule",{value:!0});var Qr=sn.default=void 0,qa=Va(F()),Wa=o;Qr=sn.default=(0,qa.default)((0,Wa.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var on={},Ka=H;Object.defineProperty(on,"__esModule",{value:!0});var Zr=on.default=void 0,Ga=Ka(F()),Qa=o;Zr=on.default=(0,Ga.default)((0,Qa.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");function Za(){const{inFullPage:e,toggleFullPage:t}=Hs();return O(vt,{onClick:t,children:e?O(Zr,{sx:{transform:"scale(1.3)"}}):O(Qr,{sx:{transform:"scale(1.3)"}})})}function an({children:e}){var I,R,D;const{t}=X(),{loading:n,error:r,actions:{refreshBlocklet:s},env:i,blocklet:a}=je(),{info:c}=cs(),l=Ks(),u=Q(j=>j.breakpoints.down("md")),[d,f]=g.useState(null),{appId:p,version:y}=i,w=[{label:"App ID",value:p},{label:"App Version",value:y},{label:"App Bundle Name",value:(I=a==null?void 0:a.meta)==null?void 0:I.bundleName},{label:"Server Id",value:c.did},{label:"Server Version",value:c.version}],h=j=>{var x,_,L,P;const E=Array.isArray(j)?j:[j];if(u||E.unshift(O(Za,{})),a){const V={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};ls(a)?E.unshift(O(nn,{chainHost:(x=a==null?void 0:a.controller)==null?void 0:x.chainHost,nftId:(_=a==null?void 0:a.controller)==null?void 0:_.nftId,launcherSessionId:(L=a==null?void 0:a.controller)==null?void 0:L.launcherSessionId,launcherUrl:(P=a==null?void 0:a.controller)==null?void 0:P.launcherUrl,sx:V})):c.ownerNft&&c.launcher&&E.unshift(O(rn,{chainHost:c.launcher.chainHost,launcherUrl:c.launcher.url,nftId:c.ownerNft.did,launcherSessionId:c.ownerNft.launcherSessionId,sx:V}))}return E},S=(R=((a==null?void 0:a.environments)||[]).find(j=>j.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:R.value,b=(D=((a==null?void 0:a.environments)||[]).find(j=>j.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:D.value;return g.useEffect(()=>{if(u)f(null);else{const{appLogo:j,appLogoRect:E}=window.blocklet??{};(E||j)&&f(`${E||j}&v=${Date.now()}`)}},[S,b,u]),nt(Xa,{legacy:!1,fullWidth:!0,headerAddons:h,headerProps:{logo:d?O("img",{src:d,alt:"logo"}):null},isMobile:u,footerProps:{addon:O(en,{infos:w})},children:[!a&&n&&O(Be,{relative:"parent",children:O(re,{})}),!a&&r&&nt(Be,{relative:"parent",children:[nt(C,{display:"flex",alignItems:"center",children:[O(Gr,{color:"error",sx:{marginRight:1}}),_t(r)]}),O(wt,{onClick:()=>s(),children:O("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!a&&O(C,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:O(Bs,{FallbackComponent:Us,resetKeys:[l.pathname],children:e})})]})}an.propTypes={children:m.any};an.defaultProps={children:null};const Xa=te(zs)`
165
165
  div.dashboard-content {
166
166
  padding: 0;
167
167
  }
@@ -169,7 +169,7 @@ ${r}
169
169
  max-height: 400px;
170
170
  overflow-y: auto;
171
171
  }
172
- `;function Ja(){const{t:e,locale:t}=X(),{blocklet:n,launcherSession:r}=je(),[s,i]=Qs({subscriptionURL:"#"});if(g.useEffect(()=>{var l,u;ln(n,r)&&us({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!ds(n)||r.status===$.LAUNCH_SESSION_STATUS.installed)return"";let a=null,c="";return ln(n,r)?(a=o.jsx(bt,{href:s.subscriptionURL,children:e("blocklet.manageSubscription")}),c=e("blocklet.suspendedCausedByExpired",{deadline:un(r==null?void 0:r.reservedUntil,t)})):fs(n,r)&&(a=o.jsx(qn,{to:Ct($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),c=e("blocklet.suspendedCausedByTerminated",{canceledAt:un(r==null?void 0:r.terminatedAt,t),deadline:ps(r==null?void 0:r.terminatedAt,t)})),o.jsxs(I,{component:Fs,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[c,o.jsx(N,{component:"span",sx:{marginLeft:"4px"},children:a})]})}const Xr=g.createContext({});function $c(){return g.useContext(Xr)}const{Provider:Ya,Consumer:Mc}=Xr,{did:K,appId:ec}=window.env;function tc({children:e}){var j,b;const{t,locale:n}=X(),{blocklet:r}=je(),[s,i]=g.useState([]),[a,c]=g.useState([]),[l,u]=g.useState([]),d=M.getDisplayName(r),f=((j=((r==null?void 0:r.environments)||[]).find(C=>C.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:j.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],v=(r==null?void 0:r.trustedFactories)||[],w=(r==null?void 0:r.enablePassportIssuance)!==!1,h=async()=>{try{const C=await Re.doBatchQuery({getRoles:{input:{teamDid:K}},getPermissions:{input:{teamDid:K}},getInvitations:{input:{teamDid:K}}});c((C.getRoles.roles||[]).filter(_=>!$.RBAC_CONFIG.roles.some(L=>L.name===_.name&&(!L.passport||L.ci))).map(_=>(_.hasDescription=!!_.description,_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),_))),u(C.getPermissions.permissions||[]),i(C.getInvitations.invitations||[])}catch(C){ee.error(C.message)}},S=({did:C}={})=>{const _={teamDid:K,user:{did:C}};return Re.getUser({input:_})},y=({query:C,paging:_}={})=>{const L={teamDid:K};return _&&(L.paging=_),C&&(L.query=C),L.sort={lastLoginAt:-1},Re.getUsers({input:L})},T=()=>Re.getUsersCountPerRole({input:{teamDid:K}}),E=()=>h();g.useEffect(()=>{var C;(C=r==null?void 0:r.meta)!=null&&C.did&&h()},[(b=r==null?void 0:r.meta)==null?void 0:b.did]),g.useEffect(()=>{c(C=>C.map(_=>(_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),{..._})))},[t,n]);const R=C=>{C.teamDid===K&&h()};Oe(Y.TeamEvents.userAdded,R,[K]),Oe(Y.TeamEvents.userRemoved,R,[K]),Oe(Y.TeamEvents.userUpdated,R,[K]);const k={teamDid:K,teamIssuerDid:ec,teamName:d,invitations:s,roles:a,permissions:l,trustedPassports:p,trustedFactories:v,isNodeTeam:!1,enablePassportIssuance:w,refresh:E,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:S,getUsers:y,getUsersCountPerRole:T}};return o.jsx(Ya,{value:k,children:e})}const nc=g.lazy(()=>z(()=>import("./overview-D8oAW2La.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),rc=g.lazy(()=>z(()=>import("./domains-DYymQ_65.js"),__vite__mapDeps([23,2,3,4,1,5,6,10,24,25,18,19,20,13,14,26,27,28,29,30,31,32,22,21,33,9,34]))),sc=g.lazy(()=>z(()=>import("./index-DiX6J9w5.js"),__vite__mapDeps([35,2,1,4,36,3,5,6,32,37,38,10,11,25,18,29,14,20,9,39,13,40,41,42,43,26,27,30,12,15,16,17,19,21,22]))),oc=g.lazy(()=>z(()=>import("./index-BX3rOdw-.js"),__vite__mapDeps([44,2,1,32,3,4,5,6,45,46,38,10,25,18,13,14,47,48,11,22,12,15,16,17,19,20,21]))),ic=g.lazy(()=>z(()=>import("./index-CVcY_VTn.js"),__vite__mapDeps([49,2,1,50,3,4,5,6,51,52,53,54,10,36,45,55,56,57,17,25,18,13,14,22,29,9,11,7,8,58,59,60,32,41,12,15,16,19,20,21]))),ac=g.lazy(()=>z(()=>import("./audit-logs-C1Gyw98-.js"),__vite__mapDeps([61,3,2,4,1,5,6,40,41,12,10,62,63,21,64,17,30,65,13,14,15,16,18,19,20,22]))),cc=g.lazy(()=>z(()=>import("./index-DrWKVSz_.js"),__vite__mapDeps([66,2,1,4,3,5,6,10,30,9,67,68,57,17,64,21,11,40,41,69,19,20,50,70,71,56,72,14,73,12,13,15,16,18,22]))),lc=g.lazy(()=>z(()=>import("./log-CreobbQA.js"),__vite__mapDeps([74,1,2,12,3,4,5,6,10,75,57,76]))),uc=g.lazy(()=>z(()=>import("./index-CJtxyUnG.js"),__vite__mapDeps([77,2,1,10,3,4,5,6,32,78,13,14,18,11,79,80,57,30,75,29,81,22,36,68,43,33,56,73,39,82,83,53,28,16,55,62,63,65]))),dc=g.lazy(()=>z(()=>import("./config-navigation-BM8q4Kld.js"),__vite__mapDeps([84,2,3,4,1,5,6,85,10,58,8,48,86,17,14,12,13,15,16,18,19,20,21,22]))),fc=g.lazy(()=>z(()=>import("./index-CrKuY_PA.js"),__vite__mapDeps([87,1,2,5,4,10,3,6,88,33,89,90,39,14,9,27,16,60,12,13,15,17,18,19,20,21,22]))),pc=g.lazy(()=>z(()=>import("./component-CsbE8XV6.js"),__vite__mapDeps([91,1,2,4,3,5,6,32,52,53,54,10,36,45,55,60,25,18,85,72,80,29,56,71,14,92,82,83,39,28,30,13,16,11,93,94,90,33,95,47,48,62,63,86,9,12,31,88,96,89,97,46,21,57,15,26,27,17,19,20,22]))),hc=g.lazy(()=>z(()=>import("./analytics-BZ-j-os_.js"),__vite__mapDeps([98,1,2,3,4,5,6,69,10,19,20,50,70,71,56,72,14,73,17,57,12,13,15,16,18,21,22]))),mc=Ct($.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications");function gc(){var k,j;const e=Wn(),{tab:t="overview"}=Gs(),{blocklet:n,actions:{refreshBlocklet:r}}=je(),{t:s}=X(),{session:i}=Qn(),a=Ue(()=>{var b;return(b=i==null?void 0:i.user)==null?void 0:b.did},[i]),{enqueueSnackbar:c}=Fn(),l=Ue(()=>{var b;return((b=i.user)==null?void 0:b.role)&&ms.includes(i.user.role)},[i]),u=(k=n==null?void 0:n.meta)==null?void 0:k.did,d=b=>{e(`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${b}`)},f=()=>{r()},p=!n||dn(n.status)?[]:M.getAppMissingConfigs(n),v=[{label:s("common.overview"),value:"overview"},{label:o.jsx(Ps,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!p.length,children:s("common.components")}),value:"components"},{label:s("common.domains"),value:"domains"}];dn(n==null?void 0:n.status)||v.push({label:s("common.configuration"),value:"configuration"}),v.push({label:s("common.auditLogs"),value:"audit-logs"}),l&&v.push({label:s("common.notificationRecords"),value:"notifications"}),n&&((j=n.children)!=null&&j.length)&&n.structVersion===$.APP_STRUCT_VERSION&&v.push({label:s("common.logs"),value:"logs"}),v.push({label:s("common.configNavigation"),value:"navigation"});const w=o.jsx(ac,{scope:u,categories:["blocklet","team","security","certificates","gateway"]}),h=g.useCallback(b=>Js(mc,{id:b.id,severity:b.severity||"all",componentDid:b.source==="system"?"system":b.componentDid||"all"}),[]);Oe(`${a}/${$.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,b=>{const C=h(b),{severity:_,description:L}=b||{},P=["error","warning"].includes(_)||b.sticky;c(L,{variant:_,autoHideDuration:P?null:5e3,content:F=>o.jsx(Wo,{viewAllUrl:C,keyId:F,notification:b,content:o.jsx(ai,{notification:b,minimal:!0,rows:0})})})},[],"user");const S=g.useCallback(()=>l?o.jsx(cc,{blocklet:n}):o.jsx(qs,{status:403}),[n,l]),y={overview:o.jsx(nc,{}),domains:o.jsx(rc,{}),members:o.jsx(I,{mt:-5,children:o.jsx(sc,{type:"blocklet",createPassportSvg:fn})}),passports:o.jsx(I,{mt:-4.5,children:o.jsx(oc,{createPassportSvg:fn})}),components:pc,configuration:o.jsx(ic,{blocklet:n,onUpdate:f}),"audit-logs":w,notifications:S,logs:lc,navigation:dc,"did-spaces":o.jsx(fc,{navOrientation:"horizontal",sx:{mt:-4}}),analytics:o.jsx(I,{mt:-5,children:o.jsx(hc,{})}),publish:o.jsx(I,{mt:-3,children:o.jsx(uc,{})})},T=y[t]||y.overview,E=!["members","passports","analytics","publish","did-spaces"].includes(t),R=n?o.jsxs(zt,{type:"components",children:[E&&o.jsx(I,{pt:3,children:o.jsx(Ws,{tabs:v,current:t,onChange:d,scrollButtons:"auto"})}),o.jsx("div",{className:"page-content",children:o.jsx(g.Suspense,{fallback:o.jsx(Be,{relative:"parent",children:o.jsx(re,{})}),children:g.isValidElement(T)?T:o.jsx(T,{blocklet:n})})})]}):o.jsx(Be,{relative:"parent",children:o.jsx(re,{})});return o.jsx(gs,{children:o.jsx(tc,{children:o.jsx(an,{children:o.jsxs(vc,{children:[E&&o.jsxs(I,{component:"div",className:"page-header",children:[o.jsxs(N,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?o.jsx(to,{blocklet:n,style:{marginRight:16}}):null,n?o.jsxs(I,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[o.jsx(I,{children:M.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&o.jsx(Nt,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${s("common.blocklet")} ${s("common.detail")}`]}),n?o.jsx($o,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:b}={})=>{b&&ee.error(b.message)},variant:"group"}):null]}),o.jsx(ar,{}),o.jsx(Ja,{}),R]})})})})}function xc(){var r;const{blocklet:e}=je(),{t}=X(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return g.useEffect(()=>{const s=hs();return n&&s.connect(),()=>{n&&s.isConnected()&&s.disconnect()}},[n]),o.jsxs(o.Fragment,{children:[o.jsx(Vs,{children:o.jsx("title",{children:t("pageTitle.dashboard")})}),o.jsx(gc,{})]})}const vc=te.main`
172
+ `;function Ja(){const{t:e,locale:t}=X(),{blocklet:n,launcherSession:r}=je(),[s,i]=Qs({subscriptionURL:"#"});if(g.useEffect(()=>{var l,u;ln(n,r)&&us({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!ds(n)||r.status===$.LAUNCH_SESSION_STATUS.installed)return"";let a=null,c="";return ln(n,r)?(a=o.jsx(bt,{href:s.subscriptionURL,children:e("blocklet.manageSubscription")}),c=e("blocklet.suspendedCausedByExpired",{deadline:un(r==null?void 0:r.reservedUntil,t)})):fs(n,r)&&(a=o.jsx(qn,{to:Ct($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),c=e("blocklet.suspendedCausedByTerminated",{canceledAt:un(r==null?void 0:r.terminatedAt,t),deadline:ps(r==null?void 0:r.terminatedAt,t)})),o.jsxs(C,{component:Fs,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[c,o.jsx(B,{component:"span",sx:{marginLeft:"4px"},children:a})]})}const Xr=g.createContext({});function Mc(){return g.useContext(Xr)}const{Provider:Ya,Consumer:Nc}=Xr,{did:K,appId:ec}=window.env;function tc({children:e}){var j,E;const{t,locale:n}=X(),{blocklet:r}=je(),[s,i]=g.useState([]),[a,c]=g.useState([]),[l,u]=g.useState([]),d=z.getDisplayName(r),f=((j=((r==null?void 0:r.environments)||[]).find(x=>x.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:j.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],y=(r==null?void 0:r.trustedFactories)||[],w=(r==null?void 0:r.enablePassportIssuance)!==!1,h=async()=>{try{const x=await Re.doBatchQuery({getRoles:{input:{teamDid:K}},getPermissions:{input:{teamDid:K}},getInvitations:{input:{teamDid:K}}});c((x.getRoles.roles||[]).filter(_=>!$.RBAC_CONFIG.roles.some(L=>L.name===_.name&&(!L.passport||L.ci))).map(_=>(_.hasDescription=!!_.description,_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),_))),u(x.getPermissions.permissions||[]),i(x.getInvitations.invitations||[])}catch(x){ee.error(x.message)}},S=({did:x}={})=>{const _={teamDid:K,user:{did:x}};return Re.getUser({input:_})},b=({query:x,paging:_}={})=>{const L={teamDid:K};return _&&(L.paging=_),x&&(L.query=x),L.sort={lastLoginAt:-1},Re.getUsers({input:L})},T=()=>Re.getUsersCountPerRole({input:{teamDid:K}}),I=()=>h();g.useEffect(()=>{var x;(x=r==null?void 0:r.meta)!=null&&x.did&&h()},[(E=r==null?void 0:r.meta)==null?void 0:E.did]),g.useEffect(()=>{c(x=>x.map(_=>(_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),{..._})))},[t,n]);const R=x=>{x.teamDid===K&&h()};Oe(Y.TeamEvents.userAdded,R,[K]),Oe(Y.TeamEvents.userRemoved,R,[K]),Oe(Y.TeamEvents.userUpdated,R,[K]);const D={teamDid:K,teamIssuerDid:ec,teamName:d,invitations:s,roles:a,permissions:l,trustedPassports:p,trustedFactories:y,isNodeTeam:!1,enablePassportIssuance:w,refresh:I,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:S,getUsers:b,getUsersCountPerRole:T}};return o.jsx(Ya,{value:D,children:e})}const nc=g.lazy(()=>M(()=>import("./overview-DhXk6dxJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),rc=g.lazy(()=>M(()=>import("./domains-Cczdqu0Z.js"),__vite__mapDeps([23,2,3,4,1,5,6,10,24,25,26,18,19,20,13,14,27,28,29,30,31,32,33,22,21,34,9,35]))),sc=g.lazy(()=>M(()=>import("./index-Zz9qzQ_9.js"),__vite__mapDeps([36,2,1,4,37,3,5,6,33,38,39,10,11,26,18,30,14,20,9,40,13,41,42,43,44,27,28,31,12,15,16,17,19,21,22]))),oc=g.lazy(()=>M(()=>import("./index-gpG3AUyG.js"),__vite__mapDeps([45,2,1,33,3,4,5,6,46,47,39,10,26,18,13,14,48,49,11,22,12,15,16,17,19,20,21]))),ic=g.lazy(()=>M(()=>import("./index-CR8UpawY.js"),__vite__mapDeps([50,2,1,51,3,4,5,6,52,53,54,55,10,37,46,56,57,58,17,26,18,13,14,22,30,9,11,7,8,59,60,61,33,42,62,12,15,16,19,20,21]))),ac=g.lazy(()=>M(()=>import("./audit-logs-BniXTgud.js"),__vite__mapDeps([63,3,2,4,1,5,6,41,42,12,10,64,65,21,66,17,31,67,13,14,15,16,18,19,20,22]))),cc=g.lazy(()=>M(()=>import("./index-DZeG-UP6.js"),__vite__mapDeps([68,2,1,4,3,5,6,10,31,9,69,70,58,17,66,21,11,41,42,71,19,20,51,72,73,57,74,14,75,12,13,15,16,18,22]))),lc=g.lazy(()=>M(()=>import("./log-MmG2K3Cy.js"),__vite__mapDeps([76,1,2,12,3,4,5,6,10,77,58,78]))),uc=g.lazy(()=>M(()=>import("./index-BUDaVPaJ.js"),__vite__mapDeps([79,2,1,10,3,4,5,6,33,80,13,14,18,11,81,82,58,31,77,30,83,22,37,70,44,34,57,75,40,84,85,54,29,16,56,64,65,67]))),dc=g.lazy(()=>M(()=>import("./config-navigation-WPDlQ1RJ.js"),__vite__mapDeps([86,2,3,4,1,5,6,87,10,59,8,49,88,62,17,14,12,13,15,16,18,19,20,21,22]))),fc=g.lazy(()=>M(()=>import("./index-C-jNyGNZ.js"),__vite__mapDeps([89,1,2,5,4,10,3,6,90,34,91,92,40,14,9,28,16,61,12,13,15,17,18,19,20,21,22]))),pc=g.lazy(()=>M(()=>import("./index-CsCfuYnX.js"),__vite__mapDeps([93,3,2,4,1,5,6,21,10,59,25,13,14,27,28]))),hc=g.lazy(()=>M(()=>import("./component-Dc-fRks0.js"),__vite__mapDeps([94,1,2,4,3,5,6,33,53,54,55,10,37,46,56,61,26,18,87,74,82,30,57,73,14,95,84,85,40,29,31,13,16,11,96,97,92,34,98,48,49,64,65,88,9,12,32,90,99,91,100,47,21,58,15,27,28,17,19,20,22]))),mc=g.lazy(()=>M(()=>import("./analytics-BpE1mSK8.js"),__vite__mapDeps([101,1,2,3,4,5,6,71,10,19,20,51,72,73,57,74,14,75,17,58,12,13,15,16,18,21,22]))),gc=Ct($.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications");function xc(){var D,j,E;const e=Wn(),{tab:t="overview"}=Gs(),{blocklet:n,actions:{refreshBlocklet:r}}=je(),{t:s}=X(),{session:i}=Qn(),a=Ue(()=>{var x;return(x=i==null?void 0:i.user)==null?void 0:x.did},[i]),{enqueueSnackbar:c}=Fn(),l=Ue(()=>{var x;return((x=i.user)==null?void 0:x.role)&&ms.includes(i.user.role)},[i]),u=(D=n==null?void 0:n.meta)==null?void 0:D.did,d=x=>{e(`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${x}`)},f=()=>{r()},p=!n||dn(n.status)?[]:z.getAppMissingConfigs(n),y=[{label:s("common.overview"),value:"overview"},{label:o.jsx(Ps,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!p.length,children:s("common.components")}),value:"components"},{label:s("common.domains"),value:"domains"}];dn(n==null?void 0:n.status)||y.push({label:s("common.configuration"),value:"configuration"}),y.push({label:s("common.auditLogs"),value:"audit-logs"}),l&&y.push({label:s("common.notificationRecords"),value:"notifications"}),n&&((j=n.children)!=null&&j.length)&&n.structVersion===$.APP_STRUCT_VERSION&&y.push({label:s("common.logs"),value:"logs"}),y.push({label:s("common.configNavigation"),value:"navigation"}),["admin","owner"].includes((E=i.user)==null?void 0:E.role)&&y.push({label:"Webhooks",value:"webhooks"});const w=o.jsx(ac,{scope:u,categories:["blocklet","team","security","certificates","gateway"]}),h=g.useCallback(x=>Js(gc,{id:x.id,severity:x.severity||"all",componentDid:x.source==="system"?"system":x.componentDid||"all"}),[]);Oe(`${a}/${$.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,x=>{const _=h(x),{severity:L,description:P}=x||{},V=["error","warning"].includes(L)||x.sticky;c(P,{variant:L,autoHideDuration:V?null:5e3,content:N=>o.jsx(Wo,{viewAllUrl:_,keyId:N,notification:x,content:o.jsx(ai,{notification:x,minimal:!0,rows:0})})})},[],"user");const S=g.useCallback(()=>l?o.jsx(cc,{blocklet:n}):o.jsx(qs,{status:403}),[n,l]),b={overview:o.jsx(nc,{}),domains:o.jsx(rc,{}),members:o.jsx(C,{mt:-5,children:o.jsx(sc,{type:"blocklet",createPassportSvg:fn})}),passports:o.jsx(C,{mt:-4.5,children:o.jsx(oc,{createPassportSvg:fn})}),components:hc,configuration:o.jsx(ic,{blocklet:n,onUpdate:f}),"audit-logs":w,notifications:S,logs:lc,navigation:dc,"did-spaces":o.jsx(fc,{navOrientation:"horizontal",sx:{mt:-4}}),analytics:o.jsx(C,{mt:-5,children:o.jsx(mc,{})}),publish:o.jsx(C,{mt:-3,children:o.jsx(uc,{})}),webhooks:o.jsx(pc,{})},T=b[t]||b.overview,I=!["members","passports","analytics","publish","did-spaces"].includes(t),R=n?o.jsxs(zt,{type:"components",children:[I&&o.jsx(C,{pt:3,children:o.jsx(Ws,{tabs:y,current:t,onChange:d,scrollButtons:"auto"})}),o.jsx("div",{className:"page-content",children:o.jsx(g.Suspense,{fallback:o.jsx(Be,{relative:"parent",children:o.jsx(re,{})}),children:g.isValidElement(T)?T:o.jsx(T,{blocklet:n})})})]}):o.jsx(Be,{relative:"parent",children:o.jsx(re,{})});return o.jsx(gs,{children:o.jsx(tc,{children:o.jsx(an,{children:o.jsxs(yc,{children:[I&&o.jsxs(C,{component:"div",className:"page-header",children:[o.jsxs(B,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?o.jsx(to,{blocklet:n,style:{marginRight:16}}):null,n?o.jsxs(C,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[o.jsx(C,{children:z.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&o.jsx(Nt,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${s("common.blocklet")} ${s("common.detail")}`]}),n?o.jsx($o,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:x}={})=>{x&&ee.error(x.message)},variant:"group"}):null]}),o.jsx(ar,{}),o.jsx(Ja,{}),R]})})})})}function vc(){var r;const{blocklet:e}=je(),{t}=X(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return g.useEffect(()=>{const s=hs();return n&&s.connect(),()=>{n&&s.isConnected()&&s.disconnect()}},[n]),o.jsxs(o.Fragment,{children:[o.jsx(Vs,{children:o.jsx("title",{children:t("pageTitle.dashboard")})}),o.jsx(xc,{})]})}const yc=te.main`
173
173
  .page-header {
174
174
  display: flex;
175
175
  justify-content: space-between;
@@ -215,4 +215,4 @@ ${r}
215
215
  margin-bottom: 15px;
216
216
  }
217
217
  }
218
- `,Nc=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"}));export{Nt as B,Mt as W,rr as a,Yn as b,Jn as c,Gr as d,de as e,Oc as f,Nc as g,$c as u};
218
+ `,zc=Object.freeze(Object.defineProperty({__proto__:null,default:vc},Symbol.toStringTag,{value:"Module"}));export{Nt as B,Mt as W,rr as a,Yn as b,Jn as c,Gr as d,de as e,$c as f,zc as g,Mc as u};