@abtnode/webapp 1.16.27 → 1.16.28-beta-bfbab430

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 (205) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-DOwN6I9N.js → Add-DEou6OQu.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-CEsdzzcK.js → ArrowDropDown-B8q6yJii.js} +1 -1
  5. package/dist/assets/{Autocomplete-DcC19-q2.js → Autocomplete-CxHBaO5x.js} +1 -1
  6. package/dist/assets/Breadcrumbs--9MrOMZw.js +1 -0
  7. package/dist/assets/{ButtonGroup-CKY0O7tT.js → ButtonGroup-BbRXyWVe.js} +1 -1
  8. package/dist/assets/{CheckCircle-BA-bGNdF.js → CheckCircle-D6vwJd9K.js} +1 -1
  9. package/dist/assets/{ChevronLeft-DRzRLgnp.js → ChevronLeft-Bc2acyen.js} +1 -1
  10. package/dist/assets/{ChevronRight-B2YICLYm.js → ChevronRight-Bcko4z80.js} +1 -1
  11. package/dist/assets/{Close-D9SKZkJ7.js → Close-DGnER_ve.js} +1 -1
  12. package/dist/assets/Delete-BGOcGa_D.js +1 -0
  13. package/dist/assets/DeleteOutline-C7JmRduW.js +1 -0
  14. package/dist/assets/{Done-DaMxTX7e.js → Done-CydSjSOx.js} +1 -1
  15. package/dist/assets/{Edit-B1ySEana.js → Edit-B0yxTPMe.js} +1 -1
  16. package/dist/assets/{EditIcon-BQGlXOR3.js → EditIcon-CF5y6ttj.js} +1 -1
  17. package/dist/assets/{FilterList-DKFhXHd2.js → FilterList-RGEuYf_e.js} +5 -5
  18. package/dist/assets/{Google-D2cPndsH.js → Google-CuSS9iHp.js} +4 -4
  19. package/dist/assets/{Https-CsiKqkaT.js → Https-B3P9JJiw.js} +1 -1
  20. package/dist/assets/{InfoOutlined-BUn5fKCT.js → InfoOutlined-B4lqtuRU.js} +1 -1
  21. package/dist/assets/{InputAdornment-DHLm1mFN.js → InputAdornment-BzCm_2kz.js} +1 -1
  22. package/dist/assets/{InputLabel-BjbeXM2B.js → InputLabel-CdW9MyDY.js} +1 -1
  23. package/dist/assets/{LastPage-DXu9ZGZF.js → LastPage-dDlMsztV.js} +1 -1
  24. package/dist/assets/{Launch-BIqLZtET.js → Launch-Dhs9Q_70.js} +1 -1
  25. package/dist/assets/{Link-DN_Lz3rV.js → Link-DSNZ4PNo.js} +1 -1
  26. package/dist/assets/{LoadingButton-3UN68oPJ.js → LoadingButton-DrVP9tt_.js} +1 -1
  27. package/dist/assets/{LockIcon-mC00ojRt.js → LockIcon-BMilDbx1.js} +1 -1
  28. package/dist/assets/{Loop-2BGd9rzF.js → Loop-CAxjNyCL.js} +1 -1
  29. package/dist/assets/{MoreVert-BCR8irtL.js → MoreVert-BL42DjcZ.js} +1 -1
  30. package/dist/assets/{Pagination-0NPBd4bk.js → Pagination-DWKt9t_F.js} +1 -1
  31. package/dist/assets/{Public-333jCEeA.js → Public-BobH8eAT.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-oKwgj6eC.js → SchemaReference.es-MUfmufV5.js} +1 -1
  33. package/dist/assets/{Search-5iZBDNjz.js → Search-J7ilvWof.js} +1 -1
  34. package/dist/assets/{Select-CPvSg7uW.js → Select-DJl6HmRs.js} +2 -2
  35. package/dist/assets/{Skeleton-B4-1c0OT.js → Skeleton-CSyuj2cV.js} +4 -4
  36. package/dist/assets/{Slider-DdynydW3.js → Slider-DRCfqhU1.js} +1 -1
  37. package/dist/assets/{Stepper-DpooXZzV.js → Stepper-C2a4PQ3_.js} +1 -1
  38. package/dist/assets/{TextField-sj2mcEXD.js → TextField-BD0it3d0.js} +1 -1
  39. package/dist/assets/{ToggleButtonGroup-BKQ2fKoV.js → ToggleButtonGroup-CR3zvwUX.js} +1 -1
  40. package/dist/assets/{ViewList-Cul4OAvz.js → ViewList-D3pEO1Ca.js} +1 -1
  41. package/dist/assets/{actions-xngcxvp5.js → actions-CL-Y8Eer.js} +1 -1
  42. package/dist/assets/actions-Dx15LaaC.js +11 -0
  43. package/dist/assets/{agreement-DBRJClMM.js → agreement-Dd1yuqFa.js} +9 -9
  44. package/dist/assets/api-Ce74sKYG.js +1 -0
  45. package/dist/assets/app-avatar-rgMNqIXw.js +1 -0
  46. package/dist/assets/{ar-DqmJV4p8.js → ar-DXpJw3XU.js} +1 -1
  47. package/dist/assets/{audit-logs-BkgPztEs.js → audit-logs-CmuAN_qn.js} +1 -1
  48. package/dist/assets/{brace-fold.es-CsornGfx.js → brace-fold.es-psNZdrWu.js} +1 -1
  49. package/dist/assets/{bundle-avatar-DzcvR6DI.js → bundle-avatar-C_2wXttj.js} +1 -1
  50. package/dist/assets/chart-sF6tbndw.js +35 -0
  51. package/dist/assets/{click-to-copy-CBs5PKxt.js → click-to-copy-KBQWqGOq.js} +1 -1
  52. package/dist/assets/{closebrackets.es-5NAqcDxa.js → closebrackets.es-ZHCmqLUg.js} +1 -1
  53. package/dist/assets/{codemirror.es-CEoouqN7.js → codemirror.es-DmoQbR9T.js} +1 -1
  54. package/dist/assets/{comment.es-DX01jrAI.js → comment.es-B7zL23d5.js} +1 -1
  55. package/dist/assets/{config-navigation-Ngw7D7GZ.js → config-navigation-BN7PO-cf.js} +2 -2
  56. package/dist/assets/{de-CHOUObJ5.js → de-CWxlIdre.js} +1 -1
  57. package/dist/assets/{delete-confirm-Da1BomBl.js → delete-confirm-ztUwg2kj.js} +1 -1
  58. package/dist/assets/detail-CXbwmlpg.js +58 -0
  59. package/dist/assets/{dialog.es-Oh6qpXQO.js → dialog.es-CFWHh6H2.js} +1 -1
  60. package/dist/assets/{download-DHPNYF1S.js → download-bWTPRaod.js} +1 -1
  61. package/dist/assets/{es-aZ4oYeVs.js → es-BmrvDK07.js} +1 -1
  62. package/dist/assets/{foldgutter.es-DqR5-lAT.js → foldgutter.es-CqRhTHya.js} +1 -1
  63. package/dist/assets/{fr-Bi9vptGI.js → fr-B7SxgRy3.js} +1 -1
  64. package/dist/assets/getValidReactChildren-DKO9kPop.js +1 -0
  65. package/dist/assets/{hi-BXYjfUTP.js → hi-BRRtNIB_.js} +1 -1
  66. package/dist/assets/{hint.es-D5LvE1_r.js → hint.es-DK_6KY-o.js} +1 -1
  67. package/dist/assets/{hint.es2-CgI0iRUf.js → hint.es2-CgWo28Uj.js} +1 -1
  68. package/dist/assets/{id-VVXvzjmO.js → id-D6-Qi7Q1.js} +1 -1
  69. package/dist/assets/{iframe-BcDoraJg.js → iframe-C32DbqVc.js} +1 -1
  70. package/dist/assets/{index-CWilKNfl.js → index-84DtgjQO.js} +6 -6
  71. package/dist/assets/{index-DuwHJNV9.js → index-B0WN-XH2.js} +1 -1
  72. package/dist/assets/{index-Cl7gQviA.js → index-B4ZjZNN8.js} +1 -1
  73. package/dist/assets/{index-CsVg93BX.js → index-BA_TAXpL.js} +2 -2
  74. package/dist/assets/{index-CAH8ukaj.js → index-BD7uC7gm.js} +4 -4
  75. package/dist/assets/{index-DPGsh5ca.js → index-BET56ssY.js} +1 -1
  76. package/dist/assets/{index-zUZPbg2I.js → index-BNulkcXj.js} +1 -1
  77. package/dist/assets/{index--Q6KdM7v.js → index-BoZhSN8h.js} +1 -1
  78. package/dist/assets/{index-BgqVsUwi.js → index-Bzs05ai8.js} +1 -1
  79. package/dist/assets/index-C4aM6rsI.js +54 -0
  80. package/dist/assets/index-C6fuJWed.js +262 -0
  81. package/dist/assets/{index-DC46OSan.js → index-CE4mBIM_.js} +1 -1
  82. package/dist/assets/{index-4SJGeyEI.js → index-CEBXL16c.js} +1 -1
  83. package/dist/assets/{index-DV-pE5RI.js → index-CYGLUEkg.js} +3 -3
  84. package/dist/assets/index-CYZ-ZpV5.js +80 -0
  85. package/dist/assets/{index-B6ReOJJN.js → index-Ca7UJIsi.js} +1 -1
  86. package/dist/assets/{index-BXmzbebA.js → index-CfOOBUnf.js} +2 -2
  87. package/dist/assets/{index-C7GDLIo-.js → index-CiaQ1OoK.js} +1 -1
  88. package/dist/assets/{index-CtWm5SK6.js → index-Cj3s4CtX.js} +4 -4
  89. package/dist/assets/{index-Boqyvc8Q.js → index-CkI554oc.js} +212 -211
  90. package/dist/assets/{index-eGpwmK92.js → index-Clbjq5Ay.js} +3 -3
  91. package/dist/assets/{index-Bvs8qR9r.js → index-CsNkkebn.js} +1 -1
  92. package/dist/assets/{index-BwcFSka9.js → index-CwOFD6vt.js} +1 -1
  93. package/dist/assets/{index-DoMsU5M2.js → index-CzZF4DJ9.js} +1 -1
  94. package/dist/assets/{index-B-OHtxJg.js → index-D2cgpNGA.js} +57 -57
  95. package/dist/assets/{index-DycwPjM3.js → index-D5A34D-v.js} +1 -1
  96. package/dist/assets/index-D9RqTndg.js +21 -0
  97. package/dist/assets/index-DA4GWzzk.js +85 -0
  98. package/dist/assets/{index-CBdVDTUr.js → index-DG50udXf.js} +4 -4
  99. package/dist/assets/index-DHDAQRQS.js +11 -0
  100. package/dist/assets/index-DbaRhcjK.js +1 -0
  101. package/dist/assets/{index-BPEtPX12.js → index-Dc48oA1e.js} +7 -7
  102. package/dist/assets/index-DeSsBKwN.js +16 -0
  103. package/dist/assets/{index-Ct_q9GS4.js → index-Dlmo3B4P.js} +1 -1
  104. package/dist/assets/index-DoYPOJLK.js +530 -0
  105. package/dist/assets/{index-BCPsngBN.js → index-DuHl-QWf.js} +1 -1
  106. package/dist/assets/{index-opBznRc5.js → index-HMFhZkjG.js} +11 -11
  107. package/dist/assets/{index-_NTV4-zc.js → index-aVpXIXlo.js} +5 -5
  108. package/dist/assets/index-dQw_Q0Sx.js +58 -0
  109. package/dist/assets/{index-BCQQEHyP.js → index-lXzOGnDm.js} +11 -11
  110. package/dist/assets/index-lfuZxoX8.js +11 -0
  111. package/dist/assets/{index-DZnZf-o0.js → index-owRl0jyR.js} +16 -16
  112. package/dist/assets/{index-D81FDm0a.js → index-sNR67yJ2.js} +1 -1
  113. package/dist/assets/{index.es-C_vrKJwx.js → index.es-r9xAwx7Q.js} +1 -1
  114. package/dist/assets/{index.esm-Cnicyd3_.js → index.esm-BCQ0BZMT.js} +1 -1
  115. package/dist/assets/{info-addon.es-B0sGOwNz.js → info-addon.es-BDFdJmkW.js} +1 -1
  116. package/dist/assets/{info.es-x51I_2sm.js → info.es-CBadJSwW.js} +1 -1
  117. package/dist/assets/install-from-url-DuxahkOW.js +1 -0
  118. package/dist/assets/{invitation-B30vIvMt.js → invitation-CSvGVnhZ.js} +6 -6
  119. package/dist/assets/{isEqual-DbZp5EUk.js → isEqual-DLk5wI5o.js} +1 -1
  120. package/dist/assets/{item-BdJl6I8q.js → item-Bv034Zcl.js} +13 -13
  121. package/dist/assets/{ja-DqJiajLu.js → ja--dtwu5Xy.js} +1 -1
  122. package/dist/assets/{javascript.es-AOt9muQq.js → javascript.es-Bq6krn1L.js} +1 -1
  123. package/dist/assets/{jump-to-line.es-p4ynQoBS.js → jump-to-line.es-Cm-kakdo.js} +1 -1
  124. package/dist/assets/{jump.es-BrSOPKg0.js → jump.es-VEZCju5l.js} +1 -1
  125. package/dist/assets/{ko-DQKmtlbI.js → ko-DpRJDWhF.js} +1 -1
  126. package/dist/assets/{line-DdSLBn8H.js → line-VNmgswg2.js} +4 -4
  127. package/dist/assets/{lint.es-BMdrvXUs.js → lint.es-DhrBN362.js} +1 -1
  128. package/dist/assets/{lint.es2-DX4OlyGK.js → lint.es2-CWQYXYDN.js} +1 -1
  129. package/dist/assets/{lint.es3-BYQCiNDn.js → lint.es3-HsrZT9m1.js} +1 -1
  130. package/dist/assets/{list-header-BnipX_Rp.js → list-header-DsWkp7IV.js} +1 -1
  131. package/dist/assets/{log-i4SQ4Z0y.js → log-DgVRxyob.js} +2 -2
  132. package/dist/assets/{lottie-BYxFXW-g.js → lottie-CYf1PmCL.js} +1 -1
  133. package/dist/assets/{matchbrackets.es-aeJus3PD.js → matchbrackets.es-BthTk6Jn.js} +1 -1
  134. package/dist/assets/{memory-Cu-5WL0k.js → memory-dGmMptAO.js} +1 -1
  135. package/dist/assets/{mode.es-CXfOP3-9.js → mode.es-_GdTPtpx.js} +1 -1
  136. package/dist/assets/{mode.es2-DOeKit6c.js → mode.es2-brmgogqJ.js} +1 -1
  137. package/dist/assets/{mode.es3-8pUUSOKg.js → mode.es3-DPGB-Rg-.js} +1 -1
  138. package/dist/assets/{onlineParser.es-Bsw_5f31.js → onlineParser.es-BUsBjG_x.js} +1 -1
  139. package/dist/assets/overview-BjqHXIvR.js +23 -0
  140. package/dist/assets/{pt-si0ACe2m.js → pt-BxA88dKG.js} +1 -1
  141. package/dist/assets/{react-BU7lI6gg.js → react-B-xa5K3p.js} +22 -22
  142. package/dist/assets/{redux-07bmubSg.js → redux-BBckwmBz.js} +1 -1
  143. package/dist/assets/{resource-dialog-Co295aU2.js → resource-dialog-CIpxrG7w.js} +2 -2
  144. package/dist/assets/{ru-B36cpSA6.js → ru-C9WJaQoQ.js} +1 -1
  145. package/dist/assets/runtime-mnz4kggA.js +1 -0
  146. package/dist/assets/{search.es-ByHwIa0U.js → search.es-CV0d4AUV.js} +1 -1
  147. package/dist/assets/{searchcursor.es-CsQOLBoo.js → searchcursor.es-CxYOh1mB.js} +1 -1
  148. package/dist/assets/service-DbM6n6e-.js +1 -0
  149. package/dist/assets/{show-hint.es-BY2B9aLR.js → show-hint.es-GDHMVUwy.js} +1 -1
  150. package/dist/assets/{slicedToArray-BwJA6b7k.js → slicedToArray-Pwxti1pp.js} +3 -3
  151. package/dist/assets/spaces-3s9pbV-M.js +1 -0
  152. package/dist/assets/{sublime.es-DZOyVbIC.js → sublime.es-BiX2tLa_.js} +1 -1
  153. package/dist/assets/{switch-control-D1Iqbf5D.js → switch-control-1CHbJzd5.js} +1 -1
  154. package/dist/assets/{table-icons-CB9vK-gH.js → table-icons-DjAM1A7C.js} +10 -10
  155. package/dist/assets/{tag-CANB-Fll.js → tag-CdoBHuxB.js} +1 -1
  156. package/dist/assets/team-CrNp0IgF.js +1 -0
  157. package/dist/assets/{th-Dtc8_3Sk.js → th-z7LSYRZi.js} +1 -1
  158. package/dist/assets/toUpper-C7enqaxL.js +1 -0
  159. package/dist/assets/{traffic-CmQ-j2sa.js → traffic-Bw_e_wEP.js} +5 -5
  160. package/dist/assets/url-evaluation-asC5XTLH.js +7 -0
  161. package/dist/assets/use-blocklet-info-for-connect-did-spaces-R82fq7SC.js +1 -0
  162. package/dist/assets/{useLocalStorage-BNvbpN9F.js → useLocalStorage-DRS65jti.js} +1 -1
  163. package/dist/assets/util-BC42zb0j.js +1 -0
  164. package/dist/assets/{vi-DpH7bkpR.js → vi-CAtyUyNW.js} +1 -1
  165. package/dist/assets/{wait-container-mYVBI-ZE.js → wait-container-DzvlQJkQ.js} +4 -4
  166. package/dist/assets/withStyles-CPWhmxGn.js +1 -0
  167. package/dist/assets/wrap-locale-p7nrsckq.js +1 -0
  168. package/dist/assets/{zh-Dizc5DZz.js → zh-BVBeddUa.js} +1 -1
  169. package/dist/assets/{zh-tw-Cb93tcSH.js → zh-tw-CoStw7dd.js} +1 -1
  170. package/dist/index.html +1 -1
  171. package/dist/service-worker.js +1 -1
  172. package/package.json +1 -1
  173. package/dist/assets/Breadcrumbs-f87TWJgq.js +0 -1
  174. package/dist/assets/Delete-h8Ye2r4b.js +0 -1
  175. package/dist/assets/DeleteOutline-C-1A8rVu.js +0 -1
  176. package/dist/assets/DeleteOutline-ClZ-ABF-.js +0 -1
  177. package/dist/assets/actions-ByUCXaaH.js +0 -11
  178. package/dist/assets/api-BdOqJGVs.js +0 -1
  179. package/dist/assets/app-avatar-DEqDSBYG.js +0 -1
  180. package/dist/assets/chart-CQeRS3mZ.js +0 -35
  181. package/dist/assets/detail-CaMUtLL5.js +0 -58
  182. package/dist/assets/getValidReactChildren-B_HEoXEd.js +0 -1
  183. package/dist/assets/index-3vcNDYsD.js +0 -530
  184. package/dist/assets/index-B7-XNbV9.js +0 -85
  185. package/dist/assets/index-BMkbX5aS.js +0 -11
  186. package/dist/assets/index-B_M-nPU6.js +0 -58
  187. package/dist/assets/index-DMKpICI6.js +0 -1
  188. package/dist/assets/index-DY9g7uAE.js +0 -54
  189. package/dist/assets/index-DdxWI-QG.js +0 -262
  190. package/dist/assets/index-DwOVPSU7.js +0 -21
  191. package/dist/assets/index-Mr6j5sdU.js +0 -11
  192. package/dist/assets/index-PDofIfka.js +0 -80
  193. package/dist/assets/index-RlfSCcPa.js +0 -16
  194. package/dist/assets/install-from-url-Cnfp9xqR.js +0 -1
  195. package/dist/assets/overview-CnuzNSfm.js +0 -23
  196. package/dist/assets/runtime-CW-W-Oej.js +0 -1
  197. package/dist/assets/service-DNZLEaeT.js +0 -1
  198. package/dist/assets/spaces-CGO2dSgv.js +0 -1
  199. package/dist/assets/team-rrZYIohT.js +0 -1
  200. package/dist/assets/toUpper-D0HPBfn5.js +0 -1
  201. package/dist/assets/url-evaluation-DymLev_N.js +0 -7
  202. package/dist/assets/use-blocklet-info-for-connect-did-spaces-YWN8QaVT.js +0 -1
  203. package/dist/assets/util-CRUZQ4-B.js +0 -1
  204. package/dist/assets/withStyles-CSLQqeaB.js +0 -1
  205. package/dist/assets/wrap-locale-B076jNc7.js +0 -1
@@ -1 +0,0 @@
1
- import{bS as z,j as t,bT as d,bU as T,bV as l,bW as I,bX as P,bY as _,bZ as A,m as E,r as p,b_ as N,b$ as U,c0 as L,c1 as W}from"./index-Boqyvc8Q.js";const H=z(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),O=["slots","slotProps"],V=d(T)(({theme:e})=>l({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":l({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":l({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:I(e.palette.grey[200],.12)}:{backgroundColor:I(e.palette.grey[600],.12)})})),q=d(H)({width:24,height:16});function X(e){const{slots:s={},slotProps:n={}}=e,a=P(e,O),r=e;return t.jsx("li",{children:t.jsx(V,l({focusRipple:!0},a,{ownerState:r,children:t.jsx(q,l({as:s.CollapsedIcon,ownerState:r},n.collapsedIcon))}))})}function Y(e){return A("MuiBreadcrumbs",e)}const Z=_("MuiBreadcrumbs",["root","ol","li","separator"]),D=Z,F=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],G=e=>{const{classes:s}=e;return W({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Y,s)},J=d(E,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,s)=>[{[`& .${D.li}`]:s.li},s.root]})({}),K=d("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,s)=>s.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Q=d("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,s)=>s.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function ee(e,s,n,a){return e.reduce((r,u,c)=>(c<e.length-1?r=r.concat(u,t.jsx(Q,{"aria-hidden":!0,className:s,ownerState:a,children:n},`separator-${c}`)):r.push(u),r),[])}const se=p.forwardRef(function(s,n){const a=N({props:s,name:"MuiBreadcrumbs"}),{children:r,className:u,component:c="nav",slots:h={},slotProps:v={},expandText:B="Show path",itemsAfterCollapse:m=1,itemsBeforeCollapse:g=1,maxItems:x=8,separator:y="/"}=a,M=P(a,F),[S,$]=p.useState(!1),i=l({},a,{component:c,expanded:S,expandText:B,itemsAfterCollapse:m,itemsBeforeCollapse:g,maxItems:x,separator:y}),b=G(i),k=U({elementType:h.CollapsedIcon,externalSlotProps:v.collapsedIcon,ownerState:i}),R=p.useRef(null),w=o=>{const C=()=>{$(!0);const j=R.current.querySelector("a[href],button,[tabindex]");j&&j.focus()};return g+m>=o.length?o:[...o.slice(0,g),t.jsx(X,{"aria-label":B,slots:{CollapsedIcon:h.CollapsedIcon},slotProps:{collapsedIcon:k},onClick:C},"ellipsis"),...o.slice(o.length-m,o.length)]},f=p.Children.toArray(r).filter(o=>p.isValidElement(o)).map((o,C)=>t.jsx("li",{className:b.li,children:o},`child-${C}`));return t.jsx(J,l({ref:n,component:c,color:"text.secondary",className:L(b.root,u),ownerState:i},M,{children:t.jsx(K,{className:b.ol,ref:R,ownerState:i,children:ee(S||x&&f.length<=x?f:w(f),b.separator,y,i)})}))}),re=se;export{re as B};
@@ -1 +0,0 @@
1
- import{bZ as w,bY as x,bT as v,bV as a,r as b,b_ as h,bX as F,dc as C,dd as G,j as t,c0 as y,c1 as M,bS as u,aL as R,aM as _}from"./index-Boqyvc8Q.js";function g(o){return w("MuiFormGroup",o)}const j=x("MuiFormGroup",["root","row","error"]),I=j,D=["className","row"],S=o=>{const{classes:r,row:s,error:e}=o;return M({root:["root",s&&"row",e&&"error"]},g,r)},L=v("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,s.row&&r.row]}})(({ownerState:o})=>a({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),K=b.forwardRef(function(r,s){const e=h({props:r,name:"MuiFormGroup"}),{className:n,row:i=!1}=e,p=F(e,D),m=C(),d=G({props:e,muiFormControl:m,states:["error"]}),c=a({},e,{row:i,error:d.error}),f=S(c);return t.jsx(L,a({className:y(f.root,n),ownerState:c,ref:s},p))}),N=K,P=u(t.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),H=u(t.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var l={},z=_;Object.defineProperty(l,"__esModule",{value:!0});var A=l.default=void 0,U=z(R()),q=t;A=l.default=(0,U.default)((0,q.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");export{l as D,N as F,P as K,H as a,A as d,I as f,g};
@@ -1 +0,0 @@
1
- import{g as e}from"./index-Boqyvc8Q.js";import{r as t}from"./DeleteOutline-ClZ-ABF-.js";var r=t();const i=e(r);export{i as D};
@@ -1 +0,0 @@
1
- import{aL as i,aM as l,j as n}from"./index-Boqyvc8Q.js";var e={},t;function s(){if(t)return e;t=1;var r=l;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=r(i()),a=n;return e.default=(0,u.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),e}export{s as r};
@@ -1,11 +0,0 @@
1
- import{bx as Oe,by as Ue,bz as Te,bA as qe,bB as ze,bC as Ne,bD as ke,bE as He,bF as Fe,g as fe,bG as Ge,bH as Ve,bI as We,r as v,j as n,P as j,a2 as Ke,aL as R,aM as b,bJ as Xe,n as Ye,z as Je,bm as Qe,f as ve,bK as re,b as H,bL as Ze,N as et,bM as M,a3 as tt,a_ as nt,aP as at,O as rt,be as st,U as ot,aE as it,C as se,aa as ct,ae as oe,B as lt,F as ie,M as ut,m as q,aY as ce,bN as dt,A as le,ab as mt,aO as pt,K as ft,bO as vt,bP as ht,bQ as gt}from"./index-Boqyvc8Q.js";import{_ as xt}from"./useLocalStorage-BNvbpN9F.js";import{d as _t}from"./MoreVert-BCR8irtL.js";import{d as yt}from"./Delete-h8Ye2r4b.js";import{B as jt}from"./ButtonGroup-CKY0O7tT.js";import{R as St,b as ue,u as Dt}from"./url-evaluation-DymLev_N.js";var Rt=Oe,bt=qe,Ct=ze,$t=Ue,Lt=Te,wt=Ne,Bt=200;function Mt(e,r,s,c){var o=-1,u=bt,g=!0,x=e.length,d=[],i=r.length;if(!x)return d;s&&(r=$t(r,Lt(s))),c?(u=Ct,g=!1):r.length>=Bt&&(u=wt,g=!1,r=new Rt(r));e:for(;++o<x;){var p=e[o],f=s==null?p:s(p);if(p=c||p!==0?p:0,g&&f===f){for(var C=i;C--;)if(r[C]===f)continue e;d.push(p)}else u(r,f,c)||d.push(p)}return d}var Pt=Mt,Et=Pt,At=ke,de=He;function It(e,r,s){var c=e.length;if(c<2)return c?de(e[0]):[];for(var o=-1,u=Array(c);++o<c;)for(var g=e[o],x=-1;++x<c;)x!=o&&(u[o]=Et(u[o]||g,e[x],r,s));return de(At(u,1),r,s)}var Ot=It,Ut=Ge,Tt=Fe,qt=Ot,zt=We,Nt=Ve,kt=Tt(function(e){var r=Nt(e);return r=typeof r=="function"?r:void 0,qt(Ut(e,zt),void 0,r)}),Ht=kt;const Ft=fe(Ht),he=v.createContext({});function ge({children:e,type:r}){const[s,c]=v.useState([]),o=v.useRef([]),u=d=>{if(!o.current.includes(d)){const i=[...o.current,d];c(i),o.current=i}},g=d=>{if(o.current.includes(d)){const i=o.current.filter(p=>p!==d);c(i),o.current=i}},x=d=>{const i=s.filter(f=>d.find(C=>C===f));Ft(i,s).forEach(f=>g(f))};return n.jsx(he.Provider,{value:{type:r,deletingBlocklets:s,addDeletingDid:u,removeDeletingDid:g,matchDeletingDid:x},children:e})}ge.propTypes={type:j.string,children:j.node.isRequired};ge.defaultProps={type:"blocklets"};function Dn(){return v.useContext(he)}const Gt=(e,r)=>{if(!e)return"";if(!r)return e;const s=new URL(e),c=new URLSearchParams(s.searchParams),o=new URL(Ke(s.origin,r));return o.search=c.toString(),o.toString()};var F={},Vt=b;Object.defineProperty(F,"__esModule",{value:!0});var xe=F.default=void 0,Wt=Vt(R()),Kt=n;xe=F.default=(0,Wt.default)((0,Kt.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var G={},Xt=b;Object.defineProperty(G,"__esModule",{value:!0});var _e=G.default=void 0,Yt=Xt(R()),Jt=n;_e=G.default=(0,Yt.default)((0,Jt.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var I={},me;function Qt(){if(me)return I;me=1;var e=b;Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var r=e(R()),s=n;return I.default=(0,r.default)((0,s.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"),I}var Zt=Qt();const en=fe(Zt);var V={},tn=b;Object.defineProperty(V,"__esModule",{value:!0});var ye=V.default=void 0,nn=tn(R()),an=n;ye=V.default=(0,nn.default)((0,an.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 W={},rn=b;Object.defineProperty(W,"__esModule",{value:!0});var je=W.default=void 0,sn=rn(R()),on=n;je=W.default=(0,sn.default)((0,on.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 K={},cn=b;Object.defineProperty(K,"__esModule",{value:!0});var Se=K.default=void 0,ln=cn(R()),un=n;Se=K.default=(0,ln.default)((0,un.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 X={},dn=b;Object.defineProperty(X,"__esModule",{value:!0});var De=X.default=void 0,mn=dn(R()),pn=n;De=X.default=(0,mn.default)((0,pn.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 Y={},fn=b;Object.defineProperty(Y,"__esModule",{value:!0});var Re=Y.default=void 0,vn=fn(R()),hn=n;Re=Y.default=(0,vn.default)((0,hn.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");const y={Start:xe,Stop:_e,Restart:en,Reload:ye,Remove:yt,Config:je,Log:Se,Group:De,Cancel:Re,Dashboard:Xe};function J({blocklet:e,onStart:r,onComplete:s,variant:c,hasPermission:o,getComponentUrl:u,useBlockletUrlEvaluation:g,...x}){const d=Je(),i=Qe(),[p,f]=v.useState(null),[C,Q]=v.useState(null),[P,E]=v.useState(!1),[m,z]=v.useState(null),{t:a}=v.useContext(ve),[be]=xt("skip-blocklet-setup",!1),{loading:Ce,recommendedUrl:$e}=g(e),Z=re(e.status),[N,ee]=v.useState(!1);v.useEffect(()=>{var l,S;if(!(e!=null&&e.controller))return;ee(((S=(l=e==null?void 0:e.controller)==null?void 0:l.status)==null?void 0:S.value)===H.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var D,$,L;try{const h=await i.api.getLauncherSession({input:{launcherSessionId:(D=e==null?void 0:e.controller)==null?void 0:D.launcherSessionId,launcherUrl:($=e==null?void 0:e.controller)==null?void 0:$.launcherUrl}});if(h!=null&&h.error){console.error("get launcher session failed",h.error);return}ee([ie.LAUNCH_SESSION_STATUS.expired,ie.LAUNCH_SESSION_STATUS.terminated].includes((L=h==null?void 0:h.launcherSession)==null?void 0:L.status))}catch(h){console.error("call getLauncherSession error",h)}})()},[]);const{inService:k}=i,Le=()=>{const t=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),l=u==null?void 0:u({mountPoint:t,blocklet:e});window.open(Gt(l,".well-known/service/admin"))},A=(t,l,S=!1)=>async()=>{const D=async O=>{var T;r({action:t,blocklet:e}),E(!0),Q(t);let U=!1;try{if(t==="remove")await l(O);else if(t==="start"){if(!dt(e)){le.error(a("blocklet.noComponent"));return}if(!k&&!be&&!((T=e.settings)!=null&&T.initialized)&&e.mode!==H.BLOCKLET_MODES.DEVELOPMENT){const _=mt(i.info),ae=new URL($e);ae.searchParams.set("serverUrl",_),window.open(ae.href),s({action:t,blocklet:e});return}const w=e.children.filter(_=>!re(_.status)&&_.status!=="running").map(_=>_.meta.did),B={did:e.meta.did,componentDids:w};await l({input:B})}else if(["stop","restart","reload"].includes(t)){const w=e.children.filter(_=>_.status==="running").map(_=>_.meta.did),B={did:e.meta.did,componentDids:w};await l({input:B})}else{const w={did:e.meta.did};await l({input:w})}t==="remove"?U=!0:await pt(1e3),t==="reload"&&le.success(a("blocklet.reloadSuccess")),z(null),s({action:t,blocklet:e})}catch(w){const B=`Blocklet ${t} failed: ${ft(w)}`;throw s({action:t,blocklet:e,error:new Error(B)}),new Error(B)}finally{U||E(!1)}},$=()=>{E(!1),z(null)},L=ut(e,!0),h=e.mode===H.BLOCKLET_MODES.DEVELOPMENT?{description:()=>n.jsx(q,{component:"div",children:n.jsx(q,{gutterBottom:!0,children:a("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(O,U)=>n.jsxs(q,{component:"div",children:[n.jsx(q,{gutterBottom:!0,children:a("blocklet.action.removeApplicationDescription")}),n.jsxs(St,{name:"removeType",value:O.removeType,onChange:T=>U({...O,removeType:T.target.value}),children:[n.jsx(ce,{value:"backup",control:n.jsx(ue,{}),label:a("blocklet.action.removeApplicationAfterBackup")}),n.jsx(ce,{value:"complete",control:n.jsx(ue,{}),label:a("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Ie={stop:{title:`${a("common.stop")} ${L}`,description:a("blocklet.action.stopDescription"),confirm:a("blocklet.action.confirmStop"),cancel:a("common.cancel"),onConfirm:D,onCancel:$},restart:{title:`${a("common.restart")} ${L}`,description:a("blocklet.action.restartDescription"),confirm:a("blocklet.action.confirmRestart"),cancel:a("common.cancel"),onConfirm:D,onCancel:$},remove:{title:`${a("common.remove")} ${L}`,confirm:a("blocklet.action.confirmRemove"),cancel:a("common.cancel"),onConfirm:D,onCancel:$,...h},cancelDownload:{title:`${a("common.cancel")}`,description:a("blocklet.action.cancelDownloadDescription",{name:L}),confirm:a("common.confirm"),cancel:a("common.cancel"),onConfirm:D,onCancel:$}};S?z(Ie[t]):await D()},we=!!p,Be=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(t.currentTarget)},Me=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(null)},te=async(t,l)=>{try{l.stopPropagation(),l.preventDefault()}catch{}if(typeof t.handler=="function")try{E(!0),Q(t.action),await t.handler()}catch(S){console.error(`Blocklet ${t.name} failed: `,S)}finally{E(!1),f(null)}else f(null)},Pe=!k&&Ze(e)?{action:"remove",icon:y.Remove,name:a("common.remove"),handler:A("remove",async({removeType:t})=>{t==="backup"&&await i.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await i.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:Z}:null,Ee={action:"remove",icon:({sx:t,...l})=>n.jsx(y.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...l}),name:a("common.cancel"),handler:A("cancelDownload",i.api.cancelDownloadBlocklet,!0)},Ae=et(e),ne=[{action:"start",icon:y.Start,name:a("common.start"),handler:A("start",i.api.startBlocklet),disabled:N||e.children.every(t=>t.status==="running")||M(e.status)||Ce||Z},{action:"stop",icon:y.Stop,name:a("common.stop"),handler:A("stop",i.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:y.Restart,name:a("common.restart"),handler:A("restart",i.api.restartBlocklet,!0),disabled:N||e.status!=="running"},M(e.status)?Ee:Pe,{separator:!0},k?null:{action:"dashboard",icon:({style:t,...l})=>n.jsx(y.Dashboard,{...l,style:{...t,width:"26px",height:"26px",paddingRight:"3px"}}),name:a("sidebar.dashboard"),handler:Le,disabled:N||e.status!=="running"},{separator:!0},{onlyInMenu:!0,action:"config",icon:y.Config,name:a("common.config"),handler:()=>{d(`/blocklets/${e.meta.did}/configuration`)},disabled:M(e.status)},{onlyInMenu:!0,action:"team",icon:y.Group,name:a("common.manageTeam"),handler:()=>{d(`/blocklets/${e.meta.did}/members`)},disabled:M(e.status)},{onlyInMenu:!0,action:"log",icon:y.Log,name:a("common.log"),handler:()=>{d(`/logs/blocklet-${e.meta.did}`)},disabled:M(e.status)}].filter(Boolean);return c==="menu"?n.jsxs(pe,{"data-cy":"blocklet-actions",children:[n.jsx(tt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:Be,size:"small",disabled:!o||!M(e.status)&&P,children:n.jsx(_t,{})}),n.jsxs(nt,{id:"actions-menu",anchorEl:p,keepMounted:!0,open:we,onClose:Me,PaperProps:{},children:[Ae.length>0&&n.jsxs(at,{style:{maxWidth:"400px"},severity:"error",children:[a("blocklet.config.missingRequired"),n.jsx("br",{}),n.jsx(rt,{to:`/blocklets/${e.meta.did}/components`,children:a("blocklet.config.gotoFix")})]}),ne.map((t,l)=>t.separator?n.jsx(st,{},`separator-${l}`):n.jsxs(ot,{dense:!0,onClick:S=>te(t,S),disabled:P||t.disabled,"data-cy":`${t.action}-blocklet`,children:[n.jsx(it,{style:{minWidth:24},children:C===t.action&&P?n.jsx(se,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{fontSize:"small"})}),n.jsx(ct,{primary:t.name})]},t.name))]}),m&&n.jsx(oe,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):n.jsxs(pe,{"data-cy":"blocklet-actions",...x,children:[n.jsx(jt,{children:ne.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>n.jsxs(lt,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>te(t),disabled:!!t.disabled||P,children:[C===t.action&&P?n.jsx(se,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{}),n.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),m&&n.jsx(oe,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}J.propTypes={getComponentUrl:j.func,blocklet:j.object.isRequired,onStart:j.func.isRequired,onComplete:j.func.isRequired,variant:j.oneOf(["menu","group"]),hasPermission:j.bool,useBlockletUrlEvaluation:j.func};J.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 pe=Ye.div`
2
- display: flex;
3
- align-items: center;
4
-
5
- @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
6
- .MuiButton-root {
7
- padding: 4px;
8
- font-size: 10px;
9
- }
10
- }
11
- `;function Rn({...e}){const{locale:r}=v.useContext(ve),s=vt(J,"mutate_blocklets"),c=({mountPoint:o,blocklet:u})=>ht({blocklet:u,mountPoint:o,params:gt(u,r)});return n.jsx(s,{...e,getComponentUrl:c,useBlockletUrlEvaluation:Dt})}export{Rn as B,ge as D,en as R,Pt as _,_e as a,y as b,xe as c,De as d,Qt as r,Dn as u};
@@ -1 +0,0 @@
1
- import{aw as a}from"./index-Boqyvc8Q.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -1 +0,0 @@
1
- import{bm as A,b as L,a2 as u,d4 as B,br as y,P as t,j as m,cn as P}from"./index-Boqyvc8Q.js";const d=(n,r)=>{var a;let s="?v=";return r?s+=B(r):s+=`${(a=n==null?void 0:n.meta)==null?void 0:a.version}${y(n==null?void 0:n.status)?"~":""}`,s};function T({blocklet:n}){var O,g,p,v;const{inService:r}=A(),s=(O=((n==null?void 0:n.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:O.value,a=(g=((n==null?void 0:n.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:g.value,o=(p=((n==null?void 0:n.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:p.value,i=((v=window.env)==null?void 0:v.apiPrefix)||"/",_=u(i,`/blocklet/logo/${r?"":n.meta.did}`,d(n,s)),f=u(i,`/blocklet/logo-rect/${r?"":n.meta.did}`,d(n,a)),C=u(i,`/blocklet/logo-favicon/${r?"":n.meta.did}`,d(n,o));return{logoUrl:_,rectLogoUrl:f,faviconUrl:C}}function E({blocklet:n,style:r,size:s,...a}){const{logoUrl:o}=T({blocklet:n}),{variant:i}=a;return m.jsx(P,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},r),...a,children:m.jsx("img",{src:o,alt:"",style:{width:s}})})}E.propTypes={blocklet:t.object.isRequired,style:t.object,size:t.oneOfType([t.number,t.string])};E.defaultProps={style:{},size:40};export{E as B,T as u};
@@ -1,35 +0,0 @@
1
- import{j as u,b2 as H,m as L,Q,P as a,n as V,b1 as Z,r as j,cw as G,fn as J}from"./index-Boqyvc8Q.js";function z(t,e,n,s){return parseFloat((e-s*e/t+n).toFixed(2))}function K(t){[...t.querySelectorAll("*")].forEach(e=>t.removeChild(e))}function U(t){return t.value}function C(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg",t);for(const s in e)n.setAttribute(s,e[s]);return n}function _(t,e,n){if(K(t),e.length<=1)return;n=n||{},typeof e[0]=="number"&&(e=e.map(o=>({value:o})));const{onmousemove:s}=n,{onmouseout:d}=n,R="interactive"in n?n.interactive:!!s,f=n.spotRadius||2,i=f*2,A=n.cursorWidth||2,r=parseFloat(t.attributes["stroke-width"].value),F=n.fetch||U,p=e.map(o=>F(o)),y=parseFloat(t.attributes.width.value)-i*2,x=parseFloat(t.attributes.height.value),S=x-r*2-i,g=Math.max(...p)===0?1:Math.max(...p),l=-1e3,w=p.length-1,N=y/w,k=[],W=z(g,S,r+f,p[0]);let E=`M${i} ${W}`;p.forEach((o,m)=>{const c=m*N+i,h=z(g,S,r+f,o);k.push(Object.assign({},e[m],{index:m,x:c,y:h})),E+=` L ${c} ${h}`});const M=C("path",{class:"sparkline--line",d:E,fill:"none"}),O=`${E} V ${x} L ${i} ${x} Z`,X=C("path",{class:"sparkline--fill",d:O,stroke:"none"});if(t.appendChild(X),t.appendChild(M),!R)return;const b=C("line",{class:"sparkline--cursor",x1:l,x2:l,y1:0,y2:x,"stroke-width":A}),$=C("circle",{class:"sparkline--spot",cx:l,cy:l,r:f});t.appendChild(b),t.appendChild($);const T=C("rect",{width:t.attributes.width.value,height:t.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});t.appendChild(T),T.addEventListener("mouseout",o=>{b.setAttribute("x1",l),b.setAttribute("x2",l),$.setAttribute("cx",l),d&&d(o)}),T.addEventListener("mousemove",o=>{const m=o.offsetX;let c=k.find(B=>B.x>=m);c||(c=k[w]);const h=k[k.indexOf(c)-1];let v,I;h?(I=h.x+(c.x-h.x)/2,v=m>=I?c:h):v=c;const{x:P}=v,{y:Y}=v;$.setAttribute("cx",P),$.setAttribute("cy",Y),b.setAttribute("x1",P),b.setAttribute("x2",P),s&&s(o,v)})}function q({style:t,title:e,value:n,graph:s,description:d}){return u.jsx(tt,{children:u.jsxs(H,{style:{...t},children:[u.jsx(L,{sx:{fontSize:14},color:"text.secondary",children:e}),u.jsx(L,{variant:"h5",component:"div",mt:1,children:n}),s,!!d&&u.jsx(Q,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:d})]})})}q.propTypes={style:a.object,title:a.node,value:a.node,graph:a.node,description:a.any};q.defaultProps={style:{},title:null,value:null,graph:null,description:null};const tt=V(Z)`
2
- .card-content {
3
- height: 150px;
4
- }
5
-
6
- .card-sparkline {
7
- flex: 2;
8
- display: flex;
9
- position: relative;
10
- *[hidden] {
11
- display: none;
12
- }
13
- }
14
- .sparkline {
15
- stroke: ${t=>t.theme.palette.primary.main};
16
- fill: ${t=>t.theme.palette.primary.main}1A;
17
- }
18
- .tooltip {
19
- position: absolute;
20
- background: rgba(0, 0, 0, 0.7);
21
- color: #fff;
22
- padding: 2px 5px;
23
- font-size: 12px;
24
- white-space: nowrap;
25
- z-index: 9999;
26
- }
27
- .sparkline--cursor {
28
- stroke: orange;
29
- }
30
-
31
- .sparkline--spot {
32
- fill: red;
33
- stroke: red;
34
- }
35
- `;function D({id:t,title:e,current:n,description:s,data:d,dateFn:R,valueFn:f}){const i=j.useRef(null),A=j.useRef(null),r=G({style:{top:0,left:0},hidden:!0,textContent:""}),[F,p]=j.useState(null),y=J(F),x={onmousemove(S,g){const{date:l,value:w}=g;r.textContent=`${R(l)}: ${f(w)}`,r.style.top=-30,r.style.left=80,r.hidden=!1},onmouseout(){r.hidden=!0}};return j.useEffect(()=>{setTimeout(()=>{p(document.querySelector(`.${t}`)),setTimeout(()=>{i.current&&_(i.current,d||[],x)},400)})},[d]),u.jsx(q,{title:e,value:n,graph:u.jsxs("div",{className:`card-sparkline ${t}`,style:{marginTop:16},children:[u.jsx("svg",{ref:i,className:"sparkline",width:(y==null?void 0:y.width)||100,height:30,strokeWidth:"2"}),u.jsx("span",{className:"tooltip",ref:A,hidden:r.hidden,style:{...r.style},children:r.textContent})]}),description:s})}D.propTypes={id:a.string.isRequired,title:a.string.isRequired,current:a.any.isRequired,description:a.any,data:a.array,dateFn:a.func,valueFn:a.func};D.defaultProps={description:null,data:[],dateFn:t=>t,valueFn:t=>t};export{q as I,D as a};
@@ -1,58 +0,0 @@
1
- const __vite__fileDeps=["./overview-CnuzNSfm.js","./index-Boqyvc8Q.js","./index-D7K8de1w.css","./index-B6ReOJJN.js","./team-rrZYIohT.js","./url-evaluation-DymLev_N.js","./Delete-h8Ye2r4b.js","./tag-CANB-Fll.js","./Add-DOwN6I9N.js","./LockIcon-mC00ojRt.js","./index-BXmzbebA.js","./Https-CsiKqkaT.js","./InfoOutlined-BUn5fKCT.js","./index-C7GDLIo-.js","./api-BdOqJGVs.js","./util-CRUZQ4-B.js","./TextField-sj2mcEXD.js","./Select-CPvSg7uW.js","./InputLabel-BjbeXM2B.js","./LoadingButton-3UN68oPJ.js","./actions-xngcxvp5.js","./index-DdxWI-QG.js","./iframe-BcDoraJg.js","./line-DdSLBn8H.js","./Done-DaMxTX7e.js","./EditIcon-BQGlXOR3.js","./ArrowDropDown-CEsdzzcK.js","./ButtonGroup-CKY0O7tT.js","./getValidReactChildren-B_HEoXEd.js","./index-DC46OSan.js","./ChevronRight-B2YICLYm.js","./index-zUZPbg2I.js","./bundle-avatar-DzcvR6DI.js","./app-avatar-DEqDSBYG.js","./isEqual-DbZp5EUk.js","./Loop-2BGd9rzF.js","./Autocomplete-DcC19-q2.js","./mode-B2dWMeTO.js","./Public-333jCEeA.js","./click-to-copy-CBs5PKxt.js","./index-D81FDm0a.js","./index.esm-Cnicyd3_.js","./Launch-BIqLZtET.js","./Edit-B1ySEana.js","./actions-ByUCXaaH.js","./useLocalStorage-BNvbpN9F.js","./MoreVert-BCR8irtL.js","./index-_NTV4-zc.js","./redux-07bmubSg.js","./switch-control-D1Iqbf5D.js","./Slider-DdynydW3.js","./index-CtWm5SK6.js","./FilterList-DKFhXHd2.js","./LastPage-DXu9ZGZF.js","./Search-5iZBDNjz.js","./index-DPGsh5ca.js","./index-DU3JORH0.css","./config-navigation-Ngw7D7GZ.js","./slicedToArray-BwJA6b7k.js","./index-BgqVsUwi.js","./InputAdornment-DHLm1mFN.js","./index-BPEtPX12.js","./Skeleton-B4-1c0OT.js","./audit-logs-BkgPztEs.js","./index-DycwPjM3.js","./index-D4PP6P2d.css","./Pagination-0NPBd4bk.js","./index-CWilKNfl.js","./index-RlfSCcPa.js","./list-header-BnipX_Rp.js","./Google-D2cPndsH.js","./index-BCPsngBN.js","./index-eGpwmK92.js","./ToggleButtonGroup-BKQ2fKoV.js","./index-BCQQEHyP.js","./ViewList-Cul4OAvz.js","./resource-dialog-Co295aU2.js","./index--Q6KdM7v.js","./service-DNZLEaeT.js","./table-icons-CB9vK-gH.js","./ChevronLeft-DRzRLgnp.js","./DeleteOutline-ClZ-ABF-.js","./memoize-one.esm-BdPwpGay.js","./index-3vcNDYsD.js","./agreement-DBRJClMM.js","./Link-DN_Lz3rV.js","./item-BdJl6I8q.js","./preact.module-B1z5cdvs.js","./DeleteOutline-C-1A8rVu.js","./delete-confirm-Da1BomBl.js","./item-CxkJY_14.css","./index-Bvs8qR9r.js","./Close-D9SKZkJ7.js","./lottie-BYxFXW-g.js","./toUpper-D0HPBfn5.js","./spaces-CGO2dSgv.js","./install-from-url-Cnfp9xqR.js","./Stepper-DpooXZzV.js","./use-blocklet-info-for-connect-did-spaces-YWN8QaVT.js","./Breadcrumbs-f87TWJgq.js","./log-i4SQ4Z0y.js","./download-DHPNYF1S.js","./download-D33dFtt_.css","./runtime-CW-W-Oej.js","./memory-Cu-5WL0k.js","./chart-CQeRS3mZ.js","./traffic-CmQ-j2sa.js","./index-DY9g7uAE.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{q as Te,t as qt,bm as M,r as m,F as V,j as p,J as Ye,Q as te,B as Ze,x as Ht,bn as Kt,M as Ae,A as O,K as ie,bo as Qt,a0 as Be,bp as ce,b as ye,P as Wt,bh as et,bq as P,z as Jt,u as Xt,br as de,N as Yt,bs as Zt,bt as en,bu as Fe,X as Ue,C as Ve,O as tn,bv as nn,m as pe,V as on,n as sn,bw as rn}from"./index-Boqyvc8Q.js";import{T as cn}from"./index-zUZPbg2I.js";import{B as an}from"./url-evaluation-DymLev_N.js";import{D as ln,B as un}from"./actions-ByUCXaaH.js";import{B as fn}from"./app-avatar-DEqDSBYG.js";import{u as R,B as dn,a as pn,T as hn}from"./team-rrZYIohT.js";import{a as mn,b as gn}from"./spaces-CGO2dSgv.js";import{B as yn}from"./Breadcrumbs-f87TWJgq.js";/**
3
- * (c) Iconify
4
- *
5
- * For the full copyright and license information, please view the license.txt or license.gpl.txt
6
- * files at https://github.com/iconify/iconify
7
- *
8
- * Licensed under MIT.
9
- *
10
- * @license MIT
11
- * @version 3.1.1
12
- */const tt=Object.freeze({left:0,top:0,width:16,height:16}),ne=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),K=Object.freeze({...tt,...ne}),be=Object.freeze({...K,body:"",hidden:!1});function bn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function ze(e,t){const n=bn(e,t);for(const o in be)o in ne?o in e&&!(o in n)&&(n[o]=ne[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function vn(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function r(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(s[i]=[c].concat(a))}return s[i]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(r),s}function xn(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let r={};function i(c){r=ze(o[c]||s[c],r)}return i(t),n.forEach(i),ze(e,r)}function nt(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 o=vn(e);for(const s in o){const r=o[s];r&&(t(s,xn(e,s,r)),n.push(s))}return n}const z=/^[a-z0-9]+(-[a-z0-9]+)*$/,F=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),a=s.pop(),l={provider:s.length>0?s[0]:o,prefix:a,name:c};return t&&!Z(l)?null:l}const r=s[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!Z(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:r};return t&&!Z(c,n)?null:c}return null},Z=(e,t)=>e?!!((e.provider===""||e.provider.match(z))&&(t&&e.prefix===""||e.prefix.match(z))&&e.name.match(z)):!1,Sn={provider:"",aliases:{},not_found:{},...tt};function he(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ot(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!he(e,Sn))return null;const n=t.icons;for(const s in n){const r=n[s];if(!s.match(z)||typeof r.body!="string"||!he(r,be))return null}const o=t.aliases||Object.create(null);for(const s in o){const r=o[s],i=r.parent;if(!s.match(z)||typeof i!="string"||!n[i]&&!o[i]||!he(r,be))return null}return t}const oe=Object.create(null);function wn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function T(e,t){const n=oe[e]||(oe[e]=Object.create(null));return n[t]||(n[t]=wn(e,t))}function je(e,t){return ot(t)?nt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function kn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function In(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(oe)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(oe[s]||{})).forEach(i=>{const c=T(s,i);n=n.concat(Object.keys(c.icons).map(a=>(s!==""?"@"+s+":":"")+i+":"+a))})}),n}let q=!1;function Cn(e){return typeof e=="boolean"&&(q=e),q}function Q(e){const t=typeof e=="string"?F(e,!0,q):e;if(t){const n=T(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function st(e,t){const n=F(e,!0,q);if(!n)return!1;const o=T(n.provider,n.prefix);return kn(o,n.name,t)}function rt(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let s=!1;return ot(e)&&(e.prefix="",nt(e,(r,i)=>{i&&st(r,i)&&(s=!0)})),s}const n=e.prefix;if(!Z({provider:t,prefix:n,name:"a"}))return!1;const o=T(t,n);return!!je(o,e)}function En(e){return!!Q(e)}function Pn(e){const t=Q(e);return t?{...K,...t}:null}const it=Object.freeze({width:null,height:null}),ct=Object.freeze({...it,...ne}),_n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Tn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ve(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 o=e.split(_n);if(o===null||!o.length)return e;const s=[];let r=o.shift(),i=Tn.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?s.push(r):s.push(Math.ceil(c*t*n)/n)}else s.push(r);if(r=o.shift(),r===void 0)return s.join("");i=!i}}const An=e=>e==="unset"||e==="undefined"||e==="none";function ae(e,t){const n={...K,...e},o={...ct,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(v=>{const x=[],C=v.hFlip,S=v.vFlip;let w=v.rotate;C?S?w+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):S&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=s.height/2+s.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:k=s.width/2+s.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(s.left!==s.top&&(k=s.left,s.left=s.top,s.top=k),s.width!==s.height&&(k=s.width,s.width=s.height,s.height=k)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=o.width,c=o.height,a=s.width,l=s.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?l:c,u=ve(d,a/l)):(u=i==="auto"?a:i,d=c===null?ve(u,l/a):c==="auto"?l:c);const f={},y=(v,x)=>{An(x)||(f[v]=x.toString())};return y("width",u),y("height",d),f.viewBox=s.left.toString()+" "+s.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:f,body:r}}const Bn=/\sid="(\S+)"/g,jn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let On=0;function at(e,t=jn){const n=[];let o;for(;o=Bn.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(On++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const D={local:!0,session:!0},lt={local:new Set,session:new Set};let Oe=!1;function Dn(e){Oe=e}const $e="iconify2",H="iconify",ut=H+"-count",Ge=H+"-version",ft=36e5,Ln=168;function xe(e,t){try{return e.getItem(t)}catch{}}function De(e,t,n){try{return e.setItem(t,n),!0}catch{}}function qe(e,t){try{e.removeItem(t)}catch{}}function Se(e,t){return De(e,ut,t.toString())}function we(e){return parseInt(xe(e,ut))||0}let X=typeof window>"u"?{}:window;function dt(e){const t=e+"Storage";try{if(X&&X[t]&&typeof X[t].length=="number")return X[t]}catch{}D[e]=!1}function pt(e,t){const n=dt(e);if(!n)return;const o=xe(n,Ge);if(o!==$e){if(o){const c=we(n);for(let a=0;a<c;a++)qe(n,H+a.toString())}De(n,Ge,$e),Se(n,0);return}const s=Math.floor(Date.now()/ft)-Ln,r=c=>{const a=H+c.toString(),l=xe(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}qe(n,a)}};let i=we(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,Se(n,i)):lt[e].add(c))}function ht(){if(!Oe){Dn(!0);for(const e in D)pt(e,t=>{const n=t.data,o=t.provider,s=n.prefix,r=T(o,s);if(!je(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function mt(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ke=Object.create(null);function gt(e,t){ke[e]=t}function Ie(e){return ke[e]||ke[""]}function Le(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 le=Object.create(null),U=["https://api.simplesvg.com","https://api.unisvg.com"],ee=[];for(;U.length>0;)U.length===1||Math.random()>.5?ee.push(U.shift()):ee.push(U.pop());le[""]=Le({resources:["https://api.iconify.design"].concat(ee)});function yt(e,t){const n=Le(t);return n===null?!1:(le[e]=n,!0)}function ue(e){return le[e]}function Mn(){return Object.keys(le)}const Nn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let se=Nn();function Rn(e){se=e}function Fn(){return se}function Un(e,t){const n=ue(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const r=t+".json?icons=";o=n.maxURL-s-n.path.length-r.length}return o}function Vn(e){return e===404}const zn=(e,t,n)=>{const o=[],s=Un(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=s&&l>0&&(o.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),o.push(i),o};function $n(e){if(typeof e=="string"){const t=ue(e);if(t)return t.path}return"/"}const Gn=(e,t,n)=>{if(!se){n("abort",424);return}let o=$n(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});o+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let s=503;se(e+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Vn(i)?"abort":"next",i)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",s)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",s)})},qn={prepare:zn,send:Gn};function Hn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const r=s.provider,i=s.prefix,c=s.name,a=n[r]||(n[r]=Object.create(null)),l=a[i]||(a[i]=T(r,i));let u;c in l.icons?u=t.loaded:i===""||l.missing.has(c)?u=t.missing:u=t.pending;const d={provider:r,prefix:i,name:c};u.push(d)}),t}function bt(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function Kn(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 o=e.provider,s=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==s)return!0;const l=a.name;if(e.icons[l])i.loaded.push({provider:o,prefix:s,name:l});else if(e.missing.has(l))i.missing.push({provider:o,prefix:s,name:l});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||bt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Qn=0;function Wn(e,t,n){const o=Qn++,s=bt.bind(null,n,o);if(!t.pending.length)return s;const r={id:o,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),s}function Jn(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const r=typeof s=="string"?F(s,t,n):s;r&&o.push(r)}),o}var Xn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Yn(e,t,n,o){const s=e.resources.length,r=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const I=Math.floor(Math.random()*g.length);i.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}i=i.concat(g)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let a="pending",l=0,u,d=null,f=[],y=[];typeof o=="function"&&y.push(o);function v(){d&&(clearTimeout(d),d=null)}function x(){a==="pending"&&(a="aborted"),v(),f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function C(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function S(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:f.length,subscribe:C,abort:x}}function w(){a="failed",y.forEach(g=>{g(void 0,u)})}function k(){f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function B(g,I,b){const _=I!=="success";switch(f=f.filter(E=>E!==g),a){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=b,w();return}if(_){u=b,f.length||(i.length?j():w());return}if(v(),k(),!e.random){const E=e.resources.indexOf(g.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",y.forEach(E=>{E(b)})}function j(){if(a!=="pending")return;v();const g=i.shift();if(g===void 0){if(f.length){d=setTimeout(()=>{v(),a==="pending"&&(k(),w())},e.timeout);return}w();return}const I={status:"pending",resource:g,callback:(b,_)=>{B(I,b,_)}};f.push(I),l++,d=setTimeout(j,e.rotate),n(g,t,I.callback)}return setTimeout(j),S}function vt(e){const t={...Xn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,a,l){const u=Yn(t,c,a,(d,f)=>{o(),l&&l(d,f)});return n.push(u),u}function r(c){return n.find(a=>c(a))||null}return{query:s,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function He(){}const me=Object.create(null);function Zn(e){if(!me[e]){const t=ue(e);if(!t)return;const n=vt(t),o={config:t,redundancy:n};me[e]=o}return me[e]}function xt(e,t,n){let o,s;if(typeof e=="string"){const r=Ie(e);if(!r)return n(void 0,424),He;s=r.send;const i=Zn(e);i&&(o=i.redundancy)}else{const r=Le(e);if(r){o=vt(r);const i=e.resources?e.resources[0]:"",c=Ie(i);c&&(s=c.send)}}return!o||!s?(n(void 0,424),He):o.query(t,s,n)().abort}function eo(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)pt(o,s=>{const r=s.data;return s.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function to(e,t){Oe||ht();function n(o){let s;if(!D[o]||!(s=dt(o)))return;const r=lt[o];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=we(s),!Se(s,i+1))return;const c={cached:Math.floor(Date.now()/ft),provider:e.provider,data:t};return De(s,H+i.toString(),JSON.stringify(c))}t.lastModified&&!eo(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ke(){}function no(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Kn(e)}))}function oo(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:o}=e,s=e.iconsToLoad;delete e.iconsToLoad;let r;if(!s||!(r=Ie(n)))return;r.prepare(n,o,s).forEach(c=>{xt(n,c,a=>{if(typeof a!="object")c.icons.forEach(l=>{e.missing.add(l)});else try{const l=je(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),to(e,a)}catch(l){console.error(l)}no(e)})})}))}const so=e=>{const n=T(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Me=(e,t)=>{const n=Jn(e,!0,Cn()),o=Hn(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,Ke)}),()=>{a=!1}}const s=Object.create(null),r=[];let i,c;return o.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===i)return;i=l,c=u,r.push(T(l,u));const d=s[l]||(s[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,f=T(l,u),y=f.pendingIcons||(f.pendingIcons=new Set);y.has(d)||(y.add(d),s[l][u].push(d))}),r.forEach(a=>{const{provider:l,prefix:u}=a;s[l][u].length&&oo(a,s[l][u])}),t?Wn(t,o,r):Ke},ro=e=>new Promise((t,n)=>{const o=typeof e=="string"?F(e,!0):e;if(!o){n(e);return}Me([o||e],s=>{if(s.length&&o){const r=Q(o);if(r){t({...K,...r});return}}n(e)})});function St(e,t){const n={...e};for(const o in t){const s=t[o],r=typeof s;o in it?(s===null||s&&(r==="string"||r==="number"))&&(n[o]=s):r===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const fe={...ct,inline:!1},ge="iconify",Ce="iconify-inline",A="iconifyData"+Date.now();let L=[];function W(e){for(let t=0;t<L.length;t++){const n=L[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function wt(e,t=!1){let n=W(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},L.push(n),n)}function io(){if(document.documentElement)return wt(document.documentElement);L.push({node:()=>document.documentElement})}function co(e){L=L.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function J(){return L}function ao(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let $=null;const lo={childList:!0,subtree:!0,attributes:!0};function kt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,$&&$(e)}))}function uo(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const s=t[o];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[A]!==void 0){n.paused||kt(e);return}}}function It(e,t){e.observer.instance.observe(t,lo)}function re(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(uo.bind(null,e)),It(e,n),t.paused||kt(e))}function Qe(){J().forEach(re)}function Ct(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 fo(e){const t=$!==null;if($!==e&&($=e,t&&J().forEach(Ct)),t){Qe();return}ao(Qe)}function Ee(e){(e?[e]:J()).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 po(e){if(e){const t=W(e);t&&Ee(t)}else Ee()}function Pe(e){(e?[e]:J()).forEach(t=>{if(!t.observer){re(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?It(t,o):re(t);else return}})}function ho(e){if(e){const t=W(e);t&&Pe(t)}else Pe()}function Et(e,t=!1){const n=wt(e,t);return re(n),n}function Pt(e){const t=W(e);t&&(Ct(t),co(e))}function mo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const s in fe)if(n[s]!==o[s])return!0;return!1}function go(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/s,r%1===0?o(r):0)}}return t}const yo=/[\s,]+/;function bo(e,t){t.split(yo).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const vo=["width","height"],xo=["inline","hFlip","vFlip"];function So(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function wo(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&F(t,!0);if(!n)return null;const o={...fe,inline:e.classList&&e.classList.contains(Ce)};vo.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(o[c]=a)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(o.rotate=go(s));const r=e.getAttribute("data-flip");typeof r=="string"&&bo(o,r),xo.forEach(c=>{const a="data-"+c,l=So(e.getAttribute(a),a);typeof l=="boolean"&&(o[c]=l)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const ko="svg."+ge+", i."+ge+", span."+ge+", i."+Ce+", span."+Ce;function Io(e){const t=[];return e.querySelectorAll(ko).forEach(n=>{const o=n[A]||n.tagName.toLowerCase()!=="svg"?wo(n):null;o&&t.push({node:n,props:o})}),t}function _t(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let G;function Co(){try{G=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{G=null}}function Eo(e){return G===void 0&&Co(),G?G.createHTML(e):e}function Tt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function At(e,t,n,o){const s=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{s.add(c)})}const r=[];return t.forEach(i=>{s.contains(i)?n.has(i)&&r.push(i):(s.add(i),r.push(i))}),n.forEach(i=>{t.has(i)||s.remove(i)}),r}function Bt(e,t,n){const o=e.style;(n||[]).forEach(r=>{o.removeProperty(r)});const s=[];for(const r in t)o.getPropertyValue(r)||(s.push(r),o.setProperty(r,t[r]));return s}function jt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const s=t.customisations,r=ae(n,s),i=e[A],c=_t(at(r.body),{"aria-hidden":"true",role:"img",...r.attributes});o.innerHTML=Eo(c);const a=o.childNodes[0],l=e.attributes;for(let v=0;v<l.length;v++){const x=l.item(v),C=x.name;C!=="class"&&!a.hasAttribute(C)&&a.setAttribute(C,x.value)}const u=Tt(t.icon),d=At(a,u,new Set(i&&i.addedClasses),e),f=Bt(a,s.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:d,addedStyles:f};return a[A]=y,e.parentNode&&e.parentNode.replaceChild(a,e),a}function Po(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _o(e){return"data:image/svg+xml,"+Po(e)}function To(e){return'url("'+_o(e)+'")'}const Ao={display:"inline-block"},_e={"background-color":"currentColor"},Ot={"background-color":"transparent"},We={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Je={"-webkit-mask":_e,mask:_e,background:Ot};for(const e in Je){const t=Je[e];for(const n in We)t[e+"-"+n]=We[n]}function Xe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Bo(e,t,n,o){const s=t.customisations,r=ae(n,s),i=r.attributes,c=e[A],a=_t(r.body,{...i,width:n.width+"",height:n.height+""}),l=Tt(t.icon),u=At(e,l,new Set(c&&c.addedClasses)),f={"--svg":To(a),width:Xe(i.width),height:Xe(i.height),...Ao,...o?_e:Ot};s.inline&&(f["vertical-align"]="-0.125em");const y=Bt(e,f,c&&c.addedStyles),v={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[A]=v,e}let Y=!1;function jo(){Y||(Y=!0,setTimeout(()=>{Y&&(Y=!1,N())}))}function N(e,t=!1){const n=Object.create(null);function o(s,r){const{provider:i,prefix:c,name:a}=s,l=T(i,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(r&&!so(s)){const d=n[i]||(n[i]=Object.create(null));(d[c]||(d[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:J()).forEach(s=>{const r=typeof s.node=="function"?s.node():s.node;if(!r||!r.querySelectorAll)return;let i=!1,c=!1;function a(l,u,d){if(c||(c=!0,Ee(s)),l.tagName.toUpperCase()!=="SVG"){const f=u.mode,y=f==="mask"||(f==="bg"?!1:f==="style"?d.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Bo(l,u,{...K,...d},y);return}}jt(l,u,d)}Io(r).forEach(({node:l,props:u})=>{const d=l[A];if(!d){const{status:y,icon:v}=o(u.icon,!0);if(v){a(l,u,v);return}i=i||y==="loading",l[A]={...u,status:y};return}let f;if(mo(d,u)){if(f=o(u.icon,d.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(d,{...u,status:f.status});return}}else{if(d.status!=="loading")return;if(f=o(u.icon,!1),!f.icon){d.status=f.status;return}}a(l,u,f.icon)}),s.temporary&&!i?Pt(r):t&&i?Et(r,!0):c&&s.observer&&Pe(s)});for(const s in n){const r=n[s];for(const i in r){const c=r[i];Me(Array.from(c).map(a=>({provider:s,prefix:i,name:a})),jo)}}}function Oo(e){const t=W(e);t?N(t):N({node:e,temporary:!0},!0)}function Dt(e,t,n=!1){const o=Q(e);if(!o)return null;const s=F(e),r=St(fe,t||{}),i=jt(document.createElement("span"),{name:e,icon:s,customisations:r},o);return n?i.outerHTML:i}function Do(){return"3.1.1"}function Lo(e,t){return Dt(e,t,!1)}function Mo(e,t){return Dt(e,t,!0)}function No(e,t){const n=Q(e);if(!n)return null;const o=St(fe,t||{});return ae(n,o)}function Ro(e){e?Oo(e):N()}if(typeof document<"u"&&typeof window<"u"){io();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(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!rt(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{fo(N),N()})}function Fo(e,t){mt(e,t!==!1)}function Uo(e){mt(e,!0)}gt("",qn);if(typeof document<"u"&&typeof window<"u"){ht();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;yt(n,s)||console.error(o)}catch{console.error(o)}}}}const Vo={getAPIConfig:ue,setAPIModule:gt,sendAPIQuery:xt,setFetch:Rn,getFetch:Fn,listAPIProviders:Mn},zo={_api:Vo,addAPIProvider:yt,loadIcons:Me,loadIcon:ro,iconExists:En,getIcon:Pn,listIcons:In,addIcon:st,addCollection:rt,replaceIDs:at,calculateSize:ve,buildIcon:ae,getVersion:Do,renderSVG:Lo,renderHTML:Mo,renderIcon:No,scan:Ro,observe:Et,stopObserving:Pt,pauseObserver:po,resumeObserver:ho,enableCache:Fo,disableCache:Uo};try{self.Iconify===void 0&&(self.Iconify=zo)}catch{}const $o=e=>{const t={};let n=null;return Qt(e,o=>{t[o.meta.bundleDid]?n=Ae(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},Go=(e,t,n)=>{var r;const{hostname:o,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return s;const a=c[0],u=((((r=t.site)==null?void 0:r.domainAliases)||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(V.DEFAULT_DID_DOMAIN))||"").replace(`.${V.DEFAULT_DID_DOMAIN}`,"");return u?s.replace(o,`${u}-${a}.${V.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function Lt(){const{t:e}=Te(),{api:t}=qt(),{blocklet:n}=R(),{inService:o}=M(),[s,r]=m.useState(!1),[i,c]=m.useState(5),a=n&&n.structVersion!==V.APP_STRUCT_VERSION,l=()=>{try{if(n.status==="running"){O.error(e("blocklet.migrate.tip.running"));return}const f=$o(n);if(f){O.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}r(!0)}catch(f){O.error(ie(f))}},u=()=>{const f=Go(window.location,n,o);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},d=()=>r(!1);return[a&&p.jsxs(Ye,{type:"warning",style:{margin:"12px 0"},children:[p.jsxs(te,{display:"flex",alignItems:"center",children:[p.jsx(Ze,{variant:"contained",size:"small",color:"primary",onClick:()=>l(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>p.jsx(te,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&p.jsx(Ht,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Kt(n,!0),title:Ae(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:d},"connect")]}Lt.propTypes={};async function qo({blockletDid:e,nodeApi:t,spaceGateways:n}){let o=!1;const s=await Promise.all(n.map(async r=>{let{name:i}=r;const c=await mn(r.endpoint);return!Be.isEmpty(c)&&c!==i&&(i=c,o=!0),{...r,name:i}}));return o&&await Promise.all(s.filter(r=>r.did).map(r=>t.updateBlockletSpaceGateway({input:{did:e,where:{did:r.did},spaceGateway:{...r}}}))),s}function Ho({setLoading:e,refresh:t}={}){var a;const{blocklet:n,actions:{refreshBlocklet:o}}=R(),s=(a=n==null?void 0:n.meta)==null?void 0:a.did,[r,i]=m.useState([]),{api:c}=M();return ce(async()=>{try{if(!s){i([]);return}e==null||e(!0);const{spaceGateways:l}=await c.getBlockletSpaceGateways({input:{did:s}}),u=await qo({blockletDid:s,nodeApi:c,spaceGateways:l});i(u??[])}catch(l){console.error(l),O.error(ie(l))}finally{e==null||e(!1)}},[s,o,t]),{spaceGateways:r}}function Mt({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=R(),[o,s]=m.useState([]),{api:r}=M(),i=Be.debounce(async()=>{try{if(t(!0),!n){s([]);return}const{backups:a}=await r.getBlockletBackups({input:{did:n.meta.did}});s(a??[])}catch(a){console.error(a),O.error(ie(a))}finally{t(!1)}},2e3);return ce(async()=>{i()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(e)),{backups:o}}function Ko({appDid:e}){const{backups:t}=Mt(),[n,o]=m.useState({message:"",progress:0,completed:!1}),s=M(),{ws:{useSubscription:r}}=s;return r(ye.BlockletEvents.backupProgress,i=>{e===(i==null?void 0:i.appDid)&&o(()=>({...i}))},[e]),m.useEffect(()=>{var i;if(t!=null&&t.length&&Be.isNull((i=t[0])==null?void 0:i.status)){const[c]=t;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[t]),n}function Qo({deps:e}={deps:[]}){var r;const{blocklet:t}=R(),{api:n}=M(),[o,s]=m.useState(null);return ce(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoBackup:c}=await n.getAutoBackup({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}function Wo({deps:e}={deps:[]}){var r;const{blocklet:t}=R(),{api:n}=M(),[o,s]=m.useState(null);return ce(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoCheckUpdate:c}=await n.getAutoCheckUpdate({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}const Nt=m.createContext({}),{Provider:Jo,Consumer:Ss}=Nt;function Ne({children:e}){const{t}=Te(),{api:n}=M(),{blocklet:o}=R(),[s,r]=m.useState(!1),[i,c]=m.useState(!1),{spaceGateways:a}=Ho({refresh:i,setLoading:r}),l=Ko({appDid:o==null?void 0:o.appDid}),[u,d]=m.useState(!1),f=m.useMemo(()=>gn(o==null?void 0:o.environments),[o,i,u]),[y,v]=m.useState(!1),{backups:x}=Mt({deps:[l],setLoading:v}),[C,S]=m.useState(a==null?void 0:a.find(h=>h.endpoint===f)),[w,k]=m.useState(!1),B=Qo({deps:[w]}),[j,g]=m.useState(!1),I=Wo({deps:[j]}),b=()=>{c(h=>!h)},_=()=>{d(h=>!h)},E=()=>{k(h=>!h)},Rt=()=>{g(h=>!h)},Ft=async(h,Re)=>{a.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:h}}),f!==Re&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:ye.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Re}]}}),b(),S(h)},Ut=async h=>{h&&(await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),b(),S(h))},Vt=async h=>{await n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:h.did},spaceGateway:h}}),f!==h.endpoint&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:ye.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),O.success(t("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),b()},zt=h=>(h==null?void 0:h.endpoint)===f,$t=async h=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:h}}),E()},Gt=async h=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:h}}),Rt()};return p.jsx(Jo,{value:{spaceGateways:a,selectedSpaceGateway:C,addSpaceGateway:Ft,deleteSpaceGateway:Ut,updateSpaceGateway:Vt,refreshSpaceGateways:b,spaceGatewaysLoading:s,spaceGatewayIsSelected:zt,updateAutoBackup:$t,updateAutoCheckUpdate:Gt,autoCheckUpdate:I,backupEndpoint:f,backupProgress:l,backups:x,backupsLoading:y,refreshBackupEndpoint:_,autoBackup:B},children:e})}Ne.propTypes={children:Wt.any.isRequired};Ne.defaultProps={};function ws(){return m.useContext(Nt)}const Xo=m.lazy(()=>P(()=>import("./overview-CnuzNSfm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)),Yo=m.lazy(()=>P(()=>import("./index-DdxWI-QG.js"),__vite__mapDeps([21,1,2,22,23,24,25,26,27,28,16,17,18,29,30,31,6,32,33,34,35,36,37,38,4,39,40,10,41,42,43,44,45,46,5,7,47,48,49,50,51,52,53,54,3,55,56]),import.meta.url)),Zo=m.lazy(()=>P(()=>import("./config-navigation-Ngw7D7GZ.js"),__vite__mapDeps([57,1,2,47,48,58,34,44,45,46,6,27,28,5,7,41,59,17,18,16,31,4,60,36,61,33,62,19]),import.meta.url)),es=m.lazy(()=>P(()=>import("./audit-logs-BkgPztEs.js"),__vite__mapDeps([63,1,2,64,65,10,45,17,18,66,53]),import.meta.url)),ts=m.lazy(()=>P(()=>import("./index-CWilKNfl.js"),__vite__mapDeps([67,1,2,8,68,27,28,25,9,69,54,16,17,18,4,70,10,71,34,72,60,73]),import.meta.url)),ns=m.lazy(()=>P(()=>import("./index-BCQQEHyP.js").then(e=>e.i),__vite__mapDeps([74,1,2,29,8,35,75,69,54,16,17,18,51,52,6,53,47,48,10,46,61,76,77,31,40,7,4,39,3,20]),import.meta.url)),os=m.lazy(()=>P(()=>import("./service-DNZLEaeT.js"),__vite__mapDeps([78,1,2,79,52,17,6,18,16,53,58,54,44,45,46,27,28,5,7,80,43,30,81,48,62,60,31,82,8,26]),import.meta.url)),ss=m.lazy(()=>P(()=>import("./index-3vcNDYsD.js"),__vite__mapDeps([83,1,2,8,23,24,25,26,27,28,16,17,18,29,84,64,65,10,44,45,46,6,5,7,49,40,43,31,79,52,53,58,54,80,30,81,48,62,60,82,39,85,86,72,87,42,88,89,90,91,92,93,94,4,95,14,70,96,3,97,15,12,98,77,68,9,32,20,33,99]),import.meta.url)),rs=m.lazy(()=>P(()=>import("./log-i4SQ4Z0y.js"),__vite__mapDeps([100,1,2,45,101,27,28,17,102]),import.meta.url)),is=m.lazy(()=>P(()=>import("./runtime-CW-W-Oej.js"),__vite__mapDeps([103,1,2,51,52,17,6,18,16,53,47,48,54,10,46,4,104,105,32]),import.meta.url)),cs=m.lazy(()=>P(()=>import("./traffic-CmQ-j2sa.js"),__vite__mapDeps([106,1,2,22,80,30,17,105,16,18,60]),import.meta.url)),as=m.lazy(()=>P(()=>import("./index-DY9g7uAE.js"),__vite__mapDeps([107,1,2,4,68,27,28,14,98,77,95,16,17,18,3,49,40,46,88,81,37,51,52,6,53,47,48,54,10,31,5,7,44,45,33,99]),import.meta.url)),ls=({children:e})=>e;function us(){var g,I;const e=Jt(),{tab:t="overview"}=et(),{did:n,blocklet:o,error:s,client:r,actions:{setBlocklet:i,refreshBlocklet:c}}=pn(),{refresh:a}=Xt(),{t:l}=Te(),u=m.useCallback(()=>p.jsx(es,{scope:n}),[n]),d=((g=o==null?void 0:o.environments.find(b=>b.key==="BLOCKLET_APP_URL"))==null?void 0:g.value)||window.location.origin,f=b=>rn(b,d),y=b=>{e(`/blocklets/${n}/${b}`)},v=b=>{b&&i(b),c()},x=!o||de(o.status)?[]:Yt(o);let C=null;const S=[{label:l("common.overview"),value:"overview"},{breadcrumbsLabel:l("common.components"),label:p.jsx(Zt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!x.length,children:l("common.components")}),value:"components"}];if(s)C=p.jsxs(p.Fragment,{children:[p.jsx(Ye,{type:"error",variant:"icon",children:ie(s)}),p.jsx(Ze,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:l("common.retry")})})]});else if(o){const b={overview:p.jsx(Xo,{}),configuration:Yo,navigation:Zo,services:os,members:p.jsx(ns,{type:"blocklet",createPassportSvg:f}),passports:ts,components:ss,"audit-logs":u,logs:rs,runtime:p.jsx(is,{}),traffic:p.jsx(cs,{client:r,did:n}),storage:p.jsx(as,{})};t==="configuration"&&de(o.status)&&y("overview"),de(o.status)||(S.push({label:l("common.members"),value:"members"}),S.push({label:l("common.passport"),value:"passports"}),S.push({label:l("common.configuration"),value:"configuration"})),S.push({label:l("common.auditLogs"),value:"audit-logs"}),o&&((I=o.children)!=null&&I.length)&&o.structVersion===V.APP_STRUCT_VERSION&&S.push({label:l("common.logs"),value:"logs"}),S.push({label:l("common.configNavigation"),value:"navigation"}),S.push({label:l("common.runtime"),value:"runtime"}),S.push({label:l("common.traffic"),value:"traffic"}),S.push({label:l("common.storage"),value:"storage"}),en(o).length&&S.splice(2,0,{label:l("blocklet.services"),value:"services"});const E=b[t]||b.overview;C=p.jsxs(ln,{type:"components",children:[!Fe(o)&&p.jsx(cn,{tabs:S,current:t,onChange:y,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(m.Suspense,{fallback:p.jsx(Ue,{relative:"parent",children:p.jsx(Ve,{})}),children:m.isValidElement(E)?E:p.jsx(E,{blocklet:o,onUpdate:v,createPassportSvg:f})})})]})}else C=p.jsx(Ue,{relative:"parent",children:p.jsx(Ve,{})});const w=()=>{},k=({action:b,error:_})=>{if(_){O.error(_.message);return}b==="remove"?(a(),e("/blocklets")):c()},B=S.find(b=>b.value===t),j=o?hn:ls;return p.jsx(j,{teamDid:n,children:p.jsxs(ds,{children:[p.jsxs(yn,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(tn,{color:"textSecondary",to:"/blocklets",children:l("common.blocklets")}),p.jsx(nn,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:l("common.detail")}),p.jsx(pe,{color:"textSecondary",children:B?B.breadcrumbsLabel||B.label:""})]}),p.jsxs(pe,{component:"div",className:"page-header",children:[p.jsxs(pe,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(fn,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(te,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(te,{children:Ae(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(an,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${l("common.blocklet")} ${l("common.detail")}`]}),p.jsx(on,{permission:"mutate_blocklets",children:!!o&&!Fe(o)&&p.jsx(un,{className:"page-actions",blocklet:o,onStart:w,onComplete:k,variant:"group"})})]}),p.jsx(Lt,{}),C]})})}function fs(){const{did:e}=et();return e?p.jsx(dn,{did:e,children:p.jsx(Ne,{children:p.jsx(us,{})})}):null}const ds=sn.main`
13
- .page-header {
14
- display: flex;
15
- justify-content: space-between;
16
- align-items: center;
17
- flex-wrap: wrap;
18
- gap: 16px;
19
- }
20
-
21
- .page-title {
22
- display: flex;
23
- align-items: center;
24
-
25
- .page-link {
26
- font-size: 15px;
27
- margin-top: 8px;
28
- margin-left: 8px;
29
- }
30
- }
31
-
32
- .page-content {
33
- margin-top: 16px;
34
- }
35
-
36
- @media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
37
- .page-header {
38
- flex-direction: column;
39
- align-items: flex-start;
40
- .page-actions,
41
- .MuiButtonGroup-root {
42
- width: 100%;
43
- }
44
- .MuiButtonGroup-root {
45
- .MuiButtonBase-root {
46
- flex: 1;
47
- }
48
- .blocklet-action-text {
49
- display: none;
50
- }
51
- }
52
- }
53
-
54
- .page-title {
55
- margin-bottom: 15px;
56
- }
57
- }
58
- `,ks=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"}));export{ks as d,ws as u};
@@ -1 +0,0 @@
1
- import{r}from"./index-Boqyvc8Q.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};