@abtnode/webapp 1.16.52-beta-20250930-134044-9b691563 → 1.16.52-beta-20251002-030549-0f91dab2

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 (202) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-C_fZicyZ.js → AdapterDayjs-V0ywFO6Q.js} +1 -1
  4. package/dist/assets/{Add-CPP2iq1t.js → Add-CzkO3Pzz.js} +1 -1
  5. package/dist/assets/ArrowDropDown-190S9d7I.js +1 -0
  6. package/dist/assets/{Autocomplete-BxF5Rvbu.js → Autocomplete-BW388eBP.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-uc8Wt7P9.js → Breadcrumbs-NrwCYnz0.js} +1 -1
  8. package/dist/assets/{ButtonGroup-B8UFaNni.js → ButtonGroup-o6LmfxeX.js} +1 -1
  9. package/dist/assets/{CSSTransition-CfJLD8on.js → CSSTransition-DsMKw-p5.js} +1 -1
  10. package/dist/assets/{CallMerge-CHXixBm1.js → CallMerge-D1XWrRjM.js} +1 -1
  11. package/dist/assets/{CardContent-Ct11BveH.js → CardContent-D4rz6FRp.js} +1 -1
  12. package/dist/assets/{ChevronLeft-DTV9VYLb.js → ChevronLeft-D4CgzTJY.js} +1 -1
  13. package/dist/assets/{ChevronRight-BV25Yw2E.js → ChevronRight-DXz-F6L7.js} +1 -1
  14. package/dist/assets/{Clear-BLlKzOYZ.js → Clear-NASbJHS6.js} +1 -1
  15. package/dist/assets/{DeleteOutline-1ia7MYDd.js → DeleteOutline-DsnSViGb.js} +1 -1
  16. package/dist/assets/{Done-CV1WQndD.js → Done-D4PPkPui.js} +1 -1
  17. package/dist/assets/{Edit-DrhdrT5r.js → Edit-V0eiBsGU.js} +1 -1
  18. package/dist/assets/{ErrorOutline-CTbGiGqZ.js → ErrorOutline-DA3_RUVz.js} +1 -1
  19. package/dist/assets/{FilterList-Cfx770te.js → FilterList-Y719g2Zi.js} +1 -1
  20. package/dist/assets/{Google-BzDCB92M.js → Google-B3YPvJDV.js} +1 -1
  21. package/dist/assets/{HelpOutline-lLOp8ZZO.js → HelpOutline-c-XuWHxw.js} +1 -1
  22. package/dist/assets/{Launch-C8YfDHGR.js → Launch-COjBPQdg.js} +1 -1
  23. package/dist/assets/{Link-CbeDJYWI.js → Link-qCg-dCX5.js} +1 -1
  24. package/dist/assets/{ListItemButton-DnyaGhp1.js → ListItemButton-BTbVPhQ8.js} +1 -1
  25. package/dist/assets/{ListSubheader-BdUpkkMj.js → ListSubheader-CA8Y4o8o.js} +1 -1
  26. package/dist/assets/{LoadingButton-KJ-dQwc4.js → LoadingButton-DN5HznZc.js} +1 -1
  27. package/dist/assets/{MoreVert-Dgq_vg7Y.js → MoreVert-BQ022_rm.js} +1 -1
  28. package/dist/assets/{OpenInNew-qKGRXQvM.js → OpenInNew-BB6MBnzE.js} +1 -1
  29. package/dist/assets/{Refresh-B8uvuAS9.js → Refresh-r7y4CgN5.js} +1 -1
  30. package/dist/assets/{Search-Djv8dYGS.js → Search-CGTjTzzo.js} +1 -1
  31. package/dist/assets/{Stepper-CNcPZVkm.js → Stepper-CfXniFN2.js} +1 -1
  32. package/dist/assets/{Switch-BtvxAY3n.js → Switch-DYjTi7gg.js} +1 -1
  33. package/dist/assets/{TableSearch-DvRPn5Nk.js → TableSearch-BwtXbQG-.js} +1 -1
  34. package/dist/assets/{ToggleButtonGroup-CYkaYq-d.js → ToggleButtonGroup-DvCR9SNw.js} +1 -1
  35. package/dist/assets/{UnfoldMore-DEEAKAvu.js → UnfoldMore-B3amhCTg.js} +1 -1
  36. package/dist/assets/{Verified-Bq_Wx0qC.js → Verified-DmBfm1uD.js} +1 -1
  37. package/dist/assets/{VerifiedUser-Dib9C-dd.js → VerifiedUser-mZGHgzQb.js} +1 -1
  38. package/dist/assets/{ViewList-Clq_0H-Y.js → ViewList-DtqzxGZt.js} +1 -1
  39. package/dist/assets/{_createAggregator-BRpw45dg.js → _createAggregator-nGamgeOn.js} +1 -1
  40. package/dist/assets/{actions-D3Odd9Yn.js → actions-6ll7jsa3.js} +1 -1
  41. package/dist/assets/{actions-BSoY8XcA.js → actions-DheKYBlc.js} +1 -1
  42. package/dist/assets/{agreement-DKUxCfnZ.js → agreement-CHm-YwcP.js} +1 -1
  43. package/dist/assets/api-D4aKRawp.js +1 -0
  44. package/dist/assets/{appearance-BFqZUmk7.js → appearance-BISi6FkN.js} +1 -1
  45. package/dist/assets/{ar-DWsJvQhm.js → ar-DDKSNNIB.js} +1 -1
  46. package/dist/assets/{audit-logs-Dq1BGSc7.js → audit-logs-DylpExtV.js} +1 -1
  47. package/dist/assets/{base-chart-BBdPuf36.js → base-chart-DWjEmmtF.js} +1 -1
  48. package/dist/assets/{blocklet-IAGGMJGV.js → blocklet-DwOY6PM2.js} +1 -1
  49. package/dist/assets/chain-CrqO5ZBK.js +6 -0
  50. package/dist/assets/{click-to-copy-B8TemOOI.js → click-to-copy-QDhx8_BO.js} +1 -1
  51. package/dist/assets/client-Beap4FeV.js +1 -0
  52. package/dist/assets/cloneDeep-BGXXbqSz.js +1 -0
  53. package/dist/assets/{collapse-CzUrkZT7.js → collapse-C5JgD0iT.js} +1 -1
  54. package/dist/assets/{config-navigation-DuNEv-wk.js → config-navigation-CBsV4a0j.js} +46 -46
  55. package/dist/assets/connect-to-CKdf31e5.js +29 -0
  56. package/dist/assets/{cssMode-Bdog3gks.js → cssMode-aqWJN-f_.js} +1 -1
  57. package/dist/assets/{de-rG0WLGYs.js → de-C5jW-Aco.js} +1 -1
  58. package/dist/assets/{delete-confirm-BtX2gH4O.js → delete-confirm-DFLlapHl.js} +1 -1
  59. package/dist/assets/{depsEqual-nDl4Jb8n.js → depsEqual-CHA3TYmk.js} +1 -1
  60. package/dist/assets/{detail-B3ZtaseD.js → detail-CNTenkKV.js} +3 -3
  61. package/dist/assets/domains-WhieF3AY.js +28 -0
  62. package/dist/assets/download-BH2P43wY.js +445 -0
  63. package/dist/assets/{edit.svg-sU05Ggc3.js → edit.svg-CkS6r8rY.js} +1 -1
  64. package/dist/assets/emotion-cache.browser.esm-BVx7paDx.js +1 -0
  65. package/dist/assets/engine-BcZHSV9-.js +1 -0
  66. package/dist/assets/{es-6DKPq8Yn.js → es-DnE5Se03.js} +1 -1
  67. package/dist/assets/{fr-CT3g9qN-.js → fr-BpXortYf.js} +1 -1
  68. package/dist/assets/{freemarker2-D763tjOa.js → freemarker2-Cybw0O8m.js} +1 -1
  69. package/dist/assets/{get-safe-url-73euyU4H.js → get-safe-url-CwiNWKY8.js} +1 -1
  70. package/dist/assets/getValidReactChildren-BiC2BfQo.js +1 -0
  71. package/dist/assets/{graphqlMode-BxGdEegt.js → graphqlMode-gSVowOId.js} +2 -2
  72. package/dist/assets/{handlebars-CnvMtAI-.js → handlebars-63KuA5s0.js} +1 -1
  73. package/dist/assets/{html-DgZaqpvK.js → html-DV0Fd3Kx.js} +1 -1
  74. package/dist/assets/{html-title-BKasCGZJ.js → html-title-8eEQvwSm.js} +1 -1
  75. package/dist/assets/{htmlMode-D-_QLCVp.js → htmlMode-DeseqIni.js} +1 -1
  76. package/dist/assets/{iframe-BuacfLs-.js → iframe-BS88FRwX.js} +1 -1
  77. package/dist/assets/{index-BcN0CYKC.js → index-7KYdF6ej.js} +1 -1
  78. package/dist/assets/{index-B66X35Zr.js → index-9hx_-WS9.js} +1 -1
  79. package/dist/assets/{index-C77hr-z5.js → index-B0bwsr2k.js} +20 -20
  80. package/dist/assets/{index-Dj6T1F9F.js → index-B3uFEeJa.js} +1 -1
  81. package/dist/assets/{index-BhJ8Uq3P.js → index-B93qsZTj.js} +9 -9
  82. package/dist/assets/{index-BqVOndt8.js → index-BMFG6xYn.js} +3 -3
  83. package/dist/assets/{index-BovHLRw3.js → index-BMbE3uR8.js} +1 -1
  84. package/dist/assets/{index-RPptJKLV.js → index-BNPmFilX.js} +1 -1
  85. package/dist/assets/{index-C9MF5wBV.js → index-BOv_-aOp.js} +1 -1
  86. package/dist/assets/index-Bj3vXLSw.js +375 -0
  87. package/dist/assets/index-BjWva3kW.js +1 -0
  88. package/dist/assets/{index-COo5KQxE.js → index-BjhmwRPF.js} +1 -1
  89. package/dist/assets/{index-Cmrtk-04.js → index-BkM0NufG.js} +1 -1
  90. package/dist/assets/{index-BFfavAgR.js → index-BlmPoc3t.js} +1 -1
  91. package/dist/assets/index-BqWVYrv4.js +1 -0
  92. package/dist/assets/{index-5Geg2lIs.js → index-BsAylPTP.js} +1 -1
  93. package/dist/assets/{index-B6PGxOxy.js → index-BwKc3rqr.js} +2 -2
  94. package/dist/assets/{index-w5ELx1UU.js → index-C0ZKfJQm.js} +1 -1
  95. package/dist/assets/{index-CVcsyn47.js → index-C5HHk93s.js} +1 -1
  96. package/dist/assets/{index-CwqTtDFk.js → index-CB1cOH1l.js} +1 -1
  97. package/dist/assets/{index-iY4v_oAl.js → index-CEIY_r6h.js} +3 -3
  98. package/dist/assets/{index-DTgUL_kq.js → index-CI4dlXTe.js} +116 -119
  99. package/dist/assets/{index-BaMKae63.js → index-CQ74V8K8.js} +1 -1
  100. package/dist/assets/{index-DHUxi_Ui.js → index-CT8o9Y85.js} +3 -3
  101. package/dist/assets/{index-Dh8M0C3a.js → index-CbEOHXQc.js} +1 -1
  102. package/dist/assets/{index-CGrBiIvb.js → index-Cka3nP81.js} +1 -1
  103. package/dist/assets/{index-DXCxMet4.js → index-Cw4aE7m_.js} +1 -1
  104. package/dist/assets/{index-CtUHsvTQ.js → index-CzA1rttv.js} +1 -1
  105. package/dist/assets/{index-vo-Q5TYh.js → index-DFdk3ofB.js} +1 -1
  106. package/dist/assets/{index-CLfLgOcG.js → index-DGINP96S.js} +1 -1
  107. package/dist/assets/{index-DodJ1kPf.js → index-DHL_Vi4i.js} +3 -3
  108. package/dist/assets/{index-o_J-i5y_.js → index-DXLVGozs.js} +1 -1
  109. package/dist/assets/{index-CzuugLSH.js → index-DZ4p_r8e.js} +1 -1
  110. package/dist/assets/{index-RmXxUdma.js → index-DZM3J5Wp.js} +1 -1
  111. package/dist/assets/{index-XZFG9Nmo.js → index-DgZWZUlS.js} +1 -1
  112. package/dist/assets/{index-DSMID0YC.js → index-DgzKW9Ex.js} +3 -3
  113. package/dist/assets/{index-DtmSsKvG.js → index-IlXLx7We.js} +1 -1
  114. package/dist/assets/{index-eJLhgfjC.js → index-QSBtrt6h.js} +1 -1
  115. package/dist/assets/{index-Cmujcn4-.js → index-TwUe_Tvk.js} +1 -1
  116. package/dist/assets/{index-DzYKqeD0.js → index-Uzc8DiTP.js} +1 -1
  117. package/dist/assets/{index-wkMHahcA.js → index-_d7QPgTP.js} +1 -1
  118. package/dist/assets/{index-CqyxuFxM.js → index-h_zu579g.js} +1 -1
  119. package/dist/assets/{index-CV7nG2ul.js → index-nOMeb0Cp.js} +1 -1
  120. package/dist/assets/{index-DhhaeVfE.js → index-phRP0JhX.js} +1 -1
  121. package/dist/assets/{index-DC1eDdhF.js → index-w_ABp53I.js} +1 -1
  122. package/dist/assets/{index.esm-DZjUBqeE.js → index.esm-ItCPJOAO.js} +1 -1
  123. package/dist/assets/{install-from-url-CcBy5URE.js → install-from-url-DvUzVhpS.js} +1 -1
  124. package/dist/assets/{invitation-1xJqyxq_.js → invitation-DbyKhAZm.js} +1 -1
  125. package/dist/assets/{is-path-prefix-equal-lXhGy4Qe.js → is-path-prefix-equal-BvAHrQj-.js} +1 -1
  126. package/dist/assets/{item-rv42JECv.js → item-gJv-5KQT.js} +1 -1
  127. package/dist/assets/{javascript-BrLPoZMP.js → javascript-BIMIemmE.js} +1 -1
  128. package/dist/assets/{jsonMode-xZNOlAc_.js → jsonMode-3N-YuMar.js} +1 -1
  129. package/dist/assets/{ko-Crmr1RC-.js → ko-DGXdpX64.js} +1 -1
  130. package/dist/assets/{liquid-BJGZbDya.js → liquid-CQYhn0Yk.js} +1 -1
  131. package/dist/assets/{list-header-CIE-ZsHl.js → list-header-D5PvV4Ns.js} +1 -1
  132. package/dist/assets/{lock.svg-CW50QWyX.js → lock.svg-Dml_SUcw.js} +1 -1
  133. package/dist/assets/{log-qrE6EEc9.js → log-hCli4ygZ.js} +1 -1
  134. package/dist/assets/{lottie-react.esm-B1jN3OaN.js → lottie-react.esm-C1KoLgaH.js} +1 -1
  135. package/dist/assets/{mdx-ctVQvgda.js → mdx-Fu7jp7wB.js} +1 -1
  136. package/dist/assets/{memory-CHbtQUwm.js → memory-Da1Mktb-.js} +1 -1
  137. package/dist/assets/{metric-DYtzKSlS.js → metric-DKt7Dv_o.js} +1 -1
  138. package/dist/assets/omit-VPuIA8hg.js +1 -0
  139. package/dist/assets/{overview-CGaQ7UAo.js → overview-CKMQGhx9.js} +1 -1
  140. package/dist/assets/{permission-Cjh6O_vg.js → permission-CY9xhitI.js} +1 -1
  141. package/dist/assets/{preference-DmDF-9zQ.js → preference-DV6_upOl.js} +3 -3
  142. package/dist/assets/{pt-DlPLN19J.js → pt-CIqefLTL.js} +1 -1
  143. package/dist/assets/{python--YGRQx8o.js → python-Bi1toJg2.js} +1 -1
  144. package/dist/assets/{raf-schd.esm-DhD0av-m.js → raf-schd.esm-pJPdUflv.js} +1 -1
  145. package/dist/assets/{razor-DnLbP29E.js → razor-DrpZeVMl.js} +1 -1
  146. package/dist/assets/{rotate-session-key-DRE7AHCX.js → rotate-session-key-efxghCi1.js} +1 -1
  147. package/dist/assets/{ru-BNhuVXCB.js → ru-B4h3WudR.js} +1 -1
  148. package/dist/assets/{runtime-BTIndKDh.js → runtime-jGUL5QuT.js} +1 -1
  149. package/dist/assets/schema-D7YjS37r.js +1 -0
  150. package/dist/assets/sdk-BEqYN1lC.js +1 -0
  151. package/dist/assets/{service-BHlYsjeB.js → service-MB0T2aB0.js} +1 -1
  152. package/dist/assets/{shorten-label-qUYJropg.js → shorten-label-DTPTvpJ1.js} +1 -1
  153. package/dist/assets/{simple-select-DulurVBk.js → simple-select-DAk8AY1P.js} +1 -1
  154. package/dist/assets/{spaces-CPJZ8D5i.js → spaces-DH7TZUlN.js} +1 -1
  155. package/dist/assets/{status-DTceE034.js → status--V5SQYgM.js} +1 -1
  156. package/dist/assets/{status-BsrsqdGC.js → status-DX1yJUTs.js} +1 -1
  157. package/dist/assets/{switch-control-DaLS546c.js → switch-control-D1F-cHNq.js} +1 -1
  158. package/dist/assets/{table-icons-BkGCumri.js → table-icons-CcdGfjTh.js} +1 -1
  159. package/dist/assets/{team-D7kOXsCz.js → team-BrSgmhmc.js} +1 -1
  160. package/dist/assets/{th-CSbI3a1U.js → th-BjttL5p9.js} +1 -1
  161. package/dist/assets/{toLower-DfYXTTzA.js → toLower-ByD7rJFr.js} +1 -1
  162. package/dist/assets/toUpper-jya-zxKt.js +1 -0
  163. package/dist/assets/{traffic-QqCF1YrQ.js → traffic-wbGiv6hW.js} +1 -1
  164. package/dist/assets/{tsMode-DiqvPVXO.js → tsMode-C7gy9xLC.js} +1 -1
  165. package/dist/assets/{typescript-k-ZT-XZa.js → typescript-DJoWvhbC.js} +1 -1
  166. package/dist/assets/{url-evaluation-CT0SPpn4.js → url-evaluation-Bsg9-ill.js} +1 -1
  167. package/dist/assets/{url-join-C5dWHLIk.js → url-join-DpnUEv7-.js} +1 -1
  168. package/dist/assets/{use-mobile-DTi9VXen.js → use-mobile-CeVGXvtj.js} +1 -1
  169. package/dist/assets/{use-mobile-DsnimkNQ.js → use-mobile-CuAbTch1.js} +1 -1
  170. package/dist/assets/{useAsync-Ch82e5od.js → useAsync-DxwaXQxu.js} +1 -1
  171. package/dist/assets/{useAsyncRetry-B6dXhqn8.js → useAsyncRetry-C_rRPNUy.js} +1 -1
  172. package/dist/assets/{useLocalStorage-CM-c3Psr.js → useLocalStorage-CoABMXGW.js} +1 -1
  173. package/dist/assets/{useThemeProps-Cnj5mhqW.js → useThemeProps-DJWWp5kh.js} +1 -1
  174. package/dist/assets/{util-697UkaoT.js → util-BdUmm2ZH.js} +1 -1
  175. package/dist/assets/{wait-container-BNz4T5iB.js → wait-container-DJAGSnuK.js} +1 -1
  176. package/dist/assets/{without-wallet-B_mB7V7Y.js → without-wallet-v9tjrlHV.js} +1 -1
  177. package/dist/assets/{wrap-locale-B3K4zvne.js → wrap-locale-Ba4TE2iy.js} +1 -1
  178. package/dist/assets/{xml-DRsBbGwY.js → xml-avm6PJAG.js} +1 -1
  179. package/dist/assets/{yaml-CsiEhwWc.js → yaml-DO7DaC1O.js} +1 -1
  180. package/dist/index.html +1 -1
  181. package/dist/service-worker.js +1 -1
  182. package/package.json +1 -1
  183. package/dist/assets/ArrowDropDown-WDxAjlut.js +0 -1
  184. package/dist/assets/api-NQY55sw9.js +0 -1
  185. package/dist/assets/chain-DS7ybvMh.js +0 -6
  186. package/dist/assets/client-DyT3eIsb.js +0 -1
  187. package/dist/assets/cloneDeep-DrGysqIa.js +0 -1
  188. package/dist/assets/connect-to-CVSL3PnV.js +0 -30
  189. package/dist/assets/domains-DrM7lxS4.js +0 -28
  190. package/dist/assets/download-2dYWOb0Z.js +0 -445
  191. package/dist/assets/emotion-cache.browser.esm-DRbBs3XS.js +0 -1
  192. package/dist/assets/engine-BskDM1z4.js +0 -1
  193. package/dist/assets/getValidReactChildren-RYNnEL64.js +0 -1
  194. package/dist/assets/index-Cu0q_J05.js +0 -1
  195. package/dist/assets/index-RhVPyjJ9.js +0 -375
  196. package/dist/assets/index-ZmjmhRka.js +0 -1
  197. package/dist/assets/omit-Bo6UNg3a.js +0 -1
  198. package/dist/assets/schema-nNhP5AbE.js +0 -1
  199. package/dist/assets/sdk-NwNh0j-E.js +0 -1
  200. package/dist/assets/slugify-bzSZ5XYw.js +0 -1
  201. package/dist/assets/toLower-DdKrtUeG.js +0 -1
  202. package/dist/assets/toUpper-C_yFC8uF.js +0 -1
@@ -1,4 +1,4 @@
1
- import{aH as L,bn as I,bo as Ke,m as S,j as e,O as B,r as h,P as X,Q as G,S as Q,R as J,M as p,bp as ce,o as x,n as Re,v as U,C as Se,ac as le,aV as Y,t as H,g as De,y as _,$ as de,aU as Ie,U as $e,s as P,at as Be,H as Pe,l as Ne,bq as W,W as Ee,br as pe,bs as me,bt as ue,bu as _e,I as ze,T as $,bv as Le,ay as ie,a3 as ae,aR as re,bk as We,bw as Me,V as qe,X as Ue,A as He,u as Fe,bm as Oe,d as Ve,bx as Xe}from"./index-DTgUL_kq.js";import{u as Ge,T as Qe}from"./html-title-BKasCGZJ.js";import Je from"./audit-logs-Dq1BGSc7.js";import{T as xe,M as Ye}from"./index-RhVPyjJ9.js";import{r as he,P as Ze}from"./index-eJLhgfjC.js";import{u as z,T as et}from"./team-D7kOXsCz.js";import{g as tt,H as st}from"./index-CqyxuFxM.js";import{D as nt}from"./url-evaluation-CT0SPpn4.js";import{E as ot}from"./Edit-DrhdrT5r.js";import{y as it}from"./index-DC1eDdhF.js";import{A as at}from"./Add-CPP2iq1t.js";import{l as F}from"./index-Dj6T1F9F.js";import{C as O}from"./click-to-copy-B8TemOOI.js";import{f as rt}from"./index-BojVbZw0.js";import{D as ct}from"./delete-confirm-BtX2gH4O.js";import{P as lt}from"./permission-Cjh6O_vg.js";import{u as dt}from"./blocklet-IAGGMJGV.js";import{u as Z}from"./use-mobile-DsnimkNQ.js";import{A as pt}from"./actions-D3Odd9Yn.js";import{u as mt}from"./useAsyncRetry-B6dXhqn8.js";import"./TableSearch-DvRPn5Nk.js";import"./Search-Djv8dYGS.js";import"./Clear-BLlKzOYZ.js";import"./useLocalStorage-CM-c3Psr.js";import"./index-BaMKae63.js";import"./decode-DPztD6kB.js";import"./UnfoldMore-DEEAKAvu.js";import"./shorten-label-qUYJropg.js";import"./ViewList-Clq_0H-Y.js";import"./use-mobile-DTi9VXen.js";import"./client-DyT3eIsb.js";import"./index-CLfLgOcG.js";import"./ButtonGroup-B8UFaNni.js";import"./getValidReactChildren-RYNnEL64.js";import"./index-Cu0q_J05.js";import"./Google-BzDCB92M.js";import"./cloneDeep-DrGysqIa.js";import"./toLower-DdKrtUeG.js";import"./toLower-DfYXTTzA.js";import"./slugify-bzSZ5XYw.js";import"./Autocomplete-BxF5Rvbu.js";import"./ListSubheader-BdUpkkMj.js";import"./AdapterDayjs-C_fZicyZ.js";import"./useThemeProps-Cnj5mhqW.js";import"./CSSTransition-CfJLD8on.js";import"./visuallyHidden-Dan1xhjv.js";import"./index-Cmrtk-04.js";import"./Verified-Bq_Wx0qC.js";import"./DeleteOutline-1ia7MYDd.js";import"./ErrorOutline-CTbGiGqZ.js";import"./index-DhhaeVfE.js";import"./emotion-cache.browser.esm-DRbBs3XS.js";import"./sdk-NwNh0j-E.js";import"./edit.svg-sU05Ggc3.js";import"./list-header-CIE-ZsHl.js";import"./chain-DS7ybvMh.js";import"./ToggleButtonGroup-CYkaYq-d.js";import"./lock.svg-CW50QWyX.js";import"./FilterList-Cfx770te.js";import"./index-wkMHahcA.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-nDl4Jb8n.js";import"./MoreVert-Dgq_vg7Y.js";import"./useAsync-Ch82e5od.js";function ee({value:s}){const{t,locale:n}=S(),i=new Date;return new Date(s)<i?e.jsxs("span",{style:{color:"red"},children:[e.jsx(B,{value:s,locale:n}),`${t("setting.accessKey.expired",{time:""})}`]}):e.jsx(B,{mode:"daysLeft",value:s,locale:n,type:"all"})}ee.propTypes={value:x.string.isRequired};function te({value:s,onChange:t,...n}){const{t:i}=S(),a=h.useMemo(()=>[{value:"signature",title:i("setting.accessKey.signature"),description:i("setting.accessKey.signatureDesc")},{value:"simple",title:i("setting.accessKey.simple"),description:i("setting.accessKey.simpleDesc")}],[i]);return e.jsxs(X,{style:{width:"100%"},variant:"outlined",...n,children:[e.jsx(G,{children:i("setting.accessKey.authType")}),e.jsx(Q,{value:s,onChange:t,fullWidth:!0,label:i("setting.accessKey.authType"),IconComponent:r=>e.jsx(ce,{...r,width:20,height:20}),children:a.map(r=>e.jsx(J,{value:r.value,children:e.jsxs(p,{children:[e.jsx("span",{children:r.title}),e.jsx(p,{sx:{maxWidth:510,fontSize:12,color:"#999",whiteSpace:"normal"},children:r.description})]})},r.value))})]})}te.propTypes={value:x.string.isRequired,onChange:x.func.isRequired};const se=()=>{const s=L.RBAC_CONFIG.roles.filter(a=>a.passport),{inService:t}=I(),{roles:n}=z(),i=[...s,...t?n:[]];return Ke(i,"name").filter(a=>a.name!==L.ROLES.OWNER)};function fe(){const{session:s}=Re(),t=se();return h.useMemo(()=>{if(!s?.user?.role)return[];if(["owner","admin"].includes(s.user.role))return t;const i=t.filter(r=>r.name==="guest");return[...t.filter(r=>r.name!=="guest").filter(r=>s.user.passports.find(f=>f.role===r.name)),...i]},[t,s?.user?.passports,s?.user?.role])}function ge({onCreate:s=()=>{},remark:t=""}){const{api:n}=I(),{teamDid:i}=z(),{t:a}=S(),[r,f]=h.useState(!1),[m,b]=h.useState(null),u=fe(),T=()=>{f(!1),b(null)},v=async l=>{const{remark:k,passport:g,authType:o}=l;f(!0);const j=await n.createAccessKey({input:{teamDid:i,remark:k.trim(),passport:g,expireAt:l.expireAt?new Date(l.expireAt).getTime():null,authType:o}}),{data:A}=j;s(A),b(null),f(!1)},c={title:`${a("common.create")} ${a("accessKey")}`,description:(l,k,g)=>e.jsxs(Y,{sx:{gap:3},children:[e.jsx(H,{label:a("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",fullWidth:!0,autoFocus:!0,margin:"dense",value:l.remark,onChange:o=>{k({...l,remark:o.target.value,__disableConfirm:!l.passport||!o.target.value.trim()}),o.target.value.trim()?g(""):g(a("setting.accessKey.remarkInvalid"))},slotProps:{htmlInput:{"data-cy":"remark-input"}}}),e.jsxs(X,{style:{width:"100%"},variant:"outlined",children:[e.jsx(G,{sx:{width:"calc(100% - 46px)"},children:a("setting.accessKey.passport")}),e.jsx(Q,{"data-cy":"create-access-key-select-passport",value:l.passport,onChange:o=>{const j=o.target.value;g(null),k({...l,passport:j,__disableConfirm:!l.remark||!j})},fullWidth:!0,label:a("setting.accessKey.passport"),disabled:r,IconComponent:o=>e.jsx(ce,{...o,width:20,height:20}),children:u.map(o=>e.jsx(J,{value:o.name,"data-cy":`create-access-key-passport-option-${o.name}`,children:e.jsxs(p,{children:[e.jsx("span",{children:o.title||o.name}),e.jsx(p,{sx:{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify"},children:o.description})]})},o.name))})]}),e.jsx(te,{value:l.authType,onChange:o=>{k({...l,authType:o.target.value})}}),e.jsx(xe,{placeholder:a("setting.accessKey.expireTime"),value:l.expireAt,onChange:o=>{k({...l,expireAt:o,__disableConfirm:!l.passport||!l.remark||!o})}})]}),confirm:a("common.confirm"),cancel:a("common.cancel"),color:"primary",params:{remark:t,authType:"signature",__disableConfirm:!t.trim()},onConfirm:v,onCancel:T};return e.jsxs(e.Fragment,{children:[e.jsxs(U,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>b(c),className:"rule-action",children:[r?e.jsx(Se,{size:16}):e.jsx(at,{style:{fontSize:16}}),a("common.create")]}),m&&e.jsx(le,{title:m.title,description:m.description,confirm:m.confirm,color:m.color,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}ge.propTypes={remark:x.string,onCreate:x.func};function ye({onConfirm:s=()=>{},accessKeyId:t,accessKeySecret:n,hideSecret:i=!0}){const{t:a}=h.useContext(De),[r,f]=h.useState(!1),[m,b]=h.useState(()=>i),u=I(),T=()=>{b(!m)},v=g=>{f(g.target.checked)},c=_(window.location.origin,u?.info?.routing?.adminPath),l=h.useMemo(()=>i?`const Client = require('@blocklet/server-js');
1
+ import{aH as L,bn as I,bo as Ke,m as S,j as e,O as B,r as h,P as X,Q as G,S as Q,R as J,M as p,bp as ce,o as x,n as Re,v as U,C as Se,ac as le,aV as Y,t as H,g as De,y as _,$ as de,aU as Ie,U as $e,s as P,at as Be,H as Pe,l as Ne,bq as W,W as Ee,br as pe,bs as me,bt as ue,bu as _e,I as ze,T as $,bv as Le,ay as ie,a3 as ae,aR as re,bk as We,bw as Me,V as qe,X as Ue,A as He,u as Fe,bm as Oe,d as Ve,bx as Xe}from"./index-CI4dlXTe.js";import{u as Ge,T as Qe}from"./html-title-8eEQvwSm.js";import Je from"./audit-logs-DylpExtV.js";import{T as xe,M as Ye}from"./index-Bj3vXLSw.js";import{r as he,P as Ze}from"./index-QSBtrt6h.js";import{u as z,T as et}from"./team-BrSgmhmc.js";import{g as tt,H as st}from"./index-h_zu579g.js";import{D as nt}from"./url-evaluation-Bsg9-ill.js";import{E as ot}from"./Edit-V0eiBsGU.js";import{y as it}from"./index-w_ABp53I.js";import{A as at}from"./Add-CzkO3Pzz.js";import{l as F}from"./index-B3uFEeJa.js";import{C as O}from"./click-to-copy-QDhx8_BO.js";import{f as rt}from"./index-BojVbZw0.js";import{D as ct}from"./delete-confirm-DFLlapHl.js";import{P as lt}from"./permission-CY9xhitI.js";import{u as dt}from"./blocklet-DwOY6PM2.js";import{u as Z}from"./use-mobile-CuAbTch1.js";import{A as pt}from"./actions-6ll7jsa3.js";import{u as mt}from"./useAsyncRetry-C_rRPNUy.js";import"./TableSearch-BwtXbQG-.js";import"./Search-CGTjTzzo.js";import"./Clear-NASbJHS6.js";import"./useLocalStorage-CoABMXGW.js";import"./index-CQ74V8K8.js";import"./decode-DPztD6kB.js";import"./UnfoldMore-B3amhCTg.js";import"./shorten-label-DTPTvpJ1.js";import"./ViewList-DtqzxGZt.js";import"./use-mobile-CeVGXvtj.js";import"./client-Beap4FeV.js";import"./index-DGINP96S.js";import"./ButtonGroup-o6LmfxeX.js";import"./getValidReactChildren-BiC2BfQo.js";import"./index-BqWVYrv4.js";import"./Google-B3YPvJDV.js";import"./cloneDeep-BGXXbqSz.js";import"./Autocomplete-BW388eBP.js";import"./ListSubheader-CA8Y4o8o.js";import"./AdapterDayjs-V0ywFO6Q.js";import"./useThemeProps-DJWWp5kh.js";import"./CSSTransition-DsMKw-p5.js";import"./visuallyHidden-Dan1xhjv.js";import"./index-BkM0NufG.js";import"./Verified-DmBfm1uD.js";import"./DeleteOutline-DsnSViGb.js";import"./ErrorOutline-DA3_RUVz.js";import"./index-phRP0JhX.js";import"./emotion-cache.browser.esm-BVx7paDx.js";import"./sdk-BEqYN1lC.js";import"./edit.svg-CkS6r8rY.js";import"./list-header-D5PvV4Ns.js";import"./chain-CrqO5ZBK.js";import"./ToggleButtonGroup-DvCR9SNw.js";import"./lock.svg-Dml_SUcw.js";import"./FilterList-Y719g2Zi.js";import"./index-_d7QPgTP.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-CHA3TYmk.js";import"./MoreVert-BQ022_rm.js";import"./useAsync-DxwaXQxu.js";function ee({value:s}){const{t,locale:n}=S(),i=new Date;return new Date(s)<i?e.jsxs("span",{style:{color:"red"},children:[e.jsx(B,{value:s,locale:n}),`${t("setting.accessKey.expired",{time:""})}`]}):e.jsx(B,{mode:"daysLeft",value:s,locale:n,type:"all"})}ee.propTypes={value:x.string.isRequired};function te({value:s,onChange:t,...n}){const{t:i}=S(),a=h.useMemo(()=>[{value:"signature",title:i("setting.accessKey.signature"),description:i("setting.accessKey.signatureDesc")},{value:"simple",title:i("setting.accessKey.simple"),description:i("setting.accessKey.simpleDesc")}],[i]);return e.jsxs(X,{style:{width:"100%"},variant:"outlined",...n,children:[e.jsx(G,{children:i("setting.accessKey.authType")}),e.jsx(Q,{value:s,onChange:t,fullWidth:!0,label:i("setting.accessKey.authType"),IconComponent:r=>e.jsx(ce,{...r,width:20,height:20}),children:a.map(r=>e.jsx(J,{value:r.value,children:e.jsxs(p,{children:[e.jsx("span",{children:r.title}),e.jsx(p,{sx:{maxWidth:510,fontSize:12,color:"#999",whiteSpace:"normal"},children:r.description})]})},r.value))})]})}te.propTypes={value:x.string.isRequired,onChange:x.func.isRequired};const se=()=>{const s=L.RBAC_CONFIG.roles.filter(a=>a.passport),{inService:t}=I(),{roles:n}=z(),i=[...s,...t?n:[]];return Ke(i,"name").filter(a=>a.name!==L.ROLES.OWNER)};function fe(){const{session:s}=Re(),t=se();return h.useMemo(()=>{if(!s?.user?.role)return[];if(["owner","admin"].includes(s.user.role))return t;const i=t.filter(r=>r.name==="guest");return[...t.filter(r=>r.name!=="guest").filter(r=>s.user.passports.find(f=>f.role===r.name)),...i]},[t,s?.user?.passports,s?.user?.role])}function ge({onCreate:s=()=>{},remark:t=""}){const{api:n}=I(),{teamDid:i}=z(),{t:a}=S(),[r,f]=h.useState(!1),[m,b]=h.useState(null),u=fe(),T=()=>{f(!1),b(null)},v=async l=>{const{remark:k,passport:g,authType:o}=l;f(!0);const j=await n.createAccessKey({input:{teamDid:i,remark:k.trim(),passport:g,expireAt:l.expireAt?new Date(l.expireAt).getTime():null,authType:o}}),{data:A}=j;s(A),b(null),f(!1)},c={title:`${a("common.create")} ${a("accessKey")}`,description:(l,k,g)=>e.jsxs(Y,{sx:{gap:3},children:[e.jsx(H,{label:a("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",fullWidth:!0,autoFocus:!0,margin:"dense",value:l.remark,onChange:o=>{k({...l,remark:o.target.value,__disableConfirm:!l.passport||!o.target.value.trim()}),o.target.value.trim()?g(""):g(a("setting.accessKey.remarkInvalid"))},slotProps:{htmlInput:{"data-cy":"remark-input"}}}),e.jsxs(X,{style:{width:"100%"},variant:"outlined",children:[e.jsx(G,{sx:{width:"calc(100% - 46px)"},children:a("setting.accessKey.passport")}),e.jsx(Q,{"data-cy":"create-access-key-select-passport",value:l.passport,onChange:o=>{const j=o.target.value;g(null),k({...l,passport:j,__disableConfirm:!l.remark||!j})},fullWidth:!0,label:a("setting.accessKey.passport"),disabled:r,IconComponent:o=>e.jsx(ce,{...o,width:20,height:20}),children:u.map(o=>e.jsx(J,{value:o.name,"data-cy":`create-access-key-passport-option-${o.name}`,children:e.jsxs(p,{children:[e.jsx("span",{children:o.title||o.name}),e.jsx(p,{sx:{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify"},children:o.description})]})},o.name))})]}),e.jsx(te,{value:l.authType,onChange:o=>{k({...l,authType:o.target.value})}}),e.jsx(xe,{placeholder:a("setting.accessKey.expireTime"),value:l.expireAt,onChange:o=>{k({...l,expireAt:o,__disableConfirm:!l.passport||!l.remark||!o})}})]}),confirm:a("common.confirm"),cancel:a("common.cancel"),color:"primary",params:{remark:t,authType:"signature",__disableConfirm:!t.trim()},onConfirm:v,onCancel:T};return e.jsxs(e.Fragment,{children:[e.jsxs(U,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>b(c),className:"rule-action",children:[r?e.jsx(Se,{size:16}):e.jsx(at,{style:{fontSize:16}}),a("common.create")]}),m&&e.jsx(le,{title:m.title,description:m.description,confirm:m.confirm,color:m.color,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}ge.propTypes={remark:x.string,onCreate:x.func};function ye({onConfirm:s=()=>{},accessKeyId:t,accessKeySecret:n,hideSecret:i=!0}){const{t:a}=h.useContext(De),[r,f]=h.useState(!1),[m,b]=h.useState(()=>i),u=I(),T=()=>{b(!m)},v=g=>{f(g.target.checked)},c=_(window.location.origin,u?.info?.routing?.adminPath),l=h.useMemo(()=>i?`const Client = require('@blocklet/server-js');
2
2
  const ensureServerEndpoint = require('@abtnode/util/lib/ensure-server-endpoint');
3
3
  const { joinURL } = require('ufo');
4
4
 
@@ -147,7 +147,7 @@ const result = await client.getBlocklet(
147
147
  margin: 0;
148
148
  }
149
149
  }
150
- `;function V({title:s,tooltipTitle:t,link:n}){const{t:i}=S(),a=Z(),[r,f]=h.useState(!1),m=()=>f(u=>!u),b=()=>f(!1);return a?e.jsxs(p,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[s,e.jsx(Le,{onClickAway:b,children:e.jsx("span",{children:e.jsx(ie,{open:r,onClose:b,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:e.jsxs(p,{sx:{fontSize:"14px",lineHeight:1.5},children:[t,e.jsx(p,{sx:{color:"primary.main",ml:.5},component:"a",href:n,target:"_blank",rel:"noopener noreferrer",children:i("dashboard.document")})]}),children:e.jsx(ae,{size:"small",onClick:m,sx:{ml:.5},children:e.jsx(re,{fontSize:"14"})})})})})]}):e.jsxs(p,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[s,e.jsx(ie,{enterTouchDelay:0,leaveTouchDelay:3e3,title:e.jsxs(p,{sx:{fontSize:"14px",lineHeight:1.5},children:[t,e.jsx(p,{sx:{color:"primary.main",ml:.5},component:"a",href:n,target:"_blank",rel:"noopener noreferrer",children:i("dashboard.document")})]}),children:e.jsx(ae,{size:"small",sx:{ml:.5},children:e.jsx(re,{fontSize:"14"})})})]})}V.propTypes={title:x.string.isRequired,tooltipTitle:x.string.isRequired,link:x.string.isRequired};function ke({isSelf:s=!1,columnSx:t={}}){const{t:n,locale:i}=S(),{api:a,inService:r}=I(),{teamDid:f}=z(),[m,b]=h.useState({}),[u,T]=h.useState(null),[v,c]=h.useState(null),[l,k]=h.useState(null),g=Z(),o=se(),j=h.useRef(null),A=`access-keys-${f}`,y=tt(A),[C,N]=h.useState({searchText:y.searchText||"",pageSize:y.rowsPerPage||10,page:1}),D=mt(async()=>{const d={teamDid:f,paging:{page:C.page,pageSize:C.pageSize}};return C.searchText&&(d.remark=C.searchText),await a.getAccessKeys({input:d})},[C.page,C.pageSize,C.searchText]),{loading:we,error:ne}=D,E=h.useMemo(()=>D.value?.list||[],[D.value?.list]),oe=h.useMemo(()=>s?["accessKeyId","createdVia","createdBy","createdBy"]:[],[s]),Te=h.useMemo(()=>[{label:n("common.name"),name:"remark",options:{customBodyRender:(d,{rowIndex:K})=>{const R=E[K];return e.jsx(p,{className:"remark",sx:We({display:"flex",alignItems:"center",gap:2},t),children:e.jsx($,{children:R.remark||"N/A"})})}}},{label:"Access Key ID",name:"accessKeyId",options:{customBodyRender:d=>e.jsx(p,{sx:t,children:e.jsx(Me,{showDidLogo:!1,children:d})})}},{label:n("common.role"),name:"passport",options:{customBodyRender:d=>{const K=o.find(w=>w.name===d),R=K?K.title:d;return e.jsx(p,{sx:t,children:he(R,d)})}}},{label:n("common.createdVia"),name:"createdVia",options:{customBodyRender:d=>e.jsx($,{sx:t,children:d})}},{label:n("setting.accessKey.authType"),name:"authType",options:{customBodyRender:d=>e.jsx($,{sx:t,children:n(`setting.accessKey.${d}`)})}},{label:n("common.createdAt"),name:"createdAt",options:{customBodyRender:d=>e.jsx(p,{sx:t,children:d?e.jsx(B,{value:d,locale:i}):"-"})}},{label:n("common.lastUsedAt"),name:"lastUsedAt",options:{customBodyRender:d=>e.jsx(p,{sx:t,children:d?e.jsx(B,{value:d,locale:i}):"-"})}},{label:n("common.expiredAt"),name:"expireAt",options:{customBodyRender:d=>e.jsx(p,{className:"expired-at",sx:t,children:d?e.jsx(ee,{value:d}):n("common.neverExpired")})}},{label:n("common.createdBy"),name:"createdBy",width:100,options:{customBodyRender:d=>e.jsx(p,{sx:t,children:d?e.jsx(pe,{showDid:!0,did:d,cardType:ue.Detailed,infoType:me.Minimal,sx:{border:0,padding:0,...g&&{minWidth:"unset"}}}):"-"})}},{label:n("common.actions"),name:"actions",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRender:(d,{rowIndex:K})=>{const R=E[K];return e.jsx(p,{sx:t,children:e.jsx(pt,{"data-cy":"access-key-actions",actions:[{icon:e.jsx(ot,{}),text:n("common.edit"),onClick:w=>{w.stopPropagation(),k(R)}},{icon:e.jsx(nt,{}),text:n("common.delete"),onClick:w=>{w.stopPropagation(),c(R)}}]})})}}}].filter(d=>!oe.includes(d.name)),[E,i,n,o,c,k,t,g,oe]),Ae=({page:d,rowsPerPage:K,searchText:R})=>{C.pageSize!==K?N(w=>({...w,pageSize:K,page:1})):C.page!==d+1?N(w=>({...w,searchText:R,page:d+1})):C.searchText!==R&&N(w=>({...w,searchText:R,page:1}))};return ne?e.jsx(qe,{severity:"error",children:Ue(ne)}):e.jsxs(p,{ref:j,sx:{".custom-toobar-btns":{gap:"8px"},".custom-toobar-title .custom-toobar-title-inner>span":{display:"flex",alignItems:"center","white-space":"inherit",height:"100%"}},children:[g?e.jsx(V,{title:n("setting.accessKey.listTitle"),tooltipTitle:n("setting.accessKey.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${i}/access-key`}):null,e.jsx(st,{durable:A,durableKeys:["page","rowsPerPage","searchText"],data:E,columns:Te,className:"pc-access-key-table",options:{sort:!1,download:!1,filter:!1,print:!1,viewColumns:!1,page:C.page-1,rowsPerPage:C.pageSize,count:D.value?.paging?.total||0,searchText:C.searchText,searchDebounceTime:600,onRowClick(d,{dataIndex:K},R){if(j.current?.contains(R.target)){const w=E[K];T(w)}}},loading:we,onChange:Ae,title:g?null:e.jsx(V,{title:n("setting.accessKey.listTitle"),tooltipTitle:n("setting.accessKey.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${i}/access-key`}),customButtons:[e.jsx(lt,{permission:r?"":"mutate_accessKey",children:e.jsx(ge,{onCreate:d=>{const{accessKeyId:K,accessKeySecret:R,authType:w}=d;b({show:!0,accessKeyId:K,accessKeySecret:R,authType:w})}})})],emptyNode:e.jsx(it,{children:n("oauth.client.empty")})}),m.show&&e.jsx(ye,{hideSecret:m.authType==="signature",onConfirm:()=>{D.retry(),b({show:!1})},...m}),u&&e.jsx(Ce,{onCancel:()=>T(null),accessKey:u}),v&&e.jsx(be,{accessKeyId:v.accessKeyId,time:v.lastUsedAt,remark:v.remark||"N/A",onDelete:D.retry,onClose:()=>c(null)}),l&&e.jsx(je,{...l,onUpdate:D.retry,onClose:()=>k(null)})]})}ke.propTypes={isSelf:x.bool,columnSx:x.object};function ft(){return e.jsx(ke,{})}function Ss(){const s=He(),{t}=S(),{info:n}=Fe(),{tab:i="members"}=Oe(),a=o=>Xe(o,n),{data:r}=Ve(),f=h.useCallback(o=>{const j=r.find(A=>[A.meta.did,A.appDid,A.appPid].includes(o));return j?j.meta.title:"Server"},[r]),m=h.useRef(null);m.current=f;const b=h.useCallback(()=>e.jsx(Je,{showScope:!0,scopeFormatter:m.current}),[]),u=h.useCallback(()=>e.jsx(Ye,{type:"server",createPassportSvg:a}),[]),T=n.did,v=o=>{s(`/team/${o}`)},c={members:{label:t("common.members"),value:"members",component:u},passports:{label:t("team.member.passports"),value:"passports",component:Ze},"access-keys":{label:t("common.accessKey"),value:"access-keys",component:ft},"audit-logs":{label:t("common.auditLogs"),value:"audit-logs",component:b}},l=Ge(c[i],t("common.team")),k=Object.values(c).map(({label:o,value:j})=>({label:o,value:j})),g=c[i]||c.member;return e.jsxs(et,{teamDid:T,children:[l,e.jsxs(gt,{children:[e.jsx($,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("common.team")}),e.jsx(Qe,{tabs:k,current:i,onChange:v,scrollButtons:"auto"}),e.jsx("div",{className:"page-content",children:e.jsx(g.component,{createPassportSvg:a})})]})]})}const gt=P.main`
150
+ `;function V({title:s,tooltipTitle:t,link:n}){const{t:i}=S(),a=Z(),[r,f]=h.useState(!1),m=()=>f(u=>!u),b=()=>f(!1);return a?e.jsxs(p,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[s,e.jsx(Le,{onClickAway:b,children:e.jsx("span",{children:e.jsx(ie,{open:r,onClose:b,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:e.jsxs(p,{sx:{fontSize:"14px",lineHeight:1.5},children:[t,e.jsx(p,{sx:{color:"primary.main",ml:.5},component:"a",href:n,target:"_blank",rel:"noopener noreferrer",children:i("dashboard.document")})]}),children:e.jsx(ae,{size:"small",onClick:m,sx:{ml:.5},children:e.jsx(re,{fontSize:"14"})})})})})]}):e.jsxs(p,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[s,e.jsx(ie,{enterTouchDelay:0,leaveTouchDelay:3e3,title:e.jsxs(p,{sx:{fontSize:"14px",lineHeight:1.5},children:[t,e.jsx(p,{sx:{color:"primary.main",ml:.5},component:"a",href:n,target:"_blank",rel:"noopener noreferrer",children:i("dashboard.document")})]}),children:e.jsx(ae,{size:"small",sx:{ml:.5},children:e.jsx(re,{fontSize:"14"})})})]})}V.propTypes={title:x.string.isRequired,tooltipTitle:x.string.isRequired,link:x.string.isRequired};function ke({isSelf:s=!1,columnSx:t={}}){const{t:n,locale:i}=S(),{api:a,inService:r}=I(),{teamDid:f}=z(),[m,b]=h.useState({}),[u,T]=h.useState(null),[v,c]=h.useState(null),[l,k]=h.useState(null),g=Z(),o=se(),j=h.useRef(null),A=`access-keys-${f}`,y=tt(A),[C,N]=h.useState({searchText:y.searchText||"",pageSize:y.rowsPerPage||10,page:1}),D=mt(async()=>{const d={teamDid:f,paging:{page:C.page,pageSize:C.pageSize}};return C.searchText&&(d.remark=C.searchText),await a.getAccessKeys({input:d})},[C.page,C.pageSize,C.searchText]),{loading:we,error:ne}=D,E=h.useMemo(()=>D.value?.list||[],[D.value?.list]),oe=h.useMemo(()=>s?["accessKeyId","createdVia","createdBy","createdBy"]:[],[s]),Te=h.useMemo(()=>[{label:n("common.name"),name:"remark",options:{customBodyRender:(d,{rowIndex:K})=>{const R=E[K];return e.jsx(p,{className:"remark",sx:We({display:"flex",alignItems:"center",gap:2},t),children:e.jsx($,{children:R.remark||"N/A"})})}}},{label:"Access Key ID",name:"accessKeyId",options:{customBodyRender:d=>e.jsx(p,{sx:t,children:e.jsx(Me,{showDidLogo:!1,children:d})})}},{label:n("common.role"),name:"passport",options:{customBodyRender:d=>{const K=o.find(w=>w.name===d),R=K?K.title:d;return e.jsx(p,{sx:t,children:he(R,d)})}}},{label:n("common.createdVia"),name:"createdVia",options:{customBodyRender:d=>e.jsx($,{sx:t,children:d})}},{label:n("setting.accessKey.authType"),name:"authType",options:{customBodyRender:d=>e.jsx($,{sx:t,children:n(`setting.accessKey.${d}`)})}},{label:n("common.createdAt"),name:"createdAt",options:{customBodyRender:d=>e.jsx(p,{sx:t,children:d?e.jsx(B,{value:d,locale:i}):"-"})}},{label:n("common.lastUsedAt"),name:"lastUsedAt",options:{customBodyRender:d=>e.jsx(p,{sx:t,children:d?e.jsx(B,{value:d,locale:i}):"-"})}},{label:n("common.expiredAt"),name:"expireAt",options:{customBodyRender:d=>e.jsx(p,{className:"expired-at",sx:t,children:d?e.jsx(ee,{value:d}):n("common.neverExpired")})}},{label:n("common.createdBy"),name:"createdBy",width:100,options:{customBodyRender:d=>e.jsx(p,{sx:t,children:d?e.jsx(pe,{showDid:!0,did:d,cardType:ue.Detailed,infoType:me.Minimal,sx:{border:0,padding:0,...g&&{minWidth:"unset"}}}):"-"})}},{label:n("common.actions"),name:"actions",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRender:(d,{rowIndex:K})=>{const R=E[K];return e.jsx(p,{sx:t,children:e.jsx(pt,{"data-cy":"access-key-actions",actions:[{icon:e.jsx(ot,{}),text:n("common.edit"),onClick:w=>{w.stopPropagation(),k(R)}},{icon:e.jsx(nt,{}),text:n("common.delete"),onClick:w=>{w.stopPropagation(),c(R)}}]})})}}}].filter(d=>!oe.includes(d.name)),[E,i,n,o,c,k,t,g,oe]),Ae=({page:d,rowsPerPage:K,searchText:R})=>{C.pageSize!==K?N(w=>({...w,pageSize:K,page:1})):C.page!==d+1?N(w=>({...w,searchText:R,page:d+1})):C.searchText!==R&&N(w=>({...w,searchText:R,page:1}))};return ne?e.jsx(qe,{severity:"error",children:Ue(ne)}):e.jsxs(p,{ref:j,sx:{".custom-toobar-btns":{gap:"8px"},".custom-toobar-title .custom-toobar-title-inner>span":{display:"flex",alignItems:"center","white-space":"inherit",height:"100%"}},children:[g?e.jsx(V,{title:n("setting.accessKey.listTitle"),tooltipTitle:n("setting.accessKey.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${i}/access-key`}):null,e.jsx(st,{durable:A,durableKeys:["page","rowsPerPage","searchText"],data:E,columns:Te,className:"pc-access-key-table",options:{sort:!1,download:!1,filter:!1,print:!1,viewColumns:!1,page:C.page-1,rowsPerPage:C.pageSize,count:D.value?.paging?.total||0,searchText:C.searchText,searchDebounceTime:600,onRowClick(d,{dataIndex:K},R){if(j.current?.contains(R.target)){const w=E[K];T(w)}}},loading:we,onChange:Ae,title:g?null:e.jsx(V,{title:n("setting.accessKey.listTitle"),tooltipTitle:n("setting.accessKey.tooltipTitle"),link:`https://www.arcblock.io/docs/blocklet-developer/${i}/access-key`}),customButtons:[e.jsx(lt,{permission:r?"":"mutate_accessKey",children:e.jsx(ge,{onCreate:d=>{const{accessKeyId:K,accessKeySecret:R,authType:w}=d;b({show:!0,accessKeyId:K,accessKeySecret:R,authType:w})}})})],emptyNode:e.jsx(it,{children:n("oauth.client.empty")})}),m.show&&e.jsx(ye,{hideSecret:m.authType==="signature",onConfirm:()=>{D.retry(),b({show:!1})},...m}),u&&e.jsx(Ce,{onCancel:()=>T(null),accessKey:u}),v&&e.jsx(be,{accessKeyId:v.accessKeyId,time:v.lastUsedAt,remark:v.remark||"N/A",onDelete:D.retry,onClose:()=>c(null)}),l&&e.jsx(je,{...l,onUpdate:D.retry,onClose:()=>k(null)})]})}ke.propTypes={isSelf:x.bool,columnSx:x.object};function ft(){return e.jsx(ke,{})}function As(){const s=He(),{t}=S(),{info:n}=Fe(),{tab:i="members"}=Oe(),a=o=>Xe(o,n),{data:r}=Ve(),f=h.useCallback(o=>{const j=r.find(A=>[A.meta.did,A.appDid,A.appPid].includes(o));return j?j.meta.title:"Server"},[r]),m=h.useRef(null);m.current=f;const b=h.useCallback(()=>e.jsx(Je,{showScope:!0,scopeFormatter:m.current}),[]),u=h.useCallback(()=>e.jsx(Ye,{type:"server",createPassportSvg:a}),[]),T=n.did,v=o=>{s(`/team/${o}`)},c={members:{label:t("common.members"),value:"members",component:u},passports:{label:t("team.member.passports"),value:"passports",component:Ze},"access-keys":{label:t("common.accessKey"),value:"access-keys",component:ft},"audit-logs":{label:t("common.auditLogs"),value:"audit-logs",component:b}},l=Ge(c[i],t("common.team")),k=Object.values(c).map(({label:o,value:j})=>({label:o,value:j})),g=c[i]||c.member;return e.jsxs(et,{teamDid:T,children:[l,e.jsxs(gt,{children:[e.jsx($,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("common.team")}),e.jsx(Qe,{tabs:k,current:i,onChange:v,scrollButtons:"auto"}),e.jsx("div",{className:"page-content",children:e.jsx(g.component,{createPassportSvg:a})})]})]})}const gt=P.main`
151
151
  .page-header {
152
152
  display: flex;
153
153
  justify-content: space-between;
@@ -157,4 +157,4 @@ const result = await client.getBlocklet(
157
157
  .page-content {
158
158
  margin-top: 24px;
159
159
  }
160
- `;export{Ss as default};
160
+ `;export{As as default};
@@ -1,4 +1,4 @@
1
- import{u as k,j as o,C as N,ax as U,cU as W,A as b,m as E,cJ as _,r,aW as D,h as d,y as x,ak as P,ae as R,w as O,aH as A,x as $,aw as H,bx as K,s as z}from"./index-DTgUL_kq.js";import{I as J}from"./invitation-1xJqyxq_.js";import"./index-CVcsyn47.js";import"./index-DhhaeVfE.js";import"./emotion-cache.browser.esm-DRbBs3XS.js";import"./sdk-NwNh0j-E.js";import"./wrap-locale-B3K4zvne.js";function M(p){const{api:i,session:f}=U(),{info:n}=k(),c=W(),v=b(),{t:l,locale:m}=E(),{encryptKey:y,decrypt:C}=_(),[I,g]=r.useState(!1),h=r.useMemo(()=>new URLSearchParams(c.search).get("inviteId"),[c]),t=D(async()=>{if(!h)return null;let e;const{data:s}=await i.get("/api/invitation",{params:{inviteId:h}}),a=!!d(n,"ownerNft.did")&&s.role.name==="owner";if(a){const u=new URL(window.location.href);u.pathname=x(P(),"/api/did/invite/token"),u.searchParams.set("_ek_",y),u.searchParams.set("inviteId",h);const{data:F}=await i.get(u.href);e=F}return{invitation:s,nextWorkflow:e,needReceiveNFT:a}}),L=r.useCallback(()=>{g(!0)},[]),T=r.useCallback(()=>{if(t.error)throw t.error;return t.value.invitation},[t]),w=r.useCallback(async e=>{e&&(Object.prototype.hasOwnProperty.call(e,"encrypted")&&!e.encrypted?R(e.sessionToken):R(C(e.sessionToken)));const s=new URLSearchParams(c.search);s.delete("inviteId");const a=s.toString();await f.refresh(),v(`/${a&&`?${a}`}`,{replace:!0})},[c,v,f]);if(t.loading)return o.jsx(N,{});const S=()=>{const e=new URL(window.location.href);e.pathname=x(P(),"/api/did/invite/status"),e.searchParams.set("_t_",t.value.nextWorkflow.token),e.searchParams.set("locale",m);const s=setInterval(async()=>{const{data:a}=await i.get(e.href);a.status==="succeed"&&(clearInterval(s),f.updateConnectedInfo(a),w(a))},2e3)},j=()=>{g(!1)};return o.jsxs(V,{className:"page-invite",children:[d(t,"value.needReceiveNFT")&&o.jsx(O,{action:"login",popup:!0,className:"connect",open:I,locale:m,baseUrl:n.launcher.url,checkFn:H.create({baseURL:n.launcher.url}).get,onSuccess:S,onClose:j,checkTimeout:5*60*1e3,webWalletUrl:$(n),extraParams:{nw:d(t,"value.nextWorkflow.url")},messages:{title:l("invite.transferNFTDialog.title",{name:n.name}),scan:l("invite.transferNFTDialog.scan"),confirm:l("invite.transferNFTDialog.confirm"),success:l("invite.transferNFTDialog.success")},prefix:`${A.WELLKNOWN_SERVICE_PATH_PREFIX}/api/did`}),o.jsx(J,{...p,getDataFn:T,createPassportSvg:e=>K(e,n),checkFn:i.get,onLoginSuccess:w,passportColor:"default",onReceive:d(t,"value.needReceiveNFT")?L:null})]})}const V=z.div`
1
+ import{u as k,j as o,C as N,ax as U,cU as W,A as b,m as E,cJ as _,r,aW as D,h as d,y as x,ak as P,ae as R,w as O,aH as A,x as $,aw as H,bx as K,s as z}from"./index-CI4dlXTe.js";import{I as J}from"./invitation-DbyKhAZm.js";import"./index-C5HHk93s.js";import"./index-phRP0JhX.js";import"./emotion-cache.browser.esm-BVx7paDx.js";import"./sdk-BEqYN1lC.js";import"./wrap-locale-Ba4TE2iy.js";function M(p){const{api:i,session:f}=U(),{info:n}=k(),c=W(),v=b(),{t:l,locale:m}=E(),{encryptKey:y,decrypt:C}=_(),[I,g]=r.useState(!1),h=r.useMemo(()=>new URLSearchParams(c.search).get("inviteId"),[c]),t=D(async()=>{if(!h)return null;let e;const{data:s}=await i.get("/api/invitation",{params:{inviteId:h}}),a=!!d(n,"ownerNft.did")&&s.role.name==="owner";if(a){const u=new URL(window.location.href);u.pathname=x(P(),"/api/did/invite/token"),u.searchParams.set("_ek_",y),u.searchParams.set("inviteId",h);const{data:F}=await i.get(u.href);e=F}return{invitation:s,nextWorkflow:e,needReceiveNFT:a}}),L=r.useCallback(()=>{g(!0)},[]),T=r.useCallback(()=>{if(t.error)throw t.error;return t.value.invitation},[t]),w=r.useCallback(async e=>{e&&(Object.prototype.hasOwnProperty.call(e,"encrypted")&&!e.encrypted?R(e.sessionToken):R(C(e.sessionToken)));const s=new URLSearchParams(c.search);s.delete("inviteId");const a=s.toString();await f.refresh(),v(`/${a&&`?${a}`}`,{replace:!0})},[c,v,f]);if(t.loading)return o.jsx(N,{});const S=()=>{const e=new URL(window.location.href);e.pathname=x(P(),"/api/did/invite/status"),e.searchParams.set("_t_",t.value.nextWorkflow.token),e.searchParams.set("locale",m);const s=setInterval(async()=>{const{data:a}=await i.get(e.href);a.status==="succeed"&&(clearInterval(s),f.updateConnectedInfo(a),w(a))},2e3)},j=()=>{g(!1)};return o.jsxs(V,{className:"page-invite",children:[d(t,"value.needReceiveNFT")&&o.jsx(O,{action:"login",popup:!0,className:"connect",open:I,locale:m,baseUrl:n.launcher.url,checkFn:H.create({baseURL:n.launcher.url}).get,onSuccess:S,onClose:j,checkTimeout:5*60*1e3,webWalletUrl:$(n),extraParams:{nw:d(t,"value.nextWorkflow.url")},messages:{title:l("invite.transferNFTDialog.title",{name:n.name}),scan:l("invite.transferNFTDialog.scan"),confirm:l("invite.transferNFTDialog.confirm"),success:l("invite.transferNFTDialog.success")},prefix:`${A.WELLKNOWN_SERVICE_PATH_PREFIX}/api/did`}),o.jsx(J,{...p,getDataFn:T,createPassportSvg:e=>K(e,n),checkFn:i.get,onLoginSuccess:w,passportColor:"default",onReceive:d(t,"value.needReceiveNFT")?L:null})]})}const V=z.div`
2
2
  width: 100vw;
3
3
  height: 100%;
4
4
  min-height: 100vh;
@@ -1 +1 @@
1
- import{eH as D}from"./index-DTgUL_kq.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){j(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,G):j(w[0][2],u)}function z(u){I("next",u)}function G(u){I("throw",u)}function j(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:G=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:j=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,B=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await G(B),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});B++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function F(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),F()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?F():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,B=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||B>=z||!j(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const F=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(F);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
1
+ import{eH as D}from"./index-CI4dlXTe.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){j(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,G):j(w[0][2],u)}function z(u){I("next",u)}function G(u){I("throw",u)}function j(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:G=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:j=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,B=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await G(B),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});B++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function F(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),F()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?F():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,B=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||B>=z||!j(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const F=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(F);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
@@ -1,4 +1,4 @@
1
- import{r as a,u as D,j as e,T as k,be as J,M as i,s as U,b2 as Q,o as l,g as $,i as M,d3 as X,bk as ee,d as te,Y as re,C as ne,m as se,I as v,a as h,aH as L,b,d4 as oe,K as ie,bu as ae,aD as le,d5 as me,G as C,H as R,k as ce,l as ue,A as de,bm as pe}from"./index-DTgUL_kq.js";import{u as fe,T as xe}from"./html-title-BKasCGZJ.js";import{T as ge}from"./traffic-QqCF1YrQ.js";import{H as he}from"./index-CqyxuFxM.js";import{x as V}from"./index-DRYJ0xIl.js";import{C as ye,M as T}from"./memory-CHbtQUwm.js";import{C as ve}from"./CardContent-Ct11BveH.js";import{u as Ce}from"./useLocalStorage-CM-c3Psr.js";import{T as je,a as Ie}from"./ToggleButtonGroup-CYkaYq-d.js";import"./iframe-BuacfLs-.js";import"./ChevronLeft-DTV9VYLb.js";import"./ChevronRight-BV25Yw2E.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./base-chart-BBdPuf36.js";import"./index-BFfavAgR.js";import"./AdapterDayjs-C_fZicyZ.js";import"./useThemeProps-Cnj5mhqW.js";import"./CSSTransition-CfJLD8on.js";import"./visuallyHidden-Dan1xhjv.js";import"./FilterList-Cfx770te.js";import"./emotion-cache.browser.esm-DRbBs3XS.js";import"./index-wkMHahcA.js";import"./redux-DfszZyTl.js";import"./depsEqual-nDl4Jb8n.js";import"./index-DC1eDdhF.js";import"./TableSearch-DvRPn5Nk.js";import"./Search-Djv8dYGS.js";import"./Clear-BLlKzOYZ.js";import"./MoreVert-Dgq_vg7Y.js";import"./getValidReactChildren-RYNnEL64.js";const be=o=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...o},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),a.createElement("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"}));function Me(){const{api:o,info:s}=D();return e.jsx(ge,{client:o,did:s.did})}function P({style:o={},title:s=null,value:m=null,graph:c=null,description:p=null,empty:f=null}){return e.jsx(ke,{children:e.jsxs(ve,{style:{...o},children:[e.jsx(k,{sx:{color:"text.secondary",fontSize:14},children:s}),f&&J.isValidElement(f)?e.jsx(i,{style:{height:150},sx:{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center"},children:f}):e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h5",component:"div",sx:{mt:1},children:m}),c,!!p&&e.jsx(i,{sx:{display:"flex",color:"text.secondary",fontSize:12,marginTop:3},children:p})]})]})})}P.propTypes={style:l.object,title:l.node,value:l.node,graph:l.node,description:l.any,empty:l.node};const ke=U(Q)`
1
+ import{r as a,u as D,j as e,T as k,be as J,M as i,s as U,b2 as Q,o as l,g as $,i as M,d3 as X,bk as ee,d as te,Y as re,C as ne,m as se,I as v,a as h,aH as L,b,d4 as oe,K as ie,bu as ae,aD as le,d5 as me,G as C,H as R,k as ce,l as ue,A as de,bm as pe}from"./index-CI4dlXTe.js";import{u as fe,T as xe}from"./html-title-8eEQvwSm.js";import{T as ge}from"./traffic-wbGiv6hW.js";import{H as he}from"./index-h_zu579g.js";import{x as V}from"./index-DRYJ0xIl.js";import{C as ye,M as T}from"./memory-Da1Mktb-.js";import{C as ve}from"./CardContent-D4rz6FRp.js";import{u as Ce}from"./useLocalStorage-CoABMXGW.js";import{T as je,a as Ie}from"./ToggleButtonGroup-DvCR9SNw.js";import"./iframe-BS88FRwX.js";import"./ChevronLeft-D4CgzTJY.js";import"./ChevronRight-DXz-F6L7.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./base-chart-DWjEmmtF.js";import"./index-BlmPoc3t.js";import"./AdapterDayjs-V0ywFO6Q.js";import"./useThemeProps-DJWWp5kh.js";import"./CSSTransition-DsMKw-p5.js";import"./visuallyHidden-Dan1xhjv.js";import"./FilterList-Y719g2Zi.js";import"./emotion-cache.browser.esm-BVx7paDx.js";import"./index-_d7QPgTP.js";import"./redux-DfszZyTl.js";import"./depsEqual-CHA3TYmk.js";import"./index-w_ABp53I.js";import"./TableSearch-BwtXbQG-.js";import"./Search-CGTjTzzo.js";import"./Clear-NASbJHS6.js";import"./MoreVert-BQ022_rm.js";import"./getValidReactChildren-BiC2BfQo.js";const be=o=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...o},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),a.createElement("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"}));function Me(){const{api:o,info:s}=D();return e.jsx(ge,{client:o,did:s.did})}function P({style:o={},title:s=null,value:m=null,graph:c=null,description:p=null,empty:f=null}){return e.jsx(ke,{children:e.jsxs(ve,{style:{...o},children:[e.jsx(k,{sx:{color:"text.secondary",fontSize:14},children:s}),f&&J.isValidElement(f)?e.jsx(i,{style:{height:150},sx:{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center"},children:f}):e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h5",component:"div",sx:{mt:1},children:m}),c,!!p&&e.jsx(i,{sx:{display:"flex",color:"text.secondary",fontSize:12,marginTop:3},children:p})]})]})})}P.propTypes={style:l.object,title:l.node,value:l.node,graph:l.node,description:l.any,empty:l.node};const ke=U(Q)`
2
2
  .card-content {
3
3
  height: 150px;
4
4
  }