@abtnode/blocklet-services 1.16.47-beta-20250730-070104-87a128a5 → 1.16.47-beta-20250801-094129-1ba43aaa

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 (227) hide show
  1. package/api/index.js +16 -3
  2. package/api/libs/image.js +131 -77
  3. package/api/routes/blocklet.js +47 -32
  4. package/api/routes/csp-proxy.js +129 -14
  5. package/api/routes/user.js +6 -2
  6. package/api/services/auth/connect/verify-destroy.js +24 -2
  7. package/api/services/auth/session.js +6 -2
  8. package/api/services/image/index.js +6 -1
  9. package/dist/assets/AdapterDayjs-BN6xrcXw.js +3 -0
  10. package/dist/assets/{Google-kE2qbn1K.js → Google-BfPT9Xh-.js} +1 -1
  11. package/dist/assets/{access-control-FYs8JoGO.js → access-control-DkEAPrH2.js} +1 -1
  12. package/dist/assets/{actions-DvIZNF27.js → actions-CJMVMPKl.js} +1 -1
  13. package/dist/assets/{add-component-core-BB6rCC8n.js → add-component-core-B_I64xA8.js} +1 -1
  14. package/dist/assets/{add-resource-BlKrIrw0.js → add-resource-OtGLfsSC.js} +1 -1
  15. package/dist/assets/{addon-g3Lz4kfk.js → addon-ByRu0wmY.js} +1 -1
  16. package/dist/assets/{advanced-DyVpf_DB.js → advanced-BnXe4cqK.js} +1 -1
  17. package/dist/assets/aigne-CHLpC-y1.js +10 -0
  18. package/dist/assets/api-B6VBwg-Z.js +1 -0
  19. package/dist/assets/{appearance-D0WJqn3Y.js → appearance-DoL2p8uj.js} +1 -1
  20. package/dist/assets/ar-BmxvvhkF.js +7 -0
  21. package/dist/assets/{arrow-down.svg-CH8Xzna_.js → arrow-down.svg-CTyHGzaE.js} +1 -1
  22. package/dist/assets/{audit-logs-BLZ_FXya.js → audit-logs-CYCXwJKF.js} +1 -1
  23. package/dist/assets/authorize-CgriXRp-.js +1 -0
  24. package/dist/assets/{base-chart-Dhrxq8mT.js → base-chart-Bq5ougoU.js} +1 -1
  25. package/dist/assets/{base32-B9yl211y.js → base32-CiFWWnw3.js} +1 -1
  26. package/dist/assets/{branding-B_9Ik1Ul.js → branding-BHOpQPVg.js} +1 -1
  27. package/dist/assets/{branding-CbIhan7S.js → branding-BVhkSHKy.js} +2 -2
  28. package/dist/assets/{bundle-avatar-DzIGEDbC.js → bundle-avatar-EjC4ul9m.js} +1 -1
  29. package/dist/assets/button-DeYwq4G-.js +1 -0
  30. package/dist/assets/{click-to-copy-C43vd7DG.js → click-to-copy-BAVxsRT1.js} +1 -1
  31. package/dist/assets/{cloneDeep-DwV-xVQF.js → cloneDeep-Bp5oPxU3.js} +1 -1
  32. package/dist/assets/{collapse-B0wJmKRl.js → collapse-C3V-lD7M.js} +1 -1
  33. package/dist/assets/{complete-Cx5YFdNr.js → complete-E7j8kDa5.js} +1 -1
  34. package/dist/assets/{component-99-uAXc0.js → component-CDAFdcnx.js} +56 -72
  35. package/dist/assets/{config-Dr0r0k-g.js → config-B6qd-J_H.js} +1 -1
  36. package/dist/assets/{config-B4lheVsX.js → config-Dlwx7WyO.js} +1 -1
  37. package/dist/assets/config-FumbXhpa.js +263 -0
  38. package/dist/assets/{config-navigation-ToPhdOjg.js → config-navigation-Cr1v50S5.js} +3 -3
  39. package/dist/assets/{config-space-CT21iR_2.js → config-space-OVPR-H3Q.js} +1 -1
  40. package/dist/assets/{confirm-5e46DDlz.js → confirm-DSkTNclg.js} +1 -1
  41. package/dist/assets/{connect-hooMfIaO.js → connect-BKQ09vcI.js} +1 -1
  42. package/dist/assets/{connect-BHDDk939.js → connect-VkcmO-ox.js} +1 -1
  43. package/dist/assets/{connect-to-DfxSuVNx.js → connect-to-D4y7gfX6.js} +1 -1
  44. package/dist/assets/{content-layout--aahhgT-.js → content-layout-CT98QJfh.js} +1 -1
  45. package/dist/assets/{createClass-BuE_i6UP.js → createClass-BxvbX2Fy.js} +1 -1
  46. package/dist/assets/dashboard-CCmzTOat.js +106 -0
  47. package/dist/assets/de-7aojY3wG.js +7 -0
  48. package/dist/assets/{delete-confirm-Bim07gVu.js → delete-confirm-CZyKrY8X.js} +1 -1
  49. package/dist/assets/{did-address-DrmEnz9K.js → did-address-D1KZLP2_.js} +1 -1
  50. package/dist/assets/{domain-D_RRXHNv.js → domain-BLaBUwtN.js} +1 -1
  51. package/dist/assets/{domain-action-card-BTosQrln.js → domain-action-card-CtdHon3A.js} +1 -1
  52. package/dist/assets/domains-C4bCGzUa.js +1 -0
  53. package/dist/assets/{dot-BaR-8Dj-.js → dot-BD1gx_6x.js} +1 -1
  54. package/dist/assets/{email-BCDbiSlJ.js → email-DprB1ao7.js} +2 -2
  55. package/dist/assets/{empty-spinner-D6ajz4La.js → empty-spinner-BMuZ6jkU.js} +1 -1
  56. package/dist/assets/engine-BYtxLgE-.js +1 -0
  57. package/dist/assets/es-CEkR13ZB.js +9 -0
  58. package/dist/assets/{exchange-passport-DIp9EJVY.js → exchange-passport-Ba2lo0my.js} +1 -1
  59. package/dist/assets/{form-BVnHvgNl.js → form-bIhrdHBk.js} +1 -1
  60. package/dist/assets/{form-text-input-x3g3qd72.js → form-text-input-DpFFySn2.js} +1 -1
  61. package/dist/assets/{form-wrapper-DimyA4Kf.js → form-wrapper-CpayHdi1.js} +1 -1
  62. package/dist/assets/fr-Blm8Lvo8.js +7 -0
  63. package/dist/assets/{fuel-Fh-ifxfq.js → fuel-DrfkIg-0.js} +1 -1
  64. package/dist/assets/{gen-access-key-BZufQ91-.js → gen-access-key-CM92my-2.js} +1 -1
  65. package/dist/assets/{gen-simple-access-key-DlPE_0y2.js → gen-simple-access-key-BmVdze52.js} +1 -1
  66. package/dist/assets/get-safe-url-CzyoiDvV.js +1 -0
  67. package/dist/assets/hi-D-gLlKa4.js +5 -0
  68. package/dist/assets/{home-B6em2u64.js → home-vNW_uCnj.js} +1 -1
  69. package/dist/assets/id-Dp1w98Mc.js +7 -0
  70. package/dist/assets/{iframe-Dl-5xRyx.js → iframe-H_M17Rw0.js} +1 -1
  71. package/dist/assets/{index-BituGg_i.js → index-5QMAQjkj.js} +1 -1
  72. package/dist/assets/{index-DIeXMLLs.js → index-9LrJ71wP.js} +1 -1
  73. package/dist/assets/index-B-nFCTvl.js +1 -0
  74. package/dist/assets/{index-B_JPa3k-.js → index-B7WwBeaA.js} +1 -1
  75. package/dist/assets/{index-Eagwj9HU.js → index-BCK2cqC6.js} +1 -1
  76. package/dist/assets/{index-D6ZAoKh5.js → index-BRPXjkAq.js} +1 -1
  77. package/dist/assets/{index-DoJKIwOt.js → index-BaofAoCa.js} +1 -1
  78. package/dist/assets/{index-DLDRrQJH.js → index-BeaB_cKh.js} +1 -1
  79. package/dist/assets/{index-DEDOywis.js → index-Bfm7dO_D.js} +1 -1
  80. package/dist/assets/{index-D6YhMyoB.js → index-Bm3aC1-S.js} +63 -63
  81. package/dist/assets/{index-DscHS5BG.js → index-Bp3op3AB.js} +1 -1
  82. package/dist/assets/{index-YhHgNT9f.js → index-BuOGtUh1.js} +1 -1
  83. package/dist/assets/index-ByXiBZvQ.js +1 -0
  84. package/dist/assets/{index-DZFL6rrK.js → index-CN_vv3DD.js} +1 -1
  85. package/dist/assets/{index-B88jr6sm.js → index-CUl7rwhw.js} +1 -1
  86. package/dist/assets/{index-DraljbB7.js → index-CUtbL7Pc.js} +9 -9
  87. package/dist/assets/{index-Cq-4YOTs.js → index-Co2hRThu.js} +1 -1
  88. package/dist/assets/{index-DmgU5YEy.js → index-CzWvmP1s.js} +1 -1
  89. package/dist/assets/{index-ckUPtmoF.js → index-D7O86bEq.js} +2 -2
  90. package/dist/assets/{index-DTuL5S3g.js → index-DKqTApAY.js} +1 -1
  91. package/dist/assets/{index-CkuzlAat.js → index-DZqnYK-R.js} +1 -1
  92. package/dist/assets/{index-1-P2gWGZ.js → index-DefvhIEx.js} +1 -1
  93. package/dist/assets/{index-W7Vsgxmq.js → index-DhpSUbJa.js} +19 -19
  94. package/dist/assets/{index-CC1_0xzr.js → index-Du6WLi38.js} +4 -4
  95. package/dist/assets/{index-B6RoOcNF.js → index-DuiAdMaP.js} +1 -1
  96. package/dist/assets/{index-h4nZrNlX.js → index-IQj51U6i.js} +1 -1
  97. package/dist/assets/{index-BFAR00t8.js → index-Vc0vthSd.js} +1 -1
  98. package/dist/assets/index-ZAHGzjDt.js +124 -0
  99. package/dist/assets/{index-CiFQnBvO.js → index-aJi9Bf-D.js} +1 -1
  100. package/dist/assets/{index-Ca2q4nT6.js → index-j-o7Fhl2.js} +1 -1
  101. package/dist/assets/{index-DiW2Y89J.js → index-six7TSvm.js} +10 -10
  102. package/dist/assets/{index-D8gGAVdB.js → index-vq54lJAL.js} +1 -1
  103. package/dist/assets/{invitation-ygFxiD0p.js → invitation-BsCAwa_S.js} +6 -6
  104. package/dist/assets/invite-BgoFaNhy.js +1 -0
  105. package/dist/assets/{isURL-CTW__dzu.js → isURL-BpO9T7jO.js} +1 -1
  106. package/dist/assets/issue-passport-BukWrnf4.js +1 -0
  107. package/dist/assets/{item-BpwJ2QYy.js → item-lF1pMg0y.js} +1 -1
  108. package/dist/assets/ja-DYfvAc_h.js +9 -0
  109. package/dist/assets/ko-DeeF0knw.js +9 -0
  110. package/dist/assets/{landing-page-Cd61UT7Z.js → landing-page-Bje6A6LW.js} +1 -1
  111. package/dist/assets/{launch-result-message-C7170Bvt.js → launch-result-message-DDqxU5ge.js} +1 -1
  112. package/dist/assets/{layout-Bf7XRYSR.js → layout-ffvsYKlt.js} +1 -1
  113. package/dist/assets/{list-BHhWPWs4.js → list-D1xRxqmd.js} +2 -2
  114. package/dist/assets/{list-A-6ZKqgn.js → list-d3KGpyvC.js} +1 -1
  115. package/dist/assets/{list-header-X0CL-_hO.js → list-header-BDPLDqO-.js} +1 -1
  116. package/dist/assets/localization-D8EUC9hz.js +1 -0
  117. package/dist/assets/{log-ryKQFCdM.js → log-DaUV-KQg.js} +1 -1
  118. package/dist/assets/logger-BkCCiTnd.js +1 -0
  119. package/dist/assets/{login-CYXIFDX8.js → login-C_FzEtDr.js} +1 -1
  120. package/dist/assets/{login-oauth-callback-DAKrg2Ne.js → login-oauth-callback-Br-fBLIM.js} +1 -1
  121. package/dist/assets/{logo-uploader-DDncXmM_.js → logo-uploader-DpVGDA9S.js} +2 -2
  122. package/dist/assets/{lost-passport-DEoDgh2I.js → lost-passport-7dfs_oPd.js} +1 -1
  123. package/dist/assets/{observability-DVi-zwiF.js → observability-C5Y6fafw.js} +1 -1
  124. package/dist/assets/{omit-8QDODHip.js → omit-DDVAqzZq.js} +1 -1
  125. package/dist/assets/{open-window-eYnS4Amh.js → open-window-DZM6BqqN.js} +1 -1
  126. package/dist/assets/{over-due-invoice-payment-CnaSUbBp.js → over-due-invoice-payment-UPFNS992.js} +1 -1
  127. package/dist/assets/{overview-BbhCPjub.js → overview-D-k9QnCr.js} +1 -1
  128. package/dist/assets/{page-header-1pVKKoSa.js → page-header-B9Q5ZOnJ.js} +1 -1
  129. package/dist/assets/{passport-item-CPGYYOeu.js → passport-item-tw8M12dr.js} +1 -1
  130. package/dist/assets/{permission-B0EjzZOA.js → permission-tgoZwbT0.js} +1 -1
  131. package/dist/assets/{playground-CveQRqPB.js → playground-DUuQxqZF.js} +1 -1
  132. package/dist/assets/preferences-BzGoZ4H7.js +1 -0
  133. package/dist/assets/profile-embed-UV7c2kes.js +1 -0
  134. package/dist/assets/pt-B2XwgtkL.js +5 -0
  135. package/dist/assets/publish-resource-DzuGaf5F.js +1 -0
  136. package/dist/assets/{react-beautiful-dnd.esm-CdYP6hjZ.js → react-beautiful-dnd.esm-Bn1B6RSE.js} +1 -1
  137. package/dist/assets/{react-stripe.esm-3alxb6kT.js → react-stripe.esm-DlCFj5cL.js} +1 -1
  138. package/dist/assets/{required-qTx6pgJa.js → required-mwCee7dE.js} +1 -1
  139. package/dist/assets/ru-BQnkoIIE.js +5 -0
  140. package/dist/assets/runtime-tLrFToGI.js +1 -0
  141. package/dist/assets/{sanitize-BSjwjSMl.js → sanitize-d0BswqQy.js} +1 -1
  142. package/dist/assets/sdk-Dli060me.js +1 -0
  143. package/dist/assets/{section-DLNNkzJC.js → section-DkbgrVvQ.js} +1 -1
  144. package/dist/assets/{security-DzpCKO8Z.js → security-Chcv4uGK.js} +3 -3
  145. package/dist/assets/{session-fyUi2EvV.js → session-XtuHaexA.js} +1 -1
  146. package/dist/assets/setup-DT83Wy3z.js +30 -0
  147. package/dist/assets/{shorten-label-C8Cay9FW.js → shorten-label-CzJmma8P.js} +1 -1
  148. package/dist/assets/{simple-select-DCCkM3zE.js → simple-select-WHx-v2hU.js} +1 -1
  149. package/dist/assets/{spaces-Ci_JwPPC.js → spaces-Bz3V0eYU.js} +1 -1
  150. package/dist/assets/{start-CvpuRdlI.js → start-Cvh2uD-h.js} +1 -1
  151. package/dist/assets/{starting-progress-4SearER_.js → starting-progress-DGPdZeyx.js} +1 -1
  152. package/dist/assets/{status-BYn5dcxB.js → status-DRg5cWiY.js} +1 -1
  153. package/dist/assets/{step-actions-vNi6kxQk.js → step-actions-DreWQ64q.js} +1 -1
  154. package/dist/assets/{studio-CU2xUA6B.js → studio-qLDw0ukd.js} +1 -1
  155. package/dist/assets/{switch-control-Cd3JbWWV.js → switch-control-CjKF-gAU.js} +1 -1
  156. package/dist/assets/{table-tips-3_n5uR-X.js → table-tips-Bb8itsxN.js} +1 -1
  157. package/dist/assets/{team-Bxi69lmr.js → team-CDSer28u.js} +5 -5
  158. package/dist/assets/th-x7kvDKZJ.js +5 -0
  159. package/dist/assets/{traffic-5kSM9zFo.js → traffic-CUT8PqO4.js} +1 -1
  160. package/dist/assets/{transfer-1mPm3DHh.js → transfer-YfQr5dnn.js} +1 -1
  161. package/dist/assets/{unsubscribe-BHRGSL9f.js → unsubscribe-Bzl4TSbX.js} +1 -1
  162. package/dist/assets/{use-mobile-B9FM-UBY.js → use-mobile-D0T_V7RQ.js} +1 -1
  163. package/dist/assets/{use-mobile-BC9t6zmM.js → use-mobile-IWOBvgsY.js} +1 -1
  164. package/dist/assets/{use-promise-window-open-DzOXAig9.js → use-promise-window-open-D_ahP8Mz.js} +1 -1
  165. package/dist/assets/{use-server-logo-xLbI9v7G.js → use-server-logo-CUO3ZK3W.js} +1 -1
  166. package/dist/assets/{use-window-close-CleYtwbz.js → use-window-close-Cp670vvd.js} +1 -1
  167. package/dist/assets/{useAsync-BdgUavMa.js → useAsync-CQhKDImp.js} +1 -1
  168. package/dist/assets/{useAsync-DgPr_To1.js → useAsync-VHQLt8EO.js} +1 -1
  169. package/dist/assets/{useLocalStorage-Dgwq5dGM.js → useLocalStorage-DVoRz1Om.js} +1 -1
  170. package/dist/assets/user-center-C1W41jVp.js +126 -0
  171. package/dist/assets/{user-sessions-CFuRw6Kk.js → user-sessions-DeUIUEmh.js} +1 -1
  172. package/dist/assets/{util-CxrGdmDd.js → util-C7XciGgo.js} +1 -1
  173. package/dist/assets/{util-DhFzZqQY.js → util-PB33gwP1.js} +1 -1
  174. package/dist/assets/{vendor-arcblock-BnbwP1kf.js → vendor-arcblock-t44X0l6F.js} +1 -1
  175. package/dist/assets/{vendor-hooks-DTeIFVkk.js → vendor-hooks-B2bT6Nqf.js} +1 -1
  176. package/dist/assets/{vendor-mui-core-CcrDM-5l.js → vendor-mui-core-Bw-IjQ9m.js} +1 -1
  177. package/dist/assets/{vendor-mui-x-BVRWKjdg.js → vendor-mui-x-CuLvhfRb.js} +14 -14
  178. package/dist/assets/{vendor-utils-BOkrEpKO.js → vendor-utils-B4mliPf7.js} +1 -1
  179. package/dist/assets/{vendor-ux-CUBj5GXM.js → vendor-ux-DcEgaaV8.js} +3 -3
  180. package/dist/assets/vi-CT5pkl6Q.js +5 -0
  181. package/dist/assets/{wait-connect-Cht9WKDH.js → wait-connect-DrZC6ybw.js} +1 -1
  182. package/dist/assets/wrap-locale-zQpfFxI2.js +1 -0
  183. package/dist/assets/zh-ATukbAXz.js +10 -0
  184. package/dist/assets/{zh-IccOJN0P.js → zh-Cc55bM2s.js} +1 -1
  185. package/dist/assets/zh-tw-dw7nLLI_.js +9 -0
  186. package/dist/index.html +6 -6
  187. package/dist/service-worker.js +1 -1
  188. package/package.json +35 -34
  189. package/dist/assets/AdapterDayjs-BEkLDdDJ.js +0 -3
  190. package/dist/assets/aigne-B2kmHT_s.js +0 -10
  191. package/dist/assets/api-Rnh95Dt4.js +0 -1
  192. package/dist/assets/ar-7eC8LKj2.js +0 -7
  193. package/dist/assets/authorize-DqbV7Yj5.js +0 -1
  194. package/dist/assets/button-CPgviFPs.js +0 -1
  195. package/dist/assets/config-yxcrU66X.js +0 -26
  196. package/dist/assets/dashboard-DaKd1daE.js +0 -106
  197. package/dist/assets/de-DgwOa_mf.js +0 -7
  198. package/dist/assets/domains-BV1O_rDN.js +0 -1
  199. package/dist/assets/engine-BVHpout7.js +0 -1
  200. package/dist/assets/es-B_gBSKp3.js +0 -9
  201. package/dist/assets/fr-Bm0AhLrO.js +0 -7
  202. package/dist/assets/get-safe-url-D9ZX2qFm.js +0 -1
  203. package/dist/assets/hi-DO31L4at.js +0 -5
  204. package/dist/assets/id-BYCjnoK8.js +0 -7
  205. package/dist/assets/index-467tNKTx.js +0 -124
  206. package/dist/assets/index-7fdKVdEw.js +0 -1
  207. package/dist/assets/index-pvfQRiIz.js +0 -1
  208. package/dist/assets/invite-DMpU1WKR.js +0 -1
  209. package/dist/assets/issue-passport-CH_GIDha.js +0 -1
  210. package/dist/assets/ja-Ck2EVKeO.js +0 -9
  211. package/dist/assets/ko-Nk_6p6Jl.js +0 -9
  212. package/dist/assets/localization-D1S2pks-.js +0 -1
  213. package/dist/assets/logger-MoQC3rmC.js +0 -1
  214. package/dist/assets/preferences-CoP65AxI.js +0 -1
  215. package/dist/assets/profile-embed-CdAkuRfH.js +0 -1
  216. package/dist/assets/pt-C-JzkWqR.js +0 -5
  217. package/dist/assets/publish-resource-O6nixlJ9.js +0 -1
  218. package/dist/assets/ru-DR6is0tr.js +0 -5
  219. package/dist/assets/runtime-lAc0mbn0.js +0 -1
  220. package/dist/assets/sdk-CiRRFKs0.js +0 -1
  221. package/dist/assets/setup-BtNJlN-g.js +0 -30
  222. package/dist/assets/th-Cn3755Vi.js +0 -5
  223. package/dist/assets/user-center-D7U8E_9U.js +0 -126
  224. package/dist/assets/vi-7MIaoDt9.js +0 -5
  225. package/dist/assets/wrap-locale-CnZSJgmv.js +0 -1
  226. package/dist/assets/zh-DswrR4Lx.js +0 -10
  227. package/dist/assets/zh-tw-De_IfliP.js +0 -9
@@ -0,0 +1,106 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/log-DaUV-KQg.js","assets/vendor-mui-core-Bw-IjQ9m.js","assets/vendor-react-Dvs43sk9.js","assets/useLocalStorage-DVoRz1Om.js","assets/vendor-ux-DcEgaaV8.js","assets/vendor-utils-B4mliPf7.js","assets/vendor-hooks-B2bT6Nqf.js","assets/lottie-web-4koyQiv_.js","assets/vendor-ux-DYcPPYq2.css","assets/index-Bm3aC1-S.js","assets/vendor-arcblock-t44X0l6F.js","assets/index-DrVXX4fX.css","assets/bundle-avatar-EjC4ul9m.js","assets/log-1sZ_L4eJ.css","assets/index-six7TSvm.js","assets/index-j-o7Fhl2.js","assets/user-sessions-DeUIUEmh.js","assets/index-BuOGtUh1.js","assets/did-address-D1KZLP2_.js","assets/team-CDSer28u.js","assets/session-XtuHaexA.js","assets/isURL-BpO9T7jO.js","assets/permission-tgoZwbT0.js","assets/click-to-copy-BAVxsRT1.js","assets/index-ByXiBZvQ.js","assets/arrow-down.svg-CTyHGzaE.js","assets/vendor-mui-x-CuLvhfRb.js","assets/AdapterDayjs-BN6xrcXw.js","assets/index-DBs9Ljax.js","assets/useAsync-VHQLt8EO.js","assets/useAsync-CQhKDImp.js","assets/index-Bfm7dO_D.js","assets/confirm-DSkTNclg.js","assets/index-DKqTApAY.js","assets/util-PB33gwP1.js","assets/base32-CiFWWnw3.js","assets/sdk-Dli060me.js","assets/actions-CJMVMPKl.js","assets/shorten-label-CzJmma8P.js","assets/get-safe-url-CzyoiDvV.js","assets/dot-BD1gx_6x.js","assets/useSetState-DFuQZPPV.js","assets/index-CUl7rwhw.js","assets/over-due-invoice-payment-UPFNS992.js","assets/use-mobile-D0T_V7RQ.js","assets/index-BCK2cqC6.js","assets/use-mobile-IWOBvgsY.js","assets/index.esm-JPZAjt0x.js","assets/table-tips-Bb8itsxN.js","assets/index-Du6WLi38.js","assets/empty-spinner-BMuZ6jkU.js","assets/list-header-BDPLDqO-.js","assets/question-mark-circle.svg-B4stD6SS.js","assets/engine-BYtxLgE-.js","assets/api-B6VBwg-Z.js","assets/react-beautiful-dnd.esm-Bn1B6RSE.js","assets/raf-schd.esm-CHNehTG3.js","assets/use-promise-window-open-D_ahP8Mz.js","assets/wait-connect-DrZC6ybw.js","assets/item-lF1pMg0y.js","assets/delete-confirm-CZyKrY8X.js","assets/index-DZqnYK-R.js","assets/index-Vc0vthSd.js","assets/index-gnjjKJuC.css","assets/index-BaofAoCa.js","assets/overview-D-k9QnCr.js","assets/keyboard-arrow-down-rounded-8U0_i9QO.js","assets/index-BojVbZw0.js","assets/status-DRg5cWiY.js","assets/omit-DDVAqzZq.js","assets/spaces-Bz3V0eYU.js","assets/domains-C4bCGzUa.js","assets/domain-action-card-CtdHon3A.js","assets/util-C7XciGgo.js","assets/index-CUtbL7Pc.js","assets/passport-item-tw8M12dr.js","assets/index-vq54lJAL.js","assets/Google-BfPT9Xh-.js","assets/cloneDeep-Bp5oPxU3.js","assets/edit.svg-DycWG9v3.js","assets/lock.svg-COUP8tyO.js","assets/appearance-DoL2p8uj.js","assets/audit-logs-CYCXwJKF.js","assets/index-DuiAdMaP.js","assets/section-DkbgrVvQ.js","assets/required-mwCee7dE.js","assets/collapse-C3V-lD7M.js","assets/list-d3KGpyvC.js","assets/server-logo-notext.svg-CKQB0tIp.js","assets/traffic-CUT8PqO4.js","assets/iframe-H_M17Rw0.js","assets/index-aJi9Bf-D.js","assets/base-chart-Bq5ougoU.js","assets/index-BeaB_cKh.js","assets/config-navigation-Cr1v50S5.js","assets/index-BPy8_fa2.js","assets/createClass-BxvbX2Fy.js","assets/simple-select-WHx-v2hU.js","assets/index-DefvhIEx.js","assets/index-Bp3op3AB.js","assets/index-D7O86bEq.js","assets/index-DRYJ0xIl.js","assets/connect-to-D4y7gfX6.js","assets/config-space-OVPR-H3Q.js","assets/switch-control-CjKF-gAU.js","assets/index-CN_vv3DD.js","assets/index-Co2hRThu.js","assets/security-Chcv4uGK.js","assets/config-B6qd-J_H.js","assets/branding-BHOpQPVg.js","assets/sanitize-d0BswqQy.js","assets/form-text-input-DpFFySn2.js","assets/form-wrapper-CpayHdi1.js","assets/logo-uploader-DpVGDA9S.js","assets/advanced-BnXe4cqK.js","assets/runtime-tLrFToGI.js","assets/index-BRPXjkAq.js","assets/list-D1xRxqmd.js","assets/index-CzWvmP1s.js","assets/config-FumbXhpa.js","assets/empty-DhZfJeme.js","assets/observability-C5Y6fafw.js","assets/playground-DUuQxqZF.js","assets/component-CDAFdcnx.js","assets/add-component-core-B_I64xA8.js","assets/launch-result-message-DDqxU5ge.js","assets/page-header-B9Q5ZOnJ.js","assets/index-5QMAQjkj.js","assets/content-layout-CT98QJfh.js","assets/search-4YYphs0l.js","assets/add-component-core-G0iZE90Q.css","assets/index-B7WwBeaA.js"])))=>i.map(i=>d[i]);
2
+ import{b as en,n as mt,H as F,T as z,ar as tn,as as mo,M as nn,a0 as ho,I as go,E as bo,h as xo,G as yo,_}from"./vendor-ux-DcEgaaV8.js";import{j as a,W as w,aZ as vo,cM as So,cQ as wo,ca as jo,cR as Co,cS as Eo,cO as ko,cT as Io,cU as _o,cV as To,I as ht,aQ as Do,aR as Lo,aX as gt,a3 as Ao,M as Po,aO as Ro,a6 as H,aP as Mo,bg as Oo,at as Oe,T as se,bp as No,b6 as kt,bq as It,ak as I,D as Ne,J as de,ah as Ue,ao as Uo,cW as $o,aj as Bo,cX as on,cY as rn,cZ as sn,a$ as ke,am as De,c_ as _t,U as G,aN as an,bZ as Fo,c$ as zo,d0 as Vo,Q as Ho,d1 as Wo}from"./vendor-mui-core-Bw-IjQ9m.js";import{r as x,L as cn,i as ln,g as qo,k as Ko,j as Go}from"./vendor-react-Dvs43sk9.js";import{U as $e,f as N,R as We,a9 as qe,c as P,T as Tt,bc as Qo,af as Zo,a1 as Xo,v as Jo,bd as Yo,be as un,ad as ee,bf as dn,aK as er,bg as tr,Q as nr,a_ as or,a$ as rr,bh as sr,b0 as ir,bi as ar,bj as cr,a8 as lr,bk as Ke,bl as ur,bm as dr,aZ as fr,m as fe,$ as pr,k as mr,a3 as hr,a as gr,n as Dt,bn as Lt,i as br,l as xr,r as yr,p as oe,o as vr,q as Sr,P as wr,E as jr,ap as Cr,at as Er,bo as kr,aq as Ir,d as At,t as _r}from"./index-Bm3aC1-S.js";import{a5 as Tr,C as Q,J as Dr}from"./vendor-utils-B4mliPf7.js";import{o as Le}from"./vendor-arcblock-t44X0l6F.js";import{u as Pt}from"./useLocalStorage-DVoRz1Om.js";import{f as bt}from"./index-DBs9Ljax.js";import{C as Rt}from"./confirm-DSkTNclg.js";import{g as Mt}from"./get-safe-url-CzyoiDvV.js";import{u as fn}from"./session-XtuHaexA.js";import{a as ie,l as Lr}from"./vendor-hooks-B2bT6Nqf.js";import{k as Ar,c as Pr,M as Rr,b as Mr,T as Or,N as Nr}from"./team-CDSer28u.js";import{u as pn,D as Ur}from"./dot-BD1gx_6x.js";import{u as mn}from"./useSetState-DFuQZPPV.js";import{u as $r,d as Br}from"./index-CUl7rwhw.js";import{O as Fr}from"./over-due-invoice-payment-UPFNS992.js";import{u as zr}from"./use-mobile-D0T_V7RQ.js";const hn=x.createContext({});function gn({children:e,type:t="blocklets"}){const[n,r]=x.useState([]),o=x.useRef([]),s=l=>{if(!o.current.includes(l)){const u=[...o.current,l];r(u),o.current=u}},i=l=>{if(o.current.includes(l)){const u=o.current.filter(d=>d!==l);r(u),o.current=u}},c=l=>{const u=n.filter(p=>l.find(f=>f===p));Tr(u,n).forEach(p=>i(p))};return a.jsx(hn.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:s,removeDeletingDid:i,matchDeletingDid:c},children:e})}gn.propTypes={type:w.string,children:w.node.isRequired};function Ha(){return x.useContext(hn)}const Vr=e=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})),Y={Start:vo,Stop:So,Restart:wo,Reload:To,Remove:jo,Config:_o,Log:Io,Group:ko,Cancel:Co,Dashboard:Vr,Overview:Eo},Hr=(e,t)=>{if(!e)return"";if(!t)return e;const n=new URL(e),r=new URLSearchParams(n.searchParams),o=new URL(Q(n.origin,t));return o.search=r.toString(),o.toString()},Wr="internal",qr="external";function bn({blocklet:e,onStart:t,onComplete:n,variant:r="menu",hasPermission:o=!1,getComponentUrl:s=null,useBlockletUrlEvaluation:i=()=>({loading:!1,recommendedUrl:window?.location?.href}),...c}){const l=$e(),[u,d]=x.useState(null),[p,f]=x.useState(null),[g,b]=x.useState(!1),[m,C]=x.useState(null),{t:v}=x.useContext(en),[j]=Pt("skip-blocklet-setup",!1),{loading:S,recommendedUrl:k}=i(e),[E]=Pt("blocklet-type-filter",Wr),h=N.isInProgress(e.status),[T,M]=x.useState(!1);x.useEffect(()=>{if(!e?.controller)return;M(e?.controller?.status?.value===We.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{try{const D=await l.api.getLauncherSession({input:{launcherSessionId:e?.controller?.launcherSessionId,launcherUrl:e?.controller?.launcherUrl}});if(D?.error){console.error("get launcher session failed",D.error);return}M([P.LAUNCH_SESSION_STATUS.overdue,P.LAUNCH_SESSION_STATUS.canceled,P.LAUNCH_SESSION_STATUS.terminated].includes(D?.launcherSession?.status))}catch(D){console.error("call getLauncherSession error",D)}})()},[]);const{inService:R}=l,O=(y,D,q=!1)=>async()=>{const K=async ve=>{t({action:y,blocklet:e}),b(!0),f(y);let Se=!1;try{if(y==="remove")await D(ve);else if(y==="start"){if(!N.hasRunnableComponent(e)){F.error(v("blocklet.noComponent"));return}if(!R&&!j&&!e.settings?.initialized&&e.mode!==We.BLOCKLET_MODES.DEVELOPMENT){if(!k||!Tt(k)){F.error(v("blocklet.gotoVisitError"));return}const U=Qo(l.info),Et=new URL(k);Et.searchParams.set("serverUrl",U),window.open(Mt(Et.href,{allowDomains:null})),n({action:y,blocklet:e});return}const B=e.children.filter(U=>!N.isInProgress(U.status)&&U.status!=="running").map(U=>U.meta.did),J={did:e.meta.did,componentDids:B};await D({input:J})}else if(["stop","restart","reload"].includes(y)){const B=e.children.filter(U=>U.status==="running").map(U=>U.meta.did),J={did:e.meta.did,componentDids:B};await D({input:J})}else{const B={did:e.meta.did};await D({input:B})}y==="remove"?Se=!0:await Zo(1e3),y==="reload"&&F.success(v("blocklet.reloadSuccess")),C(null),n({action:y,blocklet:e})}catch(B){const J=`Blocklet ${y} failed: ${bt(B)}`;throw n({action:y,blocklet:e,error:new Error(J)}),new Error(J)}finally{Se||b(!1)}},xe=()=>{b(!1),C(null)},ye=N.getDisplayName(e,!0),fo=e.mode===We.BLOCKLET_MODES.DEVELOPMENT?{description:()=>a.jsx(se,{component:"div",children:a.jsx(se,{gutterBottom:!0,children:v("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(ve,Se)=>a.jsxs(se,{component:"div",children:[a.jsx(se,{gutterBottom:!0,children:v("blocklet.action.removeApplicationDescription")}),a.jsxs(No,{name:"removeType",value:ve.removeType,onChange:B=>Se({...ve,removeType:B.target.value}),children:[a.jsx(kt,{value:"backup",control:a.jsx(It,{}),label:v("blocklet.action.removeApplicationAfterBackup")}),a.jsx(kt,{value:"complete",control:a.jsx(It,{}),label:v("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},po={stop:{title:`${v("common.stop")} ${ye}`,description:v("blocklet.action.stopDescription"),confirm:v("blocklet.action.confirmStop"),cancel:v("common.cancel"),onConfirm:K,onCancel:xe},restart:{title:`${v("common.restart")} ${ye}`,description:v("blocklet.action.restartDescription"),confirm:v("blocklet.action.confirmRestart"),cancel:v("common.cancel"),onConfirm:K,onCancel:xe},remove:{title:`${v("common.remove")} ${ye}`,confirm:v("blocklet.action.confirmRemove"),cancel:v("common.cancel"),onConfirm:K,onCancel:xe,...fo},cancelDownload:{title:`${v("common.cancel")}`,description:v("blocklet.action.cancelDownloadDescription",{name:ye}),confirm:v("common.confirm"),cancel:v("common.cancel"),onConfirm:K,onCancel:xe}};q?C(po[y]):await K()},He=!!u,so=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}d(y.currentTarget)},io=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}d(null)},Ct=async(y,D)=>{try{D.stopPropagation(),D.preventDefault()}catch{}if(typeof y.handler=="function")try{b(!0),f(y.action),await y.handler()}catch(q){console.error(`Blocklet ${y.name} failed: `,q)}finally{b(!1),d(null)}else d(null)},ao=!R&&N.isDeletableBlocklet(e)?{action:"remove",icon:Y.Remove,name:v("common.remove"),handler:O("remove",async({removeType:y})=>{y==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:h}:null,co={action:"remove",icon:({sx:y,...D})=>a.jsx(Y.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...D}),name:v("common.cancel"),handler:O("cancelDownload",l.api.cancelDownloadBlocklet,!0)},lo=N.getAppMissingConfigs(e),uo=()=>{const y=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=s?.({mountPoint:y,blocklet:e});if(!D||!Tt(D)){F.error(v("blocklet.gotoVisitError"));return}const q=e?.site?.domainAliases;window.open(Mt(Hr(D,`${P.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`),{allowDomains:q?.map(K=>K.value)}))};let be=[{action:"start",icon:Y.Start,inExternal:!0,name:v("common.start"),handler:O("start",l.api.startBlocklet),disabled:T||e.children.every(y=>y.status==="running")||qe(e.status)||S||h},{action:"stop",icon:Y.Stop,inExternal:!0,name:v("common.stop"),handler:O("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:Y.Restart,name:v("common.restart"),handler:O("restart",l.api.restartBlocklet,!0),disabled:T||e.status!=="running"},qe(e.status)?co:ao,{separator:!0},R?null:{action:"dashboard",icon:({style:y,...D})=>a.jsx(Y.Dashboard,{...D,style:{...y,width:"26px",height:"26px",paddingRight:"3px"}}),name:v("sidebar.dashboard"),handler:uo}].filter(Boolean);return E===qr&&(be=be.filter(y=>y.inExternal)),r==="menu"?a.jsxs(Ot,{"data-cy":"blocklet-actions",children:[a.jsx(ht,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:so,size:"small",disabled:!o||!qe(e.status)&&g,children:a.jsx(Do,{})}),a.jsxs(Lo,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:He,onClose:io,PaperProps:{},children:[lo.length>0&&a.jsxs(gt,{style:{maxWidth:"400px"},severity:"error",children:[v("blocklet.config.missingRequired"),a.jsx("br",{}),a.jsx(cn,{to:`/blocklets/${e.meta.did}/components`,children:v("blocklet.config.gotoFix")})]}),be.map((y,D)=>y.separator?a.jsx(Ao,{},`separator-${D}`):a.jsxs(Po,{dense:!0,onClick:q=>Ct(y,q),disabled:g||y.disabled,"data-cy":`${y.action}-blocklet`,children:[a.jsx(Ro,{style:{minWidth:24},children:p===y.action&&g?a.jsx(H,{size:16,sx:{marginRight:1}}):a.jsx(y.icon,{fontSize:"small"})}),a.jsx(Mo,{primary:y.name})]},y.name))]}),m&&a.jsx(Rt,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):a.jsxs(Ot,{"data-cy":"blocklet-actions",...c,children:[a.jsx(Oo,{children:be.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>a.jsxs(mt,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>Ct(y),disabled:!!y.disabled||g,children:[p===y.action&&g?a.jsx(H,{size:16,sx:{marginRight:1}}):a.jsx(y.icon,{}),a.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),m&&a.jsx(Rt,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}bn.propTypes={getComponentUrl:w.func,blocklet:w.object.isRequired,onStart:w.func.isRequired,onComplete:w.func.isRequired,variant:w.oneOf(["menu","group"]),hasPermission:w.bool,useBlockletUrlEvaluation:w.func};const Ot=Oe.div`
3
+ display: flex;
4
+ align-items: center;
5
+
6
+ @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
7
+ .MuiButton-root {
8
+ padding: 4px;
9
+ font-size: 10px;
10
+ }
11
+ }
12
+ `,Nt=x.memo(bn),Kr=e=>{const t={};let n=null;return N.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=N.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},Gr=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],u=((t.site?.domainAliases||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(P.DEFAULT_DID_DOMAIN))||"").replace(`.${P.DEFAULT_DID_DOMAIN}`,"");return u?o.replace(r,`${u}-${c}.${P.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Qr(){const{t:e}=z(),{api:t}=fn(),{blocklet:n}=Xo(),{inService:r}=$e(),[o,s]=x.useState(!1),[i,c]=x.useState(5),l=n&&n.structVersion!==P.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){F.error(e("blocklet.migrate.tip.running"));return}const f=Kr(n);if(f){F.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){F.error(bt(f))}},d=()=>{const f=Gr(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(g=>g-1)},1e3)},p=()=>s(!1);return[l&&a.jsxs(gt,{severity:"warning",style:{margin:"12px 0"},children:[a.jsxs(I,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(mt,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),a.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>a.jsx(I,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&a.jsx(Jo,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Yo(n,!0),title:N.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:p},"connect")]}function Zr(){const e=Ne();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const o=de(e.breakpoints.up(r));return!n&&o?r:n},null)||"xs"}function Xr(e){return a.jsx(Ue,{...e,children:a.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})})}function Jr(e){return a.jsx(Ue,{...e,children:a.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Yr(e){return a.jsx(Ue,{...e,children:a.jsx("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})})}function es(e){return a.jsx(Ue,{...e,children:a.jsx("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z"})})}const we={fontSize:20,marginInlineEnd:8},ts={success:a.jsx(Xr,{style:we}),warning:a.jsx(Jr,{style:we}),error:a.jsx(Yr,{style:we}),info:a.jsx(es,{style:we})},ns={xl:"400px",lg:"400px",md:"400px",sm:"300px"};function xn({keyId:e,notification:t={},viewAllUrl:n,content:r=null},o){const s=Ne(),i=ts[t.severity],{closeSnackbar:c}=tn(),l=()=>c(e),u=ln(),d=()=>{c(e),u(n)},p=ie(()=>Ar(t),[t]),f=ie(()=>t?.activity,[t]),g=Pr({activity:f,users:[t?.actorInfo],actors:[t?.activity?.actor],extra:{linkColor:s.palette.primary.main,userDid:t?.receivers?.[0]?.did}}),b=Zr();return a.jsxs(I,{component:mo,ref:o,sx:[{...s.typography.body2,display:"flex",backgroundColor:s.palette.background.default,color:"#fff",alignItems:"center",pl:2.5,pr:2,py:.75,borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",width:ns[b]},t.severity==="success"?{backgroundColor:`${Uo[600]} !important`}:{},t.severity==="error"?{backgroundColor:`${s.palette.error.dark} !important`}:{},t.severity==="info"?{backgroundColor:`${s.palette.primary.main} !important`}:{},t.severity==="warning"?{backgroundColor:`${$o[700]} !important`}:{}],children:[a.jsxs(I,{sx:{display:"flex",alignItems:"center",py:1,flex:1},children:[i,a.jsx(rs,{onClick:d,sx:{flex:1},children:a.jsx(I,{children:p?a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"title",children:g}),f.meta?a.jsx(Rr,{meta:f.meta,type:f.type,sx:{display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:"#fff"}}):null]}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"title",children:t.title}),r||a.jsx("span",{className:"desc",children:t.description})]})})})]}),a.jsx(I,{sx:{display:"flex",alignItems:"center",ml:"auto",mr:-1,width:44},children:a.jsx(ht,{"aria-label":"close",color:"inherit",onClick:l,size:"large",children:a.jsx(I,{component:Bo,sx:{fontSize:20}})},"close")})]})}const os=x.forwardRef(xn);xn.propTypes={viewAllUrl:w.string.isRequired,keyId:w.number.isRequired,notification:w.object.isRequired,content:w.node};const rs=Oe.div`
13
+ cursor: pointer;
14
+ display: flex;
15
+ flex-direction: column;
16
+ .title {
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ display: -webkit-box;
20
+ -webkit-line-clamp: 1;
21
+ -webkit-box-orient: vertical;
22
+ font-weight: bold;
23
+ }
24
+ .desc {
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ display: -webkit-box;
28
+ -webkit-line-clamp: 3;
29
+ -webkit-box-orient: vertical;
30
+ word-break: break-word;
31
+ }
32
+ `;var L=function(t,n,r){return on.call(n,"css")?a.jsx(rn,sn(t,n),r):a.jsx(t,n,r)},je=function(t,n,r){return on.call(n,"css")?a.jsxs(rn,sn(t,n),r):a.jsxs(t,n,r)};/**
33
+ * (c) Iconify
34
+ *
35
+ * For the full copyright and license information, please view the license.txt or license.gpl.txt
36
+ * files at https://github.com/iconify/iconify
37
+ *
38
+ * Licensed under MIT.
39
+ *
40
+ * @license MIT
41
+ * @version 3.1.1
42
+ */const yn=Object.freeze({left:0,top:0,width:16,height:16}),Ae=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),pe=Object.freeze({...yn,...Ae}),ot=Object.freeze({...pe,body:"",hidden:!1});function ss(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Ut(e,t){const n=ss(e,t);for(const r in ot)r in Ae?r in e&&!(r in n)&&(n[r]=Ae[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function is(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function as(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Ut(r[c]||o[c],s)}return i(t),n.forEach(i),Ut(e,s)}function cs(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=is(e);for(const o in r){const s=r[o];s&&(t(o,as(e,o,s)),n.push(o))}return n}const ae=/^[a-z0-9]+(-[a-z0-9]+)*$/,ne=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!Ie(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Ie(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!Ie(c,n)?null:c}return null},Ie=(e,t)=>e?!!((e.provider===""||e.provider.match(ae))&&(t&&e.prefix===""||e.prefix.match(ae))&&e.name.match(ae)):!1,ls={provider:"",aliases:{},not_found:{},...yn};function Ge(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function us(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ge(e,ls))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(ae)||typeof s.body!="string"||!Ge(s,ot))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(ae)||typeof i!="string"||!n[i]&&!r[i]||!Ge(s,ot))return null}return t}const Pe=Object.create(null);function ds(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function $(e,t){const n=Pe[e]||(Pe[e]=Object.create(null));return n[t]||(n[t]=ds(e,t))}function xt(e,t){return us(t)?cs(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function fs(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function ps(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Pe)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Pe[o]||{})).forEach(i=>{const c=$(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let yt=!1;function ms(e){return yt}function me(e){const t=typeof e=="string"?ne(e,!0,yt):e;if(t){const n=$(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function hs(e,t){const n=ne(e,!0,yt);if(!n)return!1;const r=$(n.provider,n.prefix);return fs(r,n.name,t)}function vn(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Ie({provider:t,prefix:n,name:"a"}))return!1;const r=$(t,n);return!!xt(r,e)}function gs(e){return!!me(e)}function bs(e){const t=me(e);return t?{...pe,...t}:null}const Sn=Object.freeze({width:null,height:null}),wn=Object.freeze({...Sn,...Ae}),xs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ys=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function rt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(xs);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=ys.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const vs=e=>e==="unset"||e==="undefined"||e==="none";function Be(e,t){const n={...pe,...e},r={...wn,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const m=[],C=b.hFlip,v=b.vFlip;let j=b.rotate;C?v?j+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):v&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let S;switch(j<0&&(j-=Math.floor(j/4)*4),j=j%4,j){case 1:S=o.height/2+o.top,m.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,m.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}j%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),m.length&&(s='<g transform="'+m.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,u=o.height;let d,p;i===null?(p=c===null?"1em":c==="auto"?u:c,d=rt(p,l/u)):(d=i==="auto"?l:i,p=c===null?rt(d,u/l):c==="auto"?u:c);const f={},g=(b,m)=>{vs(m)||(f[b]=m.toString())};return g("width",d),g("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:f,body:s}}const Ss=/\sid="(\S+)"/g,ws="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let js=0;function jn(e,t=ws){const n=[];let r;for(;r=Ss.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(js++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const Z={local:!0,session:!0},Cn={local:new Set,session:new Set};let vt=!1;function Cs(e){vt=e}const $t="iconify2",ue="iconify",En=ue+"-count",Bt=ue+"-version",kn=36e5,Es=168;function st(e,t){try{return e.getItem(t)}catch{}}function St(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ft(e,t){try{e.removeItem(t)}catch{}}function it(e,t){return St(e,En,t.toString())}function at(e){return parseInt(st(e,En))||0}let Ce=typeof window>"u"?{}:window;function In(e){const t=e+"Storage";try{if(Ce&&Ce[t]&&typeof Ce[t].length=="number")return Ce[t]}catch{}Z[e]=!1}function _n(e,t){const n=In(e);if(!n)return;const r=st(n,Bt);if(r!==$t){if(r){const c=at(n);for(let l=0;l<c;l++)Ft(n,ue+l.toString())}St(n,Bt,$t),it(n,0);return}const o=Math.floor(Date.now()/kn)-Es,s=c=>{const l=ue+c.toString(),u=st(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,c))return!0}catch{}Ft(n,l)}};let i=at(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,it(n,i)):Cn[e].add(c))}function Tn(){if(!vt){Cs(!0);for(const e in Z)_n(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=$(r,o);if(!xt(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Dn(e,t){switch(e){case"local":case"session":Z[e]=t;break;case"all":for(const n in Z)Z[n]=t;break}}const ct=Object.create(null);function Ln(e,t){ct[e]=t}function lt(e){return ct[e]||ct[""]}function wt(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 Fe=Object.create(null),re=["https://api.simplesvg.com","https://api.unisvg.com"],_e=[];for(;re.length>0;)re.length===1||Math.random()>.5?_e.push(re.shift()):_e.push(re.pop());Fe[""]=wt({resources:["https://api.iconify.design"].concat(_e)});function An(e,t){const n=wt(t);return n===null?!1:(Fe[e]=n,!0)}function ze(e){return Fe[e]}function ks(){return Object.keys(Fe)}const Is=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Re=Is();function _s(e){Re=e}function Ts(){return Re}function Ds(e,t){const n=ze(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Ls(e){return e===404}const As=(e,t,n)=>{const r=[],o=Ds(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,u)=>{c+=l.length+1,c>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Ps(e){if(typeof e=="string"){const t=ze(e);if(t)return t.path}return"/"}const Rs=(e,t,n)=>{if(!Re){n("abort",424);return}let r=Ps(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Re(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Ls(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Ms={prepare:As,send:Rs};function Os(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),u=l[i]||(l[i]=$(s,i));let d;c in u.icons?d=t.loaded:i===""||u.missing.has(c)?d=t.missing:d=t.pending;const p={provider:s,prefix:i,name:c};d.push(p)}),t}function Pn(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Ns(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||Pn([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Us=0;function $s(e,t,n){const r=Us++,o=Pn.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bs(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?ne(o,t,n):o;s&&r.push(s)}),r}var Fs={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function zs(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const T=Math.floor(Math.random()*h.length);i.push(h[T]),h=h.slice(0,T).concat(h.slice(T+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",u=0,d,p=null,f=[],g=[];typeof r=="function"&&g.push(r);function b(){p&&(clearTimeout(p),p=null)}function m(){l==="pending"&&(l="aborted"),b(),f.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),f=[]}function C(h,T){T&&(g=[]),typeof h=="function"&&g.push(h)}function v(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:C,abort:m}}function j(){l="failed",g.forEach(h=>{h(void 0,d)})}function S(){f.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),f=[]}function k(h,T,M){const R=T!=="success";switch(f=f.filter(O=>O!==h),l){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(T==="abort"){d=M,j();return}if(R){d=M,f.length||(i.length?E():j());return}if(b(),S(),!e.random){const O=e.resources.indexOf(h.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",g.forEach(O=>{O(M)})}function E(){if(l!=="pending")return;b();const h=i.shift();if(h===void 0){if(f.length){p=setTimeout(()=>{b(),l==="pending"&&(S(),j())},e.timeout);return}j();return}const T={status:"pending",resource:h,callback:(M,R)=>{k(T,M,R)}};f.push(T),u++,p=setTimeout(E,e.rotate),n(h,t,T.callback)}return setTimeout(E),v}function Rn(e){const t={...Fs,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,u){const d=zs(t,c,l,(p,f)=>{r(),u&&u(p,f)});return n.push(d),d}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function zt(){}const Qe=Object.create(null);function Vs(e){if(!Qe[e]){const t=ze(e);if(!t)return;const n=Rn(t),r={config:t,redundancy:n};Qe[e]=r}return Qe[e]}function Mn(e,t,n){let r,o;if(typeof e=="string"){const s=lt(e);if(!s)return n(void 0,424),zt;o=s.send;const i=Vs(e);i&&(r=i.redundancy)}else{const s=wt(e);if(s){r=Rn(s);const i=e.resources?e.resources[0]:"",c=lt(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),zt):r.query(t,o,n)().abort}function Hs(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Z)_n(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Ws(e,t){vt||Tn();function n(r){let o;if(!Z[r]||!(o=In(r)))return;const s=Cn[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=at(o),!it(o,i+1))return;const c={cached:Math.floor(Date.now()/kn),provider:e.provider,data:t};return St(o,ue+i.toString(),JSON.stringify(c))}t.lastModified&&!Hs(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Vt(){}function qs(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Ns(e)}))}function Ks(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=lt(n)))return;s.prepare(n,r,o).forEach(c=>{Mn(n,c,l=>{if(typeof l!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=xt(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(p=>{d.delete(p)}),Ws(e,l)}catch(u){console.error(u)}qs(e)})})}))}const Gs=e=>{const n=$(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},jt=(e,t)=>{const n=Bs(e,!0,ms()),r=Os(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Vt)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===c&&u===i)return;i=u,c=d,s.push($(u,d));const p=o[u]||(o[u]=Object.create(null));p[d]||(p[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:p}=l,f=$(u,d),g=f.pendingIcons||(f.pendingIcons=new Set);g.has(p)||(g.add(p),o[u][d].push(p))}),s.forEach(l=>{const{provider:u,prefix:d}=l;o[u][d].length&&Ks(l,o[u][d])}),t?$s(t,r,s):Vt},Qs=e=>new Promise((t,n)=>{const r=typeof e=="string"?ne(e,!0):e;if(!r){n(e);return}jt([r||e],o=>{if(o.length&&r){const s=me(r);if(s){t({...pe,...s});return}}n(e)})});function On(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Sn?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Ve={...wn,inline:!1},Ze="iconify",ut="iconify-inline",W="iconifyData"+Date.now();let X=[];function he(e){for(let t=0;t<X.length;t++){const n=X[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Nn(e,t=!1){let n=he(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},X.push(n),n)}function Zs(){if(document.documentElement)return Nn(document.documentElement);X.push({node:()=>document.documentElement})}function Xs(e){X=X.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function ge(){return X}function Js(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let ce=null;const Ys={childList:!0,subtree:!0,attributes:!0};function Un(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,ce&&ce(e)}))}function ei(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[W]!==void 0){n.paused||Un(e);return}}}function $n(e,t){e.observer.instance.observe(t,Ys)}function Me(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(ei.bind(null,e)),$n(e,n),t.paused||Un(e))}function Ht(){ge().forEach(Me)}function Bn(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 ti(e){const t=ce!==null;if(ce!==e&&(ce=e,t&&ge().forEach(Bn)),t){Ht();return}Js(Ht)}function dt(e){(e?[e]:ge()).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 ni(e){if(e){const t=he(e);t&&dt(t)}else dt()}function ft(e){(e?[e]:ge()).forEach(t=>{if(!t.observer){Me(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?$n(t,r):Me(t);else return}})}function oi(e){if(e){const t=he(e);t&&ft(t)}else ft()}function Fn(e,t=!1){const n=Nn(e,t);return Me(n),n}function zn(e){const t=he(e);t&&(Bn(t),Xs(e))}function ri(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in Ve)if(n[o]!==r[o])return!0;return!1}function si(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const ii=/[\s,]+/;function ai(e,t){t.split(ii).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ci=["width","height"],li=["inline","hFlip","vFlip"];function ui(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function di(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&ne(t,!0);if(!n)return null;const r={...Ve,inline:e.classList&&e.classList.contains(ut)};ci.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=si(o));const s=e.getAttribute("data-flip");typeof s=="string"&&ai(r,s),li.forEach(c=>{const l="data-"+c,u=ui(e.getAttribute(l),l);typeof u=="boolean"&&(r[c]=u)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const fi="svg."+Ze+", i."+Ze+", span."+Ze+", i."+ut+", span."+ut;function pi(e){const t=[];return e.querySelectorAll(fi).forEach(n=>{const r=n[W]||n.tagName.toLowerCase()!=="svg"?di(n):null;r&&t.push({node:n,props:r})}),t}function Vn(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let le;function mi(){try{le=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{le=null}}function hi(e){return le===void 0&&mi(),le?le.createHTML(e):e}function Hn(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Wn(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function qn(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function Kn(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=Be(n,o),i=e[W],c=Vn(jn(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=hi(c);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const m=u.item(b),C=m.name;C!=="class"&&!l.hasAttribute(C)&&l.setAttribute(C,m.value)}const d=Hn(t.icon),p=Wn(l,d,new Set(i&&i.addedClasses),e),f=qn(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),g={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[W]=g,e.parentNode&&e.parentNode.replaceChild(l,e),l}function gi(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function bi(e){return"data:image/svg+xml,"+gi(e)}function xi(e){return'url("'+bi(e)+'")'}const yi={display:"inline-block"},pt={"background-color":"currentColor"},Gn={"background-color":"transparent"},Wt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qt={"-webkit-mask":pt,mask:pt,background:Gn};for(const e in qt){const t=qt[e];for(const n in Wt)t[e+"-"+n]=Wt[n]}function Kt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function vi(e,t,n,r){const o=t.customisations,s=Be(n,o),i=s.attributes,c=e[W],l=Vn(s.body,{...i,width:n.width+"",height:n.height+""}),u=Hn(t.icon),d=Wn(e,u,new Set(c&&c.addedClasses)),f={"--svg":xi(l),width:Kt(i.width),height:Kt(i.height),...yi,...r?pt:Gn};o.inline&&(f["vertical-align"]="-0.125em");const g=qn(e,f,c&&c.addedStyles),b={...t,status:"loaded",addedClasses:d,addedStyles:g};return e[W]=b,e}let Ee=!1;function Si(){Ee||(Ee=!0,setTimeout(()=>{Ee&&(Ee=!1,te())}))}function te(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,u=$(i,c),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(s&&!Gs(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:ge()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(u,d,p){if(c||(c=!0,dt(o)),u.tagName.toUpperCase()!=="SVG"){const f=d.mode,g=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof g=="boolean"){vi(u,d,{...pe,...p},g);return}}Kn(u,d,p)}pi(s).forEach(({node:u,props:d})=>{const p=u[W];if(!p){const{status:g,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}i=i||g==="loading",u[W]={...d,status:g};return}let f;if(ri(p,d)){if(f=r(d.icon,p.name!==d.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...d,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(d.icon,!1),!f.icon){p.status=f.status;return}}l(u,d,f.icon)}),o.temporary&&!i?zn(s):t&&i?Fn(s,!0):c&&o.observer&&ft(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];jt(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),Si)}}}function wi(e){const t=he(e);t?te(t):te({node:e,temporary:!0},!0)}function Qn(e,t,n=!1){const r=me(e);if(!r)return null;const o=ne(e),s=On(Ve,t||{}),i=Kn(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function ji(){return"3.1.1"}function Ci(e,t){return Qn(e,t,!1)}function Ei(e,t){return Qn(e,t,!0)}function ki(e,t){const n=me(e);if(!n)return null;const r=On(Ve,t||{});return Be(n,r)}function Ii(e){e?wi(e):te()}if(typeof document<"u"&&typeof window<"u"){Zs();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!vn(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{ti(te),te()})}function _i(e,t){Dn(e,t!==!1)}function Ti(e){Dn(e,!0)}Ln("",Ms);if(typeof document<"u"&&typeof window<"u"){Tn();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;An(n,o)||console.error(r)}catch{console.error(r)}}}}const Di={getAPIConfig:ze,setAPIModule:Ln,sendAPIQuery:Mn,setFetch:_s,getFetch:Ts,listAPIProviders:ks},Li={_api:Di,addAPIProvider:An,loadIcons:jt,loadIcon:Qs,iconExists:gs,getIcon:bs,listIcons:ps,addIcon:hs,addCollection:vn,replaceIDs:jn,calculateSize:rt,buildIcon:Be,getVersion:ji,renderSVG:Ci,renderHTML:Ei,renderIcon:ki,scan:Ii,observe:Fn,stopObserving:zn,pauseObserver:ni,resumeObserver:oi,enableCache:_i,disableCache:Ti};try{self.Iconify===void 0&&(self.Iconify=Li)}catch{}function Zn({infos:e=[]}){const{t}=z(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
43
+ `);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
44
+
45
+
46
+
47
+ <!--
48
+ [Server Info]
49
+ ${r}
50
+ * Page: ${window.location.href}
51
+ -->
52
+ `),L(I,{sx:{mx:{xs:0,md:2}},children:L(ke,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}Zn.propTypes={infos:w.arrayOf(w.shape({label:w.string,value:w.string}))};var Xe,Gt;function Ai(){return Gt||(Gt=1,Xe={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}}),Xe}var Je,Qt;function Pi(){return Qt||(Qt=1,Je={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}}),Je}var Ye,Zt;function Xn(){if(Zt)return Ye;Zt=1;const e=new Map;return Ye={registerLang:(r,o)=>{e.set(r,o)},getLang:(r="en_US")=>e.get(r)||e.get("en_US")},Ye}var et,Xt;function Ri(){return Xt||(Xt=1,et=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}),et}var tt,Jt;function Mi(){if(Jt)return tt;Jt=1;const e=Ri(),{getLang:t}=Xn(),n=(o,s)=>s===1?o:`${o}s`,r=1e-7;return tt=(o,s={})=>{if(!Number.isFinite(o))throw new TypeError("Expected a finite number");s.colonNotation&&(s.compact=!1,s.formatSubMilliseconds=!1,s.separateMilliseconds=!1,s.verbose=!1),s.compact&&(s.secondsDecimalDigits=0,s.millisecondsDecimalDigits=0);const i=t(s.locale),c=[],l=(p,f)=>{const g=Math.floor(p*10**f+r);return(Math.round(g)/10**f).toFixed(f)},u=(p,f,g)=>{if((c.length===0||!s.colonNotation)&&p===0&&!(s.colonNotation&&f==="minute"))return;const{long:b}=i[f]||t("en_US")[f],{short:m}=i[f]||t("en_US")[f];let C=(g||p||"0").toString(),v,j;if(s.colonNotation){v=c.length>0?":":"",j="";const S=C.includes(".")?C.split(".")[0].length:C.length,k=c.length>0?2:1;C="0".repeat(Math.max(0,k-S))+C}else v="",s.locale==="zh_CN"?Object.values(d).filter(S=>S>0).length>1?!d.days&&!d.hours&&d.minutes&&s.compact?j=b:j=m:d.minutes?j=b:j=m:j=s.verbose?` ${n(b,p)}`:m;c.push(v+C+j)},d=e(o);if(u(Math.trunc(d.days/365),"year"),u(d.days%365,"day"),u(d.hours,"hour"),u(d.minutes,"minute"),s.separateMilliseconds||s.formatSubMilliseconds||!s.colonNotation&&o<1e3)if(u(d.seconds,"second"),s.formatSubMilliseconds)u(d.milliseconds,"millisecond"),u(d.microseconds,"microsecond"),u(d.nanoseconds,"nanosecond");else{const p=d.milliseconds+d.microseconds/1e3+d.nanoseconds/1e6,f=typeof s.millisecondsDecimalDigits=="number"?s.millisecondsDecimalDigits:0,g=p>=1?Math.round(p):Math.ceil(p),b=f?p.toFixed(f):g;u(Number.parseFloat(b,10),"millisecond",b)}else{const p=o/1e3%60,f=typeof s.secondsDecimalDigits=="number"?s.secondsDecimalDigits:1,g=l(p,f),b=s.keepDecimalsOnWholeSeconds?g:g.replace(/\.0+$/,"");u(Number.parseFloat(b,10),"second",b)}if(c.length===0){const p=(i.millisecond||t("en_US").millisecond).long,f=(i.millisecond||t("en_US").millisecond).short;return s.locale==="zh_CN"?`0${s.verbose?`${p}`:f}`:`0${s.verbose?` ${p}s`:f}`}if(s.compact)return c[0];if(typeof s.unitCount=="number"){const p=s.colonNotation?"":" ";return c.slice(0,Math.max(s.unitCount,1)).join(p)}return s.colonNotation?c.join(""):c.join(" ")},tt}var nt,Yt;function Oi(){if(Yt)return nt;Yt=1;const e=Ai(),t=Pi(),{registerLang:n}=Xn(),r=Mi();return n("en_US",e),n("zh_CN",t),r.registerLang=n,nt=r,nt}var Ni=Oi();const Jn=qo(Ni);function V({children:e}){return de(n=>n.breakpoints.down("md"))?a.jsx(De,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:a.jsx(I,{sx:{display:"flex",alignItems:"center",gap:1},children:a.jsx(_t,{fontSize:"small"})})}):a.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(_t,{fontSize:"small"}),e]})}V.propTypes={children:w.node.isRequired};const Ui="https://launcher.arcblock.io/",$i=30*24*60*60*1e3;function Yn({launcherUrl:e,chainHost:t,nftId:n="",launcherSessionId:r="",retention:o=0,sx:s={},...i}){const{t:c,locale:l}=z(),u=$e(),[d,p]=mn({safeIframeRef:null,popoverAnchorEl:null}),f=x.useRef(null),g=Ne(),b=de(h=>h.breakpoints.down("md")),m=b?"mobile":"desktop",C=pn(async()=>{const[h,T]=await Promise.all([u.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),un({launcherUrl:e||Ui,nftDid:n,launcherSessionId:r,locale:l,theme:g.palette.mode})]);if(h?.error)throw new Error(h.error);return{launcherSession:h.launcherSession,subscriptionURL:T}},[l]);if(C.loading)return a.jsx(G,{label:a.jsxs(V,{children:[!b&&c("expiration.desktop.loading"),a.jsx(H,{size:16})]}),variant:"success",sx:{cursor:"pointer",...s},...i,retention:o});if(C.error)return console.error(C.error),a.jsx(G,{label:a.jsx(V,{children:c(`expiration.${m}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...s},...i,retention:o,onClick:()=>C.retry()});const v=h=>{p({popoverAnchorEl:h.currentTarget})},j=()=>{p({popoverAnchorEl:null})},S=C.value?.launcherSession;let k="success";[P.LAUNCH_SESSION_STATUS.overdue,P.LAUNCH_SESSION_STATUS.canceled,P.LAUNCH_SESSION_STATUS.terminated].includes(C.value?.launcherSession?.status)&&(k="error");let E=null;if(S.expirationDate&&!S.subscription){const h=ee(S.expirationDate).diff(ee(),"ms");E=c(`expiration.${m}.tips.${k}`,{validity:Jn(h,{locale:dn(l),compact:!0,verbose:!0})}),h>0&&h<=$i&&(k="warning")}return a.jsxs(a.Fragment,{children:[a.jsx(G,{label:a.jsx(V,{children:E||S?.subscription?.product?.name||c("common.subscription")}),color:k,variant:k!=="success"?"contained":"outlined",sx:{cursor:"pointer",...s},...i,retention:o,onClick:v}),a.jsx(an,{id:"popover-info",open:!!d.popoverAnchorEl,anchorEl:d.popoverAnchorEl,onClose:j,anchorOrigin:{vertical:"bottom",horizontal:"right"},sx:{"& .MuiPopover-paper":{minHeight:0}},transformOrigin:{vertical:"top",horizontal:"right"},children:a.jsx(I,{sx:{width:{xs:"360px",md:"450px"},display:"flex",flexDirection:"column"},children:a.jsx("iframe",{ref:f,title:c("common.subscription"),width:"100%",height:"600px",style:{border:0,maxHeight:"800px"},src:C.value?.subscriptionURL})})})]})}Yn.propTypes={chainHost:w.string.isRequired,nftId:w.string,launcherSessionId:w.string,sx:w.object,retention:w.number,launcherUrl:w.string.isRequired};const Bi=30*24*60*60*1e3,Fi="https://launcher.arcblock.io/";function eo({launcherUrl:e,chainHost:t,nftId:n="",launcherSessionId:r="",sx:o={},retention:s=0,...i}){const{t:c,locale:l}=z(),[u,d]=mn({safeIframeRef:null,popoverAnchorEl:null}),p=x.useRef(null),f=de(h=>h.breakpoints.down("md")),g=$e(),b=f?"mobile":"desktop",m=pn(async()=>{const[h,T]=await Promise.all([g.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),un({launcherUrl:e||Fi,nftDid:n,launcherSessionId:r,locale:l})]);if(h?.error)throw new Error(h.error);return{launcherSession:h.launcherSession,subscriptionURL:T}},[l]);if(m.loading)return a.jsx(G,{label:a.jsxs(V,{children:[!f&&c("expiration.desktop.loading"),a.jsx(H,{size:16})]}),variant:"success",sx:{cursor:"pointer",...o},...i,retention:s});if(m.error)return console.error(m.error),a.jsx(G,{label:a.jsx(V,{children:c(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...o},...i,retention:s,onClick:()=>m.retry()});const C=m.value?.launcherSession?.expirationDate,v=ee(C).isBefore(ee()),j=ee(C).diff(ee(),"ms");let S="success";j<=Bi&&(S="warning"),v&&(S="error");const k=h=>{d({popoverAnchorEl:h.currentTarget})},E=()=>{d({popoverAnchorEl:null})};return a.jsxs(a.Fragment,{children:[m.value?.launcherSession?.subscription&&a.jsx(G,{label:a.jsx(V,{children:c("expiration.desktop.nextInvoice",{date:er(C,l)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...o},...i,retention:s,onClick:k}),!m.value?.launcherSession?.subscription&&a.jsx(G,{label:a.jsx(V,{children:c(`expiration.${b}.tips.${S}`,{validity:Jn(j,{locale:dn(l),compact:!0,verbose:!0})})}),color:S,variant:S!=="success"?"contained":"outlined",sx:{cursor:"pointer",...o},...i,retention:s,onClick:k}),a.jsx(an,{id:"popover-info",open:!!u.popoverAnchorEl,anchorEl:u.popoverAnchorEl,onClose:E,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:a.jsx(I,{sx:{width:{xs:"360px",md:"450px"}},children:a.jsx("iframe",{ref:p,title:c("common.subscription"),width:"100%",height:"600px",style:{border:0},src:m.value?.subscriptionURL})})})]})}eo.propTypes={chainHost:w.string.isRequired,nftId:w.string,launcherSessionId:w.string,sx:w.object,retention:w.number,launcherUrl:w.string.isRequired};function to({meta:e={},fallbackUrl:t=Ke,invalidPathFallback:n=null,headerAddons:r=void 0,sessionManagerProps:o={showRole:!0,onLogout:()=>{window.location.href=Ke}},links:s=[],showDomainWarningDialog:i=!0,...c}){tr();const l=x.use(nr)?.session?.user,u=l?.role,{locale:d}=z()||{},p=x.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return or(j)}catch(S){return console.error("Failed to format blocklet info",S,j),j}},[e]),{localizedNav:f,flattened:g,matchedIndex:b}=x.useMemo(()=>{let j=rr(p?.navigation?.dashboard,d)||[];j=sr(j,u),j=ir(j,E=>{let h=null;return E.icon&&(E.icon.startsWith("http")||E.icon.startsWith("data:")?h=a.jsx(nn,{src:E.icon}):h=a.jsx("iconify-icon",{height:"100%",width:"100%",icon:E.icon})),{id:E.id,title:E.title,url:E.link,icon:h,external:!0,children:E.items}},"items");const S=ar(j).filter(E=>!!E.url),k=cr(S.map(E=>E.url));return k!==-1&&(S[k].active=!0),{localizedNav:j,flattened:S,matchedIndex:k}},[p,d,u]),m=typeof s=="function"?s(f):[...f,...s],C=lr({meta:e});if(x.useLayoutEffect(()=>{l&&!g?.length&&t&&(window.location.href=t)},[t]),x.useLayoutEffect(()=>{l&&g?.length&&b===-1&&n&&n()},[n,g,b]),!p.appName)return null;const{appName:v}=p;return a.jsx($r,{title:v,fullWidth:!0,sidebarWidth:128,legacy:!1,links:m,...c,headerProps:{homeLink:Ke,logo:a.jsx("img",{src:C,alt:"logo"}),addons:a.jsx(ur,{formattedBlocklet:p,addons:r,sessionManagerProps:o,showDomainWarningDialog:i}),...c.headerProps}})}to.propTypes={meta:fr,fallbackUrl:w.string,invalidPathFallback:w.func,headerAddons:w.oneOfType([w.func,w.node]),sessionManagerProps:dr,links:w.oneOfType([w.array,w.func]),showDomainWarningDialog:w.bool};const zi={width:24,height:24,body:'<path fill="currentColor" d="M6.4 18L5 16.6L14.6 7H6V5h12v12h-2V8.4L6.4 18Z"/>'};function no({children:e,style:t={},...n}){return a.jsx(ho,{style:t,...n,children:e})}no.propTypes={children:w.any.isRequired,style:w.object};const A={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"},Te={added:A.grey,waiting:A.yellow,downloading:A.yellow,extracting:A.yellow,downloaded:A.grey,installing:A.yellow,installed:A.grey,starting:A.yellow,running:A.running,stopping:A.yellow,stopped:A.reverse,error:A.error,upgrading:A.yellow,restarting:A.yellow,corrupted:A.error,deleting:A.yellow,resource:A.primary},Vi={added:"primary",waiting:"info",downloading:"info",extracting:"info",downloaded:"primary",installing:"info",installed:"primary",starting:"info",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"info",restarting:"info",corrupted:"error",deleting:"warning",resource:"primary"};function Hi({isResource:e=!1,status:t,variant:n="tag",progress:r=0,...o}){const{t:s}=x.useContext(en),i=N.isInProgress(t),c=e&&t==="stopped"?"resource":t,l=s(`blocklet.status.${c}`);return n==="pin"?a.jsx(De,{title:s("blocklet.statusTip",{status:l}),children:a.jsxs(I,{...o,sx:[{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},...Array.isArray(o.sx)?o.sx:[o.sx]],children:[a.jsx(I,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Te[c]}}),a.jsx(I,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Te[c]}})]})}):n==="dot"?a.jsx(De,{title:s("blocklet.statusTip",{status:l}),children:a.jsx(Ur,{color:Te[c],...o})}):a.jsxs(no,{type:Vi[c],...o,children:[i&&a.jsx(H,{size:12,color:"inherit",style:{marginRight:5}}),l,c==="downloading"&&r?a.jsx("div",{style:{marginLeft:5},children:`${r} %`}):null]})}Hi.propTypes={status:w.string.isRequired,variant:w.oneOf(["dot","tag","pin"]),source:w.string,progress:w.number,isResource:w.bool};function Wi(){const{inFullPage:e,toggleFullPage:t}=Br();return L(ht,{onClick:t,children:e?L(zo,{sx:{transform:"scale(1.3)"}}):L(Vo,{sx:{transform:"scale(1.3)"}})})}function oo({children:e=null,title:t=""}){const{t:n}=z(),{loading:r,error:o,actions:{refreshBlocklet:s},env:i,blocklet:c}=fe(),{info:l,imgPrefix:u}=pr(),d=Ko(),p=de(k=>k.breakpoints.down("md")),f=Ne(),{appId:g,version:b}=i,m=[{label:"App ID",value:g},{label:"App Version",value:b},{label:"App Bundle Name",value:c?.meta?.bundleName},{label:"Server Id",value:l.did},{label:"Server Version",value:l.version}],C=k=>{const E=Array.isArray(k)?k:[k];if(p||E.unshift(L(Wi,{})),c){const h={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};hr(c)?E.unshift(L(Yn,{chainHost:c?.controller?.chainHost,nftId:c?.controller?.nftId,launcherSessionId:c?.controller?.launcherSessionId,launcherUrl:c?.controller?.launcherUrl,sx:h})):l.ownerNft&&l.launcher&&E.unshift(L(eo,{chainHost:l.launcher.chainHost,launcherUrl:l.launcher.url,nftId:l.ownerNft.did,launcherSessionId:l.ownerNft.launcherSessionId,sx:h}))}return E},v=Mr({blocklet:c}),j={logo:v?L("img",{src:v,alt:"logo"}):null,brandAddon:L(I,{children:c&&je(I,{component:"a",target:"_blank",href:window.blocklet.appUrl,rel:"noopener noreferrer",title:window.blocklet.appName,sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,py:.5,px:2,border:"1px solid",borderColor:"text.disabled",borderRadius:"30px",cursor:"pointer"},children:[L(De,{title:N.isRunning(c?.status)?void 0:n(`blocklet.status.${c?.status}`),children:L(I,{sx:{bgcolor:Te[c?.status],width:8,height:8,borderRadius:"50%"}})}),L(I,{sx:{color:"text.secondary",maxWidth:p?66:240,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:N.getDisplayName(c)}),L(I,{component:go,icon:zi,sx:{color:"text.secondary"}})]})})};return je(qi,{legacy:!1,fullWidth:!0,headerAddons:C,headerProps:j,links:k=>k?.map(h=>(h.children=h.children?.map(T=>{if(T.id==="/team/aigne"){const M=u?Q(u,"/aigne-hub.png"):"/aigne-hub.pg";return{...T,icon:L(nn,{src:M,alt:"AIGNE Hub",style:f.palette.mode==="dark"?{filter:"invert(1)"}:{},fallback:T.icon})}}return T}),h)),title:t,footerProps:{addon:L(Zn,{infos:m})},children:[!c&&r&&L(Le,{relative:"parent",children:L(H,{})}),!c&&o&&je(Le,{relative:"parent",children:[je(I,{sx:{display:"flex",alignItems:"center"},children:[L(Fo,{color:"error",sx:{marginRight:1}}),bt(o)]}),L(mt,{onClick:()=>s(),children:L("span",{style:{textDecoration:"underline"},children:n("common.retry")})})]}),!!c&&L(I,{sx:{flex:1,padding:p?2:3,display:"flex",flexDirection:"column"},children:L(bo,{FallbackComponent:mr,resetKeys:[d.pathname],children:e})})]})}oo.propTypes={children:w.any,title:w.string};const qi=Oe(to)`
53
+ div.dashboard-content {
54
+ padding: 0;
55
+ }
56
+ .header-addons .locales {
57
+ max-height: 400px;
58
+ overflow-y: auto;
59
+ }
60
+
61
+ .header-brand-addon {
62
+ display: block;
63
+ }
64
+ `;function Ki(){const{t:e,locale:t}=z(),{blocklet:n,launcherSession:r,refreshSubscription:o}=fe(),{connectApi:s,session:i,api:c}=gr(),[l,u]=x.useState(!1),[d,p]=x.useState(""),[f,g]=Lr({subscriptionURL:"#"});if(x.useEffect(()=>{(Dt(n,r)||Lt(r))&&br({launcherSessionId:n?.controller?.launcherSessionId,launcherUrl:n?.controller?.launcherUrl,locale:t}).then(v=>{g({subscriptionURL:v})}).catch(v=>{console.error("get subscription url error:",v)})},[n,r]),x.useEffect(()=>{if(n.controller?.launcherUrl){const v=Q(n.controller.launcherUrl,"__blocklet__.js?type=json");fetch(v).then(j=>j.json()).then(j=>{const S=j.componentMountPoints?.find(E=>E.did==="z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk")?.mountPoint,k=Q(n.controller.launcherUrl,S);p(k)})}},[n.controller?.launcherUrl]),!n||!r)return"";let b=null,m="",C="error";return xr(r)?(b=yr(r)?a.jsx(ke,{href:f.subscriptionURL,children:e("blocklet.manageSubscription")}):a.jsx(Ho,{variant:"text",color:"error",onClick:()=>u(!0),sx:{lineHeight:"inherit",fontSize:"inherit"},children:e("blocklet.payNow")}),m=e("blocklet.suspendedCausedByPastDue",{deadline:oe(r?.reservedUntil,t)})):Lt(r)?(b=a.jsx(ke,{href:f.subscriptionURL,children:e("blocklet.manageSubscription")}),m=e("blocklet.willBeSuspendedSoon",{deadline:oe((r?.subscription?.cancel_at||0)*1e3,t)}),C="warning"):Dt(n,r)?(b=a.jsx(ke,{href:f.subscriptionURL,children:e("blocklet.manageSubscription")}),m=e("blocklet.suspendedCausedByExpired",{deadline:oe(r?.reservedUntil,t),canceledAt:oe((r?.subscription?.canceled_at||0)*1e3,t)})):vr(n,r)&&(b=a.jsx(cn,{to:Q(P.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),m=e("blocklet.suspendedCausedByTerminated",{canceledAt:oe(r?.terminatedAt,t),deadline:Sr(r?.terminatedAt,t)})),m?a.jsxs(a.Fragment,{children:[a.jsxs(gt,{severity:C,sx:{mb:1},children:[m,a.jsx(se,{sx:{display:"inline-block",fontSize:"inherit",lineHeight:"inherit",ml:1,a:{textDecoration:"auto"},"& .MuiButtonBase-root":{p:0,minWidth:"auto"}},children:b})]}),l&&d&&r&&a.jsx(wr,{session:i,connect:s,baseUrl:d,authToken:r.subscription.authToken,children:a.jsx(Fr,{dialogProps:{open:l,onClose:()=>u(!1)},subscriptionId:r.subscription.id,successToast:!0,onPaid:()=>{c.post("/blocklet/start?fromSetup=1"),o(),u(!1)}})})]}):null}const Gi=x.lazy(()=>_(()=>import("./log-DaUV-KQg.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),Qi=x.lazy(()=>_(()=>import("./index-six7TSvm.js"),__vite__mapDeps([14,2,1,5,4,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,3,39,40,41,42,43,44]))),Zi=x.lazy(()=>_(()=>import("./index-BCK2cqC6.js"),__vite__mapDeps([45,4,2,1,5,6,7,8,15,9,10,11,19,20,21,46,47,32,28,37,48]))),Xi=x.lazy(()=>_(()=>import("./index-Du6WLi38.js"),__vite__mapDeps([49,2,1,9,4,5,6,7,8,10,11,32,28,20,18,50,12,38,51,23,52,41,53,54,26,55,56,57,39,58,59,60,61,62,63,64]))),Ji=x.lazy(()=>_(()=>import("./overview-D-k9QnCr.js"),__vite__mapDeps([65,1,2,4,5,6,7,8,66,67,9,10,11,31,40,30,19,20,21,18,68,69,70,54,3,28,32,39,41,42,43,44]))),Yi=x.lazy(()=>_(()=>import("./domains-C4bCGzUa.js"),__vite__mapDeps([71,2,4,1,5,6,7,8,9,10,11,72,41,22,20,40,30,32,28,37,60,23,29,31,73,53]))),ea=x.lazy(()=>_(()=>import("./index-CUtbL7Pc.js"),__vite__mapDeps([74,2,6,5,1,4,7,8,9,10,11,18,19,20,21,75,15,34,35,46,76,22,77,78,79,32,28,51,41,80]))),ta=x.lazy(()=>_(()=>import("./appearance-DoL2p8uj.js"),__vite__mapDeps([81,5,2,9,1,4,6,7,8,10,11,46]))),na=x.lazy(()=>_(()=>import("./audit-logs-CYCXwJKF.js"),__vite__mapDeps([82,4,2,1,5,6,7,8,9,10,11,34,35,3,62,63,38,64,19,20,21]))),oa=x.lazy(()=>_(()=>import("./index-DuiAdMaP.js"),__vite__mapDeps([83,2,1,5,4,6,7,8,9,10,11,47,21,84,85,86,38,31,87,88,12,19,20,15,34,35,18,89,40,30,90,91,28,92,93,26,27,46]))),ra=x.lazy(()=>_(()=>import("./config-navigation-Cr1v50S5.js"),__vite__mapDeps([94,2,1,4,5,6,7,8,9,10,11,69,78,95,96,47,97,19,20,21,54,98,55,56,90,28,3,32,39,40,30,41,42,43,44]))),sa=x.lazy(()=>_(()=>import("./index-Bp3op3AB.js"),__vite__mapDeps([99,1,2,6,5,9,4,7,8,10,11,46,100,101,67,76,54,102,103,70,28,31,93,39,104,61,51]))),ia=x.lazy(()=>_(()=>import("./index-CN_vv3DD.js"),__vite__mapDeps([105,4,2,1,5,6,7,8,9,10,11,47,104,61,84,85,66,31,35,106,46]))),aa=x.lazy(()=>_(()=>import("./security-Chcv4uGK.js"),__vite__mapDeps([107,4,2,1,5,6,7,8,9,10,11,47,97,19,20,21,108,46]))),ca=x.lazy(()=>_(()=>import("./branding-BHOpQPVg.js"),__vite__mapDeps([109,2,1,4,5,6,7,8,9,10,11,110,69,95,111,85,112,79,22,20,19,21,113,84]))),la=x.lazy(()=>_(()=>import("./advanced-BnXe4cqK.js"),__vite__mapDeps([114,2,1,9,4,5,6,7,8,10,11,22,20,32,28,41,84,85,23,19,21,31,18,68,69]))),ua=x.lazy(()=>_(()=>import("./traffic-CUT8PqO4.js").then(e=>e.t),__vite__mapDeps([89,2,9,1,4,5,6,7,8,10,11,40,30,90,91,28,92,93,26,27]))),da=x.lazy(()=>_(()=>import("./runtime-tLrFToGI.js"),__vite__mapDeps([115,2,1,4,5,6,7,8,9,10,11,101,92,93,12,3,28,32,39,20,19,21,40,30,41,42,43,44]))),fa=x.lazy(()=>_(()=>import("./index-BRPXjkAq.js"),__vite__mapDeps([116,2,1,4,5,6,7,8,28,15,9,10,11,75,18,34,35,19,20,21,24,25,26,27,32,23,67,60,22,12,37,46,48]))),pa=x.lazy(()=>_(()=>import("./list-D1xRxqmd.js"),__vite__mapDeps([117,2,4,1,5,6,7,8,15,9,10,11,40,30,17,19,20,21,47,24,25,26,27,50,23,60,32,28,75,18,34,35,37,48,46]))),ma=x.lazy(()=>_(()=>import("./index-CzWvmP1s.js"),__vite__mapDeps([118,2,4,1,5,6,7,8,9,10,11,54,48,46,19,20,21]))),ha=x.lazy(()=>_(()=>import("./config-FumbXhpa.js"),__vite__mapDeps([119,2,1,6,5,21,9,4,7,8,10,11,28,26,15,84,85,112,111,79,57,39,58,95,120]))),ga=x.lazy(()=>_(()=>import("./observability-C5Y6fafw.js"),__vite__mapDeps([121,1,2]))),ba=x.lazy(()=>_(()=>import("./playground-DUuQxqZF.js"),__vite__mapDeps([122,1,2]))),xa=x.lazy(()=>_(()=>import("./component-CDAFdcnx.js"),__vite__mapDeps([123,1,2,5,4,6,7,8,9,10,11,28,104,61,22,20,26,91,96,56,110,69,95,23,76,124,59,60,32,39,18,57,125,126,53,103,70,54,85,127,77,78,112,113,86,62,63,120,3,31,73,46,128,102,100,101,67,129,130,80,90,12,37,19,21,40,30,41,42,43,44]))),ya=x.lazy(()=>_(()=>import("./index-B7WwBeaA.js"),__vite__mapDeps([131,1,2,4,5,6,7,8,9,10,11]))),va=Q(P.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),Sa=e=>{const{enqueueSnackbar:t}=tn(),n=x.useCallback(r=>Dr(va,{id:r.id,severity:r.severity||"all",componentDid:r.source==="system"?"system":r.componentDid||"all"}),[]);kr(`${e}/${P.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,r=>{const o=n(r),{severity:s,description:i}=r||{},c=["error","warning"].includes(s)||r.sticky;r.source==="system"&&t(i,{variant:s,autoHideDuration:c?null:5e3,content:l=>a.jsx(os,{viewAllUrl:o,keyId:l,notification:r,content:a.jsx(Nr,{notification:r,minimal:!0,rows:0})})})},[],"user")};function ro({blocklet:e,isAdmin:t}){return t?a.jsx(oa,{blocklet:e}):a.jsx(_r,{status:403})}ro.propTypes={blocklet:w.object.isRequired,isAdmin:w.bool.isRequired};const wa=e=>{const{t}=z(),{blocklet:n,actions:{refreshBlocklet:r},client:o,did:s}=fe(),i=n?.meta?.did,c=!n||Ir(n.status)?[]:N.getAppMissingConfigs(n),l={overview:[{label:t("common.overview"),value:"overview"},{label:a.jsx(Wo,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!c.length,children:t("common.components")}),labelText:t("common.components"),value:"components"}],"did-connect":[{label:t("common.members"),value:"members"},{label:t("team.member.passports"),value:"passports"},{label:t("common.setting"),value:"settings"},{label:t("common.security"),value:"security"},{label:t("oauth.client.tab"),value:"oauth"}],aigne:[{label:t("setup.aigne.config"),value:"aigne-config"}],website:[{label:t("common.domains"),value:"domains"},{label:t("common.branding"),value:"branding"},{label:t("common.theming"),value:"theming"},{label:t("common.navigation"),value:"navigation"}],operations:[{label:t("common.notificationRecords"),value:"notifications",show:e},{label:t("common.analytics"),value:"analytics"},{label:t("common.auditLogs"),value:"audit-logs"},{label:t("common.advancedConfig"),value:"advanced"}],integrations:[{label:"Webhooks",value:"webhooks",show:e},{label:t("common.accessKeys"),value:"access-keys"},{label:t("common.mcpServers"),value:"mcp-servers"}],developers:[{label:t("common.logs"),value:"logs",show:n?.children?.length&&n.structVersion===P.APP_STRUCT_VERSION},{label:t("common.performance"),value:"performance"},{label:t("common.docs"),value:"docs"}]},u={overview:Ji,components:xa,members:a.jsx(Qi,{type:"blocklet",createPassportSvg:At}),passports:a.jsx(ea,{createPassportSvg:At}),settings:a.jsx(ia,{orientation:"vertical"}),security:a.jsx(aa,{}),"did-spaces":a.jsx(sa,{navOrientation:"horizontal"}),domains:Yi,branding:a.jsx(ca,{blocklet:n,onUpdate:r}),theming:a.jsx(ta,{}),navigation:ra,sitemap:a.jsx(yo,{children:t("common.comingSoon")}),notifications:a.jsx(ro,{blocklet:n,isAdmin:e}),"audit-logs":a.jsx(na,{scope:i,categories:["blocklet","team","security","certificates","gateway"]}),analytics:a.jsx(ua,{client:o,did:s}),advanced:a.jsx(la,{blocklet:n,onUpdate:r}),webhooks:a.jsx(Zi,{}),"access-keys":a.jsx(fa,{}),"mcp-servers":a.jsx(ma,{}),logs:Gi,performance:a.jsx(da,{client:o,did:s}),docs:ya,publish:a.jsx(Xi,{}),oauth:a.jsx(pa,{}),"aigne-config":a.jsx(I,{sx:{maxWidth:1536},children:a.jsx(ha,{})}),"aigne-observability":a.jsx(ga,{}),"aigne-playground":a.jsx(ba,{})};return{tabGroups:l,renders:u}};function ja(){const e=ln(),{tab:t="overview",subtab:n}=Go(),{locale:r}=z(),{blocklet:o,refreshFlag:s}=fe(),{session:i}=fn(),c=ie(()=>i?.user?.did,[i]),l=zr(),u=ie(()=>i.user?.role&&Cr.includes(i.user.role),[i]);Sa(c);const{tabGroups:d,renders:p}=wa(u),f=S=>{e(`${P.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${t}/${S}`)},g=(d[t]||[]).filter(S=>S.show===void 0||S.show),b=(g||[]).find(S=>S.value===n)?.value||g?.[0]?.value||t,m=p[b]||p.overview,C=["overview"].includes(t),v=o?a.jsxs(gn,{type:"components",children:[g.length>0&&a.jsxs(I,{sx:{mb:2,display:"flex",alignItems:"center",gap:2},children:[a.jsx(xo,{tabs:g,current:b,onChange:f,scrollButtons:"auto"}),C&&!l&&a.jsx(I,{sx:{flex:1,display:"flex",justifyContent:"flex-end"},children:a.jsx(I,{component:"div",className:"page-header",children:o?a.jsx(Nt,{className:"page-actions",hasPermission:!0,blocklet:o,onStart:()=>{},onComplete:({error:S}={})=>{S&&F.error(S.message)},variant:"group"}):null})})]}),a.jsx(I,{className:"page-content",children:a.jsx(x.Suspense,{fallback:a.jsx(Le,{relative:"parent",children:a.jsx(H,{})}),children:x.isValidElement(m)?m:a.jsx(m,{blocklet:o})})})]}):a.jsx(Le,{relative:"parent",children:a.jsx(H,{})}),j=ie(()=>{const S=window.blocklet?.navigation?.find(R=>R.id==="/team"&&R.section==="dashboard"),k=o?.meta?.title||"";let E="";if(S){const R=Q(P.WELLKNOWN_BLOCKLET_ADMIN_PATH,t,t==="publish"?n:"");E=S.items.find(He=>He.link===R)?.title?.[r]||""}const h=g.find(R=>R.value===n),M=[h?.labelText||h?.label||g?.[0]?.labelText||g?.[0]?.label||"",E].filter(Boolean).join(" - ");return k?M?`${M} | ${k}`:k:M||""},[t,n,o,r]);return a.jsx(Er,{children:a.jsx(Or,{children:a.jsx(oo,{title:j,children:a.jsxs(Ea,{children:[l&&C&&a.jsx(I,{component:"div",className:"page-header",sx:{mb:2},children:o?a.jsx(Nt,{className:"page-actions",hasPermission:!0,blocklet:o,onStart:()=>{},onComplete:({error:S}={})=>{S&&F.error(S.message)},variant:"group"}):null}),a.jsx(Qr,{}),a.jsx(Ki,{}),v]})},`${s}`)})})}function Ca(){const{blocklet:e}=fe(),t=e?.meta?.did;return x.useEffect(()=>{const n=jr();return t&&n.connect(),()=>{t&&n.isConnected()&&n.disconnect()}},[t]),a.jsx(ja,{})}const Ea=Oe.main`
65
+ .page-header {
66
+ display: flex;
67
+ justify-content: space-between;
68
+ align-items: center;
69
+ flex-wrap: wrap;
70
+ gap: 16px;
71
+ }
72
+
73
+ .page-title {
74
+ display: flex;
75
+ align-items: center;
76
+
77
+ .page-link {
78
+ font-size: 15px;
79
+ margin-top: 8px;
80
+ margin-left: 8px;
81
+ }
82
+ }
83
+
84
+ @media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
85
+ .page-header {
86
+ flex-direction: column;
87
+ align-items: flex-start;
88
+ .page-actions,
89
+ .MuiButtonGroup-root {
90
+ width: 100%;
91
+ }
92
+ .MuiButtonGroup-root {
93
+ .MuiButtonBase-root {
94
+ flex: 1;
95
+ }
96
+ .blocklet-action-text {
97
+ display: none;
98
+ }
99
+ }
100
+ }
101
+
102
+ .page-title {
103
+ margin-bottom: 15px;
104
+ }
105
+ }
106
+ `,Wa=Object.freeze(Object.defineProperty({__proto__:null,default:Ca},Symbol.toStringTag,{value:"Module"}));export{Hi as B,to as F,no as W,Y as b,Wa as d,Jn as p,Ha as u};