@abtnode/webapp 1.16.29-beta-87e06e1c → 1.16.29-beta-112566d5

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 (188) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-9p89cr51.js → Add-LTC9ZPHh.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-PUGycbah.js → ArrowDropDown-B9TabCUQ.js} +1 -1
  5. package/dist/assets/{Autocomplete-CBrNN6Wi.js → Autocomplete-DA6il_1i.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-YbVhGF74.js → Breadcrumbs-Ch6zvYxu.js} +1 -1
  7. package/dist/assets/{ButtonGroup-qjpoNO9j.js → ButtonGroup-reI4zw37.js} +1 -1
  8. package/dist/assets/{CheckCircle-C458wd7t.js → CheckCircle-ColTEZil.js} +1 -1
  9. package/dist/assets/{ChevronLeft-Bvm6nyLn.js → ChevronLeft-n-Lu674N.js} +1 -1
  10. package/dist/assets/{ChevronRight-pbRslwzZ.js → ChevronRight-BQAiuHlI.js} +1 -1
  11. package/dist/assets/{Close-CRs5nN-9.js → Close-BHCZ0Bw1.js} +1 -1
  12. package/dist/assets/Delete-CUte0jEQ.js +1 -0
  13. package/dist/assets/DeleteOutline-Aff6fJia.js +1 -0
  14. package/dist/assets/{Done-DycYtcxi.js → Done-Z8bUrs-4.js} +1 -1
  15. package/dist/assets/{Edit-CWojktHH.js → Edit-CAjWk028.js} +1 -1
  16. package/dist/assets/{EditIcon-ugJwCH0S.js → EditIcon-5cOXjWt1.js} +1 -1
  17. package/dist/assets/ExpandMore-D_XvdPjT.js +1 -0
  18. package/dist/assets/{FilterList-Cv0uknPg.js → FilterList-BY5T-hLB.js} +4 -4
  19. package/dist/assets/{Google-Bpr-eboG.js → Google-8ss7z7oB.js} +1 -1
  20. package/dist/assets/{Https-DEV-Mw3j.js → Https-CRlx_3vN.js} +1 -1
  21. package/dist/assets/{InputAdornment-GAXpW_Pc.js → InputAdornment-C1r6p7SP.js} +1 -1
  22. package/dist/assets/{InputLabel-CdP2Vrv8.js → InputLabel-CExB3j6D.js} +1 -1
  23. package/dist/assets/{LastPage-BTLBin5_.js → LastPage-BlukH42P.js} +1 -1
  24. package/dist/assets/{Launch-C4_ktc4w.js → Launch-yLPtDPJO.js} +1 -1
  25. package/dist/assets/{Link-DbSs28Vg.js → Link-CYdb8X6z.js} +1 -1
  26. package/dist/assets/{LoadingButton-DXivgZhE.js → LoadingButton-Cgv6BHxA.js} +1 -1
  27. package/dist/assets/{LockIcon-QS29DL1o.js → LockIcon-BrZi13Aj.js} +1 -1
  28. package/dist/assets/{Loop-Dpp5fctN.js → Loop-BZATCgNU.js} +1 -1
  29. package/dist/assets/{MoreVert-YMJ5zQGi.js → MoreVert-NYc6koTI.js} +1 -1
  30. package/dist/assets/{Pagination-Dw5SQ0Cx.js → Pagination-Bpr_MZG3.js} +1 -1
  31. package/dist/assets/{Public-DuGVgRc8.js → Public-DJVLXFlr.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-CuLNjPJp.js → SchemaReference.es-CjPEyQC-.js} +1 -1
  33. package/dist/assets/{Search-CnmiZ7r5.js → Search-Dz7VM7PV.js} +1 -1
  34. package/dist/assets/{Select-D_jjFrx2.js → Select-Bmr7GD2T.js} +2 -2
  35. package/dist/assets/{Skeleton-DMU-9YHS.js → Skeleton-OnJKCtYu.js} +5 -5
  36. package/dist/assets/{Slider-OEZKoU_q.js → Slider-CGhiUOe5.js} +1 -1
  37. package/dist/assets/{Stepper-BLioo72i.js → Stepper-CpM3LrYF.js} +1 -1
  38. package/dist/assets/{TextField-udFGOQyD.js → TextField-BtpuNQ33.js} +1 -1
  39. package/dist/assets/{ToggleButtonGroup-DOF-aia7.js → ToggleButtonGroup-BoN6aVCj.js} +1 -1
  40. package/dist/assets/{ViewList-e_g9Zmbu.js → ViewList-Cw1uswUG.js} +1 -1
  41. package/dist/assets/{actions-BWX_qXJD.js → actions-634dtGmR.js} +1 -1
  42. package/dist/assets/actions-DGOwZ57C.js +1 -0
  43. package/dist/assets/{agreement-CvcGSLJB.js → agreement-C6HTWVte.js} +6 -6
  44. package/dist/assets/api-Bo8RrpVh.js +1 -0
  45. package/dist/assets/app-avatar-B_rQHqOY.js +1 -0
  46. package/dist/assets/{audit-logs-DPElXT2k.js → audit-logs-BzdTb6u7.js} +1 -1
  47. package/dist/assets/blocklet-CtCpIFeQ.js +1 -0
  48. package/dist/assets/{brace-fold.es-CXHeYjf1.js → brace-fold.es-D_r4-J2g.js} +1 -1
  49. package/dist/assets/{bundle-avatar-DEQzPsHD.js → bundle-avatar-Ci6-oNkL.js} +1 -1
  50. package/dist/assets/{chart-B4W7fRqI.js → chart-D7fTlbH5.js} +1 -1
  51. package/dist/assets/{click-to-copy-6L_LfYIl.js → click-to-copy-BwIQhcuz.js} +1 -1
  52. package/dist/assets/{closebrackets.es-ZZ8LeVnj.js → closebrackets.es-BpVvbcYW.js} +1 -1
  53. package/dist/assets/{codemirror.es-CF4ao-W3.js → codemirror.es-BvooWNLt.js} +1 -1
  54. package/dist/assets/{comment.es-DQ_cLmdb.js → comment.es-BiPY7IRp.js} +1 -1
  55. package/dist/assets/{config-navigation-CkEBHj2r.js → config-navigation-eG4f_Oyq.js} +2 -2
  56. package/dist/assets/{delete-confirm-BN8gy06y.js → delete-confirm-I7gjtI2L.js} +1 -1
  57. package/dist/assets/detail-BF4hjmdI.js +58 -0
  58. package/dist/assets/{dialog.es-DExnqR6t.js → dialog.es-B2-FUZME.js} +1 -1
  59. package/dist/assets/{download-DKskcy43.js → download-rpw9Qgoj.js} +1 -1
  60. package/dist/assets/{foldgutter.es-BRAMSNxp.js → foldgutter.es-8iFRTP0a.js} +1 -1
  61. package/dist/assets/getValidReactChildren-9TX6zfai.js +1 -0
  62. package/dist/assets/{hint.es-6G79xByO.js → hint.es-CHvxg9mK.js} +1 -1
  63. package/dist/assets/{hint.es2-Baw04wRx.js → hint.es2-hI3iweAO.js} +1 -1
  64. package/dist/assets/{iframe-CpnjA8zm.js → iframe-BqS-rkNh.js} +1 -1
  65. package/dist/assets/{index-D3_95_AQ.js → index--nbglgQ3.js} +1 -1
  66. package/dist/assets/{index-DVd2dq8l.js → index-B03uYmVa.js} +1 -1
  67. package/dist/assets/index-B3KTzQCX.js +21 -0
  68. package/dist/assets/{index-B2cmqIK_.js → index-B46J_78A.js} +1 -1
  69. package/dist/assets/{index-D0y4Peo7.js → index-BAQzBJFH.js} +4 -4
  70. package/dist/assets/{index-DM-kSqOV.js → index-BIBIrwyW.js} +1 -1
  71. package/dist/assets/index-BJ5g3x0B.js +1 -0
  72. package/dist/assets/{index-C3f4JgKQ.js → index-BMAflILV.js} +12 -12
  73. package/dist/assets/{index-Bj-A_LO-.js → index-BNcA--Hd.js} +1 -1
  74. package/dist/assets/{index-XomN73iI.js → index-BOmHLMq9.js} +1 -1
  75. package/dist/assets/index-BahC2Tvl.js +1 -0
  76. package/dist/assets/{index-DQvie1Xo.js → index-Binus2lr.js} +1 -1
  77. package/dist/assets/{index-COF37GzL.js → index-BkAFfbQ9.js} +1 -1
  78. package/dist/assets/{index-DcAqvRRT.js → index-BqAzzrC8.js} +1 -1
  79. package/dist/assets/index-C1sxwK1q.js +2493 -0
  80. package/dist/assets/{index-OpPbc3XM.js → index-C3DKd4Ro.js} +17 -17
  81. package/dist/assets/index-C8ojF8vN.js +1 -0
  82. package/dist/assets/{index-Dylb0qYR.js → index-CD_6QFg_.js} +1 -1
  83. package/dist/assets/{index-B6T71Xra.js → index-CKd5FqHo.js} +1 -1
  84. package/dist/assets/{index-Dz1ahtjo.js → index-CUmTKs9Z.js} +10 -10
  85. package/dist/assets/{index-CJBXTfA_.js → index-CX7wbZNb.js} +32 -32
  86. package/dist/assets/{index-BBsadaJh.js → index-C_7vG059.js} +4 -4
  87. package/dist/assets/{index-DgFCpT_-.js → index-Ca4ojQR0.js} +5 -5
  88. package/dist/assets/{index-aeB_hGnn.js → index-CblMKkQZ.js} +1 -1
  89. package/dist/assets/{index-I6_9XQww.js → index-CiOtSWYB.js} +1 -1
  90. package/dist/assets/{index-2gGHhy3B.js → index-CpP8o0B-.js} +1 -1
  91. package/dist/assets/{index-BWxquNjq.js → index-CroucXQb.js} +1 -1
  92. package/dist/assets/index-CvBzQQ4d.js +278 -0
  93. package/dist/assets/{index-DTCh76Oq.js → index-CzSKzhki.js} +16 -15
  94. package/dist/assets/{index-WT4dVA5f.js → index-D-L4Ck2v.js} +1 -1
  95. package/dist/assets/{index-DH_YItOr.js → index-D5Rsk7dq.js} +1 -1
  96. package/dist/assets/{index-D0qCsQ_X.js → index-D5dR4ANx.js} +1 -1
  97. package/dist/assets/{index-DDVZbDc5.js → index-DHoU0zZM.js} +7 -7
  98. package/dist/assets/{index-DOvGlVxX.js → index-DKQUFPxk.js} +5 -5
  99. package/dist/assets/{index-brs4Ovtr.js → index-DkiVDcrH.js} +1 -1
  100. package/dist/assets/{index-CB51-nwP.js → index-Dn-_3zh6.js} +1 -1
  101. package/dist/assets/index-Dp_bcKBe.js +1 -0
  102. package/dist/assets/index-Dv4oZdvT.js +54 -0
  103. package/dist/assets/index-Dww51D0I.js +16 -0
  104. package/dist/assets/{index-CS1P34PK.js → index-G-HOuVIA.js} +1 -1
  105. package/dist/assets/{index-CIsUZHl3.js → index-KlCiTQS2.js} +3 -3
  106. package/dist/assets/index-PpzEIdrF.js +1 -0
  107. package/dist/assets/{index-DYG5Tovq.js → index-i7GCH6dr.js} +1 -1
  108. package/dist/assets/{index-mFd06l0F.js → index-iGKrAz05.js} +1 -1
  109. package/dist/assets/{index.es-D1k5M1E2.js → index.es-DYaTMj-N.js} +1 -1
  110. package/dist/assets/{index.esm-NzqlBaFf.js → index.esm-Bm9YBLeo.js} +1 -1
  111. package/dist/assets/{info-addon.es-D28Gve7b.js → info-addon.es-Do7YC0D2.js} +1 -1
  112. package/dist/assets/{info.es-BHx5fgaf.js → info.es-CFNCQt9o.js} +1 -1
  113. package/dist/assets/{install-from-url-D913MaCZ.js → install-from-url-BjHwxVqE.js} +1 -1
  114. package/dist/assets/{invitation-DSwZ-Xej.js → invitation-CeRy7vzg.js} +6 -6
  115. package/dist/assets/{is-path-prefix-equal-ufTBNRSJ.js → is-path-prefix-equal-CQJCYqAH.js} +1 -1
  116. package/dist/assets/isEqual-BsT1dZPE.js +1 -0
  117. package/dist/assets/{item-B7ZSMqn6.js → item-ERkcgOMO.js} +26 -26
  118. package/dist/assets/{javascript.es-WSUko8sV.js → javascript.es-CpC9TJXL.js} +1 -1
  119. package/dist/assets/{jump-to-line.es-CcgyMzYU.js → jump-to-line.es-CylECZ7R.js} +1 -1
  120. package/dist/assets/{jump.es-dMMEnQpp.js → jump.es-DLrluqHg.js} +1 -1
  121. package/dist/assets/{line-VZzxMXH1.js → line-C_2Hrpy1.js} +4 -4
  122. package/dist/assets/{lint.es-BJtFL-R1.js → lint.es-BKML4shq.js} +1 -1
  123. package/dist/assets/{lint.es2-8JV00Yve.js → lint.es2-BF1HKCYF.js} +1 -1
  124. package/dist/assets/{lint.es3-1yXUm-RP.js → lint.es3-C2QSNF0z.js} +1 -1
  125. package/dist/assets/{list-header-DwVsFEjc.js → list-header-QjKUcFTw.js} +1 -1
  126. package/dist/assets/{log-BpKaLgPW.js → log-CJHqgb2_.js} +1 -1
  127. package/dist/assets/{lottie-O2tV-OjZ.js → lottie-D3czc7v1.js} +1 -1
  128. package/dist/assets/{matchbrackets.es-rEntxSn4.js → matchbrackets.es-e9aBYOv_.js} +1 -1
  129. package/dist/assets/{memory-GChDLCy_.js → memory-CsXj8UaO.js} +1 -1
  130. package/dist/assets/{mode.es-BR84FRL3.js → mode.es-5cZhDtkZ.js} +1 -1
  131. package/dist/assets/{mode.es2-C9o9JxCy.js → mode.es2-CodDnKLI.js} +1 -1
  132. package/dist/assets/{mode.es3-hEzwa8oI.js → mode.es3-BuILqhlX.js} +1 -1
  133. package/dist/assets/{onlineParser.es-bjnhX9oL.js → onlineParser.es-C6-JEN2E.js} +1 -1
  134. package/dist/assets/overview-DAw_INYh.js +26 -0
  135. package/dist/assets/{react-D74HYKcx.js → react-BzW-kb6J.js} +3 -3
  136. package/dist/assets/{redux-AeaWrwCk.js → redux-JVkClYgC.js} +1 -1
  137. package/dist/assets/{resource-dialog-RnJtI7_o.js → resource-dialog-D78t25J3.js} +1 -1
  138. package/dist/assets/{runtime-DfYA5FiE.js → runtime-W4J04CkM.js} +1 -1
  139. package/dist/assets/{search.es-BxNdUYNg.js → search.es-bB_x3JL4.js} +1 -1
  140. package/dist/assets/{searchcursor.es-s8a8A3Ii.js → searchcursor.es-DgL4C9GF.js} +1 -1
  141. package/dist/assets/service-UeJj__8r.js +1 -0
  142. package/dist/assets/{shorten-label-pU8ae-Oh.js → shorten-label-9iEtol8i.js} +1 -1
  143. package/dist/assets/{show-hint.es-B1JGf57k.js → show-hint.es-CTIxfu4n.js} +1 -1
  144. package/dist/assets/{slicedToArray-C1UbO-hj.js → slicedToArray-C-KIkXYs.js} +1 -1
  145. package/dist/assets/{spaces-2O-5X4yt.js → spaces-BDlrJxSc.js} +1 -1
  146. package/dist/assets/{sublime.es-CiN5FIO2.js → sublime.es-BIpvOaG_.js} +1 -1
  147. package/dist/assets/{switch-control-Dh1twa_3.js → switch-control-BiRMcVKp.js} +1 -1
  148. package/dist/assets/{table-icons-BmuX7Xai.js → table-icons-Bx8jlz8p.js} +2 -2
  149. package/dist/assets/{tag-BgAeiRXM.js → tag-BsLtzNgc.js} +1 -1
  150. package/dist/assets/{team-DGUd51ZP.js → team-Ct35NqwR.js} +1 -1
  151. package/dist/assets/{toUpper-BSJ4Soan.js → toUpper-DV-JI2EJ.js} +1 -1
  152. package/dist/assets/{traffic-BEhPBbjp.js → traffic-BEKDCWfv.js} +6 -6
  153. package/dist/assets/{url-evaluation-Cw18Tjx5.js → url-evaluation-Ctc4DSd9.js} +4 -4
  154. package/dist/assets/{url-join-Di_BFQmE.js → url-join-4YCGlq9R.js} +1 -1
  155. package/dist/assets/use-blocklet-info-for-connect-did-spaces-B1om2dOQ.js +1 -0
  156. package/dist/assets/{useLocalStorage-FbxxP1zi.js → useLocalStorage-02uWRCTE.js} +1 -1
  157. package/dist/assets/{util-DWgJMgY9.js → util-Bl1tgqEu.js} +1 -1
  158. package/dist/assets/{wait-container-D5DZGw_l.js → wait-container-CUarPEd7.js} +1 -1
  159. package/dist/assets/withStyles-mwdAF397.js +1 -0
  160. package/dist/assets/{wrap-locale-CDqxNJXh.js → wrap-locale-DDhOh8hH.js} +1 -1
  161. package/dist/index.html +1 -1
  162. package/dist/service-worker.js +1 -1
  163. package/package.json +1 -1
  164. package/dist/assets/Delete-BTd8aIqu.js +0 -1
  165. package/dist/assets/DeleteOutline-CT39B0th.js +0 -1
  166. package/dist/assets/DeleteOutline-DkbzMi-O.js +0 -1
  167. package/dist/assets/actions-e3525553.js +0 -1
  168. package/dist/assets/api-DeLIbQas.js +0 -1
  169. package/dist/assets/app-avatar-CFWpqff1.js +0 -1
  170. package/dist/assets/blocklet-BBUrtnew.js +0 -1
  171. package/dist/assets/detail-CP83_tPj.js +0 -58
  172. package/dist/assets/getValidReactChildren-DItgry09.js +0 -1
  173. package/dist/assets/index-BIJwoRQp.js +0 -1
  174. package/dist/assets/index-BdNyli-L.js +0 -16
  175. package/dist/assets/index-CBhH59N7.js +0 -2
  176. package/dist/assets/index-CIh5WVdy.js +0 -54
  177. package/dist/assets/index-Ca8SBrNy.js +0 -1
  178. package/dist/assets/index-Cse3dDDG.js +0 -21
  179. package/dist/assets/index-DT3eBYfa.js +0 -1
  180. package/dist/assets/index-DTt6OFJv.js +0 -1
  181. package/dist/assets/index-DW_sEbOX.js +0 -2491
  182. package/dist/assets/index-DwL4aLvY.js +0 -278
  183. package/dist/assets/index-KGG0_6hI.js +0 -1
  184. package/dist/assets/isEqual-vbSrcyPi.js +0 -1
  185. package/dist/assets/overview-y9hXmNWR.js +0 -23
  186. package/dist/assets/service-CFkt34Sc.js +0 -1
  187. package/dist/assets/use-blocklet-info-for-connect-did-spaces-CgjVAwmg.js +0 -1
  188. package/dist/assets/withStyles-D9qnQfcC.js +0 -1
@@ -1,58 +0,0 @@
1
- const __vite__fileDeps=["./overview-y9hXmNWR.js","./index-DW_sEbOX.js","./index-D7K8de1w.css","./keyboard-arrow-down-rounded-DadBVmpO.js","./index-DH_YItOr.js","./blocklet-BBUrtnew.js","./url-evaluation-Cw18Tjx5.js","./Delete-BTd8aIqu.js","./tag-BgAeiRXM.js","./Add-9p89cr51.js","./index-DTt6OFJv.js","./LockIcon-QS29DL1o.js","./index-DYG5Tovq.js","./Https-DEV-Mw3j.js","./is-path-prefix-equal-ufTBNRSJ.js","./index-aeB_hGnn.js","./api-DeLIbQas.js","./util-DWgJMgY9.js","./TextField-udFGOQyD.js","./Select-D_jjFrx2.js","./InputLabel-CdP2Vrv8.js","./LoadingButton-DXivgZhE.js","./actions-e3525553.js","./index-DOvGlVxX.js","./iframe-CpnjA8zm.js","./line-VZzxMXH1.js","./Done-DycYtcxi.js","./EditIcon-ugJwCH0S.js","./ArrowDropDown-PUGycbah.js","./ButtonGroup-qjpoNO9j.js","./getValidReactChildren-DItgry09.js","./index-BWxquNjq.js","./ChevronRight-pbRslwzZ.js","./index-DcAqvRRT.js","./bundle-avatar-DEQzPsHD.js","./app-avatar-CFWpqff1.js","./isEqual-vbSrcyPi.js","./Loop-Dpp5fctN.js","./Autocomplete-CBrNN6Wi.js","./mode-B2dWMeTO.js","./Public-DuGVgRc8.js","./click-to-copy-6L_LfYIl.js","./team-DGUd51ZP.js","./index-BIJwoRQp.js","./index.esm-NzqlBaFf.js","./Launch-C4_ktc4w.js","./Edit-CWojktHH.js","./actions-BWX_qXJD.js","./useLocalStorage-FbxxP1zi.js","./MoreVert-YMJ5zQGi.js","./index-COF37GzL.js","./redux-AeaWrwCk.js","./switch-control-Dh1twa_3.js","./Slider-OEZKoU_q.js","./index-CB51-nwP.js","./FilterList-Cv0uknPg.js","./LastPage-BTLBin5_.js","./Search-CnmiZ7r5.js","./index-KGG0_6hI.js","./index-DU3JORH0.css","./config-navigation-CkEBHj2r.js","./slicedToArray-C1UbO-hj.js","./index-Dylb0qYR.js","./index-DT3eBYfa.js","./InputAdornment-GAXpW_Pc.js","./index-DwL4aLvY.js","./Skeleton-DMU-9YHS.js","./audit-logs-DPElXT2k.js","./index-WT4dVA5f.js","./index-D4PP6P2d.css","./Pagination-Dw5SQ0Cx.js","./index-DDVZbDc5.js","./index-BdNyli-L.js","./list-header-DwVsFEjc.js","./Google-Bpr-eboG.js","./index-CBhH59N7.js","./index-BBsadaJh.js","./index-ZG7jWpak.js","./ToggleButtonGroup-DOF-aia7.js","./index-CJBXTfA_.js","./ViewList-e_g9Zmbu.js","./resource-dialog-RnJtI7_o.js","./index-2gGHhy3B.js","./shorten-label-pU8ae-Oh.js","./service-CFkt34Sc.js","./table-icons-BmuX7Xai.js","./ChevronLeft-Bvm6nyLn.js","./DeleteOutline-DkbzMi-O.js","./memoize-one.esm-BdPwpGay.js","./index-DTCh76Oq.js","./agreement-CvcGSLJB.js","./url-join-Di_BFQmE.js","./Link-DbSs28Vg.js","./item-B7ZSMqn6.js","./preact.module-B1z5cdvs.js","./DeleteOutline-CT39B0th.js","./delete-confirm-BN8gy06y.js","./item-CxkJY_14.css","./index-Bj-A_LO-.js","./Close-CRs5nN-9.js","./lottie-O2tV-OjZ.js","./toUpper-BSJ4Soan.js","./spaces-2O-5X4yt.js","./install-from-url-D913MaCZ.js","./Stepper-BLioo72i.js","./use-blocklet-info-for-connect-did-spaces-CgjVAwmg.js","./Breadcrumbs-YbVhGF74.js","./log-BpKaLgPW.js","./download-DKskcy43.js","./download-D33dFtt_.css","./runtime-DfYA5FiE.js","./memory-GChDLCy_.js","./chart-B4W7fRqI.js","./traffic-BEhPBbjp.js","./index-CIh5WVdy.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{q as Ae,t as Gt,bn as M,r as m,F as z,j as p,J as Ye,O as ne,B as Xe,x as qt,bo as Ht,M as A,A as D,K as ce,$ as Be,aP as ae,b as be,P as Kt,bi as Ze,bp as P,z as Qt,u as Wt,bq as pe,br as Jt,V as Fe,C as Ue,N as Yt,bs as Xt,m as he,U as Zt,n as en,bt as tn}from"./index-DW_sEbOX.js";import{T as nn}from"./index-DcAqvRRT.js";import{B as on}from"./url-evaluation-Cw18Tjx5.js";import{D as sn,B as rn}from"./actions-BWX_qXJD.js";import{B as cn}from"./app-avatar-CFWpqff1.js";import{u as F}from"./blocklet-BBUrtnew.js";import{a as an,b as ln}from"./spaces-2O-5X4yt.js";import{B as un,u as fn,T as dn}from"./team-DGUd51ZP.js";import{B as pn}from"./Breadcrumbs-YbVhGF74.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 et=Object.freeze({left:0,top:0,width:16,height:16}),oe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Q=Object.freeze({...et,...oe}),ve=Object.freeze({...Q,body:"",hidden:!1});function hn(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 Ve(e,t){const n=hn(e,t);for(const o in ve)o in oe?o in e&&!(o in n)&&(n[o]=oe[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function mn(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 gn(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let r={};function i(c){r=Ve(o[c]||s[c],r)}return i(t),n.forEach(i),Ve(e,r)}function tt(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=mn(e);for(const s in o){const r=o[s];r&&(t(s,gn(e,s,r)),n.push(s))}return n}const $=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(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&&!ee(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&&!ee(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:r};return t&&!ee(c,n)?null:c}return null},ee=(e,t)=>e?!!((e.provider===""||e.provider.match($))&&(t&&e.prefix===""||e.prefix.match($))&&e.name.match($)):!1,yn={provider:"",aliases:{},not_found:{},...et};function me(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function nt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!me(e,yn))return null;const n=t.icons;for(const s in n){const r=n[s];if(!s.match($)||typeof r.body!="string"||!me(r,ve))return null}const o=t.aliases||Object.create(null);for(const s in o){const r=o[s],i=r.parent;if(!s.match($)||typeof i!="string"||!n[i]&&!o[i]||!me(r,ve))return null}return t}const se=Object.create(null);function bn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _(e,t){const n=se[e]||(se[e]=Object.create(null));return n[t]||(n[t]=bn(e,t))}function je(e,t){return nt(t)?tt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function vn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function xn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(se)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(se[s]||{})).forEach(i=>{const c=_(s,i);n=n.concat(Object.keys(c.icons).map(a=>(s!==""?"@"+s+":":"")+i+":"+a))})}),n}let H=!1;function Sn(e){return typeof e=="boolean"&&(H=e),H}function W(e){const t=typeof e=="string"?U(e,!0,H):e;if(t){const n=_(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function ot(e,t){const n=U(e,!0,H);if(!n)return!1;const o=_(n.provider,n.prefix);return vn(o,n.name,t)}function st(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),H&&!t&&!e.prefix){let s=!1;return nt(e)&&(e.prefix="",tt(e,(r,i)=>{i&&ot(r,i)&&(s=!0)})),s}const n=e.prefix;if(!ee({provider:t,prefix:n,name:"a"}))return!1;const o=_(t,n);return!!je(o,e)}function wn(e){return!!W(e)}function kn(e){const t=W(e);return t?{...Q,...t}:null}const rt=Object.freeze({width:null,height:null}),it=Object.freeze({...rt,...oe}),In=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Cn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(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(In);if(o===null||!o.length)return e;const s=[];let r=o.shift(),i=Cn.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 En=e=>e==="unset"||e==="undefined"||e==="none";function le(e,t){const n={...Q,...e},o={...it,...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=xe(d,a/l)):(u=i==="auto"?a:i,d=c===null?xe(u,l/a):c==="auto"?l:c);const f={},y=(v,x)=>{En(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 Pn=/\sid="(\S+)"/g,Tn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _n=0;function ct(e,t=Tn){const n=[];let o;for(;o=Pn.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+(_n++).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 L={local:!0,session:!0},at={local:new Set,session:new Set};let Oe=!1;function An(e){Oe=e}const ze="iconify2",K="iconify",lt=K+"-count",$e=K+"-version",ut=36e5,Bn=168;function Se(e,t){try{return e.getItem(t)}catch{}}function De(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ge(e,t){try{e.removeItem(t)}catch{}}function we(e,t){return De(e,lt,t.toString())}function ke(e){return parseInt(Se(e,lt))||0}let X=typeof window>"u"?{}:window;function ft(e){const t=e+"Storage";try{if(X&&X[t]&&typeof X[t].length=="number")return X[t]}catch{}L[e]=!1}function dt(e,t){const n=ft(e);if(!n)return;const o=Se(n,$e);if(o!==ze){if(o){const c=ke(n);for(let a=0;a<c;a++)Ge(n,K+a.toString())}De(n,$e,ze),we(n,0);return}const s=Math.floor(Date.now()/ut)-Bn,r=c=>{const a=K+c.toString(),l=Se(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{}Ge(n,a)}};let i=ke(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,we(n,i)):at[e].add(c))}function pt(){if(!Oe){An(!0);for(const e in L)dt(e,t=>{const n=t.data,o=t.provider,s=n.prefix,r=_(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 ht(e,t){switch(e){case"local":case"session":L[e]=t;break;case"all":for(const n in L)L[n]=t;break}}const Ie=Object.create(null);function mt(e,t){Ie[e]=t}function Ce(e){return Ie[e]||Ie[""]}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 ue=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],te=[];for(;V.length>0;)V.length===1||Math.random()>.5?te.push(V.shift()):te.push(V.pop());ue[""]=Le({resources:["https://api.iconify.design"].concat(te)});function gt(e,t){const n=Le(t);return n===null?!1:(ue[e]=n,!0)}function fe(e){return ue[e]}function jn(){return Object.keys(ue)}const On=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let re=On();function Dn(e){re=e}function Ln(){return re}function Nn(e,t){const n=fe(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 Mn(e){return e===404}const Rn=(e,t,n)=>{const o=[],s=Nn(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 Fn(e){if(typeof e=="string"){const t=fe(e);if(t)return t.path}return"/"}const Un=(e,t,n)=>{if(!re){n("abort",424);return}let o=Fn(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;re(e+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Mn(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)})},Vn={prepare:Rn,send:Un};function zn(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]=_(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 yt(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function $n(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||yt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Gn=0;function qn(e,t,n){const o=Gn++,s=yt.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 Hn(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const r=typeof s=="string"?U(s,t,n):s;r&&o.push(r)}),o}var Kn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Qn(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 j(g,I,b){const T=I!=="success";switch(f=f.filter(E=>E!==g),a){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=b,w();return}if(T){u=b,f.length||(i.length?O():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 O(){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,T)=>{j(I,b,T)}};f.push(I),l++,d=setTimeout(O,e.rotate),n(g,t,I.callback)}return setTimeout(O),S}function bt(e){const t={...Kn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,a,l){const u=Qn(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 qe(){}const ge=Object.create(null);function Wn(e){if(!ge[e]){const t=fe(e);if(!t)return;const n=bt(t),o={config:t,redundancy:n};ge[e]=o}return ge[e]}function vt(e,t,n){let o,s;if(typeof e=="string"){const r=Ce(e);if(!r)return n(void 0,424),qe;s=r.send;const i=Wn(e);i&&(o=i.redundancy)}else{const r=Le(e);if(r){o=bt(r);const i=e.resources?e.resources[0]:"",c=Ce(i);c&&(s=c.send)}}return!o||!s?(n(void 0,424),qe):o.query(t,s,n)().abort}function Jn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in L)dt(o,s=>{const r=s.data;return s.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function Yn(e,t){Oe||pt();function n(o){let s;if(!L[o]||!(s=ft(o)))return;const r=at[o];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=ke(s),!we(s,i+1))return;const c={cached:Math.floor(Date.now()/ut),provider:e.provider,data:t};return De(s,K+i.toString(),JSON.stringify(c))}t.lastModified&&!Jn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function He(){}function Xn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,$n(e)}))}function Zn(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=Ce(n)))return;r.prepare(n,o,s).forEach(c=>{vt(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)}),Yn(e,a)}catch(l){console.error(l)}Xn(e)})})}))}const eo=e=>{const n=_(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ne=(e,t)=>{const n=Hn(e,!0,Sn()),o=zn(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,He)}),()=>{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(_(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=_(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&&Zn(a,s[l][u])}),t?qn(t,o,r):He},to=e=>new Promise((t,n)=>{const o=typeof e=="string"?U(e,!0):e;if(!o){n(e);return}Ne([o||e],s=>{if(s.length&&o){const r=W(o);if(r){t({...Q,...r});return}}n(e)})});function xt(e,t){const n={...e};for(const o in t){const s=t[o],r=typeof s;o in rt?(s===null||s&&(r==="string"||r==="number"))&&(n[o]=s):r===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const de={...it,inline:!1},ye="iconify",Ee="iconify-inline",B="iconifyData"+Date.now();let N=[];function J(e){for(let t=0;t<N.length;t++){const n=N[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function St(e,t=!1){let n=J(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},N.push(n),n)}function no(){if(document.documentElement)return St(document.documentElement);N.push({node:()=>document.documentElement})}function oo(e){N=N.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Y(){return N}function so(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let G=null;const ro={childList:!0,subtree:!0,attributes:!0};function wt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,G&&G(e)}))}function io(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[B]!==void 0){n.paused||wt(e);return}}}function kt(e,t){e.observer.instance.observe(t,ro)}function ie(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(io.bind(null,e)),kt(e,n),t.paused||wt(e))}function Ke(){Y().forEach(ie)}function It(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 co(e){const t=G!==null;if(G!==e&&(G=e,t&&Y().forEach(It)),t){Ke();return}so(Ke)}function Pe(e){(e?[e]:Y()).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 ao(e){if(e){const t=J(e);t&&Pe(t)}else Pe()}function Te(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){ie(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?kt(t,o):ie(t);else return}})}function lo(e){if(e){const t=J(e);t&&Te(t)}else Te()}function Ct(e,t=!1){const n=St(e,t);return ie(n),n}function Et(e){const t=J(e);t&&(It(t),oo(e))}function uo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const s in de)if(n[s]!==o[s])return!0;return!1}function fo(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 po=/[\s,]+/;function ho(e,t){t.split(po).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const mo=["width","height"],go=["inline","hFlip","vFlip"];function yo(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function bo(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&U(t,!0);if(!n)return null;const o={...de,inline:e.classList&&e.classList.contains(Ee)};mo.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(o[c]=a)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(o.rotate=fo(s));const r=e.getAttribute("data-flip");typeof r=="string"&&ho(o,r),go.forEach(c=>{const a="data-"+c,l=yo(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 vo="svg."+ye+", i."+ye+", span."+ye+", i."+Ee+", span."+Ee;function xo(e){const t=[];return e.querySelectorAll(vo).forEach(n=>{const o=n[B]||n.tagName.toLowerCase()!=="svg"?bo(n):null;o&&t.push({node:n,props:o})}),t}function Pt(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 q;function So(){try{q=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{q=null}}function wo(e){return q===void 0&&So(),q?q.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 _t(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 At(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 Bt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const s=t.customisations,r=le(n,s),i=e[B],c=Pt(ct(r.body),{"aria-hidden":"true",role:"img",...r.attributes});o.innerHTML=wo(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=_t(a,u,new Set(i&&i.addedClasses),e),f=At(a,s.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:d,addedStyles:f};return a[B]=y,e.parentNode&&e.parentNode.replaceChild(a,e),a}function ko(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Io(e){return"data:image/svg+xml,"+ko(e)}function Co(e){return'url("'+Io(e)+'")'}const Eo={display:"inline-block"},_e={"background-color":"currentColor"},jt={"background-color":"transparent"},Qe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},We={"-webkit-mask":_e,mask:_e,background:jt};for(const e in We){const t=We[e];for(const n in Qe)t[e+"-"+n]=Qe[n]}function Je(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Po(e,t,n,o){const s=t.customisations,r=le(n,s),i=r.attributes,c=e[B],a=Pt(r.body,{...i,width:n.width+"",height:n.height+""}),l=Tt(t.icon),u=_t(e,l,new Set(c&&c.addedClasses)),f={"--svg":Co(a),width:Je(i.width),height:Je(i.height),...Eo,...o?_e:jt};s.inline&&(f["vertical-align"]="-0.125em");const y=At(e,f,c&&c.addedStyles),v={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[B]=v,e}let Z=!1;function To(){Z||(Z=!0,setTimeout(()=>{Z&&(Z=!1,R())}))}function R(e,t=!1){const n=Object.create(null);function o(s,r){const{provider:i,prefix:c,name:a}=s,l=_(i,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(r&&!eo(s)){const d=n[i]||(n[i]=Object.create(null));(d[c]||(d[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:Y()).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,Pe(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"){Po(l,u,{...Q,...d},y);return}}Bt(l,u,d)}xo(r).forEach(({node:l,props:u})=>{const d=l[B];if(!d){const{status:y,icon:v}=o(u.icon,!0);if(v){a(l,u,v);return}i=i||y==="loading",l[B]={...u,status:y};return}let f;if(uo(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?Et(r):t&&i?Ct(r,!0):c&&s.observer&&Te(s)});for(const s in n){const r=n[s];for(const i in r){const c=r[i];Ne(Array.from(c).map(a=>({provider:s,prefix:i,name:a})),To)}}}function _o(e){const t=J(e);t?R(t):R({node:e,temporary:!0},!0)}function Ot(e,t,n=!1){const o=W(e);if(!o)return null;const s=U(e),r=xt(de,t||{}),i=Bt(document.createElement("span"),{name:e,icon:s,customisations:r},o);return n?i.outerHTML:i}function Ao(){return"3.1.1"}function Bo(e,t){return Ot(e,t,!1)}function jo(e,t){return Ot(e,t,!0)}function Oo(e,t){const n=W(e);if(!n)return null;const o=xt(de,t||{});return le(n,o)}function Do(e){e?_o(e):R()}if(typeof document<"u"&&typeof window<"u"){no();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"||!st(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{co(R),R()})}function Lo(e,t){ht(e,t!==!1)}function No(e){ht(e,!0)}mt("",Vn);if(typeof document<"u"&&typeof window<"u"){pt();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;gt(n,s)||console.error(o)}catch{console.error(o)}}}}const Mo={getAPIConfig:fe,setAPIModule:mt,sendAPIQuery:vt,setFetch:Dn,getFetch:Ln,listAPIProviders:jn},Ro={_api:Mo,addAPIProvider:gt,loadIcons:Ne,loadIcon:to,iconExists:wn,getIcon:kn,listIcons:xn,addIcon:ot,addCollection:st,replaceIDs:ct,calculateSize:xe,buildIcon:le,getVersion:Ao,renderSVG:Bo,renderHTML:jo,renderIcon:Oo,scan:Do,observe:Ct,stopObserving:Et,pauseObserver:ao,resumeObserver:lo,enableCache:Lo,disableCache:No};try{self.Iconify===void 0&&(self.Iconify=Ro)}catch{}const Fo=e=>{const t={};let n=null;return A.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=A.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},Uo=(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(z.DEFAULT_DID_DOMAIN))||"").replace(`.${z.DEFAULT_DID_DOMAIN}`,"");return u?s.replace(o,`${u}-${a}.${z.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function Dt(){const{t:e}=Ae(),{api:t}=Gt(),{blocklet:n}=F(),{inService:o}=M(),[s,r]=m.useState(!1),[i,c]=m.useState(5),a=n&&n.structVersion!==z.APP_STRUCT_VERSION,l=()=>{try{if(n.status==="running"){D.error(e("blocklet.migrate.tip.running"));return}const f=Fo(n);if(f){D.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}r(!0)}catch(f){D.error(ce(f))}},u=()=>{const f=Uo(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,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ne,{display:"flex",alignItems:"center",children:[p.jsx(Xe,{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(ne,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&p.jsx(qt,{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:Ht(n,!0),title:A.getDisplayName(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")]}Dt.propTypes={};async function Vo({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 an(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 zo({setLoading:e,refresh:t}={}){var a;const{blocklet:n,actions:{refreshBlocklet:o}}=F(),s=(a=n==null?void 0:n.meta)==null?void 0:a.did,[r,i]=m.useState([]),{api:c}=M();return ae(async()=>{try{if(!s){i([]);return}e==null||e(!0);const{spaceGateways:l}=await c.getBlockletSpaceGateways({input:{did:s}}),u=await Vo({blockletDid:s,nodeApi:c,spaceGateways:l});i(u??[])}catch(l){console.error(l),D.error(ce(l))}finally{e==null||e(!1)}},[s,o,t]),{spaceGateways:r}}function Lt({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=F(),[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),D.error(ce(a))}finally{t(!1)}},2e3);return ae(async()=>{i()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(e)),{backups:o}}function $o({appDid:e}){const{backups:t}=Lt(),[n,o]=m.useState({message:"",progress:0,completed:!1}),s=M(),{ws:{useSubscription:r}}=s;return r(be.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 Go({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(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 qo({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(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:Ho,Consumer:bs}=Nt;function Me({children:e}){const{t}=Ae(),{api:n}=M(),{blocklet:o}=F(),[s,r]=m.useState(!1),[i,c]=m.useState(!1),{spaceGateways:a}=zo({refresh:i,setLoading:r}),l=$o({appDid:o==null?void 0:o.appDid}),[u,d]=m.useState(!1),f=m.useMemo(()=>ln(o==null?void 0:o.environments),[o,i,u]),[y,v]=m.useState(!1),{backups:x}=Lt({deps:[l],setLoading:v}),[C,S]=m.useState(a==null?void 0:a.find(h=>h.endpoint===f)),[w,k]=m.useState(!1),j=Go({deps:[w]}),[O,g]=m.useState(!1),I=qo({deps:[O]}),b=()=>{c(h=>!h)},T=()=>{d(h=>!h)},E=()=>{k(h=>!h)},Mt=()=>{g(h=>!h)},Rt=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:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Re}]}}),b(),S(h)},Ft=async h=>{h&&(await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),b(),S(h))},Ut=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:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),D.success(t("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),b()},Vt=h=>(h==null?void 0:h.endpoint)===f,zt=async h=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:h}}),E()},$t=async h=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:h}}),Mt()};return p.jsx(Ho,{value:{spaceGateways:a,selectedSpaceGateway:C,addSpaceGateway:Rt,deleteSpaceGateway:Ft,updateSpaceGateway:Ut,refreshSpaceGateways:b,spaceGatewaysLoading:s,spaceGatewayIsSelected:Vt,updateAutoBackup:zt,updateAutoCheckUpdate:$t,autoCheckUpdate:I,backupEndpoint:f,backupProgress:l,backups:x,backupsLoading:y,refreshBackupEndpoint:T,autoBackup:j},children:e})}Me.propTypes={children:Kt.any.isRequired};Me.defaultProps={};function vs(){return m.useContext(Nt)}const Ko=m.lazy(()=>P(()=>import("./overview-y9hXmNWR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url)),Qo=m.lazy(()=>P(()=>import("./index-DOvGlVxX.js"),__vite__mapDeps([23,1,2,24,25,26,27,28,29,30,18,19,20,31,32,33,7,34,35,36,37,38,39,40,5,41,42,43,12,44,45,46,47,48,49,6,8,50,51,52,3,53,54,55,56,57,4,58,59]),import.meta.url)),Wo=m.lazy(()=>P(()=>import("./config-navigation-CkEBHj2r.js"),__vite__mapDeps([60,1,2,50,51,61,36,47,48,49,7,29,30,6,8,44,62,63,19,20,18,33,42,5,64,38,65,35,66,21]),import.meta.url)),Jo=m.lazy(()=>P(()=>import("./audit-logs-DPElXT2k.js"),__vite__mapDeps([67,1,2,68,69,12,48,19,20,70,56]),import.meta.url)),Yo=m.lazy(()=>P(()=>import("./index-DDVZbDc5.js"),__vite__mapDeps([71,1,2,9,72,29,30,27,11,73,57,18,19,20,42,5,74,12,75,10,36,76,77,64,78]),import.meta.url)),Xo=m.lazy(()=>P(()=>import("./index-CJBXTfA_.js").then(e=>e.i),__vite__mapDeps([79,1,2,31,9,37,80,73,57,18,19,20,54,55,7,56,50,51,12,49,65,81,82,33,43,75,10,36,77,8,42,5,41,4,22,83]),import.meta.url)),Zo=m.lazy(()=>P(()=>import("./service-CFkt34Sc.js"),__vite__mapDeps([84,1,2,85,55,19,7,20,18,56,61,57,47,48,49,29,30,6,8,86,46,32,87,51,66,64,33,88,9,28]),import.meta.url)),es=m.lazy(()=>P(()=>import("./index-DTCh76Oq.js"),__vite__mapDeps([89,1,2,9,25,26,27,28,29,30,18,19,20,31,90,68,69,91,12,47,48,49,7,6,8,52,43,46,33,85,55,56,61,57,86,32,87,51,66,64,88,41,92,93,76,77,94,45,95,96,83,5,97,98,99,100,101,102,16,74,103,4,104,17,14,105,82,72,11,34,22,42,35,106]),import.meta.url)),ts=m.lazy(()=>P(()=>import("./log-BpKaLgPW.js"),__vite__mapDeps([107,1,2,48,108,29,30,19,109]),import.meta.url)),ns=m.lazy(()=>P(()=>import("./runtime-DfYA5FiE.js"),__vite__mapDeps([110,1,2,54,55,19,7,20,18,56,50,51,57,12,49,5,111,112,34]),import.meta.url)),os=m.lazy(()=>P(()=>import("./traffic-BEhPBbjp.js"),__vite__mapDeps([113,1,2,24,86,32,19,112,18,20,64]),import.meta.url)),ss=m.lazy(()=>P(()=>import("./index-CIh5WVdy.js"),__vite__mapDeps([114,1,2,5,72,29,30,16,105,82,102,18,19,20,4,52,43,49,95,87,39,54,55,7,56,50,51,57,12,33,6,8,47,48,35,42,106]),import.meta.url)),rs=({children:e})=>e;function is(){var g,I;const e=Qt(),{tab:t="overview"}=Ze(),{did:n,blocklet:o,error:s,client:r,actions:{setBlocklet:i,refreshBlocklet:c}}=fn(),{refresh:a}=Wt(),{t:l}=Ae(),u=m.useCallback(()=>p.jsx(Jo,{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=>tn(b,d),y=b=>{e(`/blocklets/${n}/${b}`)},v=b=>{b&&i(b),c()},x=!o||pe(o.status)?[]:A.getAppMissingConfigs(o);let C=null;const S=[{label:l("common.overview"),value:"overview"},{breadcrumbsLabel:l("common.components"),label:p.jsx(Jt,{"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,{severity:"error",variant:"icon",children:ce(s)}),p.jsx(Xe,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:l("common.retry")})})]});else if(o){const b={overview:p.jsx(Ko,{}),configuration:Qo,navigation:Wo,services:Zo,members:p.jsx(Xo,{type:"blocklet",createPassportSvg:f}),passports:Yo,components:es,"audit-logs":u,logs:ts,runtime:p.jsx(ns,{}),traffic:p.jsx(os,{client:r,did:n}),storage:p.jsx(ss,{})};t==="configuration"&&pe(o.status)&&y("overview"),pe(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===z.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"}),A.getBlockletServices(o).length&&S.splice(2,0,{label:l("blocklet.services"),value:"services"});const E=b[t]||b.overview;C=p.jsxs(sn,{type:"components",children:[!A.isExternalBlocklet(o)&&p.jsx(nn,{tabs:S,current:t,onChange:y,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(m.Suspense,{fallback:p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})}),children:m.isValidElement(E)?E:p.jsx(E,{blocklet:o,onUpdate:v,createPassportSvg:f})})})]})}else C=p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})});const w=()=>{},k=({action:b,error:T})=>{if(T){D.error(T.message);return}b==="remove"?(a(),e("/blocklets")):c()},j=S.find(b=>b.value===t),O=o?dn:rs;return p.jsx(O,{teamDid:n,children:p.jsxs(as,{children:[p.jsxs(pn,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Yt,{color:"textSecondary",to:"/blocklets",children:l("common.blocklets")}),p.jsx(Xt,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:l("common.detail")}),p.jsx(he,{color:"textSecondary",children:j?j.breadcrumbsLabel||j.label:""})]}),p.jsxs(he,{component:"div",className:"page-header",children:[p.jsxs(he,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(cn,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ne,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ne,{children:A.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(on,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${l("common.blocklet")} ${l("common.detail")}`]}),p.jsx(Zt,{permission:"mutate_blocklets",children:!!o&&!A.isExternalBlocklet(o)&&p.jsx(rn,{className:"page-actions",blocklet:o,onStart:w,onComplete:k,variant:"group"})})]}),p.jsx(Dt,{}),C]})})}function cs(){const{did:e}=Ze();return e?p.jsx(un,{did:e,children:p.jsx(Me,{children:p.jsx(is,{})})}):null}const as=en.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
- `,xs=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"}));export{xs as d,vs as u};
@@ -1 +0,0 @@
1
- import{r}from"./index-DW_sEbOX.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};
@@ -1 +0,0 @@
1
- import{bS as $,bT as x,bN as d,b_ as e,bZ as y,b$ as S,f5 as m,f6 as C,r as M,bR as z,bP as l,j as i,bW as j,fB as R,bX as B,s as T,P,aZ as E}from"./index-DW_sEbOX.js";function N(t){return x("MuiSwitch",t)}const o=$("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),_=["className","color","edge","size","sx"],O=R(),D=t=>{const{classes:a,edge:s,size:r,color:p,checked:u,disabled:h}=t,b={root:["root",s&&`edge${e(s)}`,`size${e(r)}`],switchBase:["switchBase",`color${e(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},g=B(b,N,a);return l({},a,g)},I=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:s}=t;return[a.root,s.edge&&a[`edge${e(s.edge)}`],a[`size${e(s.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${o.thumb}`]:{width:16,height:16},[`& .${o.switchBase}`]:{padding:4,[`&.${o.checked}`]:{transform:"translateX(16px)"}}}}]}),U=d(y,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:s}=t;return[a.switchBase,{[`& .${o.input}`]:a.input},s.color!=="default"&&a[`color${e(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${o.checked}`]:{transform:"translateX(20px)"},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${o.checked} + .${o.track}`]:{opacity:.5},[`&.${o.disabled} + .${o.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${o.input}`]:{left:"-100%",width:"300%"}}),({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:S(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{color:a},style:{[`&.${o.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:S(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?m(t.palette[a].main,.62):C(t.palette[a].main,.55)}`}},[`&.${o.checked} + .${o.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]})),A=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,a)=>a.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),X=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,a)=>a.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),L=M.forwardRef(function(a,s){const r=O({props:a,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:b="medium",sx:g}=r,f=z(r,_),c=l({},r,{color:u,edge:h,size:b}),n=D(c),w=i.jsx(X,{className:n.thumb,ownerState:c});return i.jsxs(I,{className:j(n.root,p),sx:g,ownerState:c,children:[i.jsx(U,l({type:"checkbox",icon:w,checkedIcon:w,ref:s,ownerState:c},f,{classes:l({},n,{root:n.switchBase})})),i.jsx(A,{className:n.track,ownerState:c})]})}),V=L,k=T(t=>i.jsx(V,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function v({labelProps:t,...a}){return t?i.jsx(E,{control:i.jsx(k,{...a}),...t}):i.jsx(k,{...a})}v.propTypes={labelProps:P.object};v.defaultProps={labelProps:null};export{v as S,V as a};
@@ -1,16 +0,0 @@
1
- import{r,S as u,j as e,e4 as p,b6 as I,e5 as M,e6 as b,e7 as S,P as o,dz as E,s as m,e8 as O}from"./index-DW_sEbOX.js";import{B as v}from"./ButtonGroup-qjpoNO9j.js";function d(s){const{size:f,color:a,menu:i,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),k=Array.isArray(i)?i.map((n,z)=>r.isValidElement(n)?n:r.createElement(u,{...n,key:z})):i,B=()=>{c(n=>!n)},C=n=>{t.current&&t.current.contains(n.target)||c(!1)},P=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:a,ref:t,...g,children:[typeof l=="function"?l():e.jsx(p,{onClick:x,color:a,children:l}),e.jsx(p,{onClick:B,color:a,...y,"aria-label":"more functions",children:e.jsx(I,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(b,{onClickAway:C,children:e.jsx(S,{onClick:P,children:k})})})})]})}d.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};d.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:E,menuButtonProps:{}};d.Item=u;const A=m(v)`
2
- > .MuiButtonBase-root:last-of-type {
3
- min-width: 2em;
4
- padding-left: 0;
5
- padding-right: 0;
6
- }
7
- `,L=m(O)`
8
- z-index: ${s=>s.theme.zIndex.tooltip};
9
- .MuiList-root {
10
- padding: 4px 0;
11
- }
12
- .MuiListItem-root {
13
- padding-top: 4px;
14
- padding-bottom: 4px;
15
- }
16
- `;export{d as S};
@@ -1,2 +0,0 @@
1
- import{cy as l,dC as se,dD as _e,dE as Ee,dF as Te,dG as z,dH as He,cx as H,dI as me,dJ as Se,dK as be,dL as Oe,dM as ge}from"./index-DW_sEbOX.js";import{l as m}from"./index-DTt6OFJv.js";import{a as De}from"./isEqual-vbSrcyPi.js";var Pe={},W={},S={};Object.defineProperty(S,"__esModule",{value:!0});S.encode=void 0;const k=m;function Ae(e,t="hex"){return["hex","base16"].includes(t)?(0,k.toHex)(e):t==="base58"?(0,k.toBase58)(e):t==="base64"?(0,k.toBase64)(e):t==="Uint8Array"?(0,k.toUint8Array)(e):t==="buffer"?(0,k.toBuffer)(e):e}S.encode=Ae;var R={},ke=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0});R.KeccakHasher=void 0;const Re=ke(se),Ke=m,$e=S;class ne{constructor(){[224,256,384,512].forEach(t=>{const s=`hash${t}`,r=o=>Re.default[`keccak${t}`](o),n=(o,c)=>c===1?r(o):n(r(o),c-1);this[s]=(o,c=1,i="hex")=>{let p=o;try{p=(0,Ke.toUint8Array)(o)}catch{}const b=n(p,c);return(0,$e.encode)(`0x${b}`,i)}})}}R.KeccakHasher=ne;R.default=new ne;var K={};Object.defineProperty(K,"__esModule",{value:!0});K.Sha2Hasher=void 0;const ve=m,U=_e,Ie=S,Be={sha224:U.sha224,sha256:U.sha256,sha384:U.sha384,sha512:U.sha512};class oe{constructor(){[224,256,384,512].forEach(t=>{const s=`hash${t}`,r=Be[`sha${t}`],n=(o,c)=>{let i=o;try{i=(0,ve.toUint8Array)(o)}catch{}return c===1?`0x${r().update(i).digest("hex")}`:n(n(i,1),c-1)};this[s]=(o,c=2,i="hex")=>{const p=n(o,c);return(0,Ie.encode)(p,i)}})}}K.Sha2Hasher=oe;K.default=new oe;var $={},Ce=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($,"__esModule",{value:!0});$.Sha3Hasher=void 0;const Le=Ce(se),je=m,Ue=S;class ce{constructor(){[224,256,384,512].forEach(t=>{const s=`hash${t}`,r=Le.default[`sha3_${t}`],n=(o,c)=>c===1?r(o):n(r(o),c-1);this[s]=(o,c=1,i="hex")=>{let p=o;try{p=(0,je.toUint8Array)(o)}catch{}const b=n(p,c);return(0,Ue.encode)(`0x${b}`,i)}})}}$.Sha3Hasher=ce;$.default=new ce;var v={},V={},we=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(V,"__esModule",{value:!0});const Me=we(Ee);V.default=Me.default.create("genKeyPair","getPublicKey","sign","verify");var Z=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v,"__esModule",{value:!0});v.Ed25519Signer=void 0;const Fe=Z(Te),Ne=Z(z),O=m,Ye=Z(V),w=S,M=Fe.default.sign;class ae extends Ye.default{constructor(){super()}genKeyPair(t="hex",s){const r=s?(0,O.toUint8Array)(s):new Uint8Array((0,Ne.default)(32));if(r.byteLength!==32)throw new Error("Invalid seed to generate key pair");const n=M.keyPair.fromSeed(r);return n.publicKey=(0,w.encode)(n.publicKey,t),n.secretKey=(0,w.encode)(n.secretKey,t),n}getPublicKey(t,s="hex"){const r=(0,O.toUint8Array)(t),n=M.keyPair.fromSecretKey(r).publicKey;return(0,w.encode)(n,s)}sign(t,s,r="hex"){const n=(0,O.toUint8Array)(s),o=(0,O.toUint8Array)(t),c=M.detached(o,n);return(0,w.encode)(c,r)}verify(t,s,r){const n=(0,O.toUint8Array)(r),o=(0,O.toUint8Array)(t),c=(0,O.toUint8Array)(s);return M.detached.verify(o,c,n)}}v.Ed25519Signer=ae;v.default=new ae;var I={},A={},Q=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(A,"__esModule",{value:!0});A.Secp256k1Signer=void 0;const Ve=Q(He()),E=m,Xe=Q(z),Ge=Q(V),F=S,xe=Ve.default.ec,N=new xe("secp256k1");class ie extends Ge.default{constructor(){super(),this.pkHasFormatPrefix=!0,this.pkCompressed=!1}isValidSK(t){if(t.byteLength!==32)return!1;const s=new E.BN(t);return s.cmp(N.curve.n)<0&&!s.isZero()}genKeyPair(t="hex"){let s=null;do s=new Uint8Array((0,Xe.default)(32));while(!this.isValidSK(s));const r=this.getPublicKey((0,E.toHex)(s));return{secretKey:(0,F.encode)(s,t),publicKey:(0,F.encode)(r,t)}}getPublicKey(t,s="hex"){if(!this.isValidSK((0,E.toUint8Array)(t)))throw new Error("Invalid secret key");let r=N.keyFromPrivate((0,E.toBuffer)(t)).getPublic(this.pkCompressed,"hex");return this.pkHasFormatPrefix===!1&&(r=r.slice(2)),(0,F.encode)(`0x${r}`,s)}sign(t,s,r="hex"){let n=t;try{n=(0,E.toUint8Array)(t)}catch{}const o=N.keyFromPrivate((0,E.toBuffer)(s)).sign((0,E.stripHexPrefix)(n),{canonical:!0}).toDER("hex");return(0,F.encode)(`0x${o}`,r)}verify(t,s,r){let n=t;try{n=(0,E.toUint8Array)(t)}catch{}let o=(0,E.toBuffer)(r);return this.pkHasFormatPrefix===!1&&o[0]!==4&&o.byteLength===64&&(o=H.concat([H.from([4]),o])),N.keyFromPublic(o).verify((0,E.stripHexPrefix)(n),(0,E.stripHexPrefix)((0,E.toHex)(s)))}}A.Secp256k1Signer=ie;A.default=new ie;var ue=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I,"__esModule",{value:!0});I.EthereumSigner=void 0;const te=ue(me),qe=ue(Se),q=m,Je=A;class fe extends Je.Secp256k1Signer{constructor(){super(),this.pkHasFormatPrefix=!1}ethHash(t){const s=(0,q.isHexStrict)(t)?t:(0,q.utf8ToHex)(t),r=(0,q.hexToBytes)(s),n=H.from(r),o=`Ethereum Signed Message:
2
- ${r.length}`,c=H.from(o),i=H.concat([c,n]);return qe.default.keccak256s(i)}ethSign(t,s){return te.default.sign(t,s)}ethRecover(t,s){return te.default.recover(t,s)}}I.EthereumSigner=fe;I.default=new fe;(function(e){var t=l&&l.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.toTxHash=e.Hashers=e.Signers=e.getRandomBytes=e.getHasher=e.getSigner=e.types=e.Hasher=e.Signer=void 0;const s=t(z),r=S,n=t(R),o=t(K),c=t($),i=t(v),p=t(I),b=t(A);e.Signer={Ed25519:i.default,Secp256k1:b.default,Ethereum:p.default},e.Hasher={SHA2:o.default,SHA3:c.default,Keccak:n.default},e.types={KeyType:{ED25519:0,SECP256K1:1,ETHEREUM:2},HashType:{KECCAK:0,SHA3:1,KECCAK_384:2,SHA3_384:3,KECCAK_512:4,SHA3_512:5,SHA2:6},RoleType:{ROLE_ACCOUNT:0,ROLE_NODE:1,ROLE_DEVICE:2,ROLE_APPLICATION:3,ROLE_SMART_CONTRACT:4,ROLE_BOT:5,ROLE_ASSET:6,ROLE_STAKE:7,ROLE_VALIDATOR:8,ROLE_GROUP:9,ROLE_TX:10,ROLE_TETHER:11,ROLE_SWAP:12,ROLE_DELEGATION:13,ROLE_VC:14,ROLE_BLOCKLET:15,ROLE_STORE:16,ROLE_TOKEN:17,ROLE_FACTORY:18,ROLE_ROLLUP:19,ROLE_STORAGE:20,ROLE_ANY:63},EncodingType:{BASE16:0,BASE58:1}};function D(a){if(typeof e.Signers[a]>"u")throw new Error(`Unsupported signer type: ${a}`);return e.Signers[a]}e.getSigner=D;function h(a){if(typeof e.Hashers[a]>"u")throw new Error(`Unsupported hash type: ${a}`);return e.Hashers[a]}e.getHasher=h;function d(a=32,_="hex"){return(0,r.encode)((0,s.default)(a),_)}e.getRandomBytes=d,e.Signers=Object.freeze({[e.types.KeyType.ED25519]:e.Signer.Ed25519,[e.types.KeyType.SECP256K1]:e.Signer.Secp256k1,[e.types.KeyType.ETHEREUM]:e.Signer.Ethereum}),e.Hashers=Object.freeze({[e.types.HashType.KECCAK]:e.Hasher.Keccak.hash256,[e.types.HashType.KECCAK_384]:e.Hasher.Keccak.hash384,[e.types.HashType.KECCAK_512]:e.Hasher.Keccak.hash512,[e.types.HashType.SHA3]:e.Hasher.SHA3.hash256,[e.types.HashType.SHA3_384]:e.Hasher.SHA3.hash384,[e.types.HashType.SHA3_512]:e.Hasher.SHA3.hash512,[e.types.HashType.SHA2]:e.Hasher.SHA2.hash256});const y=a=>e.Hasher.SHA2.hash256(a,1,"hex").replace(/^0x/,"").toUpperCase();e.toTxHash=y})(W);var f={},T={},ze=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(T,"__esModule",{value:!0});T.toStrictHex=T.toBytes=T.toBits=T.DID_PREFIX=void 0;const ye=ze(be),Y=m,le="did:abt:";T.DID_PREFIX=le;const We=e=>{try{if((0,Y.isHexStrict)(e))return H.from((0,Y.stripHexPrefix)(e),"hex");let t=(0,Y.fromBase58)(e.replace(le,""));for(;t.length<26;)t=H.concat([H.from([0]),t]);return t}catch(t){throw new Error(`Cannot convert DID string to byte array: ${t.message}`)}};T.toBytes=We;const Ze=(e,t)=>(0,ye.default)((0,Y.toBN)(e).toString(2),t,"0");T.toBits=Ze;const Qe=(e,t)=>{const s=e.replace(/^0x/i,"");return typeof t=="number"&&t%2===0?(0,ye.default)(e,t,"0"):s.length%2===0?s:`0${s}`};T.toStrictHex=Qe;var ee=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(f,"__esModule",{value:!0});f.DidType=f.toChecksumAddress=f.isEthereumDid=f.isEthereumType=f.toTypeInfoStr=f.toTypeInfo=f.fromTypeInfo=f.DID_TYPE_ETHEREUM=f.DID_TYPE_ARCBLOCK=void 0;const P=m,B=ee(Oe),et=ee(De),re=ee(ge),u=W,g=T,C={pk:"key",address:"encoding"},J={role:u.types.RoleType.ROLE_ACCOUNT,pk:u.types.KeyType.ED25519,hash:u.types.HashType.SHA3,address:u.types.EncodingType.BASE58};f.DID_TYPE_ARCBLOCK=J;const X={role:u.types.RoleType.ROLE_ACCOUNT,pk:u.types.KeyType.ETHEREUM,hash:u.types.HashType.KECCAK,address:u.types.EncodingType.BASE16};f.DID_TYPE_ETHEREUM=X;const he=e=>{const t=["pk","hash","address"];return(0,et.default)((0,re.default)(e,t),(0,re.default)(X,t))};f.isEthereumType=he;const de=e=>{const t=(0,P.toAddress)(e);return/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x|0X)?[0-9a-f]{40}$/.test(t)||/^(0x|0X)?[0-9A-F]{40}$/.test(t)?!0:tt(t):!1};f.isEthereumDid=de;const tt=e=>{const t=e.replace(/^0x/i,""),s=u.Hasher.Keccak.hash256(t.toLowerCase()).replace(/^0x/i,"");for(let r=0;r<40;r++)if(parseInt(s[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(s[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},rt=e=>{if(typeof e>"u")return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error(`Given address "${e}" is not a valid Ethereum address.`);const t=e.toLowerCase().replace(/^0x/i,""),s=u.Hasher.Keccak.hash256(t).replace(/^0x/i,"");let r="0x";for(let n=0;n<t.length;n++)parseInt(s[n],16)>7?r+=t[n].toUpperCase():r+=t[n];return r};f.toChecksumAddress=rt;function G(e={}){let t={};["default","arcblock"].includes(e)?t=J:["eth","ethereum"].includes(e)?t=X:t={...J,...e};const{role:s,pk:r,hash:n,address:o}=t;Object.keys(t).forEach(i=>{const p=(0,B.default)(`${C[i]||i}Type`);if(Object.values(u.types[p]).includes(t[i])===!1)throw new Error(`Unsupported ${i} type: ${t[i]}`)});const c={role:s,pk:r,hash:n,address:o};return he(c)===!1&&[u.types.RoleType.ROLE_NODE,u.types.RoleType.ROLE_VALIDATOR,u.types.RoleType.ROLE_TETHER,u.types.RoleType.ROLE_SWAP].includes(c.role)&&(c.hash=u.types.HashType.SHA2),c}f.DidType=G;G.toJSON=e=>Object.keys(e).reduce((t,s)=>{const r=(0,B.default)(`${C[s]||s}Type`),n=Object.keys(u.types[r]),o=Object.values(u.types[r]);return t[s]=n[o.indexOf(e[s])],t},{});G.fromJSON=e=>Object.keys(e).reduce((t,s)=>{const r=(0,B.default)(`${C[s]||s}Type`),n=Object.keys(u.types[r]),o=Object.values(u.types[r]);return t[s]=o[n.indexOf(e[s])],t},{});const st=e=>{const t=G(e),s=(0,g.toBits)(t.role,6),r=(0,g.toBits)(t.pk,5),n=(0,g.toBits)(t.hash,5),o=`${s}${r}${n}`,c=(0,P.stripHexPrefix)((0,P.numberToHex)(parseInt(o,2)));return(0,g.toStrictHex)(c,4)};f.fromTypeInfo=st;const pe=e=>{let t={};try{if(de(e))t=X;else{const r=(0,g.toBytes)(e).slice(0,2),n=(0,g.toStrictHex)(H.from(r).toString("hex")),o=(0,g.toBits)(new P.BN(n,16),16),c=o.slice(0,6),i=o.slice(6,11),p=o.slice(11,16);t={role:parseInt(c,2),pk:parseInt(i,2),hash:parseInt(p,2),address:(0,P.isHex)((0,P.toAddress)(e))?u.types.EncodingType.BASE16:u.types.EncodingType.BASE58}}return Object.keys(t).forEach(s=>{Object.values(u.types[`${(0,B.default)(C[s]||s)}Type`]).includes(t[s])===!1&&delete t[s]}),t}catch{return t}};f.toTypeInfo=pe;const nt=e=>{const t=pe(e);return Object.keys(t).reduce((s,r)=>{const n=u.types[`${(0,B.default)(C[r]||r)}Type`];return s[r]=Object.keys(n).find(o=>n[o]===t[r]),s},{})};f.toTypeInfoStr=nt;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DID_TYPE_ETHEREUM=e.DID_TYPE_ARCBLOCK=e.DID_PREFIX=e.DidType=e.fromTypeInfo=e.toTypeInfoStr=e.toTypeInfo=e.isEthereumType=e.isEthereumDid=e.isValid=e.isFromPublicKey=e.toDid=e.toAddress=e.fromHash=e.fromPublicKeyHash=e.fromPublicKey=e.fromSecretKey=e.toStrictHex=e.types=void 0;const t=W;Object.defineProperty(e,"types",{enumerable:!0,get:function(){return t.types}});const s=m;Object.defineProperty(e,"toAddress",{enumerable:!0,get:function(){return s.toAddress}}),Object.defineProperty(e,"toDid",{enumerable:!0,get:function(){return s.toDid}});const r=f;Object.defineProperty(e,"DidType",{enumerable:!0,get:function(){return r.DidType}}),Object.defineProperty(e,"DID_TYPE_ARCBLOCK",{enumerable:!0,get:function(){return r.DID_TYPE_ARCBLOCK}}),Object.defineProperty(e,"DID_TYPE_ETHEREUM",{enumerable:!0,get:function(){return r.DID_TYPE_ETHEREUM}}),Object.defineProperty(e,"fromTypeInfo",{enumerable:!0,get:function(){return r.fromTypeInfo}}),Object.defineProperty(e,"isEthereumDid",{enumerable:!0,get:function(){return r.isEthereumDid}}),Object.defineProperty(e,"isEthereumType",{enumerable:!0,get:function(){return r.isEthereumType}}),Object.defineProperty(e,"toTypeInfo",{enumerable:!0,get:function(){return r.toTypeInfo}}),Object.defineProperty(e,"toTypeInfoStr",{enumerable:!0,get:function(){return r.toTypeInfoStr}});const n=T;Object.defineProperty(e,"DID_PREFIX",{enumerable:!0,get:function(){return n.DID_PREFIX}}),Object.defineProperty(e,"toStrictHex",{enumerable:!0,get:function(){return n.toStrictHex}});const o=(h,d)=>{const y=(0,r.DidType)(d),a=(0,t.getSigner)(y.pk).getPublicKey(h);return c(a.indexOf("0x")===0?a:`0x${a}`,y)};e.fromSecretKey=o;const c=(h,d)=>{const y=(0,r.DidType)(d),_=(0,t.getHasher)(y.hash)(h,1);return i(_,y)};e.fromPublicKey=c;const i=(h,d)=>{const y=(0,r.DidType)(d),a=(0,s.stripHexPrefix)(h).slice(0,40),_=(0,t.getHasher)(y.hash),L=(0,r.fromTypeInfo)(y),x=(0,s.stripHexPrefix)(_(`0x${L}${a}`,1)).slice(0,8),j=`0x${L}${a}${x}`;return(0,r.isEthereumType)(y)?(0,r.toChecksumAddress)(`0x${h.slice(-40)}`):y.address===t.types.EncodingType.BASE58?(0,s.toBase58)(j):j};e.fromPublicKeyHash=i;const p=(h,d=t.types.RoleType.ROLE_ACCOUNT)=>{const y=Object.keys(t.types.RoleType),a=Object.values(t.types.RoleType);if(a.indexOf(d)===-1)throw new Error(`Unsupported role type ${d} when gen ddi from hash`);const _=(0,r.DidType)({role:t.types.RoleType[y[a.indexOf(d)]]});return i(h,_)};e.fromHash=p;const b=(h,d)=>{if(D(h)===!1)return!1;const y=(0,r.toTypeInfo)(h),a=c(d,y),_=h.replace(n.DID_PREFIX,"");return a===_};e.isFromPublicKey=b;const D=h=>{if(!h)return!1;const d=(0,s.toAddress)(String(h)),{hash:y}=(0,r.toTypeInfo)(d);if(typeof y>"u")return!1;if((0,r.isEthereumDid)(d))return!0;const a=(0,t.getHasher)(y),_=(0,n.toBytes)(d),L=(0,n.toStrictHex)(H.from(_.slice(0,22)).toString("hex")),x=(0,n.toStrictHex)(H.from(_.slice(22,26)).toString("hex")),j=(0,s.stripHexPrefix)(a(`0x${L}`,1)).slice(0,8);return x===j};e.isValid=D})(Pe);export{W as a,Pe as l};
@@ -1,54 +0,0 @@
1
- import{bn as ce,q as E,r as v,y as Ze,av as ie,a1 as Z,ak as Pe,j as e,m as x,O as u,x as re,D as Qe,B as W,C as Y,w as He,J as Ve,$ as de,A as I,K as le,P as p,n as ve,f as Ke,i as Ie,l as Xe,aK as q,aL as _,S as V,aD as K,a9 as X,a3 as We,a2 as Ge,a$ as Ye,H as qe,cj as _e,eT as je,W as $e,L as et,Z as tt,b as st,F as L,be as H,T as ae,ax as ot,hF as nt}from"./index-DW_sEbOX.js";import{u as $}from"./blocklet-BBUrtnew.js";import{S as ye}from"./index-BdNyli-L.js";import"./api-DeLIbQas.js";import{u as Be,P as at}from"./use-blocklet-info-for-connect-did-spaces-CgjVAwmg.js";import{f as G,g as Ae,h as it,i as Se,j as rt,k as lt,l as Ce,e as ct}from"./spaces-2O-5X4yt.js";import{u as J}from"./detail-CP83_tPj.js";import{T as dt}from"./TextField-udFGOQyD.js";import{I as pt}from"./index-DH_YItOr.js";import{S as De}from"./switch-control-Dh1twa_3.js";import{d as ht}from"./MoreVert-YMJ5zQGi.js";import{D as mt}from"./DeleteOutline-CT39B0th.js";import{e as ut}from"./mode-B2dWMeTO.js";import{D as ft}from"./index-CB51-nwP.js";import"./ButtonGroup-qjpoNO9j.js";import"./getValidReactChildren-DItgry09.js";import"./index-2gGHhy3B.js";import"./index-DcAqvRRT.js";import"./Delete-BTd8aIqu.js";import"./url-evaluation-Cw18Tjx5.js";import"./tag-BgAeiRXM.js";import"./actions-BWX_qXJD.js";import"./useLocalStorage-FbxxP1zi.js";import"./app-avatar-CFWpqff1.js";import"./team-DGUd51ZP.js";import"./Breadcrumbs-YbVhGF74.js";import"./Select-D_jjFrx2.js";import"./InputLabel-CdP2Vrv8.js";import"./index-BIJwoRQp.js";import"./DeleteOutline-DkbzMi-O.js";import"./FilterList-Cv0uknPg.js";import"./LastPage-BTLBin5_.js";import"./index-COF37GzL.js";import"./redux-AeaWrwCk.js";import"./Search-CnmiZ7r5.js";import"./index-DYG5Tovq.js";function ee({...t}){const{blocklet:s}=$(),{info:d}=ce(),{t:a,locale:i}=E(),[m,o]=v.useState(""),[r,j]=v.useState(!1),[c,h]=v.useState(!1),[D,y]=v.useState(""),f=Be({blocklet:s}),g=Ze(d),{spaceGateways:B,addSpaceGateway:se}=J(),[k,M]=v.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:ie.create({baseURL:Z(window.location.origin,Pe())}).get,messages:{title:a("storage.spaces.provideNFT.title",{appName:f.appName},i),scan:a("storage.spaces.provideNFT.scan",{appName:f.appName},i),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.provideNFT.success")})},onClose:()=>{M(l=>({...l,open:!1}))}}),[n,z]=v.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:a("storage.spaces.authorize.title",{appName:f.appName},i),scan:a("storage.spaces.authorize.scan",{appName:f.appName},i),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.authorize.success")})},onClose:()=>{z(l=>({...l,open:!1}))}}),b=async({endpoint:l,name:A,did:S})=>{const R=await Ae(l);if(!await Se(R)){I.error(a("storage.spaces.gateway.add.invalidUrl"));return}if(B.some(P=>P.endpoint===l)){I.error(a("storage.spaces.gateway.add.duplicate",{name:A}));return}const O={name:A,did:S,url:R,endpoint:l};await se(O,l),I.success(a("storage.spaces.connectedWithName",{name:(O==null?void 0:O.name)??"DID Spaces"}))},T=async(l,A)=>{try{if(!de.isEmpty(l.spaceGateway))await b(A(l.spaceGateway));else{const S=A(l.endpoint),R=l.space?A(l.space):{};await b({endpoint:S,did:G(S),name:"DID Space",...R})}z(S=>({...S,open:!1})),o(null),M(S=>({...S,open:!1}))}catch(S){console.error(S),I.error(le(S))}},C=()=>{M(l=>({...l,open:!0,extraParams:{appPid:s.appPid,appName:f.appName,appDescription:f.appDescription,scopes:f.scopes,appUrl:f.appUrl,referrer:f.referrer,nodeDid:d.did}}))},w=async()=>{try{j(!0);const l=await Ae(m),A=it(l),S=new URL(l).searchParams.get("spaceDid");if(!await Se(A))throw new Error(a("storage.spaces.gateway.add.invalidUrl"));z(R=>({...R,open:!0,prefix:Z(A,"space/api/did"),baseUrl:new URL(A).origin,checkFn:ie.create({baseURL:Z(A,"space")}).get,extraParams:{appDid:f.appDid,appName:f.appName,appDescription:f.appDescription,scopes:f.scopes,appUrl:f.appUrl,referrer:f.referrer,nodeDid:d.did,spaceDid:S}})),h(!1)}catch(l){const A=`${a("storage.spaces.gateway.add.failed",i)}: ${le(l)}`;y(A)}finally{j(!1)}};return e.jsxs(u,{children:[e.jsx(ye,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:C,menu:[e.jsx(ye.Item,{sx:{textTransform:"none"},onClick:()=>h(!0),size:"small",...t,children:a("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(x,{sx:{fontWeight:"bold",textTransform:"none"},children:a("storage.spaces.connect.useWallet")})}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:k.prefix,open:k.open,popup:!0,action:k.action,webWalletUrl:g,baseUrl:k.baseUrl,checkFn:k.checkFn,onSuccess:T,onClose:k.onClose,checkTimeout:k.checkTimeout,extraParams:k.extraParams,messages:k.messages,locale:i}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:n.prefix,open:n.open,popup:!0,action:n.action,baseUrl:n.baseUrl,checkFn:n.checkFn,onSuccess:T,onClose:n.onClose,checkTimeout:n.checkTimeout,extraParams:n.extraParams,messages:n.messages,locale:i}),e.jsxs(Qe,{title:a("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:c,onClose:()=>h(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(W,{onClick:l=>{l.stopPropagation(),h(!1)},color:"inherit",children:a("common.cancel")}),e.jsxs(W,{onClick:w,color:"primary",disabled:r||!m,variant:"contained",autoFocus:!0,children:[r&&e.jsx(Y,{size:16}),a("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(He,{component:"div",children:e.jsx(x,{component:"div",children:e.jsx(dt,{label:a("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:m,onChange:l=>{y(null),o(l.target.value)},disabled:r,onKeyPress:async l=>{l.key==="Enter"&&await w()},autoFocus:!0})})})}),!!D&&e.jsx(Ve,{severity:"error",style:{width:"100%"},children:D})]})]})}ee.propTypes={};ee.defaultProps={};function te({blocklet:t,...s}){const{t:d}=v.useContext(Ke);if(!t.diskInfo)return e.jsx(x,{children:d("blocklet.diskInfo.empty")});const a=(o,r,j)=>e.jsxs(x,{children:[j?e.jsx(Ie,{style:{cursor:"pointer"},onClick:j,underline:"hover",children:o}):o," ",e.jsx("strong",{children:r?Xe(r):"empty"})]}),i=t.environments.reduce((o,r)=>(o[r.key]=r.value,o),{}),m=[{key:"appDir",name:d("blocklet.diskInfo.appDir"),value:a(i.BLOCKLET_APP_DIR,t.diskInfo.app)},{key:"dataDir",name:d("blocklet.diskInfo.dataDir"),value:a(i.BLOCKLET_DATA_DIR,t.diskInfo.data)},{key:"logDir",name:d("blocklet.diskInfo.logDir"),value:a(i.BLOCKLET_LOG_DIR,t.diskInfo.log)},{key:"cacheDir",name:d("blocklet.diskInfo.cacheDir"),value:a(i.BLOCKLET_CACHE_DIR,t.diskInfo.cache)}];return e.jsx(xt,{component:"div",...s,children:m.map(o=>e.jsx(pt,{valueComponent:"div",nameWidth:120,name:o.name,children:o.value},o.key))})}te.propTypes={blocklet:p.object.isRequired};te.defaultProps={};const xt=ve(x)``;var ke=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjs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K2GWGjxhtr146ZKTKWPp9sR8MWBNzQTNNrIt4XCVHh+OwfYAo9QybSeFUX5a9bl1On+cL5YHUjp/eID+XwV2AwZUXHswFw0IhIUlwmaTdQtlKJUpbAArh1IONYy6WQkAc9+ZocJMnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};ke.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ue(){const{t}=E(),{blocklet:s}=$();return e.jsxs(u,{children:[e.jsxs(u,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(ke,{style:{width:200,height:250}}),e.jsx(x,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(ee,{})]}),e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(te,{blocklet:s})]})}Ue.propTypes={};var pe={},gt=_;Object.defineProperty(pe,"__esModule",{value:!0});var be=pe.default=void 0,jt=gt(q()),yt=e;be=pe.default=(0,jt.default)((0,yt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var he={},At=_;Object.defineProperty(he,"__esModule",{value:!0});var Re=he.default=void 0,St=At(q()),Ct=e;Re=he.default=(0,St.default)((0,Ct.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var me={},vt=_;Object.defineProperty(me,"__esModule",{value:!0});var Ee=me.default=void 0,It=vt(q()),Bt=e;Ee=me.default=(0,It.default)((0,Bt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function ue({spaceGateway:t,onDelete:s}){const{t:d}=E(),[a,i]=v.useState(!1),[m,o]=v.useState(!1),r=(c,h)=>{c==null||c.preventDefault(),c==null||c.stopPropagation(),i(h)},j=async c=>{try{c==null||c.stopPropagation(),o(!0),await s(t),i(!1)}catch(h){console.error(h),I.error(`${d("storage.space.gateway.delete.failed")}: ${le(h)}`)}finally{o(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(V,{color:"red",onClick:c=>r(c,!0),children:[e.jsx(K,{style:{minWidth:24,color:"red"},children:e.jsx(mt,{fontSize:"small"})}),e.jsx(X,{style:{color:"red"},children:d("common.delete")})]}),e.jsx(We,{title:d("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:a,confirmButton:{text:d("common.confirm"),props:{variant:"contained",color:"error",loading:m}},cancelButton:{text:d("common.cancel"),props:{variant:"contained",color:"primary"},loading:m},onConfirm:j,onCancel:c=>r(c,!1)})]})}ue.propTypes={onDelete:p.func,spaceGateway:p.shape({name:p.string.isRequired,url:p.string.isRequired,protected:p.bool}).isRequired};ue.defaultProps={onDelete:()=>{}};function fe({spaceGateway:t,connected:s,onDelete:d,onConnect:a,enableSwitchToSpace:i,backupInProgress:m,...o}){const[r,j]=v.useState(null),{t:c}=E(),[h,D]=v.useState(!1),y=(g,B)=>{g.stopPropagation(),g.preventDefault(),j(B&&g.currentTarget)},f=async g=>{try{D(!0),y(g,!1),await a(t)}catch(B){console.error(B),I.error(B.message)}finally{D(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Ge,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:g=>y(g,!0),size:"small",...o,children:h||t!=null&&t.loading?e.jsx(Y,{size:"24px"}):e.jsx(ht,{})}),e.jsxs(Ye,{id:"simple-menu",anchorEl:r,keepMounted:!0,open:!!r,onClose:g=>y(g,!1),children:[e.jsxs(V,{onClick:g=>{y(g,!1),window.open(t.endpoint?rt(t.endpoint):t.url)},children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(be,{fontSize:"small"})}),e.jsx(X,{children:c("common.open")})]}),e.jsxs(V,{onClick:g=>{y(g,!1),window.open(lt(t.endpoint))},children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(Ee,{fontSize:"small"})}),e.jsx(X,{children:c("storage.spaces.strategy.viewBackupFiles")})]}),!s&&i&&e.jsxs(V,{onClick:f,children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(Re,{fontSize:"small"})}),e.jsx(X,{children:c("storage.spaces.connect.switchToSpace")})]}),!m&&e.jsx(ue,{spaceGateway:t,onDelete:d})]})]})}fe.propTypes={spaceGateway:p.shape({name:p.string.isRequired,url:p.string.isRequired,protected:p.bool,endpoint:p.string.isRequired,loading:p.bool}).isRequired,connected:p.bool.isRequired,enableSwitchToSpace:p.bool,onDelete:p.func,onConnect:p.func,backupInProgress:p.bool};fe.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};var Te=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};Te.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var we=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};we.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xe({spaceGateway:t,connected:s,onDelete:d,onBackupNow:a,...i}){const m=qe(U=>U.breakpoints.down("md")),{t:o,locale:r}=E(),{blocklet:j}=$(),{api:c,info:{did:h}}=ce(),{appDid:D,appName:y,appDescription:f,scopes:g,appUrl:B,referrer:se}=Be({blocklet:j}),{updateSpaceGateway:k,backupEndpoint:M,backupProgress:n,refreshBackupEndpoint:z}=J(),[b,T]=v.useState(!1),[C,w]=v.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:o("storage.spaces.authorize.title",{appName:y},r),scan:o("storage.spaces.authorize.scan",{appName:y},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:o("storage.spaces.authorize.success")})},onClose:()=>{w(U=>({...U,open:!1}))}}),{data:l,loading:A}=_e(async()=>s?Ce(M):!0,{refreshDeps:[s,M,C==null?void 0:C.open,b]}),S=s&&l,R=s&&!b&&l&&!(t!=null&&t.loading),F=s&&b&&l,O=s&&!l&&!A&&!b,P=async()=>{if(await Ce(t==null?void 0:t.endpoint)){await c.configBlocklet({input:{did:[j.meta.did],configs:[{key:st.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),z(),I.success(o("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}w(Q=>({...Q,open:!0,prefix:Z(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ie.create({baseURL:Z(t.url,"space")}).get,extraParams:{appDid:D,appName:y,appDescription:f,scopes:g,appUrl:B,referrer:se,nodeDid:h,spaceDid:t.did}}))},Me=async(U,Q)=>{const oe=Q(U.endpoint),Je=G(oe),N=U.space?Q(U.space):{};if(t.did&&Je!==t.did){w(ne=>({...ne,open:!1})),I.error(o("storage.spaces.gateway.switch.failedForMismatchSpace",{name:N!=null&&N.name?N.name:""}));return}const ze={...t,name:N.name??"DID Space",did:N.did??G(oe),endpoint:oe};await k(ze),w(ne=>({...ne,open:!1}))},Ne=async()=>{try{if(b)return;T(!0),await a()}catch(U){console.error(U),I.error(U.message)}finally{T(!0)}};return v.useEffect(()=>{n!=null&&n.completed?((n==null?void 0:n.progress)===100?I.success(o("storage.spaces.backupSuccessfully")):(n==null?void 0:n.progress)===-1&&I.error(n==null?void 0:n.message),T(!1),n.progress=0,n.message=""):n.progress&&T(!0)},[n]),e.jsxs(Dt,{style:{position:"relative"},children:[e.jsxs(u,{sx:{backgroundColor:s?"#F0FDFF":"inherit","&:hover":{backgroundColor:s?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px",...i,children:[e.jsx(u,{display:"flex",children:e.jsx(at,{alt:t.did,src:ct(t.endpoint)})}),e.jsxs(u,{className:"spaces-info",display:"flex",flexGrow:(!m||!F)&&1,minWidth:"180px",flexDirection:F?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[e.jsxs(u,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[e.jsx(x,{color:s?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:t.name}),S&&e.jsx(je,{label:e.jsxs(e.Fragment,{children:[e.jsx(Te,{style:{marginRight:"4px"}}),o("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),O&&e.jsx(je,{label:e.jsxs(e.Fragment,{children:[e.jsx(we,{style:{marginRight:"4px"}}),o("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),e.jsx(u,{className:"spaces-address",display:F?"none":"flex",color:"#9397A1",marginTop:"8px",children:e.jsx(x,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx($e,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})})]}),e.jsxs(u,{className:"spaces-backup",display:"flex",alignItems:"center",flex:m&&F&&1,children:[R&&e.jsxs(u,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[e.jsx(W,{variant:"contained",size:"small",onClick:Ne,children:o("storage.spaces.strategy.backupNow")}),ut&&e.jsx(De,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(x,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:o("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),F&&e.jsxs(u,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:!m&&"640px",marginLeft:m&&"16px",width:m&&"360px",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(x,{color:"primary",children:n==null?void 0:n.message}),e.jsxs(u,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(u,{sx:{width:"100%",mr:1},children:e.jsx(et,{color:"primary",variant:"determinate",value:n==null?void 0:n.progress})}),e.jsx(u,{sx:{maxWidth:"100%"},children:e.jsxs(x,{variant:"body2",color:"text.secondary",children:[n==null?void 0:n.progress,"%"]})})]})]}),O&&e.jsx(u,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:e.jsx(W,{color:"error",variant:"contained",size:"small",onClick:P,children:o("storage.spaces.disconnected.reconnectNow")})}),e.jsx(fe,{sx:{marginLeft:"16px",marginRight:"16px",alignItems:"flex-end",justifyItems:"flex-end"},spaceGateway:t,connected:s,onDelete:d,onConnect:P,enableSwitchToSpace:(n==null?void 0:n.completed)||de.isEmpty(n==null?void 0:n.message),backupInProgress:F})]})]}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:C.prefix,open:C.open,popup:!0,action:C.action,baseUrl:C.baseUrl,checkFn:C.checkFn,onSuccess:Me,onClose:C.onClose,checkTimeout:C.checkTimeout,extraParams:C.extraParams,messages:C.messages,locale:r},"get-endpoint"),e.jsx(u,{className:`selected-container ${s?"selected":""}`,children:e.jsx(tt,{className:"selected-icon"})})]})}xe.propTypes={spaceGateway:p.shape({did:p.string.isRequired,name:p.string.isRequired,url:p.string.isRequired,endpoint:p.string.isRequired,protected:p.bool,loading:p.bool}).isRequired,connected:p.bool.isRequired,progress:p.any.isRequired,onDelete:p.func,onBackupNow:p.func};xe.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const Dt=ve(u)`
2
- .selected-container {
3
- position: absolute;
4
- right: 0px;
5
- bottom: 0px;
6
- display: flex;
7
- -webkit-box-pack: end;
8
- justify-content: flex-end;
9
- align-items: flex-end;
10
- width: 32px;
11
- height: 32px;
12
- border-radius: 0px 0px 8px;
13
- color: rgb(255, 255, 255);
14
- overflow: hidden;
15
- transition: all 0.4s ease 0s;
16
-
17
- &::after {
18
- position: absolute;
19
- z-index: 0;
20
- left: 60px;
21
- top: 60px;
22
- display: block;
23
- width: 0px;
24
- height: 0px;
25
- border-width: 16px;
26
- border-style: solid;
27
- border-color: transparent #1dc1c7 #1dc1c7 transparent;
28
- transition: all 0.1s ease 0s;
29
- content: '';
30
- }
31
-
32
- .selected-icon {
33
- visibility: hidden;
34
- width: 60%;
35
- height: 60%;
36
- position: relative;
37
- z-index: 2;
38
- margin: 0px 1px 1px 0px;
39
- font-size: 16px;
40
- transition: all 0.2s ease 0s;
41
- }
42
- }
43
-
44
- .selected-container.selected {
45
- &::after {
46
- left: 0px;
47
- top: 0px;
48
- }
49
-
50
- .selected-icon {
51
- visibility: visible;
52
- }
53
- }
54
- `;var ge={},kt=_;Object.defineProperty(ge,"__esModule",{value:!0});var Fe=ge.default=void 0,Ut=kt(q()),bt=e;Fe=ge.default=(0,Ut.default)((0,bt.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline");function Oe({...t}){const{t:s,locale:d}=E(),{spaceGateways:a,backups:i}=J(),m=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:o=>{var g;const{targetUrl:r,targetName:j,status:c,createdAt:h}=i[o],D=c===L.BACKUPS.STATUS.PROGRESS&&H().diff(h,"hours")>=L.BACKUPS.TIMEOUT_HOURS,y=c===L.BACKUPS.STATUS.SUCCEEDED&&!D,f=j||((g=a.find(B=>r==null?void 0:r.includes(G(B==null?void 0:B.endpoint))))==null?void 0:g.name)||"Unknown DID Space";return y?e.jsx(Ie,{fontSize:"16px",href:r,target:"_blank",children:f}):e.jsx(x,{variant:"body1",fontSize:"16px",children:f})}}},{label:s("common.strategy"),name:"strategy",options:{customBodyRender:o=>{const r=s(o===0?"common.auto":"common.manual");return e.jsx(ae,{children:r})}}},{label:s("common.startTime"),name:"createdAt",options:{customBodyRender:o=>H(o).format("YYYY-MM-DD HH:mm:ss")}},{label:s("common.endTime"),name:"updatedAt",options:{customBodyRender:o=>de.isEmpty(o)?"":H(o).format("YYYY-MM-DD HH:mm:ss")}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:o=>{const{status:r,message:j,createdAt:c}=(i==null?void 0:i[o])??{},h=r===L.BACKUPS.STATUS.PROGRESS&&H().diff(c,"hours")>=L.BACKUPS.TIMEOUT_HOURS,D=h&&s("common.timeoutError"),y=r===L.BACKUPS.STATUS.PROGRESS&&!h,f=r===L.BACKUPS.STATUS.SUCCEEDED&&!h;return y?e.jsxs(x,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[e.jsx(Y,{sx:{marginRight:"4px"},size:"12px"}),s("common.progress")]}):f?e.jsx(ae,{type:"success",children:s("common.succeeded")}):e.jsxs(u,{display:"inline-flex",alignItems:"center",children:[e.jsx(ae,{type:"error",children:s("common.failed")}),"  ",e.jsx(ot,{style:{display:"flex",alignItems:"center",flexShrink:0},title:j||D,children:e.jsx(nt,{children:e.jsx(Fe,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return e.jsx(u,{...t,children:i!=null&&i.length?e.jsx(ft,{title:e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")}),data:i,columns:m,emptyNode:s("storage.spaces.record.emptyData",d),options:{download:!1,filter:!1,print:!1}}):e.jsxs(e.Fragment,{children:[e.jsx(u,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")})}),e.jsx(u,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:s("storage.spaces.record.emptyData")})]})})}Oe.propTypes={};function Le({...t}){const{t:s}=E(),{autoBackup:d,updateAutoBackup:a}=J(),i=async()=>{try{const m=!d.enabled;await a({enabled:m}),I.success(s(m?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(m){I.error(m.message)}};return e.jsx(De,{checked:!!(d!=null&&d.enabled),onChange:i,name:"enableWelcomePage",labelProps:{label:e.jsx(x,{marginRight:"8px",children:e.jsx("span",{children:s("storage.spaces.autoBackup.title")})})},style:{...t.style}})}Le.propTypes={};function Rt(){const{t}=E(),{blocklet:s}=$(),{api:d}=ce(),{spaceGateways:a,spaceGatewaysLoading:i,deleteSpaceGateway:m,spaceGatewayIsSelected:o}=J(),r=i&&!(a!=null&&a.length),j=async h=>{await m(h),I.success(t("storage.spaces.gateway.delete.succeeded",{name:`(${h.name})`}))},c=async()=>{await d.backupBlocklet({input:{appDid:s.appDid,to:"spaces"}})};return e.jsxs(u,{display:"flex",flexDirection:"column",children:[e.jsxs(u,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:[e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:t("storage.spaces.connected.title")}),e.jsx(Le,{style:{marginRight:"32px"}}),e.jsx(ee,{})]}),e.jsx(u,{children:r?e.jsx(u,{display:"flex",justifyContent:"center",children:e.jsx(Y,{})}):a.map(h=>e.jsx(xe,{style:{marginTop:"12px"},spaceGateway:h,connected:o(h),onDelete:j,onBackupNow:c},h.endpoint))}),e.jsx(Oe,{sx:{marginTop:"24px"}}),e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(te,{blocklet:s})]})}function Et(){const{backupEndpoint:t}=J();return t?e.jsx(Rt,{}):e.jsx(Ue,{})}Et.propTypes={};export{Et as default};
@@ -1 +0,0 @@
1
- import{u as d,j as o,C as f,z as h,aw as v,cj as j,ck as u,O as C,bm as I,ae as P,F as k}from"./index-DW_sEbOX.js";import{I as R}from"./invitation-DSwZ-Xej.js";import"./index-XomN73iI.js";import"./index-KGG0_6hI.js";import"./CheckCircle-C458wd7t.js";import"./wrap-locale-CDqxNJXh.js";function S(n){const{searchParams:i}=new URL(window.location.href),g=h(),{api:a,session:r}=v(),{info:l}=d(),c=i.get("redirect"),p=i.get("id"),s=j(async()=>{if(!p)return null;const{data:e}=await a.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return e}),m=u(()=>{if(s.error)throw s.error;return s==null?void 0:s.data}),w=u(async(e,x=t=>t)=>{e&&(e.sessionToken&&P(x(e.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const t=decodeURIComponent(c);t.startsWith(k.WELLKNOWN_SERVICE_PATH_PREFIX)?g(t,{replace:!0}):window.location=t}else window.location=window.env.pathPrefix||"/"},50)});return s.loading?o.jsx(f,{}):o.jsx(C,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:o.jsx(R,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:e=>I(e,l),checkFn:a.get,onLoginSuccess:w,passportColor:"default",onLogin:r.login})})}function W(){return d().loading?o.jsx(f,{}):o.jsx(S,{})}export{W as default};
@@ -1,21 +0,0 @@
1
- import{aj as X,z as $,r as p,a as Z,b as ee,P as x,q as j,u as P,y as te,au as N,M as _,j as t,x as q,av as se,a1 as S,m as v,D as M,aw as oe,U as O,ax as re,B as W,C as z,ay as ne,A as K,K as V,az as ae,aA as ie,aB as le,F as ce,aC as B,i as ue,n as G,aa as de,a4 as pe,a7 as he,a8 as fe,aD as me,a9 as ge,O as xe}from"./index-DW_sEbOX.js";import{_ as D}from"./useLocalStorage-FbxxP1zi.js";import{c as be,C as ke,A as ye,D as Se,B as je,S as H,a as Pe,b as we}from"./item-B7ZSMqn6.js";import{d as Re}from"./ArrowDropDown-PUGycbah.js";import{B as ve}from"./Breadcrumbs-YbVhGF74.js";import"./index-BBsadaJh.js";import"./index-ZG7jWpak.js";import"./index-DYG5Tovq.js";import"./Search-CnmiZ7r5.js";import"./index-BIJwoRQp.js";import"./Select-D_jjFrx2.js";import"./InputAdornment-GAXpW_Pc.js";import"./preact.module-B1z5cdvs.js";import"./Add-9p89cr51.js";import"./TextField-udFGOQyD.js";import"./InputLabel-CdP2Vrv8.js";import"./Launch-C4_ktc4w.js";import"./Done-DycYtcxi.js";import"./DeleteOutline-CT39B0th.js";import"./DeleteOutline-DkbzMi-O.js";import"./delete-confirm-BN8gy06y.js";import"./click-to-copy-6L_LfYIl.js";import"./shorten-label-pU8ae-Oh.js";import"./blocklet-BBUrtnew.js";import"./MoreVert-YMJ5zQGi.js";import"./ButtonGroup-qjpoNO9j.js";import"./getValidReactChildren-DItgry09.js";function Ce(e){const n=X(),c=$(),[s,o]=D(`sid:blocklet:purchase:${e}`),[l,u]=p.useState(!1),[h,a]=p.useState(null),d=()=>{const{pathname:r,searchParams:m}=new URL(window.location.href),b=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";m.get("sid")&&(o(""),c(r.replace(b,"/"),{replace:!0}))},i=!!(n.get("assetDid")&&s&&n.get("sid")===s);return Z(ee.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(u(!0),setTimeout(d,2e3)))}),p.useEffect(()=>{h&&h.id!==s&&o(h.id)},[h]),{hasCompleted:l,hasPurchased:i,session:h,setSession:a,doRedirect:d}}function E({meta:e,onCancel:n,handlePaySuccess:c,storeUrl:s}){const{t:o}=j(),{info:l}=P(),[u,h]=p.useState("both"),[a,d]=p.useState(1),i=te(l),r=N(e,l,s),m=R=>{R!==u&&h(R)},b=()=>{u&&(d(2),u==="verify"&&(window.location.href=r))},k=(R,L)=>{L!=="backdropClick"&&n()},w=()=>{c(r)},f=_.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:se.create({baseURL:S(s,"/store")}).get,onSuccess:w,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:f}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(v,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(v,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:f})]})]})}});const g=M;return t.jsx(g,{title:o("store.purchase.title",{name:f}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:k,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:u,onNext:b,onSelect:m})})})}E.propTypes={...be,storeUrl:x.string.isRequired,handlePaySuccess:x.func};E.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=e},1e3)}};function U({meta:e,buttonText:n,storeUrl:c,isResource:s}){const{t:o}=j(),l=$(),{info:u}=P(),{api:h}=oe(),a=_.isFreeBlocklet(e)===!1,[d,i]=p.useState(!1),{hasPurchased:r}=Ce(e.did),[m,b]=p.useState(!1),[k]=D("instant-blocklet-install",!1),[w,f]=p.useState(!1),g=p.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),R=p.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),L=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){b(!0);return}if(k){f(!0);return}if(!a){const C=N(e,u,c);window.location.href=C}}catch(C){K.error(V(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{i(!1)}},Q=()=>{i(!1),b(!1)},Y=y=>{i(!1),f(!1),l(`/blocklets/${y.appDid}/components`)},J=()=>{i(!1),f(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(O,{permission:"mutate_blocklets",children:y=>t.jsx(re,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(W,{onClick:L,size:"small",sx:{cursor:s?"not-allowed":"pointer"},disabled:!!(g||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:g?t.jsxs(t.Fragment,{children:[t.jsx(z,{size:16,style:{marginRight:3}}),g]}):R},e.did)})})}),(r||m)&&t.jsx(E,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:c}),w&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Y,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ne(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:J})]})}U.propTypes={isResource:x.bool,meta:x.object.isRequired,buttonText:x.shape({purchase:x.string.isRequired,launch:x.string.isRequired}).isRequired,storeUrl:x.string.isRequired};U.defaultProps={isResource:!1};const De=(e,n,c)=>{const s=de(n);return S(c,`/blocklets/${e.did}/?server-url=${s}`)},A=({meta:e,attribute:n,value:c})=>e._formatted?e._formatted[n]:c;function T({blocklet:e,endpoint:n}){const{t:c}=j(),s=P();let o=S(s.imgPrefix,"blocklet.png");const l=n;if(l.startsWith("http")&&e.logo)o=S(l,le(e.did,e.logo,e.version));else{let r=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");r&&(r=`/${r}`),o=S(r,`/blocklet/logo/${e.did}`)}try{const i=new URL(o);i.searchParams.set("v",e.version||+new Date),o=i.href}catch{}const u=(s==null?void 0:s.info.mode)!==ce.NODE_MODES.SERVERLESS,h=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:c("common.purchase"),launch:c("common.launch")},storeUrl:l};let d=null;return u&&(d=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(U,{isResource:!(B.hasStartEngine(e)||B.isGatewayBlocklet(e)||B.isPackBlocklet(e)),...a})})),t.jsx(ue,{href:De(e,s.info,n),style:{color:"initial",textDecoration:"none"},onClick:h,target:"_blank",children:t.jsx(Le,{title:A({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:A({meta:e,attribute:"description",value:e.description}),cover:e.logo?o:"",version:e.version,button:d})})}T.propTypes={blocklet:x.object.isRequired,endpoint:x.string};T.defaultProps={endpoint:""};function I({storeUrl:e,handleSearchSelect:n,extraFilter:c,...s}){var r;const{locale:o}=j(),l=P(),[u,h]=p.useState({}),a=m=>{h(m)},d=e,i=(r=l==null?void 0:l.info)==null?void 0:r.version;return p.useEffect(()=>{h({})},[d]),t.jsx(ae,{FallbackComponent:ie,resetKeys:[d],children:t.jsx("div",{...s,children:t.jsx(Se,{blockletRender:m=>{const b={...m,endpoint:d};return t.jsx(T,{...b})},baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:u,extraFilter:c,serverVersion:i})})})}I.propTypes={storeUrl:x.string.isRequired,handleSearchSelect:x.func,extraFilter:x.func};I.defaultProps={handleSearchSelect:null,extraFilter:void 0};const Le=G(je)`
2
- .ms-highlight {
3
- color: ${e=>e.theme.palette.primary.main};
4
- }
5
- `,Be=pe(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},menuName:{display:"flex",flexDirection:"column",marginRight:"100px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})),F=p.forwardRef(({onChange:e,onDelete:n},c)=>{const{info:s}=P(),{t:o}=j(),[l,u]=p.useState(!1),[h,a]=p.useState(!1),[d,i]=p.useState(-1),r=Be(),[m,b]=D(H),k=Math.max(s.blockletRegistryList.findIndex(f=>f.url===m),0),w=f=>{try{u(!0),i(f);const g=s.blockletRegistryList[f];b(g.url),e(g.url),a(!1)}catch(g){console.error(g),K.error(`${o("store.blockletRegistry.changeFailed")} ${V(g)}`)}finally{u(!1)}};return p.useImperativeHandle(c,()=>({setOpen:a})),t.jsxs(t.Fragment,{children:[t.jsx(O,{permission:"mutate_node",children:f=>t.jsx(W,{disabled:!f,classes:{text:r.buttonText},color:"secondary","data-cy":"store-toggle",onClick:()=>{a(!0)},endIcon:t.jsx(Re,{}),children:t.jsx(v,{color:"secondary",children:s.blockletRegistryList[k].name})})}),t.jsx(M,{title:o("store.blockletRegistry.switchRegistry"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:h,onClose:()=>a(!1),children:t.jsxs(he,{className:r.tabPanel,children:[s.blockletRegistryList.map((f,g)=>t.jsxs(fe,{button:!0,disabled:l,selected:k===g,"data-cy":"store-switch",onClick:()=>{if(!l){if(g===k){a(!1);return}w(g)}},children:[d===g&&l&&t.jsx(me,{className:r.iconRoot,children:t.jsx(z,{size:16})}),t.jsx(ge,{children:t.jsx(Pe,{teamDid:s.did,store:f,onDelete:()=>n(f.url)})})]},f.url)),t.jsx(we,{disabled:l,onAdd:e,teamDid:s.did,blockletRegistryList:s.blockletRegistryList})]})})]})});F.propTypes={onChange:x.func,onDelete:x.func};F.defaultProps={onChange:()=>{},onDelete:()=>{}};const Ee=F;function at(){const{t:e}=j(),{info:n}=P(),[c]=D(H),{blockletRegistryList:s}=n,o=s.find(r=>c===r.url)||s[0],[l,u]=p.useState(o.url),h=n.routing.adminPath,a=S(window.location.origin,h),d=({detailUrl:r})=>{const m=new URL(r);m.searchParams.set("server-url",a);const b=document.createElement("a");b.setAttribute("target","_blank"),b.setAttribute("href",m.href),b.click()},i=p.useRef(null);return t.jsxs(Ue,{children:[t.jsxs(ve,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[t.jsx(v,{color:"textPrimary",children:e("common.store")}),t.jsx(Ee,{ref:i,onChange:r=>u(r),onDelete:r=>{var m;l===r&&u((m=n.blockletRegistryList[0])==null?void 0:m.url)}})]}),t.jsx(xe,{className:"store-header",display:"flex",justifyContent:"space-between",p:0,m:0,children:t.jsx(v,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:e("store.headerDescription")})}),t.jsx(I,{className:"blocklet-list",handleSearchSelect:d,storeUrl:l})]})}const Ue=G.main`
6
- @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
7
- .store-header {
8
- flex-direction: column;
9
- margin-bottom: 32px !important;
10
- }
11
-
12
- .page-header {
13
- margin-bottom: 16px !important;
14
- }
15
- }
16
- .blocklet-list {
17
- aside:hover {
18
- height: calc(100vh - 235px);
19
- }
20
- }
21
- `;export{at as default};
@@ -1 +0,0 @@
1
- import{hv as O,r as L,hw as W,cn as R,fm as N,hx as K,hy as P,cl as j,hz as S}from"./index-DW_sEbOX.js";var V=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),O(r,a)},I=function(r,a,n){var e=L.useRef(),i=L.useRef(0);V(a,e.current)||(e.current=a,i.current+=1),W(r,[i.current],n)},J=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),z={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:J?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},E={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?z.meta.includes(r.keyCode):r.metaKey}};function B(r){return P(r)||j(r)}function Q(r){var a=Object.keys(E).reduce(function(n,e){return E[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function T(r,a,n){var e,i;if(!r.key)return!1;if(j(a))return r.keyCode===a?a:!1;var o=a.split("."),s=0;try{for(var l=K(o),c=l.next();!c.done;c=l.next()){var p=c.value,y=E[p],m=z[p.toLowerCase()];(y&&y(r)||m&&m===r.keyCode)&&s++}}catch(b){e={error:b}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return n?s===o.length&&Q(r)===o.length?a:!1:s===o.length?a:!1}function U(r,a){return S(r)?r:B(r)?function(n){return T(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return T(n,e,a)})}:function(){return!!r}}var X=["keydown"];function Z(r,a,n){var e=n||{},i=e.events,o=i===void 0?X:i,s=e.target,l=e.exactMatch,c=l===void 0?!1:l,p=e.useCapture,y=p===void 0?!1:p,m=R(a),b=R(r);I(function(){var k,C,x,t=N(s,window);if(t){var q=function(u){var v,g=U(b.current,c),f=g(u),d=B(f)?f:u.key;if(f)return(v=m.current)===null||v===void 0?void 0:v.call(m,u,d)};try{for(var w=K(o),h=w.next();!h.done;h=w.next()){var G=h.value;(x=t==null?void 0:t.addEventListener)===null||x===void 0||x.call(t,G,q,y)}}catch(u){k={error:u}}finally{try{h&&!h.done&&(C=w.return)&&C.call(w)}finally{if(k)throw k.error}}return function(){var u,v,g;try{for(var f=K(o),d=f.next();!d.done;d=f.next()){var H=d.value;(g=t==null?void 0:t.removeEventListener)===null||g===void 0||g.call(t,H,q,y)}}catch(M){u={error:M}}finally{try{d&&!d.done&&(v=f.return)&&v.call(f)}finally{if(u)throw u.error}}}}},[o],s)}export{Z as u};
@@ -1 +0,0 @@
1
- import{cy as a,dV as be,dW as me,dX as ge,dY as Be,dL as we,dZ as ye,d_ as _e,d$ as Te,dK as $e,e0 as he,e1 as Se,e2 as Ne,e3 as He,cx as b}from"./index-DW_sEbOX.js";var Ue={};(function(t){var P=a&&a.__createBinding||(Object.create?function(e,n,i,o){o===void 0&&(o=i);var r=Object.getOwnPropertyDescriptor(n,i);(!r||("get"in r?!n.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(e,o,r)}:function(e,n,i,o){o===void 0&&(o=i),e[o]=n[i]}),D=a&&a.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),E=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&P(n,e,i);return D(n,e),n},s=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatTxType=t.isSameDid=t.toDid=t.toAddress=t.fromBase64=t.toBase64=t.fromBase58=t.toBase58=t.toBuffer=t.toUint8Array=t.isUUID=t.UUID=t.isUint8Array=t.fromTokenToUnit=t.fromUnitToToken=t.numberToString=t.toHex=t.hexToBytes=t.bytesToHex=t.numberToHex=t.hexToNumber=t.hexToUtf8=t.utf8ToHex=t.toBN=t.isHex=t.isHexStrict=t.isBigNumber=t.isBN=t.stripHexPrefix=t.isHexPrefixed=t.numberToBN=t.rightPad=t.leftPad=t.BN=t.isBase58btc=void 0;const O=s(be),$=s(me),h=s(ge),j=s(Be),I=s(we),C=s(ye),F=s(_e),L=s(Te);t.rightPad=L.default;const M=s($e);t.leftPad=M.default;const S=s(he),w=s(Se),u=s(Ne);t.BN=u.default;const N=E(He),H="did:abt:",X=new u.default(0),U=new u.default(-1),m={encode:e=>`z${S.default.encode(e)}`,decode:e=>S.default.decode(e.slice(1))},v=e=>{if(typeof e!="string")return!1;if(e[0]==="z")try{return m.decode(e),!0}catch{return!1}return!1};t.isBase58btc=v;const G=e=>{if(typeof e=="string"||typeof e=="number"){let n=new u.default(1);const i=String(e).toLowerCase().trim(),o=i.substr(0,2)==="0x"||i.substr(0,3)==="-0x";let r=(0,t.stripHexPrefix)(i);if(r.substr(0,1)==="-"&&(r=(0,t.stripHexPrefix)(r.slice(1)),n=new u.default(-1,10)),r=r===""?"0":r,!r.match(/^-?[0-9]+$/)&&r.match(/^[0-9A-Fa-f]+$/)||r.match(/^[a-fA-F]+$/)||o===!0&&r.match(/^[0-9A-Fa-f]+$/))return new u.default(r,16).mul(n);if((r.match(/^-?[0-9]+$/)||r==="")&&o===!1)return new u.default(r,10).mul(n)}if((0,t.isBN)(e))return new u.default(e.toString(10),10);throw new Error(`[number-to-bn] while converting number ${JSON.stringify(e)} to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.`)};t.numberToBN=G;const z=e=>{if(typeof e!="string")throw new Error("[is-hex-prefixed] value must be type string");return e.slice(0,2).toLowerCase()==="0x"};t.isHexPrefixed=z;const x=e=>typeof e=="string"&&(0,t.isHexPrefixed)(e)?e.slice(2):e;t.stripHexPrefix=x;const J=e=>e instanceof u.default||e&&e.constructor&&e.constructor.name==="BN";t.isBN=J;const V=e=>e&&e.constructor&&e.constructor.name==="BigNumber";t.isBigNumber=V;const k=e=>((0,$.default)(e)||(0,h.default)(e))&&/^(-)?0x[0-9a-f]*$/i.test(e);t.isHexStrict=k;const q=e=>((0,$.default)(e)||(0,h.default)(e))&&/^(-0x|0x|0X|-0X)?[0-9a-f]*$/i.test(e);t.isHex=q;const K=(e,n=10)=>{try{if(typeof e=="number"&&e>0){const i=Number(e).toLocaleString("fullwide",{useGrouping:!1});return new u.default(i,n)}return(0,t.numberToBN)(e)}catch(i){throw new Error(`${i} Given value: "${e}"`)}};t.toBN=K;const R=e=>{e=N.encode(e);let n="";e=e.replace(/^(?:\u0000)*/,""),e=e.split("").reverse().join(""),e=e.replace(/^(?:\u0000)*/,""),e=e.split("").reverse().join("");for(let i=0;i<e.length;i++){const r=e.charCodeAt(i).toString(16);n+=r.length<2?`0${r}`:r}return`0x${n}`};t.utf8ToHex=R;const W=e=>{if(!(0,t.isHexStrict)(e))throw new Error(`The parameter "${e}" must be a valid HEX string.`);let n="",i=0;e=e.replace(/^0x/i,""),e=e.replace(/^(?:00)*/,""),e=e.split("").reverse().join(""),e=e.replace(/^(?:00)*/,""),e=e.split("").reverse().join("");const o=e.length;for(let r=0;r<o;r+=2)i=parseInt(e.substr(r,2),16),n+=String.fromCharCode(i);return N.decode(n)};t.hexToUtf8=W;const Y=e=>e?(0,t.toBN)(e).toNumber():0;t.hexToNumber=Y;const Z=e=>{if((0,F.default)(e)||typeof e>"u")return e;if(!isFinite(e)&&!(0,t.isHex)(e))throw new Error(`Given input "${e}" is not a number.`);const n=(0,t.toBN)(e),i=n.toString(16);return n.lt(new u.default(0))?`-0x${i.substr(1)}`:`0x${i}`};t.numberToHex=Z;const Q=e=>{const n=[];for(let i=0;i<e.length;i++)n.push((e[i]>>>4).toString(16)),n.push((e[i]&15).toString(16));return`0x${n.join("")}`};t.bytesToHex=Q;const p=e=>{if(e=e.toString(16),!(0,t.isHex)(e))throw new Error(`Given value "${e}" is not a valid hex string.`);e=e.replace(/^0x/i,""),e=e.length%2?`0${e}`:e;const n=[];for(let i=0;i<e.length;i+=2)n.push(parseInt(e.substr(i,2),16));return n};t.hexToBytes=p;const ee=(e,n=!1)=>y(e)||b.isBuffer(e)?n?"bytes":(0,t.bytesToHex)(e):(0,t.isBase58btc)(e)?n?"bytes":(0,t.bytesToHex)(m.decode(e)):(0,O.default)(e)?n?"bool":e?"0x01":"0x00":(0,j.default)(e)&&!(0,t.isBigNumber)(e)&&!(0,t.isBN)(e)?n?"string":(0,t.utf8ToHex)(JSON.stringify(e)):typeof e=="string"?e.indexOf("-0x")===0||e.indexOf("-0X")===0?n?"int256":(0,t.numberToHex)(e):e.indexOf("0x")===0||e.indexOf("0X")===0?n?"bytes":e:n?"string":(0,t.utf8ToHex)(e):n?e<0?"int256":"uint256":(0,t.numberToHex)(e);t.toHex=ee;const te=e=>{if(typeof e=="string"){if(!e.match(/^-?[0-9.]+$/))throw new Error(`Invalid value '${e}' while converting to string, should be a number matching (^-?[0-9.]+).`);return e}if(typeof e=="number")return Number.isInteger(e)&&e>0?Number(e).toLocaleString("fullwide",{useGrouping:!1}):String(e);if(typeof e=="object"&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error(`while converting number to string, invalid number value '${e}' type ${typeof e}.`)};t.numberToString=te;const ne=(e,n=18,i={})=>{let o=(0,t.toBN)(e);const r=o.lt(X),d=(0,t.toBN)(`1${"0".repeat(n)}`,10),g=d.toString(10).length-1||1,c=i||{};r&&(o=o.mul(U));let f=o.mod(d).toString(10);for(;f.length<g;)f=`0${f}`;c.pad||(f=f.match(/^([0-9]*[1-9]|0)(0*)/)[1]);let l=o.div(d).toString(10);c.commify&&(l=l.replace(/\B(?=(\d{3})+(?!\d))/g,","));let T=`${l}${f==="0"?"":`.${f}`}`;return r&&(T=`-${T}`),T};t.fromUnitToToken=ne;const ie=(e,n=18)=>{let i=(0,t.numberToString)(e);const o=(0,t.toBN)(`1${"0".repeat(n)}`,10),r=o.toString(10).length-1||1,d=i.substring(0,1)==="-";if(d&&(i=i.substring(1)),i===".")throw new Error(`error converting token ${e} to unit, invalid value`);const g=i.split(".");if(g.length>2)throw new Error(`error converting token ${e} to unit, too many decimal points`);let c=g[0],f=g[1];if(c||(c="0"),f||(f="0"),f.length>r)throw new Error(`error converting token ${e} to unit, too many decimal places`);for(;f.length<r;)f+="0";c=new u.default(c),f=new u.default(f);let l=c.mul(o).add(f);return d&&(l=l.mul(U)),new u.default(l.toString(10),10)};t.fromTokenToUnit=ie;function y(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}t.isUint8Array=y;function re(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=Math.random()*16|0;return(e==="x"?n:n&3|8).toString(16)})}t.UUID=re;function oe(e){return/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e)}t.isUUID=oe;function _(e){let n=null;if([null,void 0,""].includes(e))n=new Uint8Array;else if(b.isBuffer(e))n=new Uint8Array(e);else if((0,t.isHexStrict)(e))n=new Uint8Array((0,t.hexToBytes)(e));else if(y(e))n=new Uint8Array(e);else if((0,t.isBase58btc)(e))n=new Uint8Array(m.decode(e));else if(typeof e=="string")n=new Uint8Array((0,t.hexToBytes)((0,t.toHex)(e)));else throw new Error(`Unsupported input type ${typeof e} detected for toBuffer, only Uint8Array/Buffer/Hex/Base58 are supported`);return n}t.toUint8Array=_;function A(e){return b.from(_(e))}t.toBuffer=A;function fe(e){const n=m.encode(_(e));return b.from(n).toString("utf-8")}t.toBase58=fe;function ue(e){if((0,t.isBase58btc)(e)===!1)throw new Error("fromBase58 expect strict base58 encoded string as input");return b.from(m.decode(e))}t.fromBase58=ue;function se(e,n=!0){const i=w.default.encode(A(e));return n?w.default.escape(i):i}t.toBase64=se;function ce(e){if(typeof e!="string")throw new Error("fromBase64 requires input to be a string");return b.from(w.default.unescape(e),"base64")}t.fromBase64=ce;function B(e){return e.replace(H,"")}t.toAddress=B;function ae(e){return`${H}${B(e)}`}t.toDid=ae;function le(e,n){return B(e)===B(n)}t.isSameDid=le;function de(e){return(0,I.default)((0,C.default)(e))}t.formatTxType=de})(Ue);export{Ue as l};