@abtnode/blocklet-services 1.16.30-beta-b80c7bcd → 1.16.30-beta-2876881d

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 (178) hide show
  1. package/dist/assets/{Add-CvWpFwb9.js → Add-C8ubkurs.js} +1 -1
  2. package/dist/assets/{AddBox-B5yAYYc5.js → AddBox-vRFgQWSp.js} +1 -1
  3. package/dist/assets/{Alert-D6BaRZ7F.js → Alert-GvL63HzP.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-D_JtvQgy.js → ArrowDropDown-DoIALVvz.js} +1 -1
  5. package/dist/assets/{Avatar-CF7xxGtX.js → Avatar-BdTjyfm3.js} +1 -1
  6. package/dist/assets/{ButtonGroup-DxKP8J2j.js → ButtonGroup-CRQZuiJl.js} +1 -1
  7. package/dist/assets/{CheckCircle-D_xN1gyv.js → CheckCircle-Bt8di5pd.js} +1 -1
  8. package/dist/assets/{ChevronRight-BSKZBb_2.js → ChevronRight-CQWVFTZb.js} +1 -1
  9. package/dist/assets/{Close-FzUYS6m6.js → Close-CLfk_TJF.js} +1 -1
  10. package/dist/assets/{CloseOutlined-dfX0_udm.js → CloseOutlined-Cs4rcyNz.js} +1 -1
  11. package/dist/assets/{Delete-7FY_-hW2.js → Delete-mJ7bx4Bi.js} +1 -1
  12. package/dist/assets/{DeleteOutline-KzktAnTa.js → DeleteOutline-FQd6Aq0S.js} +1 -1
  13. package/dist/assets/{Done-DGweKa9V.js → Done-iB3eYDkt.js} +1 -1
  14. package/dist/assets/{Download-5T3TCzDB.js → Download-BC2V_SC7.js} +1 -1
  15. package/dist/assets/{Edit-DDrR6P5J.js → Edit-DuwCzKUk.js} +1 -1
  16. package/dist/assets/{EditIcon-DuMLUXPr.js → EditIcon-CCOrVCRx.js} +1 -1
  17. package/dist/assets/{Error-COixndSy.js → Error-RqQ0xNYf.js} +1 -1
  18. package/dist/assets/{ExpandMore-DTe37e10.js → ExpandMore-Dvys4ITm.js} +1 -1
  19. package/dist/assets/{FilterList-Cf8dLFs7.js → FilterList-BmXpXZ3T.js} +1 -1
  20. package/dist/assets/{FormControl-BTtk2Fad.js → FormControl-DwlzifJW.js} +1 -1
  21. package/dist/assets/{FormControlLabel-D3D12HVK.js → FormControlLabel-k6ZmtY-V.js} +1 -1
  22. package/dist/assets/{FormGroup-BfchPA9v.js → FormGroup-2IT9cIiz.js} +1 -1
  23. package/dist/assets/{Hidden-Bx2uY5CL.js → Hidden-CHlMC7OU.js} +1 -1
  24. package/dist/assets/{InfoOutlined-C7gqICvw.js → InfoOutlined-eXZ3eXVZ.js} +1 -1
  25. package/dist/assets/{InputAdornment-A7HvHn8B.js → InputAdornment-BqbETU7V.js} +1 -1
  26. package/dist/assets/{InputLabel-Bc6EtwvH.js → InputLabel-Ca6kdYK6.js} +1 -1
  27. package/dist/assets/{LastPage-BYYTvJ73.js → LastPage-DaPsmTkp.js} +1 -1
  28. package/dist/assets/{Launch-CEjbrPHI.js → Launch-CHU4vJIe.js} +1 -1
  29. package/dist/assets/{LaunchOutlined-CXXofhlE.js → LaunchOutlined-nwIVgtZH.js} +1 -1
  30. package/dist/assets/{Link-B103RPwf.js → Link-DD34cacH.js} +1 -1
  31. package/dist/assets/{ListItemText-OzALNktK.js → ListItemText-CfDCU89L.js} +1 -1
  32. package/dist/assets/{LoadingButton-XTgnQgpj.js → LoadingButton-D-bseFUB.js} +1 -1
  33. package/dist/assets/{LockIcon-BbAqn8tR.js → LockIcon-BaWrgksC.js} +1 -1
  34. package/dist/assets/{Loop-ajn0Dz_B.js → Loop-CDnviZ7z.js} +1 -1
  35. package/dist/assets/{MoreVert-inIvVOb4.js → MoreVert-CvCn3RFF.js} +1 -1
  36. package/dist/assets/{OpenInNew-cdburhfQ.js → OpenInNew-DBIQreys.js} +1 -1
  37. package/dist/assets/{Pagination-aVDLdtSl.js → Pagination-Dohxdm5M.js} +1 -1
  38. package/dist/assets/{PlayArrow-Bg4MoRTr.js → PlayArrow-BGkRE_DP.js} +1 -1
  39. package/dist/assets/{QuestionMarkCircle-BxJnG-bt.js → QuestionMarkCircle-DYX2KPFf.js} +1 -1
  40. package/dist/assets/{RadioGroup-CWmfUngk.js → RadioGroup-ByKgTwHa.js} +1 -1
  41. package/dist/assets/{Search-BYFGRH1q.js → Search-DwD5E7i5.js} +1 -1
  42. package/dist/assets/{Select-Dv7psaww.js → Select-CcAPm5Nd.js} +1 -1
  43. package/dist/assets/{ServerLogo-Dyw0Fs-p.js → ServerLogo-DjGJAZHq.js} +1 -1
  44. package/dist/assets/{Skeleton-DtyJbT9M.js → Skeleton-q1B90uVI.js} +1 -1
  45. package/dist/assets/{Slider-n1kGv6jU.js → Slider-B4T-S2PL.js} +1 -1
  46. package/dist/assets/{Stepper-CiCy8LMQ.js → Stepper-DYXD0VIN.js} +1 -1
  47. package/dist/assets/{TextField-0v_oVobJ.js → TextField-kyKaYRv3.js} +1 -1
  48. package/dist/assets/{Toolbar-CermspyY.js → Toolbar-DBvMCYsj.js} +1 -1
  49. package/dist/assets/{ViewList-n9WkULd7.js → ViewList-DtEpX929.js} +1 -1
  50. package/dist/assets/{access-control-DRBoSb7z.js → access-control-Dk9_s4_I.js} +1 -1
  51. package/dist/assets/{actions-qdAEgYI9.js → actions-DWwCJMtd.js} +1 -1
  52. package/dist/assets/{add-component-core-CjnJn3tx.js → add-component-core-Daq7acMA.js} +1 -1
  53. package/dist/assets/{add-resource-DOZyX8VM.js → add-resource-BPfn5_QL.js} +1 -1
  54. package/dist/assets/{addon-B4kHptrT.js → addon-3P1qriGM.js} +1 -1
  55. package/dist/assets/{analytics-DjYXM6bV.js → analytics-BWdKTfKM.js} +1 -1
  56. package/dist/assets/api-oiSrSB3g.js +1 -0
  57. package/dist/assets/{audit-logs-CgWtOpVL.js → audit-logs-D8VNVyG4.js} +1 -1
  58. package/dist/assets/{button-EzWQLPRA.js → button-GD6UgeuQ.js} +1 -1
  59. package/dist/assets/{click-to-copy-CT6HFlqB.js → click-to-copy-Lp9b-CPW.js} +1 -1
  60. package/dist/assets/{complete-Dy4e3QP7.js → complete-BJOB_PRE.js} +1 -1
  61. package/dist/assets/{component-C1NjVIvL.js → component-CXZMF8nm.js} +1 -1
  62. package/dist/assets/{config-Bd98pKpd.js → config-8Ahtf1I_.js} +1 -1
  63. package/dist/assets/{config-3WJD6Lmn.js → config-BHZY2MFD.js} +1 -1
  64. package/dist/assets/{config-navigation-kIkN-CW4.js → config-navigation-DhOTF_Er.js} +1 -1
  65. package/dist/assets/{confirm-Cwv0NkNp.js → confirm-BlSGYm6p.js} +1 -1
  66. package/dist/assets/{connect-OnYoMOe-.js → connect-B8BrhLVJ.js} +1 -1
  67. package/dist/assets/{connect-BkHKwHTP.js → connect-BgFhr5J3.js} +1 -1
  68. package/dist/assets/{connect-to-CdXioxNK.js → connect-to-BF7JknI8.js} +1 -1
  69. package/dist/assets/{content-layout-Ffxi3pDS.js → content-layout-D6A4YWBQ.js} +1 -1
  70. package/dist/assets/dashboard-D2FU3SEA.js +165 -0
  71. package/dist/assets/{did-address-miQOme8J.js → did-address-BXE9CEE6.js} +1 -1
  72. package/dist/assets/{domain-BLk6xbDd.js → domain-BO2HQTUu.js} +1 -1
  73. package/dist/assets/{domain-list-ByfH_4BX.js → domain-list-B8VPWSkq.js} +1 -1
  74. package/dist/assets/{exchange-passport-BL_VVwVP.js → exchange-passport-CkKwXRpV.js} +1 -1
  75. package/dist/assets/{fallback-iFxe1QEH.js → fallback-CZphvxUW.js} +1 -1
  76. package/dist/assets/{format-error-BTo2sOsy.js → format-error-CXdN1FRr.js} +1 -1
  77. package/dist/assets/{fuel-BN90_Z9V.js → fuel-BGk_pRUi.js} +1 -1
  78. package/dist/assets/{fullpage-BeQEfGEU.js → fullpage-t0Eb7gOv.js} +1 -1
  79. package/dist/assets/{home-BWWr9Pub.js → home-CAcslAId.js} +1 -1
  80. package/dist/assets/{iframe-BM-ye9El.js → iframe-BweF8i2N.js} +1 -1
  81. package/dist/assets/{index-DIdke58B.js → index-6CmFWKxW.js} +1 -1
  82. package/dist/assets/{index-DsXDaWwP.js → index-BAHSSBIt.js} +1 -1
  83. package/dist/assets/{index-KDOy0aWS.js → index-BIJ1ShEj.js} +1 -1
  84. package/dist/assets/{index-Yhw9Sqjw.js → index-BKgLr7iJ.js} +1 -1
  85. package/dist/assets/{index-PyVJ1uw4.js → index-BV59_fK8.js} +1 -1
  86. package/dist/assets/{index-mDicGCqx.js → index-B_KSOQaY.js} +1 -1
  87. package/dist/assets/{index-B2VTYhTK.js → index-BhM6MUHW.js} +1 -1
  88. package/dist/assets/{index-epYODeW2.js → index-BoADayf0.js} +1 -1
  89. package/dist/assets/{index-WfBcu-P1.js → index-BpurFcj_.js} +1 -1
  90. package/dist/assets/{index-Cpj1zQ53.js → index-Bq873m-M.js} +1 -1
  91. package/dist/assets/{index-C6s_FyYj.js → index-BudjNeVm.js} +1 -1
  92. package/dist/assets/{index-xZ--t8ut.js → index-BwNafjpz.js} +1 -1
  93. package/dist/assets/{index-gtaSQ7gG.js → index-BywbtwuD.js} +1 -1
  94. package/dist/assets/{index-CtTJXVmG.js → index-C2i42yz-.js} +1 -1
  95. package/dist/assets/{index-CH6xw3Jk.js → index-CCeMT7tu.js} +1 -1
  96. package/dist/assets/{index-Bt3JYQGV.js → index-CEmYvrWS.js} +1 -1
  97. package/dist/assets/{index-BsrufvYy.js → index-COhNoKZB.js} +4 -4
  98. package/dist/assets/{index-CNgteYFD.js → index-CZtE_X_i.js} +1 -1
  99. package/dist/assets/{index-B-luKSks.js → index-Cmvsrm6T.js} +1 -1
  100. package/dist/assets/{index-Bqwy4e4W.js → index-CsSPItMW.js} +1 -1
  101. package/dist/assets/{index-Bxbm4EMl.js → index-D5OtG6Mk.js} +1 -1
  102. package/dist/assets/{index-cLm2IEPr.js → index-D6mWS7ID.js} +1 -1
  103. package/dist/assets/{index-BSXNgTl3.js → index-D72EFlhx.js} +2 -2
  104. package/dist/assets/{index-Gre-8z9c.js → index-D8Rwl_oY.js} +1 -1
  105. package/dist/assets/{index-ChCLhV94.js → index-DUH3b1i-.js} +3 -3
  106. package/dist/assets/{index-vuG-tmg9.js → index-DWSAJlMZ.js} +1 -1
  107. package/dist/assets/{index-lBw0H73K.js → index-DXYqhcEQ.js} +1 -1
  108. package/dist/assets/{index-Den5lqn5.js → index-DhnDeXju.js} +1 -1
  109. package/dist/assets/{index-vWNkWn6D.js → index-DqJagf6z.js} +1 -1
  110. package/dist/assets/{index-CQK4XXi1.js → index-DqianND3.js} +1 -1
  111. package/dist/assets/{index-DViUZb8d.js → index-DwcT7eOS.js} +1 -1
  112. package/dist/assets/{index-CYHohlep.js → index-ToKR5qui.js} +1 -1
  113. package/dist/assets/{index-BMjJsyOm.js → index-VSD7bmHs.js} +1 -1
  114. package/dist/assets/{index.es-Bu8p_gVi.js → index.es-CUlHuCEu.js} +1 -1
  115. package/dist/assets/{index.esm-DFvabpqA.js → index.esm-2vHQs0-V.js} +1 -1
  116. package/dist/assets/{invitation-Dkf5j7Cx.js → invitation-DTLEsIoa.js} +1 -1
  117. package/dist/assets/{invite-Bv4ckLQM.js → invite-DGnUdveP.js} +1 -1
  118. package/dist/assets/{issue-passport-DjiRUYZ3.js → issue-passport-DqqvxmZe.js} +1 -1
  119. package/dist/assets/{item-bLTqsv2V.js → item-BuLQUhWe.js} +1 -1
  120. package/dist/assets/{jss-plugin-props-sort.esm-BMX6GVGS.js → jss-plugin-props-sort.esm-C_H5IgvT.js} +1 -1
  121. package/dist/assets/{launch-result-message-vjq2wI81.js → launch-result-message-DyYZCmeT.js} +1 -1
  122. package/dist/assets/{layout-Cyqn-aQE.js → layout-Bx7Peyvz.js} +1 -1
  123. package/dist/assets/{list-header-EA-BLfKM.js → list-header-DDHmhEnv.js} +1 -1
  124. package/dist/assets/localization-DhZidr_T.js +1 -0
  125. package/dist/assets/{log-C6s81A46.js → log-BPfsbYqD.js} +1 -1
  126. package/dist/assets/{login-BbFOUgLg.js → login-C278QolI.js} +1 -1
  127. package/dist/assets/{login-oauth-callback-BhxSgaZ6.js → login-oauth-callback-PaiObKN8.js} +1 -1
  128. package/dist/assets/{logo-uploader-DwIbVZzU.js → logo-uploader-B4UtraHT.js} +3 -3
  129. package/dist/assets/{lost-passport-CPNJQz4_.js → lost-passport-I93PXLcK.js} +3 -3
  130. package/dist/assets/{lottie-CDJt9sxS.js → lottie-DU_0GgxZ.js} +1 -1
  131. package/dist/assets/{notifications-odlwUvdh.js → notifications-C0_Sgq4c.js} +1 -1
  132. package/dist/assets/{open-window-BSOd9nWZ.js → open-window-CS3xM-f5.js} +1 -1
  133. package/dist/assets/{overview-BLsrTI_U.js → overview-CLfnBcZ6.js} +1 -1
  134. package/dist/assets/{page-header-Bl6FpBo-.js → page-header-DpscBZ9E.js} +1 -1
  135. package/dist/assets/{permission-DrtsPi3A.js → permission-FLxnRevE.js} +1 -1
  136. package/dist/assets/{preferences-DmeQhObF.js → preferences-BnuOBvF-.js} +1 -1
  137. package/dist/assets/publish-resource-Dqf9cH9l.js +1 -0
  138. package/dist/assets/{react-DL5EGmZR.js → react-BJCDFtrW.js} +3 -3
  139. package/dist/assets/{redux-D0zq8PYj.js → redux-at50qVr-.js} +1 -1
  140. package/dist/assets/{resource-dialog-1BYw_f8A.js → resource-dialog-BER6eqT7.js} +1 -1
  141. package/dist/assets/sdk-L75L1LA-.js +1 -0
  142. package/dist/assets/{selector-Bqv1cSRc.js → selector-CqQYOmjD.js} +1 -1
  143. package/dist/assets/session-CfYWCxVo.js +1 -0
  144. package/dist/assets/{setup-Btcaa_sk.js → setup-DtP6fUSN.js} +3 -3
  145. package/dist/assets/{shorten-label-wHG2oGCl.js → shorten-label-D4iLfdk8.js} +1 -1
  146. package/dist/assets/{slicedToArray-Dv4JDbRI.js → slicedToArray-j2OF5Cw0.js} +1 -1
  147. package/dist/assets/{spaces-303hXP-m.js → spaces-BKJQsY1h.js} +1 -1
  148. package/dist/assets/{start-Cy4f4eHt.js → start-GYuyJD7V.js} +1 -1
  149. package/dist/assets/{step-actions-SssWLlsZ.js → step-actions-CGhmznVv.js} +1 -1
  150. package/dist/assets/{studio-S7QOZ6iJ.js → studio-Dzfff8g5.js} +1 -1
  151. package/dist/assets/{switch-control-DQCTtEmu.js → switch-control-B2DhyLZ9.js} +1 -1
  152. package/dist/assets/{toUpper-CE-GJpRF.js → toUpper-D0lSoqZ7.js} +1 -1
  153. package/dist/assets/{transfer-DcDmAqsy.js → transfer-DtsP93rN.js} +1 -1
  154. package/dist/assets/{uniqBy-l3dsFoVZ.js → uniqBy-CMRtLz4S.js} +1 -1
  155. package/dist/assets/{unsubscribe-DAT0pcu-.js → unsubscribe-_5jQ2YpV.js} +1 -1
  156. package/dist/assets/{url-join-BCF1MSj_.js → url-join-CgmN-Pq9.js} +1 -1
  157. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-B5DOV2jF.js → use-blocklet-info-for-connect-did-spaces-p5yhH4W4.js} +1 -1
  158. package/dist/assets/{use-mobile-CG2H0Itc.js → use-mobile-Citjf6m0.js} +1 -1
  159. package/dist/assets/{useAsync-D_GBVXyM.js → useAsync-uTaa68Wb.js} +1 -1
  160. package/dist/assets/{useFormControl-cywmDuiA.js → useFormControl-CUXKZ_gu.js} +1 -1
  161. package/dist/assets/{useLocalStorage-DrkFylVo.js → useLocalStorage-CLAY664q.js} +1 -1
  162. package/dist/assets/{useSetState-DIAnRvUO.js → useSetState-BnwlPJSP.js} +1 -1
  163. package/dist/assets/{useSlot-rUibNc1t.js → useSlot-CdCl0qNN.js} +1 -1
  164. package/dist/assets/{useSlotProps-D0FDJtqc.js → useSlotProps-DMpXItJY.js} +1 -1
  165. package/dist/assets/{useThemeProps-TricuE4R.js → useThemeProps-t8Z-VTfo.js} +1 -1
  166. package/dist/assets/{user-center-Cbrq0Bv3.js → user-center-w2aQ7xJJ.js} +1 -1
  167. package/dist/assets/{user-sessions-DDNnTf-W.js → user-sessions-D1Gr5AEC.js} +1 -1
  168. package/dist/assets/{util-EtIRSuFW.js → util-CmRFW-SV.js} +1 -1
  169. package/dist/assets/{wrap-locale-BjE8BIyl.js → wrap-locale-gasrkW-r.js} +1 -1
  170. package/dist/index.html +1 -1
  171. package/dist/service-worker.js +1 -1
  172. package/package.json +18 -18
  173. package/dist/assets/api-DoDJZYqZ.js +0 -1
  174. package/dist/assets/dashboard-CuP4aWas.js +0 -165
  175. package/dist/assets/localization-CyfMl-JK.js +0 -1
  176. package/dist/assets/publish-resource-CBxkMxOl.js +0 -1
  177. package/dist/assets/sdk-mxqK4XKk.js +0 -1
  178. package/dist/assets/session-BX0sD_Dd.js +0 -1
@@ -1,165 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-BLsrTI_U.js","assets/index-BSXNgTl3.js","assets/index-D8NuaJ66.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-BMjJsyOm.js","assets/index-Bxbm4EMl.js","assets/did-address-miQOme8J.js","assets/Link-B103RPwf.js","assets/domain-list-ByfH_4BX.js","assets/Add-CvWpFwb9.js","assets/ExpandMore-DTe37e10.js","assets/LockIcon-BbAqn8tR.js","assets/index-lBw0H73K.js","assets/permission-DrtsPi3A.js","assets/useAsync-D_GBVXyM.js","assets/session-BX0sD_Dd.js","assets/confirm-Cwv0NkNp.js","assets/format-error-BTo2sOsy.js","assets/Alert-D6BaRZ7F.js","assets/useSlot-rUibNc1t.js","assets/useSetState-DIAnRvUO.js","assets/use-mobile-CG2H0Itc.js","assets/InfoOutlined-C7gqICvw.js","assets/OpenInNew-cdburhfQ.js","assets/index-epYODeW2.js","assets/api-DoDJZYqZ.js","assets/util-EtIRSuFW.js","assets/TextField-0v_oVobJ.js","assets/FormControl-BTtk2Fad.js","assets/useFormControl-cywmDuiA.js","assets/InputLabel-Bc6EtwvH.js","assets/Select-Dv7psaww.js","assets/LoadingButton-XTgnQgpj.js","assets/useThemeProps-TricuE4R.js","assets/Delete-7FY_-hW2.js","assets/actions-qdAEgYI9.js","assets/ListItemText-OzALNktK.js","assets/index-Gre-8z9c.js","assets/useLocalStorage-DrkFylVo.js","assets/MoreVert-inIvVOb4.js","assets/PlayArrow-Bg4MoRTr.js","assets/ButtonGroup-DxKP8J2j.js","assets/RadioGroup-CWmfUngk.js","assets/FormControlLabel-D3D12HVK.js","assets/FormGroup-BfchPA9v.js","assets/Avatar-CF7xxGtX.js","assets/fallback-iFxe1QEH.js","assets/index-mDicGCqx.js","assets/Toolbar-CermspyY.js","assets/Hidden-Bx2uY5CL.js","assets/index-KDOy0aWS.js","assets/selector-Bqv1cSRc.js","assets/index-C6s_FyYj.js","assets/index-PyVJ1uw4.js","assets/Loop-ajn0Dz_B.js","assets/ViewList-n9WkULd7.js","assets/list-header-EA-BLfKM.js","assets/Search-BYFGRH1q.js","assets/index-WfBcu-P1.js","assets/FilterList-Cf8dLFs7.js","assets/toPropertyKey-PLuKRk1e.js","assets/LastPage-BYYTvJ73.js","assets/index-Cpj1zQ53.js","assets/redux-D0zq8PYj.js","assets/index-DsXDaWwP.js","assets/resource-dialog-1BYw_f8A.js","assets/CloseOutlined-dfX0_udm.js","assets/index-vuG-tmg9.js","assets/user-sessions-DDNnTf-W.js","assets/click-to-copy-CT6HFlqB.js","assets/sdk-mxqK4XKk.js","assets/index-HqFqdQ4r.js","assets/shorten-label-wHG2oGCl.js","assets/index-gtaSQ7gG.js","assets/index-cLm2IEPr.js","assets/EditIcon-DuMLUXPr.js","assets/index-Bt3JYQGV.js","assets/InputAdornment-A7HvHn8B.js","assets/index-B-luKSks.js","assets/iframe-BM-ye9El.js","assets/Edit-DDrR6P5J.js","assets/Done-DGweKa9V.js","assets/logo-uploader-DwIbVZzU.js","assets/ArrowDropDown-D_JtvQgy.js","assets/ChevronRight-BSKZBb_2.js","assets/index.esm-DFvabpqA.js","assets/mode-B2dWMeTO.js","assets/Launch-CEjbrPHI.js","assets/config-Bd98pKpd.js","assets/switch-control-DQCTtEmu.js","assets/Slider-n1kGv6jU.js","assets/index-CYHohlep.js","assets/index-B2VTYhTK.js","assets/index-foZCwT8M.css","assets/audit-logs-CgWtOpVL.js","assets/index-xZ--t8ut.js","assets/index-D4PP6P2d.css","assets/Pagination-aVDLdtSl.js","assets/index-vWNkWn6D.js","assets/log-C6s81A46.js","assets/Download-5T3TCzDB.js","assets/log-D33dFtt_.css","assets/index-BsrufvYy.js","assets/AddBox-B5yAYYc5.js","assets/Error-COixndSy.js","assets/QuestionMarkCircle-BxJnG-bt.js","assets/useSlotProps-D0FDJtqc.js","assets/DeleteOutline-KzktAnTa.js","assets/item-bLTqsv2V.js","assets/jss-plugin-props-sort.esm-BMX6GVGS.js","assets/Stepper-CiCy8LMQ.js","assets/config-navigation-kIkN-CW4.js","assets/slicedToArray-Dv4JDbRI.js","assets/index-Yhw9Sqjw.js","assets/index-Den5lqn5.js","assets/Skeleton-DtyJbT9M.js","assets/index-CQK4XXi1.js","assets/use-blocklet-info-for-connect-did-spaces-B5DOV2jF.js","assets/spaces-303hXP-m.js","assets/component-C1NjVIvL.js","assets/index-Bqwy4e4W.js","assets/toUpper-CE-GJpRF.js","assets/add-component-core-CjnJn3tx.js","assets/lottie-CDJt9sxS.js","assets/index-DViUZb8d.js","assets/url-join-BCF1MSj_.js","assets/launch-result-message-vjq2wI81.js","assets/Close-FzUYS6m6.js","assets/page-header-Bl6FpBo-.js","assets/uniqBy-l3dsFoVZ.js","assets/index-CH6xw3Jk.js","assets/connect-to-CdXioxNK.js","assets/content-layout-Ffxi3pDS.js","assets/preact.module-DJUF--8d.js","assets/add-component-core-D_j8BgsJ.css","assets/analytics-DjYXM6bV.js","assets/LaunchOutlined-CXXofhlE.js","assets/notifications-odlwUvdh.js"])))=>i.map(i=>d[i]);
2
- import{r as x,aE as Xn,aF as Yn,aG as Nt,aH as q,aI as Zn,aJ as Jn,aK as ge,aL as On,aM as vt,j as c,aN as er,aO as po,c as Oe,X as W,Y as G,P as m,Z as Ze,e as Je,aP as ye,a0 as Mt,a7 as B,a9 as Z,aQ as pe,aC as Ut,aR as mo,L as Bt,aS as yt,aT as go,m as ne,a1 as he,F as $,T as K,s as J,aU as ho,aV as vo,aW as yo,aX as xt,u as Q,aY as xo,B as D,J as bo,aZ as wo,a as Ve,a_ as So,a$ as jo,b0 as _o,b1 as Co,b2 as Oo,b3 as Po,b4 as Io,b5 as Eo,b6 as Ro,b7 as tr,b8 as Lo,b9 as To,ba as Do,bb as nr,bc as rr,bd as or,$ as et,be as sr,bf as ce,bg as me,bh as kt,bi as ir,bj as Ao,ae as qe,ai as $o,bk as No,bl as Mo,bm as Uo,ah as Bo,bn as ko,bo as zo,aj as Le,bp as Fo,aB as Ho,C as Ke,bq as Vo,br as qo,bs as Ce,bt as ar,bu as Ko,ac as Pn,a6 as Wo,aa as Go,ad as Qo,af as Xo,bv as ze,a5 as Ue,bw as Yo,H as Zo,a2 as k,bx as Jo,ao as es,R as In}from"./index-BSXNgTl3.js";import{T as ts}from"./index-Gre-8z9c.js";import{_ as ns}from"./useLocalStorage-DrkFylVo.js";import{d as rs}from"./MoreVert-inIvVOb4.js";import{C as En}from"./confirm-Cwv0NkNp.js";import{d as os}from"./Delete-7FY_-hW2.js";import{d as ss,u as is}from"./PlayArrow-Bg4MoRTr.js";import{A as cr}from"./Alert-D6BaRZ7F.js";import{L as as,a as lr}from"./ListItemText-OzALNktK.js";import{B as cs}from"./ButtonGroup-DxKP8J2j.js";import{R as ls,a as Rn}from"./RadioGroup-CWmfUngk.js";import{F as bt,C as us}from"./FormControlLabel-D3D12HVK.js";import{f as zt}from"./format-error-BTo2sOsy.js";import{A as ur}from"./Avatar-CF7xxGtX.js";import{u as ds}from"./session-BX0sD_Dd.js";import{D as fs,_ as dr,P as ps}from"./permission-DrtsPi3A.js";import{T as fr,b as ms}from"./index-Bxbm4EMl.js";import{L as pr}from"./Link-B103RPwf.js";import{_ as mr}from"./useSetState-DIAnRvUO.js";import{E as gs}from"./fallback-iFxe1QEH.js";import{u as hs}from"./index-mDicGCqx.js";import{L as vs,D as ys}from"./index-KDOy0aWS.js";const gr=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function xs(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=gr({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,u=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:u}}function bs(e){return Yn("MuiBadge",e)}const oe=Xn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ws=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ut=10,dt=4,Ss=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${q(n.vertical)}${q(n.horizontal)}`,`anchorOrigin${q(n.vertical)}${q(n.horizontal)}${q(o)}`,`overlap${q(o)}`,t!=="default"&&`color${q(t)}`]};return er(a,bs,s)},js=Nt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),_s=Nt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${q(n.anchorOrigin.vertical)}${q(n.anchorOrigin.horizontal)}${q(n.overlap)}`],n.color!=="default"&&t[`color${q(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ut*2,lineHeight:1,padding:"0 6px",height:ut*2,borderRadius:ut,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:dt,height:dt*2,minWidth:dt*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),hr=x.forwardRef(function(t,n){var r,o,i,s,a,l;const u=Zn({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:p,components:v={},componentsProps:b={},children:h,overlap:w="rectangular",color:I="default",invisible:g=!1,max:_=99,badgeContent:S,slots:O,slotProps:j,showZero:E=!1,variant:C="standard"}=u,P=Jn(u,ws),{badgeContent:R,invisible:L,max:re,displayValue:M}=xs({max:_,invisible:g,badgeContent:S,showZero:E}),be=gr({anchorOrigin:d,color:I,overlap:w,variant:C,badgeContent:S}),we=L||R==null&&C!=="dot",{color:it=I,overlap:at=w,anchorOrigin:ct=d,variant:Se=C}=we?be:u,y=Se!=="dot"?M:void 0,T=ge({},u,{badgeContent:R,invisible:we,max:re,displayValue:y,showZero:E,anchorOrigin:ct,color:it,overlap:at,variant:Se}),z=Ss(T),F=(r=(o=O==null?void 0:O.root)!=null?o:v.Root)!=null?r:js,X=(i=(s=O==null?void 0:O.badge)!=null?s:v.Badge)!=null?i:_s,H=(a=j==null?void 0:j.root)!=null?a:b.root,N=(l=j==null?void 0:j.badge)!=null?l:b.badge,lt=On({elementType:F,externalSlotProps:H,externalForwardedProps:P,additionalProps:{ref:n,as:p},ownerState:T,className:vt(H==null?void 0:H.className,z.root,f)}),de=On({elementType:X,externalSlotProps:N,ownerState:T,className:vt(z.badge,N==null?void 0:N.className)});return c.jsxs(F,ge({},lt,{children:[h,c.jsx(X,ge({},de,{children:y}))]}))});function Cs(e){return Yn("MuiListItemAvatar",e)}Xn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Os=["className"],Ps=e=>{const{alignItems:t,classes:n}=e;return er({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Cs,n)},Is=Nt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>ge({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Es=x.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=Jn(r,Os),s=x.useContext(po),a=ge({},r,{alignItems:s.alignItems}),l=Ps(a);return c.jsx(Is,ge({className:vt(l.root,o),ownerState:a,ref:n},i))}),Rs=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),o=new URL(Oe(n.origin,t));return o.search=r.toString(),o.toString()};var Ft={},Ls=G;Object.defineProperty(Ft,"__esModule",{value:!0});var vr=Ft.default=void 0,Ts=Ls(W()),Ds=c;vr=Ft.default=(0,Ts.default)((0,Ds.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Ht={},As=G;Object.defineProperty(Ht,"__esModule",{value:!0});var yr=Ht.default=void 0,$s=As(W()),Ns=c;yr=Ht.default=(0,$s.default)((0,Ns.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Vt={},Ms=G;Object.defineProperty(Vt,"__esModule",{value:!0});var xr=Vt.default=void 0,Us=Ms(W()),Bs=c;xr=Vt.default=(0,Us.default)((0,Bs.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var qt={},ks=G;Object.defineProperty(qt,"__esModule",{value:!0});var br=qt.default=void 0,zs=ks(W()),Fs=c;br=qt.default=(0,zs.default)((0,Fs.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Kt={},Hs=G;Object.defineProperty(Kt,"__esModule",{value:!0});var wr=Kt.default=void 0,Vs=Hs(W()),qs=c;wr=Kt.default=(0,Vs.default)((0,qs.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Wt={},Ks=G;Object.defineProperty(Wt,"__esModule",{value:!0});var Sr=Wt.default=void 0,Ws=Ks(W()),Gs=c;Sr=Wt.default=(0,Ws.default)((0,Gs.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Gt={},Qs=G;Object.defineProperty(Gt,"__esModule",{value:!0});var jr=Gt.default=void 0,Xs=Qs(W()),Ys=c;jr=Gt.default=(0,Xs.default)((0,Ys.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var _r=Qt.default=void 0;Zs(x);var Ln=c;function Zs(e){return e&&e.__esModule?e:{default:e}}function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tn(Object(n),!0).forEach(function(r){Js(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Js(e,t,n){return t=ei(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e){var t=ti(e,"string");return typeof t=="symbol"?t:String(t)}function ti(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xt=function(t){return(0,Ln.jsx)("svg",Dn(Dn({},t),{},{children:(0,Ln.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.33 8.207A11.52 11.52 0 0 1 23.504 26.34H8.496A11.52 11.52 0 0 1 9.33 8.207zM16 3.52a14.08 14.08 0 0 0-8.76 25.102c.226.18.506.278.796.278h15.928c.29 0 .57-.098.797-.278A14.08 14.08 0 0 0 16 3.52zm5.883 10.072a1.28 1.28 0 0 0-1.81-1.81l-2.205 2.205a4.124 4.124 0 1 0 1.81 1.81l2.205-2.205zm-7.447 4.073a1.564 1.564 0 1 1 3.128 0 1.564 1.564 0 0 1-3.129 0z",fill:"currentColor"})}))};Xt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Xt.displayName="dashboard";_r=Qt.default=Xt;const te={Start:ss,Stop:vr,Restart:yr,Reload:xr,Remove:os,Config:br,Log:wr,Group:Sr,Cancel:jr,Dashboard:_r};function Yt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:s,...a}){const l=Je(),u=ye(),[d,f]=x.useState(null),[p,v]=x.useState(null),[b,h]=x.useState(!1),[w,I]=x.useState(null),{t:g}=x.useContext(Mt),[_]=ns("skip-blocklet-setup",!1),{loading:S,recommendedUrl:O}=s(e),j=B.isInProgress(e.status),[E,C]=x.useState(!1);x.useEffect(()=>{var T,z;if(!(e!=null&&e.controller))return;C(((z=(T=e==null?void 0:e.controller)==null?void 0:T.status)==null?void 0:z.value)===Z.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var F,X,H;try{const N=await u.api.getLauncherSession({input:{launcherSessionId:(F=e==null?void 0:e.controller)==null?void 0:F.launcherSessionId,launcherUrl:(X=e==null?void 0:e.controller)==null?void 0:X.launcherUrl}});if(N!=null&&N.error){console.error("get launcher session failed",N.error);return}C([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((H=N==null?void 0:N.launcherSession)==null?void 0:H.status))}catch(N){console.error("call getLauncherSession error",N)}})()},[]);const{inService:P}=u,R=()=>{const y=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),T=i==null?void 0:i({mountPoint:y,blocklet:e});window.open(Rs(T,".well-known/service/admin"))},L=(y,T,z=!1)=>async()=>{const F=async de=>{var Me;t({action:y,blocklet:e}),h(!0),v(y);let Ne=!1;try{if(y==="remove")await T(de);else if(y==="start"){if(!B.hasRunnableComponent(e)){J.error(g("blocklet.noComponent"));return}if(!P&&!_&&!((Me=e.settings)!=null&&Me.initialized)&&e.mode!==Z.BLOCKLET_MODES.DEVELOPMENT){const Y=ho(u.info),Cn=new URL(O);Cn.searchParams.set("serverUrl",Y),window.open(Cn.href),n({action:y,blocklet:e});return}const ae=e.children.filter(Y=>!B.isInProgress(Y.status)&&Y.status!=="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await T({input:fe})}else if(["stop","restart","reload"].includes(y)){const ae=e.children.filter(Y=>Y.status==="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await T({input:fe})}else{const ae={did:e.meta.did};await T({input:ae})}y==="remove"?Ne=!0:await vo(1e3),y==="reload"&&J.success(g("blocklet.reloadSuccess")),I(null),n({action:y,blocklet:e})}catch(ae){const fe=`Blocklet ${y} failed: ${zt(ae)}`;throw n({action:y,blocklet:e,error:new Error(fe)}),new Error(fe)}finally{Ne||h(!1)}},X=()=>{h(!1),I(null)},H=B.getDisplayName(e,!0),N=e.mode===Z.BLOCKLET_MODES.DEVELOPMENT?{description:()=>c.jsx(K,{component:"div",children:c.jsx(K,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(de,Ne)=>c.jsxs(K,{component:"div",children:[c.jsx(K,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),c.jsxs(ls,{name:"removeType",value:de.removeType,onChange:Me=>Ne({...de,removeType:Me.target.value}),children:[c.jsx(bt,{value:"backup",control:c.jsx(Rn,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),c.jsx(bt,{value:"complete",control:c.jsx(Rn,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},lt={stop:{title:`${g("common.stop")} ${H}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:F,onCancel:X},restart:{title:`${g("common.restart")} ${H}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:F,onCancel:X},remove:{title:`${g("common.remove")} ${H}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:F,onCancel:X,...N},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:H}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:F,onCancel:X}};z?I(lt[y]):await F()},re=!!d,M=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(y.currentTarget)},be=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(null)},we=async(y,T)=>{try{T.stopPropagation(),T.preventDefault()}catch{}if(typeof y.handler=="function")try{h(!0),v(y.action),await y.handler()}catch(z){console.error(`Blocklet ${y.name} failed: `,z)}finally{h(!1),f(null)}else f(null)},it=!P&&B.isDeletableBlocklet(e)?{action:"remove",icon:te.Remove,name:g("common.remove"),handler:L("remove",async({removeType:y})=>{y==="backup"&&await u.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await u.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:j}:null,at={action:"remove",icon:({sx:y,...T})=>c.jsx(te.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...T}),name:g("common.cancel"),handler:L("cancelDownload",u.api.cancelDownloadBlocklet,!0)},ct=B.getAppMissingConfigs(e),Se=[{action:"start",icon:te.Start,name:g("common.start"),handler:L("start",u.api.startBlocklet),disabled:E||e.children.every(y=>y.status==="running")||pe(e.status)||S||j},{action:"stop",icon:te.Stop,name:g("common.stop"),handler:L("stop",u.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:te.Restart,name:g("common.restart"),handler:L("restart",u.api.restartBlocklet,!0),disabled:E||e.status!=="running"},pe(e.status)?at:it,{separator:!0},P?null:{action:"dashboard",icon:({style:y,...T})=>c.jsx(te.Dashboard,{...T,style:{...y,width:"26px",height:"26px",paddingRight:"3px"}}),name:g("sidebar.dashboard"),handler:R,disabled:E||e.status!=="running"},{separator:!0},{onlyInMenu:!0,action:"config",icon:te.Config,name:g("common.config"),handler:()=>{l(`/blocklets/${e.meta.did}/configuration`)},disabled:pe(e.status)},{onlyInMenu:!0,action:"team",icon:te.Group,name:g("common.manageTeam"),handler:()=>{l(`/blocklets/${e.meta.did}/members`)},disabled:pe(e.status)},{onlyInMenu:!0,action:"log",icon:te.Log,name:g("common.log"),handler:()=>{l(`/logs/blocklet-${e.meta.did}`)},disabled:pe(e.status)}].filter(Boolean);return r==="menu"?c.jsxs(An,{"data-cy":"blocklet-actions",children:[c.jsx(Ut,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:M,size:"small",disabled:!o||!pe(e.status)&&b,children:c.jsx(rs,{})}),c.jsxs(mo,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:re,onClose:be,PaperProps:{},children:[ct.length>0&&c.jsxs(cr,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),c.jsx("br",{}),c.jsx(Bt,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),Se.map((y,T)=>y.separator?c.jsx(yt,{},`separator-${T}`):c.jsxs(go,{dense:!0,onClick:z=>we(y,z),disabled:b||y.disabled,"data-cy":`${y.action}-blocklet`,children:[c.jsx(as,{style:{minWidth:24},children:p===y.action&&b?c.jsx(ne,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{fontSize:"small"})}),c.jsx(lr,{primary:y.name})]},y.name))]}),w&&c.jsx(En,{title:w.title,description:w.description,confirm:w.confirm,cancel:w.cancel,params:w.params,onConfirm:w.onConfirm,onCancel:w.onCancel})]}):c.jsxs(An,{"data-cy":"blocklet-actions",...a,children:[c.jsx(cs,{children:Se.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>c.jsxs(he,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>we(y),disabled:!!y.disabled||b,children:[p===y.action&&b?c.jsx(ne,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{}),c.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),w&&c.jsx(En,{title:w.title,description:w.description,confirm:w.confirm,cancel:w.cancel,params:w.params,onConfirm:w.onConfirm,onCancel:w.onCancel})]})}Yt.propTypes={getComponentUrl:m.func,blocklet:m.object.isRequired,onStart:m.func.isRequired,onComplete:m.func.isRequired,variant:m.oneOf(["menu","group"]),hasPermission:m.bool,useBlockletUrlEvaluation:m.func};Yt.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const An=Ze.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
- `,ft=(e,t)=>{var r;let n="?v=";return t?n+=yo(t):n+=`${(r=e==null?void 0:e.meta)==null?void 0:r.version}${xt(e==null?void 0:e.status)?"~":""}`,n};function ni({blocklet:e}){var u,d,f,p;const{inService:t}=ye(),n=(u=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:u.value,r=(d=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:d.value,o=(f=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:f.value,i=((p=window.env)==null?void 0:p.apiPrefix)||"/",s=`${Oe(i,`/blocklet/logo/${t?"":e.meta.did}`)}${ft(e,n)}`,a=`${Oe(i,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${ft(e,r)}`,l=`${Oe(i,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${ft(e,o)}`;return{logoUrl:s,rectLogoUrl:a,faviconUrl:l}}function Zt({blocklet:e,style:t,size:n,...r}){const{logoUrl:o}=ni({blocklet:e}),{variant:i}=r;return c.jsx(ur,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},t),...r,children:c.jsx("img",{src:o,alt:"",style:{width:n}})})}Zt.propTypes={blocklet:m.object.isRequired,style:m.object,size:m.oneOfType([m.number,m.string])};Zt.defaultProps={style:{},size:40};const ri=e=>{const t={};let n=null;return B.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=B.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},oi=(e,t,n)=>{var i;const{hostname:r,href:o}=e;if(!t)return o;if(n){const a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!a)return o;const l=a[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith($.DEFAULT_DID_DOMAIN))||"").replace(`.${$.DEFAULT_DID_DOMAIN}`,"");return d?o.replace(r,`${d}-${l}.${$.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Cr(){const{t:e}=Q(),{api:t}=ds(),{blocklet:n}=xo(),{inService:r}=ye(),[o,i]=x.useState(!1),[s,a]=x.useState(5),l=n&&n.structVersion!==$.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){J.error(e("blocklet.migrate.tip.running"));return}const p=ri(n);if(p){J.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){J.error(zt(p))}},d=()=>{const p=oi(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),a(5),setInterval(()=>{a(v=>v-1)},1e3)},f=()=>i(!1);return[l&&c.jsxs(cr,{severity:"warning",style:{margin:"12px 0"},children:[c.jsxs(D,{display:"flex",alignItems:"center",children:[c.jsx(he,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),c.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>c.jsx(D,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&c.jsx(bo,{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:wo(n,!0),title:B.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:f},"connect")]}Cr.propTypes={};function Jt({children:e,style:t,...n}){return c.jsx(fr,{style:t,...n,children:e})}Jt.propTypes={children:m.any.isRequired,style:m.object};Jt.defaultProps={style:{}};const U={yellow:"#FFCF71",grey:"#888888"};function en({isResource:e,status:t,variant:n,source:r,progress:o,...i}){const{t:s}=x.useContext(Mt),a={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:U.grey,waiting:U.yellow,downloading:U.yellow,extracting:U.yellow,downloaded:U.grey,installing:U.yellow,installed:U.grey,starting:U.yellow,running:"success",stopping:U.yellow,stopped:U.grey,error:"error",upgrading:U.yellow,restarting:U.yellow,corrupted:"error",deleting:U.yellow,resource:"primary"},u=B.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=s(`blocklet.status.${d}`);return n==="dot"?c.jsx(Ve,{title:s("blocklet.statusTip",{status:f}),children:c.jsx(fs,{color:l[d],...i})}):c.jsxs(Jt,{type:a[d],...i,children:[u&&c.jsx(ne,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&o?c.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}en.propTypes={status:m.string.isRequired,variant:m.oneOf(["dot","tag"]),source:m.string,progress:m.number,isResource:m.bool};en.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};var si=So,ii=Co,ai=Oo,ci=jo,li=_o,ui=Po,di=200;function fi(e,t,n,r){var o=-1,i=ii,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=ci(t,li(n))),r?(i=ai,s=!1):t.length>=di&&(i=ui,s=!1,t=new si(t));e:for(;++o<a;){var d=e[o],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(d)}else i(t,f,r)||l.push(d)}return l}var pi=fi,mi=pi,gi=Io,$n=Eo;function hi(e,t,n){var r=e.length;if(r<2)return r?$n(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var s=e[o],a=-1;++a<r;)a!=o&&(i[o]=mi(i[o]||s,e[a],t,n));return $n(gi(i,1),t,n)}var vi=hi,yi=Lo,xi=Ro,bi=vi,wi=Do,Si=To,ji=xi(function(e){var t=Si(e);return t=typeof t=="function"?t:void 0,bi(yi(e,wi),void 0,t)}),_i=ji;const Ci=tr(_i),Or=x.createContext({});function tn({children:e,type:t}){const[n,r]=x.useState([]),o=x.useRef([]),i=l=>{if(!o.current.includes(l)){const u=[...o.current,l];r(u),o.current=u}},s=l=>{if(o.current.includes(l)){const u=o.current.filter(d=>d!==l);r(u),o.current=u}},a=l=>{const u=n.filter(f=>l.find(p=>p===f));Ci(u,n).forEach(f=>s(f))};return c.jsx(Or.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:s,matchDeletingDid:a},children:e})}tn.propTypes={type:m.string,children:m.node.isRequired};tn.defaultProps={type:"blocklets"};function Il(){return x.useContext(Or)}function A(e,t,n){return nr.call(t,"css")?c.jsx(rr,or(e,t),n):c.jsx(e,t,n)}function pt(e,t,n){return nr.call(t,"css")?c.jsxs(rr,or(e,t),n):c.jsxs(e,t,n)}/**
13
- * (c) Iconify
14
- *
15
- * For the full copyright and license information, please view the license.txt or license.gpl.txt
16
- * files at https://github.com/iconify/iconify
17
- *
18
- * Licensed under MIT.
19
- *
20
- * @license MIT
21
- * @version 3.1.1
22
- */const Pr=Object.freeze({left:0,top:0,width:16,height:16}),We=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Te=Object.freeze({...Pr,...We}),wt=Object.freeze({...Te,body:"",hidden:!1});function Oi(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 Nn(e,t){const n=Oi(e,t);for(const r in wt)r in We?r in e&&!(r in n)&&(n[r]=We[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Pi(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,l=a&&i(a);l&&(o[s]=[a].concat(l))}return o[s]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function Ii(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=Nn(r[a]||o[a],i)}return s(t),n.forEach(s),Nn(e,i)}function Ei(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=Pi(e);for(const o in r){const i=r[o];i&&(t(o,Ii(e,o,i)),n.push(o))}return n}const Pe=/^[a-z0-9]+(-[a-z0-9]+)*$/,xe=(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 a=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!Fe(u)?null:u}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!Fe(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!Fe(a,n)?null:a}return null},Fe=(e,t)=>e?!!((e.provider===""||e.provider.match(Pe))&&(t&&e.prefix===""||e.prefix.match(Pe))&&e.name.match(Pe)):!1,Ri={provider:"",aliases:{},not_found:{},...Pr};function mt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Li(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!mt(e,Ri))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Pe)||typeof i.body!="string"||!mt(i,wt))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(Pe)||typeof s!="string"||!n[s]&&!r[s]||!mt(i,wt))return null}return t}const Ge=Object.create(null);function Ti(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ee(e,t){const n=Ge[e]||(Ge[e]=Object.create(null));return n[t]||(n[t]=Ti(e,t))}function nn(e,t){return Li(t)?Ei(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Di(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Ai(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Ge)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Ge[o]||{})).forEach(s=>{const a=ee(o,s);n=n.concat(Object.keys(a.icons).map(l=>(o!==""?"@"+o+":":"")+s+":"+l))})}),n}let rn=!1;function $i(e){return rn}function De(e){const t=typeof e=="string"?xe(e,!0,rn):e;if(t){const n=ee(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Ni(e,t){const n=xe(e,!0,rn);if(!n)return!1;const r=ee(n.provider,n.prefix);return Di(r,n.name,t)}function Ir(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Fe({provider:t,prefix:n,name:"a"}))return!1;const r=ee(t,n);return!!nn(r,e)}function Mi(e){return!!De(e)}function Ui(e){const t=De(e);return t?{...Te,...t}:null}const Er=Object.freeze({width:null,height:null}),Rr=Object.freeze({...Er,...We}),Bi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ki=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function St(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(Bi);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=ki.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const zi=e=>e==="unset"||e==="undefined"||e==="none";function tt(e,t){const n={...Te,...e},r={...Rr,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(b=>{const h=[],w=b.hFlip,I=b.vFlip;let g=b.rotate;w?I?g+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):I&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let _;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:_=o.height/2+o.top,h.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:_=o.width/2+o.left,h.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}g%2===1&&(o.left!==o.top&&(_=o.left,o.left=o.top,o.top=_),o.width!==o.height&&(_=o.width,o.width=o.height,o.height=_)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const s=r.width,a=r.height,l=o.width,u=o.height;let d,f;s===null?(f=a===null?"1em":a==="auto"?u:a,d=St(f,l/u)):(d=s==="auto"?l:s,f=a===null?St(d,u/l):a==="auto"?u:a);const p={},v=(b,h)=>{zi(h)||(p[b]=h.toString())};return v("width",d),v("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Fi=/\sid="(\S+)"/g,Hi="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Vi=0;function Lr(e,t=Hi){const n=[];let r;for(;r=Fi.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Vi++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const le={local:!0,session:!0},Tr={local:new Set,session:new Set};let on=!1;function qi(e){on=e}const Mn="iconify2",Re="iconify",Dr=Re+"-count",Un=Re+"-version",Ar=36e5,Ki=168;function jt(e,t){try{return e.getItem(t)}catch{}}function sn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Bn(e,t){try{e.removeItem(t)}catch{}}function _t(e,t){return sn(e,Dr,t.toString())}function Ct(e){return parseInt(jt(e,Dr))||0}let Be=typeof window>"u"?{}:window;function $r(e){const t=e+"Storage";try{if(Be&&Be[t]&&typeof Be[t].length=="number")return Be[t]}catch{}le[e]=!1}function Nr(e,t){const n=$r(e);if(!n)return;const r=jt(n,Un);if(r!==Mn){if(r){const a=Ct(n);for(let l=0;l<a;l++)Bn(n,Re+l.toString())}sn(n,Un,Mn),_t(n,0);return}const o=Math.floor(Date.now()/Ar)-Ki,i=a=>{const l=Re+a.toString(),u=jt(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,a))return!0}catch{}Bn(n,l)}};let s=Ct(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,_t(n,s)):Tr[e].add(a))}function Mr(){if(!on){qi(!0);for(const e in le)Nr(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=ee(r,o);if(!nn(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function Ur(e,t){switch(e){case"local":case"session":le[e]=t;break;case"all":for(const n in le)le[n]=t;break}}const Ot=Object.create(null);function Br(e,t){Ot[e]=t}function Pt(e){return Ot[e]||Ot[""]}function an(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 nt=Object.create(null),je=["https://api.simplesvg.com","https://api.unisvg.com"],He=[];for(;je.length>0;)je.length===1||Math.random()>.5?He.push(je.shift()):He.push(je.pop());nt[""]=an({resources:["https://api.iconify.design"].concat(He)});function kr(e,t){const n=an(t);return n===null?!1:(nt[e]=n,!0)}function rt(e){return nt[e]}function Wi(){return Object.keys(nt)}const Gi=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Qe=Gi();function Qi(e){Qe=e}function Xi(){return Qe}function Yi(e,t){const n=rt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function Zi(e){return e===404}const Ji=(e,t,n)=>{const r=[],o=Yi(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=o&&u>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function ea(e){if(typeof e=="string"){const t=rt(e);if(t)return t.path}return"/"}const ta=(e,t,n)=>{if(!Qe){n("abort",424);return}let r=ea(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;Qe(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(Zi(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},na={prepare:Ji,send:ta};function ra(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.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 i=o.provider,s=o.prefix,a=o.name,l=n[i]||(n[i]=Object.create(null)),u=l[s]||(l[s]=ee(i,s));let d;a in u.icons?d=t.loaded:s===""||u.missing.has(a)?d=t.missing:d=t.pending;const f={provider:i,prefix:s,name:a};d.push(f)}),t}function zr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function oa(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(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||zr([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let sa=0;function ia(e,t,n){const r=sa++,o=zr.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function aa(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?xe(o,t,n):o;i&&r.push(i)}),r}var ca={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function la(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let j=e.resources.slice(0);for(s=[];j.length>1;){const E=Math.floor(Math.random()*j.length);s.push(j[E]),j=j.slice(0,E).concat(j.slice(E+1))}s=s.concat(j)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",u=0,d,f=null,p=[],v=[];typeof r=="function"&&v.push(r);function b(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),b(),p.forEach(j=>{j.status==="pending"&&(j.status="aborted")}),p=[]}function w(j,E){E&&(v=[]),typeof j=="function"&&v.push(j)}function I(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:w,abort:h}}function g(){l="failed",v.forEach(j=>{j(void 0,d)})}function _(){p.forEach(j=>{j.status==="pending"&&(j.status="aborted")}),p=[]}function S(j,E,C){const P=E!=="success";switch(p=p.filter(R=>R!==j),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){d=C,g();return}if(P){d=C,p.length||(s.length?O():g());return}if(b(),_(),!e.random){const R=e.resources.indexOf(j.resource);R!==-1&&R!==e.index&&(e.index=R)}l="completed",v.forEach(R=>{R(C)})}function O(){if(l!=="pending")return;b();const j=s.shift();if(j===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(_(),g())},e.timeout);return}g();return}const E={status:"pending",resource:j,callback:(C,P)=>{S(E,C,P)}};p.push(E),u++,f=setTimeout(O,e.rotate),n(j,t,E.callback)}return setTimeout(O),I}function Fr(e){const t={...ca,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const d=la(t,a,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(a){return n.find(l=>a(l))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function kn(){}const gt=Object.create(null);function ua(e){if(!gt[e]){const t=rt(e);if(!t)return;const n=Fr(t),r={config:t,redundancy:n};gt[e]=r}return gt[e]}function Hr(e,t,n){let r,o;if(typeof e=="string"){const i=Pt(e);if(!i)return n(void 0,424),kn;o=i.send;const s=ua(e);s&&(r=s.redundancy)}else{const i=an(e);if(i){r=Fr(i);const s=e.resources?e.resources[0]:"",a=Pt(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),kn):r.query(t,o,n)().abort}function da(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in le)Nr(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function fa(e,t){on||Mr();function n(r){let o;if(!le[r]||!(o=$r(r)))return;const i=Tr[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Ct(o),!_t(o,s+1))return;const a={cached:Math.floor(Date.now()/Ar),provider:e.provider,data:t};return sn(o,Re+s.toString(),JSON.stringify(a))}t.lastModified&&!da(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function zn(){}function pa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,oa(e)}))}function ma(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 i;if(!o||!(i=Pt(n)))return;i.prepare(n,r,o).forEach(a=>{Hr(n,a,l=>{if(typeof l!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=nn(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),fa(e,l)}catch(u){console.error(u)}pa(e)})})}))}const ga=e=>{const n=ee(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},cn=(e,t)=>{const n=aa(e,!0,$i()),r=ra(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,zn)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===a&&u===s)return;s=u,a=d,i.push(ee(u,d));const f=o[u]||(o[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=ee(u,d),v=p.pendingIcons||(p.pendingIcons=new Set);v.has(f)||(v.add(f),o[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;o[u][d].length&&ma(l,o[u][d])}),t?ia(t,r,i):zn},ha=e=>new Promise((t,n)=>{const r=typeof e=="string"?xe(e,!0):e;if(!r){n(e);return}cn([r||e],o=>{if(o.length&&r){const i=De(r);if(i){t({...Te,...i});return}}n(e)})});function Vr(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in Er?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ot={...Rr,inline:!1},ht="iconify",It="iconify-inline",ie="iconifyData"+Date.now();let ue=[];function Ae(e){for(let t=0;t<ue.length;t++){const n=ue[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function qr(e,t=!1){let n=Ae(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ue.push(n),n)}function va(){if(document.documentElement)return qr(document.documentElement);ue.push({node:()=>document.documentElement})}function ya(e){ue=ue.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function $e(){return ue}function xa(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Ie=null;const ba={childList:!0,subtree:!0,attributes:!0};function Kr(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,Ie&&Ie(e)}))}function wa(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[ie]!==void 0){n.paused||Kr(e);return}}}function Wr(e,t){e.observer.instance.observe(t,ba)}function Xe(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(wa.bind(null,e)),Wr(e,n),t.paused||Kr(e))}function Fn(){$e().forEach(Xe)}function Gr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Sa(e){const t=Ie!==null;if(Ie!==e&&(Ie=e,t&&$e().forEach(Gr)),t){Fn();return}xa(Fn)}function Et(e){(e?[e]:$e()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function ja(e){if(e){const t=Ae(e);t&&Et(t)}else Et()}function Rt(e){(e?[e]:$e()).forEach(t=>{if(!t.observer){Xe(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?Wr(t,r):Xe(t);else return}})}function _a(e){if(e){const t=Ae(e);t&&Rt(t)}else Rt()}function Qr(e,t=!1){const n=qr(e,t);return Xe(n),n}function Xr(e){const t=Ae(e);t&&(Gr(t),ya(e))}function Ca(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ot)if(n[o]!==r[o])return!0;return!1}function Oa(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 i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const Pa=/[\s,]+/;function Ia(e,t){t.split(Pa).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ea=["width","height"],Ra=["inline","hFlip","vFlip"];function La(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ta(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&xe(t,!0);if(!n)return null;const r={...ot,inline:e.classList&&e.classList.contains(It)};Ea.forEach(a=>{const l=e.getAttribute("data-"+a);l&&(r[a]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Oa(o));const i=e.getAttribute("data-flip");typeof i=="string"&&Ia(r,i),Ra.forEach(a=>{const l="data-"+a,u=La(e.getAttribute(l),l);typeof u=="boolean"&&(r[a]=u)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:s}}const Da="svg."+ht+", i."+ht+", span."+ht+", i."+It+", span."+It;function Aa(e){const t=[];return e.querySelectorAll(Da).forEach(n=>{const r=n[ie]||n.tagName.toLowerCase()!=="svg"?Ta(n):null;r&&t.push({node:n,props:r})}),t}function Yr(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 Ee;function $a(){try{Ee=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Ee=null}}function Na(e){return Ee===void 0&&$a(),Ee?Ee.createHTML(e):e}function Zr(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Jr(e,t,n,r){const o=e.classList;if(r){const s=r.classList;Array.from(s).forEach(a=>{o.add(a)})}const i=[];return t.forEach(s=>{o.contains(s)?n.has(s)&&i.push(s):(o.add(s),i.push(s))}),n.forEach(s=>{t.has(s)||o.remove(s)}),i}function eo(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const o=[];for(const i in t)r.getPropertyValue(i)||(o.push(i),r.setProperty(i,t[i]));return o}function to(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,i=tt(n,o),s=e[ie],a=Yr(Lr(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Na(a);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const h=u.item(b),w=h.name;w!=="class"&&!l.hasAttribute(w)&&l.setAttribute(w,h.value)}const d=Zr(t.icon),f=Jr(l,d,new Set(s&&s.addedClasses),e),p=eo(l,o.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),v={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[ie]=v,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Ma(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ua(e){return"data:image/svg+xml,"+Ma(e)}function Ba(e){return'url("'+Ua(e)+'")'}const ka={display:"inline-block"},Lt={"background-color":"currentColor"},no={"background-color":"transparent"},Hn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Vn={"-webkit-mask":Lt,mask:Lt,background:no};for(const e in Vn){const t=Vn[e];for(const n in Hn)t[e+"-"+n]=Hn[n]}function qn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function za(e,t,n,r){const o=t.customisations,i=tt(n,o),s=i.attributes,a=e[ie],l=Yr(i.body,{...s,width:n.width+"",height:n.height+""}),u=Zr(t.icon),d=Jr(e,u,new Set(a&&a.addedClasses)),p={"--svg":Ba(l),width:qn(s.width),height:qn(s.height),...ka,...r?Lt:no};o.inline&&(p["vertical-align"]="-0.125em");const v=eo(e,p,a&&a.addedStyles),b={...t,status:"loaded",addedClasses:d,addedStyles:v};return e[ie]=b,e}let ke=!1;function Fa(){ke||(ke=!0,setTimeout(()=>{ke&&(ke=!1,ve())}))}function ve(e,t=!1){const n=Object.create(null);function r(o,i){const{provider:s,prefix:a,name:l}=o,u=ee(s,a),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!ga(o)){const f=n[s]||(n[s]=Object.create(null));(f[a]||(f[a]=new Set)).add(l)}return{status:"loading"}}(e?[e]:$e()).forEach(o=>{const i=typeof o.node=="function"?o.node():o.node;if(!i||!i.querySelectorAll)return;let s=!1,a=!1;function l(u,d,f){if(a||(a=!0,Et(o)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,v=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof v=="boolean"){za(u,d,{...Te,...f},v);return}}to(u,d,f)}Aa(i).forEach(({node:u,props:d})=>{const f=u[ie];if(!f){const{status:v,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}s=s||v==="loading",u[ie]={...d,status:v};return}let p;if(Ca(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){s=s||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),o.temporary&&!s?Xr(i):t&&s?Qr(i,!0):a&&o.observer&&Rt(o)});for(const o in n){const i=n[o];for(const s in i){const a=i[s];cn(Array.from(a).map(l=>({provider:o,prefix:s,name:l})),Fa)}}}function Ha(e){const t=Ae(e);t?ve(t):ve({node:e,temporary:!0},!0)}function ro(e,t,n=!1){const r=De(e);if(!r)return null;const o=xe(e),i=Vr(ot,t||{}),s=to(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?s.outerHTML:s}function Va(){return"3.1.1"}function qa(e,t){return ro(e,t,!1)}function Ka(e,t){return ro(e,t,!0)}function Wa(e,t){const n=De(e);if(!n)return null;const r=Vr(ot,t||{});return tt(n,r)}function Ga(e){e?Ha(e):ve()}if(typeof document<"u"&&typeof window<"u"){va();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"||!Ir(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Sa(ve),ve()})}function Qa(e,t){Ur(e,t!==!1)}function Xa(e){Ur(e,!0)}Br("",na);if(typeof document<"u"&&typeof window<"u"){Mr();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;kr(n,o)||console.error(r)}catch{console.error(r)}}}}const Ya={getAPIConfig:rt,setAPIModule:Br,sendAPIQuery:Hr,setFetch:Qi,getFetch:Xi,listAPIProviders:Wi},Za={_api:Ya,addAPIProvider:kr,loadIcons:cn,loadIcon:ha,iconExists:Mi,getIcon:Ui,listIcons:Ai,addIcon:Ni,addCollection:Ir,replaceIDs:Lr,calculateSize:St,buildIcon:tt,getVersion:Va,renderSVG:qa,renderHTML:Ka,renderIcon:Wa,scan:Ga,observe:Qr,stopObserving:Xr,pauseObserver:ja,resumeObserver:_a,enableCache:Qa,disableCache:Xa};try{self.Iconify===void 0&&(self.Iconify=Za)}catch{}var ln={},Ja=G;Object.defineProperty(ln,"__esModule",{value:!0});var oo=ln.default=void 0,ec=Ja(W()),tc=c;oo=ln.default=(0,ec.default)((0,tc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function un({infos:e}){const{t}=Q(),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(`
23
- `);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
24
-
25
-
26
-
27
- <!--
28
- [Server Info]
29
- ${r}
30
- * Page: ${window.location.href}
31
- -->
32
- `),A(D,{sx:{mx:{xs:0,md:2}},children:A(pr,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}un.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};un.defaultProps={infos:[]};var nc={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"}},rc={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const Tt=new Map,oc=(e,t)=>{Tt.set(e,t)},sc=(e="en_US")=>Tt.get(e)||Tt.get("en_US");var so={registerLang:oc,getLang:sc},ic=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}};const ac=ic,{getLang:_e}=so,cc=(e,t)=>t===1?e:`${e}s`,lc=1e-7;var uc=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=_e(t.locale),r=[],o=(a,l)=>{const u=Math.floor(a*10**l+lc);return(Math.round(u)/10**l).toFixed(l)},i=(a,l,u)=>{if((r.length===0||!t.colonNotation)&&a===0&&!(t.colonNotation&&l==="minute"))return;const{long:d}=n[l]||_e("en_US")[l],{short:f}=n[l]||_e("en_US")[l];let p=(u||a||"0").toString(),v,b;if(t.colonNotation){v=r.length>0?":":"",b="";const h=p.includes(".")?p.split(".")[0].length:p.length,w=r.length>0?2:1;p="0".repeat(Math.max(0,w-h))+p}else v="",t.locale==="zh_CN"?Object.values(s).filter(h=>h>0).length>1?!s.days&&!s.hours&&s.minutes&&t.compact?b=d:b=f:s.minutes?b=d:b=f:b=t.verbose?` ${cc(d,a)}`:f;r.push(v+p+b)},s=ac(e);if(i(Math.trunc(s.days/365),"year"),i(s.days%365,"day"),i(s.hours,"hour"),i(s.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(s.seconds,"second"),t.formatSubMilliseconds)i(s.milliseconds,"millisecond"),i(s.microseconds,"microsecond"),i(s.nanoseconds,"nanosecond");else{const a=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,l=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=a>=1?Math.round(a):Math.ceil(a),d=l?a.toFixed(l):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const a=e/1e3%60,l=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=o(a,l),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(r.length===0){const a=(n.millisecond||_e("en_US").millisecond).long,l=(n.millisecond||_e("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${a}`:l}`:`0${t.verbose?` ${a}s`:l}`}if(t.compact)return r[0];if(typeof t.unitCount=="number"){const a=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(a)}return t.colonNotation?r.join(""):r.join(" ")};const dc=nc,fc=rc,{registerLang:dn}=so,io=uc;dn("en_US",dc);dn("zh_CN",fc);io.registerLang=dn;var pc=io;const Ye=tr(pc);var fn={},mc=G;Object.defineProperty(fn,"__esModule",{value:!0});var Dt=fn.default=void 0,gc=mc(W()),Kn=c;Dt=fn.default=(0,gc.default)([(0,Kn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Kn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function se({children:e}){return et(n=>n.breakpoints.down("md"))?c.jsx(Ve,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:c.jsx(D,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(Dt,{fontSize:"small"})})}):c.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(Dt,{fontSize:"small"}),e]})}se.propTypes={children:m.node.isRequired};const hc="https://launcher.arcblock.io/",vc=30*24*60*60*1e3;function pn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var O,j,E,C,P,R;const{t:i,locale:s}=Q(),a=ye(),[l,u]=mr({safeIframeRef:null,popoverAnchorEl:null}),d=x.useRef(null),f=et(L=>L.breakpoints.down("md")),{sx:p={},...v}=o,b=f?"mobile":"desktop",h=dr(async()=>{const[L,re]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),sr({launcherUrl:e||hc,nftDid:n,launcherSessionId:r,locale:s})]);if(L!=null&&L.error)throw new Error(L.error);return{launcherSession:L.launcherSession,subscriptionURL:re}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(se,{children:[!f&&i("expiration.desktop.loading"),c.jsx(ne,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(se,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const w=L=>{u({popoverAnchorEl:L.currentTarget})},I=()=>{u({popoverAnchorEl:null})},g=(O=h.value)==null?void 0:O.launcherSession;let _="success";[$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((E=(j=h.value)==null?void 0:j.launcherSession)==null?void 0:E.status)&&(_="error");let S=null;if(g.expirationDate&&!g.subscription){const L=me(g.expirationDate).diff(me(),"ms");S=i(`expiration.${b}.tips.${_}`,{validity:Ye(L,{locale:kt(s),compact:!0,verbose:!0})}),L>0&&L<=vc&&(_="warning")}return c.jsxs(c.Fragment,{children:[c.jsx(ce,{label:c.jsx(se,{children:S||((P=(C=g==null?void 0:g.subscription)==null?void 0:C.product)==null?void 0:P.name)||i("common.subscription")}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),c.jsx(ir,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(R=h.value)==null?void 0:R.subscriptionURL})})]})}pn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};pn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const yc=30*24*60*60*1e3,xc="https://launcher.arcblock.io/";function mn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var j,E,C,P,R,L,re;const{t:i,locale:s}=Q(),[a,l]=mr({safeIframeRef:null,popoverAnchorEl:null}),u=x.useRef(null),d=et(M=>M.breakpoints.down("md")),f=ye(),{sx:p={},...v}=o,b=d?"mobile":"desktop",h=dr(async()=>{const[M,be]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),sr({launcherUrl:e||xc,nftDid:n,launcherSessionId:r,locale:s})]);if(M!=null&&M.error)throw new Error(M.error);return{launcherSession:M.launcherSession,subscriptionURL:be}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(se,{children:[!d&&i("expiration.desktop.loading"),c.jsx(ne,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(se,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const w=(E=(j=h.value)==null?void 0:j.launcherSession)==null?void 0:E.expirationDate,I=me(w).isBefore(me()),g=me(w).diff(me(),"ms");let _="success";g<=yc&&(_="warning"),I&&(_="error");const S=M=>{l({popoverAnchorEl:M.currentTarget})},O=()=>{l({popoverAnchorEl:null})};return c.jsxs(c.Fragment,{children:[((P=(C=h.value)==null?void 0:C.launcherSession)==null?void 0:P.subscription)&&c.jsx(ce,{label:c.jsx(se,{children:i("expiration.desktop.nextInvoice",{date:Ao(w,s)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...v,onClick:S}),!((L=(R=h.value)==null?void 0:R.launcherSession)!=null&&L.subscription)&&c.jsx(ce,{label:c.jsx(se,{children:i(`expiration.${b}.tips.${_}`,{validity:Ye(g,{locale:kt(s),compact:!0,verbose:!0})})}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:S}),c.jsx(ir,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(re=h.value)==null?void 0:re.subscriptionURL})})]})}mn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};mn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var gn={},bc=G;Object.defineProperty(gn,"__esModule",{value:!0});var ao=gn.default=void 0,wc=bc(W()),Sc=c;ao=gn.default=(0,wc.default)((0,Sc.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var hn={},jc=G;Object.defineProperty(hn,"__esModule",{value:!0});var co=hn.default=void 0,_c=jc(W()),Cc=c;co=hn.default=(0,_c.default)((0,Cc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var vn={};Object.defineProperty(vn,"__esModule",{value:!0});var At=vn.default=void 0;Oc(x);var Wn=c;function Oc(e){return e&&e.__esModule?e:{default:e}}function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gn(Object(n),!0).forEach(function(r){Pc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pc(e,t,n){return t=Ic(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ic(e){var t=Ec(e,"string");return typeof t=="symbol"?t:String(t)}function Ec(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yn=function(t){return(0,Wn.jsx)("svg",Qn(Qn({},t),{},{children:(0,Wn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})}))};yn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};yn.displayName="notification";At=vn.default=yn;function lo({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:c.jsx(fr,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}lo.propTypes={status:m.string.isRequired};function xn({value:e,...t}){const{t:n,locale:r}=Q();if(!e)return"-";const o={locale:kt(r),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const l=Ye(i-s,o);return c.jsx(Ve,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.afterTime",{time:l})})})}const a=Ye(s-i,o);return c.jsx(Ve,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}xn.propTypes={value:m.any};xn.defaultProps={value:""};function Rc(e,t){const n=x.useRef(t);x.useEffect(()=>{const r=o=>n.current(o.detail);return window.addEventListener(e,r),()=>window.removeEventListener(e,r)},[e])}function Lc(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function El(e){const t=Je(),{t:n}=Q(),r=()=>{const o=new URLSearchParams(window.location.search);o.get("checkUpdate")&&(o.delete("checkUpdate"),t(o.toString()),e(),J.success(n("notification.checkingForUpdates")))};x.useEffect(r,[]),Rc("checkUpdate",r)}function bn({onHide:e,api:t,notifications:n,updateNotifications:r,viewAllUrl:o,teamDid:i}){const{inService:s}=ye(),{t:a,locale:l}=x.useContext(Mt),[u,d]=x.useState(!0),[f,p]=x.useState(!1),v=Je(),b=$o();let h=u?n:n.filter(S=>S.read===!1);h=h.slice(0,5);const w=n.filter(S=>S.read===!1).length>0,I=async()=>{p(!0);const S=n.filter(O=>O.read===!1).map(O=>O.id).join(",");s?await t.readBlockletNotifications({input:{id:S,teamDid:i}}):await t.readNotifications({input:{id:S}}),r(),p(!1)},g=(S,O)=>{O.read||(s?t.readBlockletNotifications({input:{id:O.id,teamDid:i}}).then(()=>r()):t.readNotifications({input:{id:O.id}}).then(()=>r())),e(S),v(o)},_=(S,O)=>{S.preventDefault(),S.stopPropagation(),v(O),Lc()};return c.jsxs(Tc,{children:[c.jsxs(K,{component:"h3",variant:"h6",className:"notification-header",children:[a("notification.title"),c.jsx(he,{component:Bt,to:o,"data-cy":"view-all-notifications-btn",onClick:e,children:a("notification.viewAll")})]}),c.jsx(yt,{}),c.jsxs(No,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[h.length===0&&c.jsx(K,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),h.length>0&&h.map(S=>c.jsxs(vs,{alignItems:"flex-start",disabled:S.read,onClick:O=>g(O,S),children:[c.jsx(Es,{className:"list-item-avatar",children:c.jsxs(c.Fragment,{children:[c.jsx(ur,{children:S.entityType.substr(0,1).toUpperCase()}),c.jsx(lo,{className:"notification-tag",status:S.severity})]})}),c.jsx(lr,{primary:S.title,secondary:c.jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c.jsx(K,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:S.description}),c.jsxs(D,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[c.jsx(xn,{value:S.createdAt,locale:l,style:{color:b.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),S.action&&!S.read?c.jsx(he,{color:"primary",variant:"outlined",onPointerDown:O=>{O.stopPropagation(),O.preventDefault()},onClick:O=>_(O,S.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},S.id))]}),c.jsx(yt,{}),c.jsxs(K,{component:"div",className:"notification-footer",children:[c.jsx(bt,{control:c.jsx(us,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),c.jsx(ps,{permission:s?"":"mutate_notification",role:s?Mo:[],children:w&&c.jsxs(he,{disabled:f,onClick:I,className:"",children:[f&&c.jsx(ne,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const Tc=Ze.div`
33
- width: 420px;
34
-
35
- @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
36
- width: calc(100vw - 10px);
37
- }
38
-
39
- .notification-header {
40
- padding: 8px 16px;
41
- display: flex;
42
- justify-content: space-between;
43
- }
44
-
45
- .notification-tip {
46
- padding: 8px 16px;
47
- }
48
-
49
- .notification-footer {
50
- padding: 8px 16px;
51
- display: flex;
52
- justify-content: space-between;
53
- }
54
-
55
- .MuiButtonBase-root {
56
- white-space: pre-wrap;
57
- }
58
-
59
- .list-item-avatar {
60
- display: flex;
61
- flex-direction: column;
62
- align-items: center;
63
- min-width: 80px;
64
-
65
- .notification-tag {
66
- margin-top: 4px;
67
- }
68
- }
69
-
70
- .MuiButtonBase-root:not(.Mui-disabled) {
71
- .MuiAvatar-root {
72
- background: ${e=>e.theme.palette.primary.light};
73
- }
74
- }
75
- `;bn.propTypes={onHide:m.func,api:m.shape({readNotifications:m.func.isRequired,readBlockletNotifications:m.func.isRequired}).isRequired,notifications:m.arrayOf(m.shape({id:m.string,read:m.bool,entityType:m.string,title:m.string,createdAt:m.string,description:m.string}).isRequired).isRequired,updateNotifications:m.func.isRequired,viewAllUrl:m.string.isRequired,teamDid:m.string};bn.defaultProps={onHide:()=>{},teamDid:""};function wn({api:e,notifications:t,updateNotifications:n,viewAllUrl:r,teamDid:o}){const[i,s]=x.useState(!1),a=x.useRef(null),l=()=>{s(f=>!f)},u=f=>{a.current&&a.current.contains(f.target)||s(!1)},d=t.filter(f=>f.read===!1).length;return c.jsxs("div",{className:"notification-addon",children:[c.jsx(Ut,{ref:a,"aria-controls":"notify-list-grow","aria-haspopup":"true","data-cy":"toggle-notification-btn",onClick:l,children:d>0?c.jsx(hr,{badgeContent:d,max:99,color:"primary",children:c.jsx(At,{style:{width:"auto",height:24}})}):c.jsx(At,{style:{width:"auto",height:24}})}),i&&c.jsx(Uo,{open:!0,anchorEl:a.current,disablePortal:!0,placement:"bottom-end",children:c.jsx(Bo,{id:"notify-list-grow",children:c.jsx(ko,{onClickAway:u,children:c.jsx("div",{children:c.jsx(bn,{notifications:t,updateNotifications:n,api:e,viewAllUrl:r,onHide:u,teamDid:o})})})})})]})}wn.propTypes={notifications:m.arrayOf(m.object),viewAllUrl:m.string.isRequired,api:m.object.isRequired,updateNotifications:m.func.isRequired,teamDid:m.string};wn.defaultProps={notifications:[],teamDid:""};const Dc=`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/notifications`;function Sn(){const{did:e}=window.env,{api:t,data:n,refresh:r}=zo();return c.jsx(wn,{api:t,viewAllUrl:Dc,notifications:n||[],updateNotifications:r,teamDid:e})}Sn.propTypes={};Sn.defaultProps={};function Ac(){const{inFullPage:e,toggleFullPage:t}=hs();return A(Ut,{onClick:t,children:e?A(co,{sx:{transform:"scale(1.3)"}}):A(ao,{sx:{transform:"scale(1.3)"}})})}function jn({children:e}){var h;const{t}=Q(),{loading:n,error:r,actions:{refreshBlocklet:o},env:i,blocklet:s}=Le(),{info:a}=Fo(),l=Ho(),u=et(w=>w.breakpoints.down("md")),{appId:d,version:f}=i,p=[{label:"App ID",value:d},{label:"App Version",value:f},{label:"App Bundle Name",value:(h=s==null?void 0:s.meta)==null?void 0:h.bundleName},{label:"Server Id",value:a.did},{label:"Server Version",value:a.version}],v=w=>{var g,_,S,O;const I=Array.isArray(w)?w:[w];if(I.unshift(A(Sn,{})),u||I.unshift(A(Ac,{})),s){const j={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};qo(s)?I.unshift(A(pn,{chainHost:(g=s==null?void 0:s.controller)==null?void 0:g.chainHost,nftId:(_=s==null?void 0:s.controller)==null?void 0:_.nftId,launcherSessionId:(S=s==null?void 0:s.controller)==null?void 0:S.launcherSessionId,launcherUrl:(O=s==null?void 0:s.controller)==null?void 0:O.launcherUrl,sx:j})):a.ownerNft&&a.launcher&&I.unshift(A(mn,{chainHost:a.launcher.chainHost,launcherUrl:a.launcher.url,nftId:a.ownerNft.did,launcherSessionId:a.ownerNft.launcherSessionId,sx:j}))}return I},b={};return u&&(b.logo=null),pt($c,{legacy:!1,fullWidth:!0,headerAddons:v,headerProps:b,isMobile:u,footerProps:{addon:A(un,{infos:p})},children:[!s&&n&&A(Ke,{relative:"parent",children:A(ne,{})}),!s&&r&&pt(Ke,{relative:"parent",children:[pt(D,{display:"flex",alignItems:"center",children:[A(oo,{color:"error",sx:{marginRight:1}}),zt(r)]}),A(he,{onClick:()=>o(),children:A("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!s&&A(D,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:A(Vo,{FallbackComponent:gs,resetKeys:[l.pathname],children:e})})]})}jn.propTypes={children:m.any};jn.defaultProps={children:null};const $c=Ze(ys)`
76
- div.dashboard-content {
77
- padding: 0;
78
- }
79
- .header-addons .locales {
80
- max-height: 400px;
81
- overflow-y: auto;
82
- }
83
- `,uo=(e,{name:t,alternative:n})=>function(o){return x.useEffect(()=>{},[]),c.jsx(e,{...o})},Nc={light:"fal",regular:"far",solid:"fas"};function _n({name:e,color:t,size:n,variant:r,rounded:o,style:i,className:s,forwardedRef:a,...l}){const u=c.jsx("i",{ref:a,className:`${Nc[r]} fa-${e} ${o?"":s}`,style:Object.assign({color:t,fontSize:`${n}px`},i||{})});return o?c.jsx(Mc,{ref:a,size:n,color:t,className:s,...l,children:u}):u}_n.propTypes={name:m.string.isRequired,className:m.string,color:m.string,rounded:m.bool,variant:m.string,size:m.number,style:m.object};_n.defaultProps={rounded:!1,variant:"light",color:Ce.grey[900],className:"",size:24,style:{}};const Mc=ar("span")`
84
- width: ${e=>e.size*2}px;
85
- height: ${e=>e.size*2}px;
86
- border-radius: 50%;
87
- border: 1px solid ${e=>e.color};
88
- display: flex;
89
- justify-content: center;
90
- align-items: center;
91
-
92
- .fa,
93
- .fas,
94
- .fal,
95
- .far {
96
- line-height: ${e=>e.size}px;
97
- }
98
- `,Uc=uo(x.forwardRef((e,t)=>c.jsx(_n,{...e,forwardedRef:t})),{name:"Icon",alternative:"SVG icons"}),$t={error:{icon:"exclamation-circle",color:Ce.error.main,borderColor:"#e35b54",backgroundColor:"rgba(227, 91, 84, 0.2)"},warning:{icon:"exclamation-triangle",color:Ce.warning.main,borderColor:"#f7d040",backgroundColor:"rgba(247, 208, 64, 0.2)"},success:{icon:"check-circle",color:Ce.success.main,borderColor:"#89ddd9",backgroundColor:"rgba(137, 221, 217, 0.2)"},tip:{icon:"info-circle",color:Ce.grey[500],borderColor:"#222222",backgroundColor:"#EEEEEE"}};function st(e){const t=Ko(e,st,["style"]),{type:n,children:r,style:o,className:i,variant:s,...a}=t,{icon:l,color:u,backgroundColor:d,borderColor:f}=$t[n]||$t.success,p=Object.assign({color:ms[500],backgroundColor:s==="border"?d:"transparent",borderLeft:s==="border"?`5px solid ${f}`:"none"},o);return c.jsxs(kc,{...a,className:`alert alert--${n} alert--${s} ${i}`.trim(),style:p,children:[s==="icon"&&c.jsx(Uc,{className:"alert-icon",name:l,size:24,style:{color:u}}),c.jsx(K,{component:"div",className:"alert-content",children:r})]})}st.propTypes={type:m.oneOf(Object.keys($t)),children:m.any.isRequired,className:m.string,style:m.oneOfType([m.object,m.string]),variant:m.oneOf(["border","icon"])};st.defaultProps={type:"tip",className:"",style:"{}",variant:"border"};const Bc=uo(st,{name:"Alert",alternative:"@mui/material/Alert"}),kc=ar("div")`
99
- display: flex;
100
- align-items: center;
101
- font-size: 16px;
102
- margin: 0;
103
- padding: 16px;
104
- margin: 16px 0;
105
-
106
- strong {
107
- margin: 0 5px;
108
- }
109
-
110
- .alert-icon {
111
- margin-right: 16px;
112
- }
113
-
114
- .alert-content {
115
- flex: 1;
116
- display: flex;
117
- flex-direction: column;
118
- }
119
- `;function zc(){const{t:e,locale:t}=Q(),{blocklet:n,launcherSession:r}=Le(),[o,i]=is({subscriptionURL:"#"});if(x.useEffect(()=>{var l,u;Pn(n,r)&&Wo({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!Go(n)||r.status===$.LAUNCH_SESSION_STATUS.installed)return"";let s=null,a="";return Pn(n,r)?(s=c.jsx(pr,{href:o.subscriptionURL,children:e("blocklet.manageSubscription")}),a=e("blocklet.suspendedCausedByExpired",{deadline:qe(r==null?void 0:r.reservedUntil,t)})):Qo(n,r)&&(s=c.jsx(Bt,{to:Oe($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/storage"),children:e("common.backup")}),a=e("blocklet.suspendedCausedByTerminated",{canceledAt:qe(r==null?void 0:r.terminatedAt,t),deadline:Xo(r==null?void 0:r.terminatedAt,t)})),c.jsxs(D,{component:Bc,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[a,c.jsx(K,{component:"span",sx:{marginLeft:"4px"},children:s})]})}const fo=x.createContext({});function Rl(){return x.useContext(fo)}const{Provider:Fc,Consumer:Ll}=fo,{did:V,appId:Hc}=window.env;function Vc({children:e}){var j,E;const{t,locale:n}=Q(),{blocklet:r}=Le(),[o,i]=x.useState([]),[s,a]=x.useState([]),[l,u]=x.useState([]),d=B.getDisplayName(r),f=((j=((r==null?void 0:r.environments)||[]).find(C=>C.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:j.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],v=(r==null?void 0:r.trustedFactories)||[],b=(r==null?void 0:r.enablePassportIssuance)!==!1,h=async()=>{try{const C=await Ue.doBatchQuery({getRoles:{input:{teamDid:V}},getPermissions:{input:{teamDid:V}},getInvitations:{input:{teamDid:V}}});a((C.getRoles.roles||[]).filter(P=>!$.RBAC_CONFIG.roles.some(R=>R.name===P.name&&(!R.passport||R.ci))).map(P=>(P.hasDescription=!!P.description,P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),P))),u(C.getPermissions.permissions||[]),i(C.getInvitations.invitations||[])}catch(C){J.error(C.message)}},w=({did:C}={})=>{const P={teamDid:V,user:{did:C}};return Ue.getUser({input:P})},I=({query:C,paging:P}={})=>{const R={teamDid:V};return P&&(R.paging=P),C&&(R.query=C),R.sort={lastLoginAt:-1},Ue.getUsers({input:R})},g=()=>Ue.getUsersCountPerRole({input:{teamDid:V}}),_=()=>h();x.useEffect(()=>{var C;(C=r==null?void 0:r.meta)!=null&&C.did&&h()},[(E=r==null?void 0:r.meta)==null?void 0:E.did]),x.useEffect(()=>{a(C=>C.map(P=>(P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),{...P})))},[t,n]);const S=C=>{C.teamDid===V&&h()};ze(Z.TeamEvents.userAdded,S,[V]),ze(Z.TeamEvents.userRemoved,S,[V]),ze(Z.TeamEvents.userUpdated,S,[V]);const O={teamDid:V,teamIssuerDid:Hc,teamName:d,invitations:o,roles:s,permissions:l,trustedPassports:p,trustedFactories:v,isNodeTeam:!1,enablePassportIssuance:b,refresh:_,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:w,getUsers:I,getUsersCountPerRole:g}};return c.jsx(Fc,{value:O,children:e})}const qc=x.lazy(()=>k(()=>import("./overview-BLsrTI_U.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,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]))),Kc=x.lazy(()=>k(()=>import("./index-C6s_FyYj.js"),__vite__mapDeps([52,1,2,53,9,54,55,56,57,27,28,29,30,31,58,59,33,60,43,44,36,37,61,48,62,63,34,12,39,64,46,47,49,50,51,10,45,19,65,23,66,21,7,67,68,6,13,14,15,69,17,18,4,16,70,71,35,72,38,40,41,42,5,20]))),Wc=x.lazy(()=>k(()=>import("./index-gtaSQ7gG.js"),__vite__mapDeps([73,1,2,9,74,10,41,75,11,56,57,27,28,29,30,31,13,14,15,16,17,18,19,43,76,12,6,7,5,20,77,37,38,39,34,40,36,42,44,45,46,47,48,49,50,51]))),Gc=x.lazy(()=>k(()=>import("./index-B-luKSks.js"),__vite__mapDeps([78,1,2,79,80,81,82,53,75,83,41,27,28,29,30,31,84,45,19,10,37,54,85,18,86,13,14,15,16,17,20,69,43,67,12,87,88,36,62,63,60,89,3,90,58,59,33,44,61,48,57,34,39,4,91,92,38,40,42,5,7,46,47,49,50,51,93]))),Qc=x.lazy(()=>k(()=>import("./audit-logs-CgWtOpVL.js"),__vite__mapDeps([94,1,2,95,96,12,5,38,28,29,30,31,97,61,98,37,39,16,17,18,19,34,40,36,41,42,43,44,45,15,13,14,7,20,46,47,48,49,50,51]))),Xc=x.lazy(()=>k(()=>import("./log-C6s81A46.js"),__vite__mapDeps([99,1,2,38,41,100,28,29,31,101]))),Yc=x.lazy(()=>k(()=>import("./index-BsrufvYy.js"),__vite__mapDeps([102,1,2,9,103,34,104,58,59,33,60,43,29,28,44,30,36,31,27,37,61,48,62,63,57,12,39,5,16,17,18,19,15,6,7,84,45,72,100,105,20,53,71,25,92,10,23,106,107,108,87,81,69,41,109,83,77,67,95,96,98,110,42]))),Zc=x.lazy(()=>k(()=>import("./config-navigation-kIkN-CW4.js"),__vite__mapDeps([111,1,2,62,63,60,112,109,85,31,28,29,18,19,113,114,30,36,27,37,77,64,46,47,48,49,50,39,51,10,45,115,17,41,32,33,38,16,34,40,42,43,44,15,13,14,5,7,20]))),Jc=x.lazy(()=>k(()=>import("./index-CQK4XXi1.js"),__vite__mapDeps([116,1,2,74,10,41,25,117,66,118,92,17,27,28,29,30,31,18,19,4,6,7,89,67,43,39,107,36,86,5,58,59,33,60,44,37,61,48,62,63,57,34,12]))),el=x.lazy(()=>k(()=>import("./component-C1NjVIvL.js"),__vite__mapDeps([119,1,2,9,80,81,82,53,75,83,41,27,28,29,30,31,12,89,67,43,13,14,15,37,59,33,60,44,36,61,48,63,57,120,84,45,19,107,103,112,109,115,77,121,69,34,18,17,122,123,124,118,92,25,125,49,126,127,128,129,130,76,95,96,113,4,6,7,110,108,39,87,72,16,26,131,117,66,74,10,132,38,46,133,134,11,22,42,40,35,5,20,47,50,51]))),tl=x.lazy(()=>k(()=>import("./analytics-DjYXM6bV.js"),__vite__mapDeps([135,1,2,37,13,14,15,79,136,120,60,84,45,19,63,39,36,28,29,31,18,17,33,106,27,30,77,58,59,43,44,61,48,62,57,34,12,38,16,40,41,42,5,7,20,46,47,49,50,51]))),nl=x.lazy(()=>k(()=>import("./notifications-odlwUvdh.js"),__vite__mapDeps([137,1,2,13,14,15,43,29,39,45,19,36,97,61,37,38,16,17,18,34,40,41,42,44,5,7,20,46,47,48,49,50,51])));function rl(){var h,w;const e=Je(),{tab:t="overview"}=Jo(),{blocklet:n,actions:{refreshBlocklet:r}}=Le(),{t:o}=Q(),i=(h=n==null?void 0:n.meta)==null?void 0:h.did,s=I=>{e(`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${I}`)},a=()=>{r()},l=!n||xt(n.status)?[]:B.getAppMissingConfigs(n),u=[{label:o("common.overview"),value:"overview"},{label:c.jsx(hr,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:o("common.components")}),value:"components"}];xt(n==null?void 0:n.status)||u.push({label:o("common.configuration"),value:"configuration"}),u.push({label:o("common.auditLogs"),value:"audit-logs"}),n&&((w=n.children)!=null&&w.length)&&n.structVersion===$.APP_STRUCT_VERSION&&u.push({label:o("common.logs"),value:"logs"}),u.push({label:o("common.configNavigation"),value:"navigation"}),u.push({label:o("common.storage"),value:"storage"});const d=c.jsx(Qc,{scope:i,categories:["blocklet","team","security","certificates","gateway"]});ze($.EVENTS.NOTIFICATION_BLOCKLET_CREATE,I=>{const{severity:g,title:_,description:S}=I||{};g==="error"?J.error(S||_):J.success(S||_)});const f={overview:c.jsx(qc,{}),members:c.jsx(D,{mt:-5,children:c.jsx(Kc,{type:"blocklet",createPassportSvg:In})}),passports:c.jsx(D,{mt:-4.5,children:c.jsx(Wc,{createPassportSvg:In})}),components:el,configuration:c.jsx(Gc,{blocklet:n,onUpdate:a}),"audit-logs":d,logs:Xc,navigation:Zc,storage:c.jsx(Jc,{}),analytics:c.jsx(D,{mt:-5,children:c.jsx(tl,{})}),publish:c.jsx(D,{mt:-3,children:c.jsx(Yc,{})}),notifications:c.jsx(nl,{})},p=f[t]||f.overview,v=!["members","passports","analytics","publish","notifications"].includes(t),b=n?c.jsxs(tn,{type:"components",children:[v&&c.jsx(D,{pt:3,children:c.jsx(ts,{tabs:u,current:t,onChange:s,scrollButtons:"auto"})}),c.jsx("div",{className:"page-content",children:c.jsx(x.Suspense,{fallback:c.jsx(Ke,{relative:"parent",children:c.jsx(ne,{})}),children:x.isValidElement(p)?p:c.jsx(p,{blocklet:n})})})]}):c.jsx(Ke,{relative:"parent",children:c.jsx(ne,{})});return c.jsx(es,{children:c.jsx(Vc,{children:c.jsx(jn,{children:c.jsxs(sl,{children:[v&&c.jsxs(D,{component:"div",className:"page-header",children:[c.jsxs(K,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?c.jsx(Zt,{blocklet:n,style:{marginRight:16}}):null,n?c.jsxs(D,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[c.jsx(D,{children:B.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&c.jsx(en,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${o("common.blocklet")} ${o("common.detail")}`]}),n?c.jsx(Yt,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:I}={})=>{I&&J.error(I.message)},variant:"group"}):null]}),c.jsx(Cr,{}),c.jsx(zc,{}),b]})})})})}function ol(){var r;const{blocklet:e}=Le(),{t}=Q(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return x.useEffect(()=>{const o=Yo();return n&&o.connect(),()=>{n&&o.isConnected()&&o.disconnect()}},[n]),c.jsxs(c.Fragment,{children:[c.jsx(Zo,{children:c.jsx("title",{children:t("pageTitle.dashboard")})}),c.jsx(rl,{})]})}const sl=Ze.main`
120
- .page-header {
121
- display: flex;
122
- justify-content: space-between;
123
- align-items: center;
124
- flex-wrap: wrap;
125
- gap: 16px;
126
- }
127
-
128
- .page-title {
129
- display: flex;
130
- align-items: center;
131
-
132
- .page-link {
133
- font-size: 15px;
134
- margin-top: 8px;
135
- margin-left: 8px;
136
- }
137
- }
138
-
139
- .page-content {
140
- margin-top: 18px;
141
- }
142
-
143
- @media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
144
- .page-header {
145
- flex-direction: column;
146
- align-items: flex-start;
147
- .page-actions,
148
- .MuiButtonGroup-root {
149
- width: 100%;
150
- }
151
- .MuiButtonGroup-root {
152
- .MuiButtonBase-root {
153
- flex: 1;
154
- }
155
- .blocklet-action-text {
156
- display: none;
157
- }
158
- }
159
- }
160
-
161
- .page-title {
162
- margin-bottom: 15px;
163
- }
164
- }
165
- `,Tl=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"}));export{en as B,Es as L,lo as N,xn as R,Jt as W,pi as _,hr as a,ni as b,Sr as c,oo as d,Zt as e,gr as f,Ht as g,te as h,vr as i,Il as j,yr as k,El as l,Tl as m,Ye as p,Rl as u};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-BSXNgTl3.js";import{S as t}from"./studio-S7QOZ6iJ.js";import"./index-mDicGCqx.js";import"./Toolbar-CermspyY.js";import"./Hidden-Bx2uY5CL.js";import"./fallback-iFxe1QEH.js";function u(){return o.jsx(t,{children:"Coming soon..."})}export{u as default};
@@ -1 +0,0 @@
1
- import{u as n,bx as l,$ as d,r as c,j as i,at as u,B as h}from"./index-BSXNgTl3.js";import g from"./index-BsrufvYy.js";import"./Add-CvWpFwb9.js";import"./AddBox-B5yAYYc5.js";import"./Delete-7FY_-hW2.js";import"./Error-COixndSy.js";import"./index-WfBcu-P1.js";import"./FilterList-Cf8dLFs7.js";import"./useThemeProps-TricuE4R.js";import"./toPropertyKey-PLuKRk1e.js";import"./FormControlLabel-D3D12HVK.js";import"./useFormControl-cywmDuiA.js";import"./FormControl-BTtk2Fad.js";import"./FormGroup-BfchPA9v.js";import"./InputLabel-Bc6EtwvH.js";import"./ListItemText-OzALNktK.js";import"./Select-Dv7psaww.js";import"./TextField-0v_oVobJ.js";import"./index-Gre-8z9c.js";import"./LastPage-BYYTvJ73.js";import"./Toolbar-CermspyY.js";import"./index-Cpj1zQ53.js";import"./redux-D0zq8PYj.js";import"./Search-BYFGRH1q.js";import"./index-lBw0H73K.js";import"./MoreVert-inIvVOb4.js";import"./index-Bxbm4EMl.js";import"./confirm-Cwv0NkNp.js";import"./format-error-BTo2sOsy.js";import"./Alert-D6BaRZ7F.js";import"./useSlot-rUibNc1t.js";import"./session-BX0sD_Dd.js";import"./did-address-miQOme8J.js";import"./Link-B103RPwf.js";import"./ChevronRight-BSKZBb_2.js";import"./Avatar-CF7xxGtX.js";import"./shorten-label-wHG2oGCl.js";import"./Download-5T3TCzDB.js";import"./QuestionMarkCircle-BxJnG-bt.js";import"./useSetState-DIAnRvUO.js";import"./index-PyVJ1uw4.js";import"./index-HqFqdQ4r.js";import"./api-DoDJZYqZ.js";import"./index-B2VTYhTK.js";import"./ExpandMore-DTe37e10.js";import"./OpenInNew-cdburhfQ.js";import"./useSlotProps-D0FDJtqc.js";import"./DeleteOutline-KzktAnTa.js";import"./item-bLTqsv2V.js";import"./Launch-CEjbrPHI.js";import"./Done-DGweKa9V.js";import"./click-to-copy-CT6HFlqB.js";import"./ButtonGroup-DxKP8J2j.js";import"./jss-plugin-props-sort.esm-BMX6GVGS.js";import"./ArrowDropDown-D_JtvQgy.js";import"./InputAdornment-A7HvHn8B.js";import"./index-vuG-tmg9.js";import"./index-xZ--t8ut.js";import"./index-vWNkWn6D.js";import"./Stepper-CiCy8LMQ.js";import"./RadioGroup-CWmfUngk.js";const r=new URL(window.location.href),m=r.searchParams.get("mode")==="dialog",w=m?"":r.searchParams.get("padding")||"";function Bo(){const{t:e}=n(),{componentDid:o}=l(),s=d(t=>t.breakpoints.down("md")),a=t=>{t.stopPropagation(),window.parent.postMessage({event:"resourceDialog.close",componentDid:o},"*")};c.useEffect(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:o},"*")},[o]);const p=i.jsx(g,{padding:w,initUrl:r});return m?i.jsx(u,{className:"studio-dialog",title:e("blocklet.publish.blockletStudio"),maxWidth:!1,fullWidth:!1,PaperProps:{style:s?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:a,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:i.jsx(h,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:p})}):p}export{Bo as default};
@@ -1 +0,0 @@
1
- import{ck as o}from"./index-BSXNgTl3.js";const c=new o;export{c as b};
@@ -1 +0,0 @@
1
- import{r as o,bB as t}from"./index-BSXNgTl3.js";function e(){return o.useContext(t)}export{e as u};